[02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]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:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31: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:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:58]ConnectInit Can't connect to host [04:11:59]OFD Sender: No OFD packet to send [04:12:04]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:28]ConnectInit Can't connect to host [04:15:29]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:07]accept exits with 9 [04:21:07]New connection [04:21:07]New thread 3067080036 created [04:21:07]Thread 3066936676 joined [04:21:07]Waiting for new connection... [04:21:07] Sock 9.Parse request [04:21:07]Sock 9.Check first char [04:21:07]Sock 9.First char is OK [04:21:07]request: POST /json_proto HTTP/1.0 [04:21:07]Method: POST [04:21:07]URL: /json_proto [04:21:07]Method is POST - this is cgi request [04:21:07]url: /json_proto [04:21:07]query_string will be loaded in cgi processing [04:21:07]execute_cgi json_proto POST (null) [04:21:07]execute_cgi path=json_proto method=POST [04:21:07]POST find Content-Length [04:21:07]Host: 172.17.63.195:8080 [04:21:07]Content-Length: 674 [04:21:07]Content-Type: application/json [04:21:07] [04:21:07]POST finish read [04:21:07]Found Content-Length = 674 [04:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [04:21:07]execute_script... [04:21: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)449473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [04:21:07]POST & json_proto [04:21:07]process_json_proto [04:21:07]json parsed OK: [04:21:07]protocol is kg_v1.0 [04:21:07]action value=close_receipt [04:21:07]process_action close_receipt [04:21:07]cmd_close_receipt [04:21:07]MH_GetDate [04:21:07]Write to MH i2c: F0 00 00 F2 08 E9 [04:21:07]Write i2c OK [04:21:07]MH_I2C_Read... [04:21:07]Read from MH i2c: F0 [04:21:07]MH_I2C_Read... [04:21:07]Read from MH i2c: F0 09 00 [04:21:07]MH_I2C_Read... [04:21:07]Read from MH i2c: F0 09 00 F2 08 00 B6 BF 1D 67 68 46 19 67 19 [04:21:07]GetLastDocTimeStamp 1729994400 [04:21:07]current date 1730002870 [04:21:07]FM_GetShiftState [04:21:07]SAM_PROTO_GetShiftState [04:21:07]wFMCommunicate request_size=4 [04:21:07]MH_SAM_APDU [04:21:07]CAPDU: 80 13 01 00 [04:21:07]Write to MH i2c: E2 08 00 F3 08 80 13 01 00 00 00 00 00 78 [04:21:07]Write i2c OK [04:21:07]MH_I2C_Read... [04:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:08]Read from MH i2c: E2 [04:21:08]MH_I2C_Read... [04:21:08]Read from MH i2c: E2 0E 00 [04:21:08]MH_I2C_Read... [04:21:08]Read from MH i2c: E2 0E 00 F3 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7A [04:21:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:21:08]wFMCommunicate OK [04:21:08]SAM_PROTO_GetShiftState done [04:21:08]FM_GetShiftState done [04:21:08]opened in 1729987312 [04:21:08]opened+sec_in_day 1730073712 [04:21:08]quantity*price = 60045 [04:21:08]sum+1 = 60047 [04:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 9 27.10.2024 04:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201717 ФПД: 128672369859468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T042110&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201717&fm=128672369859468&tin=02508201610067®Number=0000000000091777&sum=60000 [04:21:09]StoreToDocumentArchive [04:21:09]shift 544 fd 201717 [04:21:09]save to /storage/0544/doc_00201717 [04:21:09]save last doc name /storage/0544/doc_00201717 to /storage/kkm_last_doc_name [04:21:09]save OK [04:21:09]Clear old archive folders... [04:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:21:09]tlvbuf is 000F9AA0 [04:21:09]SAM_PROTO_ClearQueue [04:21:09]wFMCommunicate request_size=4 [04:21:09]MH_SAM_APDU [04:21:09]CAPDU: 80 09 00 00 [04:21:09]Write to MH i2c: E2 08 00 00 09 80 09 00 00 00 00 00 00 7B [04:21:09]Write i2c OK [04:21:09]MH_I2C_Read... [04:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:21:09]Read from MH i2c: E2 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 03 00 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 03 00 00 09 00 90 00 7D [04:21:09]RAPDU: 90 00 [04:21:09]wFMCommunicate OK [04:21:09]SAM_PROTO_ClearQueue done [04:21:09]KKMCreateOFDPacket [04:21:09]OFDProtocolAddRootSTLVToBuf [04:21:09]FM_MakeSignedData [04:21:09]FM_MakeSignedData [04:21:09]SAM_PROTO_SignData [04:21:09]wFMCommunicate request_size=4 [04:21:09]MH_SAM_APDU [04:21:09]CAPDU: 80 0D 01 02 [04:21:09]Write to MH i2c: E2 08 00 01 09 80 0D 01 02 00 00 00 00 83 [04:21:09]Write i2c OK [04:21:09]MH_I2C_Read... [04:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:21:09]Read from MH i2c: E2 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 03 00 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 03 00 01 09 00 90 00 7E [04:21:09]RAPDU: 90 00 [04:21:09]wFMCommunicate OK [04:21:09]wFMCommunicate request_size=255 [04:21:09]MH_SAM_APDU [04:21:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 B6 BF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 13 03 00 35 04 06 00 75 06 DE E5 [04:21:09]Write to MH i2c: E2 02 01 02 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 B6 BF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 13 03 00 35 04 06 00 75 06 DE E5 00 00 3B [04:21:09]Write i2c OK [04:21:09]MH_I2C_Read... [04:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:09]Read from MH i2c: E2 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 03 00 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 03 00 02 09 00 90 00 7F [04:21:09]RAPDU: 90 00 [04:21:09]wFMCommunicate OK [04:21:09]wFMCommunicate request_size=7 [04:21:09]MH_SAM_APDU [04:21:09]CAPDU: 80 0D 02 02 02 DB 8C [04:21:09]Write to MH i2c: E2 0A 00 03 09 80 0D 02 02 02 00 DB 8C 00 00 F1 [04:21:09]Write i2c OK [04:21:09]MH_I2C_Read... [04:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:09]Read from MH i2c: E2 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 03 00 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [04:21:09]RAPDU: 90 00 [04:21:09]wFMCommunicate OK [04:21:09]wFMCommunicate request_size=4 [04:21:09]MH_SAM_APDU [04:21:09]CAPDU: 80 0D 03 02 [04:21:09]Write to MH i2c: E2 08 00 04 09 80 0D 03 02 00 00 00 00 88 [04:21:09]Write i2c OK [04:21:09]MH_I2C_Read... [04:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:21:09]Read from MH i2c: E2 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 0B 00 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 0B 00 04 09 00 A1 1D FB 96 35 BC 5D DA 90 00 00 [04:21:09]RAPDU: A1 1D FB 96 35 BC 5D DA 90 00 [04:21:09]wFMCommunicate OK [04:21:09]SAM_PROTO_SignData done [04:21:09]FM_MakeSignedData done [04:21:09]CreateOFDProtocolMessage [04:21:09]wFMCommunicate request_size=4 [04:21:09]MH_SAM_APDU [04:21:09]CAPDU: 80 11 00 00 [04:21:09]Write to MH i2c: E2 08 00 05 09 80 11 00 00 00 00 00 00 88 [04:21:09]Write i2c OK [04:21:09]MH_I2C_Read... [04:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:09]Read from MH i2c: E2 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 17 00 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: E2 17 00 05 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [04:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:21:09]wFMCommunicate OK [04:21:09]CreateOFDProtocolMessage done [04:21:09]OFDSenderStorePacket 201717 [04:21:09]StoreOFDPacket docnum=201717 [04:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D0 0B 04 01 13 33 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 B6 BF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 13 03 00 35 04 06 00 75 06 DE E5 DB 8C A1 1D FB 96 35 BC 5D DA [04:21:09]CheckFolder [04:21:09]dirname=/storage/ofd_packets [04:21:09]CheckFolder done [04:21:09]ProducePacketName [04:21:09]name=ofd_packets/00201717 [04:21:09]NVStorageSaveData ofd_packets/00201717 [04:21:09]File name is /storage/ofd_packets/00201717 [04:21:09]Write 298 bytes [04:21:09]NVStorageSaveData done [04:21:09]OFDSenderStorePacket done [04:21:09]KKMCreateOFDPacket done [04:21:09]NVStorageSaveData kkm_last_timestamp [04:21:09]File name is /storage/kkm_last_timestamp [04:21:09]Write 4 bytes [04:21:09]NVStorageSaveData done [04:21:09]ExternCall_PrintAddStr [04:21:09]wPrintStart [04:21:09]Write to MH i2c: 01 00 00 06 09 0F [04:21:09]Write i2c OK [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: 01 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: 01 07 00 [04:21:09]MH_I2C_Read... [04:21:09]Read from MH i2c: 01 07 00 06 09 00 00 00 00 00 FF 0F 24 [04:21:09]RasterBufferAndPrint [04:21:09]line Счет N : (1)449473 [04:21:09]line ИНН: 02508201610067 [04:21:09]line Контрольно-Кассовый Чек [04:21:09]line ПРОДАЖА [04:21:09]line ТРК (МРК, ГНК) : 11 [04:21:09]line Товар: 2710194210 [04:21:09]line ДТ-К-2 [04:21:09]line 7.880 * 76.20 [04:21:09]line = 600.46 [04:21:09]line НДС 12% НСП 1% [04:21:09]line > о реализуемом товаре [04:21:09]line ОКРУГЛЕНИЕ: -0.46 [04:21:09]line ИТОГО: 600.00 [04:21:09]line Внесено: 600.00 [04:21:09]line СДАЧА: 0.00 [04:21:09]line НСП 1% : 5.31 [04:21:09]line НДС 12% : 63.77 [04:21:09]line Наличными: 600.00 [04:21:09]line Безнал.: 0.00 [04:21:09]line Место: АЗС № 171 "Партнер Нефть" [04:21:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [04:21:09]line СНО: Общий режим [04:21:09]line Чек 9 27.10.2024 04:21 [04:21:09]line Смена: 544 ФФД: 1.0 [04:21:09]line ЗНМ: 0300000109 [04:21:09]line РНМ: 0000000000091777 [04:21:09]line Версия ККМ: 001 [04:21:09]line ФМ: 0000000000871756 [04:21:09]line ФД: 201717 [04:21:09]line ФПД: 128672369859468 [04:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T042110&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201717&fm=128672369859468&tin=02508201610067®Number=0000000000091777&sum=60000 [04:21:10]OFD Sender: Processing packet 201717 [packets to send 112, broken 111] [04:21:10]ProducePacketName [04:21:10]name=ofd_packets/00201717 [04:21:10]OFD Sender: To server: pG, [04:21:10]CommunicateWithHost lk.salyk.kg:30040 [04:21:10]ConnectInit lk.salyk.kg [04:21:10]written 0, free lines is 4095 [04:21:10]Connected sock=10 [04:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D0 0B 04 01 13 33 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 B6 BF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 13 03 00 35 04 06 00 75 06 DE E5 DB 8C A1 1D FB 96 35 BC 5D DA [04:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FA B4 47 00 48 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 13 03 00 F4 03 04 00 5D 6B 1D 67 B6 04 01 00 00 21 5B 52 F2 6B C8 9E D5 [04:21:10]CommunicateWithHost err = 0 [04:21:10]CheckOFDResponse [04:21:10]1017 (14) - 77093643461234 [04:21:10]1041 (16) - 0000000000871756 [04:21:10]1040 (4) - 201717 [04:21:10]1012 (4) - 26.10.2024 22:21 [04:21:10]1206 (1) - 0 [04:21:10]OFD Sender: Remove packet 201717 [04:21:10]ProducePacketName [04:21:10]name=ofd_packets/00201717 [04:21:10]NVStorageDeleteData [04:21:10]Write to MH i2c: 01 00 00 31 09 3A [04:21:10]Write i2c OK [04:21:10]MH_I2C_Read... [04:21:10]Read from MH i2c: 01 [04:21:10]MH_I2C_Read... [04:21:10]Read from MH i2c: 01 07 00 [04:21:10]MH_I2C_Read... [04:21:10]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 94 0C E1 [04:21:10]RasterBufferAndPrint [04:21:10]line [04:21:10]line [04:21:10]line [04:21:10]line [04:21:10]line [04:21:10]written 0, free lines is 3224 [04:21:10]MH_Cut [04:21:10]Write to MH i2c: D1 01 00 38 09 01 13 [04:21:10]Write i2c OK [04:21:10]MH_I2C_Read... [04:21:10]Read from MH i2c: D1 [04:21:10]MH_I2C_Read... [04:21:10]Read from MH i2c: D1 01 00 [04:21:10]MH_I2C_Read... [04:21:10]Read from MH i2c: D1 01 00 38 09 00 12 [04:21:10]Write to MH i2c: 01 00 00 39 09 42 [04:21:10]Write i2c OK [04:21:10]MH_I2C_Read... [04:21:10]OFD Sender: No OFD packet to send [04:21:11]*** Cut start [04:21:11]*** Purtial cut [04:21:11]*** CUTSNS_PIN = 0 [04:21:11]*** Stage 1: CUTSNS_PIN = 1 [04:21:13]Read from MH i2c: 01 [04:21:13]MH_I2C_Read... [04:21:13]*** Stop cut motor [04:21:13]*** Cut end [04:21:13]Read from MH i2c: 01 07 00 [04:21:13]MH_I2C_Read... [04:21:13]Read from MH i2c: 01 07 00 39 09 00 00 00 00 00 FF 0F 57 [04:21:13]process_action close_receipt done [04:21:13]requested_data is exist [04:21:13]produce_requested_data [04:21:13]requested_item fm.sn is exist - process it [04:21:13]wFMCommunicate request_size=4 [04:21:13]MH_SAM_APDU [04:21:13]CAPDU: 80 11 00 00 [04:21:13]Write to MH i2c: E2 08 00 3A 09 80 11 00 00 00 00 00 00 BD [04:21:13]Write i2c OK [04:21:13]MH_I2C_Read... [04:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:13]Read from MH i2c: E2 [04:21:13]MH_I2C_Read... [04:21:13]Read from MH i2c: E2 17 00 [04:21:13]MH_I2C_Read... [04:21:13]Read from MH i2c: E2 17 00 3A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 12 [04:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:21:13]wFMCommunicate OK [04:21:13]requested_item fd.num is exist - process it [04:21:13]SAM_PROTO_GetFieldsCounters [04:21:13]wFMCommunicate request_size=4 [04:21:13]MH_SAM_APDU [04:21:13]CAPDU: 80 13 00 00 [04:21:13]Write to MH i2c: E2 08 00 3B 09 80 13 00 00 00 00 00 00 C0 [04:21:13]Write i2c OK [04:21:13]MH_I2C_Read... [04:21:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:13]Read from MH i2c: E2 [04:21:13]MH_I2C_Read... [04:21:13]Read from MH i2c: E2 62 00 [04:21:13]MH_I2C_Read... [04:21:13]Read from MH i2c: E2 62 00 3B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F5 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [04:21:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F5 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:21:13]wFMCommunicate OK [04:21:13]SAM_PROTO_GetFieldsCounters done [04:21:13]requested_item shift.num is exist - process it [04:21:13]requested_item shift.opened is exist - process it [04:21:13]req_shift_opened [04:21:13]FM_GetShiftState [04:21:13]SAM_PROTO_GetShiftState [04:21:13]wFMCommunicate request_size=4 [04:21:13]MH_SAM_APDU [04:21:13]CAPDU: 80 13 01 00 [04:21:13]Write to MH i2c: E2 08 00 3C 09 80 13 01 00 00 00 00 00 C2 [04:21:13]Write i2c OK [04:21:13]MH_I2C_Read... [04:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:13]Read from MH i2c: E2 [04:21:13]MH_I2C_Read... [04:21:13]Read from MH i2c: E2 0E 00 [04:21:13]MH_I2C_Read... [04:21:13]Read from MH i2c: E2 0E 00 3C 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C4 [04:21:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:21:13]wFMCommunicate OK [04:21:13]SAM_PROTO_GetShiftState done [04:21:13]FM_GetShiftState done [04:21:13]req_shift_opened done [04:21:13]requested_item shift.open_date is exist - process it [04:21:13]req_shift_open_date [04:21:13]req_shift_open_date done [04:21:13]produce_requested_data done [04:21:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201717,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [04:21:13]process_action_free close_receipt [04:21:13]json_value_free [04:21:13]json_value_free done [04:21:13]process_json_proto returns [04:21:13]Send response to host [04:21:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201717,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [04:21:13]free response buf [04:21:13]execute_script done [04:21:13]execute_script returns [04:21:13]free content buf [04:21:13]Sock 9.Close socket [04:21:13]Sock 9.Thread stoped [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]accept exits with 8 [04:31:51]New connection [04:31:51]New thread 3066936676 created [04:31:51]Thread 3067080036 joined [04:31:51]Waiting for new connection... [04:31:51] Sock 8.Parse request [04:31:51]Sock 8.Check first char [04:31:51]Sock 8.First char is OK [04:31:51]request: POST /json_proto HTTP/1.0 [04:31:51]Method: POST [04:31:51]URL: /json_proto [04:31:51]Method is POST - this is cgi request [04:31:51]url: /json_proto [04:31:51]query_string will be loaded in cgi processing [04:31:51]execute_cgi json_proto POST (null) [04:31:51]execute_cgi path=json_proto method=POST [04:31:51]POST find Content-Length [04:31:51]Host: 172.17.63.195:8080 [04:31:51]Content-Length: 674 [04:31:51]Content-Type: application/json [04:31:51] [04:31:51]POST finish read [04:31:51]Found Content-Length = 674 [04:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:51]execute_script... [04:31: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)449474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:51]POST & json_proto [04:31:51]process_json_proto [04:31:51]json parsed OK: [04:31:51]protocol is kg_v1.0 [04:31:51]action value=close_receipt [04:31:51]process_action close_receipt [04:31:51]cmd_close_receipt [04:31:51]MH_GetDate [04:31:51]Write to MH i2c: F0 00 00 3D 09 35 [04:31:51]Write i2c OK [04:31:51]MH_I2C_Read... [04:31:51]Read from MH i2c: F0 [04:31:51]MH_I2C_Read... [04:31:51]Read from MH i2c: F0 09 00 [04:31:51]MH_I2C_Read... [04:31:51]Read from MH i2c: F0 09 00 3D 09 00 3A C2 1D 67 68 46 19 67 EC [04:31:51]GetLastDocTimeStamp 1730002870 [04:31:51]current date 1730003514 [04:31:51]FM_GetShiftState [04:31:51]SAM_PROTO_GetShiftState [04:31:51]wFMCommunicate request_size=4 [04:31:51]MH_SAM_APDU [04:31:51]CAPDU: 80 13 01 00 [04:31:51]Write to MH i2c: E2 08 00 3E 09 80 13 01 00 00 00 00 00 C4 [04:31:51]Write i2c OK [04:31:51]MH_I2C_Read... [04:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:51]OFD Sender: No OFD packet to send [04:31:51]Read from MH i2c: E2 [04:31:51]MH_I2C_Read... [04:31:51]Read from MH i2c: E2 0E 00 [04:31:51]MH_I2C_Read... [04:31:51]Read from MH i2c: E2 0E 00 3E 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C6 [04:31:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:31:51]wFMCommunicate OK [04:31:51]SAM_PROTO_GetShiftState done [04:31:51]FM_GetShiftState done [04:31:51]opened in 1729987312 [04:31:51]opened+sec_in_day 1730073712 [04:31:51]quantity*price = 50063 [04:31:51]sum+1 = 50064 [04:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 10 27.10.2024 04:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201718 ФПД: 177365304080330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T043154&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201718&fm=177365304080330&tin=02508201610067®Number=0000000000091777&sum=50000 [04:31:52]StoreToDocumentArchive [04:31:52]shift 544 fd 201718 [04:31:52]save to /storage/0544/doc_00201718 [04:31:52]save last doc name /storage/0544/doc_00201718 to /storage/kkm_last_doc_name [04:31:52]save OK [04:31:52]Clear old archive folders... [04:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:31:52]tlvbuf is 000F3680 [04:31:52]SAM_PROTO_ClearQueue [04:31:52]wFMCommunicate request_size=4 [04:31:52]MH_SAM_APDU [04:31:52]CAPDU: 80 09 00 00 [04:31:52]Write to MH i2c: E2 08 00 4B 09 80 09 00 00 00 00 00 00 C6 [04:31:52]Write i2c OK [04:31:52]MH_I2C_Read... [04:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:31:52]Read from MH i2c: E2 [04:31:52]MH_I2C_Read... [04:31:52]Read from MH i2c: E2 03 00 [04:31:52]MH_I2C_Read... [04:31:52]Read from MH i2c: E2 03 00 4B 09 00 90 00 C8 [04:31:52]RAPDU: 90 00 [04:31:52]wFMCommunicate OK [04:31:52]SAM_PROTO_ClearQueue done [04:31:52]KKMCreateOFDPacket [04:31:52]OFDProtocolAddRootSTLVToBuf [04:31:52]FM_MakeSignedData [04:31:52]FM_MakeSignedData [04:31:52]SAM_PROTO_SignData [04:31:52]wFMCommunicate request_size=4 [04:31:52]MH_SAM_APDU [04:31:52]CAPDU: 80 0D 01 02 [04:31:52]Write to MH i2c: E2 08 00 4C 09 80 0D 01 02 00 00 00 00 CE [04:31:52]Write i2c OK [04:31:52]MH_I2C_Read... [04:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:31:52]Read from MH i2c: E2 [04:31:52]MH_I2C_Read... [04:31:52]Read from MH i2c: E2 03 00 [04:31:52]MH_I2C_Read... [04:31:52]Read from MH i2c: E2 03 00 4C 09 00 90 00 C9 [04:31:52]RAPDU: 90 00 [04:31:52]wFMCommunicate OK [04:31:52]wFMCommunicate request_size=255 [04:31:52]MH_SAM_APDU [04:31:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3A C2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 13 03 00 35 04 06 00 A1 50 13 F1 [04:31:52]Write to MH i2c: E2 02 01 4D 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3A C2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 13 03 00 35 04 06 00 A1 50 13 F1 00 00 8D [04:31:52]Write i2c OK [04:31:52]MH_I2C_Read... [04:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:53]Read from MH i2c: E2 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: E2 03 00 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: E2 03 00 4D 09 00 90 00 CA [04:31:53]RAPDU: 90 00 [04:31:53]wFMCommunicate OK [04:31:53]wFMCommunicate request_size=7 [04:31:53]MH_SAM_APDU [04:31:53]CAPDU: 80 0D 02 02 02 F7 CA [04:31:53]Write to MH i2c: E2 0A 00 4E 09 80 0D 02 02 02 00 F7 CA 00 00 96 [04:31:53]Write i2c OK [04:31:53]MH_I2C_Read... [04:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:53]Read from MH i2c: E2 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: E2 03 00 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [04:31:53]RAPDU: 90 00 [04:31:53]wFMCommunicate OK [04:31:53]wFMCommunicate request_size=4 [04:31:53]MH_SAM_APDU [04:31:53]CAPDU: 80 0D 03 02 [04:31:53]Write to MH i2c: E2 08 00 4F 09 80 0D 03 02 00 00 00 00 D3 [04:31:53]Write i2c OK [04:31:53]MH_I2C_Read... [04:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:31:53]Read from MH i2c: E2 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: E2 0B 00 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: E2 0B 00 4F 09 00 1A A4 4C A6 18 B3 35 AC 90 00 30 [04:31:53]RAPDU: 1A A4 4C A6 18 B3 35 AC 90 00 [04:31:53]wFMCommunicate OK [04:31:53]SAM_PROTO_SignData done [04:31:53]FM_MakeSignedData done [04:31:53]CreateOFDProtocolMessage [04:31:53]wFMCommunicate request_size=4 [04:31:53]MH_SAM_APDU [04:31:53]CAPDU: 80 11 00 00 [04:31:53]Write to MH i2c: E2 08 00 50 09 80 11 00 00 00 00 00 00 D3 [04:31:53]Write i2c OK [04:31:53]MH_I2C_Read... [04:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:53]Read from MH i2c: E2 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: E2 17 00 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: E2 17 00 50 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 28 [04:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:31:53]wFMCommunicate OK [04:31:53]CreateOFDProtocolMessage done [04:31:53]OFDSenderStorePacket 201718 [04:31:53]StoreOFDPacket docnum=201718 [04:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A9 B7 04 01 7F DE 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3A C2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 13 03 00 35 04 06 00 A1 50 13 F1 F7 CA 1A A4 4C A6 18 B3 35 AC [04:31:53]CheckFolder [04:31:53]dirname=/storage/ofd_packets [04:31:53]CheckFolder done [04:31:53]ProducePacketName [04:31:53]name=ofd_packets/00201718 [04:31:53]NVStorageSaveData ofd_packets/00201718 [04:31:53]File name is /storage/ofd_packets/00201718 [04:31:53]Write 298 bytes [04:31:53]NVStorageSaveData done [04:31:53]OFDSenderStorePacket done [04:31:53]KKMCreateOFDPacket done [04:31:53]NVStorageSaveData kkm_last_timestamp [04:31:53]File name is /storage/kkm_last_timestamp [04:31:53]Write 4 bytes [04:31:53]NVStorageSaveData done [04:31:53]ExternCall_PrintAddStr [04:31:53]wPrintStart [04:31:53]Write to MH i2c: 01 00 00 51 09 5A [04:31:53]Write i2c OK [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: 01 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: 01 07 00 [04:31:53]MH_I2C_Read... [04:31:53]Read from MH i2c: 01 07 00 51 09 00 00 00 00 00 FF 0F 6F [04:31:53]RasterBufferAndPrint [04:31:53]line Счет N : (1)449474 [04:31:53]line ИНН: 02508201610067 [04:31:53]line Контрольно-Кассовый Чек [04:31:53]line ПРОДАЖА [04:31:53]line ТРК (МРК, ГНК) : 33 [04:31:53]line Товар: 2710194210 [04:31:53]line ДТ-К-2 [04:31:53]line 6.570 * 76.20 [04:31:53]line = 500.63 [04:31:53]line НДС 12% НСП 1% [04:31:53]line > о реализуемом товаре [04:31:53]line ОКРУГЛЕНИЕ: -0.63 [04:31:53]line ИТОГО: 500.00 [04:31:53]line Внесено: 500.00 [04:31:53]line СДАЧА: 0.00 [04:31:53]line НСП 1% : 4.43 [04:31:53]line НДС 12% : 53.16 [04:31:53]line Наличными: 500.00 [04:31:53]line Безнал.: 0.00 [04:31:53]line Место: АЗС № 171 "Партнер Нефть" [04:31:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [04:31:53]line СНО: Общий режим [04:31:53]line Чек 10 27.10.2024 04:31 [04:31:53]line Смена: 544 ФФД: 1.0 [04:31:53]line ЗНМ: 0300000109 [04:31:53]line РНМ: 0000000000091777 [04:31:53]line Версия ККМ: 001 [04:31:53]line ФМ: 0000000000871756 [04:31:53]line ФД: 201718 [04:31:53]line ФПД: 177365304080330 [04:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T043154&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201718&fm=177365304080330&tin=02508201610067®Number=0000000000091777&sum=50000 [04:31:53]written 0, free lines is 4095 [04:31:53]OFD Sender: Processing packet 201718 [packets to send 112, broken 111] [04:31:53]ProducePacketName [04:31:53]name=ofd_packets/00201718 [04:31:53]OFD Sender: To server: pG, [04:31:53]CommunicateWithHost lk.salyk.kg:30040 [04:31:53]ConnectInit lk.salyk.kg [04:31:53]Connected sock=10 [04:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A9 B7 04 01 7F DE 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 3A C2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 13 03 00 35 04 06 00 A1 50 13 F1 F7 CA 1A A4 4C A6 18 B3 35 AC [04:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 83 3E 47 00 EA AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 13 03 00 F4 03 04 00 E0 6D 1D 67 B6 04 01 00 00 5E 10 E3 9E AE 12 7B 4D [04:31:53]CommunicateWithHost err = 0 [04:31:53]CheckOFDResponse [04:31:53]1017 (14) - 77093643461234 [04:31:53]1041 (16) - 0000000000871756 [04:31:53]1040 (4) - 201718 [04:31:53]1012 (4) - 26.10.2024 22:32 [04:31:53]1206 (1) - 0 [04:31:53]OFD Sender: Remove packet 201718 [04:31:53]ProducePacketName [04:31:53]name=ofd_packets/00201718 [04:31:53]NVStorageDeleteData [04:31:54]Write to MH i2c: 01 00 00 7C 09 85 [04:31:54]Write i2c OK [04:31:54]MH_I2C_Read... [04:31:54]Read from MH i2c: 01 [04:31:54]MH_I2C_Read... [04:31:54]Read from MH i2c: 01 07 00 [04:31:54]MH_I2C_Read... [04:31:54]Read from MH i2c: 01 07 00 7C 09 00 00 00 00 00 8B 0C 23 [04:31:54]RasterBufferAndPrint [04:31:54]line [04:31:54]line [04:31:54]line [04:31:54]line [04:31:54]line [04:31:54]written 0, free lines is 3215 [04:31:54]MH_Cut [04:31:54]Write to MH i2c: D1 01 00 83 09 01 5E [04:31:54]Write i2c OK [04:31:54]MH_I2C_Read... [04:31:54]Read from MH i2c: D1 [04:31:54]MH_I2C_Read... [04:31:54]Read from MH i2c: D1 01 00 [04:31:54]MH_I2C_Read... [04:31:54]Read from MH i2c: D1 01 00 83 09 00 5D [04:31:54]Write to MH i2c: 01 00 00 84 09 8D [04:31:54]Write i2c OK [04:31:54]MH_I2C_Read... [04:31:54]OFD Sender: No OFD packet to send [04:31:54]*** Cut start [04:31:54]*** Purtial cut [04:31:54]*** Stage 1: CUTSNS_PIN = 1 [04:31:55]Read from MH i2c: 01 [04:31:55]MH_I2C_Read... [04:31:55]*** Stop cut motor [04:31:55]*** Cut end [04:31:55]Read from MH i2c: 01 07 00 [04:31:55]MH_I2C_Read... [04:31:55]Read from MH i2c: 01 07 00 84 09 00 00 00 00 00 FF 0F A2 [04:31:55]process_action close_receipt done [04:31:55]requested_data is exist [04:31:55]produce_requested_data [04:31:55]requested_item fm.sn is exist - process it [04:31:55]wFMCommunicate request_size=4 [04:31:55]MH_SAM_APDU [04:31:55]CAPDU: 80 11 00 00 [04:31:55]Write to MH i2c: E2 08 00 85 09 80 11 00 00 00 00 00 00 08 [04:31:55]Write i2c OK [04:31:55]MH_I2C_Read... [04:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:55]Read from MH i2c: E2 [04:31:55]MH_I2C_Read... [04:31:55]Read from MH i2c: E2 17 00 [04:31:55]MH_I2C_Read... [04:31:55]Read from MH i2c: E2 17 00 85 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5D [04:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:31:55]wFMCommunicate OK [04:31:55]requested_item fd.num is exist - process it [04:31:55]SAM_PROTO_GetFieldsCounters [04:31:55]wFMCommunicate request_size=4 [04:31:55]MH_SAM_APDU [04:31:55]CAPDU: 80 13 00 00 [04:31:55]Write to MH i2c: E2 08 00 86 09 80 13 00 00 00 00 00 00 0B [04:31:55]Write i2c OK [04:31:55]MH_I2C_Read... [04:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:31:55]Read from MH i2c: E2 [04:31:55]MH_I2C_Read... [04:31:55]Read from MH i2c: E2 62 00 [04:31:55]MH_I2C_Read... [04:31:55]Read from MH i2c: E2 62 00 86 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F6 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [04:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F6 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:31:55]wFMCommunicate OK [04:31:55]SAM_PROTO_GetFieldsCounters done [04:31:55]requested_item shift.num is exist - process it [04:31:55]requested_item shift.opened is exist - process it [04:31:55]req_shift_opened [04:31:55]FM_GetShiftState [04:31:55]SAM_PROTO_GetShiftState [04:31:55]wFMCommunicate request_size=4 [04:31:55]MH_SAM_APDU [04:31:55]CAPDU: 80 13 01 00 [04:31:55]Write to MH i2c: E2 08 00 87 09 80 13 01 00 00 00 00 00 0D [04:31:55]Write i2c OK [04:31:55]MH_I2C_Read... [04:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:55]Read from MH i2c: E2 [04:31:55]MH_I2C_Read... [04:31:55]Read from MH i2c: E2 0E 00 [04:31:55]MH_I2C_Read... [04:31:55]Read from MH i2c: E2 0E 00 87 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0F [04:31:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:31:55]wFMCommunicate OK [04:31:55]SAM_PROTO_GetShiftState done [04:31:55]FM_GetShiftState done [04:31:55]req_shift_opened done [04:31:55]requested_item shift.open_date is exist - process it [04:31:55]req_shift_open_date [04:31:55]req_shift_open_date done [04:31:55]produce_requested_data done [04:31:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201718,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [04:31:55]process_action_free close_receipt [04:31:55]json_value_free [04:31:55]json_value_free done [04:31:55]process_json_proto returns [04:31:55]Send response to host [04:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201718,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [04:31:55]free response buf [04:31:55]execute_script done [04:31:55]execute_script returns [04:31:55]free content buf [04:31:55]Sock 8.Close socket [04:31:55]Sock 8.Thread stoped [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04: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:42]accept exits with 9 [04:40:42]New connection [04:40:42]New thread 3067080036 created [04:40:42] Sock 9.Parse request [04:40:42]Thread 3066936676 joined [04:40:42]Sock 9.Check first char [04:40:42]Waiting for new connection... [04:40:42]Sock 9.First char is OK [04:40:42]request: POST /json_proto HTTP/1.0 [04:40:42]Method: POST [04:40:42]URL: /json_proto [04:40:42]Method is POST - this is cgi request [04:40:42]url: /json_proto [04:40:42]query_string will be loaded in cgi processing [04:40:42]execute_cgi json_proto POST (null) [04:40:42]execute_cgi path=json_proto method=POST [04:40:42]POST find Content-Length [04:40:42]Host: 172.17.63.195:8080 [04:40:42]Content-Length: 677 [04:40:42]Content-Type: application/json [04:40:42] [04:40:42]POST finish read [04:40:42]Found Content-Length = 677 [04:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [04:40:42]execute_script... [04:40: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)449475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [04:40:42]POST & json_proto [04:40:42]process_json_proto [04:40:42]json parsed OK: [04:40:42]protocol is kg_v1.0 [04:40:42]action value=close_receipt [04:40:42]process_action close_receipt [04:40:42]cmd_close_receipt [04:40:42]MH_GetDate [04:40:42]Write to MH i2c: F0 00 00 88 09 80 [04:40:42]Write i2c OK [04:40:42]MH_I2C_Read... [04:40:42]Read from MH i2c: F0 [04:40:42]MH_I2C_Read... [04:40:42]Read from MH i2c: F0 09 00 [04:40:42]MH_I2C_Read... [04:40:42]Read from MH i2c: F0 09 00 88 09 00 4D C4 1D 67 68 46 19 67 4C [04:40:42]GetLastDocTimeStamp 1730003514 [04:40:42]current date 1730004045 [04:40:42]FM_GetShiftState [04:40:42]SAM_PROTO_GetShiftState [04:40:42]wFMCommunicate request_size=4 [04:40:42]MH_SAM_APDU [04:40:42]CAPDU: 80 13 01 00 [04:40:42]Write to MH i2c: E2 08 00 89 09 80 13 01 00 00 00 00 00 0F [04:40:42]Write i2c OK [04:40:42]MH_I2C_Read... [04:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:42]Read from MH i2c: E2 [04:40:42]MH_I2C_Read... [04:40:42]Read from MH i2c: E2 0E 00 [04:40:42]MH_I2C_Read... [04:40:42]Read from MH i2c: E2 0E 00 89 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 11 [04:40:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:40:42]wFMCommunicate OK [04:40:42]SAM_PROTO_GetShiftState done [04:40:42]FM_GetShiftState done [04:40:42]opened in 1729987312 [04:40:42]opened+sec_in_day 1730073712 [04:40:42]quantity*price = 50041 [04:40:42]sum+1 = 50042 [04:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 11 27.10.2024 04:40 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201719 ФПД: 15083489606017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044045&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201719&fm=15083489606017&tin=02508201610067®Number=0000000000091777&sum=50000 [04:40:43]StoreToDocumentArchive [04:40:43]shift 544 fd 201719 [04:40:43]save to /storage/0544/doc_00201719 [04:40:43]save last doc name /storage/0544/doc_00201719 to /storage/kkm_last_doc_name [04:40:43]save OK [04:40:43]Clear old archive folders... [04:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:40:43]tlvbuf is 00069AB0 [04:40:43]SAM_PROTO_ClearQueue [04:40:43]wFMCommunicate request_size=4 [04:40:43]MH_SAM_APDU [04:40:43]CAPDU: 80 09 00 00 [04:40:43]Write to MH i2c: E2 08 00 96 09 80 09 00 00 00 00 00 00 11 [04:40:43]Write i2c OK [04:40:43]MH_I2C_Read... [04:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:43]Read from MH i2c: E2 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: E2 03 00 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: E2 03 00 96 09 00 90 00 13 [04:40:43]RAPDU: 90 00 [04:40:43]wFMCommunicate OK [04:40:43]SAM_PROTO_ClearQueue done [04:40:43]KKMCreateOFDPacket [04:40:43]OFDProtocolAddRootSTLVToBuf [04:40:43]FM_MakeSignedData [04:40:43]FM_MakeSignedData [04:40:43]SAM_PROTO_SignData [04:40:43]wFMCommunicate request_size=4 [04:40:43]MH_SAM_APDU [04:40:43]CAPDU: 80 0D 01 02 [04:40:43]Write to MH i2c: E2 08 00 97 09 80 0D 01 02 00 00 00 00 19 [04:40:43]Write i2c OK [04:40:43]MH_I2C_Read... [04:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:43]Read from MH i2c: E2 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: E2 03 00 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: E2 03 00 97 09 00 90 00 14 [04:40:43]RAPDU: 90 00 [04:40:43]wFMCommunicate OK [04:40:43]wFMCommunicate request_size=255 [04:40:43]MH_SAM_APDU [04:40:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 4D C4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 13 03 00 35 04 06 00 0D [04:40:43]Write to MH i2c: E2 02 01 98 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 4D C4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 13 03 00 35 04 06 00 0D 00 00 89 [04:40:43]Write i2c OK [04:40:43]MH_I2C_Read... [04:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:44]Read from MH i2c: E2 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 03 00 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 03 00 98 09 00 90 00 15 [04:40:44]RAPDU: 90 00 [04:40:44]wFMCommunicate OK [04:40:44]wFMCommunicate request_size=10 [04:40:44]MH_SAM_APDU [04:40:44]CAPDU: 80 0D 02 02 05 B7 E6 0A 39 81 [04:40:44]Write to MH i2c: E2 0D 00 99 09 80 0D 02 02 05 00 B7 E6 0A 39 81 00 00 87 [04:40:44]Write i2c OK [04:40:44]MH_I2C_Read... [04:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:44]Read from MH i2c: E2 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 03 00 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 03 00 99 09 00 90 00 16 [04:40:44]RAPDU: 90 00 [04:40:44]wFMCommunicate OK [04:40:44]wFMCommunicate request_size=4 [04:40:44]MH_SAM_APDU [04:40:44]CAPDU: 80 0D 03 02 [04:40:44]Write to MH i2c: E2 08 00 9A 09 80 0D 03 02 00 00 00 00 1E [04:40:44]Write i2c OK [04:40:44]MH_I2C_Read... [04:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:44]Read from MH i2c: E2 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 0B 00 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 0B 00 9A 09 00 08 71 9A 0D 62 A1 2B B0 90 00 1D [04:40:44]RAPDU: 08 71 9A 0D 62 A1 2B B0 90 00 [04:40:44]wFMCommunicate OK [04:40:44]SAM_PROTO_SignData done [04:40:44]FM_MakeSignedData done [04:40:44]CreateOFDProtocolMessage [04:40:44]wFMCommunicate request_size=4 [04:40:44]MH_SAM_APDU [04:40:44]CAPDU: 80 11 00 00 [04:40:44]Write to MH i2c: E2 08 00 9B 09 80 11 00 00 00 00 00 00 1E [04:40:44]Write i2c OK [04:40:44]MH_I2C_Read... [04:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:44]Read from MH i2c: E2 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 17 00 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 17 00 9B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 73 [04:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:40:44]wFMCommunicate OK [04:40:44]CreateOFDProtocolMessage done [04:40:44]OFDSenderStorePacket 201719 [04:40:44]StoreOFDPacket docnum=201719 [04:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B4 30 07 01 F1 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 4D C4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 13 03 00 35 04 06 00 0D B7 E6 0A 39 81 08 71 9A 0D 62 A1 2B B0 [04:40:44]CheckFolder [04:40:44]dirname=/storage/ofd_packets [04:40:44]CheckFolder done [04:40:44]ProducePacketName [04:40:44]name=ofd_packets/00201719 [04:40:44]NVStorageSaveData ofd_packets/00201719 [04:40:44]File name is /storage/ofd_packets/00201719 [04:40:44]Write 301 bytes [04:40:44]NVStorageSaveData done [04:40:44]OFDSenderStorePacket done [04:40:44]KKMCreateOFDPacket done [04:40:44]NVStorageSaveData kkm_last_timestamp [04:40:44]File name is /storage/kkm_last_timestamp [04:40:44]Write 4 bytes [04:40:44]NVStorageSaveData done [04:40:44]ExternCall_PrintAddStr [04:40:44]wPrintStart [04:40:44]Write to MH i2c: 01 00 00 9C 09 A5 [04:40:44]Write i2c OK [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: 01 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: 01 07 00 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: 01 07 00 9C 09 00 00 00 00 00 FF 0F BA [04:40:44]RasterBufferAndPrint [04:40:44]line Счет N : (1)449475 [04:40:44]line ИНН: 02508201610067 [04:40:44]line Контрольно-Кассовый Чек [04:40:44]line ПРОДАЖА [04:40:44]line ТРК (МРК, ГНК) : 41 [04:40:44]line Товар: 2710124130 [04:40:44]line Аи-92-К-2 [04:40:44]line 7.480 * 66.90 [04:40:44]line = 500.41 [04:40:44]line НДС 12% НСП 1% [04:40:44]line > о реализуемом товаре [04:40:44]line ОКРУГЛЕНИЕ: -0.41 [04:40:44]line ИТОГО: 500.00 [04:40:44]line Внесено: 500.00 [04:40:44]line СДАЧА: 0.00 [04:40:44]line НСП 1% : 4.43 [04:40:44]line НДС 12% : 53.14 [04:40:44]line Наличными: 500.00 [04:40:44]line Безнал.: 0.00 [04:40:44]line Место: АЗС № 171 "Партнер Нефть" [04:40:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [04:40:44]line СНО: Общий режим [04:40:44]line Чек 11 27.10.2024 04:40 [04:40:44]line Смена: 544 ФФД: 1.0 [04:40:44]line ЗНМ: 0300000109 [04:40:44]line РНМ: 0000000000091777 [04:40:44]line Версия ККМ: 001 [04:40:44]line ФМ: 0000000000871756 [04:40:44]line ФД: 201719 [04:40:44]line ФПД: 15083489606017 [04:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044045&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201719&fm=15083489606017&tin=02508201610067®Number=0000000000091777&sum=50000 [04:40:44]OFD Sender: Processing packet 201719 [packets to send 112, broken 111] [04:40:44]ProducePacketName [04:40:44]name=ofd_packets/00201719 [04:40:44]OFD Sender: To server: pG, [04:40:44]CommunicateWithHost lk.salyk.kg:30040 [04:40:44]ConnectInit lk.salyk.kg [04:40:44]written 0, free lines is 4095 [04:40:44]Connected sock=11 [04:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B4 30 07 01 F1 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 4D C4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 13 03 00 35 04 06 00 0D B7 E6 0A 39 81 08 71 9A 0D 62 A1 2B B0 [04:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6F A5 47 00 68 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 13 03 00 F4 03 04 00 F3 6F 1D 67 B6 04 01 00 00 9D 4F A7 25 49 19 A1 CD [04:40:44]CommunicateWithHost err = 0 [04:40:44]CheckOFDResponse [04:40:44]1017 (14) - 77093643461234 [04:40:44]1041 (16) - 0000000000871756 [04:40:44]1040 (4) - 201719 [04:40:44]1012 (4) - 26.10.2024 22:40 [04:40:44]1206 (1) - 0 [04:40:44]OFD Sender: Remove packet 201719 [04:40:44]ProducePacketName [04:40:44]name=ofd_packets/00201719 [04:40:44]NVStorageDeleteData [04:40:45]Write to MH i2c: 01 00 00 C7 09 D0 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 07 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 8D 0C 70 [04:40:45]RasterBufferAndPrint [04:40:45]line [04:40:45]line [04:40:45]line [04:40:45]line [04:40:45]line [04:40:45]written 0, free lines is 3218 [04:40:45]MH_Cut [04:40:45]Write to MH i2c: D1 01 00 CE 09 01 A9 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: D1 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: D1 01 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: D1 01 00 CE 09 00 A8 [04:40:45]Write to MH i2c: 01 00 00 CF 09 D8 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]OFD Sender: No OFD packet to send [04:40:45]*** Cut start [04:40:45]*** Purtial cut [04:40:45]*** Stage 1: CUTSNS_PIN = 1 [04:40:46]Read from MH i2c: 01 [04:40:46]MH_I2C_Read... [04:40:46]*** Stop cut motor [04:40:46]*** Cut end [04:40:46]Read from MH i2c: 01 07 00 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: 01 07 00 CF 09 00 00 00 00 00 FF 0F ED [04:40:46]process_action close_receipt done [04:40:46]requested_data is exist [04:40:46]produce_requested_data [04:40:46]requested_item fm.sn is exist - process it [04:40:46]wFMCommunicate request_size=4 [04:40:46]MH_SAM_APDU [04:40:46]CAPDU: 80 11 00 00 [04:40:46]Write to MH i2c: E2 08 00 D0 09 80 11 00 00 00 00 00 00 53 [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:46]Read from MH i2c: E2 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: E2 17 00 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: E2 17 00 D0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A8 [04:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:40:46]wFMCommunicate OK [04:40:46]requested_item fd.num is exist - process it [04:40:46]SAM_PROTO_GetFieldsCounters [04:40:46]wFMCommunicate request_size=4 [04:40:46]MH_SAM_APDU [04:40:46]CAPDU: 80 13 00 00 [04:40:46]Write to MH i2c: E2 08 00 D1 09 80 13 00 00 00 00 00 00 56 [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:46]Read from MH i2c: E2 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: E2 62 00 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: E2 62 00 D1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F7 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [04:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F7 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:40:46]wFMCommunicate OK [04:40:46]SAM_PROTO_GetFieldsCounters done [04:40:46]requested_item shift.num is exist - process it [04:40:46]requested_item shift.opened is exist - process it [04:40:46]req_shift_opened [04:40:46]FM_GetShiftState [04:40:46]SAM_PROTO_GetShiftState [04:40:46]wFMCommunicate request_size=4 [04:40:46]MH_SAM_APDU [04:40:46]CAPDU: 80 13 01 00 [04:40:46]Write to MH i2c: E2 08 00 D2 09 80 13 01 00 00 00 00 00 58 [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:46]Read from MH i2c: E2 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: E2 0E 00 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: E2 0E 00 D2 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5A [04:40:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:40:46]wFMCommunicate OK [04:40:46]SAM_PROTO_GetShiftState done [04:40:46]FM_GetShiftState done [04:40:46]req_shift_opened done [04:40:46]requested_item shift.open_date is exist - process it [04:40:46]req_shift_open_date [04:40:46]req_shift_open_date done [04:40:46]produce_requested_data done [04:40:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201719,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [04:40:46]process_action_free close_receipt [04:40:46]json_value_free [04:40:46]json_value_free done [04:40:46]process_json_proto returns [04:40:46]Send response to host [04:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201719,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [04:40:46]free response buf [04:40:46]execute_script done [04:40:46]execute_script returns [04:40:46]free content buf [04:40:46]Sock 9.Close socket [04:40:46]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]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:44]accept exits with 10 [04:57:44]New connection [04:57:44]New thread 3066936676 created [04:57:44]Thread 3067080036 joined [04:57:44]Waiting for new connection... [04:57:44] Sock 10.Parse request [04:57:44]Sock 10.Check first char [04:57:44]Sock 10.First char is OK [04:57:44]request: POST /json_proto HTTP/1.0 [04:57:44]Method: POST [04:57:44]URL: /json_proto [04:57:44]Method is POST - this is cgi request [04:57:44]url: /json_proto [04:57:44]query_string will be loaded in cgi processing [04:57:44]execute_cgi json_proto POST (null) [04:57:44]execute_cgi path=json_proto method=POST [04:57:44]POST find Content-Length [04:57:44]Host: 172.17.63.195:8080 [04:57:44]Content-Length: 677 [04:57:44]Content-Type: application/json [04:57:44] [04:57:44]POST finish read [04:57:44]Found Content-Length = 677 [04:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [04:57:44]execute_script... [04:57:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [04:57:44]POST & json_proto [04:57:44]process_json_proto [04:57:44]json parsed OK: [04:57:44]protocol is kg_v1.0 [04:57:44]action value=close_receipt [04:57:44]process_action close_receipt [04:57:44]cmd_close_receipt [04:57:44]MH_GetDate [04:57:44]Write to MH i2c: F0 00 00 D3 09 CB [04:57:44]Write i2c OK [04:57:44]MH_I2C_Read... [04:57:44]Read from MH i2c: F0 [04:57:44]MH_I2C_Read... [04:57:44]Read from MH i2c: F0 09 00 [04:57:44]MH_I2C_Read... [04:57:44]Read from MH i2c: F0 09 00 D3 09 00 4B C8 1D 67 68 46 19 67 99 [04:57:44]GetLastDocTimeStamp 1730004045 [04:57:44]current date 1730005067 [04:57:44]FM_GetShiftState [04:57:44]SAM_PROTO_GetShiftState [04:57:44]wFMCommunicate request_size=4 [04:57:44]MH_SAM_APDU [04:57:44]CAPDU: 80 13 01 00 [04:57:44]Write to MH i2c: E2 08 00 D4 09 80 13 01 00 00 00 00 00 5A [04:57:44]Write i2c OK [04:57:44]MH_I2C_Read... [04:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:44]Read from MH i2c: E2 [04:57:44]MH_I2C_Read... [04:57:44]Read from MH i2c: E2 0E 00 [04:57:44]MH_I2C_Read... [04:57:44]Read from MH i2c: E2 0E 00 D4 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5C [04:57:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:57:44]wFMCommunicate OK [04:57:44]SAM_PROTO_GetShiftState done [04:57:44]FM_GetShiftState done [04:57:44]opened in 1729987312 [04:57:44]opened+sec_in_day 1730073712 [04:57:44]quantity*price = 60009 [04:57:44]sum+1 = 60010 [04:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 12 27.10.2024 04:57 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201720 ФПД: 276978406605830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045747&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201720&fm=276978406605830&tin=02508201610067®Number=0000000000091777&sum=60000 [04:57:45]StoreToDocumentArchive [04:57:45]shift 544 fd 201720 [04:57:45]save to /storage/0544/doc_00201720 [04:57:45]save last doc name /storage/0544/doc_00201720 to /storage/kkm_last_doc_name [04:57:45]save OK [04:57:45]Clear old archive folders... [04:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:57:45]tlvbuf is 00093110 [04:57:45]SAM_PROTO_ClearQueue [04:57:45]wFMCommunicate request_size=4 [04:57:45]MH_SAM_APDU [04:57:45]CAPDU: 80 09 00 00 [04:57:45]Write to MH i2c: E2 08 00 E1 09 80 09 00 00 00 00 00 00 5C [04:57:45]Write i2c OK [04:57:45]MH_I2C_Read... [04:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:57:45]Read from MH i2c: E2 [04:57:45]MH_I2C_Read... [04:57:45]Read from MH i2c: E2 03 00 [04:57:45]MH_I2C_Read... [04:57:45]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [04:57:45]RAPDU: 90 00 [04:57:45]wFMCommunicate OK [04:57:45]SAM_PROTO_ClearQueue done [04:57:45]KKMCreateOFDPacket [04:57:45]OFDProtocolAddRootSTLVToBuf [04:57:45]FM_MakeSignedData [04:57:45]FM_MakeSignedData [04:57:45]SAM_PROTO_SignData [04:57:45]wFMCommunicate request_size=4 [04:57:45]MH_SAM_APDU [04:57:45]CAPDU: 80 0D 01 02 [04:57:45]Write to MH i2c: E2 08 00 E2 09 80 0D 01 02 00 00 00 00 64 [04:57:45]Write i2c OK [04:57:45]MH_I2C_Read... [04:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:57:45]Read from MH i2c: E2 [04:57:45]MH_I2C_Read... [04:57:45]Read from MH i2c: E2 03 00 [04:57:45]MH_I2C_Read... [04:57:45]Read from MH i2c: E2 03 00 E2 09 00 90 00 5F [04:57:45]RAPDU: 90 00 [04:57:45]wFMCommunicate OK [04:57:45]wFMCommunicate request_size=255 [04:57:45]MH_SAM_APDU [04:57:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 00 00 00 F4 03 04 00 4B C8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 13 03 00 35 04 06 00 FB [04:57:45]Write to MH i2c: E2 02 01 E3 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 00 00 00 F4 03 04 00 4B C8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 13 03 00 35 04 06 00 FB 00 00 A3 [04:57:45]Write i2c OK [04:57:45]MH_I2C_Read... [04:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:57:46]Read from MH i2c: E2 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: E2 03 00 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: E2 03 00 E3 09 00 90 00 60 [04:57:46]RAPDU: 90 00 [04:57:46]wFMCommunicate OK [04:57:46]wFMCommunicate request_size=10 [04:57:46]MH_SAM_APDU [04:57:46]CAPDU: 80 0D 02 02 05 E9 0F 89 44 06 [04:57:46]Write to MH i2c: E2 0D 00 E4 09 80 0D 02 02 05 00 E9 0F 89 44 06 00 00 3C [04:57:46]Write i2c OK [04:57:46]MH_I2C_Read... [04:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:57:46]Read from MH i2c: E2 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: E2 03 00 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: E2 03 00 E4 09 00 90 00 61 [04:57:46]RAPDU: 90 00 [04:57:46]wFMCommunicate OK [04:57:46]wFMCommunicate request_size=4 [04:57:46]MH_SAM_APDU [04:57:46]CAPDU: 80 0D 03 02 [04:57:46]Write to MH i2c: E2 08 00 E5 09 80 0D 03 02 00 00 00 00 69 [04:57:46]Write i2c OK [04:57:46]MH_I2C_Read... [04:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:57:46]Read from MH i2c: E2 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: E2 0B 00 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: E2 0B 00 E5 09 00 DB 4C EC E0 F1 99 F5 48 90 00 24 [04:57:46]RAPDU: DB 4C EC E0 F1 99 F5 48 90 00 [04:57:46]wFMCommunicate OK [04:57:46]SAM_PROTO_SignData done [04:57:46]FM_MakeSignedData done [04:57:46]CreateOFDProtocolMessage [04:57:46]wFMCommunicate request_size=4 [04:57:46]MH_SAM_APDU [04:57:46]CAPDU: 80 11 00 00 [04:57:46]Write to MH i2c: E2 08 00 E6 09 80 11 00 00 00 00 00 00 69 [04:57:46]Write i2c OK [04:57:46]MH_I2C_Read... [04:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:57:46]Read from MH i2c: E2 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: E2 17 00 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: E2 17 00 E6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BE [04:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:57:46]wFMCommunicate OK [04:57:46]CreateOFDProtocolMessage done [04:57:46]OFDSenderStorePacket 201720 [04:57:46]StoreOFDPacket docnum=201720 [04:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BC 8C 07 01 41 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 00 00 00 F4 03 04 00 4B C8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 13 03 00 35 04 06 00 FB E9 0F 89 44 06 DB 4C EC E0 F1 99 F5 48 [04:57:46]CheckFolder [04:57:46]dirname=/storage/ofd_packets [04:57:46]CheckFolder done [04:57:46]ProducePacketName [04:57:46]name=ofd_packets/00201720 [04:57:46]NVStorageSaveData ofd_packets/00201720 [04:57:46]File name is /storage/ofd_packets/00201720 [04:57:46]Write 301 bytes [04:57:46]NVStorageSaveData done [04:57:46]OFDSenderStorePacket done [04:57:46]KKMCreateOFDPacket done [04:57:46]NVStorageSaveData kkm_last_timestamp [04:57:46]File name is /storage/kkm_last_timestamp [04:57:46]Write 4 bytes [04:57:46]NVStorageSaveData done [04:57:46]ExternCall_PrintAddStr [04:57:46]wPrintStart [04:57:46]Write to MH i2c: 01 00 00 E7 09 F0 [04:57:46]Write i2c OK [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: 01 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: 01 07 00 [04:57:46]MH_I2C_Read... [04:57:46]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 FF 0F 05 [04:57:46]RasterBufferAndPrint [04:57:46]line Счет N : (1)449476 [04:57:46]line ИНН: 02508201610067 [04:57:46]line Контрольно-Кассовый Чек [04:57:46]line ПРОДАЖА [04:57:46]line ТРК (МРК, ГНК) : 62 [04:57:46]line Товар: 2710124130 [04:57:46]line Аи-92-К-2 [04:57:46]line 8.970 * 66.90 [04:57:46]line = 600.09 [04:57:46]line НДС 12% НСП 1% [04:57:46]line > о реализуемом товаре [04:57:46]line ОКРУГЛЕНИЕ: -0.09 [04:57:46]line ИТОГО: 600.00 [04:57:46]line Внесено: 600.00 [04:57:46]line СДАЧА: 0.00 [04:57:46]line НСП 1% : 5.31 [04:57:46]line НДС 12% : 63.73 [04:57:46]line Наличными: 600.00 [04:57:46]line Безнал.: 0.00 [04:57:46]line Место: АЗС № 171 "Партнер Нефть" [04:57:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [04:57:46]line СНО: Общий режим [04:57:46]line Чек 12 27.10.2024 04:57 [04:57:46]line Смена: 544 ФФД: 1.0 [04:57:46]line ЗНМ: 0300000109 [04:57:46]line РНМ: 0000000000091777 [04:57:46]line Версия ККМ: 001 [04:57:46]line ФМ: 0000000000871756 [04:57:46]line ФД: 201720 [04:57:46]line ФПД: 276978406605830 [04:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045747&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201720&fm=276978406605830&tin=02508201610067®Number=0000000000091777&sum=60000 [04:57:46]OFD Sender: Processing packet 201720 [packets to send 112, broken 111] [04:57:46]ProducePacketName [04:57:46]name=ofd_packets/00201720 [04:57:46]OFD Sender: To server: pG, [04:57:46]CommunicateWithHost lk.salyk.kg:30040 [04:57:46]ConnectInit lk.salyk.kg [04:57:46]written 0, free lines is 4095 [04:57:46]Connected sock=8 [04:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BC 8C 07 01 41 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0C 00 00 00 F4 03 04 00 4B C8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 13 03 00 35 04 06 00 FB E9 0F 89 44 06 DB 4C EC E0 F1 99 F5 48 [04:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A9 D8 47 00 A9 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 13 03 00 F4 03 04 00 F1 73 1D 67 B6 04 01 00 00 27 E7 BD 38 99 8D 18 B7 [04:57:46]CommunicateWithHost err = 0 [04:57:46]CheckOFDResponse [04:57:46]1017 (14) - 77093643461234 [04:57:46]1041 (16) - 0000000000871756 [04:57:46]1040 (4) - 201720 [04:57:46]1012 (4) - 26.10.2024 22:57 [04:57:46]1206 (1) - 0 [04:57:46]OFD Sender: Remove packet 201720 [04:57:46]ProducePacketName [04:57:46]name=ofd_packets/00201720 [04:57:46]NVStorageDeleteData [04:57:47]Write to MH i2c: 01 00 00 12 0A 1C [04:57:47]Write i2c OK [04:57:47]MH_I2C_Read... [04:57:47]Read from MH i2c: 01 [04:57:47]MH_I2C_Read... [04:57:47]Read from MH i2c: 01 07 00 [04:57:47]MH_I2C_Read... [04:57:47]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 91 0C C0 [04:57:47]RasterBufferAndPrint [04:57:47]line [04:57:47]line [04:57:47]line [04:57:47]line [04:57:47]line [04:57:47]written 0, free lines is 3221 [04:57:47]MH_Cut [04:57:47]Write to MH i2c: D1 01 00 19 0A 01 F5 [04:57:47]Write i2c OK [04:57:47]MH_I2C_Read... [04:57:47]Read from MH i2c: D1 [04:57:47]MH_I2C_Read... [04:57:47]Read from MH i2c: D1 01 00 [04:57:47]MH_I2C_Read... [04:57:47]Read from MH i2c: D1 01 00 19 0A 00 F4 [04:57:47]Write to MH i2c: 01 00 00 1A 0A 24 [04:57:47]Write i2c OK [04:57:47]MH_I2C_Read... [04:57:47]OFD Sender: No OFD packet to send [04:57:47]*** Cut start [04:57:47]*** Purtial cut [04:57:47]*** Stage 1: CUTSNS_PIN = 1 [04:57:48]Read from MH i2c: 01 [04:57:48]MH_I2C_Read... [04:57:48]*** Stop cut motor [04:57:48]*** Cut end [04:57:48]Read from MH i2c: 01 07 00 [04:57:48]MH_I2C_Read... [04:57:48]Read from MH i2c: 01 07 00 1A 0A 00 00 00 00 00 FF 0F 39 [04:57:48]process_action close_receipt done [04:57:48]requested_data is exist [04:57:48]produce_requested_data [04:57:48]requested_item fm.sn is exist - process it [04:57:48]wFMCommunicate request_size=4 [04:57:48]MH_SAM_APDU [04:57:48]CAPDU: 80 11 00 00 [04:57:48]Write to MH i2c: E2 08 00 1B 0A 80 11 00 00 00 00 00 00 9F [04:57:48]Write i2c OK [04:57:48]MH_I2C_Read... [04:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:57:48]Read from MH i2c: E2 [04:57:48]MH_I2C_Read... [04:57:48]Read from MH i2c: E2 17 00 [04:57:48]MH_I2C_Read... [04:57:48]Read from MH i2c: E2 17 00 1B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [04:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:57:48]wFMCommunicate OK [04:57:48]requested_item fd.num is exist - process it [04:57:48]SAM_PROTO_GetFieldsCounters [04:57:48]wFMCommunicate request_size=4 [04:57:48]MH_SAM_APDU [04:57:48]CAPDU: 80 13 00 00 [04:57:48]Write to MH i2c: E2 08 00 1C 0A 80 13 00 00 00 00 00 00 A2 [04:57:48]Write i2c OK [04:57:48]MH_I2C_Read... [04:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:57:48]Read from MH i2c: E2 [04:57:48]MH_I2C_Read... [04:57:48]Read from MH i2c: E2 62 00 [04:57:48]MH_I2C_Read... [04:57:48]Read from MH i2c: E2 62 00 1C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F8 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [04:57:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F8 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:57:48]wFMCommunicate OK [04:57:48]SAM_PROTO_GetFieldsCounters done [04:57:48]requested_item shift.num is exist - process it [04:57:48]requested_item shift.opened is exist - process it [04:57:48]req_shift_opened [04:57:48]FM_GetShiftState [04:57:48]SAM_PROTO_GetShiftState [04:57:48]wFMCommunicate request_size=4 [04:57:48]MH_SAM_APDU [04:57:48]CAPDU: 80 13 01 00 [04:57:48]Write to MH i2c: E2 08 00 1D 0A 80 13 01 00 00 00 00 00 A4 [04:57:48]Write i2c OK [04:57:48]MH_I2C_Read... [04:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:48]Read from MH i2c: E2 [04:57:48]MH_I2C_Read... [04:57:48]Read from MH i2c: E2 0E 00 [04:57:48]MH_I2C_Read... [04:57:48]Read from MH i2c: E2 0E 00 1D 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A6 [04:57:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:57:48]wFMCommunicate OK [04:57:48]SAM_PROTO_GetShiftState done [04:57:48]FM_GetShiftState done [04:57:48]req_shift_opened done [04:57:48]requested_item shift.open_date is exist - process it [04:57:48]req_shift_open_date [04:57:48]req_shift_open_date done [04:57:48]produce_requested_data done [04:57:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201720,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [04:57:48]process_action_free close_receipt [04:57:48]json_value_free [04:57:48]json_value_free done [04:57:48]process_json_proto returns [04:57:48]Send response to host [04:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201720,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [04:57:48]free response buf [04:57:48]execute_script done [04:57:48]execute_script returns [04:57:48]free content buf [04:57:48]Sock 10.Close socket [04:57:48]Sock 10.Thread stoped [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:37]accept exits with 9 [04:59:37]New connection [04:59:37]New thread 3067080036 created [04:59:37]Thread 3066936676 joined [04:59:37]Waiting for new connection... [04:59:37] Sock 9.Parse request [04:59:37]Sock 9.Check first char [04:59:37]Sock 9.First char is OK [04:59:37]request: POST /json_proto HTTP/1.0 [04:59:37]Method: POST [04:59:37]URL: /json_proto [04:59:37]Method is POST - this is cgi request [04:59:37]url: /json_proto [04:59:37]query_string will be loaded in cgi processing [04:59:37]execute_cgi json_proto POST (null) [04:59:37]execute_cgi path=json_proto method=POST [04:59:37]POST find Content-Length [04:59:37]Host: 172.17.63.195:8080 [04:59:37]Content-Length: 670 [04:59:37]Content-Type: application/json [04:59:37] [04:59:37]POST finish read [04:59:37]Found Content-Length = 670 [04:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 6.580, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:59:37]execute_script... [04:59:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 6.580, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:59:37]POST & json_proto [04:59:37]process_json_proto [04:59:37]json parsed OK: [04:59:37]protocol is kg_v1.0 [04:59:37]action value=close_receipt [04:59:37]process_action close_receipt [04:59:37]cmd_close_receipt [04:59:37]MH_GetDate [04:59:37]Write to MH i2c: F0 00 00 1E 0A 17 [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: F0 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: F0 09 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: F0 09 00 1E 0A 00 BC C8 1D 67 68 46 19 67 56 [04:59:37]GetLastDocTimeStamp 1730005067 [04:59:37]current date 1730005180 [04:59:37]FM_GetShiftState [04:59:37]SAM_PROTO_GetShiftState [04:59:37]wFMCommunicate request_size=4 [04:59:37]MH_SAM_APDU [04:59:37]CAPDU: 80 13 01 00 [04:59:37]Write to MH i2c: E2 08 00 1F 0A 80 13 01 00 00 00 00 00 A6 [04:59:37]Write i2c OK [04:59:37]MH_I2C_Read... [04:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:37]Read from MH i2c: E2 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 0E 00 [04:59:37]MH_I2C_Read... [04:59:37]Read from MH i2c: E2 0E 00 1F 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A8 [04:59:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:59:37]wFMCommunicate OK [04:59:37]SAM_PROTO_GetShiftState done [04:59:37]FM_GetShiftState done [04:59:37]opened in 1729987312 [04:59:37]opened+sec_in_day 1730073712 [04:59:37]quantity*price = 45007 [04:59:37]sum+1 = 45008 [04:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 13 27.10.2024 04:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201721 ФПД: 92593870571602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045940&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201721&fm=92593870571602&tin=02508201610067®Number=0000000000091777&sum=45000 [04:59:38]StoreToDocumentArchive [04:59:38]shift 544 fd 201721 [04:59:38]save to /storage/0544/doc_00201721 [04:59:38]save last doc name /storage/0544/doc_00201721 to /storage/kkm_last_doc_name [04:59:38]save OK [04:59:38]Clear old archive folders... [04:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:59:38]tlvbuf is 0009F5B0 [04:59:38]SAM_PROTO_ClearQueue [04:59:38]wFMCommunicate request_size=4 [04:59:38]MH_SAM_APDU [04:59:38]CAPDU: 80 09 00 00 [04:59:38]Write to MH i2c: E2 08 00 2C 0A 80 09 00 00 00 00 00 00 A8 [04:59:38]Write i2c OK [04:59:38]MH_I2C_Read... [04:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:59:38]Read from MH i2c: E2 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: E2 03 00 [04:59:38]MH_I2C_Read... [04:59:38]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [04:59:38]RAPDU: 90 00 [04:59:38]wFMCommunicate OK [04:59:38]SAM_PROTO_ClearQueue done [04:59:38]KKMCreateOFDPacket [04:59:38]OFDProtocolAddRootSTLVToBuf [04:59:38]FM_MakeSignedData [04:59:38]FM_MakeSignedData [04:59:38]SAM_PROTO_SignData [04:59:38]wFMCommunicate request_size=4 [04:59:38]MH_SAM_APDU [04:59:38]CAPDU: 80 0D 01 02 [04:59:38]Write to MH i2c: E2 08 00 2D 0A 80 0D 01 02 00 00 00 00 B0 [04:59:38]Write i2c OK [04:59:38]MH_I2C_Read... [04:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:59:39]Read from MH i2c: E2 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 03 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [04:59:39]RAPDU: 90 00 [04:59:39]wFMCommunicate OK [04:59:39]wFMCommunicate request_size=255 [04:59:39]MH_SAM_APDU [04:59:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 BC C8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 13 03 00 35 04 06 00 [04:59:39]Write to MH i2c: E2 02 01 2E 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 BC C8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 13 03 00 35 04 06 00 00 00 FC [04:59:39]Write i2c OK [04:59:39]MH_I2C_Read... [04:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:39]Read from MH i2c: E2 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 03 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [04:59:39]RAPDU: 90 00 [04:59:39]wFMCommunicate OK [04:59:39]wFMCommunicate request_size=11 [04:59:39]MH_SAM_APDU [04:59:39]CAPDU: 80 0D 02 02 06 54 36 B0 C3 88 52 [04:59:39]Write to MH i2c: E2 0E 00 2F 0A 80 0D 02 02 06 00 54 36 B0 C3 88 52 00 00 96 [04:59:39]Write i2c OK [04:59:39]MH_I2C_Read... [04:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:39]Read from MH i2c: E2 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 03 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [04:59:39]RAPDU: 90 00 [04:59:39]wFMCommunicate OK [04:59:39]wFMCommunicate request_size=4 [04:59:39]MH_SAM_APDU [04:59:39]CAPDU: 80 0D 03 02 [04:59:39]Write to MH i2c: E2 08 00 30 0A 80 0D 03 02 00 00 00 00 B5 [04:59:39]Write i2c OK [04:59:39]MH_I2C_Read... [04:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:39]Read from MH i2c: E2 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 0B 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 0B 00 30 0A 00 79 9F 72 3A 97 8A 42 C4 90 00 A1 [04:59:39]RAPDU: 79 9F 72 3A 97 8A 42 C4 90 00 [04:59:39]wFMCommunicate OK [04:59:39]SAM_PROTO_SignData done [04:59:39]FM_MakeSignedData done [04:59:39]CreateOFDProtocolMessage [04:59:39]wFMCommunicate request_size=4 [04:59:39]MH_SAM_APDU [04:59:39]CAPDU: 80 11 00 00 [04:59:39]Write to MH i2c: E2 08 00 31 0A 80 11 00 00 00 00 00 00 B5 [04:59:39]Write i2c OK [04:59:39]MH_I2C_Read... [04:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:39]Read from MH i2c: E2 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 17 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: E2 17 00 31 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0A [04:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:59:39]wFMCommunicate OK [04:59:39]CreateOFDProtocolMessage done [04:59:39]OFDSenderStorePacket 201721 [04:59:39]StoreOFDPacket docnum=201721 [04:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 96 43 08 01 DE EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 BC C8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 13 03 00 35 04 06 00 54 36 B0 C3 88 52 79 9F 72 3A 97 8A 42 C4 [04:59:39]CheckFolder [04:59:39]dirname=/storage/ofd_packets [04:59:39]CheckFolder done [04:59:39]ProducePacketName [04:59:39]name=ofd_packets/00201721 [04:59:39]NVStorageSaveData ofd_packets/00201721 [04:59:39]File name is /storage/ofd_packets/00201721 [04:59:39]Write 302 bytes [04:59:39]NVStorageSaveData done [04:59:39]OFDSenderStorePacket done [04:59:39]KKMCreateOFDPacket done [04:59:39]NVStorageSaveData kkm_last_timestamp [04:59:39]File name is /storage/kkm_last_timestamp [04:59:39]Write 4 bytes [04:59:39]NVStorageSaveData done [04:59:39]ExternCall_PrintAddStr [04:59:39]wPrintStart [04:59:39]Write to MH i2c: 01 00 00 32 0A 3C [04:59:39]Write i2c OK [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: 01 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: 01 07 00 [04:59:39]MH_I2C_Read... [04:59:39]Read from MH i2c: 01 07 00 32 0A 00 00 00 00 00 FF 0F 51 [04:59:39]RasterBufferAndPrint [04:59:39]line Счет N : (1)449477 [04:59:39]line ИНН: 02508201610067 [04:59:39]line Контрольно-Кассовый Чек [04:59:39]line ПРОДАЖА [04:59:39]line ТРК (МРК, ГНК) : 42 [04:59:39]line Товар: 2710124130 [04:59:39]line SUPER 92-К-5 [04:59:39]line 6.580 * 68.40 [04:59:39]line = 450.07 [04:59:39]line НДС 12% НСП 1% [04:59:39]line > о реализуемом товаре [04:59:39]line ОКРУГЛЕНИЕ: -0.07 [04:59:39]line ИТОГО: 450.00 [04:59:39]line Внесено: 450.00 [04:59:39]line СДАЧА: 0.00 [04:59:39]line НСП 1% : 3.98 [04:59:39]line НДС 12% : 47.79 [04:59:39]line Наличными: 450.00 [04:59:39]line Безнал.: 0.00 [04:59:39]line Место: АЗС № 171 "Партнер Нефть" [04:59:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [04:59:39]line СНО: Общий режим [04:59:39]line Чек 13 27.10.2024 04:59 [04:59:39]line Смена: 544 ФФД: 1.0 [04:59:39]line ЗНМ: 0300000109 [04:59:39]line РНМ: 0000000000091777 [04:59:39]line Версия ККМ: 001 [04:59:39]line ФМ: 0000000000871756 [04:59:39]line ФД: 201721 [04:59:39]line ФПД: 92593870571602 [04:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045940&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201721&fm=92593870571602&tin=02508201610067®Number=0000000000091777&sum=45000 [04:59:39]OFD Sender: Processing packet 201721 [packets to send 112, broken 111] [04:59:39]ProducePacketName [04:59:39]name=ofd_packets/00201721 [04:59:39]OFD Sender: To server: pG, [04:59:39]CommunicateWithHost lk.salyk.kg:30040 [04:59:39]ConnectInit lk.salyk.kg [04:59:39]written 0, free lines is 4095 [04:59:39]Connected sock=10 [04:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 96 43 08 01 DE EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 BC C8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 13 03 00 35 04 06 00 54 36 B0 C3 88 52 79 9F 72 3A 97 8A 42 C4 [04:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 89 7A 47 00 CF DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 13 03 00 F4 03 04 00 63 74 1D 67 B6 04 01 00 00 85 D3 12 98 56 05 E6 80 [04:59:40]CommunicateWithHost err = 0 [04:59:40]CheckOFDResponse [04:59:40]1017 (14) - 77093643461234 [04:59:40]1041 (16) - 0000000000871756 [04:59:40]1040 (4) - 201721 [04:59:40]1012 (4) - 26.10.2024 22:59 [04:59:40]1206 (1) - 0 [04:59:40]OFD Sender: Remove packet 201721 [04:59:40]ProducePacketName [04:59:40]name=ofd_packets/00201721 [04:59:40]NVStorageDeleteData [04:59:40]Write to MH i2c: 01 00 00 5D 0A 67 [04:59:40]Write i2c OK [04:59:40]MH_I2C_Read... [04:59:40]Read from MH i2c: 01 [04:59:40]MH_I2C_Read... [04:59:40]Read from MH i2c: 01 07 00 [04:59:40]MH_I2C_Read... [04:59:40]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 99 0C 13 [04:59:40]RasterBufferAndPrint [04:59:40]line [04:59:40]line [04:59:40]line [04:59:40]line [04:59:40]line [04:59:40]written 0, free lines is 3231 [04:59:40]MH_Cut [04:59:40]Write to MH i2c: D1 01 00 64 0A 01 40 [04:59:40]Write i2c OK [04:59:40]MH_I2C_Read... [04:59:40]Read from MH i2c: D1 [04:59:40]MH_I2C_Read... [04:59:40]Read from MH i2c: D1 01 00 [04:59:40]MH_I2C_Read... [04:59:40]Read from MH i2c: D1 01 00 64 0A 00 3F [04:59:40]Write to MH i2c: 01 00 00 65 0A 6F [04:59:40]Write i2c OK [04:59:40]MH_I2C_Read... [04:59:40]OFD Sender: No OFD packet to send [04:59:41]*** Cut start [04:59:41]*** Purtial cut [04:59:41]*** Stage 1: CUTSNS_PIN = 1 [04:59:41]Read from MH i2c: 01 [04:59:41]MH_I2C_Read... [04:59:41]*** Stop cut motor [04:59:41]*** Cut end [04:59:41]Read from MH i2c: 01 07 00 [04:59:41]MH_I2C_Read... [04:59:41]Read from MH i2c: 01 07 00 65 0A 00 00 00 00 00 FF 0F 84 [04:59:41]process_action close_receipt done [04:59:41]requested_data is exist [04:59:41]produce_requested_data [04:59:41]requested_item fm.sn is exist - process it [04:59:41]wFMCommunicate request_size=4 [04:59:41]MH_SAM_APDU [04:59:41]CAPDU: 80 11 00 00 [04:59:41]Write to MH i2c: E2 08 00 66 0A 80 11 00 00 00 00 00 00 EA [04:59:41]Write i2c OK [04:59:41]MH_I2C_Read... [04:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:41]Read from MH i2c: E2 [04:59:41]MH_I2C_Read... [04:59:41]Read from MH i2c: E2 17 00 [04:59:41]MH_I2C_Read... [04:59:41]Read from MH i2c: E2 17 00 66 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [04:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:59:41]wFMCommunicate OK [04:59:41]requested_item fd.num is exist - process it [04:59:41]SAM_PROTO_GetFieldsCounters [04:59:41]wFMCommunicate request_size=4 [04:59:41]MH_SAM_APDU [04:59:41]CAPDU: 80 13 00 00 [04:59:41]Write to MH i2c: E2 08 00 67 0A 80 13 00 00 00 00 00 00 ED [04:59:41]Write i2c OK [04:59:41]MH_I2C_Read... [04:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:41]Read from MH i2c: E2 [04:59:41]MH_I2C_Read... [04:59:41]Read from MH i2c: E2 62 00 [04:59:41]MH_I2C_Read... [04:59:41]Read from MH i2c: E2 62 00 67 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F9 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [04:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F9 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:59:41]wFMCommunicate OK [04:59:41]SAM_PROTO_GetFieldsCounters done [04:59:41]requested_item shift.num is exist - process it [04:59:41]requested_item shift.opened is exist - process it [04:59:41]req_shift_opened [04:59:41]FM_GetShiftState [04:59:41]SAM_PROTO_GetShiftState [04:59:41]wFMCommunicate request_size=4 [04:59:41]MH_SAM_APDU [04:59:41]CAPDU: 80 13 01 00 [04:59:41]Write to MH i2c: E2 08 00 68 0A 80 13 01 00 00 00 00 00 EF [04:59:41]Write i2c OK [04:59:41]MH_I2C_Read... [04:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:41]Read from MH i2c: E2 [04:59:41]MH_I2C_Read... [04:59:41]Read from MH i2c: E2 0E 00 [04:59:41]MH_I2C_Read... [04:59:41]Read from MH i2c: E2 0E 00 68 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F1 [04:59:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [04:59:41]wFMCommunicate OK [04:59:41]SAM_PROTO_GetShiftState done [04:59:41]FM_GetShiftState done [04:59:41]req_shift_opened done [04:59:41]requested_item shift.open_date is exist - process it [04:59:41]req_shift_open_date [04:59:41]req_shift_open_date done [04:59:41]produce_requested_data done [04:59:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201721,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [04:59:41]process_action_free close_receipt [04:59:41]json_value_free [04:59:41]json_value_free done [04:59:41]process_json_proto returns [04:59:41]Send response to host [04:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201721,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [04:59:41]free response buf [04:59:41]execute_script done [04:59:41]execute_script returns [04:59:41]free content buf [04:59:41]Sock 9.Close socket [04:59:41]Sock 9.Thread stoped [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]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:13]accept exits with 8 [05:13:13]New connection [05:13:13]New thread 3066936676 created [05:13:13]Thread 3067080036 joined [05:13:13]Waiting for new connection... [05:13:13] Sock 8.Parse request [05:13:13]Sock 8.Check first char [05:13:13]Sock 8.First char is OK [05:13:13]request: POST /json_proto HTTP/1.0 [05:13:13]Method: POST [05:13:13]URL: /json_proto [05:13:13]Method is POST - this is cgi request [05:13:13]url: /json_proto [05:13:13]query_string will be loaded in cgi processing [05:13:13]execute_cgi json_proto POST (null) [05:13:13]execute_cgi path=json_proto method=POST [05:13:13]POST find Content-Length [05:13:13]Host: 172.17.63.195:8080 [05:13:13]Content-Length: 679 [05:13:13]Content-Type: application/json [05:13:13] [05:13:13]POST finish read [05:13:13]Found Content-Length = 679 [05:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:13:13]execute_script... [05:13:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:13:13]POST & json_proto [05:13:13]process_json_proto [05:13:13]json parsed OK: [05:13:13]protocol is kg_v1.0 [05:13:13]action value=close_receipt [05:13:13]process_action close_receipt [05:13:13]cmd_close_receipt [05:13:13]MH_GetDate [05:13:13]Write to MH i2c: F0 00 00 69 0A 62 [05:13:13]Write i2c OK [05:13:13]MH_I2C_Read... [05:13:13]Read from MH i2c: F0 [05:13:13]MH_I2C_Read... [05:13:13]Read from MH i2c: F0 09 00 [05:13:13]MH_I2C_Read... [05:13:13]Read from MH i2c: F0 09 00 69 0A 00 EC CB 1D 67 68 46 19 67 D4 [05:13:13]GetLastDocTimeStamp 1730005180 [05:13:13]current date 1730005996 [05:13:13]FM_GetShiftState [05:13:13]SAM_PROTO_GetShiftState [05:13:13]wFMCommunicate request_size=4 [05:13:13]MH_SAM_APDU [05:13:13]CAPDU: 80 13 01 00 [05:13:13]Write to MH i2c: E2 08 00 6A 0A 80 13 01 00 00 00 00 00 F1 [05:13:13]Write i2c OK [05:13:13]MH_I2C_Read... [05:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:13]Read from MH i2c: E2 [05:13:13]MH_I2C_Read... [05:13:13]Read from MH i2c: E2 0E 00 [05:13:13]MH_I2C_Read... [05:13:13]Read from MH i2c: E2 0E 00 6A 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F3 [05:13:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:13:13]wFMCommunicate OK [05:13:13]SAM_PROTO_GetShiftState done [05:13:13]FM_GetShiftState done [05:13:13]opened in 1729987312 [05:13:13]opened+sec_in_day 1730073712 [05:13:13]quantity*price = 150037 [05:13:13]sum+1 = 150039 [05:13:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 14 27.10.2024 05:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201722 ФПД: 97833328410467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T051316&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201722&fm=97833328410467&tin=02508201610067®Number=0000000000091777&sum=150000 [05:13:14]StoreToDocumentArchive [05:13:14]shift 544 fd 201722 [05:13:14]save to /storage/0544/doc_00201722 [05:13:14]save last doc name /storage/0544/doc_00201722 to /storage/kkm_last_doc_name [05:13:14]save OK [05:13:14]Clear old archive folders... [05:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:13:14]tlvbuf is 000F2DE0 [05:13:14]SAM_PROTO_ClearQueue [05:13:14]wFMCommunicate request_size=4 [05:13:14]MH_SAM_APDU [05:13:14]CAPDU: 80 09 00 00 [05:13:14]Write to MH i2c: E2 08 00 77 0A 80 09 00 00 00 00 00 00 F3 [05:13:14]Write i2c OK [05:13:14]MH_I2C_Read... [05:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:13:14]Read from MH i2c: E2 [05:13:14]MH_I2C_Read... [05:13:14]Read from MH i2c: E2 03 00 [05:13:14]MH_I2C_Read... [05:13:14]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [05:13:14]RAPDU: 90 00 [05:13:14]wFMCommunicate OK [05:13:14]SAM_PROTO_ClearQueue done [05:13:14]KKMCreateOFDPacket [05:13:14]OFDProtocolAddRootSTLVToBuf [05:13:14]FM_MakeSignedData [05:13:14]FM_MakeSignedData [05:13:14]SAM_PROTO_SignData [05:13:14]wFMCommunicate request_size=4 [05:13:14]MH_SAM_APDU [05:13:14]CAPDU: 80 0D 01 02 [05:13:14]Write to MH i2c: E2 08 00 78 0A 80 0D 01 02 00 00 00 00 FB [05:13:14]Write i2c OK [05:13:14]MH_I2C_Read... [05:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:13:14]Read from MH i2c: E2 [05:13:14]MH_I2C_Read... [05:13:14]Read from MH i2c: E2 03 00 [05:13:14]MH_I2C_Read... [05:13:14]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [05:13:14]RAPDU: 90 00 [05:13:14]wFMCommunicate OK [05:13:14]wFMCommunicate request_size=255 [05:13:14]MH_SAM_APDU [05:13:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EC CB 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 13 03 00 35 04 06 00 58 FA 98 C9 [05:13:14]Write to MH i2c: E2 02 01 79 0A 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EC CB 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 13 03 00 35 04 06 00 58 FA 98 C9 00 00 2A [05:13:14]Write i2c OK [05:13:14]MH_I2C_Read... [05:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:15]Read from MH i2c: E2 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: E2 03 00 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [05:13:15]RAPDU: 90 00 [05:13:15]wFMCommunicate OK [05:13:15]wFMCommunicate request_size=7 [05:13:15]MH_SAM_APDU [05:13:15]CAPDU: 80 0D 02 02 02 7F 63 [05:13:15]Write to MH i2c: E2 0A 00 7A 0A 80 0D 02 02 02 00 7F 63 00 00 E4 [05:13:15]Write i2c OK [05:13:15]MH_I2C_Read... [05:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:15]Read from MH i2c: E2 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: E2 03 00 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [05:13:15]RAPDU: 90 00 [05:13:15]wFMCommunicate OK [05:13:15]wFMCommunicate request_size=4 [05:13:15]MH_SAM_APDU [05:13:15]CAPDU: 80 0D 03 02 [05:13:15]Write to MH i2c: E2 08 00 7B 0A 80 0D 03 02 00 00 00 00 00 [05:13:15]Write i2c OK [05:13:15]MH_I2C_Read... [05:13:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:13:15]Read from MH i2c: E2 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: E2 0B 00 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: E2 0B 00 7B 0A 00 A7 AF B1 61 0C F8 86 C9 90 00 BC [05:13:15]RAPDU: A7 AF B1 61 0C F8 86 C9 90 00 [05:13:15]wFMCommunicate OK [05:13:15]SAM_PROTO_SignData done [05:13:15]FM_MakeSignedData done [05:13:15]CreateOFDProtocolMessage [05:13:15]wFMCommunicate request_size=4 [05:13:15]MH_SAM_APDU [05:13:15]CAPDU: 80 11 00 00 [05:13:15]Write to MH i2c: E2 08 00 7C 0A 80 11 00 00 00 00 00 00 00 [05:13:15]Write i2c OK [05:13:15]MH_I2C_Read... [05:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:15]Read from MH i2c: E2 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: E2 17 00 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: E2 17 00 7C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 55 [05:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:13:15]wFMCommunicate OK [05:13:15]CreateOFDProtocolMessage done [05:13:15]OFDSenderStorePacket 201722 [05:13:15]StoreOFDPacket docnum=201722 [05:13:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 65 A5 04 01 27 AE 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EC CB 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 13 03 00 35 04 06 00 58 FA 98 C9 7F 63 A7 AF B1 61 0C F8 86 C9 [05:13:15]CheckFolder [05:13:15]dirname=/storage/ofd_packets [05:13:15]CheckFolder done [05:13:15]ProducePacketName [05:13:15]name=ofd_packets/00201722 [05:13:15]NVStorageSaveData ofd_packets/00201722 [05:13:15]File name is /storage/ofd_packets/00201722 [05:13:15]Write 298 bytes [05:13:15]NVStorageSaveData done [05:13:15]OFDSenderStorePacket done [05:13:15]KKMCreateOFDPacket done [05:13:15]NVStorageSaveData kkm_last_timestamp [05:13:15]File name is /storage/kkm_last_timestamp [05:13:15]Write 4 bytes [05:13:15]NVStorageSaveData done [05:13:15]ExternCall_PrintAddStr [05:13:15]wPrintStart [05:13:15]Write to MH i2c: 01 00 00 7D 0A 87 [05:13:15]Write i2c OK [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: 01 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: 01 07 00 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: 01 07 00 7D 0A 00 00 00 00 00 FF 0F 9C [05:13:15]RasterBufferAndPrint [05:13:15]line Счет N : (1)449478 [05:13:15]line ИНН: 02508201610067 [05:13:15]line Контрольно-Кассовый Чек [05:13:15]line ПРОДАЖА [05:13:15]line ТРК (МРК, ГНК) : 11 [05:13:15]line Товар: 2710194210 [05:13:15]line ДТ-К-2 [05:13:15]line 19.690 * 76.20 [05:13:15]line = 1500.38 [05:13:15]line НДС 12% НСП 1% [05:13:15]line > о реализуемом товаре [05:13:15]line ОКРУГЛЕНИЕ: -0.38 [05:13:15]line ИТОГО: 1500.00 [05:13:15]line Внесено: 1500.00 [05:13:15]line СДАЧА: 0.00 [05:13:15]line НСП 1% : 13.28 [05:13:15]line НДС 12% : 159.33 [05:13:15]line Наличными: 1500.00 [05:13:15]line Безнал.: 0.00 [05:13:15]line Место: АЗС № 171 "Партнер Нефть" [05:13:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:13:15]line СНО: Общий режим [05:13:15]line Чек 14 27.10.2024 05:13 [05:13:15]line Смена: 544 ФФД: 1.0 [05:13:15]line ЗНМ: 0300000109 [05:13:15]line РНМ: 0000000000091777 [05:13:15]line Версия ККМ: 001 [05:13:15]line ФМ: 0000000000871756 [05:13:15]line ФД: 201722 [05:13:15]line ФПД: 97833328410467 [05:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T051316&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201722&fm=97833328410467&tin=02508201610067®Number=0000000000091777&sum=150000 [05:13:15]OFD Sender: Processing packet 201722 [packets to send 112, broken 111] [05:13:15]ProducePacketName [05:13:15]name=ofd_packets/00201722 [05:13:15]OFD Sender: To server: pG, [05:13:15]CommunicateWithHost lk.salyk.kg:30040 [05:13:15]ConnectInit lk.salyk.kg [05:13:15]written 0, free lines is 4095 [05:13:15]Connected sock=10 [05:13:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 65 A5 04 01 27 AE 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EC CB 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 13 03 00 35 04 06 00 58 FA 98 C9 7F 63 A7 AF B1 61 0C F8 86 C9 [05:13:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3B 4F 47 00 2C FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 13 03 00 F4 03 04 00 92 77 1D 67 B6 04 01 00 00 FC 84 D6 75 2C F8 9F 7D [05:13:15]CommunicateWithHost err = 0 [05:13:15]CheckOFDResponse [05:13:15]1017 (14) - 77093643461234 [05:13:15]1041 (16) - 0000000000871756 [05:13:15]1040 (4) - 201722 [05:13:15]1012 (4) - 26.10.2024 23:13 [05:13:15]1206 (1) - 0 [05:13:15]OFD Sender: Remove packet 201722 [05:13:15]ProducePacketName [05:13:15]name=ofd_packets/00201722 [05:13:15]NVStorageDeleteData [05:13:15]Write to MH i2c: 01 00 00 A8 0A B2 [05:13:15]Write i2c OK [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: 01 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: 01 07 00 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 89 0C 4E [05:13:15]RasterBufferAndPrint [05:13:15]line [05:13:15]line [05:13:15]line [05:13:15]line [05:13:15]line [05:13:15]written 0, free lines is 3213 [05:13:15]MH_Cut [05:13:15]Write to MH i2c: D1 01 00 AF 0A 01 8B [05:13:15]Write i2c OK [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: D1 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: D1 01 00 [05:13:15]MH_I2C_Read... [05:13:15]Read from MH i2c: D1 01 00 AF 0A 00 8A [05:13:15]Write to MH i2c: 01 00 00 B0 0A BA [05:13:15]Write i2c OK [05:13:15]MH_I2C_Read... [05:13:16]OFD Sender: No OFD packet to send [05:13:16]*** Cut start [05:13:16]*** Purtial cut [05:13:16]*** CUTSNS_PIN = 0 [05:13:17]*** Stage 1: CUTSNS_PIN = 1 [05:13:18]Read from MH i2c: 01 [05:13:18]MH_I2C_Read... [05:13:18]*** Stop cut motor [05:13:18]*** Cut end [05:13:18]Read from MH i2c: 01 07 00 [05:13:18]MH_I2C_Read... [05:13:18]Read from MH i2c: 01 07 00 B0 0A 00 00 00 00 00 FF 0F CF [05:13:18]process_action close_receipt done [05:13:18]requested_data is exist [05:13:18]produce_requested_data [05:13:18]requested_item fm.sn is exist - process it [05:13:18]wFMCommunicate request_size=4 [05:13:18]MH_SAM_APDU [05:13:18]CAPDU: 80 11 00 00 [05:13:18]Write to MH i2c: E2 08 00 B1 0A 80 11 00 00 00 00 00 00 35 [05:13:18]Write i2c OK [05:13:18]MH_I2C_Read... [05:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:18]Read from MH i2c: E2 [05:13:18]MH_I2C_Read... [05:13:18]Read from MH i2c: E2 17 00 [05:13:18]MH_I2C_Read... [05:13:18]Read from MH i2c: E2 17 00 B1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8A [05:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:13:18]wFMCommunicate OK [05:13:18]requested_item fd.num is exist - process it [05:13:18]SAM_PROTO_GetFieldsCounters [05:13:18]wFMCommunicate request_size=4 [05:13:18]MH_SAM_APDU [05:13:18]CAPDU: 80 13 00 00 [05:13:18]Write to MH i2c: E2 08 00 B2 0A 80 13 00 00 00 00 00 00 38 [05:13:18]Write i2c OK [05:13:18]MH_I2C_Read... [05:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:13:19]Read from MH i2c: E2 [05:13:19]MH_I2C_Read... [05:13:19]Read from MH i2c: E2 62 00 [05:13:19]MH_I2C_Read... [05:13:19]Read from MH i2c: E2 62 00 B2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FA 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [05:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FA 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:13:19]wFMCommunicate OK [05:13:19]SAM_PROTO_GetFieldsCounters done [05:13:19]requested_item shift.num is exist - process it [05:13:19]requested_item shift.opened is exist - process it [05:13:19]req_shift_opened [05:13:19]FM_GetShiftState [05:13:19]SAM_PROTO_GetShiftState [05:13:19]wFMCommunicate request_size=4 [05:13:19]MH_SAM_APDU [05:13:19]CAPDU: 80 13 01 00 [05:13:19]Write to MH i2c: E2 08 00 B3 0A 80 13 01 00 00 00 00 00 3A [05:13:19]Write i2c OK [05:13:19]MH_I2C_Read... [05:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:19]Read from MH i2c: E2 [05:13:19]MH_I2C_Read... [05:13:19]Read from MH i2c: E2 0E 00 [05:13:19]MH_I2C_Read... [05:13:19]Read from MH i2c: E2 0E 00 B3 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3C [05:13:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:13:19]wFMCommunicate OK [05:13:19]SAM_PROTO_GetShiftState done [05:13:19]FM_GetShiftState done [05:13:19]req_shift_opened done [05:13:19]requested_item shift.open_date is exist - process it [05:13:19]req_shift_open_date [05:13:19]req_shift_open_date done [05:13:19]produce_requested_data done [05:13:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201722,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:13:19]process_action_free close_receipt [05:13:19]json_value_free [05:13:19]json_value_free done [05:13:19]process_json_proto returns [05:13:19]Send response to host [05:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201722,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:13:19]free response buf [05:13:19]execute_script done [05:13:19]execute_script returns [05:13:19]free content buf [05:13:19]Sock 8.Close socket [05:13:19]Sock 8.Thread stoped [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22: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:54]accept exits with 9 [05:22:54]New connection [05:22:54]New thread 3067080036 created [05:22:54]Thread 3066936676 joined [05:22:54]Waiting for new connection... [05:22:54] Sock 9.Parse request [05:22:54]Sock 9.Check first char [05:22:54]Sock 9.First char is OK [05:22:54]request: POST /json_proto HTTP/1.0 [05:22:54]Method: POST [05:22:54]URL: /json_proto [05:22:54]Method is POST - this is cgi request [05:22:54]url: /json_proto [05:22:54]query_string will be loaded in cgi processing [05:22:54]execute_cgi json_proto POST (null) [05:22:54]execute_cgi path=json_proto method=POST [05:22:54]POST find Content-Length [05:22:54]Host: 172.17.63.195:8080 [05:22:54]Content-Length: 682 [05:22:54]Content-Type: application/json [05:22:54] [05:22:54]POST finish read [05:22:54]Found Content-Length = 682 [05:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:22:54]execute_script... [05:22: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)449479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:22:54]POST & json_proto [05:22:54]process_json_proto [05:22:54]json parsed OK: [05:22:54]protocol is kg_v1.0 [05:22:54]action value=close_receipt [05:22:54]process_action close_receipt [05:22:54]cmd_close_receipt [05:22:54]MH_GetDate [05:22:54]Write to MH i2c: F0 00 00 B4 0A AD [05:22:54]Write i2c OK [05:22:54]MH_I2C_Read... [05:22:54]Read from MH i2c: F0 [05:22:54]MH_I2C_Read... [05:22:54]Read from MH i2c: F0 09 00 [05:22:54]MH_I2C_Read... [05:22:54]Read from MH i2c: F0 09 00 B4 0A 00 31 CE 1D 67 68 46 19 67 67 [05:22:54]GetLastDocTimeStamp 1730005996 [05:22:54]current date 1730006577 [05:22:54]FM_GetShiftState [05:22:54]SAM_PROTO_GetShiftState [05:22:54]wFMCommunicate request_size=4 [05:22:54]MH_SAM_APDU [05:22:54]CAPDU: 80 13 01 00 [05:22:54]Write to MH i2c: E2 08 00 B5 0A 80 13 01 00 00 00 00 00 3C [05:22:54]Write i2c OK [05:22:54]MH_I2C_Read... [05:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:54]Read from MH i2c: E2 [05:22:54]MH_I2C_Read... [05:22:54]Read from MH i2c: E2 0E 00 [05:22:54]MH_I2C_Read... [05:22:54]Read from MH i2c: E2 0E 00 B5 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3E [05:22:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:22:54]wFMCommunicate OK [05:22:54]SAM_PROTO_GetShiftState done [05:22:54]FM_GetShiftState done [05:22:54]opened in 1729987312 [05:22:54]opened+sec_in_day 1730073712 [05:22:54]quantity*price = 100015 [05:22:54]sum+1 = 100017 [05:22:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 15 27.10.2024 05:22 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201723 ФПД: 203557520428383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T052257&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201723&fm=203557520428383&tin=02508201610067®Number=0000000000091777&sum=100000 [05:22:55]StoreToDocumentArchive [05:22:55]shift 544 fd 201723 [05:22:55]save to /storage/0544/doc_00201723 [05:22:55]save last doc name /storage/0544/doc_00201723 to /storage/kkm_last_doc_name [05:22:55]save OK [05:22:55]Clear old archive folders... [05:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:22:55]tlvbuf is 0006A4B0 [05:22:55]SAM_PROTO_ClearQueue [05:22:55]wFMCommunicate request_size=4 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 09 00 00 [05:22:55]Write to MH i2c: E2 08 00 C2 0A 80 09 00 00 00 00 00 00 3E [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [05:22:55]RAPDU: 90 00 [05:22:55]wFMCommunicate OK [05:22:55]SAM_PROTO_ClearQueue done [05:22:55]KKMCreateOFDPacket [05:22:55]OFDProtocolAddRootSTLVToBuf [05:22:55]FM_MakeSignedData [05:22:55]FM_MakeSignedData [05:22:55]SAM_PROTO_SignData [05:22:55]wFMCommunicate request_size=4 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 0D 01 02 [05:22:55]Write to MH i2c: E2 08 00 C3 0A 80 0D 01 02 00 00 00 00 46 [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [05:22:55]RAPDU: 90 00 [05:22:55]wFMCommunicate OK [05:22:55]wFMCommunicate request_size=255 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 31 CE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 13 03 00 35 04 06 00 B9 [05:22:55]Write to MH i2c: E2 02 01 C4 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 31 CE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 13 03 00 35 04 06 00 B9 00 00 52 [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [05:22:55]RAPDU: 90 00 [05:22:55]wFMCommunicate OK [05:22:55]wFMCommunicate request_size=10 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 0D 02 02 05 22 6D B2 4D 5F [05:22:55]Write to MH i2c: E2 0D 00 C5 0A 80 0D 02 02 05 00 22 6D B2 4D 5F 00 00 40 [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:55]Read from MH i2c: E2 03 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [05:22:55]RAPDU: 90 00 [05:22:55]wFMCommunicate OK [05:22:55]wFMCommunicate request_size=4 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 0D 03 02 [05:22:55]Write to MH i2c: E2 08 00 C6 0A 80 0D 03 02 00 00 00 00 4B [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 0B 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 0B 00 C6 0A 00 C0 22 D2 AB 5B E4 37 4D 90 00 6E [05:22:55]RAPDU: C0 22 D2 AB 5B E4 37 4D 90 00 [05:22:55]wFMCommunicate OK [05:22:55]SAM_PROTO_SignData done [05:22:55]FM_MakeSignedData done [05:22:55]CreateOFDProtocolMessage [05:22:55]wFMCommunicate request_size=4 [05:22:55]MH_SAM_APDU [05:22:55]CAPDU: 80 11 00 00 [05:22:55]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [05:22:55]Write i2c OK [05:22:55]MH_I2C_Read... [05:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:55]Read from MH i2c: E2 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 17 00 [05:22:55]MH_I2C_Read... [05:22:55]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A0 [05:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:22:55]wFMCommunicate OK [05:22:55]CreateOFDProtocolMessage done [05:22:55]OFDSenderStorePacket 201723 [05:22:55]StoreOFDPacket docnum=201723 [05:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 78 07 01 DE DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 31 CE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 13 03 00 35 04 06 00 B9 22 6D B2 4D 5F C0 22 D2 AB 5B E4 37 4D [05:22:55]CheckFolder [05:22:55]dirname=/storage/ofd_packets [05:22:55]CheckFolder done [05:22:55]ProducePacketName [05:22:55]name=ofd_packets/00201723 [05:22:55]NVStorageSaveData ofd_packets/00201723 [05:22:55]File name is /storage/ofd_packets/00201723 [05:22:56]Write 301 bytes [05:22:56]NVStorageSaveData done [05:22:56]OFDSenderStorePacket done [05:22:56]KKMCreateOFDPacket done [05:22:56]NVStorageSaveData kkm_last_timestamp [05:22:56]File name is /storage/kkm_last_timestamp [05:22:56]Write 4 bytes [05:22:56]NVStorageSaveData done [05:22:56]ExternCall_PrintAddStr [05:22:56]wPrintStart [05:22:56]Write to MH i2c: 01 00 00 C8 0A D2 [05:22:56]Write i2c OK [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 07 00 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 07 00 C8 0A 00 00 00 00 00 FF 0F E7 [05:22:56]RasterBufferAndPrint [05:22:56]line Счет N : (1)449479 [05:22:56]line ИНН: 02508201610067 [05:22:56]line Контрольно-Кассовый Чек [05:22:56]line ПРОДАЖА [05:22:56]line ТРК (МРК, ГНК) : 41 [05:22:56]line Товар: 2710124130 [05:22:56]line Аи-92-К-2 [05:22:56]line 14.950 * 66.90 [05:22:56]line = 1000.16 [05:22:56]line НДС 12% НСП 1% [05:22:56]line > о реализуемом товаре [05:22:56]line ОКРУГЛЕНИЕ: -0.16 [05:22:56]line ИТОГО: 1000.00 [05:22:56]line Внесено: 1000.00 [05:22:56]line СДАЧА: 0.00 [05:22:56]line НСП 1% : 8.85 [05:22:56]line НДС 12% : 106.21 [05:22:56]line Наличными: 1000.00 [05:22:56]line Безнал.: 0.00 [05:22:56]line Место: АЗС № 171 "Партнер Нефть" [05:22:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:22:56]line СНО: Общий режим [05:22:56]line Чек 15 27.10.2024 05:22 [05:22:56]line Смена: 544 ФФД: 1.0 [05:22:56]line ЗНМ: 0300000109 [05:22:56]line РНМ: 0000000000091777 [05:22:56]line Версия ККМ: 001 [05:22:56]line ФМ: 0000000000871756 [05:22:56]line ФД: 201723 [05:22:56]line ФПД: 203557520428383 [05:22:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T052257&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201723&fm=203557520428383&tin=02508201610067®Number=0000000000091777&sum=100000 [05:22:56]written 0, free lines is 4095 [05:22:56]OFD Sender: Processing packet 201723 [packets to send 112, broken 111] [05:22:56]ProducePacketName [05:22:56]name=ofd_packets/00201723 [05:22:56]OFD Sender: To server: pG, [05:22:56]CommunicateWithHost lk.salyk.kg:30040 [05:22:56]ConnectInit lk.salyk.kg [05:22:56]Connected sock=11 [05:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 78 07 01 DE DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 00 00 00 F4 03 04 00 31 CE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 13 03 00 35 04 06 00 B9 22 6D B2 4D 5F C0 22 D2 AB 5B E4 37 4D [05:22:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 02 1A 47 00 E1 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 13 03 00 F4 03 04 00 D7 79 1D 67 B6 04 01 00 00 2C 30 1B B0 4D 4C B8 FF [05:22:56]CommunicateWithHost err = 0 [05:22:56]CheckOFDResponse [05:22:56]1017 (14) - 77093643461234 [05:22:56]1041 (16) - 0000000000871756 [05:22:56]1040 (4) - 201723 [05:22:56]1012 (4) - 26.10.2024 23:23 [05:22:56]1206 (1) - 0 [05:22:56]OFD Sender: Remove packet 201723 [05:22:56]ProducePacketName [05:22:56]name=ofd_packets/00201723 [05:22:56]NVStorageDeleteData [05:22:56]Write to MH i2c: 01 00 00 F3 0A FD [05:22:56]Write i2c OK [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 07 00 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: 01 07 00 F3 0A 00 00 00 00 00 99 0C A9 [05:22:56]RasterBufferAndPrint [05:22:56]line [05:22:56]line [05:22:56]line [05:22:56]line [05:22:56]line [05:22:56]written 0, free lines is 3229 [05:22:56]MH_Cut [05:22:56]Write to MH i2c: D1 01 00 FA 0A 01 D6 [05:22:56]Write i2c OK [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: D1 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: D1 01 00 [05:22:56]MH_I2C_Read... [05:22:56]Read from MH i2c: D1 01 00 FA 0A 00 D5 [05:22:56]Write to MH i2c: 01 00 00 FB 0A 05 [05:22:56]Write i2c OK [05:22:56]MH_I2C_Read... [05:22:56]OFD Sender: No OFD packet to send [05:22:57]*** Cut start [05:22:57]*** Purtial cut [05:22:57]*** Stage 1: CUTSNS_PIN = 1 [05:22:57]Read from MH i2c: 01 [05:22:57]MH_I2C_Read... [05:22:57]*** Stop cut motor [05:22:57]*** Cut end [05:22:57]Read from MH i2c: 01 07 00 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: 01 07 00 FB 0A 00 00 00 00 00 FF 0F 1A [05:22:57]process_action close_receipt done [05:22:57]requested_data is exist [05:22:57]produce_requested_data [05:22:57]requested_item fm.sn is exist - process it [05:22:57]wFMCommunicate request_size=4 [05:22:57]MH_SAM_APDU [05:22:57]CAPDU: 80 11 00 00 [05:22:57]Write to MH i2c: E2 08 00 FC 0A 80 11 00 00 00 00 00 00 80 [05:22:57]Write i2c OK [05:22:57]MH_I2C_Read... [05:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:57]Read from MH i2c: E2 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: E2 17 00 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: E2 17 00 FC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D5 [05:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:22:57]wFMCommunicate OK [05:22:57]requested_item fd.num is exist - process it [05:22:57]SAM_PROTO_GetFieldsCounters [05:22:57]wFMCommunicate request_size=4 [05:22:57]MH_SAM_APDU [05:22:57]CAPDU: 80 13 00 00 [05:22:57]Write to MH i2c: E2 08 00 FD 0A 80 13 00 00 00 00 00 00 83 [05:22:57]Write i2c OK [05:22:57]MH_I2C_Read... [05:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:57]Read from MH i2c: E2 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: E2 62 00 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: E2 62 00 FD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FB 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [05:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FB 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:22:57]wFMCommunicate OK [05:22:57]SAM_PROTO_GetFieldsCounters done [05:22:57]requested_item shift.num is exist - process it [05:22:57]requested_item shift.opened is exist - process it [05:22:57]req_shift_opened [05:22:57]FM_GetShiftState [05:22:57]SAM_PROTO_GetShiftState [05:22:57]wFMCommunicate request_size=4 [05:22:57]MH_SAM_APDU [05:22:57]CAPDU: 80 13 01 00 [05:22:57]Write to MH i2c: E2 08 00 FE 0A 80 13 01 00 00 00 00 00 85 [05:22:57]Write i2c OK [05:22:57]MH_I2C_Read... [05:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:57]Read from MH i2c: E2 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: E2 0E 00 [05:22:57]MH_I2C_Read... [05:22:57]Read from MH i2c: E2 0E 00 FE 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 87 [05:22:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:22:57]wFMCommunicate OK [05:22:57]SAM_PROTO_GetShiftState done [05:22:57]FM_GetShiftState done [05:22:57]req_shift_opened done [05:22:57]requested_item shift.open_date is exist - process it [05:22:57]req_shift_open_date [05:22:57]req_shift_open_date done [05:22:57]produce_requested_data done [05:22:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201723,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:22:57]process_action_free close_receipt [05:22:57]json_value_free [05:22:57]json_value_free done [05:22:57]process_json_proto returns [05:22:57]Send response to host [05:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201723,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:22:57]free response buf [05:22:57]execute_script done [05:22:57]execute_script returns [05:22:57]free content buf [05:22:57]Sock 9.Close socket [05:22:57]Sock 9.Thread stoped [05:22:58]accept exits with 8 [05:22:58]New connection [05:22:58]New thread 3066936676 created [05:22:58]Thread 3067080036 joined [05:22:58]Waiting for new connection... [05:22:58] Sock 8.Parse request [05:22:58]Sock 8.Check first char [05:22:58]Sock 8.First char is OK [05:22:58]request: POST /json_proto HTTP/1.0 [05:22:58]Method: POST [05:22:58]URL: /json_proto [05:22:58]Method is POST - this is cgi request [05:22:58]url: /json_proto [05:22:58]query_string will be loaded in cgi processing [05:22:58]execute_cgi json_proto POST (null) [05:22:58]execute_cgi path=json_proto method=POST [05:22:58]POST find Content-Length [05:22:58]Host: 172.17.63.195:8080 [05:22:58]Content-Length: 674 [05:22:58]Content-Type: application/json [05:22:58] [05:22:58]POST finish read [05:22:58]Found Content-Length = 674 [05:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:58]execute_script... [05:22: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)449480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:58]POST & json_proto [05:22:58]process_json_proto [05:22:58]json parsed OK: [05:22:58]protocol is kg_v1.0 [05:22:58]action value=close_receipt [05:22:58]process_action close_receipt [05:22:58]cmd_close_receipt [05:22:58]MH_GetDate [05:22:58]Write to MH i2c: F0 00 00 FF 0A F8 [05:22:58]Write i2c OK [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: F0 [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: F0 09 00 [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: F0 09 00 FF 0A 00 35 CE 1D 67 68 46 19 67 B6 [05:22:58]GetLastDocTimeStamp 1730006577 [05:22:58]current date 1730006581 [05:22:58]FM_GetShiftState [05:22:58]SAM_PROTO_GetShiftState [05:22:58]wFMCommunicate request_size=4 [05:22:58]MH_SAM_APDU [05:22:58]CAPDU: 80 13 01 00 [05:22:58]Write to MH i2c: E2 08 00 00 0B 80 13 01 00 00 00 00 00 88 [05:22:58]Write i2c OK [05:22:58]MH_I2C_Read... [05:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:58]Read from MH i2c: E2 [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: E2 0E 00 [05:22:58]MH_I2C_Read... [05:22:58]Read from MH i2c: E2 0E 00 00 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8A [05:22:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:22:58]wFMCommunicate OK [05:22:58]SAM_PROTO_GetShiftState done [05:22:58]FM_GetShiftState done [05:22:58]opened in 1729987312 [05:22:58]opened+sec_in_day 1730073712 [05:22:58]quantity*price = 50063 [05:22:58]sum+1 = 50064 [05:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 16 27.10.2024 05:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201724 ФПД: 202419381086034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T052301&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201724&fm=202419381086034&tin=02508201610067®Number=0000000000091777&sum=50000 [05:22:59]StoreToDocumentArchive [05:22:59]shift 544 fd 201724 [05:22:59]save to /storage/0544/doc_00201724 [05:22:59]save last doc name /storage/0544/doc_00201724 to /storage/kkm_last_doc_name [05:22:59]save OK [05:22:59]Clear old archive folders... [05:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:22:59]tlvbuf is 0009F8A0 [05:22:59]SAM_PROTO_ClearQueue [05:22:59]wFMCommunicate request_size=4 [05:22:59]MH_SAM_APDU [05:22:59]CAPDU: 80 09 00 00 [05:22:59]Write to MH i2c: E2 08 00 0D 0B 80 09 00 00 00 00 00 00 8A [05:22:59]Write i2c OK [05:22:59]MH_I2C_Read... [05:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:59]Read from MH i2c: E2 [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: E2 03 00 [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [05:22:59]RAPDU: 90 00 [05:22:59]wFMCommunicate OK [05:22:59]SAM_PROTO_ClearQueue done [05:22:59]KKMCreateOFDPacket [05:22:59]OFDProtocolAddRootSTLVToBuf [05:22:59]FM_MakeSignedData [05:22:59]FM_MakeSignedData [05:22:59]SAM_PROTO_SignData [05:22:59]wFMCommunicate request_size=4 [05:22:59]MH_SAM_APDU [05:22:59]CAPDU: 80 0D 01 02 [05:22:59]Write to MH i2c: E2 08 00 0E 0B 80 0D 01 02 00 00 00 00 92 [05:22:59]Write i2c OK [05:22:59]MH_I2C_Read... [05:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:59]Read from MH i2c: E2 [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: E2 03 00 [05:22:59]MH_I2C_Read... [05:22:59]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [05:22:59]RAPDU: 90 00 [05:22:59]wFMCommunicate OK [05:22:59]wFMCommunicate request_size=255 [05:22:59]MH_SAM_APDU [05:22: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 35 CE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 13 03 00 35 04 06 00 B8 19 6F 4E [05:22:59]Write to MH i2c: E2 02 01 0F 0B 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 35 CE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 13 03 00 35 04 06 00 B8 19 6F 4E 00 00 FD [05:22:59]Write i2c OK [05:22:59]MH_I2C_Read... [05:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:00]Read from MH i2c: E2 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: E2 03 00 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: E2 03 00 0F 0B 00 90 00 8E [05:23:00]RAPDU: 90 00 [05:23:00]wFMCommunicate OK [05:23:00]wFMCommunicate request_size=7 [05:23:00]MH_SAM_APDU [05:23:00]CAPDU: 80 0D 02 02 02 27 52 [05:23:00]Write to MH i2c: E2 0A 00 10 0B 80 0D 02 02 02 00 27 52 00 00 12 [05:23:00]Write i2c OK [05:23:00]MH_I2C_Read... [05:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:00]Read from MH i2c: E2 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: E2 03 00 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: E2 03 00 10 0B 00 90 00 8F [05:23:00]RAPDU: 90 00 [05:23:00]wFMCommunicate OK [05:23:00]wFMCommunicate request_size=4 [05:23:00]MH_SAM_APDU [05:23:00]CAPDU: 80 0D 03 02 [05:23:00]Write to MH i2c: E2 08 00 11 0B 80 0D 03 02 00 00 00 00 97 [05:23:00]Write i2c OK [05:23:00]MH_I2C_Read... [05:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:23:00]Read from MH i2c: E2 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: E2 0B 00 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: E2 0B 00 11 0B 00 C1 07 81 88 A5 A7 23 9F 90 00 77 [05:23:00]RAPDU: C1 07 81 88 A5 A7 23 9F 90 00 [05:23:00]wFMCommunicate OK [05:23:00]SAM_PROTO_SignData done [05:23:00]FM_MakeSignedData done [05:23:00]CreateOFDProtocolMessage [05:23:00]wFMCommunicate request_size=4 [05:23:00]MH_SAM_APDU [05:23:00]CAPDU: 80 11 00 00 [05:23:00]Write to MH i2c: E2 08 00 12 0B 80 11 00 00 00 00 00 00 97 [05:23:00]Write i2c OK [05:23:00]MH_I2C_Read... [05:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:00]Read from MH i2c: E2 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: E2 17 00 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: E2 17 00 12 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [05:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:23:00]wFMCommunicate OK [05:23:00]CreateOFDProtocolMessage done [05:23:00]OFDSenderStorePacket 201724 [05:23:00]StoreOFDPacket docnum=201724 [05:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 CC 1D 04 01 1E 3C 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 35 CE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 13 03 00 35 04 06 00 B8 19 6F 4E 27 52 C1 07 81 88 A5 A7 23 9F [05:23:00]CheckFolder [05:23:00]dirname=/storage/ofd_packets [05:23:00]CheckFolder done [05:23:00]ProducePacketName [05:23:00]name=ofd_packets/00201724 [05:23:00]NVStorageSaveData ofd_packets/00201724 [05:23:00]File name is /storage/ofd_packets/00201724 [05:23:00]Write 298 bytes [05:23:00]NVStorageSaveData done [05:23:00]OFDSenderStorePacket done [05:23:00]KKMCreateOFDPacket done [05:23:00]NVStorageSaveData kkm_last_timestamp [05:23:00]File name is /storage/kkm_last_timestamp [05:23:00]Write 4 bytes [05:23:00]NVStorageSaveData done [05:23:00]ExternCall_PrintAddStr [05:23:00]wPrintStart [05:23:00]Write to MH i2c: 01 00 00 13 0B 1E [05:23:00]Write i2c OK [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: 01 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: 01 07 00 [05:23:00]MH_I2C_Read... [05:23:00]Read from MH i2c: 01 07 00 13 0B 00 00 00 00 00 FF 0F 33 [05:23:00]RasterBufferAndPrint [05:23:00]line Счет N : (1)449480 [05:23:00]line ИНН: 02508201610067 [05:23:00]line Контрольно-Кассовый Чек [05:23:00]line ПРОДАЖА [05:23:00]line ТРК (МРК, ГНК) : 11 [05:23:00]line Товар: 2710194210 [05:23:00]line ДТ-К-2 [05:23:00]line 6.570 * 76.20 [05:23:00]line = 500.63 [05:23:00]line НДС 12% НСП 1% [05:23:00]line > о реализуемом товаре [05:23:00]line ОКРУГЛЕНИЕ: -0.63 [05:23:00]line ИТОГО: 500.00 [05:23:00]line Внесено: 500.00 [05:23:00]line СДАЧА: 0.00 [05:23:00]line НСП 1% : 4.43 [05:23:00]line НДС 12% : 53.16 [05:23:00]line Наличными: 500.00 [05:23:00]line Безнал.: 0.00 [05:23:00]line Место: АЗС № 171 "Партнер Нефть" [05:23:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:23:00]line СНО: Общий режим [05:23:00]line Чек 16 27.10.2024 05:23 [05:23:00]line Смена: 544 ФФД: 1.0 [05:23:00]line ЗНМ: 0300000109 [05:23:00]line РНМ: 0000000000091777 [05:23:00]line Версия ККМ: 001 [05:23:00]line ФМ: 0000000000871756 [05:23:00]line ФД: 201724 [05:23:00]line ФПД: 202419381086034 [05:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T052301&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201724&fm=202419381086034&tin=02508201610067®Number=0000000000091777&sum=50000 [05:23:00]OFD Sender: Processing packet 201724 [packets to send 112, broken 111] [05:23:00]ProducePacketName [05:23:00]name=ofd_packets/00201724 [05:23:00]OFD Sender: To server: pG, [05:23:00]CommunicateWithHost lk.salyk.kg:30040 [05:23:00]ConnectInit lk.salyk.kg [05:23:00]written 0, free lines is 4095 [05:23:00]Connected sock=10 [05:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 CC 1D 04 01 1E 3C 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 35 CE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 13 03 00 35 04 06 00 B8 19 6F 4E 27 52 C1 07 81 88 A5 A7 23 9F [05:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 02 A7 47 00 A3 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 13 03 00 F4 03 04 00 DC 79 1D 67 B6 04 01 00 00 80 4E 84 91 1D 17 4F C2 [05:23:01]CommunicateWithHost err = 0 [05:23:01]CheckOFDResponse [05:23:01]1017 (14) - 77093643461234 [05:23:01]1041 (16) - 0000000000871756 [05:23:01]1040 (4) - 201724 [05:23:01]1012 (4) - 26.10.2024 23:23 [05:23:01]1206 (1) - 0 [05:23:01]OFD Sender: Remove packet 201724 [05:23:01]ProducePacketName [05:23:01]name=ofd_packets/00201724 [05:23:01]NVStorageDeleteData [05:23:01]Write to MH i2c: 01 00 00 3E 0B 49 [05:23:01]Write i2c OK [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: 01 [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: 01 07 00 [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: 01 07 00 3E 0B 00 00 00 00 00 9F 0C FB [05:23:01]RasterBufferAndPrint [05:23:01]line [05:23:01]line [05:23:01]line [05:23:01]line [05:23:01]line [05:23:01]written 0, free lines is 3242 [05:23:01]MH_Cut [05:23:01]Write to MH i2c: D1 01 00 45 0B 01 22 [05:23:01]Write i2c OK [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: D1 [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: D1 01 00 [05:23:01]MH_I2C_Read... [05:23:01]Read from MH i2c: D1 01 00 45 0B 00 21 [05:23:01]Write to MH i2c: 01 00 00 46 0B 51 [05:23:01]Write i2c OK [05:23:01]MH_I2C_Read... [05:23:01]OFD Sender: No OFD packet to send [05:23:02]*** Cut start [05:23:02]*** Purtial cut [05:23:02]*** Stage 1: CUTSNS_PIN = 1 [05:23:02]Read from MH i2c: 01 [05:23:02]MH_I2C_Read... [05:23:02]*** Stop cut motor [05:23:02]*** Cut end [05:23:02]Read from MH i2c: 01 07 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: 01 07 00 46 0B 00 00 00 00 00 FF 0F 66 [05:23:02]process_action close_receipt done [05:23:02]requested_data is exist [05:23:02]produce_requested_data [05:23:02]requested_item fm.sn is exist - process it [05:23:02]wFMCommunicate request_size=4 [05:23:02]MH_SAM_APDU [05:23:02]CAPDU: 80 11 00 00 [05:23:02]Write to MH i2c: E2 08 00 47 0B 80 11 00 00 00 00 00 00 CC [05:23:02]Write i2c OK [05:23:02]MH_I2C_Read... [05:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:02]Read from MH i2c: E2 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 17 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 17 00 47 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [05:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:23:02]wFMCommunicate OK [05:23:02]requested_item fd.num is exist - process it [05:23:02]SAM_PROTO_GetFieldsCounters [05:23:02]wFMCommunicate request_size=4 [05:23:02]MH_SAM_APDU [05:23:02]CAPDU: 80 13 00 00 [05:23:02]Write to MH i2c: E2 08 00 48 0B 80 13 00 00 00 00 00 00 CF [05:23:02]Write i2c OK [05:23:02]MH_I2C_Read... [05:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:23:02]Read from MH i2c: E2 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 62 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 62 00 48 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FC 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [05:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FC 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:23:02]wFMCommunicate OK [05:23:02]SAM_PROTO_GetFieldsCounters done [05:23:02]requested_item shift.num is exist - process it [05:23:02]requested_item shift.opened is exist - process it [05:23:02]req_shift_opened [05:23:02]FM_GetShiftState [05:23:02]SAM_PROTO_GetShiftState [05:23:02]wFMCommunicate request_size=4 [05:23:02]MH_SAM_APDU [05:23:02]CAPDU: 80 13 01 00 [05:23:02]Write to MH i2c: E2 08 00 49 0B 80 13 01 00 00 00 00 00 D1 [05:23:02]Write i2c OK [05:23:02]MH_I2C_Read... [05:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:02]Read from MH i2c: E2 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 0E 00 [05:23:02]MH_I2C_Read... [05:23:02]Read from MH i2c: E2 0E 00 49 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D3 [05:23:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:23:02]wFMCommunicate OK [05:23:02]SAM_PROTO_GetShiftState done [05:23:02]FM_GetShiftState done [05:23:02]req_shift_opened done [05:23:02]requested_item shift.open_date is exist - process it [05:23:02]req_shift_open_date [05:23:02]req_shift_open_date done [05:23:02]produce_requested_data done [05:23:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201724,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:23:02]process_action_free close_receipt [05:23:02]json_value_free [05:23:02]json_value_free done [05:23:02]process_json_proto returns [05:23:02]Send response to host [05:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201724,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:23:02]free response buf [05:23:02]execute_script done [05:23:02]execute_script returns [05:23:02]free content buf [05:23:02]Sock 8.Close socket [05:23:02]Sock 8.Thread stoped [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:10]accept exits with 9 [05:27:10]New connection [05:27:10]New thread 3067080036 created [05:27:10]Thread 3066936676 joined [05:27:10]Waiting for new connection... [05:27:10] Sock 9.Parse request [05:27:10]Sock 9.Check first char [05:27:10]Sock 9.First char is OK [05:27:10]request: POST /json_proto HTTP/1.0 [05:27:10]Method: POST [05:27:10]URL: /json_proto [05:27:10]Method is POST - this is cgi request [05:27:10]url: /json_proto [05:27:10]query_string will be loaded in cgi processing [05:27:10]execute_cgi json_proto POST (null) [05:27:10]execute_cgi path=json_proto method=POST [05:27:10]POST find Content-Length [05:27:10]Host: 172.17.63.195:8080 [05:27:10]Content-Length: 674 [05:27:10]Content-Type: application/json [05:27:10] [05:27:10]POST finish read [05:27:10]Found Content-Length = 674 [05:27:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [05:27:10]execute_script... [05:27: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)449481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [05:27:10]POST & json_proto [05:27:10]process_json_proto [05:27:10]json parsed OK: [05:27:10]protocol is kg_v1.0 [05:27:10]action value=close_receipt [05:27:10]process_action close_receipt [05:27:10]cmd_close_receipt [05:27:10]MH_GetDate [05:27:10]Write to MH i2c: F0 00 00 4A 0B 44 [05:27:10]Write i2c OK [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: F0 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: F0 09 00 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: F0 09 00 4A 0B 00 31 CF 1D 67 68 46 19 67 FF [05:27:10]GetLastDocTimeStamp 1730006581 [05:27:10]current date 1730006833 [05:27:10]FM_GetShiftState [05:27:10]SAM_PROTO_GetShiftState [05:27:10]wFMCommunicate request_size=4 [05:27:10]MH_SAM_APDU [05:27:10]CAPDU: 80 13 01 00 [05:27:10]Write to MH i2c: E2 08 00 4B 0B 80 13 01 00 00 00 00 00 D3 [05:27:10]Write i2c OK [05:27:10]MH_I2C_Read... [05:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:10]Read from MH i2c: E2 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 0E 00 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 0E 00 4B 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D5 [05:27:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:27:10]wFMCommunicate OK [05:27:10]SAM_PROTO_GetShiftState done [05:27:10]FM_GetShiftState done [05:27:10]opened in 1729987312 [05:27:10]opened+sec_in_day 1730073712 [05:27:10]quantity*price = 60045 [05:27:10]sum+1 = 60047 [05:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 17 27.10.2024 05:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201725 ФПД: 206273733201534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T052713&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201725&fm=206273733201534&tin=02508201610067®Number=0000000000091777&sum=60000 [05:27:11]StoreToDocumentArchive [05:27:11]shift 544 fd 201725 [05:27:11]save to /storage/0544/doc_00201725 [05:27:11]save last doc name /storage/0544/doc_00201725 to /storage/kkm_last_doc_name [05:27:11]save OK [05:27:11]Clear old archive folders... [05:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:27:11]tlvbuf is 000F2290 [05:27:11]SAM_PROTO_ClearQueue [05:27:11]wFMCommunicate request_size=4 [05:27:11]MH_SAM_APDU [05:27:11]CAPDU: 80 09 00 00 [05:27:11]Write to MH i2c: E2 08 00 58 0B 80 09 00 00 00 00 00 00 D5 [05:27:11]Write i2c OK [05:27:11]MH_I2C_Read... [05:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:27:11]Read from MH i2c: E2 [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: E2 03 00 [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: E2 03 00 58 0B 00 90 00 D7 [05:27:11]RAPDU: 90 00 [05:27:11]wFMCommunicate OK [05:27:11]SAM_PROTO_ClearQueue done [05:27:11]KKMCreateOFDPacket [05:27:11]OFDProtocolAddRootSTLVToBuf [05:27:11]FM_MakeSignedData [05:27:11]FM_MakeSignedData [05:27:11]SAM_PROTO_SignData [05:27:11]wFMCommunicate request_size=4 [05:27:11]MH_SAM_APDU [05:27:11]CAPDU: 80 0D 01 02 [05:27:11]Write to MH i2c: E2 08 00 59 0B 80 0D 01 02 00 00 00 00 DD [05:27:11]Write i2c OK [05:27:11]MH_I2C_Read... [05:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:27:11]Read from MH i2c: E2 [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: E2 03 00 [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: E2 03 00 59 0B 00 90 00 D8 [05:27:11]RAPDU: 90 00 [05:27:11]wFMCommunicate OK [05:27:11]wFMCommunicate request_size=255 [05:27:11]MH_SAM_APDU [05:27: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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 31 CF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 13 03 00 35 04 06 00 BB 9A D8 98 [05:27:11]Write to MH i2c: E2 02 01 5A 0B 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 31 CF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 13 03 00 35 04 06 00 BB 9A D8 98 00 00 B7 [05:27:11]Write i2c OK [05:27:11]MH_I2C_Read... [05:27:11]OFD Sender: No OFD packet to send [05:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:12]Read from MH i2c: E2 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 03 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 03 00 5A 0B 00 90 00 D9 [05:27:12]RAPDU: 90 00 [05:27:12]wFMCommunicate OK [05:27:12]wFMCommunicate request_size=7 [05:27:12]MH_SAM_APDU [05:27:12]CAPDU: 80 0D 02 02 02 0E 7E [05:27:12]Write to MH i2c: E2 0A 00 5B 0B 80 0D 02 02 02 00 0E 7E 00 00 70 [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:12]Read from MH i2c: E2 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 03 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 03 00 5B 0B 00 90 00 DA [05:27:12]RAPDU: 90 00 [05:27:12]wFMCommunicate OK [05:27:12]wFMCommunicate request_size=4 [05:27:12]MH_SAM_APDU [05:27:12]CAPDU: 80 0D 03 02 [05:27:12]Write to MH i2c: E2 08 00 5C 0B 80 0D 03 02 00 00 00 00 E2 [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:27:12]Read from MH i2c: E2 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 0B 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 0B 00 5C 0B 00 F5 00 15 11 04 66 59 60 90 00 21 [05:27:12]RAPDU: F5 00 15 11 04 66 59 60 90 00 [05:27:12]wFMCommunicate OK [05:27:12]SAM_PROTO_SignData done [05:27:12]FM_MakeSignedData done [05:27:12]CreateOFDProtocolMessage [05:27:12]wFMCommunicate request_size=4 [05:27:12]MH_SAM_APDU [05:27:12]CAPDU: 80 11 00 00 [05:27:12]Write to MH i2c: E2 08 00 5D 0B 80 11 00 00 00 00 00 00 E2 [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:12]Read from MH i2c: E2 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 17 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 17 00 5D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 37 [05:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:27:12]wFMCommunicate OK [05:27:12]CreateOFDProtocolMessage done [05:27:12]OFDSenderStorePacket 201725 [05:27:12]StoreOFDPacket docnum=201725 [05:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D8 3A 04 01 15 A5 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 31 CF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 13 03 00 35 04 06 00 BB 9A D8 98 0E 7E F5 00 15 11 04 66 59 60 [05:27:12]CheckFolder [05:27:12]dirname=/storage/ofd_packets [05:27:12]CheckFolder done [05:27:12]ProducePacketName [05:27:12]name=ofd_packets/00201725 [05:27:12]NVStorageSaveData ofd_packets/00201725 [05:27:12]File name is /storage/ofd_packets/00201725 [05:27:12]Write 298 bytes [05:27:12]NVStorageSaveData done [05:27:12]OFDSenderStorePacket done [05:27:12]KKMCreateOFDPacket done [05:27:12]NVStorageSaveData kkm_last_timestamp [05:27:12]File name is /storage/kkm_last_timestamp [05:27:12]Write 4 bytes [05:27:12]NVStorageSaveData done [05:27:12]ExternCall_PrintAddStr [05:27:12]wPrintStart [05:27:12]Write to MH i2c: 01 00 00 5E 0B 69 [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: 01 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: 01 07 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: 01 07 00 5E 0B 00 00 00 00 00 FF 0F 7E [05:27:12]RasterBufferAndPrint [05:27:12]line Счет N : (1)449481 [05:27:12]line ИНН: 02508201610067 [05:27:12]line Контрольно-Кассовый Чек [05:27:12]line ПРОДАЖА [05:27:12]line ТРК (МРК, ГНК) : 43 [05:27:12]line Товар: 2710194210 [05:27:12]line ДТ-К-2 [05:27:12]line 7.880 * 76.20 [05:27:12]line = 600.46 [05:27:12]line НДС 12% НСП 1% [05:27:12]line > о реализуемом товаре [05:27:12]line ОКРУГЛЕНИЕ: -0.46 [05:27:12]line ИТОГО: 600.00 [05:27:12]line Внесено: 600.00 [05:27:12]line СДАЧА: 0.00 [05:27:12]line НСП 1% : 5.31 [05:27:12]line НДС 12% : 63.77 [05:27:12]line Наличными: 600.00 [05:27:12]line Безнал.: 0.00 [05:27:12]line Место: АЗС № 171 "Партнер Нефть" [05:27:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:27:12]line СНО: Общий режим [05:27:12]line Чек 17 27.10.2024 05:27 [05:27:12]line Смена: 544 ФФД: 1.0 [05:27:12]line ЗНМ: 0300000109 [05:27:12]line РНМ: 0000000000091777 [05:27:12]line Версия ККМ: 001 [05:27:12]line ФМ: 0000000000871756 [05:27:12]line ФД: 201725 [05:27:12]line ФПД: 206273733201534 [05:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T052713&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201725&fm=206273733201534&tin=02508201610067®Number=0000000000091777&sum=60000 [05:27:12]OFD Sender: Processing packet 201725 [packets to send 112, broken 111] [05:27:12]ProducePacketName [05:27:12]name=ofd_packets/00201725 [05:27:12]OFD Sender: To server: pG, [05:27:12]CommunicateWithHost lk.salyk.kg:30040 [05:27:12]ConnectInit lk.salyk.kg [05:27:12]written 0, free lines is 4095 [05:27:12]Connected sock=8 [05:27:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D8 3A 04 01 15 A5 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 31 CF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 13 03 00 35 04 06 00 BB 9A D8 98 0E 7E F5 00 15 11 04 66 59 60 [05:27:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3B BA 47 00 89 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 13 03 00 F4 03 04 00 D7 7A 1D 67 B6 04 01 00 00 3F 46 95 45 5B 60 FC 93 [05:27:12]CommunicateWithHost err = 0 [05:27:12]CheckOFDResponse [05:27:12]1017 (14) - 77093643461234 [05:27:12]1041 (16) - 0000000000871756 [05:27:12]1040 (4) - 201725 [05:27:12]1012 (4) - 26.10.2024 23:27 [05:27:12]1206 (1) - 0 [05:27:12]OFD Sender: Remove packet 201725 [05:27:12]ProducePacketName [05:27:12]name=ofd_packets/00201725 [05:27:12]NVStorageDeleteData [05:27:12]Write to MH i2c: 01 00 00 89 0B 94 [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: 01 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: 01 07 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: 01 07 00 89 0B 00 00 00 00 00 99 0C 40 [05:27:12]RasterBufferAndPrint [05:27:12]line [05:27:12]line [05:27:12]line [05:27:12]line [05:27:12]line [05:27:12]written 0, free lines is 3232 [05:27:12]MH_Cut [05:27:12]Write to MH i2c: D1 01 00 90 0B 01 6D [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: D1 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: D1 01 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: D1 01 00 90 0B 00 6C [05:27:12]Write to MH i2c: 01 00 00 91 0B 9C [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:13]OFD Sender: No OFD packet to send [05:27:13]*** Cut start [05:27:13]*** Purtial cut [05:27:13]*** CUTSNS_PIN = 0 [05:27:14]*** Stage 1: CUTSNS_PIN = 1 [05:27:15]Read from MH i2c: 01 [05:27:15]MH_I2C_Read... [05:27:15]*** Stop cut motor [05:27:15]*** Cut end [05:27:15]Read from MH i2c: 01 07 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: 01 07 00 91 0B 00 00 00 00 00 FF 0F B1 [05:27:15]process_action close_receipt done [05:27:15]requested_data is exist [05:27:15]produce_requested_data [05:27:15]requested_item fm.sn is exist - process it [05:27:15]wFMCommunicate request_size=4 [05:27:15]MH_SAM_APDU [05:27:15]CAPDU: 80 11 00 00 [05:27:15]Write to MH i2c: E2 08 00 92 0B 80 11 00 00 00 00 00 00 17 [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:15]Read from MH i2c: E2 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 17 00 [05:27:15]MH_I2C_Read... [05:27:15]Read from MH i2c: E2 17 00 92 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [05:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:27:15]wFMCommunicate OK [05:27:15]requested_item fd.num is exist - process it [05:27:15]SAM_PROTO_GetFieldsCounters [05:27:15]wFMCommunicate request_size=4 [05:27:15]MH_SAM_APDU [05:27:15]CAPDU: 80 13 00 00 [05:27:15]Write to MH i2c: E2 08 00 93 0B 80 13 00 00 00 00 00 00 1A [05:27:15]Write i2c OK [05:27:15]MH_I2C_Read... [05:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:27:16]Read from MH i2c: E2 [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: E2 62 00 [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: E2 62 00 93 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FD 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [05:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FD 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:27:16]wFMCommunicate OK [05:27:16]SAM_PROTO_GetFieldsCounters done [05:27:16]requested_item shift.num is exist - process it [05:27:16]requested_item shift.opened is exist - process it [05:27:16]req_shift_opened [05:27:16]FM_GetShiftState [05:27:16]SAM_PROTO_GetShiftState [05:27:16]wFMCommunicate request_size=4 [05:27:16]MH_SAM_APDU [05:27:16]CAPDU: 80 13 01 00 [05:27:16]Write to MH i2c: E2 08 00 94 0B 80 13 01 00 00 00 00 00 1C [05:27:16]Write i2c OK [05:27:16]MH_I2C_Read... [05:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:16]Read from MH i2c: E2 [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: E2 0E 00 [05:27:16]MH_I2C_Read... [05:27:16]Read from MH i2c: E2 0E 00 94 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1E [05:27:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:27:16]wFMCommunicate OK [05:27:16]SAM_PROTO_GetShiftState done [05:27:16]FM_GetShiftState done [05:27:16]req_shift_opened done [05:27:16]requested_item shift.open_date is exist - process it [05:27:16]req_shift_open_date [05:27:16]req_shift_open_date done [05:27:16]produce_requested_data done [05:27:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201725,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:27:16]process_action_free close_receipt [05:27:16]json_value_free [05:27:16]json_value_free done [05:27:16]process_json_proto returns [05:27:16]Send response to host [05:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201725,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:27:16]free response buf [05:27:16]execute_script done [05:27:16]execute_script returns [05:27:16]free content buf [05:27:16]Sock 9.Close socket [05:27:16]Sock 9.Thread stoped [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:29]accept exits with 10 [05:38:29]New connection [05:38:29]New thread 3066936676 created [05:38:29]Thread 3067080036 joined [05:38:29]Waiting for new connection... [05:38:29] Sock 10.Parse request [05:38:29]Sock 10.Check first char [05:38:29]Sock 10.First char is OK [05:38:29]request: POST /json_proto HTTP/1.0 [05:38:29]Method: POST [05:38:29]URL: /json_proto [05:38:29]Method is POST - this is cgi request [05:38:29]url: /json_proto [05:38:29]query_string will be loaded in cgi processing [05:38:29]execute_cgi json_proto POST (null) [05:38:29]execute_cgi path=json_proto method=POST [05:38:29]POST find Content-Length [05:38:29]Host: 172.17.63.195:8080 [05:38:29]Content-Length: 678 [05:38:29]Content-Type: application/json [05:38:29] [05:38:29]POST finish read [05:38:29]Found Content-Length = 678 [05:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:29]execute_script... [05:38: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)449482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:29]POST & json_proto [05:38:29]process_json_proto [05:38:29]json parsed OK: [05:38:29]protocol is kg_v1.0 [05:38:29]action value=close_receipt [05:38:29]process_action close_receipt [05:38:29]cmd_close_receipt [05:38:29]MH_GetDate [05:38:29]Write to MH i2c: F0 00 00 95 0B 8F [05:38:29]Write i2c OK [05:38:29]MH_I2C_Read... [05:38:29]Read from MH i2c: F0 [05:38:29]MH_I2C_Read... [05:38:29]Read from MH i2c: F0 09 00 [05:38:29]MH_I2C_Read... [05:38:29]Read from MH i2c: F0 09 00 95 0B 00 D8 D1 1D 67 68 46 19 67 F3 [05:38:29]GetLastDocTimeStamp 1730006833 [05:38:29]current date 1730007512 [05:38:29]FM_GetShiftState [05:38:29]SAM_PROTO_GetShiftState [05:38:29]wFMCommunicate request_size=4 [05:38:29]MH_SAM_APDU [05:38:29]CAPDU: 80 13 01 00 [05:38:29]Write to MH i2c: E2 08 00 96 0B 80 13 01 00 00 00 00 00 1E [05:38:29]Write i2c OK [05:38:29]MH_I2C_Read... [05:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:29]Read from MH i2c: E2 [05:38:29]MH_I2C_Read... [05:38:29]Read from MH i2c: E2 0E 00 [05:38:29]MH_I2C_Read... [05:38:29]Read from MH i2c: E2 0E 00 96 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 20 [05:38:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:38:29]wFMCommunicate OK [05:38:29]SAM_PROTO_GetShiftState done [05:38:29]FM_GetShiftState done [05:38:29]opened in 1729987312 [05:38:29]opened+sec_in_day 1730073712 [05:38:29]quantity*price = 70044 [05:38:29]sum+1 = 70045 [05:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 18 27.10.2024 05:38 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201726 ФПД: 266145772084214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T053832&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201726&fm=266145772084214&tin=02508201610067®Number=0000000000091777&sum=70000 [05:38:31]StoreToDocumentArchive [05:38:31]shift 544 fd 201726 [05:38:31]save to /storage/0544/doc_00201726 [05:38:31]save last doc name /storage/0544/doc_00201726 to /storage/kkm_last_doc_name [05:38:31]save OK [05:38:31]Clear old archive folders... [05:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:38:31]tlvbuf is 00095150 [05:38:31]SAM_PROTO_ClearQueue [05:38:31]wFMCommunicate request_size=4 [05:38:31]MH_SAM_APDU [05:38:31]CAPDU: 80 09 00 00 [05:38:31]Write to MH i2c: E2 08 00 A3 0B 80 09 00 00 00 00 00 00 20 [05:38:31]Write i2c OK [05:38:31]MH_I2C_Read... [05:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:38:31]Read from MH i2c: E2 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 03 00 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 03 00 A3 0B 00 90 00 22 [05:38:31]RAPDU: 90 00 [05:38:31]wFMCommunicate OK [05:38:31]SAM_PROTO_ClearQueue done [05:38:31]KKMCreateOFDPacket [05:38:31]OFDProtocolAddRootSTLVToBuf [05:38:31]FM_MakeSignedData [05:38:31]FM_MakeSignedData [05:38:31]SAM_PROTO_SignData [05:38:31]wFMCommunicate request_size=4 [05:38:31]MH_SAM_APDU [05:38:31]CAPDU: 80 0D 01 02 [05:38:31]Write to MH i2c: E2 08 00 A4 0B 80 0D 01 02 00 00 00 00 28 [05:38:31]Write i2c OK [05:38:31]MH_I2C_Read... [05:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:38:31]Read from MH i2c: E2 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 03 00 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 03 00 A4 0B 00 90 00 23 [05:38:31]RAPDU: 90 00 [05:38:31]wFMCommunicate OK [05:38:31]wFMCommunicate request_size=255 [05:38:31]MH_SAM_APDU [05:38: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D8 D1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 13 03 00 35 04 06 00 F2 [05:38:31]Write to MH i2c: E2 02 01 A5 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D8 D1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 13 03 00 35 04 06 00 F2 00 00 33 [05:38:31]Write i2c OK [05:38:31]MH_I2C_Read... [05:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:31]Read from MH i2c: E2 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 03 00 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 03 00 A5 0B 00 90 00 24 [05:38:31]RAPDU: 90 00 [05:38:31]wFMCommunicate OK [05:38:31]wFMCommunicate request_size=10 [05:38:31]MH_SAM_APDU [05:38:31]CAPDU: 80 0D 02 02 05 0E E4 34 1B F6 [05:38:31]Write to MH i2c: E2 0D 00 A6 0B 80 0D 02 02 05 00 0E E4 34 1B F6 00 00 6C [05:38:31]Write i2c OK [05:38:31]MH_I2C_Read... [05:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:31]Read from MH i2c: E2 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 03 00 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 03 00 A6 0B 00 90 00 25 [05:38:31]RAPDU: 90 00 [05:38:31]wFMCommunicate OK [05:38:31]wFMCommunicate request_size=4 [05:38:31]MH_SAM_APDU [05:38:31]CAPDU: 80 0D 03 02 [05:38:31]Write to MH i2c: E2 08 00 A7 0B 80 0D 03 02 00 00 00 00 2D [05:38:31]Write i2c OK [05:38:31]MH_I2C_Read... [05:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:38:31]Read from MH i2c: E2 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 0B 00 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 0B 00 A7 0B 00 25 61 7C DA B8 28 09 CE 90 00 C1 [05:38:31]RAPDU: 25 61 7C DA B8 28 09 CE 90 00 [05:38:31]wFMCommunicate OK [05:38:31]SAM_PROTO_SignData done [05:38:31]FM_MakeSignedData done [05:38:31]CreateOFDProtocolMessage [05:38:31]wFMCommunicate request_size=4 [05:38:31]MH_SAM_APDU [05:38:31]CAPDU: 80 11 00 00 [05:38:31]Write to MH i2c: E2 08 00 A8 0B 80 11 00 00 00 00 00 00 2D [05:38:31]Write i2c OK [05:38:31]MH_I2C_Read... [05:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:31]Read from MH i2c: E2 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 17 00 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: E2 17 00 A8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 82 [05:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:38:31]wFMCommunicate OK [05:38:31]CreateOFDProtocolMessage done [05:38:31]OFDSenderStorePacket 201726 [05:38:31]StoreOFDPacket docnum=201726 [05:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 22 0F 07 01 8C 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D8 D1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 13 03 00 35 04 06 00 F2 0E E4 34 1B F6 25 61 7C DA B8 28 09 CE [05:38:31]CheckFolder [05:38:31]dirname=/storage/ofd_packets [05:38:31]CheckFolder done [05:38:31]ProducePacketName [05:38:31]name=ofd_packets/00201726 [05:38:31]NVStorageSaveData ofd_packets/00201726 [05:38:31]File name is /storage/ofd_packets/00201726 [05:38:31]Write 301 bytes [05:38:31]NVStorageSaveData done [05:38:31]OFDSenderStorePacket done [05:38:31]KKMCreateOFDPacket done [05:38:31]NVStorageSaveData kkm_last_timestamp [05:38:31]File name is /storage/kkm_last_timestamp [05:38:31]Write 4 bytes [05:38:31]NVStorageSaveData done [05:38:31]ExternCall_PrintAddStr [05:38:31]wPrintStart [05:38:31]Write to MH i2c: 01 00 00 A9 0B B4 [05:38:31]Write i2c OK [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: 01 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: 01 07 00 [05:38:31]MH_I2C_Read... [05:38:31]Read from MH i2c: 01 07 00 A9 0B 00 00 00 00 00 FF 0F C9 [05:38:31]RasterBufferAndPrint [05:38:31]line Счет N : (1)449482 [05:38:31]line ИНН: 02508201610067 [05:38:31]line Контрольно-Кассовый Чек [05:38:31]line ПРОДАЖА [05:38:31]line ТРК (МРК, ГНК) : 31 [05:38:31]line Товар: 2710124130 [05:38:31]line Аи-92-К-2 [05:38:31]line 10.470 * 66.90 [05:38:31]line = 700.44 [05:38:31]line НДС 12% НСП 1% [05:38:31]line > о реализуемом товаре [05:38:31]line ОКРУГЛЕНИЕ: -0.44 [05:38:31]line ИТОГО: 700.00 [05:38:31]line Внесено: 700.00 [05:38:31]line СДАЧА: 0.00 [05:38:31]line НСП 1% : 6.20 [05:38:31]line НДС 12% : 74.38 [05:38:31]line Наличными: 700.00 [05:38:31]line Безнал.: 0.00 [05:38:31]line Место: АЗС № 171 "Партнер Нефть" [05:38:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:38:31]line СНО: Общий режим [05:38:31]line Чек 18 27.10.2024 05:38 [05:38:31]line Смена: 544 ФФД: 1.0 [05:38:31]line ЗНМ: 0300000109 [05:38:31]line РНМ: 0000000000091777 [05:38:31]line Версия ККМ: 001 [05:38:31]line ФМ: 0000000000871756 [05:38:31]line ФД: 201726 [05:38:31]line ФПД: 266145772084214 [05:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T053832&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201726&fm=266145772084214&tin=02508201610067®Number=0000000000091777&sum=70000 [05:38:31]OFD Sender: Processing packet 201726 [packets to send 112, broken 111] [05:38:31]ProducePacketName [05:38:31]name=ofd_packets/00201726 [05:38:31]OFD Sender: To server: pG, [05:38:31]CommunicateWithHost lk.salyk.kg:30040 [05:38:31]ConnectInit lk.salyk.kg [05:38:31]written 0, free lines is 4095 [05:38:32]Connected sock=9 [05:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 22 0F 07 01 8C 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D8 D1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 13 03 00 35 04 06 00 F2 0E E4 34 1B F6 25 61 7C DA B8 28 09 CE [05:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5B 3E 47 00 3E F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 13 03 00 F4 03 04 00 7F 7D 1D 67 B6 04 01 00 00 31 C2 98 8E 8B 3F C1 4F [05:38:32]CommunicateWithHost err = 0 [05:38:32]CheckOFDResponse [05:38:32]1017 (14) - 77093643461234 [05:38:32]1041 (16) - 0000000000871756 [05:38:32]1040 (4) - 201726 [05:38:32]1012 (4) - 26.10.2024 23:38 [05:38:32]1206 (1) - 0 [05:38:32]OFD Sender: Remove packet 201726 [05:38:32]ProducePacketName [05:38:32]name=ofd_packets/00201726 [05:38:32]NVStorageDeleteData [05:38:32]Write to MH i2c: 01 00 00 D4 0B DF [05:38:32]Write i2c OK [05:38:32]MH_I2C_Read... [05:38:32]Read from MH i2c: 01 [05:38:32]MH_I2C_Read... [05:38:32]Read from MH i2c: 01 07 00 [05:38:32]MH_I2C_Read... [05:38:32]Read from MH i2c: 01 07 00 D4 0B 00 00 00 00 00 8B 0C 7D [05:38:32]RasterBufferAndPrint [05:38:32]line [05:38:32]line [05:38:32]line [05:38:32]line [05:38:32]line [05:38:32]written 0, free lines is 3215 [05:38:32]MH_Cut [05:38:32]Write to MH i2c: D1 01 00 DB 0B 01 B8 [05:38:32]Write i2c OK [05:38:32]MH_I2C_Read... [05:38:32]Read from MH i2c: D1 [05:38:32]MH_I2C_Read... [05:38:32]Read from MH i2c: D1 01 00 [05:38:32]MH_I2C_Read... [05:38:32]Read from MH i2c: D1 01 00 DB 0B 00 B7 [05:38:32]Write to MH i2c: 01 00 00 DC 0B E7 [05:38:32]Write i2c OK [05:38:32]MH_I2C_Read... [05:38:32]OFD Sender: No OFD packet to send [05:38:33]*** Cut start [05:38:33]*** Purtial cut [05:38:33]*** Stage 1: CUTSNS_PIN = 1 [05:38:33]Read from MH i2c: 01 [05:38:33]MH_I2C_Read... [05:38:33]*** Stop cut motor [05:38:33]*** Cut end [05:38:33]Read from MH i2c: 01 07 00 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: 01 07 00 DC 0B 00 00 00 00 00 FF 0F FC [05:38:33]process_action close_receipt done [05:38:33]requested_data is exist [05:38:33]produce_requested_data [05:38:33]requested_item fm.sn is exist - process it [05:38:33]wFMCommunicate request_size=4 [05:38:33]MH_SAM_APDU [05:38:33]CAPDU: 80 11 00 00 [05:38:33]Write to MH i2c: E2 08 00 DD 0B 80 11 00 00 00 00 00 00 62 [05:38:33]Write i2c OK [05:38:33]MH_I2C_Read... [05:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:33]Read from MH i2c: E2 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: E2 17 00 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: E2 17 00 DD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [05:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:38:33]wFMCommunicate OK [05:38:33]requested_item fd.num is exist - process it [05:38:33]SAM_PROTO_GetFieldsCounters [05:38:33]wFMCommunicate request_size=4 [05:38:33]MH_SAM_APDU [05:38:33]CAPDU: 80 13 00 00 [05:38:33]Write to MH i2c: E2 08 00 DE 0B 80 13 00 00 00 00 00 00 65 [05:38:33]Write i2c OK [05:38:33]MH_I2C_Read... [05:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:38:33]Read from MH i2c: E2 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: E2 62 00 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: E2 62 00 DE 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FE 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [05:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FE 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:38:33]wFMCommunicate OK [05:38:33]SAM_PROTO_GetFieldsCounters done [05:38:33]requested_item shift.num is exist - process it [05:38:33]requested_item shift.opened is exist - process it [05:38:33]req_shift_opened [05:38:33]FM_GetShiftState [05:38:33]SAM_PROTO_GetShiftState [05:38:33]wFMCommunicate request_size=4 [05:38:33]MH_SAM_APDU [05:38:33]CAPDU: 80 13 01 00 [05:38:33]Write to MH i2c: E2 08 00 DF 0B 80 13 01 00 00 00 00 00 67 [05:38:33]Write i2c OK [05:38:33]MH_I2C_Read... [05:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:33]Read from MH i2c: E2 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: E2 0E 00 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: E2 0E 00 DF 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 69 [05:38:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:38:33]wFMCommunicate OK [05:38:33]SAM_PROTO_GetShiftState done [05:38:33]FM_GetShiftState done [05:38:33]req_shift_opened done [05:38:33]requested_item shift.open_date is exist - process it [05:38:33]req_shift_open_date [05:38:33]req_shift_open_date done [05:38:33]produce_requested_data done [05:38:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201726,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:38:33]process_action_free close_receipt [05:38:33]json_value_free [05:38:33]json_value_free done [05:38:33]process_json_proto returns [05:38:33]Send response to host [05:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201726,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:38:33]free response buf [05:38:33]execute_script done [05:38:33]execute_script returns [05:38:33]free content buf [05:38:33]Sock 10.Close socket [05:38:33]Sock 10.Thread stoped [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41: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:16]accept exits with 8 [05:42:16]New connection [05:42:16]New thread 3067080036 created [05:42:16]Thread 3066936676 joined [05:42:16]Waiting for new connection... [05:42:16] Sock 8.Parse request [05:42:16]Sock 8.Check first char [05:42:16]Sock 8.First char is OK [05:42:16]request: POST /json_proto HTTP/1.0 [05:42:16]Method: POST [05:42:16]URL: /json_proto [05:42:16]Method is POST - this is cgi request [05:42:16]url: /json_proto [05:42:16]query_string will be loaded in cgi processing [05:42:16]execute_cgi json_proto POST (null) [05:42:16]execute_cgi path=json_proto method=POST [05:42:16]POST find Content-Length [05:42:16]Host: 172.17.63.195:8080 [05:42:16]Content-Length: 679 [05:42:16]Content-Type: application/json [05:42:16] [05:42:16]POST finish read [05:42:16]Found Content-Length = 679 [05:42:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [05:42:16]execute_script... [05:42:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [05:42:16]POST & json_proto [05:42:16]process_json_proto [05:42:16]json parsed OK: [05:42:16]protocol is kg_v1.0 [05:42:16]action value=close_receipt [05:42:16]process_action close_receipt [05:42:16]cmd_close_receipt [05:42:16]MH_GetDate [05:42:16]Write to MH i2c: F0 00 00 E0 0B DA [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: F0 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: F0 09 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: F0 09 00 E0 0B 00 BB D2 1D 67 68 46 19 67 22 [05:42:16]GetLastDocTimeStamp 1730007512 [05:42:16]current date 1730007739 [05:42:16]FM_GetShiftState [05:42:16]SAM_PROTO_GetShiftState [05:42:16]wFMCommunicate request_size=4 [05:42:16]MH_SAM_APDU [05:42:16]CAPDU: 80 13 01 00 [05:42:16]Write to MH i2c: E2 08 00 E1 0B 80 13 01 00 00 00 00 00 69 [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:16]Read from MH i2c: E2 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 0E 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 0E 00 E1 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6B [05:42:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:42:16]wFMCommunicate OK [05:42:16]SAM_PROTO_GetShiftState done [05:42:16]FM_GetShiftState done [05:42:16]opened in 1729987312 [05:42:16]opened+sec_in_day 1730073712 [05:42:16]quantity*price = 100050 [05:42:16]sum+1 = 100052 [05:42:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 19 27.10.2024 05:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201727 ФПД: 130760610446330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T054219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201727&fm=130760610446330&tin=02508201610067®Number=0000000000091777&sum=100000 [05:42:17]StoreToDocumentArchive [05:42:17]shift 544 fd 201727 [05:42:17]save to /storage/0544/doc_00201727 [05:42:17]save last doc name /storage/0544/doc_00201727 to /storage/kkm_last_doc_name [05:42:17]save OK [05:42:17]Clear old archive folders... [05:42:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:42:17]tlvbuf is 00095950 [05:42:17]SAM_PROTO_ClearQueue [05:42:17]wFMCommunicate request_size=4 [05:42:17]MH_SAM_APDU [05:42:17]CAPDU: 80 09 00 00 [05:42:17]Write to MH i2c: E2 08 00 EE 0B 80 09 00 00 00 00 00 00 6B [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:17]Read from MH i2c: E2 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 03 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 03 00 EE 0B 00 90 00 6D [05:42:17]RAPDU: 90 00 [05:42:17]wFMCommunicate OK [05:42:17]SAM_PROTO_ClearQueue done [05:42:17]KKMCreateOFDPacket [05:42:17]OFDProtocolAddRootSTLVToBuf [05:42:17]FM_MakeSignedData [05:42:17]FM_MakeSignedData [05:42:17]SAM_PROTO_SignData [05:42:17]wFMCommunicate request_size=4 [05:42:17]MH_SAM_APDU [05:42:17]CAPDU: 80 0D 01 02 [05:42:17]Write to MH i2c: E2 08 00 EF 0B 80 0D 01 02 00 00 00 00 73 [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:17]Read from MH i2c: E2 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 03 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 03 00 EF 0B 00 90 00 6E [05:42:17]RAPDU: 90 00 [05:42:17]wFMCommunicate OK [05:42:17]wFMCommunicate request_size=255 [05:42:17]MH_SAM_APDU [05:42:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 13 00 00 00 F4 03 04 00 BB D2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 13 03 00 35 04 06 00 76 ED 13 BC [05:42:17]Write to MH i2c: E2 02 01 F0 0B 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 32 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 13 00 00 00 F4 03 04 00 BB D2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 13 03 00 35 04 06 00 76 ED 13 BC 00 00 8A [05:42:18]Write i2c OK [05:42:18]MH_I2C_Read... [05:42:18]OFD Sender: No OFD packet to send [05:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:18]Read from MH i2c: E2 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 03 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 03 00 F0 0B 00 90 00 6F [05:42:18]RAPDU: 90 00 [05:42:18]wFMCommunicate OK [05:42:18]wFMCommunicate request_size=7 [05:42:18]MH_SAM_APDU [05:42:18]CAPDU: 80 0D 02 02 02 7B FA [05:42:18]Write to MH i2c: E2 0A 00 F1 0B 80 0D 02 02 02 00 7B FA 00 00 EF [05:42:18]Write i2c OK [05:42:18]MH_I2C_Read... [05:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:18]Read from MH i2c: E2 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 03 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 03 00 F1 0B 00 90 00 70 [05:42:18]RAPDU: 90 00 [05:42:18]wFMCommunicate OK [05:42:18]wFMCommunicate request_size=4 [05:42:18]MH_SAM_APDU [05:42:18]CAPDU: 80 0D 03 02 [05:42:18]Write to MH i2c: E2 08 00 F2 0B 80 0D 03 02 00 00 00 00 78 [05:42:18]Write i2c OK [05:42:18]MH_I2C_Read... [05:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:18]Read from MH i2c: E2 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 0B 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 0B 00 F2 0B 00 6B 9E 39 87 07 02 72 E0 90 00 9D [05:42:18]RAPDU: 6B 9E 39 87 07 02 72 E0 90 00 [05:42:18]wFMCommunicate OK [05:42:18]SAM_PROTO_SignData done [05:42:18]FM_MakeSignedData done [05:42:18]CreateOFDProtocolMessage [05:42:18]wFMCommunicate request_size=4 [05:42:18]MH_SAM_APDU [05:42:18]CAPDU: 80 11 00 00 [05:42:18]Write to MH i2c: E2 08 00 F3 0B 80 11 00 00 00 00 00 00 78 [05:42:18]Write i2c OK [05:42:18]MH_I2C_Read... [05:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:18]Read from MH i2c: E2 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 17 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: E2 17 00 F3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CD [05:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:42:18]wFMCommunicate OK [05:42:18]CreateOFDProtocolMessage done [05:42:18]OFDSenderStorePacket 201727 [05:42:18]StoreOFDPacket docnum=201727 [05:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 18 05 04 01 F5 6D 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 32 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 13 00 00 00 F4 03 04 00 BB D2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 13 03 00 35 04 06 00 76 ED 13 BC 7B FA 6B 9E 39 87 07 02 72 E0 [05:42:18]CheckFolder [05:42:18]dirname=/storage/ofd_packets [05:42:18]CheckFolder done [05:42:18]ProducePacketName [05:42:18]name=ofd_packets/00201727 [05:42:18]NVStorageSaveData ofd_packets/00201727 [05:42:18]File name is /storage/ofd_packets/00201727 [05:42:18]Write 298 bytes [05:42:18]NVStorageSaveData done [05:42:18]OFDSenderStorePacket done [05:42:18]KKMCreateOFDPacket done [05:42:18]NVStorageSaveData kkm_last_timestamp [05:42:18]File name is /storage/kkm_last_timestamp [05:42:18]Write 4 bytes [05:42:18]NVStorageSaveData done [05:42:18]ExternCall_PrintAddStr [05:42:18]wPrintStart [05:42:18]Write to MH i2c: 01 00 00 F4 0B FF [05:42:18]Write i2c OK [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: 01 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: 01 07 00 [05:42:18]MH_I2C_Read... [05:42:18]Read from MH i2c: 01 07 00 F4 0B 00 00 00 00 00 FF 0F 14 [05:42:18]RasterBufferAndPrint [05:42:18]line Счет N : (1)449483 [05:42:18]line ИНН: 02508201610067 [05:42:18]line Контрольно-Кассовый Чек [05:42:18]line ПРОДАЖА [05:42:18]line ТРК (МРК, ГНК) : 33 [05:42:18]line Товар: 2710194210 [05:42:18]line ДТ-К-2 [05:42:18]line 13.130 * 76.20 [05:42:18]line = 1000.51 [05:42:18]line НДС 12% НСП 1% [05:42:18]line > о реализуемом товаре [05:42:18]line ОКРУГЛЕНИЕ: -0.51 [05:42:18]line ИТОГО: 1000.00 [05:42:18]line Внесено: 1000.00 [05:42:18]line СДАЧА: 0.00 [05:42:18]line НСП 1% : 8.85 [05:42:18]line НДС 12% : 106.25 [05:42:18]line Наличными: 1000.00 [05:42:18]line Безнал.: 0.00 [05:42:18]line Место: АЗС № 171 "Партнер Нефть" [05:42:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:42:18]line СНО: Общий режим [05:42:18]line Чек 19 27.10.2024 05:42 [05:42:18]line Смена: 544 ФФД: 1.0 [05:42:18]line ЗНМ: 0300000109 [05:42:18]line РНМ: 0000000000091777 [05:42:18]line Версия ККМ: 001 [05:42:18]line ФМ: 0000000000871756 [05:42:18]line ФД: 201727 [05:42:18]line ФПД: 130760610446330 [05:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T054219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201727&fm=130760610446330&tin=02508201610067®Number=0000000000091777&sum=100000 [05:42:18]OFD Sender: Processing packet 201727 [packets to send 112, broken 111] [05:42:18]ProducePacketName [05:42:18]name=ofd_packets/00201727 [05:42:18]OFD Sender: To server: pG, [05:42:18]CommunicateWithHost lk.salyk.kg:30040 [05:42:18]ConnectInit lk.salyk.kg [05:42:18]written 0, free lines is 4095 [05:42:18]Connected sock=10 [05:42:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 18 05 04 01 F5 6D 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 32 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 13 00 00 00 F4 03 04 00 BB D2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 13 03 00 35 04 06 00 76 ED 13 BC 7B FA 6B 9E 39 87 07 02 72 E0 [05:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B4 9A 47 00 B8 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 13 03 00 F4 03 04 00 62 7E 1D 67 B6 04 01 00 00 0E FF D3 F5 FC 43 1E FA [05:42:19]CommunicateWithHost err = 0 [05:42:19]CheckOFDResponse [05:42:19]1017 (14) - 77093643461234 [05:42:19]1041 (16) - 0000000000871756 [05:42:19]1040 (4) - 201727 [05:42:19]1012 (4) - 26.10.2024 23:42 [05:42:19]1206 (1) - 0 [05:42:19]OFD Sender: Remove packet 201727 [05:42:19]ProducePacketName [05:42:19]name=ofd_packets/00201727 [05:42:19]NVStorageDeleteData [05:42:19]Write to MH i2c: 01 00 00 1F 0C 2B [05:42:19]Write i2c OK [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: 01 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: 01 07 00 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: 01 07 00 1F 0C 00 00 00 00 00 8C 0C CA [05:42:19]RasterBufferAndPrint [05:42:19]line [05:42:19]line [05:42:19]line [05:42:19]line [05:42:19]line [05:42:19]written 0, free lines is 3216 [05:42:19]MH_Cut [05:42:19]Write to MH i2c: D1 01 00 26 0C 01 04 [05:42:19]Write i2c OK [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: D1 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: D1 01 00 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: D1 01 00 26 0C 00 03 [05:42:19]Write to MH i2c: 01 00 00 27 0C 33 [05:42:19]Write i2c OK [05:42:19]MH_I2C_Read... [05:42:19]OFD Sender: No OFD packet to send [05:42:20]*** Cut start [05:42:20]*** Purtial cut [05:42:20]*** CUTSNS_PIN = 0 [05:42:20]*** Stage 1: CUTSNS_PIN = 1 [05:42:22]Read from MH i2c: 01 [05:42:22]MH_I2C_Read... [05:42:22]*** Stop cut motor [05:42:22]*** Cut end [05:42:22]Read from MH i2c: 01 07 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: 01 07 00 27 0C 00 00 00 00 00 FF 0F 48 [05:42:22]process_action close_receipt done [05:42:22]requested_data is exist [05:42:22]produce_requested_data [05:42:22]requested_item fm.sn is exist - process it [05:42:22]wFMCommunicate request_size=4 [05:42:22]MH_SAM_APDU [05:42:22]CAPDU: 80 11 00 00 [05:42:22]Write to MH i2c: E2 08 00 28 0C 80 11 00 00 00 00 00 00 AE [05:42:22]Write i2c OK [05:42:22]MH_I2C_Read... [05:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:22]Read from MH i2c: E2 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 17 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 17 00 28 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 03 [05:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:42:22]wFMCommunicate OK [05:42:22]requested_item fd.num is exist - process it [05:42:22]SAM_PROTO_GetFieldsCounters [05:42:22]wFMCommunicate request_size=4 [05:42:22]MH_SAM_APDU [05:42:22]CAPDU: 80 13 00 00 [05:42:22]Write to MH i2c: E2 08 00 29 0C 80 13 00 00 00 00 00 00 B1 [05:42:22]Write i2c OK [05:42:22]MH_I2C_Read... [05:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:42:22]Read from MH i2c: E2 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 62 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 62 00 29 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FF 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [05:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FF 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:42:22]wFMCommunicate OK [05:42:22]SAM_PROTO_GetFieldsCounters done [05:42:22]requested_item shift.num is exist - process it [05:42:22]requested_item shift.opened is exist - process it [05:42:22]req_shift_opened [05:42:22]FM_GetShiftState [05:42:22]SAM_PROTO_GetShiftState [05:42:22]wFMCommunicate request_size=4 [05:42:22]MH_SAM_APDU [05:42:22]CAPDU: 80 13 01 00 [05:42:22]Write to MH i2c: E2 08 00 2A 0C 80 13 01 00 00 00 00 00 B3 [05:42:22]Write i2c OK [05:42:22]MH_I2C_Read... [05:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:22]Read from MH i2c: E2 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 0E 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 0E 00 2A 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B5 [05:42:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:42:22]wFMCommunicate OK [05:42:22]SAM_PROTO_GetShiftState done [05:42:22]FM_GetShiftState done [05:42:22]req_shift_opened done [05:42:22]requested_item shift.open_date is exist - process it [05:42:22]req_shift_open_date [05:42:22]req_shift_open_date done [05:42:22]produce_requested_data done [05:42:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201727,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:42:22]process_action_free close_receipt [05:42:22]json_value_free [05:42:22]json_value_free done [05:42:22]process_json_proto returns [05:42:22]Send response to host [05:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201727,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:42:22]free response buf [05:42:22]execute_script done [05:42:22]execute_script returns [05:42:22]free content buf [05:42:22]Sock 8.Close socket [05:42:22]Sock 8.Thread stoped [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:07]accept exits with 9 [05:47:07]New connection [05:47:07]New thread 3066936676 created [05:47:07]Thread 3067080036 joined [05:47:07]Waiting for new connection... [05:47:07] Sock 9.Parse request [05:47:07]Sock 9.Check first char [05:47:07]Sock 9.First char is OK [05:47:07]request: POST /json_proto HTTP/1.0 [05:47:07]Method: POST [05:47:07]URL: /json_proto [05:47:07]Method is POST - this is cgi request [05:47:07]url: /json_proto [05:47:07]query_string will be loaded in cgi processing [05:47:07]execute_cgi json_proto POST (null) [05:47:07]execute_cgi path=json_proto method=POST [05:47:07]POST find Content-Length [05:47:07]Host: 172.17.63.195:8080 [05:47:07]Content-Length: 677 [05:47:07]Content-Type: application/json [05:47:07] [05:47:07]POST finish read [05:47:07]Found Content-Length = 677 [05:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:47:07]execute_script... [05:47: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)449484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:47:07]POST & json_proto [05:47:07]process_json_proto [05:47:07]json parsed OK: [05:47:07]protocol is kg_v1.0 [05:47:07]action value=close_receipt [05:47:07]process_action close_receipt [05:47:07]cmd_close_receipt [05:47:07]MH_GetDate [05:47:07]Write to MH i2c: F0 00 00 2B 0C 26 [05:47:07]Write i2c OK [05:47:07]MH_I2C_Read... [05:47:07]Read from MH i2c: F0 [05:47:07]MH_I2C_Read... [05:47:07]Read from MH i2c: F0 09 00 [05:47:07]MH_I2C_Read... [05:47:07]Read from MH i2c: F0 09 00 2B 0C 00 DE D3 1D 67 68 46 19 67 92 [05:47:07]GetLastDocTimeStamp 1730007739 [05:47:07]current date 1730008030 [05:47:07]FM_GetShiftState [05:47:07]SAM_PROTO_GetShiftState [05:47:07]wFMCommunicate request_size=4 [05:47:07]MH_SAM_APDU [05:47:07]CAPDU: 80 13 01 00 [05:47:07]Write to MH i2c: E2 08 00 2C 0C 80 13 01 00 00 00 00 00 B5 [05:47:07]Write i2c OK [05:47:07]MH_I2C_Read... [05:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:47:07]Read from MH i2c: E2 [05:47:07]MH_I2C_Read... [05:47:07]Read from MH i2c: E2 0E 00 [05:47:07]MH_I2C_Read... [05:47:07]Read from MH i2c: E2 0E 00 2C 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B7 [05:47:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:47:07]wFMCommunicate OK [05:47:07]SAM_PROTO_GetShiftState done [05:47:07]FM_GetShiftState done [05:47:07]opened in 1729987312 [05:47:07]opened+sec_in_day 1730073712 [05:47:07]quantity*price = 50041 [05:47:07]sum+1 = 50042 [05:47: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 20 27.10.2024 05:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201728 ФПД: 156527659848737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T054710&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201728&fm=156527659848737&tin=02508201610067®Number=0000000000091777&sum=50000 [05:47:08]StoreToDocumentArchive [05:47:08]shift 544 fd 201728 [05:47:08]save to /storage/0544/doc_00201728 [05:47:08]save last doc name /storage/0544/doc_00201728 to /storage/kkm_last_doc_name [05:47:08]save OK [05:47:08]Clear old archive folders... [05:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:47:08]tlvbuf is 00093510 [05:47:08]SAM_PROTO_ClearQueue [05:47:08]wFMCommunicate request_size=4 [05:47:08]MH_SAM_APDU [05:47:08]CAPDU: 80 09 00 00 [05:47:08]Write to MH i2c: E2 08 00 39 0C 80 09 00 00 00 00 00 00 B7 [05:47:08]Write i2c OK [05:47:08]MH_I2C_Read... [05:47:08]Read from MH i2c: E2 [05:47:08]MH_I2C_Read... [05:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:47:08]Read from MH i2c: E2 03 00 [05:47:08]MH_I2C_Read... [05:47:08]Read from MH i2c: E2 03 00 39 0C 00 90 00 B9 [05:47:08]RAPDU: 90 00 [05:47:08]wFMCommunicate OK [05:47:08]SAM_PROTO_ClearQueue done [05:47:08]KKMCreateOFDPacket [05:47:08]OFDProtocolAddRootSTLVToBuf [05:47:08]FM_MakeSignedData [05:47:08]FM_MakeSignedData [05:47:08]SAM_PROTO_SignData [05:47:08]wFMCommunicate request_size=4 [05:47:08]MH_SAM_APDU [05:47:08]CAPDU: 80 0D 01 02 [05:47:08]Write to MH i2c: E2 08 00 3A 0C 80 0D 01 02 00 00 00 00 BF [05:47:08]Write i2c OK [05:47:08]MH_I2C_Read... [05:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:47:08]Read from MH i2c: E2 [05:47:08]MH_I2C_Read... [05:47:08]Read from MH i2c: E2 03 00 [05:47:08]MH_I2C_Read... [05:47:08]Read from MH i2c: E2 03 00 3A 0C 00 90 00 BA [05:47:08]RAPDU: 90 00 [05:47:08]wFMCommunicate OK [05:47:08]wFMCommunicate request_size=255 [05:47:08]MH_SAM_APDU [05:47: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 32 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 14 00 00 00 F4 03 04 00 DE D3 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 14 03 00 35 04 06 00 8E [05:47:08]Write to MH i2c: E2 02 01 3B 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 DE D3 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 14 03 00 35 04 06 00 8E 00 00 63 [05:47:08]Write i2c OK [05:47:08]MH_I2C_Read... [05:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:47:09]Read from MH i2c: E2 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: E2 03 00 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: E2 03 00 3B 0C 00 90 00 BB [05:47:09]RAPDU: 90 00 [05:47:09]wFMCommunicate OK [05:47:09]wFMCommunicate request_size=10 [05:47:09]MH_SAM_APDU [05:47:09]CAPDU: 80 0D 02 02 05 5C 6F 90 14 21 [05:47:09]Write to MH i2c: E2 0D 00 3C 0C 80 0D 02 02 05 00 5C 6F 90 14 21 00 00 5C [05:47:09]Write i2c OK [05:47:09]MH_I2C_Read... [05:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:47:09]Read from MH i2c: E2 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: E2 03 00 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [05:47:09]RAPDU: 90 00 [05:47:09]wFMCommunicate OK [05:47:09]wFMCommunicate request_size=4 [05:47:09]MH_SAM_APDU [05:47:09]CAPDU: 80 0D 03 02 [05:47:09]Write to MH i2c: E2 08 00 3D 0C 80 0D 03 02 00 00 00 00 C4 [05:47:09]Write i2c OK [05:47:09]MH_I2C_Read... [05:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:47:09]Read from MH i2c: E2 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: E2 0B 00 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: E2 0B 00 3D 0C 00 F3 18 9F 0A 35 DB 97 40 90 00 60 [05:47:09]RAPDU: F3 18 9F 0A 35 DB 97 40 90 00 [05:47:09]wFMCommunicate OK [05:47:09]SAM_PROTO_SignData done [05:47:09]FM_MakeSignedData done [05:47:09]CreateOFDProtocolMessage [05:47:09]wFMCommunicate request_size=4 [05:47:09]MH_SAM_APDU [05:47:09]CAPDU: 80 11 00 00 [05:47:09]Write to MH i2c: E2 08 00 3E 0C 80 11 00 00 00 00 00 00 C4 [05:47:09]Write i2c OK [05:47:09]MH_I2C_Read... [05:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:47:09]Read from MH i2c: E2 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: E2 17 00 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: E2 17 00 3E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 19 [05:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:47:09]wFMCommunicate OK [05:47:09]CreateOFDProtocolMessage done [05:47:09]OFDSenderStorePacket 201728 [05:47:09]StoreOFDPacket docnum=201728 [05:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 62 34 07 01 CB BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 DE D3 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 14 03 00 35 04 06 00 8E 5C 6F 90 14 21 F3 18 9F 0A 35 DB 97 40 [05:47:09]CheckFolder [05:47:09]dirname=/storage/ofd_packets [05:47:09]CheckFolder done [05:47:09]ProducePacketName [05:47:09]name=ofd_packets/00201728 [05:47:09]NVStorageSaveData ofd_packets/00201728 [05:47:09]File name is /storage/ofd_packets/00201728 [05:47:09]Write 301 bytes [05:47:09]NVStorageSaveData done [05:47:09]OFDSenderStorePacket done [05:47:09]KKMCreateOFDPacket done [05:47:09]NVStorageSaveData kkm_last_timestamp [05:47:09]File name is /storage/kkm_last_timestamp [05:47:09]Write 4 bytes [05:47:09]NVStorageSaveData done [05:47:09]ExternCall_PrintAddStr [05:47:09]wPrintStart [05:47:09]Write to MH i2c: 01 00 00 3F 0C 4B [05:47:09]Write i2c OK [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: 01 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: 01 07 00 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: 01 07 00 3F 0C 00 00 00 00 00 FF 0F 60 [05:47:09]RasterBufferAndPrint [05:47:09]line Счет N : (1)449484 [05:47:09]line ИНН: 02508201610067 [05:47:09]line Контрольно-Кассовый Чек [05:47:09]line ПРОДАЖА [05:47:09]line ТРК (МРК, ГНК) : 31 [05:47:09]line Товар: 2710124130 [05:47:09]line Аи-92-К-2 [05:47:09]line 7.480 * 66.90 [05:47:09]line = 500.41 [05:47:09]line НДС 12% НСП 1% [05:47:09]line > о реализуемом товаре [05:47:09]line ОКРУГЛЕНИЕ: -0.41 [05:47:09]line ИТОГО: 500.00 [05:47:09]line Внесено: 500.00 [05:47:09]line СДАЧА: 0.00 [05:47:09]line НСП 1% : 4.43 [05:47:09]line НДС 12% : 53.14 [05:47:09]line Наличными: 500.00 [05:47:09]line Безнал.: 0.00 [05:47:09]line Место: АЗС № 171 "Партнер Нефть" [05:47:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:47:09]line СНО: Общий режим [05:47:09]line Чек 20 27.10.2024 05:47 [05:47:09]line Смена: 544 ФФД: 1.0 [05:47:09]line ЗНМ: 0300000109 [05:47:09]line РНМ: 0000000000091777 [05:47:09]line Версия ККМ: 001 [05:47:09]line ФМ: 0000000000871756 [05:47:09]line ФД: 201728 [05:47:09]line ФПД: 156527659848737 [05:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T054710&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201728&fm=156527659848737&tin=02508201610067®Number=0000000000091777&sum=50000 [05:47:09]OFD Sender: Processing packet 201728 [packets to send 112, broken 111] [05:47:09]ProducePacketName [05:47:09]name=ofd_packets/00201728 [05:47:09]OFD Sender: To server: pG, [05:47:09]CommunicateWithHost lk.salyk.kg:30040 [05:47:09]ConnectInit lk.salyk.kg [05:47:09]written 0, free lines is 4095 [05:47:09]Connected sock=10 [05:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 62 34 07 01 CB BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 00 00 00 F4 03 04 00 DE D3 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 14 03 00 35 04 06 00 8E 5C 6F 90 14 21 F3 18 9F 0A 35 DB 97 40 [05:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 55 6A 47 00 F6 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 14 03 00 F4 03 04 00 84 7F 1D 67 B6 04 01 00 00 01 71 6E 91 BF 34 66 4D [05:47:09]CommunicateWithHost err = 0 [05:47:09]CheckOFDResponse [05:47:09]1017 (14) - 77093643461234 [05:47:09]1041 (16) - 0000000000871756 [05:47:09]1040 (4) - 201728 [05:47:09]1012 (4) - 26.10.2024 23:47 [05:47:09]1206 (1) - 0 [05:47:09]OFD Sender: Remove packet 201728 [05:47:09]ProducePacketName [05:47:09]name=ofd_packets/00201728 [05:47:09]NVStorageDeleteData [05:47:09]Write to MH i2c: 01 00 00 6A 0C 76 [05:47:09]Write i2c OK [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: 01 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: 01 07 00 [05:47:09]MH_I2C_Read... [05:47:09]Read from MH i2c: 01 07 00 6A 0C 00 00 00 00 00 8D 0C 16 [05:47:09]RasterBufferAndPrint [05:47:09]line [05:47:09]line [05:47:09]line [05:47:09]line [05:47:09]line [05:47:09]written 0, free lines is 3217 [05:47:09]MH_Cut [05:47:09]Write to MH i2c: D1 01 00 71 0C 01 4F [05:47:10]Write i2c OK [05:47:10]MH_I2C_Read... [05:47:10]Read from MH i2c: D1 [05:47:10]MH_I2C_Read... [05:47:10]Read from MH i2c: D1 01 00 [05:47:10]MH_I2C_Read... [05:47:10]Read from MH i2c: D1 01 00 71 0C 00 4E [05:47:10]Write to MH i2c: 01 00 00 72 0C 7E [05:47:10]Write i2c OK [05:47:10]MH_I2C_Read... [05:47:10]OFD Sender: No OFD packet to send [05:47:10]*** Cut start [05:47:10]*** Purtial cut [05:47:10]*** Stage 1: CUTSNS_PIN = 1 [05:47:11]Read from MH i2c: 01 [05:47:11]MH_I2C_Read... [05:47:11]*** Stop cut motor [05:47:11]*** Cut end [05:47:11]Read from MH i2c: 01 07 00 [05:47:11]MH_I2C_Read... [05:47:11]Read from MH i2c: 01 07 00 72 0C 00 00 00 00 00 FF 0F 93 [05:47:11]process_action close_receipt done [05:47:11]requested_data is exist [05:47:11]produce_requested_data [05:47:11]requested_item fm.sn is exist - process it [05:47:11]wFMCommunicate request_size=4 [05:47:11]MH_SAM_APDU [05:47:11]CAPDU: 80 11 00 00 [05:47:11]Write to MH i2c: E2 08 00 73 0C 80 11 00 00 00 00 00 00 F9 [05:47:11]Write i2c OK [05:47:11]MH_I2C_Read... [05:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:47:11]Read from MH i2c: E2 [05:47:11]MH_I2C_Read... [05:47:11]Read from MH i2c: E2 17 00 [05:47:11]MH_I2C_Read... [05:47:11]Read from MH i2c: E2 17 00 73 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4E [05:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:47:11]wFMCommunicate OK [05:47:11]requested_item fd.num is exist - process it [05:47:11]SAM_PROTO_GetFieldsCounters [05:47:11]wFMCommunicate request_size=4 [05:47:11]MH_SAM_APDU [05:47:11]CAPDU: 80 13 00 00 [05:47:11]Write to MH i2c: E2 08 00 74 0C 80 13 00 00 00 00 00 00 FC [05:47:11]Write i2c OK [05:47:11]MH_I2C_Read... [05:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:47:11]Read from MH i2c: E2 [05:47:11]MH_I2C_Read... [05:47:11]Read from MH i2c: E2 62 00 [05:47:11]MH_I2C_Read... [05:47:11]Read from MH i2c: E2 62 00 74 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 00 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [05:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 00 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:47:11]wFMCommunicate OK [05:47:11]SAM_PROTO_GetFieldsCounters done [05:47:11]requested_item shift.num is exist - process it [05:47:11]requested_item shift.opened is exist - process it [05:47:11]req_shift_opened [05:47:11]FM_GetShiftState [05:47:11]SAM_PROTO_GetShiftState [05:47:11]wFMCommunicate request_size=4 [05:47:11]MH_SAM_APDU [05:47:11]CAPDU: 80 13 01 00 [05:47:11]Write to MH i2c: E2 08 00 75 0C 80 13 01 00 00 00 00 00 FE [05:47:11]Write i2c OK [05:47:11]MH_I2C_Read... [05:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:47:11]Read from MH i2c: E2 [05:47:11]MH_I2C_Read... [05:47:11]Read from MH i2c: E2 0E 00 [05:47:11]MH_I2C_Read... [05:47:11]Read from MH i2c: E2 0E 00 75 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 00 [05:47:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:47:11]wFMCommunicate OK [05:47:11]SAM_PROTO_GetShiftState done [05:47:11]FM_GetShiftState done [05:47:11]req_shift_opened done [05:47:11]requested_item shift.open_date is exist - process it [05:47:11]req_shift_open_date [05:47:11]req_shift_open_date done [05:47:11]produce_requested_data done [05:47:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201728,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:47:11]process_action_free close_receipt [05:47:11]json_value_free [05:47:11]json_value_free done [05:47:11]process_json_proto returns [05:47:11]Send response to host [05:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201728,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:47:11]free response buf [05:47:11]execute_script done [05:47:11]execute_script returns [05:47:11]free content buf [05:47:11]Sock 9.Close socket [05:47:11]Sock 9.Thread stoped [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:54]accept exits with 8 [05:47:54]New connection [05:47:54]New thread 3067080036 created [05:47:54]Thread 3066936676 joined [05:47:54]Waiting for new connection... [05:47:54] Sock 8.Parse request [05:47:54]Sock 8.Check first char [05:47:54]Sock 8.First char is OK [05:47:54]request: POST /json_proto HTTP/1.0 [05:47:54]Method: POST [05:47:54]URL: /json_proto [05:47:54]Method is POST - this is cgi request [05:47:54]url: /json_proto [05:47:54]query_string will be loaded in cgi processing [05:47:54]execute_cgi json_proto POST (null) [05:47:54]execute_cgi path=json_proto method=POST [05:47:54]POST find Content-Length [05:47:54]Host: 172.17.63.195:8080 [05:47:54]Content-Length: 677 [05:47:54]Content-Type: application/json [05:47:54] [05:47:54]POST finish read [05:47:54]Found Content-Length = 677 [05:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:47:54]execute_script... [05:47: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)449485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:47:54]POST & json_proto [05:47:54]process_json_proto [05:47:54]json parsed OK: [05:47:54]protocol is kg_v1.0 [05:47:54]action value=close_receipt [05:47:54]process_action close_receipt [05:47:54]cmd_close_receipt [05:47:54]MH_GetDate [05:47:54]Write to MH i2c: F0 00 00 76 0C 71 [05:47:54]Write i2c OK [05:47:54]MH_I2C_Read... [05:47:54]Read from MH i2c: F0 [05:47:54]MH_I2C_Read... [05:47:54]Read from MH i2c: F0 09 00 [05:47:54]MH_I2C_Read... [05:47:54]Read from MH i2c: F0 09 00 76 0C 00 0D D4 1D 67 68 46 19 67 0D [05:47:54]GetLastDocTimeStamp 1730008030 [05:47:54]current date 1730008077 [05:47:54]FM_GetShiftState [05:47:54]SAM_PROTO_GetShiftState [05:47:54]wFMCommunicate request_size=4 [05:47:54]MH_SAM_APDU [05:47:54]CAPDU: 80 13 01 00 [05:47:54]Write to MH i2c: E2 08 00 77 0C 80 13 01 00 00 00 00 00 00 [05:47:54]Write i2c OK [05:47:54]MH_I2C_Read... [05:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:47:54]Read from MH i2c: E2 [05:47:54]MH_I2C_Read... [05:47:54]Read from MH i2c: E2 0E 00 [05:47:54]MH_I2C_Read... [05:47:54]Read from MH i2c: E2 0E 00 77 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 02 [05:47:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:47:54]wFMCommunicate OK [05:47:54]SAM_PROTO_GetShiftState done [05:47:54]FM_GetShiftState done [05:47:54]opened in 1729987312 [05:47:54]opened+sec_in_day 1730073712 [05:47:54]quantity*price = 60009 [05:47:54]sum+1 = 60010 [05:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 21 27.10.2024 05:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201729 ФПД: 172606179426039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T054757&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201729&fm=172606179426039&tin=02508201610067®Number=0000000000091777&sum=60000 [05:47:55]StoreToDocumentArchive [05:47:55]shift 544 fd 201729 [05:47:55]save to /storage/0544/doc_00201729 [05:47:55]save last doc name /storage/0544/doc_00201729 to /storage/kkm_last_doc_name [05:47:55]save OK [05:47:55]Clear old archive folders... [05:47:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:47:55]tlvbuf is 000F26B0 [05:47:55]SAM_PROTO_ClearQueue [05:47:55]wFMCommunicate request_size=4 [05:47:55]MH_SAM_APDU [05:47:55]CAPDU: 80 09 00 00 [05:47:55]Write to MH i2c: E2 08 00 84 0C 80 09 00 00 00 00 00 00 02 [05:47:55]Write i2c OK [05:47:55]MH_I2C_Read... [05:47:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:47:55]Read from MH i2c: E2 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 03 00 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 03 00 84 0C 00 90 00 04 [05:47:55]RAPDU: 90 00 [05:47:55]wFMCommunicate OK [05:47:55]SAM_PROTO_ClearQueue done [05:47:55]KKMCreateOFDPacket [05:47:55]OFDProtocolAddRootSTLVToBuf [05:47:55]FM_MakeSignedData [05:47:55]FM_MakeSignedData [05:47:55]SAM_PROTO_SignData [05:47:55]wFMCommunicate request_size=4 [05:47:55]MH_SAM_APDU [05:47:55]CAPDU: 80 0D 01 02 [05:47:55]Write to MH i2c: E2 08 00 85 0C 80 0D 01 02 00 00 00 00 0A [05:47:55]Write i2c OK [05:47:55]MH_I2C_Read... [05:47:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:47:55]Read from MH i2c: E2 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 03 00 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 03 00 85 0C 00 90 00 05 [05:47:55]RAPDU: 90 00 [05:47:55]wFMCommunicate OK [05:47:55]wFMCommunicate request_size=255 [05:47:55]MH_SAM_APDU [05:47:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 15 00 00 00 F4 03 04 00 0D D4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 14 03 00 35 04 06 00 9C [05:47:55]Write to MH i2c: E2 02 01 86 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 15 00 00 00 F4 03 04 00 0D D4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 14 03 00 35 04 06 00 9C 00 00 CB [05:47:55]Write i2c OK [05:47:55]MH_I2C_Read... [05:47:55]OFD Sender: No OFD packet to send [05:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:47:55]Read from MH i2c: E2 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 03 00 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 03 00 86 0C 00 90 00 06 [05:47:55]RAPDU: 90 00 [05:47:55]wFMCommunicate OK [05:47:55]wFMCommunicate request_size=10 [05:47:55]MH_SAM_APDU [05:47:55]CAPDU: 80 0D 02 02 05 FC 02 02 BE F7 [05:47:55]Write to MH i2c: E2 0D 00 87 0C 80 0D 02 02 05 00 FC 02 02 BE F7 00 00 CC [05:47:55]Write i2c OK [05:47:55]MH_I2C_Read... [05:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:47:55]Read from MH i2c: E2 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 03 00 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [05:47:55]RAPDU: 90 00 [05:47:55]wFMCommunicate OK [05:47:55]wFMCommunicate request_size=4 [05:47:55]MH_SAM_APDU [05:47:55]CAPDU: 80 0D 03 02 [05:47:55]Write to MH i2c: E2 08 00 88 0C 80 0D 03 02 00 00 00 00 0F [05:47:55]Write i2c OK [05:47:55]MH_I2C_Read... [05:47:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:47:55]Read from MH i2c: E2 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 0B 00 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 0B 00 88 0C 00 C1 9E CD E7 3A C9 6C 9E 90 00 30 [05:47:55]RAPDU: C1 9E CD E7 3A C9 6C 9E 90 00 [05:47:55]wFMCommunicate OK [05:47:55]SAM_PROTO_SignData done [05:47:55]FM_MakeSignedData done [05:47:55]CreateOFDProtocolMessage [05:47:55]wFMCommunicate request_size=4 [05:47:55]MH_SAM_APDU [05:47:55]CAPDU: 80 11 00 00 [05:47:55]Write to MH i2c: E2 08 00 89 0C 80 11 00 00 00 00 00 00 0F [05:47:55]Write i2c OK [05:47:55]MH_I2C_Read... [05:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:47:55]Read from MH i2c: E2 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 17 00 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: E2 17 00 89 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 64 [05:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:47:55]wFMCommunicate OK [05:47:55]CreateOFDProtocolMessage done [05:47:55]OFDSenderStorePacket 201729 [05:47:55]StoreOFDPacket docnum=201729 [05:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6B 5D 07 01 88 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 32 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 15 00 00 00 F4 03 04 00 0D D4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 14 03 00 35 04 06 00 9C FC 02 02 BE F7 C1 9E CD E7 3A C9 6C 9E [05:47:55]CheckFolder [05:47:55]dirname=/storage/ofd_packets [05:47:55]CheckFolder done [05:47:55]ProducePacketName [05:47:55]name=ofd_packets/00201729 [05:47:55]NVStorageSaveData ofd_packets/00201729 [05:47:55]File name is /storage/ofd_packets/00201729 [05:47:55]Write 301 bytes [05:47:55]NVStorageSaveData done [05:47:55]OFDSenderStorePacket done [05:47:55]KKMCreateOFDPacket done [05:47:55]NVStorageSaveData kkm_last_timestamp [05:47:55]File name is /storage/kkm_last_timestamp [05:47:55]Write 4 bytes [05:47:55]NVStorageSaveData done [05:47:55]ExternCall_PrintAddStr [05:47:55]wPrintStart [05:47:55]Write to MH i2c: 01 00 00 8A 0C 96 [05:47:55]Write i2c OK [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: 01 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: 01 07 00 [05:47:55]MH_I2C_Read... [05:47:55]Read from MH i2c: 01 07 00 8A 0C 00 00 00 00 00 FF 0F AB [05:47:55]RasterBufferAndPrint [05:47:55]line Счет N : (1)449485 [05:47:55]line ИНН: 02508201610067 [05:47:55]line Контрольно-Кассовый Чек [05:47:55]line ПРОДАЖА [05:47:55]line ТРК (МРК, ГНК) : 41 [05:47:55]line Товар: 2710124130 [05:47:55]line Аи-92-К-2 [05:47:55]line 8.970 * 66.90 [05:47:55]line = 600.09 [05:47:55]line НДС 12% НСП 1% [05:47:55]line > о реализуемом товаре [05:47:55]line ОКРУГЛЕНИЕ: -0.09 [05:47:55]line ИТОГО: 600.00 [05:47:55]line Внесено: 600.00 [05:47:55]line СДАЧА: 0.00 [05:47:55]line НСП 1% : 5.31 [05:47:55]line НДС 12% : 63.73 [05:47:55]line Наличными: 600.00 [05:47:55]line Безнал.: 0.00 [05:47:55]line Место: АЗС № 171 "Партнер Нефть" [05:47:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:47:55]line СНО: Общий режим [05:47:55]line Чек 21 27.10.2024 05:47 [05:47:55]line Смена: 544 ФФД: 1.0 [05:47:55]line ЗНМ: 0300000109 [05:47:55]line РНМ: 0000000000091777 [05:47:55]line Версия ККМ: 001 [05:47:55]line ФМ: 0000000000871756 [05:47:55]line ФД: 201729 [05:47:55]line ФПД: 172606179426039 [05:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T054757&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201729&fm=172606179426039&tin=02508201610067®Number=0000000000091777&sum=60000 [05:47:56]OFD Sender: Processing packet 201729 [packets to send 112, broken 111] [05:47:56]ProducePacketName [05:47:56]name=ofd_packets/00201729 [05:47:56]OFD Sender: To server: pG, [05:47:56]CommunicateWithHost lk.salyk.kg:30040 [05:47:56]ConnectInit lk.salyk.kg [05:47:56]written 0, free lines is 4095 [05:47:56]Connected sock=10 [05:47:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6B 5D 07 01 88 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 32 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 15 00 00 00 F4 03 04 00 0D D4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 14 03 00 35 04 06 00 9C FC 02 02 BE F7 C1 9E CD E7 3A C9 6C 9E [05:47:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D2 C9 47 00 68 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 14 03 00 F4 03 04 00 B3 7F 1D 67 B6 04 01 00 00 4E 89 C6 85 9E 8C BB 22 [05:47:56]CommunicateWithHost err = 0 [05:47:56]CheckOFDResponse [05:47:56]1017 (14) - 77093643461234 [05:47:56]1041 (16) - 0000000000871756 [05:47:56]1040 (4) - 201729 [05:47:56]1012 (4) - 26.10.2024 23:48 [05:47:56]1206 (1) - 0 [05:47:56]OFD Sender: Remove packet 201729 [05:47:56]ProducePacketName [05:47:56]name=ofd_packets/00201729 [05:47:56]NVStorageDeleteData [05:47:56]Write to MH i2c: 01 00 00 B5 0C C1 [05:47:56]Write i2c OK [05:47:56]MH_I2C_Read... [05:47:56]Read from MH i2c: 01 [05:47:56]MH_I2C_Read... [05:47:56]Read from MH i2c: 01 07 00 [05:47:56]MH_I2C_Read... [05:47:56]Read from MH i2c: 01 07 00 B5 0C 00 00 00 00 00 95 0C 69 [05:47:56]RasterBufferAndPrint [05:47:56]line [05:47:56]line [05:47:56]line [05:47:56]line [05:47:56]line [05:47:56]written 0, free lines is 3225 [05:47:56]MH_Cut [05:47:56]Write to MH i2c: D1 01 00 BC 0C 01 9A [05:47:56]Write i2c OK [05:47:56]MH_I2C_Read... [05:47:56]Read from MH i2c: D1 [05:47:56]MH_I2C_Read... [05:47:56]Read from MH i2c: D1 01 00 [05:47:56]MH_I2C_Read... [05:47:56]Read from MH i2c: D1 01 00 BC 0C 00 99 [05:47:56]Write to MH i2c: 01 00 00 BD 0C C9 [05:47:56]Write i2c OK [05:47:56]MH_I2C_Read... [05:47:57]OFD Sender: No OFD packet to send [05:47:57]*** Cut start [05:47:57]*** Purtial cut [05:47:57]*** Stage 1: CUTSNS_PIN = 1 [05:47:57]Read from MH i2c: 01 [05:47:57]MH_I2C_Read... [05:47:57]*** Stop cut motor [05:47:57]*** Cut end [05:47:57]Read from MH i2c: 01 07 00 [05:47:57]MH_I2C_Read... [05:47:57]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 FF 0F DE [05:47:57]process_action close_receipt done [05:47:57]requested_data is exist [05:47:57]produce_requested_data [05:47:57]requested_item fm.sn is exist - process it [05:47:57]wFMCommunicate request_size=4 [05:47:57]MH_SAM_APDU [05:47:57]CAPDU: 80 11 00 00 [05:47:57]Write to MH i2c: E2 08 00 BE 0C 80 11 00 00 00 00 00 00 44 [05:47:57]Write i2c OK [05:47:57]MH_I2C_Read... [05:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:47:57]Read from MH i2c: E2 [05:47:57]MH_I2C_Read... [05:47:57]Read from MH i2c: E2 17 00 [05:47:57]MH_I2C_Read... [05:47:57]Read from MH i2c: E2 17 00 BE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 99 [05:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:47:57]wFMCommunicate OK [05:47:57]requested_item fd.num is exist - process it [05:47:57]SAM_PROTO_GetFieldsCounters [05:47:57]wFMCommunicate request_size=4 [05:47:57]MH_SAM_APDU [05:47:57]CAPDU: 80 13 00 00 [05:47:57]Write to MH i2c: E2 08 00 BF 0C 80 13 00 00 00 00 00 00 47 [05:47:57]Write i2c OK [05:47:57]MH_I2C_Read... [05:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:47:57]Read from MH i2c: E2 [05:47:57]MH_I2C_Read... [05:47:57]Read from MH i2c: E2 62 00 [05:47:57]MH_I2C_Read... [05:47:57]Read from MH i2c: E2 62 00 BF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 01 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [05:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 01 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:47:57]wFMCommunicate OK [05:47:57]SAM_PROTO_GetFieldsCounters done [05:47:57]requested_item shift.num is exist - process it [05:47:57]requested_item shift.opened is exist - process it [05:47:57]req_shift_opened [05:47:57]FM_GetShiftState [05:47:57]SAM_PROTO_GetShiftState [05:47:57]wFMCommunicate request_size=4 [05:47:57]MH_SAM_APDU [05:47:57]CAPDU: 80 13 01 00 [05:47:57]Write to MH i2c: E2 08 00 C0 0C 80 13 01 00 00 00 00 00 49 [05:47:57]Write i2c OK [05:47:57]MH_I2C_Read... [05:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:47:58]Read from MH i2c: E2 [05:47:58]MH_I2C_Read... [05:47:58]Read from MH i2c: E2 0E 00 [05:47:58]MH_I2C_Read... [05:47:58]Read from MH i2c: E2 0E 00 C0 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4B [05:47:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:47:58]wFMCommunicate OK [05:47:58]SAM_PROTO_GetShiftState done [05:47:58]FM_GetShiftState done [05:47:58]req_shift_opened done [05:47:58]requested_item shift.open_date is exist - process it [05:47:58]req_shift_open_date [05:47:58]req_shift_open_date done [05:47:58]produce_requested_data done [05:47:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201729,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:47:58]process_action_free close_receipt [05:47:58]json_value_free [05:47:58]json_value_free done [05:47:58]process_json_proto returns [05:47:58]Send response to host [05:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201729,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:47:58]free response buf [05:47:58]execute_script done [05:47:58]execute_script returns [05:47:58]free content buf [05:47:58]Sock 8.Close socket [05:47:58]Sock 8.Thread stoped [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:36]accept exits with 9 [05:59:36]New connection [05:59:36]New thread 3066936676 created [05:59:36]Thread 3067080036 joined [05:59:36]Waiting for new connection... [05:59:36] Sock 9.Parse request [05:59:36]Sock 9.Check first char [05:59:36]Sock 9.First char is OK [05:59:36]request: POST /json_proto HTTP/1.0 [05:59:36]Method: POST [05:59:36]URL: /json_proto [05:59:36]Method is POST - this is cgi request [05:59:36]url: /json_proto [05:59:36]query_string will be loaded in cgi processing [05:59:36]execute_cgi json_proto POST (null) [05:59:36]execute_cgi path=json_proto method=POST [05:59:36]POST find Content-Length [05:59:36]Host: 172.17.63.195:8080 [05:59:36]Content-Length: 670 [05:59:36]Content-Type: application/json [05:59:36] [05:59:36]POST finish read [05:59:36]Found Content-Length = 670 [05:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:36]execute_script... [05:59:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:59:36]POST & json_proto [05:59:36]process_json_proto [05:59:36]json parsed OK: [05:59:36]protocol is kg_v1.0 [05:59:36]action value=close_receipt [05:59:36]process_action close_receipt [05:59:36]cmd_close_receipt [05:59:36]MH_GetDate [05:59:36]Write to MH i2c: F0 00 00 C1 0C BC [05:59:36]Write i2c OK [05:59:36]MH_I2C_Read... [05:59:36]Read from MH i2c: F0 [05:59:36]MH_I2C_Read... [05:59:36]Read from MH i2c: F0 09 00 [05:59:36]MH_I2C_Read... [05:59:36]Read from MH i2c: F0 09 00 C1 0C 00 CB D6 1D 67 68 46 19 67 18 [05:59:36]GetLastDocTimeStamp 1730008077 [05:59:36]current date 1730008779 [05:59:36]FM_GetShiftState [05:59:36]SAM_PROTO_GetShiftState [05:59:36]wFMCommunicate request_size=4 [05:59:36]MH_SAM_APDU [05:59:36]CAPDU: 80 13 01 00 [05:59:36]Write to MH i2c: E2 08 00 C2 0C 80 13 01 00 00 00 00 00 4B [05:59:36]Write i2c OK [05:59:36]MH_I2C_Read... [05:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:36]Read from MH i2c: E2 [05:59:36]MH_I2C_Read... [05:59:36]Read from MH i2c: E2 0E 00 [05:59:36]MH_I2C_Read... [05:59:36]Read from MH i2c: E2 0E 00 C2 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4D [05:59:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:59:36]wFMCommunicate OK [05:59:36]SAM_PROTO_GetShiftState done [05:59:36]FM_GetShiftState done [05:59:36]opened in 1729987312 [05:59:36]opened+sec_in_day 1730073712 [05:59:36]quantity*price = 30027 [05:59:36]sum+1 = 30029 [05:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 22 27.10.2024 05:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201730 ФПД: 90395206436709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T055940&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201730&fm=90395206436709&tin=02508201610067®Number=0000000000091777&sum=30000 [05:59:38]StoreToDocumentArchive [05:59:38]shift 544 fd 201730 [05:59:38]save to /storage/0544/doc_00201730 [05:59:38]save last doc name /storage/0544/doc_00201730 to /storage/kkm_last_doc_name [05:59:38]save OK [05:59:38]Clear old archive folders... [05:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:59:38]tlvbuf is 00069D90 [05:59:38]SAM_PROTO_ClearQueue [05:59:38]wFMCommunicate request_size=4 [05:59:38]MH_SAM_APDU [05:59:38]CAPDU: 80 09 00 00 [05:59:38]Write to MH i2c: E2 08 00 CF 0C 80 09 00 00 00 00 00 00 4D [05:59:38]Write i2c OK [05:59:38]MH_I2C_Read... [05:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:59:38]Read from MH i2c: E2 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 03 00 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 03 00 CF 0C 00 90 00 4F [05:59:38]RAPDU: 90 00 [05:59:38]wFMCommunicate OK [05:59:38]SAM_PROTO_ClearQueue done [05:59:38]KKMCreateOFDPacket [05:59:38]OFDProtocolAddRootSTLVToBuf [05:59:38]FM_MakeSignedData [05:59:38]FM_MakeSignedData [05:59:38]SAM_PROTO_SignData [05:59:38]wFMCommunicate request_size=4 [05:59:38]MH_SAM_APDU [05:59:38]CAPDU: 80 0D 01 02 [05:59:38]Write to MH i2c: E2 08 00 D0 0C 80 0D 01 02 00 00 00 00 55 [05:59:38]Write i2c OK [05:59:38]MH_I2C_Read... [05:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:59:38]Read from MH i2c: E2 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 03 00 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [05:59:38]RAPDU: 90 00 [05:59:38]wFMCommunicate OK [05:59:38]wFMCommunicate request_size=255 [05:59:38]MH_SAM_APDU [05:59:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 16 00 00 00 F4 03 04 00 CC D6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 14 03 00 35 04 06 00 [05:59:38]Write to MH i2c: E2 02 01 D1 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 16 00 00 00 F4 03 04 00 CC D6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 14 03 00 35 04 06 00 00 00 1B [05:59:38]Write i2c OK [05:59:38]MH_I2C_Read... [05:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:38]Read from MH i2c: E2 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 03 00 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [05:59:38]RAPDU: 90 00 [05:59:38]wFMCommunicate OK [05:59:38]wFMCommunicate request_size=11 [05:59:38]MH_SAM_APDU [05:59:38]CAPDU: 80 0D 02 02 06 52 36 C6 2B 47 65 [05:59:38]Write to MH i2c: E2 0E 00 D2 0C 80 0D 02 02 06 00 52 36 C6 2B 47 65 00 00 89 [05:59:38]Write i2c OK [05:59:38]MH_I2C_Read... [05:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:38]Read from MH i2c: E2 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 03 00 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [05:59:38]RAPDU: 90 00 [05:59:38]wFMCommunicate OK [05:59:38]wFMCommunicate request_size=4 [05:59:38]MH_SAM_APDU [05:59:38]CAPDU: 80 0D 03 02 [05:59:38]Write to MH i2c: E2 08 00 D3 0C 80 0D 03 02 00 00 00 00 5A [05:59:38]Write i2c OK [05:59:38]MH_I2C_Read... [05:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:59:38]Read from MH i2c: E2 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 0B 00 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 0B 00 D3 0C 00 C2 F9 0C 9C 90 23 A2 AE 90 00 C1 [05:59:38]RAPDU: C2 F9 0C 9C 90 23 A2 AE 90 00 [05:59:38]wFMCommunicate OK [05:59:38]SAM_PROTO_SignData done [05:59:38]FM_MakeSignedData done [05:59:38]CreateOFDProtocolMessage [05:59:38]wFMCommunicate request_size=4 [05:59:38]MH_SAM_APDU [05:59:38]CAPDU: 80 11 00 00 [05:59:38]Write to MH i2c: E2 08 00 D4 0C 80 11 00 00 00 00 00 00 5A [05:59:38]Write i2c OK [05:59:38]MH_I2C_Read... [05:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:38]Read from MH i2c: E2 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 17 00 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: E2 17 00 D4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AF [05:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:59:38]wFMCommunicate OK [05:59:38]CreateOFDProtocolMessage done [05:59:38]OFDSenderStorePacket 201730 [05:59:38]StoreOFDPacket docnum=201730 [05:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 58 27 08 01 2C 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 16 00 00 00 F4 03 04 00 CC D6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 14 03 00 35 04 06 00 52 36 C6 2B 47 65 C2 F9 0C 9C 90 23 A2 AE [05:59:38]CheckFolder [05:59:38]dirname=/storage/ofd_packets [05:59:38]CheckFolder done [05:59:38]ProducePacketName [05:59:38]name=ofd_packets/00201730 [05:59:38]NVStorageSaveData ofd_packets/00201730 [05:59:38]File name is /storage/ofd_packets/00201730 [05:59:38]Write 302 bytes [05:59:38]NVStorageSaveData done [05:59:38]OFDSenderStorePacket done [05:59:38]KKMCreateOFDPacket done [05:59:38]NVStorageSaveData kkm_last_timestamp [05:59:38]File name is /storage/kkm_last_timestamp [05:59:38]Write 4 bytes [05:59:38]NVStorageSaveData done [05:59:38]OFD Sender: Processing packet 201730 [packets to send 112, broken 111] [05:59:38]ProducePacketName [05:59:38]name=ofd_packets/00201730 [05:59:38]OFD Sender: To server: pG, [05:59:38]CommunicateWithHost lk.salyk.kg:30040 [05:59:38]ConnectInit lk.salyk.kg [05:59:38]ExternCall_PrintAddStr [05:59:38]wPrintStart [05:59:38]Write to MH i2c: 01 00 00 D5 0C E1 [05:59:38]Write i2c OK [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: 01 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: 01 07 00 [05:59:38]MH_I2C_Read... [05:59:38]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 FF 0F F6 [05:59:38]RasterBufferAndPrint [05:59:38]line Счет N : (1)449486 [05:59:38]line ИНН: 02508201610067 [05:59:38]line Контрольно-Кассовый Чек [05:59:38]line ПРОДАЖА [05:59:38]line ТРК (МРК, ГНК) : 42 [05:59:38]line Товар: 2710124130 [05:59:38]line SUPER 92-К-5 [05:59:38]line 4.390 * 68.40 [05:59:38]line = 300.28 [05:59:38]line НДС 12% НСП 1% [05:59:38]line > о реализуемом товаре [05:59:38]line ОКРУГЛЕНИЕ: -0.28 [05:59:38]line ИТОГО: 300.00 [05:59:38]line Внесено: 300.00 [05:59:38]line СДАЧА: 0.00 [05:59:38]line НСП 1% : 2.66 [05:59:38]line НДС 12% : 31.89 [05:59:38]line Наличными: 300.00 [05:59:38]line Безнал.: 0.00 [05:59:38]line Место: АЗС № 171 "Партнер Нефть" [05:59:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:59:38]line СНО: Общий режим [05:59:38]line Чек 22 27.10.2024 05:59 [05:59:38]line Смена: 544 ФФД: 1.0 [05:59:38]line ЗНМ: 0300000109 [05:59:38]line РНМ: 0000000000091777 [05:59:38]line Версия ККМ: 001 [05:59:38]line ФМ: 0000000000871756 [05:59:38]line ФД: 201730 [05:59:38]line ФПД: 90395206436709 [05:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T055940&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201730&fm=90395206436709&tin=02508201610067®Number=0000000000091777&sum=30000 [05:59:38]Connected sock=11 [05:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 58 27 08 01 2C 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 16 00 00 00 F4 03 04 00 CC D6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 14 03 00 35 04 06 00 52 36 C6 2B 47 65 C2 F9 0C 9C 90 23 A2 AE [05:59:38]written 0, free lines is 4095 [05:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 84 A3 47 00 AE 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 14 03 00 F4 03 04 00 72 82 1D 67 B6 04 01 00 00 6A 8E B2 11 CF 1B 7A 30 [05:59:39]CommunicateWithHost err = 0 [05:59:39]CheckOFDResponse [05:59:39]1017 (14) - 77093643461234 [05:59:39]1041 (16) - 0000000000871756 [05:59:39]1040 (4) - 201730 [05:59:39]1012 (4) - 26.10.2024 23:59 [05:59:39]1206 (1) - 0 [05:59:39]OFD Sender: Remove packet 201730 [05:59:39]ProducePacketName [05:59:39]name=ofd_packets/00201730 [05:59:39]NVStorageDeleteData [05:59:39]Write to MH i2c: 01 00 00 00 0D 0D [05:59:39]Write i2c OK [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: 01 [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: 01 07 00 [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: 01 07 00 00 0D 00 00 00 00 00 90 0C B0 [05:59:39]RasterBufferAndPrint [05:59:39]line [05:59:39]line [05:59:39]line [05:59:39]line [05:59:39]line [05:59:39]written 0, free lines is 3220 [05:59:39]MH_Cut [05:59:39]Write to MH i2c: D1 01 00 07 0D 01 E6 [05:59:39]Write i2c OK [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: D1 [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: D1 01 00 [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: D1 01 00 07 0D 00 E5 [05:59:39]Write to MH i2c: 01 00 00 08 0D 15 [05:59:39]Write i2c OK [05:59:39]MH_I2C_Read... [05:59:39]OFD Sender: No OFD packet to send [05:59:40]*** Cut start [05:59:40]*** Purtial cut [05:59:40]*** Stage 1: CUTSNS_PIN = 1 [05:59:40]Read from MH i2c: 01 [05:59:40]MH_I2C_Read... [05:59:40]*** Stop cut motor [05:59:40]*** Cut end [05:59:40]Read from MH i2c: 01 07 00 [05:59:40]MH_I2C_Read... [05:59:40]Read from MH i2c: 01 07 00 08 0D 00 00 00 00 00 FF 0F 2A [05:59:40]process_action close_receipt done [05:59:40]requested_data is exist [05:59:40]produce_requested_data [05:59:40]requested_item fm.sn is exist - process it [05:59:40]wFMCommunicate request_size=4 [05:59:40]MH_SAM_APDU [05:59:40]CAPDU: 80 11 00 00 [05:59:40]Write to MH i2c: E2 08 00 09 0D 80 11 00 00 00 00 00 00 90 [05:59:40]Write i2c OK [05:59:40]MH_I2C_Read... [05:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:40]Read from MH i2c: E2 [05:59:40]MH_I2C_Read... [05:59:40]Read from MH i2c: E2 17 00 [05:59:40]MH_I2C_Read... [05:59:40]Read from MH i2c: E2 17 00 09 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E5 [05:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:59:40]wFMCommunicate OK [05:59:40]requested_item fd.num is exist - process it [05:59:40]SAM_PROTO_GetFieldsCounters [05:59:40]wFMCommunicate request_size=4 [05:59:40]MH_SAM_APDU [05:59:40]CAPDU: 80 13 00 00 [05:59:40]Write to MH i2c: E2 08 00 0A 0D 80 13 00 00 00 00 00 00 93 [05:59:40]Write i2c OK [05:59:40]MH_I2C_Read... [05:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:40]Read from MH i2c: E2 [05:59:40]MH_I2C_Read... [05:59:40]Read from MH i2c: E2 62 00 [05:59:40]MH_I2C_Read... [05:59:40]Read from MH i2c: E2 62 00 0A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 02 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [05:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 02 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:59:40]wFMCommunicate OK [05:59:40]SAM_PROTO_GetFieldsCounters done [05:59:40]requested_item shift.num is exist - process it [05:59:40]requested_item shift.opened is exist - process it [05:59:40]req_shift_opened [05:59:40]FM_GetShiftState [05:59:40]SAM_PROTO_GetShiftState [05:59:40]wFMCommunicate request_size=4 [05:59:40]MH_SAM_APDU [05:59:40]CAPDU: 80 13 01 00 [05:59:40]Write to MH i2c: E2 08 00 0B 0D 80 13 01 00 00 00 00 00 95 [05:59:40]Write i2c OK [05:59:40]MH_I2C_Read... [05:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:40]Read from MH i2c: E2 [05:59:40]MH_I2C_Read... [05:59:40]Read from MH i2c: E2 0E 00 [05:59:40]MH_I2C_Read... [05:59:40]Read from MH i2c: E2 0E 00 0B 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 97 [05:59:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [05:59:40]wFMCommunicate OK [05:59:40]SAM_PROTO_GetShiftState done [05:59:40]FM_GetShiftState done [05:59:40]req_shift_opened done [05:59:40]requested_item shift.open_date is exist - process it [05:59:40]req_shift_open_date [05:59:40]req_shift_open_date done [05:59:40]produce_requested_data done [05:59:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201730,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [05:59:40]process_action_free close_receipt [05:59:40]json_value_free [05:59:40]json_value_free done [05:59:40]process_json_proto returns [05:59:40]Send response to host [05:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201730,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [05:59:40]free response buf [05:59:40]execute_script done [05:59:40]execute_script returns [05:59:40]free content buf [05:59:40]Sock 9.Close socket [05:59:40]Sock 9.Thread stoped [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:39]accept exits with 8 [06:04:39]New connection [06:04:39]New thread 3067080036 created [06:04:39]Thread 3066936676 joined [06:04:39]Waiting for new connection... [06:04:39] Sock 8.Parse request [06:04:39]Sock 8.Check first char [06:04:39]Sock 8.First char is OK [06:04:39]request: POST /json_proto HTTP/1.0 [06:04:39]Method: POST [06:04:39]URL: /json_proto [06:04:39]Method is POST - this is cgi request [06:04:39]url: /json_proto [06:04:39]query_string will be loaded in cgi processing [06:04:39]execute_cgi json_proto POST (null) [06:04:39]execute_cgi path=json_proto method=POST [06:04:39]POST find Content-Length [06:04:39]Host: 172.17.63.195:8080 [06:04:39]Content-Length: 677 [06:04:39]Content-Type: application/json [06:04:39] [06:04:39]POST finish read [06:04:39]Found Content-Length = 677 [06:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 9.120, "sum" : 610.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:39]execute_script... [06:04:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 9.120, "sum" : 610.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:39]POST & json_proto [06:04:39]process_json_proto [06:04:39]json parsed OK: [06:04:39]protocol is kg_v1.0 [06:04:39]action value=close_receipt [06:04:39]process_action close_receipt [06:04:39]cmd_close_receipt [06:04:39]MH_GetDate [06:04:39]Write to MH i2c: F0 00 00 0C 0D 08 [06:04:39]Write i2c OK [06:04:39]MH_I2C_Read... [06:04:39]Read from MH i2c: F0 [06:04:39]MH_I2C_Read... [06:04:39]Read from MH i2c: F0 09 00 [06:04:39]MH_I2C_Read... [06:04:39]Read from MH i2c: F0 09 00 0C 0D 00 FA D7 1D 67 68 46 19 67 94 [06:04:39]GetLastDocTimeStamp 1730008780 [06:04:39]current date 1730009082 [06:04:39]FM_GetShiftState [06:04:39]SAM_PROTO_GetShiftState [06:04:39]wFMCommunicate request_size=4 [06:04:39]MH_SAM_APDU [06:04:39]CAPDU: 80 13 01 00 [06:04:39]Write to MH i2c: E2 08 00 0D 0D 80 13 01 00 00 00 00 00 97 [06:04:39]Write i2c OK [06:04:39]MH_I2C_Read... [06:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:39]Read from MH i2c: E2 [06:04:39]MH_I2C_Read... [06:04:39]Read from MH i2c: E2 0E 00 [06:04:39]MH_I2C_Read... [06:04:39]Read from MH i2c: E2 0E 00 0D 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 99 [06:04:39]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:04:39]wFMCommunicate OK [06:04:39]SAM_PROTO_GetShiftState done [06:04:39]FM_GetShiftState done [06:04:39]opened in 1729987312 [06:04:39]opened+sec_in_day 1730073712 [06:04:39]quantity*price = 61012 [06:04:39]sum+1 = 61014 [06:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.79 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 23 27.10.2024 06:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201731 ФПД: 221366595411103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060442&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201731&fm=221366595411103&tin=02508201610067®Number=0000000000091777&sum=61000 [06:04:40]StoreToDocumentArchive [06:04:40]shift 544 fd 201731 [06:04:40]save to /storage/0544/doc_00201731 [06:04:40]save last doc name /storage/0544/doc_00201731 to /storage/kkm_last_doc_name [06:04:40]save OK [06:04:40]Clear old archive folders... [06:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:04:40]tlvbuf is 000FA360 [06:04:40]SAM_PROTO_ClearQueue [06:04:40]wFMCommunicate request_size=4 [06:04:40]MH_SAM_APDU [06:04:40]CAPDU: 80 09 00 00 [06:04:40]Write to MH i2c: E2 08 00 1A 0D 80 09 00 00 00 00 00 00 99 [06:04:40]Write i2c OK [06:04:40]MH_I2C_Read... [06:04:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:04:40]Read from MH i2c: E2 [06:04:40]MH_I2C_Read... [06:04:40]Read from MH i2c: E2 03 00 [06:04:40]MH_I2C_Read... [06:04:40]Read from MH i2c: E2 03 00 1A 0D 00 90 00 9B [06:04:40]RAPDU: 90 00 [06:04:40]wFMCommunicate OK [06:04:40]SAM_PROTO_ClearQueue done [06:04:40]KKMCreateOFDPacket [06:04:40]OFDProtocolAddRootSTLVToBuf [06:04:40]FM_MakeSignedData [06:04:40]FM_MakeSignedData [06:04:40]SAM_PROTO_SignData [06:04:40]wFMCommunicate request_size=4 [06:04:40]MH_SAM_APDU [06:04:40]CAPDU: 80 0D 01 02 [06:04:40]Write to MH i2c: E2 08 00 1B 0D 80 0D 01 02 00 00 00 00 A1 [06:04:40]Write i2c OK [06:04:40]MH_I2C_Read... [06:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:04:40]Read from MH i2c: E2 [06:04:40]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 03 00 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 03 00 1B 0D 00 90 00 9C [06:04:41]RAPDU: 90 00 [06:04:41]wFMCommunicate OK [06:04:41]wFMCommunicate request_size=255 [06:04:41]MH_SAM_APDU [06:04:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 19 00 00 00 00 07 04 06 00 48 EE 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 FA D7 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 14 03 00 35 04 06 00 C9 [06:04:41]Write to MH i2c: E2 02 01 1C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 19 00 00 00 00 07 04 06 00 48 EE 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 FA D7 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 14 03 00 35 04 06 00 C9 00 00 55 [06:04:41]Write i2c OK [06:04:41]MH_I2C_Read... [06:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:41]Read from MH i2c: E2 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 03 00 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 03 00 1C 0D 00 90 00 9D [06:04:41]RAPDU: 90 00 [06:04:41]wFMCommunicate OK [06:04:41]wFMCommunicate request_size=10 [06:04:41]MH_SAM_APDU [06:04:41]CAPDU: 80 0D 02 02 05 54 ED 48 DC 9F [06:04:41]Write to MH i2c: E2 0D 00 1D 0D 80 0D 02 02 05 00 54 ED 48 DC 9F 00 00 B2 [06:04:41]Write i2c OK [06:04:41]MH_I2C_Read... [06:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:41]Read from MH i2c: E2 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 03 00 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 03 00 1D 0D 00 90 00 9E [06:04:41]RAPDU: 90 00 [06:04:41]wFMCommunicate OK [06:04:41]wFMCommunicate request_size=4 [06:04:41]MH_SAM_APDU [06:04:41]CAPDU: 80 0D 03 02 [06:04:41]Write to MH i2c: E2 08 00 1E 0D 80 0D 03 02 00 00 00 00 A6 [06:04:41]Write i2c OK [06:04:41]MH_I2C_Read... [06:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:04:41]Read from MH i2c: E2 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 0B 00 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 0B 00 1E 0D 00 61 4F 84 2C 2C E5 63 CF 90 00 4A [06:04:41]RAPDU: 61 4F 84 2C 2C E5 63 CF 90 00 [06:04:41]wFMCommunicate OK [06:04:41]SAM_PROTO_SignData done [06:04:41]FM_MakeSignedData done [06:04:41]CreateOFDProtocolMessage [06:04:41]wFMCommunicate request_size=4 [06:04:41]MH_SAM_APDU [06:04:41]CAPDU: 80 11 00 00 [06:04:41]Write to MH i2c: E2 08 00 1F 0D 80 11 00 00 00 00 00 00 A6 [06:04:41]Write i2c OK [06:04:41]MH_I2C_Read... [06:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:41]Read from MH i2c: E2 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 17 00 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: E2 17 00 1F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FB [06:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:04:41]wFMCommunicate OK [06:04:41]CreateOFDProtocolMessage done [06:04:41]OFDSenderStorePacket 201731 [06:04:41]StoreOFDPacket docnum=201731 [06:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5A 0C 07 01 49 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 19 00 00 00 00 07 04 06 00 48 EE 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 FA D7 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 14 03 00 35 04 06 00 C9 54 ED 48 DC 9F 61 4F 84 2C 2C E5 63 CF [06:04:41]CheckFolder [06:04:41]dirname=/storage/ofd_packets [06:04:41]CheckFolder done [06:04:41]ProducePacketName [06:04:41]name=ofd_packets/00201731 [06:04:41]NVStorageSaveData ofd_packets/00201731 [06:04:41]File name is /storage/ofd_packets/00201731 [06:04:41]Write 301 bytes [06:04:41]NVStorageSaveData done [06:04:41]OFDSenderStorePacket done [06:04:41]KKMCreateOFDPacket done [06:04:41]NVStorageSaveData kkm_last_timestamp [06:04:41]File name is /storage/kkm_last_timestamp [06:04:41]Write 4 bytes [06:04:41]NVStorageSaveData done [06:04:41]ExternCall_PrintAddStr [06:04:41]wPrintStart [06:04:41]Write to MH i2c: 01 00 00 20 0D 2D [06:04:41]Write i2c OK [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: 01 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: 01 07 00 [06:04:41]MH_I2C_Read... [06:04:41]Read from MH i2c: 01 07 00 20 0D 00 00 00 00 00 FF 0F 42 [06:04:41]RasterBufferAndPrint [06:04:41]line Счет N : (1)449487 [06:04:41]line ИНН: 02508201610067 [06:04:41]line Контрольно-Кассовый Чек [06:04:41]line ПРОДАЖА [06:04:41]line ТРК (МРК, ГНК) : 41 [06:04:41]line Товар: 2710124130 [06:04:41]line Аи-92-К-2 [06:04:41]line 9.120 * 66.90 [06:04:41]line = 610.13 [06:04:41]line НДС 12% НСП 1% [06:04:41]line > о реализуемом товаре [06:04:41]line ОКРУГЛЕНИЕ: -0.13 [06:04:41]line ИТОГО: 610.00 [06:04:41]line Внесено: 610.00 [06:04:41]line СДАЧА: 0.00 [06:04:41]line НСП 1% : 5.40 [06:04:41]line НДС 12% : 64.79 [06:04:41]line Наличными: 610.00 [06:04:41]line Безнал.: 0.00 [06:04:41]line Место: АЗС № 171 "Партнер Нефть" [06:04:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:04:41]line СНО: Общий режим [06:04:41]line Чек 23 27.10.2024 06:04 [06:04:41]line Смена: 544 ФФД: 1.0 [06:04:41]line ЗНМ: 0300000109 [06:04:41]line РНМ: 0000000000091777 [06:04:41]line Версия ККМ: 001 [06:04:41]line ФМ: 0000000000871756 [06:04:41]line ФД: 201731 [06:04:41]line ФПД: 221366595411103 [06:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060442&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201731&fm=221366595411103&tin=02508201610067®Number=0000000000091777&sum=61000 [06:04:41]OFD Sender: Processing packet 201731 [packets to send 112, broken 111] [06:04:41]ProducePacketName [06:04:41]name=ofd_packets/00201731 [06:04:41]OFD Sender: To server: pG, [06:04:41]CommunicateWithHost lk.salyk.kg:30040 [06:04:41]ConnectInit lk.salyk.kg [06:04:41]written 0, free lines is 4095 [06:04:41]Connected sock=10 [06:04:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5A 0C 07 01 49 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 19 00 00 00 00 07 04 06 00 48 EE 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 FA D7 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 14 03 00 35 04 06 00 C9 54 ED 48 DC 9F 61 4F 84 2C 2C E5 63 CF [06:04:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 3B 47 00 A5 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 14 03 00 F4 03 04 00 A1 83 1D 67 B6 04 01 00 00 DE 12 42 32 25 A4 AF 1C [06:04:42]CommunicateWithHost err = 0 [06:04:42]CheckOFDResponse [06:04:42]1017 (14) - 77093643461234 [06:04:42]1041 (16) - 0000000000871756 [06:04:42]1040 (4) - 201731 [06:04:42]1012 (4) - 27.10.2024 00:04 [06:04:42]1206 (1) - 0 [06:04:42]OFD Sender: Remove packet 201731 [06:04:42]ProducePacketName [06:04:42]name=ofd_packets/00201731 [06:04:42]NVStorageDeleteData [06:04:42]Write to MH i2c: 01 00 00 4B 0D 58 [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: 01 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: 01 07 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: 01 07 00 4B 0D 00 00 00 00 00 8F 0C FA [06:04:42]RasterBufferAndPrint [06:04:42]line [06:04:42]line [06:04:42]line [06:04:42]line [06:04:42]line [06:04:42]written 0, free lines is 3220 [06:04:42]MH_Cut [06:04:42]Write to MH i2c: D1 01 00 52 0D 01 31 [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: D1 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: D1 01 00 [06:04:42]MH_I2C_Read... [06:04:42]Read from MH i2c: D1 01 00 52 0D 00 30 [06:04:42]Write to MH i2c: 01 00 00 53 0D 60 [06:04:42]Write i2c OK [06:04:42]MH_I2C_Read... [06:04:42]OFD Sender: No OFD packet to send [06:04:43]*** Cut start [06:04:43]*** Purtial cut [06:04:43]*** Stage 1: CUTSNS_PIN = 1 [06:04:43]Read from MH i2c: 01 [06:04:43]MH_I2C_Read... [06:04:43]*** Stop cut motor [06:04:43]*** Cut end [06:04:43]Read from MH i2c: 01 07 00 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: 01 07 00 53 0D 00 00 00 00 00 FF 0F 75 [06:04:43]process_action close_receipt done [06:04:43]requested_data is exist [06:04:43]produce_requested_data [06:04:43]requested_item fm.sn is exist - process it [06:04:43]wFMCommunicate request_size=4 [06:04:43]MH_SAM_APDU [06:04:43]CAPDU: 80 11 00 00 [06:04:43]Write to MH i2c: E2 08 00 54 0D 80 11 00 00 00 00 00 00 DB [06:04:43]Write i2c OK [06:04:43]MH_I2C_Read... [06:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:43]Read from MH i2c: E2 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: E2 17 00 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: E2 17 00 54 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 30 [06:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:04:43]wFMCommunicate OK [06:04:43]requested_item fd.num is exist - process it [06:04:43]SAM_PROTO_GetFieldsCounters [06:04:43]wFMCommunicate request_size=4 [06:04:43]MH_SAM_APDU [06:04:43]CAPDU: 80 13 00 00 [06:04:43]Write to MH i2c: E2 08 00 55 0D 80 13 00 00 00 00 00 00 DE [06:04:43]Write i2c OK [06:04:43]MH_I2C_Read... [06:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:43]Read from MH i2c: E2 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: E2 62 00 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: E2 62 00 55 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 03 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [06:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 03 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:04:43]wFMCommunicate OK [06:04:43]SAM_PROTO_GetFieldsCounters done [06:04:43]requested_item shift.num is exist - process it [06:04:43]requested_item shift.opened is exist - process it [06:04:43]req_shift_opened [06:04:43]FM_GetShiftState [06:04:43]SAM_PROTO_GetShiftState [06:04:43]wFMCommunicate request_size=4 [06:04:43]MH_SAM_APDU [06:04:43]CAPDU: 80 13 01 00 [06:04:43]Write to MH i2c: E2 08 00 56 0D 80 13 01 00 00 00 00 00 E0 [06:04:43]Write i2c OK [06:04:43]MH_I2C_Read... [06:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:43]Read from MH i2c: E2 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: E2 0E 00 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: E2 0E 00 56 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E2 [06:04:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:04:43]wFMCommunicate OK [06:04:43]SAM_PROTO_GetShiftState done [06:04:43]FM_GetShiftState done [06:04:43]req_shift_opened done [06:04:43]requested_item shift.open_date is exist - process it [06:04:43]req_shift_open_date [06:04:43]req_shift_open_date done [06:04:43]produce_requested_data done [06:04:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201731,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:04:43]process_action_free close_receipt [06:04:43]json_value_free [06:04:43]json_value_free done [06:04:43]process_json_proto returns [06:04:43]Send response to host [06:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201731,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:04:43]free response buf [06:04:43]execute_script done [06:04:43]execute_script returns [06:04:43]free content buf [06:04:43]Sock 8.Close socket [06:04:43]Sock 8.Thread stoped [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:53]accept exits with 9 [06:04:53]New connection [06:04:53]New thread 3066936676 created [06:04:53]Thread 3067080036 joined [06:04:53]Waiting for new connection... [06:04:53] Sock 9.Parse request [06:04:53]Sock 9.Check first char [06:04:53]Sock 9.First char is OK [06:04:53]request: POST /json_proto HTTP/1.0 [06:04:53]Method: POST [06:04:53]URL: /json_proto [06:04:53]Method is POST - this is cgi request [06:04:53]url: /json_proto [06:04:53]query_string will be loaded in cgi processing [06:04:53]execute_cgi json_proto POST (null) [06:04:53]execute_cgi path=json_proto method=POST [06:04:53]POST find Content-Length [06:04:53]Host: 172.17.63.195:8080 [06:04:53]Content-Length: 632 [06:04:53]Content-Type: application/json [06:04:53] [06:04:53]POST finish read [06:04:53]Found Content-Length = 632 [06:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [06:04:53]execute_script... [06:04:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [06:04:53]POST & json_proto [06:04:53]process_json_proto [06:04:53]json parsed OK: [06:04:53]protocol is kg_v1.0 [06:04:53]action value=close_receipt [06:04:53]process_action close_receipt [06:04:53]cmd_close_receipt [06:04:53]MH_GetDate [06:04:53]Write to MH i2c: F0 00 00 57 0D 53 [06:04:53]Write i2c OK [06:04:53]MH_I2C_Read... [06:04:53]Read from MH i2c: F0 [06:04:53]MH_I2C_Read... [06:04:53]Read from MH i2c: F0 09 00 [06:04:53]MH_I2C_Read... [06:04:53]Read from MH i2c: F0 09 00 57 0D 00 08 D8 1D 67 68 46 19 67 EE [06:04:53]GetLastDocTimeStamp 1730009082 [06:04:53]current date 1730009096 [06:04:53]FM_GetShiftState [06:04:53]SAM_PROTO_GetShiftState [06:04:53]wFMCommunicate request_size=4 [06:04:53]MH_SAM_APDU [06:04:53]CAPDU: 80 13 01 00 [06:04:53]Write to MH i2c: E2 08 00 58 0D 80 13 01 00 00 00 00 00 E2 [06:04:53]Write i2c OK [06:04:53]MH_I2C_Read... [06:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:53]Read from MH i2c: E2 [06:04:53]MH_I2C_Read... [06:04:53]Read from MH i2c: E2 0E 00 [06:04:53]MH_I2C_Read... [06:04:53]Read from MH i2c: E2 0E 00 58 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E4 [06:04:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:04:53]wFMCommunicate OK [06:04:53]SAM_PROTO_GetShiftState done [06:04:53]FM_GetShiftState done [06:04:53]opened in 1729987312 [06:04:53]opened+sec_in_day 1730073712 [06:04:53]quantity*price = 50000 [06:04:53]sum+1 = 50001 [06:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 24 27.10.2024 06:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201732 ФПД: 73122985484758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060456&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201732&fm=73122985484758&tin=02508201610067®Number=0000000000091777&sum=50000 [06:04:54]StoreToDocumentArchive [06:04:54]shift 544 fd 201732 [06:04:54]save to /storage/0544/doc_00201732 [06:04:54]save last doc name /storage/0544/doc_00201732 to /storage/kkm_last_doc_name [06:04:54]save OK [06:04:54]Clear old archive folders... [06:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:04:54]tlvbuf is 000A7C80 [06:04:54]SAM_PROTO_ClearQueue [06:04:54]wFMCommunicate request_size=4 [06:04:54]MH_SAM_APDU [06:04:54]CAPDU: 80 09 00 00 [06:04:54]Write to MH i2c: E2 08 00 65 0D 80 09 00 00 00 00 00 00 E4 [06:04:54]Write i2c OK [06:04:54]MH_I2C_Read... [06:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:04:54]Read from MH i2c: E2 [06:04:54]MH_I2C_Read... [06:04:54]Read from MH i2c: E2 03 00 [06:04:54]MH_I2C_Read... [06:04:54]Read from MH i2c: E2 03 00 65 0D 00 90 00 E6 [06:04:54]RAPDU: 90 00 [06:04:54]wFMCommunicate OK [06:04:54]SAM_PROTO_ClearQueue done [06:04:54]KKMCreateOFDPacket [06:04:54]OFDProtocolAddRootSTLVToBuf [06:04:54]FM_MakeSignedData [06:04:54]FM_MakeSignedData [06:04:54]SAM_PROTO_SignData [06:04:54]wFMCommunicate request_size=4 [06:04:54]MH_SAM_APDU [06:04:54]CAPDU: 80 0D 01 02 [06:04:54]Write to MH i2c: E2 08 00 66 0D 80 0D 01 02 00 00 00 00 EC [06:04:54]Write i2c OK [06:04:54]MH_I2C_Read... [06:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:04:54]Read from MH i2c: E2 [06:04:54]MH_I2C_Read... [06:04:54]Read from MH i2c: E2 03 00 [06:04:54]MH_I2C_Read... [06:04:54]Read from MH i2c: E2 03 00 66 0D 00 90 00 E7 [06:04:54]RAPDU: 90 00 [06:04:54]wFMCommunicate OK [06:04:54]wFMCommunicate request_size=255 [06:04:54]MH_SAM_APDU [06:04:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 08 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 14 03 00 35 04 06 00 [06:04:54]Write to MH i2c: E2 02 01 67 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 08 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 14 03 00 35 04 06 00 00 00 96 [06:04:54]Write i2c OK [06:04:54]MH_I2C_Read... [06:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:55]Read from MH i2c: E2 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: E2 03 00 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: E2 03 00 67 0D 00 90 00 E8 [06:04:55]RAPDU: 90 00 [06:04:55]wFMCommunicate OK [06:04:55]wFMCommunicate request_size=11 [06:04:55]MH_SAM_APDU [06:04:55]CAPDU: 80 0D 02 02 06 42 81 45 93 21 D6 [06:04:55]Write to MH i2c: E2 0E 00 68 0D 80 0D 02 02 06 00 42 81 45 93 21 D6 00 00 8D [06:04:55]Write i2c OK [06:04:55]MH_I2C_Read... [06:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:55]Read from MH i2c: E2 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: E2 03 00 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: E2 03 00 68 0D 00 90 00 E9 [06:04:55]RAPDU: 90 00 [06:04:55]wFMCommunicate OK [06:04:55]wFMCommunicate request_size=4 [06:04:55]MH_SAM_APDU [06:04:55]CAPDU: 80 0D 03 02 [06:04:55]Write to MH i2c: E2 08 00 69 0D 80 0D 03 02 00 00 00 00 F1 [06:04:55]Write i2c OK [06:04:55]MH_I2C_Read... [06:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:04:55]Read from MH i2c: E2 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: E2 0B 00 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: E2 0B 00 69 0D 00 8B 2B EB 4B A7 D1 E8 D8 90 00 16 [06:04:55]RAPDU: 8B 2B EB 4B A7 D1 E8 D8 90 00 [06:04:55]wFMCommunicate OK [06:04:55]SAM_PROTO_SignData done [06:04:55]FM_MakeSignedData done [06:04:55]CreateOFDProtocolMessage [06:04:55]wFMCommunicate request_size=4 [06:04:55]MH_SAM_APDU [06:04:55]CAPDU: 80 11 00 00 [06:04:55]Write to MH i2c: E2 08 00 6A 0D 80 11 00 00 00 00 00 00 F1 [06:04:55]Write i2c OK [06:04:55]MH_I2C_Read... [06:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:55]Read from MH i2c: E2 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: E2 17 00 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: E2 17 00 6A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 46 [06:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:04:55]wFMCommunicate OK [06:04:55]CreateOFDProtocolMessage done [06:04:55]OFDSenderStorePacket 201732 [06:04:55]StoreOFDPacket docnum=201732 [06:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 9D 59 08 01 20 A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 08 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 14 03 00 35 04 06 00 42 81 45 93 21 D6 8B 2B EB 4B A7 D1 E8 D8 [06:04:55]CheckFolder [06:04:55]dirname=/storage/ofd_packets [06:04:55]CheckFolder done [06:04:55]ProducePacketName [06:04:55]name=ofd_packets/00201732 [06:04:55]NVStorageSaveData ofd_packets/00201732 [06:04:55]File name is /storage/ofd_packets/00201732 [06:04:55]Write 302 bytes [06:04:55]NVStorageSaveData done [06:04:55]OFDSenderStorePacket done [06:04:55]KKMCreateOFDPacket done [06:04:55]NVStorageSaveData kkm_last_timestamp [06:04:55]File name is /storage/kkm_last_timestamp [06:04:55]Write 4 bytes [06:04:55]NVStorageSaveData done [06:04:55]OFD Sender: Processing packet 201732 [packets to send 112, broken 111] [06:04:55]ProducePacketName [06:04:55]name=ofd_packets/00201732 [06:04:55]OFD Sender: To server: pG, [06:04:55]CommunicateWithHost lk.salyk.kg:30040 [06:04:55]ConnectInit lk.salyk.kg [06:04:55]ExternCall_PrintAddStr [06:04:55]wPrintStart [06:04:55]Write to MH i2c: 01 00 00 6B 0D 78 [06:04:55]Write i2c OK [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: 01 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: 01 07 00 [06:04:55]MH_I2C_Read... [06:04:55]Read from MH i2c: 01 07 00 6B 0D 00 00 00 00 00 FF 0F 8D [06:04:55]RasterBufferAndPrint [06:04:55]line Счет N : (1)449488 [06:04:55]line ИНН: 02508201610067 [06:04:55]line Контрольно-Кассовый Чек [06:04:55]line ПРОДАЖА [06:04:55]line ТРК (МРК, ГНК) : 63 [06:04:55]line Товар: 2710124130 [06:04:55]line SUPER 92-К-5 [06:04:55]line 7.310 * 68.40 [06:04:55]line = 500.00 [06:04:55]line НДС 12% НСП 1% [06:04:55]line > о реализуемом товаре [06:04:55]line ИТОГО: 500.00 [06:04:55]line НСП 1% : 4.42 [06:04:55]line НДС 12% : 53.10 [06:04:55]line Наличными: 500.00 [06:04:55]line Безнал.: 0.00 [06:04:55]line Место: АЗС № 171 "Партнер Нефть" [06:04:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:04:55]line СНО: Общий режим [06:04:55]line Чек 24 27.10.2024 06:04 [06:04:55]line Смена: 544 ФФД: 1.0 [06:04:55]line ЗНМ: 0300000109 [06:04:55]line РНМ: 0000000000091777 [06:04:55]line Версия ККМ: 001 [06:04:55]line ФМ: 0000000000871756 [06:04:55]line ФД: 201732 [06:04:55]line ФПД: 73122985484758 [06:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060456&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201732&fm=73122985484758&tin=02508201610067®Number=0000000000091777&sum=50000 [06:04:55]Connected sock=11 [06:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 9D 59 08 01 20 A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 08 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 14 03 00 35 04 06 00 42 81 45 93 21 D6 8B 2B EB 4B A7 D1 E8 D8 [06:04:55]written 0, free lines is 4095 [06:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 72 4D 47 00 E2 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 14 03 00 F4 03 04 00 AE 83 1D 67 B6 04 01 00 00 71 8B 57 0B A9 16 42 66 [06:04:55]CommunicateWithHost err = 0 [06:04:55]CheckOFDResponse [06:04:55]1017 (14) - 77093643461234 [06:04:55]1041 (16) - 0000000000871756 [06:04:55]1040 (4) - 201732 [06:04:55]1012 (4) - 27.10.2024 00:05 [06:04:55]1206 (1) - 0 [06:04:55]OFD Sender: Remove packet 201732 [06:04:55]ProducePacketName [06:04:55]name=ofd_packets/00201732 [06:04:55]NVStorageDeleteData [06:04:56]Write to MH i2c: 01 00 00 93 0D A0 [06:04:56]Write i2c OK [06:04:56]MH_I2C_Read... [06:04:56]Read from MH i2c: 01 [06:04:56]MH_I2C_Read... [06:04:56]Read from MH i2c: 01 07 00 [06:04:56]MH_I2C_Read... [06:04:56]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 CD 0C 80 [06:04:56]RasterBufferAndPrint [06:04:56]line [06:04:56]line [06:04:56]line [06:04:56]line [06:04:56]line [06:04:56]written 0, free lines is 3280 [06:04:56]MH_Cut [06:04:56]Write to MH i2c: D1 01 00 9A 0D 01 79 [06:04:56]Write i2c OK [06:04:56]MH_I2C_Read... [06:04:56]Read from MH i2c: D1 [06:04:56]MH_I2C_Read... [06:04:56]Read from MH i2c: D1 01 00 [06:04:56]MH_I2C_Read... [06:04:56]Read from MH i2c: D1 01 00 9A 0D 00 78 [06:04:56]Write to MH i2c: 01 00 00 9B 0D A8 [06:04:56]Write i2c OK [06:04:56]MH_I2C_Read... [06:04:56]OFD Sender: No OFD packet to send [06:04:56]*** Cut start [06:04:56]*** Purtial cut [06:04:56]*** Stage 1: CUTSNS_PIN = 1 [06:04:57]Read from MH i2c: 01 [06:04:57]MH_I2C_Read... [06:04:57]*** Stop cut motor [06:04:57]*** Cut end [06:04:57]Read from MH i2c: 01 07 00 [06:04:57]MH_I2C_Read... [06:04:57]Read from MH i2c: 01 07 00 9B 0D 00 00 00 00 00 FF 0F BD [06:04:57]process_action close_receipt done [06:04:57]requested_data is exist [06:04:57]produce_requested_data [06:04:57]requested_item fm.sn is exist - process it [06:04:57]wFMCommunicate request_size=4 [06:04:57]MH_SAM_APDU [06:04:57]CAPDU: 80 11 00 00 [06:04:57]Write to MH i2c: E2 08 00 9C 0D 80 11 00 00 00 00 00 00 23 [06:04:57]Write i2c OK [06:04:57]MH_I2C_Read... [06:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:57]Read from MH i2c: E2 [06:04:57]MH_I2C_Read... [06:04:57]Read from MH i2c: E2 17 00 [06:04:57]MH_I2C_Read... [06:04:57]Read from MH i2c: E2 17 00 9C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 78 [06:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:04:57]wFMCommunicate OK [06:04:57]requested_item fd.num is exist - process it [06:04:57]SAM_PROTO_GetFieldsCounters [06:04:57]wFMCommunicate request_size=4 [06:04:57]MH_SAM_APDU [06:04:57]CAPDU: 80 13 00 00 [06:04:57]Write to MH i2c: E2 08 00 9D 0D 80 13 00 00 00 00 00 00 26 [06:04:57]Write i2c OK [06:04:57]MH_I2C_Read... [06:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:57]Read from MH i2c: E2 [06:04:57]MH_I2C_Read... [06:04:57]Read from MH i2c: E2 62 00 [06:04:57]MH_I2C_Read... [06:04:57]Read from MH i2c: E2 62 00 9D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 04 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [06:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 04 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:04:57]wFMCommunicate OK [06:04:57]SAM_PROTO_GetFieldsCounters done [06:04:57]requested_item shift.num is exist - process it [06:04:57]requested_item shift.opened is exist - process it [06:04:57]req_shift_opened [06:04:57]FM_GetShiftState [06:04:57]SAM_PROTO_GetShiftState [06:04:57]wFMCommunicate request_size=4 [06:04:57]MH_SAM_APDU [06:04:57]CAPDU: 80 13 01 00 [06:04:57]Write to MH i2c: E2 08 00 9E 0D 80 13 01 00 00 00 00 00 28 [06:04:57]Write i2c OK [06:04:57]MH_I2C_Read... [06:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:57]Read from MH i2c: E2 [06:04:57]MH_I2C_Read... [06:04:57]Read from MH i2c: E2 0E 00 [06:04:57]MH_I2C_Read... [06:04:57]Read from MH i2c: E2 0E 00 9E 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2A [06:04:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:04:57]wFMCommunicate OK [06:04:57]SAM_PROTO_GetShiftState done [06:04:57]FM_GetShiftState done [06:04:57]req_shift_opened done [06:04:57]requested_item shift.open_date is exist - process it [06:04:57]req_shift_open_date [06:04:57]req_shift_open_date done [06:04:57]produce_requested_data done [06:04:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201732,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:04:57]process_action_free close_receipt [06:04:57]json_value_free [06:04:57]json_value_free done [06:04:57]process_json_proto returns [06:04:57]Send response to host [06:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201732,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:04:57]free response buf [06:04:57]execute_script done [06:04:57]execute_script returns [06:04:57]free content buf [06:04:57]Sock 9.Close socket [06:04:57]Sock 9.Thread stoped [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:43]accept exits with 8 [06:06:43]New connection [06:06:43]New thread 3067080036 created [06:06:43]Thread 3066936676 joined [06:06:43]Waiting for new connection... [06:06:43] Sock 8.Parse request [06:06:43]Sock 8.Check first char [06:06:43]Sock 8.First char is OK [06:06:43]request: POST /json_proto HTTP/1.0 [06:06:43]Method: POST [06:06:43]URL: /json_proto [06:06:43]Method is POST - this is cgi request [06:06:43]url: /json_proto [06:06:43]query_string will be loaded in cgi processing [06:06:43]execute_cgi json_proto POST (null) [06:06:43]execute_cgi path=json_proto method=POST [06:06:43]POST find Content-Length [06:06:43]Host: 172.17.63.195:8080 [06:06:43]Content-Length: 677 [06:06:43]Content-Type: application/json [06:06:43] [06:06:43]POST finish read [06:06:43]Found Content-Length = 677 [06:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:06:43]execute_script... [06:06:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:06:43]POST & json_proto [06:06:43]process_json_proto [06:06:43]json parsed OK: [06:06:43]protocol is kg_v1.0 [06:06:43]action value=close_receipt [06:06:43]process_action close_receipt [06:06:43]cmd_close_receipt [06:06:43]MH_GetDate [06:06:43]Write to MH i2c: F0 00 00 9F 0D 9B [06:06:43]Write i2c OK [06:06:43]MH_I2C_Read... [06:06:43]Read from MH i2c: F0 [06:06:43]MH_I2C_Read... [06:06:43]Read from MH i2c: F0 09 00 [06:06:43]MH_I2C_Read... [06:06:43]Read from MH i2c: F0 09 00 9F 0D 00 76 D8 1D 67 68 46 19 67 A4 [06:06:43]GetLastDocTimeStamp 1730009096 [06:06:43]current date 1730009206 [06:06:43]FM_GetShiftState [06:06:43]SAM_PROTO_GetShiftState [06:06:43]wFMCommunicate request_size=4 [06:06:43]MH_SAM_APDU [06:06:43]CAPDU: 80 13 01 00 [06:06:43]Write to MH i2c: E2 08 00 A0 0D 80 13 01 00 00 00 00 00 2A [06:06:43]Write i2c OK [06:06:43]MH_I2C_Read... [06:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:43]Read from MH i2c: E2 [06:06:43]MH_I2C_Read... [06:06:43]Read from MH i2c: E2 0E 00 [06:06:43]MH_I2C_Read... [06:06:43]Read from MH i2c: E2 0E 00 A0 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2C [06:06:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:06:43]wFMCommunicate OK [06:06:43]SAM_PROTO_GetShiftState done [06:06:43]FM_GetShiftState done [06:06:43]opened in 1729987312 [06:06:43]opened+sec_in_day 1730073712 [06:06:43]quantity*price = 50041 [06:06:43]sum+1 = 50042 [06:06:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 25 27.10.2024 06:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201733 ФПД: 11872829582429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060646&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201733&fm=11872829582429&tin=02508201610067®Number=0000000000091777&sum=50000 [06:06:44]StoreToDocumentArchive [06:06:44]shift 544 fd 201733 [06:06:44]save to /storage/0544/doc_00201733 [06:06:44]save last doc name /storage/0544/doc_00201733 to /storage/kkm_last_doc_name [06:06:44]save OK [06:06:44]Clear old archive folders... [06:06:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:06:44]tlvbuf is 000E6DF0 [06:06:44]SAM_PROTO_ClearQueue [06:06:44]wFMCommunicate request_size=4 [06:06:44]MH_SAM_APDU [06:06:44]CAPDU: 80 09 00 00 [06:06:44]Write to MH i2c: E2 08 00 AD 0D 80 09 00 00 00 00 00 00 2C [06:06:44]Write i2c OK [06:06:44]MH_I2C_Read... [06:06:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:06:44]Read from MH i2c: E2 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 03 00 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 03 00 AD 0D 00 90 00 2E [06:06:44]RAPDU: 90 00 [06:06:44]wFMCommunicate OK [06:06:44]SAM_PROTO_ClearQueue done [06:06:44]KKMCreateOFDPacket [06:06:44]OFDProtocolAddRootSTLVToBuf [06:06:44]FM_MakeSignedData [06:06:44]FM_MakeSignedData [06:06:44]SAM_PROTO_SignData [06:06:44]wFMCommunicate request_size=4 [06:06:44]MH_SAM_APDU [06:06:44]CAPDU: 80 0D 01 02 [06:06:44]Write to MH i2c: E2 08 00 AE 0D 80 0D 01 02 00 00 00 00 34 [06:06:44]Write i2c OK [06:06:44]MH_I2C_Read... [06:06:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:06:44]Read from MH i2c: E2 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 03 00 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 03 00 AE 0D 00 90 00 2F [06:06:44]RAPDU: 90 00 [06:06:44]wFMCommunicate OK [06:06:44]wFMCommunicate request_size=255 [06:06:44]MH_SAM_APDU [06:06:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 00 00 00 F4 03 04 00 76 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 14 03 00 35 04 06 00 0A [06:06:44]Write to MH i2c: E2 02 01 AF 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 00 00 00 F4 03 04 00 76 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 14 03 00 35 04 06 00 0A 00 00 FB [06:06:44]Write i2c OK [06:06:44]MH_I2C_Read... [06:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:44]Read from MH i2c: E2 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 03 00 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 03 00 AF 0D 00 90 00 30 [06:06:44]RAPDU: 90 00 [06:06:44]wFMCommunicate OK [06:06:44]wFMCommunicate request_size=10 [06:06:44]MH_SAM_APDU [06:06:44]CAPDU: 80 0D 02 02 05 CC 5B CA 2C 5D [06:06:44]Write to MH i2c: E2 0D 00 B0 0D 80 0D 02 02 05 00 CC 5B CA 2C 5D 00 00 BB [06:06:44]Write i2c OK [06:06:44]MH_I2C_Read... [06:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:44]Read from MH i2c: E2 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 03 00 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 03 00 B0 0D 00 90 00 31 [06:06:44]RAPDU: 90 00 [06:06:44]wFMCommunicate OK [06:06:44]wFMCommunicate request_size=4 [06:06:44]MH_SAM_APDU [06:06:44]CAPDU: 80 0D 03 02 [06:06:44]Write to MH i2c: E2 08 00 B1 0D 80 0D 03 02 00 00 00 00 39 [06:06:44]Write i2c OK [06:06:44]MH_I2C_Read... [06:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:06:44]Read from MH i2c: E2 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 0B 00 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 0B 00 B1 0D 00 05 95 DF 79 52 5C EE 70 90 00 38 [06:06:44]RAPDU: 05 95 DF 79 52 5C EE 70 90 00 [06:06:44]wFMCommunicate OK [06:06:44]SAM_PROTO_SignData done [06:06:44]FM_MakeSignedData done [06:06:44]CreateOFDProtocolMessage [06:06:44]wFMCommunicate request_size=4 [06:06:44]MH_SAM_APDU [06:06:44]CAPDU: 80 11 00 00 [06:06:44]Write to MH i2c: E2 08 00 B2 0D 80 11 00 00 00 00 00 00 39 [06:06:44]Write i2c OK [06:06:44]MH_I2C_Read... [06:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:44]Read from MH i2c: E2 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 17 00 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: E2 17 00 B2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8E [06:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:06:44]wFMCommunicate OK [06:06:44]CreateOFDProtocolMessage done [06:06:44]OFDSenderStorePacket 201733 [06:06:44]StoreOFDPacket docnum=201733 [06:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1F AE 07 01 F4 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 00 00 00 F4 03 04 00 76 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 14 03 00 35 04 06 00 0A CC 5B CA 2C 5D 05 95 DF 79 52 5C EE 70 [06:06:44]CheckFolder [06:06:44]dirname=/storage/ofd_packets [06:06:44]CheckFolder done [06:06:44]ProducePacketName [06:06:44]name=ofd_packets/00201733 [06:06:44]NVStorageSaveData ofd_packets/00201733 [06:06:44]File name is /storage/ofd_packets/00201733 [06:06:44]Write 301 bytes [06:06:44]NVStorageSaveData done [06:06:44]OFDSenderStorePacket done [06:06:44]KKMCreateOFDPacket done [06:06:44]NVStorageSaveData kkm_last_timestamp [06:06:44]File name is /storage/kkm_last_timestamp [06:06:44]Write 4 bytes [06:06:44]NVStorageSaveData done [06:06:44]ExternCall_PrintAddStr [06:06:44]wPrintStart [06:06:44]Write to MH i2c: 01 00 00 B3 0D C0 [06:06:44]Write i2c OK [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: 01 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: 01 07 00 [06:06:44]MH_I2C_Read... [06:06:44]Read from MH i2c: 01 07 00 B3 0D 00 00 00 00 00 FF 0F D5 [06:06:44]RasterBufferAndPrint [06:06:44]line Счет N : (1)449489 [06:06:44]line ИНН: 02508201610067 [06:06:44]line Контрольно-Кассовый Чек [06:06:44]line ПРОДАЖА [06:06:44]line ТРК (МРК, ГНК) : 41 [06:06:44]line Товар: 2710124130 [06:06:44]line Аи-92-К-2 [06:06:44]line 7.480 * 66.90 [06:06:44]line = 500.41 [06:06:44]line НДС 12% НСП 1% [06:06:44]line > о реализуемом товаре [06:06:44]line ОКРУГЛЕНИЕ: -0.41 [06:06:44]line ИТОГО: 500.00 [06:06:44]line Внесено: 500.00 [06:06:44]line СДАЧА: 0.00 [06:06:44]line НСП 1% : 4.43 [06:06:44]line НДС 12% : 53.14 [06:06:44]line Наличными: 500.00 [06:06:44]line Безнал.: 0.00 [06:06:44]line Место: АЗС № 171 "Партнер Нефть" [06:06:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:06:44]line СНО: Общий режим [06:06:44]line Чек 25 27.10.2024 06:06 [06:06:44]line Смена: 544 ФФД: 1.0 [06:06:44]line ЗНМ: 0300000109 [06:06:44]line РНМ: 0000000000091777 [06:06:44]line Версия ККМ: 001 [06:06:44]line ФМ: 0000000000871756 [06:06:44]line ФД: 201733 [06:06:44]line ФПД: 11872829582429 [06:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060646&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201733&fm=11872829582429&tin=02508201610067®Number=0000000000091777&sum=50000 [06:06:45]OFD Sender: Processing packet 201733 [packets to send 112, broken 111] [06:06:45]ProducePacketName [06:06:45]name=ofd_packets/00201733 [06:06:45]OFD Sender: To server: pG, [06:06:45]CommunicateWithHost lk.salyk.kg:30040 [06:06:45]ConnectInit lk.salyk.kg [06:06:45]written 0, free lines is 4095 [06:06:45]Connected sock=10 [06:06:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1F AE 07 01 F4 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 00 00 00 F4 03 04 00 76 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 14 03 00 35 04 06 00 0A CC 5B CA 2C 5D 05 95 DF 79 52 5C EE 70 [06:06:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D6 54 47 00 AB 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 14 03 00 F4 03 04 00 1C 84 1D 67 B6 04 01 00 00 3F F3 8A 51 B1 23 4A 56 [06:06:45]CommunicateWithHost err = 0 [06:06:45]CheckOFDResponse [06:06:45]1017 (14) - 77093643461234 [06:06:45]1041 (16) - 0000000000871756 [06:06:45]1040 (4) - 201733 [06:06:45]1012 (4) - 27.10.2024 00:06 [06:06:45]1206 (1) - 0 [06:06:45]OFD Sender: Remove packet 201733 [06:06:45]ProducePacketName [06:06:45]name=ofd_packets/00201733 [06:06:45]NVStorageDeleteData [06:06:45]Write to MH i2c: 01 00 00 DE 0D EB [06:06:45]Write i2c OK [06:06:45]MH_I2C_Read... [06:06:45]Read from MH i2c: 01 [06:06:45]MH_I2C_Read... [06:06:45]Read from MH i2c: 01 07 00 [06:06:45]MH_I2C_Read... [06:06:45]Read from MH i2c: 01 07 00 DE 0D 00 00 00 00 00 93 0C 91 [06:06:45]RasterBufferAndPrint [06:06:45]line [06:06:45]line [06:06:45]line [06:06:45]line [06:06:45]line [06:06:45]written 0, free lines is 3225 [06:06:45]MH_Cut [06:06:45]Write to MH i2c: D1 01 00 E5 0D 01 C4 [06:06:45]Write i2c OK [06:06:45]MH_I2C_Read... [06:06:45]Read from MH i2c: D1 [06:06:45]MH_I2C_Read... [06:06:45]Read from MH i2c: D1 01 00 [06:06:45]MH_I2C_Read... [06:06:45]Read from MH i2c: D1 01 00 E5 0D 00 C3 [06:06:45]Write to MH i2c: 01 00 00 E6 0D F3 [06:06:45]Write i2c OK [06:06:45]MH_I2C_Read... [06:06:46]OFD Sender: No OFD packet to send [06:06:46]*** Cut start [06:06:46]*** Purtial cut [06:06:46]*** Stage 1: CUTSNS_PIN = 1 [06:06:46]Read from MH i2c: 01 [06:06:46]MH_I2C_Read... [06:06:46]*** Stop cut motor [06:06:46]*** Cut end [06:06:46]Read from MH i2c: 01 07 00 [06:06:46]MH_I2C_Read... [06:06:46]Read from MH i2c: 01 07 00 E6 0D 00 00 00 00 00 FF 0F 08 [06:06:46]process_action close_receipt done [06:06:46]requested_data is exist [06:06:46]produce_requested_data [06:06:46]requested_item fm.sn is exist - process it [06:06:46]wFMCommunicate request_size=4 [06:06:46]MH_SAM_APDU [06:06:46]CAPDU: 80 11 00 00 [06:06:46]Write to MH i2c: E2 08 00 E7 0D 80 11 00 00 00 00 00 00 6E [06:06:46]Write i2c OK [06:06:46]MH_I2C_Read... [06:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:46]Read from MH i2c: E2 [06:06:46]MH_I2C_Read... [06:06:46]Read from MH i2c: E2 17 00 [06:06:46]MH_I2C_Read... [06:06:46]Read from MH i2c: E2 17 00 E7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C3 [06:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:06:46]wFMCommunicate OK [06:06:46]requested_item fd.num is exist - process it [06:06:46]SAM_PROTO_GetFieldsCounters [06:06:46]wFMCommunicate request_size=4 [06:06:46]MH_SAM_APDU [06:06:46]CAPDU: 80 13 00 00 [06:06:46]Write to MH i2c: E2 08 00 E8 0D 80 13 00 00 00 00 00 00 71 [06:06:46]Write i2c OK [06:06:46]MH_I2C_Read... [06:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:06:47]Read from MH i2c: E2 [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: E2 62 00 [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: E2 62 00 E8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 05 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [06:06:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 05 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:06:47]wFMCommunicate OK [06:06:47]SAM_PROTO_GetFieldsCounters done [06:06:47]requested_item shift.num is exist - process it [06:06:47]requested_item shift.opened is exist - process it [06:06:47]req_shift_opened [06:06:47]FM_GetShiftState [06:06:47]SAM_PROTO_GetShiftState [06:06:47]wFMCommunicate request_size=4 [06:06:47]MH_SAM_APDU [06:06:47]CAPDU: 80 13 01 00 [06:06:47]Write to MH i2c: E2 08 00 E9 0D 80 13 01 00 00 00 00 00 73 [06:06:47]Write i2c OK [06:06:47]MH_I2C_Read... [06:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:47]Read from MH i2c: E2 [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: E2 0E 00 [06:06:47]MH_I2C_Read... [06:06:47]Read from MH i2c: E2 0E 00 E9 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 75 [06:06:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:06:47]wFMCommunicate OK [06:06:47]SAM_PROTO_GetShiftState done [06:06:47]FM_GetShiftState done [06:06:47]req_shift_opened done [06:06:47]requested_item shift.open_date is exist - process it [06:06:47]req_shift_open_date [06:06:47]req_shift_open_date done [06:06:47]produce_requested_data done [06:06:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201733,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:06:47]process_action_free close_receipt [06:06:47]json_value_free [06:06:47]json_value_free done [06:06:47]process_json_proto returns [06:06:47]Send response to host [06:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201733,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:06:47]free response buf [06:06:47]execute_script done [06:06:47]execute_script returns [06:06:47]free content buf [06:06:47]Sock 8.Close socket [06:06:47]Sock 8.Thread stoped [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:46]accept exits with 9 [06:07:46]New connection [06:07:46]New thread 3066936676 created [06:07:46]Thread 3067080036 joined [06:07:46]Waiting for new connection... [06:07:46] Sock 9.Parse request [06:07:46]Sock 9.Check first char [06:07:46]Sock 9.First char is OK [06:07:46]request: POST /json_proto HTTP/1.0 [06:07:46]Method: POST [06:07:46]URL: /json_proto [06:07:46]Method is POST - this is cgi request [06:07:46]url: /json_proto [06:07:46]query_string will be loaded in cgi processing [06:07:46]execute_cgi json_proto POST (null) [06:07:46]execute_cgi path=json_proto method=POST [06:07:46]POST find Content-Length [06:07:46]Host: 172.17.63.195:8080 [06:07:46]Content-Length: 674 [06:07:46]Content-Type: application/json [06:07:46] [06:07:46]POST finish read [06:07:46]Found Content-Length = 674 [06:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:46]execute_script... [06:07:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:46]POST & json_proto [06:07:46]process_json_proto [06:07:46]json parsed OK: [06:07:46]protocol is kg_v1.0 [06:07:46]action value=close_receipt [06:07:46]process_action close_receipt [06:07:46]cmd_close_receipt [06:07:46]MH_GetDate [06:07:46]Write to MH i2c: F0 00 00 EA 0D E6 [06:07:46]Write i2c OK [06:07:46]MH_I2C_Read... [06:07:46]Read from MH i2c: F0 [06:07:46]MH_I2C_Read... [06:07:46]Read from MH i2c: F0 09 00 [06:07:46]MH_I2C_Read... [06:07:46]Read from MH i2c: F0 09 00 EA 0D 00 B5 D8 1D 67 68 46 19 67 2E [06:07:46]GetLastDocTimeStamp 1730009206 [06:07:46]current date 1730009269 [06:07:46]FM_GetShiftState [06:07:46]SAM_PROTO_GetShiftState [06:07:46]wFMCommunicate request_size=4 [06:07:46]MH_SAM_APDU [06:07:46]CAPDU: 80 13 01 00 [06:07:46]Write to MH i2c: E2 08 00 EB 0D 80 13 01 00 00 00 00 00 75 [06:07:46]Write i2c OK [06:07:46]MH_I2C_Read... [06:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:46]Read from MH i2c: E2 [06:07:46]MH_I2C_Read... [06:07:46]Read from MH i2c: E2 0E 00 [06:07:46]MH_I2C_Read... [06:07:46]Read from MH i2c: E2 0E 00 EB 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 77 [06:07:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:07:46]wFMCommunicate OK [06:07:46]SAM_PROTO_GetShiftState done [06:07:46]FM_GetShiftState done [06:07:46]opened in 1729987312 [06:07:46]opened+sec_in_day 1730073712 [06:07:46]quantity*price = 50063 [06:07:46]sum+1 = 50064 [06:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 26 27.10.2024 06:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201734 ФПД: 93641438089784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060749&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201734&fm=93641438089784&tin=02508201610067®Number=0000000000091777&sum=50000 [06:07:47]StoreToDocumentArchive [06:07:47]shift 544 fd 201734 [06:07:47]save to /storage/0544/doc_00201734 [06:07:47]save last doc name /storage/0544/doc_00201734 to /storage/kkm_last_doc_name [06:07:47]save OK [06:07:47]Clear old archive folders... [06:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:07:47]tlvbuf is 000FA630 [06:07:47]SAM_PROTO_ClearQueue [06:07:47]wFMCommunicate request_size=4 [06:07:47]MH_SAM_APDU [06:07:47]CAPDU: 80 09 00 00 [06:07:47]Write to MH i2c: E2 08 00 F8 0D 80 09 00 00 00 00 00 00 77 [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:47]Read from MH i2c: E2 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 03 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 03 00 F8 0D 00 90 00 79 [06:07:47]RAPDU: 90 00 [06:07:47]wFMCommunicate OK [06:07:47]SAM_PROTO_ClearQueue done [06:07:47]KKMCreateOFDPacket [06:07:47]OFDProtocolAddRootSTLVToBuf [06:07:47]FM_MakeSignedData [06:07:47]FM_MakeSignedData [06:07:47]SAM_PROTO_SignData [06:07:47]wFMCommunicate request_size=4 [06:07:47]MH_SAM_APDU [06:07:47]CAPDU: 80 0D 01 02 [06:07:47]Write to MH i2c: E2 08 00 F9 0D 80 0D 01 02 00 00 00 00 7F [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:47]Read from MH i2c: E2 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 03 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 03 00 F9 0D 00 90 00 7A [06:07:47]RAPDU: 90 00 [06:07:47]wFMCommunicate OK [06:07:47]wFMCommunicate request_size=255 [06:07:47]MH_SAM_APDU [06:07:47]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B5 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 14 03 00 35 04 06 00 55 2A 98 A7 [06:07:47]Write to MH i2c: E2 02 01 FA 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B5 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 14 03 00 35 04 06 00 55 2A 98 A7 00 00 B9 [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:47]Read from MH i2c: E2 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 03 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 03 00 FA 0D 00 90 00 7B [06:07:47]RAPDU: 90 00 [06:07:47]wFMCommunicate OK [06:07:47]wFMCommunicate request_size=7 [06:07:47]MH_SAM_APDU [06:07:47]CAPDU: 80 0D 02 02 02 52 38 [06:07:47]Write to MH i2c: E2 0A 00 FB 0D 80 0D 02 02 02 00 52 38 00 00 10 [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:47]Read from MH i2c: E2 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 03 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 03 00 FB 0D 00 90 00 7C [06:07:47]RAPDU: 90 00 [06:07:47]wFMCommunicate OK [06:07:47]wFMCommunicate request_size=4 [06:07:47]MH_SAM_APDU [06:07:47]CAPDU: 80 0D 03 02 [06:07:47]Write to MH i2c: E2 08 00 FC 0D 80 0D 03 02 00 00 00 00 84 [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:47]Read from MH i2c: E2 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 0B 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 0B 00 FC 0D 00 87 4C BC BA 2C D6 83 4F 90 00 A2 [06:07:47]RAPDU: 87 4C BC BA 2C D6 83 4F 90 00 [06:07:47]wFMCommunicate OK [06:07:47]SAM_PROTO_SignData done [06:07:47]FM_MakeSignedData done [06:07:47]CreateOFDProtocolMessage [06:07:47]wFMCommunicate request_size=4 [06:07:47]MH_SAM_APDU [06:07:47]CAPDU: 80 11 00 00 [06:07:47]Write to MH i2c: E2 08 00 FD 0D 80 11 00 00 00 00 00 00 84 [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:47]Read from MH i2c: E2 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 17 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: E2 17 00 FD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [06:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:07:47]wFMCommunicate OK [06:07:47]CreateOFDProtocolMessage done [06:07:47]OFDSenderStorePacket 201734 [06:07:47]StoreOFDPacket docnum=201734 [06:07:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 7C 79 04 01 B4 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B5 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 14 03 00 35 04 06 00 55 2A 98 A7 52 38 87 4C BC BA 2C D6 83 4F [06:07:47]CheckFolder [06:07:47]dirname=/storage/ofd_packets [06:07:47]CheckFolder done [06:07:47]ProducePacketName [06:07:47]name=ofd_packets/00201734 [06:07:47]NVStorageSaveData ofd_packets/00201734 [06:07:47]File name is /storage/ofd_packets/00201734 [06:07:47]Write 298 bytes [06:07:47]NVStorageSaveData done [06:07:47]OFDSenderStorePacket done [06:07:47]KKMCreateOFDPacket done [06:07:47]NVStorageSaveData kkm_last_timestamp [06:07:47]File name is /storage/kkm_last_timestamp [06:07:47]Write 4 bytes [06:07:47]NVStorageSaveData done [06:07:47]ExternCall_PrintAddStr [06:07:47]wPrintStart [06:07:47]Write to MH i2c: 01 00 00 FE 0D 0B [06:07:47]Write i2c OK [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: 01 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: 01 07 00 [06:07:47]MH_I2C_Read... [06:07:47]Read from MH i2c: 01 07 00 FE 0D 00 00 00 00 00 FF 0F 20 [06:07:47]RasterBufferAndPrint [06:07:47]line Счет N : (1)449490 [06:07:47]line ИНН: 02508201610067 [06:07:47]line Контрольно-Кассовый Чек [06:07:47]line ПРОДАЖА [06:07:47]line ТРК (МРК, ГНК) : 33 [06:07:47]line Товар: 2710194210 [06:07:47]line ДТ-К-2 [06:07:47]line 6.570 * 76.20 [06:07:47]line = 500.63 [06:07:47]line НДС 12% НСП 1% [06:07:47]line > о реализуемом товаре [06:07:47]line ОКРУГЛЕНИЕ: -0.63 [06:07:47]line ИТОГО: 500.00 [06:07:47]line Внесено: 500.00 [06:07:47]line СДАЧА: 0.00 [06:07:47]line НСП 1% : 4.43 [06:07:47]line НДС 12% : 53.16 [06:07:47]line Наличными: 500.00 [06:07:47]line Безнал.: 0.00 [06:07:47]line Место: АЗС № 171 "Партнер Нефть" [06:07:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:07:47]line СНО: Общий режим [06:07:47]line Чек 26 27.10.2024 06:07 [06:07:47]line Смена: 544 ФФД: 1.0 [06:07:47]line ЗНМ: 0300000109 [06:07:47]line РНМ: 0000000000091777 [06:07:47]line Версия ККМ: 001 [06:07:47]line ФМ: 0000000000871756 [06:07:47]line ФД: 201734 [06:07:47]line ФПД: 93641438089784 [06:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060749&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201734&fm=93641438089784&tin=02508201610067®Number=0000000000091777&sum=50000 [06:07:48]OFD Sender: Processing packet 201734 [packets to send 112, broken 111] [06:07:48]ProducePacketName [06:07:48]name=ofd_packets/00201734 [06:07:48]OFD Sender: To server: pG, [06:07:48]CommunicateWithHost lk.salyk.kg:30040 [06:07:48]ConnectInit lk.salyk.kg [06:07:48]written 0, free lines is 4095 [06:07:48]Connected sock=10 [06:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 7C 79 04 01 B4 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B5 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 14 03 00 35 04 06 00 55 2A 98 A7 52 38 87 4C BC BA 2C D6 83 4F [06:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 07 47 00 F1 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 14 03 00 F4 03 04 00 5B 84 1D 67 B6 04 01 00 00 CC 89 71 CC 78 8B DE 07 [06:07:48]CommunicateWithHost err = 0 [06:07:48]CheckOFDResponse [06:07:48]1017 (14) - 77093643461234 [06:07:48]1041 (16) - 0000000000871756 [06:07:48]1040 (4) - 201734 [06:07:48]1012 (4) - 27.10.2024 00:07 [06:07:48]1206 (1) - 0 [06:07:48]OFD Sender: Remove packet 201734 [06:07:48]ProducePacketName [06:07:48]name=ofd_packets/00201734 [06:07:48]NVStorageDeleteData [06:07:48]Write to MH i2c: 01 00 00 29 0E 37 [06:07:48]Write i2c OK [06:07:48]MH_I2C_Read... [06:07:48]Read from MH i2c: 01 [06:07:48]MH_I2C_Read... [06:07:48]Read from MH i2c: 01 07 00 [06:07:48]MH_I2C_Read... [06:07:48]Read from MH i2c: 01 07 00 29 0E 00 00 00 00 00 8F 0C D9 [06:07:48]RasterBufferAndPrint [06:07:48]line [06:07:48]line [06:07:48]line [06:07:48]line [06:07:48]line [06:07:48]written 0, free lines is 3219 [06:07:48]MH_Cut [06:07:48]Write to MH i2c: D1 01 00 30 0E 01 10 [06:07:48]Write i2c OK [06:07:48]MH_I2C_Read... [06:07:48]Read from MH i2c: D1 [06:07:48]MH_I2C_Read... [06:07:48]Read from MH i2c: D1 01 00 [06:07:48]MH_I2C_Read... [06:07:48]Read from MH i2c: D1 01 00 30 0E 00 0F [06:07:48]Write to MH i2c: 01 00 00 31 0E 3F [06:07:48]Write i2c OK [06:07:48]MH_I2C_Read... [06:07:49]OFD Sender: No OFD packet to send [06:07:49]*** Cut start [06:07:49]*** Purtial cut [06:07:49]*** Stage 1: CUTSNS_PIN = 1 [06:07:49]Read from MH i2c: 01 [06:07:49]*** Stop cut motor [06:07:49]*** Cut end [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: 01 07 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: 01 07 00 31 0E 00 00 00 00 00 FF 0F 54 [06:07:49]process_action close_receipt done [06:07:49]requested_data is exist [06:07:49]produce_requested_data [06:07:49]requested_item fm.sn is exist - process it [06:07:49]wFMCommunicate request_size=4 [06:07:49]MH_SAM_APDU [06:07:49]CAPDU: 80 11 00 00 [06:07:49]Write to MH i2c: E2 08 00 32 0E 80 11 00 00 00 00 00 00 BA [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:49]Read from MH i2c: E2 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 17 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 17 00 32 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0F [06:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:07:49]wFMCommunicate OK [06:07:49]requested_item fd.num is exist - process it [06:07:49]SAM_PROTO_GetFieldsCounters [06:07:49]wFMCommunicate request_size=4 [06:07:49]MH_SAM_APDU [06:07:49]CAPDU: 80 13 00 00 [06:07:49]Write to MH i2c: E2 08 00 33 0E 80 13 00 00 00 00 00 00 BD [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:49]Read from MH i2c: E2 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 62 00 [06:07:49]MH_I2C_Read... [06:07:49]Read from MH i2c: E2 62 00 33 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 06 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [06:07:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 06 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:07:49]wFMCommunicate OK [06:07:49]SAM_PROTO_GetFieldsCounters done [06:07:49]requested_item shift.num is exist - process it [06:07:49]requested_item shift.opened is exist - process it [06:07:49]req_shift_opened [06:07:49]FM_GetShiftState [06:07:49]SAM_PROTO_GetShiftState [06:07:49]wFMCommunicate request_size=4 [06:07:49]MH_SAM_APDU [06:07:49]CAPDU: 80 13 01 00 [06:07:49]Write to MH i2c: E2 08 00 34 0E 80 13 01 00 00 00 00 00 BF [06:07:49]Write i2c OK [06:07:49]MH_I2C_Read... [06:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:50]Read from MH i2c: E2 [06:07:50]MH_I2C_Read... [06:07:50]Read from MH i2c: E2 0E 00 [06:07:50]MH_I2C_Read... [06:07:50]Read from MH i2c: E2 0E 00 34 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C1 [06:07:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:07:50]wFMCommunicate OK [06:07:50]SAM_PROTO_GetShiftState done [06:07:50]FM_GetShiftState done [06:07:50]req_shift_opened done [06:07:50]requested_item shift.open_date is exist - process it [06:07:50]req_shift_open_date [06:07:50]req_shift_open_date done [06:07:50]produce_requested_data done [06:07:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201734,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:07:50]process_action_free close_receipt [06:07:50]json_value_free [06:07:50]json_value_free done [06:07:50]process_json_proto returns [06:07:50]Send response to host [06:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201734,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:07:50]free response buf [06:07:50]execute_script done [06:07:50]execute_script returns [06:07:50]free content buf [06:07:50]Sock 9.Close socket [06:07:50]Sock 9.Thread stoped [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:19]accept exits with 8 [06:08:19]New connection [06:08:19]New thread 3067080036 created [06:08:19]Thread 3066936676 joined [06:08:19]Waiting for new connection... [06:08:19] Sock 8.Parse request [06:08:19]Sock 8.Check first char [06:08:19]Sock 8.First char is OK [06:08:19]request: POST /json_proto HTTP/1.0 [06:08:19]Method: POST [06:08:19]URL: /json_proto [06:08:19]Method is POST - this is cgi request [06:08:19]url: /json_proto [06:08:19]query_string will be loaded in cgi processing [06:08:19]execute_cgi json_proto POST (null) [06:08:19]execute_cgi path=json_proto method=POST [06:08:19]POST find Content-Length [06:08:19]Host: 172.17.63.195:8080 [06:08:19]Content-Length: 674 [06:08:19]Content-Type: application/json [06:08:19] [06:08:19]POST finish read [06:08:19]Found Content-Length = 674 [06:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [06:08:19]execute_script... [06:08: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)449491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [06:08:19]POST & json_proto [06:08:19]process_json_proto [06:08:19]json parsed OK: [06:08:19]protocol is kg_v1.0 [06:08:19]action value=close_receipt [06:08:19]process_action close_receipt [06:08:19]cmd_close_receipt [06:08:19]MH_GetDate [06:08:19]Write to MH i2c: F0 00 00 35 0E 32 [06:08:19]Write i2c OK [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: F0 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: F0 09 00 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: F0 09 00 35 0E 00 D6 D8 1D 67 68 46 19 67 9B [06:08:19]GetLastDocTimeStamp 1730009269 [06:08:19]current date 1730009302 [06:08:19]FM_GetShiftState [06:08:19]SAM_PROTO_GetShiftState [06:08:19]wFMCommunicate request_size=4 [06:08:19]MH_SAM_APDU [06:08:19]CAPDU: 80 13 01 00 [06:08:19]Write to MH i2c: E2 08 00 36 0E 80 13 01 00 00 00 00 00 C1 [06:08:19]Write i2c OK [06:08:19]MH_I2C_Read... [06:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:19]Read from MH i2c: E2 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: E2 0E 00 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: E2 0E 00 36 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C3 [06:08:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:08:19]wFMCommunicate OK [06:08:19]SAM_PROTO_GetShiftState done [06:08:19]FM_GetShiftState done [06:08:19]opened in 1729987312 [06:08:19]opened+sec_in_day 1730073712 [06:08:19]quantity*price = 60045 [06:08:19]sum+1 = 60047 [06:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 27 27.10.2024 06:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201735 ФПД: 118770675816989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060822&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201735&fm=118770675816989&tin=02508201610067®Number=0000000000091777&sum=60000 [06:08:20]StoreToDocumentArchive [06:08:20]shift 544 fd 201735 [06:08:20]save to /storage/0544/doc_00201735 [06:08:20]save last doc name /storage/0544/doc_00201735 to /storage/kkm_last_doc_name [06:08:20]save OK [06:08:20]Clear old archive folders... [06:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:08:20]tlvbuf is 000EA200 [06:08:20]SAM_PROTO_ClearQueue [06:08:20]wFMCommunicate request_size=4 [06:08:20]MH_SAM_APDU [06:08:20]CAPDU: 80 09 00 00 [06:08:20]Write to MH i2c: E2 08 00 43 0E 80 09 00 00 00 00 00 00 C3 [06:08:20]Write i2c OK [06:08:20]MH_I2C_Read... [06:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:20]Read from MH i2c: E2 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 03 00 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 03 00 43 0E 00 90 00 C5 [06:08:20]RAPDU: 90 00 [06:08:20]wFMCommunicate OK [06:08:20]SAM_PROTO_ClearQueue done [06:08:20]KKMCreateOFDPacket [06:08:20]OFDProtocolAddRootSTLVToBuf [06:08:20]FM_MakeSignedData [06:08:20]FM_MakeSignedData [06:08:20]SAM_PROTO_SignData [06:08:20]wFMCommunicate request_size=4 [06:08:20]MH_SAM_APDU [06:08:20]CAPDU: 80 0D 01 02 [06:08:20]Write to MH i2c: E2 08 00 44 0E 80 0D 01 02 00 00 00 00 CB [06:08:20]Write i2c OK [06:08:20]MH_I2C_Read... [06:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:20]Read from MH i2c: E2 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 03 00 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 03 00 44 0E 00 90 00 C6 [06:08:20]RAPDU: 90 00 [06:08:20]wFMCommunicate OK [06:08:20]wFMCommunicate request_size=255 [06:08:20]MH_SAM_APDU [06:08: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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D6 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 14 03 00 35 04 06 00 6C 05 73 F1 [06:08:20]Write to MH i2c: E2 02 01 45 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D6 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 14 03 00 35 04 06 00 6C 05 73 F1 00 00 78 [06:08:20]Write i2c OK [06:08:20]MH_I2C_Read... [06:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:20]Read from MH i2c: E2 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 03 00 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 03 00 45 0E 00 90 00 C7 [06:08:20]RAPDU: 90 00 [06:08:20]wFMCommunicate OK [06:08:20]wFMCommunicate request_size=7 [06:08:20]MH_SAM_APDU [06:08:20]CAPDU: 80 0D 02 02 02 1A 1D [06:08:20]Write to MH i2c: E2 0A 00 46 0E 80 0D 02 02 02 00 1A 1D 00 00 09 [06:08:20]Write i2c OK [06:08:20]MH_I2C_Read... [06:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:20]Read from MH i2c: E2 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 03 00 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 03 00 46 0E 00 90 00 C8 [06:08:20]RAPDU: 90 00 [06:08:20]wFMCommunicate OK [06:08:20]wFMCommunicate request_size=4 [06:08:20]MH_SAM_APDU [06:08:20]CAPDU: 80 0D 03 02 [06:08:20]Write to MH i2c: E2 08 00 47 0E 80 0D 03 02 00 00 00 00 D0 [06:08:20]Write i2c OK [06:08:20]MH_I2C_Read... [06:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:20]Read from MH i2c: E2 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 0B 00 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 0B 00 47 0E 00 EB 54 4C 3D 6E 41 4E DA 90 00 70 [06:08:20]RAPDU: EB 54 4C 3D 6E 41 4E DA 90 00 [06:08:20]wFMCommunicate OK [06:08:20]SAM_PROTO_SignData done [06:08:20]FM_MakeSignedData done [06:08:20]CreateOFDProtocolMessage [06:08:20]wFMCommunicate request_size=4 [06:08:20]MH_SAM_APDU [06:08:20]CAPDU: 80 11 00 00 [06:08:20]Write to MH i2c: E2 08 00 48 0E 80 11 00 00 00 00 00 00 D0 [06:08:20]Write i2c OK [06:08:20]MH_I2C_Read... [06:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:20]Read from MH i2c: E2 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 17 00 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: E2 17 00 48 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 25 [06:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:08:20]wFMCommunicate OK [06:08:20]CreateOFDProtocolMessage done [06:08:20]OFDSenderStorePacket 201735 [06:08:20]StoreOFDPacket docnum=201735 [06:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 26 04 04 01 D0 AB 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D6 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 14 03 00 35 04 06 00 6C 05 73 F1 1A 1D EB 54 4C 3D 6E 41 4E DA [06:08:20]CheckFolder [06:08:20]dirname=/storage/ofd_packets [06:08:20]CheckFolder done [06:08:20]ProducePacketName [06:08:20]name=ofd_packets/00201735 [06:08:20]NVStorageSaveData ofd_packets/00201735 [06:08:20]File name is /storage/ofd_packets/00201735 [06:08:20]Write 298 bytes [06:08:20]NVStorageSaveData done [06:08:20]OFDSenderStorePacket done [06:08:20]KKMCreateOFDPacket done [06:08:20]NVStorageSaveData kkm_last_timestamp [06:08:20]File name is /storage/kkm_last_timestamp [06:08:20]Write 4 bytes [06:08:20]NVStorageSaveData done [06:08:20]ExternCall_PrintAddStr [06:08:20]wPrintStart [06:08:20]Write to MH i2c: 01 00 00 49 0E 57 [06:08:20]Write i2c OK [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: 01 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: 01 07 00 [06:08:20]MH_I2C_Read... [06:08:20]Read from MH i2c: 01 07 00 49 0E 00 00 00 00 00 FF 0F 6C [06:08:20]RasterBufferAndPrint [06:08:20]line Счет N : (1)449491 [06:08:20]line ИНН: 02508201610067 [06:08:20]line Контрольно-Кассовый Чек [06:08:20]line ПРОДАЖА [06:08:20]line ТРК (МРК, ГНК) : 11 [06:08:20]line Товар: 2710194210 [06:08:20]line ДТ-К-2 [06:08:20]line 7.880 * 76.20 [06:08:20]line = 600.46 [06:08:20]line НДС 12% НСП 1% [06:08:20]line > о реализуемом товаре [06:08:20]line ОКРУГЛЕНИЕ: -0.46 [06:08:20]line ИТОГО: 600.00 [06:08:20]line Внесено: 600.00 [06:08:20]line СДАЧА: 0.00 [06:08:20]line НСП 1% : 5.31 [06:08:20]line НДС 12% : 63.77 [06:08:20]line Наличными: 600.00 [06:08:20]line Безнал.: 0.00 [06:08:20]line Место: АЗС № 171 "Партнер Нефть" [06:08:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:08:20]line СНО: Общий режим [06:08:20]line Чек 27 27.10.2024 06:08 [06:08:20]line Смена: 544 ФФД: 1.0 [06:08:20]line ЗНМ: 0300000109 [06:08:20]line РНМ: 0000000000091777 [06:08:20]line Версия ККМ: 001 [06:08:20]line ФМ: 0000000000871756 [06:08:20]line ФД: 201735 [06:08:20]line ФПД: 118770675816989 [06:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060822&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201735&fm=118770675816989&tin=02508201610067®Number=0000000000091777&sum=60000 [06:08:21]OFD Sender: Processing packet 201735 [packets to send 112, broken 111] [06:08:21]ProducePacketName [06:08:21]name=ofd_packets/00201735 [06:08:21]OFD Sender: To server: pG, [06:08:21]CommunicateWithHost lk.salyk.kg:30040 [06:08:21]ConnectInit lk.salyk.kg [06:08:21]written 0, free lines is 4095 [06:08:21]Connected sock=11 [06:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 26 04 04 01 D0 AB 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D6 D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 14 03 00 35 04 06 00 6C 05 73 F1 1A 1D EB 54 4C 3D 6E 41 4E DA [06:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 97 CE 47 00 6D 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 14 03 00 F4 03 04 00 7C 84 1D 67 B6 04 01 00 00 AF 23 E7 68 FE 06 86 FB [06:08:21]CommunicateWithHost err = 0 [06:08:21]CheckOFDResponse [06:08:21]1017 (14) - 77093643461234 [06:08:21]1041 (16) - 0000000000871756 [06:08:21]1040 (4) - 201735 [06:08:21]1012 (4) - 27.10.2024 00:08 [06:08:21]1206 (1) - 0 [06:08:21]OFD Sender: Remove packet 201735 [06:08:21]ProducePacketName [06:08:21]name=ofd_packets/00201735 [06:08:21]NVStorageDeleteData [06:08:21]Write to MH i2c: 01 00 00 74 0E 82 [06:08:21]Write i2c OK [06:08:21]MH_I2C_Read... [06:08:21]Read from MH i2c: 01 [06:08:21]MH_I2C_Read... [06:08:21]Read from MH i2c: 01 07 00 [06:08:21]MH_I2C_Read... [06:08:21]Read from MH i2c: 01 07 00 74 0E 00 00 00 00 00 8F 0C 24 [06:08:21]RasterBufferAndPrint [06:08:21]line [06:08:21]line [06:08:21]line [06:08:21]line [06:08:21]line [06:08:21]written 0, free lines is 3218 [06:08:21]MH_Cut [06:08:21]Write to MH i2c: D1 01 00 7B 0E 01 5B [06:08:21]Write i2c OK [06:08:21]MH_I2C_Read... [06:08:21]Read from MH i2c: D1 [06:08:21]MH_I2C_Read... [06:08:21]Read from MH i2c: D1 01 00 [06:08:21]MH_I2C_Read... [06:08:21]Read from MH i2c: D1 01 00 7B 0E 00 5A [06:08:21]Write to MH i2c: 01 00 00 7C 0E 8A [06:08:21]Write i2c OK [06:08:21]MH_I2C_Read... [06:08:22]OFD Sender: No OFD packet to send [06:08:22]*** Cut start [06:08:22]*** Purtial cut [06:08:22]*** Stage 1: CUTSNS_PIN = 1 [06:08:22]Read from MH i2c: 01 [06:08:22]MH_I2C_Read... [06:08:22]*** Stop cut motor [06:08:22]*** Cut end [06:08:22]Read from MH i2c: 01 07 00 [06:08:22]MH_I2C_Read... [06:08:22]Read from MH i2c: 01 07 00 7C 0E 00 00 00 00 00 FF 0F 9F [06:08:22]process_action close_receipt done [06:08:22]requested_data is exist [06:08:22]produce_requested_data [06:08:22]requested_item fm.sn is exist - process it [06:08:22]wFMCommunicate request_size=4 [06:08:22]MH_SAM_APDU [06:08:22]CAPDU: 80 11 00 00 [06:08:22]Write to MH i2c: E2 08 00 7D 0E 80 11 00 00 00 00 00 00 05 [06:08:22]Write i2c OK [06:08:22]MH_I2C_Read... [06:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:22]Read from MH i2c: E2 [06:08:22]MH_I2C_Read... [06:08:22]Read from MH i2c: E2 17 00 [06:08:22]MH_I2C_Read... [06:08:22]Read from MH i2c: E2 17 00 7D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5A [06:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:08:22]wFMCommunicate OK [06:08:22]requested_item fd.num is exist - process it [06:08:22]SAM_PROTO_GetFieldsCounters [06:08:22]wFMCommunicate request_size=4 [06:08:22]MH_SAM_APDU [06:08:22]CAPDU: 80 13 00 00 [06:08:22]Write to MH i2c: E2 08 00 7E 0E 80 13 00 00 00 00 00 00 08 [06:08:22]Write i2c OK [06:08:22]MH_I2C_Read... [06:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:22]Read from MH i2c: E2 [06:08:22]MH_I2C_Read... [06:08:22]Read from MH i2c: E2 62 00 [06:08:22]MH_I2C_Read... [06:08:22]Read from MH i2c: E2 62 00 7E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 07 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [06:08:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 07 14 03 00 0E 04 04 00 20 02 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 [06:08:22]wFMCommunicate OK [06:08:22]SAM_PROTO_GetFieldsCounters done [06:08:22]requested_item shift.num is exist - process it [06:08:22]requested_item shift.opened is exist - process it [06:08:22]req_shift_opened [06:08:22]FM_GetShiftState [06:08:22]SAM_PROTO_GetShiftState [06:08:22]wFMCommunicate request_size=4 [06:08:22]MH_SAM_APDU [06:08:22]CAPDU: 80 13 01 00 [06:08:22]Write to MH i2c: E2 08 00 7F 0E 80 13 01 00 00 00 00 00 0A [06:08:22]Write i2c OK [06:08:22]MH_I2C_Read... [06:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:23]Read from MH i2c: E2 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: E2 0E 00 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: E2 0E 00 7F 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0C [06:08:23]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:08:23]wFMCommunicate OK [06:08:23]SAM_PROTO_GetShiftState done [06:08:23]FM_GetShiftState done [06:08:23]req_shift_opened done [06:08:23]requested_item shift.open_date is exist - process it [06:08:23]req_shift_open_date [06:08:23]req_shift_open_date done [06:08:23]produce_requested_data done [06:08:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201735,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:08:23]process_action_free close_receipt [06:08:23]json_value_free [06:08:23]json_value_free done [06:08:23]process_json_proto returns [06:08:23]Send response to host [06:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201735,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:08:23]free response buf [06:08:23]execute_script done [06:08:23]execute_script returns [06:08:23]free content buf [06:08:23]Sock 8.Close socket [06:08:23]Sock 8.Thread stoped [06:08:23]accept exits with 9 [06:08:23]New connection [06:08:23]New thread 3066936676 created [06:08:23]Thread 3067080036 joined [06:08:23]Waiting for new connection... [06:08:23] Sock 9.Parse request [06:08:23]Sock 9.Check first char [06:08:23]Sock 9.First char is OK [06:08:23]request: POST /json_proto HTTP/1.0 [06:08:23]Method: POST [06:08:23]URL: /json_proto [06:08:23]Method is POST - this is cgi request [06:08:23]url: /json_proto [06:08:23]query_string will be loaded in cgi processing [06:08:23]execute_cgi json_proto POST (null) [06:08:23]execute_cgi path=json_proto method=POST [06:08:23]POST find Content-Length [06:08:23]Host: 172.17.63.195:8080 [06:08:23]Content-Length: 674 [06:08:23]Content-Type: application/json [06:08:23] [06:08:23]POST finish read [06:08:23]Found Content-Length = 674 [06:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:23]execute_script... [06:08:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:23]POST & json_proto [06:08:23]process_json_proto [06:08:23]json parsed OK: [06:08:23]protocol is kg_v1.0 [06:08:23]action value=close_receipt [06:08:23]process_action close_receipt [06:08:23]cmd_close_receipt [06:08:23]MH_GetDate [06:08:23]Write to MH i2c: F0 00 00 80 0E 7D [06:08:23]Write i2c OK [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: F0 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: F0 09 00 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: F0 09 00 80 0E 00 DA D8 1D 67 68 46 19 67 EA [06:08:23]GetLastDocTimeStamp 1730009302 [06:08:23]current date 1730009306 [06:08:23]FM_GetShiftState [06:08:23]SAM_PROTO_GetShiftState [06:08:23]wFMCommunicate request_size=4 [06:08:23]MH_SAM_APDU [06:08:23]CAPDU: 80 13 01 00 [06:08:23]Write to MH i2c: E2 08 00 81 0E 80 13 01 00 00 00 00 00 0C [06:08:23]Write i2c OK [06:08:23]MH_I2C_Read... [06:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:23]Read from MH i2c: E2 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: E2 0E 00 [06:08:23]MH_I2C_Read... [06:08:23]Read from MH i2c: E2 0E 00 81 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0E [06:08:23]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:08:23]wFMCommunicate OK [06:08:23]SAM_PROTO_GetShiftState done [06:08:23]FM_GetShiftState done [06:08:23]opened in 1729987312 [06:08:23]opened+sec_in_day 1730073712 [06:08:23]quantity*price = 50063 [06:08:23]sum+1 = 50064 [06:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 28 27.10.2024 06:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201736 ФПД: 139451544486803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201736&fm=139451544486803&tin=02508201610067®Number=0000000000091777&sum=50000 [06:08:24]StoreToDocumentArchive [06:08:24]shift 544 fd 201736 [06:08:24]save to /storage/0544/doc_00201736 [06:08:24]save last doc name /storage/0544/doc_00201736 to /storage/kkm_last_doc_name [06:08:24]save OK [06:08:24]Clear old archive folders... [06:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:08:24]tlvbuf is 000F3580 [06:08:24]SAM_PROTO_ClearQueue [06:08:24]wFMCommunicate request_size=4 [06:08:24]MH_SAM_APDU [06:08:24]CAPDU: 80 09 00 00 [06:08:24]Write to MH i2c: E2 08 00 8E 0E 80 09 00 00 00 00 00 00 0E [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:24]Read from MH i2c: E2 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 8E 0E 00 90 00 10 [06:08:24]RAPDU: 90 00 [06:08:24]wFMCommunicate OK [06:08:24]SAM_PROTO_ClearQueue done [06:08:24]KKMCreateOFDPacket [06:08:24]OFDProtocolAddRootSTLVToBuf [06:08:24]FM_MakeSignedData [06:08:24]FM_MakeSignedData [06:08:24]SAM_PROTO_SignData [06:08:24]wFMCommunicate request_size=4 [06:08:24]MH_SAM_APDU [06:08:24]CAPDU: 80 0D 01 02 [06:08:24]Write to MH i2c: E2 08 00 8F 0E 80 0D 01 02 00 00 00 00 16 [06:08:24]Write i2c OK [06:08:24]MH_I2C_Read... [06:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:24]Read from MH i2c: E2 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 [06:08:24]MH_I2C_Read... [06:08:24]Read from MH i2c: E2 03 00 8F 0E 00 90 00 11 [06:08:24]RAPDU: 90 00 [06:08:24]wFMCommunicate OK [06:08:24]wFMCommunicate request_size=255 [06:08:24]MH_SAM_APDU [06:08:24]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DA D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 14 03 00 35 04 06 00 7E D4 97 C5 [06:08:24]Write to MH i2c: E2 02 01 90 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DA D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 14 03 00 35 04 06 00 7E D4 97 C5 00 00 69 [06:08:25]Write i2c OK [06:08:25]MH_I2C_Read... [06:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:25]Read from MH i2c: E2 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: E2 03 00 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: E2 03 00 90 0E 00 90 00 12 [06:08:25]RAPDU: 90 00 [06:08:25]wFMCommunicate OK [06:08:25]wFMCommunicate request_size=7 [06:08:25]MH_SAM_APDU [06:08:25]CAPDU: 80 0D 02 02 02 C3 93 [06:08:25]Write to MH i2c: E2 0A 00 91 0E 80 0D 02 02 02 00 C3 93 00 00 73 [06:08:25]Write i2c OK [06:08:25]MH_I2C_Read... [06:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:25]Read from MH i2c: E2 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: E2 03 00 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: E2 03 00 91 0E 00 90 00 13 [06:08:25]RAPDU: 90 00 [06:08:25]wFMCommunicate OK [06:08:25]wFMCommunicate request_size=4 [06:08:25]MH_SAM_APDU [06:08:25]CAPDU: 80 0D 03 02 [06:08:25]Write to MH i2c: E2 08 00 92 0E 80 0D 03 02 00 00 00 00 1B [06:08:25]Write i2c OK [06:08:25]MH_I2C_Read... [06:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:25]Read from MH i2c: E2 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: E2 0B 00 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: E2 0B 00 92 0E 00 9B DB FE DC 83 36 67 C9 90 00 55 [06:08:25]RAPDU: 9B DB FE DC 83 36 67 C9 90 00 [06:08:25]wFMCommunicate OK [06:08:25]SAM_PROTO_SignData done [06:08:25]FM_MakeSignedData done [06:08:25]CreateOFDProtocolMessage [06:08:25]wFMCommunicate request_size=4 [06:08:25]MH_SAM_APDU [06:08:25]CAPDU: 80 11 00 00 [06:08:25]Write to MH i2c: E2 08 00 93 0E 80 11 00 00 00 00 00 00 1B [06:08:25]Write i2c OK [06:08:25]MH_I2C_Read... [06:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:25]Read from MH i2c: E2 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: E2 17 00 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: E2 17 00 93 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 70 [06:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:08:25]wFMCommunicate OK [06:08:25]CreateOFDProtocolMessage done [06:08:25]OFDSenderStorePacket 201736 [06:08:25]StoreOFDPacket docnum=201736 [06:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 74 E7 04 01 AA 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DA D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 14 03 00 35 04 06 00 7E D4 97 C5 C3 93 9B DB FE DC 83 36 67 C9 [06:08:25]CheckFolder [06:08:25]dirname=/storage/ofd_packets [06:08:25]CheckFolder done [06:08:25]ProducePacketName [06:08:25]name=ofd_packets/00201736 [06:08:25]NVStorageSaveData ofd_packets/00201736 [06:08:25]File name is /storage/ofd_packets/00201736 [06:08:25]Write 298 bytes [06:08:25]NVStorageSaveData done [06:08:25]OFDSenderStorePacket done [06:08:25]KKMCreateOFDPacket done [06:08:25]NVStorageSaveData kkm_last_timestamp [06:08:25]File name is /storage/kkm_last_timestamp [06:08:25]Write 4 bytes [06:08:25]NVStorageSaveData done [06:08:25]ExternCall_PrintAddStr [06:08:25]wPrintStart [06:08:25]Write to MH i2c: 01 00 00 94 0E A2 [06:08:25]Write i2c OK [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: 01 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: 01 07 00 [06:08:25]MH_I2C_Read... [06:08:25]Read from MH i2c: 01 07 00 94 0E 00 00 00 00 00 FF 0F B7 [06:08:25]RasterBufferAndPrint [06:08:25]line Счет N : (1)449492 [06:08:25]line ИНН: 02508201610067 [06:08:25]line Контрольно-Кассовый Чек [06:08:25]line ПРОДАЖА [06:08:25]line ТРК (МРК, ГНК) : 43 [06:08:25]line Товар: 2710194210 [06:08:25]line ДТ-К-2 [06:08:25]line 6.570 * 76.20 [06:08:25]line = 500.63 [06:08:25]line НДС 12% НСП 1% [06:08:25]line > о реализуемом товаре [06:08:25]line ОКРУГЛЕНИЕ: -0.63 [06:08:25]line ИТОГО: 500.00 [06:08:25]line Внесено: 500.00 [06:08:25]line СДАЧА: 0.00 [06:08:25]line НСП 1% : 4.43 [06:08:25]line НДС 12% : 53.16 [06:08:25]line Наличными: 500.00 [06:08:25]line Безнал.: 0.00 [06:08:25]line Место: АЗС № 171 "Партнер Нефть" [06:08:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:08:25]line СНО: Общий режим [06:08:25]line Чек 28 27.10.2024 06:08 [06:08:25]line Смена: 544 ФФД: 1.0 [06:08:25]line ЗНМ: 0300000109 [06:08:25]line РНМ: 0000000000091777 [06:08:25]line Версия ККМ: 001 [06:08:25]line ФМ: 0000000000871756 [06:08:25]line ФД: 201736 [06:08:25]line ФПД: 139451544486803 [06:08:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201736&fm=139451544486803&tin=02508201610067®Number=0000000000091777&sum=50000 [06:08:25]OFD Sender: Processing packet 201736 [packets to send 112, broken 111] [06:08:25]ProducePacketName [06:08:25]name=ofd_packets/00201736 [06:08:25]OFD Sender: To server: pG, [06:08:25]CommunicateWithHost lk.salyk.kg:30040 [06:08:25]ConnectInit lk.salyk.kg [06:08:25]written 0, free lines is 4095 [06:08:25]Connected sock=10 [06:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 74 E7 04 01 AA 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DA D8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 14 03 00 35 04 06 00 7E D4 97 C5 C3 93 9B DB FE DC 83 36 67 C9 [06:08:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BF 62 47 00 A9 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 14 03 00 F4 03 04 00 81 84 1D 67 B6 04 01 00 00 10 E6 87 8D 4F 7C 7F BA [06:08:26]CommunicateWithHost err = 0 [06:08:26]CheckOFDResponse [06:08:26]1017 (14) - 77093643461234 [06:08:26]1041 (16) - 0000000000871756 [06:08:26]1040 (4) - 201736 [06:08:26]1012 (4) - 27.10.2024 00:08 [06:08:26]1206 (1) - 0 [06:08:26]OFD Sender: Remove packet 201736 [06:08:26]ProducePacketName [06:08:26]name=ofd_packets/00201736 [06:08:26]NVStorageDeleteData [06:08:26]Write to MH i2c: 01 00 00 BF 0E CD [06:08:26]Write i2c OK [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: 01 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: 01 07 00 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: 01 07 00 BF 0E 00 00 00 00 00 C2 0C A2 [06:08:26]RasterBufferAndPrint [06:08:26]line [06:08:26]line [06:08:26]line [06:08:26]line [06:08:26]line [06:08:26]written 0, free lines is 3280 [06:08:26]MH_Cut [06:08:26]Write to MH i2c: D1 01 00 C6 0E 01 A6 [06:08:26]Write i2c OK [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: D1 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: D1 01 00 [06:08:26]MH_I2C_Read... [06:08:26]Read from MH i2c: D1 01 00 C6 0E 00 A5 [06:08:26]Write to MH i2c: 01 00 00 C7 0E D5 [06:08:26]Write i2c OK [06:08:26]MH_I2C_Read... [06:08:26]OFD Sender: No OFD packet to send [06:08:27]*** Cut start [06:08:27]*** Purtial cut [06:08:27]*** Stage 1: CUTSNS_PIN = 1 [06:08:27]Read from MH i2c: 01 [06:08:27]MH_I2C_Read... [06:08:27]*** Stop cut motor [06:08:27]*** Cut end [06:08:27]Read from MH i2c: 01 07 00 [06:08:27]MH_I2C_Read... [06:08:27]Read from MH i2c: 01 07 00 C7 0E 00 00 00 00 00 FF 0F EA [06:08:27]process_action close_receipt done [06:08:27]requested_data is exist [06:08:27]produce_requested_data [06:08:27]requested_item fm.sn is exist - process it [06:08:27]wFMCommunicate request_size=4 [06:08:27]MH_SAM_APDU [06:08:27]CAPDU: 80 11 00 00 [06:08:27]Write to MH i2c: E2 08 00 C8 0E 80 11 00 00 00 00 00 00 50 [06:08:27]Write i2c OK [06:08:27]MH_I2C_Read... [06:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:27]Read from MH i2c: E2 [06:08:27]MH_I2C_Read... [06:08:27]Read from MH i2c: E2 17 00 [06:08:27]MH_I2C_Read... [06:08:27]Read from MH i2c: E2 17 00 C8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A5 [06:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:08:27]wFMCommunicate OK [06:08:27]requested_item fd.num is exist - process it [06:08:27]SAM_PROTO_GetFieldsCounters [06:08:27]wFMCommunicate request_size=4 [06:08:27]MH_SAM_APDU [06:08:27]CAPDU: 80 13 00 00 [06:08:27]Write to MH i2c: E2 08 00 C9 0E 80 13 00 00 00 00 00 00 53 [06:08:27]Write i2c OK [06:08:27]MH_I2C_Read... [06:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:27]Read from MH i2c: E2 [06:08:27]MH_I2C_Read... [06:08:27]Read from MH i2c: E2 62 00 [06:08:27]MH_I2C_Read... [06:08:27]Read from MH i2c: E2 62 00 C9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 08 14 03 00 0E 04 04 00 20 02 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 [06:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 08 14 03 00 0E 04 04 00 20 02 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 [06:08:27]wFMCommunicate OK [06:08:27]SAM_PROTO_GetFieldsCounters done [06:08:27]requested_item shift.num is exist - process it [06:08:27]requested_item shift.opened is exist - process it [06:08:27]req_shift_opened [06:08:27]FM_GetShiftState [06:08:27]SAM_PROTO_GetShiftState [06:08:27]wFMCommunicate request_size=4 [06:08:27]MH_SAM_APDU [06:08:27]CAPDU: 80 13 01 00 [06:08:27]Write to MH i2c: E2 08 00 CA 0E 80 13 01 00 00 00 00 00 55 [06:08:27]Write i2c OK [06:08:27]MH_I2C_Read... [06:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:27]Read from MH i2c: E2 [06:08:27]MH_I2C_Read... [06:08:27]Read from MH i2c: E2 0E 00 [06:08:27]MH_I2C_Read... [06:08:27]Read from MH i2c: E2 0E 00 CA 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 57 [06:08:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:08:27]wFMCommunicate OK [06:08:27]SAM_PROTO_GetShiftState done [06:08:27]FM_GetShiftState done [06:08:27]req_shift_opened done [06:08:27]requested_item shift.open_date is exist - process it [06:08:27]req_shift_open_date [06:08:27]req_shift_open_date done [06:08:27]produce_requested_data done [06:08:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201736,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:08:27]process_action_free close_receipt [06:08:27]json_value_free [06:08:27]json_value_free done [06:08:27]process_json_proto returns [06:08:27]Send response to host [06:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201736,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:08:27]free response buf [06:08:27]execute_script done [06:08:27]execute_script returns [06:08:27]free content buf [06:08:27]Sock 9.Close socket [06:08:27]Sock 9.Thread stoped [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:52]accept exits with 8 [06:14:52]New connection [06:14:52]New thread 3067080036 created [06:14:52]Thread 3066936676 joined [06:14:52]Waiting for new connection... [06:14:52] Sock 8.Parse request [06:14:52]Sock 8.Check first char [06:14:52]Sock 8.First char is OK [06:14:52]request: POST /json_proto HTTP/1.0 [06:14:52]Method: POST [06:14:52]URL: /json_proto [06:14:52]Method is POST - this is cgi request [06:14:52]url: /json_proto [06:14:52]query_string will be loaded in cgi processing [06:14:52]execute_cgi json_proto POST (null) [06:14:52]execute_cgi path=json_proto method=POST [06:14:52]POST find Content-Length [06:14:52]Host: 172.17.63.195:8080 [06:14:52]Content-Length: 679 [06:14:52]Content-Type: application/json [06:14:52] [06:14:52]POST finish read [06:14:52]Found Content-Length = 679 [06:14:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:52]execute_script... [06:14:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:52]POST & json_proto [06:14:52]process_json_proto [06:14:52]json parsed OK: [06:14:52]protocol is kg_v1.0 [06:14:52]action value=close_receipt [06:14:52]process_action close_receipt [06:14:52]cmd_close_receipt [06:14:52]MH_GetDate [06:14:52]Write to MH i2c: F0 00 00 CB 0E C8 [06:14:52]Write i2c OK [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: F0 [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: F0 09 00 [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: F0 09 00 CB 0E 00 5F DA 1D 67 68 46 19 67 BC [06:14:52]GetLastDocTimeStamp 1730009306 [06:14:52]current date 1730009695 [06:14:52]FM_GetShiftState [06:14:52]SAM_PROTO_GetShiftState [06:14:52]wFMCommunicate request_size=4 [06:14:52]MH_SAM_APDU [06:14:52]CAPDU: 80 13 01 00 [06:14:52]Write to MH i2c: E2 08 00 CC 0E 80 13 01 00 00 00 00 00 57 [06:14:52]Write i2c OK [06:14:52]MH_I2C_Read... [06:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:52]Read from MH i2c: E2 [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: E2 0E 00 [06:14:52]MH_I2C_Read... [06:14:52]Read from MH i2c: E2 0E 00 CC 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 59 [06:14:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:14:52]wFMCommunicate OK [06:14:52]SAM_PROTO_GetShiftState done [06:14:52]FM_GetShiftState done [06:14:52]opened in 1729987312 [06:14:52]opened+sec_in_day 1730073712 [06:14:52]quantity*price = 140055 [06:14:52]sum+1 = 140057 [06:14:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 29 27.10.2024 06:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201737 ФПД: 97510423221250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061456&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201737&fm=97510423221250&tin=02508201610067®Number=0000000000091777&sum=140000 [06:14:54]StoreToDocumentArchive [06:14:54]shift 544 fd 201737 [06:14:54]save to /storage/0544/doc_00201737 [06:14:54]save last doc name /storage/0544/doc_00201737 to /storage/kkm_last_doc_name [06:14:54]save OK [06:14:54]Clear old archive folders... [06:14:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:14:54]tlvbuf is B6F74980 [06:14:54]SAM_PROTO_ClearQueue [06:14:54]wFMCommunicate request_size=4 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 09 00 00 [06:14:54]Write to MH i2c: E2 08 00 D9 0E 80 09 00 00 00 00 00 00 59 [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 D9 0E 00 90 00 5B [06:14:54]RAPDU: 90 00 [06:14:54]wFMCommunicate OK [06:14:54]SAM_PROTO_ClearQueue done [06:14:54]KKMCreateOFDPacket [06:14:54]OFDProtocolAddRootSTLVToBuf [06:14:54]FM_MakeSignedData [06:14:54]FM_MakeSignedData [06:14:54]SAM_PROTO_SignData [06:14:54]wFMCommunicate request_size=4 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 0D 01 02 [06:14:54]Write to MH i2c: E2 08 00 DA 0E 80 0D 01 02 00 00 00 00 61 [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 DA 0E 00 90 00 5C [06:14:54]RAPDU: 90 00 [06:14:54]wFMCommunicate OK [06:14:54]wFMCommunicate request_size=255 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 DA 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 14 03 00 35 04 06 00 58 AF 6A 23 [06:14:54]Write to MH i2c: E2 02 01 DB 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 DA 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 14 03 00 35 04 06 00 58 AF 6A 23 00 00 DB [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 DB 0E 00 90 00 5D [06:14:54]RAPDU: 90 00 [06:14:54]wFMCommunicate OK [06:14:54]wFMCommunicate request_size=7 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 0D 02 02 02 54 02 [06:14:54]Write to MH i2c: E2 0A 00 DC 0E 80 0D 02 02 02 00 54 02 00 00 BE [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 03 00 DC 0E 00 90 00 5E [06:14:54]RAPDU: 90 00 [06:14:54]wFMCommunicate OK [06:14:54]wFMCommunicate request_size=4 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 0D 03 02 [06:14:54]Write to MH i2c: E2 08 00 DD 0E 80 0D 03 02 00 00 00 00 66 [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 0B 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 0B 00 DD 0E 00 DE C6 F5 D6 CE CA F6 DD 90 00 41 [06:14:54]RAPDU: DE C6 F5 D6 CE CA F6 DD 90 00 [06:14:54]wFMCommunicate OK [06:14:54]SAM_PROTO_SignData done [06:14:54]FM_MakeSignedData done [06:14:54]CreateOFDProtocolMessage [06:14:54]wFMCommunicate request_size=4 [06:14:54]MH_SAM_APDU [06:14:54]CAPDU: 80 11 00 00 [06:14:54]Write to MH i2c: E2 08 00 DE 0E 80 11 00 00 00 00 00 00 66 [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:54]Read from MH i2c: E2 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 17 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: E2 17 00 DE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [06:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:14:54]wFMCommunicate OK [06:14:54]CreateOFDProtocolMessage done [06:14:54]OFDSenderStorePacket 201737 [06:14:54]StoreOFDPacket docnum=201737 [06:14:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F1 3D 04 01 AA 4E 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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 DA 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 14 03 00 35 04 06 00 58 AF 6A 23 54 02 DE C6 F5 D6 CE CA F6 DD [06:14:54]CheckFolder [06:14:54]dirname=/storage/ofd_packets [06:14:54]CheckFolder done [06:14:54]ProducePacketName [06:14:54]name=ofd_packets/00201737 [06:14:54]NVStorageSaveData ofd_packets/00201737 [06:14:54]File name is /storage/ofd_packets/00201737 [06:14:54]Write 298 bytes [06:14:54]NVStorageSaveData done [06:14:54]OFDSenderStorePacket done [06:14:54]KKMCreateOFDPacket done [06:14:54]NVStorageSaveData kkm_last_timestamp [06:14:54]File name is /storage/kkm_last_timestamp [06:14:54]Write 4 bytes [06:14:54]NVStorageSaveData done [06:14:54]ExternCall_PrintAddStr [06:14:54]wPrintStart [06:14:54]Write to MH i2c: 01 00 00 DF 0E ED [06:14:54]Write i2c OK [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: 01 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: 01 07 00 [06:14:54]MH_I2C_Read... [06:14:54]Read from MH i2c: 01 07 00 DF 0E 00 00 00 00 00 FF 0F 02 [06:14:54]RasterBufferAndPrint [06:14:54]line Счет N : (1)449493 [06:14:54]line ИНН: 02508201610067 [06:14:54]line Контрольно-Кассовый Чек [06:14:54]line ПРОДАЖА [06:14:54]line ТРК (МРК, ГНК) : 33 [06:14:54]line Товар: 2710194210 [06:14:54]line ДТ-К-2 [06:14:54]line 18.380 * 76.20 [06:14:54]line = 1400.56 [06:14:54]line НДС 12% НСП 1% [06:14:54]line > о реализуемом товаре [06:14:54]line ОКРУГЛЕНИЕ: -0.56 [06:14:54]line ИТОГО: 1400.00 [06:14:54]line Внесено: 1400.00 [06:14:54]line СДАЧА: 0.00 [06:14:54]line НСП 1% : 12.39 [06:14:54]line НДС 12% : 148.73 [06:14:54]line Наличными: 1400.00 [06:14:54]line Безнал.: 0.00 [06:14:54]line Место: АЗС № 171 "Партнер Нефть" [06:14:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:14:54]line СНО: Общий режим [06:14:54]line Чек 29 27.10.2024 06:14 [06:14:54]line Смена: 544 ФФД: 1.0 [06:14:54]line ЗНМ: 0300000109 [06:14:54]line РНМ: 0000000000091777 [06:14:54]line Версия ККМ: 001 [06:14:54]line ФМ: 0000000000871756 [06:14:54]line ФД: 201737 [06:14:54]line ФПД: 97510423221250 [06:14:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061456&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201737&fm=97510423221250&tin=02508201610067®Number=0000000000091777&sum=140000 [06:14:54]OFD Sender: Processing packet 201737 [packets to send 112, broken 111] [06:14:54]ProducePacketName [06:14:54]name=ofd_packets/00201737 [06:14:54]OFD Sender: To server: pG, [06:14:54]CommunicateWithHost lk.salyk.kg:30040 [06:14:54]ConnectInit lk.salyk.kg [06:14:54]written 0, free lines is 4095 [06:14:54]Connected sock=10 [06:14:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F1 3D 04 01 AA 4E 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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 DA 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 14 03 00 35 04 06 00 58 AF 6A 23 54 02 DE C6 F5 D6 CE CA F6 DD [06:14:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F0 41 47 00 34 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 14 03 00 F4 03 04 00 06 86 1D 67 B6 04 01 00 00 78 EF 07 1D 44 32 C4 DA [06:14:55]CommunicateWithHost err = 0 [06:14:55]CheckOFDResponse [06:14:55]1017 (14) - 77093643461234 [06:14:55]1041 (16) - 0000000000871756 [06:14:55]1040 (4) - 201737 [06:14:55]1012 (4) - 27.10.2024 00:15 [06:14:55]1206 (1) - 0 [06:14:55]OFD Sender: Remove packet 201737 [06:14:55]ProducePacketName [06:14:55]name=ofd_packets/00201737 [06:14:55]NVStorageDeleteData [06:14:55]Write to MH i2c: 01 00 00 0A 0F 19 [06:14:55]Write i2c OK [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: 01 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: 01 07 00 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: 01 07 00 0A 0F 00 00 00 00 00 92 0C BE [06:14:55]RasterBufferAndPrint [06:14:55]line [06:14:55]line [06:14:55]line [06:14:55]line [06:14:55]line [06:14:55]written 0, free lines is 3222 [06:14:55]MH_Cut [06:14:55]Write to MH i2c: D1 01 00 11 0F 01 F2 [06:14:55]Write i2c OK [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: D1 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: D1 01 00 [06:14:55]MH_I2C_Read... [06:14:55]Read from MH i2c: D1 01 00 11 0F 00 F1 [06:14:55]Write to MH i2c: 01 00 00 12 0F 21 [06:14:55]Write i2c OK [06:14:55]MH_I2C_Read... [06:14:55]OFD Sender: No OFD packet to send [06:14:56]*** Cut start [06:14:56]*** Purtial cut [06:14:56]*** Stage 1: CUTSNS_PIN = 1 [06:14:56]Read from MH i2c: 01 [06:14:56]MH_I2C_Read... [06:14:56]*** Stop cut motor [06:14:56]*** Cut end [06:14:56]Read from MH i2c: 01 07 00 [06:14:56]MH_I2C_Read... [06:14:56]Read from MH i2c: 01 07 00 12 0F 00 00 00 00 00 FF 0F 36 [06:14:56]process_action close_receipt done [06:14:56]requested_data is exist [06:14:56]produce_requested_data [06:14:56]requested_item fm.sn is exist - process it [06:14:56]wFMCommunicate request_size=4 [06:14:56]MH_SAM_APDU [06:14:56]CAPDU: 80 11 00 00 [06:14:56]Write to MH i2c: E2 08 00 13 0F 80 11 00 00 00 00 00 00 9C [06:14:56]Write i2c OK [06:14:56]MH_I2C_Read... [06:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:14:56]Read from MH i2c: E2 [06:14:56]MH_I2C_Read... [06:14:56]Read from MH i2c: E2 17 00 [06:14:56]MH_I2C_Read... [06:14:56]Read from MH i2c: E2 17 00 13 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F1 [06:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:14:56]wFMCommunicate OK [06:14:56]requested_item fd.num is exist - process it [06:14:56]SAM_PROTO_GetFieldsCounters [06:14:56]wFMCommunicate request_size=4 [06:14:56]MH_SAM_APDU [06:14:56]CAPDU: 80 13 00 00 [06:14:56]Write to MH i2c: E2 08 00 14 0F 80 13 00 00 00 00 00 00 9F [06:14:56]Write i2c OK [06:14:56]MH_I2C_Read... [06:14:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:14:56]Read from MH i2c: E2 [06:14:56]MH_I2C_Read... [06:14:56]Read from MH i2c: E2 62 00 [06:14:56]MH_I2C_Read... [06:14:56]Read from MH i2c: E2 62 00 14 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 09 14 03 00 0E 04 04 00 20 02 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 61 [06:14:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 09 14 03 00 0E 04 04 00 20 02 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 [06:14:56]wFMCommunicate OK [06:14:56]SAM_PROTO_GetFieldsCounters done [06:14:56]requested_item shift.num is exist - process it [06:14:56]requested_item shift.opened is exist - process it [06:14:56]req_shift_opened [06:14:56]FM_GetShiftState [06:14:56]SAM_PROTO_GetShiftState [06:14:56]wFMCommunicate request_size=4 [06:14:56]MH_SAM_APDU [06:14:56]CAPDU: 80 13 01 00 [06:14:56]Write to MH i2c: E2 08 00 15 0F 80 13 01 00 00 00 00 00 A1 [06:14:56]Write i2c OK [06:14:56]MH_I2C_Read... [06:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:56]Read from MH i2c: E2 [06:14:56]MH_I2C_Read... [06:14:56]Read from MH i2c: E2 0E 00 [06:14:56]MH_I2C_Read... [06:14:56]Read from MH i2c: E2 0E 00 15 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A3 [06:14:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:14:56]wFMCommunicate OK [06:14:56]SAM_PROTO_GetShiftState done [06:14:56]FM_GetShiftState done [06:14:56]req_shift_opened done [06:14:56]requested_item shift.open_date is exist - process it [06:14:56]req_shift_open_date [06:14:56]req_shift_open_date done [06:14:56]produce_requested_data done [06:14:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201737,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:14:56]process_action_free close_receipt [06:14:56]json_value_free [06:14:56]json_value_free done [06:14:56]process_json_proto returns [06:14:56]Send response to host [06:14:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201737,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:14:56]free response buf [06:14:56]execute_script done [06:14:56]execute_script returns [06:14:56]free content buf [06:14:56]Sock 8.Close socket [06:14:56]Sock 8.Thread stoped [06:14:59]accept exits with 9 [06:14:59]New connection [06:14:59]New thread 3066936676 created [06:14:59]Thread 3067080036 joined [06:14:59]Waiting for new connection... [06:14:59] Sock 9.Parse request [06:14:59]Sock 9.Check first char [06:14:59]Sock 9.First char is OK [06:14:59]request: POST /json_proto HTTP/1.0 [06:14:59]Method: POST [06:14:59]URL: /json_proto [06:14:59]Method is POST - this is cgi request [06:14:59]url: /json_proto [06:14:59]query_string will be loaded in cgi processing [06:14:59]execute_cgi json_proto POST (null) [06:14:59]execute_cgi path=json_proto method=POST [06:14:59]POST find Content-Length [06:14:59]Host: 172.17.63.195:8080 [06:14:59]Content-Length: 679 [06:14:59]Content-Type: application/json [06:14:59] [06:14:59]POST finish read [06:14:59]Found Content-Length = 679 [06:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 24.300, "sum" : 1851.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1851.00, "payments": [ { "type": 0, "sum" : 1851.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:59]execute_script... [06:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 24.300, "sum" : 1851.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1851.00, "payments": [ { "type": 0, "sum" : 1851.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:14:59]POST & json_proto [06:14:59]process_json_proto [06:14:59]json parsed OK: [06:14:59]protocol is kg_v1.0 [06:14:59]action value=close_receipt [06:14:59]process_action close_receipt [06:14:59]cmd_close_receipt [06:14:59]MH_GetDate [06:14:59]Write to MH i2c: F0 00 00 16 0F 14 [06:14:59]Write i2c OK [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: F0 [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: F0 09 00 [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: F0 09 00 16 0F 00 66 DA 1D 67 68 46 19 67 0F [06:14:59]GetLastDocTimeStamp 1730009696 [06:14:59]current date 1730009702 [06:14:59]FM_GetShiftState [06:14:59]SAM_PROTO_GetShiftState [06:14:59]wFMCommunicate request_size=4 [06:14:59]MH_SAM_APDU [06:14:59]CAPDU: 80 13 01 00 [06:14:59]Write to MH i2c: E2 08 00 17 0F 80 13 01 00 00 00 00 00 A3 [06:14:59]Write i2c OK [06:14:59]MH_I2C_Read... [06:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:14:59]Read from MH i2c: E2 [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: E2 0E 00 [06:14:59]MH_I2C_Read... [06:14:59]Read from MH i2c: E2 0E 00 17 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A5 [06:14:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:14:59]wFMCommunicate OK [06:14:59]SAM_PROTO_GetShiftState done [06:14:59]FM_GetShiftState done [06:14:59]opened in 1729987312 [06:14:59]opened+sec_in_day 1730073712 [06:14:59]quantity*price = 185166 [06:14:59]sum+1 = 185167 [06:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1851.00 Внесено: 2000.00 СДАЧА: 149.00 НСП 1% : 16.39 НДС 12% : 196.64 Наличными: 1851.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 30 27.10.2024 06:15 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201738 ФПД: 233080373507704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061502&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201738&fm=233080373507704&tin=02508201610067®Number=0000000000091777&sum=185100 [06:15:00]StoreToDocumentArchive [06:15:00]shift 544 fd 201738 [06:15:00]save to /storage/0544/doc_00201738 [06:15:00]save last doc name /storage/0544/doc_00201738 to /storage/kkm_last_doc_name [06:15:00]save OK [06:15:00]Clear old archive folders... [06:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:15:00]tlvbuf is 0006AE40 [06:15:00]SAM_PROTO_ClearQueue [06:15:00]wFMCommunicate request_size=4 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 09 00 00 [06:15:00]Write to MH i2c: E2 08 00 24 0F 80 09 00 00 00 00 00 00 A5 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 24 0F 00 90 00 A7 [06:15:00]RAPDU: 90 00 [06:15:00]wFMCommunicate OK [06:15:00]SAM_PROTO_ClearQueue done [06:15:00]KKMCreateOFDPacket [06:15:00]OFDProtocolAddRootSTLVToBuf [06:15:00]FM_MakeSignedData [06:15:00]FM_MakeSignedData [06:15:00]SAM_PROTO_SignData [06:15:00]wFMCommunicate request_size=4 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 0D 01 02 [06:15:00]Write to MH i2c: E2 08 00 25 0F 80 0D 01 02 00 00 00 00 AD [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 25 0F 00 90 00 A8 [06:15:00]RAPDU: 90 00 [06:15:00]wFMCommunicate OK [06:15:00]wFMCommunicate request_size=255 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EC 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 4C 00 00 00 00 07 04 06 00 0C D3 02 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 66 DA 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 14 03 00 35 04 06 00 D3 FC 40 DD [06:15:00]Write to MH i2c: E2 02 01 26 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EC 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 4C 00 00 00 00 07 04 06 00 0C D3 02 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 66 DA 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 14 03 00 35 04 06 00 D3 FC 40 DD 00 00 B9 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 26 0F 00 90 00 A9 [06:15:00]RAPDU: 90 00 [06:15:00]wFMCommunicate OK [06:15:00]wFMCommunicate request_size=7 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 0D 02 02 02 F6 78 [06:15:00]Write to MH i2c: E2 0A 00 27 0F 80 0D 02 02 02 00 F6 78 00 00 22 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]OFD Sender: No OFD packet to send [06:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 03 00 27 0F 00 90 00 AA [06:15:00]RAPDU: 90 00 [06:15:00]wFMCommunicate OK [06:15:00]wFMCommunicate request_size=4 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 0D 03 02 [06:15:00]Write to MH i2c: E2 08 00 28 0F 80 0D 03 02 00 00 00 00 B2 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 0B 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 0B 00 28 0F 00 DB 5C 0C 9C 8E 87 BA 04 90 00 65 [06:15:00]RAPDU: DB 5C 0C 9C 8E 87 BA 04 90 00 [06:15:00]wFMCommunicate OK [06:15:00]SAM_PROTO_SignData done [06:15:00]FM_MakeSignedData done [06:15:00]CreateOFDProtocolMessage [06:15:00]wFMCommunicate request_size=4 [06:15:00]MH_SAM_APDU [06:15:00]CAPDU: 80 11 00 00 [06:15:00]Write to MH i2c: E2 08 00 29 0F 80 11 00 00 00 00 00 00 B2 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:00]Read from MH i2c: E2 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 17 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: E2 17 00 29 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 07 [06:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:15:00]wFMCommunicate OK [06:15:00]CreateOFDProtocolMessage done [06:15:00]OFDSenderStorePacket 201738 [06:15:00]StoreOFDPacket docnum=201738 [06:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A4 5B 04 01 BA 21 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 32 FF 03 08 00 03 EC 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 4C 00 00 00 00 07 04 06 00 0C D3 02 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 66 DA 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 14 03 00 35 04 06 00 D3 FC 40 DD F6 78 DB 5C 0C 9C 8E 87 BA 04 [06:15:00]CheckFolder [06:15:00]dirname=/storage/ofd_packets [06:15:00]CheckFolder done [06:15:00]ProducePacketName [06:15:00]name=ofd_packets/00201738 [06:15:00]NVStorageSaveData ofd_packets/00201738 [06:15:00]File name is /storage/ofd_packets/00201738 [06:15:00]Write 298 bytes [06:15:00]NVStorageSaveData done [06:15:00]OFDSenderStorePacket done [06:15:00]KKMCreateOFDPacket done [06:15:00]NVStorageSaveData kkm_last_timestamp [06:15:00]File name is /storage/kkm_last_timestamp [06:15:00]Write 4 bytes [06:15:00]NVStorageSaveData done [06:15:00]ExternCall_PrintAddStr [06:15:00]wPrintStart [06:15:00]Write to MH i2c: 01 00 00 2A 0F 39 [06:15:00]Write i2c OK [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: 01 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: 01 07 00 [06:15:00]MH_I2C_Read... [06:15:00]Read from MH i2c: 01 07 00 2A 0F 00 00 00 00 00 FF 0F 4E [06:15:00]RasterBufferAndPrint [06:15:00]line Счет N : (1)449494 [06:15:00]line ИНН: 02508201610067 [06:15:00]line Контрольно-Кассовый Чек [06:15:00]line ПРОДАЖА [06:15:00]line ТРК (МРК, ГНК) : 11 [06:15:00]line Товар: 2710194210 [06:15:00]line ДТ-К-2 [06:15:00]line 24.300 * 76.20 [06:15:00]line = 1851.66 [06:15:00]line НДС 12% НСП 1% [06:15:00]line > о реализуемом товаре [06:15:00]line ОКРУГЛЕНИЕ: -0.66 [06:15:00]line ИТОГО: 1851.00 [06:15:00]line Внесено: 2000.00 [06:15:00]line СДАЧА: 149.00 [06:15:00]line НСП 1% : 16.39 [06:15:00]line НДС 12% : 196.64 [06:15:00]line Наличными: 1851.00 [06:15:00]line Безнал.: 0.00 [06:15:00]line Место: АЗС № 171 "Партнер Нефть" [06:15:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:15:00]line СНО: Общий режим [06:15:00]line Чек 30 27.10.2024 06:15 [06:15:00]line Смена: 544 ФФД: 1.0 [06:15:00]line ЗНМ: 0300000109 [06:15:00]line РНМ: 0000000000091777 [06:15:00]line Версия ККМ: 001 [06:15:00]line ФМ: 0000000000871756 [06:15:00]line ФД: 201738 [06:15:00]line ФПД: 233080373507704 [06:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061502&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201738&fm=233080373507704&tin=02508201610067®Number=0000000000091777&sum=185100 [06:15:00]written 0, free lines is 4095 [06:15:00]OFD Sender: Processing packet 201738 [packets to send 112, broken 111] [06:15:00]ProducePacketName [06:15:00]name=ofd_packets/00201738 [06:15:00]OFD Sender: To server: pG, [06:15:00]CommunicateWithHost lk.salyk.kg:30040 [06:15:00]ConnectInit lk.salyk.kg [06:15:01]Connected sock=10 [06:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A4 5B 04 01 BA 21 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 32 FF 03 08 00 03 EC 5E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E D3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C D3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 4C 00 00 00 00 07 04 06 00 0C D3 02 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 66 DA 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 14 03 00 35 04 06 00 D3 FC 40 DD F6 78 DB 5C 0C 9C 8E 87 BA 04 [06:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 80 52 47 00 8D 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 14 03 00 F4 03 04 00 0C 86 1D 67 B6 04 01 00 00 97 3F CA B3 A1 99 AE 69 [06:15:01]CommunicateWithHost err = 0 [06:15:01]CheckOFDResponse [06:15:01]1017 (14) - 77093643461234 [06:15:01]1041 (16) - 0000000000871756 [06:15:01]1040 (4) - 201738 [06:15:01]1012 (4) - 27.10.2024 00:15 [06:15:01]1206 (1) - 0 [06:15:01]OFD Sender: Remove packet 201738 [06:15:01]ProducePacketName [06:15:01]name=ofd_packets/00201738 [06:15:01]NVStorageDeleteData [06:15:01]Write to MH i2c: 01 00 00 55 0F 64 [06:15:01]Write i2c OK [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 07 00 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: 01 07 00 55 0F 00 00 00 00 00 9D 0C 14 [06:15:01]RasterBufferAndPrint [06:15:01]line [06:15:01]line [06:15:01]line [06:15:01]line [06:15:01]line [06:15:01]written 0, free lines is 3237 [06:15:01]MH_Cut [06:15:01]Write to MH i2c: D1 01 00 5C 0F 01 3D [06:15:01]Write i2c OK [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: D1 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: D1 01 00 [06:15:01]MH_I2C_Read... [06:15:01]Read from MH i2c: D1 01 00 5C 0F 00 3C [06:15:01]Write to MH i2c: 01 00 00 5D 0F 6C [06:15:01]Write i2c OK [06:15:01]MH_I2C_Read... [06:15:01]OFD Sender: No OFD packet to send [06:15:02]*** Cut start [06:15:02]*** Purtial cut [06:15:02]*** Stage 1: CUTSNS_PIN = 1 [06:15:02]Read from MH i2c: 01 [06:15:02]MH_I2C_Read... [06:15:02]*** Stop cut motor [06:15:02]*** Cut end [06:15:02]Read from MH i2c: 01 07 00 [06:15:02]MH_I2C_Read... [06:15:02]Read from MH i2c: 01 07 00 5D 0F 00 00 00 00 00 FF 0F 81 [06:15:02]process_action close_receipt done [06:15:02]requested_data is exist [06:15:02]produce_requested_data [06:15:02]requested_item fm.sn is exist - process it [06:15:02]wFMCommunicate request_size=4 [06:15:02]MH_SAM_APDU [06:15:02]CAPDU: 80 11 00 00 [06:15:02]Write to MH i2c: E2 08 00 5E 0F 80 11 00 00 00 00 00 00 E7 [06:15:02]Write i2c OK [06:15:02]MH_I2C_Read... [06:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:02]Read from MH i2c: E2 [06:15:02]MH_I2C_Read... [06:15:02]Read from MH i2c: E2 17 00 [06:15:02]MH_I2C_Read... [06:15:02]Read from MH i2c: E2 17 00 5E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3C [06:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:15:02]wFMCommunicate OK [06:15:02]requested_item fd.num is exist - process it [06:15:02]SAM_PROTO_GetFieldsCounters [06:15:02]wFMCommunicate request_size=4 [06:15:02]MH_SAM_APDU [06:15:02]CAPDU: 80 13 00 00 [06:15:02]Write to MH i2c: E2 08 00 5F 0F 80 13 00 00 00 00 00 00 EA [06:15:02]Write i2c OK [06:15:02]MH_I2C_Read... [06:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:02]Read from MH i2c: E2 [06:15:02]MH_I2C_Read... [06:15:02]Read from MH i2c: E2 62 00 [06:15:02]MH_I2C_Read... [06:15:02]Read from MH i2c: E2 62 00 5F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0A 14 03 00 0E 04 04 00 20 02 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 B0 [06:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0A 14 03 00 0E 04 04 00 20 02 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 [06:15:02]wFMCommunicate OK [06:15:02]SAM_PROTO_GetFieldsCounters done [06:15:02]requested_item shift.num is exist - process it [06:15:02]requested_item shift.opened is exist - process it [06:15:02]req_shift_opened [06:15:02]FM_GetShiftState [06:15:02]SAM_PROTO_GetShiftState [06:15:02]wFMCommunicate request_size=4 [06:15:02]MH_SAM_APDU [06:15:02]CAPDU: 80 13 01 00 [06:15:02]Write to MH i2c: E2 08 00 60 0F 80 13 01 00 00 00 00 00 EC [06:15:02]Write i2c OK [06:15:02]MH_I2C_Read... [06:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:02]Read from MH i2c: E2 [06:15:02]MH_I2C_Read... [06:15:02]Read from MH i2c: E2 0E 00 [06:15:02]MH_I2C_Read... [06:15:02]Read from MH i2c: E2 0E 00 60 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 EE [06:15:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:15:02]wFMCommunicate OK [06:15:02]SAM_PROTO_GetShiftState done [06:15:02]FM_GetShiftState done [06:15:02]req_shift_opened done [06:15:02]requested_item shift.open_date is exist - process it [06:15:02]req_shift_open_date [06:15:02]req_shift_open_date done [06:15:02]produce_requested_data done [06:15:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201738,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:15:02]process_action_free close_receipt [06:15:02]json_value_free [06:15:02]json_value_free done [06:15:02]process_json_proto returns [06:15:02]Send response to host [06:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201738,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:15:02]free response buf [06:15:02]execute_script done [06:15:02]execute_script returns [06:15:02]free content buf [06:15:02]Sock 9.Close socket [06:15:02]Sock 9.Thread stoped [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:25]int [06:16:25]Write to MH i2c: 01 00 00 61 0F 70 [06:16:25]*** FLAG_PRN_KEY set [06:16:25]Write i2c OK [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 07 00 [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 07 00 61 0F 00 08 00 00 00 FF 0F 8D [06:16:25]state=0 [06:16:25]Key pressed [06:16:25]Feed [06:16:25]Write to MH i2c: D8 00 00 62 0F 48 [06:16:25]Write i2c OK [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: D8 [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: D8 01 00 [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: D8 01 00 62 0F 00 49 [06:16:25]int [06:16:25]Write to MH i2c: 01 00 00 63 0F 72 [06:16:25]Write i2c OK [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 07 00 [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 07 00 63 0F 00 48 00 00 00 3C 00 FD [06:16:25]state=2 [06:16:25]Key pressed [06:16:25]int [06:16:25]Write to MH i2c: 01 00 00 64 0F 73 [06:16:25]*** FLAG_PRN_KEY reset [06:16:25]Write i2c OK [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 07 00 [06:16:25]MH_I2C_Read... [06:16:25]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 F6 0F 7F [06:16:25]state=2 [06:16:25]Stop feed [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:12]accept exits with 8 [06:20:12]New connection [06:20:12]New thread 3067080036 created [06:20:12]Thread 3066936676 joined [06:20:12]Waiting for new connection... [06:20:12] Sock 8.Parse request [06:20:12]Sock 8.Check first char [06:20:12]Sock 8.First char is OK [06:20:12]request: POST /json_proto HTTP/1.0 [06:20:12]Method: POST [06:20:12]URL: /json_proto [06:20:12]Method is POST - this is cgi request [06:20:12]url: /json_proto [06:20:12]query_string will be loaded in cgi processing [06:20:12]execute_cgi json_proto POST (null) [06:20:12]execute_cgi path=json_proto method=POST [06:20:12]POST find Content-Length [06:20:12]Host: 172.17.63.195:8080 [06:20:12]Content-Length: 677 [06:20:12]Content-Type: application/json [06:20:12] [06:20:12]POST finish read [06:20:12]Found Content-Length = 677 [06:20:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:20:12]execute_script... [06:20:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:20:12]POST & json_proto [06:20:12]process_json_proto [06:20:12]json parsed OK: [06:20:12]protocol is kg_v1.0 [06:20:12]action value=close_receipt [06:20:12]process_action close_receipt [06:20:12]cmd_close_receipt [06:20:12]MH_GetDate [06:20:12]Write to MH i2c: F0 00 00 65 0F 63 [06:20:12]Write i2c OK [06:20:12]MH_I2C_Read... [06:20:12]Read from MH i2c: F0 [06:20:12]MH_I2C_Read... [06:20:12]Read from MH i2c: F0 09 00 [06:20:12]MH_I2C_Read... [06:20:12]Read from MH i2c: F0 09 00 65 0F 00 9F DB 1D 67 68 46 19 67 98 [06:20:12]GetLastDocTimeStamp 1730009702 [06:20:12]current date 1730010015 [06:20:12]FM_GetShiftState [06:20:12]SAM_PROTO_GetShiftState [06:20:12]wFMCommunicate request_size=4 [06:20:12]MH_SAM_APDU [06:20:12]CAPDU: 80 13 01 00 [06:20:12]Write to MH i2c: E2 08 00 66 0F 80 13 01 00 00 00 00 00 F2 [06:20:12]Write i2c OK [06:20:12]MH_I2C_Read... [06:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:12]Read from MH i2c: E2 [06:20:12]MH_I2C_Read... [06:20:12]Read from MH i2c: E2 0E 00 [06:20:12]MH_I2C_Read... [06:20:12]Read from MH i2c: E2 0E 00 66 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F4 [06:20:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:20:12]wFMCommunicate OK [06:20:12]SAM_PROTO_GetShiftState done [06:20:12]FM_GetShiftState done [06:20:12]opened in 1729987312 [06:20:12]opened+sec_in_day 1730073712 [06:20:12]quantity*price = 20003 [06:20:12]sum+1 = 20004 [06:20:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 31 27.10.2024 06:20 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201739 ФПД: 69800525519030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062015&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201739&fm=69800525519030&tin=02508201610067®Number=0000000000091777&sum=20000 [06:20:13]StoreToDocumentArchive [06:20:13]shift 544 fd 201739 [06:20:13]save to /storage/0544/doc_00201739 [06:20:13]save last doc name /storage/0544/doc_00201739 to /storage/kkm_last_doc_name [06:20:13]save OK [06:20:13]Clear old archive folders... [06:20:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:20:13]tlvbuf is 0006A3A0 [06:20:13]SAM_PROTO_ClearQueue [06:20:13]wFMCommunicate request_size=4 [06:20:13]MH_SAM_APDU [06:20:13]CAPDU: 80 09 00 00 [06:20:13]Write to MH i2c: E2 08 00 73 0F 80 09 00 00 00 00 00 00 F4 [06:20:13]Write i2c OK [06:20:13]MH_I2C_Read... [06:20:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:20:13]Read from MH i2c: E2 [06:20:13]MH_I2C_Read... [06:20:13]Read from MH i2c: E2 03 00 [06:20:13]MH_I2C_Read... [06:20:13]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [06:20:13]RAPDU: 90 00 [06:20:13]wFMCommunicate OK [06:20:13]SAM_PROTO_ClearQueue done [06:20:13]KKMCreateOFDPacket [06:20:13]OFDProtocolAddRootSTLVToBuf [06:20:13]FM_MakeSignedData [06:20:13]FM_MakeSignedData [06:20:13]SAM_PROTO_SignData [06:20:13]wFMCommunicate request_size=4 [06:20:13]MH_SAM_APDU [06:20:13]CAPDU: 80 0D 01 02 [06:20:13]Write to MH i2c: E2 08 00 74 0F 80 0D 01 02 00 00 00 00 FC [06:20:13]Write i2c OK [06:20:13]MH_I2C_Read... [06:20:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:20:13]Read from MH i2c: E2 [06:20:13]MH_I2C_Read... [06:20:13]Read from MH i2c: E2 03 00 [06:20:13]MH_I2C_Read... [06:20:13]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [06:20:13]RAPDU: 90 00 [06:20:13]wFMCommunicate OK [06:20:13]wFMCommunicate request_size=255 [06:20:13]MH_SAM_APDU [06:20:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 00 00 00 F4 03 04 00 9F DB 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 14 03 00 35 04 06 00 3F [06:20:13]Write to MH i2c: E2 02 01 75 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 00 00 00 F4 03 04 00 9F DB 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 14 03 00 35 04 06 00 3F 00 00 F2 [06:20:13]Write i2c OK [06:20:13]MH_I2C_Read... [06:20:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:14]Read from MH i2c: E2 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: E2 03 00 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [06:20:14]RAPDU: 90 00 [06:20:14]wFMCommunicate OK [06:20:14]wFMCommunicate request_size=10 [06:20:14]MH_SAM_APDU [06:20:14]CAPDU: 80 0D 02 02 05 7B B3 87 58 B6 [06:20:14]Write to MH i2c: E2 0D 00 76 0F 80 0D 02 02 05 00 7B B3 87 58 B6 00 00 CC [06:20:14]Write i2c OK [06:20:14]MH_I2C_Read... [06:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:14]Read from MH i2c: E2 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: E2 03 00 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [06:20:14]RAPDU: 90 00 [06:20:14]wFMCommunicate OK [06:20:14]wFMCommunicate request_size=4 [06:20:14]MH_SAM_APDU [06:20:14]CAPDU: 80 0D 03 02 [06:20:14]Write to MH i2c: E2 08 00 77 0F 80 0D 03 02 00 00 00 00 01 [06:20:14]Write i2c OK [06:20:14]MH_I2C_Read... [06:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:20:14]Read from MH i2c: E2 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: E2 0B 00 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: E2 0B 00 77 0F 00 5A 69 C1 DB A2 ED BD DB 90 00 88 [06:20:14]RAPDU: 5A 69 C1 DB A2 ED BD DB 90 00 [06:20:14]wFMCommunicate OK [06:20:14]SAM_PROTO_SignData done [06:20:14]FM_MakeSignedData done [06:20:14]CreateOFDProtocolMessage [06:20:14]wFMCommunicate request_size=4 [06:20:14]MH_SAM_APDU [06:20:14]CAPDU: 80 11 00 00 [06:20:14]Write to MH i2c: E2 08 00 78 0F 80 11 00 00 00 00 00 00 01 [06:20:14]Write i2c OK [06:20:14]MH_I2C_Read... [06:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:14]Read from MH i2c: E2 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: E2 17 00 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: E2 17 00 78 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [06:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:20:14]wFMCommunicate OK [06:20:14]CreateOFDProtocolMessage done [06:20:14]OFDSenderStorePacket 201739 [06:20:14]StoreOFDPacket docnum=201739 [06:20:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5E A4 07 01 FB 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 00 00 00 F4 03 04 00 9F DB 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 14 03 00 35 04 06 00 3F 7B B3 87 58 B6 5A 69 C1 DB A2 ED BD DB [06:20:14]CheckFolder [06:20:14]dirname=/storage/ofd_packets [06:20:14]CheckFolder done [06:20:14]ProducePacketName [06:20:14]name=ofd_packets/00201739 [06:20:14]NVStorageSaveData ofd_packets/00201739 [06:20:14]File name is /storage/ofd_packets/00201739 [06:20:14]Write 301 bytes [06:20:14]NVStorageSaveData done [06:20:14]OFDSenderStorePacket done [06:20:14]KKMCreateOFDPacket done [06:20:14]NVStorageSaveData kkm_last_timestamp [06:20:14]File name is /storage/kkm_last_timestamp [06:20:14]Write 4 bytes [06:20:14]NVStorageSaveData done [06:20:14]ExternCall_PrintAddStr [06:20:14]wPrintStart [06:20:14]Write to MH i2c: 01 00 00 79 0F 88 [06:20:14]Write i2c OK [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: 01 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: 01 07 00 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: 01 07 00 79 0F 00 00 00 00 00 FF 0F 9D [06:20:14]RasterBufferAndPrint [06:20:14]line Счет N : (1)449495 [06:20:14]line ИНН: 02508201610067 [06:20:14]line Контрольно-Кассовый Чек [06:20:14]line ПРОДАЖА [06:20:14]line ТРК (МРК, ГНК) : 41 [06:20:14]line Товар: 2710124130 [06:20:14]line Аи-92-К-2 [06:20:14]line 2.990 * 66.90 [06:20:14]line = 200.03 [06:20:14]line НДС 12% НСП 1% [06:20:14]line > о реализуемом товаре [06:20:14]line ОКРУГЛЕНИЕ: -0.03 [06:20:14]line ИТОГО: 200.00 [06:20:14]line Внесено: 200.00 [06:20:14]line СДАЧА: 0.00 [06:20:14]line НСП 1% : 1.77 [06:20:14]line НДС 12% : 21.24 [06:20:14]line Наличными: 200.00 [06:20:14]line Безнал.: 0.00 [06:20:14]line Место: АЗС № 171 "Партнер Нефть" [06:20:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:20:14]line СНО: Общий режим [06:20:14]line Чек 31 27.10.2024 06:20 [06:20:14]line Смена: 544 ФФД: 1.0 [06:20:14]line ЗНМ: 0300000109 [06:20:14]line РНМ: 0000000000091777 [06:20:14]line Версия ККМ: 001 [06:20:14]line ФМ: 0000000000871756 [06:20:14]line ФД: 201739 [06:20:14]line ФПД: 69800525519030 [06:20:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062015&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201739&fm=69800525519030&tin=02508201610067®Number=0000000000091777&sum=20000 [06:20:14]OFD Sender: Processing packet 201739 [packets to send 112, broken 111] [06:20:14]ProducePacketName [06:20:14]name=ofd_packets/00201739 [06:20:14]OFD Sender: To server: pG, [06:20:14]CommunicateWithHost lk.salyk.kg:30040 [06:20:14]ConnectInit lk.salyk.kg [06:20:14]written 0, free lines is 4095 [06:20:14]Connected sock=10 [06:20:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5E A4 07 01 FB 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 00 00 00 F4 03 04 00 9F DB 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 14 03 00 35 04 06 00 3F 7B B3 87 58 B6 5A 69 C1 DB A2 ED BD DB [06:20:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AD E0 47 00 7B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 14 03 00 F4 03 04 00 45 87 1D 67 B6 04 01 00 00 31 C3 07 D2 D4 2C BB A3 [06:20:14]CommunicateWithHost err = 0 [06:20:14]CheckOFDResponse [06:20:14]1017 (14) - 77093643461234 [06:20:14]1041 (16) - 0000000000871756 [06:20:14]1040 (4) - 201739 [06:20:14]1012 (4) - 27.10.2024 00:20 [06:20:14]1206 (1) - 0 [06:20:14]OFD Sender: Remove packet 201739 [06:20:14]ProducePacketName [06:20:14]name=ofd_packets/00201739 [06:20:14]NVStorageDeleteData [06:20:14]Write to MH i2c: 01 00 00 A4 0F B3 [06:20:14]Write i2c OK [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: 01 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: 01 07 00 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 9B 0C 61 [06:20:14]RasterBufferAndPrint [06:20:14]line [06:20:14]line [06:20:14]line [06:20:14]line [06:20:14]line [06:20:14]written 0, free lines is 3233 [06:20:14]MH_Cut [06:20:14]Write to MH i2c: D1 01 00 AB 0F 01 8C [06:20:14]Write i2c OK [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: D1 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: D1 01 00 [06:20:14]MH_I2C_Read... [06:20:14]Read from MH i2c: D1 01 00 AB 0F 00 8B [06:20:14]Write to MH i2c: 01 00 00 AC 0F BB [06:20:14]Write i2c OK [06:20:14]MH_I2C_Read... [06:20:15]OFD Sender: No OFD packet to send [06:20:15]*** Cut start [06:20:15]*** Purtial cut [06:20:15]*** Stage 1: CUTSNS_PIN = 1 [06:20:16]Read from MH i2c: 01 [06:20:16]MH_I2C_Read... [06:20:16]*** Stop cut motor [06:20:16]*** Cut end [06:20:16]Read from MH i2c: 01 07 00 [06:20:16]MH_I2C_Read... [06:20:16]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [06:20:16]process_action close_receipt done [06:20:16]requested_data is exist [06:20:16]produce_requested_data [06:20:16]requested_item fm.sn is exist - process it [06:20:16]wFMCommunicate request_size=4 [06:20:16]MH_SAM_APDU [06:20:16]CAPDU: 80 11 00 00 [06:20:16]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [06:20:16]Write i2c OK [06:20:16]MH_I2C_Read... [06:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:16]Read from MH i2c: E2 [06:20:16]MH_I2C_Read... [06:20:16]Read from MH i2c: E2 17 00 [06:20:16]MH_I2C_Read... [06:20:16]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [06:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:20:16]wFMCommunicate OK [06:20:16]requested_item fd.num is exist - process it [06:20:16]SAM_PROTO_GetFieldsCounters [06:20:16]wFMCommunicate request_size=4 [06:20:16]MH_SAM_APDU [06:20:16]CAPDU: 80 13 00 00 [06:20:16]Write to MH i2c: E2 08 00 AE 0F 80 13 00 00 00 00 00 00 39 [06:20:16]Write i2c OK [06:20:16]MH_I2C_Read... [06:20:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:20:16]Read from MH i2c: E2 [06:20:16]MH_I2C_Read... [06:20:16]Read from MH i2c: E2 62 00 [06:20:16]MH_I2C_Read... [06:20:16]Read from MH i2c: E2 62 00 AE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0B 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [06:20:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0B 14 03 00 0E 04 04 00 20 02 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 [06:20:16]wFMCommunicate OK [06:20:16]SAM_PROTO_GetFieldsCounters done [06:20:16]requested_item shift.num is exist - process it [06:20:16]requested_item shift.opened is exist - process it [06:20:16]req_shift_opened [06:20:16]FM_GetShiftState [06:20:16]SAM_PROTO_GetShiftState [06:20:16]wFMCommunicate request_size=4 [06:20:16]MH_SAM_APDU [06:20:16]CAPDU: 80 13 01 00 [06:20:16]Write to MH i2c: E2 08 00 AF 0F 80 13 01 00 00 00 00 00 3B [06:20:16]Write i2c OK [06:20:16]MH_I2C_Read... [06:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:16]Read from MH i2c: E2 [06:20:16]MH_I2C_Read... [06:20:16]Read from MH i2c: E2 0E 00 [06:20:16]MH_I2C_Read... [06:20:16]Read from MH i2c: E2 0E 00 AF 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3D [06:20:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:20:16]wFMCommunicate OK [06:20:16]SAM_PROTO_GetShiftState done [06:20:16]FM_GetShiftState done [06:20:16]req_shift_opened done [06:20:16]requested_item shift.open_date is exist - process it [06:20:16]req_shift_open_date [06:20:16]req_shift_open_date done [06:20:16]produce_requested_data done [06:20:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201739,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:20:16]process_action_free close_receipt [06:20:16]json_value_free [06:20:16]json_value_free done [06:20:16]process_json_proto returns [06:20:16]Send response to host [06:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201739,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:20:16]free response buf [06:20:16]execute_script done [06:20:16]execute_script returns [06:20:16]free content buf [06:20:16]Sock 8.Close socket [06:20:16]Sock 8.Thread stoped [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:42]accept exits with 9 [06:23:42]New connection [06:23:42]New thread 3066936676 created [06:23:42]Thread 3067080036 joined [06:23:42]Waiting for new connection... [06:23:42] Sock 9.Parse request [06:23:42]Sock 9.Check first char [06:23:42]Sock 9.First char is OK [06:23:42]request: POST /json_proto HTTP/1.0 [06:23:42]Method: POST [06:23:42]URL: /json_proto [06:23:42]Method is POST - this is cgi request [06:23:42]url: /json_proto [06:23:42]query_string will be loaded in cgi processing [06:23:42]execute_cgi json_proto POST (null) [06:23:42]execute_cgi path=json_proto method=POST [06:23:42]POST find Content-Length [06:23:42]Host: 172.17.63.195:8080 [06:23:42]Content-Length: 679 [06:23:42]Content-Type: application/json [06:23:42] [06:23:42]POST finish read [06:23:42]Found Content-Length = 679 [06:23:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [06:23:42]execute_script... [06:23: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)449496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [06:23:42]POST & json_proto [06:23:42]process_json_proto [06:23:42]json parsed OK: [06:23:42]protocol is kg_v1.0 [06:23:42]action value=close_receipt [06:23:42]process_action close_receipt [06:23:42]cmd_close_receipt [06:23:42]MH_GetDate [06:23:42]Write to MH i2c: F0 00 00 B0 0F AE [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: F0 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: F0 09 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: F0 09 00 B0 0F 00 71 DC 1D 67 68 46 19 67 B6 [06:23:42]GetLastDocTimeStamp 1730010015 [06:23:42]current date 1730010225 [06:23:42]FM_GetShiftState [06:23:42]SAM_PROTO_GetShiftState [06:23:42]wFMCommunicate request_size=4 [06:23:42]MH_SAM_APDU [06:23:42]CAPDU: 80 13 01 00 [06:23:42]Write to MH i2c: E2 08 00 B1 0F 80 13 01 00 00 00 00 00 3D [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:42]Read from MH i2c: E2 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 0E 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 0E 00 B1 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3F [06:23:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:23:42]wFMCommunicate OK [06:23:42]SAM_PROTO_GetShiftState done [06:23:42]FM_GetShiftState done [06:23:42]opened in 1729987312 [06:23:42]opened+sec_in_day 1730073712 [06:23:42]quantity*price = 100050 [06:23:42]sum+1 = 100052 [06:23:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 32 27.10.2024 06:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201740 ФПД: 248418812698553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062345&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201740&fm=248418812698553&tin=02508201610067®Number=0000000000091777&sum=100000 [06:23:43]StoreToDocumentArchive [06:23:43]shift 544 fd 201740 [06:23:43]save to /storage/0544/doc_00201740 [06:23:43]save last doc name /storage/0544/doc_00201740 to /storage/kkm_last_doc_name [06:23:43]save OK [06:23:43]Clear old archive folders... [06:23:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:23:43]tlvbuf is 000D00E0 [06:23:43]SAM_PROTO_ClearQueue [06:23:43]wFMCommunicate request_size=4 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 09 00 00 [06:23:43]Write to MH i2c: E2 08 00 BE 0F 80 09 00 00 00 00 00 00 3F [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:43]Read from MH i2c: E2 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 03 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [06:23:43]RAPDU: 90 00 [06:23:43]wFMCommunicate OK [06:23:43]SAM_PROTO_ClearQueue done [06:23:43]KKMCreateOFDPacket [06:23:43]OFDProtocolAddRootSTLVToBuf [06:23:43]FM_MakeSignedData [06:23:43]FM_MakeSignedData [06:23:43]SAM_PROTO_SignData [06:23:43]wFMCommunicate request_size=4 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 0D 01 02 [06:23:43]Write to MH i2c: E2 08 00 BF 0F 80 0D 01 02 00 00 00 00 47 [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:43]Read from MH i2c: E2 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 03 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [06:23:43]RAPDU: 90 00 [06:23:43]wFMCommunicate OK [06:23:43]wFMCommunicate request_size=255 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 20 00 00 00 F4 03 04 00 71 DC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 14 03 00 35 04 06 00 E1 EF 83 16 [06:23:43]Write to MH i2c: E2 02 01 C0 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 20 00 00 00 F4 03 04 00 71 DC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 14 03 00 35 04 06 00 E1 EF 83 16 00 00 70 [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [06:23:44]RAPDU: 90 00 [06:23:44]wFMCommunicate OK [06:23:44]wFMCommunicate request_size=7 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 0D 02 02 02 1F B9 [06:23:44]Write to MH i2c: E2 0A 00 C1 0F 80 0D 02 02 02 00 1F B9 00 00 26 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [06:23:44]RAPDU: 90 00 [06:23:44]wFMCommunicate OK [06:23:44]wFMCommunicate request_size=4 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 0D 03 02 [06:23:44]Write to MH i2c: E2 08 00 C2 0F 80 0D 03 02 00 00 00 00 4C [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 0B 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 0B 00 C2 0F 00 2A 3A 65 0B 5C 11 64 E2 90 00 D4 [06:23:44]RAPDU: 2A 3A 65 0B 5C 11 64 E2 90 00 [06:23:44]wFMCommunicate OK [06:23:44]SAM_PROTO_SignData done [06:23:44]FM_MakeSignedData done [06:23:44]CreateOFDProtocolMessage [06:23:44]wFMCommunicate request_size=4 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 11 00 00 [06:23:44]Write to MH i2c: E2 08 00 C3 0F 80 11 00 00 00 00 00 00 4C [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 17 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 17 00 C3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [06:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:23:44]wFMCommunicate OK [06:23:44]CreateOFDProtocolMessage done [06:23:44]OFDSenderStorePacket 201740 [06:23:44]StoreOFDPacket docnum=201740 [06:23:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 62 B3 04 01 F5 D5 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 32 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 20 00 00 00 F4 03 04 00 71 DC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 14 03 00 35 04 06 00 E1 EF 83 16 1F B9 2A 3A 65 0B 5C 11 64 E2 [06:23:44]CheckFolder [06:23:44]dirname=/storage/ofd_packets [06:23:44]CheckFolder done [06:23:44]ProducePacketName [06:23:44]name=ofd_packets/00201740 [06:23:44]NVStorageSaveData ofd_packets/00201740 [06:23:44]File name is /storage/ofd_packets/00201740 [06:23:44]Write 298 bytes [06:23:44]NVStorageSaveData done [06:23:44]OFDSenderStorePacket done [06:23:44]KKMCreateOFDPacket done [06:23:44]NVStorageSaveData kkm_last_timestamp [06:23:44]File name is /storage/kkm_last_timestamp [06:23:44]Write 4 bytes [06:23:44]NVStorageSaveData done [06:23:44]ExternCall_PrintAddStr [06:23:44]wPrintStart [06:23:44]Write to MH i2c: 01 00 00 C4 0F D3 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 07 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 FF 0F E8 [06:23:44]RasterBufferAndPrint [06:23:44]line Счет N : (1)449496 [06:23:44]line ИНН: 02508201610067 [06:23:44]line Контрольно-Кассовый Чек [06:23:44]line ПРОДАЖА [06:23:44]line ТРК (МРК, ГНК) : 11 [06:23:44]line Товар: 2710194210 [06:23:44]line ДТ-К-2 [06:23:44]line 13.130 * 76.20 [06:23:44]line = 1000.51 [06:23:44]line НДС 12% НСП 1% [06:23:44]line > о реализуемом товаре [06:23:44]line ОКРУГЛЕНИЕ: -0.51 [06:23:44]line ИТОГО: 1000.00 [06:23:44]line Внесено: 1000.00 [06:23:44]line СДАЧА: 0.00 [06:23:44]line НСП 1% : 8.85 [06:23:44]line НДС 12% : 106.25 [06:23:44]line Наличными: 1000.00 [06:23:44]line Безнал.: 0.00 [06:23:44]line Место: АЗС № 171 "Партнер Нефть" [06:23:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:23:44]line СНО: Общий режим [06:23:44]line Чек 32 27.10.2024 06:23 [06:23:44]line Смена: 544 ФФД: 1.0 [06:23:44]line ЗНМ: 0300000109 [06:23:44]line РНМ: 0000000000091777 [06:23:44]line Версия ККМ: 001 [06:23:44]line ФМ: 0000000000871756 [06:23:44]line ФД: 201740 [06:23:44]line ФПД: 248418812698553 [06:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062345&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201740&fm=248418812698553&tin=02508201610067®Number=0000000000091777&sum=100000 [06:23:44]OFD Sender: Processing packet 201740 [packets to send 112, broken 111] [06:23:44]ProducePacketName [06:23:44]name=ofd_packets/00201740 [06:23:44]OFD Sender: To server: pG, [06:23:44]CommunicateWithHost lk.salyk.kg:30040 [06:23:44]ConnectInit lk.salyk.kg [06:23:44]written 0, free lines is 4095 [06:23:44]Connected sock=10 [06:23:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 62 B3 04 01 F5 D5 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 32 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 20 00 00 00 F4 03 04 00 71 DC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 14 03 00 35 04 06 00 E1 EF 83 16 1F B9 2A 3A 65 0B 5C 11 64 E2 [06:23:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 88 A5 47 00 F4 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 14 03 00 F4 03 04 00 18 88 1D 67 B6 04 01 00 00 6C 89 08 95 CE A5 67 1F [06:23:44]CommunicateWithHost err = 0 [06:23:44]CheckOFDResponse [06:23:44]1017 (14) - 77093643461234 [06:23:44]1041 (16) - 0000000000871756 [06:23:44]1040 (4) - 201740 [06:23:44]1012 (4) - 27.10.2024 00:23 [06:23:44]1206 (1) - 0 [06:23:44]OFD Sender: Remove packet 201740 [06:23:44]ProducePacketName [06:23:44]name=ofd_packets/00201740 [06:23:44]NVStorageDeleteData [06:23:45]Write to MH i2c: 01 00 00 EF 0F FE [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 07 00 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 07 00 EF 0F 00 00 00 00 00 90 0C A1 [06:23:45]RasterBufferAndPrint [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]written 0, free lines is 3220 [06:23:45]MH_Cut [06:23:45]Write to MH i2c: D1 01 00 F6 0F 01 D7 [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 01 00 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 01 00 F6 0F 00 D6 [06:23:45]Write to MH i2c: 01 00 00 F7 0F 06 [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]OFD Sender: No OFD packet to send [06:23:45]*** Cut start [06:23:45]*** Purtial cut [06:23:45]*** Stage 1: CUTSNS_PIN = 1 [06:23:46]Read from MH i2c: 01 [06:23:46]MH_I2C_Read... [06:23:46]*** Stop cut motor [06:23:46]Read from MH i2c: 01 07 00 [06:23:46]MH_I2C_Read... [06:23:46]*** Cut end [06:23:46]Read from MH i2c: 01 07 00 F7 0F 00 00 00 00 00 FF 0F 1B [06:23:46]process_action close_receipt done [06:23:46]requested_data is exist [06:23:46]produce_requested_data [06:23:46]requested_item fm.sn is exist - process it [06:23:46]wFMCommunicate request_size=4 [06:23:46]MH_SAM_APDU [06:23:46]CAPDU: 80 11 00 00 [06:23:46]Write to MH i2c: E2 08 00 F8 0F 80 11 00 00 00 00 00 00 81 [06:23:46]Write i2c OK [06:23:46]MH_I2C_Read... [06:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:46]Read from MH i2c: E2 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 17 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 17 00 F8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [06:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:23:46]wFMCommunicate OK [06:23:46]requested_item fd.num is exist - process it [06:23:46]SAM_PROTO_GetFieldsCounters [06:23:46]wFMCommunicate request_size=4 [06:23:46]MH_SAM_APDU [06:23:46]CAPDU: 80 13 00 00 [06:23:46]Write to MH i2c: E2 08 00 F9 0F 80 13 00 00 00 00 00 00 84 [06:23:46]Write i2c OK [06:23:46]MH_I2C_Read... [06:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:46]Read from MH i2c: E2 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 62 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 62 00 F9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0C 14 03 00 0E 04 04 00 20 02 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 52 [06:23:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0C 14 03 00 0E 04 04 00 20 02 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 [06:23:46]wFMCommunicate OK [06:23:46]SAM_PROTO_GetFieldsCounters done [06:23:46]requested_item shift.num is exist - process it [06:23:46]requested_item shift.opened is exist - process it [06:23:46]req_shift_opened [06:23:46]FM_GetShiftState [06:23:46]SAM_PROTO_GetShiftState [06:23:46]wFMCommunicate request_size=4 [06:23:46]MH_SAM_APDU [06:23:46]CAPDU: 80 13 01 00 [06:23:46]Write to MH i2c: E2 08 00 FA 0F 80 13 01 00 00 00 00 00 86 [06:23:46]Write i2c OK [06:23:46]MH_I2C_Read... [06:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:46]Read from MH i2c: E2 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 0E 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 0E 00 FA 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 88 [06:23:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:23:46]wFMCommunicate OK [06:23:46]SAM_PROTO_GetShiftState done [06:23:46]FM_GetShiftState done [06:23:46]req_shift_opened done [06:23:46]requested_item shift.open_date is exist - process it [06:23:46]req_shift_open_date [06:23:46]req_shift_open_date done [06:23:46]produce_requested_data done [06:23:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201740,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:23:46]process_action_free close_receipt [06:23:46]json_value_free [06:23:46]json_value_free done [06:23:46]process_json_proto returns [06:23:46]Send response to host [06:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201740,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:23:46]free response buf [06:23:46]execute_script done [06:23:46]execute_script returns [06:23:46]free content buf [06:23:46]Sock 9.Close socket [06:23:46]Sock 9.Thread stoped [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:18]accept exits with 8 [06:27:18]New connection [06:27:18]New thread 3067080036 created [06:27:18]Thread 3066936676 joined [06:27:18]Waiting for new connection... [06:27:18] Sock 8.Parse request [06:27:18]Sock 8.Check first char [06:27:18]Sock 8.First char is OK [06:27:18]request: POST /json_proto HTTP/1.0 [06:27:18]Method: POST [06:27:18]URL: /json_proto [06:27:18]Method is POST - this is cgi request [06:27:18]url: /json_proto [06:27:18]query_string will be loaded in cgi processing [06:27:18]execute_cgi json_proto POST (null) [06:27:18]execute_cgi path=json_proto method=POST [06:27:18]POST find Content-Length [06:27:18]Host: 172.17.63.195:8080 [06:27:18]Content-Length: 677 [06:27:18]Content-Type: application/json [06:27:18] [06:27:18]POST finish read [06:27:18]Found Content-Length = 677 [06:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:27:18]execute_script... [06:27:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:27:18]POST & json_proto [06:27:18]process_json_proto [06:27:18]json parsed OK: [06:27:18]protocol is kg_v1.0 [06:27:18]action value=close_receipt [06:27:18]process_action close_receipt [06:27:18]cmd_close_receipt [06:27:18]MH_GetDate [06:27:18]Write to MH i2c: F0 00 00 FB 0F F9 [06:27:18]Write i2c OK [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: F0 [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: F0 09 00 [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: F0 09 00 FB 0F 00 4A DD 1D 67 68 46 19 67 DB [06:27:18]GetLastDocTimeStamp 1730010225 [06:27:18]current date 1730010442 [06:27:18]FM_GetShiftState [06:27:18]SAM_PROTO_GetShiftState [06:27:18]wFMCommunicate request_size=4 [06:27:18]MH_SAM_APDU [06:27:18]CAPDU: 80 13 01 00 [06:27:18]Write to MH i2c: E2 08 00 FC 0F 80 13 01 00 00 00 00 00 88 [06:27:18]Write i2c OK [06:27:18]MH_I2C_Read... [06:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:18]Read from MH i2c: E2 [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: E2 0E 00 [06:27:18]MH_I2C_Read... [06:27:18]Read from MH i2c: E2 0E 00 FC 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8A [06:27:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:27:18]wFMCommunicate OK [06:27:18]SAM_PROTO_GetShiftState done [06:27:18]FM_GetShiftState done [06:27:18]opened in 1729987312 [06:27:18]opened+sec_in_day 1730073712 [06:27:18]quantity*price = 30038 [06:27:18]sum+1 = 30039 [06:27:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 33 27.10.2024 06:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201741 ФПД: 273038137647148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062722&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201741&fm=273038137647148&tin=02508201610067®Number=0000000000091777&sum=30000 [06:27:20]StoreToDocumentArchive [06:27:20]shift 544 fd 201741 [06:27:20]save to /storage/0544/doc_00201741 [06:27:20]save last doc name /storage/0544/doc_00201741 to /storage/kkm_last_doc_name [06:27:20]save OK [06:27:20]Clear old archive folders... [06:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:20]tlvbuf is 000F2C30 [06:27:20]SAM_PROTO_ClearQueue [06:27:20]wFMCommunicate request_size=4 [06:27:20]MH_SAM_APDU [06:27:20]CAPDU: 80 09 00 00 [06:27:20]Write to MH i2c: E2 08 00 09 10 80 09 00 00 00 00 00 00 8B [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 03 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [06:27:20]RAPDU: 90 00 [06:27:20]wFMCommunicate OK [06:27:20]SAM_PROTO_ClearQueue done [06:27:20]KKMCreateOFDPacket [06:27:20]OFDProtocolAddRootSTLVToBuf [06:27:20]FM_MakeSignedData [06:27:20]FM_MakeSignedData [06:27:20]SAM_PROTO_SignData [06:27:20]wFMCommunicate request_size=4 [06:27:20]MH_SAM_APDU [06:27:20]CAPDU: 80 0D 01 02 [06:27:20]Write to MH i2c: E2 08 00 0A 10 80 0D 01 02 00 00 00 00 93 [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 03 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [06:27:20]RAPDU: 90 00 [06:27:20]wFMCommunicate OK [06:27:20]wFMCommunicate request_size=255 [06:27:20]MH_SAM_APDU [06:27: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 32 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 21 00 00 00 F4 03 04 00 4A DD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 14 03 00 35 04 06 00 F8 [06:27:20]Write to MH i2c: E2 02 01 0B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 00 00 00 F4 03 04 00 4A DD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 14 03 00 35 04 06 00 F8 00 00 25 [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 03 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 03 00 0B 10 00 90 00 8F [06:27:20]RAPDU: 90 00 [06:27:20]wFMCommunicate OK [06:27:20]wFMCommunicate request_size=10 [06:27:20]MH_SAM_APDU [06:27:20]CAPDU: 80 0D 02 02 05 53 A5 34 60 2C [06:27:20]Write to MH i2c: E2 0D 00 0C 10 80 0D 02 02 05 00 53 A5 34 60 2C 00 00 58 [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 03 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 03 00 0C 10 00 90 00 90 [06:27:20]RAPDU: 90 00 [06:27:20]wFMCommunicate OK [06:27:20]wFMCommunicate request_size=4 [06:27:20]MH_SAM_APDU [06:27:20]CAPDU: 80 0D 03 02 [06:27:20]Write to MH i2c: E2 08 00 0D 10 80 0D 03 02 00 00 00 00 98 [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 0B 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 0B 00 0D 10 00 2A 31 90 27 68 37 F5 C0 90 00 FF [06:27:20]RAPDU: 2A 31 90 27 68 37 F5 C0 90 00 [06:27:20]wFMCommunicate OK [06:27:20]SAM_PROTO_SignData done [06:27:20]FM_MakeSignedData done [06:27:20]CreateOFDProtocolMessage [06:27:20]wFMCommunicate request_size=4 [06:27:20]MH_SAM_APDU [06:27:20]CAPDU: 80 11 00 00 [06:27:20]Write to MH i2c: E2 08 00 0E 10 80 11 00 00 00 00 00 00 98 [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:20]Read from MH i2c: E2 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 17 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: E2 17 00 0E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 ED [06:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:27:20]wFMCommunicate OK [06:27:20]CreateOFDProtocolMessage done [06:27:20]OFDSenderStorePacket 201741 [06:27:20]StoreOFDPacket docnum=201741 [06:27:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 88 E4 07 01 00 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 00 00 00 F4 03 04 00 4A DD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 14 03 00 35 04 06 00 F8 53 A5 34 60 2C 2A 31 90 27 68 37 F5 C0 [06:27:20]CheckFolder [06:27:20]dirname=/storage/ofd_packets [06:27:20]CheckFolder done [06:27:20]ProducePacketName [06:27:20]name=ofd_packets/00201741 [06:27:20]NVStorageSaveData ofd_packets/00201741 [06:27:20]File name is /storage/ofd_packets/00201741 [06:27:20]Write 301 bytes [06:27:20]NVStorageSaveData done [06:27:20]OFDSenderStorePacket done [06:27:20]KKMCreateOFDPacket done [06:27:20]NVStorageSaveData kkm_last_timestamp [06:27:20]File name is /storage/kkm_last_timestamp [06:27:20]Write 4 bytes [06:27:20]NVStorageSaveData done [06:27:20]ExternCall_PrintAddStr [06:27:20]wPrintStart [06:27:20]Write to MH i2c: 01 00 00 0F 10 1F [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 07 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 07 00 0F 10 00 00 00 00 00 FF 0F 34 [06:27:20]RasterBufferAndPrint [06:27:20]line Счет N : (1)449497 [06:27:20]line ИНН: 02508201610067 [06:27:20]line Контрольно-Кассовый Чек [06:27:20]line ПРОДАЖА [06:27:20]line ТРК (МРК, ГНК) : 41 [06:27:20]line Товар: 2710124130 [06:27:20]line Аи-92-К-2 [06:27:20]line 4.490 * 66.90 [06:27:20]line = 300.38 [06:27:20]line НДС 12% НСП 1% [06:27:20]line > о реализуемом товаре [06:27:20]line ОКРУГЛЕНИЕ: -0.38 [06:27:20]line ИТОГО: 300.00 [06:27:20]line Внесено: 300.00 [06:27:20]line СДАЧА: 0.00 [06:27:20]line НСП 1% : 2.66 [06:27:20]line НДС 12% : 31.90 [06:27:20]line Наличными: 300.00 [06:27:20]line Безнал.: 0.00 [06:27:20]line Место: АЗС № 171 "Партнер Нефть" [06:27:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:27:20]line СНО: Общий режим [06:27:20]line Чек 33 27.10.2024 06:27 [06:27:20]line Смена: 544 ФФД: 1.0 [06:27:20]line ЗНМ: 0300000109 [06:27:20]line РНМ: 0000000000091777 [06:27:20]line Версия ККМ: 001 [06:27:20]line ФМ: 0000000000871756 [06:27:20]line ФД: 201741 [06:27:20]line ФПД: 273038137647148 [06:27:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062722&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201741&fm=273038137647148&tin=02508201610067®Number=0000000000091777&sum=30000 [06:27:20]OFD Sender: Processing packet 201741 [packets to send 112, broken 111] [06:27:20]ProducePacketName [06:27:20]name=ofd_packets/00201741 [06:27:20]OFD Sender: To server: pG, [06:27:20]CommunicateWithHost lk.salyk.kg:30040 [06:27:20]ConnectInit lk.salyk.kg [06:27:20]written 0, free lines is 4095 [06:27:21]Connected sock=11 [06:27:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 88 E4 07 01 00 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 00 00 00 F4 03 04 00 4A DD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 14 03 00 35 04 06 00 F8 53 A5 34 60 2C 2A 31 90 27 68 37 F5 C0 [06:27:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7A 40 47 00 97 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 14 03 00 F4 03 04 00 F0 88 1D 67 B6 04 01 00 00 93 64 85 AA 0E 15 53 2D [06:27:21]CommunicateWithHost err = 0 [06:27:21]CheckOFDResponse [06:27:21]1017 (14) - 77093643461234 [06:27:21]1041 (16) - 0000000000871756 [06:27:21]1040 (4) - 201741 [06:27:21]1012 (4) - 27.10.2024 00:27 [06:27:21]1206 (1) - 0 [06:27:21]OFD Sender: Remove packet 201741 [06:27:21]ProducePacketName [06:27:21]name=ofd_packets/00201741 [06:27:21]NVStorageDeleteData [06:27:21]Write to MH i2c: 01 00 00 3A 10 4A [06:27:21]Write i2c OK [06:27:21]MH_I2C_Read... [06:27:21]Read from MH i2c: 01 [06:27:21]MH_I2C_Read... [06:27:21]Read from MH i2c: 01 07 00 [06:27:21]MH_I2C_Read... [06:27:21]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 90 0C ED [06:27:21]RasterBufferAndPrint [06:27:21]line [06:27:21]line [06:27:21]line [06:27:21]line [06:27:21]line [06:27:21]written 0, free lines is 3220 [06:27:21]MH_Cut [06:27:21]Write to MH i2c: D1 01 00 41 10 01 23 [06:27:21]Write i2c OK [06:27:21]MH_I2C_Read... [06:27:21]Read from MH i2c: D1 [06:27:21]MH_I2C_Read... [06:27:21]Read from MH i2c: D1 01 00 [06:27:21]MH_I2C_Read... [06:27:21]Read from MH i2c: D1 01 00 41 10 00 22 [06:27:21]Write to MH i2c: 01 00 00 42 10 52 [06:27:21]Write i2c OK [06:27:21]MH_I2C_Read... [06:27:21]OFD Sender: No OFD packet to send [06:27:22]*** Cut start [06:27:22]*** Purtial cut [06:27:22]*** Stage 1: CUTSNS_PIN = 1 [06:27:22]Read from MH i2c: 01 [06:27:22]MH_I2C_Read... [06:27:22]*** Stop cut motor [06:27:22]*** Cut end [06:27:22]Read from MH i2c: 01 07 00 [06:27:22]MH_I2C_Read... [06:27:22]Read from MH i2c: 01 07 00 42 10 00 00 00 00 00 FF 0F 67 [06:27:22]process_action close_receipt done [06:27:22]requested_data is exist [06:27:22]produce_requested_data [06:27:22]requested_item fm.sn is exist - process it [06:27:22]wFMCommunicate request_size=4 [06:27:22]MH_SAM_APDU [06:27:22]CAPDU: 80 11 00 00 [06:27:22]Write to MH i2c: E2 08 00 43 10 80 11 00 00 00 00 00 00 CD [06:27:22]Write i2c OK [06:27:22]MH_I2C_Read... [06:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:22]Read from MH i2c: E2 [06:27:22]MH_I2C_Read... [06:27:22]Read from MH i2c: E2 17 00 [06:27:22]MH_I2C_Read... [06:27:22]Read from MH i2c: E2 17 00 43 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [06:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:27:22]wFMCommunicate OK [06:27:22]requested_item fd.num is exist - process it [06:27:22]SAM_PROTO_GetFieldsCounters [06:27:22]wFMCommunicate request_size=4 [06:27:22]MH_SAM_APDU [06:27:22]CAPDU: 80 13 00 00 [06:27:22]Write to MH i2c: E2 08 00 44 10 80 13 00 00 00 00 00 00 D0 [06:27:22]Write i2c OK [06:27:22]MH_I2C_Read... [06:27:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:22]Read from MH i2c: E2 [06:27:22]MH_I2C_Read... [06:27:22]Read from MH i2c: E2 62 00 [06:27:22]MH_I2C_Read... [06:27:22]Read from MH i2c: E2 62 00 44 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0D 14 03 00 0E 04 04 00 20 02 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 A2 [06:27:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0D 14 03 00 0E 04 04 00 20 02 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 [06:27:22]wFMCommunicate OK [06:27:22]SAM_PROTO_GetFieldsCounters done [06:27:22]requested_item shift.num is exist - process it [06:27:22]requested_item shift.opened is exist - process it [06:27:22]req_shift_opened [06:27:22]FM_GetShiftState [06:27:22]SAM_PROTO_GetShiftState [06:27:22]wFMCommunicate request_size=4 [06:27:22]MH_SAM_APDU [06:27:22]CAPDU: 80 13 01 00 [06:27:22]Write to MH i2c: E2 08 00 45 10 80 13 01 00 00 00 00 00 D2 [06:27:22]Write i2c OK [06:27:22]MH_I2C_Read... [06:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:22]Read from MH i2c: E2 [06:27:22]MH_I2C_Read... [06:27:22]Read from MH i2c: E2 0E 00 [06:27:22]MH_I2C_Read... [06:27:22]Read from MH i2c: E2 0E 00 45 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D4 [06:27:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:27:22]wFMCommunicate OK [06:27:22]SAM_PROTO_GetShiftState done [06:27:22]FM_GetShiftState done [06:27:22]req_shift_opened done [06:27:22]requested_item shift.open_date is exist - process it [06:27:22]req_shift_open_date [06:27:22]req_shift_open_date done [06:27:22]produce_requested_data done [06:27:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201741,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:27:22]process_action_free close_receipt [06:27:22]json_value_free [06:27:22]json_value_free done [06:27:22]process_json_proto returns [06:27:22]Send response to host [06:27:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201741,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:27:22]free response buf [06:27:22]execute_script done [06:27:22]execute_script returns [06:27:22]free content buf [06:27:22]Sock 8.Close socket [06:27:22]Sock 8.Thread stoped [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:39]accept exits with 9 [06:32:39]New connection [06:32:39]New thread 3066936676 created [06:32:39]Thread 3067080036 joined [06:32:39]Waiting for new connection... [06:32:39] Sock 9.Parse request [06:32:39]Sock 9.Check first char [06:32:39]Sock 9.First char is OK [06:32:39]request: POST /json_proto HTTP/1.0 [06:32:39]Method: POST [06:32:39]URL: /json_proto [06:32:39]Method is POST - this is cgi request [06:32:39]url: /json_proto [06:32:39]query_string will be loaded in cgi processing [06:32:39]execute_cgi json_proto POST (null) [06:32:39]execute_cgi path=json_proto method=POST [06:32:39]POST find Content-Length [06:32:39]Host: 172.17.63.195:8080 [06:32:39]Content-Length: 682 [06:32:39]Content-Type: application/json [06:32:39] [06:32:39]POST finish read [06:32:39]Found Content-Length = 682 [06:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:32:39]execute_script... [06:32:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:32:39]POST & json_proto [06:32:39]process_json_proto [06:32:39]json parsed OK: [06:32:39]protocol is kg_v1.0 [06:32:39]action value=close_receipt [06:32:39]process_action close_receipt [06:32:39]cmd_close_receipt [06:32:39]MH_GetDate [06:32:39]Write to MH i2c: F0 00 00 46 10 45 [06:32:39]Write i2c OK [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: F0 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: F0 09 00 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: F0 09 00 46 10 00 8A DE 1D 67 68 46 19 67 68 [06:32:39]GetLastDocTimeStamp 1730010442 [06:32:39]current date 1730010762 [06:32:39]FM_GetShiftState [06:32:39]SAM_PROTO_GetShiftState [06:32:39]wFMCommunicate request_size=4 [06:32:39]MH_SAM_APDU [06:32:39]CAPDU: 80 13 01 00 [06:32:39]Write to MH i2c: E2 08 00 47 10 80 13 01 00 00 00 00 00 D4 [06:32:39]Write i2c OK [06:32:39]MH_I2C_Read... [06:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:39]Read from MH i2c: E2 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: E2 0E 00 [06:32:39]MH_I2C_Read... [06:32:39]Read from MH i2c: E2 0E 00 47 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D6 [06:32:39]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:32:39]wFMCommunicate OK [06:32:39]SAM_PROTO_GetShiftState done [06:32:39]FM_GetShiftState done [06:32:39]opened in 1729987312 [06:32:39]opened+sec_in_day 1730073712 [06:32:39]quantity*price = 100015 [06:32:39]sum+1 = 100017 [06:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 34 27.10.2024 06:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201742 ФПД: 38969140231172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063242&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201742&fm=38969140231172&tin=02508201610067®Number=0000000000091777&sum=100000 [06:32:40]StoreToDocumentArchive [06:32:40]shift 544 fd 201742 [06:32:40]save to /storage/0544/doc_00201742 [06:32:40]save last doc name /storage/0544/doc_00201742 to /storage/kkm_last_doc_name [06:32:40]save OK [06:32:40]Clear old archive folders... [06:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:32:40]tlvbuf is 000A81C0 [06:32:40]SAM_PROTO_ClearQueue [06:32:40]wFMCommunicate request_size=4 [06:32:40]MH_SAM_APDU [06:32:40]CAPDU: 80 09 00 00 [06:32:40]Write to MH i2c: E2 08 00 54 10 80 09 00 00 00 00 00 00 D6 [06:32:40]Write i2c OK [06:32:40]MH_I2C_Read... [06:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:32:40]Read from MH i2c: E2 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 03 00 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 03 00 54 10 00 90 00 D8 [06:32:40]RAPDU: 90 00 [06:32:40]wFMCommunicate OK [06:32:40]SAM_PROTO_ClearQueue done [06:32:40]KKMCreateOFDPacket [06:32:40]OFDProtocolAddRootSTLVToBuf [06:32:40]FM_MakeSignedData [06:32:40]FM_MakeSignedData [06:32:40]SAM_PROTO_SignData [06:32:40]wFMCommunicate request_size=4 [06:32:40]MH_SAM_APDU [06:32:40]CAPDU: 80 0D 01 02 [06:32:40]Write to MH i2c: E2 08 00 55 10 80 0D 01 02 00 00 00 00 DE [06:32:40]Write i2c OK [06:32:40]MH_I2C_Read... [06:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:32:40]Read from MH i2c: E2 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 03 00 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 03 00 55 10 00 90 00 D9 [06:32:40]RAPDU: 90 00 [06:32:40]wFMCommunicate OK [06:32:40]wFMCommunicate request_size=255 [06:32:40]MH_SAM_APDU [06:32:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 22 00 00 00 F4 03 04 00 8A DE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 14 03 00 35 04 06 00 23 [06:32:40]Write to MH i2c: E2 02 01 56 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 22 00 00 00 F4 03 04 00 8A DE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 14 03 00 35 04 06 00 23 00 00 E4 [06:32:40]Write i2c OK [06:32:40]MH_I2C_Read... [06:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:40]Read from MH i2c: E2 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 03 00 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 03 00 56 10 00 90 00 DA [06:32:40]RAPDU: 90 00 [06:32:40]wFMCommunicate OK [06:32:40]wFMCommunicate request_size=10 [06:32:40]MH_SAM_APDU [06:32:40]CAPDU: 80 0D 02 02 05 71 35 C2 BC 04 [06:32:40]Write to MH i2c: E2 0D 00 57 10 80 0D 02 02 05 00 71 35 C2 BC 04 00 00 13 [06:32:40]Write i2c OK [06:32:40]MH_I2C_Read... [06:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:40]Read from MH i2c: E2 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 03 00 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 03 00 57 10 00 90 00 DB [06:32:40]RAPDU: 90 00 [06:32:40]wFMCommunicate OK [06:32:40]wFMCommunicate request_size=4 [06:32:40]MH_SAM_APDU [06:32:40]CAPDU: 80 0D 03 02 [06:32:40]Write to MH i2c: E2 08 00 58 10 80 0D 03 02 00 00 00 00 E3 [06:32:40]Write i2c OK [06:32:40]MH_I2C_Read... [06:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:32:40]Read from MH i2c: E2 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 0B 00 [06:32:40]MH_I2C_Read... [06:32:40]Read from MH i2c: E2 0B 00 58 10 00 8F 36 C8 9F 9E AB 13 9F 90 00 0B [06:32:40]RAPDU: 8F 36 C8 9F 9E AB 13 9F 90 00 [06:32:40]wFMCommunicate OK [06:32:40]SAM_PROTO_SignData done [06:32:40]FM_MakeSignedData done [06:32:40]CreateOFDProtocolMessage [06:32:40]wFMCommunicate request_size=4 [06:32:40]MH_SAM_APDU [06:32:40]CAPDU: 80 11 00 00 [06:32:40]Write to MH i2c: E2 08 00 59 10 80 11 00 00 00 00 00 00 E3 [06:32:40]Write i2c OK [06:32:40]MH_I2C_Read... [06:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:41]Read from MH i2c: E2 [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: E2 17 00 [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: E2 17 00 59 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [06:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:32:41]wFMCommunicate OK [06:32:41]CreateOFDProtocolMessage done [06:32:41]OFDSenderStorePacket 201742 [06:32:41]StoreOFDPacket docnum=201742 [06:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1F 5D 07 01 AD 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 22 00 00 00 F4 03 04 00 8A DE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 14 03 00 35 04 06 00 23 71 35 C2 BC 04 8F 36 C8 9F 9E AB 13 9F [06:32:41]CheckFolder [06:32:41]dirname=/storage/ofd_packets [06:32:41]CheckFolder done [06:32:41]ProducePacketName [06:32:41]name=ofd_packets/00201742 [06:32:41]NVStorageSaveData ofd_packets/00201742 [06:32:41]File name is /storage/ofd_packets/00201742 [06:32:41]Write 301 bytes [06:32:41]NVStorageSaveData done [06:32:41]OFDSenderStorePacket done [06:32:41]KKMCreateOFDPacket done [06:32:41]NVStorageSaveData kkm_last_timestamp [06:32:41]File name is /storage/kkm_last_timestamp [06:32:41]Write 4 bytes [06:32:41]NVStorageSaveData done [06:32:41]ExternCall_PrintAddStr [06:32:41]wPrintStart [06:32:41]Write to MH i2c: 01 00 00 5A 10 6A [06:32:41]Write i2c OK [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: 01 [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: 01 07 00 [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: 01 07 00 5A 10 00 00 00 00 00 FF 0F 7F [06:32:41]RasterBufferAndPrint [06:32:41]line Счет N : (1)449498 [06:32:41]line ИНН: 02508201610067 [06:32:41]line Контрольно-Кассовый Чек [06:32:41]line ПРОДАЖА [06:32:41]line ТРК (МРК, ГНК) : 41 [06:32:41]line Товар: 2710124130 [06:32:41]line Аи-92-К-2 [06:32:41]line 14.950 * 66.90 [06:32:41]line = 1000.16 [06:32:41]line НДС 12% НСП 1% [06:32:41]line > о реализуемом товаре [06:32:41]line ОКРУГЛЕНИЕ: -0.16 [06:32:41]line ИТОГО: 1000.00 [06:32:41]line Внесено: 1000.00 [06:32:41]line СДАЧА: 0.00 [06:32:41]line НСП 1% : 8.85 [06:32:41]line НДС 12% : 106.21 [06:32:41]line Наличными: 1000.00 [06:32:41]line Безнал.: 0.00 [06:32:41]line Место: АЗС № 171 "Партнер Нефть" [06:32:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:32:41]line СНО: Общий режим [06:32:41]line Чек 34 27.10.2024 06:32 [06:32:41]line Смена: 544 ФФД: 1.0 [06:32:41]line ЗНМ: 0300000109 [06:32:41]line РНМ: 0000000000091777 [06:32:41]line Версия ККМ: 001 [06:32:41]line ФМ: 0000000000871756 [06:32:41]line ФД: 201742 [06:32:41]line ФПД: 38969140231172 [06:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063242&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201742&fm=38969140231172&tin=02508201610067®Number=0000000000091777&sum=100000 [06:32:41]OFD Sender: Processing packet 201742 [packets to send 112, broken 111] [06:32:41]ProducePacketName [06:32:41]name=ofd_packets/00201742 [06:32:41]OFD Sender: To server: pG, [06:32:41]CommunicateWithHost lk.salyk.kg:30040 [06:32:41]ConnectInit lk.salyk.kg [06:32:41]written 0, free lines is 4095 [06:32:41]Connected sock=10 [06:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1F 5D 07 01 AD 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 22 00 00 00 F4 03 04 00 8A DE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 14 03 00 35 04 06 00 23 71 35 C2 BC 04 8F 36 C8 9F 9E AB 13 9F [06:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B9 7F 47 00 CB D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 14 03 00 F4 03 04 00 30 8A 1D 67 B6 04 01 00 00 28 66 F1 84 4D 27 51 58 [06:32:41]CommunicateWithHost err = 0 [06:32:41]CheckOFDResponse [06:32:41]1017 (14) - 77093643461234 [06:32:41]1041 (16) - 0000000000871756 [06:32:41]1040 (4) - 201742 [06:32:41]1012 (4) - 27.10.2024 00:32 [06:32:41]1206 (1) - 0 [06:32:41]OFD Sender: Remove packet 201742 [06:32:41]ProducePacketName [06:32:41]name=ofd_packets/00201742 [06:32:41]NVStorageDeleteData [06:32:41]Write to MH i2c: 01 00 00 85 10 95 [06:32:41]Write i2c OK [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: 01 [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: 01 07 00 [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: 01 07 00 85 10 00 00 00 00 00 8F 0C 37 [06:32:41]RasterBufferAndPrint [06:32:41]line [06:32:41]line [06:32:41]line [06:32:41]line [06:32:41]line [06:32:41]written 0, free lines is 3219 [06:32:41]MH_Cut [06:32:41]Write to MH i2c: D1 01 00 8C 10 01 6E [06:32:41]Write i2c OK [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: D1 [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: D1 01 00 [06:32:41]MH_I2C_Read... [06:32:41]Read from MH i2c: D1 01 00 8C 10 00 6D [06:32:41]Write to MH i2c: 01 00 00 8D 10 9D [06:32:41]Write i2c OK [06:32:41]MH_I2C_Read... [06:32:42]OFD Sender: No OFD packet to send [06:32:42]*** Cut start [06:32:42]*** Purtial cut [06:32:42]*** Stage 1: CUTSNS_PIN = 1 [06:32:42]Read from MH i2c: 01 [06:32:42]MH_I2C_Read... [06:32:42]*** Stop cut motor [06:32:42]Read from MH i2c: *** Cut end [06:32:42]01 07 00 [06:32:42]MH_I2C_Read... [06:32:42]Read from MH i2c: 01 07 00 8D 10 00 00 00 00 00 FF 0F B2 [06:32:42]process_action close_receipt done [06:32:42]requested_data is exist [06:32:42]produce_requested_data [06:32:42]requested_item fm.sn is exist - process it [06:32:42]wFMCommunicate request_size=4 [06:32:42]MH_SAM_APDU [06:32:42]CAPDU: 80 11 00 00 [06:32:42]Write to MH i2c: E2 08 00 8E 10 80 11 00 00 00 00 00 00 18 [06:32:42]Write i2c OK [06:32:42]MH_I2C_Read... [06:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:42]Read from MH i2c: E2 [06:32:42]MH_I2C_Read... [06:32:42]Read from MH i2c: E2 17 00 [06:32:42]MH_I2C_Read... [06:32:42]Read from MH i2c: E2 17 00 8E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [06:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:32:42]wFMCommunicate OK [06:32:42]requested_item fd.num is exist - process it [06:32:42]SAM_PROTO_GetFieldsCounters [06:32:42]wFMCommunicate request_size=4 [06:32:42]MH_SAM_APDU [06:32:42]CAPDU: 80 13 00 00 [06:32:42]Write to MH i2c: E2 08 00 8F 10 80 13 00 00 00 00 00 00 1B [06:32:43]Write i2c OK [06:32:43]MH_I2C_Read... [06:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:32:43]Read from MH i2c: E2 [06:32:43]MH_I2C_Read... [06:32:43]Read from MH i2c: E2 62 00 [06:32:43]MH_I2C_Read... [06:32:43]Read from MH i2c: E2 62 00 8F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0E 14 03 00 0E 04 04 00 20 02 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 F1 [06:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0E 14 03 00 0E 04 04 00 20 02 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 [06:32:43]wFMCommunicate OK [06:32:43]SAM_PROTO_GetFieldsCounters done [06:32:43]requested_item shift.num is exist - process it [06:32:43]requested_item shift.opened is exist - process it [06:32:43]req_shift_opened [06:32:43]FM_GetShiftState [06:32:43]SAM_PROTO_GetShiftState [06:32:43]wFMCommunicate request_size=4 [06:32:43]MH_SAM_APDU [06:32:43]CAPDU: 80 13 01 00 [06:32:43]Write to MH i2c: E2 08 00 90 10 80 13 01 00 00 00 00 00 1D [06:32:43]Write i2c OK [06:32:43]MH_I2C_Read... [06:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:43]Read from MH i2c: E2 [06:32:43]MH_I2C_Read... [06:32:43]Read from MH i2c: E2 0E 00 [06:32:43]MH_I2C_Read... [06:32:43]Read from MH i2c: E2 0E 00 90 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1F [06:32:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:32:43]wFMCommunicate OK [06:32:43]SAM_PROTO_GetShiftState done [06:32:43]FM_GetShiftState done [06:32:43]req_shift_opened done [06:32:43]requested_item shift.open_date is exist - process it [06:32:43]req_shift_open_date [06:32:43]req_shift_open_date done [06:32:43]produce_requested_data done [06:32:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201742,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:32:43]process_action_free close_receipt [06:32:43]json_value_free [06:32:43]json_value_free done [06:32:43]process_json_proto returns [06:32:43]Send response to host [06:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201742,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:32:43]free response buf [06:32:43]execute_script done [06:32:43]execute_script returns [06:32:43]free content buf [06:32:43]Sock 9.Close socket [06:32:43]Sock 9.Thread stoped [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:14]accept exits with 8 [06:35:14]New connection [06:35:14]New thread 3067080036 created [06:35:14]Thread 3066936676 joined [06:35:14]Waiting for new connection... [06:35:14] Sock 8.Parse request [06:35:14]Sock 8.Check first char [06:35:14]Sock 8.First char is OK [06:35:14]request: POST /json_proto HTTP/1.0 [06:35:14]Method: POST [06:35:14]URL: /json_proto [06:35:14]Method is POST - this is cgi request [06:35:14]url: /json_proto [06:35:14]query_string will be loaded in cgi processing [06:35:14]execute_cgi json_proto POST (null) [06:35:14]execute_cgi path=json_proto method=POST [06:35:14]POST find Content-Length [06:35:14]Host: 172.17.63.195:8080 [06:35:14]Content-Length: 769 [06:35:14]Content-Type: application/json [06:35:14] [06:35:14]POST finish read [06:35:14]Found Content-Length = 769 [06:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:14]execute_script... [06:35: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)449499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:14]POST & json_proto [06:35:14]process_json_proto [06:35:14]json parsed OK: [06:35:14]protocol is kg_v1.0 [06:35:14]action value=close_receipt [06:35:14]process_action close_receipt [06:35:14]cmd_close_receipt [06:35:14]MH_GetDate [06:35:14]Write to MH i2c: F0 00 00 91 10 90 [06:35:14]Write i2c OK [06:35:14]MH_I2C_Read... [06:35:14]Read from MH i2c: F0 [06:35:14]MH_I2C_Read... [06:35:14]Read from MH i2c: F0 09 00 [06:35:14]MH_I2C_Read... [06:35:14]Read from MH i2c: F0 09 00 91 10 00 25 DF 1D 67 68 46 19 67 4F [06:35:14]GetLastDocTimeStamp 1730010762 [06:35:14]current date 1730010917 [06:35:14]FM_GetShiftState [06:35:14]SAM_PROTO_GetShiftState [06:35:14]wFMCommunicate request_size=4 [06:35:14]MH_SAM_APDU [06:35:14]CAPDU: 80 13 01 00 [06:35:14]Write to MH i2c: E2 08 00 92 10 80 13 01 00 00 00 00 00 1F [06:35:14]Write i2c OK [06:35:14]MH_I2C_Read... [06:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:14]Read from MH i2c: E2 [06:35:14]MH_I2C_Read... [06:35:14]Read from MH i2c: E2 0E 00 [06:35:14]MH_I2C_Read... [06:35:14]Read from MH i2c: E2 0E 00 92 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [06:35:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:35:14]wFMCommunicate OK [06:35:14]SAM_PROTO_GetShiftState done [06:35:14]FM_GetShiftState done [06:35:14]opened in 1729987312 [06:35:14]opened+sec_in_day 1730073712 [06:35:14]quantity*price = 100015 [06:35:14]sum+1 = 100017 [06:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 35 27.10.2024 06:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201743 ФПД: 270454168420125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063517&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201743&fm=270454168420125&tin=02508201610067®Number=0000000000091777&sum=100016 [06:35:15]StoreToDocumentArchive [06:35:15]shift 544 fd 201743 [06:35:15]save to /storage/0544/doc_00201743 [06:35:15]save last doc name /storage/0544/doc_00201743 to /storage/kkm_last_doc_name [06:35:15]save OK [06:35:15]Clear old archive folders... [06:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:35:15]tlvbuf is 00069B30 [06:35:15]SAM_PROTO_ClearQueue [06:35:15]wFMCommunicate request_size=4 [06:35:15]MH_SAM_APDU [06:35:15]CAPDU: 80 09 00 00 [06:35:15]Write to MH i2c: E2 08 00 9F 10 80 09 00 00 00 00 00 00 21 [06:35:15]Write i2c OK [06:35:15]MH_I2C_Read... [06:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:15]Read from MH i2c: E2 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 03 00 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 03 00 9F 10 00 90 00 23 [06:35:15]RAPDU: 90 00 [06:35:15]wFMCommunicate OK [06:35:15]SAM_PROTO_ClearQueue done [06:35:15]KKMCreateOFDPacket [06:35:15]OFDProtocolAddRootSTLVToBuf [06:35:15]FM_MakeSignedData [06:35:15]FM_MakeSignedData [06:35:15]SAM_PROTO_SignData [06:35:15]wFMCommunicate request_size=4 [06:35:15]MH_SAM_APDU [06:35:15]CAPDU: 80 0D 01 02 [06:35:15]Write to MH i2c: E2 08 00 A0 10 80 0D 01 02 00 00 00 00 29 [06:35:15]Write i2c OK [06:35:15]MH_I2C_Read... [06:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:15]Read from MH i2c: E2 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 03 00 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 03 00 A0 10 00 90 00 24 [06:35:15]RAPDU: 90 00 [06:35:15]wFMCommunicate OK [06:35:15]wFMCommunicate request_size=255 [06:35:15]MH_SAM_APDU [06:35: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 32 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 23 00 00 00 F4 03 04 00 25 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 14 03 00 35 04 06 00 F5 [06:35:15]Write to MH i2c: E2 02 01 A1 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 00 00 00 F4 03 04 00 25 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 14 03 00 35 04 06 00 F5 00 00 BF [06:35:15]Write i2c OK [06:35:15]MH_I2C_Read... [06:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:15]Read from MH i2c: E2 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 03 00 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 03 00 A1 10 00 90 00 25 [06:35:15]RAPDU: 90 00 [06:35:15]wFMCommunicate OK [06:35:15]wFMCommunicate request_size=10 [06:35:15]MH_SAM_APDU [06:35:15]CAPDU: 80 0D 02 02 05 FA 04 A2 FF 1D [06:35:15]Write to MH i2c: E2 0D 00 A2 10 80 0D 02 02 05 00 FA 04 A2 FF 1D 00 00 F2 [06:35:15]Write i2c OK [06:35:15]MH_I2C_Read... [06:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:15]Read from MH i2c: E2 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 03 00 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [06:35:15]RAPDU: 90 00 [06:35:15]wFMCommunicate OK [06:35:15]wFMCommunicate request_size=4 [06:35:15]MH_SAM_APDU [06:35:15]CAPDU: 80 0D 03 02 [06:35:15]Write to MH i2c: E2 08 00 A3 10 80 0D 03 02 00 00 00 00 2E [06:35:15]Write i2c OK [06:35:15]MH_I2C_Read... [06:35:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:15]Read from MH i2c: E2 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 0B 00 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 0B 00 A3 10 00 60 68 4B 21 EE 63 C7 2D 90 00 A8 [06:35:15]RAPDU: 60 68 4B 21 EE 63 C7 2D 90 00 [06:35:15]wFMCommunicate OK [06:35:15]SAM_PROTO_SignData done [06:35:15]FM_MakeSignedData done [06:35:15]CreateOFDProtocolMessage [06:35:15]wFMCommunicate request_size=4 [06:35:15]MH_SAM_APDU [06:35:15]CAPDU: 80 11 00 00 [06:35:15]Write to MH i2c: E2 08 00 A4 10 80 11 00 00 00 00 00 00 2E [06:35:15]Write i2c OK [06:35:15]MH_I2C_Read... [06:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:15]Read from MH i2c: E2 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 17 00 [06:35:15]MH_I2C_Read... [06:35:15]Read from MH i2c: E2 17 00 A4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 83 [06:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:35:15]wFMCommunicate OK [06:35:15]CreateOFDProtocolMessage done [06:35:15]OFDSenderStorePacket 201743 [06:35:15]StoreOFDPacket docnum=201743 [06:35:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 80 CD 07 01 9A BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 00 00 00 F4 03 04 00 25 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 14 03 00 35 04 06 00 F5 FA 04 A2 FF 1D 60 68 4B 21 EE 63 C7 2D [06:35:15]CheckFolder [06:35:15]dirname=/storage/ofd_packets [06:35:15]CheckFolder done [06:35:15]ProducePacketName [06:35:15]name=ofd_packets/00201743 [06:35:16]NVStorageSaveData ofd_packets/00201743 [06:35:16]File name is /storage/ofd_packets/00201743 [06:35:16]Write 301 bytes [06:35:16]NVStorageSaveData done [06:35:16]OFDSenderStorePacket done [06:35:16]KKMCreateOFDPacket done [06:35:16]NVStorageSaveData kkm_last_timestamp [06:35:16]File name is /storage/kkm_last_timestamp [06:35:16]Write 4 bytes [06:35:16]NVStorageSaveData done [06:35:16]ExternCall_PrintAddStr [06:35:16]wPrintStart [06:35:16]Write to MH i2c: 01 00 00 A5 10 B5 [06:35:16]Write i2c OK [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: 01 [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: 01 07 00 [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: 01 07 00 A5 10 00 00 00 00 00 FF 0F CA [06:35:16]RasterBufferAndPrint [06:35:16]line Счет N : (1)449499 [06:35:16]line ИНН: 02508201610067 [06:35:16]line Контрольно-Кассовый Чек [06:35:16]line ПРОДАЖА [06:35:16]line ТРК (МРК, ГНК) : 62 [06:35:16]line Товар: 2710124130 [06:35:16]line Аи-92-К-2 [06:35:16]line 14.950 * 66.90 [06:35:16]line = 1000.16 [06:35:16]line НДС 12% НСП 1% [06:35:16]line > о реализуемом товаре [06:35:16]line ИТОГО: 1000.16 [06:35:16]line НСП 1% : 8.85 [06:35:16]line НДС 12% : 106.21 [06:35:16]line Наличными: 0.00 [06:35:16]line Безнал.: 1000.16 [06:35:16]line Место: АЗС № 171 "Партнер Нефть" [06:35:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:35:16]line СНО: Общий режим [06:35:16]line Чек 35 27.10.2024 06:35 [06:35:16]line Смена: 544 ФФД: 1.0 [06:35:16]line ЗНМ: 0300000109 [06:35:16]line РНМ: 0000000000091777 [06:35:16]line Версия ККМ: 001 [06:35:16]line Платежная система: Mbank [06:35:16]line ФМ: 0000000000871756 [06:35:16]line ФД: 201743 [06:35:16]line ФПД: 270454168420125 [06:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063517&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201743&fm=270454168420125&tin=02508201610067®Number=0000000000091777&sum=100016 [06:35:16]written 0, free lines is 4095 [06:35:16]OFD Sender: Processing packet 201743 [packets to send 112, broken 111] [06:35:16]ProducePacketName [06:35:16]name=ofd_packets/00201743 [06:35:16]OFD Sender: To server: pG, [06:35:16]CommunicateWithHost lk.salyk.kg:30040 [06:35:16]ConnectInit lk.salyk.kg [06:35:16]Connected sock=10 [06:35:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 80 CD 07 01 9A BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 00 00 00 F4 03 04 00 25 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 14 03 00 35 04 06 00 F5 FA 04 A2 FF 1D 60 68 4B 21 EE 63 C7 2D [06:35:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3D F7 47 00 3A 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 14 03 00 F4 03 04 00 CB 8A 1D 67 B6 04 01 00 00 02 C7 88 60 A4 39 2E F8 [06:35:16]CommunicateWithHost err = 0 [06:35:16]CheckOFDResponse [06:35:16]1017 (14) - 77093643461234 [06:35:16]1041 (16) - 0000000000871756 [06:35:16]1040 (4) - 201743 [06:35:16]1012 (4) - 27.10.2024 00:35 [06:35:16]1206 (1) - 0 [06:35:16]OFD Sender: Remove packet 201743 [06:35:16]ProducePacketName [06:35:16]name=ofd_packets/00201743 [06:35:16]NVStorageDeleteData [06:35:16]Write to MH i2c: 01 00 00 CE 10 DE [06:35:16]Write i2c OK [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: 01 [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: 01 07 00 [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: 01 07 00 CE 10 00 00 00 00 00 C1 0C B2 [06:35:16]RasterBufferAndPrint [06:35:16]line [06:35:16]line [06:35:16]line [06:35:16]line [06:35:16]line [06:35:16]written 0, free lines is 3271 [06:35:16]MH_Cut [06:35:16]Write to MH i2c: D1 01 00 D5 10 01 B7 [06:35:16]Write i2c OK [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: D1 [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: D1 01 00 [06:35:16]MH_I2C_Read... [06:35:16]Read from MH i2c: D1 01 00 D5 10 00 B6 [06:35:16]Write to MH i2c: 01 00 00 D6 10 E6 [06:35:16]Write i2c OK [06:35:16]MH_I2C_Read... [06:35:17]OFD Sender: No OFD packet to send [06:35:17]*** Cut start [06:35:17]*** Purtial cut [06:35:17]*** Stage 1: CUTSNS_PIN = 1 [06:35:17]Read from MH i2c: 01 [06:35:17]MH_I2C_Read... [06:35:17]*** Stop cut motor [06:35:17]*** Cut end [06:35:17]Read from MH i2c: 01 07 00 [06:35:17]MH_I2C_Read... [06:35:17]Read from MH i2c: 01 07 00 D6 10 00 00 00 00 00 FF 0F FB [06:35:17]process_action close_receipt done [06:35:17]requested_data is exist [06:35:17]produce_requested_data [06:35:17]requested_item fm.sn is exist - process it [06:35:17]wFMCommunicate request_size=4 [06:35:17]MH_SAM_APDU [06:35:17]CAPDU: 80 11 00 00 [06:35:17]Write to MH i2c: E2 08 00 D7 10 80 11 00 00 00 00 00 00 61 [06:35:17]Write i2c OK [06:35:17]MH_I2C_Read... [06:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:17]Read from MH i2c: E2 [06:35:17]MH_I2C_Read... [06:35:17]Read from MH i2c: E2 17 00 [06:35:17]MH_I2C_Read... [06:35:17]Read from MH i2c: E2 17 00 D7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B6 [06:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:35:17]wFMCommunicate OK [06:35:17]requested_item fd.num is exist - process it [06:35:17]SAM_PROTO_GetFieldsCounters [06:35:17]wFMCommunicate request_size=4 [06:35:17]MH_SAM_APDU [06:35:17]CAPDU: 80 13 00 00 [06:35:17]Write to MH i2c: E2 08 00 D8 10 80 13 00 00 00 00 00 00 64 [06:35:17]Write i2c OK [06:35:17]MH_I2C_Read... [06:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:18]Read from MH i2c: E2 [06:35:18]MH_I2C_Read... [06:35:18]Read from MH i2c: E2 62 00 [06:35:18]MH_I2C_Read... [06:35:18]Read from MH i2c: E2 62 00 D8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0F 14 03 00 0E 04 04 00 20 02 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 3E [06:35:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0F 14 03 00 0E 04 04 00 20 02 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 [06:35:18]wFMCommunicate OK [06:35:18]SAM_PROTO_GetFieldsCounters done [06:35:18]requested_item shift.num is exist - process it [06:35:18]requested_item shift.opened is exist - process it [06:35:18]req_shift_opened [06:35:18]FM_GetShiftState [06:35:18]SAM_PROTO_GetShiftState [06:35:18]wFMCommunicate request_size=4 [06:35:18]MH_SAM_APDU [06:35:18]CAPDU: 80 13 01 00 [06:35:18]Write to MH i2c: E2 08 00 D9 10 80 13 01 00 00 00 00 00 66 [06:35:18]Write i2c OK [06:35:18]MH_I2C_Read... [06:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:18]Read from MH i2c: E2 [06:35:18]MH_I2C_Read... [06:35:18]Read from MH i2c: E2 0E 00 [06:35:18]MH_I2C_Read... [06:35:18]Read from MH i2c: E2 0E 00 D9 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 68 [06:35:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:35:18]wFMCommunicate OK [06:35:18]SAM_PROTO_GetShiftState done [06:35:18]FM_GetShiftState done [06:35:18]req_shift_opened done [06:35:18]requested_item shift.open_date is exist - process it [06:35:18]req_shift_open_date [06:35:18]req_shift_open_date done [06:35:18]produce_requested_data done [06:35:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201743,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:35:18]process_action_free close_receipt [06:35:18]json_value_free [06:35:18]json_value_free done [06:35:18]process_json_proto returns [06:35:18]Send response to host [06:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201743,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:35:18]free response buf [06:35:18]execute_script done [06:35:18]execute_script returns [06:35:18]free content buf [06:35:18]Sock 8.Close socket [06:35:18]Sock 8.Thread stoped [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:21]accept exits with 9 [06:36:21]New connection [06:36:21]New thread 3066936676 created [06:36:21]Thread 3067080036 joined [06:36:21]Waiting for new connection... [06:36:21] Sock 9.Parse request [06:36:21]Sock 9.Check first char [06:36:21]Sock 9.First char is OK [06:36:21]request: POST /json_proto HTTP/1.0 [06:36:21]Method: POST [06:36:21]URL: /json_proto [06:36:21]Method is POST - this is cgi request [06:36:21]url: /json_proto [06:36:21]query_string will be loaded in cgi processing [06:36:21]execute_cgi json_proto POST (null) [06:36:21]execute_cgi path=json_proto method=POST [06:36:21]POST find Content-Length [06:36:21]Host: 172.17.63.195:8080 [06:36:21]Content-Length: 679 [06:36:21]Content-Type: application/json [06:36:21] [06:36:21]POST finish read [06:36:21]Found Content-Length = 679 [06:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [06:36:21]execute_script... [06:36: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)449500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [06:36:21]POST & json_proto [06:36:21]process_json_proto [06:36:21]json parsed OK: [06:36:21]protocol is kg_v1.0 [06:36:21]action value=close_receipt [06:36:21]process_action close_receipt [06:36:21]cmd_close_receipt [06:36:21]MH_GetDate [06:36:21]Write to MH i2c: F0 00 00 DA 10 D9 [06:36:21]Write i2c OK [06:36:21]MH_I2C_Read... [06:36:21]Read from MH i2c: F0 [06:36:21]MH_I2C_Read... [06:36:21]Read from MH i2c: F0 09 00 [06:36:21]MH_I2C_Read... [06:36:21]Read from MH i2c: F0 09 00 DA 10 00 68 DF 1D 67 68 46 19 67 DB [06:36:21]GetLastDocTimeStamp 1730010917 [06:36:21]current date 1730010984 [06:36:21]FM_GetShiftState [06:36:21]SAM_PROTO_GetShiftState [06:36:21]wFMCommunicate request_size=4 [06:36:21]MH_SAM_APDU [06:36:21]CAPDU: 80 13 01 00 [06:36:21]Write to MH i2c: E2 08 00 DB 10 80 13 01 00 00 00 00 00 68 [06:36:21]Write i2c OK [06:36:21]MH_I2C_Read... [06:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:21]Read from MH i2c: E2 [06:36:21]MH_I2C_Read... [06:36:21]Read from MH i2c: E2 0E 00 [06:36:21]MH_I2C_Read... [06:36:21]Read from MH i2c: E2 0E 00 DB 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6A [06:36:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:36:21]wFMCommunicate OK [06:36:21]SAM_PROTO_GetShiftState done [06:36:21]FM_GetShiftState done [06:36:21]opened in 1729987312 [06:36:21]opened+sec_in_day 1730073712 [06:36:21]quantity*price = 100050 [06:36:21]sum+1 = 100052 [06:36: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 36 27.10.2024 06:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201744 ФПД: 34672663561276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063624&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201744&fm=34672663561276&tin=02508201610067®Number=0000000000091777&sum=100000 [06:36:22]StoreToDocumentArchive [06:36:22]shift 544 fd 201744 [06:36:22]save to /storage/0544/doc_00201744 [06:36:22]save last doc name /storage/0544/doc_00201744 to /storage/kkm_last_doc_name [06:36:22]save OK [06:36:22]Clear old archive folders... [06:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:36:22]tlvbuf is 00137560 [06:36:22]SAM_PROTO_ClearQueue [06:36:22]wFMCommunicate request_size=4 [06:36:22]MH_SAM_APDU [06:36:22]CAPDU: 80 09 00 00 [06:36:22]Write to MH i2c: E2 08 00 E8 10 80 09 00 00 00 00 00 00 6A [06:36:22]Write i2c OK [06:36:22]MH_I2C_Read... [06:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:22]Read from MH i2c: E2 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 03 00 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [06:36:22]RAPDU: 90 00 [06:36:22]wFMCommunicate OK [06:36:22]SAM_PROTO_ClearQueue done [06:36:22]KKMCreateOFDPacket [06:36:22]OFDProtocolAddRootSTLVToBuf [06:36:22]FM_MakeSignedData [06:36:22]FM_MakeSignedData [06:36:22]SAM_PROTO_SignData [06:36:22]wFMCommunicate request_size=4 [06:36:22]MH_SAM_APDU [06:36:22]CAPDU: 80 0D 01 02 [06:36:22]Write to MH i2c: E2 08 00 E9 10 80 0D 01 02 00 00 00 00 72 [06:36:22]Write i2c OK [06:36:22]MH_I2C_Read... [06:36:22]OFD Sender: No OFD packet to send [06:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:22]Read from MH i2c: E2 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 03 00 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 03 00 E9 10 00 90 00 6D [06:36:22]RAPDU: 90 00 [06:36:22]wFMCommunicate OK [06:36:22]wFMCommunicate request_size=255 [06:36:22]MH_SAM_APDU [06:36: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 32 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 24 00 00 00 F4 03 04 00 68 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 14 03 00 35 04 06 00 1F 88 DB CB [06:36:22]Write to MH i2c: E2 02 01 EA 10 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 32 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 24 00 00 00 F4 03 04 00 68 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 14 03 00 35 04 06 00 1F 88 DB CB 00 00 81 [06:36:22]Write i2c OK [06:36:22]MH_I2C_Read... [06:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:22]Read from MH i2c: E2 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 03 00 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 03 00 EA 10 00 90 00 6E [06:36:22]RAPDU: 90 00 [06:36:22]wFMCommunicate OK [06:36:22]wFMCommunicate request_size=7 [06:36:22]MH_SAM_APDU [06:36:22]CAPDU: 80 0D 02 02 02 84 3C [06:36:22]Write to MH i2c: E2 0A 00 EB 10 80 0D 02 02 02 00 84 3C 00 00 39 [06:36:22]Write i2c OK [06:36:22]MH_I2C_Read... [06:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:22]Read from MH i2c: E2 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 03 00 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 03 00 EB 10 00 90 00 6F [06:36:22]RAPDU: 90 00 [06:36:22]wFMCommunicate OK [06:36:22]wFMCommunicate request_size=4 [06:36:22]MH_SAM_APDU [06:36:22]CAPDU: 80 0D 03 02 [06:36:22]Write to MH i2c: E2 08 00 EC 10 80 0D 03 02 00 00 00 00 77 [06:36:22]Write i2c OK [06:36:22]MH_I2C_Read... [06:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:22]Read from MH i2c: E2 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 0B 00 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 0B 00 EC 10 00 4D 09 12 B7 E9 B5 3A A1 90 00 10 [06:36:22]RAPDU: 4D 09 12 B7 E9 B5 3A A1 90 00 [06:36:22]wFMCommunicate OK [06:36:22]SAM_PROTO_SignData done [06:36:22]FM_MakeSignedData done [06:36:22]CreateOFDProtocolMessage [06:36:22]wFMCommunicate request_size=4 [06:36:22]MH_SAM_APDU [06:36:22]CAPDU: 80 11 00 00 [06:36:22]Write to MH i2c: E2 08 00 ED 10 80 11 00 00 00 00 00 00 77 [06:36:22]Write i2c OK [06:36:22]MH_I2C_Read... [06:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:22]Read from MH i2c: E2 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 17 00 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: E2 17 00 ED 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [06:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:36:22]wFMCommunicate OK [06:36:22]CreateOFDProtocolMessage done [06:36:22]OFDSenderStorePacket 201744 [06:36:22]StoreOFDPacket docnum=201744 [06:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FA 6C 04 01 D5 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 24 00 00 00 F4 03 04 00 68 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 14 03 00 35 04 06 00 1F 88 DB CB 84 3C 4D 09 12 B7 E9 B5 3A A1 [06:36:22]CheckFolder [06:36:22]dirname=/storage/ofd_packets [06:36:22]CheckFolder done [06:36:22]ProducePacketName [06:36:22]name=ofd_packets/00201744 [06:36:22]NVStorageSaveData ofd_packets/00201744 [06:36:22]File name is /storage/ofd_packets/00201744 [06:36:22]Write 298 bytes [06:36:22]NVStorageSaveData done [06:36:22]OFDSenderStorePacket done [06:36:22]KKMCreateOFDPacket done [06:36:22]NVStorageSaveData kkm_last_timestamp [06:36:22]File name is /storage/kkm_last_timestamp [06:36:22]Write 4 bytes [06:36:22]NVStorageSaveData done [06:36:22]ExternCall_PrintAddStr [06:36:22]wPrintStart [06:36:22]Write to MH i2c: 01 00 00 EE 10 FE [06:36:22]Write i2c OK [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: 01 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: 01 07 00 [06:36:22]MH_I2C_Read... [06:36:22]Read from MH i2c: 01 07 00 EE 10 00 00 00 00 00 FF 0F 13 [06:36:22]RasterBufferAndPrint [06:36:22]line Счет N : (1)449500 [06:36:22]line ИНН: 02508201610067 [06:36:22]line Контрольно-Кассовый Чек [06:36:22]line ПРОДАЖА [06:36:22]line ТРК (МРК, ГНК) : 33 [06:36:22]line Товар: 2710194210 [06:36:22]line ДТ-К-2 [06:36:22]line 13.130 * 76.20 [06:36:22]line = 1000.51 [06:36:22]line НДС 12% НСП 1% [06:36:22]line > о реализуемом товаре [06:36:22]line ОКРУГЛЕНИЕ: -0.51 [06:36:22]line ИТОГО: 1000.00 [06:36:22]line Внесено: 1000.00 [06:36:22]line СДАЧА: 0.00 [06:36:22]line НСП 1% : 8.85 [06:36:22]line НДС 12% : 106.25 [06:36:22]line Наличными: 1000.00 [06:36:22]line Безнал.: 0.00 [06:36:22]line Место: АЗС № 171 "Партнер Нефть" [06:36:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:36:22]line СНО: Общий режим [06:36:22]line Чек 36 27.10.2024 06:36 [06:36:22]line Смена: 544 ФФД: 1.0 [06:36:22]line ЗНМ: 0300000109 [06:36:22]line РНМ: 0000000000091777 [06:36:22]line Версия ККМ: 001 [06:36:22]line ФМ: 0000000000871756 [06:36:23]line ФД: 201744 [06:36:23]line ФПД: 34672663561276 [06:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063624&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201744&fm=34672663561276&tin=02508201610067®Number=0000000000091777&sum=100000 [06:36:23]OFD Sender: Processing packet 201744 [packets to send 112, broken 111] [06:36:23]ProducePacketName [06:36:23]name=ofd_packets/00201744 [06:36:23]OFD Sender: To server: pG, [06:36:23]CommunicateWithHost lk.salyk.kg:30040 [06:36:23]ConnectInit lk.salyk.kg [06:36:23]written 0, free lines is 4095 [06:36:23]Connected sock=10 [06:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FA 6C 04 01 D5 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 24 00 00 00 F4 03 04 00 68 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 14 03 00 35 04 06 00 1F 88 DB CB 84 3C 4D 09 12 B7 E9 B5 3A A1 [06:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 88 7B 47 00 FF 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 30 38 37 31 37 35 36 10 04 04 00 10 14 03 00 F4 03 04 00 0E 8B 1D 67 B6 04 01 00 00 10 BB 20 3B 57 6D 2D E6 [06:36:23]CommunicateWithHost err = 0 [06:36:23]CheckOFDResponse [06:36:23]1017 (14) - 77093643461234 [06:36:23]1041 (16) - 0000000000871756 [06:36:23]1040 (4) - 201744 [06:36:23]1012 (4) - 27.10.2024 00:36 [06:36:23]1206 (1) - 0 [06:36:23]OFD Sender: Remove packet 201744 [06:36:23]ProducePacketName [06:36:23]name=ofd_packets/00201744 [06:36:23]NVStorageDeleteData [06:36:23]Write to MH i2c: 01 00 00 19 11 2A [06:36:23]Write i2c OK [06:36:23]MH_I2C_Read... [06:36:23]Read from MH i2c: 01 [06:36:23]MH_I2C_Read... [06:36:23]Read from MH i2c: 01 07 00 [06:36:23]MH_I2C_Read... [06:36:23]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 95 0C D2 [06:36:23]RasterBufferAndPrint [06:36:23]line [06:36:23]line [06:36:23]line [06:36:23]line [06:36:23]line [06:36:23]written 0, free lines is 3226 [06:36:23]MH_Cut [06:36:23]Write to MH i2c: D1 01 00 20 11 01 03 [06:36:23]Write i2c OK [06:36:23]MH_I2C_Read... [06:36:23]Read from MH i2c: D1 [06:36:23]MH_I2C_Read... [06:36:23]Read from MH i2c: D1 01 00 [06:36:23]MH_I2C_Read... [06:36:23]Read from MH i2c: D1 01 00 20 11 00 02 [06:36:23]Write to MH i2c: 01 00 00 21 11 32 [06:36:23]Write i2c OK [06:36:23]MH_I2C_Read... [06:36:23]OFD Sender: No OFD packet to send [06:36:24]*** Cut start [06:36:24]*** Purtial cut [06:36:24]*** Stage 1: CUTSNS_PIN = 1 [06:36:24]Read from MH i2c: 01 [06:36:24]MH_I2C_Read... [06:36:24]*** Stop cut motor [06:36:24]*** Cut end [06:36:24]Read from MH i2c: 01 07 00 [06:36:24]MH_I2C_Read... [06:36:24]Read from MH i2c: 01 07 00 21 11 00 00 00 00 00 FF 0F 47 [06:36:24]process_action close_receipt done [06:36:24]requested_data is exist [06:36:24]produce_requested_data [06:36:24]requested_item fm.sn is exist - process it [06:36:24]wFMCommunicate request_size=4 [06:36:24]MH_SAM_APDU [06:36:24]CAPDU: 80 11 00 00 [06:36:24]Write to MH i2c: E2 08 00 22 11 80 11 00 00 00 00 00 00 AD [06:36:24]Write i2c OK [06:36:24]MH_I2C_Read... [06:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:24]Read from MH i2c: E2 [06:36:24]MH_I2C_Read... [06:36:24]Read from MH i2c: E2 17 00 [06:36:24]MH_I2C_Read... [06:36:24]Read from MH i2c: E2 17 00 22 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 02 [06:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:36:24]wFMCommunicate OK [06:36:24]requested_item fd.num is exist - process it [06:36:24]SAM_PROTO_GetFieldsCounters [06:36:24]wFMCommunicate request_size=4 [06:36:24]MH_SAM_APDU [06:36:24]CAPDU: 80 13 00 00 [06:36:24]Write to MH i2c: E2 08 00 23 11 80 13 00 00 00 00 00 00 B0 [06:36:24]Write i2c OK [06:36:24]MH_I2C_Read... [06:36:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:24]Read from MH i2c: E2 [06:36:24]MH_I2C_Read... [06:36:24]Read from MH i2c: E2 62 00 [06:36:24]MH_I2C_Read... [06:36:24]Read from MH i2c: E2 62 00 23 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 10 14 03 00 0E 04 04 00 20 02 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 8E [06:36:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 10 14 03 00 0E 04 04 00 20 02 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 [06:36:24]wFMCommunicate OK [06:36:24]SAM_PROTO_GetFieldsCounters done [06:36:24]requested_item shift.num is exist - process it [06:36:24]requested_item shift.opened is exist - process it [06:36:24]req_shift_opened [06:36:24]FM_GetShiftState [06:36:24]SAM_PROTO_GetShiftState [06:36:24]wFMCommunicate request_size=4 [06:36:24]MH_SAM_APDU [06:36:24]CAPDU: 80 13 01 00 [06:36:24]Write to MH i2c: E2 08 00 24 11 80 13 01 00 00 00 00 00 B2 [06:36:24]Write i2c OK [06:36:24]MH_I2C_Read... [06:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:24]Read from MH i2c: E2 [06:36:24]MH_I2C_Read... [06:36:24]Read from MH i2c: E2 0E 00 [06:36:24]MH_I2C_Read... [06:36:24]Read from MH i2c: E2 0E 00 24 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B4 [06:36:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:36:24]wFMCommunicate OK [06:36:24]SAM_PROTO_GetShiftState done [06:36:24]FM_GetShiftState done [06:36:24]req_shift_opened done [06:36:24]requested_item shift.open_date is exist - process it [06:36:24]req_shift_open_date [06:36:24]req_shift_open_date done [06:36:24]produce_requested_data done [06:36:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201744,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:36:24]process_action_free close_receipt [06:36:24]json_value_free [06:36:24]json_value_free done [06:36:24]process_json_proto returns [06:36:24]Send response to host [06:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201744,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:36:24]free response buf [06:36:24]execute_script done [06:36:24]execute_script returns [06:36:24]free content buf [06:36:24]Sock 9.Close socket [06:36:24]Sock 9.Thread stoped [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]accept exits with 8 [06:36:43]New connection [06:36:43]New thread 3067080036 created [06:36:43]Thread 3066936676 joined [06:36:43]Waiting for new connection... [06:36:43] Sock 8.Parse request [06:36:43]Sock 8.Check first char [06:36:43]Sock 8.First char is OK [06:36:43]request: POST /json_proto HTTP/1.0 [06:36:43]Method: POST [06:36:43]URL: /json_proto [06:36:43]Method is POST - this is cgi request [06:36:43]url: /json_proto [06:36:43]query_string will be loaded in cgi processing [06:36:43]execute_cgi json_proto POST (null) [06:36:43]execute_cgi path=json_proto method=POST [06:36:43]POST find Content-Length [06:36:43]Host: 172.17.63.195:8080 [06:36:43]Content-Length: 677 [06:36:43]Content-Type: application/json [06:36:43] [06:36:43]POST finish read [06:36:43]Found Content-Length = 677 [06:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:36:43]execute_script... [06:36:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:36:43]POST & json_proto [06:36:43]process_json_proto [06:36:43]json parsed OK: [06:36:43]protocol is kg_v1.0 [06:36:43]action value=close_receipt [06:36:43]process_action close_receipt [06:36:43]cmd_close_receipt [06:36:43]MH_GetDate [06:36:43]Write to MH i2c: F0 00 00 25 11 25 [06:36:43]Write i2c OK [06:36:43]MH_I2C_Read... [06:36:43]Read from MH i2c: F0 [06:36:43]MH_I2C_Read... [06:36:43]Read from MH i2c: F0 09 00 [06:36:43]MH_I2C_Read... [06:36:43]Read from MH i2c: F0 09 00 25 11 00 7E DF 1D 67 68 46 19 67 3D [06:36:43]GetLastDocTimeStamp 1730010984 [06:36:43]current date 1730011006 [06:36:43]FM_GetShiftState [06:36:43]SAM_PROTO_GetShiftState [06:36:43]wFMCommunicate request_size=4 [06:36:43]MH_SAM_APDU [06:36:43]CAPDU: 80 13 01 00 [06:36:43]Write to MH i2c: E2 08 00 26 11 80 13 01 00 00 00 00 00 B4 [06:36:43]Write i2c OK [06:36:43]MH_I2C_Read... [06:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:43]Read from MH i2c: E2 [06:36:43]MH_I2C_Read... [06:36:43]Read from MH i2c: E2 0E 00 [06:36:43]MH_I2C_Read... [06:36:43]Read from MH i2c: E2 0E 00 26 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B6 [06:36:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:36:43]wFMCommunicate OK [06:36:43]SAM_PROTO_GetShiftState done [06:36:43]FM_GetShiftState done [06:36:43]opened in 1729987312 [06:36:43]opened+sec_in_day 1730073712 [06:36:43]quantity*price = 30038 [06:36:43]sum+1 = 30039 [06:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 37 27.10.2024 06:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201745 ФПД: 51370653824287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063646&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201745&fm=51370653824287&tin=02508201610067®Number=0000000000091777&sum=30000 [06:36:44]StoreToDocumentArchive [06:36:44]shift 544 fd 201745 [06:36:44]save to /storage/0544/doc_00201745 [06:36:44]save last doc name /storage/0544/doc_00201745 to /storage/kkm_last_doc_name [06:36:44]save OK [06:36:44]Clear old archive folders... [06:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:36:44]tlvbuf is 000E7090 [06:36:44]SAM_PROTO_ClearQueue [06:36:44]wFMCommunicate request_size=4 [06:36:44]MH_SAM_APDU [06:36:44]CAPDU: 80 09 00 00 [06:36:44]Write to MH i2c: E2 08 00 33 11 80 09 00 00 00 00 00 00 B6 [06:36:44]Write i2c OK [06:36:44]MH_I2C_Read... [06:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:44]Read from MH i2c: E2 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 03 00 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 03 00 33 11 00 90 00 B8 [06:36:44]RAPDU: 90 00 [06:36:44]wFMCommunicate OK [06:36:44]SAM_PROTO_ClearQueue done [06:36:44]KKMCreateOFDPacket [06:36:44]OFDProtocolAddRootSTLVToBuf [06:36:44]FM_MakeSignedData [06:36:44]FM_MakeSignedData [06:36:44]SAM_PROTO_SignData [06:36:44]wFMCommunicate request_size=4 [06:36:44]MH_SAM_APDU [06:36:44]CAPDU: 80 0D 01 02 [06:36:44]Write to MH i2c: E2 08 00 34 11 80 0D 01 02 00 00 00 00 BE [06:36:44]Write i2c OK [06:36:44]MH_I2C_Read... [06:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:44]Read from MH i2c: E2 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 03 00 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 03 00 34 11 00 90 00 B9 [06:36:44]RAPDU: 90 00 [06:36:44]wFMCommunicate OK [06:36:44]wFMCommunicate request_size=255 [06:36:44]MH_SAM_APDU [06:36:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 25 00 00 00 F4 03 04 00 7E DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 14 03 00 35 04 06 00 2E [06:36:44]Write to MH i2c: E2 02 01 35 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 25 00 00 00 F4 03 04 00 7E DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 14 03 00 35 04 06 00 2E 00 00 C4 [06:36:44]Write i2c OK [06:36:44]MH_I2C_Read... [06:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:44]Read from MH i2c: E2 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 03 00 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 03 00 35 11 00 90 00 BA [06:36:44]RAPDU: 90 00 [06:36:44]wFMCommunicate OK [06:36:44]wFMCommunicate request_size=10 [06:36:44]MH_SAM_APDU [06:36:44]CAPDU: 80 0D 02 02 05 B8 A9 92 B5 1F [06:36:44]Write to MH i2c: E2 0D 00 36 11 80 0D 02 02 05 00 B8 A9 92 B5 1F 00 00 92 [06:36:44]Write i2c OK [06:36:44]MH_I2C_Read... [06:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:44]Read from MH i2c: E2 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 03 00 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 03 00 36 11 00 90 00 BB [06:36:44]RAPDU: 90 00 [06:36:44]wFMCommunicate OK [06:36:44]wFMCommunicate request_size=4 [06:36:44]MH_SAM_APDU [06:36:44]CAPDU: 80 0D 03 02 [06:36:44]Write to MH i2c: E2 08 00 37 11 80 0D 03 02 00 00 00 00 C3 [06:36:44]Write i2c OK [06:36:44]MH_I2C_Read... [06:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:44]Read from MH i2c: E2 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 0B 00 [06:36:44]MH_I2C_Read... [06:36:44]Read from MH i2c: E2 0B 00 37 11 00 C1 59 D1 6C 0C 1D 73 F8 90 00 AF [06:36:44]RAPDU: C1 59 D1 6C 0C 1D 73 F8 90 00 [06:36:44]wFMCommunicate OK [06:36:44]SAM_PROTO_SignData done [06:36:44]FM_MakeSignedData done [06:36:44]CreateOFDProtocolMessage [06:36:44]wFMCommunicate request_size=4 [06:36:44]MH_SAM_APDU [06:36:44]CAPDU: 80 11 00 00 [06:36:44]Write to MH i2c: E2 08 00 38 11 80 11 00 00 00 00 00 00 C3 [06:36:44]Write i2c OK [06:36:44]MH_I2C_Read... [06:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:45]Read from MH i2c: E2 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 17 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: E2 17 00 38 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [06:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:36:45]wFMCommunicate OK [06:36:45]CreateOFDProtocolMessage done [06:36:45]OFDSenderStorePacket 201745 [06:36:45]StoreOFDPacket docnum=201745 [06:36:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 32 F1 07 01 B4 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 25 00 00 00 F4 03 04 00 7E DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 14 03 00 35 04 06 00 2E B8 A9 92 B5 1F C1 59 D1 6C 0C 1D 73 F8 [06:36:45]CheckFolder [06:36:45]dirname=/storage/ofd_packets [06:36:45]CheckFolder done [06:36:45]ProducePacketName [06:36:45]name=ofd_packets/00201745 [06:36:45]NVStorageSaveData ofd_packets/00201745 [06:36:45]File name is /storage/ofd_packets/00201745 [06:36:45]Write 301 bytes [06:36:45]NVStorageSaveData done [06:36:45]OFDSenderStorePacket done [06:36:45]KKMCreateOFDPacket done [06:36:45]NVStorageSaveData kkm_last_timestamp [06:36:45]File name is /storage/kkm_last_timestamp [06:36:45]Write 4 bytes [06:36:45]NVStorageSaveData done [06:36:45]ExternCall_PrintAddStr [06:36:45]wPrintStart [06:36:45]Write to MH i2c: 01 00 00 39 11 4A [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 07 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 07 00 39 11 00 00 00 00 00 FF 0F 5F [06:36:45]RasterBufferAndPrint [06:36:45]line Счет N : (1)449501 [06:36:45]line ИНН: 02508201610067 [06:36:45]line Контрольно-Кассовый Чек [06:36:45]line ПРОДАЖА [06:36:45]line ТРК (МРК, ГНК) : 52 [06:36:45]line Товар: 2710124130 [06:36:45]line Аи-92-К-2 [06:36:45]line 4.490 * 66.90 [06:36:45]line = 300.38 [06:36:45]line НДС 12% НСП 1% [06:36:45]line > о реализуемом товаре [06:36:45]line ОКРУГЛЕНИЕ: -0.38 [06:36:45]line ИТОГО: 300.00 [06:36:45]line Внесено: 300.00 [06:36:45]line СДАЧА: 0.00 [06:36:45]line НСП 1% : 2.66 [06:36:45]line НДС 12% : 31.90 [06:36:45]line Наличными: 300.00 [06:36:45]line Безнал.: 0.00 [06:36:45]line Место: АЗС № 171 "Партнер Нефть" [06:36:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:36:45]line СНО: Общий режим [06:36:45]line Чек 37 27.10.2024 06:36 [06:36:45]line Смена: 544 ФФД: 1.0 [06:36:45]line ЗНМ: 0300000109 [06:36:45]line РНМ: 0000000000091777 [06:36:45]line Версия ККМ: 001 [06:36:45]line ФМ: 0000000000871756 [06:36:45]line ФД: 201745 [06:36:45]line ФПД: 51370653824287 [06:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063646&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201745&fm=51370653824287&tin=02508201610067®Number=0000000000091777&sum=30000 [06:36:45]OFD Sender: Processing packet 201745 [packets to send 112, broken 111] [06:36:45]ProducePacketName [06:36:45]name=ofd_packets/00201745 [06:36:45]OFD Sender: To server: pG, [06:36:45]CommunicateWithHost lk.salyk.kg:30040 [06:36:45]ConnectInit lk.salyk.kg [06:36:45]written 0, free lines is 4095 [06:36:45]Connected sock=10 [06:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 32 F1 07 01 B4 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 25 00 00 00 F4 03 04 00 7E DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 14 03 00 35 04 06 00 2E B8 A9 92 B5 1F C1 59 D1 6C 0C 1D 73 F8 [06:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8E 12 47 00 68 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 14 03 00 F4 03 04 00 24 8B 1D 67 B6 04 01 00 00 7B FA F7 09 13 29 7C BA [06:36:45]CommunicateWithHost err = 0 [06:36:45]CheckOFDResponse [06:36:45]1017 (14) - 77093643461234 [06:36:45]1041 (16) - 0000000000871756 [06:36:45]1040 (4) - 201745 [06:36:45]1012 (4) - 27.10.2024 00:36 [06:36:45]1206 (1) - 0 [06:36:45]OFD Sender: Remove packet 201745 [06:36:45]ProducePacketName [06:36:45]name=ofd_packets/00201745 [06:36:45]NVStorageDeleteData [06:36:45]Write to MH i2c: 01 00 00 64 11 75 [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 07 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: 01 07 00 64 11 00 00 00 00 00 9D 0C 25 [06:36:45]RasterBufferAndPrint [06:36:45]line [06:36:45]line [06:36:45]line [06:36:45]line [06:36:45]line [06:36:45]written 0, free lines is 3236 [06:36:45]MH_Cut [06:36:45]Write to MH i2c: D1 01 00 6B 11 01 4E [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: D1 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: D1 01 00 [06:36:45]MH_I2C_Read... [06:36:45]Read from MH i2c: D1 01 00 6B 11 00 4D [06:36:45]Write to MH i2c: 01 00 00 6C 11 7D [06:36:45]Write i2c OK [06:36:45]MH_I2C_Read... [06:36:46]OFD Sender: No OFD packet to send [06:36:46]*** Cut start [06:36:46]*** Purtial cut [06:36:46]*** Stage 1: CUTSNS_PIN = 1 [06:36:46]Read from MH i2c: 01 [06:36:46]MH_I2C_Read... [06:36:46]*** Stop cut motor [06:36:46]*** Cut end [06:36:46]Read from MH i2c: 01 07 00 [06:36:46]MH_I2C_Read... [06:36:46]Read from MH i2c: 01 07 00 6C 11 00 00 00 00 00 FF 0F 92 [06:36:46]process_action close_receipt done [06:36:46]requested_data is exist [06:36:46]produce_requested_data [06:36:46]requested_item fm.sn is exist - process it [06:36:46]wFMCommunicate request_size=4 [06:36:46]MH_SAM_APDU [06:36:46]CAPDU: 80 11 00 00 [06:36:46]Write to MH i2c: E2 08 00 6D 11 80 11 00 00 00 00 00 00 F8 [06:36:46]Write i2c OK [06:36:46]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 17 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 17 00 6D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4D [06:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:36:47]wFMCommunicate OK [06:36:47]requested_item fd.num is exist - process it [06:36:47]SAM_PROTO_GetFieldsCounters [06:36:47]wFMCommunicate request_size=4 [06:36:47]MH_SAM_APDU [06:36:47]CAPDU: 80 13 00 00 [06:36:47]Write to MH i2c: E2 08 00 6E 11 80 13 00 00 00 00 00 00 FB [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 62 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 62 00 6E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 11 14 03 00 0E 04 04 00 20 02 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 DD [06:36:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 11 14 03 00 0E 04 04 00 20 02 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 [06:36:47]wFMCommunicate OK [06:36:47]SAM_PROTO_GetFieldsCounters done [06:36:47]requested_item shift.num is exist - process it [06:36:47]requested_item shift.opened is exist - process it [06:36:47]req_shift_opened [06:36:47]FM_GetShiftState [06:36:47]SAM_PROTO_GetShiftState [06:36:47]wFMCommunicate request_size=4 [06:36:47]MH_SAM_APDU [06:36:47]CAPDU: 80 13 01 00 [06:36:47]Write to MH i2c: E2 08 00 6F 11 80 13 01 00 00 00 00 00 FD [06:36:47]Write i2c OK [06:36:47]MH_I2C_Read... [06:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:47]Read from MH i2c: E2 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 0E 00 [06:36:47]MH_I2C_Read... [06:36:47]Read from MH i2c: E2 0E 00 6F 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FF [06:36:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:36:47]wFMCommunicate OK [06:36:47]SAM_PROTO_GetShiftState done [06:36:47]FM_GetShiftState done [06:36:47]req_shift_opened done [06:36:47]requested_item shift.open_date is exist - process it [06:36:47]req_shift_open_date [06:36:47]req_shift_open_date done [06:36:47]produce_requested_data done [06:36:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201745,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:36:47]process_action_free close_receipt [06:36:47]json_value_free [06:36:47]json_value_free done [06:36:47]process_json_proto returns [06:36:47]Send response to host [06:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201745,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:36:47]free response buf [06:36:47]execute_script done [06:36:47]execute_script returns [06:36:47]free content buf [06:36:47]Sock 8.Close socket [06:36:47]Sock 8.Thread stoped [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:34]accept exits with 9 [06:37:34]New connection [06:37:34]New thread 3066936676 created [06:37:34]Thread 3067080036 joined [06:37:34]Waiting for new connection... [06:37:34] Sock 9.Parse request [06:37:34]Sock 9.Check first char [06:37:34]Sock 9.First char is OK [06:37:34]request: POST /json_proto HTTP/1.0 [06:37:34]Method: POST [06:37:34]URL: /json_proto [06:37:34]Method is POST - this is cgi request [06:37:34]url: /json_proto [06:37:34]query_string will be loaded in cgi processing [06:37:34]execute_cgi json_proto POST (null) [06:37:34]execute_cgi path=json_proto method=POST [06:37:34]POST find Content-Length [06:37:34]Host: 172.17.63.195:8080 [06:37:34]Content-Length: 763 [06:37:34]Content-Type: application/json [06:37:34] [06:37:34]POST finish read [06:37:34]Found Content-Length = 763 [06:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.910, "sum" : 450.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 450.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:34]execute_script... [06:37:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.910, "sum" : 450.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 450.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:34]POST & json_proto [06:37:34]process_json_proto [06:37:34]json parsed OK: [06:37:34]protocol is kg_v1.0 [06:37:34]action value=close_receipt [06:37:34]process_action close_receipt [06:37:34]cmd_close_receipt [06:37:34]MH_GetDate [06:37:34]Write to MH i2c: F0 00 00 70 11 70 [06:37:34]Write i2c OK [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: F0 [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: F0 09 00 [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: F0 09 00 70 11 00 B1 DF 1D 67 68 46 19 67 BB [06:37:34]GetLastDocTimeStamp 1730011006 [06:37:34]current date 1730011057 [06:37:34]FM_GetShiftState [06:37:34]SAM_PROTO_GetShiftState [06:37:34]wFMCommunicate request_size=4 [06:37:34]MH_SAM_APDU [06:37:34]CAPDU: 80 13 01 00 [06:37:34]Write to MH i2c: E2 08 00 71 11 80 13 01 00 00 00 00 00 FF [06:37:34]Write i2c OK [06:37:34]MH_I2C_Read... [06:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:34]Read from MH i2c: E2 [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: E2 0E 00 [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: E2 0E 00 71 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 01 [06:37:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:37:34]wFMCommunicate OK [06:37:34]SAM_PROTO_GetShiftState done [06:37:34]FM_GetShiftState done [06:37:34]opened in 1729987312 [06:37:34]opened+sec_in_day 1730073712 [06:37:34]quantity*price = 45034 [06:37:34]sum+1 = 45035 [06:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.34 НСП 1% : 3.98 НДС 12% : 47.82 Наличными: 0.00 Безнал.: 450.34 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 38 27.10.2024 06:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201746 ФПД: 239683711157519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063738&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201746&fm=239683711157519&tin=02508201610067®Number=0000000000091777&sum=45034 [06:37:35]StoreToDocumentArchive [06:37:35]shift 544 fd 201746 [06:37:35]save to /storage/0544/doc_00201746 [06:37:35]save last doc name /storage/0544/doc_00201746 to /storage/kkm_last_doc_name [06:37:35]save OK [06:37:35]Clear old archive folders... [06:37:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:37:35]tlvbuf is 00084F20 [06:37:35]SAM_PROTO_ClearQueue [06:37:35]wFMCommunicate request_size=4 [06:37:35]MH_SAM_APDU [06:37:35]CAPDU: 80 09 00 00 [06:37:35]Write to MH i2c: E2 08 00 7E 11 80 09 00 00 00 00 00 00 01 [06:37:35]Write i2c OK [06:37:35]MH_I2C_Read... [06:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:35]Read from MH i2c: E2 [06:37:35]MH_I2C_Read... [06:37:35]Read from MH i2c: E2 03 00 [06:37:35]MH_I2C_Read... [06:37:35]Read from MH i2c: E2 03 00 7E 11 00 90 00 03 [06:37:35]RAPDU: 90 00 [06:37:35]wFMCommunicate OK [06:37:35]SAM_PROTO_ClearQueue done [06:37:35]KKMCreateOFDPacket [06:37:35]OFDProtocolAddRootSTLVToBuf [06:37:35]FM_MakeSignedData [06:37:35]FM_MakeSignedData [06:37:35]SAM_PROTO_SignData [06:37:35]wFMCommunicate request_size=4 [06:37:35]MH_SAM_APDU [06:37:35]CAPDU: 80 0D 01 02 [06:37:35]Write to MH i2c: E2 08 00 7F 11 80 0D 01 02 00 00 00 00 09 [06:37:35]Write i2c OK [06:37:35]MH_I2C_Read... [06:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:36]Read from MH i2c: E2 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 03 00 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [06:37:36]RAPDU: 90 00 [06:37:36]wFMCommunicate OK [06:37:36]wFMCommunicate request_size=255 [06:37:36]MH_SAM_APDU [06:37:36]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 32 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B2 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 14 03 00 35 04 06 00 D9 FD B6 76 [06:37:36]Write to MH i2c: E2 02 01 80 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B2 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 14 03 00 35 04 06 00 D9 FD B6 76 00 00 1B [06:37:36]Write i2c OK [06:37:36]MH_I2C_Read... [06:37:36]OFD Sender: No OFD packet to send [06:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:36]Read from MH i2c: E2 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 03 00 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 03 00 80 11 00 90 00 05 [06:37:36]RAPDU: 90 00 [06:37:36]wFMCommunicate OK [06:37:36]wFMCommunicate request_size=7 [06:37:36]MH_SAM_APDU [06:37:36]CAPDU: 80 0D 02 02 02 45 0F [06:37:36]Write to MH i2c: E2 0A 00 81 11 80 0D 02 02 02 00 45 0F 00 00 64 [06:37:36]Write i2c OK [06:37:36]MH_I2C_Read... [06:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:36]Read from MH i2c: E2 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 03 00 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 03 00 81 11 00 90 00 06 [06:37:36]RAPDU: 90 00 [06:37:36]wFMCommunicate OK [06:37:36]wFMCommunicate request_size=4 [06:37:36]MH_SAM_APDU [06:37:36]CAPDU: 80 0D 03 02 [06:37:36]Write to MH i2c: E2 08 00 82 11 80 0D 03 02 00 00 00 00 0E [06:37:36]Write i2c OK [06:37:36]MH_I2C_Read... [06:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:36]Read from MH i2c: E2 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 0B 00 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 0B 00 82 11 00 9B 42 6A 38 56 77 4A 42 90 00 E7 [06:37:36]RAPDU: 9B 42 6A 38 56 77 4A 42 90 00 [06:37:36]wFMCommunicate OK [06:37:36]SAM_PROTO_SignData done [06:37:36]FM_MakeSignedData done [06:37:36]CreateOFDProtocolMessage [06:37:36]wFMCommunicate request_size=4 [06:37:36]MH_SAM_APDU [06:37:36]CAPDU: 80 11 00 00 [06:37:36]Write to MH i2c: E2 08 00 83 11 80 11 00 00 00 00 00 00 0E [06:37:36]Write i2c OK [06:37:36]MH_I2C_Read... [06:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:36]Read from MH i2c: E2 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 17 00 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: E2 17 00 83 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [06:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:37:36]wFMCommunicate OK [06:37:36]CreateOFDProtocolMessage done [06:37:36]OFDSenderStorePacket 201746 [06:37:36]StoreOFDPacket docnum=201746 [06:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 07 B6 04 01 8C 2B 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 32 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B2 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 14 03 00 35 04 06 00 D9 FD B6 76 45 0F 9B 42 6A 38 56 77 4A 42 [06:37:36]CheckFolder [06:37:36]dirname=/storage/ofd_packets [06:37:36]CheckFolder done [06:37:36]ProducePacketName [06:37:36]name=ofd_packets/00201746 [06:37:36]NVStorageSaveData ofd_packets/00201746 [06:37:36]File name is /storage/ofd_packets/00201746 [06:37:36]Write 298 bytes [06:37:36]NVStorageSaveData done [06:37:36]OFDSenderStorePacket done [06:37:36]KKMCreateOFDPacket done [06:37:36]NVStorageSaveData kkm_last_timestamp [06:37:36]File name is /storage/kkm_last_timestamp [06:37:36]Write 4 bytes [06:37:36]NVStorageSaveData done [06:37:36]ExternCall_PrintAddStr [06:37:36]wPrintStart [06:37:36]Write to MH i2c: 01 00 00 84 11 95 [06:37:36]Write i2c OK [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: 01 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: 01 07 00 [06:37:36]MH_I2C_Read... [06:37:36]Read from MH i2c: 01 07 00 84 11 00 00 00 00 00 FF 0F AA [06:37:36]RasterBufferAndPrint [06:37:36]line Счет N : (1)449502 [06:37:36]line ИНН: 02508201610067 [06:37:36]line Контрольно-Кассовый Чек [06:37:36]line ПРОДАЖА [06:37:36]line ТРК (МРК, ГНК) : 33 [06:37:36]line Товар: 2710194210 [06:37:36]line ДТ-К-2 [06:37:36]line 5.910 * 76.20 [06:37:36]line = 450.34 [06:37:36]line НДС 12% НСП 1% [06:37:36]line > о реализуемом товаре [06:37:36]line ИТОГО: 450.34 [06:37:36]line НСП 1% : 3.98 [06:37:36]line НДС 12% : 47.82 [06:37:36]line Наличными: 0.00 [06:37:36]line Безнал.: 450.34 [06:37:36]line Место: АЗС № 171 "Партнер Нефть" [06:37:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:37:36]line СНО: Общий режим [06:37:36]line Чек 38 27.10.2024 06:37 [06:37:36]line Смена: 544 ФФД: 1.0 [06:37:36]line ЗНМ: 0300000109 [06:37:36]line РНМ: 0000000000091777 [06:37:36]line Версия ККМ: 001 [06:37:36]line Платежная система: Mbank [06:37:36]line ФМ: 0000000000871756 [06:37:36]line ФД: 201746 [06:37:36]line ФПД: 239683711157519 [06:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063738&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201746&fm=239683711157519&tin=02508201610067®Number=0000000000091777&sum=45034 [06:37:36]OFD Sender: Processing packet 201746 [packets to send 112, broken 111] [06:37:36]ProducePacketName [06:37:36]name=ofd_packets/00201746 [06:37:36]OFD Sender: To server: pG, [06:37:36]CommunicateWithHost lk.salyk.kg:30040 [06:37:36]ConnectInit lk.salyk.kg [06:37:36]written 0, free lines is 4095 [06:37:36]Connected sock=10 [06:37:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 07 B6 04 01 8C 2B 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 32 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 B2 DF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 14 03 00 35 04 06 00 D9 FD B6 76 45 0F 9B 42 6A 38 56 77 4A 42 [06:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BD 5F 47 00 4A 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 14 03 00 F4 03 04 00 58 8B 1D 67 B6 04 01 00 00 02 6C 44 55 73 AB DF 8A [06:37:37]CommunicateWithHost err = 0 [06:37:37]CheckOFDResponse [06:37:37]1017 (14) - 77093643461234 [06:37:37]1041 (16) - 0000000000871756 [06:37:37]1040 (4) - 201746 [06:37:37]1012 (4) - 27.10.2024 00:37 [06:37:37]1206 (1) - 0 [06:37:37]OFD Sender: Remove packet 201746 [06:37:37]ProducePacketName [06:37:37]name=ofd_packets/00201746 [06:37:37]NVStorageDeleteData [06:37:37]Write to MH i2c: 01 00 00 AD 11 BE [06:37:37]Write i2c OK [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: 01 [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: 01 07 00 [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 BE 0C 8F [06:37:37]RasterBufferAndPrint [06:37:37]line [06:37:37]line [06:37:37]line [06:37:37]line [06:37:37]line [06:37:37]written 0, free lines is 3265 [06:37:37]MH_Cut [06:37:37]Write to MH i2c: D1 01 00 B4 11 01 97 [06:37:37]Write i2c OK [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: D1 [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: D1 01 00 [06:37:37]MH_I2C_Read... [06:37:37]Read from MH i2c: D1 01 00 B4 11 00 96 [06:37:37]Write to MH i2c: 01 00 00 B5 11 C6 [06:37:37]Write i2c OK [06:37:37]MH_I2C_Read... [06:37:37]OFD Sender: No OFD packet to send [06:37:38]*** Cut start [06:37:38]*** Purtial cut [06:37:38]*** Stage 1: CUTSNS_PIN = 1 [06:37:38]Read from MH i2c: 01 [06:37:38]MH_I2C_Read... [06:37:38]*** Stop cut motor [06:37:38]*** Cut end [06:37:38]Read from MH i2c: 01 07 00 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: 01 07 00 B5 11 00 00 00 00 00 FF 0F DB [06:37:38]process_action close_receipt done [06:37:38]requested_data is exist [06:37:38]produce_requested_data [06:37:38]requested_item fm.sn is exist - process it [06:37:38]wFMCommunicate request_size=4 [06:37:38]MH_SAM_APDU [06:37:38]CAPDU: 80 11 00 00 [06:37:38]Write to MH i2c: E2 08 00 B6 11 80 11 00 00 00 00 00 00 41 [06:37:38]Write i2c OK [06:37:38]MH_I2C_Read... [06:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:38]Read from MH i2c: E2 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 17 00 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 17 00 B6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 96 [06:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:37:38]wFMCommunicate OK [06:37:38]requested_item fd.num is exist - process it [06:37:38]SAM_PROTO_GetFieldsCounters [06:37:38]wFMCommunicate request_size=4 [06:37:38]MH_SAM_APDU [06:37:38]CAPDU: 80 13 00 00 [06:37:38]Write to MH i2c: E2 08 00 B7 11 80 13 00 00 00 00 00 00 44 [06:37:38]Write i2c OK [06:37:38]MH_I2C_Read... [06:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:38]Read from MH i2c: E2 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 62 00 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 62 00 B7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 12 14 03 00 0E 04 04 00 20 02 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 2A [06:37:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 12 14 03 00 0E 04 04 00 20 02 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 [06:37:38]wFMCommunicate OK [06:37:38]SAM_PROTO_GetFieldsCounters done [06:37:38]requested_item shift.num is exist - process it [06:37:38]requested_item shift.opened is exist - process it [06:37:38]req_shift_opened [06:37:38]FM_GetShiftState [06:37:38]SAM_PROTO_GetShiftState [06:37:38]wFMCommunicate request_size=4 [06:37:38]MH_SAM_APDU [06:37:38]CAPDU: 80 13 01 00 [06:37:38]Write to MH i2c: E2 08 00 B8 11 80 13 01 00 00 00 00 00 46 [06:37:38]Write i2c OK [06:37:38]MH_I2C_Read... [06:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:38]Read from MH i2c: E2 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 0E 00 [06:37:38]MH_I2C_Read... [06:37:38]Read from MH i2c: E2 0E 00 B8 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 48 [06:37:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:37:38]wFMCommunicate OK [06:37:38]SAM_PROTO_GetShiftState done [06:37:38]FM_GetShiftState done [06:37:38]req_shift_opened done [06:37:38]requested_item shift.open_date is exist - process it [06:37:38]req_shift_open_date [06:37:38]req_shift_open_date done [06:37:38]produce_requested_data done [06:37:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201746,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:37:38]process_action_free close_receipt [06:37:38]json_value_free [06:37:38]json_value_free done [06:37:38]process_json_proto returns [06:37:38]Send response to host [06:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201746,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:37:38]free response buf [06:37:38]execute_script done [06:37:38]execute_script returns [06:37:38]free content buf [06:37:38]Sock 9.Close socket [06:37:38]Sock 9.Thread stoped [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:26]accept exits with 8 [06:42:26]New connection [06:42:26]New thread 3067080036 created [06:42:26]Thread 3066936676 joined [06:42:26]Waiting for new connection... [06:42:26] Sock 8.Parse request [06:42:26]Sock 8.Check first char [06:42:26]Sock 8.First char is OK [06:42:26]request: POST /json_proto HTTP/1.0 [06:42:26]Method: POST [06:42:26]URL: /json_proto [06:42:26]Method is POST - this is cgi request [06:42:26]url: /json_proto [06:42:26]query_string will be loaded in cgi processing [06:42:26]execute_cgi json_proto POST (null) [06:42:26]execute_cgi path=json_proto method=POST [06:42:26]POST find Content-Length [06:42:26]Host: 172.17.63.195:8080 [06:42:26]Content-Length: 674 [06:42:26]Content-Type: application/json [06:42:26] [06:42:26]POST finish read [06:42:26]Found Content-Length = 674 [06:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [06:42:26]execute_script... [06:42: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)449503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [06:42:26]POST & json_proto [06:42:26]process_json_proto [06:42:26]json parsed OK: [06:42:26]protocol is kg_v1.0 [06:42:26]action value=close_receipt [06:42:26]process_action close_receipt [06:42:26]cmd_close_receipt [06:42:26]MH_GetDate [06:42:26]Write to MH i2c: F0 00 00 B9 11 B9 [06:42:26]Write i2c OK [06:42:26]MH_I2C_Read... [06:42:26]Read from MH i2c: F0 [06:42:26]MH_I2C_Read... [06:42:26]Read from MH i2c: F0 09 00 [06:42:26]MH_I2C_Read... [06:42:26]Read from MH i2c: F0 09 00 B9 11 00 D5 E0 1D 67 68 46 19 67 29 [06:42:26]GetLastDocTimeStamp 1730011058 [06:42:26]current date 1730011349 [06:42:26]FM_GetShiftState [06:42:26]SAM_PROTO_GetShiftState [06:42:26]wFMCommunicate request_size=4 [06:42:26]MH_SAM_APDU [06:42:26]CAPDU: 80 13 01 00 [06:42:26]Write to MH i2c: E2 08 00 BA 11 80 13 01 00 00 00 00 00 48 [06:42:26]Write i2c OK [06:42:26]MH_I2C_Read... [06:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:26]Read from MH i2c: E2 [06:42:26]MH_I2C_Read... [06:42:26]Read from MH i2c: E2 0E 00 [06:42:26]MH_I2C_Read... [06:42:26]Read from MH i2c: E2 0E 00 BA 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4A [06:42:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:42:26]wFMCommunicate OK [06:42:26]SAM_PROTO_GetShiftState done [06:42:26]FM_GetShiftState done [06:42:26]opened in 1729987312 [06:42:26]opened+sec_in_day 1730073712 [06:42:26]quantity*price = 60045 [06:42:26]sum+1 = 60047 [06:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 39 27.10.2024 06:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201747 ФПД: 154122941219031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064229&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201747&fm=154122941219031&tin=02508201610067®Number=0000000000091777&sum=60000 [06:42:27]StoreToDocumentArchive [06:42:27]shift 544 fd 201747 [06:42:27]save to /storage/0544/doc_00201747 [06:42:27]save last doc name /storage/0544/doc_00201747 to /storage/kkm_last_doc_name [06:42:27]save OK [06:42:27]Clear old archive folders... [06:42:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:42:27]tlvbuf is 000E45D0 [06:42:27]SAM_PROTO_ClearQueue [06:42:27]wFMCommunicate request_size=4 [06:42:27]MH_SAM_APDU [06:42:27]CAPDU: 80 09 00 00 [06:42:27]Write to MH i2c: E2 08 00 C7 11 80 09 00 00 00 00 00 00 4A [06:42:27]Write i2c OK [06:42:27]MH_I2C_Read... [06:42:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:27]Read from MH i2c: E2 [06:42:27]MH_I2C_Read... [06:42:27]Read from MH i2c: E2 03 00 [06:42:27]MH_I2C_Read... [06:42:27]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [06:42:27]RAPDU: 90 00 [06:42:27]wFMCommunicate OK [06:42:27]SAM_PROTO_ClearQueue done [06:42:27]KKMCreateOFDPacket [06:42:27]OFDProtocolAddRootSTLVToBuf [06:42:27]FM_MakeSignedData [06:42:27]FM_MakeSignedData [06:42:27]SAM_PROTO_SignData [06:42:27]wFMCommunicate request_size=4 [06:42:27]MH_SAM_APDU [06:42:27]CAPDU: 80 0D 01 02 [06:42:27]Write to MH i2c: E2 08 00 C8 11 80 0D 01 02 00 00 00 00 52 [06:42:27]Write i2c OK [06:42:27]MH_I2C_Read... [06:42:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:27]Read from MH i2c: E2 [06:42:27]MH_I2C_Read... [06:42:27]Read from MH i2c: E2 03 00 [06:42:27]MH_I2C_Read... [06:42:27]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [06:42:27]RAPDU: 90 00 [06:42:27]wFMCommunicate OK [06:42:27]wFMCommunicate request_size=255 [06:42:27]MH_SAM_APDU [06:42:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D5 E0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 14 03 00 35 04 06 00 8C 2C 8B 29 [06:42:27]Write to MH i2c: E2 02 01 C9 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D5 E0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 14 03 00 35 04 06 00 8C 2C 8B 29 00 00 B5 [06:42:27]Write i2c OK [06:42:27]MH_I2C_Read... [06:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:27]Read from MH i2c: E2 [06:42:27]MH_I2C_Read... [06:42:27]Read from MH i2c: E2 03 00 [06:42:27]MH_I2C_Read... [06:42:27]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [06:42:27]RAPDU: 90 00 [06:42:27]wFMCommunicate OK [06:42:27]wFMCommunicate request_size=7 [06:42:27]MH_SAM_APDU [06:42:27]CAPDU: 80 0D 02 02 02 C0 D7 [06:42:27]Write to MH i2c: E2 0A 00 CA 11 80 0D 02 02 02 00 C0 D7 00 00 F0 [06:42:27]Write i2c OK [06:42:27]MH_I2C_Read... [06:42:27]OFD Sender: No OFD packet to send [06:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:27]Read from MH i2c: E2 [06:42:27]MH_I2C_Read... [06:42:27]Read from MH i2c: E2 03 00 [06:42:27]MH_I2C_Read... [06:42:27]Read from MH i2c: E2 03 00 CA 11 00 90 00 4F [06:42:27]RAPDU: 90 00 [06:42:27]wFMCommunicate OK [06:42:27]wFMCommunicate request_size=4 [06:42:27]MH_SAM_APDU [06:42:27]CAPDU: 80 0D 03 02 [06:42:27]Write to MH i2c: E2 08 00 CB 11 80 0D 03 02 00 00 00 00 57 [06:42:27]Write i2c OK [06:42:27]MH_I2C_Read... [06:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:28]Read from MH i2c: E2 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: E2 0B 00 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: E2 0B 00 CB 11 00 7D B5 3C 9C A3 52 3C D9 90 00 6C [06:42:28]RAPDU: 7D B5 3C 9C A3 52 3C D9 90 00 [06:42:28]wFMCommunicate OK [06:42:28]SAM_PROTO_SignData done [06:42:28]FM_MakeSignedData done [06:42:28]CreateOFDProtocolMessage [06:42:28]wFMCommunicate request_size=4 [06:42:28]MH_SAM_APDU [06:42:28]CAPDU: 80 11 00 00 [06:42:28]Write to MH i2c: E2 08 00 CC 11 80 11 00 00 00 00 00 00 57 [06:42:28]Write i2c OK [06:42:28]MH_I2C_Read... [06:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:28]Read from MH i2c: E2 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: E2 17 00 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: E2 17 00 CC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AC [06:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:42:28]wFMCommunicate OK [06:42:28]CreateOFDProtocolMessage done [06:42:28]OFDSenderStorePacket 201747 [06:42:28]StoreOFDPacket docnum=201747 [06:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A4 E0 04 01 07 B7 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D5 E0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 14 03 00 35 04 06 00 8C 2C 8B 29 C0 D7 7D B5 3C 9C A3 52 3C D9 [06:42:28]CheckFolder [06:42:28]dirname=/storage/ofd_packets [06:42:28]CheckFolder done [06:42:28]ProducePacketName [06:42:28]name=ofd_packets/00201747 [06:42:28]NVStorageSaveData ofd_packets/00201747 [06:42:28]File name is /storage/ofd_packets/00201747 [06:42:28]Write 298 bytes [06:42:28]NVStorageSaveData done [06:42:28]OFDSenderStorePacket done [06:42:28]KKMCreateOFDPacket done [06:42:28]NVStorageSaveData kkm_last_timestamp [06:42:28]File name is /storage/kkm_last_timestamp [06:42:28]Write 4 bytes [06:42:28]NVStorageSaveData done [06:42:28]ExternCall_PrintAddStr [06:42:28]wPrintStart [06:42:28]Write to MH i2c: 01 00 00 CD 11 DE [06:42:28]Write i2c OK [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: 01 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: 01 07 00 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: 01 07 00 CD 11 00 00 00 00 00 FF 0F F3 [06:42:28]RasterBufferAndPrint [06:42:28]line Счет N : (1)449503 [06:42:28]line ИНН: 02508201610067 [06:42:28]line Контрольно-Кассовый Чек [06:42:28]line ПРОДАЖА [06:42:28]line ТРК (МРК, ГНК) : 11 [06:42:28]line Товар: 2710194210 [06:42:28]line ДТ-К-2 [06:42:28]line 7.880 * 76.20 [06:42:28]line = 600.46 [06:42:28]line НДС 12% НСП 1% [06:42:28]line > о реализуемом товаре [06:42:28]line ОКРУГЛЕНИЕ: -0.46 [06:42:28]line ИТОГО: 600.00 [06:42:28]line Внесено: 600.00 [06:42:28]line СДАЧА: 0.00 [06:42:28]line НСП 1% : 5.31 [06:42:28]line НДС 12% : 63.77 [06:42:28]line Наличными: 600.00 [06:42:28]line Безнал.: 0.00 [06:42:28]line Место: АЗС № 171 "Партнер Нефть" [06:42:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:42:28]line СНО: Общий режим [06:42:28]line Чек 39 27.10.2024 06:42 [06:42:28]line Смена: 544 ФФД: 1.0 [06:42:28]line ЗНМ: 0300000109 [06:42:28]line РНМ: 0000000000091777 [06:42:28]line Версия ККМ: 001 [06:42:28]line ФМ: 0000000000871756 [06:42:28]line ФД: 201747 [06:42:28]line ФПД: 154122941219031 [06:42:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064229&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201747&fm=154122941219031&tin=02508201610067®Number=0000000000091777&sum=60000 [06:42:28]OFD Sender: Processing packet 201747 [packets to send 112, broken 111] [06:42:28]ProducePacketName [06:42:28]name=ofd_packets/00201747 [06:42:28]OFD Sender: To server: pG, [06:42:28]CommunicateWithHost lk.salyk.kg:30040 [06:42:28]ConnectInit lk.salyk.kg [06:42:28]written 0, free lines is 4095 [06:42:28]Connected sock=10 [06:42:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A4 E0 04 01 07 B7 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D5 E0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 14 03 00 35 04 06 00 8C 2C 8B 29 C0 D7 7D B5 3C 9C A3 52 3C D9 [06:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 91 79 47 00 F1 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 14 03 00 F4 03 04 00 7B 8C 1D 67 B6 04 01 00 00 97 4A 06 3D C1 AC 10 48 [06:42:28]CommunicateWithHost err = 0 [06:42:28]CheckOFDResponse [06:42:28]1017 (14) - 77093643461234 [06:42:28]1041 (16) - 0000000000871756 [06:42:28]1040 (4) - 201747 [06:42:28]1012 (4) - 27.10.2024 00:42 [06:42:28]1206 (1) - 0 [06:42:28]OFD Sender: Remove packet 201747 [06:42:28]ProducePacketName [06:42:28]name=ofd_packets/00201747 [06:42:28]NVStorageDeleteData [06:42:28]Write to MH i2c: 01 00 00 F8 11 09 [06:42:28]Write i2c OK [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: 01 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: 01 07 00 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: 01 07 00 F8 11 00 00 00 00 00 8D 0C A9 [06:42:28]RasterBufferAndPrint [06:42:28]line [06:42:28]line [06:42:28]line [06:42:28]line [06:42:28]line [06:42:28]written 0, free lines is 3217 [06:42:28]MH_Cut [06:42:28]Write to MH i2c: D1 01 00 FF 11 01 E2 [06:42:28]Write i2c OK [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: D1 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: D1 01 00 [06:42:28]MH_I2C_Read... [06:42:28]Read from MH i2c: D1 01 00 FF 11 00 E1 [06:42:28]Write to MH i2c: 01 00 00 00 12 12 [06:42:28]Write i2c OK [06:42:28]MH_I2C_Read... [06:42:29]OFD Sender: No OFD packet to send [06:42:29]*** Cut start [06:42:29]*** Purtial cut [06:42:29]*** Stage 1: CUTSNS_PIN = 1 [06:42:29]Read from MH i2c: 01 [06:42:29]MH_I2C_Read... [06:42:29]*** Stop cut motor [06:42:29]*** Cut end [06:42:29]Read from MH i2c: 01 07 00 [06:42:29]MH_I2C_Read... [06:42:29]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 FF 0F 27 [06:42:29]process_action close_receipt done [06:42:29]requested_data is exist [06:42:29]produce_requested_data [06:42:29]requested_item fm.sn is exist - process it [06:42:29]wFMCommunicate request_size=4 [06:42:29]MH_SAM_APDU [06:42:29]CAPDU: 80 11 00 00 [06:42:29]Write to MH i2c: E2 08 00 01 12 80 11 00 00 00 00 00 00 8D [06:42:29]Write i2c OK [06:42:29]MH_I2C_Read... [06:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:29]Read from MH i2c: E2 [06:42:29]MH_I2C_Read... [06:42:29]Read from MH i2c: E2 17 00 [06:42:29]MH_I2C_Read... [06:42:29]Read from MH i2c: E2 17 00 01 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E2 [06:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:42:29]wFMCommunicate OK [06:42:29]requested_item fd.num is exist - process it [06:42:29]SAM_PROTO_GetFieldsCounters [06:42:29]wFMCommunicate request_size=4 [06:42:29]MH_SAM_APDU [06:42:29]CAPDU: 80 13 00 00 [06:42:29]Write to MH i2c: E2 08 00 02 12 80 13 00 00 00 00 00 00 90 [06:42:29]Write i2c OK [06:42:29]MH_I2C_Read... [06:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:30]Read from MH i2c: E2 [06:42:30]MH_I2C_Read... [06:42:30]Read from MH i2c: E2 62 00 [06:42:30]MH_I2C_Read... [06:42:30]Read from MH i2c: E2 62 00 02 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 13 14 03 00 0E 04 04 00 20 02 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 7A [06:42:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 13 14 03 00 0E 04 04 00 20 02 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 [06:42:30]wFMCommunicate OK [06:42:30]SAM_PROTO_GetFieldsCounters done [06:42:30]requested_item shift.num is exist - process it [06:42:30]requested_item shift.opened is exist - process it [06:42:30]req_shift_opened [06:42:30]FM_GetShiftState [06:42:30]SAM_PROTO_GetShiftState [06:42:30]wFMCommunicate request_size=4 [06:42:30]MH_SAM_APDU [06:42:30]CAPDU: 80 13 01 00 [06:42:30]Write to MH i2c: E2 08 00 03 12 80 13 01 00 00 00 00 00 92 [06:42:30]Write i2c OK [06:42:30]MH_I2C_Read... [06:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:30]Read from MH i2c: E2 [06:42:30]MH_I2C_Read... [06:42:30]Read from MH i2c: E2 0E 00 [06:42:30]MH_I2C_Read... [06:42:30]Read from MH i2c: E2 0E 00 03 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 94 [06:42:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:42:30]wFMCommunicate OK [06:42:30]SAM_PROTO_GetShiftState done [06:42:30]FM_GetShiftState done [06:42:30]req_shift_opened done [06:42:30]requested_item shift.open_date is exist - process it [06:42:30]req_shift_open_date [06:42:30]req_shift_open_date done [06:42:30]produce_requested_data done [06:42:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201747,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:42:30]process_action_free close_receipt [06:42:30]json_value_free [06:42:30]json_value_free done [06:42:30]process_json_proto returns [06:42:30]Send response to host [06:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201747,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:42:30]free response buf [06:42:30]execute_script done [06:42:30]execute_script returns [06:42:30]free content buf [06:42:30]Sock 8.Close socket [06:42:30]Sock 8.Thread stoped [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:50]accept exits with 9 [06:43:50]New connection [06:43:50]New thread 3066936676 created [06:43:50]Thread 3067080036 joined [06:43:50]Waiting for new connection... [06:43:50] Sock 9.Parse request [06:43:50]Sock 9.Check first char [06:43:50]Sock 9.First char is OK [06:43:50]request: POST /json_proto HTTP/1.0 [06:43:50]Method: POST [06:43:50]URL: /json_proto [06:43:50]Method is POST - this is cgi request [06:43:50]url: /json_proto [06:43:50]query_string will be loaded in cgi processing [06:43:50]execute_cgi json_proto POST (null) [06:43:50]execute_cgi path=json_proto method=POST [06:43:50]POST find Content-Length [06:43:50]Host: 172.17.63.195:8080 [06:43:50]Content-Length: 677 [06:43:50]Content-Type: application/json [06:43:50] [06:43:50]POST finish read [06:43:50]Found Content-Length = 677 [06:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:50]execute_script... [06:43: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)449504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:50]POST & json_proto [06:43:50]process_json_proto [06:43:50]json parsed OK: [06:43:50]protocol is kg_v1.0 [06:43:50]action value=close_receipt [06:43:50]process_action close_receipt [06:43:50]cmd_close_receipt [06:43:50]MH_GetDate [06:43:50]Write to MH i2c: F0 00 00 04 12 05 [06:43:50]Write i2c OK [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: F0 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: F0 09 00 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: F0 09 00 04 12 00 29 E1 1D 67 68 46 19 67 CA [06:43:50]GetLastDocTimeStamp 1730011349 [06:43:50]current date 1730011433 [06:43:50]FM_GetShiftState [06:43:50]SAM_PROTO_GetShiftState [06:43:50]wFMCommunicate request_size=4 [06:43:50]MH_SAM_APDU [06:43:50]CAPDU: 80 13 01 00 [06:43:50]Write to MH i2c: E2 08 00 05 12 80 13 01 00 00 00 00 00 94 [06:43:50]Write i2c OK [06:43:50]MH_I2C_Read... [06:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:50]Read from MH i2c: E2 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: E2 0E 00 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: E2 0E 00 05 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 96 [06:43:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:43:50]wFMCommunicate OK [06:43:50]SAM_PROTO_GetShiftState done [06:43:50]FM_GetShiftState done [06:43:50]opened in 1729987312 [06:43:50]opened+sec_in_day 1730073712 [06:43:50]quantity*price = 35055 [06:43:50]sum+1 = 35057 [06:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 40 27.10.2024 06:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201748 ФПД: 229970300330277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064353&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201748&fm=229970300330277&tin=02508201610067®Number=0000000000091777&sum=35000 [06:43:51]StoreToDocumentArchive [06:43:51]shift 544 fd 201748 [06:43:51]save to /storage/0544/doc_00201748 [06:43:51]save last doc name /storage/0544/doc_00201748 to /storage/kkm_last_doc_name [06:43:51]save OK [06:43:51]Clear old archive folders... [06:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:43:51]tlvbuf is 000A7900 [06:43:51]SAM_PROTO_ClearQueue [06:43:51]wFMCommunicate request_size=4 [06:43:51]MH_SAM_APDU [06:43:51]CAPDU: 80 09 00 00 [06:43:51]Write to MH i2c: E2 08 00 12 12 80 09 00 00 00 00 00 00 96 [06:43:51]Write i2c OK [06:43:51]MH_I2C_Read... [06:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:51]Read from MH i2c: E2 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 03 00 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [06:43:51]RAPDU: 90 00 [06:43:51]wFMCommunicate OK [06:43:51]SAM_PROTO_ClearQueue done [06:43:51]KKMCreateOFDPacket [06:43:51]OFDProtocolAddRootSTLVToBuf [06:43:51]FM_MakeSignedData [06:43:51]FM_MakeSignedData [06:43:51]SAM_PROTO_SignData [06:43:51]wFMCommunicate request_size=4 [06:43:51]MH_SAM_APDU [06:43:51]CAPDU: 80 0D 01 02 [06:43:51]Write to MH i2c: E2 08 00 13 12 80 0D 01 02 00 00 00 00 9E [06:43:51]Write i2c OK [06:43:51]MH_I2C_Read... [06:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:51]Read from MH i2c: E2 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 03 00 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [06:43:51]RAPDU: 90 00 [06:43:51]wFMCommunicate OK [06:43:51]wFMCommunicate request_size=255 [06:43:51]MH_SAM_APDU [06:43:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 14 03 00 35 04 06 00 D1 [06:43:51]Write to MH i2c: E2 02 01 14 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 14 03 00 35 04 06 00 D1 00 00 11 [06:43:51]Write i2c OK [06:43:51]MH_I2C_Read... [06:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:51]Read from MH i2c: E2 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 03 00 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [06:43:51]RAPDU: 90 00 [06:43:51]wFMCommunicate OK [06:43:51]wFMCommunicate request_size=10 [06:43:51]MH_SAM_APDU [06:43:51]CAPDU: 80 0D 02 02 05 28 22 0F 61 25 [06:43:51]Write to MH i2c: E2 0D 00 15 12 80 0D 02 02 05 00 28 22 0F 61 25 00 00 8A [06:43:51]Write i2c OK [06:43:51]MH_I2C_Read... [06:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:51]Read from MH i2c: E2 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 03 00 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [06:43:51]RAPDU: 90 00 [06:43:51]wFMCommunicate OK [06:43:51]wFMCommunicate request_size=4 [06:43:51]MH_SAM_APDU [06:43:51]CAPDU: 80 0D 03 02 [06:43:51]Write to MH i2c: E2 08 00 16 12 80 0D 03 02 00 00 00 00 A3 [06:43:51]Write i2c OK [06:43:51]MH_I2C_Read... [06:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:51]Read from MH i2c: E2 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 0B 00 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 0B 00 16 12 00 3D B0 41 96 DF B3 01 70 90 00 6B [06:43:51]RAPDU: 3D B0 41 96 DF B3 01 70 90 00 [06:43:51]wFMCommunicate OK [06:43:51]SAM_PROTO_SignData done [06:43:51]FM_MakeSignedData done [06:43:51]CreateOFDProtocolMessage [06:43:51]wFMCommunicate request_size=4 [06:43:51]MH_SAM_APDU [06:43:51]CAPDU: 80 11 00 00 [06:43:51]Write to MH i2c: E2 08 00 17 12 80 11 00 00 00 00 00 00 A3 [06:43:51]Write i2c OK [06:43:51]MH_I2C_Read... [06:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:51]Read from MH i2c: E2 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 17 00 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: E2 17 00 17 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F8 [06:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:43:51]wFMCommunicate OK [06:43:51]CreateOFDProtocolMessage done [06:43:51]OFDSenderStorePacket 201748 [06:43:51]StoreOFDPacket docnum=201748 [06:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EE 9A 07 01 0A 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 14 03 00 35 04 06 00 D1 28 22 0F 61 25 3D B0 41 96 DF B3 01 70 [06:43:51]CheckFolder [06:43:51]dirname=/storage/ofd_packets [06:43:51]CheckFolder done [06:43:51]ProducePacketName [06:43:51]name=ofd_packets/00201748 [06:43:51]NVStorageSaveData ofd_packets/00201748 [06:43:51]File name is /storage/ofd_packets/00201748 [06:43:51]Write 301 bytes [06:43:51]NVStorageSaveData done [06:43:51]OFDSenderStorePacket done [06:43:51]KKMCreateOFDPacket done [06:43:51]NVStorageSaveData kkm_last_timestamp [06:43:51]File name is /storage/kkm_last_timestamp [06:43:51]Write 4 bytes [06:43:51]NVStorageSaveData done [06:43:51]ExternCall_PrintAddStr [06:43:51]wPrintStart [06:43:51]Write to MH i2c: 01 00 00 18 12 2A [06:43:51]Write i2c OK [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: 01 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: 01 07 00 [06:43:51]MH_I2C_Read... [06:43:51]Read from MH i2c: 01 07 00 18 12 00 00 00 00 00 FF 0F 3F [06:43:51]RasterBufferAndPrint [06:43:51]line Счет N : (1)449504 [06:43:51]line ИНН: 02508201610067 [06:43:51]line Контрольно-Кассовый Чек [06:43:51]line ПРОДАЖА [06:43:51]line ТРК (МРК, ГНК) : 41 [06:43:51]line Товар: 2710124130 [06:43:51]line Аи-92-К-2 [06:43:51]line 5.240 * 66.90 [06:43:51]line = 350.56 [06:43:51]line НДС 12% НСП 1% [06:43:51]line > о реализуемом товаре [06:43:51]line ОКРУГЛЕНИЕ: -0.56 [06:43:51]line ИТОГО: 350.00 [06:43:51]line Внесено: 350.00 [06:43:51]line СДАЧА: 0.00 [06:43:51]line НСП 1% : 3.10 [06:43:51]line НДС 12% : 37.23 [06:43:51]line Наличными: 350.00 [06:43:51]line Безнал.: 0.00 [06:43:51]line Место: АЗС № 171 "Партнер Нефть" [06:43:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:43:51]line СНО: Общий режим [06:43:51]line Чек 40 27.10.2024 06:43 [06:43:51]line Смена: 544 ФФД: 1.0 [06:43:51]line ЗНМ: 0300000109 [06:43:51]line РНМ: 0000000000091777 [06:43:51]line Версия ККМ: 001 [06:43:51]line ФМ: 0000000000871756 [06:43:51]line ФД: 201748 [06:43:51]line ФПД: 229970300330277 [06:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064353&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201748&fm=229970300330277&tin=02508201610067®Number=0000000000091777&sum=35000 [06:43:52]OFD Sender: Processing packet 201748 [packets to send 112, broken 111] [06:43:52]ProducePacketName [06:43:52]name=ofd_packets/00201748 [06:43:52]OFD Sender: To server: pG, [06:43:52]CommunicateWithHost lk.salyk.kg:30040 [06:43:52]ConnectInit lk.salyk.kg [06:43:52]written 0, free lines is 4095 [06:43:52]Write to MH i2c: 01 00 00 43 12 55 [06:43:52]Write i2c OK [06:43:52]MH_I2C_Read... [06:43:52]Read from MH i2c: 01 [06:43:52]MH_I2C_Read... [06:43:52]Read from MH i2c: 01 07 00 [06:43:52]MH_I2C_Read... [06:43:52]Read from MH i2c: 01 07 00 43 12 00 00 00 00 00 91 0C F9 [06:43:52]RasterBufferAndPrint [06:43:52]line [06:43:52]line [06:43:52]line [06:43:52]line [06:43:52]line [06:43:52]written 0, free lines is 3220 [06:43:52]MH_Cut [06:43:52]Write to MH i2c: D1 01 00 4A 12 01 2E [06:43:52]Write i2c OK [06:43:52]MH_I2C_Read... [06:43:52]Read from MH i2c: D1 [06:43:52]MH_I2C_Read... [06:43:52]Read from MH i2c: D1 01 00 [06:43:52]MH_I2C_Read... [06:43:52]Read from MH i2c: D1 01 00 4A 12 00 2D [06:43:52]Write to MH i2c: 01 00 00 4B 12 5D [06:43:52]Write i2c OK [06:43:52]MH_I2C_Read... [06:43:53]*** Cut start [06:43:53]*** Purtial cut [06:43:53]*** Stage 1: CUTSNS_PIN = 1 [06:43:53]Read from MH i2c: 01 [06:43:53]MH_I2C_Read... [06:43:53]*** Stop cut motor [06:43:53]*** Cut end [06:43:53]Read from MH i2c: 01 07 00 [06:43:53]MH_I2C_Read... [06:43:53]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 FF 0F 72 [06:43:53]process_action close_receipt done [06:43:53]requested_data is exist [06:43:53]produce_requested_data [06:43:53]requested_item fm.sn is exist - process it [06:43:53]wFMCommunicate request_size=4 [06:43:53]MH_SAM_APDU [06:43:53]CAPDU: 80 11 00 00 [06:43:53]Write to MH i2c: E2 08 00 4C 12 80 11 00 00 00 00 00 00 D8 [06:43:53]Write i2c OK [06:43:53]MH_I2C_Read... [06:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:53]Read from MH i2c: E2 [06:43:53]MH_I2C_Read... [06:43:53]Read from MH i2c: E2 17 00 [06:43:53]MH_I2C_Read... [06:43:53]Read from MH i2c: E2 17 00 4C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2D [06:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:43:53]wFMCommunicate OK [06:43:53]requested_item fd.num is exist - process it [06:43:53]SAM_PROTO_GetFieldsCounters [06:43:53]wFMCommunicate request_size=4 [06:43:53]MH_SAM_APDU [06:43:53]CAPDU: 80 13 00 00 [06:43:53]Write to MH i2c: E2 08 00 4D 12 80 13 00 00 00 00 00 00 DB [06:43:53]Write i2c OK [06:43:53]MH_I2C_Read... [06:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:54]Read from MH i2c: E2 [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: E2 62 00 [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: E2 62 00 4D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 14 14 03 00 0E 04 04 00 20 02 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 C9 [06:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 14 14 03 00 0E 04 04 00 20 02 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 [06:43:54]wFMCommunicate OK [06:43:54]SAM_PROTO_GetFieldsCounters done [06:43:54]requested_item shift.num is exist - process it [06:43:54]requested_item shift.opened is exist - process it [06:43:54]req_shift_opened [06:43:54]FM_GetShiftState [06:43:54]SAM_PROTO_GetShiftState [06:43:54]wFMCommunicate request_size=4 [06:43:54]MH_SAM_APDU [06:43:54]CAPDU: 80 13 01 00 [06:43:54]Write to MH i2c: E2 08 00 4E 12 80 13 01 00 00 00 00 00 DD [06:43:54]Write i2c OK [06:43:54]MH_I2C_Read... [06:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:54]Read from MH i2c: E2 [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: E2 0E 00 [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: E2 0E 00 4E 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DF [06:43:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:43:54]wFMCommunicate OK [06:43:54]SAM_PROTO_GetShiftState done [06:43:54]FM_GetShiftState done [06:43:54]req_shift_opened done [06:43:54]requested_item shift.open_date is exist - process it [06:43:54]req_shift_open_date [06:43:54]req_shift_open_date done [06:43:54]produce_requested_data done [06:43:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201748,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:43:54]process_action_free close_receipt [06:43:54]json_value_free [06:43:54]json_value_free done [06:43:54]process_json_proto returns [06:43:54]Send response to host [06:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201748,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:43:54]free response buf [06:43:54]execute_script done [06:43:54]execute_script returns [06:43:54]free content buf [06:43:54]Sock 9.Close socket [06:43:54]Sock 9.Thread stoped [06:45:57]accept exits with 8 [06:45:57]New connection [06:45:57]New thread 3067080036 created [06:45:57]Thread 3066936676 joined [06:45:57]Waiting for new connection... [06:45:57] Sock 8.Parse request [06:45:57]Sock 8.Check first char [06:45:57]Sock 8.First char is OK [06:45:57]request: POST /json_proto HTTP/1.0 [06:45:57]Method: POST [06:45:57]URL: /json_proto [06:45:57]Method is POST - this is cgi request [06:45:57]url: /json_proto [06:45:57]query_string will be loaded in cgi processing [06:45:57]execute_cgi json_proto POST (null) [06:45:57]execute_cgi path=json_proto method=POST [06:45:57]POST find Content-Length [06:45:57]Host: 172.17.63.195:8080 [06:45:57]Content-Length: 675 [06:45:57]Content-Type: application/json [06:45:57] [06:45:57]POST finish read [06:45:57]Found Content-Length = 675 [06:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [06:45:57]execute_script... [06:45: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)449505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [06:45:57]POST & json_proto [06:45:57]process_json_proto [06:45:57]json parsed OK: [06:45:57]protocol is kg_v1.0 [06:45:57]action value=close_receipt [06:45:57]process_action close_receipt [06:45:57]cmd_close_receipt [06:45:57]MH_GetDate [06:45:57]Write to MH i2c: F0 00 00 4F 12 50 [06:45:57]Write i2c OK [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: F0 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: F0 09 00 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: F0 09 00 4F 12 00 A8 E1 1D 67 68 46 19 67 94 [06:45:57]GetLastDocTimeStamp 1730011433 [06:45:57]current date 1730011560 [06:45:57]FM_GetShiftState [06:45:57]SAM_PROTO_GetShiftState [06:45:57]wFMCommunicate request_size=4 [06:45:57]MH_SAM_APDU [06:45:57]CAPDU: 80 13 01 00 [06:45:57]Write to MH i2c: E2 08 00 50 12 80 13 01 00 00 00 00 00 DF [06:45:57]Write i2c OK [06:45:57]MH_I2C_Read... [06:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:57]Read from MH i2c: E2 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: E2 0E 00 [06:45:57]MH_I2C_Read... [06:45:57]Read from MH i2c: E2 0E 00 50 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E1 [06:45:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:45:57]wFMCommunicate OK [06:45:57]SAM_PROTO_GetShiftState done [06:45:57]FM_GetShiftState done [06:45:57]opened in 1729987312 [06:45:57]opened+sec_in_day 1730073712 [06:45:57]quantity*price = 100000 [06:45:57]sum+1 = 100002 [06:45:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 41 27.10.2024 06:46 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201749 ФПД: 68811607073965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064600&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201749&fm=68811607073965&tin=02508201610067®Number=0000000000091777&sum=100000 [06:45:58]StoreToDocumentArchive [06:45:58]shift 544 fd 201749 [06:45:58]save to /storage/0544/doc_00201749 [06:45:58]save last doc name /storage/0544/doc_00201749 to /storage/kkm_last_doc_name [06:45:58]save OK [06:45:58]Clear old archive folders... [06:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:45:58]tlvbuf is 000C5380 [06:45:58]SAM_PROTO_ClearQueue [06:45:58]wFMCommunicate request_size=4 [06:45:58]MH_SAM_APDU [06:45:58]CAPDU: 80 09 00 00 [06:45:58]Write to MH i2c: E2 08 00 5D 12 80 09 00 00 00 00 00 00 E1 [06:45:58]Write i2c OK [06:45:58]MH_I2C_Read... [06:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:58]Read from MH i2c: E2 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 03 00 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [06:45:58]RAPDU: 90 00 [06:45:58]wFMCommunicate OK [06:45:58]SAM_PROTO_ClearQueue done [06:45:58]KKMCreateOFDPacket [06:45:58]OFDProtocolAddRootSTLVToBuf [06:45:58]FM_MakeSignedData [06:45:58]FM_MakeSignedData [06:45:58]SAM_PROTO_SignData [06:45:58]wFMCommunicate request_size=4 [06:45:58]MH_SAM_APDU [06:45:58]CAPDU: 80 0D 01 02 [06:45:58]Write to MH i2c: E2 08 00 5E 12 80 0D 01 02 00 00 00 00 E9 [06:45:58]Write i2c OK [06:45:58]MH_I2C_Read... [06:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:58]Read from MH i2c: E2 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 03 00 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [06:45:58]RAPDU: 90 00 [06:45:58]wFMCommunicate OK [06:45:58]wFMCommunicate request_size=255 [06:45:58]MH_SAM_APDU [06:45:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 A8 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 14 03 00 35 04 06 00 [06:45:58]Write to MH i2c: E2 02 01 5F 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 29 00 00 00 F4 03 04 00 A8 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 14 03 00 35 04 06 00 00 00 D6 [06:45:58]Write i2c OK [06:45:58]MH_I2C_Read... [06:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:58]Read from MH i2c: E2 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 03 00 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [06:45:58]RAPDU: 90 00 [06:45:58]wFMCommunicate OK [06:45:58]wFMCommunicate request_size=11 [06:45:58]MH_SAM_APDU [06:45:58]CAPDU: 80 0D 02 02 06 3E 95 73 65 64 AD [06:45:58]Write to MH i2c: E2 0E 00 60 12 80 0D 02 02 06 00 3E 95 73 65 64 AD 00 00 B4 [06:45:58]Write i2c OK [06:45:58]MH_I2C_Read... [06:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:58]Read from MH i2c: E2 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 03 00 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 03 00 60 12 00 90 00 E6 [06:45:58]RAPDU: 90 00 [06:45:58]wFMCommunicate OK [06:45:58]wFMCommunicate request_size=4 [06:45:58]MH_SAM_APDU [06:45:58]CAPDU: 80 0D 03 02 [06:45:58]Write to MH i2c: E2 08 00 61 12 80 0D 03 02 00 00 00 00 EE [06:45:58]Write i2c OK [06:45:58]MH_I2C_Read... [06:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:58]Read from MH i2c: E2 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 0B 00 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 0B 00 61 12 00 26 0B 87 3F AA 62 24 44 90 00 5A [06:45:58]RAPDU: 26 0B 87 3F AA 62 24 44 90 00 [06:45:58]wFMCommunicate OK [06:45:58]SAM_PROTO_SignData done [06:45:58]FM_MakeSignedData done [06:45:58]CreateOFDProtocolMessage [06:45:58]wFMCommunicate request_size=4 [06:45:58]MH_SAM_APDU [06:45:58]CAPDU: 80 11 00 00 [06:45:58]Write to MH i2c: E2 08 00 62 12 80 11 00 00 00 00 00 00 EE [06:45:58]Write i2c OK [06:45:58]MH_I2C_Read... [06:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:58]Read from MH i2c: E2 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 17 00 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: E2 17 00 62 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [06:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:45:58]wFMCommunicate OK [06:45:58]CreateOFDProtocolMessage done [06:45:58]OFDSenderStorePacket 201749 [06:45:58]StoreOFDPacket docnum=201749 [06:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 15 78 08 01 E6 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 A8 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 14 03 00 35 04 06 00 3E 95 73 65 64 AD 26 0B 87 3F AA 62 24 44 [06:45:58]CheckFolder [06:45:58]dirname=/storage/ofd_packets [06:45:58]CheckFolder done [06:45:58]ProducePacketName [06:45:58]name=ofd_packets/00201749 [06:45:58]NVStorageSaveData ofd_packets/00201749 [06:45:58]File name is /storage/ofd_packets/00201749 [06:45:58]Write 302 bytes [06:45:58]NVStorageSaveData done [06:45:58]OFDSenderStorePacket done [06:45:58]KKMCreateOFDPacket done [06:45:58]NVStorageSaveData kkm_last_timestamp [06:45:58]File name is /storage/kkm_last_timestamp [06:45:58]Write 4 bytes [06:45:58]NVStorageSaveData done [06:45:58]ExternCall_PrintAddStr [06:45:58]wPrintStart [06:45:58]Write to MH i2c: 01 00 00 63 12 75 [06:45:58]Write i2c OK [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: 01 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: 01 07 00 [06:45:58]MH_I2C_Read... [06:45:58]Read from MH i2c: 01 07 00 63 12 00 00 00 00 00 FF 0F 8A [06:45:58]RasterBufferAndPrint [06:45:58]line Счет N : (1)449505 [06:45:58]line ИНН: 02508201610067 [06:45:58]line Контрольно-Кассовый Чек [06:45:58]line ПРОДАЖА [06:45:58]line ТРК (МРК, ГНК) : 42 [06:45:58]line Товар: 2710124130 [06:45:58]line SUPER 92-К-5 [06:45:58]line 14.620 * 68.40 [06:45:58]line = 1000.01 [06:45:58]line НДС 12% НСП 1% [06:45:58]line > о реализуемом товаре [06:45:58]line ОКРУГЛЕНИЕ: -0.01 [06:45:58]line ИТОГО: 1000.00 [06:45:58]line Внесено: 1000.00 [06:45:58]line СДАЧА: 0.00 [06:45:58]line НСП 1% : 8.85 [06:45:58]line НДС 12% : 106.20 [06:45:58]line Наличными: 1000.00 [06:45:58]line Безнал.: 0.00 [06:45:58]line Место: АЗС № 171 "Партнер Нефть" [06:45:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:45:58]line СНО: Общий режим [06:45:58]line Чек 41 27.10.2024 06:46 [06:45:58]line Смена: 544 ФФД: 1.0 [06:45:58]line ЗНМ: 0300000109 [06:45:58]line РНМ: 0000000000091777 [06:45:58]line Версия ККМ: 001 [06:45:58]line ФМ: 0000000000871756 [06:45:58]line ФД: 201749 [06:45:58]line ФПД: 68811607073965 [06:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064600&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201749&fm=68811607073965&tin=02508201610067®Number=0000000000091777&sum=100000 [06:45:59]written 0, free lines is 4095 [06:45:59]Write to MH i2c: 01 00 00 8E 12 A0 [06:45:59]Write i2c OK [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: 01 [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: 01 07 00 [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: 01 07 00 8E 12 00 00 00 00 00 8B 0C 3E [06:45:59]RasterBufferAndPrint [06:45:59]line [06:45:59]line [06:45:59]line [06:45:59]line [06:45:59]line [06:45:59]written 0, free lines is 3213 [06:45:59]MH_Cut [06:45:59]Write to MH i2c: D1 01 00 95 12 01 79 [06:45:59]Write i2c OK [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: D1 [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: D1 01 00 [06:45:59]MH_I2C_Read... [06:45:59]Read from MH i2c: D1 01 00 95 12 00 78 [06:45:59]Write to MH i2c: 01 00 00 96 12 A8 [06:45:59]Write i2c OK [06:45:59]MH_I2C_Read... [06:46:00]*** Cut start [06:46:00]*** Purtial cut [06:46:00]*** Stage 1: CUTSNS_PIN = 1 [06:46:00]Read from MH i2c: 01 [06:46:00]MH_I2C_Read... [06:46:00]*** Stop cut motor [06:46:00]*** Cut end [06:46:00]Read from MH i2c: 01 07 00 [06:46:00]MH_I2C_Read... [06:46:00]Read from MH i2c: 01 07 00 96 12 00 00 00 00 00 FF 0F BD [06:46:00]process_action close_receipt done [06:46:00]requested_data is exist [06:46:00]produce_requested_data [06:46:00]requested_item fm.sn is exist - process it [06:46:00]wFMCommunicate request_size=4 [06:46:00]MH_SAM_APDU [06:46:00]CAPDU: 80 11 00 00 [06:46:00]Write to MH i2c: E2 08 00 97 12 80 11 00 00 00 00 00 00 23 [06:46:00]Write i2c OK [06:46:00]MH_I2C_Read... [06:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:00]Read from MH i2c: E2 [06:46:00]MH_I2C_Read... [06:46:00]Read from MH i2c: E2 17 00 [06:46:00]MH_I2C_Read... [06:46:00]Read from MH i2c: E2 17 00 97 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 78 [06:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:46:00]wFMCommunicate OK [06:46:00]requested_item fd.num is exist - process it [06:46:00]SAM_PROTO_GetFieldsCounters [06:46:00]wFMCommunicate request_size=4 [06:46:00]MH_SAM_APDU [06:46:00]CAPDU: 80 13 00 00 [06:46:00]Write to MH i2c: E2 08 00 98 12 80 13 00 00 00 00 00 00 26 [06:46:00]Write i2c OK [06:46:00]MH_I2C_Read... [06:46:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:00]Read from MH i2c: E2 [06:46:00]MH_I2C_Read... [06:46:00]Read from MH i2c: E2 62 00 [06:46:00]MH_I2C_Read... [06:46:00]Read from MH i2c: E2 62 00 98 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 15 14 03 00 0E 04 04 00 20 02 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 18 [06:46:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 15 14 03 00 0E 04 04 00 20 02 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 [06:46:00]wFMCommunicate OK [06:46:00]SAM_PROTO_GetFieldsCounters done [06:46:00]requested_item shift.num is exist - process it [06:46:00]requested_item shift.opened is exist - process it [06:46:00]req_shift_opened [06:46:00]FM_GetShiftState [06:46:00]SAM_PROTO_GetShiftState [06:46:00]wFMCommunicate request_size=4 [06:46:00]MH_SAM_APDU [06:46:00]CAPDU: 80 13 01 00 [06:46:00]Write to MH i2c: E2 08 00 99 12 80 13 01 00 00 00 00 00 28 [06:46:00]Write i2c OK [06:46:00]MH_I2C_Read... [06:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:00]Read from MH i2c: E2 [06:46:00]MH_I2C_Read... [06:46:00]Read from MH i2c: E2 0E 00 [06:46:00]MH_I2C_Read... [06:46:00]Read from MH i2c: E2 0E 00 99 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2A [06:46:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:46:00]wFMCommunicate OK [06:46:00]SAM_PROTO_GetShiftState done [06:46:00]FM_GetShiftState done [06:46:00]req_shift_opened done [06:46:00]requested_item shift.open_date is exist - process it [06:46:00]req_shift_open_date [06:46:00]req_shift_open_date done [06:46:00]produce_requested_data done [06:46:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201749,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:46:00]process_action_free close_receipt [06:46:00]json_value_free [06:46:00]json_value_free done [06:46:00]process_json_proto returns [06:46:00]Send response to host [06:46:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201749,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:46:00]free response buf [06:46:00]execute_script done [06:46:00]execute_script returns [06:46:00]free content buf [06:46:00]Sock 8.Close socket [06:46:00]Sock 8.Thread stoped [06:46:04]ConnectInit Can't connect to host [06:46:04]CommunicateWithHost connect error [06:46:04]CommunicateWithHost err = -1 [06:46:04]OFD Sender: Server communicate error [06:46:05]OFD Sender: Processing packet 201748 [packets to send 113, broken 111] [06:46:05]ProducePacketName [06:46:05]name=ofd_packets/00201748 [06:46:05]OFD Sender: To server: pG, [06:46:05]CommunicateWithHost lk.salyk.kg:30040 [06:46:05]ConnectInit lk.salyk.kg [06:46:05]Connected sock=6 [06:46:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EE 9A 07 01 0A 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 14 03 00 35 04 06 00 D1 28 22 0F 61 25 3D B0 41 96 DF B3 01 70 [06:46:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DD 66 47 00 9C 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 14 03 00 F4 03 04 00 54 8D 1D 67 B6 04 01 00 00 38 45 52 7C 9B 2D 98 32 [06:46:05]CommunicateWithHost err = 0 [06:46:05]CheckOFDResponse [06:46:05]1017 (14) - 77093643461234 [06:46:05]1041 (16) - 0000000000871756 [06:46:05]1040 (4) - 201748 [06:46:05]1012 (4) - 27.10.2024 00:46 [06:46:05]1206 (1) - 0 [06:46:05]OFD Sender: Remove packet 201748 [06:46:05]ProducePacketName [06:46:05]name=ofd_packets/00201748 [06:46:05]NVStorageDeleteData [06:46:05]OFD Sender: Processing packet 201749 [packets to send 112, broken 111] [06:46:05]ProducePacketName [06:46:05]name=ofd_packets/00201749 [06:46:05]OFD Sender: To server: pG, [06:46:05]CommunicateWithHost lk.salyk.kg:30040 [06:46:05]ConnectInit lk.salyk.kg [06:46:06]Connected sock=6 [06:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 15 78 08 01 E6 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 A8 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 14 03 00 35 04 06 00 3E 95 73 65 64 AD 26 0B 87 3F AA 62 24 44 [06:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 13 A4 47 00 A6 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 14 03 00 F4 03 04 00 55 8D 1D 67 B6 04 01 00 00 BE 71 74 6B 01 2A 68 B5 [06:46:06]CommunicateWithHost err = 0 [06:46:06]CheckOFDResponse [06:46:06]1017 (14) - 77093643461234 [06:46:06]1041 (16) - 0000000000871756 [06:46:06]1040 (4) - 201749 [06:46:06]1012 (4) - 27.10.2024 00:46 [06:46:06]1206 (1) - 0 [06:46:06]OFD Sender: Remove packet 201749 [06:46:06]ProducePacketName [06:46:06]name=ofd_packets/00201749 [06:46:06]NVStorageDeleteData [06:46:06]accept exits with 10 [06:46:06]New connection [06:46:06]New thread 3066936676 created [06:46:06]Thread 3067080036 joined [06:46:06]Waiting for new connection... [06:46:06] Sock 10.Parse request [06:46:06]Sock 10.Check first char [06:46:06]Sock 10.First char is OK [06:46:06]request: POST /json_proto HTTP/1.0 [06:46:06]Method: POST [06:46:06]URL: /json_proto [06:46:06]Method is POST - this is cgi request [06:46:06]url: /json_proto [06:46:06]query_string will be loaded in cgi processing [06:46:06]execute_cgi json_proto POST (null) [06:46:06]execute_cgi path=json_proto method=POST [06:46:06]POST find Content-Length [06:46:06]Host: 172.17.63.195:8080 [06:46:06]Content-Length: 682 [06:46:06]Content-Type: application/json [06:46:06] [06:46:06]POST finish read [06:46:06]Found Content-Length = 682 [06:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:46:06]execute_script... [06:46:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:46:06]POST & json_proto [06:46:06]process_json_proto [06:46:06]json parsed OK: [06:46:06]protocol is kg_v1.0 [06:46:06]action value=close_receipt [06:46:06]process_action close_receipt [06:46:06]cmd_close_receipt [06:46:06]MH_GetDate [06:46:06]Write to MH i2c: F0 00 00 9A 12 9B [06:46:06]Write i2c OK [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: F0 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: F0 09 00 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: F0 09 00 9A 12 00 B1 E1 1D 67 68 46 19 67 E8 [06:46:06]GetLastDocTimeStamp 1730011560 [06:46:06]current date 1730011569 [06:46:06]FM_GetShiftState [06:46:06]SAM_PROTO_GetShiftState [06:46:06]wFMCommunicate request_size=4 [06:46:06]MH_SAM_APDU [06:46:06]CAPDU: 80 13 01 00 [06:46:06]Write to MH i2c: E2 08 00 9B 12 80 13 01 00 00 00 00 00 2A [06:46:06]Write i2c OK [06:46:06]MH_I2C_Read... [06:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:06]Read from MH i2c: E2 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 0E 00 [06:46:06]MH_I2C_Read... [06:46:06]Read from MH i2c: E2 0E 00 9B 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2C [06:46:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:46:06]wFMCommunicate OK [06:46:06]SAM_PROTO_GetShiftState done [06:46:06]FM_GetShiftState done [06:46:06]opened in 1729987312 [06:46:06]opened+sec_in_day 1730073712 [06:46:06]quantity*price = 100015 [06:46:06]sum+1 = 100017 [06:46:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 42 27.10.2024 06:46 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201750 ФПД: 244464846799909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064609&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201750&fm=244464846799909&tin=02508201610067®Number=0000000000091777&sum=100000 [06:46:07]StoreToDocumentArchive [06:46:07]shift 544 fd 201750 [06:46:07]save to /storage/0544/doc_00201750 [06:46:07]save last doc name /storage/0544/doc_00201750 to /storage/kkm_last_doc_name [06:46:07]save OK [06:46:07]Clear old archive folders... [06:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:46:07]tlvbuf is 000CB0C0 [06:46:07]SAM_PROTO_ClearQueue [06:46:07]wFMCommunicate request_size=4 [06:46:07]MH_SAM_APDU [06:46:07]CAPDU: 80 09 00 00 [06:46:07]Write to MH i2c: E2 08 00 A8 12 80 09 00 00 00 00 00 00 2C [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:07]Read from MH i2c: E2 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 03 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 03 00 A8 12 00 90 00 2E [06:46:07]RAPDU: 90 00 [06:46:07]wFMCommunicate OK [06:46:07]SAM_PROTO_ClearQueue done [06:46:07]KKMCreateOFDPacket [06:46:07]OFDProtocolAddRootSTLVToBuf [06:46:07]FM_MakeSignedData [06:46:07]FM_MakeSignedData [06:46:07]SAM_PROTO_SignData [06:46:07]wFMCommunicate request_size=4 [06:46:07]MH_SAM_APDU [06:46:07]CAPDU: 80 0D 01 02 [06:46:07]Write to MH i2c: E2 08 00 A9 12 80 0D 01 02 00 00 00 00 34 [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:07]Read from MH i2c: E2 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 03 00 [06:46:07]MH_I2C_Read... [06:46:07]Read from MH i2c: E2 03 00 A9 12 00 90 00 2F [06:46:07]RAPDU: 90 00 [06:46:07]wFMCommunicate OK [06:46:07]wFMCommunicate request_size=255 [06:46:07]MH_SAM_APDU [06:46:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2A 00 00 00 F4 03 04 00 B1 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 14 03 00 35 04 06 00 DE [06:46:07]Write to MH i2c: E2 02 01 AA 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2A 00 00 00 F4 03 04 00 B1 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 14 03 00 35 04 06 00 DE 00 00 2F [06:46:07]Write i2c OK [06:46:07]MH_I2C_Read... [06:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:08]Read from MH i2c: E2 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 03 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 03 00 AA 12 00 90 00 30 [06:46:08]RAPDU: 90 00 [06:46:08]wFMCommunicate OK [06:46:08]wFMCommunicate request_size=10 [06:46:08]MH_SAM_APDU [06:46:08]CAPDU: 80 0D 02 02 05 56 E8 5A 84 25 [06:46:08]Write to MH i2c: E2 0D 00 AB 12 80 0D 02 02 05 00 56 E8 5A 84 25 00 00 82 [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:08]Read from MH i2c: E2 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 03 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 03 00 AB 12 00 90 00 31 [06:46:08]RAPDU: 90 00 [06:46:08]wFMCommunicate OK [06:46:08]wFMCommunicate request_size=4 [06:46:08]MH_SAM_APDU [06:46:08]CAPDU: 80 0D 03 02 [06:46:08]Write to MH i2c: E2 08 00 AC 12 80 0D 03 02 00 00 00 00 39 [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:08]Read from MH i2c: E2 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 0B 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 0B 00 AC 12 00 B2 6C 75 5F 43 74 A6 00 90 00 89 [06:46:08]RAPDU: B2 6C 75 5F 43 74 A6 00 90 00 [06:46:08]wFMCommunicate OK [06:46:08]SAM_PROTO_SignData done [06:46:08]FM_MakeSignedData done [06:46:08]CreateOFDProtocolMessage [06:46:08]wFMCommunicate request_size=4 [06:46:08]MH_SAM_APDU [06:46:08]CAPDU: 80 11 00 00 [06:46:08]Write to MH i2c: E2 08 00 AD 12 80 11 00 00 00 00 00 00 39 [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:08]Read from MH i2c: E2 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 17 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: E2 17 00 AD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8E [06:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:46:08]wFMCommunicate OK [06:46:08]CreateOFDProtocolMessage done [06:46:08]OFDSenderStorePacket 201750 [06:46:08]StoreOFDPacket docnum=201750 [06:46:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3D 3B 07 01 EC 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2A 00 00 00 F4 03 04 00 B1 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 14 03 00 35 04 06 00 DE 56 E8 5A 84 25 B2 6C 75 5F 43 74 A6 00 [06:46:08]CheckFolder [06:46:08]dirname=/storage/ofd_packets [06:46:08]CheckFolder done [06:46:08]ProducePacketName [06:46:08]name=ofd_packets/00201750 [06:46:08]NVStorageSaveData ofd_packets/00201750 [06:46:08]File name is /storage/ofd_packets/00201750 [06:46:08]Write 301 bytes [06:46:08]NVStorageSaveData done [06:46:08]OFDSenderStorePacket done [06:46:08]KKMCreateOFDPacket done [06:46:08]NVStorageSaveData kkm_last_timestamp [06:46:08]File name is /storage/kkm_last_timestamp [06:46:08]Write 4 bytes [06:46:08]NVStorageSaveData done [06:46:08]ExternCall_PrintAddStr [06:46:08]wPrintStart [06:46:08]Write to MH i2c: 01 00 00 AE 12 C0 [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: 01 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: 01 07 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: 01 07 00 AE 12 00 00 00 00 00 FF 0F D5 [06:46:08]RasterBufferAndPrint [06:46:08]line Счет N : (1)449506 [06:46:08]line ИНН: 02508201610067 [06:46:08]line Контрольно-Кассовый Чек [06:46:08]line ПРОДАЖА [06:46:08]line ТРК (МРК, ГНК) : 31 [06:46:08]line Товар: 2710124130 [06:46:08]line Аи-92-К-2 [06:46:08]line 14.950 * 66.90 [06:46:08]line = 1000.16 [06:46:08]line НДС 12% НСП 1% [06:46:08]line > о реализуемом товаре [06:46:08]line ОКРУГЛЕНИЕ: -0.16 [06:46:08]line ИТОГО: 1000.00 [06:46:08]line Внесено: 1000.00 [06:46:08]line СДАЧА: 0.00 [06:46:08]line НСП 1% : 8.85 [06:46:08]line НДС 12% : 106.21 [06:46:08]line Наличными: 1000.00 [06:46:08]line Безнал.: 0.00 [06:46:08]line Место: АЗС № 171 "Партнер Нефть" [06:46:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:46:08]line СНО: Общий режим [06:46:08]line Чек 42 27.10.2024 06:46 [06:46:08]line Смена: 544 ФФД: 1.0 [06:46:08]line ЗНМ: 0300000109 [06:46:08]line РНМ: 0000000000091777 [06:46:08]line Версия ККМ: 001 [06:46:08]line ФМ: 0000000000871756 [06:46:08]OFD Sender: Processing packet 201750 [packets to send 112, broken 111] [06:46:08]ProducePacketName [06:46:08]name=ofd_packets/00201750 [06:46:08]OFD Sender: To server: pG, [06:46:08]CommunicateWithHost lk.salyk.kg:30040 [06:46:08]ConnectInit lk.salyk.kg [06:46:08]line ФД: 201750 [06:46:08]line ФПД: 244464846799909 [06:46:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064609&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201750&fm=244464846799909&tin=02508201610067®Number=0000000000091777&sum=100000 [06:46:08]written 0, free lines is 4095 [06:46:08]Connected sock=9 [06:46:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3D 3B 07 01 EC 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2A 00 00 00 F4 03 04 00 B1 E1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 14 03 00 35 04 06 00 DE 56 E8 5A 84 25 B2 6C 75 5F 43 74 A6 00 [06:46:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 99 A5 47 00 26 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 14 03 00 F4 03 04 00 57 8D 1D 67 B6 04 01 00 00 00 70 80 35 91 6A 03 68 [06:46:08]CommunicateWithHost err = 0 [06:46:08]CheckOFDResponse [06:46:08]1017 (14) - 77093643461234 [06:46:08]1041 (16) - 0000000000871756 [06:46:08]1040 (4) - 201750 [06:46:08]1012 (4) - 27.10.2024 00:46 [06:46:08]1206 (1) - 0 [06:46:08]OFD Sender: Remove packet 201750 [06:46:08]ProducePacketName [06:46:08]name=ofd_packets/00201750 [06:46:08]NVStorageDeleteData [06:46:08]Write to MH i2c: 01 00 00 D9 12 EB [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: 01 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: 01 07 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: 01 07 00 D9 12 00 00 00 00 00 A2 0C A0 [06:46:08]RasterBufferAndPrint [06:46:08]line [06:46:08]line [06:46:08]line [06:46:08]line [06:46:08]line [06:46:08]written 0, free lines is 3242 [06:46:08]MH_Cut [06:46:08]Write to MH i2c: D1 01 00 E0 12 01 C4 [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: D1 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: D1 01 00 [06:46:08]MH_I2C_Read... [06:46:08]Read from MH i2c: D1 01 00 E0 12 00 C3 [06:46:08]Write to MH i2c: 01 00 00 E1 12 F3 [06:46:08]Write i2c OK [06:46:08]MH_I2C_Read... [06:46:09]OFD Sender: No OFD packet to send [06:46:09]*** Cut start [06:46:09]*** Purtial cut [06:46:09]*** Stage 1: CUTSNS_PIN = 1 [06:46:09]Read from MH i2c: 01 [06:46:09]MH_I2C_Read... [06:46:09]*** Stop cut motor [06:46:09]*** Cut end [06:46:09]Read from MH i2c: 01 07 00 [06:46:09]MH_I2C_Read... [06:46:09]Read from MH i2c: 01 07 00 E1 12 00 00 00 00 00 FF 0F 08 [06:46:09]process_action close_receipt done [06:46:09]requested_data is exist [06:46:09]produce_requested_data [06:46:09]requested_item fm.sn is exist - process it [06:46:09]wFMCommunicate request_size=4 [06:46:09]MH_SAM_APDU [06:46:09]CAPDU: 80 11 00 00 [06:46:09]Write to MH i2c: E2 08 00 E2 12 80 11 00 00 00 00 00 00 6E [06:46:09]Write i2c OK [06:46:09]MH_I2C_Read... [06:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:09]Read from MH i2c: E2 [06:46:09]MH_I2C_Read... [06:46:09]Read from MH i2c: E2 17 00 [06:46:09]MH_I2C_Read... [06:46:09]Read from MH i2c: E2 17 00 E2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C3 [06:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:46:09]wFMCommunicate OK [06:46:09]requested_item fd.num is exist - process it [06:46:09]SAM_PROTO_GetFieldsCounters [06:46:09]wFMCommunicate request_size=4 [06:46:09]MH_SAM_APDU [06:46:09]CAPDU: 80 13 00 00 [06:46:09]Write to MH i2c: E2 08 00 E3 12 80 13 00 00 00 00 00 00 71 [06:46:09]Write i2c OK [06:46:09]MH_I2C_Read... [06:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:10]Read from MH i2c: E2 [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: E2 62 00 [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: E2 62 00 E3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 16 14 03 00 0E 04 04 00 20 02 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 67 [06:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 16 14 03 00 0E 04 04 00 20 02 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 [06:46:10]wFMCommunicate OK [06:46:10]SAM_PROTO_GetFieldsCounters done [06:46:10]requested_item shift.num is exist - process it [06:46:10]requested_item shift.opened is exist - process it [06:46:10]req_shift_opened [06:46:10]FM_GetShiftState [06:46:10]SAM_PROTO_GetShiftState [06:46:10]wFMCommunicate request_size=4 [06:46:10]MH_SAM_APDU [06:46:10]CAPDU: 80 13 01 00 [06:46:10]Write to MH i2c: E2 08 00 E4 12 80 13 01 00 00 00 00 00 73 [06:46:10]Write i2c OK [06:46:10]MH_I2C_Read... [06:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:10]Read from MH i2c: E2 [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: E2 0E 00 [06:46:10]MH_I2C_Read... [06:46:10]Read from MH i2c: E2 0E 00 E4 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 75 [06:46:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:46:10]wFMCommunicate OK [06:46:10]SAM_PROTO_GetShiftState done [06:46:10]FM_GetShiftState done [06:46:10]req_shift_opened done [06:46:10]requested_item shift.open_date is exist - process it [06:46:10]req_shift_open_date [06:46:10]req_shift_open_date done [06:46:10]produce_requested_data done [06:46:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201750,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:46:10]process_action_free close_receipt [06:46:10]json_value_free [06:46:10]json_value_free done [06:46:10]process_json_proto returns [06:46:10]Send response to host [06:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201750,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:46:10]free response buf [06:46:10]execute_script done [06:46:10]execute_script returns [06:46:10]free content buf [06:46:10]Sock 10.Close socket [06:46:10]Sock 10.Thread stoped [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:30]accept exits with 6 [06:48:30]New connection [06:48:30]New thread 3067080036 created [06:48:30]Thread 3066936676 joined [06:48:30]Waiting for new connection... [06:48:30] Sock 6.Parse request [06:48:30]Sock 6.Check first char [06:48:30]Sock 6.First char is OK [06:48:30]request: POST /json_proto HTTP/1.0 [06:48:30]Method: POST [06:48:30]URL: /json_proto [06:48:30]Method is POST - this is cgi request [06:48:30]url: /json_proto [06:48:30]query_string will be loaded in cgi processing [06:48:30]execute_cgi json_proto POST (null) [06:48:30]execute_cgi path=json_proto method=POST [06:48:30]POST find Content-Length [06:48:30]Host: 172.17.63.195:8080 [06:48:30]Content-Length: 677 [06:48:30]Content-Type: application/json [06:48:30] [06:48:30]POST finish read [06:48:30]Found Content-Length = 677 [06:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:30]execute_script... [06:48: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)449507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:30]POST & json_proto [06:48:30]process_json_proto [06:48:30]json parsed OK: [06:48:30]protocol is kg_v1.0 [06:48:30]action value=close_receipt [06:48:30]process_action close_receipt [06:48:30]cmd_close_receipt [06:48:30]MH_GetDate [06:48:30]Write to MH i2c: F0 00 00 E5 12 E6 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: F0 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: F0 09 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: F0 09 00 E5 12 00 41 E2 1D 67 68 46 19 67 C4 [06:48:30]GetLastDocTimeStamp 1730011569 [06:48:30]current date 1730011713 [06:48:30]FM_GetShiftState [06:48:30]SAM_PROTO_GetShiftState [06:48:30]wFMCommunicate request_size=4 [06:48:30]MH_SAM_APDU [06:48:30]CAPDU: 80 13 01 00 [06:48:30]Write to MH i2c: E2 08 00 E6 12 80 13 01 00 00 00 00 00 75 [06:48:30]Write i2c OK [06:48:30]MH_I2C_Read... [06:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:30]Read from MH i2c: E2 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 0E 00 [06:48:30]MH_I2C_Read... [06:48:30]Read from MH i2c: E2 0E 00 E6 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 77 [06:48:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:48:30]wFMCommunicate OK [06:48:30]SAM_PROTO_GetShiftState done [06:48:30]FM_GetShiftState done [06:48:30]opened in 1729987312 [06:48:30]opened+sec_in_day 1730073712 [06:48:30]quantity*price = 40006 [06:48:30]sum+1 = 40007 [06:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 43 27.10.2024 06:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201751 ФПД: 37214096377729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064833&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201751&fm=37214096377729&tin=02508201610067®Number=0000000000091777&sum=40000 [06:48:31]StoreToDocumentArchive [06:48:31]shift 544 fd 201751 [06:48:31]save to /storage/0544/doc_00201751 [06:48:31]save last doc name /storage/0544/doc_00201751 to /storage/kkm_last_doc_name [06:48:31]save OK [06:48:31]Clear old archive folders... [06:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:31]tlvbuf is B6EE08C0 [06:48:31]SAM_PROTO_ClearQueue [06:48:31]wFMCommunicate request_size=4 [06:48:31]MH_SAM_APDU [06:48:31]CAPDU: 80 09 00 00 [06:48:31]Write to MH i2c: E2 08 00 F3 12 80 09 00 00 00 00 00 00 77 [06:48:31]Write i2c OK [06:48:31]MH_I2C_Read... [06:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:31]Read from MH i2c: E2 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 03 00 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [06:48:31]RAPDU: 90 00 [06:48:31]wFMCommunicate OK [06:48:31]SAM_PROTO_ClearQueue done [06:48:31]KKMCreateOFDPacket [06:48:31]OFDProtocolAddRootSTLVToBuf [06:48:31]FM_MakeSignedData [06:48:31]FM_MakeSignedData [06:48:31]SAM_PROTO_SignData [06:48:31]wFMCommunicate request_size=4 [06:48:31]MH_SAM_APDU [06:48:31]CAPDU: 80 0D 01 02 [06:48:31]Write to MH i2c: E2 08 00 F4 12 80 0D 01 02 00 00 00 00 7F [06:48:31]Write i2c OK [06:48:31]MH_I2C_Read... [06:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:31]Read from MH i2c: E2 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 03 00 [06:48:31]MH_I2C_Read... [06:48:31]Read from MH i2c: E2 03 00 F4 12 00 90 00 7A [06:48:31]RAPDU: 90 00 [06:48:31]wFMCommunicate OK [06:48:31]wFMCommunicate request_size=255 [06:48:31]MH_SAM_APDU [06:48: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 41 E2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 14 03 00 35 04 06 00 21 [06:48:31]Write to MH i2c: E2 02 01 F5 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 41 E2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 14 03 00 35 04 06 00 21 00 00 25 [06:48:31]Write i2c OK [06:48:31]MH_I2C_Read... [06:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:32]Read from MH i2c: E2 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 03 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 03 00 F5 12 00 90 00 7B [06:48:32]RAPDU: 90 00 [06:48:32]wFMCommunicate OK [06:48:32]wFMCommunicate request_size=10 [06:48:32]MH_SAM_APDU [06:48:32]CAPDU: 80 0D 02 02 05 D8 94 FE C7 81 [06:48:32]Write to MH i2c: E2 0D 00 F6 12 80 0D 02 02 05 00 D8 94 FE C7 81 00 00 3E [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:32]Read from MH i2c: E2 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 03 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 03 00 F6 12 00 90 00 7C [06:48:32]RAPDU: 90 00 [06:48:32]wFMCommunicate OK [06:48:32]wFMCommunicate request_size=4 [06:48:32]MH_SAM_APDU [06:48:32]CAPDU: 80 0D 03 02 [06:48:32]Write to MH i2c: E2 08 00 F7 12 80 0D 03 02 00 00 00 00 84 [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:32]Read from MH i2c: E2 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 0B 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 0B 00 F7 12 00 2C D1 23 01 60 E4 17 25 90 00 26 [06:48:32]RAPDU: 2C D1 23 01 60 E4 17 25 90 00 [06:48:32]wFMCommunicate OK [06:48:32]SAM_PROTO_SignData done [06:48:32]FM_MakeSignedData done [06:48:32]CreateOFDProtocolMessage [06:48:32]wFMCommunicate request_size=4 [06:48:32]MH_SAM_APDU [06:48:32]CAPDU: 80 11 00 00 [06:48:32]Write to MH i2c: E2 08 00 F8 12 80 11 00 00 00 00 00 00 84 [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:32]Read from MH i2c: E2 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 17 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 17 00 F8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [06:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:48:32]wFMCommunicate OK [06:48:32]CreateOFDProtocolMessage done [06:48:32]OFDSenderStorePacket 201751 [06:48:32]StoreOFDPacket docnum=201751 [06:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 05 07 01 F4 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 41 E2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 14 03 00 35 04 06 00 21 D8 94 FE C7 81 2C D1 23 01 60 E4 17 25 [06:48:32]CheckFolder [06:48:32]dirname=/storage/ofd_packets [06:48:32]CheckFolder done [06:48:32]ProducePacketName [06:48:32]name=ofd_packets/00201751 [06:48:32]NVStorageSaveData ofd_packets/00201751 [06:48:32]File name is /storage/ofd_packets/00201751 [06:48:32]Write 301 bytes [06:48:32]NVStorageSaveData done [06:48:32]OFDSenderStorePacket done [06:48:32]KKMCreateOFDPacket done [06:48:32]NVStorageSaveData kkm_last_timestamp [06:48:32]File name is /storage/kkm_last_timestamp [06:48:32]Write 4 bytes [06:48:32]NVStorageSaveData done [06:48:32]ExternCall_PrintAddStr [06:48:32]wPrintStart [06:48:32]Write to MH i2c: 01 00 00 F9 12 0B [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: 01 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: 01 07 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: 01 07 00 F9 12 00 00 00 00 00 FF 0F 20 [06:48:32]RasterBufferAndPrint [06:48:32]line Счет N : (1)449507 [06:48:32]line ИНН: 02508201610067 [06:48:32]line Контрольно-Кассовый Чек [06:48:32]line ПРОДАЖА [06:48:32]line ТРК (МРК, ГНК) : 31 [06:48:32]line Товар: 2710124130 [06:48:32]line Аи-92-К-2 [06:48:32]line 5.980 * 66.90 [06:48:32]line = 400.06 [06:48:32]line НДС 12% НСП 1% [06:48:32]line > о реализуемом товаре [06:48:32]line ОКРУГЛЕНИЕ: -0.06 [06:48:32]line ИТОГО: 400.00 [06:48:32]line Внесено: 400.00 [06:48:32]line СДАЧА: 0.00 [06:48:32]line НСП 1% : 3.54 [06:48:32]line НДС 12% : 42.48 [06:48:32]line Наличными: 400.00 [06:48:32]line Безнал.: 0.00 [06:48:32]line Место: АЗС № 171 "Партнер Нефть" [06:48:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:48:32]line СНО: Общий режим [06:48:32]line Чек 43 27.10.2024 06:48 [06:48:32]line Смена: 544 ФФД: 1.0 [06:48:32]line ЗНМ: 0300000109 [06:48:32]line РНМ: 0000000000091777 [06:48:32]line Версия ККМ: 001 [06:48:32]line ФМ: 0000000000871756 [06:48:32]line ФД: 201751 [06:48:32]line ФПД: 37214096377729 [06:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T064833&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201751&fm=37214096377729&tin=02508201610067®Number=0000000000091777&sum=40000 [06:48:32]OFD Sender: Processing packet 201751 [packets to send 112, broken 111] [06:48:32]ProducePacketName [06:48:32]name=ofd_packets/00201751 [06:48:32]OFD Sender: To server: pG, [06:48:32]CommunicateWithHost lk.salyk.kg:30040 [06:48:32]ConnectInit lk.salyk.kg [06:48:32]written 0, free lines is 4095 [06:48:32]Connected sock=10 [06:48:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 05 07 01 F4 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 41 E2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 14 03 00 35 04 06 00 21 D8 94 FE C7 81 2C D1 23 01 60 E4 17 25 [06:48:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 11 0F 47 00 A9 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 14 03 00 F4 03 04 00 E8 8D 1D 67 B6 04 01 00 00 7D D0 7A 10 77 5B E8 37 [06:48:32]CommunicateWithHost err = 0 [06:48:32]CheckOFDResponse [06:48:32]1017 (14) - 77093643461234 [06:48:32]1041 (16) - 0000000000871756 [06:48:32]1040 (4) - 201751 [06:48:32]1012 (4) - 27.10.2024 00:48 [06:48:32]1206 (1) - 0 [06:48:32]OFD Sender: Remove packet 201751 [06:48:32]ProducePacketName [06:48:32]name=ofd_packets/00201751 [06:48:32]NVStorageDeleteData [06:48:33]Write to MH i2c: 01 00 00 24 13 37 [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: 01 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: 01 07 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 8A 0C D4 [06:48:33]RasterBufferAndPrint [06:48:33]line [06:48:33]line [06:48:33]line [06:48:33]line [06:48:33]line [06:48:33]written 0, free lines is 3213 [06:48:33]MH_Cut [06:48:33]Write to MH i2c: D1 01 00 2B 13 01 10 [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: D1 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: D1 01 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: D1 01 00 2B 13 00 0F [06:48:33]Write to MH i2c: 01 00 00 2C 13 3F [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]OFD Sender: No OFD packet to send [06:48:33]*** Cut start [06:48:33]*** Purtial cut [06:48:33]*** Stage 1: CUTSNS_PIN = 1 [06:48:34]Read from MH i2c: 01 [06:48:34]MH_I2C_Read... [06:48:34]*** Stop cut motor [06:48:34]*** Cut end [06:48:34]Read from MH i2c: 01 07 00 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: 01 07 00 2C 13 00 00 00 00 00 FF 0F 54 [06:48:34]process_action close_receipt done [06:48:34]requested_data is exist [06:48:34]produce_requested_data [06:48:34]requested_item fm.sn is exist - process it [06:48:34]wFMCommunicate request_size=4 [06:48:34]MH_SAM_APDU [06:48:34]CAPDU: 80 11 00 00 [06:48:34]Write to MH i2c: E2 08 00 2D 13 80 11 00 00 00 00 00 00 BA [06:48:34]Write i2c OK [06:48:34]MH_I2C_Read... [06:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:34]Read from MH i2c: E2 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: E2 17 00 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: E2 17 00 2D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0F [06:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:48:34]wFMCommunicate OK [06:48:34]requested_item fd.num is exist - process it [06:48:34]SAM_PROTO_GetFieldsCounters [06:48:34]wFMCommunicate request_size=4 [06:48:34]MH_SAM_APDU [06:48:34]CAPDU: 80 13 00 00 [06:48:34]Write to MH i2c: E2 08 00 2E 13 80 13 00 00 00 00 00 00 BD [06:48:34]Write i2c OK [06:48:34]MH_I2C_Read... [06:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:34]Read from MH i2c: E2 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: E2 62 00 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: E2 62 00 2E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 17 14 03 00 0E 04 04 00 20 02 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 B7 [06:48:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 17 14 03 00 0E 04 04 00 20 02 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 [06:48:34]wFMCommunicate OK [06:48:34]SAM_PROTO_GetFieldsCounters done [06:48:34]requested_item shift.num is exist - process it [06:48:34]requested_item shift.opened is exist - process it [06:48:34]req_shift_opened [06:48:34]FM_GetShiftState [06:48:34]SAM_PROTO_GetShiftState [06:48:34]wFMCommunicate request_size=4 [06:48:34]MH_SAM_APDU [06:48:34]CAPDU: 80 13 01 00 [06:48:34]Write to MH i2c: E2 08 00 2F 13 80 13 01 00 00 00 00 00 BF [06:48:34]Write i2c OK [06:48:34]MH_I2C_Read... [06:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:34]Read from MH i2c: E2 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: E2 0E 00 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: E2 0E 00 2F 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C1 [06:48:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [06:48:34]wFMCommunicate OK [06:48:34]SAM_PROTO_GetShiftState done [06:48:34]FM_GetShiftState done [06:48:34]req_shift_opened done [06:48:34]requested_item shift.open_date is exist - process it [06:48:34]req_shift_open_date [06:48:34]req_shift_open_date done [06:48:34]produce_requested_data done [06:48:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201751,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [06:48:34]process_action_free close_receipt [06:48:34]json_value_free [06:48:34]json_value_free done [06:48:34]process_json_proto returns [06:48:34]Send response to host [06:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201751,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [06:48:34]free response buf [06:48:34]execute_script done [06:48:34]execute_script returns [06:48:34]free content buf [06:48:34]Sock 6.Close socket [06:48:34]Sock 6.Thread stoped [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:31]accept exits with 9 [07:01:31]New connection [07:01:31]New thread 3066936676 created [07:01:31]Thread 3067080036 joined [07:01:31]Waiting for new connection... [07:01:31] Sock 9.Parse request [07:01:31]Sock 9.Check first char [07:01:31]Sock 9.First char is OK [07:01:31]request: POST /json_proto HTTP/1.0 [07:01:31]Method: POST [07:01:31]URL: /json_proto [07:01:31]Method is POST - this is cgi request [07:01:31]url: /json_proto [07:01:31]query_string will be loaded in cgi processing [07:01:31]execute_cgi json_proto POST (null) [07:01:31]execute_cgi path=json_proto method=POST [07:01:31]POST find Content-Length [07:01:31]Host: 172.17.63.195:8080 [07:01:31]Content-Length: 677 [07:01:31]Content-Type: application/json [07:01:31] [07:01:31]POST finish read [07:01:31]Found Content-Length = 677 [07:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:01:31]execute_script... [07:01:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:01:31]POST & json_proto [07:01:31]process_json_proto [07:01:31]json parsed OK: [07:01:31]protocol is kg_v1.0 [07:01:31]action value=close_receipt [07:01:31]process_action close_receipt [07:01:31]cmd_close_receipt [07:01:31]MH_GetDate [07:01:31]Write to MH i2c: F0 00 00 30 13 32 [07:01:31]Write i2c OK [07:01:31]MH_I2C_Read... [07:01:31]Read from MH i2c: F0 [07:01:31]MH_I2C_Read... [07:01:31]Read from MH i2c: F0 09 00 [07:01:31]MH_I2C_Read... [07:01:31]Read from MH i2c: F0 09 00 30 13 00 4F E5 1D 67 68 46 19 67 21 [07:01:31]GetLastDocTimeStamp 1730011713 [07:01:31]current date 1730012495 [07:01:31]FM_GetShiftState [07:01:31]SAM_PROTO_GetShiftState [07:01:31]wFMCommunicate request_size=4 [07:01:31]MH_SAM_APDU [07:01:31]CAPDU: 80 13 01 00 [07:01:31]Write to MH i2c: E2 08 00 31 13 80 13 01 00 00 00 00 00 C1 [07:01:31]Write i2c OK [07:01:31]MH_I2C_Read... [07:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:31]Read from MH i2c: E2 [07:01:31]MH_I2C_Read... [07:01:31]Read from MH i2c: E2 0E 00 [07:01:31]MH_I2C_Read... [07:01:31]Read from MH i2c: E2 0E 00 31 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C3 [07:01:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:01:31]wFMCommunicate OK [07:01:31]SAM_PROTO_GetShiftState done [07:01:31]FM_GetShiftState done [07:01:31]opened in 1729987312 [07:01:31]opened+sec_in_day 1730073712 [07:01:31]quantity*price = 50041 [07:01:31]sum+1 = 50042 [07:01:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 44 27.10.2024 07:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201752 ФПД: 29762301482303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070135&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201752&fm=29762301482303&tin=02508201610067®Number=0000000000091777&sum=50000 [07:01:33]StoreToDocumentArchive [07:01:33]shift 544 fd 201752 [07:01:33]save to /storage/0544/doc_00201752 [07:01:33]save last doc name /storage/0544/doc_00201752 to /storage/kkm_last_doc_name [07:01:33]save OK [07:01:33]Clear old archive folders... [07:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:33]tlvbuf is B6EC71A0 [07:01:33]SAM_PROTO_ClearQueue [07:01:33]wFMCommunicate request_size=4 [07:01:33]MH_SAM_APDU [07:01:33]CAPDU: 80 09 00 00 [07:01:33]Write to MH i2c: E2 08 00 3E 13 80 09 00 00 00 00 00 00 C3 [07:01:33]Write i2c OK [07:01:33]MH_I2C_Read... [07:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:33]Read from MH i2c: E2 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 03 00 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 03 00 3E 13 00 90 00 C5 [07:01:33]RAPDU: 90 00 [07:01:33]wFMCommunicate OK [07:01:33]SAM_PROTO_ClearQueue done [07:01:33]KKMCreateOFDPacket [07:01:33]OFDProtocolAddRootSTLVToBuf [07:01:33]FM_MakeSignedData [07:01:33]FM_MakeSignedData [07:01:33]SAM_PROTO_SignData [07:01:33]wFMCommunicate request_size=4 [07:01:33]MH_SAM_APDU [07:01:33]CAPDU: 80 0D 01 02 [07:01:33]Write to MH i2c: E2 08 00 3F 13 80 0D 01 02 00 00 00 00 CB [07:01:33]Write i2c OK [07:01:33]MH_I2C_Read... [07:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:33]Read from MH i2c: E2 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 03 00 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 03 00 3F 13 00 90 00 C6 [07:01:33]RAPDU: 90 00 [07:01:33]wFMCommunicate OK [07:01:33]wFMCommunicate request_size=255 [07:01:33]MH_SAM_APDU [07:01:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 4F E5 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 14 03 00 35 04 06 00 1B [07:01:33]Write to MH i2c: E2 02 01 40 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 4F E5 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 14 03 00 35 04 06 00 1B 00 00 AF [07:01:33]Write i2c OK [07:01:33]MH_I2C_Read... [07:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:33]Read from MH i2c: E2 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 03 00 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 03 00 40 13 00 90 00 C7 [07:01:33]RAPDU: 90 00 [07:01:33]wFMCommunicate OK [07:01:33]wFMCommunicate request_size=10 [07:01:33]MH_SAM_APDU [07:01:33]CAPDU: 80 0D 02 02 05 11 93 68 55 3F [07:01:33]Write to MH i2c: E2 0D 00 41 13 80 0D 02 02 05 00 11 93 68 55 3F 00 00 78 [07:01:33]Write i2c OK [07:01:33]MH_I2C_Read... [07:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:33]Read from MH i2c: E2 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 03 00 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 03 00 41 13 00 90 00 C8 [07:01:33]RAPDU: 90 00 [07:01:33]wFMCommunicate OK [07:01:33]wFMCommunicate request_size=4 [07:01:33]MH_SAM_APDU [07:01:33]CAPDU: 80 0D 03 02 [07:01:33]Write to MH i2c: E2 08 00 42 13 80 0D 03 02 00 00 00 00 D0 [07:01:33]Write i2c OK [07:01:33]MH_I2C_Read... [07:01:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:33]Read from MH i2c: E2 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 0B 00 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 0B 00 42 13 00 3E E2 8F DF 3C 7D 56 C2 90 00 30 [07:01:33]RAPDU: 3E E2 8F DF 3C 7D 56 C2 90 00 [07:01:33]wFMCommunicate OK [07:01:33]SAM_PROTO_SignData done [07:01:33]FM_MakeSignedData done [07:01:33]CreateOFDProtocolMessage [07:01:33]wFMCommunicate request_size=4 [07:01:33]MH_SAM_APDU [07:01:33]CAPDU: 80 11 00 00 [07:01:33]Write to MH i2c: E2 08 00 43 13 80 11 00 00 00 00 00 00 D0 [07:01:33]Write i2c OK [07:01:33]MH_I2C_Read... [07:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:33]Read from MH i2c: E2 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 17 00 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: E2 17 00 43 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 25 [07:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:01:33]wFMCommunicate OK [07:01:33]CreateOFDProtocolMessage done [07:01:33]OFDSenderStorePacket 201752 [07:01:33]StoreOFDPacket docnum=201752 [07:01:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4F 67 07 01 58 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 4F E5 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 14 03 00 35 04 06 00 1B 11 93 68 55 3F 3E E2 8F DF 3C 7D 56 C2 [07:01:33]CheckFolder [07:01:33]dirname=/storage/ofd_packets [07:01:33]CheckFolder done [07:01:33]ProducePacketName [07:01:33]name=ofd_packets/00201752 [07:01:33]NVStorageSaveData ofd_packets/00201752 [07:01:33]File name is /storage/ofd_packets/00201752 [07:01:33]Write 301 bytes [07:01:33]NVStorageSaveData done [07:01:33]OFDSenderStorePacket done [07:01:33]KKMCreateOFDPacket done [07:01:33]NVStorageSaveData kkm_last_timestamp [07:01:33]File name is /storage/kkm_last_timestamp [07:01:33]Write 4 bytes [07:01:33]NVStorageSaveData done [07:01:33]ExternCall_PrintAddStr [07:01:33]wPrintStart [07:01:33]Write to MH i2c: 01 00 00 44 13 57 [07:01:33]Write i2c OK [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: 01 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: 01 07 00 [07:01:33]MH_I2C_Read... [07:01:33]Read from MH i2c: 01 07 00 44 13 00 00 00 00 00 FF 0F 6C [07:01:33]RasterBufferAndPrint [07:01:33]line Счет N : (1)449508 [07:01:33]line ИНН: 02508201610067 [07:01:33]line Контрольно-Кассовый Чек [07:01:33]line ПРОДАЖА [07:01:33]line ТРК (МРК, ГНК) : 41 [07:01:33]line Товар: 2710124130 [07:01:33]line Аи-92-К-2 [07:01:33]line 7.480 * 66.90 [07:01:33]line = 500.41 [07:01:33]line НДС 12% НСП 1% [07:01:33]line > о реализуемом товаре [07:01:33]line ОКРУГЛЕНИЕ: -0.41 [07:01:33]line ИТОГО: 500.00 [07:01:33]line Внесено: 500.00 [07:01:33]line СДАЧА: 0.00 [07:01:33]line НСП 1% : 4.43 [07:01:33]line НДС 12% : 53.14 [07:01:33]line Наличными: 500.00 [07:01:33]line Безнал.: 0.00 [07:01:33]line Место: АЗС № 171 "Партнер Нефть" [07:01:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:01:33]line СНО: Общий режим [07:01:33]line Чек 44 27.10.2024 07:01 [07:01:33]line Смена: 544 ФФД: 1.0 [07:01:33]line ЗНМ: 0300000109 [07:01:33]line РНМ: 0000000000091777 [07:01:33]line Версия ККМ: 001 [07:01:33]line ФМ: 0000000000871756 [07:01:33]line ФД: 201752 [07:01:33]line ФПД: 29762301482303 [07:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070135&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201752&fm=29762301482303&tin=02508201610067®Number=0000000000091777&sum=50000 [07:01:33]OFD Sender: Processing packet 201752 [packets to send 112, broken 111] [07:01:33]ProducePacketName [07:01:33]name=ofd_packets/00201752 [07:01:33]OFD Sender: To server: pG, [07:01:33]CommunicateWithHost lk.salyk.kg:30040 [07:01:33]ConnectInit lk.salyk.kg [07:01:33]written 0, free lines is 4095 [07:01:33]Connected sock=10 [07:01:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4F 67 07 01 58 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 00 00 00 F4 03 04 00 4F E5 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 14 03 00 35 04 06 00 1B 11 93 68 55 3F 3E E2 8F DF 3C 7D 56 C2 [07:01:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3A D7 47 00 59 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 14 03 00 F4 03 04 00 F5 90 1D 67 B6 04 01 00 00 2E 81 F3 6D 84 E3 D1 DF [07:01:34]CommunicateWithHost err = 0 [07:01:34]CheckOFDResponse [07:01:34]1017 (14) - 77093643461234 [07:01:34]1041 (16) - 0000000000871756 [07:01:34]1040 (4) - 201752 [07:01:34]1012 (4) - 27.10.2024 01:01 [07:01:34]1206 (1) - 0 [07:01:34]OFD Sender: Remove packet 201752 [07:01:34]ProducePacketName [07:01:34]name=ofd_packets/00201752 [07:01:34]NVStorageDeleteData [07:01:34]Write to MH i2c: 01 00 00 6F 13 82 [07:01:34]Write i2c OK [07:01:34]MH_I2C_Read... [07:01:34]Read from MH i2c: 01 [07:01:34]MH_I2C_Read... [07:01:34]Read from MH i2c: 01 07 00 [07:01:34]MH_I2C_Read... [07:01:34]Read from MH i2c: 01 07 00 6F 13 00 00 00 00 00 8C 0C 21 [07:01:34]RasterBufferAndPrint [07:01:34]line [07:01:34]line [07:01:34]line [07:01:34]line [07:01:34]line [07:01:34]written 0, free lines is 3216 [07:01:34]MH_Cut [07:01:34]Write to MH i2c: D1 01 00 76 13 01 5B [07:01:34]Write i2c OK [07:01:34]MH_I2C_Read... [07:01:34]Read from MH i2c: D1 [07:01:34]MH_I2C_Read... [07:01:34]Read from MH i2c: D1 01 00 [07:01:34]MH_I2C_Read... [07:01:34]Read from MH i2c: D1 01 00 76 13 00 5A [07:01:34]Write to MH i2c: 01 00 00 77 13 8A [07:01:34]Write i2c OK [07:01:34]MH_I2C_Read... [07:01:34]OFD Sender: No OFD packet to send [07:01:35]*** Cut start [07:01:35]*** Purtial cut [07:01:35]*** Stage 1: CUTSNS_PIN = 1 [07:01:35]Read from MH i2c: 01 [07:01:35]MH_I2C_Read... [07:01:35]*** Stop cut motor [07:01:35]*** Cut end [07:01:35]Read from MH i2c: 01 07 00 [07:01:35]MH_I2C_Read... [07:01:35]Read from MH i2c: 01 07 00 77 13 00 00 00 00 00 FF 0F 9F [07:01:35]process_action close_receipt done [07:01:35]requested_data is exist [07:01:35]produce_requested_data [07:01:35]requested_item fm.sn is exist - process it [07:01:35]wFMCommunicate request_size=4 [07:01:35]MH_SAM_APDU [07:01:35]CAPDU: 80 11 00 00 [07:01:35]Write to MH i2c: E2 08 00 78 13 80 11 00 00 00 00 00 00 05 [07:01:35]Write i2c OK [07:01:35]MH_I2C_Read... [07:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:35]Read from MH i2c: E2 [07:01:35]MH_I2C_Read... [07:01:35]Read from MH i2c: E2 17 00 [07:01:35]MH_I2C_Read... [07:01:35]Read from MH i2c: E2 17 00 78 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5A [07:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:01:35]wFMCommunicate OK [07:01:35]requested_item fd.num is exist - process it [07:01:35]SAM_PROTO_GetFieldsCounters [07:01:35]wFMCommunicate request_size=4 [07:01:35]MH_SAM_APDU [07:01:35]CAPDU: 80 13 00 00 [07:01:35]Write to MH i2c: E2 08 00 79 13 80 13 00 00 00 00 00 00 08 [07:01:35]Write i2c OK [07:01:35]MH_I2C_Read... [07:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:35]Read from MH i2c: E2 [07:01:35]MH_I2C_Read... [07:01:35]Read from MH i2c: E2 62 00 [07:01:35]MH_I2C_Read... [07:01:35]Read from MH i2c: E2 62 00 79 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 18 14 03 00 0E 04 04 00 20 02 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 06 [07:01:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 18 14 03 00 0E 04 04 00 20 02 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 [07:01:35]wFMCommunicate OK [07:01:35]SAM_PROTO_GetFieldsCounters done [07:01:35]requested_item shift.num is exist - process it [07:01:35]requested_item shift.opened is exist - process it [07:01:35]req_shift_opened [07:01:35]FM_GetShiftState [07:01:35]SAM_PROTO_GetShiftState [07:01:35]wFMCommunicate request_size=4 [07:01:35]MH_SAM_APDU [07:01:35]CAPDU: 80 13 01 00 [07:01:35]Write to MH i2c: E2 08 00 7A 13 80 13 01 00 00 00 00 00 0A [07:01:35]Write i2c OK [07:01:35]MH_I2C_Read... [07:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:35]Read from MH i2c: E2 [07:01:35]MH_I2C_Read... [07:01:35]Read from MH i2c: E2 0E 00 [07:01:35]MH_I2C_Read... [07:01:35]Read from MH i2c: E2 0E 00 7A 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0C [07:01:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:01:35]wFMCommunicate OK [07:01:35]SAM_PROTO_GetShiftState done [07:01:35]FM_GetShiftState done [07:01:35]req_shift_opened done [07:01:35]requested_item shift.open_date is exist - process it [07:01:35]req_shift_open_date [07:01:35]req_shift_open_date done [07:01:35]produce_requested_data done [07:01:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201752,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:01:35]process_action_free close_receipt [07:01:35]json_value_free [07:01:35]json_value_free done [07:01:35]process_json_proto returns [07:01:35]Send response to host [07:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201752,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:01:35]free response buf [07:01:35]execute_script done [07:01:35]execute_script returns [07:01:35]free content buf [07:01:35]Sock 9.Close socket [07:01:35]Sock 9.Thread stoped [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:06]accept exits with 8 [07:05:06]New connection [07:05:06]New thread 3067080036 created [07:05:06]Thread 3066936676 joined [07:05:06]Waiting for new connection... [07:05:06] Sock 8.Parse request [07:05:06]Sock 8.Check first char [07:05:06]Sock 8.First char is OK [07:05:06]request: POST /json_proto HTTP/1.0 [07:05:06]Method: POST [07:05:06]URL: /json_proto [07:05:06]Method is POST - this is cgi request [07:05:06]url: /json_proto [07:05:06]query_string will be loaded in cgi processing [07:05:06]execute_cgi json_proto POST (null) [07:05:06]execute_cgi path=json_proto method=POST [07:05:06]POST find Content-Length [07:05:06]Host: 172.17.63.195:8080 [07:05:06]Content-Length: 677 [07:05:06]Content-Type: application/json [07:05:06] [07:05:06]POST finish read [07:05:06]Found Content-Length = 677 [07:05:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:05:06]execute_script... [07:05:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:05:06]POST & json_proto [07:05:06]process_json_proto [07:05:06]json parsed OK: [07:05:06]protocol is kg_v1.0 [07:05:06]action value=close_receipt [07:05:06]process_action close_receipt [07:05:06]cmd_close_receipt [07:05:06]MH_GetDate [07:05:06]Write to MH i2c: F0 00 00 7B 13 7D [07:05:06]Write i2c OK [07:05:06]MH_I2C_Read... [07:05:06]Read from MH i2c: F0 [07:05:06]MH_I2C_Read... [07:05:06]Read from MH i2c: F0 09 00 [07:05:06]MH_I2C_Read... [07:05:06]Read from MH i2c: F0 09 00 7B 13 00 25 E6 1D 67 68 46 19 67 43 [07:05:06]GetLastDocTimeStamp 1730012495 [07:05:06]current date 1730012709 [07:05:06]FM_GetShiftState [07:05:06]SAM_PROTO_GetShiftState [07:05:06]wFMCommunicate request_size=4 [07:05:06]MH_SAM_APDU [07:05:06]CAPDU: 80 13 01 00 [07:05:06]Write to MH i2c: E2 08 00 7C 13 80 13 01 00 00 00 00 00 0C [07:05:06]Write i2c OK [07:05:06]MH_I2C_Read... [07:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:06]Read from MH i2c: E2 [07:05:06]MH_I2C_Read... [07:05:06]Read from MH i2c: E2 0E 00 [07:05:06]MH_I2C_Read... [07:05:06]Read from MH i2c: E2 0E 00 7C 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0E [07:05:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:05:06]wFMCommunicate OK [07:05:06]SAM_PROTO_GetShiftState done [07:05:06]FM_GetShiftState done [07:05:06]opened in 1729987312 [07:05:06]opened+sec_in_day 1730073712 [07:05:06]quantity*price = 50041 [07:05:06]sum+1 = 50042 [07:05:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 45 27.10.2024 07:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201753 ФПД: 1354871224204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070510&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201753&fm=1354871224204&tin=02508201610067®Number=0000000000091777&sum=50000 [07:05:07]StoreToDocumentArchive [07:05:07]shift 544 fd 201753 [07:05:07]save to /storage/0544/doc_00201753 [07:05:07]save last doc name /storage/0544/doc_00201753 to /storage/kkm_last_doc_name [07:05:07]save OK [07:05:07]Clear old archive folders... [07:05:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:05:07]tlvbuf is B6EC7280 [07:05:07]SAM_PROTO_ClearQueue [07:05:07]wFMCommunicate request_size=4 [07:05:07]MH_SAM_APDU [07:05:07]CAPDU: 80 09 00 00 [07:05:07]Write to MH i2c: E2 08 00 89 13 80 09 00 00 00 00 00 00 0E [07:05:07]Write i2c OK [07:05:07]MH_I2C_Read... [07:05:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:07]Read from MH i2c: E2 [07:05:07]MH_I2C_Read... [07:05:07]Read from MH i2c: E2 03 00 [07:05:07]MH_I2C_Read... [07:05:07]Read from MH i2c: E2 03 00 89 13 00 90 00 10 [07:05:07]RAPDU: 90 00 [07:05:07]wFMCommunicate OK [07:05:07]SAM_PROTO_ClearQueue done [07:05:07]KKMCreateOFDPacket [07:05:07]OFDProtocolAddRootSTLVToBuf [07:05:07]FM_MakeSignedData [07:05:07]FM_MakeSignedData [07:05:07]SAM_PROTO_SignData [07:05:07]wFMCommunicate request_size=4 [07:05:07]MH_SAM_APDU [07:05:07]CAPDU: 80 0D 01 02 [07:05:07]Write to MH i2c: E2 08 00 8A 13 80 0D 01 02 00 00 00 00 16 [07:05:07]Write i2c OK [07:05:07]MH_I2C_Read... [07:05:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:07]Read from MH i2c: E2 [07:05:07]MH_I2C_Read... [07:05:07]Read from MH i2c: E2 03 00 [07:05:07]MH_I2C_Read... [07:05:07]Read from MH i2c: E2 03 00 8A 13 00 90 00 11 [07:05:07]RAPDU: 90 00 [07:05:07]wFMCommunicate OK [07:05:07]wFMCommunicate request_size=255 [07:05:07]MH_SAM_APDU [07:05:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2D 00 00 00 F4 03 04 00 26 E6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 14 03 00 35 04 06 00 01 [07:05:07]Write to MH i2c: E2 02 01 8B 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2D 00 00 00 F4 03 04 00 26 E6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 14 03 00 35 04 06 00 01 00 00 BA [07:05:07]Write i2c OK [07:05:07]MH_I2C_Read... [07:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:08]Read from MH i2c: E2 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 03 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 03 00 8B 13 00 90 00 12 [07:05:08]RAPDU: 90 00 [07:05:08]wFMCommunicate OK [07:05:08]wFMCommunicate request_size=10 [07:05:08]MH_SAM_APDU [07:05:08]CAPDU: 80 0D 02 02 05 3B 74 9E 37 8C [07:05:08]Write to MH i2c: E2 0D 00 8C 13 80 0D 02 02 05 00 3B 74 9E 37 8C 00 00 33 [07:05:08]Write i2c OK [07:05:08]MH_I2C_Read... [07:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:08]Read from MH i2c: E2 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 03 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 03 00 8C 13 00 90 00 13 [07:05:08]RAPDU: 90 00 [07:05:08]wFMCommunicate OK [07:05:08]wFMCommunicate request_size=4 [07:05:08]MH_SAM_APDU [07:05:08]CAPDU: 80 0D 03 02 [07:05:08]Write to MH i2c: E2 08 00 8D 13 80 0D 03 02 00 00 00 00 1B [07:05:08]Write i2c OK [07:05:08]MH_I2C_Read... [07:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:08]Read from MH i2c: E2 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 0B 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 0B 00 8D 13 00 90 AA 41 A2 C7 00 6A 2C 90 00 96 [07:05:08]RAPDU: 90 AA 41 A2 C7 00 6A 2C 90 00 [07:05:08]wFMCommunicate OK [07:05:08]SAM_PROTO_SignData done [07:05:08]FM_MakeSignedData done [07:05:08]CreateOFDProtocolMessage [07:05:08]wFMCommunicate request_size=4 [07:05:08]MH_SAM_APDU [07:05:08]CAPDU: 80 11 00 00 [07:05:08]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [07:05:08]Write i2c OK [07:05:08]MH_I2C_Read... [07:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:08]Read from MH i2c: E2 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 17 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 70 [07:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:05:08]wFMCommunicate OK [07:05:08]CreateOFDProtocolMessage done [07:05:08]OFDSenderStorePacket 201753 [07:05:08]StoreOFDPacket docnum=201753 [07:05:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C 8C 07 01 13 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2D 00 00 00 F4 03 04 00 26 E6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 14 03 00 35 04 06 00 01 3B 74 9E 37 8C 90 AA 41 A2 C7 00 6A 2C [07:05:08]CheckFolder [07:05:08]dirname=/storage/ofd_packets [07:05:08]CheckFolder done [07:05:08]ProducePacketName [07:05:08]name=ofd_packets/00201753 [07:05:08]NVStorageSaveData ofd_packets/00201753 [07:05:08]File name is /storage/ofd_packets/00201753 [07:05:08]Write 301 bytes [07:05:08]NVStorageSaveData done [07:05:08]OFDSenderStorePacket done [07:05:08]KKMCreateOFDPacket done [07:05:08]NVStorageSaveData kkm_last_timestamp [07:05:08]File name is /storage/kkm_last_timestamp [07:05:08]Write 4 bytes [07:05:08]NVStorageSaveData done [07:05:08]ExternCall_PrintAddStr [07:05:08]wPrintStart [07:05:08]Write to MH i2c: 01 00 00 8F 13 A2 [07:05:08]Write i2c OK [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: 01 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: 01 07 00 [07:05:08]MH_I2C_Read... [07:05:08]Read from MH i2c: 01 07 00 8F 13 00 00 00 00 00 FF 0F B7 [07:05:08]RasterBufferAndPrint [07:05:08]line Счет N : (1)449509 [07:05:08]line ИНН: 02508201610067 [07:05:08]line Контрольно-Кассовый Чек [07:05:08]line ПРОДАЖА [07:05:08]line ТРК (МРК, ГНК) : 41 [07:05:08]line Товар: 2710124130 [07:05:08]line Аи-92-К-2 [07:05:08]line 7.480 * 66.90 [07:05:08]line = 500.41 [07:05:08]line НДС 12% НСП 1% [07:05:08]line > о реализуемом товаре [07:05:08]line ОКРУГЛЕНИЕ: -0.41 [07:05:08]line ИТОГО: 500.00 [07:05:08]line Внесено: 500.00 [07:05:08]line СДАЧА: 0.00 [07:05:08]line НСП 1% : 4.43 [07:05:08]line НДС 12% : 53.14 [07:05:08]line Наличными: 500.00 [07:05:08]line Безнал.: 0.00 [07:05:08]line Место: АЗС № 171 "Партнер Нефть" [07:05:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:05:08]line СНО: Общий режим [07:05:08]line Чек 45 27.10.2024 07:05 [07:05:08]line Смена: 544 ФФД: 1.0 [07:05:08]line ЗНМ: 0300000109 [07:05:08]line РНМ: 0000000000091777 [07:05:08]line Версия ККМ: 001 [07:05:08]line ФМ: 0000000000871756 [07:05:08]line ФД: 201753 [07:05:08]line ФПД: 1354871224204 [07:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070510&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201753&fm=1354871224204&tin=02508201610067®Number=0000000000091777&sum=50000 [07:05:08]OFD Sender: Processing packet 201753 [packets to send 112, broken 111] [07:05:08]ProducePacketName [07:05:08]name=ofd_packets/00201753 [07:05:08]OFD Sender: To server: pG, [07:05:08]CommunicateWithHost lk.salyk.kg:30040 [07:05:08]ConnectInit lk.salyk.kg [07:05:08]written 0, free lines is 4095 [07:05:08]Connected sock=10 [07:05:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C 8C 07 01 13 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2D 00 00 00 F4 03 04 00 26 E6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 14 03 00 35 04 06 00 01 3B 74 9E 37 8C 90 AA 41 A2 C7 00 6A 2C [07:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 47 06 47 00 43 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 14 03 00 F4 03 04 00 CC 91 1D 67 B6 04 01 00 00 0C A8 01 42 D4 DE 80 49 [07:05:09]CommunicateWithHost err = 0 [07:05:09]CheckOFDResponse [07:05:09]1017 (14) - 77093643461234 [07:05:09]1041 (16) - 0000000000871756 [07:05:09]1040 (4) - 201753 [07:05:09]1012 (4) - 27.10.2024 01:05 [07:05:09]1206 (1) - 0 [07:05:09]OFD Sender: Remove packet 201753 [07:05:09]ProducePacketName [07:05:09]name=ofd_packets/00201753 [07:05:09]NVStorageDeleteData [07:05:09]Write to MH i2c: 01 00 00 BA 13 CD [07:05:09]Write i2c OK [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: 01 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: 01 07 00 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: 01 07 00 BA 13 00 00 00 00 00 8A 0C 6A [07:05:09]RasterBufferAndPrint [07:05:09]line [07:05:09]line [07:05:09]line [07:05:09]line [07:05:09]line [07:05:09]written 0, free lines is 3213 [07:05:09]MH_Cut [07:05:09]Write to MH i2c: D1 01 00 C1 13 01 A6 [07:05:09]Write i2c OK [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: D1 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: D1 01 00 [07:05:09]MH_I2C_Read... [07:05:09]Read from MH i2c: D1 01 00 C1 13 00 A5 [07:05:09]Write to MH i2c: 01 00 00 C2 13 D5 [07:05:09]Write i2c OK [07:05:09]MH_I2C_Read... [07:05:09]OFD Sender: No OFD packet to send [07:05:10]*** Cut start [07:05:10]*** Purtial cut [07:05:10]*** Stage 1: CUTSNS_PIN = 1 [07:05:10]Read from MH i2c: 01 [07:05:10]MH_I2C_Read... [07:05:10]*** Stop cut motor [07:05:10]*** Cut end [07:05:10]Read from MH i2c: 01 07 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: 01 07 00 C2 13 00 00 00 00 00 FF 0F EA [07:05:10]process_action close_receipt done [07:05:10]requested_data is exist [07:05:10]produce_requested_data [07:05:10]requested_item fm.sn is exist - process it [07:05:10]wFMCommunicate request_size=4 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 11 00 00 [07:05:10]Write to MH i2c: E2 08 00 C3 13 80 11 00 00 00 00 00 00 50 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:10]Read from MH i2c: E2 17 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 17 00 C3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A5 [07:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:05:10]wFMCommunicate OK [07:05:10]requested_item fd.num is exist - process it [07:05:10]SAM_PROTO_GetFieldsCounters [07:05:10]wFMCommunicate request_size=4 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 13 00 00 [07:05:10]Write to MH i2c: E2 08 00 C4 13 80 13 00 00 00 00 00 00 53 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 62 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 62 00 C4 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 19 14 03 00 0E 04 04 00 20 02 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 55 [07:05:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 19 14 03 00 0E 04 04 00 20 02 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 [07:05:10]wFMCommunicate OK [07:05:10]SAM_PROTO_GetFieldsCounters done [07:05:10]requested_item shift.num is exist - process it [07:05:10]requested_item shift.opened is exist - process it [07:05:10]req_shift_opened [07:05:10]FM_GetShiftState [07:05:10]SAM_PROTO_GetShiftState [07:05:10]wFMCommunicate request_size=4 [07:05:10]MH_SAM_APDU [07:05:10]CAPDU: 80 13 01 00 [07:05:10]Write to MH i2c: E2 08 00 C5 13 80 13 01 00 00 00 00 00 55 [07:05:10]Write i2c OK [07:05:10]MH_I2C_Read... [07:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:10]Read from MH i2c: E2 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 0E 00 [07:05:10]MH_I2C_Read... [07:05:10]Read from MH i2c: E2 0E 00 C5 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 57 [07:05:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:05:10]wFMCommunicate OK [07:05:10]SAM_PROTO_GetShiftState done [07:05:10]FM_GetShiftState done [07:05:10]req_shift_opened done [07:05:10]requested_item shift.open_date is exist - process it [07:05:10]req_shift_open_date [07:05:10]req_shift_open_date done [07:05:10]produce_requested_data done [07:05:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201753,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:05:10]process_action_free close_receipt [07:05:10]json_value_free [07:05:10]json_value_free done [07:05:10]process_json_proto returns [07:05:10]Send response to host [07:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201753,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:05:10]free response buf [07:05:10]execute_script done [07:05:10]execute_script returns [07:05:10]free content buf [07:05:10]Sock 8.Close socket [07:05:10]Sock 8.Thread stoped [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:11]accept exits with 9 [07:06:11]New connection [07:06:11]New thread 3066936676 created [07:06:11]Thread 3067080036 joined [07:06:11]Waiting for new connection... [07:06:11] Sock 9.Parse request [07:06:11]Sock 9.Check first char [07:06:11]Sock 9.First char is OK [07:06:11]request: POST /json_proto HTTP/1.0 [07:06:11]Method: POST [07:06:11]URL: /json_proto [07:06:11]Method is POST - this is cgi request [07:06:11]url: /json_proto [07:06:11]query_string will be loaded in cgi processing [07:06:11]execute_cgi json_proto POST (null) [07:06:11]execute_cgi path=json_proto method=POST [07:06:11]POST find Content-Length [07:06:11]Host: 172.17.63.195:8080 [07:06:11]Content-Length: 677 [07:06:11]Content-Type: application/json [07:06:11] [07:06:11]POST finish read [07:06:11]Found Content-Length = 677 [07:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:06:11]execute_script... [07:06: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)449510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:06:11]POST & json_proto [07:06:11]process_json_proto [07:06:11]json parsed OK: [07:06:11]protocol is kg_v1.0 [07:06:11]action value=close_receipt [07:06:11]process_action close_receipt [07:06:11]cmd_close_receipt [07:06:11]MH_GetDate [07:06:11]Write to MH i2c: F0 00 00 C6 13 C8 [07:06:11]Write i2c OK [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: F0 [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: F0 09 00 [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: F0 09 00 C6 13 00 66 E6 1D 67 68 46 19 67 CF [07:06:11]GetLastDocTimeStamp 1730012710 [07:06:11]current date 1730012774 [07:06:11]FM_GetShiftState [07:06:11]SAM_PROTO_GetShiftState [07:06:11]wFMCommunicate request_size=4 [07:06:11]MH_SAM_APDU [07:06:11]CAPDU: 80 13 01 00 [07:06:11]Write to MH i2c: E2 08 00 C7 13 80 13 01 00 00 00 00 00 57 [07:06:11]Write i2c OK [07:06:11]MH_I2C_Read... [07:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:11]Read from MH i2c: E2 [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: E2 0E 00 [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: E2 0E 00 C7 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 59 [07:06:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:06:11]wFMCommunicate OK [07:06:11]SAM_PROTO_GetShiftState done [07:06:11]FM_GetShiftState done [07:06:11]opened in 1729987312 [07:06:11]opened+sec_in_day 1730073712 [07:06:11]quantity*price = 50041 [07:06:11]sum+1 = 50042 [07:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 46 27.10.2024 07:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201754 ФПД: 104103462496229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070614&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201754&fm=104103462496229&tin=02508201610067®Number=0000000000091777&sum=50000 [07:06:12]StoreToDocumentArchive [07:06:12]shift 544 fd 201754 [07:06:12]save to /storage/0544/doc_00201754 [07:06:12]save last doc name /storage/0544/doc_00201754 to /storage/kkm_last_doc_name [07:06:12]save OK [07:06:12]Clear old archive folders... [07:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:12]tlvbuf is 000A7A50 [07:06:12]SAM_PROTO_ClearQueue [07:06:12]wFMCommunicate request_size=4 [07:06:12]MH_SAM_APDU [07:06:12]CAPDU: 80 09 00 00 [07:06:12]Write to MH i2c: E2 08 00 D4 13 80 09 00 00 00 00 00 00 59 [07:06:12]Write i2c OK [07:06:12]MH_I2C_Read... [07:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:12]Read from MH i2c: E2 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 03 00 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 03 00 D4 13 00 90 00 5B [07:06:12]RAPDU: 90 00 [07:06:12]wFMCommunicate OK [07:06:12]SAM_PROTO_ClearQueue done [07:06:12]KKMCreateOFDPacket [07:06:12]OFDProtocolAddRootSTLVToBuf [07:06:12]FM_MakeSignedData [07:06:12]FM_MakeSignedData [07:06:12]SAM_PROTO_SignData [07:06:12]wFMCommunicate request_size=4 [07:06:12]MH_SAM_APDU [07:06:12]CAPDU: 80 0D 01 02 [07:06:12]Write to MH i2c: E2 08 00 D5 13 80 0D 01 02 00 00 00 00 61 [07:06:12]Write i2c OK [07:06:12]MH_I2C_Read... [07:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:12]Read from MH i2c: E2 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 03 00 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [07:06:12]RAPDU: 90 00 [07:06:12]wFMCommunicate OK [07:06:12]wFMCommunicate request_size=255 [07:06:12]MH_SAM_APDU [07:06:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 66 E6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 14 03 00 35 04 06 00 5E [07:06:12]Write to MH i2c: E2 02 01 D6 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 66 E6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 14 03 00 35 04 06 00 5E 00 00 A4 [07:06:12]Write i2c OK [07:06:12]MH_I2C_Read... [07:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:12]Read from MH i2c: E2 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 03 00 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 03 00 D6 13 00 90 00 5D [07:06:12]RAPDU: 90 00 [07:06:12]wFMCommunicate OK [07:06:12]wFMCommunicate request_size=10 [07:06:12]MH_SAM_APDU [07:06:12]CAPDU: 80 0D 02 02 05 AE 79 E6 E7 E5 [07:06:12]Write to MH i2c: E2 0D 00 D7 13 80 0D 02 02 05 00 AE 79 E6 E7 E5 00 00 47 [07:06:12]Write i2c OK [07:06:12]MH_I2C_Read... [07:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:12]Read from MH i2c: E2 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 03 00 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 03 00 D7 13 00 90 00 5E [07:06:12]RAPDU: 90 00 [07:06:12]wFMCommunicate OK [07:06:12]wFMCommunicate request_size=4 [07:06:12]MH_SAM_APDU [07:06:12]CAPDU: 80 0D 03 02 [07:06:12]Write to MH i2c: E2 08 00 D8 13 80 0D 03 02 00 00 00 00 66 [07:06:12]Write i2c OK [07:06:12]MH_I2C_Read... [07:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:12]Read from MH i2c: E2 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 0B 00 [07:06:12]MH_I2C_Read... [07:06:12]Read from MH i2c: E2 0B 00 D8 13 00 50 3C 1D 1D 46 62 48 E7 90 00 04 [07:06:12]RAPDU: 50 3C 1D 1D 46 62 48 E7 90 00 [07:06:12]wFMCommunicate OK [07:06:12]SAM_PROTO_SignData done [07:06:12]FM_MakeSignedData done [07:06:12]CreateOFDProtocolMessage [07:06:12]wFMCommunicate request_size=4 [07:06:12]MH_SAM_APDU [07:06:12]CAPDU: 80 11 00 00 [07:06:12]Write to MH i2c: E2 08 00 D9 13 80 11 00 00 00 00 00 00 66 [07:06:12]Write i2c OK [07:06:12]MH_I2C_Read... [07:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:13]Read from MH i2c: E2 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 17 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: E2 17 00 D9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [07:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:06:13]wFMCommunicate OK [07:06:13]CreateOFDProtocolMessage done [07:06:13]OFDSenderStorePacket 201754 [07:06:13]StoreOFDPacket docnum=201754 [07:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AD 61 07 01 04 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 66 E6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 14 03 00 35 04 06 00 5E AE 79 E6 E7 E5 50 3C 1D 1D 46 62 48 E7 [07:06:13]CheckFolder [07:06:13]dirname=/storage/ofd_packets [07:06:13]CheckFolder done [07:06:13]ProducePacketName [07:06:13]name=ofd_packets/00201754 [07:06:13]NVStorageSaveData ofd_packets/00201754 [07:06:13]File name is /storage/ofd_packets/00201754 [07:06:13]Write 301 bytes [07:06:13]NVStorageSaveData done [07:06:13]OFDSenderStorePacket done [07:06:13]KKMCreateOFDPacket done [07:06:13]NVStorageSaveData kkm_last_timestamp [07:06:13]File name is /storage/kkm_last_timestamp [07:06:13]Write 4 bytes [07:06:13]NVStorageSaveData done [07:06:13]ExternCall_PrintAddStr [07:06:13]wPrintStart [07:06:13]Write to MH i2c: 01 00 00 DA 13 ED [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 07 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 07 00 DA 13 00 00 00 00 00 FF 0F 02 [07:06:13]RasterBufferAndPrint [07:06:13]line Счет N : (1)449510 [07:06:13]line ИНН: 02508201610067 [07:06:13]line Контрольно-Кассовый Чек [07:06:13]line ПРОДАЖА [07:06:13]line ТРК (МРК, ГНК) : 41 [07:06:13]line Товар: 2710124130 [07:06:13]line Аи-92-К-2 [07:06:13]line 7.480 * 66.90 [07:06:13]line = 500.41 [07:06:13]line НДС 12% НСП 1% [07:06:13]line > о реализуемом товаре [07:06:13]line ОКРУГЛЕНИЕ: -0.41 [07:06:13]line ИТОГО: 500.00 [07:06:13]line Внесено: 500.00 [07:06:13]line СДАЧА: 0.00 [07:06:13]line НСП 1% : 4.43 [07:06:13]line НДС 12% : 53.14 [07:06:13]line Наличными: 500.00 [07:06:13]line Безнал.: 0.00 [07:06:13]line Место: АЗС № 171 "Партнер Нефть" [07:06:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:06:13]line СНО: Общий режим [07:06:13]line Чек 46 27.10.2024 07:06 [07:06:13]line Смена: 544 ФФД: 1.0 [07:06:13]line ЗНМ: 0300000109 [07:06:13]line РНМ: 0000000000091777 [07:06:13]line Версия ККМ: 001 [07:06:13]line ФМ: 0000000000871756 [07:06:13]line ФД: 201754 [07:06:13]line ФПД: 104103462496229 [07:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070614&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201754&fm=104103462496229&tin=02508201610067®Number=0000000000091777&sum=50000 [07:06:13]OFD Sender: Processing packet 201754 [packets to send 112, broken 111] [07:06:13]ProducePacketName [07:06:13]name=ofd_packets/00201754 [07:06:13]OFD Sender: To server: pG, [07:06:13]CommunicateWithHost lk.salyk.kg:30040 [07:06:13]ConnectInit lk.salyk.kg [07:06:13]written 0, free lines is 4095 [07:06:13]Connected sock=10 [07:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AD 61 07 01 04 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 66 E6 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 14 03 00 35 04 06 00 5E AE 79 E6 E7 E5 50 3C 1D 1D 46 62 48 E7 [07:06:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1F 20 47 00 3D 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 30 38 37 31 37 35 36 10 04 04 00 1A 14 03 00 F4 03 04 00 0C 92 1D 67 B6 04 01 00 00 93 4F 70 80 02 78 B3 18 [07:06:13]CommunicateWithHost err = 0 [07:06:13]CheckOFDResponse [07:06:13]1017 (14) - 77093643461234 [07:06:13]1041 (16) - 0000000000871756 [07:06:13]1040 (4) - 201754 [07:06:13]1012 (4) - 27.10.2024 01:06 [07:06:13]1206 (1) - 0 [07:06:13]OFD Sender: Remove packet 201754 [07:06:13]ProducePacketName [07:06:13]name=ofd_packets/00201754 [07:06:13]NVStorageDeleteData [07:06:13]Write to MH i2c: 01 00 00 05 14 19 [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 07 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: 01 07 00 05 14 00 00 00 00 00 91 0C BD [07:06:13]RasterBufferAndPrint [07:06:13]line [07:06:13]line [07:06:13]line [07:06:13]line [07:06:13]line [07:06:13]written 0, free lines is 3221 [07:06:13]MH_Cut [07:06:13]Write to MH i2c: D1 01 00 0C 14 01 F2 [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: D1 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: D1 01 00 [07:06:13]MH_I2C_Read... [07:06:13]Read from MH i2c: D1 01 00 0C 14 00 F1 [07:06:13]Write to MH i2c: 01 00 00 0D 14 21 [07:06:13]Write i2c OK [07:06:13]MH_I2C_Read... [07:06:14]OFD Sender: No OFD packet to send [07:06:14]*** Cut start [07:06:14]*** Purtial cut [07:06:14]*** Stage 1: CUTSNS_PIN = 1 [07:06:14]Read from MH i2c: 01 [07:06:14]MH_I2C_Read... [07:06:14]*** Stop cut motor [07:06:14]*** Cut end [07:06:14]Read from MH i2c: 01 07 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: 01 07 00 0D 14 00 00 00 00 00 FF 0F 36 [07:06:14]process_action close_receipt done [07:06:14]requested_data is exist [07:06:14]produce_requested_data [07:06:14]requested_item fm.sn is exist - process it [07:06:14]wFMCommunicate request_size=4 [07:06:14]MH_SAM_APDU [07:06:14]CAPDU: 80 11 00 00 [07:06:14]Write to MH i2c: E2 08 00 0E 14 80 11 00 00 00 00 00 00 9C [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 17 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 17 00 0E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F1 [07:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:06:15]wFMCommunicate OK [07:06:15]requested_item fd.num is exist - process it [07:06:15]SAM_PROTO_GetFieldsCounters [07:06:15]wFMCommunicate request_size=4 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 13 00 00 [07:06:15]Write to MH i2c: E2 08 00 0F 14 80 13 00 00 00 00 00 00 9F [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 62 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 62 00 0F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1A 14 03 00 0E 04 04 00 20 02 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 A5 [07:06:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1A 14 03 00 0E 04 04 00 20 02 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 [07:06:15]wFMCommunicate OK [07:06:15]SAM_PROTO_GetFieldsCounters done [07:06:15]requested_item shift.num is exist - process it [07:06:15]requested_item shift.opened is exist - process it [07:06:15]req_shift_opened [07:06:15]FM_GetShiftState [07:06:15]SAM_PROTO_GetShiftState [07:06:15]wFMCommunicate request_size=4 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 13 01 00 [07:06:15]Write to MH i2c: E2 08 00 10 14 80 13 01 00 00 00 00 00 A1 [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 0E 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 0E 00 10 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A3 [07:06:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:06:15]wFMCommunicate OK [07:06:15]SAM_PROTO_GetShiftState done [07:06:15]FM_GetShiftState done [07:06:15]req_shift_opened done [07:06:15]requested_item shift.open_date is exist - process it [07:06:15]req_shift_open_date [07:06:15]req_shift_open_date done [07:06:15]produce_requested_data done [07:06:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201754,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:06:15]process_action_free close_receipt [07:06:15]json_value_free [07:06:15]json_value_free done [07:06:15]process_json_proto returns [07:06:15]Send response to host [07:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201754,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:06:15]free response buf [07:06:15]execute_script done [07:06:15]execute_script returns [07:06:15]free content buf [07:06:15]Sock 9.Close socket [07:06:15]Sock 9.Thread stoped [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:20]accept exits with 8 [07:11:20]New connection [07:11:20]New thread 3067080036 created [07:11:20]Thread 3066936676 joined [07:11:20]Waiting for new connection... [07:11:20] Sock 8.Parse request [07:11:20]Sock 8.Check first char [07:11:20]Sock 8.First char is OK [07:11:20]request: POST /json_proto HTTP/1.0 [07:11:20]Method: POST [07:11:20]URL: /json_proto [07:11:20]Method is POST - this is cgi request [07:11:20]url: /json_proto [07:11:20]query_string will be loaded in cgi processing [07:11:20]execute_cgi json_proto POST (null) [07:11:20]execute_cgi path=json_proto method=POST [07:11:20]POST find Content-Length [07:11:20]Host: 172.17.63.195:8080 [07:11:20]Content-Length: 677 [07:11:20]Content-Type: application/json [07:11:20] [07:11:20]POST finish read [07:11:20]Found Content-Length = 677 [07:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:11:20]execute_script... [07:11:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:11:20]POST & json_proto [07:11:20]process_json_proto [07:11:20]json parsed OK: [07:11:20]protocol is kg_v1.0 [07:11:20]action value=close_receipt [07:11:20]process_action close_receipt [07:11:20]cmd_close_receipt [07:11:20]MH_GetDate [07:11:20]Write to MH i2c: F0 00 00 11 14 14 [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: F0 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: F0 09 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: F0 09 00 11 14 00 9C E7 1D 67 68 46 19 67 52 [07:11:20]GetLastDocTimeStamp 1730012774 [07:11:20]current date 1730013084 [07:11:20]FM_GetShiftState [07:11:20]SAM_PROTO_GetShiftState [07:11:20]wFMCommunicate request_size=4 [07:11:20]MH_SAM_APDU [07:11:20]CAPDU: 80 13 01 00 [07:11:20]Write to MH i2c: E2 08 00 12 14 80 13 01 00 00 00 00 00 A3 [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:20]Read from MH i2c: E2 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 0E 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: E2 0E 00 12 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A5 [07:11:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:11:20]wFMCommunicate OK [07:11:20]SAM_PROTO_GetShiftState done [07:11:20]FM_GetShiftState done [07:11:20]opened in 1729987312 [07:11:20]opened+sec_in_day 1730073712 [07:11:20]quantity*price = 50041 [07:11:20]sum+1 = 50042 [07:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 47 27.10.2024 07:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201755 ФПД: 198844957171133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071124&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201755&fm=198844957171133&tin=02508201610067®Number=0000000000091777&sum=50000 [07:11:21]StoreToDocumentArchive [07:11:21]shift 544 fd 201755 [07:11:21]save to /storage/0544/doc_00201755 [07:11:21]save last doc name /storage/0544/doc_00201755 to /storage/kkm_last_doc_name [07:11:21]save OK [07:11:21]Clear old archive folders... [07:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:11:22]tlvbuf is 000827F0 [07:11:22]SAM_PROTO_ClearQueue [07:11:22]wFMCommunicate request_size=4 [07:11:22]MH_SAM_APDU [07:11:22]CAPDU: 80 09 00 00 [07:11:22]Write to MH i2c: E2 08 00 1F 14 80 09 00 00 00 00 00 00 A5 [07:11:22]Write i2c OK [07:11:22]MH_I2C_Read... [07:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:22]Read from MH i2c: E2 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 03 00 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [07:11:22]RAPDU: 90 00 [07:11:22]wFMCommunicate OK [07:11:22]SAM_PROTO_ClearQueue done [07:11:22]KKMCreateOFDPacket [07:11:22]OFDProtocolAddRootSTLVToBuf [07:11:22]FM_MakeSignedData [07:11:22]FM_MakeSignedData [07:11:22]SAM_PROTO_SignData [07:11:22]wFMCommunicate request_size=4 [07:11:22]MH_SAM_APDU [07:11:22]CAPDU: 80 0D 01 02 [07:11:22]Write to MH i2c: E2 08 00 20 14 80 0D 01 02 00 00 00 00 AD [07:11:22]Write i2c OK [07:11:22]MH_I2C_Read... [07:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:22]Read from MH i2c: E2 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 03 00 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [07:11:22]RAPDU: 90 00 [07:11:22]wFMCommunicate OK [07:11:22]wFMCommunicate request_size=255 [07:11:22]MH_SAM_APDU [07:11:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 9C E7 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 14 03 00 35 04 06 00 B4 [07:11:22]Write to MH i2c: E2 02 01 21 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 9C E7 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 14 03 00 35 04 06 00 B4 00 00 7F [07:11:22]Write i2c OK [07:11:22]MH_I2C_Read... [07:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:22]Read from MH i2c: E2 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 03 00 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [07:11:22]RAPDU: 90 00 [07:11:22]wFMCommunicate OK [07:11:22]wFMCommunicate request_size=10 [07:11:22]MH_SAM_APDU [07:11:22]CAPDU: 80 0D 02 02 05 D9 33 09 9D BD [07:11:22]Write to MH i2c: E2 0D 00 22 14 80 0D 02 02 05 00 D9 33 09 9D BD 00 00 29 [07:11:22]Write i2c OK [07:11:22]MH_I2C_Read... [07:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:22]Read from MH i2c: E2 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 03 00 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [07:11:22]RAPDU: 90 00 [07:11:22]wFMCommunicate OK [07:11:22]wFMCommunicate request_size=4 [07:11:22]MH_SAM_APDU [07:11:22]CAPDU: 80 0D 03 02 [07:11:22]Write to MH i2c: E2 08 00 23 14 80 0D 03 02 00 00 00 00 B2 [07:11:22]Write i2c OK [07:11:22]MH_I2C_Read... [07:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:22]Read from MH i2c: E2 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 0B 00 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 0B 00 23 14 00 D4 B7 93 D5 D0 95 84 2D 90 00 BC [07:11:22]RAPDU: D4 B7 93 D5 D0 95 84 2D 90 00 [07:11:22]wFMCommunicate OK [07:11:22]SAM_PROTO_SignData done [07:11:22]FM_MakeSignedData done [07:11:22]CreateOFDProtocolMessage [07:11:22]wFMCommunicate request_size=4 [07:11:22]MH_SAM_APDU [07:11:22]CAPDU: 80 11 00 00 [07:11:22]Write to MH i2c: E2 08 00 24 14 80 11 00 00 00 00 00 00 B2 [07:11:22]Write i2c OK [07:11:22]MH_I2C_Read... [07:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:22]Read from MH i2c: E2 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 17 00 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: E2 17 00 24 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 07 [07:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:11:22]wFMCommunicate OK [07:11:22]CreateOFDProtocolMessage done [07:11:22]OFDSenderStorePacket 201755 [07:11:22]StoreOFDPacket docnum=201755 [07:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 50 BE 07 01 F5 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 9C E7 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 14 03 00 35 04 06 00 B4 D9 33 09 9D BD D4 B7 93 D5 D0 95 84 2D [07:11:22]CheckFolder [07:11:22]dirname=/storage/ofd_packets [07:11:22]CheckFolder done [07:11:22]ProducePacketName [07:11:22]name=ofd_packets/00201755 [07:11:22]NVStorageSaveData ofd_packets/00201755 [07:11:22]File name is /storage/ofd_packets/00201755 [07:11:22]Write 301 bytes [07:11:22]NVStorageSaveData done [07:11:22]OFDSenderStorePacket done [07:11:22]KKMCreateOFDPacket done [07:11:22]NVStorageSaveData kkm_last_timestamp [07:11:22]File name is /storage/kkm_last_timestamp [07:11:22]Write 4 bytes [07:11:22]NVStorageSaveData done [07:11:22]ExternCall_PrintAddStr [07:11:22]wPrintStart [07:11:22]Write to MH i2c: 01 00 00 25 14 39 [07:11:22]Write i2c OK [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: 01 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: 01 07 00 [07:11:22]MH_I2C_Read... [07:11:22]Read from MH i2c: 01 07 00 25 14 00 00 00 00 00 FF 0F 4E [07:11:22]RasterBufferAndPrint [07:11:22]line Счет N : (1)449511 [07:11:22]line ИНН: 02508201610067 [07:11:22]line Контрольно-Кассовый Чек [07:11:22]line ПРОДАЖА [07:11:22]line ТРК (МРК, ГНК) : 31 [07:11:22]line Товар: 2710124130 [07:11:22]line Аи-92-К-2 [07:11:22]line 7.480 * 66.90 [07:11:22]line = 500.41 [07:11:22]line НДС 12% НСП 1% [07:11:22]line > о реализуемом товаре [07:11:22]line ОКРУГЛЕНИЕ: -0.41 [07:11:22]line ИТОГО: 500.00 [07:11:22]line Внесено: 500.00 [07:11:22]line СДАЧА: 0.00 [07:11:22]line НСП 1% : 4.43 [07:11:22]line НДС 12% : 53.14 [07:11:22]line Наличными: 500.00 [07:11:22]line Безнал.: 0.00 [07:11:22]line Место: АЗС № 171 "Партнер Нефть" [07:11:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:11:22]line СНО: Общий режим [07:11:22]line Чек 47 27.10.2024 07:11 [07:11:22]line Смена: 544 ФФД: 1.0 [07:11:22]line ЗНМ: 0300000109 [07:11:22]line РНМ: 0000000000091777 [07:11:22]line Версия ККМ: 001 [07:11:22]line ФМ: 0000000000871756 [07:11:22]line ФД: 201755 [07:11:22]line ФПД: 198844957171133 [07:11:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071124&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201755&fm=198844957171133&tin=02508201610067®Number=0000000000091777&sum=50000 [07:11:22]OFD Sender: Processing packet 201755 [packets to send 112, broken 111] [07:11:22]ProducePacketName [07:11:22]name=ofd_packets/00201755 [07:11:22]OFD Sender: To server: pG, [07:11:22]CommunicateWithHost lk.salyk.kg:30040 [07:11:22]ConnectInit lk.salyk.kg [07:11:22]written 0, free lines is 4095 [07:11:22]Connected sock=10 [07:11:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 50 BE 07 01 F5 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2F 00 00 00 F4 03 04 00 9C E7 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 14 03 00 35 04 06 00 B4 D9 33 09 9D BD D4 B7 93 D5 D0 95 84 2D [07:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0F B7 47 00 56 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 14 03 00 F4 03 04 00 42 93 1D 67 B6 04 01 00 00 5F B5 AD BA 09 C6 F9 92 [07:11:23]CommunicateWithHost err = 0 [07:11:23]CheckOFDResponse [07:11:23]1017 (14) - 77093643461234 [07:11:23]1041 (16) - 0000000000871756 [07:11:23]1040 (4) - 201755 [07:11:23]1012 (4) - 27.10.2024 01:11 [07:11:23]1206 (1) - 0 [07:11:23]OFD Sender: Remove packet 201755 [07:11:23]ProducePacketName [07:11:23]name=ofd_packets/00201755 [07:11:23]NVStorageDeleteData [07:11:23]Write to MH i2c: 01 00 00 50 14 64 [07:11:23]Write i2c OK [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: 01 [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: 01 07 00 [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: 01 07 00 50 14 00 00 00 00 00 89 0C 00 [07:11:23]RasterBufferAndPrint [07:11:23]line [07:11:23]line [07:11:23]line [07:11:23]line [07:11:23]line [07:11:23]written 0, free lines is 3212 [07:11:23]MH_Cut [07:11:23]Write to MH i2c: D1 01 00 57 14 01 3D [07:11:23]Write i2c OK [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: D1 [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: D1 01 00 [07:11:23]MH_I2C_Read... [07:11:23]Read from MH i2c: D1 01 00 57 14 00 3C [07:11:23]Write to MH i2c: 01 00 00 58 14 6C [07:11:23]Write i2c OK [07:11:23]MH_I2C_Read... [07:11:23]OFD Sender: No OFD packet to send [07:11:24]*** Cut start [07:11:24]*** Purtial cut [07:11:24]*** Stage 1: CUTSNS_PIN = 1 [07:11:24]Read from MH i2c: 01 [07:11:24]MH_I2C_Read... [07:11:24]*** Stop cut motor [07:11:24]*** Cut end [07:11:24]Read from MH i2c: 01 07 00 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: 01 07 00 58 14 00 00 00 00 00 FF 0F 81 [07:11:24]process_action close_receipt done [07:11:24]requested_data is exist [07:11:24]produce_requested_data [07:11:24]requested_item fm.sn is exist - process it [07:11:24]wFMCommunicate request_size=4 [07:11:24]MH_SAM_APDU [07:11:24]CAPDU: 80 11 00 00 [07:11:24]Write to MH i2c: E2 08 00 59 14 80 11 00 00 00 00 00 00 E7 [07:11:24]Write i2c OK [07:11:24]MH_I2C_Read... [07:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:24]Read from MH i2c: E2 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 17 00 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 17 00 59 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3C [07:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:11:24]wFMCommunicate OK [07:11:24]requested_item fd.num is exist - process it [07:11:24]SAM_PROTO_GetFieldsCounters [07:11:24]wFMCommunicate request_size=4 [07:11:24]MH_SAM_APDU [07:11:24]CAPDU: 80 13 00 00 [07:11:24]Write to MH i2c: E2 08 00 5A 14 80 13 00 00 00 00 00 00 EA [07:11:24]Write i2c OK [07:11:24]MH_I2C_Read... [07:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:24]Read from MH i2c: E2 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 62 00 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 62 00 5A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1B 14 03 00 0E 04 04 00 20 02 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 F4 [07:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1B 14 03 00 0E 04 04 00 20 02 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 [07:11:24]wFMCommunicate OK [07:11:24]SAM_PROTO_GetFieldsCounters done [07:11:24]requested_item shift.num is exist - process it [07:11:24]requested_item shift.opened is exist - process it [07:11:24]req_shift_opened [07:11:24]FM_GetShiftState [07:11:24]SAM_PROTO_GetShiftState [07:11:24]wFMCommunicate request_size=4 [07:11:24]MH_SAM_APDU [07:11:24]CAPDU: 80 13 01 00 [07:11:24]Write to MH i2c: E2 08 00 5B 14 80 13 01 00 00 00 00 00 EC [07:11:24]Write i2c OK [07:11:24]MH_I2C_Read... [07:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:24]Read from MH i2c: E2 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 0E 00 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 0E 00 5B 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 EE [07:11:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:11:24]wFMCommunicate OK [07:11:24]SAM_PROTO_GetShiftState done [07:11:24]FM_GetShiftState done [07:11:24]req_shift_opened done [07:11:24]requested_item shift.open_date is exist - process it [07:11:24]req_shift_open_date [07:11:24]req_shift_open_date done [07:11:24]produce_requested_data done [07:11:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201755,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:11:24]process_action_free close_receipt [07:11:24]json_value_free [07:11:24]json_value_free done [07:11:24]process_json_proto returns [07:11:24]Send response to host [07:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201755,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:11:24]free response buf [07:11:24]execute_script done [07:11:24]execute_script returns [07:11:24]free content buf [07:11:24]Sock 8.Close socket [07:11:24]Sock 8.Thread stoped [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:49]accept exits with 9 [07:16:49]New connection [07:16:49]New thread 3066936676 created [07:16:49]Thread 3067080036 joined [07:16:49]Waiting for new connection... [07:16:49] Sock 9.Parse request [07:16:49]Sock 9.Check first char [07:16:49]Sock 9.First char is OK [07:16:49]request: POST /json_proto HTTP/1.0 [07:16:49]Method: POST [07:16:49]URL: /json_proto [07:16:49]Method is POST - this is cgi request [07:16:49]url: /json_proto [07:16:49]query_string will be loaded in cgi processing [07:16:49]execute_cgi json_proto POST (null) [07:16:49]execute_cgi path=json_proto method=POST [07:16:49]POST find Content-Length [07:16:49]Host: 172.17.63.195:8080 [07:16:49]Content-Length: 769 [07:16:49]Content-Type: application/json [07:16:49] [07:16:49]POST finish read [07:16:49]Found Content-Length = 769 [07:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:49]execute_script... [07:16:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:49]POST & json_proto [07:16:49]process_json_proto [07:16:49]json parsed OK: [07:16:49]protocol is kg_v1.0 [07:16:49]action value=close_receipt [07:16:49]process_action close_receipt [07:16:49]cmd_close_receipt [07:16:49]MH_GetDate [07:16:49]Write to MH i2c: F0 00 00 5C 14 5F [07:16:49]Write i2c OK [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: F0 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: F0 09 00 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: F0 09 00 5C 14 00 E4 E8 1D 67 68 46 19 67 E6 [07:16:49]GetLastDocTimeStamp 1730013084 [07:16:49]current date 1730013412 [07:16:49]FM_GetShiftState [07:16:49]SAM_PROTO_GetShiftState [07:16:49]wFMCommunicate request_size=4 [07:16:49]MH_SAM_APDU [07:16:49]CAPDU: 80 13 01 00 [07:16:49]Write to MH i2c: E2 08 00 5D 14 80 13 01 00 00 00 00 00 EE [07:16:49]Write i2c OK [07:16:49]MH_I2C_Read... [07:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:49]Read from MH i2c: E2 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: E2 0E 00 [07:16:49]MH_I2C_Read... [07:16:49]Read from MH i2c: E2 0E 00 5D 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F0 [07:16:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:16:49]wFMCommunicate OK [07:16:49]SAM_PROTO_GetShiftState done [07:16:49]FM_GetShiftState done [07:16:49]opened in 1729987312 [07:16:49]opened+sec_in_day 1730073712 [07:16:49]quantity*price = 100015 [07:16:49]sum+1 = 100017 [07:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 48 27.10.2024 07:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201756 ФПД: 270279922275043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071652&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201756&fm=270279922275043&tin=02508201610067®Number=0000000000091777&sum=100016 [07:16:50]StoreToDocumentArchive [07:16:50]shift 544 fd 201756 [07:16:50]save to /storage/0544/doc_00201756 [07:16:50]save last doc name /storage/0544/doc_00201756 to /storage/kkm_last_doc_name [07:16:50]save OK [07:16:50]Clear old archive folders... [07:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:16:50]tlvbuf is 000A7AA0 [07:16:50]SAM_PROTO_ClearQueue [07:16:50]wFMCommunicate request_size=4 [07:16:50]MH_SAM_APDU [07:16:50]CAPDU: 80 09 00 00 [07:16:50]Write to MH i2c: E2 08 00 6A 14 80 09 00 00 00 00 00 00 F0 [07:16:50]Write i2c OK [07:16:50]MH_I2C_Read... [07:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:50]Read from MH i2c: E2 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: E2 03 00 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [07:16:50]RAPDU: 90 00 [07:16:50]wFMCommunicate OK [07:16:50]SAM_PROTO_ClearQueue done [07:16:50]KKMCreateOFDPacket [07:16:50]OFDProtocolAddRootSTLVToBuf [07:16:50]FM_MakeSignedData [07:16:50]FM_MakeSignedData [07:16:50]SAM_PROTO_SignData [07:16:50]wFMCommunicate request_size=4 [07:16:50]MH_SAM_APDU [07:16:50]CAPDU: 80 0D 01 02 [07:16:50]Write to MH i2c: E2 08 00 6B 14 80 0D 01 02 00 00 00 00 F8 [07:16:50]Write i2c OK [07:16:50]MH_I2C_Read... [07:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:50]Read from MH i2c: E2 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: E2 03 00 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [07:16:50]RAPDU: 90 00 [07:16:50]wFMCommunicate OK [07:16:50]wFMCommunicate request_size=255 [07:16:50]MH_SAM_APDU [07:16:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 00 00 00 F4 03 04 00 E4 E8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 14 03 00 35 04 06 00 F5 [07:16:50]Write to MH i2c: E2 02 01 6C 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 00 00 00 F4 03 04 00 E4 E8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 14 03 00 35 04 06 00 F5 00 00 70 [07:16:50]Write i2c OK [07:16:50]MH_I2C_Read... [07:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:50]Read from MH i2c: E2 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: E2 03 00 [07:16:50]MH_I2C_Read... [07:16:50]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [07:16:50]RAPDU: 90 00 [07:16:50]wFMCommunicate OK [07:16:50]wFMCommunicate request_size=10 [07:16:50]MH_SAM_APDU [07:16:50]CAPDU: 80 0D 02 02 05 D1 72 C1 D2 E3 [07:16:50]Write to MH i2c: E2 0D 00 6D 14 80 0D 02 02 05 00 D1 72 C1 D2 E3 00 00 BE [07:16:50]Write i2c OK [07:16:50]MH_I2C_Read... [07:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:51]Read from MH i2c: E2 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: E2 03 00 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [07:16:51]RAPDU: 90 00 [07:16:51]wFMCommunicate OK [07:16:51]wFMCommunicate request_size=4 [07:16:51]MH_SAM_APDU [07:16:51]CAPDU: 80 0D 03 02 [07:16:51]Write to MH i2c: E2 08 00 6E 14 80 0D 03 02 00 00 00 00 FD [07:16:51]Write i2c OK [07:16:51]MH_I2C_Read... [07:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:51]Read from MH i2c: E2 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: E2 0B 00 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: E2 0B 00 6E 14 00 E4 F2 B6 79 D9 E4 3A C8 90 00 C2 [07:16:51]RAPDU: E4 F2 B6 79 D9 E4 3A C8 90 00 [07:16:51]wFMCommunicate OK [07:16:51]SAM_PROTO_SignData done [07:16:51]FM_MakeSignedData done [07:16:51]CreateOFDProtocolMessage [07:16:51]wFMCommunicate request_size=4 [07:16:51]MH_SAM_APDU [07:16:51]CAPDU: 80 11 00 00 [07:16:51]Write to MH i2c: E2 08 00 6F 14 80 11 00 00 00 00 00 00 FD [07:16:51]Write i2c OK [07:16:51]MH_I2C_Read... [07:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:51]Read from MH i2c: E2 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: E2 17 00 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: E2 17 00 6F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 52 [07:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:16:51]wFMCommunicate OK [07:16:51]CreateOFDProtocolMessage done [07:16:51]OFDSenderStorePacket 201756 [07:16:51]StoreOFDPacket docnum=201756 [07:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 27 E2 07 01 C5 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 00 00 00 F4 03 04 00 E4 E8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 14 03 00 35 04 06 00 F5 D1 72 C1 D2 E3 E4 F2 B6 79 D9 E4 3A C8 [07:16:51]CheckFolder [07:16:51]dirname=/storage/ofd_packets [07:16:51]CheckFolder done [07:16:51]ProducePacketName [07:16:51]name=ofd_packets/00201756 [07:16:51]NVStorageSaveData ofd_packets/00201756 [07:16:51]File name is /storage/ofd_packets/00201756 [07:16:51]Write 301 bytes [07:16:51]NVStorageSaveData done [07:16:51]OFDSenderStorePacket done [07:16:51]KKMCreateOFDPacket done [07:16:51]NVStorageSaveData kkm_last_timestamp [07:16:51]File name is /storage/kkm_last_timestamp [07:16:51]Write 4 bytes [07:16:51]NVStorageSaveData done [07:16:51]ExternCall_PrintAddStr [07:16:51]wPrintStart [07:16:51]Write to MH i2c: 01 00 00 70 14 84 [07:16:51]Write i2c OK [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: 01 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: 01 07 00 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: 01 07 00 70 14 00 00 00 00 00 FF 0F 99 [07:16:51]RasterBufferAndPrint [07:16:51]line Счет N : (1)449512 [07:16:51]line ИНН: 02508201610067 [07:16:51]line Контрольно-Кассовый Чек [07:16:51]line ПРОДАЖА [07:16:51]line ТРК (МРК, ГНК) : 41 [07:16:51]line Товар: 2710124130 [07:16:51]line Аи-92-К-2 [07:16:51]line 14.950 * 66.90 [07:16:51]line = 1000.16 [07:16:51]line НДС 12% НСП 1% [07:16:51]line > о реализуемом товаре [07:16:51]line ИТОГО: 1000.16 [07:16:51]line НСП 1% : 8.85 [07:16:51]line НДС 12% : 106.21 [07:16:51]line Наличными: 0.00 [07:16:51]line Безнал.: 1000.16 [07:16:51]line Место: АЗС № 171 "Партнер Нефть" [07:16:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:16:51]line СНО: Общий режим [07:16:51]line Чек 48 27.10.2024 07:16 [07:16:51]line Смена: 544 ФФД: 1.0 [07:16:51]line ЗНМ: 0300000109 [07:16:51]line РНМ: 0000000000091777 [07:16:51]line Версия ККМ: 001 [07:16:51]line Платежная система: Mbank [07:16:51]line ФМ: 0000000000871756 [07:16:51]line ФД: 201756 [07:16:51]line ФПД: 270279922275043 [07:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071652&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201756&fm=270279922275043&tin=02508201610067®Number=0000000000091777&sum=100016 [07:16:51]written 0, free lines is 4095 [07:16:51]OFD Sender: Processing packet 201756 [packets to send 112, broken 111] [07:16:51]ProducePacketName [07:16:51]name=ofd_packets/00201756 [07:16:51]OFD Sender: To server: pG, [07:16:51]CommunicateWithHost lk.salyk.kg:30040 [07:16:51]ConnectInit lk.salyk.kg [07:16:51]Connected sock=10 [07:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 27 E2 07 01 C5 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 00 00 00 F4 03 04 00 E4 E8 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 14 03 00 35 04 06 00 F5 D1 72 C1 D2 E3 E4 F2 B6 79 D9 E4 3A C8 [07:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F5 99 47 00 3B 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 14 03 00 F4 03 04 00 8A 94 1D 67 B6 04 01 00 00 84 77 90 AB 16 60 DB 98 [07:16:51]CommunicateWithHost err = 0 [07:16:51]CheckOFDResponse [07:16:51]1017 (14) - 77093643461234 [07:16:51]1041 (16) - 0000000000871756 [07:16:51]1040 (4) - 201756 [07:16:51]1012 (4) - 27.10.2024 01:16 [07:16:51]1206 (1) - 0 [07:16:51]OFD Sender: Remove packet 201756 [07:16:51]ProducePacketName [07:16:51]name=ofd_packets/00201756 [07:16:51]NVStorageDeleteData [07:16:51]Write to MH i2c: 01 00 00 99 14 AD [07:16:51]Write i2c OK [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: 01 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: 01 07 00 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: 01 07 00 99 14 00 00 00 00 00 C6 0C 86 [07:16:51]RasterBufferAndPrint [07:16:51]line [07:16:51]line [07:16:51]line [07:16:51]line [07:16:51]line [07:16:51]written 0, free lines is 3274 [07:16:51]MH_Cut [07:16:51]Write to MH i2c: D1 01 00 A0 14 01 86 [07:16:51]Write i2c OK [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: D1 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: D1 01 00 [07:16:51]MH_I2C_Read... [07:16:51]Read from MH i2c: D1 01 00 A0 14 00 85 [07:16:51]Write to MH i2c: 01 00 00 A1 14 B5 [07:16:51]Write i2c OK [07:16:51]MH_I2C_Read... [07:16:52]OFD Sender: No OFD packet to send [07:16:52]*** Cut start [07:16:52]*** Purtial cut [07:16:52]*** CUTSNS_PIN = 0 [07:16:53]*** Stage 1: CUTSNS_PIN = 1 [07:16:54]Read from MH i2c: 01 [07:16:54]MH_I2C_Read... [07:16:54]*** Stop cut motor [07:16:54]*** Cut end [07:16:54]Read from MH i2c: 01 07 00 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: 01 07 00 A1 14 00 00 00 00 00 FF 0F CA [07:16:54]process_action close_receipt done [07:16:54]requested_data is exist [07:16:54]produce_requested_data [07:16:54]requested_item fm.sn is exist - process it [07:16:54]wFMCommunicate request_size=4 [07:16:54]MH_SAM_APDU [07:16:54]CAPDU: 80 11 00 00 [07:16:54]Write to MH i2c: E2 08 00 A2 14 80 11 00 00 00 00 00 00 30 [07:16:54]Write i2c OK [07:16:54]MH_I2C_Read... [07:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:54]Read from MH i2c: E2 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: E2 17 00 [07:16:54]MH_I2C_Read... [07:16:54]Read from MH i2c: E2 17 00 A2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 85 [07:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:16:54]wFMCommunicate OK [07:16:54]requested_item fd.num is exist - process it [07:16:54]SAM_PROTO_GetFieldsCounters [07:16:54]wFMCommunicate request_size=4 [07:16:54]MH_SAM_APDU [07:16:54]CAPDU: 80 13 00 00 [07:16:54]Write to MH i2c: E2 08 00 A3 14 80 13 00 00 00 00 00 00 33 [07:16:54]Write i2c OK [07:16:54]MH_I2C_Read... [07:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:55]Read from MH i2c: E2 [07:16:55]MH_I2C_Read... [07:16:55]Read from MH i2c: E2 62 00 [07:16:55]MH_I2C_Read... [07:16:55]Read from MH i2c: E2 62 00 A3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1C 14 03 00 0E 04 04 00 20 02 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 41 [07:16:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1C 14 03 00 0E 04 04 00 20 02 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 [07:16:55]wFMCommunicate OK [07:16:55]SAM_PROTO_GetFieldsCounters done [07:16:55]requested_item shift.num is exist - process it [07:16:55]requested_item shift.opened is exist - process it [07:16:55]req_shift_opened [07:16:55]FM_GetShiftState [07:16:55]SAM_PROTO_GetShiftState [07:16:55]wFMCommunicate request_size=4 [07:16:55]MH_SAM_APDU [07:16:55]CAPDU: 80 13 01 00 [07:16:55]Write to MH i2c: E2 08 00 A4 14 80 13 01 00 00 00 00 00 35 [07:16:55]Write i2c OK [07:16:55]MH_I2C_Read... [07:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:55]Read from MH i2c: E2 [07:16:55]MH_I2C_Read... [07:16:55]Read from MH i2c: E2 0E 00 [07:16:55]MH_I2C_Read... [07:16:55]Read from MH i2c: E2 0E 00 A4 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 37 [07:16:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:16:55]wFMCommunicate OK [07:16:55]SAM_PROTO_GetShiftState done [07:16:55]FM_GetShiftState done [07:16:55]req_shift_opened done [07:16:55]requested_item shift.open_date is exist - process it [07:16:55]req_shift_open_date [07:16:55]req_shift_open_date done [07:16:55]produce_requested_data done [07:16:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201756,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:16:55]process_action_free close_receipt [07:16:55]json_value_free [07:16:55]json_value_free done [07:16:55]process_json_proto returns [07:16:55]Send response to host [07:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201756,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:16:55]free response buf [07:16:55]execute_script done [07:16:55]execute_script returns [07:16:55]free content buf [07:16:55]Sock 9.Close socket [07:16:55]Sock 9.Thread stoped [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:12]accept exits with 8 [07:33:12]New connection [07:33:12]New thread 3067080036 created [07:33:12]Thread 3066936676 joined [07:33:12]Waiting for new connection... [07:33:12] Sock 8.Parse request [07:33:12]Sock 8.Check first char [07:33:12]Sock 8.First char is OK [07:33:12]request: POST /json_proto HTTP/1.0 [07:33:12]Method: POST [07:33:12]URL: /json_proto [07:33:12]Method is POST - this is cgi request [07:33:12]url: /json_proto [07:33:12]query_string will be loaded in cgi processing [07:33:12]execute_cgi json_proto POST (null) [07:33:12]execute_cgi path=json_proto method=POST [07:33:12]POST find Content-Length [07:33:12]Host: 172.17.63.195:8080 [07:33:12]Content-Length: 677 [07:33:12]Content-Type: application/json [07:33:12] [07:33:12]POST finish read [07:33:12]Found Content-Length = 677 [07:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:33:12]execute_script... [07:33:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:33:12]POST & json_proto [07:33:12]process_json_proto [07:33:12]json parsed OK: [07:33:12]protocol is kg_v1.0 [07:33:12]action value=close_receipt [07:33:12]process_action close_receipt [07:33:12]cmd_close_receipt [07:33:12]MH_GetDate [07:33:12]Write to MH i2c: F0 00 00 A5 14 A8 [07:33:12]Write i2c OK [07:33:12]MH_I2C_Read... [07:33:12]Read from MH i2c: F0 [07:33:12]MH_I2C_Read... [07:33:12]Read from MH i2c: F0 09 00 [07:33:12]MH_I2C_Read... [07:33:12]Read from MH i2c: F0 09 00 A5 14 00 BB EC 1D 67 68 46 19 67 0A [07:33:12]GetLastDocTimeStamp 1730013412 [07:33:12]current date 1730014395 [07:33:12]FM_GetShiftState [07:33:12]SAM_PROTO_GetShiftState [07:33:12]wFMCommunicate request_size=4 [07:33:12]MH_SAM_APDU [07:33:12]CAPDU: 80 13 01 00 [07:33:12]Write to MH i2c: E2 08 00 A6 14 80 13 01 00 00 00 00 00 37 [07:33:12]Write i2c OK [07:33:12]MH_I2C_Read... [07:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:12]Read from MH i2c: E2 [07:33:12]MH_I2C_Read... [07:33:12]Read from MH i2c: E2 0E 00 [07:33:12]MH_I2C_Read... [07:33:12]Read from MH i2c: E2 0E 00 A6 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 39 [07:33:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:33:12]wFMCommunicate OK [07:33:12]SAM_PROTO_GetShiftState done [07:33:12]FM_GetShiftState done [07:33:12]opened in 1729987312 [07:33:12]opened+sec_in_day 1730073712 [07:33:12]quantity*price = 30038 [07:33:12]sum+1 = 30039 [07:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 49 27.10.2024 07:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201757 ФПД: 160105779620044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T073315&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201757&fm=160105779620044&tin=02508201610067®Number=0000000000091777&sum=30000 [07:33:13]StoreToDocumentArchive [07:33:13]shift 544 fd 201757 [07:33:13]save to /storage/0544/doc_00201757 [07:33:13]save last doc name /storage/0544/doc_00201757 to /storage/kkm_last_doc_name [07:33:13]save OK [07:33:13]Clear old archive folders... [07:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:33:13]tlvbuf is 000A8730 [07:33:13]SAM_PROTO_ClearQueue [07:33:13]wFMCommunicate request_size=4 [07:33:13]MH_SAM_APDU [07:33:13]CAPDU: 80 09 00 00 [07:33:13]Write to MH i2c: E2 08 00 B3 14 80 09 00 00 00 00 00 00 39 [07:33:13]Write i2c OK [07:33:13]MH_I2C_Read... [07:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:13]Read from MH i2c: E2 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 03 00 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 03 00 B3 14 00 90 00 3B [07:33:13]RAPDU: 90 00 [07:33:13]wFMCommunicate OK [07:33:13]SAM_PROTO_ClearQueue done [07:33:13]KKMCreateOFDPacket [07:33:13]OFDProtocolAddRootSTLVToBuf [07:33:13]FM_MakeSignedData [07:33:13]FM_MakeSignedData [07:33:13]SAM_PROTO_SignData [07:33:13]wFMCommunicate request_size=4 [07:33:13]MH_SAM_APDU [07:33:13]CAPDU: 80 0D 01 02 [07:33:13]Write to MH i2c: E2 08 00 B4 14 80 0D 01 02 00 00 00 00 41 [07:33:13]Write i2c OK [07:33:13]MH_I2C_Read... [07:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:13]Read from MH i2c: E2 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 03 00 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [07:33:13]RAPDU: 90 00 [07:33:13]wFMCommunicate OK [07:33:13]wFMCommunicate request_size=255 [07:33:13]MH_SAM_APDU [07:33:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BB EC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 14 03 00 35 04 06 00 91 [07:33:13]Write to MH i2c: E2 02 01 B5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BB EC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 14 03 00 35 04 06 00 91 00 00 0C [07:33:13]Write i2c OK [07:33:13]MH_I2C_Read... [07:33:13]OFD Sender: No OFD packet to send [07:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:13]Read from MH i2c: E2 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 03 00 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [07:33:13]RAPDU: 90 00 [07:33:13]wFMCommunicate OK [07:33:13]wFMCommunicate request_size=10 [07:33:13]MH_SAM_APDU [07:33:13]CAPDU: 80 0D 02 02 05 9D 88 1E E8 CC [07:33:13]Write to MH i2c: E2 0D 00 B6 14 80 0D 02 02 05 00 9D 88 1E E8 CC 00 00 45 [07:33:13]Write i2c OK [07:33:13]MH_I2C_Read... [07:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:13]Read from MH i2c: E2 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 03 00 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [07:33:13]RAPDU: 90 00 [07:33:13]wFMCommunicate OK [07:33:13]wFMCommunicate request_size=4 [07:33:13]MH_SAM_APDU [07:33:13]CAPDU: 80 0D 03 02 [07:33:13]Write to MH i2c: E2 08 00 B7 14 80 0D 03 02 00 00 00 00 46 [07:33:13]Write i2c OK [07:33:13]MH_I2C_Read... [07:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:13]Read from MH i2c: E2 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 0B 00 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 0B 00 B7 14 00 52 A3 0D B0 2F E2 5D F9 90 00 60 [07:33:13]RAPDU: 52 A3 0D B0 2F E2 5D F9 90 00 [07:33:13]wFMCommunicate OK [07:33:13]SAM_PROTO_SignData done [07:33:13]FM_MakeSignedData done [07:33:13]CreateOFDProtocolMessage [07:33:13]wFMCommunicate request_size=4 [07:33:13]MH_SAM_APDU [07:33:13]CAPDU: 80 11 00 00 [07:33:13]Write to MH i2c: E2 08 00 B8 14 80 11 00 00 00 00 00 00 46 [07:33:13]Write i2c OK [07:33:13]MH_I2C_Read... [07:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:13]Read from MH i2c: E2 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 17 00 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: E2 17 00 B8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9B [07:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:33:13]wFMCommunicate OK [07:33:13]CreateOFDProtocolMessage done [07:33:13]OFDSenderStorePacket 201757 [07:33:13]StoreOFDPacket docnum=201757 [07:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C8 B9 07 01 B3 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BB EC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 14 03 00 35 04 06 00 91 9D 88 1E E8 CC 52 A3 0D B0 2F E2 5D F9 [07:33:13]CheckFolder [07:33:13]dirname=/storage/ofd_packets [07:33:13]CheckFolder done [07:33:13]ProducePacketName [07:33:13]name=ofd_packets/00201757 [07:33:13]NVStorageSaveData ofd_packets/00201757 [07:33:13]File name is /storage/ofd_packets/00201757 [07:33:13]Write 301 bytes [07:33:13]NVStorageSaveData done [07:33:13]OFDSenderStorePacket done [07:33:13]KKMCreateOFDPacket done [07:33:13]NVStorageSaveData kkm_last_timestamp [07:33:13]File name is /storage/kkm_last_timestamp [07:33:13]Write 4 bytes [07:33:13]NVStorageSaveData done [07:33:13]ExternCall_PrintAddStr [07:33:13]wPrintStart [07:33:13]Write to MH i2c: 01 00 00 B9 14 CD [07:33:13]Write i2c OK [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: 01 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: 01 07 00 [07:33:13]MH_I2C_Read... [07:33:13]Read from MH i2c: 01 07 00 B9 14 00 00 00 00 00 FF 0F E2 [07:33:13]RasterBufferAndPrint [07:33:13]line Счет N : (1)449513 [07:33:13]line ИНН: 02508201610067 [07:33:13]line Контрольно-Кассовый Чек [07:33:13]line ПРОДАЖА [07:33:13]line ТРК (МРК, ГНК) : 31 [07:33:13]line Товар: 2710124130 [07:33:13]line Аи-92-К-2 [07:33:13]line 4.490 * 66.90 [07:33:13]line = 300.38 [07:33:13]line НДС 12% НСП 1% [07:33:13]line > о реализуемом товаре [07:33:13]line ОКРУГЛЕНИЕ: -0.38 [07:33:13]line ИТОГО: 300.00 [07:33:13]line Внесено: 300.00 [07:33:13]line СДАЧА: 0.00 [07:33:13]line НСП 1% : 2.66 [07:33:13]line НДС 12% : 31.90 [07:33:13]line Наличными: 300.00 [07:33:13]line Безнал.: 0.00 [07:33:13]line Место: АЗС № 171 "Партнер Нефть" [07:33:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:33:13]line СНО: Общий режим [07:33:13]line Чек 49 27.10.2024 07:33 [07:33:13]line Смена: 544 ФФД: 1.0 [07:33:13]line ЗНМ: 0300000109 [07:33:13]line РНМ: 0000000000091777 [07:33:13]line Версия ККМ: 001 [07:33:13]line ФМ: 0000000000871756 [07:33:13]line ФД: 201757 [07:33:13]line ФПД: 160105779620044 [07:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T073315&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201757&fm=160105779620044&tin=02508201610067®Number=0000000000091777&sum=30000 [07:33:14]OFD Sender: Processing packet 201757 [packets to send 112, broken 111] [07:33:14]ProducePacketName [07:33:14]name=ofd_packets/00201757 [07:33:14]OFD Sender: To server: pG, [07:33:14]CommunicateWithHost lk.salyk.kg:30040 [07:33:14]ConnectInit lk.salyk.kg [07:33:14]written 0, free lines is 4095 [07:33:14]Connected sock=10 [07:33:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C8 B9 07 01 B3 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BB EC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 14 03 00 35 04 06 00 91 9D 88 1E E8 CC 52 A3 0D B0 2F E2 5D F9 [07:33:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E5 62 47 00 D5 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 14 03 00 F4 03 04 00 61 98 1D 67 B6 04 01 00 00 FA FC 75 26 28 6B E9 4D [07:33:14]CommunicateWithHost err = 0 [07:33:14]CheckOFDResponse [07:33:14]1017 (14) - 77093643461234 [07:33:14]1041 (16) - 0000000000871756 [07:33:14]1040 (4) - 201757 [07:33:14]1012 (4) - 27.10.2024 01:33 [07:33:14]1206 (1) - 0 [07:33:14]OFD Sender: Remove packet 201757 [07:33:14]ProducePacketName [07:33:14]name=ofd_packets/00201757 [07:33:14]NVStorageDeleteData [07:33:14]Write to MH i2c: 01 00 00 E4 14 F8 [07:33:14]Write i2c OK [07:33:14]MH_I2C_Read... [07:33:14]Read from MH i2c: 01 [07:33:14]MH_I2C_Read... [07:33:14]Read from MH i2c: 01 07 00 [07:33:14]MH_I2C_Read... [07:33:14]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 8C 0C 97 [07:33:14]RasterBufferAndPrint [07:33:14]line [07:33:14]line [07:33:14]line [07:33:14]line [07:33:14]line [07:33:14]written 0, free lines is 3217 [07:33:14]MH_Cut [07:33:14]Write to MH i2c: D1 01 00 EB 14 01 D1 [07:33:14]Write i2c OK [07:33:14]MH_I2C_Read... [07:33:14]Read from MH i2c: D1 [07:33:14]MH_I2C_Read... [07:33:14]Read from MH i2c: D1 01 00 [07:33:14]MH_I2C_Read... [07:33:14]Read from MH i2c: D1 01 00 EB 14 00 D0 [07:33:14]Write to MH i2c: 01 00 00 EC 14 00 [07:33:14]Write i2c OK [07:33:14]MH_I2C_Read... [07:33:15]OFD Sender: No OFD packet to send [07:33:15]*** Cut start [07:33:15]*** Purtial cut [07:33:15]*** Stage 1: CUTSNS_PIN = 1 [07:33:15]Read from MH i2c: 01 [07:33:15]MH_I2C_Read... [07:33:15]*** Stop cut motor [07:33:15]*** Cut end [07:33:15]Read from MH i2c: 01 07 00 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 FF 0F 15 [07:33:15]process_action close_receipt done [07:33:15]requested_data is exist [07:33:15]produce_requested_data [07:33:15]requested_item fm.sn is exist - process it [07:33:15]wFMCommunicate request_size=4 [07:33:15]MH_SAM_APDU [07:33:15]CAPDU: 80 11 00 00 [07:33:15]Write to MH i2c: E2 08 00 ED 14 80 11 00 00 00 00 00 00 7B [07:33:15]Write i2c OK [07:33:15]MH_I2C_Read... [07:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:15]Read from MH i2c: E2 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: E2 17 00 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: E2 17 00 ED 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D0 [07:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:33:15]wFMCommunicate OK [07:33:15]requested_item fd.num is exist - process it [07:33:15]SAM_PROTO_GetFieldsCounters [07:33:15]wFMCommunicate request_size=4 [07:33:15]MH_SAM_APDU [07:33:15]CAPDU: 80 13 00 00 [07:33:15]Write to MH i2c: E2 08 00 EE 14 80 13 00 00 00 00 00 00 7E [07:33:15]Write i2c OK [07:33:15]MH_I2C_Read... [07:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:15]Read from MH i2c: E2 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: E2 62 00 [07:33:15]MH_I2C_Read... [07:33:15]Read from MH i2c: E2 62 00 EE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1D 14 03 00 0E 04 04 00 20 02 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 90 [07:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1D 14 03 00 0E 04 04 00 20 02 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 [07:33:15]wFMCommunicate OK [07:33:15]SAM_PROTO_GetFieldsCounters done [07:33:15]requested_item shift.num is exist - process it [07:33:15]requested_item shift.opened is exist - process it [07:33:15]req_shift_opened [07:33:15]FM_GetShiftState [07:33:15]SAM_PROTO_GetShiftState [07:33:15]wFMCommunicate request_size=4 [07:33:15]MH_SAM_APDU [07:33:15]CAPDU: 80 13 01 00 [07:33:15]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [07:33:15]Write i2c OK [07:33:15]MH_I2C_Read... [07:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:16]Read from MH i2c: E2 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: E2 0E 00 [07:33:16]MH_I2C_Read... [07:33:16]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 82 [07:33:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:33:16]wFMCommunicate OK [07:33:16]SAM_PROTO_GetShiftState done [07:33:16]FM_GetShiftState done [07:33:16]req_shift_opened done [07:33:16]requested_item shift.open_date is exist - process it [07:33:16]req_shift_open_date [07:33:16]req_shift_open_date done [07:33:16]produce_requested_data done [07:33:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201757,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:33:16]process_action_free close_receipt [07:33:16]json_value_free [07:33:16]json_value_free done [07:33:16]process_json_proto returns [07:33:16]Send response to host [07:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201757,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:33:16]free response buf [07:33:16]execute_script done [07:33:16]execute_script returns [07:33:16]free content buf [07:33:16]Sock 8.Close socket [07:33:16]Sock 8.Thread stoped [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:39:25]Write to MH i2c: E2 0E 00 F9 14 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 BF [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:39:25]Read from MH i2c: E2 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 F9 14 00 90 00 81 [07:39:25]RAPDU: 90 00 [07:39:25]wFMCommunicate OK [07:39:25]wFMCommunicate request_size=13 [07:39:25]MH_SAM_APDU [07:39:25]CAPDU: 80 15 02 00 08 F4 03 04 00 30 EE 1D 67 [07:39:25]Write to MH i2c: E2 10 00 FA 14 80 15 02 00 08 00 F4 03 04 00 30 EE 1D 67 00 00 3B [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:39:25]Read from MH i2c: E2 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 FA 14 00 90 00 82 [07:39:25]RAPDU: 90 00 [07:39:25]wFMCommunicate OK [07:39:25]wFMCommunicate request_size=25 [07:39:25]MH_SAM_APDU [07:39:25]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [07:39:25]Write to MH i2c: E2 1C 00 FB 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 F7 [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:39:25]Read from MH i2c: E2 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 03 00 FB 14 00 90 00 83 [07:39:25]RAPDU: 90 00 [07:39:25]wFMCommunicate OK [07:39:25]wFMCommunicate request_size=4 [07:39:25]MH_SAM_APDU [07:39:25]CAPDU: 80 15 03 00 [07:39:25]Write to MH i2c: E2 08 00 FC 14 80 15 03 00 00 00 00 00 91 [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [07:39:25]Read from MH i2c: E2 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 40 00 [07:39:25]MH_I2C_Read... [07:39:25]Read from MH i2c: E2 40 00 FC 14 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 32 00 00 00 35 04 06 00 BA 45 C9 64 6B 38 90 00 E1 [07:39:25]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 32 00 00 00 35 04 06 00 BA 45 C9 64 6B 38 90 00 [07:39:25]wFMCommunicate OK [07:39:25]SAM_PROTO_ProcessDocument answer len = 59 [07:39:25]SAM_PROTO_ProcessDocument done [07:39:25]SetTLVBufToDocument [07:39:25]Processing tag 1209 (04B9) [07:39:25]Malloc new data [07:39:25]Processing tag 1041 (0411) [07:39:25]Processing tag 1040 (0410) [07:39:25]Malloc new data [07:39:25]Processing tag 1038 (040E) [07:39:25]Malloc new data [07:39:25]Processing tag 1042 (0412) [07:39:25]Malloc new data [07:39:25]Processing tag 1077 (0435) [07:39:25]Malloc new data [07:39:25]SetTLVBufToDocument err=0 [07:39:25]KKMLoadAndSignReceiptData store KKM data [07:39:25]KKMLoadAndSignReceiptData err=0 [07:39:25]wFMCommunicate request_size=4 [07:39:25]MH_SAM_APDU [07:39:25]CAPDU: 80 11 00 00 [07:39:25]Write to MH i2c: E2 08 00 FD 14 80 11 00 00 00 00 00 00 8B [07:39:25]Write i2c OK [07:39:25]MH_I2C_Read... [07:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:26]Read from MH i2c: E2 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 17 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 17 00 FD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E0 [07:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:39:26]wFMCommunicate OK [07:39:26]Счет N : (1)449514 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 41 Товар: 2710124130 Аи-92-К-2 7.480 * 66.90 = 500.41 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 50 27.10.2024 07:39 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201758 ФПД: 204808894311224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T073928&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201758&fm=204808894311224&tin=02508201610067®Number=0000000000091777&sum=50000 [07:39:26]StoreToDocumentArchive [07:39:26]shift 544 fd 201758 [07:39:26]save to /storage/0544/doc_00201758 [07:39:26]save last doc name /storage/0544/doc_00201758 to /storage/kkm_last_doc_name [07:39:26]save OK [07:39:26]Clear old archive folders... [07:39:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:39:26]tlvbuf is B6EE0680 [07:39:26]SAM_PROTO_ClearQueue [07:39:26]wFMCommunicate request_size=4 [07:39:26]MH_SAM_APDU [07:39:26]CAPDU: 80 09 00 00 [07:39:26]Write to MH i2c: E2 08 00 FE 14 80 09 00 00 00 00 00 00 84 [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:26]Read from MH i2c: E2 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 03 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [07:39:26]RAPDU: 90 00 [07:39:26]wFMCommunicate OK [07:39:26]SAM_PROTO_ClearQueue done [07:39:26]KKMCreateOFDPacket [07:39:26]OFDProtocolAddRootSTLVToBuf [07:39:26]FM_MakeSignedData [07:39:26]FM_MakeSignedData [07:39:26]SAM_PROTO_SignData [07:39:26]wFMCommunicate request_size=4 [07:39:26]MH_SAM_APDU [07:39:26]CAPDU: 80 0D 01 02 [07:39:26]Write to MH i2c: E2 08 00 FF 14 80 0D 01 02 00 00 00 00 8C [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:26]Read from MH i2c: E2 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 03 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [07:39:26]RAPDU: 90 00 [07:39:26]wFMCommunicate OK [07:39:26]wFMCommunicate request_size=255 [07:39:26]MH_SAM_APDU [07:39: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 32 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 32 00 00 00 F4 03 04 00 30 EE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 14 03 00 35 04 06 00 BA [07:39:26]Write to MH i2c: E2 02 01 00 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 00 00 00 F4 03 04 00 30 EE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 14 03 00 35 04 06 00 BA 00 00 06 [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:26]Read from MH i2c: E2 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 03 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [07:39:26]RAPDU: 90 00 [07:39:26]wFMCommunicate OK [07:39:26]wFMCommunicate request_size=10 [07:39:26]MH_SAM_APDU [07:39:26]CAPDU: 80 0D 02 02 05 45 C9 64 6B 38 [07:39:26]Write to MH i2c: E2 0D 00 01 15 80 0D 02 02 05 00 45 C9 64 6B 38 00 00 AF [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:26]Read from MH i2c: E2 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 03 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [07:39:26]RAPDU: 90 00 [07:39:26]wFMCommunicate OK [07:39:26]wFMCommunicate request_size=4 [07:39:26]MH_SAM_APDU [07:39:26]CAPDU: 80 0D 03 02 [07:39:26]Write to MH i2c: E2 08 00 02 15 80 0D 03 02 00 00 00 00 92 [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:26]Read from MH i2c: E2 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 0B 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 0B 00 02 15 00 1A 66 F8 42 C0 8C 40 70 90 00 49 [07:39:26]RAPDU: 1A 66 F8 42 C0 8C 40 70 90 00 [07:39:26]wFMCommunicate OK [07:39:26]SAM_PROTO_SignData done [07:39:26]FM_MakeSignedData done [07:39:26]CreateOFDProtocolMessage [07:39:26]wFMCommunicate request_size=4 [07:39:26]MH_SAM_APDU [07:39:26]CAPDU: 80 11 00 00 [07:39:26]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:26]Read from MH i2c: E2 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 17 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E7 [07:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:39:26]wFMCommunicate OK [07:39:26]CreateOFDProtocolMessage done [07:39:26]OFDSenderStorePacket 201758 [07:39:26]StoreOFDPacket docnum=201758 [07:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD C6 07 01 77 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 00 00 00 F4 03 04 00 30 EE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 14 03 00 35 04 06 00 BA 45 C9 64 6B 38 1A 66 F8 42 C0 8C 40 70 [07:39:26]CheckFolder [07:39:26]dirname=/storage/ofd_packets [07:39:26]CheckFolder done [07:39:26]ProducePacketName [07:39:26]name=ofd_packets/00201758 [07:39:26]NVStorageSaveData ofd_packets/00201758 [07:39:26]File name is /storage/ofd_packets/00201758 [07:39:26]Write 301 bytes [07:39:26]NVStorageSaveData done [07:39:26]OFDSenderStorePacket done [07:39:26]KKMCreateOFDPacket done [07:39:26]NVStorageSaveData kkm_last_timestamp [07:39:26]File name is /storage/kkm_last_timestamp [07:39:26]Write 4 bytes [07:39:26]NVStorageSaveData done [07:39:26]ExternCall_PrintAddStr [07:39:26]wPrintStart [07:39:26]Write to MH i2c: 01 00 00 04 15 19 [07:39:26]Write i2c OK [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: 01 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: 01 07 00 [07:39:26]MH_I2C_Read... [07:39:26]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [07:39:26]RasterBufferAndPrint [07:39:26]line Счет N : (1)449514 [07:39:26]line ИНН: 02508201610067 [07:39:26]line Контрольно-Кассовый Чек [07:39:26]line ПРОДАЖА [07:39:26]line ТРК (МРК, ГНК) : 41 [07:39:26]line Товар: 2710124130 [07:39:26]line Аи-92-К-2 [07:39:26]line 7.480 * 66.90 [07:39:26]line = 500.41 [07:39:26]line НДС 12% НСП 1% [07:39:26]line > о реализуемом товаре [07:39:26]line ОКРУГЛЕНИЕ: -0.41 [07:39:26]line ИТОГО: 500.00 [07:39:26]line Внесено: 500.00 [07:39:26]line СДАЧА: 0.00 [07:39:26]line НСП 1% : 4.43 [07:39:26]line НДС 12% : 53.14 [07:39:26]line Наличными: 500.00 [07:39:26]line Безнал.: 0.00 [07:39:26]line Место: АЗС № 171 "Партнер Нефть" [07:39:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:39:26]line СНО: Общий режим [07:39:26]line Чек 50 27.10.2024 07:39 [07:39:26]line Смена: 544 ФФД: 1.0 [07:39:26]line ЗНМ: 0300000109 [07:39:26]line РНМ: 0000000000091777 [07:39:26]line Версия ККМ: 001 [07:39:26]line ФМ: 0000000000871756 [07:39:26]line ФД: 201758 [07:39:26]line ФПД: 204808894311224 [07:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T073928&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201758&fm=204808894311224&tin=02508201610067®Number=0000000000091777&sum=50000 [07:39:26]OFD Sender: Processing packet 201758 [packets to send 112, broken 111] [07:39:26]ProducePacketName [07:39:26]name=ofd_packets/00201758 [07:39:26]OFD Sender: To server: pG, [07:39:26]CommunicateWithHost lk.salyk.kg:30040 [07:39:26]ConnectInit lk.salyk.kg [07:39:26]written 0, free lines is 4095 [07:39:27]Connected sock=11 [07:39:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD C6 07 01 77 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 00 00 00 F4 03 04 00 30 EE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 14 03 00 35 04 06 00 BA 45 C9 64 6B 38 1A 66 F8 42 C0 8C 40 70 [07:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1C 68 47 00 7E 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 14 03 00 F4 03 04 00 D6 99 1D 67 B6 04 01 00 00 99 7B 37 A5 28 FE A4 62 [07:39:27]CommunicateWithHost err = 0 [07:39:27]CheckOFDResponse [07:39:27]1017 (14) - 77093643461234 [07:39:27]1041 (16) - 0000000000871756 [07:39:27]1040 (4) - 201758 [07:39:27]1012 (4) - 27.10.2024 01:39 [07:39:27]1206 (1) - 0 [07:39:27]OFD Sender: Remove packet 201758 [07:39:27]ProducePacketName [07:39:27]name=ofd_packets/00201758 [07:39:27]NVStorageDeleteData [07:39:27]Write to MH i2c: 01 00 00 2F 15 44 [07:39:27]Write i2c OK [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: 01 [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: 01 07 00 [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: 01 07 00 2F 15 00 00 00 00 00 8D 0C E4 [07:39:27]RasterBufferAndPrint [07:39:27]line [07:39:27]line [07:39:27]line [07:39:27]line [07:39:27]line [07:39:27]written 0, free lines is 3218 [07:39:27]MH_Cut [07:39:27]Write to MH i2c: D1 01 00 36 15 01 1D [07:39:27]Write i2c OK [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: D1 [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: D1 01 00 [07:39:27]MH_I2C_Read... [07:39:27]Read from MH i2c: D1 01 00 36 15 00 1C [07:39:27]Write to MH i2c: 01 00 00 37 15 4C [07:39:27]Write i2c OK [07:39:27]MH_I2C_Read... [07:39:27]OFD Sender: No OFD packet to send [07:39:28]*** Cut start [07:39:28]*** Purtial cut [07:39:28]*** Stage 1: CUTSNS_PIN = 1 [07:39:28]Read from MH i2c: 01 [07:39:28]MH_I2C_Read... [07:39:28]*** Stop cut motor [07:39:28]*** Cut end [07:39:28]Read from MH i2c: 01 07 00 [07:39:28]MH_I2C_Read... [07:39:28]Read from MH i2c: 01 07 00 37 15 00 00 00 00 00 FF 0F 61 [07:39:28]process_action close_receipt done [07:39:28]requested_data is exist [07:39:28]produce_requested_data [07:39:28]requested_item fm.sn is exist - process it [07:39:28]wFMCommunicate request_size=4 [07:39:28]MH_SAM_APDU [07:39:28]CAPDU: 80 11 00 00 [07:39:28]Write to MH i2c: E2 08 00 38 15 80 11 00 00 00 00 00 00 C7 [07:39:28]Write i2c OK [07:39:28]MH_I2C_Read... [07:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:28]Read from MH i2c: E2 [07:39:28]MH_I2C_Read... [07:39:28]Read from MH i2c: E2 17 00 [07:39:28]MH_I2C_Read... [07:39:28]Read from MH i2c: E2 17 00 38 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1C [07:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:39:28]wFMCommunicate OK [07:39:28]requested_item fd.num is exist - process it [07:39:28]SAM_PROTO_GetFieldsCounters [07:39:28]wFMCommunicate request_size=4 [07:39:28]MH_SAM_APDU [07:39:28]CAPDU: 80 13 00 00 [07:39:28]Write to MH i2c: E2 08 00 39 15 80 13 00 00 00 00 00 00 CA [07:39:28]Write i2c OK [07:39:28]MH_I2C_Read... [07:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:28]Read from MH i2c: E2 [07:39:28]MH_I2C_Read... [07:39:28]Read from MH i2c: E2 62 00 [07:39:28]MH_I2C_Read... [07:39:28]Read from MH i2c: E2 62 00 39 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1E 14 03 00 0E 04 04 00 20 02 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 E0 [07:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1E 14 03 00 0E 04 04 00 20 02 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 [07:39:28]wFMCommunicate OK [07:39:28]SAM_PROTO_GetFieldsCounters done [07:39:28]requested_item shift.num is exist - process it [07:39:28]requested_item shift.opened is exist - process it [07:39:28]req_shift_opened [07:39:28]FM_GetShiftState [07:39:28]SAM_PROTO_GetShiftState [07:39:28]wFMCommunicate request_size=4 [07:39:28]MH_SAM_APDU [07:39:28]CAPDU: 80 13 01 00 [07:39:28]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [07:39:28]Write i2c OK [07:39:28]MH_I2C_Read... [07:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:28]Read from MH i2c: E2 [07:39:28]MH_I2C_Read... [07:39:28]Read from MH i2c: E2 0E 00 [07:39:28]MH_I2C_Read... [07:39:28]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CE [07:39:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:39:28]wFMCommunicate OK [07:39:28]SAM_PROTO_GetShiftState done [07:39:28]FM_GetShiftState done [07:39:28]req_shift_opened done [07:39:28]requested_item shift.open_date is exist - process it [07:39:28]req_shift_open_date [07:39:28]req_shift_open_date done [07:39:28]produce_requested_data done [07:39:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201758,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:39:28]process_action_free close_receipt [07:39:28]json_value_free [07:39:28]json_value_free done [07:39:28]process_json_proto returns [07:39:28]Send response to host [07:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201758,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:39:28]free response buf [07:39:28]execute_script done [07:39:28]execute_script returns [07:39:28]free content buf [07:39:28]Sock 9.Close socket [07:39:28]Sock 9.Thread stoped [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:10]accept exits with 10 [07:41:10]New connection [07:41:10]New thread 3067080036 created [07:41:10]Thread 3066936676 joined [07:41:10]Waiting for new connection... [07:41:10] Sock 10.Parse request [07:41:10]Sock 10.Check first char [07:41:10]Sock 10.First char is OK [07:41:10]request: POST /json_proto HTTP/1.0 [07:41:10]Method: POST [07:41:10]URL: /json_proto [07:41:10]Method is POST - this is cgi request [07:41:10]url: /json_proto [07:41:10]query_string will be loaded in cgi processing [07:41:10]execute_cgi json_proto POST (null) [07:41:10]execute_cgi path=json_proto method=POST [07:41:10]POST find Content-Length [07:41:10]Host: 172.17.63.195:8080 [07:41:10]Content-Length: 677 [07:41:10]Content-Type: application/json [07:41:10] [07:41:10]POST finish read [07:41:10]Found Content-Length = 677 [07:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:41:10]execute_script... [07:41: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)449515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:41:10]POST & json_proto [07:41:10]process_json_proto [07:41:10]json parsed OK: [07:41:10]protocol is kg_v1.0 [07:41:10]action value=close_receipt [07:41:10]process_action close_receipt [07:41:10]cmd_close_receipt [07:41:10]MH_GetDate [07:41:10]Write to MH i2c: F0 00 00 3B 15 3F [07:41:10]Write i2c OK [07:41:10]MH_I2C_Read... [07:41:10]Read from MH i2c: F0 [07:41:10]MH_I2C_Read... [07:41:10]Read from MH i2c: F0 09 00 [07:41:10]MH_I2C_Read... [07:41:10]Read from MH i2c: F0 09 00 3B 15 00 9A EE 1D 67 68 46 19 67 82 [07:41:10]GetLastDocTimeStamp 1730014768 [07:41:10]current date 1730014874 [07:41:10]FM_GetShiftState [07:41:10]SAM_PROTO_GetShiftState [07:41:10]wFMCommunicate request_size=4 [07:41:10]MH_SAM_APDU [07:41:10]CAPDU: 80 13 01 00 [07:41:10]Write to MH i2c: E2 08 00 3C 15 80 13 01 00 00 00 00 00 CE [07:41:10]Write i2c OK [07:41:10]MH_I2C_Read... [07:41:10]Read from MH i2c: E2 [07:41:10]MH_I2C_Read... [07:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:10]Read from MH i2c: E2 0E 00 [07:41:10]MH_I2C_Read... [07:41:10]Read from MH i2c: E2 0E 00 3C 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D0 [07:41:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:41:10]wFMCommunicate OK [07:41:10]SAM_PROTO_GetShiftState done [07:41:10]FM_GetShiftState done [07:41:10]opened in 1729987312 [07:41:10]opened+sec_in_day 1730073712 [07:41:10]quantity*price = 50041 [07:41:10]sum+1 = 50042 [07:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 51 27.10.2024 07:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201759 ФПД: 39672121066768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074114&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201759&fm=39672121066768&tin=02508201610067®Number=0000000000091777&sum=50000 [07:41:11]StoreToDocumentArchive [07:41:11]shift 544 fd 201759 [07:41:11]save to /storage/0544/doc_00201759 [07:41:11]save last doc name /storage/0544/doc_00201759 to /storage/kkm_last_doc_name [07:41:11]save OK [07:41:11]Clear old archive folders... [07:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:11]tlvbuf is 00114830 [07:41:11]SAM_PROTO_ClearQueue [07:41:11]wFMCommunicate request_size=4 [07:41:11]MH_SAM_APDU [07:41:11]CAPDU: 80 09 00 00 [07:41:11]Write to MH i2c: E2 08 00 49 15 80 09 00 00 00 00 00 00 D0 [07:41:11]Write i2c OK [07:41:11]MH_I2C_Read... [07:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:11]Read from MH i2c: E2 [07:41:11]MH_I2C_Read... [07:41:11]Read from MH i2c: E2 03 00 [07:41:11]MH_I2C_Read... [07:41:11]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [07:41:11]RAPDU: 90 00 [07:41:11]wFMCommunicate OK [07:41:11]SAM_PROTO_ClearQueue done [07:41:11]KKMCreateOFDPacket [07:41:11]OFDProtocolAddRootSTLVToBuf [07:41:11]FM_MakeSignedData [07:41:11]FM_MakeSignedData [07:41:11]SAM_PROTO_SignData [07:41:11]wFMCommunicate request_size=4 [07:41:11]MH_SAM_APDU [07:41:11]CAPDU: 80 0D 01 02 [07:41:11]Write to MH i2c: E2 08 00 4A 15 80 0D 01 02 00 00 00 00 D8 [07:41:11]Write i2c OK [07:41:11]MH_I2C_Read... [07:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:12]Read from MH i2c: E2 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 03 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [07:41:12]RAPDU: 90 00 [07:41:12]wFMCommunicate OK [07:41:12]wFMCommunicate request_size=255 [07:41:12]MH_SAM_APDU [07:41:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 33 00 00 00 F4 03 04 00 9A EE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 14 03 00 35 04 06 00 24 [07:41:12]Write to MH i2c: E2 02 01 4B 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 33 00 00 00 F4 03 04 00 9A EE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 14 03 00 35 04 06 00 24 00 00 27 [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:12]Read from MH i2c: E2 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 03 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [07:41:12]RAPDU: 90 00 [07:41:12]wFMCommunicate OK [07:41:12]wFMCommunicate request_size=10 [07:41:12]MH_SAM_APDU [07:41:12]CAPDU: 80 0D 02 02 05 14 E2 AF 05 10 [07:41:12]Write to MH i2c: E2 0D 00 4C 15 80 0D 02 02 05 00 14 E2 AF 05 10 00 00 9F [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:12]Read from MH i2c: E2 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 03 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [07:41:12]RAPDU: 90 00 [07:41:12]wFMCommunicate OK [07:41:12]wFMCommunicate request_size=4 [07:41:12]MH_SAM_APDU [07:41:12]CAPDU: 80 0D 03 02 [07:41:12]Write to MH i2c: E2 08 00 4D 15 80 0D 03 02 00 00 00 00 DD [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:12]Read from MH i2c: E2 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 0B 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 0B 00 4D 15 00 69 87 27 6B 81 54 1F 00 90 00 54 [07:41:12]RAPDU: 69 87 27 6B 81 54 1F 00 90 00 [07:41:12]wFMCommunicate OK [07:41:12]SAM_PROTO_SignData done [07:41:12]FM_MakeSignedData done [07:41:12]CreateOFDProtocolMessage [07:41:12]wFMCommunicate request_size=4 [07:41:12]MH_SAM_APDU [07:41:12]CAPDU: 80 11 00 00 [07:41:12]Write to MH i2c: E2 08 00 4E 15 80 11 00 00 00 00 00 00 DD [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:12]Read from MH i2c: E2 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 17 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: E2 17 00 4E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 32 [07:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:41:12]wFMCommunicate OK [07:41:12]CreateOFDProtocolMessage done [07:41:12]OFDSenderStorePacket 201759 [07:41:12]StoreOFDPacket docnum=201759 [07:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 55 A3 07 01 7C F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 33 00 00 00 F4 03 04 00 9A EE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 14 03 00 35 04 06 00 24 14 E2 AF 05 10 69 87 27 6B 81 54 1F 00 [07:41:12]CheckFolder [07:41:12]dirname=/storage/ofd_packets [07:41:12]CheckFolder done [07:41:12]ProducePacketName [07:41:12]name=ofd_packets/00201759 [07:41:12]NVStorageSaveData ofd_packets/00201759 [07:41:12]File name is /storage/ofd_packets/00201759 [07:41:12]Write 301 bytes [07:41:12]NVStorageSaveData done [07:41:12]OFDSenderStorePacket done [07:41:12]KKMCreateOFDPacket done [07:41:12]NVStorageSaveData kkm_last_timestamp [07:41:12]File name is /storage/kkm_last_timestamp [07:41:12]Write 4 bytes [07:41:12]NVStorageSaveData done [07:41:12]ExternCall_PrintAddStr [07:41:12]wPrintStart [07:41:12]Write to MH i2c: 01 00 00 4F 15 64 [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: 01 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: 01 07 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: 01 07 00 4F 15 00 00 00 00 00 FF 0F 79 [07:41:12]RasterBufferAndPrint [07:41:12]line Счет N : (1)449515 [07:41:12]line ИНН: 02508201610067 [07:41:12]line Контрольно-Кассовый Чек [07:41:12]line ПРОДАЖА [07:41:12]line ТРК (МРК, ГНК) : 41 [07:41:12]line Товар: 2710124130 [07:41:12]line Аи-92-К-2 [07:41:12]line 7.480 * 66.90 [07:41:12]line = 500.41 [07:41:12]line НДС 12% НСП 1% [07:41:12]line > о реализуемом товаре [07:41:12]line ОКРУГЛЕНИЕ: -0.41 [07:41:12]line ИТОГО: 500.00 [07:41:12]line Внесено: 500.00 [07:41:12]line СДАЧА: 0.00 [07:41:12]line НСП 1% : 4.43 [07:41:12]line НДС 12% : 53.14 [07:41:12]line Наличными: 500.00 [07:41:12]line Безнал.: 0.00 [07:41:12]line Место: АЗС № 171 "Партнер Нефть" [07:41:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:41:12]line СНО: Общий режим [07:41:12]line Чек 51 27.10.2024 07:41 [07:41:12]line Смена: 544 ФФД: 1.0 [07:41:12]line ЗНМ: 0300000109 [07:41:12]line РНМ: 0000000000091777 [07:41:12]line Версия ККМ: 001 [07:41:12]line ФМ: 0000000000871756 [07:41:12]line ФД: 201759 [07:41:12]line ФПД: 39672121066768 [07:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074114&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201759&fm=39672121066768&tin=02508201610067®Number=0000000000091777&sum=50000 [07:41:12]written 0, free lines is 4095 [07:41:12]OFD Sender: Processing packet 201759 [packets to send 112, broken 111] [07:41:12]ProducePacketName [07:41:12]name=ofd_packets/00201759 [07:41:12]OFD Sender: To server: pG, [07:41:12]CommunicateWithHost lk.salyk.kg:30040 [07:41:12]ConnectInit lk.salyk.kg [07:41:12]Connected sock=11 [07:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 55 A3 07 01 7C F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 33 00 00 00 F4 03 04 00 9A EE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 14 03 00 35 04 06 00 24 14 E2 AF 05 10 69 87 27 6B 81 54 1F 00 [07:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD 85 47 00 21 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 14 03 00 F4 03 04 00 40 9A 1D 67 B6 04 01 00 00 5E 92 27 E4 5E 49 25 35 [07:41:12]CommunicateWithHost err = 0 [07:41:12]CheckOFDResponse [07:41:12]1017 (14) - 77093643461234 [07:41:12]1041 (16) - 0000000000871756 [07:41:12]1040 (4) - 201759 [07:41:12]1012 (4) - 27.10.2024 01:41 [07:41:12]1206 (1) - 0 [07:41:12]OFD Sender: Remove packet 201759 [07:41:12]ProducePacketName [07:41:12]name=ofd_packets/00201759 [07:41:12]NVStorageDeleteData [07:41:12]Write to MH i2c: 01 00 00 7A 15 8F [07:41:12]Write i2c OK [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: 01 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: 01 07 00 [07:41:12]MH_I2C_Read... [07:41:12]Read from MH i2c: 01 07 00 7A 15 00 00 00 00 00 9D 0C 3F [07:41:12]RasterBufferAndPrint [07:41:12]line [07:41:12]line [07:41:12]line [07:41:12]line [07:41:12]line [07:41:12]written 0, free lines is 3241 [07:41:13]MH_Cut [07:41:13]Write to MH i2c: D1 01 00 81 15 01 68 [07:41:13]Write i2c OK [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: D1 [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: D1 01 00 [07:41:13]MH_I2C_Read... [07:41:13]Read from MH i2c: D1 01 00 81 15 00 67 [07:41:13]Write to MH i2c: 01 00 00 82 15 97 [07:41:13]Write i2c OK [07:41:13]MH_I2C_Read... [07:41:13]OFD Sender: No OFD packet to send [07:41:13]*** Cut start [07:41:13]*** Purtial cut [07:41:13]*** Stage 1: CUTSNS_PIN = 1 [07:41:14]Read from MH i2c: 01 [07:41:14]MH_I2C_Read... [07:41:14]*** Stop cut motor [07:41:14]*** Cut end [07:41:14]Read from MH i2c: 01 07 00 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: 01 07 00 82 15 00 00 00 00 00 FF 0F AC [07:41:14]process_action close_receipt done [07:41:14]requested_data is exist [07:41:14]produce_requested_data [07:41:14]requested_item fm.sn is exist - process it [07:41:14]wFMCommunicate request_size=4 [07:41:14]MH_SAM_APDU [07:41:14]CAPDU: 80 11 00 00 [07:41:14]Write to MH i2c: E2 08 00 83 15 80 11 00 00 00 00 00 00 12 [07:41:14]Write i2c OK [07:41:14]MH_I2C_Read... [07:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:14]Read from MH i2c: E2 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 17 00 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 17 00 83 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 67 [07:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:41:14]wFMCommunicate OK [07:41:14]requested_item fd.num is exist - process it [07:41:14]SAM_PROTO_GetFieldsCounters [07:41:14]wFMCommunicate request_size=4 [07:41:14]MH_SAM_APDU [07:41:14]CAPDU: 80 13 00 00 [07:41:14]Write to MH i2c: E2 08 00 84 15 80 13 00 00 00 00 00 00 15 [07:41:14]Write i2c OK [07:41:14]MH_I2C_Read... [07:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:14]Read from MH i2c: E2 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 62 00 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 62 00 84 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1F 14 03 00 0E 04 04 00 20 02 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 2F [07:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1F 14 03 00 0E 04 04 00 20 02 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 [07:41:14]wFMCommunicate OK [07:41:14]SAM_PROTO_GetFieldsCounters done [07:41:14]requested_item shift.num is exist - process it [07:41:14]requested_item shift.opened is exist - process it [07:41:14]req_shift_opened [07:41:14]FM_GetShiftState [07:41:14]SAM_PROTO_GetShiftState [07:41:14]wFMCommunicate request_size=4 [07:41:14]MH_SAM_APDU [07:41:14]CAPDU: 80 13 01 00 [07:41:14]Write to MH i2c: E2 08 00 85 15 80 13 01 00 00 00 00 00 17 [07:41:14]Write i2c OK [07:41:14]MH_I2C_Read... [07:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:14]Read from MH i2c: E2 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 0E 00 [07:41:14]MH_I2C_Read... [07:41:14]Read from MH i2c: E2 0E 00 85 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 19 [07:41:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:41:14]wFMCommunicate OK [07:41:14]SAM_PROTO_GetShiftState done [07:41:14]FM_GetShiftState done [07:41:14]req_shift_opened done [07:41:14]requested_item shift.open_date is exist - process it [07:41:14]req_shift_open_date [07:41:14]req_shift_open_date done [07:41:14]produce_requested_data done [07:41:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201759,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:41:14]process_action_free close_receipt [07:41:14]json_value_free [07:41:14]json_value_free done [07:41:14]process_json_proto returns [07:41:14]Send response to host [07:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201759,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:41:14]free response buf [07:41:14]execute_script done [07:41:14]execute_script returns [07:41:14]free content buf [07:41:14]Sock 10.Close socket [07:41:14]Sock 10.Thread stoped [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]ConnectInit Can't connect to host [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]accept exits with 9 [07:42:58]New connection [07:42:58]New thread 3066936676 created [07:42:58]Thread 3067080036 joined [07:42:58]Waiting for new connection... [07:42:58] Sock 9.Parse request [07:42:58]Sock 9.Check first char [07:42:58]Sock 9.First char is OK [07:42:58]request: POST /json_proto HTTP/1.0 [07:42:58]Method: POST [07:42:58]URL: /json_proto [07:42:58]Method is POST - this is cgi request [07:42:58]url: /json_proto [07:42:58]query_string will be loaded in cgi processing [07:42:58]execute_cgi json_proto POST (null) [07:42:58]execute_cgi path=json_proto method=POST [07:42:58]POST find Content-Length [07:42:58]Host: 172.17.63.195:8080 [07:42:58]Content-Length: 679 [07:42:58]Content-Type: application/json [07:42:58] [07:42:58]POST finish read [07:42:58]Found Content-Length = 679 [07:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:58]execute_script... [07: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)449516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:58]POST & json_proto [07:42:58]process_json_proto [07:42:58]json parsed OK: [07:42:58]protocol is kg_v1.0 [07:42:58]action value=close_receipt [07:42:58]process_action close_receipt [07:42:58]cmd_close_receipt [07:42:58]MH_GetDate [07:42:58]Write to MH i2c: F0 00 00 86 15 8A [07:42:58]Write i2c OK [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 09 00 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 09 00 86 15 00 05 EF 1D 67 68 46 19 67 39 [07:42:58]GetLastDocTimeStamp 1730014874 [07:42:58]current date 1730014981 [07:42:58]FM_GetShiftState [07:42:58]SAM_PROTO_GetShiftState [07:42:58]wFMCommunicate request_size=4 [07:42:58]MH_SAM_APDU [07:42:58]CAPDU: 80 13 01 00 [07:42:58]Write to MH i2c: E2 08 00 87 15 80 13 01 00 00 00 00 00 19 [07:42:58]Write i2c OK [07:42:58]MH_I2C_Read... [07:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:58]Read from MH i2c: E2 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: E2 0E 00 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: E2 0E 00 87 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1B [07:42:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:42:58]wFMCommunicate OK [07:42:58]SAM_PROTO_GetShiftState done [07:42:58]FM_GetShiftState done [07:42:58]opened in 1729987312 [07:42:58]opened+sec_in_day 1730073712 [07:42:58]quantity*price = 500024 [07:42:58]sum+1 = 500025 [07:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 52 27.10.2024 07:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201760 ФПД: 280345754405301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074301&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201760&fm=280345754405301&tin=02508201610067®Number=0000000000091777&sum=500000 [07:42:59]StoreToDocumentArchive [07:42:59]shift 544 fd 201760 [07:42:59]save to /storage/0544/doc_00201760 [07:42:59]save last doc name /storage/0544/doc_00201760 to /storage/kkm_last_doc_name [07:42:59]save OK [07:42:59]Clear old archive folders... [07:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:42:59]tlvbuf is 00092100 [07:42:59]SAM_PROTO_ClearQueue [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 09 00 00 [07:42:59]Write to MH i2c: E2 08 00 94 15 80 09 00 00 00 00 00 00 1B [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [07:42:59]RAPDU: 90 00 [07:42:59]wFMCommunicate OK [07:42:59]SAM_PROTO_ClearQueue done [07:42:59]KKMCreateOFDPacket [07:42:59]OFDProtocolAddRootSTLVToBuf [07:42:59]FM_MakeSignedData [07:42:59]FM_MakeSignedData [07:42:59]SAM_PROTO_SignData [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 0D 01 02 [07:42:59]Write to MH i2c: E2 08 00 95 15 80 0D 01 02 00 00 00 00 23 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [07:42:59]RAPDU: 90 00 [07:42:59]wFMCommunicate OK [07:42:59]wFMCommunicate request_size=255 [07:42:59]MH_SAM_APDU [07:42: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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 05 EF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 14 03 00 35 04 06 00 FE F9 15 1B [07:42:59]Write to MH i2c: E2 02 01 96 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 05 EF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 14 03 00 35 04 06 00 FE F9 15 1B 00 00 EC [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [07:43:00]RAPDU: 90 00 [07:43:00]wFMCommunicate OK [07:43:00]wFMCommunicate request_size=7 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 0D 02 02 02 09 B5 [07:43:00]Write to MH i2c: E2 0A 00 97 15 80 0D 02 02 02 00 09 B5 00 00 E8 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [07:43:00]RAPDU: 90 00 [07:43:00]wFMCommunicate OK [07:43:00]wFMCommunicate request_size=4 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 0D 03 02 [07:43:00]Write to MH i2c: E2 08 00 98 15 80 0D 03 02 00 00 00 00 28 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 0B 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 0B 00 98 15 00 0C 21 32 21 56 91 EE 42 90 00 C0 [07:43:00]RAPDU: 0C 21 32 21 56 91 EE 42 90 00 [07:43:00]wFMCommunicate OK [07:43:00]SAM_PROTO_SignData done [07:43:00]FM_MakeSignedData done [07:43:00]CreateOFDProtocolMessage [07:43:00]wFMCommunicate request_size=4 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 11 00 00 [07:43:00]Write to MH i2c: E2 08 00 99 15 80 11 00 00 00 00 00 00 28 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 17 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 17 00 99 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7D [07:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:43:00]wFMCommunicate OK [07:43:00]CreateOFDProtocolMessage done [07:43:00]OFDSenderStorePacket 201760 [07:43:00]StoreOFDPacket docnum=201760 [07:43:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 69 8E 04 01 63 4A 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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 05 EF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 14 03 00 35 04 06 00 FE F9 15 1B 09 B5 0C 21 32 21 56 91 EE 42 [07:43:00]CheckFolder [07:43:00]dirname=/storage/ofd_packets [07:43:00]CheckFolder done [07:43:00]ProducePacketName [07:43:00]name=ofd_packets/00201760 [07:43:00]NVStorageSaveData ofd_packets/00201760 [07:43:00]File name is /storage/ofd_packets/00201760 [07:43:00]Write 298 bytes [07:43:00]NVStorageSaveData done [07:43:00]OFDSenderStorePacket done [07:43:00]KKMCreateOFDPacket done [07:43:00]NVStorageSaveData kkm_last_timestamp [07:43:00]File name is /storage/kkm_last_timestamp [07:43:00]Write 4 bytes [07:43:00]NVStorageSaveData done [07:43:00]ExternCall_PrintAddStr [07:43:00]wPrintStart [07:43:00]Write to MH i2c: 01 00 00 9A 15 AF [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 9A 15 00 00 00 00 00 FF 0F C4 [07:43:00]RasterBufferAndPrint [07:43:00]line Счет N : (1)449516 [07:43:00]line ИНН: 02508201610067 [07:43:00]line Контрольно-Кассовый Чек [07:43:00]line ПРОДАЖА [07:43:00]line ТРК (МРК, ГНК) : 11 [07:43:00]line Товар: 2710194210 [07:43:00]line ДТ-К-2 [07:43:00]line 65.620 * 76.20 [07:43:00]line = 5000.24 [07:43:00]line НДС 12% НСП 1% [07:43:00]line > о реализуемом товаре [07:43:00]line ОКРУГЛЕНИЕ: -0.24 [07:43:00]line ИТОГО: 5000.00 [07:43:00]line Внесено: 5000.00 [07:43:00]line СДАЧА: 0.00 [07:43:00]line НСП 1% : 44.25 [07:43:00]line НДС 12% : 531.00 [07:43:00]line Наличными: 5000.00 [07:43:00]line Безнал.: 0.00 [07:43:00]line Место: АЗС № 171 "Партнер Нефть" [07:43:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:43:00]line СНО: Общий режим [07:43:00]line Чек 52 27.10.2024 07:43 [07:43:00]line Смена: 544 ФФД: 1.0 [07:43:00]line ЗНМ: 0300000109 [07:43:00]line РНМ: 0000000000091777 [07:43:00]line Версия ККМ: 001 [07:43:00]line ФМ: 0000000000871756 [07:43:00]line ФД: 201760 [07:43:00]line ФПД: 280345754405301 [07:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074301&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201760&fm=280345754405301&tin=02508201610067®Number=0000000000091777&sum=500000 [07:43:00]written 0, free lines is 4095 [07:43:00]OFD Sender: Processing packet 201760 [packets to send 112, broken 111] [07:43:00]ProducePacketName [07:43:00]name=ofd_packets/00201760 [07:43:00]OFD Sender: To server: pG, [07:43:00]CommunicateWithHost lk.salyk.kg:30040 [07:43:00]ConnectInit lk.salyk.kg [07:43:00]Connected sock=11 [07:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 69 8E 04 01 63 4A 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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 05 EF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 14 03 00 35 04 06 00 FE F9 15 1B 09 B5 0C 21 32 21 56 91 EE 42 [07:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FC 60 47 00 F8 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 14 03 00 F4 03 04 00 AB 9A 1D 67 B6 04 01 00 00 CE 49 C7 0E 4B 6C 0E FD [07:43:00]CommunicateWithHost err = 0 [07:43:00]CheckOFDResponse [07:43:00]1017 (14) - 77093643461234 [07:43:00]1041 (16) - 0000000000871756 [07:43:00]1040 (4) - 201760 [07:43:00]1012 (4) - 27.10.2024 01:43 [07:43:00]1206 (1) - 0 [07:43:00]OFD Sender: Remove packet 201760 [07:43:00]ProducePacketName [07:43:00]name=ofd_packets/00201760 [07:43:00]NVStorageDeleteData [07:43:00]Write to MH i2c: 01 00 00 C5 15 DA [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 C5 15 00 00 00 00 00 98 0C 85 [07:43:00]RasterBufferAndPrint [07:43:00]line [07:43:00]line [07:43:00]line [07:43:00]line [07:43:00]line [07:43:00]written 0, free lines is 3239 [07:43:00]MH_Cut [07:43:00]Write to MH i2c: D1 01 00 CC 15 01 B3 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: D1 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: D1 01 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: D1 01 00 CC 15 00 B2 [07:43:00]Write to MH i2c: 01 00 00 CD 15 E2 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:01]OFD Sender: No OFD packet to send [07:43:01]*** Cut start [07:43:01]*** Purtial cut [07:43:01]*** Stage 1: CUTSNS_PIN = 1 [07:43:01]Read from MH i2c: 01 [07:43:01]MH_I2C_Read... [07:43:01]*** Stop cut motor [07:43:01]*** Cut end [07:43:01]Read from MH i2c: 01 07 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 CD 15 00 00 00 00 00 FF 0F F7 [07:43:01]process_action close_receipt done [07:43:01]requested_data is exist [07:43:01]produce_requested_data [07:43:01]requested_item fm.sn is exist - process it [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 11 00 00 [07:43:01]Write to MH i2c: E2 08 00 CE 15 80 11 00 00 00 00 00 00 5D [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 17 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 17 00 CE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B2 [07:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:43:01]wFMCommunicate OK [07:43:01]requested_item fd.num is exist - process it [07:43:01]SAM_PROTO_GetFieldsCounters [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 13 00 00 [07:43:01]Write to MH i2c: E2 08 00 CF 15 80 13 00 00 00 00 00 00 60 [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:02]Read from MH i2c: E2 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 62 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 62 00 CF 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 20 14 03 00 0E 04 04 00 20 02 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 7E [07:43:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 20 14 03 00 0E 04 04 00 20 02 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 [07:43:02]wFMCommunicate OK [07:43:02]SAM_PROTO_GetFieldsCounters done [07:43:02]requested_item shift.num is exist - process it [07:43:02]requested_item shift.opened is exist - process it [07:43:02]req_shift_opened [07:43:02]FM_GetShiftState [07:43:02]SAM_PROTO_GetShiftState [07:43:02]wFMCommunicate request_size=4 [07:43:02]MH_SAM_APDU [07:43:02]CAPDU: 80 13 01 00 [07:43:02]Write to MH i2c: E2 08 00 D0 15 80 13 01 00 00 00 00 00 62 [07:43:02]Write i2c OK [07:43:02]MH_I2C_Read... [07:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:02]Read from MH i2c: E2 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 0E 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 0E 00 D0 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 64 [07:43:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:43:02]wFMCommunicate OK [07:43:02]SAM_PROTO_GetShiftState done [07:43:02]FM_GetShiftState done [07:43:02]req_shift_opened done [07:43:02]requested_item shift.open_date is exist - process it [07:43:02]req_shift_open_date [07:43:02]req_shift_open_date done [07:43:02]produce_requested_data done [07:43:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201760,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:43:02]process_action_free close_receipt [07:43:02]json_value_free [07:43:02]json_value_free done [07:43:02]process_json_proto returns [07:43:02]Send response to host [07:43:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201760,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:43:02]free response buf [07:43:02]execute_script done [07:43:02]execute_script returns [07:43:02]free content buf [07:43:02]Sock 9.Close socket [07:43:02]Sock 9.Thread stoped [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:10]accept exits with 10 [07:46:10]New connection [07:46:10]New thread 3067080036 created [07:46:10]Thread 3066936676 joined [07:46:10]Waiting for new connection... [07:46:10] Sock 10.Parse request [07:46:10]Sock 10.Check first char [07:46:10]Sock 10.First char is OK [07:46:10]request: POST /json_proto HTTP/1.0 [07:46:10]Method: POST [07:46:10]URL: /json_proto [07:46:10]Method is POST - this is cgi request [07:46:10]url: /json_proto [07:46:10]query_string will be loaded in cgi processing [07:46:10]execute_cgi json_proto POST (null) [07:46:10]execute_cgi path=json_proto method=POST [07:46:10]POST find Content-Length [07:46:10]Host: 172.17.63.195:8080 [07:46:10]Content-Length: 677 [07:46:10]Content-Type: application/json [07:46:10] [07:46:10]POST finish read [07:46:10]Found Content-Length = 677 [07:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:46:10]execute_script... [07:46:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:46:10]POST & json_proto [07:46:10]process_json_proto [07:46:10]json parsed OK: [07:46:10]protocol is kg_v1.0 [07:46:10]action value=close_receipt [07:46:10]process_action close_receipt [07:46:10]cmd_close_receipt [07:46:10]MH_GetDate [07:46:10]Write to MH i2c: F0 00 00 D1 15 D5 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: F0 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: F0 09 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: F0 09 00 D1 15 00 C6 EF 1D 67 68 46 19 67 45 [07:46:10]GetLastDocTimeStamp 1730014981 [07:46:10]current date 1730015174 [07:46:10]FM_GetShiftState [07:46:10]SAM_PROTO_GetShiftState [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 13 01 00 [07:46:10]Write to MH i2c: E2 08 00 D2 15 80 13 01 00 00 00 00 00 64 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 0E 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 0E 00 D2 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 66 [07:46:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:46:10]wFMCommunicate OK [07:46:10]SAM_PROTO_GetShiftState done [07:46:10]FM_GetShiftState done [07:46:10]opened in 1729987312 [07:46:10]opened+sec_in_day 1730073712 [07:46:10]quantity*price = 20003 [07:46:10]sum+1 = 20004 [07:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 53 27.10.2024 07:46 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201761 ФПД: 66325891851663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074614&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201761&fm=66325891851663&tin=02508201610067®Number=0000000000091777&sum=20000 [07:46:12]StoreToDocumentArchive [07:46:12]shift 544 fd 201761 [07:46:12]save to /storage/0544/doc_00201761 [07:46:12]save last doc name /storage/0544/doc_00201761 to /storage/kkm_last_doc_name [07:46:12]save OK [07:46:12]Clear old archive folders... [07:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:12]tlvbuf is 0008BDD0 [07:46:12]SAM_PROTO_ClearQueue [07:46:12]wFMCommunicate request_size=4 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 09 00 00 [07:46:12]Write to MH i2c: E2 08 00 DF 15 80 09 00 00 00 00 00 00 66 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 03 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [07:46:12]RAPDU: 90 00 [07:46:12]wFMCommunicate OK [07:46:12]SAM_PROTO_ClearQueue done [07:46:12]KKMCreateOFDPacket [07:46:12]OFDProtocolAddRootSTLVToBuf [07:46:12]FM_MakeSignedData [07:46:12]FM_MakeSignedData [07:46:12]SAM_PROTO_SignData [07:46:12]wFMCommunicate request_size=4 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 0D 01 02 [07:46:12]Write to MH i2c: E2 08 00 E0 15 80 0D 01 02 00 00 00 00 6E [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 03 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [07:46:12]RAPDU: 90 00 [07:46:12]wFMCommunicate OK [07:46:12]wFMCommunicate request_size=255 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 35 00 00 00 F4 03 04 00 C6 EF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 14 03 00 35 04 06 00 3C [07:46:12]Write to MH i2c: E2 02 01 E1 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 35 00 00 00 F4 03 04 00 C6 EF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 14 03 00 35 04 06 00 3C 00 00 C8 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 03 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [07:46:12]RAPDU: 90 00 [07:46:12]wFMCommunicate OK [07:46:12]wFMCommunicate request_size=10 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 0D 02 02 05 52 B3 39 25 8F [07:46:12]Write to MH i2c: E2 0D 00 E2 15 80 0D 02 02 05 00 52 B3 39 25 8F 00 00 6D [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 03 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 03 00 E2 15 00 90 00 6B [07:46:12]RAPDU: 90 00 [07:46:12]wFMCommunicate OK [07:46:12]wFMCommunicate request_size=4 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 0D 03 02 [07:46:12]Write to MH i2c: E2 08 00 E3 15 80 0D 03 02 00 00 00 00 73 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 0B 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 0B 00 E3 15 00 05 C9 06 4E E8 4F 70 8B 90 00 C8 [07:46:12]RAPDU: 05 C9 06 4E E8 4F 70 8B 90 00 [07:46:12]wFMCommunicate OK [07:46:12]SAM_PROTO_SignData done [07:46:12]FM_MakeSignedData done [07:46:12]CreateOFDProtocolMessage [07:46:12]wFMCommunicate request_size=4 [07:46:12]MH_SAM_APDU [07:46:12]CAPDU: 80 11 00 00 [07:46:12]Write to MH i2c: E2 08 00 E4 15 80 11 00 00 00 00 00 00 73 [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:12]Read from MH i2c: E2 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 17 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: E2 17 00 E4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C8 [07:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:46:12]wFMCommunicate OK [07:46:12]CreateOFDProtocolMessage done [07:46:12]OFDSenderStorePacket 201761 [07:46:12]StoreOFDPacket docnum=201761 [07:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B7 AF 07 01 48 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 35 00 00 00 F4 03 04 00 C6 EF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 14 03 00 35 04 06 00 3C 52 B3 39 25 8F 05 C9 06 4E E8 4F 70 8B [07:46:12]CheckFolder [07:46:12]dirname=/storage/ofd_packets [07:46:12]CheckFolder done [07:46:12]ProducePacketName [07:46:12]name=ofd_packets/00201761 [07:46:12]NVStorageSaveData ofd_packets/00201761 [07:46:12]File name is /storage/ofd_packets/00201761 [07:46:12]Write 301 bytes [07:46:12]NVStorageSaveData done [07:46:12]OFDSenderStorePacket done [07:46:12]KKMCreateOFDPacket done [07:46:12]NVStorageSaveData kkm_last_timestamp [07:46:12]File name is /storage/kkm_last_timestamp [07:46:12]Write 4 bytes [07:46:12]NVStorageSaveData done [07:46:12]ExternCall_PrintAddStr [07:46:12]wPrintStart [07:46:12]Write to MH i2c: 01 00 00 E5 15 FA [07:46:12]Write i2c OK [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: 01 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: 01 07 00 [07:46:12]MH_I2C_Read... [07:46:12]Read from MH i2c: 01 07 00 E5 15 00 00 00 00 00 FF 0F 0F [07:46:12]RasterBufferAndPrint [07:46:12]line Счет N : (1)449517 [07:46:12]line ИНН: 02508201610067 [07:46:12]line Контрольно-Кассовый Чек [07:46:12]line ПРОДАЖА [07:46:12]line ТРК (МРК, ГНК) : 41 [07:46:12]line Товар: 2710124130 [07:46:12]line Аи-92-К-2 [07:46:12]line 2.990 * 66.90 [07:46:12]line = 200.03 [07:46:12]line НДС 12% НСП 1% [07:46:12]line > о реализуемом товаре [07:46:12]line ОКРУГЛЕНИЕ: -0.03 [07:46:12]line ИТОГО: 200.00 [07:46:12]line Внесено: 200.00 [07:46:12]line СДАЧА: 0.00 [07:46:12]line НСП 1% : 1.77 [07:46:12]line НДС 12% : 21.24 [07:46:12]line Наличными: 200.00 [07:46:12]line Безнал.: 0.00 [07:46:12]line Место: АЗС № 171 "Партнер Нефть" [07:46:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:46:12]line СНО: Общий режим [07:46:12]line Чек 53 27.10.2024 07:46 [07:46:12]line Смена: 544 ФФД: 1.0 [07:46:12]line ЗНМ: 0300000109 [07:46:12]line РНМ: 0000000000091777 [07:46:12]line Версия ККМ: 001 [07:46:12]line ФМ: 0000000000871756 [07:46:12]line ФД: 201761 [07:46:12]line ФПД: 66325891851663 [07:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074614&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201761&fm=66325891851663&tin=02508201610067®Number=0000000000091777&sum=20000 [07:46:12]OFD Sender: Processing packet 201761 [packets to send 112, broken 111] [07:46:12]ProducePacketName [07:46:12]name=ofd_packets/00201761 [07:46:12]OFD Sender: To server: pG, [07:46:12]CommunicateWithHost lk.salyk.kg:30040 [07:46:12]ConnectInit lk.salyk.kg [07:46:12]written 0, free lines is 4095 [07:46:13]Connected sock=9 [07:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B7 AF 07 01 48 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 35 00 00 00 F4 03 04 00 C6 EF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 14 03 00 35 04 06 00 3C 52 B3 39 25 8F 05 C9 06 4E E8 4F 70 8B [07:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 66 63 47 00 28 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 14 03 00 F4 03 04 00 6C 9B 1D 67 B6 04 01 00 00 9E C1 B8 DF E8 7F 9E F1 [07:46:13]CommunicateWithHost err = 0 [07:46:13]CheckOFDResponse [07:46:13]1017 (14) - 77093643461234 [07:46:13]1041 (16) - 0000000000871756 [07:46:13]1040 (4) - 201761 [07:46:13]1012 (4) - 27.10.2024 01:46 [07:46:13]1206 (1) - 0 [07:46:13]OFD Sender: Remove packet 201761 [07:46:13]ProducePacketName [07:46:13]name=ofd_packets/00201761 [07:46:13]NVStorageDeleteData [07:46:13]Write to MH i2c: 01 00 00 10 16 26 [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 07 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: 01 07 00 10 16 00 00 00 00 00 8D 0C C6 [07:46:13]RasterBufferAndPrint [07:46:13]line [07:46:13]line [07:46:13]line [07:46:13]line [07:46:13]line [07:46:13]written 0, free lines is 3217 [07:46:13]MH_Cut [07:46:13]Write to MH i2c: D1 01 00 17 16 01 FF [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: D1 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: D1 01 00 [07:46:13]MH_I2C_Read... [07:46:13]Read from MH i2c: D1 01 00 17 16 00 FE [07:46:13]Write to MH i2c: 01 00 00 18 16 2E [07:46:13]Write i2c OK [07:46:13]MH_I2C_Read... [07:46:13]OFD Sender: No OFD packet to send [07:46:14]*** Cut start [07:46:14]*** Purtial cut [07:46:14]*** Stage 1: CUTSNS_PIN = 1 [07:46:14]Read from MH i2c: 01 [07:46:14]MH_I2C_Read... [07:46:14]*** Stop cut motor [07:46:14]*** Cut end [07:46:14]Read from MH i2c: 01 07 00 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: 01 07 00 18 16 00 00 00 00 00 FF 0F 43 [07:46:14]process_action close_receipt done [07:46:14]requested_data is exist [07:46:14]produce_requested_data [07:46:14]requested_item fm.sn is exist - process it [07:46:14]wFMCommunicate request_size=4 [07:46:14]MH_SAM_APDU [07:46:14]CAPDU: 80 11 00 00 [07:46:14]Write to MH i2c: E2 08 00 19 16 80 11 00 00 00 00 00 00 A9 [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:14]Read from MH i2c: E2 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: E2 17 00 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: E2 17 00 19 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FE [07:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:46:14]wFMCommunicate OK [07:46:14]requested_item fd.num is exist - process it [07:46:14]SAM_PROTO_GetFieldsCounters [07:46:14]wFMCommunicate request_size=4 [07:46:14]MH_SAM_APDU [07:46:14]CAPDU: 80 13 00 00 [07:46:14]Write to MH i2c: E2 08 00 1A 16 80 13 00 00 00 00 00 00 AC [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:14]Read from MH i2c: E2 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: E2 62 00 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: E2 62 00 1A 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 21 14 03 00 0E 04 04 00 20 02 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 CE [07:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 21 14 03 00 0E 04 04 00 20 02 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 [07:46:14]wFMCommunicate OK [07:46:14]SAM_PROTO_GetFieldsCounters done [07:46:14]requested_item shift.num is exist - process it [07:46:14]requested_item shift.opened is exist - process it [07:46:14]req_shift_opened [07:46:14]FM_GetShiftState [07:46:14]SAM_PROTO_GetShiftState [07:46:14]wFMCommunicate request_size=4 [07:46:14]MH_SAM_APDU [07:46:14]CAPDU: 80 13 01 00 [07:46:14]Write to MH i2c: E2 08 00 1B 16 80 13 01 00 00 00 00 00 AE [07:46:14]Write i2c OK [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: E2 [07:46:14]MH_I2C_Read... [07:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:14]Read from MH i2c: E2 0E 00 [07:46:14]MH_I2C_Read... [07:46:14]Read from MH i2c: E2 0E 00 1B 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B0 [07:46:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:46:14]wFMCommunicate OK [07:46:14]SAM_PROTO_GetShiftState done [07:46:14]FM_GetShiftState done [07:46:14]req_shift_opened done [07:46:14]requested_item shift.open_date is exist - process it [07:46:14]req_shift_open_date [07:46:14]req_shift_open_date done [07:46:14]produce_requested_data done [07:46:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201761,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:46:14]process_action_free close_receipt [07:46:14]json_value_free [07:46:14]json_value_free done [07:46:14]process_json_proto returns [07:46:14]Send response to host [07:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201761,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:46:14]free response buf [07:46:14]execute_script done [07:46:14]execute_script returns [07:46:14]free content buf [07:46:14]Sock 10.Close socket [07:46:14]Sock 10.Thread stoped [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:13]accept exits with 8 [07:48:13]New connection [07:48:13]New thread 3066936676 created [07:48:13]Thread 3067080036 joined [07:48:13]Waiting for new connection... [07:48:13] Sock 8.Parse request [07:48:13]Sock 8.Check first char [07:48:13]Sock 8.First char is OK [07:48:13]request: POST /json_proto HTTP/1.0 [07:48:13]Method: POST [07:48:13]URL: /json_proto [07:48:13]Method is POST - this is cgi request [07:48:13]url: /json_proto [07:48:13]query_string will be loaded in cgi processing [07:48:13]execute_cgi json_proto POST (null) [07:48:13]execute_cgi path=json_proto method=POST [07:48:13]POST find Content-Length [07:48:13]Host: 172.17.63.195:8080 [07:48:13]Content-Length: 800 [07:48:13]Content-Type: application/json [07:48:13] [07:48:13]POST finish read [07:48:13]Found Content-Length = 800 [07:48:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.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\u000A4220296", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:13]execute_script... [07:48:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.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\u000A4220296", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:13]POST & json_proto [07:48:13]process_json_proto [07:48:13]json parsed OK: [07:48:13]protocol is kg_v1.0 [07:48:13]action value=close_receipt [07:48:13]process_action close_receipt [07:48:13]cmd_close_receipt [07:48:13]MH_GetDate [07:48:13]Write to MH i2c: F0 00 00 1C 16 21 [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: F0 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: F0 09 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: F0 09 00 1C 16 00 41 F0 1D 67 68 46 19 67 0D [07:48:13]GetLastDocTimeStamp 1730015174 [07:48:13]current date 1730015297 [07:48:13]FM_GetShiftState [07:48:13]SAM_PROTO_GetShiftState [07:48:13]wFMCommunicate request_size=4 [07:48:13]MH_SAM_APDU [07:48:13]CAPDU: 80 13 01 00 [07:48:13]Write to MH i2c: E2 08 00 1D 16 80 13 01 00 00 00 00 00 B0 [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:14]Read from MH i2c: E2 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 0E 00 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 0E 00 1D 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B2 [07:48:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:48:14]wFMCommunicate OK [07:48:14]SAM_PROTO_GetShiftState done [07:48:14]FM_GetShiftState done [07:48:14]opened in 1729987312 [07:48:14]opened+sec_in_day 1730073712 [07:48:14]quantity*price = 0 [07:48:14]sum+1 = 1 [07:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 54 27.10.2024 07:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Талоны: Топливные Талоны 4220296 ФМ: 0000000000871756 ФД: 201762 ФПД: 98778980557434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074817&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201762&fm=98778980557434&tin=02508201610067®Number=0000000000091777&sum=0 [07:48:15]StoreToDocumentArchive [07:48:15]shift 544 fd 201762 [07:48:15]save to /storage/0544/doc_00201762 [07:48:15]save last doc name /storage/0544/doc_00201762 to /storage/kkm_last_doc_name [07:48:15]save OK [07:48:15]Clear old archive folders... [07:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:15]tlvbuf is B6EC7730 [07:48:15]SAM_PROTO_ClearQueue [07:48:15]wFMCommunicate request_size=4 [07:48:15]MH_SAM_APDU [07:48:15]CAPDU: 80 09 00 00 [07:48:15]Write to MH i2c: E2 08 00 2A 16 80 09 00 00 00 00 00 00 B2 [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:15]Read from MH i2c: E2 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 03 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [07:48:15]RAPDU: 90 00 [07:48:15]wFMCommunicate OK [07:48:15]SAM_PROTO_ClearQueue done [07:48:15]KKMCreateOFDPacket [07:48:15]OFDProtocolAddRootSTLVToBuf [07:48:15]FM_MakeSignedData [07:48:15]FM_MakeSignedData [07:48:15]SAM_PROTO_SignData [07:48:15]wFMCommunicate request_size=4 [07:48:15]MH_SAM_APDU [07:48:15]CAPDU: 80 0D 01 02 [07:48:15]Write to MH i2c: E2 08 00 2B 16 80 0D 01 02 00 00 00 00 BA [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:15]Read from MH i2c: E2 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 03 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [07:48:15]RAPDU: 90 00 [07:48:15]wFMCommunicate OK [07:48:15]wFMCommunicate request_size=255 [07:48:15]MH_SAM_APDU [07:48: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 32 FF 03 08 00 03 10 27 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 36 00 00 00 F4 03 04 00 41 F0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 14 03 00 35 04 06 00 59 [07:48:15]Write to MH i2c: E2 02 01 2C 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 32 FF 03 08 00 03 10 27 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 36 00 00 00 F4 03 04 00 41 F0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 14 03 00 35 04 06 00 59 00 00 9F [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:15]Read from MH i2c: E2 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 03 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 03 00 2C 16 00 90 00 B6 [07:48:15]RAPDU: 90 00 [07:48:15]wFMCommunicate OK [07:48:15]wFMCommunicate request_size=10 [07:48:15]MH_SAM_APDU [07:48:15]CAPDU: 80 0D 02 02 05 D6 C6 0C 22 7A [07:48:15]Write to MH i2c: E2 0D 00 2D 16 80 0D 02 02 05 00 D6 C6 0C 22 7A 00 00 0B [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:15]Read from MH i2c: E2 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 03 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 03 00 2D 16 00 90 00 B7 [07:48:15]RAPDU: 90 00 [07:48:15]wFMCommunicate OK [07:48:15]wFMCommunicate request_size=4 [07:48:15]MH_SAM_APDU [07:48:15]CAPDU: 80 0D 03 02 [07:48:15]Write to MH i2c: E2 08 00 2E 16 80 0D 03 02 00 00 00 00 BF [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:15]Read from MH i2c: E2 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 0B 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 0B 00 2E 16 00 7E 6A 2D 5E A5 47 8F AD 90 00 5B [07:48:15]RAPDU: 7E 6A 2D 5E A5 47 8F AD 90 00 [07:48:15]wFMCommunicate OK [07:48:15]SAM_PROTO_SignData done [07:48:15]FM_MakeSignedData done [07:48:15]CreateOFDProtocolMessage [07:48:15]wFMCommunicate request_size=4 [07:48:15]MH_SAM_APDU [07:48:15]CAPDU: 80 11 00 00 [07:48:15]Write to MH i2c: E2 08 00 2F 16 80 11 00 00 00 00 00 00 BF [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:15]Read from MH i2c: E2 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 17 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 17 00 2F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 14 [07:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:48:15]wFMCommunicate OK [07:48:15]CreateOFDProtocolMessage done [07:48:15]OFDSenderStorePacket 201762 [07:48:15]StoreOFDPacket docnum=201762 [07:48:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6F 11 07 01 81 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 36 00 00 00 F4 03 04 00 41 F0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 14 03 00 35 04 06 00 59 D6 C6 0C 22 7A 7E 6A 2D 5E A5 47 8F AD [07:48:15]CheckFolder [07:48:15]dirname=/storage/ofd_packets [07:48:15]CheckFolder done [07:48:15]ProducePacketName [07:48:15]name=ofd_packets/00201762 [07:48:15]NVStorageSaveData ofd_packets/00201762 [07:48:15]File name is /storage/ofd_packets/00201762 [07:48:15]Write 301 bytes [07:48:15]NVStorageSaveData done [07:48:15]OFDSenderStorePacket done [07:48:15]KKMCreateOFDPacket done [07:48:15]NVStorageSaveData kkm_last_timestamp [07:48:15]File name is /storage/kkm_last_timestamp [07:48:15]Write 4 bytes [07:48:15]NVStorageSaveData done [07:48:15]ExternCall_PrintAddStr [07:48:15]wPrintStart [07:48:15]Write to MH i2c: 01 00 00 30 16 46 [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: 01 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: 01 07 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: 01 07 00 30 16 00 00 00 00 00 FF 0F 5B [07:48:15]RasterBufferAndPrint [07:48:15]line Счет N : (1)449518 [07:48:15]line ИНН: 02508201610067 [07:48:15]line Контрольно-Кассовый Чек [07:48:15]line ПРОДАЖА [07:48:15]line ТРК (МРК, ГНК) : 52 [07:48:15]line Товар: 2710124130 [07:48:15]line Аи-92-К-2 [07:48:15]line 10.000 * 0.00 [07:48:15]line = 0.00 [07:48:15]line НДС 12% НСП 1% [07:48:15]line > о реализуемом товаре [07:48:15]line ИТОГО: 0.00 [07:48:15]line НСП 1% : 0.00 [07:48:15]line НДС 12% : 0.00 [07:48:15]line Наличными: 0.00 [07:48:15]line Безнал.: 0.00 [07:48:15]line Место: АЗС № 171 "Партнер Нефть" [07:48:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:48:15]line СНО: Общий режим [07:48:15]line Чек 54 27.10.2024 07:48 [07:48:15]line Смена: 544 ФФД: 1.0 [07:48:15]line ЗНМ: 0300000109 [07:48:15]line РНМ: 0000000000091777 [07:48:15]line Версия ККМ: 001 [07:48:15]line Талоны: Топливные Талоны [07:48:15]line 4220296 [07:48:15]line ФМ: 0000000000871756 [07:48:15]line ФД: 201762 [07:48:15]line ФПД: 98778980557434 [07:48:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074817&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201762&fm=98778980557434&tin=02508201610067®Number=0000000000091777&sum=0 [07:48:15]written 0, free lines is 4095 [07:48:15]OFD Sender: Processing packet 201762 [packets to send 112, broken 111] [07:48:15]ProducePacketName [07:48:15]name=ofd_packets/00201762 [07:48:15]OFD Sender: To server: pG, [07:48:15]CommunicateWithHost lk.salyk.kg:30040 [07:48:15]ConnectInit lk.salyk.kg [07:48:15]Connected sock=10 [07:48:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6F 11 07 01 81 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 36 00 00 00 F4 03 04 00 41 F0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 14 03 00 35 04 06 00 59 D6 C6 0C 22 7A 7E 6A 2D 5E A5 47 8F AD [07:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BC B3 47 00 CA FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 14 03 00 F4 03 04 00 E7 9B 1D 67 B6 04 01 00 00 F8 BA 49 6B 54 AD 67 4D [07:48:16]CommunicateWithHost err = 0 [07:48:16]CheckOFDResponse [07:48:16]1017 (14) - 77093643461234 [07:48:16]1041 (16) - 0000000000871756 [07:48:16]1040 (4) - 201762 [07:48:16]1012 (4) - 27.10.2024 01:48 [07:48:16]1206 (1) - 0 [07:48:16]OFD Sender: Remove packet 201762 [07:48:16]ProducePacketName [07:48:16]name=ofd_packets/00201762 [07:48:16]NVStorageDeleteData [07:48:16]Write to MH i2c: 01 00 00 5A 16 70 [07:48:16]Write i2c OK [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: 01 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: 01 07 00 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: 01 07 00 5A 16 00 00 00 00 00 A7 0C 2A [07:48:16]RasterBufferAndPrint [07:48:16]line [07:48:16]line [07:48:16]line [07:48:16]line [07:48:16]line [07:48:16]written 0, free lines is 3243 [07:48:16]MH_Cut [07:48:16]Write to MH i2c: D1 01 00 61 16 01 49 [07:48:16]Write i2c OK [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: D1 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: D1 01 00 [07:48:16]MH_I2C_Read... [07:48:16]Read from MH i2c: D1 01 00 61 16 00 48 [07:48:16]Write to MH i2c: 01 00 00 62 16 78 [07:48:16]Write i2c OK [07:48:16]MH_I2C_Read... [07:48:16]OFD Sender: No OFD packet to send [07:48:17]*** Cut start [07:48:17]*** Purtial cut [07:48:17]*** Stage 1: CUTSNS_PIN = 1 [07:48:17]Read from MH i2c: 01 [07:48:17]MH_I2C_Read... [07:48:17]*** Stop cut motor [07:48:17]*** Cut end [07:48:17]Read from MH i2c: 01 07 00 [07:48:17]MH_I2C_Read... [07:48:17]Read from MH i2c: 01 07 00 62 16 00 00 00 00 00 FF 0F 8D [07:48:17]process_action close_receipt done [07:48:17]requested_data is exist [07:48:17]produce_requested_data [07:48:17]requested_item fm.sn is exist - process it [07:48:17]wFMCommunicate request_size=4 [07:48:17]MH_SAM_APDU [07:48:17]CAPDU: 80 11 00 00 [07:48:17]Write to MH i2c: E2 08 00 63 16 80 11 00 00 00 00 00 00 F3 [07:48:17]Write i2c OK [07:48:17]MH_I2C_Read... [07:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:17]Read from MH i2c: E2 [07:48:17]MH_I2C_Read... [07:48:17]Read from MH i2c: E2 17 00 [07:48:17]MH_I2C_Read... [07:48:17]Read from MH i2c: E2 17 00 63 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [07:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:48:17]wFMCommunicate OK [07:48:17]requested_item fd.num is exist - process it [07:48:17]SAM_PROTO_GetFieldsCounters [07:48:17]wFMCommunicate request_size=4 [07:48:17]MH_SAM_APDU [07:48:17]CAPDU: 80 13 00 00 [07:48:17]Write to MH i2c: E2 08 00 64 16 80 13 00 00 00 00 00 00 F6 [07:48:17]Write i2c OK [07:48:17]MH_I2C_Read... [07:48:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:17]Read from MH i2c: E2 [07:48:17]MH_I2C_Read... [07:48:17]Read from MH i2c: E2 62 00 [07:48:17]MH_I2C_Read... [07:48:17]Read from MH i2c: E2 62 00 64 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 22 14 03 00 0E 04 04 00 20 02 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 1C [07:48:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 22 14 03 00 0E 04 04 00 20 02 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 [07:48:17]wFMCommunicate OK [07:48:17]SAM_PROTO_GetFieldsCounters done [07:48:17]requested_item shift.num is exist - process it [07:48:17]requested_item shift.opened is exist - process it [07:48:17]req_shift_opened [07:48:17]FM_GetShiftState [07:48:17]SAM_PROTO_GetShiftState [07:48:17]wFMCommunicate request_size=4 [07:48:17]MH_SAM_APDU [07:48:17]CAPDU: 80 13 01 00 [07:48:17]Write to MH i2c: E2 08 00 65 16 80 13 01 00 00 00 00 00 F8 [07:48:17]Write i2c OK [07:48:17]MH_I2C_Read... [07:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:17]Read from MH i2c: E2 [07:48:17]MH_I2C_Read... [07:48:17]Read from MH i2c: E2 0E 00 [07:48:17]MH_I2C_Read... [07:48:17]Read from MH i2c: E2 0E 00 65 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FA [07:48:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:48:17]wFMCommunicate OK [07:48:17]SAM_PROTO_GetShiftState done [07:48:17]FM_GetShiftState done [07:48:17]req_shift_opened done [07:48:17]requested_item shift.open_date is exist - process it [07:48:17]req_shift_open_date [07:48:17]req_shift_open_date done [07:48:17]produce_requested_data done [07:48:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201762,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:48:17]process_action_free close_receipt [07:48:17]json_value_free [07:48:17]json_value_free done [07:48:17]process_json_proto returns [07:48:17]Send response to host [07:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201762,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:48:17]free response buf [07:48:17]execute_script done [07:48:17]execute_script returns [07:48:17]free content buf [07:48:17]Sock 8.Close socket [07:48:17]Sock 8.Thread stoped [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:25]accept exits with 9 [07:49:25]New connection [07:49:25]New thread 3067080036 created [07:49:25]Thread 3066936676 joined [07:49:25]Waiting for new connection... [07:49:25] Sock 9.Parse request [07:49:25]Sock 9.Check first char [07:49:25]Sock 9.First char is OK [07:49:25]request: POST /json_proto HTTP/1.0 [07:49:25]Method: POST [07:49:25]URL: /json_proto [07:49:25]Method is POST - this is cgi request [07:49:25]url: /json_proto [07:49:25]query_string will be loaded in cgi processing [07:49:25]execute_cgi json_proto POST (null) [07:49:25]execute_cgi path=json_proto method=POST [07:49:25]POST find Content-Length [07:49:25]Host: 172.17.63.195:8080 [07:49:25]Content-Length: 677 [07:49:25]Content-Type: application/json [07:49:25] [07:49:25]POST finish read [07:49:25]Found Content-Length = 677 [07:49:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:25]execute_script... [07:49: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)449519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:25]POST & json_proto [07:49:25]process_json_proto [07:49:25]json parsed OK: [07:49:25]protocol is kg_v1.0 [07:49:25]action value=close_receipt [07:49:25]process_action close_receipt [07:49:25]cmd_close_receipt [07:49:25]MH_GetDate [07:49:25]Write to MH i2c: F0 00 00 66 16 6B [07:49:25]Write i2c OK [07:49:25]MH_I2C_Read... [07:49:25]Read from MH i2c: F0 [07:49:25]MH_I2C_Read... [07:49:25]Read from MH i2c: F0 09 00 [07:49:25]MH_I2C_Read... [07:49:25]Read from MH i2c: F0 09 00 66 16 00 89 F0 1D 67 68 46 19 67 9F [07:49:25]GetLastDocTimeStamp 1730015297 [07:49:25]current date 1730015369 [07:49:25]FM_GetShiftState [07:49:25]SAM_PROTO_GetShiftState [07:49:25]wFMCommunicate request_size=4 [07:49:25]MH_SAM_APDU [07:49:25]CAPDU: 80 13 01 00 [07:49:25]Write to MH i2c: E2 08 00 67 16 80 13 01 00 00 00 00 00 FA [07:49:25]Write i2c OK [07:49:25]MH_I2C_Read... [07:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:25]Read from MH i2c: E2 [07:49:25]MH_I2C_Read... [07:49:25]Read from MH i2c: E2 0E 00 [07:49:25]MH_I2C_Read... [07:49:25]Read from MH i2c: E2 0E 00 67 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FC [07:49:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:49:25]wFMCommunicate OK [07:49:25]SAM_PROTO_GetShiftState done [07:49:25]FM_GetShiftState done [07:49:25]opened in 1729987312 [07:49:25]opened+sec_in_day 1730073712 [07:49:25]quantity*price = 14049 [07:49:25]sum+1 = 14050 [07:49:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 55 27.10.2024 07:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201763 ФПД: 112175823962319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201763&fm=112175823962319&tin=02508201610067®Number=0000000000091777&sum=14000 [07:49:26]StoreToDocumentArchive [07:49:26]shift 544 fd 201763 [07:49:26]save to /storage/0544/doc_00201763 [07:49:26]save last doc name /storage/0544/doc_00201763 to /storage/kkm_last_doc_name [07:49:26]save OK [07:49:26]Clear old archive folders... [07:49:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:26]tlvbuf is 000E6810 [07:49:26]SAM_PROTO_ClearQueue [07:49:26]wFMCommunicate request_size=4 [07:49:26]MH_SAM_APDU [07:49:26]CAPDU: 80 09 00 00 [07:49:26]Write to MH i2c: E2 08 00 74 16 80 09 00 00 00 00 00 00 FC [07:49:26]Write i2c OK [07:49:26]MH_I2C_Read... [07:49:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:26]Read from MH i2c: E2 [07:49:26]MH_I2C_Read... [07:49:26]Read from MH i2c: E2 03 00 [07:49:26]MH_I2C_Read... [07:49:26]Read from MH i2c: E2 03 00 74 16 00 90 00 FE [07:49:26]RAPDU: 90 00 [07:49:26]wFMCommunicate OK [07:49:26]SAM_PROTO_ClearQueue done [07:49:26]KKMCreateOFDPacket [07:49:26]OFDProtocolAddRootSTLVToBuf [07:49:26]FM_MakeSignedData [07:49:26]FM_MakeSignedData [07:49:26]SAM_PROTO_SignData [07:49:26]wFMCommunicate request_size=4 [07:49:26]MH_SAM_APDU [07:49:26]CAPDU: 80 0D 01 02 [07:49:26]Write to MH i2c: E2 08 00 75 16 80 0D 01 02 00 00 00 00 04 [07:49:26]Write i2c OK [07:49:26]MH_I2C_Read... [07:49:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:26]Read from MH i2c: E2 [07:49:26]MH_I2C_Read... [07:49:26]Read from MH i2c: E2 03 00 [07:49:26]MH_I2C_Read... [07:49:26]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [07:49:26]RAPDU: 90 00 [07:49:26]wFMCommunicate OK [07:49:26]wFMCommunicate request_size=255 [07:49:26]MH_SAM_APDU [07:49: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 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 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 37 00 00 00 F4 03 04 00 89 F0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 14 03 00 35 04 06 00 66 [07:49:26]Write to MH i2c: E2 02 01 76 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 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 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 37 00 00 00 F4 03 04 00 89 F0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 14 03 00 35 04 06 00 66 00 00 B9 [07:49:26]Write i2c OK [07:49:26]MH_I2C_Read... [07:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:27]Read from MH i2c: E2 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 03 00 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [07:49:27]RAPDU: 90 00 [07:49:27]wFMCommunicate OK [07:49:27]wFMCommunicate request_size=10 [07:49:27]MH_SAM_APDU [07:49:27]CAPDU: 80 0D 02 02 05 05 F8 23 C0 CF [07:49:27]Write to MH i2c: E2 0D 00 77 16 80 0D 02 02 05 00 05 F8 23 C0 CF 00 00 C0 [07:49:27]Write i2c OK [07:49:27]MH_I2C_Read... [07:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:27]Read from MH i2c: E2 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 03 00 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 03 00 77 16 00 90 00 01 [07:49:27]RAPDU: 90 00 [07:49:27]wFMCommunicate OK [07:49:27]wFMCommunicate request_size=4 [07:49:27]MH_SAM_APDU [07:49:27]CAPDU: 80 0D 03 02 [07:49:27]Write to MH i2c: E2 08 00 78 16 80 0D 03 02 00 00 00 00 09 [07:49:27]Write i2c OK [07:49:27]MH_I2C_Read... [07:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:27]Read from MH i2c: E2 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 0B 00 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 0B 00 78 16 00 91 BD 73 CA 69 C5 78 AE 90 00 E9 [07:49:27]RAPDU: 91 BD 73 CA 69 C5 78 AE 90 00 [07:49:27]wFMCommunicate OK [07:49:27]SAM_PROTO_SignData done [07:49:27]FM_MakeSignedData done [07:49:27]CreateOFDProtocolMessage [07:49:27]wFMCommunicate request_size=4 [07:49:27]MH_SAM_APDU [07:49:27]CAPDU: 80 11 00 00 [07:49:27]Write to MH i2c: E2 08 00 79 16 80 11 00 00 00 00 00 00 09 [07:49:27]Write i2c OK [07:49:27]MH_I2C_Read... [07:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:27]Read from MH i2c: E2 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 17 00 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 17 00 79 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5E [07:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:49:27]wFMCommunicate OK [07:49:27]CreateOFDProtocolMessage done [07:49:27]OFDSenderStorePacket 201763 [07:49:27]StoreOFDPacket docnum=201763 [07:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 30 90 07 01 3A 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 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 37 00 00 00 F4 03 04 00 89 F0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 14 03 00 35 04 06 00 66 05 F8 23 C0 CF 91 BD 73 CA 69 C5 78 AE [07:49:27]CheckFolder [07:49:27]dirname=/storage/ofd_packets [07:49:27]CheckFolder done [07:49:27]ProducePacketName [07:49:27]name=ofd_packets/00201763 [07:49:27]NVStorageSaveData ofd_packets/00201763 [07:49:27]File name is /storage/ofd_packets/00201763 [07:49:27]Write 301 bytes [07:49:27]NVStorageSaveData done [07:49:27]OFDSenderStorePacket done [07:49:27]KKMCreateOFDPacket done [07:49:27]NVStorageSaveData kkm_last_timestamp [07:49:27]File name is /storage/kkm_last_timestamp [07:49:27]Write 4 bytes [07:49:27]NVStorageSaveData done [07:49:27]ExternCall_PrintAddStr [07:49:27]wPrintStart [07:49:27]Write to MH i2c: 01 00 00 7A 16 90 [07:49:27]Write i2c OK [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: 01 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: 01 07 00 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: 01 07 00 7A 16 00 00 00 00 00 FF 0F A5 [07:49:27]RasterBufferAndPrint [07:49:27]line Счет N : (1)449519 [07:49:27]line ИНН: 02508201610067 [07:49:27]line Контрольно-Кассовый Чек [07:49:27]line ПРОДАЖА [07:49:27]line ТРК (МРК, ГНК) : 31 [07:49:27]line Товар: 2710124130 [07:49:27]line Аи-92-К-2 [07:49:27]line 2.100 * 66.90 [07:49:27]line = 140.49 [07:49:27]line НДС 12% НСП 1% [07:49:27]line > о реализуемом товаре [07:49:27]line ОКРУГЛЕНИЕ: -0.49 [07:49:27]line ИТОГО: 140.00 [07:49:27]line Внесено: 140.00 [07:49:27]line СДАЧА: 0.00 [07:49:27]line НСП 1% : 1.24 [07:49:27]line НДС 12% : 14.92 [07:49:27]line Наличными: 140.00 [07:49:27]line Безнал.: 0.00 [07:49:27]line Место: АЗС № 171 "Партнер Нефть" [07:49:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:49:27]line СНО: Общий режим [07:49:27]line Чек 55 27.10.2024 07:49 [07:49:27]line Смена: 544 ФФД: 1.0 [07:49:27]line ЗНМ: 0300000109 [07:49:27]line РНМ: 0000000000091777 [07:49:27]line Версия ККМ: 001 [07:49:27]line ФМ: 0000000000871756 [07:49:27]line ФД: 201763 [07:49:27]line ФПД: 112175823962319 [07:49:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201763&fm=112175823962319&tin=02508201610067®Number=0000000000091777&sum=14000 [07:49:27]OFD Sender: Processing packet 201763 [packets to send 112, broken 111] [07:49:27]ProducePacketName [07:49:27]name=ofd_packets/00201763 [07:49:27]OFD Sender: To server: pG, [07:49:27]CommunicateWithHost lk.salyk.kg:30040 [07:49:27]ConnectInit lk.salyk.kg [07:49:27]written 0, free lines is 4095 [07:49:28]Write to MH i2c: 01 00 00 A5 16 BB [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: 01 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: 01 07 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: 01 07 00 A5 16 00 00 00 00 00 89 0C 57 [07:49:28]RasterBufferAndPrint [07:49:28]line [07:49:28]line [07:49:28]line [07:49:28]line [07:49:28]line [07:49:28]written 0, free lines is 3212 [07:49:28]MH_Cut [07:49:28]Write to MH i2c: D1 01 00 AC 16 01 94 [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: D1 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: D1 01 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: D1 01 00 AC 16 00 93 [07:49:28]Write to MH i2c: 01 00 00 AD 16 C3 [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]*** Cut start [07:49:28]*** Purtial cut [07:49:28]*** Stage 1: CUTSNS_PIN = 1 [07:49:29]Read from MH i2c: 01 [07:49:29]MH_I2C_Read... [07:49:29]*** Stop cut motor [07:49:29]*** Cut end [07:49:29]Read from MH i2c: 01 07 00 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: 01 07 00 AD 16 00 00 00 00 00 FF 0F D8 [07:49:29]process_action close_receipt done [07:49:29]requested_data is exist [07:49:29]produce_requested_data [07:49:29]requested_item fm.sn is exist - process it [07:49:29]wFMCommunicate request_size=4 [07:49:29]MH_SAM_APDU [07:49:29]CAPDU: 80 11 00 00 [07:49:29]Write to MH i2c: E2 08 00 AE 16 80 11 00 00 00 00 00 00 3E [07:49:29]Write i2c OK [07:49:29]MH_I2C_Read... [07:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:29]Read from MH i2c: E2 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: E2 17 00 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: E2 17 00 AE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [07:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:49:29]wFMCommunicate OK [07:49:29]requested_item fd.num is exist - process it [07:49:29]SAM_PROTO_GetFieldsCounters [07:49:29]wFMCommunicate request_size=4 [07:49:29]MH_SAM_APDU [07:49:29]CAPDU: 80 13 00 00 [07:49:29]Write to MH i2c: E2 08 00 AF 16 80 13 00 00 00 00 00 00 41 [07:49:29]Write i2c OK [07:49:29]MH_I2C_Read... [07:49:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:29]Read from MH i2c: E2 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: E2 62 00 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: E2 62 00 AF 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 23 14 03 00 0E 04 04 00 20 02 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 6B [07:49:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 23 14 03 00 0E 04 04 00 20 02 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 [07:49:29]wFMCommunicate OK [07:49:29]SAM_PROTO_GetFieldsCounters done [07:49:29]requested_item shift.num is exist - process it [07:49:29]requested_item shift.opened is exist - process it [07:49:29]req_shift_opened [07:49:29]FM_GetShiftState [07:49:29]SAM_PROTO_GetShiftState [07:49:29]wFMCommunicate request_size=4 [07:49:29]MH_SAM_APDU [07:49:29]CAPDU: 80 13 01 00 [07:49:29]Write to MH i2c: E2 08 00 B0 16 80 13 01 00 00 00 00 00 43 [07:49:29]Write i2c OK [07:49:29]MH_I2C_Read... [07:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:29]Read from MH i2c: E2 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: E2 0E 00 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: E2 0E 00 B0 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 45 [07:49:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:49:29]wFMCommunicate OK [07:49:29]SAM_PROTO_GetShiftState done [07:49:29]FM_GetShiftState done [07:49:29]req_shift_opened done [07:49:29]requested_item shift.open_date is exist - process it [07:49:29]req_shift_open_date [07:49:29]req_shift_open_date done [07:49:29]produce_requested_data done [07:49:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201763,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:49:29]process_action_free close_receipt [07:49:29]json_value_free [07:49:29]json_value_free done [07:49:29]process_json_proto returns [07:49:29]Send response to host [07:49:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201763,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:49:29]free response buf [07:49:29]execute_script done [07:49:29]execute_script returns [07:49:29]free content buf [07:49:29]Sock 9.Close socket [07:49:29]Sock 9.Thread stoped [07:51:37]ConnectInit Can't connect to host [07:51:37]CommunicateWithHost connect error [07:51:37]CommunicateWithHost err = -1 [07:51:37]OFD Sender: Server communicate error [07:51:42]OFD Sender: Processing packet 201763 [packets to send 112, broken 111] [07:51:42]ProducePacketName [07:51:42]name=ofd_packets/00201763 [07:51:42]OFD Sender: To server: pG, [07:51:42]CommunicateWithHost lk.salyk.kg:30040 [07:51:42]ConnectInit lk.salyk.kg [07:51:42]Connected sock=9 [07:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 30 90 07 01 3A 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 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 37 00 00 00 F4 03 04 00 89 F0 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 14 03 00 35 04 06 00 66 05 F8 23 C0 CF 91 BD 73 CA 69 C5 78 AE [07:51:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 34 0D 47 00 68 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 14 03 00 F4 03 04 00 B5 9C 1D 67 B6 04 01 00 00 EB 15 2C E9 65 08 0E 2D [07:51:42]CommunicateWithHost err = 0 [07:51:42]CheckOFDResponse [07:51:42]1017 (14) - 77093643461234 [07:51:42]1041 (16) - 0000000000871756 [07:51:42]1040 (4) - 201763 [07:51:42]1012 (4) - 27.10.2024 01:51 [07:51:42]1206 (1) - 0 [07:51:42]OFD Sender: Remove packet 201763 [07:51:42]ProducePacketName [07:51:42]name=ofd_packets/00201763 [07:51:42]NVStorageDeleteData [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:16]accept exits with 8 [07:53:16]New connection [07:53:16]New thread 3066936676 created [07:53:16]Thread 3067080036 joined [07:53:16]Waiting for new connection... [07:53:16] Sock 8.Parse request [07:53:16]Sock 8.Check first char [07:53:16]Sock 8.First char is OK [07:53:16]request: POST /json_proto HTTP/1.0 [07:53:16]Method: POST [07:53:16]URL: /json_proto [07:53:16]Method is POST - this is cgi request [07:53:16]url: /json_proto [07:53:16]query_string will be loaded in cgi processing [07:53:16]execute_cgi json_proto POST (null) [07:53:16]execute_cgi path=json_proto method=POST [07:53:16]POST find Content-Length [07:53:16]Host: 172.17.63.195:8080 [07:53:16]Content-Length: 766 [07:53:16]Content-Type: application/json [07:53:16] [07:53:16]POST finish read [07:53:16]Found Content-Length = 766 [07:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:16]execute_script... [07:53:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:16]POST & json_proto [07:53:16]process_json_proto [07:53:16]json parsed OK: [07:53:16]protocol is kg_v1.0 [07:53:16]action value=close_receipt [07:53:16]process_action close_receipt [07:53:16]cmd_close_receipt [07:53:16]MH_GetDate [07:53:16]Write to MH i2c: F0 00 00 B1 16 B6 [07:53:16]Write i2c OK [07:53:16]MH_I2C_Read... [07:53:16]Read from MH i2c: F0 [07:53:16]MH_I2C_Read... [07:53:16]Read from MH i2c: F0 09 00 [07:53:16]MH_I2C_Read... [07:53:16]Read from MH i2c: F0 09 00 B1 16 00 6F F1 1D 67 68 46 19 67 D1 [07:53:16]GetLastDocTimeStamp 1730015369 [07:53:16]current date 1730015599 [07:53:16]FM_GetShiftState [07:53:16]SAM_PROTO_GetShiftState [07:53:16]wFMCommunicate request_size=4 [07:53:16]MH_SAM_APDU [07:53:16]CAPDU: 80 13 01 00 [07:53:16]Write to MH i2c: E2 08 00 B2 16 80 13 01 00 00 00 00 00 45 [07:53:16]Write i2c OK [07:53:16]MH_I2C_Read... [07:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:16]Read from MH i2c: E2 [07:53:16]MH_I2C_Read... [07:53:16]Read from MH i2c: E2 0E 00 [07:53:16]MH_I2C_Read... [07:53:16]Read from MH i2c: E2 0E 00 B2 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 47 [07:53:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:53:16]wFMCommunicate OK [07:53:16]SAM_PROTO_GetShiftState done [07:53:16]FM_GetShiftState done [07:53:16]opened in 1729987312 [07:53:16]opened+sec_in_day 1730073712 [07:53:16]quantity*price = 50041 [07:53:16]sum+1 = 50042 [07:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 56 27.10.2024 07:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201764 ФПД: 234731445599892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075319&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201764&fm=234731445599892&tin=02508201610067®Number=0000000000091777&sum=50041 [07:53:17]StoreToDocumentArchive [07:53:17]shift 544 fd 201764 [07:53:17]save to /storage/0544/doc_00201764 [07:53:17]save last doc name /storage/0544/doc_00201764 to /storage/kkm_last_doc_name [07:53:17]save OK [07:53:17]Clear old archive folders... [07:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:17]tlvbuf is 00082560 [07:53:17]SAM_PROTO_ClearQueue [07:53:17]wFMCommunicate request_size=4 [07:53:17]MH_SAM_APDU [07:53:17]CAPDU: 80 09 00 00 [07:53:17]Write to MH i2c: E2 08 00 BF 16 80 09 00 00 00 00 00 00 47 [07:53:17]Write i2c OK [07:53:17]MH_I2C_Read... [07:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:17]Read from MH i2c: E2 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 03 00 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 03 00 BF 16 00 90 00 49 [07:53:17]RAPDU: 90 00 [07:53:17]wFMCommunicate OK [07:53:17]SAM_PROTO_ClearQueue done [07:53:17]KKMCreateOFDPacket [07:53:17]OFDProtocolAddRootSTLVToBuf [07:53:17]FM_MakeSignedData [07:53:17]FM_MakeSignedData [07:53:17]SAM_PROTO_SignData [07:53:17]wFMCommunicate request_size=4 [07:53:17]MH_SAM_APDU [07:53:17]CAPDU: 80 0D 01 02 [07:53:17]Write to MH i2c: E2 08 00 C0 16 80 0D 01 02 00 00 00 00 4F [07:53:17]Write i2c OK [07:53:17]MH_I2C_Read... [07:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:17]Read from MH i2c: E2 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 03 00 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 03 00 C0 16 00 90 00 4A [07:53:17]RAPDU: 90 00 [07:53:17]wFMCommunicate OK [07:53:17]wFMCommunicate request_size=255 [07:53:17]MH_SAM_APDU [07:53:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 6F F1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 14 03 00 35 04 06 00 D5 [07:53:17]Write to MH i2c: E2 02 01 C1 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 6F F1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 14 03 00 35 04 06 00 D5 00 00 83 [07:53:17]Write i2c OK [07:53:17]MH_I2C_Read... [07:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:17]Read from MH i2c: E2 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 03 00 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 03 00 C1 16 00 90 00 4B [07:53:17]RAPDU: 90 00 [07:53:17]wFMCommunicate OK [07:53:17]wFMCommunicate request_size=10 [07:53:17]MH_SAM_APDU [07:53:17]CAPDU: 80 0D 02 02 05 7C AC 6E BE 94 [07:53:17]Write to MH i2c: E2 0D 00 C2 16 80 0D 02 02 05 00 7C AC 6E BE 94 00 00 44 [07:53:17]Write i2c OK [07:53:17]MH_I2C_Read... [07:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:17]Read from MH i2c: E2 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 03 00 [07:53:17]MH_I2C_Read... [07:53:17]Read from MH i2c: E2 03 00 C2 16 00 90 00 4C [07:53:17]RAPDU: 90 00 [07:53:17]wFMCommunicate OK [07:53:17]wFMCommunicate request_size=4 [07:53:17]MH_SAM_APDU [07:53:17]CAPDU: 80 0D 03 02 [07:53:17]Write to MH i2c: E2 08 00 C3 16 80 0D 03 02 00 00 00 00 54 [07:53:17]Write i2c OK [07:53:17]MH_I2C_Read... [07:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:18]Read from MH i2c: E2 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 0B 00 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 0B 00 C3 16 00 05 5B C7 07 AD 35 A9 7F 90 00 8D [07:53:18]RAPDU: 05 5B C7 07 AD 35 A9 7F 90 00 [07:53:18]wFMCommunicate OK [07:53:18]SAM_PROTO_SignData done [07:53:18]FM_MakeSignedData done [07:53:18]CreateOFDProtocolMessage [07:53:18]wFMCommunicate request_size=4 [07:53:18]MH_SAM_APDU [07:53:18]CAPDU: 80 11 00 00 [07:53:18]Write to MH i2c: E2 08 00 C4 16 80 11 00 00 00 00 00 00 54 [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:18]Read from MH i2c: E2 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 17 00 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: E2 17 00 C4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [07:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:53:18]wFMCommunicate OK [07:53:18]CreateOFDProtocolMessage done [07:53:18]OFDSenderStorePacket 201764 [07:53:18]StoreOFDPacket docnum=201764 [07:53:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 39 36 07 01 06 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 6F F1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 14 03 00 35 04 06 00 D5 7C AC 6E BE 94 05 5B C7 07 AD 35 A9 7F [07:53:18]CheckFolder [07:53:18]dirname=/storage/ofd_packets [07:53:18]CheckFolder done [07:53:18]ProducePacketName [07:53:18]name=ofd_packets/00201764 [07:53:18]NVStorageSaveData ofd_packets/00201764 [07:53:18]File name is /storage/ofd_packets/00201764 [07:53:18]Write 301 bytes [07:53:18]NVStorageSaveData done [07:53:18]OFDSenderStorePacket done [07:53:18]KKMCreateOFDPacket done [07:53:18]NVStorageSaveData kkm_last_timestamp [07:53:18]File name is /storage/kkm_last_timestamp [07:53:18]Write 4 bytes [07:53:18]NVStorageSaveData done [07:53:18]ExternCall_PrintAddStr [07:53:18]wPrintStart [07:53:18]Write to MH i2c: 01 00 00 C5 16 DB [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: 01 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: 01 07 00 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: 01 07 00 C5 16 00 00 00 00 00 FF 0F F0 [07:53:18]RasterBufferAndPrint [07:53:18]line Счет N : (1)449520 [07:53:18]line ИНН: 02508201610067 [07:53:18]line Контрольно-Кассовый Чек [07:53:18]line ПРОДАЖА [07:53:18]line ТРК (МРК, ГНК) : 62 [07:53:18]line Товар: 2710124130 [07:53:18]line Аи-92-К-2 [07:53:18]line 7.480 * 66.90 [07:53:18]line = 500.41 [07:53:18]line НДС 12% НСП 1% [07:53:18]line > о реализуемом товаре [07:53:18]line ИТОГО: 500.41 [07:53:18]line НСП 1% : 4.43 [07:53:18]line НДС 12% : 53.14 [07:53:18]line Наличными: 0.00 [07:53:18]line Безнал.: 500.41 [07:53:18]line Место: АЗС № 171 "Партнер Нефть" [07:53:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:53:18]line СНО: Общий режим [07:53:18]line Чек 56 27.10.2024 07:53 [07:53:18]line Смена: 544 ФФД: 1.0 [07:53:18]line ЗНМ: 0300000109 [07:53:18]line РНМ: 0000000000091777 [07:53:18]line Версия ККМ: 001 [07:53:18]line Платежная система: Mbank [07:53:18]line ФМ: 0000000000871756 [07:53:18]line ФД: 201764 [07:53:18]line ФПД: 234731445599892 [07:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075319&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201764&fm=234731445599892&tin=02508201610067®Number=0000000000091777&sum=50041 [07:53:18]written 0, free lines is 4095 [07:53:18]OFD Sender: Processing packet 201764 [packets to send 112, broken 111] [07:53:18]ProducePacketName [07:53:18]name=ofd_packets/00201764 [07:53:18]OFD Sender: To server: pG, [07:53:18]CommunicateWithHost lk.salyk.kg:30040 [07:53:18]ConnectInit lk.salyk.kg [07:53:18]Connected sock=10 [07:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 39 36 07 01 06 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 6F F1 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 14 03 00 35 04 06 00 D5 7C AC 6E BE 94 05 5B C7 07 AD 35 A9 7F [07:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 63 E7 47 00 88 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 14 03 00 F4 03 04 00 15 9D 1D 67 B6 04 01 00 00 D8 70 F9 CB FE BC C8 16 [07:53:18]CommunicateWithHost err = 0 [07:53:18]CheckOFDResponse [07:53:18]1017 (14) - 77093643461234 [07:53:18]1041 (16) - 0000000000871756 [07:53:18]1040 (4) - 201764 [07:53:18]1012 (4) - 27.10.2024 01:53 [07:53:18]1206 (1) - 0 [07:53:18]OFD Sender: Remove packet 201764 [07:53:18]ProducePacketName [07:53:18]name=ofd_packets/00201764 [07:53:18]NVStorageDeleteData [07:53:18]Write to MH i2c: 01 00 00 EE 16 04 [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: 01 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: 01 07 00 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: 01 07 00 EE 16 00 00 00 00 00 BC 0C D3 [07:53:18]RasterBufferAndPrint [07:53:18]line [07:53:18]line [07:53:18]line [07:53:18]line [07:53:18]line [07:53:18]written 0, free lines is 3265 [07:53:18]MH_Cut [07:53:18]Write to MH i2c: D1 01 00 F5 16 01 DD [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: D1 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: D1 01 00 [07:53:18]MH_I2C_Read... [07:53:18]Read from MH i2c: D1 01 00 F5 16 00 DC [07:53:18]Write to MH i2c: 01 00 00 F6 16 0C [07:53:18]Write i2c OK [07:53:18]MH_I2C_Read... [07:53:19]OFD Sender: No OFD packet to send [07:53:19]*** Cut start [07:53:19]*** Purtial cut [07:53:19]*** Stage 1: CUTSNS_PIN = 1 [07:53:19]Read from MH i2c: 01 [07:53:19]MH_I2C_Read... [07:53:19]*** Stop cut motor [07:53:19]*** Cut end [07:53:19]Read from MH i2c: 01 07 00 [07:53:19]MH_I2C_Read... [07:53:19]Read from MH i2c: 01 07 00 F6 16 00 00 00 00 00 FF 0F 21 [07:53:19]process_action close_receipt done [07:53:19]requested_data is exist [07:53:19]produce_requested_data [07:53:19]requested_item fm.sn is exist - process it [07:53:19]wFMCommunicate request_size=4 [07:53:19]MH_SAM_APDU [07:53:19]CAPDU: 80 11 00 00 [07:53:19]Write to MH i2c: E2 08 00 F7 16 80 11 00 00 00 00 00 00 87 [07:53:19]Write i2c OK [07:53:19]MH_I2C_Read... [07:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:20]Read from MH i2c: E2 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: E2 17 00 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: E2 17 00 F7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DC [07:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:53:20]wFMCommunicate OK [07:53:20]requested_item fd.num is exist - process it [07:53:20]SAM_PROTO_GetFieldsCounters [07:53:20]wFMCommunicate request_size=4 [07:53:20]MH_SAM_APDU [07:53:20]CAPDU: 80 13 00 00 [07:53:20]Write to MH i2c: E2 08 00 F8 16 80 13 00 00 00 00 00 00 8A [07:53:20]Write i2c OK [07:53:20]MH_I2C_Read... [07:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:20]Read from MH i2c: E2 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: E2 62 00 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: E2 62 00 F8 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 24 14 03 00 0E 04 04 00 20 02 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 B8 [07:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 24 14 03 00 0E 04 04 00 20 02 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 [07:53:20]wFMCommunicate OK [07:53:20]SAM_PROTO_GetFieldsCounters done [07:53:20]requested_item shift.num is exist - process it [07:53:20]requested_item shift.opened is exist - process it [07:53:20]req_shift_opened [07:53:20]FM_GetShiftState [07:53:20]SAM_PROTO_GetShiftState [07:53:20]wFMCommunicate request_size=4 [07:53:20]MH_SAM_APDU [07:53:20]CAPDU: 80 13 01 00 [07:53:20]Write to MH i2c: E2 08 00 F9 16 80 13 01 00 00 00 00 00 8C [07:53:20]Write i2c OK [07:53:20]MH_I2C_Read... [07:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:20]Read from MH i2c: E2 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: E2 0E 00 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: E2 0E 00 F9 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8E [07:53:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:53:20]wFMCommunicate OK [07:53:20]SAM_PROTO_GetShiftState done [07:53:20]FM_GetShiftState done [07:53:20]req_shift_opened done [07:53:20]requested_item shift.open_date is exist - process it [07:53:20]req_shift_open_date [07:53:20]req_shift_open_date done [07:53:20]produce_requested_data done [07:53:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201764,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:53:20]process_action_free close_receipt [07:53:20]json_value_free [07:53:20]json_value_free done [07:53:20]process_json_proto returns [07:53:20]Send response to host [07:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201764,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:53:20]free response buf [07:53:20]execute_script done [07:53:20]execute_script returns [07:53:20]free content buf [07:53:20]Sock 8.Close socket [07:53:20]Sock 8.Thread stoped [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:28]accept exits with 9 [07:57:28]New connection [07:57:28]New thread 3067080036 created [07:57:28]Thread 3066936676 joined [07:57:28]Waiting for new connection... [07:57:28] Sock 9.Parse request [07:57:28]Sock 9.Check first char [07:57:28]Sock 9.First char is OK [07:57:28]request: POST /json_proto HTTP/1.0 [07:57:28]Method: POST [07:57:28]URL: /json_proto [07:57:28]Method is POST - this is cgi request [07:57:28]url: /json_proto [07:57:28]query_string will be loaded in cgi processing [07:57:28]execute_cgi json_proto POST (null) [07:57:28]execute_cgi path=json_proto method=POST [07:57:28]POST find Content-Length [07:57:28]Host: 172.17.63.195:8080 [07:57:28]Content-Length: 763 [07:57:28]Content-Type: application/json [07:57:28] [07:57:28]POST finish read [07:57:28]Found Content-Length = 763 [07:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:28]execute_script... [07:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:28]POST & json_proto [07:57:28]process_json_proto [07:57:28]json parsed OK: [07:57:28]protocol is kg_v1.0 [07:57:28]action value=close_receipt [07:57:28]process_action close_receipt [07:57:28]cmd_close_receipt [07:57:28]MH_GetDate [07:57:28]Write to MH i2c: F0 00 00 FA 16 FF [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: F0 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: F0 09 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: F0 09 00 FA 16 00 6B F2 1D 67 68 46 19 67 17 [07:57:28]GetLastDocTimeStamp 1730015599 [07:57:28]current date 1730015851 [07:57:28]FM_GetShiftState [07:57:28]SAM_PROTO_GetShiftState [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 13 01 00 [07:57:28]Write to MH i2c: E2 08 00 FB 16 80 13 01 00 00 00 00 00 8E [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 0E 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 0E 00 FB 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 90 [07:57:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:57:28]wFMCommunicate OK [07:57:28]SAM_PROTO_GetShiftState done [07:57:28]FM_GetShiftState done [07:57:28]opened in 1729987312 [07:57:28]opened+sec_in_day 1730073712 [07:57:28]quantity*price = 50063 [07:57:28]sum+1 = 50064 [07:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 57 27.10.2024 07:57 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201765 ФПД: 207101577016820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075732&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201765&fm=207101577016820&tin=02508201610067®Number=0000000000091777&sum=50063 [07:57:29]StoreToDocumentArchive [07:57:29]shift 544 fd 201765 [07:57:29]save to /storage/0544/doc_00201765 [07:57:29]save last doc name /storage/0544/doc_00201765 to /storage/kkm_last_doc_name [07:57:29]save OK [07:57:29]Clear old archive folders... [07:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:57:29]tlvbuf is 000A37C0 [07:57:29]SAM_PROTO_ClearQueue [07:57:29]wFMCommunicate request_size=4 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 09 00 00 [07:57:29]Write to MH i2c: E2 08 00 08 17 80 09 00 00 00 00 00 00 91 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 08 17 00 90 00 93 [07:57:29]RAPDU: 90 00 [07:57:29]wFMCommunicate OK [07:57:29]SAM_PROTO_ClearQueue done [07:57:29]KKMCreateOFDPacket [07:57:29]OFDProtocolAddRootSTLVToBuf [07:57:29]FM_MakeSignedData [07:57:29]FM_MakeSignedData [07:57:29]SAM_PROTO_SignData [07:57:29]wFMCommunicate request_size=4 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 0D 01 02 [07:57:29]Write to MH i2c: E2 08 00 09 17 80 0D 01 02 00 00 00 00 99 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 09 17 00 90 00 94 [07:57:29]RAPDU: 90 00 [07:57:29]wFMCommunicate OK [07:57:29]wFMCommunicate request_size=255 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6C F2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 14 03 00 35 04 06 00 BC 5B 97 EE [07:57:29]Write to MH i2c: E2 02 01 0A 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6C F2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 14 03 00 35 04 06 00 BC 5B 97 EE 00 00 3E [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]OFD Sender: No OFD packet to send [07:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 0A 17 00 90 00 95 [07:57:29]RAPDU: 90 00 [07:57:29]wFMCommunicate OK [07:57:29]wFMCommunicate request_size=7 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 0D 02 02 02 35 F4 [07:57:29]Write to MH i2c: E2 0A 00 0B 17 80 0D 02 02 02 00 35 F4 00 00 C9 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 03 00 0B 17 00 90 00 96 [07:57:29]RAPDU: 90 00 [07:57:29]wFMCommunicate OK [07:57:29]wFMCommunicate request_size=4 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 0D 03 02 [07:57:29]Write to MH i2c: E2 08 00 0C 17 80 0D 03 02 00 00 00 00 9E [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 0B 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 0B 00 0C 17 00 DE C7 B9 2F 2E AC 84 C6 90 00 50 [07:57:29]RAPDU: DE C7 B9 2F 2E AC 84 C6 90 00 [07:57:29]wFMCommunicate OK [07:57:29]SAM_PROTO_SignData done [07:57:29]FM_MakeSignedData done [07:57:29]CreateOFDProtocolMessage [07:57:29]wFMCommunicate request_size=4 [07:57:29]MH_SAM_APDU [07:57:29]CAPDU: 80 11 00 00 [07:57:29]Write to MH i2c: E2 08 00 0D 17 80 11 00 00 00 00 00 00 9E [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:29]Read from MH i2c: E2 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 17 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: E2 17 00 0D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F3 [07:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:57:29]wFMCommunicate OK [07:57:29]CreateOFDProtocolMessage done [07:57:29]OFDSenderStorePacket 201765 [07:57:29]StoreOFDPacket docnum=201765 [07:57:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 80 37 04 01 9E 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6C F2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 14 03 00 35 04 06 00 BC 5B 97 EE 35 F4 DE C7 B9 2F 2E AC 84 C6 [07:57:29]CheckFolder [07:57:29]dirname=/storage/ofd_packets [07:57:29]CheckFolder done [07:57:29]ProducePacketName [07:57:29]name=ofd_packets/00201765 [07:57:29]NVStorageSaveData ofd_packets/00201765 [07:57:29]File name is /storage/ofd_packets/00201765 [07:57:29]Write 298 bytes [07:57:29]NVStorageSaveData done [07:57:29]OFDSenderStorePacket done [07:57:29]KKMCreateOFDPacket done [07:57:29]NVStorageSaveData kkm_last_timestamp [07:57:29]File name is /storage/kkm_last_timestamp [07:57:29]Write 4 bytes [07:57:29]NVStorageSaveData done [07:57:29]ExternCall_PrintAddStr [07:57:29]wPrintStart [07:57:29]Write to MH i2c: 01 00 00 0E 17 25 [07:57:29]Write i2c OK [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: 01 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: 01 07 00 [07:57:29]MH_I2C_Read... [07:57:29]Read from MH i2c: 01 07 00 0E 17 00 00 00 00 00 FF 0F 3A [07:57:29]RasterBufferAndPrint [07:57:29]line Счет N : (1)449521 [07:57:29]line ИНН: 02508201610067 [07:57:29]line Контрольно-Кассовый Чек [07:57:29]line ПРОДАЖА [07:57:29]line ТРК (МРК, ГНК) : 33 [07:57:29]line Товар: 2710194210 [07:57:29]line ДТ-К-2 [07:57:29]line 6.570 * 76.20 [07:57:29]line = 500.63 [07:57:29]line НДС 12% НСП 1% [07:57:29]line > о реализуемом товаре [07:57:29]line ИТОГО: 500.63 [07:57:29]line НСП 1% : 4.43 [07:57:29]line НДС 12% : 53.16 [07:57:29]line Наличными: 0.00 [07:57:29]line Безнал.: 500.63 [07:57:30]line Место: АЗС № 171 "Партнер Нефть" [07:57:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:57:30]line СНО: Общий режим [07:57:30]line Чек 57 27.10.2024 07:57 [07:57:30]line Смена: 544 ФФД: 1.0 [07:57:30]line ЗНМ: 0300000109 [07:57:30]line РНМ: 0000000000091777 [07:57:30]line Версия ККМ: 001 [07:57:30]line Платежная система: Mbank [07:57:30]line ФМ: 0000000000871756 [07:57:30]line ФД: 201765 [07:57:30]line ФПД: 207101577016820 [07:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075732&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201765&fm=207101577016820&tin=02508201610067®Number=0000000000091777&sum=50063 [07:57:30]OFD Sender: Processing packet 201765 [packets to send 112, broken 111] [07:57:30]ProducePacketName [07:57:30]name=ofd_packets/00201765 [07:57:30]OFD Sender: To server: pG, [07:57:30]CommunicateWithHost lk.salyk.kg:30040 [07:57:30]ConnectInit lk.salyk.kg [07:57:30]written 0, free lines is 4095 [07:57:30]Connected sock=10 [07:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 80 37 04 01 9E 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6C F2 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 14 03 00 35 04 06 00 BC 5B 97 EE 35 F4 DE C7 B9 2F 2E AC 84 C6 [07:57:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 39 C0 47 00 07 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 14 03 00 F4 03 04 00 11 9E 1D 67 B6 04 01 00 00 1E 49 D4 0B 8B 25 1D 0B [07:57:30]CommunicateWithHost err = 0 [07:57:30]CheckOFDResponse [07:57:30]1017 (14) - 77093643461234 [07:57:30]1041 (16) - 0000000000871756 [07:57:30]1040 (4) - 201765 [07:57:30]1012 (4) - 27.10.2024 01:57 [07:57:30]1206 (1) - 0 [07:57:30]OFD Sender: Remove packet 201765 [07:57:30]ProducePacketName [07:57:30]name=ofd_packets/00201765 [07:57:30]NVStorageDeleteData [07:57:30]Write to MH i2c: 01 00 00 37 17 4E [07:57:30]Write i2c OK [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: 01 [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: 01 07 00 [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: 01 07 00 37 17 00 00 00 00 00 C4 0C 25 [07:57:30]RasterBufferAndPrint [07:57:30]line [07:57:30]line [07:57:30]line [07:57:30]line [07:57:30]line [07:57:30]written 0, free lines is 3272 [07:57:30]MH_Cut [07:57:30]Write to MH i2c: D1 01 00 3E 17 01 27 [07:57:30]Write i2c OK [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: D1 [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: D1 01 00 [07:57:30]MH_I2C_Read... [07:57:30]Read from MH i2c: D1 01 00 3E 17 00 26 [07:57:30]Write to MH i2c: 01 00 00 3F 17 56 [07:57:30]Write i2c OK [07:57:30]MH_I2C_Read... [07:57:31]OFD Sender: No OFD packet to send [07:57:31]*** Cut start [07:57:31]*** Purtial cut [07:57:31]*** Stage 1: CUTSNS_PIN = 1 [07:57:31]Read from MH i2c: 01 [07:57:31]MH_I2C_Read... [07:57:31]*** Stop cut motor [07:57:31]*** Cut end [07:57:31]Read from MH i2c: 01 07 00 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: 01 07 00 3F 17 00 00 00 00 00 FF 0F 6B [07:57:31]process_action close_receipt done [07:57:31]requested_data is exist [07:57:31]produce_requested_data [07:57:31]requested_item fm.sn is exist - process it [07:57:31]wFMCommunicate request_size=4 [07:57:31]MH_SAM_APDU [07:57:31]CAPDU: 80 11 00 00 [07:57:31]Write to MH i2c: E2 08 00 40 17 80 11 00 00 00 00 00 00 D1 [07:57:31]Write i2c OK [07:57:31]MH_I2C_Read... [07:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:31]Read from MH i2c: E2 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 17 00 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 17 00 40 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 26 [07:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:57:31]wFMCommunicate OK [07:57:31]requested_item fd.num is exist - process it [07:57:31]SAM_PROTO_GetFieldsCounters [07:57:31]wFMCommunicate request_size=4 [07:57:31]MH_SAM_APDU [07:57:31]CAPDU: 80 13 00 00 [07:57:31]Write to MH i2c: E2 08 00 41 17 80 13 00 00 00 00 00 00 D4 [07:57:31]Write i2c OK [07:57:31]MH_I2C_Read... [07:57:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:31]Read from MH i2c: E2 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 62 00 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 62 00 41 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 25 14 03 00 0E 04 04 00 20 02 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 06 [07:57:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 25 14 03 00 0E 04 04 00 20 02 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 [07:57:31]wFMCommunicate OK [07:57:31]SAM_PROTO_GetFieldsCounters done [07:57:31]requested_item shift.num is exist - process it [07:57:31]requested_item shift.opened is exist - process it [07:57:31]req_shift_opened [07:57:31]FM_GetShiftState [07:57:31]SAM_PROTO_GetShiftState [07:57:31]wFMCommunicate request_size=4 [07:57:31]MH_SAM_APDU [07:57:31]CAPDU: 80 13 01 00 [07:57:31]Write to MH i2c: E2 08 00 42 17 80 13 01 00 00 00 00 00 D6 [07:57:31]Write i2c OK [07:57:31]MH_I2C_Read... [07:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:31]Read from MH i2c: E2 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 0E 00 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 0E 00 42 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [07:57:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [07:57:31]wFMCommunicate OK [07:57:31]SAM_PROTO_GetShiftState done [07:57:31]FM_GetShiftState done [07:57:31]req_shift_opened done [07:57:31]requested_item shift.open_date is exist - process it [07:57:31]req_shift_open_date [07:57:31]req_shift_open_date done [07:57:31]produce_requested_data done [07:57:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201765,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [07:57:31]process_action_free close_receipt [07:57:31]json_value_free [07:57:31]json_value_free done [07:57:31]process_json_proto returns [07:57:31]Send response to host [07:57:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201765,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [07:57:31]free response buf [07:57:31]execute_script done [07:57:31]execute_script returns [07:57:31]free content buf [07:57:31]Sock 9.Close socket [07:57:31]Sock 9.Thread stoped [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:27]accept exits with 8 [08:04:27]New connection [08:04:27]New thread 3066936676 created [08:04:27]Thread 3067080036 joined [08:04:27]Waiting for new connection... [08:04:27] Sock 8.Parse request [08:04:27]Sock 8.Check first char [08:04:27]Sock 8.First char is OK [08:04:27]request: POST /json_proto HTTP/1.0 [08:04:27]Method: POST [08:04:27]URL: /json_proto [08:04:27]Method is POST - this is cgi request [08:04:27]url: /json_proto [08:04:27]query_string will be loaded in cgi processing [08:04:27]execute_cgi json_proto POST (null) [08:04:27]execute_cgi path=json_proto method=POST [08:04:27]POST find Content-Length [08:04:27]Host: 172.17.63.195:8080 [08:04:27]Content-Length: 682 [08:04:27]Content-Type: application/json [08:04:27] [08:04:27]POST finish read [08:04:27]Found Content-Length = 682 [08:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:04:27]execute_script... [08:04: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)449522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:04:27]POST & json_proto [08:04:27]process_json_proto [08:04:27]json parsed OK: [08:04:27]protocol is kg_v1.0 [08:04:27]action value=close_receipt [08:04:27]process_action close_receipt [08:04:27]cmd_close_receipt [08:04:27]MH_GetDate [08:04:27]Write to MH i2c: F0 00 00 43 17 49 [08:04:27]Write i2c OK [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: F0 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: F0 09 00 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: F0 09 00 43 17 00 0F F4 1D 67 68 46 19 67 07 [08:04:27]GetLastDocTimeStamp 1730015852 [08:04:27]current date 1730016271 [08:04:27]FM_GetShiftState [08:04:27]SAM_PROTO_GetShiftState [08:04:27]wFMCommunicate request_size=4 [08:04:27]MH_SAM_APDU [08:04:27]CAPDU: 80 13 01 00 [08:04:27]Write to MH i2c: E2 08 00 44 17 80 13 01 00 00 00 00 00 D8 [08:04:27]Write i2c OK [08:04:27]MH_I2C_Read... [08:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:27]Read from MH i2c: E2 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: E2 0E 00 [08:04:27]MH_I2C_Read... [08:04:27]Read from MH i2c: E2 0E 00 44 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DA [08:04:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:04:27]wFMCommunicate OK [08:04:27]SAM_PROTO_GetShiftState done [08:04:27]FM_GetShiftState done [08:04:27]opened in 1729987312 [08:04:27]opened+sec_in_day 1730073712 [08:04:27]quantity*price = 100015 [08:04:27]sum+1 = 100017 [08:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 58 27.10.2024 08:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201766 ФПД: 75439165563354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080431&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201766&fm=75439165563354&tin=02508201610067®Number=0000000000091777&sum=100000 [08:04:28]StoreToDocumentArchive [08:04:28]shift 544 fd 201766 [08:04:28]save to /storage/0544/doc_00201766 [08:04:28]save last doc name /storage/0544/doc_00201766 to /storage/kkm_last_doc_name [08:04:28]save OK [08:04:28]Clear old archive folders... [08:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:28]tlvbuf is 0008C1A0 [08:04:28]SAM_PROTO_ClearQueue [08:04:28]wFMCommunicate request_size=4 [08:04:28]MH_SAM_APDU [08:04:28]CAPDU: 80 09 00 00 [08:04:28]Write to MH i2c: E2 08 00 51 17 80 09 00 00 00 00 00 00 DA [08:04:28]Write i2c OK [08:04:28]MH_I2C_Read... [08:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:28]Read from MH i2c: E2 [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: E2 03 00 [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [08:04:28]RAPDU: 90 00 [08:04:28]wFMCommunicate OK [08:04:28]SAM_PROTO_ClearQueue done [08:04:28]KKMCreateOFDPacket [08:04:28]OFDProtocolAddRootSTLVToBuf [08:04:28]FM_MakeSignedData [08:04:28]FM_MakeSignedData [08:04:28]SAM_PROTO_SignData [08:04:28]wFMCommunicate request_size=4 [08:04:28]MH_SAM_APDU [08:04:28]CAPDU: 80 0D 01 02 [08:04:28]Write to MH i2c: E2 08 00 52 17 80 0D 01 02 00 00 00 00 E2 [08:04:28]Write i2c OK [08:04:28]MH_I2C_Read... [08:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:28]Read from MH i2c: E2 [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: E2 03 00 [08:04:28]MH_I2C_Read... [08:04:28]Read from MH i2c: E2 03 00 52 17 00 90 00 DD [08:04:28]RAPDU: 90 00 [08:04:28]wFMCommunicate OK [08:04:28]wFMCommunicate request_size=255 [08:04:28]MH_SAM_APDU [08:04:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 0F F4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 14 03 00 35 04 06 00 44 [08:04:28]Write to MH i2c: E2 02 01 53 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 0F F4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 14 03 00 35 04 06 00 44 00 00 D4 [08:04:28]Write i2c OK [08:04:28]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 [08:04:29]MH_I2C_Read... [08:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:29]Read from MH i2c: E2 03 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 03 00 53 17 00 90 00 DE [08:04:29]RAPDU: 90 00 [08:04:29]wFMCommunicate OK [08:04:29]wFMCommunicate request_size=10 [08:04:29]MH_SAM_APDU [08:04:29]CAPDU: 80 0D 02 02 05 9C 8C AA 61 DA [08:04:29]Write to MH i2c: E2 0D 00 54 17 80 0D 02 02 05 00 9C 8C AA 61 DA 00 00 FC [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:29]Read from MH i2c: E2 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 03 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 03 00 54 17 00 90 00 DF [08:04:29]RAPDU: 90 00 [08:04:29]wFMCommunicate OK [08:04:29]wFMCommunicate request_size=4 [08:04:29]MH_SAM_APDU [08:04:29]CAPDU: 80 0D 03 02 [08:04:29]Write to MH i2c: E2 08 00 55 17 80 0D 03 02 00 00 00 00 E7 [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:29]Read from MH i2c: E2 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 0B 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 0B 00 55 17 00 6D 38 79 3E 88 47 93 E9 90 00 8F [08:04:29]RAPDU: 6D 38 79 3E 88 47 93 E9 90 00 [08:04:29]wFMCommunicate OK [08:04:29]SAM_PROTO_SignData done [08:04:29]FM_MakeSignedData done [08:04:29]CreateOFDProtocolMessage [08:04:29]wFMCommunicate request_size=4 [08:04:29]MH_SAM_APDU [08:04:29]CAPDU: 80 11 00 00 [08:04:29]Write to MH i2c: E2 08 00 56 17 80 11 00 00 00 00 00 00 E7 [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:29]Read from MH i2c: E2 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 17 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: E2 17 00 56 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3C [08:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:04:29]wFMCommunicate OK [08:04:29]CreateOFDProtocolMessage done [08:04:29]OFDSenderStorePacket 201766 [08:04:29]StoreOFDPacket docnum=201766 [08:04:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8E D8 07 01 DE B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 0F F4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 14 03 00 35 04 06 00 44 9C 8C AA 61 DA 6D 38 79 3E 88 47 93 E9 [08:04:29]CheckFolder [08:04:29]dirname=/storage/ofd_packets [08:04:29]CheckFolder done [08:04:29]ProducePacketName [08:04:29]name=ofd_packets/00201766 [08:04:29]NVStorageSaveData ofd_packets/00201766 [08:04:29]File name is /storage/ofd_packets/00201766 [08:04:29]Write 301 bytes [08:04:29]NVStorageSaveData done [08:04:29]OFDSenderStorePacket done [08:04:29]KKMCreateOFDPacket done [08:04:29]NVStorageSaveData kkm_last_timestamp [08:04:29]File name is /storage/kkm_last_timestamp [08:04:29]Write 4 bytes [08:04:29]NVStorageSaveData done [08:04:29]ExternCall_PrintAddStr [08:04:29]wPrintStart [08:04:29]Write to MH i2c: 01 00 00 57 17 6E [08:04:29]Write i2c OK [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: 01 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: 01 07 00 [08:04:29]MH_I2C_Read... [08:04:29]Read from MH i2c: 01 07 00 57 17 00 00 00 00 00 FF 0F 83 [08:04:29]RasterBufferAndPrint [08:04:29]line Счет N : (1)449522 [08:04:29]line ИНН: 02508201610067 [08:04:29]line Контрольно-Кассовый Чек [08:04:29]line ПРОДАЖА [08:04:29]line ТРК (МРК, ГНК) : 52 [08:04:29]line Товар: 2710124130 [08:04:29]line Аи-92-К-2 [08:04:29]line 14.950 * 66.90 [08:04:29]line = 1000.16 [08:04:29]line НДС 12% НСП 1% [08:04:29]line > о реализуемом товаре [08:04:29]line ОКРУГЛЕНИЕ: -0.16 [08:04:29]line ИТОГО: 1000.00 [08:04:29]line Внесено: 1000.00 [08:04:29]line СДАЧА: 0.00 [08:04:29]line НСП 1% : 8.85 [08:04:29]line НДС 12% : 106.21 [08:04:29]line Наличными: 1000.00 [08:04:29]line Безнал.: 0.00 [08:04:29]line Место: АЗС № 171 "Партнер Нефть" [08:04:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:04:29]line СНО: Общий режим [08:04:29]line Чек 58 27.10.2024 08:04 [08:04:29]line Смена: 544 ФФД: 1.0 [08:04:29]line ЗНМ: 0300000109 [08:04:29]line РНМ: 0000000000091777 [08:04:29]line Версия ККМ: 001 [08:04:29]line ФМ: 0000000000871756 [08:04:29]line ФД: 201766 [08:04:29]line ФПД: 75439165563354 [08:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080431&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201766&fm=75439165563354&tin=02508201610067®Number=0000000000091777&sum=100000 [08:04:29]OFD Sender: Processing packet 201766 [packets to send 112, broken 111] [08:04:29]ProducePacketName [08:04:29]name=ofd_packets/00201766 [08:04:29]OFD Sender: To server: pG, [08:04:29]CommunicateWithHost lk.salyk.kg:30040 [08:04:29]ConnectInit lk.salyk.kg [08:04:29]written 0, free lines is 4095 [08:04:29]Connected sock=10 [08:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8E D8 07 01 DE B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3A 00 00 00 F4 03 04 00 0F F4 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 14 03 00 35 04 06 00 44 9C 8C AA 61 DA 6D 38 79 3E 88 47 93 E9 [08:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4E B8 47 00 88 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 14 03 00 F4 03 04 00 B5 9F 1D 67 B6 04 01 00 00 CD 6E 38 3E 5A 31 81 C0 [08:04:29]CommunicateWithHost err = 0 [08:04:29]CheckOFDResponse [08:04:29]1017 (14) - 77093643461234 [08:04:29]1041 (16) - 0000000000871756 [08:04:29]1040 (4) - 201766 [08:04:29]1012 (4) - 27.10.2024 02:04 [08:04:29]1206 (1) - 0 [08:04:29]OFD Sender: Remove packet 201766 [08:04:29]ProducePacketName [08:04:29]name=ofd_packets/00201766 [08:04:29]NVStorageDeleteData [08:04:30]Write to MH i2c: 01 00 00 82 17 99 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 07 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: 01 07 00 82 17 00 00 00 00 00 97 0C 43 [08:04:30]RasterBufferAndPrint [08:04:30]line [08:04:30]line [08:04:30]line [08:04:30]line [08:04:30]line [08:04:30]written 0, free lines is 3229 [08:04:30]MH_Cut [08:04:30]Write to MH i2c: D1 01 00 89 17 01 72 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: D1 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: D1 01 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: D1 01 00 89 17 00 71 [08:04:30]Write to MH i2c: 01 00 00 8A 17 A1 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]OFD Sender: No OFD packet to send [08:04:30]*** Cut start [08:04:30]*** Purtial cut [08:04:30]*** Stage 1: CUTSNS_PIN = 1 [08:04:31]Read from MH i2c: 01 [08:04:31]MH_I2C_Read... [08:04:31]*** Stop cut motor [08:04:31]*** Cut end [08:04:31]Read from MH i2c: 01 07 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: 01 07 00 8A 17 00 00 00 00 00 FF 0F B6 [08:04:31]process_action close_receipt done [08:04:31]requested_data is exist [08:04:31]produce_requested_data [08:04:31]requested_item fm.sn is exist - process it [08:04:31]wFMCommunicate request_size=4 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 11 00 00 [08:04:31]Write to MH i2c: E2 08 00 8B 17 80 11 00 00 00 00 00 00 1C [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 17 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 17 00 8B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 71 [08:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:04:31]wFMCommunicate OK [08:04:31]requested_item fd.num is exist - process it [08:04:31]SAM_PROTO_GetFieldsCounters [08:04:31]wFMCommunicate request_size=4 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 13 00 00 [08:04:31]Write to MH i2c: E2 08 00 8C 17 80 13 00 00 00 00 00 00 1F [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 62 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 62 00 8C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 14 03 00 0E 04 04 00 20 02 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 55 [08:04:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 14 03 00 0E 04 04 00 20 02 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 [08:04:31]wFMCommunicate OK [08:04:31]SAM_PROTO_GetFieldsCounters done [08:04:31]requested_item shift.num is exist - process it [08:04:31]requested_item shift.opened is exist - process it [08:04:31]req_shift_opened [08:04:31]FM_GetShiftState [08:04:31]SAM_PROTO_GetShiftState [08:04:31]wFMCommunicate request_size=4 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 13 01 00 [08:04:31]Write to MH i2c: E2 08 00 8D 17 80 13 01 00 00 00 00 00 21 [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 0E 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 0E 00 8D 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 23 [08:04:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:04:31]wFMCommunicate OK [08:04:31]SAM_PROTO_GetShiftState done [08:04:31]FM_GetShiftState done [08:04:31]req_shift_opened done [08:04:31]requested_item shift.open_date is exist - process it [08:04:31]req_shift_open_date [08:04:31]req_shift_open_date done [08:04:31]produce_requested_data done [08:04:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201766,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:04:31]process_action_free close_receipt [08:04:31]json_value_free [08:04:31]json_value_free done [08:04:31]process_json_proto returns [08:04:31]Send response to host [08:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201766,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:04:31]free response buf [08:04:31]execute_script done [08:04:31]execute_script returns [08:04:31]free content buf [08:04:31]Sock 8.Close socket [08:04:31]Sock 8.Thread stoped [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:28]ConnectInit Can't connect to host [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:37]accept exits with 9 [08:20:37]New connection [08:20:37]New thread 3067080036 created [08:20:37]Thread 3066936676 joined [08:20:37]Waiting for new connection... [08:20:37] Sock 9.Parse request [08:20:37]Sock 9.Check first char [08:20:37]Sock 9.First char is OK [08:20:37]request: POST /json_proto HTTP/1.0 [08:20:37]Method: POST [08:20:37]URL: /json_proto [08:20:37]Method is POST - this is cgi request [08:20:37]url: /json_proto [08:20:37]query_string will be loaded in cgi processing [08:20:37]execute_cgi json_proto POST (null) [08:20:37]execute_cgi path=json_proto method=POST [08:20:37]POST find Content-Length [08:20:37]Host: 172.17.63.195:8080 [08:20:37]Content-Length: 215 [08:20:37]Content-Type: application/json [08:20:37] [08:20:37]POST finish read [08:20:37]Found Content-Length = 215 [08:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:37]execute_script... [08:20:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:37]POST & json_proto [08:20:37]process_json_proto [08:20:37]json parsed OK: [08:20:37]protocol is kg_v1.0 [08:20:37]action value=get_value [08:20:37]process_action get_value [08:20:37]cmd_get_value [08:20:37]process_action get_value done [08:20:37]requested_data is exist [08:20:37]produce_requested_data [08:20:37]requested_item kkm.sn is exist - process it [08:20:37]requested_item kkm.ver is exist - process it [08:20:37]requested_item fm.sn is exist - process it [08:20:37]wFMCommunicate request_size=4 [08:20:37]MH_SAM_APDU [08:20:37]CAPDU: 80 11 00 00 [08:20:37]Write to MH i2c: E2 08 00 8E 17 80 11 00 00 00 00 00 00 1F [08:20:37]Write i2c OK [08:20:37]MH_I2C_Read... [08:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:37]Read from MH i2c: E2 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: E2 17 00 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: E2 17 00 8E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 74 [08:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:20:37]wFMCommunicate OK [08:20:37]requested_item fd.num is exist - process it [08:20:37]SAM_PROTO_GetFieldsCounters [08:20:37]wFMCommunicate request_size=4 [08:20:37]MH_SAM_APDU [08:20:37]CAPDU: 80 13 00 00 [08:20:37]Write to MH i2c: E2 08 00 8F 17 80 13 00 00 00 00 00 00 22 [08:20:37]Write i2c OK [08:20:37]MH_I2C_Read... [08:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:37]Read from MH i2c: E2 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: E2 62 00 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: E2 62 00 8F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 14 03 00 0E 04 04 00 20 02 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 58 [08:20:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 14 03 00 0E 04 04 00 20 02 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 [08:20:37]wFMCommunicate OK [08:20:37]SAM_PROTO_GetFieldsCounters done [08:20:37]requested_item shift.num is exist - process it [08:20:37]requested_item shift.opened is exist - process it [08:20:37]req_shift_opened [08:20:37]FM_GetShiftState [08:20:37]SAM_PROTO_GetShiftState [08:20:37]wFMCommunicate request_size=4 [08:20:37]MH_SAM_APDU [08:20:37]CAPDU: 80 13 01 00 [08:20:37]Write to MH i2c: E2 08 00 90 17 80 13 01 00 00 00 00 00 24 [08:20:37]Write i2c OK [08:20:37]MH_I2C_Read... [08:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:37]Read from MH i2c: E2 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: E2 0E 00 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: E2 0E 00 90 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 26 [08:20:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:20:37]wFMCommunicate OK [08:20:37]SAM_PROTO_GetShiftState done [08:20:37]FM_GetShiftState done [08:20:37]req_shift_opened done [08:20:37]requested_item shift.open_date is exist - process it [08:20:37]req_shift_open_date [08:20:37]req_shift_open_date done [08:20:37]produce_requested_data done [08:20:37]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201766,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:20:37]process_action_free get_value [08:20:37]json_value_free [08:20:37]json_value_free done [08:20:37]process_json_proto returns [08:20:37]Send response to host [08:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201766,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:20:37]free response buf [08:20:37]execute_script done [08:20:37]execute_script returns [08:20:37]free content buf [08:20:37]Sock 9.Close socket [08:20:37]Sock 9.Thread stoped [08:20:37]accept exits with 8 [08:20:37]New connection [08:20:37]New thread 3066936676 created [08:20:37]Thread 3067080036 joined [08:20:37]Waiting for new connection... [08:20:37] Sock 8.Parse request [08:20:37]Sock 8.Check first char [08:20:37]Sock 8.First char is OK [08:20:37]request: POST /json_proto HTTP/1.0 [08:20:37]Method: POST [08:20:37]URL: /json_proto [08:20:37]Method is POST - this is cgi request [08:20:37]url: /json_proto [08:20:37]query_string will be loaded in cgi processing [08:20:37]execute_cgi json_proto POST (null) [08:20:37]execute_cgi path=json_proto method=POST [08:20:37]POST find Content-Length [08:20:37]Host: 172.17.63.195:8080 [08:20:37]Content-Length: 331 [08:20:37]Content-Type: application/json [08:20:37] [08:20:37]POST finish read [08:20:37]Found Content-Length = 331 [08:20: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" ] } } [08:20:37]execute_script... [08:20:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:20:38]POST & json_proto [08:20:38]process_json_proto [08:20:38]json parsed OK: [08:20:38]protocol is kg_v1.0 [08:20:38]action value=get_value [08:20:38]process_action get_value [08:20:38]cmd_get_value [08:20:38]process_action get_value done [08:20:38]requested_data is exist [08:20:38]produce_requested_data [08:20:38]requested_item fm.sale.total is exist - process it [08:20:38]SAM_PROTO_GetFMData [08:20:38]wFMCommunicate request_size=4 [08:20:38]MH_SAM_APDU [08:20:38]CAPDU: 80 13 03 00 [08:20:38]Write to MH i2c: E2 08 00 91 17 80 13 03 00 00 00 00 00 27 [08:20:38]Write i2c OK [08:20:38]MH_I2C_Read... [08:20:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:20:38]Read from MH i2c: E2 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: E2 FD 00 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: E2 FD 00 91 17 00 C4 04 85 04 C0 04 6E 04 04 00 E6 0F 03 00 69 04 A3 00 6F 04 04 00 C1 0F 03 00 B1 04 05 00 C0 4F 3B AD 03 70 04 05 00 C0 B5 33 4E 03 72 04 04 00 00 9A 07 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D3 6E FD 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 F1 54 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 43 [08:20:38]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 E6 0F 03 00 69 04 A3 00 6F 04 04 00 C1 0F 03 00 B1 04 05 00 C0 4F 3B AD 03 70 04 05 00 C0 B5 33 4E 03 72 04 04 00 00 9A 07 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D3 6E FD 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 F1 54 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [08:20:38]wFMCommunicate OK [08:20:38]wFMCommunicate request_size=4 [08:20:38]MH_SAM_APDU [08:20:38]CAPDU: 80 17 00 00 [08:20:38]Write to MH i2c: E2 08 00 92 17 80 17 00 00 00 00 00 00 29 [08:20:38]Write i2c OK [08:20:38]MH_I2C_Read... [08:20:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:38]Read from MH i2c: E2 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: E2 FD 00 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: E2 FD 00 92 17 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 30 [08:20:38]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [08:20:38]wFMCommunicate OK [08:20:38]wFMCommunicate request_size=4 [08:20:38]MH_SAM_APDU [08:20:38]CAPDU: 80 17 00 00 [08:20:38]Write to MH i2c: E2 08 00 93 17 80 17 00 00 00 00 00 00 2A [08:20:38]Write i2c OK [08:20:38]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 FD 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 FD 00 93 17 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 3F [08:20:39]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [08:20:39]wFMCommunicate OK [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 17 00 00 [08:20:39]Write to MH i2c: E2 08 00 94 17 80 17 00 00 00 00 00 00 2B [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 FD 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 FD 00 94 17 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [08:20:39]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:20:39]wFMCommunicate OK [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 17 00 00 [08:20:39]Write to MH i2c: E2 08 00 95 17 80 17 00 00 00 00 00 00 2C [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 E1 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 E1 00 95 17 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [08:20:39]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:20:39]wFMCommunicate OK [08:20:39]SAM_PROTO_GetFMData done [08:20:39]requested_item fm.sale_refund.total is exist - process it [08:20:39]requested_item fm.buy.total is exist - process it [08:20:39]requested_item shift.sale.total is exist - process it [08:20:39]SAM_PROTO_GetShiftData [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 13 02 00 [08:20:39]Write to MH i2c: E2 08 00 96 17 80 13 02 00 00 00 00 00 2B [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 FD 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 FD 00 96 17 00 AE 04 AA 04 AA 04 6E 04 04 00 3A 00 00 00 69 04 9B 00 6F 04 04 00 3A 00 00 00 B1 04 03 00 D6 82 3D 70 04 03 00 84 04 36 72 04 03 00 52 7E 07 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 88 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 67 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 FC [08:20:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3A 00 00 00 69 04 9B 00 6F 04 04 00 3A 00 00 00 B1 04 03 00 D6 82 3D 70 04 03 00 84 04 36 72 04 03 00 52 7E 07 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 88 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 67 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:20:40]wFMCommunicate OK [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 17 00 00 [08:20:40]Write to MH i2c: E2 08 00 97 17 80 17 00 00 00 00 00 00 2E [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 FD 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 FD 00 97 17 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 50 [08:20: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 [08:20:40]wFMCommunicate OK [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 17 00 00 [08:20:40]Write to MH i2c: E2 08 00 98 17 80 17 00 00 00 00 00 00 2F [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 FD 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 FD 00 98 17 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 E6 [08:20: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 [08:20:40]wFMCommunicate OK [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 17 00 00 [08:20:40]Write to MH i2c: E2 08 00 99 17 80 17 00 00 00 00 00 00 30 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 FD 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 FD 00 99 17 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 A2 [08:20:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:20:40]wFMCommunicate OK [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 17 00 00 [08:20:40]Write to MH i2c: E2 08 00 9A 17 80 17 00 00 00 00 00 00 31 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 CB 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 CB 00 9A 17 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 1A [08:20: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 [08:20:41]wFMCommunicate OK [08:20:41]SAM_PROTO_GetShiftData done [08:20:41]requested_item shift.sale.total_cash is exist - process it [08:20:41]requested_item shift.sale_refund.total is exist - process it [08:20:41]requested_item shift.sale_refund.total_cash is exist - process it [08:20:41]requested_item shift.buy.total is exist - process it [08:20:41]requested_item shift.buy.total_cash is exist - process it [08:20:41]produce_requested_data done [08:20:41]produce_requested_data return {"fm.sale.total":157912472.96,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":40311.90,"shift.sale.total_cash":35401.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:20:41]process_action_free get_value [08:20:41]json_value_free [08:20:41]json_value_free done [08:20:41]process_json_proto returns [08:20:41]Send response to host [08:20:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157912472.96,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":40311.90,"shift.sale.total_cash":35401.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:20:41]free response buf [08:20:41]execute_script done [08:20:41]execute_script returns [08:20:41]free content buf [08:20:41]Sock 8.Close socket [08:20:41]Sock 8.Thread stoped [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:33]accept exits with 9 [08:38:33]New connection [08:38:33]New thread 3067080036 created [08:38:33]Thread 3066936676 joined [08:38:33]Waiting for new connection... [08:38:33] Sock 9.Parse request [08:38:33]Sock 9.Check first char [08:38:33]Sock 9.First char is OK [08:38:33]request: POST /json_proto HTTP/1.0 [08:38:33]Method: POST [08:38:33]URL: /json_proto [08:38:33]Method is POST - this is cgi request [08:38:33]url: /json_proto [08:38:33]query_string will be loaded in cgi processing [08:38:33]execute_cgi json_proto POST (null) [08:38:33]execute_cgi path=json_proto method=POST [08:38:33]POST find Content-Length [08:38:33]Host: 172.17.63.195:8080 [08:38:33]Content-Length: 677 [08:38:33]Content-Type: application/json [08:38:33] [08:38:33]POST finish read [08:38:33]Found Content-Length = 677 [08:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:38:33]execute_script... [08:38: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)449523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:38:33]POST & json_proto [08:38:33]process_json_proto [08:38:33]json parsed OK: [08:38:33]protocol is kg_v1.0 [08:38:33]action value=close_receipt [08:38:33]process_action close_receipt [08:38:33]cmd_close_receipt [08:38:33]MH_GetDate [08:38:33]Write to MH i2c: F0 00 00 9B 17 A1 [08:38:33]Write i2c OK [08:38:33]MH_I2C_Read... [08:38:33]Read from MH i2c: F0 [08:38:33]MH_I2C_Read... [08:38:33]Read from MH i2c: F0 09 00 [08:38:33]MH_I2C_Read... [08:38:33]Read from MH i2c: F0 09 00 9B 17 00 0D FC 1D 67 68 46 19 67 65 [08:38:33]GetLastDocTimeStamp 1730016271 [08:38:33]current date 1730018317 [08:38:33]FM_GetShiftState [08:38:33]SAM_PROTO_GetShiftState [08:38:33]wFMCommunicate request_size=4 [08:38:33]MH_SAM_APDU [08:38:33]CAPDU: 80 13 01 00 [08:38:33]Write to MH i2c: E2 08 00 9C 17 80 13 01 00 00 00 00 00 30 [08:38:33]Write i2c OK [08:38:33]MH_I2C_Read... [08:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:33]Read from MH i2c: E2 [08:38:33]MH_I2C_Read... [08:38:33]Read from MH i2c: E2 0E 00 [08:38:33]MH_I2C_Read... [08:38:33]Read from MH i2c: E2 0E 00 9C 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 32 [08:38:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:38:33]wFMCommunicate OK [08:38:33]SAM_PROTO_GetShiftState done [08:38:33]FM_GetShiftState done [08:38:33]opened in 1729987312 [08:38:33]opened+sec_in_day 1730073712 [08:38:33]quantity*price = 50041 [08:38:33]sum+1 = 50042 [08:38:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 59 27.10.2024 08:38 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201767 ФПД: 60893943220654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083837&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201767&fm=60893943220654&tin=02508201610067®Number=0000000000091777&sum=50000 [08:38:34]StoreToDocumentArchive [08:38:34]shift 544 fd 201767 [08:38:34]save to /storage/0544/doc_00201767 [08:38:34]save last doc name /storage/0544/doc_00201767 to /storage/kkm_last_doc_name [08:38:34]save OK [08:38:34]Clear old archive folders... [08:38:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:34]tlvbuf is B6EC7900 [08:38:34]SAM_PROTO_ClearQueue [08:38:34]wFMCommunicate request_size=4 [08:38:34]MH_SAM_APDU [08:38:34]CAPDU: 80 09 00 00 [08:38:34]Write to MH i2c: E2 08 00 A9 17 80 09 00 00 00 00 00 00 32 [08:38:34]Write i2c OK [08:38:34]MH_I2C_Read... [08:38:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:34]Read from MH i2c: E2 [08:38:34]MH_I2C_Read... [08:38:34]Read from MH i2c: E2 03 00 [08:38:34]MH_I2C_Read... [08:38:34]Read from MH i2c: E2 03 00 A9 17 00 90 00 34 [08:38:34]RAPDU: 90 00 [08:38:34]wFMCommunicate OK [08:38:34]SAM_PROTO_ClearQueue done [08:38:34]KKMCreateOFDPacket [08:38:34]OFDProtocolAddRootSTLVToBuf [08:38:34]FM_MakeSignedData [08:38:34]FM_MakeSignedData [08:38:34]SAM_PROTO_SignData [08:38:34]wFMCommunicate request_size=4 [08:38:34]MH_SAM_APDU [08:38:34]CAPDU: 80 0D 01 02 [08:38:34]Write to MH i2c: E2 08 00 AA 17 80 0D 01 02 00 00 00 00 3A [08:38:34]Write i2c OK [08:38:34]MH_I2C_Read... [08:38:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:34]Read from MH i2c: E2 [08:38:34]MH_I2C_Read... [08:38:34]Read from MH i2c: E2 03 00 [08:38:34]MH_I2C_Read... [08:38:34]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [08:38:34]RAPDU: 90 00 [08:38:34]wFMCommunicate OK [08:38:34]wFMCommunicate request_size=255 [08:38:34]MH_SAM_APDU [08:38:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 0D FC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 14 03 00 35 04 06 00 37 [08:38:34]Write to MH i2c: E2 02 01 AB 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 0D FC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 14 03 00 35 04 06 00 37 00 00 2D [08:38:34]Write i2c OK [08:38:34]MH_I2C_Read... [08:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:34]Read from MH i2c: E2 [08:38:34]MH_I2C_Read... [08:38:34]Read from MH i2c: E2 03 00 [08:38:34]MH_I2C_Read... [08:38:34]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [08:38:34]RAPDU: 90 00 [08:38:34]wFMCommunicate OK [08:38:34]wFMCommunicate request_size=10 [08:38:34]MH_SAM_APDU [08:38:34]CAPDU: 80 0D 02 02 05 61 F9 DA C9 AE [08:38:34]Write to MH i2c: E2 0D 00 AC 17 80 0D 02 02 05 00 61 F9 DA C9 AE 00 00 F2 [08:38:34]Write i2c OK [08:38:34]MH_I2C_Read... [08:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:34]Read from MH i2c: E2 [08:38:34]MH_I2C_Read... [08:38:34]Read from MH i2c: E2 03 00 [08:38:34]MH_I2C_Read... [08:38:34]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [08:38:34]RAPDU: 90 00 [08:38:34]wFMCommunicate OK [08:38:34]wFMCommunicate request_size=4 [08:38:34]MH_SAM_APDU [08:38:34]CAPDU: 80 0D 03 02 [08:38:34]Write to MH i2c: E2 08 00 AD 17 80 0D 03 02 00 00 00 00 3F [08:38:34]Write i2c OK [08:38:34]MH_I2C_Read... [08:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:35]Read from MH i2c: E2 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 0B 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 0B 00 AD 17 00 03 EA DE 6B B6 B9 A3 29 90 00 B1 [08:38:35]RAPDU: 03 EA DE 6B B6 B9 A3 29 90 00 [08:38:35]wFMCommunicate OK [08:38:35]SAM_PROTO_SignData done [08:38:35]FM_MakeSignedData done [08:38:35]CreateOFDProtocolMessage [08:38:35]wFMCommunicate request_size=4 [08:38:35]MH_SAM_APDU [08:38:35]CAPDU: 80 11 00 00 [08:38:35]Write to MH i2c: E2 08 00 AE 17 80 11 00 00 00 00 00 00 3F [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:35]Read from MH i2c: E2 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 17 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 17 00 AE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 94 [08:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:38:35]wFMCommunicate OK [08:38:35]CreateOFDProtocolMessage done [08:38:35]OFDSenderStorePacket 201767 [08:38:35]StoreOFDPacket docnum=201767 [08:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4A B9 07 01 FA 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 0D FC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 14 03 00 35 04 06 00 37 61 F9 DA C9 AE 03 EA DE 6B B6 B9 A3 29 [08:38:35]CheckFolder [08:38:35]dirname=/storage/ofd_packets [08:38:35]CheckFolder done [08:38:35]ProducePacketName [08:38:35]name=ofd_packets/00201767 [08:38:35]NVStorageSaveData ofd_packets/00201767 [08:38:35]File name is /storage/ofd_packets/00201767 [08:38:35]Write 301 bytes [08:38:35]NVStorageSaveData done [08:38:35]OFDSenderStorePacket done [08:38:35]KKMCreateOFDPacket done [08:38:35]NVStorageSaveData kkm_last_timestamp [08:38:35]File name is /storage/kkm_last_timestamp [08:38:35]Write 4 bytes [08:38:35]NVStorageSaveData done [08:38:35]ExternCall_PrintAddStr [08:38:35]wPrintStart [08:38:35]Write to MH i2c: 01 00 00 AF 17 C6 [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: 01 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: 01 07 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: 01 07 00 AF 17 00 00 00 00 00 FF 0F DB [08:38:35]RasterBufferAndPrint [08:38:35]line Счет N : (1)449523 [08:38:35]line ИНН: 02508201610067 [08:38:35]line Контрольно-Кассовый Чек [08:38:35]line ПРОДАЖА [08:38:35]line ТРК (МРК, ГНК) : 41 [08:38:35]line Товар: 2710124130 [08:38:35]line Аи-92-К-2 [08:38:35]line 7.480 * 66.90 [08:38:35]line = 500.41 [08:38:35]line НДС 12% НСП 1% [08:38:35]line > о реализуемом товаре [08:38:35]line ОКРУГЛЕНИЕ: -0.41 [08:38:35]line ИТОГО: 500.00 [08:38:35]line Внесено: 500.00 [08:38:35]line СДАЧА: 0.00 [08:38:35]line НСП 1% : 4.43 [08:38:35]line НДС 12% : 53.14 [08:38:35]line Наличными: 500.00 [08:38:35]line Безнал.: 0.00 [08:38:35]line Место: АЗС № 171 "Партнер Нефть" [08:38:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:38:35]line СНО: Общий режим [08:38:35]line Чек 59 27.10.2024 08:38 [08:38:35]line Смена: 544 ФФД: 1.0 [08:38:35]line ЗНМ: 0300000109 [08:38:35]line РНМ: 0000000000091777 [08:38:35]line Версия ККМ: 001 [08:38:35]line ФМ: 0000000000871756 [08:38:35]line ФД: 201767 [08:38:35]line ФПД: 60893943220654 [08:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083837&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201767&fm=60893943220654&tin=02508201610067®Number=0000000000091777&sum=50000 [08:38:35]OFD Sender: Processing packet 201767 [packets to send 112, broken 111] [08:38:35]ProducePacketName [08:38:35]name=ofd_packets/00201767 [08:38:35]OFD Sender: To server: pG, [08:38:35]CommunicateWithHost lk.salyk.kg:30040 [08:38:35]ConnectInit lk.salyk.kg [08:38:35]written 0, free lines is 4095 [08:38:35]Connected sock=10 [08:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4A B9 07 01 FA 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 0D FC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 14 03 00 35 04 06 00 37 61 F9 DA C9 AE 03 EA DE 6B B6 B9 A3 29 [08:38:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9A E2 47 00 A9 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 14 03 00 F4 03 04 00 B3 A7 1D 67 B6 04 01 00 00 EB C6 1A E8 D4 74 87 90 [08:38:35]CommunicateWithHost err = 0 [08:38:35]CheckOFDResponse [08:38:35]1017 (14) - 77093643461234 [08:38:35]1041 (16) - 0000000000871756 [08:38:35]1040 (4) - 201767 [08:38:35]1012 (4) - 27.10.2024 02:38 [08:38:35]1206 (1) - 0 [08:38:35]OFD Sender: Remove packet 201767 [08:38:35]ProducePacketName [08:38:35]name=ofd_packets/00201767 [08:38:35]NVStorageDeleteData [08:38:35]Write to MH i2c: 01 00 00 DA 17 F1 [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: 01 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: 01 07 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: 01 07 00 DA 17 00 00 00 00 00 96 0C 9A [08:38:35]RasterBufferAndPrint [08:38:35]line [08:38:35]line [08:38:35]line [08:38:35]line [08:38:35]line [08:38:35]written 0, free lines is 3228 [08:38:35]MH_Cut [08:38:35]Write to MH i2c: D1 01 00 E1 17 01 CA [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: D1 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: D1 01 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: D1 01 00 E1 17 00 C9 [08:38:35]Write to MH i2c: 01 00 00 E2 17 F9 [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:36]OFD Sender: No OFD packet to send [08:38:36]*** Cut start [08:38:36]*** Purtial cut [08:38:36]*** Stage 1: CUTSNS_PIN = 1 [08:38:36]Read from MH i2c: 01 [08:38:37]MH_I2C_Read... [08:38:37]*** Stop cut motor [08:38:37]*** Cut end [08:38:37]Read from MH i2c: 01 07 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: 01 07 00 E2 17 00 00 00 00 00 FF 0F 0E [08:38:37]process_action close_receipt done [08:38:37]requested_data is exist [08:38:37]produce_requested_data [08:38:37]requested_item fm.sn is exist - process it [08:38:37]wFMCommunicate request_size=4 [08:38:37]MH_SAM_APDU [08:38:37]CAPDU: 80 11 00 00 [08:38:37]Write to MH i2c: E2 08 00 E3 17 80 11 00 00 00 00 00 00 74 [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 17 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 17 00 E3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C9 [08:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:38:37]wFMCommunicate OK [08:38:37]requested_item fd.num is exist - process it [08:38:37]SAM_PROTO_GetFieldsCounters [08:38:37]wFMCommunicate request_size=4 [08:38:37]MH_SAM_APDU [08:38:37]CAPDU: 80 13 00 00 [08:38:37]Write to MH i2c: E2 08 00 E4 17 80 13 00 00 00 00 00 00 77 [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 62 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 62 00 E4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 27 14 03 00 0E 04 04 00 20 02 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 B1 [08:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 27 14 03 00 0E 04 04 00 20 02 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 [08:38:37]wFMCommunicate OK [08:38:37]SAM_PROTO_GetFieldsCounters done [08:38:37]requested_item shift.num is exist - process it [08:38:37]requested_item shift.opened is exist - process it [08:38:37]req_shift_opened [08:38:37]FM_GetShiftState [08:38:37]SAM_PROTO_GetShiftState [08:38:37]wFMCommunicate request_size=4 [08:38:37]MH_SAM_APDU [08:38:37]CAPDU: 80 13 01 00 [08:38:37]Write to MH i2c: E2 08 00 E5 17 80 13 01 00 00 00 00 00 79 [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 0E 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 0E 00 E5 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7B [08:38:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:38:37]wFMCommunicate OK [08:38:37]SAM_PROTO_GetShiftState done [08:38:37]FM_GetShiftState done [08:38:37]req_shift_opened done [08:38:37]requested_item shift.open_date is exist - process it [08:38:37]req_shift_open_date [08:38:37]req_shift_open_date done [08:38:37]produce_requested_data done [08:38:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201767,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:38:37]process_action_free close_receipt [08:38:37]json_value_free [08:38:37]json_value_free done [08:38:37]process_json_proto returns [08:38:37]Send response to host [08:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201767,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:38:37]free response buf [08:38:37]execute_script done [08:38:37]execute_script returns [08:38:37]free content buf [08:38:37]Sock 9.Close socket [08:38:37]Sock 9.Thread stoped [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:07]accept exits with 8 [08:39:07]New connection [08:39:07]New thread 3066936676 created [08:39:07]Thread 3067080036 joined [08:39:07]Waiting for new connection... [08:39:07] Sock 8.Parse request [08:39:07]Sock 8.Check first char [08:39:07]Sock 8.First char is OK [08:39:07]request: POST /json_proto HTTP/1.0 [08:39:07]Method: POST [08:39:07]URL: /json_proto [08:39:07]Method is POST - this is cgi request [08:39:07]url: /json_proto [08:39:07]query_string will be loaded in cgi processing [08:39:07]execute_cgi json_proto POST (null) [08:39:07]execute_cgi path=json_proto method=POST [08:39:07]POST find Content-Length [08:39:07]Host: 172.17.63.195:8080 [08:39:07]Content-Length: 670 [08:39:07]Content-Type: application/json [08:39:07] [08:39:07]POST finish read [08:39:07]Found Content-Length = 670 [08:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.750, "sum" : 530.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:07]execute_script... [08:39: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)449524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.750, "sum" : 530.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:07]POST & json_proto [08:39:07]process_json_proto [08:39:07]json parsed OK: [08:39:07]protocol is kg_v1.0 [08:39:07]action value=close_receipt [08:39:07]process_action close_receipt [08:39:07]cmd_close_receipt [08:39:07]MH_GetDate [08:39:07]Write to MH i2c: F0 00 00 E6 17 EC [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: F0 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: F0 09 00 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: F0 09 00 E6 17 00 2F FC 1D 67 68 46 19 67 D2 [08:39:07]GetLastDocTimeStamp 1730018317 [08:39:07]current date 1730018351 [08:39:07]FM_GetShiftState [08:39:07]SAM_PROTO_GetShiftState [08:39:07]wFMCommunicate request_size=4 [08:39:07]MH_SAM_APDU [08:39:07]CAPDU: 80 13 01 00 [08:39:07]Write to MH i2c: E2 08 00 E7 17 80 13 01 00 00 00 00 00 7B [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:07]Read from MH i2c: E2 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: E2 0E 00 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: E2 0E 00 E7 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7D [08:39:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:39:07]wFMCommunicate OK [08:39:07]SAM_PROTO_GetShiftState done [08:39:07]FM_GetShiftState done [08:39:07]opened in 1729987312 [08:39:07]opened+sec_in_day 1730073712 [08:39:07]quantity*price = 53010 [08:39:07]sum+1 = 53011 [08:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 530.00 Внесено: 530.00 СДАЧА: 0.00 НСП 1% : 4.69 НДС 12% : 56.29 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 60 27.10.2024 08:39 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201768 ФПД: 166159284119640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083911&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201768&fm=166159284119640&tin=02508201610067®Number=0000000000091777&sum=53000 [08:39:08]StoreToDocumentArchive [08:39:08]shift 544 fd 201768 [08:39:08]save to /storage/0544/doc_00201768 [08:39:08]save last doc name /storage/0544/doc_00201768 to /storage/kkm_last_doc_name [08:39:08]save OK [08:39:08]Clear old archive folders... [08:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:39:08]tlvbuf is 000F6F00 [08:39:08]SAM_PROTO_ClearQueue [08:39:08]wFMCommunicate request_size=4 [08:39:08]MH_SAM_APDU [08:39:08]CAPDU: 80 09 00 00 [08:39:08]Write to MH i2c: E2 08 00 F4 17 80 09 00 00 00 00 00 00 7D [08:39:08]Write i2c OK [08:39:08]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 F4 17 00 90 00 7F [08:39:09]RAPDU: 90 00 [08:39:09]wFMCommunicate OK [08:39:09]SAM_PROTO_ClearQueue done [08:39:09]KKMCreateOFDPacket [08:39:09]OFDProtocolAddRootSTLVToBuf [08:39:09]FM_MakeSignedData [08:39:09]FM_MakeSignedData [08:39:09]SAM_PROTO_SignData [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 0D 01 02 [08:39:09]Write to MH i2c: E2 08 00 F5 17 80 0D 01 02 00 00 00 00 85 [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 F5 17 00 90 00 80 [08:39:09]RAPDU: 90 00 [08:39:09]wFMCommunicate OK [08:39:09]wFMCommunicate request_size=255 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 1E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 12 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 2F FC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 14 03 00 35 04 06 00 [08:39:09]Write to MH i2c: E2 02 01 F6 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 1E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 12 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 2F FC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 14 03 00 35 04 06 00 00 00 2D [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [08:39:09]RAPDU: 90 00 [08:39:09]wFMCommunicate OK [08:39:09]wFMCommunicate request_size=11 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 0D 02 02 06 97 1E F9 1B 28 58 [08:39:09]Write to MH i2c: E2 0E 00 F7 17 80 0D 02 02 06 00 97 1E F9 1B 28 58 00 00 DD [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [08:39:09]RAPDU: 90 00 [08:39:09]wFMCommunicate OK [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 0D 03 02 [08:39:09]Write to MH i2c: E2 08 00 F8 17 80 0D 03 02 00 00 00 00 8A [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 0B 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 0B 00 F8 17 00 59 BA 5D AB A0 70 B5 A6 90 00 11 [08:39:09]RAPDU: 59 BA 5D AB A0 70 B5 A6 90 00 [08:39:09]wFMCommunicate OK [08:39:09]SAM_PROTO_SignData done [08:39:09]FM_MakeSignedData done [08:39:09]CreateOFDProtocolMessage [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 11 00 00 [08:39:09]Write to MH i2c: E2 08 00 F9 17 80 11 00 00 00 00 00 00 8A [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 17 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 17 00 F9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [08:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:39:09]wFMCommunicate OK [08:39:09]CreateOFDProtocolMessage done [08:39:09]OFDSenderStorePacket 201768 [08:39:09]StoreOFDPacket docnum=201768 [08:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 00 19 08 01 F8 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 1E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 12 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 2F FC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 14 03 00 35 04 06 00 97 1E F9 1B 28 58 59 BA 5D AB A0 70 B5 A6 [08:39:09]CheckFolder [08:39:09]dirname=/storage/ofd_packets [08:39:09]CheckFolder done [08:39:09]ProducePacketName [08:39:09]name=ofd_packets/00201768 [08:39:09]NVStorageSaveData ofd_packets/00201768 [08:39:09]File name is /storage/ofd_packets/00201768 [08:39:09]Write 302 bytes [08:39:09]NVStorageSaveData done [08:39:09]OFDSenderStorePacket done [08:39:09]KKMCreateOFDPacket done [08:39:09]NVStorageSaveData kkm_last_timestamp [08:39:09]File name is /storage/kkm_last_timestamp [08:39:09]Write 4 bytes [08:39:09]NVStorageSaveData done [08:39:09]ExternCall_PrintAddStr [08:39:09]wPrintStart [08:39:09]Write to MH i2c: 01 00 00 FA 17 11 [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: 01 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: 01 07 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: 01 07 00 FA 17 00 00 00 00 00 FF 0F 26 [08:39:09]RasterBufferAndPrint [08:39:09]line Счет N : (1)449524 [08:39:09]line ИНН: 02508201610067 [08:39:09]line Контрольно-Кассовый Чек [08:39:09]line ПРОДАЖА [08:39:09]line ТРК (МРК, ГНК) : 63 [08:39:09]line Товар: 2710124130 [08:39:09]line SUPER 92-К-5 [08:39:09]line 7.750 * 68.40 [08:39:09]line = 530.10 [08:39:09]line НДС 12% НСП 1% [08:39:09]line > о реализуемом товаре [08:39:09]line ОКРУГЛЕНИЕ: -0.10 [08:39:09]line ИТОГО: 530.00 [08:39:09]line Внесено: 530.00 [08:39:09]line СДАЧА: 0.00 [08:39:09]line НСП 1% : 4.69 [08:39:09]line НДС 12% : 56.29 [08:39:09]line Наличными: 530.00 [08:39:09]line Безнал.: 0.00 [08:39:09]line Место: АЗС № 171 "Партнер Нефть" [08:39:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:39:09]line СНО: Общий режим [08:39:09]line Чек 60 27.10.2024 08:39 [08:39:09]line Смена: 544 ФФД: 1.0 [08:39:09]line ЗНМ: 0300000109 [08:39:09]line РНМ: 0000000000091777 [08:39:09]line Версия ККМ: 001 [08:39:09]line ФМ: 0000000000871756 [08:39:09]line ФД: 201768 [08:39:09]line ФПД: 166159284119640 [08:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083911&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201768&fm=166159284119640&tin=02508201610067®Number=0000000000091777&sum=53000 [08:39:09]OFD Sender: Processing packet 201768 [packets to send 112, broken 111] [08:39:09]ProducePacketName [08:39:09]name=ofd_packets/00201768 [08:39:09]OFD Sender: To server: pG, [08:39:09]CommunicateWithHost lk.salyk.kg:30040 [08:39:09]ConnectInit lk.salyk.kg [08:39:09]written 0, free lines is 4095 [08:39:09]Connected sock=10 [08:39:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 00 19 08 01 F8 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 1E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 12 CF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 15 00 00 00 00 07 04 06 00 08 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 2F FC 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 14 03 00 35 04 06 00 97 1E F9 1B 28 58 59 BA 5D AB A0 70 B5 A6 [08:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 53 DE 47 00 D8 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 14 03 00 F4 03 04 00 D5 A7 1D 67 B6 04 01 00 00 35 64 D9 63 12 9C 77 06 [08:39:10]CommunicateWithHost err = 0 [08:39:10]CheckOFDResponse [08:39:10]1017 (14) - 77093643461234 [08:39:10]1041 (16) - 0000000000871756 [08:39:10]1040 (4) - 201768 [08:39:10]1012 (4) - 27.10.2024 02:39 [08:39:10]1206 (1) - 0 [08:39:10]OFD Sender: Remove packet 201768 [08:39:10]ProducePacketName [08:39:10]name=ofd_packets/00201768 [08:39:10]NVStorageDeleteData [08:39:10]Write to MH i2c: 01 00 00 25 18 3D [08:39:10]Write i2c OK [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: 01 [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: 01 07 00 [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: 01 07 00 25 18 00 00 00 00 00 A1 0C F1 [08:39:10]RasterBufferAndPrint [08:39:10]line [08:39:10]line [08:39:10]line [08:39:10]line [08:39:10]line [08:39:10]written 0, free lines is 3238 [08:39:10]MH_Cut [08:39:10]Write to MH i2c: D1 01 00 2C 18 01 16 [08:39:10]Write i2c OK [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: D1 [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: D1 01 00 [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: D1 01 00 2C 18 00 15 [08:39:10]Write to MH i2c: 01 00 00 2D 18 45 [08:39:10]Write i2c OK [08:39:10]MH_I2C_Read... [08:39:10]OFD Sender: No OFD packet to send [08:39:11]*** Cut start [08:39:11]*** Purtial cut [08:39:11]*** Stage 1: CUTSNS_PIN = 1 [08:39:11]Read from MH i2c: 01 [08:39:11]MH_I2C_Read... [08:39:11]*** Stop cut motor [08:39:11]*** Cut end [08:39:11]Read from MH i2c: 01 07 00 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: 01 07 00 2D 18 00 00 00 00 00 FF 0F 5A [08:39:11]process_action close_receipt done [08:39:11]requested_data is exist [08:39:11]produce_requested_data [08:39:11]requested_item fm.sn is exist - process it [08:39:11]wFMCommunicate request_size=4 [08:39:11]MH_SAM_APDU [08:39:11]CAPDU: 80 11 00 00 [08:39:11]Write to MH i2c: E2 08 00 2E 18 80 11 00 00 00 00 00 00 C0 [08:39:11]Write i2c OK [08:39:11]MH_I2C_Read... [08:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:11]Read from MH i2c: E2 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 17 00 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 17 00 2E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 15 [08:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:39:11]wFMCommunicate OK [08:39:11]requested_item fd.num is exist - process it [08:39:11]SAM_PROTO_GetFieldsCounters [08:39:11]wFMCommunicate request_size=4 [08:39:11]MH_SAM_APDU [08:39:11]CAPDU: 80 13 00 00 [08:39:11]Write to MH i2c: E2 08 00 2F 18 80 13 00 00 00 00 00 00 C3 [08:39:11]Write i2c OK [08:39:11]MH_I2C_Read... [08:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:11]Read from MH i2c: E2 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 62 00 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 62 00 2F 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 28 14 03 00 0E 04 04 00 20 02 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 01 [08:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 28 14 03 00 0E 04 04 00 20 02 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 [08:39:11]wFMCommunicate OK [08:39:11]SAM_PROTO_GetFieldsCounters done [08:39:11]requested_item shift.num is exist - process it [08:39:11]requested_item shift.opened is exist - process it [08:39:11]req_shift_opened [08:39:11]FM_GetShiftState [08:39:11]SAM_PROTO_GetShiftState [08:39:11]wFMCommunicate request_size=4 [08:39:11]MH_SAM_APDU [08:39:11]CAPDU: 80 13 01 00 [08:39:11]Write to MH i2c: E2 08 00 30 18 80 13 01 00 00 00 00 00 C5 [08:39:11]Write i2c OK [08:39:11]MH_I2C_Read... [08:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:11]Read from MH i2c: E2 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 0E 00 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 0E 00 30 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C7 [08:39:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:39:11]wFMCommunicate OK [08:39:11]SAM_PROTO_GetShiftState done [08:39:11]FM_GetShiftState done [08:39:11]req_shift_opened done [08:39:11]requested_item shift.open_date is exist - process it [08:39:11]req_shift_open_date [08:39:11]req_shift_open_date done [08:39:11]produce_requested_data done [08:39:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201768,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:39:11]process_action_free close_receipt [08:39:11]json_value_free [08:39:11]json_value_free done [08:39:11]process_json_proto returns [08:39:11]Send response to host [08:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201768,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:39:11]free response buf [08:39:11]execute_script done [08:39:11]execute_script returns [08:39:11]free content buf [08:39:11]Sock 8.Close socket [08:39:11]Sock 8.Thread stoped [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:53]accept exits with 9 [08:43:53]New connection [08:43:53]New thread 3067080036 created [08:43:53]Thread 3066936676 joined [08:43:53]Waiting for new connection... [08:43:53] Sock 9.Parse request [08:43:53]Sock 9.Check first char [08:43:53]Sock 9.First char is OK [08:43:53]request: POST /json_proto HTTP/1.0 [08:43:53]Method: POST [08:43:53]URL: /json_proto [08:43:53]Method is POST - this is cgi request [08:43:53]url: /json_proto [08:43:53]query_string will be loaded in cgi processing [08:43:53]execute_cgi json_proto POST (null) [08:43:53]execute_cgi path=json_proto method=POST [08:43:53]POST find Content-Length [08:43:53]Host: 172.17.63.195:8080 [08:43:53]Content-Length: 677 [08:43:53]Content-Type: application/json [08:43:53] [08:43:53]POST finish read [08:43:53]Found Content-Length = 677 [08:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:43:53]execute_script... [08:43:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:43:53]POST & json_proto [08:43:53]process_json_proto [08:43:53]json parsed OK: [08:43:53]protocol is kg_v1.0 [08:43:53]action value=close_receipt [08:43:53]process_action close_receipt [08:43:53]cmd_close_receipt [08:43:53]MH_GetDate [08:43:53]Write to MH i2c: F0 00 00 31 18 38 [08:43:53]Write i2c OK [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: F0 [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: F0 09 00 [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: F0 09 00 31 18 00 4D FD 1D 67 68 46 19 67 3D [08:43:53]GetLastDocTimeStamp 1730018351 [08:43:53]current date 1730018637 [08:43:53]FM_GetShiftState [08:43:53]SAM_PROTO_GetShiftState [08:43:53]wFMCommunicate request_size=4 [08:43:53]MH_SAM_APDU [08:43:53]CAPDU: 80 13 01 00 [08:43:53]Write to MH i2c: E2 08 00 32 18 80 13 01 00 00 00 00 00 C7 [08:43:53]Write i2c OK [08:43:53]MH_I2C_Read... [08:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:53]Read from MH i2c: E2 [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: E2 0E 00 [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: E2 0E 00 32 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C9 [08:43:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:43:53]wFMCommunicate OK [08:43:53]SAM_PROTO_GetShiftState done [08:43:53]FM_GetShiftState done [08:43:53]opened in 1729987312 [08:43:53]opened+sec_in_day 1730073712 [08:43:53]quantity*price = 50041 [08:43:53]sum+1 = 50042 [08:43:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 61 27.10.2024 08:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201769 ФПД: 223825856870484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084357&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201769&fm=223825856870484&tin=02508201610067®Number=0000000000091777&sum=50000 [08:43:54]StoreToDocumentArchive [08:43:54]shift 544 fd 201769 [08:43:54]save to /storage/0544/doc_00201769 [08:43:54]save last doc name /storage/0544/doc_00201769 to /storage/kkm_last_doc_name [08:43:54]save OK [08:43:54]Clear old archive folders... [08:43:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:54]tlvbuf is B6EC7950 [08:43:54]SAM_PROTO_ClearQueue [08:43:54]wFMCommunicate request_size=4 [08:43:54]MH_SAM_APDU [08:43:54]CAPDU: 80 09 00 00 [08:43:54]Write to MH i2c: E2 08 00 3F 18 80 09 00 00 00 00 00 00 C9 [08:43:54]Write i2c OK [08:43:54]MH_I2C_Read... [08:43:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:54]Read from MH i2c: E2 [08:43:54]MH_I2C_Read... [08:43:54]Read from MH i2c: E2 03 00 [08:43:54]MH_I2C_Read... [08:43:54]Read from MH i2c: E2 03 00 3F 18 00 90 00 CB [08:43:54]RAPDU: 90 00 [08:43:54]wFMCommunicate OK [08:43:54]SAM_PROTO_ClearQueue done [08:43:54]KKMCreateOFDPacket [08:43:54]OFDProtocolAddRootSTLVToBuf [08:43:54]FM_MakeSignedData [08:43:54]FM_MakeSignedData [08:43:54]SAM_PROTO_SignData [08:43:54]wFMCommunicate request_size=4 [08:43:54]MH_SAM_APDU [08:43:54]CAPDU: 80 0D 01 02 [08:43:54]Write to MH i2c: E2 08 00 40 18 80 0D 01 02 00 00 00 00 D1 [08:43:54]Write i2c OK [08:43:54]MH_I2C_Read... [08:43:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:54]Read from MH i2c: E2 [08:43:54]MH_I2C_Read... [08:43:54]Read from MH i2c: E2 03 00 [08:43:54]MH_I2C_Read... [08:43:54]Read from MH i2c: E2 03 00 40 18 00 90 00 CC [08:43:54]RAPDU: 90 00 [08:43:54]wFMCommunicate OK [08:43:54]wFMCommunicate request_size=255 [08:43:54]MH_SAM_APDU [08:43:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 4D FD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 14 03 00 35 04 06 00 CB [08:43:54]Write to MH i2c: E2 02 01 41 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 4D FD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 14 03 00 35 04 06 00 CB 00 00 9D [08:43:54]Write i2c OK [08:43:54]MH_I2C_Read... [08:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:54]Read from MH i2c: E2 [08:43:54]MH_I2C_Read... [08:43:54]Read from MH i2c: E2 03 00 [08:43:54]MH_I2C_Read... [08:43:54]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [08:43:54]RAPDU: 90 00 [08:43:54]wFMCommunicate OK [08:43:54]wFMCommunicate request_size=10 [08:43:54]MH_SAM_APDU [08:43:54]CAPDU: 80 0D 02 02 05 91 84 B0 B8 54 [08:43:54]Write to MH i2c: E2 0D 00 42 18 80 0D 02 02 05 00 91 84 B0 B8 54 00 00 AF [08:43:54]Write i2c OK [08:43:54]MH_I2C_Read... [08:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:54]Read from MH i2c: E2 [08:43:54]MH_I2C_Read... [08:43:54]Read from MH i2c: E2 03 00 [08:43:54]MH_I2C_Read... [08:43:54]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [08:43:54]RAPDU: 90 00 [08:43:54]wFMCommunicate OK [08:43:54]wFMCommunicate request_size=4 [08:43:54]MH_SAM_APDU [08:43:54]CAPDU: 80 0D 03 02 [08:43:54]Write to MH i2c: E2 08 00 43 18 80 0D 03 02 00 00 00 00 D6 [08:43:54]Write i2c OK [08:43:54]MH_I2C_Read... [08:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:55]Read from MH i2c: E2 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: E2 0B 00 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: E2 0B 00 43 18 00 7F 54 F9 5B B0 8A FA 68 90 00 9A [08:43:55]RAPDU: 7F 54 F9 5B B0 8A FA 68 90 00 [08:43:55]wFMCommunicate OK [08:43:55]SAM_PROTO_SignData done [08:43:55]FM_MakeSignedData done [08:43:55]CreateOFDProtocolMessage [08:43:55]wFMCommunicate request_size=4 [08:43:55]MH_SAM_APDU [08:43:55]CAPDU: 80 11 00 00 [08:43:55]Write to MH i2c: E2 08 00 44 18 80 11 00 00 00 00 00 00 D6 [08:43:55]Write i2c OK [08:43:55]MH_I2C_Read... [08:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:55]Read from MH i2c: E2 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: E2 17 00 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: E2 17 00 44 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2B [08:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:43:55]wFMCommunicate OK [08:43:55]CreateOFDProtocolMessage done [08:43:55]OFDSenderStorePacket 201769 [08:43:55]StoreOFDPacket docnum=201769 [08:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3E 3E 07 01 B2 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 4D FD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 14 03 00 35 04 06 00 CB 91 84 B0 B8 54 7F 54 F9 5B B0 8A FA 68 [08:43:55]CheckFolder [08:43:55]dirname=/storage/ofd_packets [08:43:55]CheckFolder done [08:43:55]ProducePacketName [08:43:55]name=ofd_packets/00201769 [08:43:55]NVStorageSaveData ofd_packets/00201769 [08:43:55]File name is /storage/ofd_packets/00201769 [08:43:55]Write 301 bytes [08:43:55]NVStorageSaveData done [08:43:55]OFDSenderStorePacket done [08:43:55]KKMCreateOFDPacket done [08:43:55]NVStorageSaveData kkm_last_timestamp [08:43:55]File name is /storage/kkm_last_timestamp [08:43:55]Write 4 bytes [08:43:55]NVStorageSaveData done [08:43:55]ExternCall_PrintAddStr [08:43:55]wPrintStart [08:43:55]Write to MH i2c: 01 00 00 45 18 5D [08:43:55]Write i2c OK [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: 01 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: 01 07 00 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: 01 07 00 45 18 00 00 00 00 00 FF 0F 72 [08:43:55]RasterBufferAndPrint [08:43:55]line Счет N : (1)449525 [08:43:55]line ИНН: 02508201610067 [08:43:55]line Контрольно-Кассовый Чек [08:43:55]line ПРОДАЖА [08:43:55]line ТРК (МРК, ГНК) : 52 [08:43:55]line Товар: 2710124130 [08:43:55]line Аи-92-К-2 [08:43:55]line 7.480 * 66.90 [08:43:55]line = 500.41 [08:43:55]line НДС 12% НСП 1% [08:43:55]line > о реализуемом товаре [08:43:55]line ОКРУГЛЕНИЕ: -0.41 [08:43:55]line ИТОГО: 500.00 [08:43:55]line Внесено: 500.00 [08:43:55]line СДАЧА: 0.00 [08:43:55]line НСП 1% : 4.43 [08:43:55]line НДС 12% : 53.14 [08:43:55]line Наличными: 500.00 [08:43:55]line Безнал.: 0.00 [08:43:55]line Место: АЗС № 171 "Партнер Нефть" [08:43:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:43:55]line СНО: Общий режим [08:43:55]line Чек 61 27.10.2024 08:43 [08:43:55]line Смена: 544 ФФД: 1.0 [08:43:55]line ЗНМ: 0300000109 [08:43:55]line РНМ: 0000000000091777 [08:43:55]line Версия ККМ: 001 [08:43:55]line ФМ: 0000000000871756 [08:43:55]line ФД: 201769 [08:43:55]line ФПД: 223825856870484 [08:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084357&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201769&fm=223825856870484&tin=02508201610067®Number=0000000000091777&sum=50000 [08:43:55]OFD Sender: Processing packet 201769 [packets to send 112, broken 111] [08:43:55]ProducePacketName [08:43:55]name=ofd_packets/00201769 [08:43:55]OFD Sender: To server: pG, [08:43:55]CommunicateWithHost lk.salyk.kg:30040 [08:43:55]ConnectInit lk.salyk.kg [08:43:55]written 0, free lines is 4095 [08:43:55]Connected sock=10 [08:43:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3E 3E 07 01 B2 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3D 00 00 00 F4 03 04 00 4D FD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 14 03 00 35 04 06 00 CB 91 84 B0 B8 54 7F 54 F9 5B B0 8A FA 68 [08:43:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2C 9B 47 00 2B 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 14 03 00 F4 03 04 00 F3 A8 1D 67 B6 04 01 00 00 8F 27 36 67 A7 81 C9 65 [08:43:55]CommunicateWithHost err = 0 [08:43:55]CheckOFDResponse [08:43:55]1017 (14) - 77093643461234 [08:43:55]1041 (16) - 0000000000871756 [08:43:55]1040 (4) - 201769 [08:43:55]1012 (4) - 27.10.2024 02:44 [08:43:55]1206 (1) - 0 [08:43:55]OFD Sender: Remove packet 201769 [08:43:55]ProducePacketName [08:43:55]name=ofd_packets/00201769 [08:43:55]NVStorageDeleteData [08:43:55]Write to MH i2c: 01 00 00 70 18 88 [08:43:55]Write i2c OK [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: 01 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: 01 07 00 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 8C 0C 27 [08:43:55]RasterBufferAndPrint [08:43:55]line [08:43:55]line [08:43:55]line [08:43:55]line [08:43:55]line [08:43:55]written 0, free lines is 3215 [08:43:55]MH_Cut [08:43:55]Write to MH i2c: D1 01 00 77 18 01 61 [08:43:55]Write i2c OK [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: D1 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: D1 01 00 [08:43:55]MH_I2C_Read... [08:43:55]Read from MH i2c: D1 01 00 77 18 00 60 [08:43:55]Write to MH i2c: 01 00 00 78 18 90 [08:43:55]Write i2c OK [08:43:55]MH_I2C_Read... [08:43:56]OFD Sender: No OFD packet to send [08:43:56]*** Cut start [08:43:56]*** Purtial cut [08:43:56]*** Stage 1: CUTSNS_PIN = 1 [08:43:57]Read from MH i2c: 01 [08:43:57]MH_I2C_Read... [08:43:57]*** Stop cut motor [08:43:57]*** Cut end [08:43:57]Read from MH i2c: 01 07 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: 01 07 00 78 18 00 00 00 00 00 FF 0F A5 [08:43:57]process_action close_receipt done [08:43:57]requested_data is exist [08:43:57]produce_requested_data [08:43:57]requested_item fm.sn is exist - process it [08:43:57]wFMCommunicate request_size=4 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 11 00 00 [08:43:57]Write to MH i2c: E2 08 00 79 18 80 11 00 00 00 00 00 00 0B [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 17 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 17 00 79 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 60 [08:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:43:57]wFMCommunicate OK [08:43:57]requested_item fd.num is exist - process it [08:43:57]SAM_PROTO_GetFieldsCounters [08:43:57]wFMCommunicate request_size=4 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 13 00 00 [08:43:57]Write to MH i2c: E2 08 00 7A 18 80 13 00 00 00 00 00 00 0E [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 62 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 62 00 7A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 29 14 03 00 0E 04 04 00 20 02 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 50 [08:43:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 29 14 03 00 0E 04 04 00 20 02 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 [08:43:57]wFMCommunicate OK [08:43:57]SAM_PROTO_GetFieldsCounters done [08:43:57]requested_item shift.num is exist - process it [08:43:57]requested_item shift.opened is exist - process it [08:43:57]req_shift_opened [08:43:57]FM_GetShiftState [08:43:57]SAM_PROTO_GetShiftState [08:43:57]wFMCommunicate request_size=4 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 13 01 00 [08:43:57]Write to MH i2c: E2 08 00 7B 18 80 13 01 00 00 00 00 00 10 [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 0E 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 0E 00 7B 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 12 [08:43:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:43:57]wFMCommunicate OK [08:43:57]SAM_PROTO_GetShiftState done [08:43:57]FM_GetShiftState done [08:43:57]req_shift_opened done [08:43:57]requested_item shift.open_date is exist - process it [08:43:57]req_shift_open_date [08:43:57]req_shift_open_date done [08:43:57]produce_requested_data done [08:43:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201769,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:43:57]process_action_free close_receipt [08:43:57]json_value_free [08:43:57]json_value_free done [08:43:57]process_json_proto returns [08:43:57]Send response to host [08:43:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201769,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:43:57]free response buf [08:43:57]execute_script done [08:43:57]execute_script returns [08:43:57]free content buf [08:43:57]Sock 9.Close socket [08:43:57]Sock 9.Thread stoped [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:29]accept exits with 8 [08:44:29]New connection [08:44:29]New thread 3066936676 created [08:44:29]Thread 3067080036 joined [08:44:29]Waiting for new connection... [08:44:29] Sock 8.Parse request [08:44:29]Sock 8.Check first char [08:44:29]Sock 8.First char is OK [08:44:29]request: POST /json_proto HTTP/1.0 [08:44:29]Method: POST [08:44:29]URL: /json_proto [08:44:29]Method is POST - this is cgi request [08:44:29]url: /json_proto [08:44:29]query_string will be loaded in cgi processing [08:44:29]execute_cgi json_proto POST (null) [08:44:29]execute_cgi path=json_proto method=POST [08:44:29]POST find Content-Length [08:44:29]Host: 172.17.63.195:8080 [08:44:29]Content-Length: 800 [08:44:29]Content-Type: application/json [08:44:29] [08:44:29]POST finish read [08:44:29]Found Content-Length = 800 [08:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.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\u000A4583131", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:29]execute_script... [08:44: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)449526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.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\u000A4583131", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:29]POST & json_proto [08:44:29]process_json_proto [08:44:29]json parsed OK: [08:44:29]protocol is kg_v1.0 [08:44:29]action value=close_receipt [08:44:29]process_action close_receipt [08:44:29]cmd_close_receipt [08:44:29]MH_GetDate [08:44:29]Write to MH i2c: F0 00 00 7C 18 83 [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: F0 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: F0 09 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: F0 09 00 7C 18 00 71 FD 1D 67 68 46 19 67 AC [08:44:29]GetLastDocTimeStamp 1730018637 [08:44:29]current date 1730018673 [08:44:29]FM_GetShiftState [08:44:29]SAM_PROTO_GetShiftState [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 13 01 00 [08:44:29]Write to MH i2c: E2 08 00 7D 18 80 13 01 00 00 00 00 00 12 [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 0E 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 0E 00 7D 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 14 [08:44:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:44:29]wFMCommunicate OK [08:44:29]SAM_PROTO_GetShiftState done [08:44:29]FM_GetShiftState done [08:44:29]opened in 1729987312 [08:44:29]opened+sec_in_day 1730073712 [08:44:29]quantity*price = 0 [08:44:29]sum+1 = 1 [08:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 62 27.10.2024 08:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Талоны: Топливные Талоны 4583131 ФМ: 0000000000871756 ФД: 201770 ФПД: 68371283921564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084433&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201770&fm=68371283921564&tin=02508201610067®Number=0000000000091777&sum=0 [08:44:30]StoreToDocumentArchive [08:44:30]shift 544 fd 201770 [08:44:30]save to /storage/0544/doc_00201770 [08:44:30]save last doc name /storage/0544/doc_00201770 to /storage/kkm_last_doc_name [08:44:30]save OK [08:44:30]Clear old archive folders... [08:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:30]tlvbuf is 001194C0 [08:44:30]SAM_PROTO_ClearQueue [08:44:30]wFMCommunicate request_size=4 [08:44:30]MH_SAM_APDU [08:44:30]CAPDU: 80 09 00 00 [08:44:30]Write to MH i2c: E2 08 00 8A 18 80 09 00 00 00 00 00 00 14 [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:30]Read from MH i2c: E2 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 03 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 03 00 8A 18 00 90 00 16 [08:44:30]RAPDU: 90 00 [08:44:30]wFMCommunicate OK [08:44:30]SAM_PROTO_ClearQueue done [08:44:30]KKMCreateOFDPacket [08:44:30]OFDProtocolAddRootSTLVToBuf [08:44:30]FM_MakeSignedData [08:44:30]FM_MakeSignedData [08:44:30]SAM_PROTO_SignData [08:44:30]wFMCommunicate request_size=4 [08:44:30]MH_SAM_APDU [08:44:30]CAPDU: 80 0D 01 02 [08:44:30]Write to MH i2c: E2 08 00 8B 18 80 0D 01 02 00 00 00 00 1C [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:30]Read from MH i2c: E2 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 03 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 03 00 8B 18 00 90 00 17 [08:44:30]RAPDU: 90 00 [08:44:30]wFMCommunicate OK [08:44:30]wFMCommunicate request_size=255 [08:44:30]MH_SAM_APDU [08:44:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 3E 00 00 00 F4 03 04 00 71 FD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 14 03 00 35 04 06 00 3E [08:44:30]Write to MH i2c: E2 02 01 8C 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 3E 00 00 00 F4 03 04 00 71 FD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 14 03 00 35 04 06 00 3E 00 00 33 [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:30]Read from MH i2c: E2 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 03 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 03 00 8C 18 00 90 00 18 [08:44:30]RAPDU: 90 00 [08:44:30]wFMCommunicate OK [08:44:30]wFMCommunicate request_size=10 [08:44:30]MH_SAM_APDU [08:44:30]CAPDU: 80 0D 02 02 05 2E EE 17 4A 9C [08:44:30]Write to MH i2c: E2 0D 00 8D 18 80 0D 02 02 05 00 2E EE 17 4A 9C 00 00 42 [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:30]Read from MH i2c: E2 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 03 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 03 00 8D 18 00 90 00 19 [08:44:30]RAPDU: 90 00 [08:44:30]wFMCommunicate OK [08:44:30]wFMCommunicate request_size=4 [08:44:30]MH_SAM_APDU [08:44:30]CAPDU: 80 0D 03 02 [08:44:30]Write to MH i2c: E2 08 00 8E 18 80 0D 03 02 00 00 00 00 21 [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:30]Read from MH i2c: E2 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 0B 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 0B 00 8E 18 00 27 60 C2 4F 86 BF 98 50 90 00 E7 [08:44:30]RAPDU: 27 60 C2 4F 86 BF 98 50 90 00 [08:44:30]wFMCommunicate OK [08:44:30]SAM_PROTO_SignData done [08:44:30]FM_MakeSignedData done [08:44:30]CreateOFDProtocolMessage [08:44:30]wFMCommunicate request_size=4 [08:44:30]MH_SAM_APDU [08:44:30]CAPDU: 80 11 00 00 [08:44:30]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [08:44:30]Write i2c OK [08:44:30]MH_I2C_Read... [08:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:30]Read from MH i2c: E2 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 17 00 [08:44:30]MH_I2C_Read... [08:44:30]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [08:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:44:30]wFMCommunicate OK [08:44:30]CreateOFDProtocolMessage done [08:44:30]OFDSenderStorePacket 201770 [08:44:30]StoreOFDPacket docnum=201770 [08:44:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C4 F4 07 01 7D F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 3E 00 00 00 F4 03 04 00 71 FD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 14 03 00 35 04 06 00 3E 2E EE 17 4A 9C 27 60 C2 4F 86 BF 98 50 [08:44:30]CheckFolder [08:44:30]dirname=/storage/ofd_packets [08:44:30]CheckFolder done [08:44:30]ProducePacketName [08:44:30]name=ofd_packets/00201770 [08:44:30]NVStorageSaveData ofd_packets/00201770 [08:44:30]File name is /storage/ofd_packets/00201770 [08:44:30]Write 301 bytes [08:44:30]NVStorageSaveData done [08:44:30]OFDSenderStorePacket done [08:44:30]KKMCreateOFDPacket done [08:44:30]NVStorageSaveData kkm_last_timestamp [08:44:30]File name is /storage/kkm_last_timestamp [08:44:30]Write 4 bytes [08:44:30]NVStorageSaveData done [08:44:30]ExternCall_PrintAddStr [08:44:30]wPrintStart [08:44:30]Write to MH i2c: 01 00 00 90 18 A8 [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: 01 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: 01 07 00 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 FF 0F BD [08:44:31]RasterBufferAndPrint [08:44:31]line Счет N : (1)449526 [08:44:31]line ИНН: 02508201610067 [08:44:31]line Контрольно-Кассовый Чек [08:44:31]line ПРОДАЖА [08:44:31]line ТРК (МРК, ГНК) : 41 [08:44:31]line Товар: 2710124130 [08:44:31]line Аи-92-К-2 [08:44:31]line 10.000 * 0.00 [08:44:31]line = 0.00 [08:44:31]line НДС 12% НСП 1% [08:44:31]line > о реализуемом товаре [08:44:31]line ИТОГО: 0.00 [08:44:31]line НСП 1% : 0.00 [08:44:31]line НДС 12% : 0.00 [08:44:31]line Наличными: 0.00 [08:44:31]line Безнал.: 0.00 [08:44:31]line Место: АЗС № 171 "Партнер Нефть" [08:44:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:44:31]line СНО: Общий режим [08:44:31]line Чек 62 27.10.2024 08:44 [08:44:31]line Смена: 544 ФФД: 1.0 [08:44:31]line ЗНМ: 0300000109 [08:44:31]line РНМ: 0000000000091777 [08:44:31]line Версия ККМ: 001 [08:44:31]line Талоны: Топливные Талоны [08:44:31]line 4583131 [08:44:31]line ФМ: 0000000000871756 [08:44:31]line ФД: 201770 [08:44:31]line ФПД: 68371283921564 [08:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084433&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201770&fm=68371283921564&tin=02508201610067®Number=0000000000091777&sum=0 [08:44:31]written 0, free lines is 4095 [08:44:31]OFD Sender: Processing packet 201770 [packets to send 112, broken 111] [08:44:31]ProducePacketName [08:44:31]name=ofd_packets/00201770 [08:44:31]OFD Sender: To server: pG, [08:44:31]CommunicateWithHost lk.salyk.kg:30040 [08:44:31]ConnectInit lk.salyk.kg [08:44:31]Connected sock=10 [08:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C4 F4 07 01 7D F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 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 3E 00 00 00 F4 03 04 00 71 FD 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 14 03 00 35 04 06 00 3E 2E EE 17 4A 9C 27 60 C2 4F 86 BF 98 50 [08:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 12 ED 47 00 71 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 14 03 00 F4 03 04 00 16 A9 1D 67 B6 04 01 00 00 06 01 81 AB ED F3 5A E9 [08:44:31]CommunicateWithHost err = 0 [08:44:31]CheckOFDResponse [08:44:31]1017 (14) - 77093643461234 [08:44:31]1041 (16) - 0000000000871756 [08:44:31]1040 (4) - 201770 [08:44:31]1012 (4) - 27.10.2024 02:44 [08:44:31]1206 (1) - 0 [08:44:31]OFD Sender: Remove packet 201770 [08:44:31]ProducePacketName [08:44:31]name=ofd_packets/00201770 [08:44:31]NVStorageDeleteData [08:44:31]Write to MH i2c: 01 00 00 BA 18 D2 [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: 01 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: 01 07 00 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 AB 0C 90 [08:44:31]RasterBufferAndPrint [08:44:31]line [08:44:31]line [08:44:31]line [08:44:31]line [08:44:31]line [08:44:31]written 0, free lines is 3248 [08:44:31]MH_Cut [08:44:31]Write to MH i2c: D1 01 00 C1 18 01 AB [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: D1 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: D1 01 00 [08:44:31]MH_I2C_Read... [08:44:31]Read from MH i2c: D1 01 00 C1 18 00 AA [08:44:31]Write to MH i2c: 01 00 00 C2 18 DA [08:44:31]Write i2c OK [08:44:31]MH_I2C_Read... [08:44:32]OFD Sender: No OFD packet to send [08:44:32]*** Cut start [08:44:32]*** Purtial cut [08:44:32]*** Stage 1: CUTSNS_PIN = 1 [08:44:32]Read from MH i2c: 01 [08:44:32]MH_I2C_Read... [08:44:32]*** Stop cut motor [08:44:32]*** Cut end [08:44:32]Read from MH i2c: 01 07 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: 01 07 00 C2 18 00 00 00 00 00 FF 0F EF [08:44:32]process_action close_receipt done [08:44:32]requested_data is exist [08:44:32]produce_requested_data [08:44:32]requested_item fm.sn is exist - process it [08:44:32]wFMCommunicate request_size=4 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 11 00 00 [08:44:32]Write to MH i2c: E2 08 00 C3 18 80 11 00 00 00 00 00 00 55 [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 17 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 17 00 C3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AA [08:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:44:32]wFMCommunicate OK [08:44:32]requested_item fd.num is exist - process it [08:44:32]SAM_PROTO_GetFieldsCounters [08:44:32]wFMCommunicate request_size=4 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 13 00 00 [08:44:32]Write to MH i2c: E2 08 00 C4 18 80 13 00 00 00 00 00 00 58 [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:33]Read from MH i2c: E2 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 62 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 62 00 C4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2A 14 03 00 0E 04 04 00 20 02 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 9E [08:44:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2A 14 03 00 0E 04 04 00 20 02 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 [08:44:33]wFMCommunicate OK [08:44:33]SAM_PROTO_GetFieldsCounters done [08:44:33]requested_item shift.num is exist - process it [08:44:33]requested_item shift.opened is exist - process it [08:44:33]req_shift_opened [08:44:33]FM_GetShiftState [08:44:33]SAM_PROTO_GetShiftState [08:44:33]wFMCommunicate request_size=4 [08:44:33]MH_SAM_APDU [08:44:33]CAPDU: 80 13 01 00 [08:44:33]Write to MH i2c: E2 08 00 C5 18 80 13 01 00 00 00 00 00 5A [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:33]Read from MH i2c: E2 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 0E 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 0E 00 C5 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5C [08:44:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:44:33]wFMCommunicate OK [08:44:33]SAM_PROTO_GetShiftState done [08:44:33]FM_GetShiftState done [08:44:33]req_shift_opened done [08:44:33]requested_item shift.open_date is exist - process it [08:44:33]req_shift_open_date [08:44:33]req_shift_open_date done [08:44:33]produce_requested_data done [08:44:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201770,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:44:33]process_action_free close_receipt [08:44:33]json_value_free [08:44:33]json_value_free done [08:44:33]process_json_proto returns [08:44:33]Send response to host [08:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201770,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:44:33]free response buf [08:44:33]execute_script done [08:44:33]execute_script returns [08:44:33]free content buf [08:44:33]Sock 8.Close socket [08:44:33]Sock 8.Thread stoped [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:38]accept exits with 9 [08:47:38]New connection [08:47:38]New thread 3067080036 created [08:47:38]Thread 3066936676 joined [08:47:38]Waiting for new connection... [08:47:38] Sock 9.Parse request [08:47:38]Sock 9.Check first char [08:47:38]Sock 9.First char is OK [08:47:38]request: POST /json_proto HTTP/1.0 [08:47:38]Method: POST [08:47:38]URL: /json_proto [08:47:38]Method is POST - this is cgi request [08:47:38]url: /json_proto [08:47:38]query_string will be loaded in cgi processing [08:47:38]execute_cgi json_proto POST (null) [08:47:38]execute_cgi path=json_proto method=POST [08:47:38]POST find Content-Length [08:47:38]Host: 172.17.63.195:8080 [08:47:38]Content-Length: 759 [08:47:38]Content-Type: application/json [08:47:38] [08:47:38]POST finish read [08:47:38]Found Content-Length = 759 [08:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:38]execute_script... [08:47:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:38]POST & json_proto [08:47:38]process_json_proto [08:47:38]json parsed OK: [08:47:38]protocol is kg_v1.0 [08:47:38]action value=close_receipt [08:47:38]process_action close_receipt [08:47:38]cmd_close_receipt [08:47:38]MH_GetDate [08:47:38]Write to MH i2c: F0 00 00 C6 18 CD [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: F0 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: F0 09 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: F0 09 00 C6 18 00 2D FE 1D 67 68 46 19 67 B3 [08:47:38]GetLastDocTimeStamp 1730018673 [08:47:38]current date 1730018861 [08:47:38]FM_GetShiftState [08:47:38]SAM_PROTO_GetShiftState [08:47:38]wFMCommunicate request_size=4 [08:47:38]MH_SAM_APDU [08:47:38]CAPDU: 80 13 01 00 [08:47:38]Write to MH i2c: E2 08 00 C7 18 80 13 01 00 00 00 00 00 5C [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:38]Read from MH i2c: E2 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 0E 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 0E 00 C7 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5E [08:47:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:47:38]wFMCommunicate OK [08:47:38]SAM_PROTO_GetShiftState done [08:47:38]FM_GetShiftState done [08:47:38]opened in 1729987312 [08:47:38]opened+sec_in_day 1730073712 [08:47:38]quantity*price = 40014 [08:47:38]sum+1 = 40015 [08:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.14 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 0.00 Безнал.: 400.14 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 63 27.10.2024 08:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201771 ФПД: 224705024631422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084742&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201771&fm=224705024631422&tin=02508201610067®Number=0000000000091777&sum=40014 [08:47:39]StoreToDocumentArchive [08:47:39]shift 544 fd 201771 [08:47:39]save to /storage/0544/doc_00201771 [08:47:39]save last doc name /storage/0544/doc_00201771 to /storage/kkm_last_doc_name [08:47:39]save OK [08:47:39]Clear old archive folders... [08:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:47:39]tlvbuf is 00119770 [08:47:39]SAM_PROTO_ClearQueue [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 09 00 00 [08:47:39]Write to MH i2c: E2 08 00 D4 18 80 09 00 00 00 00 00 00 5E [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 D4 18 00 90 00 60 [08:47:39]RAPDU: 90 00 [08:47:39]wFMCommunicate OK [08:47:39]SAM_PROTO_ClearQueue done [08:47:39]KKMCreateOFDPacket [08:47:39]OFDProtocolAddRootSTLVToBuf [08:47:39]FM_MakeSignedData [08:47:39]FM_MakeSignedData [08:47:39]SAM_PROTO_SignData [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 0D 01 02 [08:47:39]Write to MH i2c: E2 08 00 D5 18 80 0D 01 02 00 00 00 00 66 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 D5 18 00 90 00 61 [08:47:39]RAPDU: 90 00 [08:47:39]wFMCommunicate OK [08:47:39]wFMCommunicate request_size=255 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 4E 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 00 00 00 00 00 00 39 04 06 00 4E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2E FE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 14 03 00 35 04 06 00 [08:47:39]Write to MH i2c: E2 02 01 D6 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 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 00 00 00 00 00 00 39 04 06 00 4E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2E FE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 14 03 00 35 04 06 00 00 00 F4 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 D6 18 00 90 00 62 [08:47:39]RAPDU: 90 00 [08:47:39]wFMCommunicate OK [08:47:39]wFMCommunicate request_size=11 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 0D 02 02 06 CC 5E 37 2C 22 7E [08:47:39]Write to MH i2c: E2 0E 00 D7 18 80 0D 02 02 06 00 CC 5E 37 2C 22 7E 00 00 A2 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 D7 18 00 90 00 63 [08:47:39]RAPDU: 90 00 [08:47:39]wFMCommunicate OK [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 0D 03 02 [08:47:39]Write to MH i2c: E2 08 00 D8 18 80 0D 03 02 00 00 00 00 6B [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 0B 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 0B 00 D8 18 00 58 47 4E DE 61 FD 46 DD 90 00 B8 [08:47:39]RAPDU: 58 47 4E DE 61 FD 46 DD 90 00 [08:47:39]wFMCommunicate OK [08:47:39]SAM_PROTO_SignData done [08:47:39]FM_MakeSignedData done [08:47:39]CreateOFDProtocolMessage [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 11 00 00 [08:47:39]Write to MH i2c: E2 08 00 D9 18 80 11 00 00 00 00 00 00 6B [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 17 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 17 00 D9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C0 [08:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:47:39]wFMCommunicate OK [08:47:39]CreateOFDProtocolMessage done [08:47:39]OFDSenderStorePacket 201771 [08:47:39]StoreOFDPacket docnum=201771 [08:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 CD 22 08 01 64 8F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 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 00 00 00 00 00 00 39 04 06 00 4E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2E FE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 14 03 00 35 04 06 00 CC 5E 37 2C 22 7E 58 47 4E DE 61 FD 46 DD [08:47:39]CheckFolder [08:47:39]dirname=/storage/ofd_packets [08:47:39]CheckFolder done [08:47:39]ProducePacketName [08:47:39]name=ofd_packets/00201771 [08:47:39]NVStorageSaveData ofd_packets/00201771 [08:47:39]File name is /storage/ofd_packets/00201771 [08:47:39]Write 302 bytes [08:47:39]NVStorageSaveData done [08:47:39]OFDSenderStorePacket done [08:47:39]KKMCreateOFDPacket done [08:47:39]NVStorageSaveData kkm_last_timestamp [08:47:39]File name is /storage/kkm_last_timestamp [08:47:39]Write 4 bytes [08:47:39]NVStorageSaveData done [08:47:39]ExternCall_PrintAddStr [08:47:39]wPrintStart [08:47:39]Write to MH i2c: 01 00 00 DA 18 F2 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: 01 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: 01 07 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: 01 07 00 DA 18 00 00 00 00 00 FF 0F 07 [08:47:39]RasterBufferAndPrint [08:47:39]line Счет N : (1)449528 [08:47:39]line ИНН: 02508201610067 [08:47:39]line Контрольно-Кассовый Чек [08:47:39]line ПРОДАЖА [08:47:39]line ТРК (МРК, ГНК) : 32 [08:47:39]line Товар: 2710124130 [08:47:39]line SUPER 92-К-5 [08:47:39]line 5.850 * 68.40 [08:47:39]line = 400.14 [08:47:39]line НДС 12% НСП 1% [08:47:39]line > о реализуемом товаре [08:47:39]line ИТОГО: 400.14 [08:47:39]line НСП 1% : 3.54 [08:47:39]line НДС 12% : 42.49 [08:47:39]line Наличными: 0.00 [08:47:39]line Безнал.: 400.14 [08:47:39]line Место: АЗС № 171 "Партнер Нефть" [08:47:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:47:39]line СНО: Общий режим [08:47:39]line Чек 63 27.10.2024 08:47 [08:47:39]line Смена: 544 ФФД: 1.0 [08:47:39]line ЗНМ: 0300000109 [08:47:39]line РНМ: 0000000000091777 [08:47:39]line Версия ККМ: 001 [08:47:39]line Платежная система: Mbank [08:47:39]line ФМ: 0000000000871756 [08:47:39]line ФД: 201771 [08:47:39]line ФПД: 224705024631422 [08:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084742&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201771&fm=224705024631422&tin=02508201610067®Number=0000000000091777&sum=40014 [08:47:40]OFD Sender: Processing packet 201771 [packets to send 112, broken 111] [08:47:40]ProducePacketName [08:47:40]name=ofd_packets/00201771 [08:47:40]OFD Sender: To server: pG, [08:47:40]CommunicateWithHost lk.salyk.kg:30040 [08:47:40]ConnectInit lk.salyk.kg [08:47:40]written 0, free lines is 4095 [08:47:40]Connected sock=10 [08:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 CD 22 08 01 64 8F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 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 00 00 00 00 00 00 39 04 06 00 4E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2E FE 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 14 03 00 35 04 06 00 CC 5E 37 2C 22 7E 58 47 4E DE 61 FD 46 DD [08:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D9 4A 47 00 06 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 14 03 00 F4 03 04 00 D3 A9 1D 67 B6 04 01 00 00 8E 00 CE A1 9C 6C 82 20 [08:47:40]CommunicateWithHost err = 0 [08:47:40]CheckOFDResponse [08:47:40]1017 (14) - 77093643461234 [08:47:40]1041 (16) - 0000000000871756 [08:47:40]1040 (4) - 201771 [08:47:40]1012 (4) - 27.10.2024 02:47 [08:47:40]1206 (1) - 0 [08:47:40]OFD Sender: Remove packet 201771 [08:47:40]ProducePacketName [08:47:40]name=ofd_packets/00201771 [08:47:40]NVStorageDeleteData [08:47:40]Write to MH i2c: 01 00 00 03 19 1C [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 07 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 07 00 03 19 00 00 00 00 00 C5 0C F4 [08:47:40]RasterBufferAndPrint [08:47:40]line [08:47:40]line [08:47:40]line [08:47:40]line [08:47:40]line [08:47:40]written 0, free lines is 3273 [08:47:40]MH_Cut [08:47:40]Write to MH i2c: D1 01 00 0A 19 01 F5 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: D1 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: D1 01 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: D1 01 00 0A 19 00 F4 [08:47:40]Write to MH i2c: 01 00 00 0B 19 24 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:41]OFD Sender: No OFD packet to send [08:47:41]*** Cut start [08:47:41]*** Purtial cut [08:47:41]*** Stage 1: CUTSNS_PIN = 1 [08:47:41]Read from MH i2c: 01 [08:47:41]MH_I2C_Read... [08:47:41]*** Stop cut motor [08:47:41]*** Cut end [08:47:41]Read from MH i2c: 01 07 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: 01 07 00 0B 19 00 00 00 00 00 FF 0F 39 [08:47:41]process_action close_receipt done [08:47:41]requested_data is exist [08:47:41]produce_requested_data [08:47:41]requested_item fm.sn is exist - process it [08:47:41]wFMCommunicate request_size=4 [08:47:41]MH_SAM_APDU [08:47:41]CAPDU: 80 11 00 00 [08:47:41]Write to MH i2c: E2 08 00 0C 19 80 11 00 00 00 00 00 00 9F [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:41]Read from MH i2c: E2 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 17 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 17 00 0C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [08:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:47:41]wFMCommunicate OK [08:47:41]requested_item fd.num is exist - process it [08:47:41]SAM_PROTO_GetFieldsCounters [08:47:41]wFMCommunicate request_size=4 [08:47:41]MH_SAM_APDU [08:47:41]CAPDU: 80 13 00 00 [08:47:41]Write to MH i2c: E2 08 00 0D 19 80 13 00 00 00 00 00 00 A2 [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:42]Read from MH i2c: E2 [08:47:42]MH_I2C_Read... [08:47:42]Read from MH i2c: E2 62 00 [08:47:42]MH_I2C_Read... [08:47:42]Read from MH i2c: E2 62 00 0D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2B 14 03 00 0E 04 04 00 20 02 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 EC [08:47:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2B 14 03 00 0E 04 04 00 20 02 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:47:42]wFMCommunicate OK [08:47:42]SAM_PROTO_GetFieldsCounters done [08:47:42]requested_item shift.num is exist - process it [08:47:42]requested_item shift.opened is exist - process it [08:47:42]req_shift_opened [08:47:42]FM_GetShiftState [08:47:42]SAM_PROTO_GetShiftState [08:47:42]wFMCommunicate request_size=4 [08:47:42]MH_SAM_APDU [08:47:42]CAPDU: 80 13 01 00 [08:47:42]Write to MH i2c: E2 08 00 0E 19 80 13 01 00 00 00 00 00 A4 [08:47:42]Write i2c OK [08:47:42]MH_I2C_Read... [08:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:42]Read from MH i2c: E2 [08:47:42]MH_I2C_Read... [08:47:42]Read from MH i2c: E2 0E 00 [08:47:42]MH_I2C_Read... [08:47:42]Read from MH i2c: E2 0E 00 0E 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A6 [08:47:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:47:42]wFMCommunicate OK [08:47:42]SAM_PROTO_GetShiftState done [08:47:42]FM_GetShiftState done [08:47:42]req_shift_opened done [08:47:42]requested_item shift.open_date is exist - process it [08:47:42]req_shift_open_date [08:47:42]req_shift_open_date done [08:47:42]produce_requested_data done [08:47:42]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201771,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:47:42]process_action_free close_receipt [08:47:42]json_value_free [08:47:42]json_value_free done [08:47:42]process_json_proto returns [08:47:42]Send response to host [08:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201771,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:47:42]free response buf [08:47:42]execute_script done [08:47:42]execute_script returns [08:47:42]free content buf [08:47:42]Sock 9.Close socket [08:47:42]Sock 9.Thread stoped [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:27]int [08:49:27]Write to MH i2c: 01 00 00 0F 19 28 [08:49:27]*** FLAG_PRN_KEY set [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 0F 19 00 08 00 00 00 FF 0F 45 [08:49:27]state=0 [08:49:27]Key pressed [08:49:27]Feed [08:49:27]Write to MH i2c: D8 00 00 10 19 00 [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: D8 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: D8 01 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: D8 01 00 10 19 00 01 [08:49:27]int [08:49:27]Write to MH i2c: 01 00 00 11 19 2A [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 11 19 00 48 00 00 00 3C 00 B5 [08:49:27]state=2 [08:49:27]Key pressed [08:49:27]int [08:49:27]Write to MH i2c: 01 00 00 12 19 2B [08:49:27]*** FLAG_PRN_KEY reset [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 12 19 00 00 00 00 00 FA 0F 3B [08:49:27]state=2 [08:49:27]Stop feed [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:43]accept exits with 8 [08:52:43]New connection [08:52:43]New thread 3066936676 created [08:52:43]Thread 3067080036 joined [08:52:43]Waiting for new connection... [08:52:43] Sock 8.Parse request [08:52:43]Sock 8.Check first char [08:52:43]Sock 8.First char is OK [08:52:43]request: POST /json_proto HTTP/1.0 [08:52:43]Method: POST [08:52:43]URL: /json_proto [08:52:43]Method is POST - this is cgi request [08:52:43]url: /json_proto [08:52:43]query_string will be loaded in cgi processing [08:52:43]execute_cgi json_proto POST (null) [08:52:43]execute_cgi path=json_proto method=POST [08:52:43]POST find Content-Length [08:52:43]Host: 172.17.63.195:8080 [08:52:43]Content-Length: 798 [08:52:43]Content-Type: application/json [08:52:43] [08:52:43]POST finish read [08:52:43]Found Content-Length = 798 [08:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 150.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\u000A4756311", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:43]execute_script... [08:52:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 150.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\u000A4756311", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:43]POST & json_proto [08:52:43]process_json_proto [08:52:43]json parsed OK: [08:52:43]protocol is kg_v1.0 [08:52:43]action value=close_receipt [08:52:43]process_action close_receipt [08:52:43]cmd_close_receipt [08:52:43]MH_GetDate [08:52:43]Write to MH i2c: F0 00 00 13 19 1B [08:52:43]Write i2c OK [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: F0 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: F0 09 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: F0 09 00 13 19 00 5F FF 1D 67 68 46 19 67 34 [08:52:43]GetLastDocTimeStamp 1730018862 [08:52:43]current date 1730019167 [08:52:43]FM_GetShiftState [08:52:43]SAM_PROTO_GetShiftState [08:52:43]wFMCommunicate request_size=4 [08:52:43]MH_SAM_APDU [08:52:43]CAPDU: 80 13 01 00 [08:52:43]Write to MH i2c: E2 08 00 14 19 80 13 01 00 00 00 00 00 AA [08:52:43]Write i2c OK [08:52:43]MH_I2C_Read... [08:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:43]Read from MH i2c: E2 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 0E 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 0E 00 14 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AC [08:52:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:52:43]wFMCommunicate OK [08:52:43]SAM_PROTO_GetShiftState done [08:52:43]FM_GetShiftState done [08:52:43]opened in 1729987312 [08:52:43]opened+sec_in_day 1730073712 [08:52:43]quantity*price = 0 [08:52:43]sum+1 = 1 [08:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 64 27.10.2024 08:52 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Талоны: Топливные Талоны 4756311 ФМ: 0000000000871756 ФД: 201772 ФПД: 25188391933928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085247&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201772&fm=25188391933928&tin=02508201610067®Number=0000000000091777&sum=0 [08:52:44]StoreToDocumentArchive [08:52:44]shift 544 fd 201772 [08:52:44]save to /storage/0544/doc_00201772 [08:52:44]save last doc name /storage/0544/doc_00201772 to /storage/kkm_last_doc_name [08:52:44]save OK [08:52:44]Clear old archive folders... [08:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:52:44]tlvbuf is 000A7B90 [08:52:44]SAM_PROTO_ClearQueue [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 09 00 00 [08:52:44]Write to MH i2c: E2 08 00 21 19 80 09 00 00 00 00 00 00 AC [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 03 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 03 00 21 19 00 90 00 AE [08:52:45]RAPDU: 90 00 [08:52:45]wFMCommunicate OK [08:52:45]SAM_PROTO_ClearQueue done [08:52:45]KKMCreateOFDPacket [08:52:45]OFDProtocolAddRootSTLVToBuf [08:52:45]FM_MakeSignedData [08:52:45]FM_MakeSignedData [08:52:45]SAM_PROTO_SignData [08:52:45]wFMCommunicate request_size=4 [08:52:45]MH_SAM_APDU [08:52:45]CAPDU: 80 0D 01 02 [08:52:45]Write to MH i2c: E2 08 00 22 19 80 0D 01 02 00 00 00 00 B4 [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 03 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 03 00 22 19 00 90 00 AF [08:52:45]RAPDU: 90 00 [08:52:45]wFMCommunicate OK [08:52:45]wFMCommunicate request_size=255 [08:52:45]MH_SAM_APDU [08:52: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 32 FF 03 08 00 03 F0 49 02 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 40 00 00 00 F4 03 04 00 5F FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 14 03 00 35 04 06 00 16 E8 A1 27 [08:52:45]Write to MH i2c: E2 02 01 23 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F0 49 02 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 40 00 00 00 F4 03 04 00 5F FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 14 03 00 35 04 06 00 16 E8 A1 27 00 00 9E [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 03 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 03 00 23 19 00 90 00 B0 [08:52:45]RAPDU: 90 00 [08:52:45]wFMCommunicate OK [08:52:45]wFMCommunicate request_size=7 [08:52:45]MH_SAM_APDU [08:52:45]CAPDU: 80 0D 02 02 02 57 E8 [08:52:45]Write to MH i2c: E2 0A 00 24 19 80 0D 02 02 02 00 57 E8 00 00 FA [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 03 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 03 00 24 19 00 90 00 B1 [08:52:45]RAPDU: 90 00 [08:52:45]wFMCommunicate OK [08:52:45]wFMCommunicate request_size=4 [08:52:45]MH_SAM_APDU [08:52:45]CAPDU: 80 0D 03 02 [08:52:45]Write to MH i2c: E2 08 00 25 19 80 0D 03 02 00 00 00 00 B9 [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 0B 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 0B 00 25 19 00 19 1B 55 36 E5 C1 D2 D5 90 00 C6 [08:52:45]RAPDU: 19 1B 55 36 E5 C1 D2 D5 90 00 [08:52:45]wFMCommunicate OK [08:52:45]SAM_PROTO_SignData done [08:52:45]FM_MakeSignedData done [08:52:45]CreateOFDProtocolMessage [08:52:45]wFMCommunicate request_size=4 [08:52:45]MH_SAM_APDU [08:52:45]CAPDU: 80 11 00 00 [08:52:45]Write to MH i2c: E2 08 00 26 19 80 11 00 00 00 00 00 00 B9 [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 17 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 17 00 26 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [08:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:52:45]wFMCommunicate OK [08:52:45]CreateOFDProtocolMessage done [08:52:45]OFDSenderStorePacket 201772 [08:52:45]StoreOFDPacket docnum=201772 [08:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D6 5E 04 01 E6 EB 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 32 FF 03 08 00 03 F0 49 02 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 40 00 00 00 F4 03 04 00 5F FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 14 03 00 35 04 06 00 16 E8 A1 27 57 E8 19 1B 55 36 E5 C1 D2 D5 [08:52:45]CheckFolder [08:52:45]dirname=/storage/ofd_packets [08:52:45]CheckFolder done [08:52:45]ProducePacketName [08:52:45]name=ofd_packets/00201772 [08:52:45]NVStorageSaveData ofd_packets/00201772 [08:52:45]File name is /storage/ofd_packets/00201772 [08:52:45]Write 298 bytes [08:52:45]NVStorageSaveData done [08:52:45]OFDSenderStorePacket done [08:52:45]KKMCreateOFDPacket done [08:52:45]NVStorageSaveData kkm_last_timestamp [08:52:45]File name is /storage/kkm_last_timestamp [08:52:45]Write 4 bytes [08:52:45]NVStorageSaveData done [08:52:45]ExternCall_PrintAddStr [08:52:45]wPrintStart [08:52:45]Write to MH i2c: 01 00 00 27 19 40 [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: 01 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: 01 07 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: 01 07 00 27 19 00 00 00 00 00 FF 0F 55 [08:52:45]RasterBufferAndPrint [08:52:45]line Счет N : (1)449527 [08:52:45]line ИНН: 02508201610067 [08:52:45]line Контрольно-Кассовый Чек [08:52:45]line ПРОДАЖА [08:52:45]line ТРК (МРК, ГНК) : 43 [08:52:45]line Товар: 2710194210 [08:52:45]line ДТ-К-2 [08:52:45]line 150.000 * 0.00 [08:52:45]line = 0.00 [08:52:45]line НДС 12% НСП 1% [08:52:45]line > о реализуемом товаре [08:52:45]line ИТОГО: 0.00 [08:52:45]line НСП 1% : 0.00 [08:52:45]line НДС 12% : 0.00 [08:52:45]line Наличными: 0.00 [08:52:45]line Безнал.: 0.00 [08:52:45]line Место: АЗС № 171 "Партнер Нефть" [08:52:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:52:45]line СНО: Общий режим [08:52:45]line Чек 64 27.10.2024 08:52 [08:52:45]line Смена: 544 ФФД: 1.0 [08:52:45]line ЗНМ: 0300000109 [08:52:45]line РНМ: 0000000000091777 [08:52:45]line Версия ККМ: 001 [08:52:45]line Талоны: Топливные Талоны [08:52:45]line 4756311 [08:52:45]line ФМ: 0000000000871756 [08:52:45]line ФД: 201772 [08:52:45]line ФПД: 25188391933928 [08:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085247&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201772&fm=25188391933928&tin=02508201610067®Number=0000000000091777&sum=0 [08:52:45]OFD Sender: Processing packet 201772 [packets to send 112, broken 111] [08:52:45]ProducePacketName [08:52:45]name=ofd_packets/00201772 [08:52:45]OFD Sender: To server: pG, [08:52:45]CommunicateWithHost lk.salyk.kg:30040 [08:52:45]ConnectInit lk.salyk.kg [08:52:45]written 0, free lines is 4095 [08:52:45]Connected sock=10 [08:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D6 5E 04 01 E6 EB 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 32 FF 03 08 00 03 F0 49 02 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 40 00 00 00 F4 03 04 00 5F FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 14 03 00 35 04 06 00 16 E8 A1 27 57 E8 19 1B 55 36 E5 C1 D2 D5 [08:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A2 AD 47 00 96 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 14 03 00 F4 03 04 00 05 AB 1D 67 B6 04 01 00 00 BC 26 B4 F7 E4 F1 6B ED [08:52:46]CommunicateWithHost err = 0 [08:52:46]CheckOFDResponse [08:52:46]1017 (14) - 77093643461234 [08:52:46]1041 (16) - 0000000000871756 [08:52:46]1040 (4) - 201772 [08:52:46]1012 (4) - 27.10.2024 02:52 [08:52:46]1206 (1) - 0 [08:52:46]OFD Sender: Remove packet 201772 [08:52:46]ProducePacketName [08:52:46]name=ofd_packets/00201772 [08:52:46]NVStorageDeleteData [08:52:46]Write to MH i2c: 01 00 00 51 19 6A [08:52:46]Write i2c OK [08:52:46]MH_I2C_Read... [08:52:46]Read from MH i2c: 01 [08:52:46]MH_I2C_Read... [08:52:46]Read from MH i2c: 01 07 00 [08:52:46]MH_I2C_Read... [08:52:46]Read from MH i2c: 01 07 00 51 19 00 00 00 00 00 B9 0C 36 [08:52:46]RasterBufferAndPrint [08:52:46]line [08:52:46]line [08:52:46]line [08:52:46]line [08:52:46]line [08:52:46]written 0, free lines is 3261 [08:52:46]MH_Cut [08:52:46]Write to MH i2c: D1 01 00 58 19 01 43 [08:52:46]Write i2c OK [08:52:46]MH_I2C_Read... [08:52:46]Read from MH i2c: D1 [08:52:46]MH_I2C_Read... [08:52:46]Read from MH i2c: D1 01 00 [08:52:46]MH_I2C_Read... [08:52:46]Read from MH i2c: D1 01 00 58 19 00 42 [08:52:46]Write to MH i2c: 01 00 00 59 19 72 [08:52:46]Write i2c OK [08:52:46]MH_I2C_Read... [08:52:46]OFD Sender: No OFD packet to send [08:52:47]*** Cut start [08:52:47]*** Purtial cut [08:52:47]*** CUTSNS_PIN = 0 [08:52:47]*** Stage 1: CUTSNS_PIN = 1 [08:52:49]Read from MH i2c: 01 [08:52:49]MH_I2C_Read... [08:52:49]*** Stop cut motor [08:52:49]*** Cut end [08:52:49]Read from MH i2c: 01 07 00 [08:52:49]MH_I2C_Read... [08:52:49]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 FF 0F 87 [08:52:49]process_action close_receipt done [08:52:49]requested_data is exist [08:52:49]produce_requested_data [08:52:49]requested_item fm.sn is exist - process it [08:52:49]wFMCommunicate request_size=4 [08:52:49]MH_SAM_APDU [08:52:49]CAPDU: 80 11 00 00 [08:52:49]Write to MH i2c: E2 08 00 5A 19 80 11 00 00 00 00 00 00 ED [08:52:49]Write i2c OK [08:52:49]MH_I2C_Read... [08:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:49]Read from MH i2c: E2 [08:52:49]MH_I2C_Read... [08:52:49]Read from MH i2c: E2 17 00 [08:52:49]MH_I2C_Read... [08:52:49]Read from MH i2c: E2 17 00 5A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 42 [08:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:52:49]wFMCommunicate OK [08:52:49]requested_item fd.num is exist - process it [08:52:49]SAM_PROTO_GetFieldsCounters [08:52:49]wFMCommunicate request_size=4 [08:52:49]MH_SAM_APDU [08:52:49]CAPDU: 80 13 00 00 [08:52:49]Write to MH i2c: E2 08 00 5B 19 80 13 00 00 00 00 00 00 F0 [08:52:49]Write i2c OK [08:52:49]MH_I2C_Read... [08:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:49]Read from MH i2c: E2 [08:52:49]MH_I2C_Read... [08:52:49]Read from MH i2c: E2 62 00 [08:52:49]MH_I2C_Read... [08:52:49]Read from MH i2c: E2 62 00 5B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2C 14 03 00 0E 04 04 00 20 02 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 3E [08:52:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2C 14 03 00 0E 04 04 00 20 02 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 [08:52:49]wFMCommunicate OK [08:52:49]SAM_PROTO_GetFieldsCounters done [08:52:49]requested_item shift.num is exist - process it [08:52:49]requested_item shift.opened is exist - process it [08:52:49]req_shift_opened [08:52:49]FM_GetShiftState [08:52:49]SAM_PROTO_GetShiftState [08:52:49]wFMCommunicate request_size=4 [08:52:49]MH_SAM_APDU [08:52:49]CAPDU: 80 13 01 00 [08:52:49]Write to MH i2c: E2 08 00 5C 19 80 13 01 00 00 00 00 00 F2 [08:52:49]Write i2c OK [08:52:49]MH_I2C_Read... [08:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:49]Read from MH i2c: E2 [08:52:49]MH_I2C_Read... [08:52:49]Read from MH i2c: E2 0E 00 [08:52:49]MH_I2C_Read... [08:52:49]Read from MH i2c: E2 0E 00 5C 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F4 [08:52:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:52:49]wFMCommunicate OK [08:52:49]SAM_PROTO_GetShiftState done [08:52:49]FM_GetShiftState done [08:52:49]req_shift_opened done [08:52:49]requested_item shift.open_date is exist - process it [08:52:49]req_shift_open_date [08:52:49]req_shift_open_date done [08:52:49]produce_requested_data done [08:52:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201772,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:52:49]process_action_free close_receipt [08:52:49]json_value_free [08:52:49]json_value_free done [08:52:49]process_json_proto returns [08:52:49]Send response to host [08:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201772,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:52:49]free response buf [08:52:49]execute_script done [08:52:49]execute_script returns [08:52:49]free content buf [08:52:49]Sock 8.Close socket [08:52:49]Sock 8.Thread stoped [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:42]accept exits with 9 [08:54:42]New connection [08:54:42]New thread 3067080036 created [08:54:42]Thread 3066936676 joined [08:54:42]Waiting for new connection... [08:54:42] Sock 9.Parse request [08:54:42]Sock 9.Check first char [08:54:42]Sock 9.First char is OK [08:54:42]request: POST /json_proto HTTP/1.0 [08:54:42]Method: POST [08:54:42]URL: /json_proto [08:54:42]Method is POST - this is cgi request [08:54:42]url: /json_proto [08:54:42]query_string will be loaded in cgi processing [08:54:42]execute_cgi json_proto POST (null) [08:54:42]execute_cgi path=json_proto method=POST [08:54:42]POST find Content-Length [08:54:42]Host: 172.17.63.195:8080 [08:54:42]Content-Length: 677 [08:54:42]Content-Type: application/json [08:54:42] [08:54:42]POST finish read [08:54:42]Found Content-Length = 677 [08:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:54:42]execute_script... [08:54:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:54:42]POST & json_proto [08:54:42]process_json_proto [08:54:42]json parsed OK: [08:54:42]protocol is kg_v1.0 [08:54:42]action value=close_receipt [08:54:42]process_action close_receipt [08:54:42]cmd_close_receipt [08:54:42]MH_GetDate [08:54:42]Write to MH i2c: F0 00 00 5D 19 65 [08:54:42]Write i2c OK [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: F0 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: F0 09 00 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: F0 09 00 5D 19 00 D6 FF 1D 67 68 46 19 67 F5 [08:54:42]GetLastDocTimeStamp 1730019167 [08:54:42]current date 1730019286 [08:54:42]FM_GetShiftState [08:54:42]SAM_PROTO_GetShiftState [08:54:42]wFMCommunicate request_size=4 [08:54:42]MH_SAM_APDU [08:54:42]CAPDU: 80 13 01 00 [08:54:42]Write to MH i2c: E2 08 00 5E 19 80 13 01 00 00 00 00 00 F4 [08:54:42]Write i2c OK [08:54:42]MH_I2C_Read... [08:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:42]Read from MH i2c: E2 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: E2 0E 00 [08:54:42]MH_I2C_Read... [08:54:42]Read from MH i2c: E2 0E 00 5E 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F6 [08:54:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:54:42]wFMCommunicate OK [08:54:42]SAM_PROTO_GetShiftState done [08:54:42]FM_GetShiftState done [08:54:42]opened in 1729987312 [08:54:42]opened+sec_in_day 1730073712 [08:54:42]quantity*price = 50041 [08:54:42]sum+1 = 50042 [08:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 65 27.10.2024 08:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201773 ФПД: 197615057927446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085446&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201773&fm=197615057927446&tin=02508201610067®Number=0000000000091777&sum=50000 [08:54:44]StoreToDocumentArchive [08:54:44]shift 544 fd 201773 [08:54:44]save to /storage/0544/doc_00201773 [08:54:44]save last doc name /storage/0544/doc_00201773 to /storage/kkm_last_doc_name [08:54:44]save OK [08:54:44]Clear old archive folders... [08:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:44]tlvbuf is B6F74890 [08:54:44]SAM_PROTO_ClearQueue [08:54:44]wFMCommunicate request_size=4 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 09 00 00 [08:54:44]Write to MH i2c: E2 08 00 6B 19 80 09 00 00 00 00 00 00 F6 [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 03 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 03 00 6B 19 00 90 00 F8 [08:54:44]RAPDU: 90 00 [08:54:44]wFMCommunicate OK [08:54:44]SAM_PROTO_ClearQueue done [08:54:44]KKMCreateOFDPacket [08:54:44]OFDProtocolAddRootSTLVToBuf [08:54:44]FM_MakeSignedData [08:54:44]FM_MakeSignedData [08:54:44]SAM_PROTO_SignData [08:54:44]wFMCommunicate request_size=4 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 0D 01 02 [08:54:44]Write to MH i2c: E2 08 00 6C 19 80 0D 01 02 00 00 00 00 FE [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 03 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [08:54:44]RAPDU: 90 00 [08:54:44]wFMCommunicate OK [08:54:44]wFMCommunicate request_size=255 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 41 00 00 00 F4 03 04 00 D6 FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 14 03 00 35 04 06 00 B3 [08:54:44]Write to MH i2c: E2 02 01 6D 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 32 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 41 00 00 00 F4 03 04 00 D6 FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 14 03 00 35 04 06 00 B3 00 00 45 [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 03 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [08:54:44]RAPDU: 90 00 [08:54:44]wFMCommunicate OK [08:54:44]wFMCommunicate request_size=10 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 0D 02 02 05 BA D7 54 7D 16 [08:54:44]Write to MH i2c: E2 0D 00 6E 19 80 0D 02 02 05 00 BA D7 54 7D 16 00 00 83 [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 03 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [08:54:44]RAPDU: 90 00 [08:54:44]wFMCommunicate OK [08:54:44]wFMCommunicate request_size=4 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 0D 03 02 [08:54:44]Write to MH i2c: E2 08 00 6F 19 80 0D 03 02 00 00 00 00 03 [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 0B 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 0B 00 6F 19 00 1C BB 63 59 E0 29 BD 91 90 00 EE [08:54:44]RAPDU: 1C BB 63 59 E0 29 BD 91 90 00 [08:54:44]wFMCommunicate OK [08:54:44]SAM_PROTO_SignData done [08:54:44]FM_MakeSignedData done [08:54:44]CreateOFDProtocolMessage [08:54:44]wFMCommunicate request_size=4 [08:54:44]MH_SAM_APDU [08:54:44]CAPDU: 80 11 00 00 [08:54:44]Write to MH i2c: E2 08 00 70 19 80 11 00 00 00 00 00 00 03 [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:44]Read from MH i2c: E2 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 17 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: E2 17 00 70 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 58 [08:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:54:44]wFMCommunicate OK [08:54:44]CreateOFDProtocolMessage done [08:54:44]OFDSenderStorePacket 201773 [08:54:44]StoreOFDPacket docnum=201773 [08:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 F5 07 01 A4 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 41 00 00 00 F4 03 04 00 D6 FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 14 03 00 35 04 06 00 B3 BA D7 54 7D 16 1C BB 63 59 E0 29 BD 91 [08:54:44]CheckFolder [08:54:44]dirname=/storage/ofd_packets [08:54:44]CheckFolder done [08:54:44]ProducePacketName [08:54:44]name=ofd_packets/00201773 [08:54:44]NVStorageSaveData ofd_packets/00201773 [08:54:44]File name is /storage/ofd_packets/00201773 [08:54:44]Write 301 bytes [08:54:44]NVStorageSaveData done [08:54:44]OFDSenderStorePacket done [08:54:44]KKMCreateOFDPacket done [08:54:44]NVStorageSaveData kkm_last_timestamp [08:54:44]File name is /storage/kkm_last_timestamp [08:54:44]Write 4 bytes [08:54:44]NVStorageSaveData done [08:54:44]ExternCall_PrintAddStr [08:54:44]wPrintStart [08:54:44]Write to MH i2c: 01 00 00 71 19 8A [08:54:44]Write i2c OK [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: 01 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: 01 07 00 [08:54:44]MH_I2C_Read... [08:54:44]Read from MH i2c: 01 07 00 71 19 00 00 00 00 00 FF 0F 9F [08:54:44]RasterBufferAndPrint [08:54:44]line Счет N : (1)449529 [08:54:44]line ИНН: 02508201610067 [08:54:44]line Контрольно-Кассовый Чек [08:54:44]line ПРОДАЖА [08:54:44]line ТРК (МРК, ГНК) : 62 [08:54:44]line Товар: 2710124130 [08:54:44]line Аи-92-К-2 [08:54:44]line 7.480 * 66.90 [08:54:44]line = 500.41 [08:54:44]line НДС 12% НСП 1% [08:54:44]line > о реализуемом товаре [08:54:44]line ОКРУГЛЕНИЕ: -0.41 [08:54:44]line ИТОГО: 500.00 [08:54:44]line Внесено: 500.00 [08:54:44]line СДАЧА: 0.00 [08:54:44]line НСП 1% : 4.43 [08:54:44]line НДС 12% : 53.14 [08:54:44]line Наличными: 500.00 [08:54:44]line Безнал.: 0.00 [08:54:44]line Место: АЗС № 171 "Партнер Нефть" [08:54:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:54:44]line СНО: Общий режим [08:54:44]line Чек 65 27.10.2024 08:54 [08:54:44]line Смена: 544 ФФД: 1.0 [08:54:44]line ЗНМ: 0300000109 [08:54:44]line РНМ: 0000000000091777 [08:54:44]line Версия ККМ: 001 [08:54:44]line ФМ: 0000000000871756 [08:54:44]line ФД: 201773 [08:54:44]line ФПД: 197615057927446 [08:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085446&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201773&fm=197615057927446&tin=02508201610067®Number=0000000000091777&sum=50000 [08:54:44]OFD Sender: Processing packet 201773 [packets to send 112, broken 111] [08:54:44]ProducePacketName [08:54:44]name=ofd_packets/00201773 [08:54:44]OFD Sender: To server: pG, [08:54:44]CommunicateWithHost lk.salyk.kg:30040 [08:54:44]ConnectInit lk.salyk.kg [08:54:44]written 0, free lines is 4095 [08:54:45]Connected sock=10 [08:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 F5 07 01 A4 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 41 00 00 00 F4 03 04 00 D6 FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 14 03 00 35 04 06 00 B3 BA D7 54 7D 16 1C BB 63 59 E0 29 BD 91 [08:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 37 B3 47 00 59 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 14 03 00 F4 03 04 00 7C AB 1D 67 B6 04 01 00 00 4D 04 B6 F2 01 74 9C 46 [08:54:45]CommunicateWithHost err = 0 [08:54:45]CheckOFDResponse [08:54:45]1017 (14) - 77093643461234 [08:54:45]1041 (16) - 0000000000871756 [08:54:45]1040 (4) - 201773 [08:54:45]1012 (4) - 27.10.2024 02:54 [08:54:45]1206 (1) - 0 [08:54:45]OFD Sender: Remove packet 201773 [08:54:45]ProducePacketName [08:54:45]name=ofd_packets/00201773 [08:54:45]NVStorageDeleteData [08:54:45]Write to MH i2c: 01 00 00 9C 19 B5 [08:54:45]Write i2c OK [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: 01 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: 01 07 00 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: 01 07 00 9C 19 00 00 00 00 00 9B 0C 63 [08:54:45]RasterBufferAndPrint [08:54:45]line [08:54:45]line [08:54:45]line [08:54:45]line [08:54:45]line [08:54:45]written 0, free lines is 3233 [08:54:45]MH_Cut [08:54:45]Write to MH i2c: D1 01 00 A3 19 01 8E [08:54:45]Write i2c OK [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: D1 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: D1 01 00 [08:54:45]MH_I2C_Read... [08:54:45]Read from MH i2c: D1 01 00 A3 19 00 8D [08:54:45]Write to MH i2c: 01 00 00 A4 19 BD [08:54:45]Write i2c OK [08:54:45]MH_I2C_Read... [08:54:45]OFD Sender: No OFD packet to send [08:54:46]*** Cut start [08:54:46]*** Purtial cut [08:54:46]*** Stage 1: CUTSNS_PIN = 1 [08:54:46]Read from MH i2c: 01 [08:54:46]MH_I2C_Read... [08:54:46]*** Stop cut motor [08:54:46]*** Cut end [08:54:46]Read from MH i2c: 01 07 00 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: 01 07 00 A4 19 00 00 00 00 00 FF 0F D2 [08:54:46]process_action close_receipt done [08:54:46]requested_data is exist [08:54:46]produce_requested_data [08:54:46]requested_item fm.sn is exist - process it [08:54:46]wFMCommunicate request_size=4 [08:54:46]MH_SAM_APDU [08:54:46]CAPDU: 80 11 00 00 [08:54:46]Write to MH i2c: E2 08 00 A5 19 80 11 00 00 00 00 00 00 38 [08:54:46]Write i2c OK [08:54:46]MH_I2C_Read... [08:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:46]Read from MH i2c: E2 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 17 00 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 17 00 A5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [08:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:54:46]wFMCommunicate OK [08:54:46]requested_item fd.num is exist - process it [08:54:46]SAM_PROTO_GetFieldsCounters [08:54:46]wFMCommunicate request_size=4 [08:54:46]MH_SAM_APDU [08:54:46]CAPDU: 80 13 00 00 [08:54:46]Write to MH i2c: E2 08 00 A6 19 80 13 00 00 00 00 00 00 3B [08:54:46]Write i2c OK [08:54:46]MH_I2C_Read... [08:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:46]Read from MH i2c: E2 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 62 00 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 62 00 A6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2D 14 03 00 0E 04 04 00 20 02 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 8D [08:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2D 14 03 00 0E 04 04 00 20 02 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 [08:54:46]wFMCommunicate OK [08:54:46]SAM_PROTO_GetFieldsCounters done [08:54:46]requested_item shift.num is exist - process it [08:54:46]requested_item shift.opened is exist - process it [08:54:46]req_shift_opened [08:54:46]FM_GetShiftState [08:54:46]SAM_PROTO_GetShiftState [08:54:46]wFMCommunicate request_size=4 [08:54:46]MH_SAM_APDU [08:54:46]CAPDU: 80 13 01 00 [08:54:46]Write to MH i2c: E2 08 00 A7 19 80 13 01 00 00 00 00 00 3D [08:54:46]Write i2c OK [08:54:46]MH_I2C_Read... [08:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:46]Read from MH i2c: E2 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 0E 00 [08:54:46]MH_I2C_Read... [08:54:46]Read from MH i2c: E2 0E 00 A7 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3F [08:54:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:54:46]wFMCommunicate OK [08:54:46]SAM_PROTO_GetShiftState done [08:54:46]FM_GetShiftState done [08:54:46]req_shift_opened done [08:54:46]requested_item shift.open_date is exist - process it [08:54:46]req_shift_open_date [08:54:46]req_shift_open_date done [08:54:46]produce_requested_data done [08:54:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201773,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:54:46]process_action_free close_receipt [08:54:46]json_value_free [08:54:46]json_value_free done [08:54:46]process_json_proto returns [08:54:46]Send response to host [08:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201773,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:54:46]free response buf [08:54:46]execute_script done [08:54:46]execute_script returns [08:54:46]free content buf [08:54:46]Sock 9.Close socket [08:54:46]Sock 9.Thread stoped [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:18]accept exits with 8 [08:55:18]New connection [08:55:18]New thread 3066936676 created [08:55:18]Thread 3067080036 joined [08:55:18]Waiting for new connection... [08:55:18] Sock 8.Parse request [08:55:18]Sock 8.Check first char [08:55:18]Sock 8.First char is OK [08:55:18]request: POST /json_proto HTTP/1.0 [08:55:18]Method: POST [08:55:18]URL: /json_proto [08:55:18]Method is POST - this is cgi request [08:55:18]url: /json_proto [08:55:18]query_string will be loaded in cgi processing [08:55:18]execute_cgi json_proto POST (null) [08:55:18]execute_cgi path=json_proto method=POST [08:55:18]POST find Content-Length [08:55:18]Host: 172.17.63.195:8080 [08:55:18]Content-Length: 677 [08:55:18]Content-Type: application/json [08:55:18] [08:55:18]POST finish read [08:55:18]Found Content-Length = 677 [08:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:55:18]execute_script... [08:55: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)449530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:55:18]POST & json_proto [08:55:18]process_json_proto [08:55:18]json parsed OK: [08:55:18]protocol is kg_v1.0 [08:55:18]action value=close_receipt [08:55:18]process_action close_receipt [08:55:18]cmd_close_receipt [08:55:18]MH_GetDate [08:55:18]Write to MH i2c: F0 00 00 A8 19 B0 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: F0 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: F0 09 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: F0 09 00 A8 19 00 FA FF 1D 67 68 46 19 67 64 [08:55:18]GetLastDocTimeStamp 1730019286 [08:55:18]current date 1730019322 [08:55:18]FM_GetShiftState [08:55:18]SAM_PROTO_GetShiftState [08:55:18]wFMCommunicate request_size=4 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 13 01 00 [08:55:18]Write to MH i2c: E2 08 00 A9 19 80 13 01 00 00 00 00 00 3F [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 0E 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 0E 00 A9 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 41 [08:55:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:55:19]wFMCommunicate OK [08:55:19]SAM_PROTO_GetShiftState done [08:55:19]FM_GetShiftState done [08:55:19]opened in 1729987312 [08:55:19]opened+sec_in_day 1730073712 [08:55:19]quantity*price = 20003 [08:55:19]sum+1 = 20004 [08:55:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 66 27.10.2024 08:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201774 ФПД: 61552283950020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085522&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201774&fm=61552283950020&tin=02508201610067®Number=0000000000091777&sum=20000 [08:55:20]StoreToDocumentArchive [08:55:20]shift 544 fd 201774 [08:55:20]save to /storage/0544/doc_00201774 [08:55:20]save last doc name /storage/0544/doc_00201774 to /storage/kkm_last_doc_name [08:55:20]save OK [08:55:20]Clear old archive folders... [08:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:20]tlvbuf is B6F74070 [08:55:20]SAM_PROTO_ClearQueue [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 09 00 00 [08:55:20]Write to MH i2c: E2 08 00 B6 19 80 09 00 00 00 00 00 00 41 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 03 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 03 00 B6 19 00 90 00 43 [08:55:20]RAPDU: 90 00 [08:55:20]wFMCommunicate OK [08:55:20]SAM_PROTO_ClearQueue done [08:55:20]KKMCreateOFDPacket [08:55:20]OFDProtocolAddRootSTLVToBuf [08:55:20]FM_MakeSignedData [08:55:20]FM_MakeSignedData [08:55:20]SAM_PROTO_SignData [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 0D 01 02 [08:55:20]Write to MH i2c: E2 08 00 B7 19 80 0D 01 02 00 00 00 00 49 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 03 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [08:55:20]RAPDU: 90 00 [08:55:20]wFMCommunicate OK [08:55:20]wFMCommunicate request_size=255 [08:55:20]MH_SAM_APDU [08:55: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 32 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 42 00 00 00 F4 03 04 00 FA FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 14 03 00 35 04 06 00 37 [08:55:20]Write to MH i2c: E2 02 01 B8 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 32 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 42 00 00 00 F4 03 04 00 FA FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 14 03 00 35 04 06 00 37 00 00 FC [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 03 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [08:55:20]RAPDU: 90 00 [08:55:20]wFMCommunicate OK [08:55:20]wFMCommunicate request_size=10 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 0D 02 02 05 FB 42 05 1B C4 [08:55:20]Write to MH i2c: E2 0D 00 B9 19 80 0D 02 02 05 00 FB 42 05 1B C4 00 00 77 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 03 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [08:55:20]RAPDU: 90 00 [08:55:20]wFMCommunicate OK [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 0D 03 02 [08:55:20]Write to MH i2c: E2 08 00 BA 19 80 0D 03 02 00 00 00 00 4E [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 0B 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 0B 00 BA 19 00 A6 15 30 C5 4F F0 38 46 90 00 BC [08:55:20]RAPDU: A6 15 30 C5 4F F0 38 46 90 00 [08:55:20]wFMCommunicate OK [08:55:20]SAM_PROTO_SignData done [08:55:20]FM_MakeSignedData done [08:55:20]CreateOFDProtocolMessage [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 11 00 00 [08:55:20]Write to MH i2c: E2 08 00 BB 19 80 11 00 00 00 00 00 00 4E [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 17 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 17 00 BB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A3 [08:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:55:20]wFMCommunicate OK [08:55:20]CreateOFDProtocolMessage done [08:55:20]OFDSenderStorePacket 201774 [08:55:20]StoreOFDPacket docnum=201774 [08:55:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C5 35 07 01 72 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 42 00 00 00 F4 03 04 00 FA FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 14 03 00 35 04 06 00 37 FB 42 05 1B C4 A6 15 30 C5 4F F0 38 46 [08:55:20]CheckFolder [08:55:20]dirname=/storage/ofd_packets [08:55:20]CheckFolder done [08:55:20]ProducePacketName [08:55:20]name=ofd_packets/00201774 [08:55:20]NVStorageSaveData ofd_packets/00201774 [08:55:20]File name is /storage/ofd_packets/00201774 [08:55:20]Write 301 bytes [08:55:20]NVStorageSaveData done [08:55:20]OFDSenderStorePacket done [08:55:20]KKMCreateOFDPacket done [08:55:20]NVStorageSaveData kkm_last_timestamp [08:55:20]File name is /storage/kkm_last_timestamp [08:55:20]Write 4 bytes [08:55:20]NVStorageSaveData done [08:55:20]ExternCall_PrintAddStr [08:55:20]wPrintStart [08:55:20]Write to MH i2c: 01 00 00 BC 19 D5 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: 01 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: 01 07 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 FF 0F EA [08:55:20]RasterBufferAndPrint [08:55:20]line Счет N : (1)449530 [08:55:20]line ИНН: 02508201610067 [08:55:20]line Контрольно-Кассовый Чек [08:55:20]line ПРОДАЖА [08:55:20]line ТРК (МРК, ГНК) : 52 [08:55:20]line Товар: 2710124130 [08:55:20]line Аи-92-К-2 [08:55:20]line 2.990 * 66.90 [08:55:20]line = 200.03 [08:55:20]line НДС 12% НСП 1% [08:55:20]line > о реализуемом товаре [08:55:20]line ОКРУГЛЕНИЕ: -0.03 [08:55:20]line ИТОГО: 200.00 [08:55:20]line Внесено: 200.00 [08:55:20]line СДАЧА: 0.00 [08:55:20]line НСП 1% : 1.77 [08:55:20]line НДС 12% : 21.24 [08:55:20]line Наличными: 200.00 [08:55:20]line Безнал.: 0.00 [08:55:20]line Место: АЗС № 171 "Партнер Нефть" [08:55:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:55:20]line СНО: Общий режим [08:55:20]line Чек 66 27.10.2024 08:55 [08:55:20]line Смена: 544 ФФД: 1.0 [08:55:20]line ЗНМ: 0300000109 [08:55:20]line РНМ: 0000000000091777 [08:55:20]line Версия ККМ: 001 [08:55:20]line ФМ: 0000000000871756 [08:55:20]line ФД: 201774 [08:55:20]line ФПД: 61552283950020 [08:55:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085522&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201774&fm=61552283950020&tin=02508201610067®Number=0000000000091777&sum=20000 [08:55:21]OFD Sender: Processing packet 201774 [packets to send 112, broken 111] [08:55:21]ProducePacketName [08:55:21]name=ofd_packets/00201774 [08:55:21]OFD Sender: To server: pG, [08:55:21]CommunicateWithHost lk.salyk.kg:30040 [08:55:21]ConnectInit lk.salyk.kg [08:55:21]written 0, free lines is 4095 [08:55:21]Connected sock=9 [08:55:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C5 35 07 01 72 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 42 00 00 00 F4 03 04 00 FA FF 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 14 03 00 35 04 06 00 37 FB 42 05 1B C4 A6 15 30 C5 4F F0 38 46 [08:55:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF 18 47 00 17 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 14 03 00 F4 03 04 00 A0 AB 1D 67 B6 04 01 00 00 5E EA 2E 73 45 E0 CC 8B [08:55:21]CommunicateWithHost err = 0 [08:55:21]CheckOFDResponse [08:55:21]1017 (14) - 77093643461234 [08:55:21]1041 (16) - 0000000000871756 [08:55:21]1040 (4) - 201774 [08:55:21]1012 (4) - 27.10.2024 02:55 [08:55:21]1206 (1) - 0 [08:55:21]OFD Sender: Remove packet 201774 [08:55:21]ProducePacketName [08:55:21]name=ofd_packets/00201774 [08:55:21]NVStorageDeleteData [08:55:21]Write to MH i2c: 01 00 00 E7 19 00 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: 01 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: 01 07 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: 01 07 00 E7 19 00 00 00 00 00 9A 0C AD [08:55:21]RasterBufferAndPrint [08:55:21]line [08:55:21]line [08:55:21]line [08:55:21]line [08:55:21]line [08:55:21]written 0, free lines is 3233 [08:55:21]MH_Cut [08:55:21]Write to MH i2c: D1 01 00 EE 19 01 D9 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: D1 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: D1 01 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: D1 01 00 EE 19 00 D8 [08:55:21]Write to MH i2c: 01 00 00 EF 19 08 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]OFD Sender: No OFD packet to send [08:55:22]*** Cut start [08:55:22]*** Purtial cut [08:55:22]*** Stage 1: CUTSNS_PIN = 1 [08:55:22]Read from MH i2c: 01 [08:55:22]MH_I2C_Read... [08:55:22]*** Stop cut motor [08:55:22]*** Cut end [08:55:22]Read from MH i2c: 01 07 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: 01 07 00 EF 19 00 00 00 00 00 FF 0F 1D [08:55:22]process_action close_receipt done [08:55:22]requested_data is exist [08:55:22]produce_requested_data [08:55:22]requested_item fm.sn is exist - process it [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 11 00 00 [08:55:22]Write to MH i2c: E2 08 00 F0 19 80 11 00 00 00 00 00 00 83 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 17 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 17 00 F0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D8 [08:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:55:22]wFMCommunicate OK [08:55:22]requested_item fd.num is exist - process it [08:55:22]SAM_PROTO_GetFieldsCounters [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 13 00 00 [08:55:22]Write to MH i2c: E2 08 00 F1 19 80 13 00 00 00 00 00 00 86 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 62 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 62 00 F1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2E 14 03 00 0E 04 04 00 20 02 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 DC [08:55:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2E 14 03 00 0E 04 04 00 20 02 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 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_GetFieldsCounters done [08:55:22]requested_item shift.num is exist - process it [08:55:22]requested_item shift.opened is exist - process it [08:55:22]req_shift_opened [08:55:22]FM_GetShiftState [08:55:22]SAM_PROTO_GetShiftState [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 13 01 00 [08:55:22]Write to MH i2c: E2 08 00 F2 19 80 13 01 00 00 00 00 00 88 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0E 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0E 00 F2 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8A [08:55:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_GetShiftState done [08:55:22]FM_GetShiftState done [08:55:22]req_shift_opened done [08:55:22]requested_item shift.open_date is exist - process it [08:55:22]req_shift_open_date [08:55:22]req_shift_open_date done [08:55:22]produce_requested_data done [08:55:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201774,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [08:55:22]process_action_free close_receipt [08:55:22]json_value_free [08:55:22]json_value_free done [08:55:22]process_json_proto returns [08:55:22]Send response to host [08:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201774,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [08:55:22]free response buf [08:55:22]execute_script done [08:55:22]execute_script returns [08:55:22]free content buf [08:55:22]Sock 8.Close socket [08:55:22]Sock 8.Thread stoped [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:31]accept exits with 10 [09:01:31]New connection [09:01:31]New thread 3067080036 created [09:01:31]Thread 3066936676 joined [09:01:31]Waiting for new connection... [09:01:31] Sock 10.Parse request [09:01:31]Sock 10.Check first char [09:01:31]Sock 10.First char is OK [09:01:31]request: POST /json_proto HTTP/1.0 [09:01:31]Method: POST [09:01:31]URL: /json_proto [09:01:31]Method is POST - this is cgi request [09:01:31]url: /json_proto [09:01:31]query_string will be loaded in cgi processing [09:01:31]execute_cgi json_proto POST (null) [09:01:31]execute_cgi path=json_proto method=POST [09:01:31]POST find Content-Length [09:01:31]Host: 172.17.63.195:8080 [09:01:31]Content-Length: 682 [09:01:31]Content-Type: application/json [09:01:31] [09:01:31]POST finish read [09:01:31]Found Content-Length = 682 [09:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [09:01:31]execute_script... [09:01:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [09:01:31]POST & json_proto [09:01:31]process_json_proto [09:01:31]json parsed OK: [09:01:31]protocol is kg_v1.0 [09:01:31]action value=close_receipt [09:01:31]process_action close_receipt [09:01:31]cmd_close_receipt [09:01:31]MH_GetDate [09:01:31]Write to MH i2c: F0 00 00 F3 19 FB [09:01:31]Write i2c OK [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: F0 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: F0 09 00 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: F0 09 00 F3 19 00 6F 01 1E 67 68 46 19 67 27 [09:01:31]GetLastDocTimeStamp 1730019322 [09:01:31]current date 1730019695 [09:01:31]FM_GetShiftState [09:01:31]SAM_PROTO_GetShiftState [09:01:31]wFMCommunicate request_size=4 [09:01:31]MH_SAM_APDU [09:01:31]CAPDU: 80 13 01 00 [09:01:31]Write to MH i2c: E2 08 00 F4 19 80 13 01 00 00 00 00 00 8A [09:01:31]Write i2c OK [09:01:31]MH_I2C_Read... [09:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:31]Read from MH i2c: E2 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 0E 00 [09:01:31]MH_I2C_Read... [09:01:31]Read from MH i2c: E2 0E 00 F4 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8C [09:01:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:01:31]wFMCommunicate OK [09:01:31]SAM_PROTO_GetShiftState done [09:01:31]FM_GetShiftState done [09:01:31]opened in 1729987312 [09:01:31]opened+sec_in_day 1730073712 [09:01:31]quantity*price = 100021 [09:01:31]sum+1 = 100023 [09:01:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 67 27.10.2024 09:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201775 ФПД: 176417167087730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090135&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201775&fm=176417167087730&tin=02508201610067®Number=0000000000091777&sum=100000 [09:01:32]StoreToDocumentArchive [09:01:32]shift 544 fd 201775 [09:01:32]save to /storage/0544/doc_00201775 [09:01:32]save last doc name /storage/0544/doc_00201775 to /storage/kkm_last_doc_name [09:01:32]save OK [09:01:32]Clear old archive folders... [09:01:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:32]tlvbuf is 000D9370 [09:01:32]SAM_PROTO_ClearQueue [09:01:32]wFMCommunicate request_size=4 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 09 00 00 [09:01:32]Write to MH i2c: E2 08 00 01 1A 80 09 00 00 00 00 00 00 8D [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 03 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [09:01:32]RAPDU: 90 00 [09:01:32]wFMCommunicate OK [09:01:32]SAM_PROTO_ClearQueue done [09:01:32]KKMCreateOFDPacket [09:01:32]OFDProtocolAddRootSTLVToBuf [09:01:32]FM_MakeSignedData [09:01:32]FM_MakeSignedData [09:01:32]SAM_PROTO_SignData [09:01:32]wFMCommunicate request_size=4 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 0D 01 02 [09:01:32]Write to MH i2c: E2 08 00 02 1A 80 0D 01 02 00 00 00 00 95 [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 03 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [09:01:32]RAPDU: 90 00 [09:01:32]wFMCommunicate OK [09:01:32]wFMCommunicate request_size=255 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 43 00 00 00 F4 03 04 00 6F 01 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 14 03 00 35 04 06 00 A0 [09:01:32]Write to MH i2c: E2 02 01 03 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 43 00 00 00 F4 03 04 00 6F 01 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 14 03 00 35 04 06 00 A0 00 00 87 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 03 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [09:01:33]RAPDU: 90 00 [09:01:33]wFMCommunicate OK [09:01:33]wFMCommunicate request_size=10 [09:01:33]MH_SAM_APDU [09:01:33]CAPDU: 80 0D 02 02 05 73 52 93 98 72 [09:01:33]Write to MH i2c: E2 0D 00 04 1A 80 0D 02 02 05 00 73 52 93 98 72 00 00 04 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 03 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 03 00 04 1A 00 90 00 92 [09:01:33]RAPDU: 90 00 [09:01:33]wFMCommunicate OK [09:01:33]wFMCommunicate request_size=4 [09:01:33]MH_SAM_APDU [09:01:33]CAPDU: 80 0D 03 02 [09:01:33]Write to MH i2c: E2 08 00 05 1A 80 0D 03 02 00 00 00 00 9A [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 0B 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 0B 00 05 1A 00 89 C2 65 22 20 63 F8 8A 90 00 72 [09:01:33]RAPDU: 89 C2 65 22 20 63 F8 8A 90 00 [09:01:33]wFMCommunicate OK [09:01:33]SAM_PROTO_SignData done [09:01:33]FM_MakeSignedData done [09:01:33]CreateOFDProtocolMessage [09:01:33]wFMCommunicate request_size=4 [09:01:33]MH_SAM_APDU [09:01:33]CAPDU: 80 11 00 00 [09:01:33]Write to MH i2c: E2 08 00 06 1A 80 11 00 00 00 00 00 00 9A [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:33]Read from MH i2c: E2 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 17 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: E2 17 00 06 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EF [09:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:01:33]wFMCommunicate OK [09:01:33]CreateOFDProtocolMessage done [09:01:33]OFDSenderStorePacket 201775 [09:01:33]StoreOFDPacket docnum=201775 [09:01:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4E FA 07 01 B9 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 43 00 00 00 F4 03 04 00 6F 01 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 14 03 00 35 04 06 00 A0 73 52 93 98 72 89 C2 65 22 20 63 F8 8A [09:01:33]CheckFolder [09:01:33]dirname=/storage/ofd_packets [09:01:33]CheckFolder done [09:01:33]ProducePacketName [09:01:33]name=ofd_packets/00201775 [09:01:33]NVStorageSaveData ofd_packets/00201775 [09:01:33]File name is /storage/ofd_packets/00201775 [09:01:33]Write 301 bytes [09:01:33]NVStorageSaveData done [09:01:33]OFDSenderStorePacket done [09:01:33]KKMCreateOFDPacket done [09:01:33]NVStorageSaveData kkm_last_timestamp [09:01:33]File name is /storage/kkm_last_timestamp [09:01:33]Write 4 bytes [09:01:33]NVStorageSaveData done [09:01:33]ExternCall_PrintAddStr [09:01:33]wPrintStart [09:01:33]Write to MH i2c: 01 00 00 07 1A 21 [09:01:33]Write i2c OK [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: 01 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: 01 07 00 [09:01:33]MH_I2C_Read... [09:01:33]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 FF 0F 36 [09:01:33]RasterBufferAndPrint [09:01:33]line Счет N : (1)449531 [09:01:33]line ИНН: 02508201610067 [09:01:33]line Контрольно-Кассовый Чек [09:01:33]line ПРОДАЖА [09:01:33]line ТРК (МРК, ГНК) : 61 [09:01:33]line Товар: 2710124500 [09:01:33]line Аи-95-К-3 [09:01:33]line 13.480 * 74.20 [09:01:33]line = 1000.22 [09:01:33]line НДС 12% НСП 1% [09:01:33]line > о реализуемом товаре [09:01:33]line ОКРУГЛЕНИЕ: -0.22 [09:01:33]line ИТОГО: 1000.00 [09:01:33]line Внесено: 1000.00 [09:01:33]line СДАЧА: 0.00 [09:01:33]line НСП 1% : 8.85 [09:01:33]line НДС 12% : 106.22 [09:01:33]line Наличными: 1000.00 [09:01:33]line Безнал.: 0.00 [09:01:33]line Место: АЗС № 171 "Партнер Нефть" [09:01:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:01:33]line СНО: Общий режим [09:01:33]line Чек 67 27.10.2024 09:01 [09:01:33]line Смена: 544 ФФД: 1.0 [09:01:33]line ЗНМ: 0300000109 [09:01:33]line РНМ: 0000000000091777 [09:01:33]line Версия ККМ: 001 [09:01:33]line ФМ: 0000000000871756 [09:01:33]line ФД: 201775 [09:01:33]line ФПД: 176417167087730 [09:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090135&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201775&fm=176417167087730&tin=02508201610067®Number=0000000000091777&sum=100000 [09:01:33]OFD Sender: Processing packet 201775 [packets to send 112, broken 111] [09:01:33]ProducePacketName [09:01:33]name=ofd_packets/00201775 [09:01:33]OFD Sender: To server: pG, [09:01:33]CommunicateWithHost lk.salyk.kg:30040 [09:01:33]ConnectInit lk.salyk.kg [09:01:33]written 0, free lines is 4095 [09:01:33]Connected sock=9 [09:01:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4E FA 07 01 B9 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 43 00 00 00 F4 03 04 00 6F 01 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 14 03 00 35 04 06 00 A0 73 52 93 98 72 89 C2 65 22 20 63 F8 8A [09:01:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6B 6B 47 00 8E 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 14 03 00 F4 03 04 00 15 AD 1D 67 B6 04 01 00 00 74 86 D6 D5 9A 2F 9C B1 [09:01:34]CommunicateWithHost err = 0 [09:01:34]CheckOFDResponse [09:01:34]1017 (14) - 77093643461234 [09:01:34]1041 (16) - 0000000000871756 [09:01:34]1040 (4) - 201775 [09:01:34]1012 (4) - 27.10.2024 03:01 [09:01:34]1206 (1) - 0 [09:01:34]OFD Sender: Remove packet 201775 [09:01:34]ProducePacketName [09:01:34]name=ofd_packets/00201775 [09:01:34]NVStorageDeleteData [09:01:34]Write to MH i2c: 01 00 00 32 1A 4C [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: 01 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: 01 07 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: 01 07 00 32 1A 00 00 00 00 00 92 0C F1 [09:01:34]RasterBufferAndPrint [09:01:34]line [09:01:34]line [09:01:34]line [09:01:34]line [09:01:34]line [09:01:34]written 0, free lines is 3223 [09:01:34]MH_Cut [09:01:34]Write to MH i2c: D1 01 00 39 1A 01 25 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: D1 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: D1 01 00 [09:01:34]MH_I2C_Read... [09:01:34]Read from MH i2c: D1 01 00 39 1A 00 24 [09:01:34]Write to MH i2c: 01 00 00 3A 1A 54 [09:01:34]Write i2c OK [09:01:34]MH_I2C_Read... [09:01:34]OFD Sender: No OFD packet to send [09:01:35]*** Cut start [09:01:35]*** Purtial cut [09:01:35]*** Stage 1: CUTSNS_PIN = 1 [09:01:35]Read from MH i2c: 01 [09:01:35]MH_I2C_Read... [09:01:35]*** Stop cut motor [09:01:35]*** Cut end [09:01:35]Read from MH i2c: 01 07 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: 01 07 00 3A 1A 00 00 00 00 00 FF 0F 69 [09:01:35]process_action close_receipt done [09:01:35]requested_data is exist [09:01:35]produce_requested_data [09:01:35]requested_item fm.sn is exist - process it [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 11 00 00 [09:01:35]Write to MH i2c: E2 08 00 3B 1A 80 11 00 00 00 00 00 00 CF [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 17 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 17 00 3B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 24 [09:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:01:35]wFMCommunicate OK [09:01:35]requested_item fd.num is exist - process it [09:01:35]SAM_PROTO_GetFieldsCounters [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 13 00 00 [09:01:35]Write to MH i2c: E2 08 00 3C 1A 80 13 00 00 00 00 00 00 D2 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 62 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 62 00 3C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2F 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09:01:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2F 14 03 00 0E 04 04 00 20 02 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 [09:01:35]wFMCommunicate OK [09:01:35]SAM_PROTO_GetFieldsCounters done [09:01:35]requested_item shift.num is exist - process it [09:01:35]requested_item shift.opened is exist - process it [09:01:35]req_shift_opened [09:01:35]FM_GetShiftState [09:01:35]SAM_PROTO_GetShiftState [09:01:35]wFMCommunicate request_size=4 [09:01:35]MH_SAM_APDU [09:01:35]CAPDU: 80 13 01 00 [09:01:35]Write to MH i2c: E2 08 00 3D 1A 80 13 01 00 00 00 00 00 D4 [09:01:35]Write i2c OK [09:01:35]MH_I2C_Read... [09:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:35]Read from MH i2c: E2 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 0E 00 [09:01:35]MH_I2C_Read... [09:01:35]Read from MH i2c: E2 0E 00 3D 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D6 [09:01:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:01:35]wFMCommunicate OK [09:01:35]SAM_PROTO_GetShiftState done [09:01:35]FM_GetShiftState done [09:01:35]req_shift_opened done [09:01:35]requested_item shift.open_date is exist - process it [09:01:35]req_shift_open_date [09:01:35]req_shift_open_date done [09:01:35]produce_requested_data done [09:01:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201775,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:01:35]process_action_free close_receipt [09:01:35]json_value_free [09:01:35]json_value_free done [09:01:35]process_json_proto returns [09:01:35]Send response to host [09:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201775,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:01:35]free response buf [09:01:35]execute_script done [09:01:35]execute_script returns [09:01:35]free content buf [09:01:35]Sock 10.Close socket [09:01:35]Sock 10.Thread stoped [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]accept exits with 8 [09:02:14]New connection [09:02:14]New thread 3066936676 created [09:02:14]Thread 3067080036 joined [09:02:14]Waiting for new connection... [09:02:14] Sock 8.Parse request [09:02:14]Sock 8.Check first char [09:02:14]Sock 8.First char is OK [09:02:14]request: POST /json_proto HTTP/1.0 [09:02:14]Method: POST [09:02:14]URL: /json_proto [09:02:14]Method is POST - this is cgi request [09:02:14]url: /json_proto [09:02:14]query_string will be loaded in cgi processing [09:02:14]execute_cgi json_proto POST (null) [09:02:14]execute_cgi path=json_proto method=POST [09:02:14]POST find Content-Length [09:02:14]Host: 172.17.63.195:8080 [09:02:14]Content-Length: 677 [09:02:14]Content-Type: application/json [09:02:14] [09:02:14]POST finish read [09:02:14]Found Content-Length = 677 [09:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:02:14]execute_script... [09:02: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)449532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:02:14]POST & json_proto [09:02:14]process_json_proto [09:02:14]json parsed OK: [09:02:14]protocol is kg_v1.0 [09:02:14]action value=close_receipt [09:02:14]process_action close_receipt [09:02:14]cmd_close_receipt [09:02:14]MH_GetDate [09:02:14]Write to MH i2c: F0 00 00 3E 1A 47 [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: F0 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: F0 09 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: F0 09 00 3E 1A 00 99 01 1E 67 68 46 19 67 9D [09:02:14]GetLastDocTimeStamp 1730019695 [09:02:14]current date 1730019737 [09:02:14]FM_GetShiftState [09:02:14]SAM_PROTO_GetShiftState [09:02:14]wFMCommunicate request_size=4 [09:02:14]MH_SAM_APDU [09:02:14]CAPDU: 80 13 01 00 [09:02:14]Write to MH i2c: E2 08 00 3F 1A 80 13 01 00 00 00 00 00 D6 [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:14]Read from MH i2c: E2 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 0E 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: E2 0E 00 3F 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [09:02:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:02:14]wFMCommunicate OK [09:02:14]SAM_PROTO_GetShiftState done [09:02:14]FM_GetShiftState done [09:02:14]opened in 1729987312 [09:02:14]opened+sec_in_day 1730073712 [09:02:14]quantity*price = 30038 [09:02:14]sum+1 = 30039 [09:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 68 27.10.2024 09:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201776 ФПД: 273032881830670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090217&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201776&fm=273032881830670&tin=02508201610067®Number=0000000000091777&sum=30000 [09:02:15]StoreToDocumentArchive [09:02:15]shift 544 fd 201776 [09:02:15]save to /storage/0544/doc_00201776 [09:02:15]save last doc name /storage/0544/doc_00201776 to /storage/kkm_last_doc_name [09:02:15]save OK [09:02:15]Clear old archive folders... [09:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:15]tlvbuf is B6EE0140 [09:02:15]SAM_PROTO_ClearQueue [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 09 00 00 [09:02:15]Write to MH i2c: E2 08 00 4C 1A 80 09 00 00 00 00 00 00 D8 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_ClearQueue done [09:02:15]KKMCreateOFDPacket [09:02:15]OFDProtocolAddRootSTLVToBuf [09:02:15]FM_MakeSignedData [09:02:15]FM_MakeSignedData [09:02:15]SAM_PROTO_SignData [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 0D 01 02 [09:02:15]Write to MH i2c: E2 08 00 4D 1A 80 0D 01 02 00 00 00 00 E0 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]wFMCommunicate request_size=255 [09:02:15]MH_SAM_APDU [09:02: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 32 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 44 00 00 00 F4 03 04 00 99 01 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 14 03 00 35 04 06 00 F8 [09:02:15]Write to MH i2c: E2 02 01 4E 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 00 00 00 F4 03 04 00 99 01 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 14 03 00 35 04 06 00 F8 00 00 2C [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]wFMCommunicate request_size=10 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 0D 02 02 05 52 6B EE FB 0E [09:02:15]Write to MH i2c: E2 0D 00 4F 1A 80 0D 02 02 05 00 52 6B EE FB 0E 00 00 A1 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 0D 03 02 [09:02:15]Write to MH i2c: E2 08 00 50 1A 80 0D 03 02 00 00 00 00 E5 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 0B 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 0B 00 50 1A 00 63 99 B8 D0 29 7F FF 44 90 00 55 [09:02:15]RAPDU: 63 99 B8 D0 29 7F FF 44 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_SignData done [09:02:15]FM_MakeSignedData done [09:02:15]CreateOFDProtocolMessage [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 11 00 00 [09:02:15]Write to MH i2c: E2 08 00 51 1A 80 11 00 00 00 00 00 00 E5 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 17 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 17 00 51 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3A [09:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:02:15]wFMCommunicate OK [09:02:15]CreateOFDProtocolMessage done [09:02:15]OFDSenderStorePacket 201776 [09:02:15]StoreOFDPacket docnum=201776 [09:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6B F1 07 01 A6 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 00 00 00 F4 03 04 00 99 01 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 14 03 00 35 04 06 00 F8 52 6B EE FB 0E 63 99 B8 D0 29 7F FF 44 [09:02:15]CheckFolder [09:02:15]dirname=/storage/ofd_packets [09:02:15]CheckFolder done [09:02:15]ProducePacketName [09:02:15]name=ofd_packets/00201776 [09:02:15]NVStorageSaveData ofd_packets/00201776 [09:02:15]File name is /storage/ofd_packets/00201776 [09:02:15]Write 301 bytes [09:02:15]NVStorageSaveData done [09:02:15]OFDSenderStorePacket done [09:02:15]KKMCreateOFDPacket done [09:02:15]NVStorageSaveData kkm_last_timestamp [09:02:15]File name is /storage/kkm_last_timestamp [09:02:15]Write 4 bytes [09:02:15]NVStorageSaveData done [09:02:15]ExternCall_PrintAddStr [09:02:15]wPrintStart [09:02:15]Write to MH i2c: 01 00 00 52 1A 6C [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: 01 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: 01 07 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: 01 07 00 52 1A 00 00 00 00 00 FF 0F 81 [09:02:15]RasterBufferAndPrint [09:02:15]line Счет N : (1)449532 [09:02:15]line ИНН: 02508201610067 [09:02:15]line Контрольно-Кассовый Чек [09:02:15]line ПРОДАЖА [09:02:15]line ТРК (МРК, ГНК) : 41 [09:02:15]line Товар: 2710124130 [09:02:15]line Аи-92-К-2 [09:02:15]line 4.490 * 66.90 [09:02:15]line = 300.38 [09:02:15]line НДС 12% НСП 1% [09:02:15]line > о реализуемом товаре [09:02:15]line ОКРУГЛЕНИЕ: -0.38 [09:02:15]line ИТОГО: 300.00 [09:02:15]line Внесено: 300.00 [09:02:15]line СДАЧА: 0.00 [09:02:15]line НСП 1% : 2.66 [09:02:15]line НДС 12% : 31.90 [09:02:15]line Наличными: 300.00 [09:02:15]line Безнал.: 0.00 [09:02:15]line Место: АЗС № 171 "Партнер Нефть" [09:02:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:02:15]line СНО: Общий режим [09:02:15]line Чек 68 27.10.2024 09:02 [09:02:15]line Смена: 544 ФФД: 1.0 [09:02:15]line ЗНМ: 0300000109 [09:02:15]line РНМ: 0000000000091777 [09:02:15]line Версия ККМ: 001 [09:02:15]line ФМ: 0000000000871756 [09:02:15]line ФД: 201776 [09:02:15]line ФПД: 273032881830670 [09:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090217&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201776&fm=273032881830670&tin=02508201610067®Number=0000000000091777&sum=30000 [09:02:16]OFD Sender: Processing packet 201776 [packets to send 112, broken 111] [09:02:16]ProducePacketName [09:02:16]name=ofd_packets/00201776 [09:02:16]OFD Sender: To server: pG, [09:02:16]CommunicateWithHost lk.salyk.kg:30040 [09:02:16]ConnectInit lk.salyk.kg [09:02:16]written 0, free lines is 4095 [09:02:16]Connected sock=10 [09:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6B F1 07 01 A6 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 00 00 00 F4 03 04 00 99 01 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 14 03 00 35 04 06 00 F8 52 6B EE FB 0E 63 99 B8 D0 29 7F FF 44 [09:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 84 93 47 00 84 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 14 03 00 F4 03 04 00 3F AD 1D 67 B6 04 01 00 00 98 E2 BB 78 1E 4C 54 9C [09:02:16]CommunicateWithHost err = 0 [09:02:16]CheckOFDResponse [09:02:16]1017 (14) - 77093643461234 [09:02:16]1041 (16) - 0000000000871756 [09:02:16]1040 (4) - 201776 [09:02:16]1012 (4) - 27.10.2024 03:02 [09:02:16]1206 (1) - 0 [09:02:16]OFD Sender: Remove packet 201776 [09:02:16]ProducePacketName [09:02:16]name=ofd_packets/00201776 [09:02:16]NVStorageDeleteData [09:02:16]Write to MH i2c: 01 00 00 7D 1A 97 [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 07 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 07 00 7D 1A 00 00 00 00 00 A8 0C 52 [09:02:16]RasterBufferAndPrint [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]written 0, free lines is 3244 [09:02:16]MH_Cut [09:02:16]Write to MH i2c: D1 01 00 84 1A 01 70 [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: D1 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: D1 01 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: D1 01 00 84 1A 00 6F [09:02:16]Write to MH i2c: 01 00 00 85 1A 9F [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:17]OFD Sender: No OFD packet to send [09:02:17]*** Cut start [09:02:17]*** Purtial cut [09:02:17]*** Stage 1: CUTSNS_PIN = 1 [09:02:17]Read from MH i2c: 01 [09:02:17]MH_I2C_Read... [09:02:17]*** Stop cut motor [09:02:17]*** Cut end [09:02:17]Read from MH i2c: 01 07 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: 01 07 00 85 1A 00 00 00 00 00 FF 0F B4 [09:02:17]process_action close_receipt done [09:02:17]requested_data is exist [09:02:17]produce_requested_data [09:02:17]requested_item fm.sn is exist - process it [09:02:17]wFMCommunicate request_size=4 [09:02:17]MH_SAM_APDU [09:02:17]CAPDU: 80 11 00 00 [09:02:17]Write to MH i2c: E2 08 00 86 1A 80 11 00 00 00 00 00 00 1A [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:17]Read from MH i2c: E2 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 17 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 17 00 86 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6F [09:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:02:17]wFMCommunicate OK [09:02:17]requested_item fd.num is exist - process it [09:02:17]SAM_PROTO_GetFieldsCounters [09:02:17]wFMCommunicate request_size=4 [09:02:17]MH_SAM_APDU [09:02:17]CAPDU: 80 13 00 00 [09:02:17]Write to MH i2c: E2 08 00 87 1A 80 13 00 00 00 00 00 00 1D [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:17]Read from MH i2c: E2 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 62 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 62 00 87 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 30 14 03 00 0E 04 04 00 20 02 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 7B [09:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 30 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:17]wFMCommunicate OK [09:02:17]SAM_PROTO_GetFieldsCounters done [09:02:17]requested_item shift.num is exist - process it [09:02:17]requested_item shift.opened is exist - process it [09:02:17]req_shift_opened [09:02:17]FM_GetShiftState [09:02:17]SAM_PROTO_GetShiftState [09:02:17]wFMCommunicate request_size=4 [09:02:17]MH_SAM_APDU [09:02:17]CAPDU: 80 13 01 00 [09:02:17]Write to MH i2c: E2 08 00 88 1A 80 13 01 00 00 00 00 00 1F [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 0E 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 0E 00 88 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [09:02:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:02:18]wFMCommunicate OK [09:02:18]SAM_PROTO_GetShiftState done [09:02:18]FM_GetShiftState done [09:02:18]req_shift_opened done [09:02:18]requested_item shift.open_date is exist - process it [09:02:18]req_shift_open_date [09:02:18]req_shift_open_date done [09:02:18]produce_requested_data done [09:02:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201776,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:02:18]process_action_free close_receipt [09:02:18]json_value_free [09:02:18]json_value_free done [09:02:18]process_json_proto returns [09:02:18]Send response to host [09:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201776,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:02:18]free response buf [09:02:18]execute_script done [09:02:18]execute_script returns [09:02:18]free content buf [09:02:18]Sock 8.Close socket [09:02:18]Sock 8.Thread stoped [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:03:59]accept exits with 9 [09:03:59]New connection [09:03:59]New thread 3067080036 created [09:03:59]Thread 3066936676 joined [09:03:59]Waiting for new connection... [09:03:59] Sock 9.Parse request [09:03:59]Sock 9.Check first char [09:03:59]Sock 9.First char is OK [09:03:59]request: POST /json_proto HTTP/1.0 [09:03:59]Method: POST [09:03:59]URL: /json_proto [09:03:59]Method is POST - this is cgi request [09:03:59]url: /json_proto [09:03:59]query_string will be loaded in cgi processing [09:03:59]execute_cgi json_proto POST (null) [09:03:59]execute_cgi path=json_proto method=POST [09:03:59]POST find Content-Length [09:03:59]Host: 172.17.63.195:8080 [09:03:59]Content-Length: 677 [09:03:59]Content-Type: application/json [09:03:59] [09:03:59]POST finish read [09:03:59]Found Content-Length = 677 [09:03:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:03:59]execute_script... [09:03:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:03:59]POST & json_proto [09:03:59]process_json_proto [09:03:59]json parsed OK: [09:03:59]protocol is kg_v1.0 [09:03:59]action value=close_receipt [09:03:59]process_action close_receipt [09:03:59]cmd_close_receipt [09:03:59]MH_GetDate [09:03:59]Write to MH i2c: F0 00 00 89 1A 92 [09:03:59]Write i2c OK [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: F0 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: F0 09 00 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: F0 09 00 89 1A 00 03 02 1E 67 68 46 19 67 53 [09:03:59]GetLastDocTimeStamp 1730019737 [09:03:59]current date 1730019843 [09:03:59]FM_GetShiftState [09:03:59]SAM_PROTO_GetShiftState [09:03:59]wFMCommunicate request_size=4 [09:03:59]MH_SAM_APDU [09:03:59]CAPDU: 80 13 01 00 [09:03:59]Write to MH i2c: E2 08 00 8A 1A 80 13 01 00 00 00 00 00 21 [09:03:59]Write i2c OK [09:03:59]MH_I2C_Read... [09:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:59]Read from MH i2c: E2 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 0E 00 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 0E 00 8A 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 23 [09:03:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:03:59]wFMCommunicate OK [09:03:59]SAM_PROTO_GetShiftState done [09:03:59]FM_GetShiftState done [09:03:59]opened in 1729987312 [09:03:59]opened+sec_in_day 1730073712 [09:03:59]quantity*price = 60009 [09:03:59]sum+1 = 60010 [09:03:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 69 27.10.2024 09:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201777 ФПД: 150362909000014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201777&fm=150362909000014&tin=02508201610067®Number=0000000000091777&sum=60000 [09:04:00]StoreToDocumentArchive [09:04:00]shift 544 fd 201777 [09:04:00]save to /storage/0544/doc_00201777 [09:04:00]save last doc name /storage/0544/doc_00201777 to /storage/kkm_last_doc_name [09:04:00]save OK [09:04:00]Clear old archive folders... [09:04:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:00]tlvbuf is 001209A0 [09:04:00]SAM_PROTO_ClearQueue [09:04:00]wFMCommunicate request_size=4 [09:04:00]MH_SAM_APDU [09:04:00]CAPDU: 80 09 00 00 [09:04:00]Write to MH i2c: E2 08 00 97 1A 80 09 00 00 00 00 00 00 23 [09:04:00]Write i2c OK [09:04:00]MH_I2C_Read... [09:04:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:00]Read from MH i2c: E2 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: E2 03 00 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [09:04:00]RAPDU: 90 00 [09:04:00]wFMCommunicate OK [09:04:00]SAM_PROTO_ClearQueue done [09:04:00]KKMCreateOFDPacket [09:04:00]OFDProtocolAddRootSTLVToBuf [09:04:00]FM_MakeSignedData [09:04:00]FM_MakeSignedData [09:04:00]SAM_PROTO_SignData [09:04:00]wFMCommunicate request_size=4 [09:04:00]MH_SAM_APDU [09:04:00]CAPDU: 80 0D 01 02 [09:04:00]Write to MH i2c: E2 08 00 98 1A 80 0D 01 02 00 00 00 00 2B [09:04:00]Write i2c OK [09:04:00]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [09:04:01]RAPDU: 90 00 [09:04:01]wFMCommunicate OK [09:04:01]wFMCommunicate request_size=255 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 45 00 00 00 F4 03 04 00 03 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 14 03 00 35 04 06 00 88 [09:04:01]Write to MH i2c: E2 02 01 99 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 45 00 00 00 F4 03 04 00 03 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 14 03 00 35 04 06 00 88 00 00 5D [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [09:04:01]RAPDU: 90 00 [09:04:01]wFMCommunicate OK [09:04:01]wFMCommunicate request_size=10 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 0D 02 02 05 C1 17 C7 41 4E [09:04:01]Write to MH i2c: E2 0D 00 9A 1A 80 0D 02 02 05 00 C1 17 C7 41 4E 00 00 66 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [09:04:01]RAPDU: 90 00 [09:04:01]wFMCommunicate OK [09:04:01]wFMCommunicate request_size=4 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 0D 03 02 [09:04:01]Write to MH i2c: E2 08 00 9B 1A 80 0D 03 02 00 00 00 00 30 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 0B 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 0B 00 9B 1A 00 09 47 42 95 67 65 97 6C 90 00 27 [09:04:01]RAPDU: 09 47 42 95 67 65 97 6C 90 00 [09:04:01]wFMCommunicate OK [09:04:01]SAM_PROTO_SignData done [09:04:01]FM_MakeSignedData done [09:04:01]CreateOFDProtocolMessage [09:04:01]wFMCommunicate request_size=4 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 11 00 00 [09:04:01]Write to MH i2c: E2 08 00 9C 1A 80 11 00 00 00 00 00 00 30 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 17 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 17 00 9C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 85 [09:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:01]wFMCommunicate OK [09:04:01]CreateOFDProtocolMessage done [09:04:01]OFDSenderStorePacket 201777 [09:04:01]StoreOFDPacket docnum=201777 [09:04:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 11 FC 07 01 6F 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 32 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 45 00 00 00 F4 03 04 00 03 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 14 03 00 35 04 06 00 88 C1 17 C7 41 4E 09 47 42 95 67 65 97 6C [09:04:01]CheckFolder [09:04:01]dirname=/storage/ofd_packets [09:04:01]CheckFolder done [09:04:01]ProducePacketName [09:04:01]name=ofd_packets/00201777 [09:04:01]NVStorageSaveData ofd_packets/00201777 [09:04:01]File name is /storage/ofd_packets/00201777 [09:04:01]Write 301 bytes [09:04:01]NVStorageSaveData done [09:04:01]OFDSenderStorePacket done [09:04:01]KKMCreateOFDPacket done [09:04:01]NVStorageSaveData kkm_last_timestamp [09:04:01]File name is /storage/kkm_last_timestamp [09:04:01]Write 4 bytes [09:04:01]NVStorageSaveData done [09:04:01]ExternCall_PrintAddStr [09:04:01]wPrintStart [09:04:01]Write to MH i2c: 01 00 00 9D 1A B7 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: 01 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: 01 07 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [09:04:01]RasterBufferAndPrint [09:04:01]line Счет N : (1)449533 [09:04:01]line ИНН: 02508201610067 [09:04:01]line Контрольно-Кассовый Чек [09:04:01]line ПРОДАЖА [09:04:01]line ТРК (МРК, ГНК) : 52 [09:04:01]line Товар: 2710124130 [09:04:01]line Аи-92-К-2 [09:04:01]line 8.970 * 66.90 [09:04:01]line = 600.09 [09:04:01]line НДС 12% НСП 1% [09:04:01]line > о реализуемом товаре [09:04:01]line ОКРУГЛЕНИЕ: -0.09 [09:04:01]line ИТОГО: 600.00 [09:04:01]line Внесено: 600.00 [09:04:01]line СДАЧА: 0.00 [09:04:01]line НСП 1% : 5.31 [09:04:01]line НДС 12% : 63.73 [09:04:01]line Наличными: 600.00 [09:04:01]line Безнал.: 0.00 [09:04:01]line Место: АЗС № 171 "Партнер Нефть" [09:04:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:04:01]line СНО: Общий режим [09:04:01]line Чек 69 27.10.2024 09:04 [09:04:01]line Смена: 544 ФФД: 1.0 [09:04:01]line ЗНМ: 0300000109 [09:04:01]line РНМ: 0000000000091777 [09:04:01]line Версия ККМ: 001 [09:04:01]line ФМ: 0000000000871756 [09:04:01]line ФД: 201777 [09:04:01]line ФПД: 150362909000014 [09:04:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201777&fm=150362909000014&tin=02508201610067®Number=0000000000091777&sum=60000 [09:04:01]OFD Sender: Processing packet 201777 [packets to send 112, broken 111] [09:04:01]ProducePacketName [09:04:01]name=ofd_packets/00201777 [09:04:01]OFD Sender: To server: pG, [09:04:01]CommunicateWithHost lk.salyk.kg:30040 [09:04:01]ConnectInit lk.salyk.kg [09:04:01]written 0, free lines is 4095 [09:04:01]Connected sock=10 [09:04:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 11 FC 07 01 6F 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 32 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 45 00 00 00 F4 03 04 00 03 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 14 03 00 35 04 06 00 88 C1 17 C7 41 4E 09 47 42 95 67 65 97 6C [09:04:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3A 6A 47 00 38 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 14 03 00 F4 03 04 00 A9 AD 1D 67 B6 04 01 00 00 F3 85 98 DA A5 CD 00 CD [09:04:02]CommunicateWithHost err = 0 [09:04:02]CheckOFDResponse [09:04:02]1017 (14) - 77093643461234 [09:04:02]1041 (16) - 0000000000871756 [09:04:02]1040 (4) - 201777 [09:04:02]1012 (4) - 27.10.2024 03:04 [09:04:02]1206 (1) - 0 [09:04:02]OFD Sender: Remove packet 201777 [09:04:02]ProducePacketName [09:04:02]name=ofd_packets/00201777 [09:04:02]NVStorageDeleteData [09:04:02]Write to MH i2c: 01 00 00 C8 1A E2 [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 07 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: 01 07 00 C8 1A 00 00 00 00 00 A1 0C 96 [09:04:02]RasterBufferAndPrint [09:04:02]line [09:04:02]line [09:04:02]line [09:04:02]line [09:04:02]line [09:04:02]written 0, free lines is 3238 [09:04:02]MH_Cut [09:04:02]Write to MH i2c: D1 01 00 CF 1A 01 BB [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: D1 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: D1 01 00 [09:04:02]MH_I2C_Read... [09:04:02]Read from MH i2c: D1 01 00 CF 1A 00 BA [09:04:02]Write to MH i2c: 01 00 00 D0 1A EA [09:04:02]Write i2c OK [09:04:02]MH_I2C_Read... [09:04:02]OFD Sender: No OFD packet to send [09:04:03]*** Cut start [09:04:03]*** Purtial cut [09:04:03]*** Stage 1: CUTSNS_PIN = 1 [09:04:03]Read from MH i2c: 01 [09:04:03]MH_I2C_Read... [09:04:03]*** Stop cut motor [09:04:03]*** Cut end [09:04:03]Read from MH i2c: 01 07 00 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: 01 07 00 D0 1A 00 00 00 00 00 FF 0F FF [09:04:03]process_action close_receipt done [09:04:03]requested_data is exist [09:04:03]produce_requested_data [09:04:03]requested_item fm.sn is exist - process it [09:04:03]wFMCommunicate request_size=4 [09:04:03]MH_SAM_APDU [09:04:03]CAPDU: 80 11 00 00 [09:04:03]Write to MH i2c: E2 08 00 D1 1A 80 11 00 00 00 00 00 00 65 [09:04:03]Write i2c OK [09:04:03]MH_I2C_Read... [09:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:03]Read from MH i2c: E2 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 17 00 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 17 00 D1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BA [09:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:03]wFMCommunicate OK [09:04:03]requested_item fd.num is exist - process it [09:04:03]SAM_PROTO_GetFieldsCounters [09:04:03]wFMCommunicate request_size=4 [09:04:03]MH_SAM_APDU [09:04:03]CAPDU: 80 13 00 00 [09:04:03]Write to MH i2c: E2 08 00 D2 1A 80 13 00 00 00 00 00 00 68 [09:04:03]Write i2c OK [09:04:03]MH_I2C_Read... [09:04:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:03]Read from MH i2c: E2 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 62 00 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 62 00 D2 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 31 14 03 00 0E 04 04 00 20 02 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 CA [09:04:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 31 14 03 00 0E 04 04 00 20 02 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 [09:04:03]wFMCommunicate OK [09:04:03]SAM_PROTO_GetFieldsCounters done [09:04:03]requested_item shift.num is exist - process it [09:04:03]requested_item shift.opened is exist - process it [09:04:03]req_shift_opened [09:04:03]FM_GetShiftState [09:04:03]SAM_PROTO_GetShiftState [09:04:03]wFMCommunicate request_size=4 [09:04:03]MH_SAM_APDU [09:04:03]CAPDU: 80 13 01 00 [09:04:03]Write to MH i2c: E2 08 00 D3 1A 80 13 01 00 00 00 00 00 6A [09:04:03]Write i2c OK [09:04:03]MH_I2C_Read... [09:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:03]Read from MH i2c: E2 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 0E 00 [09:04:03]MH_I2C_Read... [09:04:03]Read from MH i2c: E2 0E 00 D3 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [09:04:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:04:03]wFMCommunicate OK [09:04:03]SAM_PROTO_GetShiftState done [09:04:03]FM_GetShiftState done [09:04:03]req_shift_opened done [09:04:03]requested_item shift.open_date is exist - process it [09:04:03]req_shift_open_date [09:04:03]req_shift_open_date done [09:04:03]produce_requested_data done [09:04:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201777,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:04:03]process_action_free close_receipt [09:04:03]json_value_free [09:04:03]json_value_free done [09:04:03]process_json_proto returns [09:04:03]Send response to host [09:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201777,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:04:03]free response buf [09:04:03]execute_script done [09:04:03]execute_script returns [09:04:03]free content buf [09:04:03]Sock 9.Close socket [09:04:03]Sock 9.Thread stoped [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]accept exits with 8 [09:04:37]New connection [09:04:37]New thread 3066936676 created [09:04:37]Thread 3067080036 joined [09:04:37]Waiting for new connection... [09:04:37] Sock 8.Parse request [09:04:37]Sock 8.Check first char [09:04:37]Sock 8.First char is OK [09:04:37]request: POST /json_proto HTTP/1.0 [09:04:37]Method: POST [09:04:37]URL: /json_proto [09:04:37]Method is POST - this is cgi request [09:04:37]url: /json_proto [09:04:37]query_string will be loaded in cgi processing [09:04:37]execute_cgi json_proto POST (null) [09:04:37]execute_cgi path=json_proto method=POST [09:04:37]POST find Content-Length [09:04:37]Host: 172.17.63.195:8080 [09:04:37]Content-Length: 677 [09:04:37]Content-Type: application/json [09:04:37] [09:04:37]POST finish read [09:04:37]Found Content-Length = 677 [09:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.180, "sum" : 145.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 145.00, "payments": [ { "type": 0, "sum" : 145.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:37]execute_script... [09:04:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.180, "sum" : 145.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 145.00, "payments": [ { "type": 0, "sum" : 145.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:37]POST & json_proto [09:04:37]process_json_proto [09:04:37]json parsed OK: [09:04:37]protocol is kg_v1.0 [09:04:37]action value=close_receipt [09:04:37]process_action close_receipt [09:04:37]cmd_close_receipt [09:04:37]MH_GetDate [09:04:37]Write to MH i2c: F0 00 00 D4 1A DD [09:04:37]Write i2c OK [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: F0 [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: F0 09 00 [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: F0 09 00 D4 1A 00 29 02 1E 67 68 46 19 67 C4 [09:04:37]GetLastDocTimeStamp 1730019843 [09:04:37]current date 1730019881 [09:04:37]FM_GetShiftState [09:04:37]SAM_PROTO_GetShiftState [09:04:37]wFMCommunicate request_size=4 [09:04:37]MH_SAM_APDU [09:04:37]CAPDU: 80 13 01 00 [09:04:37]Write to MH i2c: E2 08 00 D5 1A 80 13 01 00 00 00 00 00 6C [09:04:37]Write i2c OK [09:04:37]MH_I2C_Read... [09:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:37]Read from MH i2c: E2 [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: E2 0E 00 [09:04:37]MH_I2C_Read... [09:04:37]Read from MH i2c: E2 0E 00 D5 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6E [09:04:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:04:37]wFMCommunicate OK [09:04:37]SAM_PROTO_GetShiftState done [09:04:37]FM_GetShiftState done [09:04:37]opened in 1729987312 [09:04:37]opened+sec_in_day 1730073712 [09:04:37]quantity*price = 14584 [09:04:37]sum+1 = 14585 [09:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 145.00 Внесено: 150.00 СДАЧА: 5.00 НСП 1% : 1.29 НДС 12% : 15.49 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 70 27.10.2024 09:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201778 ФПД: 95050687902579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201778&fm=95050687902579&tin=02508201610067®Number=0000000000091777&sum=14500 [09:04:38]StoreToDocumentArchive [09:04:38]shift 544 fd 201778 [09:04:38]save to /storage/0544/doc_00201778 [09:04:38]save last doc name /storage/0544/doc_00201778 to /storage/kkm_last_doc_name [09:04:38]save OK [09:04:38]Clear old archive folders... [09:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:38]tlvbuf is 000D93E0 [09:04:38]SAM_PROTO_ClearQueue [09:04:38]wFMCommunicate request_size=4 [09:04:38]MH_SAM_APDU [09:04:38]CAPDU: 80 09 00 00 [09:04:38]Write to MH i2c: E2 08 00 E2 1A 80 09 00 00 00 00 00 00 6E [09:04:38]Write i2c OK [09:04:38]MH_I2C_Read... [09:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:38]Read from MH i2c: E2 [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: E2 03 00 [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [09:04:38]RAPDU: 90 00 [09:04:38]wFMCommunicate OK [09:04:38]SAM_PROTO_ClearQueue done [09:04:38]KKMCreateOFDPacket [09:04:38]OFDProtocolAddRootSTLVToBuf [09:04:38]FM_MakeSignedData [09:04:38]FM_MakeSignedData [09:04:38]SAM_PROTO_SignData [09:04:38]wFMCommunicate request_size=4 [09:04:38]MH_SAM_APDU [09:04:38]CAPDU: 80 0D 01 02 [09:04:38]Write to MH i2c: E2 08 00 E3 1A 80 0D 01 02 00 00 00 00 76 [09:04:38]Write i2c OK [09:04:38]MH_I2C_Read... [09:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:38]Read from MH i2c: E2 [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: E2 03 00 [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: E2 03 00 E3 1A 00 90 00 71 [09:04:38]RAPDU: 90 00 [09:04:38]wFMCommunicate OK [09:04:38]wFMCommunicate request_size=255 [09:04:38]MH_SAM_APDU [09:04:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F8 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 06 00 00 00 00 07 04 06 00 A4 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 46 00 00 00 F4 03 04 00 29 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 14 03 00 35 04 06 00 56 [09:04:38]Write to MH i2c: E2 02 01 E4 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F8 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 06 00 00 00 00 07 04 06 00 A4 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 46 00 00 00 F4 03 04 00 29 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 14 03 00 35 04 06 00 56 00 00 80 [09:04:38]Write i2c OK [09:04:38]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [09:04:39]RAPDU: 90 00 [09:04:39]wFMCommunicate OK [09:04:39]wFMCommunicate request_size=10 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 0D 02 02 05 72 B6 7C F3 73 [09:04:39]Write to MH i2c: E2 0D 00 E5 1A 80 0D 02 02 05 00 72 B6 7C F3 73 00 00 8D [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [09:04:39]RAPDU: 90 00 [09:04:39]wFMCommunicate OK [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 0D 03 02 [09:04:39]Write to MH i2c: E2 08 00 E6 1A 80 0D 03 02 00 00 00 00 7B [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 0B 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 0B 00 E6 1A 00 5C DF CA 12 7F 2A 80 C7 90 00 83 [09:04:39]RAPDU: 5C DF CA 12 7F 2A 80 C7 90 00 [09:04:39]wFMCommunicate OK [09:04:39]SAM_PROTO_SignData done [09:04:39]FM_MakeSignedData done [09:04:39]CreateOFDProtocolMessage [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 11 00 00 [09:04:39]Write to MH i2c: E2 08 00 E7 1A 80 11 00 00 00 00 00 00 7B [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 17 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 17 00 E7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D0 [09:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:39]wFMCommunicate OK [09:04:39]CreateOFDProtocolMessage done [09:04:39]OFDSenderStorePacket 201778 [09:04:39]StoreOFDPacket docnum=201778 [09:04:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6A 09 07 01 AD 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F8 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 06 00 00 00 00 07 04 06 00 A4 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 46 00 00 00 F4 03 04 00 29 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 14 03 00 35 04 06 00 56 72 B6 7C F3 73 5C DF CA 12 7F 2A 80 C7 [09:04:39]CheckFolder [09:04:39]dirname=/storage/ofd_packets [09:04:39]CheckFolder done [09:04:39]ProducePacketName [09:04:39]name=ofd_packets/00201778 [09:04:39]NVStorageSaveData ofd_packets/00201778 [09:04:39]File name is /storage/ofd_packets/00201778 [09:04:39]Write 301 bytes [09:04:39]NVStorageSaveData done [09:04:39]OFDSenderStorePacket done [09:04:39]KKMCreateOFDPacket done [09:04:39]NVStorageSaveData kkm_last_timestamp [09:04:39]File name is /storage/kkm_last_timestamp [09:04:39]Write 4 bytes [09:04:39]NVStorageSaveData done [09:04:39]ExternCall_PrintAddStr [09:04:39]wPrintStart [09:04:39]Write to MH i2c: 01 00 00 E8 1A 02 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 E8 1A 00 00 00 00 00 FF 0F 17 [09:04:39]RasterBufferAndPrint [09:04:39]line Счет N : (1)449535 [09:04:39]line ИНН: 02508201610067 [09:04:39]line Контрольно-Кассовый Чек [09:04:39]line ПРОДАЖА [09:04:39]line ТРК (МРК, ГНК) : 62 [09:04:39]line Товар: 2710124130 [09:04:39]line Аи-92-К-2 [09:04:39]line 2.180 * 66.90 [09:04:39]line = 145.84 [09:04:39]line НДС 12% НСП 1% [09:04:39]line > о реализуемом товаре [09:04:39]line ОКРУГЛЕНИЕ: -0.84 [09:04:39]line ИТОГО: 145.00 [09:04:39]line Внесено: 150.00 [09:04:39]line СДАЧА: 5.00 [09:04:39]line НСП 1% : 1.29 [09:04:39]line НДС 12% : 15.49 [09:04:39]line Наличными: 145.00 [09:04:39]line Безнал.: 0.00 [09:04:39]line Место: АЗС № 171 "Партнер Нефть" [09:04:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:04:39]line СНО: Общий режим [09:04:39]line Чек 70 27.10.2024 09:04 [09:04:39]line Смена: 544 ФФД: 1.0 [09:04:39]line ЗНМ: 0300000109 [09:04:39]line РНМ: 0000000000091777 [09:04:39]line Версия ККМ: 001 [09:04:39]line ФМ: 0000000000871756 [09:04:39]line ФД: 201778 [09:04:39]line ФПД: 95050687902579 [09:04:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201778&fm=95050687902579&tin=02508201610067®Number=0000000000091777&sum=14500 [09:04:39]OFD Sender: Processing packet 201778 [packets to send 112, broken 111] [09:04:39]ProducePacketName [09:04:39]name=ofd_packets/00201778 [09:04:39]OFD Sender: To server: pG, [09:04:39]CommunicateWithHost lk.salyk.kg:30040 [09:04:39]ConnectInit lk.salyk.kg [09:04:39]written 0, free lines is 4095 [09:04:39]Connected sock=10 [09:04:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6A 09 07 01 AD 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F8 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 06 00 00 00 00 07 04 06 00 A4 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 46 00 00 00 F4 03 04 00 29 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 14 03 00 35 04 06 00 56 72 B6 7C F3 73 5C DF CA 12 7F 2A 80 C7 [09:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8F 04 47 00 81 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 14 03 00 F4 03 04 00 CF AD 1D 67 B6 04 01 00 00 08 3F 4D 7A BC 4F 91 DA [09:04:39]CommunicateWithHost err = 0 [09:04:39]CheckOFDResponse [09:04:39]1017 (14) - 77093643461234 [09:04:39]1041 (16) - 0000000000871756 [09:04:39]1040 (4) - 201778 [09:04:39]1012 (4) - 27.10.2024 03:04 [09:04:39]1206 (1) - 0 [09:04:39]OFD Sender: Remove packet 201778 [09:04:39]ProducePacketName [09:04:39]name=ofd_packets/00201778 [09:04:39]NVStorageDeleteData [09:04:40]Write to MH i2c: 01 00 00 13 1B 2E [09:04:40]Write i2c OK [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: 01 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: 01 07 00 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: 01 07 00 13 1B 00 00 00 00 00 97 0C D8 [09:04:40]RasterBufferAndPrint [09:04:40]line [09:04:40]line [09:04:40]line [09:04:40]line [09:04:40]line [09:04:40]written 0, free lines is 3229 [09:04:40]MH_Cut [09:04:40]Write to MH i2c: D1 01 00 1A 1B 01 07 [09:04:40]Write i2c OK [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: D1 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: D1 01 00 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: D1 01 00 1A 1B 00 06 [09:04:40]Write to MH i2c: 01 00 00 1B 1B 36 [09:04:40]Write i2c OK [09:04:40]MH_I2C_Read... [09:04:40]OFD Sender: No OFD packet to send [09:04:40]*** Cut start [09:04:40]*** Purtial cut [09:04:40]*** Stage 1: CUTSNS_PIN = 1 [09:04:41]Read from MH i2c: 01 [09:04:41]MH_I2C_Read... [09:04:41]*** Stop cut motor [09:04:41]*** Cut end [09:04:41]Read from MH i2c: 01 07 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: 01 07 00 1B 1B 00 00 00 00 00 FF 0F 4B [09:04:41]process_action close_receipt done [09:04:41]requested_data is exist [09:04:41]produce_requested_data [09:04:41]requested_item fm.sn is exist - process it [09:04:41]wFMCommunicate request_size=4 [09:04:41]MH_SAM_APDU [09:04:41]CAPDU: 80 11 00 00 [09:04:41]Write to MH i2c: E2 08 00 1C 1B 80 11 00 00 00 00 00 00 B1 [09:04:41]Write i2c OK [09:04:41]MH_I2C_Read... [09:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:41]Read from MH i2c: E2 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 17 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 17 00 1C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 06 [09:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:41]wFMCommunicate OK [09:04:41]requested_item fd.num is exist - process it [09:04:41]SAM_PROTO_GetFieldsCounters [09:04:41]wFMCommunicate request_size=4 [09:04:41]MH_SAM_APDU [09:04:41]CAPDU: 80 13 00 00 [09:04:41]Write to MH i2c: E2 08 00 1D 1B 80 13 00 00 00 00 00 00 B4 [09:04:41]Write i2c OK [09:04:41]MH_I2C_Read... [09:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:41]Read from MH i2c: E2 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 62 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 62 00 1D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 32 14 03 00 0E 04 04 00 20 02 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 1A [09:04:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 32 14 03 00 0E 04 04 00 20 02 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 [09:04:41]wFMCommunicate OK [09:04:41]SAM_PROTO_GetFieldsCounters done [09:04:41]requested_item shift.num is exist - process it [09:04:41]requested_item shift.opened is exist - process it [09:04:41]req_shift_opened [09:04:41]FM_GetShiftState [09:04:41]SAM_PROTO_GetShiftState [09:04:41]wFMCommunicate request_size=4 [09:04:41]MH_SAM_APDU [09:04:41]CAPDU: 80 13 01 00 [09:04:41]Write to MH i2c: E2 08 00 1E 1B 80 13 01 00 00 00 00 00 B6 [09:04:41]Write i2c OK [09:04:41]MH_I2C_Read... [09:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:41]Read from MH i2c: E2 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 0E 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 0E 00 1E 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [09:04:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:04:41]wFMCommunicate OK [09:04:41]SAM_PROTO_GetShiftState done [09:04:41]FM_GetShiftState done [09:04:41]req_shift_opened done [09:04:41]requested_item shift.open_date is exist - process it [09:04:41]req_shift_open_date [09:04:41]req_shift_open_date done [09:04:41]produce_requested_data done [09:04:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201778,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:04:41]process_action_free close_receipt [09:04:41]json_value_free [09:04:41]json_value_free done [09:04:41]process_json_proto returns [09:04:41]Send response to host [09:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201778,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:04:41]free response buf [09:04:41]execute_script done [09:04:41]execute_script returns [09:04:41]free content buf [09:04:41]Sock 8.Close socket [09:04:41]Sock 8.Thread stoped [09:04:41]accept exits with 9 [09:04:41]New connection [09:04:41]New thread 3067080036 created [09:04:41]Thread 3066936676 joined [09:04:41]Waiting for new connection... [09:04:41] Sock 9.Parse request [09:04:41]Sock 9.Check first char [09:04:41]Sock 9.First char is OK [09:04:41]request: POST /json_proto HTTP/1.0 [09:04:41]Method: POST [09:04:41]URL: /json_proto [09:04:41]Method is POST - this is cgi request [09:04:41]url: /json_proto [09:04:41]query_string will be loaded in cgi processing [09:04:41]execute_cgi json_proto POST (null) [09:04:41]execute_cgi path=json_proto method=POST [09:04:41]POST find Content-Length [09:04:41]Host: 172.17.63.195:8080 [09:04:41]Content-Length: 677 [09:04:41]Content-Type: application/json [09:04:41] [09:04:41]POST finish read [09:04:41]Found Content-Length = 677 [09:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:41]execute_script... [09:04: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)449534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:41]POST & json_proto [09:04:41]process_json_proto [09:04:41]json parsed OK: [09:04:41]protocol is kg_v1.0 [09:04:41]action value=close_receipt [09:04:41]process_action close_receipt [09:04:41]cmd_close_receipt [09:04:41]MH_GetDate [09:04:41]Write to MH i2c: F0 00 00 1F 1B 29 [09:04:41]Write i2c OK [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: F0 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: F0 09 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: F0 09 00 1F 1B 00 2D 02 1E 67 68 46 19 67 14 [09:04:41]GetLastDocTimeStamp 1730019881 [09:04:41]current date 1730019885 [09:04:41]FM_GetShiftState [09:04:41]SAM_PROTO_GetShiftState [09:04:41]wFMCommunicate request_size=4 [09:04:41]MH_SAM_APDU [09:04:41]CAPDU: 80 13 01 00 [09:04:41]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [09:04:41]Write i2c OK [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 [09:04:41]MH_I2C_Read... [09:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:41]Read from MH i2c: E2 0E 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BA [09:04:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:04:41]wFMCommunicate OK [09:04:41]SAM_PROTO_GetShiftState done [09:04:41]FM_GetShiftState done [09:04:41]opened in 1729987312 [09:04:41]opened+sec_in_day 1730073712 [09:04:41]quantity*price = 50041 [09:04:41]sum+1 = 50042 [09:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 71 27.10.2024 09:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201779 ФПД: 163655881275867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090445&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201779&fm=163655881275867&tin=02508201610067®Number=0000000000091777&sum=50000 [09:04:43]StoreToDocumentArchive [09:04:43]shift 544 fd 201779 [09:04:43]save to /storage/0544/doc_00201779 [09:04:43]save last doc name /storage/0544/doc_00201779 to /storage/kkm_last_doc_name [09:04:43]save OK [09:04:43]Clear old archive folders... [09:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:43]tlvbuf is 00114D50 [09:04:43]SAM_PROTO_ClearQueue [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 09 00 00 [09:04:43]Write to MH i2c: E2 08 00 2D 1B 80 09 00 00 00 00 00 00 BA [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 2D 1B 00 90 00 BC [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]SAM_PROTO_ClearQueue done [09:04:43]KKMCreateOFDPacket [09:04:43]OFDProtocolAddRootSTLVToBuf [09:04:43]FM_MakeSignedData [09:04:43]FM_MakeSignedData [09:04:43]SAM_PROTO_SignData [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 0D 01 02 [09:04:43]Write to MH i2c: E2 08 00 2E 1B 80 0D 01 02 00 00 00 00 C2 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]wFMCommunicate request_size=255 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 47 00 00 00 F4 03 04 00 2D 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 14 03 00 35 04 06 00 94 [09:04:43]Write to MH i2c: E2 02 01 2F 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 32 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 47 00 00 00 F4 03 04 00 2D 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 14 03 00 35 04 06 00 94 00 00 51 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]wFMCommunicate request_size=10 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 0D 02 02 05 D8 1A AB 39 DB [09:04:43]Write to MH i2c: E2 0D 00 30 1B 80 0D 02 02 05 00 D8 1A AB 39 DB 00 00 80 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [09:04:43]RAPDU: 90 00 [09:04:43]wFMCommunicate OK [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 0D 03 02 [09:04:43]Write to MH i2c: E2 08 00 31 1B 80 0D 03 02 00 00 00 00 C7 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 0B 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 0B 00 31 1B 00 92 A4 54 64 46 8E D2 8A 90 00 E6 [09:04:43]RAPDU: 92 A4 54 64 46 8E D2 8A 90 00 [09:04:43]wFMCommunicate OK [09:04:43]SAM_PROTO_SignData done [09:04:43]FM_MakeSignedData done [09:04:43]CreateOFDProtocolMessage [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 11 00 00 [09:04:43]Write to MH i2c: E2 08 00 32 1B 80 11 00 00 00 00 00 00 C7 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 17 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 17 00 32 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1C [09:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:43]wFMCommunicate OK [09:04:43]CreateOFDProtocolMessage done [09:04:43]OFDSenderStorePacket 201779 [09:04:43]StoreOFDPacket docnum=201779 [09:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 80 C8 07 01 B8 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 47 00 00 00 F4 03 04 00 2D 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 14 03 00 35 04 06 00 94 D8 1A AB 39 DB 92 A4 54 64 46 8E D2 8A [09:04:43]CheckFolder [09:04:43]dirname=/storage/ofd_packets [09:04:43]CheckFolder done [09:04:43]ProducePacketName [09:04:43]name=ofd_packets/00201779 [09:04:43]NVStorageSaveData ofd_packets/00201779 [09:04:43]File name is /storage/ofd_packets/00201779 [09:04:43]Write 301 bytes [09:04:43]NVStorageSaveData done [09:04:43]OFDSenderStorePacket done [09:04:43]KKMCreateOFDPacket done [09:04:43]NVStorageSaveData kkm_last_timestamp [09:04:43]File name is /storage/kkm_last_timestamp [09:04:43]Write 4 bytes [09:04:43]NVStorageSaveData done [09:04:43]ExternCall_PrintAddStr [09:04:43]wPrintStart [09:04:43]Write to MH i2c: 01 00 00 33 1B 4E [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: 01 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: 01 07 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 FF 0F 63 [09:04:43]RasterBufferAndPrint [09:04:43]line Счет N : (1)449534 [09:04:43]line ИНН: 02508201610067 [09:04:43]line Контрольно-Кассовый Чек [09:04:43]line ПРОДАЖА [09:04:43]line ТРК (МРК, ГНК) : 41 [09:04:43]line Товар: 2710124130 [09:04:43]line Аи-92-К-2 [09:04:43]line 7.480 * 66.90 [09:04:43]line = 500.41 [09:04:43]line НДС 12% НСП 1% [09:04:43]line > о реализуемом товаре [09:04:43]line ОКРУГЛЕНИЕ: -0.41 [09:04:43]line ИТОГО: 500.00 [09:04:43]line Внесено: 500.00 [09:04:43]line СДАЧА: 0.00 [09:04:43]line НСП 1% : 4.43 [09:04:43]line НДС 12% : 53.14 [09:04:43]line Наличными: 500.00 [09:04:43]line Безнал.: 0.00 [09:04:43]line Место: АЗС № 171 "Партнер Нефть" [09:04:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:04:43]line СНО: Общий режим [09:04:43]line Чек 71 27.10.2024 09:04 [09:04:43]line Смена: 544 ФФД: 1.0 [09:04:43]line ЗНМ: 0300000109 [09:04:43]line РНМ: 0000000000091777 [09:04:43]line Версия ККМ: 001 [09:04:43]line ФМ: 0000000000871756 [09:04:43]line ФД: 201779 [09:04:43]line ФПД: 163655881275867 [09:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090445&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201779&fm=163655881275867&tin=02508201610067®Number=0000000000091777&sum=50000 [09:04:44]OFD Sender: Processing packet 201779 [packets to send 112, broken 111] [09:04:44]ProducePacketName [09:04:44]name=ofd_packets/00201779 [09:04:44]written 0, free lines is 4095 [09:04:44]OFD Sender: To server: pG, [09:04:44]CommunicateWithHost lk.salyk.kg:30040 [09:04:44]ConnectInit lk.salyk.kg [09:04:44]Connected sock=10 [09:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 80 C8 07 01 B8 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 47 00 00 00 F4 03 04 00 2D 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 14 03 00 35 04 06 00 94 D8 1A AB 39 DB 92 A4 54 64 46 8E D2 8A [09:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD C2 47 00 0A C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 14 03 00 F4 03 04 00 D3 AD 1D 67 B6 04 01 00 00 A7 12 2D C7 C2 96 54 BA [09:04:44]CommunicateWithHost err = 0 [09:04:44]CheckOFDResponse [09:04:44]1017 (14) - 77093643461234 [09:04:44]1041 (16) - 0000000000871756 [09:04:44]1040 (4) - 201779 [09:04:44]1012 (4) - 27.10.2024 03:04 [09:04:44]1206 (1) - 0 [09:04:44]OFD Sender: Remove packet 201779 [09:04:44]ProducePacketName [09:04:44]name=ofd_packets/00201779 [09:04:44]NVStorageDeleteData [09:04:44]Write to MH i2c: 01 00 00 5E 1B 79 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 A8 0C 34 [09:04:44]RasterBufferAndPrint [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]line [09:04:44]written 0, free lines is 3253 [09:04:44]MH_Cut [09:04:44]Write to MH i2c: D1 01 00 65 1B 01 52 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 01 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: D1 01 00 65 1B 00 51 [09:04:44]Write to MH i2c: 01 00 00 66 1B 81 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:45]OFD Sender: No OFD packet to send [09:04:45]*** Cut start [09:04:45]*** Purtial cut [09:04:45]*** Stage 1: CUTSNS_PIN = 1 [09:04:45]Read from MH i2c: 01 [09:04:45]MH_I2C_Read... [09:04:45]*** Stop cut motor [09:04:45]*** Cut end [09:04:45]Read from MH i2c: 01 07 00 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: 01 07 00 66 1B 00 00 00 00 00 FF 0F 96 [09:04:45]process_action close_receipt done [09:04:45]requested_data is exist [09:04:45]produce_requested_data [09:04:45]requested_item fm.sn is exist - process it [09:04:45]wFMCommunicate request_size=4 [09:04:45]MH_SAM_APDU [09:04:45]CAPDU: 80 11 00 00 [09:04:45]Write to MH i2c: E2 08 00 67 1B 80 11 00 00 00 00 00 00 FC [09:04:45]Write i2c OK [09:04:45]MH_I2C_Read... [09:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:45]Read from MH i2c: E2 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: E2 17 00 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: E2 17 00 67 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 51 [09:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:45]wFMCommunicate OK [09:04:45]requested_item fd.num is exist - process it [09:04:45]SAM_PROTO_GetFieldsCounters [09:04:45]wFMCommunicate request_size=4 [09:04:45]MH_SAM_APDU [09:04:45]CAPDU: 80 13 00 00 [09:04:45]Write to MH i2c: E2 08 00 68 1B 80 13 00 00 00 00 00 00 FF [09:04:45]Write i2c OK [09:04:45]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 62 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 62 00 68 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 33 14 03 00 0E 04 04 00 20 02 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 69 [09:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 33 14 03 00 0E 04 04 00 20 02 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 [09:04:46]wFMCommunicate OK [09:04:46]SAM_PROTO_GetFieldsCounters done [09:04:46]requested_item shift.num is exist - process it [09:04:46]requested_item shift.opened is exist - process it [09:04:46]req_shift_opened [09:04:46]FM_GetShiftState [09:04:46]SAM_PROTO_GetShiftState [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 13 01 00 [09:04:46]Write to MH i2c: E2 08 00 69 1B 80 13 01 00 00 00 00 00 01 [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0E 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0E 00 69 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 03 [09:04:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:04:46]wFMCommunicate OK [09:04:46]SAM_PROTO_GetShiftState done [09:04:46]FM_GetShiftState done [09:04:46]req_shift_opened done [09:04:46]requested_item shift.open_date is exist - process it [09:04:46]req_shift_open_date [09:04:46]req_shift_open_date done [09:04:46]produce_requested_data done [09:04:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201779,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:04:46]process_action_free close_receipt [09:04:46]json_value_free [09:04:46]json_value_free done [09:04:46]process_json_proto returns [09:04:46]Send response to host [09:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201779,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:04:46]free response buf [09:04:46]execute_script done [09:04:46]execute_script returns [09:04:46]free content buf [09:04:46]Sock 9.Close socket [09:04:46]Sock 9.Thread stoped [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:21]accept exits with 8 [09:06:21]New connection [09:06:21]New thread 3066936676 created [09:06:21]Thread 3067080036 joined [09:06:21]Waiting for new connection... [09:06:21] Sock 8.Parse request [09:06:21]Sock 8.Check first char [09:06:21]Sock 8.First char is OK [09:06:21]request: POST /json_proto HTTP/1.0 [09:06:21]Method: POST [09:06:21]URL: /json_proto [09:06:21]Method is POST - this is cgi request [09:06:21]url: /json_proto [09:06:21]query_string will be loaded in cgi processing [09:06:21]execute_cgi json_proto POST (null) [09:06:21]execute_cgi path=json_proto method=POST [09:06:21]POST find Content-Length [09:06:21]Host: 172.17.63.195:8080 [09:06:21]Content-Length: 677 [09:06:21]Content-Type: application/json [09:06:21] [09:06:21]POST finish read [09:06:21]Found Content-Length = 677 [09:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:21]execute_script... [09:06: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)449536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:21]POST & json_proto [09:06:21]process_json_proto [09:06:21]json parsed OK: [09:06:21]protocol is kg_v1.0 [09:06:21]action value=close_receipt [09:06:21]process_action close_receipt [09:06:21]cmd_close_receipt [09:06:21]MH_GetDate [09:06:21]Write to MH i2c: F0 00 00 6A 1B 74 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: F0 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: F0 09 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: F0 09 00 6A 1B 00 91 02 1E 67 68 46 19 67 C3 [09:06:21]GetLastDocTimeStamp 1730019885 [09:06:21]current date 1730019985 [09:06:21]FM_GetShiftState [09:06:21]SAM_PROTO_GetShiftState [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 13 01 00 [09:06:21]Write to MH i2c: E2 08 00 6B 1B 80 13 01 00 00 00 00 00 03 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0E 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0E 00 6B 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 05 [09:06:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_GetShiftState done [09:06:21]FM_GetShiftState done [09:06:21]opened in 1729987312 [09:06:21]opened+sec_in_day 1730073712 [09:06:21]quantity*price = 50041 [09:06:21]sum+1 = 50042 [09:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 72 27.10.2024 09:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201780 ФПД: 147601714977475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090625&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201780&fm=147601714977475&tin=02508201610067®Number=0000000000091777&sum=50000 [09:06:22]StoreToDocumentArchive [09:06:22]shift 544 fd 201780 [09:06:22]save to /storage/0544/doc_00201780 [09:06:22]save last doc name /storage/0544/doc_00201780 to /storage/kkm_last_doc_name [09:06:22]save OK [09:06:22]Clear old archive folders... [09:06:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:22]tlvbuf is 00119F00 [09:06:22]SAM_PROTO_ClearQueue [09:06:22]wFMCommunicate request_size=4 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 09 00 00 [09:06:22]Write to MH i2c: E2 08 00 78 1B 80 09 00 00 00 00 00 00 05 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 03 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 03 00 78 1B 00 90 00 07 [09:06:22]RAPDU: 90 00 [09:06:22]wFMCommunicate OK [09:06:22]SAM_PROTO_ClearQueue done [09:06:22]KKMCreateOFDPacket [09:06:22]OFDProtocolAddRootSTLVToBuf [09:06:22]FM_MakeSignedData [09:06:22]FM_MakeSignedData [09:06:22]SAM_PROTO_SignData [09:06:22]wFMCommunicate request_size=4 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 0D 01 02 [09:06:22]Write to MH i2c: E2 08 00 79 1B 80 0D 01 02 00 00 00 00 0D [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 03 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [09:06:22]RAPDU: 90 00 [09:06:22]wFMCommunicate OK [09:06:22]wFMCommunicate request_size=255 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 48 00 00 00 F4 03 04 00 91 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 14 03 00 35 04 06 00 86 [09:06:22]Write to MH i2c: E2 02 01 7A 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 32 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 48 00 00 00 F4 03 04 00 91 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 14 03 00 35 04 06 00 86 00 00 F4 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:22]Read from MH i2c: E2 03 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [09:06:22]RAPDU: 90 00 [09:06:22]wFMCommunicate OK [09:06:22]wFMCommunicate request_size=10 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 0D 02 02 05 3E 33 CA 1A C3 [09:06:22]Write to MH i2c: E2 0D 00 7B 1B 80 0D 02 02 05 00 3E 33 CA 1A C3 00 00 32 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 03 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [09:06:22]RAPDU: 90 00 [09:06:22]wFMCommunicate OK [09:06:22]wFMCommunicate request_size=4 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 0D 03 02 [09:06:22]Write to MH i2c: E2 08 00 7C 1B 80 0D 03 02 00 00 00 00 12 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 0B 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 0B 00 7C 1B 00 64 12 24 25 F8 1B BC 7B 90 00 1C [09:06:22]RAPDU: 64 12 24 25 F8 1B BC 7B 90 00 [09:06:22]wFMCommunicate OK [09:06:22]SAM_PROTO_SignData done [09:06:22]FM_MakeSignedData done [09:06:22]CreateOFDProtocolMessage [09:06:22]wFMCommunicate request_size=4 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 11 00 00 [09:06:22]Write to MH i2c: E2 08 00 7D 1B 80 11 00 00 00 00 00 00 12 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 17 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 17 00 7D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 67 [09:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:06:22]wFMCommunicate OK [09:06:22]CreateOFDProtocolMessage done [09:06:22]OFDSenderStorePacket 201780 [09:06:22]StoreOFDPacket docnum=201780 [09:06:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 93 BB 07 01 F9 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 48 00 00 00 F4 03 04 00 91 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 14 03 00 35 04 06 00 86 3E 33 CA 1A C3 64 12 24 25 F8 1B BC 7B [09:06:22]CheckFolder [09:06:22]dirname=/storage/ofd_packets [09:06:22]CheckFolder done [09:06:22]ProducePacketName [09:06:22]name=ofd_packets/00201780 [09:06:22]NVStorageSaveData ofd_packets/00201780 [09:06:22]File name is /storage/ofd_packets/00201780 [09:06:22]Write 301 bytes [09:06:22]NVStorageSaveData done [09:06:22]OFDSenderStorePacket done [09:06:22]KKMCreateOFDPacket done [09:06:22]NVStorageSaveData kkm_last_timestamp [09:06:22]File name is /storage/kkm_last_timestamp [09:06:22]Write 4 bytes [09:06:22]NVStorageSaveData done [09:06:22]ExternCall_PrintAddStr [09:06:22]wPrintStart [09:06:22]Write to MH i2c: 01 00 00 7E 1B 99 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 7E 1B 00 00 00 00 00 FF 0F AE [09:06:22]RasterBufferAndPrint [09:06:22]line Счет N : (1)449536 [09:06:22]line ИНН: 02508201610067 [09:06:22]line Контрольно-Кассовый Чек [09:06:22]line ПРОДАЖА [09:06:22]line ТРК (МРК, ГНК) : 52 [09:06:22]line Товар: 2710124130 [09:06:22]line Аи-92-К-2 [09:06:22]line 7.480 * 66.90 [09:06:22]line = 500.41 [09:06:22]line НДС 12% НСП 1% [09:06:22]line > о реализуемом товаре [09:06:22]line ОКРУГЛЕНИЕ: -0.41 [09:06:22]line ИТОГО: 500.00 [09:06:22]line Внесено: 500.00 [09:06:22]line СДАЧА: 0.00 [09:06:22]line НСП 1% : 4.43 [09:06:22]line НДС 12% : 53.14 [09:06:22]line Наличными: 500.00 [09:06:22]line Безнал.: 0.00 [09:06:22]line Место: АЗС № 171 "Партнер Нефть" [09:06:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:06:22]line СНО: Общий режим [09:06:22]line Чек 72 27.10.2024 09:06 [09:06:22]line Смена: 544 ФФД: 1.0 [09:06:22]line ЗНМ: 0300000109 [09:06:22]line РНМ: 0000000000091777 [09:06:22]line Версия ККМ: 001 [09:06:22]line ФМ: 0000000000871756 [09:06:22]line ФД: 201780 [09:06:22]line ФПД: 147601714977475 [09:06:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090625&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201780&fm=147601714977475&tin=02508201610067®Number=0000000000091777&sum=50000 [09:06:23]OFD Sender: Processing packet 201780 [packets to send 112, broken 111] [09:06:23]ProducePacketName [09:06:23]name=ofd_packets/00201780 [09:06:23]OFD Sender: To server: pG, [09:06:23]CommunicateWithHost lk.salyk.kg:30040 [09:06:23]ConnectInit lk.salyk.kg [09:06:23]written 0, free lines is 4095 [09:06:23]Connected sock=10 [09:06:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 93 BB 07 01 F9 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 48 00 00 00 F4 03 04 00 91 02 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 14 03 00 35 04 06 00 86 3E 33 CA 1A C3 64 12 24 25 F8 1B BC 7B [09:06:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E1 36 47 00 E7 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 14 03 00 F4 03 04 00 36 AE 1D 67 B6 04 01 00 00 EE 87 B2 18 E3 A7 88 B6 [09:06:23]CommunicateWithHost err = 0 [09:06:23]CheckOFDResponse [09:06:23]1017 (14) - 77093643461234 [09:06:23]1041 (16) - 0000000000871756 [09:06:23]1040 (4) - 201780 [09:06:23]1012 (4) - 27.10.2024 03:06 [09:06:23]1206 (1) - 0 [09:06:23]OFD Sender: Remove packet 201780 [09:06:23]ProducePacketName [09:06:23]name=ofd_packets/00201780 [09:06:23]NVStorageDeleteData [09:06:23]Write to MH i2c: 01 00 00 A9 1B C4 [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: 01 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: 01 07 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: 01 07 00 A9 1B 00 00 00 00 00 96 0C 6D [09:06:23]RasterBufferAndPrint [09:06:23]line [09:06:23]line [09:06:23]line [09:06:23]line [09:06:23]line [09:06:23]written 0, free lines is 3229 [09:06:23]MH_Cut [09:06:23]Write to MH i2c: D1 01 00 B0 1B 01 9D [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: D1 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: D1 01 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: D1 01 00 B0 1B 00 9C [09:06:23]Write to MH i2c: 01 00 00 B1 1B CC [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:24]OFD Sender: No OFD packet to send [09:06:24]*** Cut start [09:06:24]*** Purtial cut [09:06:24]*** Stage 1: CUTSNS_PIN = 1 [09:06:24]Read from MH i2c: 01 [09:06:24]MH_I2C_Read... [09:06:24]*** Stop cut motor [09:06:24]*** Cut end [09:06:24]Read from MH i2c: 01 07 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: 01 07 00 B1 1B 00 00 00 00 00 FF 0F E1 [09:06:24]process_action close_receipt done [09:06:24]requested_data is exist [09:06:24]produce_requested_data [09:06:24]requested_item fm.sn is exist - process it [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 11 00 00 [09:06:24]Write to MH i2c: E2 08 00 B2 1B 80 11 00 00 00 00 00 00 47 [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 17 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 17 00 B2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9C [09:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:06:24]wFMCommunicate OK [09:06:24]requested_item fd.num is exist - process it [09:06:24]SAM_PROTO_GetFieldsCounters [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 13 00 00 [09:06:24]Write to MH i2c: E2 08 00 B3 1B 80 13 00 00 00 00 00 00 4A [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:25]Read from MH i2c: E2 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 62 00 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 62 00 B3 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 34 14 03 00 0E 04 04 00 20 02 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 B8 [09:06:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 34 14 03 00 0E 04 04 00 20 02 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 [09:06:25]wFMCommunicate OK [09:06:25]SAM_PROTO_GetFieldsCounters done [09:06:25]requested_item shift.num is exist - process it [09:06:25]requested_item shift.opened is exist - process it [09:06:25]req_shift_opened [09:06:25]FM_GetShiftState [09:06:25]SAM_PROTO_GetShiftState [09:06:25]wFMCommunicate request_size=4 [09:06:25]MH_SAM_APDU [09:06:25]CAPDU: 80 13 01 00 [09:06:25]Write to MH i2c: E2 08 00 B4 1B 80 13 01 00 00 00 00 00 4C [09:06:25]Write i2c OK [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 [09:06:25]MH_I2C_Read... [09:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:25]Read from MH i2c: E2 0E 00 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 0E 00 B4 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4E [09:06:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:06:25]wFMCommunicate OK [09:06:25]SAM_PROTO_GetShiftState done [09:06:25]FM_GetShiftState done [09:06:25]req_shift_opened done [09:06:25]requested_item shift.open_date is exist - process it [09:06:25]req_shift_open_date [09:06:25]req_shift_open_date done [09:06:25]produce_requested_data done [09:06:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201780,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:06:25]process_action_free close_receipt [09:06:25]json_value_free [09:06:25]json_value_free done [09:06:25]process_json_proto returns [09:06:25]Send response to host [09:06:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201780,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:06:25]free response buf [09:06:25]execute_script done [09:06:25]execute_script returns [09:06:25]free content buf [09:06:25]Sock 8.Close socket [09:06:25]Sock 8.Thread stoped [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:16]accept exits with 9 [09:08:16]New connection [09:08:16]New thread 3067080036 created [09:08:16]Thread 3066936676 joined [09:08:16]Waiting for new connection... [09:08:16] Sock 9.Parse request [09:08:16]Sock 9.Check first char [09:08:16]Sock 9.First char is OK [09:08:16]request: POST /json_proto HTTP/1.0 [09:08:16]Method: POST [09:08:16]URL: /json_proto [09:08:16]Method is POST - this is cgi request [09:08:16]url: /json_proto [09:08:16]query_string will be loaded in cgi processing [09:08:16]execute_cgi json_proto POST (null) [09:08:16]execute_cgi path=json_proto method=POST [09:08:16]POST find Content-Length [09:08:16]Host: 172.17.63.195:8080 [09:08:16]Content-Length: 677 [09:08:16]Content-Type: application/json [09:08:16] [09:08:16]POST finish read [09:08:16]Found Content-Length = 677 [09:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:08:16]execute_script... [09:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:08:16]POST & json_proto [09:08:16]process_json_proto [09:08:16]json parsed OK: [09:08:16]protocol is kg_v1.0 [09:08:16]action value=close_receipt [09:08:16]process_action close_receipt [09:08:16]cmd_close_receipt [09:08:16]MH_GetDate [09:08:16]Write to MH i2c: F0 00 00 B5 1B BF [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: F0 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: F0 09 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: F0 09 00 B5 1B 00 04 03 1E 67 68 46 19 67 82 [09:08:16]GetLastDocTimeStamp 1730019985 [09:08:16]current date 1730020100 [09:08:16]FM_GetShiftState [09:08:16]SAM_PROTO_GetShiftState [09:08:16]wFMCommunicate request_size=4 [09:08:16]MH_SAM_APDU [09:08:16]CAPDU: 80 13 01 00 [09:08:16]Write to MH i2c: E2 08 00 B6 1B 80 13 01 00 00 00 00 00 4E [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:17]Read from MH i2c: E2 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 0E 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: E2 0E 00 B6 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 50 [09:08:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:08:17]wFMCommunicate OK [09:08:17]SAM_PROTO_GetShiftState done [09:08:17]FM_GetShiftState done [09:08:17]opened in 1729987312 [09:08:17]opened+sec_in_day 1730073712 [09:08:17]quantity*price = 20003 [09:08:17]sum+1 = 20004 [09:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 73 27.10.2024 09:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201781 ФПД: 25522914407726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090820&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201781&fm=25522914407726&tin=02508201610067®Number=0000000000091777&sum=20000 [09:08:18]StoreToDocumentArchive [09:08:18]shift 544 fd 201781 [09:08:18]save to /storage/0544/doc_00201781 [09:08:18]save last doc name /storage/0544/doc_00201781 to /storage/kkm_last_doc_name [09:08:18]save OK [09:08:18]Clear old archive folders... [09:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:18]tlvbuf is 000C8130 [09:08:18]SAM_PROTO_ClearQueue [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 09 00 00 [09:08:18]Write to MH i2c: E2 08 00 C3 1B 80 09 00 00 00 00 00 00 50 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 03 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [09:08:18]RAPDU: 90 00 [09:08:18]wFMCommunicate OK [09:08:18]SAM_PROTO_ClearQueue done [09:08:18]KKMCreateOFDPacket [09:08:18]OFDProtocolAddRootSTLVToBuf [09:08:18]FM_MakeSignedData [09:08:18]FM_MakeSignedData [09:08:18]SAM_PROTO_SignData [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 0D 01 02 [09:08:18]Write to MH i2c: E2 08 00 C4 1B 80 0D 01 02 00 00 00 00 58 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 03 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 03 00 C4 1B 00 90 00 53 [09:08:18]RAPDU: 90 00 [09:08:18]wFMCommunicate OK [09:08:18]wFMCommunicate request_size=255 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 04 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 14 03 00 35 04 06 00 17 [09:08:18]Write to MH i2c: E2 02 01 C5 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 32 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 49 00 00 00 F4 03 04 00 04 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 14 03 00 35 04 06 00 17 00 00 08 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 03 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [09:08:18]RAPDU: 90 00 [09:08:18]wFMCommunicate OK [09:08:18]wFMCommunicate request_size=10 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 0D 02 02 05 36 84 3F 35 2E [09:08:18]Write to MH i2c: E2 0D 00 C6 1B 80 0D 02 02 05 00 36 84 3F 35 2E 00 00 C1 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 03 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [09:08:18]RAPDU: 90 00 [09:08:18]wFMCommunicate OK [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 0D 03 02 [09:08:18]Write to MH i2c: E2 08 00 C7 1B 80 0D 03 02 00 00 00 00 5D [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 0B 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 0B 00 C7 1B 00 D6 CB 38 55 D4 57 34 5D 90 00 48 [09:08:18]RAPDU: D6 CB 38 55 D4 57 34 5D 90 00 [09:08:18]wFMCommunicate OK [09:08:18]SAM_PROTO_SignData done [09:08:18]FM_MakeSignedData done [09:08:18]CreateOFDProtocolMessage [09:08:18]wFMCommunicate request_size=4 [09:08:18]MH_SAM_APDU [09:08:18]CAPDU: 80 11 00 00 [09:08:18]Write to MH i2c: E2 08 00 C8 1B 80 11 00 00 00 00 00 00 5D [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:18]Read from MH i2c: E2 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 17 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: E2 17 00 C8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B2 [09:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:08:18]wFMCommunicate OK [09:08:18]CreateOFDProtocolMessage done [09:08:18]OFDSenderStorePacket 201781 [09:08:18]StoreOFDPacket docnum=201781 [09:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DF 4F 07 01 3F 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 04 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 14 03 00 35 04 06 00 17 36 84 3F 35 2E D6 CB 38 55 D4 57 34 5D [09:08:18]CheckFolder [09:08:18]dirname=/storage/ofd_packets [09:08:18]CheckFolder done [09:08:18]ProducePacketName [09:08:18]name=ofd_packets/00201781 [09:08:18]NVStorageSaveData ofd_packets/00201781 [09:08:18]File name is /storage/ofd_packets/00201781 [09:08:18]Write 301 bytes [09:08:18]NVStorageSaveData done [09:08:18]OFDSenderStorePacket done [09:08:18]KKMCreateOFDPacket done [09:08:18]NVStorageSaveData kkm_last_timestamp [09:08:18]File name is /storage/kkm_last_timestamp [09:08:18]Write 4 bytes [09:08:18]NVStorageSaveData done [09:08:18]ExternCall_PrintAddStr [09:08:18]wPrintStart [09:08:18]Write to MH i2c: 01 00 00 C9 1B E4 [09:08:18]Write i2c OK [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: 01 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: 01 07 00 [09:08:18]MH_I2C_Read... [09:08:18]Read from MH i2c: 01 07 00 C9 1B 00 00 00 00 00 FF 0F F9 [09:08:18]RasterBufferAndPrint [09:08:18]line Счет N : (1)449538 [09:08:18]line ИНН: 02508201610067 [09:08:18]line Контрольно-Кассовый Чек [09:08:18]line ПРОДАЖА [09:08:18]line ТРК (МРК, ГНК) : 31 [09:08:18]line Товар: 2710124130 [09:08:18]line Аи-92-К-2 [09:08:18]line 2.990 * 66.90 [09:08:18]line = 200.03 [09:08:18]line НДС 12% НСП 1% [09:08:18]line > о реализуемом товаре [09:08:18]line ОКРУГЛЕНИЕ: -0.03 [09:08:18]line ИТОГО: 200.00 [09:08:18]line Внесено: 200.00 [09:08:18]line СДАЧА: 0.00 [09:08:18]line НСП 1% : 1.77 [09:08:18]line НДС 12% : 21.24 [09:08:18]line Наличными: 200.00 [09:08:18]line Безнал.: 0.00 [09:08:18]line Место: АЗС № 171 "Партнер Нефть" [09:08:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:08:18]line СНО: Общий режим [09:08:18]line Чек 73 27.10.2024 09:08 [09:08:18]line Смена: 544 ФФД: 1.0 [09:08:18]line ЗНМ: 0300000109 [09:08:18]line РНМ: 0000000000091777 [09:08:18]line Версия ККМ: 001 [09:08:18]line ФМ: 0000000000871756 [09:08:18]line ФД: 201781 [09:08:18]line ФПД: 25522914407726 [09:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090820&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201781&fm=25522914407726&tin=02508201610067®Number=0000000000091777&sum=20000 [09:08:18]OFD Sender: Processing packet 201781 [packets to send 112, broken 111] [09:08:18]ProducePacketName [09:08:18]name=ofd_packets/00201781 [09:08:18]OFD Sender: To server: pG, [09:08:18]CommunicateWithHost lk.salyk.kg:30040 [09:08:18]ConnectInit lk.salyk.kg [09:08:18]written 0, free lines is 4095 [09:08:19]Connected sock=10 [09:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DF 4F 07 01 3F 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 04 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 14 03 00 35 04 06 00 17 36 84 3F 35 2E D6 CB 38 55 D4 57 34 5D [09:08:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E9 92 47 00 98 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 14 03 00 F4 03 04 00 AA AE 1D 67 B6 04 01 00 00 17 BF 69 25 54 29 77 18 [09:08:19]CommunicateWithHost err = 0 [09:08:19]CheckOFDResponse [09:08:19]1017 (14) - 77093643461234 [09:08:19]1041 (16) - 0000000000871756 [09:08:19]1040 (4) - 201781 [09:08:19]1012 (4) - 27.10.2024 03:08 [09:08:19]1206 (1) - 0 [09:08:19]OFD Sender: Remove packet 201781 [09:08:19]ProducePacketName [09:08:19]name=ofd_packets/00201781 [09:08:19]NVStorageDeleteData [09:08:19]Write to MH i2c: 01 00 00 F4 1B 0F [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 07 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 07 00 F4 1B 00 00 00 00 00 8F 0C B1 [09:08:19]RasterBufferAndPrint [09:08:19]line [09:08:19]line [09:08:19]line [09:08:19]line [09:08:19]line [09:08:19]written 0, free lines is 3218 [09:08:19]MH_Cut [09:08:19]Write to MH i2c: D1 01 00 FB 1B 01 E8 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: D1 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: D1 01 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: D1 01 00 FB 1B 00 E7 [09:08:19]Write to MH i2c: 01 00 00 FC 1B 17 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]OFD Sender: No OFD packet to send [09:08:20]*** Cut start [09:08:20]*** Purtial cut [09:08:20]*** Stage 1: CUTSNS_PIN = 1 [09:08:20]Read from MH i2c: 01 [09:08:20]MH_I2C_Read... [09:08:20]*** Stop cut motor [09:08:20]*** Cut end [09:08:20]Read from MH i2c: 01 07 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: 01 07 00 FC 1B 00 00 00 00 00 FF 0F 2C [09:08:20]process_action close_receipt done [09:08:20]requested_data is exist [09:08:20]produce_requested_data [09:08:20]requested_item fm.sn is exist - process it [09:08:20]wFMCommunicate request_size=4 [09:08:20]MH_SAM_APDU [09:08:20]CAPDU: 80 11 00 00 [09:08:20]Write to MH i2c: E2 08 00 FD 1B 80 11 00 00 00 00 00 00 92 [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:20]Read from MH i2c: E2 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 17 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 17 00 FD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E7 [09:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:08:20]wFMCommunicate OK [09:08:20]requested_item fd.num is exist - process it [09:08:20]SAM_PROTO_GetFieldsCounters [09:08:20]wFMCommunicate request_size=4 [09:08:20]MH_SAM_APDU [09:08:20]CAPDU: 80 13 00 00 [09:08:20]Write to MH i2c: E2 08 00 FE 1B 80 13 00 00 00 00 00 00 95 [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:20]Read from MH i2c: E2 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 62 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 62 00 FE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 35 14 03 00 0E 04 04 00 20 02 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 07 [09:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 35 14 03 00 0E 04 04 00 20 02 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 [09:08:20]wFMCommunicate OK [09:08:20]SAM_PROTO_GetFieldsCounters done [09:08:20]requested_item shift.num is exist - process it [09:08:20]requested_item shift.opened is exist - process it [09:08:20]req_shift_opened [09:08:20]FM_GetShiftState [09:08:20]SAM_PROTO_GetShiftState [09:08:20]wFMCommunicate request_size=4 [09:08:20]MH_SAM_APDU [09:08:20]CAPDU: 80 13 01 00 [09:08:20]Write to MH i2c: E2 08 00 FF 1B 80 13 01 00 00 00 00 00 97 [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:20]Read from MH i2c: E2 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 0E 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 0E 00 FF 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 99 [09:08:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:08:20]wFMCommunicate OK [09:08:20]SAM_PROTO_GetShiftState done [09:08:20]FM_GetShiftState done [09:08:20]req_shift_opened done [09:08:20]requested_item shift.open_date is exist - process it [09:08:20]req_shift_open_date [09:08:20]req_shift_open_date done [09:08:20]produce_requested_data done [09:08:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201781,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:08:20]process_action_free close_receipt [09:08:20]json_value_free [09:08:20]json_value_free done [09:08:20]process_json_proto returns [09:08:20]Send response to host [09:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201781,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:08:20]free response buf [09:08:20]execute_script done [09:08:20]execute_script returns [09:08:20]free content buf [09:08:20]Sock 9.Close socket [09:08:20]Sock 9.Thread stoped [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:45]accept exits with 8 [09:08:45]New connection [09:08:45]New thread 3066936676 created [09:08:45]Thread 3067080036 joined [09:08:45]Waiting for new connection... [09:08:45] Sock 8.Parse request [09:08:45]Sock 8.Check first char [09:08:45]Sock 8.First char is OK [09:08:45]request: POST /json_proto HTTP/1.0 [09:08:45]Method: POST [09:08:45]URL: /json_proto [09:08:45]Method is POST - this is cgi request [09:08:45]url: /json_proto [09:08:45]query_string will be loaded in cgi processing [09:08:45]execute_cgi json_proto POST (null) [09:08:45]execute_cgi path=json_proto method=POST [09:08:45]POST find Content-Length [09:08:45]Host: 172.17.63.195:8080 [09:08:45]Content-Length: 677 [09:08:45]Content-Type: application/json [09:08:45] [09:08:45]POST finish read [09:08:45]Found Content-Length = 677 [09:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:45]execute_script... [09:08:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:45]POST & json_proto [09:08:45]process_json_proto [09:08:45]json parsed OK: [09:08:45]protocol is kg_v1.0 [09:08:45]action value=close_receipt [09:08:45]process_action close_receipt [09:08:45]cmd_close_receipt [09:08:45]MH_GetDate [09:08:45]Write to MH i2c: F0 00 00 00 1C 0B [09:08:45]Write i2c OK [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: F0 [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: F0 09 00 [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: F0 09 00 00 1C 00 21 03 1E 67 68 46 19 67 EB [09:08:45]GetLastDocTimeStamp 1730020100 [09:08:45]current date 1730020129 [09:08:45]FM_GetShiftState [09:08:45]SAM_PROTO_GetShiftState [09:08:45]wFMCommunicate request_size=4 [09:08:45]MH_SAM_APDU [09:08:45]CAPDU: 80 13 01 00 [09:08:45]Write to MH i2c: E2 08 00 01 1C 80 13 01 00 00 00 00 00 9A [09:08:45]Write i2c OK [09:08:45]MH_I2C_Read... [09:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:45]Read from MH i2c: E2 [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: E2 0E 00 [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: E2 0E 00 01 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9C [09:08:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:08:45]wFMCommunicate OK [09:08:45]SAM_PROTO_GetShiftState done [09:08:45]FM_GetShiftState done [09:08:45]opened in 1729987312 [09:08:45]opened+sec_in_day 1730073712 [09:08:45]quantity*price = 28031 [09:08:45]sum+1 = 28032 [09:08:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 74 27.10.2024 09:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201782 ФПД: 281203918039656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090849&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201782&fm=281203918039656&tin=02508201610067®Number=0000000000091777&sum=28000 [09:08:47]StoreToDocumentArchive [09:08:47]shift 544 fd 201782 [09:08:47]save to /storage/0544/doc_00201782 [09:08:47]save last doc name /storage/0544/doc_00201782 to /storage/kkm_last_doc_name [09:08:47]save OK [09:08:47]Clear old archive folders... [09:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:47]tlvbuf is 00119FD0 [09:08:47]SAM_PROTO_ClearQueue [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 09 00 00 [09:08:47]Write to MH i2c: E2 08 00 0E 1C 80 09 00 00 00 00 00 00 9C [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]SAM_PROTO_ClearQueue done [09:08:47]KKMCreateOFDPacket [09:08:47]OFDProtocolAddRootSTLVToBuf [09:08:47]FM_MakeSignedData [09:08:47]FM_MakeSignedData [09:08:47]SAM_PROTO_SignData [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 01 02 [09:08:47]Write to MH i2c: E2 08 00 0F 1C 80 0D 01 02 00 00 00 00 A4 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]wFMCommunicate request_size=255 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 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 21 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 14 03 00 35 04 06 00 FF [09:08:47]Write to MH i2c: E2 02 01 10 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 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 21 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 14 03 00 35 04 06 00 FF 00 00 E8 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]wFMCommunicate request_size=10 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 02 02 05 C0 E3 A4 EA 68 [09:08:47]Write to MH i2c: E2 0D 00 11 1C 80 0D 02 02 05 00 C0 E3 A4 EA 68 00 00 4A [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 03 02 [09:08:47]Write to MH i2c: E2 08 00 12 1C 80 0D 03 02 00 00 00 00 A9 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 0B 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 0B 00 12 1C 00 AD 13 A7 DA 84 ED 37 5A 90 00 ED [09:08:47]RAPDU: AD 13 A7 DA 84 ED 37 5A 90 00 [09:08:47]wFMCommunicate OK [09:08:47]SAM_PROTO_SignData done [09:08:47]FM_MakeSignedData done [09:08:47]CreateOFDProtocolMessage [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 11 00 00 [09:08:47]Write to MH i2c: E2 08 00 13 1C 80 11 00 00 00 00 00 00 A9 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 17 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 17 00 13 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FE [09:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:08:47]wFMCommunicate OK [09:08:47]CreateOFDProtocolMessage done [09:08:47]OFDSenderStorePacket 201782 [09:08:47]StoreOFDPacket docnum=201782 [09:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 A0 07 01 1A 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 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 21 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 14 03 00 35 04 06 00 FF C0 E3 A4 EA 68 AD 13 A7 DA 84 ED 37 5A [09:08:47]CheckFolder [09:08:47]dirname=/storage/ofd_packets [09:08:47]CheckFolder done [09:08:47]ProducePacketName [09:08:47]name=ofd_packets/00201782 [09:08:47]NVStorageSaveData ofd_packets/00201782 [09:08:47]File name is /storage/ofd_packets/00201782 [09:08:47]Write 301 bytes [09:08:47]NVStorageSaveData done [09:08:47]OFDSenderStorePacket done [09:08:47]KKMCreateOFDPacket done [09:08:47]NVStorageSaveData kkm_last_timestamp [09:08:47]File name is /storage/kkm_last_timestamp [09:08:47]Write 4 bytes [09:08:47]NVStorageSaveData done [09:08:47]ExternCall_PrintAddStr [09:08:47]wPrintStart [09:08:47]Write to MH i2c: 01 00 00 14 1C 30 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 07 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 07 00 14 1C 00 00 00 00 00 FF 0F 45 [09:08:47]RasterBufferAndPrint [09:08:47]line Счет N : (1)449539 [09:08:47]line ИНН: 02508201610067 [09:08:47]line Контрольно-Кассовый Чек [09:08:47]line ПРОДАЖА [09:08:47]line ТРК (МРК, ГНК) : 41 [09:08:47]line Товар: 2710124130 [09:08:47]line Аи-92-К-2 [09:08:47]line 4.190 * 66.90 [09:08:47]line = 280.31 [09:08:47]line НДС 12% НСП 1% [09:08:47]line > о реализуемом товаре [09:08:47]line ОКРУГЛЕНИЕ: -0.31 [09:08:47]line ИТОГО: 280.00 [09:08:47]line Внесено: 280.00 [09:08:47]line СДАЧА: 0.00 [09:08:47]line НСП 1% : 2.48 [09:08:47]line НДС 12% : 29.77 [09:08:47]line Наличными: 280.00 [09:08:47]line Безнал.: 0.00 [09:08:47]line Место: АЗС № 171 "Партнер Нефть" [09:08:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:08:47]line СНО: Общий режим [09:08:47]line Чек 74 27.10.2024 09:08 [09:08:47]line Смена: 544 ФФД: 1.0 [09:08:47]line ЗНМ: 0300000109 [09:08:47]line РНМ: 0000000000091777 [09:08:47]line Версия ККМ: 001 [09:08:47]line ФМ: 0000000000871756 [09:08:47]line ФД: 201782 [09:08:47]line ФПД: 281203918039656 [09:08:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090849&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201782&fm=281203918039656&tin=02508201610067®Number=0000000000091777&sum=28000 [09:08:48]OFD Sender: Processing packet 201782 [packets to send 112, broken 111] [09:08:48]ProducePacketName [09:08:48]name=ofd_packets/00201782 [09:08:48]OFD Sender: To server: pG, [09:08:48]CommunicateWithHost lk.salyk.kg:30040 [09:08:48]ConnectInit lk.salyk.kg [09:08:48]written 0, free lines is 4095 [09:08:48]Connected sock=10 [09:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 A0 07 01 1A 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 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 21 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 14 03 00 35 04 06 00 FF C0 E3 A4 EA 68 AD 13 A7 DA 84 ED 37 5A [09:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CC 5A 47 00 7F 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 14 03 00 F4 03 04 00 C7 AE 1D 67 B6 04 01 00 00 C1 8F 3E 01 6C 75 7C 63 [09:08:48]CommunicateWithHost err = 0 [09:08:48]CheckOFDResponse [09:08:48]1017 (14) - 77093643461234 [09:08:48]1041 (16) - 0000000000871756 [09:08:48]1040 (4) - 201782 [09:08:48]1012 (4) - 27.10.2024 03:08 [09:08:48]1206 (1) - 0 [09:08:48]OFD Sender: Remove packet 201782 [09:08:48]ProducePacketName [09:08:48]name=ofd_packets/00201782 [09:08:48]NVStorageDeleteData [09:08:48]Write to MH i2c: 01 00 00 3F 1C 5B [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 3F 1C 00 00 00 00 00 A3 0C 11 [09:08:48]RasterBufferAndPrint [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]written 0, free lines is 3241 [09:08:48]MH_Cut [09:08:48]Write to MH i2c: D1 01 00 46 1C 01 34 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 01 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 01 00 46 1C 00 33 [09:08:48]Write to MH i2c: 01 00 00 47 1C 63 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]OFD Sender: No OFD packet to send [09:08:49]*** Cut start [09:08:49]*** Purtial cut [09:08:49]*** Stage 1: CUTSNS_PIN = 1 [09:08:49]Read from MH i2c: 01 [09:08:49]MH_I2C_Read... [09:08:49]*** Stop cut motor [09:08:49]*** Cut end [09:08:49]Read from MH i2c: 01 07 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: 01 07 00 47 1C 00 00 00 00 00 FF 0F 78 [09:08:49]process_action close_receipt done [09:08:49]requested_data is exist [09:08:49]produce_requested_data [09:08:49]requested_item fm.sn is exist - process it [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 11 00 00 [09:08:49]Write to MH i2c: E2 08 00 48 1C 80 11 00 00 00 00 00 00 DE [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 17 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 17 00 48 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 33 [09:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:08:49]wFMCommunicate OK [09:08:49]requested_item fd.num is exist - process it [09:08:49]SAM_PROTO_GetFieldsCounters [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 13 00 00 [09:08:49]Write to MH i2c: E2 08 00 49 1C 80 13 00 00 00 00 00 00 E1 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 62 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 62 00 49 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 36 14 03 00 0E 04 04 00 20 02 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 57 [09:08:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 36 14 03 00 0E 04 04 00 20 02 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 [09:08:49]wFMCommunicate OK [09:08:49]SAM_PROTO_GetFieldsCounters done [09:08:49]requested_item shift.num is exist - process it [09:08:49]requested_item shift.opened is exist - process it [09:08:49]req_shift_opened [09:08:49]FM_GetShiftState [09:08:49]SAM_PROTO_GetShiftState [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 13 01 00 [09:08:49]Write to MH i2c: E2 08 00 4A 1C 80 13 01 00 00 00 00 00 E3 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 0E 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 0E 00 4A 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E5 [09:08:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:08:49]wFMCommunicate OK [09:08:49]SAM_PROTO_GetShiftState done [09:08:49]FM_GetShiftState done [09:08:49]req_shift_opened done [09:08:49]requested_item shift.open_date is exist - process it [09:08:49]req_shift_open_date [09:08:49]req_shift_open_date done [09:08:49]produce_requested_data done [09:08:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201782,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:08:49]process_action_free close_receipt [09:08:49]json_value_free [09:08:49]json_value_free done [09:08:49]process_json_proto returns [09:08:49]Send response to host [09:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201782,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:08:49]free response buf [09:08:49]execute_script done [09:08:49]execute_script returns [09:08:49]free content buf [09:08:49]Sock 8.Close socket [09:08:49]Sock 8.Thread stoped [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]accept exits with 9 [09:09:18]New connection [09:09:18]New thread 3067080036 created [09:09:18]Thread 3066936676 joined [09:09:18]Waiting for new connection... [09:09:18] Sock 9.Parse request [09:09:18]Sock 9.Check first char [09:09:18]Sock 9.First char is OK [09:09:18]request: POST /json_proto HTTP/1.0 [09:09:18]Method: POST [09:09:18]URL: /json_proto [09:09:18]Method is POST - this is cgi request [09:09:18]url: /json_proto [09:09:18]query_string will be loaded in cgi processing [09:09:18]execute_cgi json_proto POST (null) [09:09:18]execute_cgi path=json_proto method=POST [09:09:18]POST find Content-Length [09:09:18]Host: 172.17.63.195:8080 [09:09:18]Content-Length: 677 [09:09:18]Content-Type: application/json [09:09:18] [09:09:18]POST finish read [09:09:18]Found Content-Length = 677 [09:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:18]execute_script... [09:09: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)449540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:18]POST & json_proto [09:09:18]process_json_proto [09:09:18]json parsed OK: [09:09:18]protocol is kg_v1.0 [09:09:18]action value=close_receipt [09:09:18]process_action close_receipt [09:09:18]cmd_close_receipt [09:09:18]MH_GetDate [09:09:18]Write to MH i2c: F0 00 00 4B 1C 56 [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: F0 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: F0 09 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: F0 09 00 4B 1C 00 42 03 1E 67 68 46 19 67 57 [09:09:18]GetLastDocTimeStamp 1730020129 [09:09:18]current date 1730020162 [09:09:18]FM_GetShiftState [09:09:18]SAM_PROTO_GetShiftState [09:09:18]wFMCommunicate request_size=4 [09:09:18]MH_SAM_APDU [09:09:18]CAPDU: 80 13 01 00 [09:09:18]Write to MH i2c: E2 08 00 4C 1C 80 13 01 00 00 00 00 00 E5 [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:18]Read from MH i2c: E2 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 0E 00 [09:09:18]MH_I2C_Read... [09:09:18]Read from MH i2c: E2 0E 00 4C 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E7 [09:09:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:09:18]wFMCommunicate OK [09:09:18]SAM_PROTO_GetShiftState done [09:09:18]FM_GetShiftState done [09:09:18]opened in 1729987312 [09:09:18]opened+sec_in_day 1730073712 [09:09:18]quantity*price = 10035 [09:09:18]sum+1 = 10036 [09:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 75 27.10.2024 09:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201783 ФПД: 18125713410830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090922&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201783&fm=18125713410830&tin=02508201610067®Number=0000000000091777&sum=10000 [09:09:19]StoreToDocumentArchive [09:09:19]shift 544 fd 201783 [09:09:19]save to /storage/0544/doc_00201783 [09:09:19]save last doc name /storage/0544/doc_00201783 to /storage/kkm_last_doc_name [09:09:19]save OK [09:09:19]Clear old archive folders... [09:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:19]tlvbuf is B6DC7150 [09:09:19]SAM_PROTO_ClearQueue [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 09 00 00 [09:09:19]Write to MH i2c: E2 08 00 59 1C 80 09 00 00 00 00 00 00 E7 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]SAM_PROTO_ClearQueue done [09:09:19]KKMCreateOFDPacket [09:09:19]OFDProtocolAddRootSTLVToBuf [09:09:19]FM_MakeSignedData [09:09:19]FM_MakeSignedData [09:09:19]SAM_PROTO_SignData [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 01 02 [09:09:19]Write to MH i2c: E2 08 00 5A 1C 80 0D 01 02 00 00 00 00 EF [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]wFMCommunicate request_size=255 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 42 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 14 03 00 35 04 06 00 10 [09:09:19]Write to MH i2c: E2 02 01 5B 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 42 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 14 03 00 35 04 06 00 10 00 00 FF [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]wFMCommunicate request_size=10 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 02 02 05 7C 38 B5 8B 0E [09:09:19]Write to MH i2c: E2 0D 00 5C 1C 80 0D 02 02 05 00 7C 38 B5 8B 0E 00 00 FE [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 03 02 [09:09:19]Write to MH i2c: E2 08 00 5D 1C 80 0D 03 02 00 00 00 00 F4 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 0B 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 0B 00 5D 1C 00 3A D6 19 D9 C4 82 69 2A 90 00 D0 [09:09:19]RAPDU: 3A D6 19 D9 C4 82 69 2A 90 00 [09:09:19]wFMCommunicate OK [09:09:19]SAM_PROTO_SignData done [09:09:19]FM_MakeSignedData done [09:09:19]CreateOFDProtocolMessage [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 11 00 00 [09:09:19]Write to MH i2c: E2 08 00 5E 1C 80 11 00 00 00 00 00 00 F4 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 17 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 17 00 5E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 49 [09:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:09:19]wFMCommunicate OK [09:09:19]CreateOFDProtocolMessage done [09:09:19]OFDSenderStorePacket 201783 [09:09:19]StoreOFDPacket docnum=201783 [09:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 20 32 07 01 EC 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 42 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 14 03 00 35 04 06 00 10 7C 38 B5 8B 0E 3A D6 19 D9 C4 82 69 2A [09:09:19]CheckFolder [09:09:19]dirname=/storage/ofd_packets [09:09:19]CheckFolder done [09:09:19]ProducePacketName [09:09:19]name=ofd_packets/00201783 [09:09:19]NVStorageSaveData ofd_packets/00201783 [09:09:19]File name is /storage/ofd_packets/00201783 [09:09:19]Write 301 bytes [09:09:19]NVStorageSaveData done [09:09:19]OFDSenderStorePacket done [09:09:19]KKMCreateOFDPacket done [09:09:19]NVStorageSaveData kkm_last_timestamp [09:09:19]File name is /storage/kkm_last_timestamp [09:09:19]Write 4 bytes [09:09:19]NVStorageSaveData done [09:09:19]ExternCall_PrintAddStr [09:09:19]wPrintStart [09:09:19]Write to MH i2c: 01 00 00 5F 1C 7B [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 07 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 07 00 5F 1C 00 00 00 00 00 FF 0F 90 [09:09:19]RasterBufferAndPrint [09:09:19]line Счет N : (1)449540 [09:09:19]line ИНН: 02508201610067 [09:09:19]line Контрольно-Кассовый Чек [09:09:19]line ПРОДАЖА [09:09:19]line ТРК (МРК, ГНК) : 41 [09:09:19]line Товар: 2710124130 [09:09:19]line Аи-92-К-2 [09:09:19]line 1.500 * 66.90 [09:09:19]line = 100.35 [09:09:19]line НДС 12% НСП 1% [09:09:19]line > о реализуемом товаре [09:09:19]line ОКРУГЛЕНИЕ: -0.35 [09:09:19]line ИТОГО: 100.00 [09:09:19]line Внесено: 100.00 [09:09:19]line СДАЧА: 0.00 [09:09:19]line НСП 1% : 0.89 [09:09:19]line НДС 12% : 10.66 [09:09:19]line Наличными: 100.00 [09:09:19]line Безнал.: 0.00 [09:09:19]line Место: АЗС № 171 "Партнер Нефть" [09:09:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:09:19]line СНО: Общий режим [09:09:19]line Чек 75 27.10.2024 09:09 [09:09:19]line Смена: 544 ФФД: 1.0 [09:09:19]line ЗНМ: 0300000109 [09:09:19]line РНМ: 0000000000091777 [09:09:19]line Версия ККМ: 001 [09:09:19]line ФМ: 0000000000871756 [09:09:19]line ФД: 201783 [09:09:19]line ФПД: 18125713410830 [09:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090922&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201783&fm=18125713410830&tin=02508201610067®Number=0000000000091777&sum=10000 [09:09:20]OFD Sender: Processing packet 201783 [packets to send 112, broken 111] [09:09:20]ProducePacketName [09:09:20]name=ofd_packets/00201783 [09:09:20]OFD Sender: To server: pG, [09:09:20]CommunicateWithHost lk.salyk.kg:30040 [09:09:20]ConnectInit lk.salyk.kg [09:09:20]written 0, free lines is 4095 [09:09:20]Connected sock=10 [09:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 20 32 07 01 EC 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 42 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 14 03 00 35 04 06 00 10 7C 38 B5 8B 0E 3A D6 19 D9 C4 82 69 2A [09:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F0 4D 47 00 2F 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 14 03 00 F4 03 04 00 E7 AE 1D 67 B6 04 01 00 00 70 27 66 2C 59 8B 10 4B [09:09:20]CommunicateWithHost err = 0 [09:09:20]CheckOFDResponse [09:09:20]1017 (14) - 77093643461234 [09:09:20]1041 (16) - 0000000000871756 [09:09:20]1040 (4) - 201783 [09:09:20]1012 (4) - 27.10.2024 03:09 [09:09:20]1206 (1) - 0 [09:09:20]OFD Sender: Remove packet 201783 [09:09:20]ProducePacketName [09:09:20]name=ofd_packets/00201783 [09:09:20]NVStorageDeleteData [09:09:20]Write to MH i2c: 01 00 00 8A 1C A6 [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 07 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 07 00 8A 1C 00 00 00 00 00 9D 0C 56 [09:09:20]RasterBufferAndPrint [09:09:20]line [09:09:20]line [09:09:20]line [09:09:20]line [09:09:20]line [09:09:20]written 0, free lines is 3235 [09:09:20]MH_Cut [09:09:20]Write to MH i2c: D1 01 00 91 1C 01 7F [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: D1 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: D1 01 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: D1 01 00 91 1C 00 7E [09:09:20]Write to MH i2c: 01 00 00 92 1C AE [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:21]OFD Sender: No OFD packet to send [09:09:21]*** Cut start [09:09:21]*** Purtial cut [09:09:21]*** Stage 1: CUTSNS_PIN = 1 [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]*** Stop cut motor [09:09:21]*** Cut end [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 92 1C 00 00 00 00 00 FF 0F C3 [09:09:21]process_action close_receipt done [09:09:21]requested_data is exist [09:09:21]produce_requested_data [09:09:21]requested_item fm.sn is exist - process it [09:09:21]wFMCommunicate request_size=4 [09:09:21]MH_SAM_APDU [09:09:21]CAPDU: 80 11 00 00 [09:09:21]Write to MH i2c: E2 08 00 93 1C 80 11 00 00 00 00 00 00 29 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:21]Read from MH i2c: E2 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: E2 17 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: E2 17 00 93 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7E [09:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:09:21]wFMCommunicate OK [09:09:21]requested_item fd.num is exist - process it [09:09:21]SAM_PROTO_GetFieldsCounters [09:09:21]wFMCommunicate request_size=4 [09:09:21]MH_SAM_APDU [09:09:21]CAPDU: 80 13 00 00 [09:09:21]Write to MH i2c: E2 08 00 94 1C 80 13 00 00 00 00 00 00 2C [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:22]Read from MH i2c: E2 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 62 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 62 00 94 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 37 14 03 00 0E 04 04 00 20 02 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 A6 [09:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 37 14 03 00 0E 04 04 00 20 02 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 [09:09:22]wFMCommunicate OK [09:09:22]SAM_PROTO_GetFieldsCounters done [09:09:22]requested_item shift.num is exist - process it [09:09:22]requested_item shift.opened is exist - process it [09:09:22]req_shift_opened [09:09:22]FM_GetShiftState [09:09:22]SAM_PROTO_GetShiftState [09:09:22]wFMCommunicate request_size=4 [09:09:22]MH_SAM_APDU [09:09:22]CAPDU: 80 13 01 00 [09:09:22]Write to MH i2c: E2 08 00 95 1C 80 13 01 00 00 00 00 00 2E [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:22]Read from MH i2c: E2 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 0E 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 0E 00 95 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 30 [09:09:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:09:22]wFMCommunicate OK [09:09:22]SAM_PROTO_GetShiftState done [09:09:22]FM_GetShiftState done [09:09:22]req_shift_opened done [09:09:22]requested_item shift.open_date is exist - process it [09:09:22]req_shift_open_date [09:09:22]req_shift_open_date done [09:09:22]produce_requested_data done [09:09:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201783,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:09:22]process_action_free close_receipt [09:09:22]json_value_free [09:09:22]json_value_free done [09:09:22]process_json_proto returns [09:09:22]Send response to host [09:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201783,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:09:22]free response buf [09:09:22]execute_script done [09:09:22]execute_script returns [09:09:22]free content buf [09:09:22]Sock 9.Close socket [09:09:22]Sock 9.Thread stoped [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:37]accept exits with 8 [09:10:37]New connection [09:10:37]New thread 3066936676 created [09:10:37]Thread 3067080036 joined [09:10:37]Waiting for new connection... [09:10:37] Sock 8.Parse request [09:10:37]Sock 8.Check first char [09:10:37]Sock 8.First char is OK [09:10:37]request: POST /json_proto HTTP/1.0 [09:10:37]Method: POST [09:10:37]URL: /json_proto [09:10:37]Method is POST - this is cgi request [09:10:37]url: /json_proto [09:10:37]query_string will be loaded in cgi processing [09:10:37]execute_cgi json_proto POST (null) [09:10:37]execute_cgi path=json_proto method=POST [09:10:37]POST find Content-Length [09:10:37]Host: 172.17.63.195:8080 [09:10:37]Content-Length: 682 [09:10:37]Content-Type: application/json [09:10:37] [09:10:37]POST finish read [09:10:37]Found Content-Length = 682 [09:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:37]execute_script... [09:10:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:37]POST & json_proto [09:10:37]process_json_proto [09:10:37]json parsed OK: [09:10:37]protocol is kg_v1.0 [09:10:37]action value=close_receipt [09:10:37]process_action close_receipt [09:10:37]cmd_close_receipt [09:10:37]MH_GetDate [09:10:37]Write to MH i2c: F0 00 00 96 1C A1 [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: F0 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: F0 09 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: F0 09 00 96 1C 00 90 03 1E 67 68 46 19 67 F0 [09:10:37]GetLastDocTimeStamp 1730020162 [09:10:37]current date 1730020240 [09:10:37]FM_GetShiftState [09:10:37]SAM_PROTO_GetShiftState [09:10:37]wFMCommunicate request_size=4 [09:10:37]MH_SAM_APDU [09:10:37]CAPDU: 80 13 01 00 [09:10:37]Write to MH i2c: E2 08 00 97 1C 80 13 01 00 00 00 00 00 30 [09:10:37]Write i2c OK [09:10:37]MH_I2C_Read... [09:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:37]Read from MH i2c: E2 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 0E 00 [09:10:37]MH_I2C_Read... [09:10:37]Read from MH i2c: E2 0E 00 97 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 32 [09:10:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:10:37]wFMCommunicate OK [09:10:37]SAM_PROTO_GetShiftState done [09:10:37]FM_GetShiftState done [09:10:37]opened in 1729987312 [09:10:37]opened+sec_in_day 1730073712 [09:10:37]quantity*price = 100015 [09:10:37]sum+1 = 100017 [09:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 76 27.10.2024 09:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201784 ФПД: 253617676289935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091040&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201784&fm=253617676289935&tin=02508201610067®Number=0000000000091777&sum=100000 [09:10:38]StoreToDocumentArchive [09:10:38]shift 544 fd 201784 [09:10:38]save to /storage/0544/doc_00201784 [09:10:38]save last doc name /storage/0544/doc_00201784 to /storage/kkm_last_doc_name [09:10:38]save OK [09:10:38]Clear old archive folders... [09:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:38]tlvbuf is B6F749F0 [09:10:38]SAM_PROTO_ClearQueue [09:10:38]wFMCommunicate request_size=4 [09:10:38]MH_SAM_APDU [09:10:38]CAPDU: 80 09 00 00 [09:10:38]Write to MH i2c: E2 08 00 A4 1C 80 09 00 00 00 00 00 00 32 [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:38]Read from MH i2c: E2 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 03 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 03 00 A4 1C 00 90 00 34 [09:10:38]RAPDU: 90 00 [09:10:38]wFMCommunicate OK [09:10:38]SAM_PROTO_ClearQueue done [09:10:38]KKMCreateOFDPacket [09:10:38]OFDProtocolAddRootSTLVToBuf [09:10:38]FM_MakeSignedData [09:10:38]FM_MakeSignedData [09:10:38]SAM_PROTO_SignData [09:10:38]wFMCommunicate request_size=4 [09:10:38]MH_SAM_APDU [09:10:38]CAPDU: 80 0D 01 02 [09:10:38]Write to MH i2c: E2 08 00 A5 1C 80 0D 01 02 00 00 00 00 3A [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:38]Read from MH i2c: E2 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 03 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [09:10:38]RAPDU: 90 00 [09:10:38]wFMCommunicate OK [09:10:38]wFMCommunicate request_size=255 [09:10:38]MH_SAM_APDU [09:10:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4C 00 00 00 F4 03 04 00 90 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 14 03 00 35 04 06 00 E6 [09:10:38]Write to MH i2c: E2 02 01 A6 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4C 00 00 00 F4 03 04 00 90 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 14 03 00 35 04 06 00 E6 00 00 83 [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:38]Read from MH i2c: E2 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 03 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 03 00 A6 1C 00 90 00 36 [09:10:38]RAPDU: 90 00 [09:10:38]wFMCommunicate OK [09:10:38]wFMCommunicate request_size=10 [09:10:38]MH_SAM_APDU [09:10:38]CAPDU: 80 0D 02 02 05 A9 F7 81 07 8F [09:10:38]Write to MH i2c: E2 0D 00 A7 1C 80 0D 02 02 05 00 A9 F7 81 07 8F 00 00 FE [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:38]Read from MH i2c: E2 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 03 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 03 00 A7 1C 00 90 00 37 [09:10:38]RAPDU: 90 00 [09:10:38]wFMCommunicate OK [09:10:38]wFMCommunicate request_size=4 [09:10:38]MH_SAM_APDU [09:10:38]CAPDU: 80 0D 03 02 [09:10:38]Write to MH i2c: E2 08 00 A8 1C 80 0D 03 02 00 00 00 00 3F [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:38]Read from MH i2c: E2 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 0B 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 0B 00 A8 1C 00 17 7F D4 D1 DF 49 E0 26 90 00 A9 [09:10:38]RAPDU: 17 7F D4 D1 DF 49 E0 26 90 00 [09:10:38]wFMCommunicate OK [09:10:38]SAM_PROTO_SignData done [09:10:38]FM_MakeSignedData done [09:10:38]CreateOFDProtocolMessage [09:10:38]wFMCommunicate request_size=4 [09:10:38]MH_SAM_APDU [09:10:38]CAPDU: 80 11 00 00 [09:10:38]Write to MH i2c: E2 08 00 A9 1C 80 11 00 00 00 00 00 00 3F [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:38]Read from MH i2c: E2 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 17 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: E2 17 00 A9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 94 [09:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:10:38]wFMCommunicate OK [09:10:38]CreateOFDProtocolMessage done [09:10:38]OFDSenderStorePacket 201784 [09:10:38]StoreOFDPacket docnum=201784 [09:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 49 C7 07 01 DA 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4C 00 00 00 F4 03 04 00 90 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 14 03 00 35 04 06 00 E6 A9 F7 81 07 8F 17 7F D4 D1 DF 49 E0 26 [09:10:38]CheckFolder [09:10:38]dirname=/storage/ofd_packets [09:10:38]CheckFolder done [09:10:38]ProducePacketName [09:10:38]name=ofd_packets/00201784 [09:10:38]NVStorageSaveData ofd_packets/00201784 [09:10:38]File name is /storage/ofd_packets/00201784 [09:10:38]Write 301 bytes [09:10:38]NVStorageSaveData done [09:10:38]OFDSenderStorePacket done [09:10:38]KKMCreateOFDPacket done [09:10:38]NVStorageSaveData kkm_last_timestamp [09:10:38]File name is /storage/kkm_last_timestamp [09:10:38]Write 4 bytes [09:10:38]NVStorageSaveData done [09:10:38]ExternCall_PrintAddStr [09:10:38]wPrintStart [09:10:38]Write to MH i2c: 01 00 00 AA 1C C6 [09:10:38]Write i2c OK [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: 01 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: 01 07 00 [09:10:38]MH_I2C_Read... [09:10:38]Read from MH i2c: 01 07 00 AA 1C 00 00 00 00 00 FF 0F DB [09:10:38]RasterBufferAndPrint [09:10:38]line Счет N : (1)449541 [09:10:38]line ИНН: 02508201610067 [09:10:38]line Контрольно-Кассовый Чек [09:10:38]line ПРОДАЖА [09:10:38]line ТРК (МРК, ГНК) : 62 [09:10:38]line Товар: 2710124130 [09:10:38]line Аи-92-К-2 [09:10:38]line 14.950 * 66.90 [09:10:38]line = 1000.16 [09:10:38]line НДС 12% НСП 1% [09:10:38]line > о реализуемом товаре [09:10:38]line ОКРУГЛЕНИЕ: -0.16 [09:10:38]line ИТОГО: 1000.00 [09:10:38]line Внесено: 1000.00 [09:10:38]line СДАЧА: 0.00 [09:10:38]line НСП 1% : 8.85 [09:10:38]line НДС 12% : 106.21 [09:10:38]line Наличными: 1000.00 [09:10:38]line Безнал.: 0.00 [09:10:38]line Место: АЗС № 171 "Партнер Нефть" [09:10:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:10:38]line СНО: Общий режим [09:10:38]line Чек 76 27.10.2024 09:10 [09:10:38]line Смена: 544 ФФД: 1.0 [09:10:38]line ЗНМ: 0300000109 [09:10:38]line РНМ: 0000000000091777 [09:10:38]line Версия ККМ: 001 [09:10:38]line ФМ: 0000000000871756 [09:10:38]line ФД: 201784 [09:10:38]line ФПД: 253617676289935 [09:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091040&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201784&fm=253617676289935&tin=02508201610067®Number=0000000000091777&sum=100000 [09:10:39]OFD Sender: Processing packet 201784 [packets to send 112, broken 111] [09:10:39]ProducePacketName [09:10:39]name=ofd_packets/00201784 [09:10:39]OFD Sender: To server: pG, [09:10:39]CommunicateWithHost lk.salyk.kg:30040 [09:10:39]ConnectInit lk.salyk.kg [09:10:39]written 0, free lines is 4095 [09:10:39]Connected sock=10 [09:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 49 C7 07 01 DA 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4C 00 00 00 F4 03 04 00 90 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 14 03 00 35 04 06 00 E6 A9 F7 81 07 8F 17 7F D4 D1 DF 49 E0 26 [09:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 64 D0 47 00 32 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 14 03 00 F4 03 04 00 36 AF 1D 67 B6 04 01 00 00 E8 92 88 5C 3E A6 F6 83 [09:10:39]CommunicateWithHost err = 0 [09:10:39]CheckOFDResponse [09:10:39]1017 (14) - 77093643461234 [09:10:39]1041 (16) - 0000000000871756 [09:10:39]1040 (4) - 201784 [09:10:39]1012 (4) - 27.10.2024 03:10 [09:10:39]1206 (1) - 0 [09:10:39]OFD Sender: Remove packet 201784 [09:10:39]ProducePacketName [09:10:39]name=ofd_packets/00201784 [09:10:39]NVStorageDeleteData [09:10:39]Write to MH i2c: 01 00 00 D5 1C F1 [09:10:39]Write i2c OK [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: 01 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: 01 07 00 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: 01 07 00 D5 1C 00 00 00 00 00 99 0C 9D [09:10:39]RasterBufferAndPrint [09:10:39]line [09:10:39]line [09:10:39]line [09:10:39]line [09:10:39]line [09:10:39]written 0, free lines is 3233 [09:10:39]MH_Cut [09:10:39]Write to MH i2c: D1 01 00 DC 1C 01 CA [09:10:39]Write i2c OK [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: D1 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: D1 01 00 [09:10:39]MH_I2C_Read... [09:10:39]Read from MH i2c: D1 01 00 DC 1C 00 C9 [09:10:39]Write to MH i2c: 01 00 00 DD 1C F9 [09:10:39]Write i2c OK [09:10:39]MH_I2C_Read... [09:10:39]OFD Sender: No OFD packet to send [09:10:40]*** Cut start [09:10:40]*** Purtial cut [09:10:40]*** Stage 1: CUTSNS_PIN = 1 [09:10:40]Read from MH i2c: 01 [09:10:40]MH_I2C_Read... [09:10:40]*** Stop cut motor [09:10:40]*** Cut end [09:10:40]Read from MH i2c: 01 07 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: 01 07 00 DD 1C 00 00 00 00 00 FF 0F 0E [09:10:40]process_action close_receipt done [09:10:40]requested_data is exist [09:10:40]produce_requested_data [09:10:40]requested_item fm.sn is exist - process it [09:10:40]wFMCommunicate request_size=4 [09:10:40]MH_SAM_APDU [09:10:40]CAPDU: 80 11 00 00 [09:10:40]Write to MH i2c: E2 08 00 DE 1C 80 11 00 00 00 00 00 00 74 [09:10:40]Write i2c OK [09:10:40]MH_I2C_Read... [09:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:40]Read from MH i2c: E2 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 17 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 17 00 DE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C9 [09:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:10:40]wFMCommunicate OK [09:10:40]requested_item fd.num is exist - process it [09:10:40]SAM_PROTO_GetFieldsCounters [09:10:40]wFMCommunicate request_size=4 [09:10:40]MH_SAM_APDU [09:10:40]CAPDU: 80 13 00 00 [09:10:40]Write to MH i2c: E2 08 00 DF 1C 80 13 00 00 00 00 00 00 77 [09:10:40]Write i2c OK [09:10:40]MH_I2C_Read... [09:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:40]Read from MH i2c: E2 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 62 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 62 00 DF 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 38 14 03 00 0E 04 04 00 20 02 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 F5 [09:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 38 14 03 00 0E 04 04 00 20 02 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 [09:10:40]wFMCommunicate OK [09:10:40]SAM_PROTO_GetFieldsCounters done [09:10:40]requested_item shift.num is exist - process it [09:10:40]requested_item shift.opened is exist - process it [09:10:40]req_shift_opened [09:10:40]FM_GetShiftState [09:10:40]SAM_PROTO_GetShiftState [09:10:40]wFMCommunicate request_size=4 [09:10:40]MH_SAM_APDU [09:10:40]CAPDU: 80 13 01 00 [09:10:40]Write to MH i2c: E2 08 00 E0 1C 80 13 01 00 00 00 00 00 79 [09:10:40]Write i2c OK [09:10:40]MH_I2C_Read... [09:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:40]Read from MH i2c: E2 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 0E 00 [09:10:40]MH_I2C_Read... [09:10:40]Read from MH i2c: E2 0E 00 E0 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7B [09:10:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:10:40]wFMCommunicate OK [09:10:40]SAM_PROTO_GetShiftState done [09:10:40]FM_GetShiftState done [09:10:40]req_shift_opened done [09:10:40]requested_item shift.open_date is exist - process it [09:10:40]req_shift_open_date [09:10:40]req_shift_open_date done [09:10:40]produce_requested_data done [09:10:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201784,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:10:40]process_action_free close_receipt [09:10:40]json_value_free [09:10:40]json_value_free done [09:10:40]process_json_proto returns [09:10:40]Send response to host [09:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201784,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:10:40]free response buf [09:10:40]execute_script done [09:10:40]execute_script returns [09:10:40]free content buf [09:10:40]Sock 8.Close socket [09:10:40]Sock 8.Thread stoped [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:07]accept exits with 9 [09:11:07]New connection [09:11:07]New thread 3067080036 created [09:11:07]Thread 3066936676 joined [09:11:07]Waiting for new connection... [09:11:07] Sock 9.Parse request [09:11:07]Sock 9.Check first char [09:11:07]Sock 9.First char is OK [09:11:07]request: POST /json_proto HTTP/1.0 [09:11:07]Method: POST [09:11:07]URL: /json_proto [09:11:07]Method is POST - this is cgi request [09:11:07]url: /json_proto [09:11:07]query_string will be loaded in cgi processing [09:11:07]execute_cgi json_proto POST (null) [09:11:07]execute_cgi path=json_proto method=POST [09:11:07]POST find Content-Length [09:11:07]Host: 172.17.63.195:8080 [09:11:07]Content-Length: 677 [09:11:07]Content-Type: application/json [09:11:07] [09:11:07]POST finish read [09:11:07]Found Content-Length = 677 [09:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:07]execute_script... [09:11: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)449544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:07]POST & json_proto [09:11:07]process_json_proto [09:11:07]json parsed OK: [09:11:07]protocol is kg_v1.0 [09:11:07]action value=close_receipt [09:11:07]process_action close_receipt [09:11:07]cmd_close_receipt [09:11:07]MH_GetDate [09:11:07]Write to MH i2c: F0 00 00 E1 1C EC [09:11:07]Write i2c OK [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: F0 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: F0 09 00 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: F0 09 00 E1 1C 00 AE 03 1E 67 68 46 19 67 59 [09:11:07]GetLastDocTimeStamp 1730020240 [09:11:07]current date 1730020270 [09:11:07]FM_GetShiftState [09:11:07]SAM_PROTO_GetShiftState [09:11:07]wFMCommunicate request_size=4 [09:11:07]MH_SAM_APDU [09:11:07]CAPDU: 80 13 01 00 [09:11:07]Write to MH i2c: E2 08 00 E2 1C 80 13 01 00 00 00 00 00 7B [09:11:07]Write i2c OK [09:11:07]MH_I2C_Read... [09:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:07]Read from MH i2c: E2 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: E2 0E 00 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: E2 0E 00 E2 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7D [09:11:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:11:07]wFMCommunicate OK [09:11:07]SAM_PROTO_GetShiftState done [09:11:07]FM_GetShiftState done [09:11:07]opened in 1729987312 [09:11:07]opened+sec_in_day 1730073712 [09:11:07]quantity*price = 50041 [09:11:07]sum+1 = 50042 [09:11: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 77 27.10.2024 09:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201785 ФПД: 140699420192530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091110&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201785&fm=140699420192530&tin=02508201610067®Number=0000000000091777&sum=50000 [09:11:08]StoreToDocumentArchive [09:11:08]shift 544 fd 201785 [09:11:08]save to /storage/0544/doc_00201785 [09:11:08]save last doc name /storage/0544/doc_00201785 to /storage/kkm_last_doc_name [09:11:08]save OK [09:11:08]Clear old archive folders... [09:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:08]tlvbuf is 000A35F0 [09:11:08]SAM_PROTO_ClearQueue [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 09 00 00 [09:11:08]Write to MH i2c: E2 08 00 EF 1C 80 09 00 00 00 00 00 00 7D [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 EF 1C 00 90 00 7F [09:11:08]RAPDU: 90 00 [09:11:08]wFMCommunicate OK [09:11:08]SAM_PROTO_ClearQueue done [09:11:08]KKMCreateOFDPacket [09:11:08]OFDProtocolAddRootSTLVToBuf [09:11:08]FM_MakeSignedData [09:11:08]FM_MakeSignedData [09:11:08]SAM_PROTO_SignData [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 0D 01 02 [09:11:08]Write to MH i2c: E2 08 00 F0 1C 80 0D 01 02 00 00 00 00 85 [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [09:11:08]RAPDU: 90 00 [09:11:08]wFMCommunicate OK [09:11:08]wFMCommunicate request_size=255 [09:11:08]MH_SAM_APDU [09:11: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 32 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 4D 00 00 00 F4 03 04 00 AE 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 14 03 00 35 04 06 00 7F [09:11:08]Write to MH i2c: E2 02 01 F1 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 00 00 00 F4 03 04 00 AE 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 14 03 00 35 04 06 00 7F 00 00 8D [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 F1 1C 00 90 00 81 [09:11:08]RAPDU: 90 00 [09:11:08]wFMCommunicate OK [09:11:08]wFMCommunicate request_size=10 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 0D 02 02 05 F7 22 F5 EF 12 [09:11:08]Write to MH i2c: E2 0D 00 F2 1C 80 0D 02 02 05 00 F7 22 F5 EF 12 00 00 A1 [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:08]Read from MH i2c: E2 03 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [09:11:08]RAPDU: 90 00 [09:11:08]wFMCommunicate OK [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 0D 03 02 [09:11:08]Write to MH i2c: E2 08 00 F3 1C 80 0D 03 02 00 00 00 00 8A [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 0B 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 0B 00 F3 1C 00 57 03 40 36 50 65 28 0F 90 00 47 [09:11:08]RAPDU: 57 03 40 36 50 65 28 0F 90 00 [09:11:08]wFMCommunicate OK [09:11:08]SAM_PROTO_SignData done [09:11:08]FM_MakeSignedData done [09:11:08]CreateOFDProtocolMessage [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 11 00 00 [09:11:08]Write to MH i2c: E2 08 00 F4 1C 80 11 00 00 00 00 00 00 8A [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 17 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 17 00 F4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [09:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:08]wFMCommunicate OK [09:11:08]CreateOFDProtocolMessage done [09:11:08]OFDSenderStorePacket 201785 [09:11:08]StoreOFDPacket docnum=201785 [09:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5A 3F 07 01 A2 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 00 00 00 F4 03 04 00 AE 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 14 03 00 35 04 06 00 7F F7 22 F5 EF 12 57 03 40 36 50 65 28 0F [09:11:08]CheckFolder [09:11:08]dirname=/storage/ofd_packets [09:11:08]CheckFolder done [09:11:08]ProducePacketName [09:11:08]name=ofd_packets/00201785 [09:11:08]NVStorageSaveData ofd_packets/00201785 [09:11:08]File name is /storage/ofd_packets/00201785 [09:11:08]Write 301 bytes [09:11:08]NVStorageSaveData done [09:11:08]OFDSenderStorePacket done [09:11:08]KKMCreateOFDPacket done [09:11:08]NVStorageSaveData kkm_last_timestamp [09:11:08]File name is /storage/kkm_last_timestamp [09:11:08]Write 4 bytes [09:11:08]NVStorageSaveData done [09:11:08]ExternCall_PrintAddStr [09:11:08]wPrintStart [09:11:08]Write to MH i2c: 01 00 00 F5 1C 11 [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: 01 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: 01 07 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: 01 07 00 F5 1C 00 00 00 00 00 FF 0F 26 [09:11:08]RasterBufferAndPrint [09:11:08]line Счет N : (1)449544 [09:11:08]line ИНН: 02508201610067 [09:11:08]line Контрольно-Кассовый Чек [09:11:08]line ПРОДАЖА [09:11:08]line ТРК (МРК, ГНК) : 52 [09:11:08]line Товар: 2710124130 [09:11:08]line Аи-92-К-2 [09:11:08]line 7.480 * 66.90 [09:11:08]line = 500.41 [09:11:08]line НДС 12% НСП 1% [09:11:08]line > о реализуемом товаре [09:11:08]line ОКРУГЛЕНИЕ: -0.41 [09:11:08]line ИТОГО: 500.00 [09:11:08]line Внесено: 500.00 [09:11:08]line СДАЧА: 0.00 [09:11:08]line НСП 1% : 4.43 [09:11:08]line НДС 12% : 53.14 [09:11:08]line Наличными: 500.00 [09:11:08]line Безнал.: 0.00 [09:11:08]line Место: АЗС № 171 "Партнер Нефть" [09:11:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:11:08]line СНО: Общий режим [09:11:08]line Чек 77 27.10.2024 09:11 [09:11:08]line Смена: 544 ФФД: 1.0 [09:11:08]line ЗНМ: 0300000109 [09:11:08]line РНМ: 0000000000091777 [09:11:08]line Версия ККМ: 001 [09:11:08]line ФМ: 0000000000871756 [09:11:08]line ФД: 201785 [09:11:08]line ФПД: 140699420192530 [09:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091110&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201785&fm=140699420192530&tin=02508201610067®Number=0000000000091777&sum=50000 [09:11:09]OFD Sender: Processing packet 201785 [packets to send 112, broken 111] [09:11:09]ProducePacketName [09:11:09]name=ofd_packets/00201785 [09:11:09]OFD Sender: To server: pG, [09:11:09]CommunicateWithHost lk.salyk.kg:30040 [09:11:09]ConnectInit lk.salyk.kg [09:11:09]written 0, free lines is 4095 [09:11:09]Connected sock=10 [09:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5A 3F 07 01 A2 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 00 00 00 F4 03 04 00 AE 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 14 03 00 35 04 06 00 7F F7 22 F5 EF 12 57 03 40 36 50 65 28 0F [09:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FB 91 47 00 7F B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 14 03 00 F4 03 04 00 54 AF 1D 67 B6 04 01 00 00 44 62 21 17 1D D0 97 28 [09:11:09]CommunicateWithHost err = 0 [09:11:09]CheckOFDResponse [09:11:09]1017 (14) - 77093643461234 [09:11:09]1041 (16) - 0000000000871756 [09:11:09]1040 (4) - 201785 [09:11:09]1012 (4) - 27.10.2024 03:11 [09:11:09]1206 (1) - 0 [09:11:09]OFD Sender: Remove packet 201785 [09:11:09]ProducePacketName [09:11:09]name=ofd_packets/00201785 [09:11:09]NVStorageDeleteData [09:11:09]Write to MH i2c: 01 00 00 20 1D 3D [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: 01 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: 01 07 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: 01 07 00 20 1D 00 00 00 00 00 97 0C E7 [09:11:09]RasterBufferAndPrint [09:11:09]line [09:11:09]line [09:11:09]line [09:11:09]line [09:11:09]line [09:11:09]written 0, free lines is 3227 [09:11:09]MH_Cut [09:11:09]Write to MH i2c: D1 01 00 27 1D 01 16 [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: D1 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: D1 01 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: D1 01 00 27 1D 00 15 [09:11:09]Write to MH i2c: 01 00 00 28 1D 45 [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]OFD Sender: No OFD packet to send [09:11:10]*** Cut start [09:11:10]*** Purtial cut [09:11:10]*** Stage 1: CUTSNS_PIN = 1 [09:11:10]Read from MH i2c: 01 [09:11:10]MH_I2C_Read... [09:11:10]*** Stop cut motor [09:11:10]*** Cut end [09:11:10]Read from MH i2c: 01 07 00 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: 01 07 00 28 1D 00 00 00 00 00 FF 0F 5A [09:11:10]process_action close_receipt done [09:11:10]requested_data is exist [09:11:10]produce_requested_data [09:11:10]requested_item fm.sn is exist - process it [09:11:10]wFMCommunicate request_size=4 [09:11:10]MH_SAM_APDU [09:11:10]CAPDU: 80 11 00 00 [09:11:10]Write to MH i2c: E2 08 00 29 1D 80 11 00 00 00 00 00 00 C0 [09:11:10]Write i2c OK [09:11:10]MH_I2C_Read... [09:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:10]Read from MH i2c: E2 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: E2 17 00 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: E2 17 00 29 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 15 [09:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:10]wFMCommunicate OK [09:11:10]requested_item fd.num is exist - process it [09:11:10]SAM_PROTO_GetFieldsCounters [09:11:10]wFMCommunicate request_size=4 [09:11:10]MH_SAM_APDU [09:11:10]CAPDU: 80 13 00 00 [09:11:10]Write to MH i2c: E2 08 00 2A 1D 80 13 00 00 00 00 00 00 C3 [09:11:10]Write i2c OK [09:11:10]MH_I2C_Read... [09:11:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:10]Read from MH i2c: E2 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: E2 62 00 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: E2 62 00 2A 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 39 14 03 00 0E 04 04 00 20 02 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 45 [09:11:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 39 14 03 00 0E 04 04 00 20 02 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 [09:11:10]wFMCommunicate OK [09:11:10]SAM_PROTO_GetFieldsCounters done [09:11:10]requested_item shift.num is exist - process it [09:11:10]requested_item shift.opened is exist - process it [09:11:10]req_shift_opened [09:11:10]FM_GetShiftState [09:11:10]SAM_PROTO_GetShiftState [09:11:10]wFMCommunicate request_size=4 [09:11:10]MH_SAM_APDU [09:11:10]CAPDU: 80 13 01 00 [09:11:10]Write to MH i2c: E2 08 00 2B 1D 80 13 01 00 00 00 00 00 C5 [09:11:10]Write i2c OK [09:11:10]MH_I2C_Read... [09:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:10]Read from MH i2c: E2 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: E2 0E 00 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: E2 0E 00 2B 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C7 [09:11:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:11:10]wFMCommunicate OK [09:11:10]SAM_PROTO_GetShiftState done [09:11:10]FM_GetShiftState done [09:11:10]req_shift_opened done [09:11:10]requested_item shift.open_date is exist - process it [09:11:10]req_shift_open_date [09:11:10]req_shift_open_date done [09:11:10]produce_requested_data done [09:11:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201785,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:11:10]process_action_free close_receipt [09:11:10]json_value_free [09:11:10]json_value_free done [09:11:10]process_json_proto returns [09:11:10]Send response to host [09:11:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201785,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:11:10]free response buf [09:11:10]execute_script done [09:11:10]execute_script returns [09:11:10]free content buf [09:11:10]Sock 9.Close socket [09:11:10]Sock 9.Thread stoped [09:11:11]accept exits with 8 [09:11:11]New connection [09:11:11]New thread 3066936676 created [09:11:11]Thread 3067080036 joined [09:11:11]Waiting for new connection... [09:11:11] Sock 8.Parse request [09:11:11]Sock 8.Check first char [09:11:11]Sock 8.First char is OK [09:11:11]request: POST /json_proto HTTP/1.0 [09:11:11]Method: POST [09:11:11]URL: /json_proto [09:11:11]Method is POST - this is cgi request [09:11:11]url: /json_proto [09:11:11]query_string will be loaded in cgi processing [09:11:11]execute_cgi json_proto POST (null) [09:11:11]execute_cgi path=json_proto method=POST [09:11:11]POST find Content-Length [09:11:11]Host: 172.17.63.195:8080 [09:11:11]Content-Length: 675 [09:11:11]Content-Type: application/json [09:11:11] [09:11:11]POST finish read [09:11:11]Found Content-Length = 675 [09:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:11:11]execute_script... [09:11: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)449543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:11:11]POST & json_proto [09:11:11]process_json_proto [09:11:11]json parsed OK: [09:11:11]protocol is kg_v1.0 [09:11:11]action value=close_receipt [09:11:11]process_action close_receipt [09:11:11]cmd_close_receipt [09:11:11]MH_GetDate [09:11:11]Write to MH i2c: F0 00 00 2C 1D 38 [09:11:11]Write i2c OK [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: F0 [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: F0 09 00 [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: F0 09 00 2C 1D 00 B3 03 1E 67 68 46 19 67 AA [09:11:11]GetLastDocTimeStamp 1730020270 [09:11:11]current date 1730020275 [09:11:11]FM_GetShiftState [09:11:11]SAM_PROTO_GetShiftState [09:11:11]wFMCommunicate request_size=4 [09:11:11]MH_SAM_APDU [09:11:11]CAPDU: 80 13 01 00 [09:11:11]Write to MH i2c: E2 08 00 2D 1D 80 13 01 00 00 00 00 00 C7 [09:11:11]Write i2c OK [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: E2 [09:11:11]MH_I2C_Read... [09:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:11]Read from MH i2c: E2 0E 00 [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: E2 0E 00 2D 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C9 [09:11:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:11:11]wFMCommunicate OK [09:11:11]SAM_PROTO_GetShiftState done [09:11:11]FM_GetShiftState done [09:11:11]opened in 1729987312 [09:11:11]opened+sec_in_day 1730073712 [09:11:11]quantity*price = 100000 [09:11:11]sum+1 = 100002 [09:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 78 27.10.2024 09:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201786 ФПД: 20168830463512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091115&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201786&fm=20168830463512&tin=02508201610067®Number=0000000000091777&sum=100000 [09:11:12]StoreToDocumentArchive [09:11:12]shift 544 fd 201786 [09:11:12]save to /storage/0544/doc_00201786 [09:11:12]save last doc name /storage/0544/doc_00201786 to /storage/kkm_last_doc_name [09:11:12]save OK [09:11:12]Clear old archive folders... [09:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:11:12]tlvbuf is 001456A0 [09:11:12]SAM_PROTO_ClearQueue [09:11:12]wFMCommunicate request_size=4 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 09 00 00 [09:11:12]Write to MH i2c: E2 08 00 3A 1D 80 09 00 00 00 00 00 00 C9 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 03 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 03 00 3A 1D 00 90 00 CB [09:11:12]RAPDU: 90 00 [09:11:12]wFMCommunicate OK [09:11:12]SAM_PROTO_ClearQueue done [09:11:12]KKMCreateOFDPacket [09:11:12]OFDProtocolAddRootSTLVToBuf [09:11:12]FM_MakeSignedData [09:11:12]FM_MakeSignedData [09:11:12]SAM_PROTO_SignData [09:11:12]wFMCommunicate request_size=4 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 0D 01 02 [09:11:12]Write to MH i2c: E2 08 00 3B 1D 80 0D 01 02 00 00 00 00 D1 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 03 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 03 00 3B 1D 00 90 00 CC [09:11:12]RAPDU: 90 00 [09:11:12]wFMCommunicate OK [09:11:12]wFMCommunicate request_size=255 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 B3 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 14 03 00 35 04 06 00 [09:11:12]Write to MH i2c: E2 02 01 3C 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 B3 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 14 03 00 35 04 06 00 00 00 36 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:13]Read from MH i2c: E2 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 03 00 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [09:11:13]RAPDU: 90 00 [09:11:13]wFMCommunicate OK [09:11:13]wFMCommunicate request_size=11 [09:11:13]MH_SAM_APDU [09:11:13]CAPDU: 80 0D 02 02 06 12 57 EB F9 AE 18 [09:11:13]Write to MH i2c: E2 0E 00 3D 1D 80 0D 02 02 06 00 12 57 EB F9 AE 18 00 00 F3 [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:13]Read from MH i2c: E2 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 03 00 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 03 00 3D 1D 00 90 00 CE [09:11:13]RAPDU: 90 00 [09:11:13]wFMCommunicate OK [09:11:13]wFMCommunicate request_size=4 [09:11:13]MH_SAM_APDU [09:11:13]CAPDU: 80 0D 03 02 [09:11:13]Write to MH i2c: E2 08 00 3E 1D 80 0D 03 02 00 00 00 00 D6 [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:13]Read from MH i2c: E2 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 0B 00 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 0B 00 3E 1D 00 1A D1 F9 50 BC 4A 49 AA 90 00 04 [09:11:13]RAPDU: 1A D1 F9 50 BC 4A 49 AA 90 00 [09:11:13]wFMCommunicate OK [09:11:13]SAM_PROTO_SignData done [09:11:13]FM_MakeSignedData done [09:11:13]CreateOFDProtocolMessage [09:11:13]wFMCommunicate request_size=4 [09:11:13]MH_SAM_APDU [09:11:13]CAPDU: 80 11 00 00 [09:11:13]Write to MH i2c: E2 08 00 3F 1D 80 11 00 00 00 00 00 00 D6 [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:13]Read from MH i2c: E2 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 17 00 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: E2 17 00 3F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2B [09:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:13]wFMCommunicate OK [09:11:13]CreateOFDProtocolMessage done [09:11:13]OFDSenderStorePacket 201786 [09:11:13]StoreOFDPacket docnum=201786 [09:11:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E7 C7 08 01 35 E9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 B3 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 14 03 00 35 04 06 00 12 57 EB F9 AE 18 1A D1 F9 50 BC 4A 49 AA [09:11:13]CheckFolder [09:11:13]dirname=/storage/ofd_packets [09:11:13]CheckFolder done [09:11:13]ProducePacketName [09:11:13]name=ofd_packets/00201786 [09:11:13]NVStorageSaveData ofd_packets/00201786 [09:11:13]File name is /storage/ofd_packets/00201786 [09:11:13]Write 302 bytes [09:11:13]NVStorageSaveData done [09:11:13]OFDSenderStorePacket done [09:11:13]KKMCreateOFDPacket done [09:11:13]NVStorageSaveData kkm_last_timestamp [09:11:13]File name is /storage/kkm_last_timestamp [09:11:13]Write 4 bytes [09:11:13]NVStorageSaveData done [09:11:13]ExternCall_PrintAddStr [09:11:13]wPrintStart [09:11:13]Write to MH i2c: 01 00 00 40 1D 5D [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: 01 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: 01 07 00 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: 01 07 00 40 1D 00 00 00 00 00 FF 0F 72 [09:11:13]RasterBufferAndPrint [09:11:13]line Счет N : (1)449543 [09:11:13]line ИНН: 02508201610067 [09:11:13]line Контрольно-Кассовый Чек [09:11:13]line ПРОДАЖА [09:11:13]line ТРК (МРК, ГНК) : 42 [09:11:13]line Товар: 2710124130 [09:11:13]line SUPER 92-К-5 [09:11:13]line 14.620 * 68.40 [09:11:13]line = 1000.01 [09:11:13]line НДС 12% НСП 1% [09:11:13]line > о реализуемом товаре [09:11:13]line ОКРУГЛЕНИЕ: -0.01 [09:11:13]line ИТОГО: 1000.00 [09:11:13]line Внесено: 1000.00 [09:11:13]line СДАЧА: 0.00 [09:11:13]line НСП 1% : 8.85 [09:11:13]line НДС 12% : 106.20 [09:11:13]line Наличными: 1000.00 [09:11:13]line Безнал.: 0.00 [09:11:13]line Место: АЗС № 171 "Партнер Нефть" [09:11:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:11:13]line СНО: Общий режим [09:11:13]line Чек 78 27.10.2024 09:11 [09:11:13]line Смена: 544 ФФД: 1.0 [09:11:13]line ЗНМ: 0300000109 [09:11:13]line РНМ: 0000000000091777 [09:11:13]line Версия ККМ: 001 [09:11:13]line ФМ: 0000000000871756 [09:11:13]line ФД: 201786 [09:11:13]line ФПД: 20168830463512 [09:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091115&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201786&fm=20168830463512&tin=02508201610067®Number=0000000000091777&sum=100000 [09:11:13]OFD Sender: Processing packet 201786 [packets to send 112, broken 111] [09:11:13]ProducePacketName [09:11:13]name=ofd_packets/00201786 [09:11:13]OFD Sender: To server: pG, [09:11:13]CommunicateWithHost lk.salyk.kg:30040 [09:11:13]ConnectInit lk.salyk.kg [09:11:13]written 0, free lines is 4095 [09:11:13]Connected sock=10 [09:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E7 C7 08 01 35 E9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 B3 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 14 03 00 35 04 06 00 12 57 EB F9 AE 18 1A D1 F9 50 BC 4A 49 AA [09:11:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BD 0C 47 00 4C 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 14 03 00 F4 03 04 00 59 AF 1D 67 B6 04 01 00 00 F8 74 04 32 C2 CC 91 E6 [09:11:14]CommunicateWithHost err = 0 [09:11:14]CheckOFDResponse [09:11:14]1017 (14) - 77093643461234 [09:11:14]1041 (16) - 0000000000871756 [09:11:14]1040 (4) - 201786 [09:11:14]1012 (4) - 27.10.2024 03:11 [09:11:14]1206 (1) - 0 [09:11:14]OFD Sender: Remove packet 201786 [09:11:14]ProducePacketName [09:11:14]name=ofd_packets/00201786 [09:11:14]NVStorageDeleteData [09:11:14]Write to MH i2c: 01 00 00 6B 1D 88 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 07 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 07 00 6B 1D 00 00 00 00 00 9D 0C 38 [09:11:14]RasterBufferAndPrint [09:11:14]line [09:11:14]line [09:11:14]line [09:11:14]line [09:11:14]line [09:11:14]written 0, free lines is 3237 [09:11:14]MH_Cut [09:11:14]Write to MH i2c: D1 01 00 72 1D 01 61 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: D1 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: D1 01 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: D1 01 00 72 1D 00 60 [09:11:14]Write to MH i2c: 01 00 00 73 1D 90 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]OFD Sender: No OFD packet to send [09:11:15]*** Cut start [09:11:15]*** Purtial cut [09:11:15]*** CUTSNS_PIN = 0 [09:11:15]*** Stage 1: CUTSNS_PIN = 1 [09:11:17]Read from MH i2c: 01 [09:11:17]MH_I2C_Read... [09:11:17]*** Stop cut motor [09:11:17]*** Cut end [09:11:17]Read from MH i2c: 01 07 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 07 00 73 1D 00 00 00 00 00 FF 0F A5 [09:11:17]process_action close_receipt done [09:11:17]requested_data is exist [09:11:17]produce_requested_data [09:11:17]requested_item fm.sn is exist - process it [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 11 00 00 [09:11:17]Write to MH i2c: E2 08 00 74 1D 80 11 00 00 00 00 00 00 0B [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:17]Read from MH i2c: E2 17 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 17 00 74 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 60 [09:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:17]wFMCommunicate OK [09:11:17]requested_item fd.num is exist - process it [09:11:17]SAM_PROTO_GetFieldsCounters [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 13 00 00 [09:11:17]Write to MH i2c: E2 08 00 75 1D 80 13 00 00 00 00 00 00 0E [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 62 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 62 00 75 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3A 14 03 00 0E 04 04 00 20 02 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 94 [09:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3A 14 03 00 0E 04 04 00 20 02 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 [09:11:17]wFMCommunicate OK [09:11:17]SAM_PROTO_GetFieldsCounters done [09:11:17]requested_item shift.num is exist - process it [09:11:17]requested_item shift.opened is exist - process it [09:11:17]req_shift_opened [09:11:17]FM_GetShiftState [09:11:17]SAM_PROTO_GetShiftState [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 13 01 00 [09:11:17]Write to MH i2c: E2 08 00 76 1D 80 13 01 00 00 00 00 00 10 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 0E 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 0E 00 76 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 12 [09:11:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:11:17]wFMCommunicate OK [09:11:17]SAM_PROTO_GetShiftState done [09:11:17]FM_GetShiftState done [09:11:17]req_shift_opened done [09:11:17]requested_item shift.open_date is exist - process it [09:11:17]req_shift_open_date [09:11:17]req_shift_open_date done [09:11:17]produce_requested_data done [09:11:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201786,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:11:17]process_action_free close_receipt [09:11:17]json_value_free [09:11:17]json_value_free done [09:11:17]process_json_proto returns [09:11:17]Send response to host [09:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201786,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:11:17]free response buf [09:11:17]execute_script done [09:11:17]execute_script returns [09:11:17]free content buf [09:11:17]Sock 8.Close socket [09:11:17]Sock 8.Thread stoped [09:11:17]accept exits with 9 [09:11:17]New connection [09:11:17]New thread 3067080036 created [09:11:17]Thread 3066936676 joined [09:11:17]Waiting for new connection... [09:11:17] Sock 9.Parse request [09:11:17]Sock 9.Check first char [09:11:17]Sock 9.First char is OK [09:11:17]request: POST /json_proto HTTP/1.0 [09:11:17]Method: POST [09:11:17]URL: /json_proto [09:11:17]Method is POST - this is cgi request [09:11:17]url: /json_proto [09:11:17]query_string will be loaded in cgi processing [09:11:17]execute_cgi json_proto POST (null) [09:11:17]execute_cgi path=json_proto method=POST [09:11:17]POST find Content-Length [09:11:17]Host: 172.17.63.195:8080 [09:11:17]Content-Length: 677 [09:11:17]Content-Type: application/json [09:11:17] [09:11:17]POST finish read [09:11:17]Found Content-Length = 677 [09:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:17]execute_script... [09:11: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)449545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:17]POST & json_proto [09:11:17]process_json_proto [09:11:17]json parsed OK: [09:11:17]protocol is kg_v1.0 [09:11:17]action value=close_receipt [09:11:17]process_action close_receipt [09:11:17]cmd_close_receipt [09:11:17]MH_GetDate [09:11:17]Write to MH i2c: F0 00 00 77 1D 83 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: F0 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: F0 09 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: F0 09 00 77 1D 00 B9 03 1E 67 68 46 19 67 FB [09:11:17]GetLastDocTimeStamp 1730020275 [09:11:17]current date 1730020281 [09:11:17]FM_GetShiftState [09:11:17]SAM_PROTO_GetShiftState [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 13 01 00 [09:11:17]Write to MH i2c: E2 08 00 78 1D 80 13 01 00 00 00 00 00 12 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 0E 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 0E 00 78 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 14 [09:11:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:11:17]wFMCommunicate OK [09:11:17]SAM_PROTO_GetShiftState done [09:11:17]FM_GetShiftState done [09:11:17]opened in 1729987312 [09:11:17]opened+sec_in_day 1730073712 [09:11:17]quantity*price = 21006 [09:11:17]sum+1 = 21008 [09:11:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 79 27.10.2024 09:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201787 ФПД: 214037725323590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091121&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201787&fm=214037725323590&tin=02508201610067®Number=0000000000091777&sum=21000 [09:11:19]StoreToDocumentArchive [09:11:19]shift 544 fd 201787 [09:11:19]save to /storage/0544/doc_00201787 [09:11:19]save last doc name /storage/0544/doc_00201787 to /storage/kkm_last_doc_name [09:11:19]save OK [09:11:19]Clear old archive folders... [09:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:19]tlvbuf is 000A3A80 [09:11:19]SAM_PROTO_ClearQueue [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 09 00 00 [09:11:19]Write to MH i2c: E2 08 00 85 1D 80 09 00 00 00 00 00 00 14 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 03 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 03 00 85 1D 00 90 00 16 [09:11:19]RAPDU: 90 00 [09:11:19]wFMCommunicate OK [09:11:19]SAM_PROTO_ClearQueue done [09:11:19]KKMCreateOFDPacket [09:11:19]OFDProtocolAddRootSTLVToBuf [09:11:19]FM_MakeSignedData [09:11:19]FM_MakeSignedData [09:11:19]SAM_PROTO_SignData [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 0D 01 02 [09:11:19]Write to MH i2c: E2 08 00 86 1D 80 0D 01 02 00 00 00 00 1C [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 03 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 03 00 86 1D 00 90 00 17 [09:11:19]RAPDU: 90 00 [09:11:19]wFMCommunicate OK [09:11:19]wFMCommunicate request_size=255 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B9 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 14 03 00 35 04 06 00 C2 [09:11:19]Write to MH i2c: E2 02 01 87 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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B9 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 14 03 00 35 04 06 00 C2 00 00 0B [09:11:19]OFD Sender: No OFD packet to send [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 03 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 03 00 87 1D 00 90 00 18 [09:11:19]RAPDU: 90 00 [09:11:19]wFMCommunicate OK [09:11:19]wFMCommunicate request_size=10 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 0D 02 02 05 AA 8A 96 21 46 [09:11:19]Write to MH i2c: E2 0D 00 88 1D 80 0D 02 02 05 00 AA 8A 96 21 46 00 00 5A [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 03 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [09:11:19]RAPDU: 90 00 [09:11:19]wFMCommunicate OK [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 0D 03 02 [09:11:19]Write to MH i2c: E2 08 00 89 1D 80 0D 03 02 00 00 00 00 21 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 0B 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 0B 00 89 1D 00 A1 38 AE 9B BA EC CE 0C 90 00 C4 [09:11:19]RAPDU: A1 38 AE 9B BA EC CE 0C 90 00 [09:11:19]wFMCommunicate OK [09:11:19]SAM_PROTO_SignData done [09:11:19]FM_MakeSignedData done [09:11:19]CreateOFDProtocolMessage [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 11 00 00 [09:11:19]Write to MH i2c: E2 08 00 8A 1D 80 11 00 00 00 00 00 00 21 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 17 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 17 00 8A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [09:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:20]wFMCommunicate OK [09:11:20]CreateOFDProtocolMessage done [09:11:20]OFDSenderStorePacket 201787 [09:11:20]StoreOFDPacket docnum=201787 [09:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 5B 07 01 9C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B9 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 14 03 00 35 04 06 00 C2 AA 8A 96 21 46 A1 38 AE 9B BA EC CE 0C [09:11:20]CheckFolder [09:11:20]dirname=/storage/ofd_packets [09:11:20]CheckFolder done [09:11:20]ProducePacketName [09:11:20]name=ofd_packets/00201787 [09:11:20]NVStorageSaveData ofd_packets/00201787 [09:11:20]File name is /storage/ofd_packets/00201787 [09:11:20]Write 301 bytes [09:11:20]NVStorageSaveData done [09:11:20]OFDSenderStorePacket done [09:11:20]KKMCreateOFDPacket done [09:11:20]NVStorageSaveData kkm_last_timestamp [09:11:20]File name is /storage/kkm_last_timestamp [09:11:20]Write 4 bytes [09:11:20]NVStorageSaveData done [09:11:20]ExternCall_PrintAddStr [09:11:20]wPrintStart [09:11:20]Write to MH i2c: 01 00 00 8B 1D A8 [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: 01 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: 01 07 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: 01 07 00 8B 1D 00 00 00 00 00 FF 0F BD [09:11:20]RasterBufferAndPrint [09:11:20]line Счет N : (1)449545 [09:11:20]line ИНН: 02508201610067 [09:11:20]line Контрольно-Кассовый Чек [09:11:20]line ПРОДАЖА [09:11:20]line ТРК (МРК, ГНК) : 31 [09:11:20]line Товар: 2710124130 [09:11:20]line Аи-92-К-2 [09:11:20]line 3.140 * 66.90 [09:11:20]line = 210.07 [09:11:20]line НДС 12% НСП 1% [09:11:20]line > о реализуемом товаре [09:11:20]line ОКРУГЛЕНИЕ: -0.07 [09:11:20]line ИТОГО: 210.00 [09:11:20]line Внесено: 210.00 [09:11:20]line СДАЧА: 0.00 [09:11:20]line НСП 1% : 1.86 [09:11:20]line НДС 12% : 22.31 [09:11:20]line Наличными: 210.00 [09:11:20]line Безнал.: 0.00 [09:11:20]line Место: АЗС № 171 "Партнер Нефть" [09:11:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:11:20]line СНО: Общий режим [09:11:20]line Чек 79 27.10.2024 09:11 [09:11:20]line Смена: 544 ФФД: 1.0 [09:11:20]line ЗНМ: 0300000109 [09:11:20]line РНМ: 0000000000091777 [09:11:20]line Версия ККМ: 001 [09:11:20]line ФМ: 0000000000871756 [09:11:20]line ФД: 201787 [09:11:20]line ФПД: 214037725323590 [09:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091121&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201787&fm=214037725323590&tin=02508201610067®Number=0000000000091777&sum=21000 [09:11:20]written 0, free lines is 4095 [09:11:20]OFD Sender: Processing packet 201787 [packets to send 112, broken 111] [09:11:20]ProducePacketName [09:11:20]name=ofd_packets/00201787 [09:11:20]OFD Sender: To server: pG, [09:11:20]CommunicateWithHost lk.salyk.kg:30040 [09:11:20]ConnectInit lk.salyk.kg [09:11:20]Connected sock=10 [09:11:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 5B 07 01 9C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B9 03 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 14 03 00 35 04 06 00 C2 AA 8A 96 21 46 A1 38 AE 9B BA EC CE 0C [09:11:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DF 9D 47 00 04 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 14 03 00 F4 03 04 00 5F AF 1D 67 B6 04 01 00 00 B1 AE A8 6D FF 0C 9F F9 [09:11:20]CommunicateWithHost err = 0 [09:11:20]CheckOFDResponse [09:11:20]1017 (14) - 77093643461234 [09:11:20]1041 (16) - 0000000000871756 [09:11:20]1040 (4) - 201787 [09:11:20]1012 (4) - 27.10.2024 03:11 [09:11:20]1206 (1) - 0 [09:11:20]OFD Sender: Remove packet 201787 [09:11:20]ProducePacketName [09:11:20]name=ofd_packets/00201787 [09:11:20]NVStorageDeleteData [09:11:20]Write to MH i2c: 01 00 00 B6 1D D3 [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: 01 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: 01 07 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: 01 07 00 B6 1D 00 00 00 00 00 96 0C 7C [09:11:20]RasterBufferAndPrint [09:11:20]line [09:11:20]line [09:11:20]line [09:11:20]line [09:11:20]line [09:11:20]written 0, free lines is 3237 [09:11:20]MH_Cut [09:11:20]Write to MH i2c: D1 01 00 BD 1D 01 AC [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: D1 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: D1 01 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: D1 01 00 BD 1D 00 AB [09:11:20]Write to MH i2c: 01 00 00 BE 1D DB [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]OFD Sender: No OFD packet to send [09:11:21]*** Cut start [09:11:21]*** Purtial cut [09:11:21]*** Stage 1: CUTSNS_PIN = 1 [09:11:21]Read from MH i2c: 01 [09:11:21]MH_I2C_Read... [09:11:21]*** Stop cut motor [09:11:21]*** Cut end [09:11:21]Read from MH i2c: 01 07 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: 01 07 00 BE 1D 00 00 00 00 00 FF 0F F0 [09:11:21]process_action close_receipt done [09:11:21]requested_data is exist [09:11:21]produce_requested_data [09:11:21]requested_item fm.sn is exist - process it [09:11:21]wFMCommunicate request_size=4 [09:11:21]MH_SAM_APDU [09:11:21]CAPDU: 80 11 00 00 [09:11:21]Write to MH i2c: E2 08 00 BF 1D 80 11 00 00 00 00 00 00 56 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:21]Read from MH i2c: E2 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 17 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 17 00 BF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AB [09:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:21]wFMCommunicate OK [09:11:21]requested_item fd.num is exist - process it [09:11:21]SAM_PROTO_GetFieldsCounters [09:11:21]wFMCommunicate request_size=4 [09:11:21]MH_SAM_APDU [09:11:21]CAPDU: 80 13 00 00 [09:11:21]Write to MH i2c: E2 08 00 C0 1D 80 13 00 00 00 00 00 00 59 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:21]Read from MH i2c: E2 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 62 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 62 00 C0 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3B 14 03 00 0E 04 04 00 20 02 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 E3 [09:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3B 14 03 00 0E 04 04 00 20 02 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 [09:11:21]wFMCommunicate OK [09:11:21]SAM_PROTO_GetFieldsCounters done [09:11:21]requested_item shift.num is exist - process it [09:11:21]requested_item shift.opened is exist - process it [09:11:21]req_shift_opened [09:11:21]FM_GetShiftState [09:11:21]SAM_PROTO_GetShiftState [09:11:21]wFMCommunicate request_size=4 [09:11:21]MH_SAM_APDU [09:11:21]CAPDU: 80 13 01 00 [09:11:21]Write to MH i2c: E2 08 00 C1 1D 80 13 01 00 00 00 00 00 5B [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:22]Read from MH i2c: E2 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: E2 0E 00 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: E2 0E 00 C1 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5D [09:11:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:11:22]wFMCommunicate OK [09:11:22]SAM_PROTO_GetShiftState done [09:11:22]FM_GetShiftState done [09:11:22]req_shift_opened done [09:11:22]requested_item shift.open_date is exist - process it [09:11:22]req_shift_open_date [09:11:22]req_shift_open_date done [09:11:22]produce_requested_data done [09:11:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201787,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:11:22]process_action_free close_receipt [09:11:22]json_value_free [09:11:22]json_value_free done [09:11:22]process_json_proto returns [09:11:22]Send response to host [09:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201787,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:11:22]free response buf [09:11:22]execute_script done [09:11:22]execute_script returns [09:11:22]free content buf [09:11:22]Sock 9.Close socket [09:11:22]Sock 9.Thread stoped [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]wFMCommunicate request_size=13 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 15 02 00 08 F4 03 04 00 04 04 1E 67 [09:12:33]Write to MH i2c: E2 10 00 CC 1D 80 15 02 00 08 00 F4 03 04 00 04 04 1E 67 00 00 01 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]wFMCommunicate request_size=25 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [09:12:33]Write to MH i2c: E2 1C 00 CD 1D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 D2 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]wFMCommunicate request_size=4 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 15 03 00 [09:12:33]Write to MH i2c: E2 08 00 CE 1D 80 15 03 00 00 00 00 00 6C [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 40 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 40 00 CE 1D 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 50 00 00 00 35 04 06 00 2A D8 79 78 DE 5F 90 00 59 [09:12:33]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 50 00 00 00 35 04 06 00 2A D8 79 78 DE 5F 90 00 [09:12:33]wFMCommunicate OK [09:12:33]SAM_PROTO_ProcessDocument answer len = 59 [09:12:33]SAM_PROTO_ProcessDocument done [09:12:33]SetTLVBufToDocument [09:12:33]Processing tag 1209 (04B9) [09:12:33]Malloc new data [09:12:33]Processing tag 1041 (0411) [09:12:33]Processing tag 1040 (0410) [09:12:33]Malloc new data [09:12:33]Processing tag 1038 (040E) [09:12:33]Malloc new data [09:12:33]Processing tag 1042 (0412) [09:12:33]Malloc new data [09:12:33]Processing tag 1077 (0435) [09:12:33]Malloc new data [09:12:33]SetTLVBufToDocument err=0 [09:12:33]KKMLoadAndSignReceiptData store KKM data [09:12:33]KKMLoadAndSignReceiptData err=0 [09:12:33]wFMCommunicate request_size=4 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 11 00 00 [09:12:33]Write to MH i2c: E2 08 00 CF 1D 80 11 00 00 00 00 00 00 66 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 17 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 17 00 CF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [09:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:12:33]wFMCommunicate OK [09:12:33]Счет N : (1)449546 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 52 Товар: 2710124130 Аи-92-К-2 3.740 * 66.90 = 250.21 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 80 27.10.2024 09:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201788 ФПД: 47109239266911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091236&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201788&fm=47109239266911&tin=02508201610067®Number=0000000000091777&sum=25000 [09:12:33]StoreToDocumentArchive [09:12:33]shift 544 fd 201788 [09:12:33]save to /storage/0544/doc_00201788 [09:12:33]save last doc name /storage/0544/doc_00201788 to /storage/kkm_last_doc_name [09:12:33]save OK [09:12:33]Clear old archive folders... [09:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:33]tlvbuf is 00121110 [09:12:33]SAM_PROTO_ClearQueue [09:12:33]wFMCommunicate request_size=4 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 09 00 00 [09:12:33]Write to MH i2c: E2 08 00 D0 1D 80 09 00 00 00 00 00 00 5F [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 D0 1D 00 90 00 61 [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]SAM_PROTO_ClearQueue done [09:12:33]KKMCreateOFDPacket [09:12:33]OFDProtocolAddRootSTLVToBuf [09:12:33]FM_MakeSignedData [09:12:33]FM_MakeSignedData [09:12:33]SAM_PROTO_SignData [09:12:33]wFMCommunicate request_size=4 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 0D 01 02 [09:12:33]Write to MH i2c: E2 08 00 D1 1D 80 0D 01 02 00 00 00 00 67 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:33]Read from MH i2c: E2 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 [09:12:33]MH_I2C_Read... [09:12:33]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [09:12:33]RAPDU: 90 00 [09:12:33]wFMCommunicate OK [09:12:33]wFMCommunicate request_size=255 [09:12:33]MH_SAM_APDU [09:12:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 04 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 14 03 00 35 04 06 00 2A [09:12:33]Write to MH i2c: E2 02 01 D2 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 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 04 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 14 03 00 35 04 06 00 2A 00 00 50 [09:12:33]Write i2c OK [09:12:33]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 D2 1D 00 90 00 63 [09:12:34]RAPDU: 90 00 [09:12:34]wFMCommunicate OK [09:12:34]wFMCommunicate request_size=10 [09:12:34]MH_SAM_APDU [09:12:34]CAPDU: 80 0D 02 02 05 D8 79 78 DE 5F [09:12:34]Write to MH i2c: E2 0D 00 D3 1D 80 0D 02 02 05 00 D8 79 78 DE 5F 00 00 7A [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 03 00 D3 1D 00 90 00 64 [09:12:34]RAPDU: 90 00 [09:12:34]wFMCommunicate OK [09:12:34]wFMCommunicate request_size=4 [09:12:34]MH_SAM_APDU [09:12:34]CAPDU: 80 0D 03 02 [09:12:34]Write to MH i2c: E2 08 00 D4 1D 80 0D 03 02 00 00 00 00 6C [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 0B 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 0B 00 D4 1D 00 25 0B EE 42 A7 D8 14 9B 90 00 FB [09:12:34]RAPDU: 25 0B EE 42 A7 D8 14 9B 90 00 [09:12:34]wFMCommunicate OK [09:12:34]SAM_PROTO_SignData done [09:12:34]FM_MakeSignedData done [09:12:34]CreateOFDProtocolMessage [09:12:34]wFMCommunicate request_size=4 [09:12:34]MH_SAM_APDU [09:12:34]CAPDU: 80 11 00 00 [09:12:34]Write to MH i2c: E2 08 00 D5 1D 80 11 00 00 00 00 00 00 6C [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:34]Read from MH i2c: E2 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 17 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: E2 17 00 D5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [09:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:12:34]wFMCommunicate OK [09:12:34]CreateOFDProtocolMessage done [09:12:34]OFDSenderStorePacket 201788 [09:12:34]StoreOFDPacket docnum=201788 [09:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C0 50 07 01 9B 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 04 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 14 03 00 35 04 06 00 2A D8 79 78 DE 5F 25 0B EE 42 A7 D8 14 9B [09:12:34]CheckFolder [09:12:34]dirname=/storage/ofd_packets [09:12:34]CheckFolder done [09:12:34]ProducePacketName [09:12:34]name=ofd_packets/00201788 [09:12:34]NVStorageSaveData ofd_packets/00201788 [09:12:34]File name is /storage/ofd_packets/00201788 [09:12:34]Write 301 bytes [09:12:34]NVStorageSaveData done [09:12:34]OFDSenderStorePacket done [09:12:34]KKMCreateOFDPacket done [09:12:34]NVStorageSaveData kkm_last_timestamp [09:12:34]File name is /storage/kkm_last_timestamp [09:12:34]Write 4 bytes [09:12:34]NVStorageSaveData done [09:12:34]ExternCall_PrintAddStr [09:12:34]wPrintStart [09:12:34]Write to MH i2c: 01 00 00 D6 1D F3 [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 07 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 07 00 D6 1D 00 00 00 00 00 FF 0F 08 [09:12:34]RasterBufferAndPrint [09:12:34]line Счет N : (1)449546 [09:12:34]line ИНН: 02508201610067 [09:12:34]line Контрольно-Кассовый Чек [09:12:34]line ПРОДАЖА [09:12:34]line ТРК (МРК, ГНК) : 52 [09:12:34]line Товар: 2710124130 [09:12:34]line Аи-92-К-2 [09:12:34]line 3.740 * 66.90 [09:12:34]line = 250.21 [09:12:34]line НДС 12% НСП 1% [09:12:34]line > о реализуемом товаре [09:12:34]line ОКРУГЛЕНИЕ: -0.21 [09:12:34]line ИТОГО: 250.00 [09:12:34]line Внесено: 250.00 [09:12:34]line СДАЧА: 0.00 [09:12:34]line НСП 1% : 2.21 [09:12:34]line НДС 12% : 26.57 [09:12:34]line Наличными: 250.00 [09:12:34]line Безнал.: 0.00 [09:12:34]line Место: АЗС № 171 "Партнер Нефть" [09:12:34]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:12:34]line СНО: Общий режим [09:12:34]line Чек 80 27.10.2024 09:12 [09:12:34]line Смена: 544 ФФД: 1.0 [09:12:34]line ЗНМ: 0300000109 [09:12:34]line РНМ: 0000000000091777 [09:12:34]line Версия ККМ: 001 [09:12:34]line ФМ: 0000000000871756 [09:12:34]line ФД: 201788 [09:12:34]line ФПД: 47109239266911 [09:12:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091236&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201788&fm=47109239266911&tin=02508201610067®Number=0000000000091777&sum=25000 [09:12:34]OFD Sender: Processing packet 201788 [packets to send 112, broken 111] [09:12:34]ProducePacketName [09:12:34]name=ofd_packets/00201788 [09:12:34]OFD Sender: To server: pG, [09:12:34]CommunicateWithHost lk.salyk.kg:30040 [09:12:34]ConnectInit lk.salyk.kg [09:12:34]written 0, free lines is 4095 [09:12:34]Connected sock=11 [09:12:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C0 50 07 01 9B 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 04 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 14 03 00 35 04 06 00 2A D8 79 78 DE 5F 25 0B EE 42 A7 D8 14 9B [09:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AD E0 47 00 1E 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 14 03 00 F4 03 04 00 AA AF 1D 67 B6 04 01 00 00 E2 5E 78 E9 62 2F 6D CF [09:12:34]CommunicateWithHost err = 0 [09:12:34]CheckOFDResponse [09:12:34]1017 (14) - 77093643461234 [09:12:34]1041 (16) - 0000000000871756 [09:12:34]1040 (4) - 201788 [09:12:34]1012 (4) - 27.10.2024 03:12 [09:12:34]1206 (1) - 0 [09:12:34]OFD Sender: Remove packet 201788 [09:12:34]ProducePacketName [09:12:34]name=ofd_packets/00201788 [09:12:34]NVStorageDeleteData [09:12:34]Write to MH i2c: 01 00 00 01 1E 1F [09:12:34]Write i2c OK [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 07 00 [09:12:34]MH_I2C_Read... [09:12:34]Read from MH i2c: 01 07 00 01 1E 00 00 00 00 00 8F 0C C1 [09:12:34]RasterBufferAndPrint [09:12:34]line [09:12:34]line [09:12:34]line [09:12:34]line [09:12:34]line [09:12:34]written 0, free lines is 3219 [09:12:35]MH_Cut [09:12:35]Write to MH i2c: D1 01 00 08 1E 01 F8 [09:12:35]Write i2c OK [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: D1 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: D1 01 00 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: D1 01 00 08 1E 00 F7 [09:12:35]Write to MH i2c: 01 00 00 09 1E 27 [09:12:35]Write i2c OK [09:12:35]MH_I2C_Read... [09:12:35]OFD Sender: No OFD packet to send [09:12:35]*** Cut start [09:12:35]*** Purtial cut [09:12:35]*** Stage 1: CUTSNS_PIN = 1 [09:12:36]Read from MH i2c: 01 [09:12:36]MH_I2C_Read... [09:12:36]*** Stop cut motor [09:12:36]*** Cut end [09:12:36]Read from MH i2c: 01 07 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: 01 07 00 09 1E 00 00 00 00 00 FF 0F 3C [09:12:36]process_action close_receipt done [09:12:36]requested_data is exist [09:12:36]produce_requested_data [09:12:36]requested_item fm.sn is exist - process it [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 11 00 00 [09:12:36]Write to MH i2c: E2 08 00 0A 1E 80 11 00 00 00 00 00 00 A2 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 17 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 17 00 0A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F7 [09:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:12:36]wFMCommunicate OK [09:12:36]requested_item fd.num is exist - process it [09:12:36]SAM_PROTO_GetFieldsCounters [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 13 00 00 [09:12:36]Write to MH i2c: E2 08 00 0B 1E 80 13 00 00 00 00 00 00 A5 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 62 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 62 00 0B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3C 14 03 00 0E 04 04 00 20 02 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 33 [09:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3C 14 03 00 0E 04 04 00 20 02 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 [09:12:36]wFMCommunicate OK [09:12:36]SAM_PROTO_GetFieldsCounters done [09:12:36]requested_item shift.num is exist - process it [09:12:36]requested_item shift.opened is exist - process it [09:12:36]req_shift_opened [09:12:36]FM_GetShiftState [09:12:36]SAM_PROTO_GetShiftState [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 13 01 00 [09:12:36]Write to MH i2c: E2 08 00 0C 1E 80 13 01 00 00 00 00 00 A7 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0E 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0E 00 0C 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A9 [09:12:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:12:36]wFMCommunicate OK [09:12:36]SAM_PROTO_GetShiftState done [09:12:36]FM_GetShiftState done [09:12:36]req_shift_opened done [09:12:36]requested_item shift.open_date is exist - process it [09:12:36]req_shift_open_date [09:12:36]req_shift_open_date done [09:12:36]produce_requested_data done [09:12:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201788,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:12:36]process_action_free close_receipt [09:12:36]json_value_free [09:12:36]json_value_free done [09:12:36]process_json_proto returns [09:12:36]Send response to host [09:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201788,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:12:36]free response buf [09:12:36]execute_script done [09:12:36]execute_script returns [09:12:36]free content buf [09:12:36]Sock 8.Close socket [09:12:36]Sock 8.Thread stoped [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:19]int [09:13:19]Write to MH i2c: 01 00 00 0D 1E 2B [09:13:19]*** FLAG_PRN_KEY set [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 07 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 07 00 0D 1E 00 08 00 00 00 FF 0F 48 [09:13:19]state=0 [09:13:19]Key pressed [09:13:19]Feed [09:13:19]Write to MH i2c: D8 00 00 0E 1E 03 [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: D8 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: D8 01 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: D8 01 00 0E 1E 00 04 [09:13:19]int [09:13:19]Write to MH i2c: 01 00 00 0F 1E 2D [09:13:19]Write i2c OK [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 07 00 [09:13:19]MH_I2C_Read... [09:13:19]Read from MH i2c: 01 07 00 0F 1E 00 48 00 00 00 3C 00 B8 [09:13:19]state=2 [09:13:19]Key pressed [09:13:20]int [09:13:20]Write to MH i2c: 01 00 00 10 1E 2E [09:13:20]*** FLAG_PRN_KEY reset [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 07 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 07 00 10 1E 00 00 00 00 00 F9 0F 3D [09:13:20]state=2 [09:13:20]Stop feed [09:13:20]OFD Sender: No OFD packet to send [09:13:23]accept exits with 10 [09:13:23]New connection [09:13:23]New thread 3067080036 created [09:13:23]Thread 3066936676 joined [09:13:23]Waiting for new connection... [09:13:23] Sock 10.Parse request [09:13:23]Sock 10.Check first char [09:13:23]Sock 10.First char is OK [09:13:23]request: POST /json_proto HTTP/1.0 [09:13:23]Method: POST [09:13:23]URL: /json_proto [09:13:23]Method is POST - this is cgi request [09:13:23]url: /json_proto [09:13:23]query_string will be loaded in cgi processing [09:13:23]execute_cgi json_proto POST (null) [09:13:23]execute_cgi path=json_proto method=POST [09:13:23]POST find Content-Length [09:13:23]Host: 172.17.63.195:8080 [09:13:23]Content-Length: 671 [09:13:23]Content-Type: application/json [09:13:23] [09:13:23]POST finish read [09:13:23]Found Content-Length = 671 [09:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:23]execute_script... [09:13:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:23]POST & json_proto [09:13:23]process_json_proto [09:13:23]json parsed OK: [09:13:23]protocol is kg_v1.0 [09:13:23]action value=close_receipt [09:13:23]process_action close_receipt [09:13:23]cmd_close_receipt [09:13:23]MH_GetDate [09:13:23]Write to MH i2c: F0 00 00 11 1E 1E [09:13:23]Write i2c OK [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: F0 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: F0 09 00 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: F0 09 00 11 1E 00 36 04 1E 67 68 46 19 67 14 [09:13:23]GetLastDocTimeStamp 1730020356 [09:13:23]current date 1730020406 [09:13:23]FM_GetShiftState [09:13:23]SAM_PROTO_GetShiftState [09:13:23]wFMCommunicate request_size=4 [09:13:23]MH_SAM_APDU [09:13:23]CAPDU: 80 13 01 00 [09:13:23]Write to MH i2c: E2 08 00 12 1E 80 13 01 00 00 00 00 00 AD [09:13:23]Write i2c OK [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 [09:13:23]MH_I2C_Read... [09:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:23]Read from MH i2c: E2 0E 00 [09:13:23]MH_I2C_Read... [09:13:23]Read from MH i2c: E2 0E 00 12 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AF [09:13:23]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:13:23]wFMCommunicate OK [09:13:23]SAM_PROTO_GetShiftState done [09:13:23]FM_GetShiftState done [09:13:23]opened in 1729987312 [09:13:23]opened+sec_in_day 1730073712 [09:13:23]quantity*price = 70041 [09:13:23]sum+1 = 70043 [09:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 81 27.10.2024 09:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201789 ФПД: 99212747612328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091326&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201789&fm=99212747612328&tin=02508201610067®Number=0000000000091777&sum=70000 [09:13:24]StoreToDocumentArchive [09:13:24]shift 544 fd 201789 [09:13:24]save to /storage/0544/doc_00201789 [09:13:24]save last doc name /storage/0544/doc_00201789 to /storage/kkm_last_doc_name [09:13:24]save OK [09:13:24]Clear old archive folders... [09:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:13:24]tlvbuf is 000D9410 [09:13:24]SAM_PROTO_ClearQueue [09:13:24]wFMCommunicate request_size=4 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 09 00 00 [09:13:24]Write to MH i2c: E2 08 00 1F 1E 80 09 00 00 00 00 00 00 AF [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [09:13:24]RAPDU: 90 00 [09:13:24]wFMCommunicate OK [09:13:24]SAM_PROTO_ClearQueue done [09:13:24]KKMCreateOFDPacket [09:13:24]OFDProtocolAddRootSTLVToBuf [09:13:24]FM_MakeSignedData [09:13:24]FM_MakeSignedData [09:13:24]SAM_PROTO_SignData [09:13:24]wFMCommunicate request_size=4 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 0D 01 02 [09:13:24]Write to MH i2c: E2 08 00 20 1E 80 0D 01 02 00 00 00 00 B7 [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 20 1E 00 90 00 B2 [09:13:24]RAPDU: 90 00 [09:13:24]wFMCommunicate OK [09:13:24]wFMCommunicate request_size=255 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 36 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 14 03 00 35 04 06 00 [09:13:24]Write to MH i2c: E2 02 01 21 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 36 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 14 03 00 35 04 06 00 00 00 2F [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 21 1E 00 90 00 B3 [09:13:24]RAPDU: 90 00 [09:13:24]wFMCommunicate OK [09:13:24]wFMCommunicate request_size=11 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 0D 02 02 06 5A 3B C4 94 20 A8 [09:13:24]Write to MH i2c: E2 0E 00 22 1E 80 0D 02 02 06 00 5A 3B C4 94 20 A8 00 00 7B [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 03 00 22 1E 00 90 00 B4 [09:13:24]RAPDU: 90 00 [09:13:24]wFMCommunicate OK [09:13:24]wFMCommunicate request_size=4 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 0D 03 02 [09:13:24]Write to MH i2c: E2 08 00 23 1E 80 0D 03 02 00 00 00 00 BC [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 0B 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 0B 00 23 1E 00 4F 2F 3D FB 04 6F 71 C7 90 00 1E [09:13:24]RAPDU: 4F 2F 3D FB 04 6F 71 C7 90 00 [09:13:24]wFMCommunicate OK [09:13:24]SAM_PROTO_SignData done [09:13:24]FM_MakeSignedData done [09:13:24]CreateOFDProtocolMessage [09:13:24]wFMCommunicate request_size=4 [09:13:24]MH_SAM_APDU [09:13:24]CAPDU: 80 11 00 00 [09:13:24]Write to MH i2c: E2 08 00 24 1E 80 11 00 00 00 00 00 00 BC [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:24]Read from MH i2c: E2 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 17 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: E2 17 00 24 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 11 [09:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:13:24]wFMCommunicate OK [09:13:24]CreateOFDProtocolMessage done [09:13:24]OFDSenderStorePacket 201789 [09:13:24]StoreOFDPacket docnum=201789 [09:13:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 42 E6 08 01 9D 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 36 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 14 03 00 35 04 06 00 5A 3B C4 94 20 A8 4F 2F 3D FB 04 6F 71 C7 [09:13:24]CheckFolder [09:13:24]dirname=/storage/ofd_packets [09:13:24]CheckFolder done [09:13:24]ProducePacketName [09:13:24]name=ofd_packets/00201789 [09:13:24]NVStorageSaveData ofd_packets/00201789 [09:13:24]File name is /storage/ofd_packets/00201789 [09:13:24]Write 302 bytes [09:13:24]NVStorageSaveData done [09:13:24]OFDSenderStorePacket done [09:13:24]KKMCreateOFDPacket done [09:13:24]NVStorageSaveData kkm_last_timestamp [09:13:24]File name is /storage/kkm_last_timestamp [09:13:24]Write 4 bytes [09:13:24]NVStorageSaveData done [09:13:24]ExternCall_PrintAddStr [09:13:24]wPrintStart [09:13:24]Write to MH i2c: 01 00 00 25 1E 43 [09:13:24]Write i2c OK [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 07 00 [09:13:24]MH_I2C_Read... [09:13:24]Read from MH i2c: 01 07 00 25 1E 00 00 00 00 00 FF 0F 58 [09:13:24]RasterBufferAndPrint [09:13:24]line Счет N : (1)449547 [09:13:24]line ИНН: 02508201610067 [09:13:24]line Контрольно-Кассовый Чек [09:13:24]line ПРОДАЖА [09:13:24]line ТРК (МРК, ГНК) : 42 [09:13:24]line Товар: 2710124130 [09:13:24]line SUPER 92-К-5 [09:13:24]line 10.240 * 68.40 [09:13:24]line = 700.42 [09:13:24]line НДС 12% НСП 1% [09:13:24]line > о реализуемом товаре [09:13:24]line ОКРУГЛЕНИЕ: -0.42 [09:13:24]line ИТОГО: 700.00 [09:13:24]line Внесено: 700.00 [09:13:24]line СДАЧА: 0.00 [09:13:24]line НСП 1% : 6.20 [09:13:24]line НДС 12% : 74.38 [09:13:24]line Наличными: 700.00 [09:13:24]line Безнал.: 0.00 [09:13:24]line Место: АЗС № 171 "Партнер Нефть" [09:13:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:13:24]line СНО: Общий режим [09:13:24]line Чек 81 27.10.2024 09:13 [09:13:24]line Смена: 544 ФФД: 1.0 [09:13:24]line ЗНМ: 0300000109 [09:13:24]line РНМ: 0000000000091777 [09:13:24]line Версия ККМ: 001 [09:13:24]line ФМ: 0000000000871756 [09:13:24]line ФД: 201789 [09:13:24]line ФПД: 99212747612328 [09:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091326&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201789&fm=99212747612328&tin=02508201610067®Number=0000000000091777&sum=70000 [09:13:24]written 0, free lines is 4095 [09:13:24]OFD Sender: Processing packet 201789 [packets to send 112, broken 111] [09:13:24]ProducePacketName [09:13:24]name=ofd_packets/00201789 [09:13:24]OFD Sender: To server: pG, [09:13:24]CommunicateWithHost lk.salyk.kg:30040 [09:13:24]ConnectInit lk.salyk.kg [09:13:25]Connected sock=11 [09:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 42 E6 08 01 9D 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 36 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 14 03 00 35 04 06 00 5A 3B C4 94 20 A8 4F 2F 3D FB 04 6F 71 C7 [09:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A0 06 47 00 BA FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 14 03 00 F4 03 04 00 DC AF 1D 67 B6 04 01 00 00 01 FD 03 F3 C8 A7 93 7C [09:13:25]CommunicateWithHost err = 0 [09:13:25]CheckOFDResponse [09:13:25]1017 (14) - 77093643461234 [09:13:25]1041 (16) - 0000000000871756 [09:13:25]1040 (4) - 201789 [09:13:25]1012 (4) - 27.10.2024 03:13 [09:13:25]1206 (1) - 0 [09:13:25]OFD Sender: Remove packet 201789 [09:13:25]ProducePacketName [09:13:25]name=ofd_packets/00201789 [09:13:25]NVStorageDeleteData [09:13:25]Write to MH i2c: 01 00 00 50 1E 6E [09:13:25]Write i2c OK [09:13:25]MH_I2C_Read... [09:13:25]Read from MH i2c: 01 [09:13:25]MH_I2C_Read... [09:13:25]Read from MH i2c: 01 07 00 [09:13:25]MH_I2C_Read... [09:13:25]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 B2 0C 33 [09:13:25]RasterBufferAndPrint [09:13:25]line [09:13:25]line [09:13:25]line [09:13:25]line [09:13:25]line [09:13:25]written 0, free lines is 3268 [09:13:25]MH_Cut [09:13:25]Write to MH i2c: D1 01 00 57 1E 01 47 [09:13:25]Write i2c OK [09:13:25]MH_I2C_Read... [09:13:25]Read from MH i2c: D1 [09:13:25]MH_I2C_Read... [09:13:25]Read from MH i2c: D1 01 00 [09:13:25]MH_I2C_Read... [09:13:25]Read from MH i2c: D1 01 00 57 1E 00 46 [09:13:25]Write to MH i2c: 01 00 00 58 1E 76 [09:13:25]Write i2c OK [09:13:25]MH_I2C_Read... [09:13:25]OFD Sender: No OFD packet to send [09:13:26]*** Cut start [09:13:26]*** Purtial cut [09:13:26]*** Stage 1: CUTSNS_PIN = 1 [09:13:26]Read from MH i2c: 01 [09:13:26]MH_I2C_Read... [09:13:26]*** Stop cut motor [09:13:26]*** Cut end [09:13:26]Read from MH i2c: 01 07 00 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: 01 07 00 58 1E 00 00 00 00 00 FF 0F 8B [09:13:26]process_action close_receipt done [09:13:26]requested_data is exist [09:13:26]produce_requested_data [09:13:26]requested_item fm.sn is exist - process it [09:13:26]wFMCommunicate request_size=4 [09:13:26]MH_SAM_APDU [09:13:26]CAPDU: 80 11 00 00 [09:13:26]Write to MH i2c: E2 08 00 59 1E 80 11 00 00 00 00 00 00 F1 [09:13:26]Write i2c OK [09:13:26]MH_I2C_Read... [09:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:26]Read from MH i2c: E2 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 17 00 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 17 00 59 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 46 [09:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:13:26]wFMCommunicate OK [09:13:26]requested_item fd.num is exist - process it [09:13:26]SAM_PROTO_GetFieldsCounters [09:13:26]wFMCommunicate request_size=4 [09:13:26]MH_SAM_APDU [09:13:26]CAPDU: 80 13 00 00 [09:13:26]Write to MH i2c: E2 08 00 5A 1E 80 13 00 00 00 00 00 00 F4 [09:13:26]Write i2c OK [09:13:26]MH_I2C_Read... [09:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:26]Read from MH i2c: E2 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 62 00 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 62 00 5A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3D 14 03 00 0E 04 04 00 20 02 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 86 [09:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3D 14 03 00 0E 04 04 00 20 02 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 [09:13:26]wFMCommunicate OK [09:13:26]SAM_PROTO_GetFieldsCounters done [09:13:26]requested_item shift.num is exist - process it [09:13:26]requested_item shift.opened is exist - process it [09:13:26]req_shift_opened [09:13:26]FM_GetShiftState [09:13:26]SAM_PROTO_GetShiftState [09:13:26]wFMCommunicate request_size=4 [09:13:26]MH_SAM_APDU [09:13:26]CAPDU: 80 13 01 00 [09:13:26]Write to MH i2c: E2 08 00 5B 1E 80 13 01 00 00 00 00 00 F6 [09:13:26]Write i2c OK [09:13:26]MH_I2C_Read... [09:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:26]Read from MH i2c: E2 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 0E 00 [09:13:26]MH_I2C_Read... [09:13:26]Read from MH i2c: E2 0E 00 5B 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F8 [09:13:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:13:26]wFMCommunicate OK [09:13:26]SAM_PROTO_GetShiftState done [09:13:26]FM_GetShiftState done [09:13:26]req_shift_opened done [09:13:26]requested_item shift.open_date is exist - process it [09:13:26]req_shift_open_date [09:13:26]req_shift_open_date done [09:13:26]produce_requested_data done [09:13:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201789,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:13:26]process_action_free close_receipt [09:13:26]json_value_free [09:13:26]json_value_free done [09:13:26]process_json_proto returns [09:13:26]Send response to host [09:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201789,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:13:26]free response buf [09:13:26]execute_script done [09:13:26]execute_script returns [09:13:26]free content buf [09:13:26]Sock 10.Close socket [09:13:26]Sock 10.Thread stoped [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:39]accept exits with 9 [09:14:39]New connection [09:14:39]New thread 3066936676 created [09:14:39]Thread 3067080036 joined [09:14:39]Waiting for new connection... [09:14:39] Sock 9.Parse request [09:14:39]Sock 9.Check first char [09:14:39]Sock 9.First char is OK [09:14:39]request: POST /json_proto HTTP/1.0 [09:14:39]Method: POST [09:14:39]URL: /json_proto [09:14:39]Method is POST - this is cgi request [09:14:39]url: /json_proto [09:14:39]query_string will be loaded in cgi processing [09:14:39]execute_cgi json_proto POST (null) [09:14:39]execute_cgi path=json_proto method=POST [09:14:39]POST find Content-Length [09:14:39]Host: 172.17.63.195:8080 [09:14:39]Content-Length: 679 [09:14:39]Content-Type: application/json [09:14:39] [09:14:39]POST finish read [09:14:39]Found Content-Length = 679 [09:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [09:14:39]execute_script... [09:14:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [09:14:39]POST & json_proto [09:14:39]process_json_proto [09:14:39]json parsed OK: [09:14:39]protocol is kg_v1.0 [09:14:39]action value=close_receipt [09:14:39]process_action close_receipt [09:14:39]cmd_close_receipt [09:14:39]MH_GetDate [09:14:39]Write to MH i2c: F0 00 00 5C 1E 69 [09:14:39]Write i2c OK [09:14:39]MH_I2C_Read... [09:14:39]Read from MH i2c: F0 [09:14:39]MH_I2C_Read... [09:14:39]Read from MH i2c: F0 09 00 [09:14:39]MH_I2C_Read... [09:14:39]Read from MH i2c: F0 09 00 5C 1E 00 83 04 1E 67 68 46 19 67 AC [09:14:39]GetLastDocTimeStamp 1730020406 [09:14:39]current date 1730020483 [09:14:39]FM_GetShiftState [09:14:39]SAM_PROTO_GetShiftState [09:14:39]wFMCommunicate request_size=4 [09:14:39]MH_SAM_APDU [09:14:39]CAPDU: 80 13 01 00 [09:14:39]Write to MH i2c: E2 08 00 5D 1E 80 13 01 00 00 00 00 00 F8 [09:14:39]Write i2c OK [09:14:39]MH_I2C_Read... [09:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:40]Read from MH i2c: E2 [09:14:40]MH_I2C_Read... [09:14:40]Read from MH i2c: E2 0E 00 [09:14:40]MH_I2C_Read... [09:14:40]Read from MH i2c: E2 0E 00 5D 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FA [09:14:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:14:40]wFMCommunicate OK [09:14:40]SAM_PROTO_GetShiftState done [09:14:40]FM_GetShiftState done [09:14:40]opened in 1729987312 [09:14:40]opened+sec_in_day 1730073712 [09:14:40]quantity*price = 100050 [09:14:40]sum+1 = 100052 [09:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 82 27.10.2024 09:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201790 ФПД: 91370319261213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201790&fm=91370319261213&tin=02508201610067®Number=0000000000091777&sum=100000 [09:14:41]StoreToDocumentArchive [09:14:41]shift 544 fd 201790 [09:14:41]save to /storage/0544/doc_00201790 [09:14:41]save last doc name /storage/0544/doc_00201790 to /storage/kkm_last_doc_name [09:14:41]save OK [09:14:41]Clear old archive folders... [09:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:14:41]tlvbuf is 00180500 [09:14:41]SAM_PROTO_ClearQueue [09:14:41]wFMCommunicate request_size=4 [09:14:41]MH_SAM_APDU [09:14:41]CAPDU: 80 09 00 00 [09:14:41]Write to MH i2c: E2 08 00 6A 1E 80 09 00 00 00 00 00 00 FA [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:41]Read from MH i2c: E2 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 03 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [09:14:41]RAPDU: 90 00 [09:14:41]wFMCommunicate OK [09:14:41]SAM_PROTO_ClearQueue done [09:14:41]KKMCreateOFDPacket [09:14:41]OFDProtocolAddRootSTLVToBuf [09:14:41]FM_MakeSignedData [09:14:41]FM_MakeSignedData [09:14:41]SAM_PROTO_SignData [09:14:41]wFMCommunicate request_size=4 [09:14:41]MH_SAM_APDU [09:14:41]CAPDU: 80 0D 01 02 [09:14:41]Write to MH i2c: E2 08 00 6B 1E 80 0D 01 02 00 00 00 00 02 [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:41]Read from MH i2c: E2 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 03 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [09:14:41]RAPDU: 90 00 [09:14:41]wFMCommunicate OK [09:14:41]wFMCommunicate request_size=255 [09:14:41]MH_SAM_APDU [09:14:41]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 32 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 52 00 00 00 F4 03 04 00 83 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 14 03 00 35 04 06 00 53 19 CF 6C [09:14:41]Write to MH i2c: E2 02 01 6C 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 32 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 52 00 00 00 F4 03 04 00 83 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 14 03 00 35 04 06 00 53 19 CF 6C 00 00 08 [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:41]Read from MH i2c: E2 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 03 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 03 00 6C 1E 00 90 00 FE [09:14:41]RAPDU: 90 00 [09:14:41]wFMCommunicate OK [09:14:41]wFMCommunicate request_size=7 [09:14:41]MH_SAM_APDU [09:14:41]CAPDU: 80 0D 02 02 02 2E 1D [09:14:41]Write to MH i2c: E2 0A 00 6D 1E 80 0D 02 02 02 00 2E 1D 00 00 54 [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:41]Read from MH i2c: E2 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 03 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 03 00 6D 1E 00 90 00 FF [09:14:41]RAPDU: 90 00 [09:14:41]wFMCommunicate OK [09:14:41]wFMCommunicate request_size=4 [09:14:41]MH_SAM_APDU [09:14:41]CAPDU: 80 0D 03 02 [09:14:41]Write to MH i2c: E2 08 00 6E 1E 80 0D 03 02 00 00 00 00 07 [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:41]Read from MH i2c: E2 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 0B 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 0B 00 6E 1E 00 6C 31 0B 8B 13 0B F1 BE 90 00 08 [09:14:41]RAPDU: 6C 31 0B 8B 13 0B F1 BE 90 00 [09:14:41]wFMCommunicate OK [09:14:41]SAM_PROTO_SignData done [09:14:41]FM_MakeSignedData done [09:14:41]CreateOFDProtocolMessage [09:14:41]wFMCommunicate request_size=4 [09:14:41]MH_SAM_APDU [09:14:41]CAPDU: 80 11 00 00 [09:14:41]Write to MH i2c: E2 08 00 6F 1E 80 11 00 00 00 00 00 00 07 [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:41]Read from MH i2c: E2 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 17 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: E2 17 00 6F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [09:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:14:41]wFMCommunicate OK [09:14:41]CreateOFDProtocolMessage done [09:14:41]OFDSenderStorePacket 201790 [09:14:41]StoreOFDPacket docnum=201790 [09:14:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9E AE 04 01 E8 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 52 00 00 00 F4 03 04 00 83 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 14 03 00 35 04 06 00 53 19 CF 6C 2E 1D 6C 31 0B 8B 13 0B F1 BE [09:14:41]CheckFolder [09:14:41]dirname=/storage/ofd_packets [09:14:41]CheckFolder done [09:14:41]ProducePacketName [09:14:41]name=ofd_packets/00201790 [09:14:41]NVStorageSaveData ofd_packets/00201790 [09:14:41]File name is /storage/ofd_packets/00201790 [09:14:41]Write 298 bytes [09:14:41]NVStorageSaveData done [09:14:41]OFDSenderStorePacket done [09:14:41]KKMCreateOFDPacket done [09:14:41]NVStorageSaveData kkm_last_timestamp [09:14:41]File name is /storage/kkm_last_timestamp [09:14:41]Write 4 bytes [09:14:41]NVStorageSaveData done [09:14:41]ExternCall_PrintAddStr [09:14:41]wPrintStart [09:14:41]Write to MH i2c: 01 00 00 70 1E 8E [09:14:41]Write i2c OK [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: 01 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: 01 07 00 [09:14:41]MH_I2C_Read... [09:14:41]Read from MH i2c: 01 07 00 70 1E 00 00 00 00 00 FF 0F A3 [09:14:41]RasterBufferAndPrint [09:14:41]line Счет N : (1)449548 [09:14:41]line ИНН: 02508201610067 [09:14:41]line Контрольно-Кассовый Чек [09:14:41]line ПРОДАЖА [09:14:41]line ТРК (МРК, ГНК) : 43 [09:14:41]line Товар: 2710194210 [09:14:41]line ДТ-К-2 [09:14:41]line 13.130 * 76.20 [09:14:41]line = 1000.51 [09:14:41]line НДС 12% НСП 1% [09:14:41]line > о реализуемом товаре [09:14:41]line ОКРУГЛЕНИЕ: -0.51 [09:14:41]line ИТОГО: 1000.00 [09:14:41]line Внесено: 1000.00 [09:14:41]line СДАЧА: 0.00 [09:14:41]line НСП 1% : 8.85 [09:14:41]line НДС 12% : 106.25 [09:14:41]line Наличными: 1000.00 [09:14:41]line Безнал.: 0.00 [09:14:41]line Место: АЗС № 171 "Партнер Нефть" [09:14:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:14:41]line СНО: Общий режим [09:14:41]line Чек 82 27.10.2024 09:14 [09:14:41]line Смена: 544 ФФД: 1.0 [09:14:41]line ЗНМ: 0300000109 [09:14:41]line РНМ: 0000000000091777 [09:14:41]line Версия ККМ: 001 [09:14:41]line ФМ: 0000000000871756 [09:14:41]line ФД: 201790 [09:14:41]line ФПД: 91370319261213 [09:14:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201790&fm=91370319261213&tin=02508201610067®Number=0000000000091777&sum=100000 [09:14:41]written 0, free lines is 4095 [09:14:41]OFD Sender: Processing packet 201790 [packets to send 112, broken 111] [09:14:41]ProducePacketName [09:14:41]name=ofd_packets/00201790 [09:14:41]OFD Sender: To server: pG, [09:14:41]CommunicateWithHost lk.salyk.kg:30040 [09:14:41]ConnectInit lk.salyk.kg [09:14:42]Connected sock=11 [09:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9E AE 04 01 E8 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 52 00 00 00 F4 03 04 00 83 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 14 03 00 35 04 06 00 53 19 CF 6C 2E 1D 6C 31 0B 8B 13 0B F1 BE [09:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C8 CB 47 00 A7 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 14 03 00 F4 03 04 00 29 B0 1D 67 B6 04 01 00 00 FA CE 1B 8A C4 D4 0E 03 [09:14:42]CommunicateWithHost err = 0 [09:14:42]CheckOFDResponse [09:14:42]1017 (14) - 77093643461234 [09:14:42]1041 (16) - 0000000000871756 [09:14:42]1040 (4) - 201790 [09:14:42]1012 (4) - 27.10.2024 03:14 [09:14:42]1206 (1) - 0 [09:14:42]OFD Sender: Remove packet 201790 [09:14:42]ProducePacketName [09:14:42]name=ofd_packets/00201790 [09:14:42]NVStorageDeleteData [09:14:42]Write to MH i2c: 01 00 00 9B 1E B9 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: 01 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: 01 07 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: 01 07 00 9B 1E 00 00 00 00 00 2B 0D F8 [09:14:42]RasterBufferAndPrint [09:14:42]line [09:14:42]line [09:14:42]line [09:14:42]line [09:14:42]line [09:14:42]written 0, free lines is 3391 [09:14:42]MH_Cut [09:14:42]Write to MH i2c: D1 01 00 A2 1E 01 92 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: D1 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: D1 01 00 [09:14:42]MH_I2C_Read... [09:14:42]Read from MH i2c: D1 01 00 A2 1E 00 91 [09:14:42]Write to MH i2c: 01 00 00 A3 1E C1 [09:14:42]Write i2c OK [09:14:42]MH_I2C_Read... [09:14:42]OFD Sender: No OFD packet to send [09:14:43]*** Cut start [09:14:43]*** Purtial cut [09:14:43]*** Stage 1: CUTSNS_PIN = 1 [09:14:43]Read from MH i2c: 01 [09:14:43]MH_I2C_Read... [09:14:43]*** Stop cut motor [09:14:43]*** Cut end [09:14:43]Read from MH i2c: 01 07 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: 01 07 00 A3 1E 00 00 00 00 00 FF 0F D6 [09:14:43]process_action close_receipt done [09:14:43]requested_data is exist [09:14:43]produce_requested_data [09:14:43]requested_item fm.sn is exist - process it [09:14:43]wFMCommunicate request_size=4 [09:14:43]MH_SAM_APDU [09:14:43]CAPDU: 80 11 00 00 [09:14:43]Write to MH i2c: E2 08 00 A4 1E 80 11 00 00 00 00 00 00 3C [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 [09:14:43]MH_I2C_Read... [09:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:43]Read from MH i2c: E2 17 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 17 00 A4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 91 [09:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:14:43]wFMCommunicate OK [09:14:43]requested_item fd.num is exist - process it [09:14:43]SAM_PROTO_GetFieldsCounters [09:14:43]wFMCommunicate request_size=4 [09:14:43]MH_SAM_APDU [09:14:43]CAPDU: 80 13 00 00 [09:14:43]Write to MH i2c: E2 08 00 A5 1E 80 13 00 00 00 00 00 00 3F [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:43]Read from MH i2c: E2 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 62 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 62 00 A5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3E 14 03 00 0E 04 04 00 20 02 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 D5 [09:14:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3E 14 03 00 0E 04 04 00 20 02 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 [09:14:43]wFMCommunicate OK [09:14:43]SAM_PROTO_GetFieldsCounters done [09:14:43]requested_item shift.num is exist - process it [09:14:43]requested_item shift.opened is exist - process it [09:14:43]req_shift_opened [09:14:43]FM_GetShiftState [09:14:43]SAM_PROTO_GetShiftState [09:14:43]wFMCommunicate request_size=4 [09:14:43]MH_SAM_APDU [09:14:43]CAPDU: 80 13 01 00 [09:14:43]Write to MH i2c: E2 08 00 A6 1E 80 13 01 00 00 00 00 00 41 [09:14:43]Write i2c OK [09:14:43]MH_I2C_Read... [09:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:43]Read from MH i2c: E2 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 0E 00 [09:14:43]MH_I2C_Read... [09:14:43]Read from MH i2c: E2 0E 00 A6 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 43 [09:14:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:14:43]wFMCommunicate OK [09:14:43]SAM_PROTO_GetShiftState done [09:14:43]FM_GetShiftState done [09:14:43]req_shift_opened done [09:14:43]requested_item shift.open_date is exist - process it [09:14:43]req_shift_open_date [09:14:43]req_shift_open_date done [09:14:43]produce_requested_data done [09:14:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201790,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:14:43]process_action_free close_receipt [09:14:43]json_value_free [09:14:43]json_value_free done [09:14:43]process_json_proto returns [09:14:43]Send response to host [09:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201790,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:14:43]free response buf [09:14:43]execute_script done [09:14:43]execute_script returns [09:14:43]free content buf [09:14:43]Sock 9.Close socket [09:14:43]Sock 9.Thread stoped [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:18]accept exits with 10 [09:15:18]New connection [09:15:18]New thread 3067080036 created [09:15:18]Thread 3066936676 joined [09:15:18]Waiting for new connection... [09:15:18] Sock 10.Parse request [09:15:18]Sock 10.Check first char [09:15:18]Sock 10.First char is OK [09:15:18]request: POST /json_proto HTTP/1.0 [09:15:18]Method: POST [09:15:18]URL: /json_proto [09:15:18]Method is POST - this is cgi request [09:15:18]url: /json_proto [09:15:18]query_string will be loaded in cgi processing [09:15:18]execute_cgi json_proto POST (null) [09:15:18]execute_cgi path=json_proto method=POST [09:15:18]POST find Content-Length [09:15:18]Host: 172.17.63.195:8080 [09:15:18]Content-Length: 682 [09:15:18]Content-Type: application/json [09:15:18] [09:15:18]POST finish read [09:15:18]Found Content-Length = 682 [09:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:18]execute_script... [09:15: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)449549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:18]POST & json_proto [09:15:18]process_json_proto [09:15:18]json parsed OK: [09:15:18]protocol is kg_v1.0 [09:15:18]action value=close_receipt [09:15:18]process_action close_receipt [09:15:18]cmd_close_receipt [09:15:18]MH_GetDate [09:15:18]Write to MH i2c: F0 00 00 A7 1E B4 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: F0 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: F0 09 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: F0 09 00 A7 1E 00 AA 04 1E 67 68 46 19 67 1E [09:15:18]GetLastDocTimeStamp 1730020483 [09:15:18]current date 1730020522 [09:15:18]FM_GetShiftState [09:15:18]SAM_PROTO_GetShiftState [09:15:18]wFMCommunicate request_size=4 [09:15:18]MH_SAM_APDU [09:15:18]CAPDU: 80 13 01 00 [09:15:18]Write to MH i2c: E2 08 00 A8 1E 80 13 01 00 00 00 00 00 43 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:18]Read from MH i2c: E2 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 0E 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: E2 0E 00 A8 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 45 [09:15:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:15:18]wFMCommunicate OK [09:15:18]SAM_PROTO_GetShiftState done [09:15:18]FM_GetShiftState done [09:15:18]opened in 1729987312 [09:15:18]opened+sec_in_day 1730073712 [09:15:18]quantity*price = 100015 [09:15:18]sum+1 = 100017 [09:15: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 83 27.10.2024 09:15 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201791 ФПД: 191621425667904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091522&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201791&fm=191621425667904&tin=02508201610067®Number=0000000000091777&sum=100000 [09:15:19]StoreToDocumentArchive [09:15:19]shift 544 fd 201791 [09:15:19]save to /storage/0544/doc_00201791 [09:15:19]save last doc name /storage/0544/doc_00201791 to /storage/kkm_last_doc_name [09:15:19]save OK [09:15:19]Clear old archive folders... [09:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:19]tlvbuf is 001ADB80 [09:15:19]SAM_PROTO_ClearQueue [09:15:19]wFMCommunicate request_size=4 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 09 00 00 [09:15:19]Write to MH i2c: E2 08 00 B5 1E 80 09 00 00 00 00 00 00 45 [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [09:15:19]RAPDU: 90 00 [09:15:19]wFMCommunicate OK [09:15:19]SAM_PROTO_ClearQueue done [09:15:19]KKMCreateOFDPacket [09:15:19]OFDProtocolAddRootSTLVToBuf [09:15:19]FM_MakeSignedData [09:15:19]FM_MakeSignedData [09:15:19]SAM_PROTO_SignData [09:15:19]wFMCommunicate request_size=4 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 0D 01 02 [09:15:19]Write to MH i2c: E2 08 00 B6 1E 80 0D 01 02 00 00 00 00 4D [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 03 00 B6 1E 00 90 00 48 [09:15:19]RAPDU: 90 00 [09:15:19]wFMCommunicate OK [09:15:19]wFMCommunicate request_size=255 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AA 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 14 03 00 35 04 06 00 AE [09:15:20]Write to MH i2c: E2 02 01 B7 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 32 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 AA 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 14 03 00 35 04 06 00 AE 00 00 87 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:20]Read from MH i2c: E2 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 03 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 03 00 B7 1E 00 90 00 49 [09:15:20]RAPDU: 90 00 [09:15:20]wFMCommunicate OK [09:15:20]wFMCommunicate request_size=10 [09:15:20]MH_SAM_APDU [09:15:20]CAPDU: 80 0D 02 02 05 47 57 02 1F 40 [09:15:20]Write to MH i2c: E2 0D 00 B8 1E 80 0D 02 02 05 00 47 57 02 1F 40 00 00 59 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:20]Read from MH i2c: E2 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 03 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 03 00 B8 1E 00 90 00 4A [09:15:20]RAPDU: 90 00 [09:15:20]wFMCommunicate OK [09:15:20]wFMCommunicate request_size=4 [09:15:20]MH_SAM_APDU [09:15:20]CAPDU: 80 0D 03 02 [09:15:20]Write to MH i2c: E2 08 00 B9 1E 80 0D 03 02 00 00 00 00 52 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:20]Read from MH i2c: E2 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 0B 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 0B 00 B9 1E 00 31 30 60 0A 19 74 04 EE 90 00 9D [09:15:20]RAPDU: 31 30 60 0A 19 74 04 EE 90 00 [09:15:20]wFMCommunicate OK [09:15:20]SAM_PROTO_SignData done [09:15:20]FM_MakeSignedData done [09:15:20]CreateOFDProtocolMessage [09:15:20]wFMCommunicate request_size=4 [09:15:20]MH_SAM_APDU [09:15:20]CAPDU: 80 11 00 00 [09:15:20]Write to MH i2c: E2 08 00 BA 1E 80 11 00 00 00 00 00 00 52 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:20]Read from MH i2c: E2 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 17 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: E2 17 00 BA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A7 [09:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:15:20]wFMCommunicate OK [09:15:20]CreateOFDProtocolMessage done [09:15:20]OFDSenderStorePacket 201791 [09:15:20]StoreOFDPacket docnum=201791 [09:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8C 8F 07 01 99 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 32 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 AA 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 14 03 00 35 04 06 00 AE 47 57 02 1F 40 31 30 60 0A 19 74 04 EE [09:15:20]CheckFolder [09:15:20]dirname=/storage/ofd_packets [09:15:20]CheckFolder done [09:15:20]ProducePacketName [09:15:20]name=ofd_packets/00201791 [09:15:20]NVStorageSaveData ofd_packets/00201791 [09:15:20]File name is /storage/ofd_packets/00201791 [09:15:20]Write 301 bytes [09:15:20]NVStorageSaveData done [09:15:20]OFDSenderStorePacket done [09:15:20]KKMCreateOFDPacket done [09:15:20]NVStorageSaveData kkm_last_timestamp [09:15:20]File name is /storage/kkm_last_timestamp [09:15:20]Write 4 bytes [09:15:20]NVStorageSaveData done [09:15:20]ExternCall_PrintAddStr [09:15:20]wPrintStart [09:15:20]Write to MH i2c: 01 00 00 BB 1E D9 [09:15:20]Write i2c OK [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 07 00 [09:15:20]MH_I2C_Read... [09:15:20]Read from MH i2c: 01 07 00 BB 1E 00 00 00 00 00 FF 0F EE [09:15:20]RasterBufferAndPrint [09:15:20]line Счет N : (1)449549 [09:15:20]line ИНН: 02508201610067 [09:15:20]line Контрольно-Кассовый Чек [09:15:20]line ПРОДАЖА [09:15:20]line ТРК (МРК, ГНК) : 31 [09:15:20]line Товар: 2710124130 [09:15:20]line Аи-92-К-2 [09:15:20]line 14.950 * 66.90 [09:15:20]line = 1000.16 [09:15:20]line НДС 12% НСП 1% [09:15:20]line > о реализуемом товаре [09:15:20]line ОКРУГЛЕНИЕ: -0.16 [09:15:20]line ИТОГО: 1000.00 [09:15:20]line Внесено: 1000.00 [09:15:20]line СДАЧА: 0.00 [09:15:20]line НСП 1% : 8.85 [09:15:20]line НДС 12% : 106.21 [09:15:20]line Наличными: 1000.00 [09:15:20]line Безнал.: 0.00 [09:15:20]line Место: АЗС № 171 "Партнер Нефть" [09:15:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:15:20]line СНО: Общий режим [09:15:20]line Чек 83 27.10.2024 09:15 [09:15:20]line Смена: 544 ФФД: 1.0 [09:15:20]line ЗНМ: 0300000109 [09:15:20]line РНМ: 0000000000091777 [09:15:20]line Версия ККМ: 001 [09:15:20]line ФМ: 0000000000871756 [09:15:20]line ФД: 201791 [09:15:20]line ФПД: 191621425667904 [09:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091522&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201791&fm=191621425667904&tin=02508201610067®Number=0000000000091777&sum=100000 [09:15:20]written 0, free lines is 4095 [09:15:20]OFD Sender: Processing packet 201791 [packets to send 112, broken 111] [09:15:20]ProducePacketName [09:15:20]name=ofd_packets/00201791 [09:15:20]OFD Sender: To server: pG, [09:15:20]CommunicateWithHost lk.salyk.kg:30040 [09:15:20]ConnectInit lk.salyk.kg [09:15:20]Connected sock=11 [09:15:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8C 8F 07 01 99 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 32 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 AA 04 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 14 03 00 35 04 06 00 AE 47 57 02 1F 40 31 30 60 0A 19 74 04 EE [09:15:21]Write to MH i2c: 01 00 00 E6 1E 04 [09:15:21]Write i2c OK [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: 01 [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: 01 07 00 [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: 01 07 00 E6 1E 00 00 00 00 00 99 0C B0 [09:15:21]RasterBufferAndPrint [09:15:21]line [09:15:21]line [09:15:21]line [09:15:21]line [09:15:21]line [09:15:21]written 0, free lines is 3256 [09:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 48 5F 47 00 A0 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 14 03 00 F4 03 04 00 50 B0 1D 67 B6 04 01 00 00 0E 00 23 59 E1 14 31 DC [09:15:21]CommunicateWithHost err = 0 [09:15:21]CheckOFDResponse [09:15:21]1017 (14) - 77093643461234 [09:15:21]1041 (16) - 0000000000871756 [09:15:21]1040 (4) - 201791 [09:15:21]1012 (4) - 27.10.2024 03:15 [09:15:21]1206 (1) - 0 [09:15:21]OFD Sender: Remove packet 201791 [09:15:21]ProducePacketName [09:15:21]name=ofd_packets/00201791 [09:15:21]NVStorageDeleteData [09:15:21]MH_Cut [09:15:21]Write to MH i2c: D1 01 00 ED 1E 01 DD [09:15:21]Write i2c OK [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: D1 [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: D1 01 00 [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: D1 01 00 ED 1E 00 DC [09:15:21]Write to MH i2c: 01 00 00 EE 1E 0C [09:15:21]Write i2c OK [09:15:21]MH_I2C_Read... [09:15:21]OFD Sender: No OFD packet to send [09:15:22]*** Cut start [09:15:22]*** Purtial cut [09:15:22]*** CUTSNS_PIN = 0 [09:15:22]*** Stage 1: CUTSNS_PIN = 1 [09:15:24]Read from MH i2c: 01 [09:15:24]MH_I2C_Read... [09:15:24]*** Stop cut motor [09:15:24]*** Cut end [09:15:24]Read from MH i2c: 01 07 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: 01 07 00 EE 1E 00 00 00 00 00 FF 0F 21 [09:15:24]process_action close_receipt done [09:15:24]requested_data is exist [09:15:24]produce_requested_data [09:15:24]requested_item fm.sn is exist - process it [09:15:24]wFMCommunicate request_size=4 [09:15:24]MH_SAM_APDU [09:15:24]CAPDU: 80 11 00 00 [09:15:24]Write to MH i2c: E2 08 00 EF 1E 80 11 00 00 00 00 00 00 87 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:24]Read from MH i2c: E2 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 17 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 17 00 EF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DC [09:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:15:24]wFMCommunicate OK [09:15:24]requested_item fd.num is exist - process it [09:15:24]SAM_PROTO_GetFieldsCounters [09:15:24]wFMCommunicate request_size=4 [09:15:24]MH_SAM_APDU [09:15:24]CAPDU: 80 13 00 00 [09:15:24]Write to MH i2c: E2 08 00 F0 1E 80 13 00 00 00 00 00 00 8A [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:24]Read from MH i2c: E2 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 62 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 62 00 F0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3F 14 03 00 0E 04 04 00 20 02 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 24 [09:15:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3F 14 03 00 0E 04 04 00 20 02 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 [09:15:24]wFMCommunicate OK [09:15:24]SAM_PROTO_GetFieldsCounters done [09:15:24]requested_item shift.num is exist - process it [09:15:24]requested_item shift.opened is exist - process it [09:15:24]req_shift_opened [09:15:24]FM_GetShiftState [09:15:24]SAM_PROTO_GetShiftState [09:15:24]wFMCommunicate request_size=4 [09:15:24]MH_SAM_APDU [09:15:24]CAPDU: 80 13 01 00 [09:15:24]Write to MH i2c: E2 08 00 F1 1E 80 13 01 00 00 00 00 00 8C [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:24]Read from MH i2c: E2 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 0E 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 0E 00 F1 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8E [09:15:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:15:24]wFMCommunicate OK [09:15:24]SAM_PROTO_GetShiftState done [09:15:24]FM_GetShiftState done [09:15:24]req_shift_opened done [09:15:24]requested_item shift.open_date is exist - process it [09:15:24]req_shift_open_date [09:15:24]req_shift_open_date done [09:15:24]produce_requested_data done [09:15:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201791,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:15:24]process_action_free close_receipt [09:15:24]json_value_free [09:15:24]json_value_free done [09:15:24]process_json_proto returns [09:15:24]Send response to host [09:15:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201791,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:15:24]free response buf [09:15:24]execute_script done [09:15:24]execute_script returns [09:15:24]free content buf [09:15:24]Sock 10.Close socket [09:15:24]Sock 10.Thread stoped [09:15:24]ConnectInit Can't connect to host [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:00]accept exits with 9 [09:17:00]New connection [09:17:00]New thread 3066936676 created [09:17:00]Thread 3067080036 joined [09:17:00]Waiting for new connection... [09:17:00] Sock 9.Parse request [09:17:00]Sock 9.Check first char [09:17:00]Sock 9.First char is OK [09:17:00]request: POST /json_proto HTTP/1.0 [09:17:00]Method: POST [09:17:00]URL: /json_proto [09:17:00]Method is POST - this is cgi request [09:17:00]url: /json_proto [09:17:00]query_string will be loaded in cgi processing [09:17:00]execute_cgi json_proto POST (null) [09:17:00]execute_cgi path=json_proto method=POST [09:17:00]POST find Content-Length [09:17:00]Host: 172.17.63.195:8080 [09:17:00]Content-Length: 632 [09:17:00]Content-Type: application/json [09:17:00] [09:17:00]POST finish read [09:17:00]Found Content-Length = 632 [09:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [09:17:00]execute_script... [09:17:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [09:17:00]POST & json_proto [09:17:00]process_json_proto [09:17:00]json parsed OK: [09:17:00]protocol is kg_v1.0 [09:17:00]action value=close_receipt [09:17:00]process_action close_receipt [09:17:00]cmd_close_receipt [09:17:00]MH_GetDate [09:17:00]Write to MH i2c: F0 00 00 F2 1E FF [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: F0 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: F0 09 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: F0 09 00 F2 1E 00 0F 05 1E 67 68 46 19 67 CF [09:17:00]GetLastDocTimeStamp 1730020522 [09:17:00]current date 1730020623 [09:17:00]FM_GetShiftState [09:17:00]SAM_PROTO_GetShiftState [09:17:00]wFMCommunicate request_size=4 [09:17:00]MH_SAM_APDU [09:17:00]CAPDU: 80 13 01 00 [09:17:00]Write to MH i2c: E2 08 00 F3 1E 80 13 01 00 00 00 00 00 8E [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:00]Read from MH i2c: E2 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 0E 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 0E 00 F3 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 90 [09:17:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:17:00]wFMCommunicate OK [09:17:00]SAM_PROTO_GetShiftState done [09:17:00]FM_GetShiftState done [09:17:00]opened in 1729987312 [09:17:00]opened+sec_in_day 1730073712 [09:17:00]quantity*price = 50000 [09:17:00]sum+1 = 50001 [09:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 84 27.10.2024 09:17 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201792 ФПД: 223506522961226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091703&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201792&fm=223506522961226&tin=02508201610067®Number=0000000000091777&sum=50000 [09:17:01]StoreToDocumentArchive [09:17:01]shift 544 fd 201792 [09:17:01]save to /storage/0544/doc_00201792 [09:17:01]save last doc name /storage/0544/doc_00201792 to /storage/kkm_last_doc_name [09:17:01]save OK [09:17:01]Clear old archive folders... [09:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:17:01]tlvbuf is B6EE0C10 [09:17:01]SAM_PROTO_ClearQueue [09:17:01]wFMCommunicate request_size=4 [09:17:01]MH_SAM_APDU [09:17:01]CAPDU: 80 09 00 00 [09:17:01]Write to MH i2c: E2 08 00 00 1F 80 09 00 00 00 00 00 00 91 [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:01]Read from MH i2c: E2 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 03 00 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [09:17:01]RAPDU: 90 00 [09:17:01]wFMCommunicate OK [09:17:01]SAM_PROTO_ClearQueue done [09:17:01]KKMCreateOFDPacket [09:17:01]OFDProtocolAddRootSTLVToBuf [09:17:01]FM_MakeSignedData [09:17:01]FM_MakeSignedData [09:17:01]SAM_PROTO_SignData [09:17:01]wFMCommunicate request_size=4 [09:17:01]MH_SAM_APDU [09:17:01]CAPDU: 80 0D 01 02 [09:17:01]Write to MH i2c: E2 08 00 01 1F 80 0D 01 02 00 00 00 00 99 [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 [09:17:01]MH_I2C_Read... [09:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:01]Read from MH i2c: E2 03 00 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 03 00 01 1F 00 90 00 94 [09:17:01]RAPDU: 90 00 [09:17:01]wFMCommunicate OK [09:17:01]wFMCommunicate request_size=255 [09:17:01]MH_SAM_APDU [09:17:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 0F 05 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 14 03 00 35 04 06 00 [09:17:01]Write to MH i2c: E2 02 01 02 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 0F 05 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 14 03 00 35 04 06 00 00 00 F0 [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:01]Read from MH i2c: E2 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 03 00 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 03 00 02 1F 00 90 00 95 [09:17:01]RAPDU: 90 00 [09:17:01]wFMCommunicate OK [09:17:01]wFMCommunicate request_size=11 [09:17:01]MH_SAM_APDU [09:17:01]CAPDU: 80 0D 02 02 06 CB 47 2A E7 F5 4A [09:17:01]Write to MH i2c: E2 0E 00 03 1F 80 0D 02 02 06 00 CB 47 2A E7 F5 4A 00 00 0A [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:01]Read from MH i2c: E2 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 03 00 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 03 00 03 1F 00 90 00 96 [09:17:01]RAPDU: 90 00 [09:17:01]wFMCommunicate OK [09:17:01]wFMCommunicate request_size=4 [09:17:01]MH_SAM_APDU [09:17:01]CAPDU: 80 0D 03 02 [09:17:01]Write to MH i2c: E2 08 00 04 1F 80 0D 03 02 00 00 00 00 9E [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:01]Read from MH i2c: E2 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 0B 00 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: E2 0B 00 04 1F 00 6A BD F1 56 7B B7 76 DE 90 00 93 [09:17:01]RAPDU: 6A BD F1 56 7B B7 76 DE 90 00 [09:17:01]wFMCommunicate OK [09:17:01]SAM_PROTO_SignData done [09:17:01]FM_MakeSignedData done [09:17:01]CreateOFDProtocolMessage [09:17:01]wFMCommunicate request_size=4 [09:17:01]MH_SAM_APDU [09:17:01]CAPDU: 80 11 00 00 [09:17:01]Write to MH i2c: E2 08 00 05 1F 80 11 00 00 00 00 00 00 9E [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:02]Read from MH i2c: E2 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: E2 17 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: E2 17 00 05 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F3 [09:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:17:02]wFMCommunicate OK [09:17:02]CreateOFDProtocolMessage done [09:17:02]OFDSenderStorePacket 201792 [09:17:02]StoreOFDPacket docnum=201792 [09:17:02]OFD Sender: No OFD packet to send [09:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 1F C0 08 01 0B C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 0F 05 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 14 03 00 35 04 06 00 CB 47 2A E7 F5 4A 6A BD F1 56 7B B7 76 DE [09:17:02]CheckFolder [09:17:02]dirname=/storage/ofd_packets [09:17:02]CheckFolder done [09:17:02]ProducePacketName [09:17:02]name=ofd_packets/00201792 [09:17:02]NVStorageSaveData ofd_packets/00201792 [09:17:02]File name is /storage/ofd_packets/00201792 [09:17:02]Write 302 bytes [09:17:02]NVStorageSaveData done [09:17:02]OFDSenderStorePacket done [09:17:02]KKMCreateOFDPacket done [09:17:02]NVStorageSaveData kkm_last_timestamp [09:17:02]File name is /storage/kkm_last_timestamp [09:17:02]Write 4 bytes [09:17:02]NVStorageSaveData done [09:17:02]ExternCall_PrintAddStr [09:17:02]wPrintStart [09:17:02]Write to MH i2c: 01 00 00 06 1F 25 [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: 01 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: 01 07 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: 01 07 00 06 1F 00 00 00 00 00 FF 0F 3A [09:17:02]RasterBufferAndPrint [09:17:02]line Счет N : (1)449550 [09:17:02]line ИНН: 02508201610067 [09:17:02]line Контрольно-Кассовый Чек [09:17:02]line ПРОДАЖА [09:17:02]line ТРК (МРК, ГНК) : 63 [09:17:02]line Товар: 2710124130 [09:17:02]line SUPER 92-К-5 [09:17:02]line 7.310 * 68.40 [09:17:02]line = 500.00 [09:17:02]line НДС 12% НСП 1% [09:17:02]line > о реализуемом товаре [09:17:02]line ИТОГО: 500.00 [09:17:02]line НСП 1% : 4.42 [09:17:02]line НДС 12% : 53.10 [09:17:02]line Наличными: 500.00 [09:17:02]line Безнал.: 0.00 [09:17:02]line Место: АЗС № 171 "Партнер Нефть" [09:17:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:17:02]line СНО: Общий режим [09:17:02]line Чек 84 27.10.2024 09:17 [09:17:02]line Смена: 544 ФФД: 1.0 [09:17:02]line ЗНМ: 0300000109 [09:17:02]line РНМ: 0000000000091777 [09:17:02]line Версия ККМ: 001 [09:17:02]line ФМ: 0000000000871756 [09:17:02]line ФД: 201792 [09:17:02]line ФПД: 223506522961226 [09:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091703&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201792&fm=223506522961226&tin=02508201610067®Number=0000000000091777&sum=50000 [09:17:02]written 0, free lines is 4095 [09:17:02]OFD Sender: Processing packet 201792 [packets to send 112, broken 111] [09:17:02]ProducePacketName [09:17:02]name=ofd_packets/00201792 [09:17:02]OFD Sender: To server: pG, [09:17:02]CommunicateWithHost lk.salyk.kg:30040 [09:17:02]ConnectInit lk.salyk.kg [09:17:02]Connected sock=10 [09:17:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 1F C0 08 01 0B C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 0F 05 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 14 03 00 35 04 06 00 CB 47 2A E7 F5 4A 6A BD F1 56 7B B7 76 DE [09:17:02]Write to MH i2c: 01 00 00 2E 1F 4D [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: 01 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: 01 07 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: 01 07 00 2E 1F 00 00 00 00 00 DE 0C 3E [09:17:02]RasterBufferAndPrint [09:17:02]line [09:17:02]line [09:17:02]line [09:17:02]line [09:17:02]line [09:17:02]written 0, free lines is 3314 [09:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FE 02 47 00 40 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 14 03 00 F4 03 04 00 B5 B0 1D 67 B6 04 01 00 00 DB E3 5F A8 F6 95 50 B4 [09:17:02]CommunicateWithHost err = 0 [09:17:02]CheckOFDResponse [09:17:02]1017 (14) - 77093643461234 [09:17:02]1041 (16) - 0000000000871756 [09:17:02]1040 (4) - 201792 [09:17:02]1012 (4) - 27.10.2024 03:17 [09:17:02]1206 (1) - 0 [09:17:02]OFD Sender: Remove packet 201792 [09:17:02]ProducePacketName [09:17:02]name=ofd_packets/00201792 [09:17:02]NVStorageDeleteData [09:17:02]MH_Cut [09:17:02]Write to MH i2c: D1 01 00 35 1F 01 26 [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: D1 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: D1 01 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: D1 01 00 35 1F 00 25 [09:17:02]Write to MH i2c: 01 00 00 36 1F 55 [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:03]OFD Sender: No OFD packet to send [09:17:03]*** Cut start [09:17:03]*** Purtial cut [09:17:03]*** Stage 1: CUTSNS_PIN = 1 [09:17:03]Read from MH i2c: 01 [09:17:03]MH_I2C_Read... [09:17:03]*** Stop cut motor [09:17:03]*** Cut end [09:17:03]Read from MH i2c: 01 07 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: 01 07 00 36 1F 00 00 00 00 00 FF 0F 6A [09:17:03]process_action close_receipt done [09:17:03]requested_data is exist [09:17:03]produce_requested_data [09:17:03]requested_item fm.sn is exist - process it [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 11 00 00 [09:17:03]Write to MH i2c: E2 08 00 37 1F 80 11 00 00 00 00 00 00 D0 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 17 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 17 00 37 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 25 [09:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:17:03]wFMCommunicate OK [09:17:03]requested_item fd.num is exist - process it [09:17:03]SAM_PROTO_GetFieldsCounters [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 13 00 00 [09:17:03]Write to MH i2c: E2 08 00 38 1F 80 13 00 00 00 00 00 00 D3 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 62 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 62 00 38 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 40 14 03 00 0E 04 04 00 20 02 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 71 [09:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 40 14 03 00 0E 04 04 00 20 02 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 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_GetFieldsCounters done [09:17:04]requested_item shift.num is exist - process it [09:17:04]requested_item shift.opened is exist - process it [09:17:04]req_shift_opened [09:17:04]FM_GetShiftState [09:17:04]SAM_PROTO_GetShiftState [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 13 01 00 [09:17:04]Write to MH i2c: E2 08 00 39 1F 80 13 01 00 00 00 00 00 D5 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0E 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0E 00 39 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D7 [09:17:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_GetShiftState done [09:17:04]FM_GetShiftState done [09:17:04]req_shift_opened done [09:17:04]requested_item shift.open_date is exist - process it [09:17:04]req_shift_open_date [09:17:04]req_shift_open_date done [09:17:04]produce_requested_data done [09:17:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201792,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:17:04]process_action_free close_receipt [09:17:04]json_value_free [09:17:04]json_value_free done [09:17:04]process_json_proto returns [09:17:04]Send response to host [09:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201792,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:17:04]free response buf [09:17:04]execute_script done [09:17:04]execute_script returns [09:17:04]free content buf [09:17:04]Sock 9.Close socket [09:17:04]Sock 9.Thread stoped [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:10]accept exits with 8 [09:21:10]New connection [09:21:10]New thread 3067080036 created [09:21:10]Thread 3066936676 joined [09:21:10]Waiting for new connection... [09:21:10] Sock 8.Parse request [09:21:10]Sock 8.Check first char [09:21:10]Sock 8.First char is OK [09:21:10]request: POST /json_proto HTTP/1.0 [09:21:10]Method: POST [09:21:10]URL: /json_proto [09:21:10]Method is POST - this is cgi request [09:21:10]url: /json_proto [09:21:10]query_string will be loaded in cgi processing [09:21:10]execute_cgi json_proto POST (null) [09:21:10]execute_cgi path=json_proto method=POST [09:21:10]POST find Content-Length [09:21:10]Host: 172.17.63.195:8080 [09:21:10]Content-Length: 759 [09:21:10]Content-Type: application/json [09:21:10] [09:21:10]POST finish read [09:21:10]Found Content-Length = 759 [09:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:10]execute_script... [09:21: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)449551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:10]POST & json_proto [09:21:10]process_json_proto [09:21:10]json parsed OK: [09:21:10]protocol is kg_v1.0 [09:21:10]action value=close_receipt [09:21:10]process_action close_receipt [09:21:10]cmd_close_receipt [09:21:10]MH_GetDate [09:21:10]Write to MH i2c: F0 00 00 3A 1F 48 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: F0 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: F0 09 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: F0 09 00 3A 1F 00 0A 06 1E 67 68 46 19 67 14 [09:21:10]GetLastDocTimeStamp 1730020623 [09:21:10]current date 1730020874 [09:21:10]FM_GetShiftState [09:21:10]SAM_PROTO_GetShiftState [09:21:10]wFMCommunicate request_size=4 [09:21:10]MH_SAM_APDU [09:21:10]CAPDU: 80 13 01 00 [09:21:10]Write to MH i2c: E2 08 00 3B 1F 80 13 01 00 00 00 00 00 D7 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:10]Read from MH i2c: E2 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 0E 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 0E 00 3B 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D9 [09:21:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:21:10]wFMCommunicate OK [09:21:10]SAM_PROTO_GetShiftState done [09:21:10]FM_GetShiftState done [09:21:10]opened in 1729987312 [09:21:10]opened+sec_in_day 1730073712 [09:21:10]quantity*price = 40014 [09:21:10]sum+1 = 40015 [09:21:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.14 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 0.00 Безнал.: 400.14 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 85 27.10.2024 09:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201793 ФПД: 226235714633981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092114&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201793&fm=226235714633981&tin=02508201610067®Number=0000000000091777&sum=40014 [09:21:12]StoreToDocumentArchive [09:21:12]shift 544 fd 201793 [09:21:12]save to /storage/0544/doc_00201793 [09:21:12]save last doc name /storage/0544/doc_00201793 to /storage/kkm_last_doc_name [09:21:12]save OK [09:21:12]Clear old archive folders... [09:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:21:12]tlvbuf is B6EE0520 [09:21:12]SAM_PROTO_ClearQueue [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 09 00 00 [09:21:12]Write to MH i2c: E2 08 00 48 1F 80 09 00 00 00 00 00 00 D9 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 48 1F 00 90 00 DB [09:21:12]RAPDU: 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_ClearQueue done [09:21:12]KKMCreateOFDPacket [09:21:12]OFDProtocolAddRootSTLVToBuf [09:21:12]FM_MakeSignedData [09:21:12]FM_MakeSignedData [09:21:12]SAM_PROTO_SignData [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 0D 01 02 [09:21:12]Write to MH i2c: E2 08 00 49 1F 80 0D 01 02 00 00 00 00 E1 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [09:21:12]RAPDU: 90 00 [09:21:12]wFMCommunicate OK [09:21:12]wFMCommunicate request_size=255 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 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 00 00 00 00 00 00 39 04 06 00 4E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0A 06 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 14 03 00 35 04 06 00 [09:21:12]Write to MH i2c: E2 02 01 4A 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 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 00 00 00 00 00 00 39 04 06 00 4E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0A 06 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 14 03 00 35 04 06 00 00 00 80 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [09:21:12]RAPDU: 90 00 [09:21:12]wFMCommunicate OK [09:21:12]wFMCommunicate request_size=11 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 0D 02 02 06 CD C2 9B 68 00 FD [09:21:12]Write to MH i2c: E2 0E 00 4B 1F 80 0D 02 02 06 00 CD C2 9B 68 00 FD 00 00 7F [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [09:21:12]RAPDU: 90 00 [09:21:12]wFMCommunicate OK [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 0D 03 02 [09:21:12]Write to MH i2c: E2 08 00 4C 1F 80 0D 03 02 00 00 00 00 E6 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0B 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0B 00 4C 1F 00 95 6E 34 23 04 3E E8 51 90 00 BC [09:21:12]RAPDU: 95 6E 34 23 04 3E E8 51 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_SignData done [09:21:12]FM_MakeSignedData done [09:21:12]CreateOFDProtocolMessage [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 11 00 00 [09:21:12]Write to MH i2c: E2 08 00 4D 1F 80 11 00 00 00 00 00 00 E6 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 4D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3B [09:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:21:12]wFMCommunicate OK [09:21:12]CreateOFDProtocolMessage done [09:21:12]OFDSenderStorePacket 201793 [09:21:12]StoreOFDPacket docnum=201793 [09:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 22 70 08 01 67 B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 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 00 00 00 00 00 00 39 04 06 00 4E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0A 06 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 14 03 00 35 04 06 00 CD C2 9B 68 00 FD 95 6E 34 23 04 3E E8 51 [09:21:12]CheckFolder [09:21:12]dirname=/storage/ofd_packets [09:21:12]CheckFolder done [09:21:12]ProducePacketName [09:21:12]name=ofd_packets/00201793 [09:21:12]NVStorageSaveData ofd_packets/00201793 [09:21:12]File name is /storage/ofd_packets/00201793 [09:21:12]Write 302 bytes [09:21:12]NVStorageSaveData done [09:21:12]OFDSenderStorePacket done [09:21:12]KKMCreateOFDPacket done [09:21:12]NVStorageSaveData kkm_last_timestamp [09:21:12]File name is /storage/kkm_last_timestamp [09:21:12]Write 4 bytes [09:21:12]NVStorageSaveData done [09:21:12]ExternCall_PrintAddStr [09:21:12]wPrintStart [09:21:12]Write to MH i2c: 01 00 00 4E 1F 6D [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 4E 1F 00 00 00 00 00 FF 0F 82 [09:21:12]RasterBufferAndPrint [09:21:12]line Счет N : (1)449551 [09:21:12]line ИНН: 02508201610067 [09:21:12]line Контрольно-Кассовый Чек [09:21:12]line ПРОДАЖА [09:21:12]line ТРК (МРК, ГНК) : 42 [09:21:12]line Товар: 2710124130 [09:21:12]line SUPER 92-К-5 [09:21:12]line 5.850 * 68.40 [09:21:12]line = 400.14 [09:21:12]line НДС 12% НСП 1% [09:21:12]line > о реализуемом товаре [09:21:12]line ИТОГО: 400.14 [09:21:12]line НСП 1% : 3.54 [09:21:12]line НДС 12% : 42.49 [09:21:12]line Наличными: 0.00 [09:21:12]line Безнал.: 400.14 [09:21:12]line Место: АЗС № 171 "Партнер Нефть" [09:21:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:21:12]line СНО: Общий режим [09:21:12]line Чек 85 27.10.2024 09:21 [09:21:12]line Смена: 544 ФФД: 1.0 [09:21:12]line ЗНМ: 0300000109 [09:21:12]line РНМ: 0000000000091777 [09:21:12]line Версия ККМ: 001 [09:21:12]line Платежная система: Mbank [09:21:12]line ФМ: 0000000000871756 [09:21:12]line ФД: 201793 [09:21:12]line ФПД: 226235714633981 [09:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092114&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201793&fm=226235714633981&tin=02508201610067®Number=0000000000091777&sum=40014 [09:21:12]written 0, free lines is 4095 [09:21:12]OFD Sender: Processing packet 201793 [packets to send 112, broken 111] [09:21:12]ProducePacketName [09:21:12]name=ofd_packets/00201793 [09:21:12]OFD Sender: To server: pG, [09:21:12]CommunicateWithHost lk.salyk.kg:30040 [09:21:12]ConnectInit lk.salyk.kg [09:21:13]Connected sock=10 [09:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 22 70 08 01 67 B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 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 00 00 00 00 00 00 39 04 06 00 4E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0A 06 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 14 03 00 35 04 06 00 CD C2 9B 68 00 FD 95 6E 34 23 04 3E E8 51 [09:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8B 63 47 00 2B B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 14 03 00 F4 03 04 00 B0 B1 1D 67 B6 04 01 00 00 B1 09 6B 5F F9 BB AA 4F [09:21:13]CommunicateWithHost err = 0 [09:21:13]CheckOFDResponse [09:21:13]1017 (14) - 77093643461234 [09:21:13]1041 (16) - 0000000000871756 [09:21:13]1040 (4) - 201793 [09:21:13]1012 (4) - 27.10.2024 03:21 [09:21:13]1206 (1) - 0 [09:21:13]OFD Sender: Remove packet 201793 [09:21:13]ProducePacketName [09:21:13]name=ofd_packets/00201793 [09:21:13]NVStorageDeleteData [09:21:13]Write to MH i2c: 01 00 00 77 1F 96 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 77 1F 00 00 00 00 00 BC 0C 65 [09:21:13]RasterBufferAndPrint [09:21:13]line [09:21:13]line [09:21:13]line [09:21:13]line [09:21:13]line [09:21:13]written 0, free lines is 3265 [09:21:13]MH_Cut [09:21:13]Write to MH i2c: D1 01 00 7E 1F 01 6F [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D1 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D1 01 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D1 01 00 7E 1F 00 6E [09:21:13]Write to MH i2c: 01 00 00 7F 1F 9E [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]OFD Sender: No OFD packet to send [09:21:14]*** Cut start [09:21:14]*** Purtial cut [09:21:14]*** Stage 1: CUTSNS_PIN = 1 [09:21:14]Read from MH i2c: 01 [09:21:14]MH_I2C_Read... [09:21:14]*** Stop cut motor [09:21:14]*** Cut end [09:21:14]Read from MH i2c: 01 07 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: 01 07 00 7F 1F 00 00 00 00 00 FF 0F B3 [09:21:14]process_action close_receipt done [09:21:14]requested_data is exist [09:21:14]produce_requested_data [09:21:14]requested_item fm.sn is exist - process it [09:21:14]wFMCommunicate request_size=4 [09:21:14]MH_SAM_APDU [09:21:14]CAPDU: 80 11 00 00 [09:21:14]Write to MH i2c: E2 08 00 80 1F 80 11 00 00 00 00 00 00 19 [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:14]Read from MH i2c: E2 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 17 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 17 00 80 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6E [09:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:21:14]wFMCommunicate OK [09:21:14]requested_item fd.num is exist - process it [09:21:14]SAM_PROTO_GetFieldsCounters [09:21:14]wFMCommunicate request_size=4 [09:21:14]MH_SAM_APDU [09:21:14]CAPDU: 80 13 00 00 [09:21:14]Write to MH i2c: E2 08 00 81 1F 80 13 00 00 00 00 00 00 1C [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:14]Read from MH i2c: E2 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 62 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 62 00 81 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 41 14 03 00 0E 04 04 00 20 02 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 BE [09:21:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 41 14 03 00 0E 04 04 00 20 02 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 [09:21:14]wFMCommunicate OK [09:21:14]SAM_PROTO_GetFieldsCounters done [09:21:14]requested_item shift.num is exist - process it [09:21:14]requested_item shift.opened is exist - process it [09:21:14]req_shift_opened [09:21:14]FM_GetShiftState [09:21:14]SAM_PROTO_GetShiftState [09:21:14]wFMCommunicate request_size=4 [09:21:14]MH_SAM_APDU [09:21:14]CAPDU: 80 13 01 00 [09:21:14]Write to MH i2c: E2 08 00 82 1F 80 13 01 00 00 00 00 00 1E [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:14]Read from MH i2c: E2 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 0E 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: E2 0E 00 82 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 20 [09:21:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:21:14]wFMCommunicate OK [09:21:14]SAM_PROTO_GetShiftState done [09:21:14]FM_GetShiftState done [09:21:14]req_shift_opened done [09:21:14]requested_item shift.open_date is exist - process it [09:21:14]req_shift_open_date [09:21:14]req_shift_open_date done [09:21:14]produce_requested_data done [09:21:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201793,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:21:14]process_action_free close_receipt [09:21:14]json_value_free [09:21:14]json_value_free done [09:21:14]process_json_proto returns [09:21:14]Send response to host [09:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201793,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:21:14]free response buf [09:21:14]execute_script done [09:21:14]execute_script returns [09:21:14]free content buf [09:21:14]Sock 8.Close socket [09:21:14]Sock 8.Thread stoped [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:38]int [09:21:38]Write to MH i2c: 01 00 00 83 1F A2 [09:21:38]*** FLAG_PRN_KEY set [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 07 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 07 00 83 1F 00 08 00 00 00 FF 0F BF [09:21:38]state=0 [09:21:38]Key pressed [09:21:38]Feed [09:21:38]Write to MH i2c: D8 00 00 84 1F 7A [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: D8 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: D8 01 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: D8 01 00 84 1F 00 7B [09:21:38]int [09:21:38]Write to MH i2c: 01 00 00 85 1F A4 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 07 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 07 00 85 1F 00 48 00 00 00 3C 00 2F [09:21:38]state=2 [09:21:38]Key pressed [09:21:39]int [09:21:39]Write to MH i2c: 01 00 00 86 1F A5 [09:21:39]*** FLAG_PRN_KEY reset [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 07 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 07 00 86 1F 00 00 00 00 00 F5 0F B0 [09:21:39]state=2 [09:21:39]Stop feed [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:08]accept exits with 9 [09:25:08]New connection [09:25:08]New thread 3066936676 created [09:25:08]Thread 3067080036 joined [09:25:08]Waiting for new connection... [09:25:08] Sock 9.Parse request [09:25:08]Sock 9.Check first char [09:25:08]Sock 9.First char is OK [09:25:08]request: POST /json_proto HTTP/1.0 [09:25:08]Method: POST [09:25:08]URL: /json_proto [09:25:08]Method is POST - this is cgi request [09:25:08]url: /json_proto [09:25:08]query_string will be loaded in cgi processing [09:25:08]execute_cgi json_proto POST (null) [09:25:08]execute_cgi path=json_proto method=POST [09:25:08]POST find Content-Length [09:25:08]Host: 172.17.63.195:8080 [09:25:08]Content-Length: 677 [09:25:08]Content-Type: application/json [09:25:08] [09:25:08]POST finish read [09:25:08]Found Content-Length = 677 [09:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:25:08]execute_script... [09:25:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:25:08]POST & json_proto [09:25:08]process_json_proto [09:25:08]json parsed OK: [09:25:08]protocol is kg_v1.0 [09:25:08]action value=close_receipt [09:25:08]process_action close_receipt [09:25:08]cmd_close_receipt [09:25:08]MH_GetDate [09:25:08]Write to MH i2c: F0 00 00 87 1F 95 [09:25:08]Write i2c OK [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: F0 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: F0 09 00 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: F0 09 00 87 1F 00 F8 06 1E 67 68 46 19 67 4F [09:25:08]GetLastDocTimeStamp 1730020874 [09:25:08]current date 1730021112 [09:25:08]FM_GetShiftState [09:25:08]SAM_PROTO_GetShiftState [09:25:08]wFMCommunicate request_size=4 [09:25:08]MH_SAM_APDU [09:25:08]CAPDU: 80 13 01 00 [09:25:08]Write to MH i2c: E2 08 00 88 1F 80 13 01 00 00 00 00 00 24 [09:25:08]Write i2c OK [09:25:08]MH_I2C_Read... [09:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:08]Read from MH i2c: E2 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 0E 00 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 0E 00 88 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 26 [09:25:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:25:08]wFMCommunicate OK [09:25:08]SAM_PROTO_GetShiftState done [09:25:08]FM_GetShiftState done [09:25:08]opened in 1729987312 [09:25:08]opened+sec_in_day 1730073712 [09:25:08]quantity*price = 30038 [09:25:08]sum+1 = 30039 [09:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 86 27.10.2024 09:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201794 ФПД: 260150645503008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092512&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201794&fm=260150645503008&tin=02508201610067®Number=0000000000091777&sum=30000 [09:25:09]StoreToDocumentArchive [09:25:09]shift 544 fd 201794 [09:25:09]save to /storage/0544/doc_00201794 [09:25:09]save last doc name /storage/0544/doc_00201794 to /storage/kkm_last_doc_name [09:25:09]save OK [09:25:09]Clear old archive folders... [09:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:09]tlvbuf is 000827F0 [09:25:09]SAM_PROTO_ClearQueue [09:25:09]wFMCommunicate request_size=4 [09:25:09]MH_SAM_APDU [09:25:09]CAPDU: 80 09 00 00 [09:25:09]Write to MH i2c: E2 08 00 95 1F 80 09 00 00 00 00 00 00 26 [09:25:09]Write i2c OK [09:25:09]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 95 1F 00 90 00 28 [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]SAM_PROTO_ClearQueue done [09:25:10]KKMCreateOFDPacket [09:25:10]OFDProtocolAddRootSTLVToBuf [09:25:10]FM_MakeSignedData [09:25:10]FM_MakeSignedData [09:25:10]SAM_PROTO_SignData [09:25:10]wFMCommunicate request_size=4 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 01 02 [09:25:10]Write to MH i2c: E2 08 00 96 1F 80 0D 01 02 00 00 00 00 2E [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 96 1F 00 90 00 29 [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]wFMCommunicate request_size=255 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 56 00 00 00 F4 03 04 00 F8 06 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 14 03 00 35 04 06 00 EC [09:25:10]Write to MH i2c: E2 02 01 97 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 56 00 00 00 F4 03 04 00 F8 06 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 14 03 00 35 04 06 00 EC 00 00 F6 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 97 1F 00 90 00 2A [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]wFMCommunicate request_size=10 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 02 02 05 9B 0A D0 34 20 [09:25:10]Write to MH i2c: E2 0D 00 98 1F 80 0D 02 02 05 00 9B 0A D0 34 20 00 00 04 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 98 1F 00 90 00 2B [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]wFMCommunicate request_size=4 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 03 02 [09:25:10]Write to MH i2c: E2 08 00 99 1F 80 0D 03 02 00 00 00 00 33 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 0B 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 0B 00 99 1F 00 C0 FB 4A 9A 4E B4 DD 43 90 00 F5 [09:25:10]RAPDU: C0 FB 4A 9A 4E B4 DD 43 90 00 [09:25:10]wFMCommunicate OK [09:25:10]SAM_PROTO_SignData done [09:25:10]FM_MakeSignedData done [09:25:10]CreateOFDProtocolMessage [09:25:10]wFMCommunicate request_size=4 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 11 00 00 [09:25:10]Write to MH i2c: E2 08 00 9A 1F 80 11 00 00 00 00 00 00 33 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 17 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 17 00 9A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [09:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:25:10]wFMCommunicate OK [09:25:10]CreateOFDProtocolMessage done [09:25:10]OFDSenderStorePacket 201794 [09:25:10]StoreOFDPacket docnum=201794 [09:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7D D1 07 01 40 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 32 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 56 00 00 00 F4 03 04 00 F8 06 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 14 03 00 35 04 06 00 EC 9B 0A D0 34 20 C0 FB 4A 9A 4E B4 DD 43 [09:25:10]CheckFolder [09:25:10]dirname=/storage/ofd_packets [09:25:10]CheckFolder done [09:25:10]ProducePacketName [09:25:10]name=ofd_packets/00201794 [09:25:10]NVStorageSaveData ofd_packets/00201794 [09:25:10]File name is /storage/ofd_packets/00201794 [09:25:10]Write 301 bytes [09:25:10]NVStorageSaveData done [09:25:10]OFDSenderStorePacket done [09:25:10]KKMCreateOFDPacket done [09:25:10]NVStorageSaveData kkm_last_timestamp [09:25:10]File name is /storage/kkm_last_timestamp [09:25:10]Write 4 bytes [09:25:10]NVStorageSaveData done [09:25:10]ExternCall_PrintAddStr [09:25:10]wPrintStart [09:25:10]Write to MH i2c: 01 00 00 9B 1F BA [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 07 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 07 00 9B 1F 00 00 00 00 00 FF 0F CF [09:25:10]RasterBufferAndPrint [09:25:10]line Счет N : (1)449552 [09:25:10]line ИНН: 02508201610067 [09:25:10]line Контрольно-Кассовый Чек [09:25:10]line ПРОДАЖА [09:25:10]line ТРК (МРК, ГНК) : 41 [09:25:10]line Товар: 2710124130 [09:25:10]line Аи-92-К-2 [09:25:10]line 4.490 * 66.90 [09:25:10]line = 300.38 [09:25:10]line НДС 12% НСП 1% [09:25:10]line > о реализуемом товаре [09:25:10]line ОКРУГЛЕНИЕ: -0.38 [09:25:10]line ИТОГО: 300.00 [09:25:10]line Внесено: 300.00 [09:25:10]line СДАЧА: 0.00 [09:25:10]line НСП 1% : 2.66 [09:25:10]line НДС 12% : 31.90 [09:25:10]line Наличными: 300.00 [09:25:10]line Безнал.: 0.00 [09:25:10]line Место: АЗС № 171 "Партнер Нефть" [09:25:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:25:10]line СНО: Общий режим [09:25:10]line Чек 86 27.10.2024 09:25 [09:25:10]line Смена: 544 ФФД: 1.0 [09:25:10]line ЗНМ: 0300000109 [09:25:10]line РНМ: 0000000000091777 [09:25:10]line Версия ККМ: 001 [09:25:10]line ФМ: 0000000000871756 [09:25:10]line ФД: 201794 [09:25:10]line ФПД: 260150645503008 [09:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092512&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201794&fm=260150645503008&tin=02508201610067®Number=0000000000091777&sum=30000 [09:25:10]OFD Sender: Processing packet 201794 [packets to send 112, broken 111] [09:25:10]ProducePacketName [09:25:10]name=ofd_packets/00201794 [09:25:10]OFD Sender: To server: pG, [09:25:10]CommunicateWithHost lk.salyk.kg:30040 [09:25:10]ConnectInit lk.salyk.kg [09:25:10]written 0, free lines is 4095 [09:25:10]Connected sock=10 [09:25:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7D D1 07 01 40 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 32 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 56 00 00 00 F4 03 04 00 F8 06 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 14 03 00 35 04 06 00 EC 9B 0A D0 34 20 C0 FB 4A 9A 4E B4 DD 43 [09:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1C FD 47 00 20 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 14 03 00 F4 03 04 00 9E B2 1D 67 B6 04 01 00 00 29 14 B4 69 4F 27 6C A5 [09:25:11]CommunicateWithHost err = 0 [09:25:11]CheckOFDResponse [09:25:11]1017 (14) - 77093643461234 [09:25:11]1041 (16) - 0000000000871756 [09:25:11]1040 (4) - 201794 [09:25:11]1012 (4) - 27.10.2024 03:25 [09:25:11]1206 (1) - 0 [09:25:11]OFD Sender: Remove packet 201794 [09:25:11]ProducePacketName [09:25:11]name=ofd_packets/00201794 [09:25:11]NVStorageDeleteData [09:25:11]Write to MH i2c: 01 00 00 C6 1F E5 [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 07 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 07 00 C6 1F 00 00 00 00 00 AA 0C A2 [09:25:11]RasterBufferAndPrint [09:25:11]line [09:25:11]line [09:25:11]line [09:25:11]line [09:25:11]line [09:25:11]written 0, free lines is 3249 [09:25:11]MH_Cut [09:25:11]Write to MH i2c: D1 01 00 CD 1F 01 BE [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: D1 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: D1 01 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: D1 01 00 CD 1F 00 BD [09:25:11]Write to MH i2c: 01 00 00 CE 1F ED [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]OFD Sender: No OFD packet to send [09:25:12]*** Cut start [09:25:12]*** Purtial cut [09:25:12]*** Stage 1: CUTSNS_PIN = 1 [09:25:12]Read from MH i2c: 01 [09:25:12]MH_I2C_Read... [09:25:12]*** Stop cut motor [09:25:12]*** Cut end [09:25:12]Read from MH i2c: 01 07 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: 01 07 00 CE 1F 00 00 00 00 00 FF 0F 02 [09:25:12]process_action close_receipt done [09:25:12]requested_data is exist [09:25:12]produce_requested_data [09:25:12]requested_item fm.sn is exist - process it [09:25:12]wFMCommunicate request_size=4 [09:25:12]MH_SAM_APDU [09:25:12]CAPDU: 80 11 00 00 [09:25:12]Write to MH i2c: E2 08 00 CF 1F 80 11 00 00 00 00 00 00 68 [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:12]Read from MH i2c: E2 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 17 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 17 00 CF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [09:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:25:12]wFMCommunicate OK [09:25:12]requested_item fd.num is exist - process it [09:25:12]SAM_PROTO_GetFieldsCounters [09:25:12]wFMCommunicate request_size=4 [09:25:12]MH_SAM_APDU [09:25:12]CAPDU: 80 13 00 00 [09:25:12]Write to MH i2c: E2 08 00 D0 1F 80 13 00 00 00 00 00 00 6B [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:12]Read from MH i2c: E2 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 62 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 62 00 D0 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 42 14 03 00 0E 04 04 00 20 02 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 11 [09:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 42 14 03 00 0E 04 04 00 20 02 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 [09:25:12]wFMCommunicate OK [09:25:12]SAM_PROTO_GetFieldsCounters done [09:25:12]requested_item shift.num is exist - process it [09:25:12]requested_item shift.opened is exist - process it [09:25:12]req_shift_opened [09:25:12]FM_GetShiftState [09:25:12]SAM_PROTO_GetShiftState [09:25:12]wFMCommunicate request_size=4 [09:25:12]MH_SAM_APDU [09:25:12]CAPDU: 80 13 01 00 [09:25:12]Write to MH i2c: E2 08 00 D1 1F 80 13 01 00 00 00 00 00 6D [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:12]Read from MH i2c: E2 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 0E 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 0E 00 D1 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6F [09:25:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:25:12]wFMCommunicate OK [09:25:12]SAM_PROTO_GetShiftState done [09:25:12]FM_GetShiftState done [09:25:12]req_shift_opened done [09:25:12]requested_item shift.open_date is exist - process it [09:25:12]req_shift_open_date [09:25:12]req_shift_open_date done [09:25:12]produce_requested_data done [09:25:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201794,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:25:12]process_action_free close_receipt [09:25:12]json_value_free [09:25:12]json_value_free done [09:25:12]process_json_proto returns [09:25:12]Send response to host [09:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201794,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:25:12]free response buf [09:25:12]execute_script done [09:25:12]execute_script returns [09:25:12]free content buf [09:25:12]Sock 9.Close socket [09:25:12]Sock 9.Thread stoped [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:09]accept exits with 8 [09:26:09]New connection [09:26:09]New thread 3067080036 created [09:26:09]Thread 3066936676 joined [09:26:09]Waiting for new connection... [09:26:09] Sock 8.Parse request [09:26:09]Sock 8.Check first char [09:26:09]Sock 8.First char is OK [09:26:09]request: POST /json_proto HTTP/1.0 [09:26:09]Method: POST [09:26:09]URL: /json_proto [09:26:09]Method is POST - this is cgi request [09:26:09]url: /json_proto [09:26:09]query_string will be loaded in cgi processing [09:26:09]execute_cgi json_proto POST (null) [09:26:09]execute_cgi path=json_proto method=POST [09:26:09]POST find Content-Length [09:26:09]Host: 172.17.63.195:8080 [09:26:09]Content-Length: 677 [09:26:09]Content-Type: application/json [09:26:09] [09:26:09]POST finish read [09:26:09]Found Content-Length = 677 [09:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:09]execute_script... [09:26: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)449553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:09]POST & json_proto [09:26:09]process_json_proto [09:26:09]json parsed OK: [09:26:09]protocol is kg_v1.0 [09:26:09]action value=close_receipt [09:26:09]process_action close_receipt [09:26:09]cmd_close_receipt [09:26:09]MH_GetDate [09:26:09]Write to MH i2c: F0 00 00 D2 1F E0 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: F0 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: F0 09 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: F0 09 00 D2 1F 00 35 07 1E 67 68 46 19 67 D8 [09:26:09]GetLastDocTimeStamp 1730021112 [09:26:09]current date 1730021173 [09:26:09]FM_GetShiftState [09:26:09]SAM_PROTO_GetShiftState [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 13 01 00 [09:26:09]Write to MH i2c: E2 08 00 D3 1F 80 13 01 00 00 00 00 00 6F [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 0E 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 0E 00 D3 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 71 [09:26:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:26:09]wFMCommunicate OK [09:26:09]SAM_PROTO_GetShiftState done [09:26:09]FM_GetShiftState done [09:26:09]opened in 1729987312 [09:26:09]opened+sec_in_day 1730073712 [09:26:09]quantity*price = 50041 [09:26:09]sum+1 = 50042 [09:26:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 87 27.10.2024 09:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201795 ФПД: 68091095512967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092613&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201795&fm=68091095512967&tin=02508201610067®Number=0000000000091777&sum=50000 [09:26:10]StoreToDocumentArchive [09:26:10]shift 544 fd 201795 [09:26:10]save to /storage/0544/doc_00201795 [09:26:10]save last doc name /storage/0544/doc_00201795 to /storage/kkm_last_doc_name [09:26:10]save OK [09:26:10]Clear old archive folders... [09:26:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:10]tlvbuf is 001209C0 [09:26:10]SAM_PROTO_ClearQueue [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 09 00 00 [09:26:10]Write to MH i2c: E2 08 00 E0 1F 80 09 00 00 00 00 00 00 71 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 03 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 03 00 E0 1F 00 90 00 73 [09:26:10]RAPDU: 90 00 [09:26:10]wFMCommunicate OK [09:26:10]SAM_PROTO_ClearQueue done [09:26:10]KKMCreateOFDPacket [09:26:10]OFDProtocolAddRootSTLVToBuf [09:26:10]FM_MakeSignedData [09:26:10]FM_MakeSignedData [09:26:10]SAM_PROTO_SignData [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 0D 01 02 [09:26:10]Write to MH i2c: E2 08 00 E1 1F 80 0D 01 02 00 00 00 00 79 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 03 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 03 00 E1 1F 00 90 00 74 [09:26:10]RAPDU: 90 00 [09:26:10]wFMCommunicate OK [09:26:10]wFMCommunicate request_size=255 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 57 00 00 00 F4 03 04 00 35 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 14 03 00 35 04 06 00 3D [09:26:11]Write to MH i2c: E2 02 01 E2 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 57 00 00 00 F4 03 04 00 35 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 14 03 00 35 04 06 00 3D 00 00 DE [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 03 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 03 00 E2 1F 00 90 00 75 [09:26:11]RAPDU: 90 00 [09:26:11]wFMCommunicate OK [09:26:11]wFMCommunicate request_size=10 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 0D 02 02 05 ED B1 8F 77 87 [09:26:11]Write to MH i2c: E2 0D 00 E3 1F 80 0D 02 02 05 00 ED B1 8F 77 87 00 00 B1 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 03 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 03 00 E3 1F 00 90 00 76 [09:26:11]RAPDU: 90 00 [09:26:11]wFMCommunicate OK [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 0D 03 02 [09:26:11]Write to MH i2c: E2 08 00 E4 1F 80 0D 03 02 00 00 00 00 7E [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 0B 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 0B 00 E4 1F 00 E1 47 7B EC 20 41 C0 05 90 00 34 [09:26:11]RAPDU: E1 47 7B EC 20 41 C0 05 90 00 [09:26:11]wFMCommunicate OK [09:26:11]SAM_PROTO_SignData done [09:26:11]FM_MakeSignedData done [09:26:11]CreateOFDProtocolMessage [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 11 00 00 [09:26:11]Write to MH i2c: E2 08 00 E5 1F 80 11 00 00 00 00 00 00 7E [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 17 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 17 00 E5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [09:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:26:11]wFMCommunicate OK [09:26:11]CreateOFDProtocolMessage done [09:26:11]OFDSenderStorePacket 201795 [09:26:11]StoreOFDPacket docnum=201795 [09:26:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 35 F5 07 01 54 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 57 00 00 00 F4 03 04 00 35 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 14 03 00 35 04 06 00 3D ED B1 8F 77 87 E1 47 7B EC 20 41 C0 05 [09:26:11]CheckFolder [09:26:11]dirname=/storage/ofd_packets [09:26:11]CheckFolder done [09:26:11]ProducePacketName [09:26:11]name=ofd_packets/00201795 [09:26:11]NVStorageSaveData ofd_packets/00201795 [09:26:11]File name is /storage/ofd_packets/00201795 [09:26:11]Write 301 bytes [09:26:11]NVStorageSaveData done [09:26:11]OFDSenderStorePacket done [09:26:11]KKMCreateOFDPacket done [09:26:11]NVStorageSaveData kkm_last_timestamp [09:26:11]File name is /storage/kkm_last_timestamp [09:26:11]Write 4 bytes [09:26:11]NVStorageSaveData done [09:26:11]ExternCall_PrintAddStr [09:26:11]wPrintStart [09:26:11]Write to MH i2c: 01 00 00 E6 1F 05 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: 01 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: 01 07 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: 01 07 00 E6 1F 00 00 00 00 00 FF 0F 1A [09:26:11]RasterBufferAndPrint [09:26:11]line Счет N : (1)449553 [09:26:11]line ИНН: 02508201610067 [09:26:11]line Контрольно-Кассовый Чек [09:26:11]line ПРОДАЖА [09:26:11]line ТРК (МРК, ГНК) : 62 [09:26:11]line Товар: 2710124130 [09:26:11]line Аи-92-К-2 [09:26:11]line 7.480 * 66.90 [09:26:11]line = 500.41 [09:26:11]line НДС 12% НСП 1% [09:26:11]line > о реализуемом товаре [09:26:11]line ОКРУГЛЕНИЕ: -0.41 [09:26:11]line ИТОГО: 500.00 [09:26:11]line Внесено: 500.00 [09:26:11]line СДАЧА: 0.00 [09:26:11]line НСП 1% : 4.43 [09:26:11]line НДС 12% : 53.14 [09:26:11]line Наличными: 500.00 [09:26:11]line Безнал.: 0.00 [09:26:11]line Место: АЗС № 171 "Партнер Нефть" [09:26:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:26:11]line СНО: Общий режим [09:26:11]line Чек 87 27.10.2024 09:26 [09:26:11]line Смена: 544 ФФД: 1.0 [09:26:11]line ЗНМ: 0300000109 [09:26:11]line РНМ: 0000000000091777 [09:26:11]line Версия ККМ: 001 [09:26:11]line ФМ: 0000000000871756 [09:26:11]line ФД: 201795 [09:26:11]line ФПД: 68091095512967 [09:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092613&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201795&fm=68091095512967&tin=02508201610067®Number=0000000000091777&sum=50000 [09:26:11]OFD Sender: Processing packet 201795 [packets to send 112, broken 111] [09:26:11]ProducePacketName [09:26:11]name=ofd_packets/00201795 [09:26:11]OFD Sender: To server: pG, [09:26:11]CommunicateWithHost lk.salyk.kg:30040 [09:26:11]ConnectInit lk.salyk.kg [09:26:11]written 0, free lines is 4095 [09:26:12]Write to MH i2c: 01 00 00 11 20 31 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: 01 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: 01 07 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: 01 07 00 11 20 00 00 00 00 00 8C 0C D0 [09:26:12]RasterBufferAndPrint [09:26:12]line [09:26:12]line [09:26:12]line [09:26:12]line [09:26:12]line [09:26:12]written 0, free lines is 3216 [09:26:12]MH_Cut [09:26:12]Write to MH i2c: D1 01 00 18 20 01 0A [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: D1 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: D1 01 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: D1 01 00 18 20 00 09 [09:26:12]Write to MH i2c: 01 00 00 19 20 39 [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:13]*** Cut start [09:26:13]*** Purtial cut [09:26:13]*** Stage 1: CUTSNS_PIN = 1 [09:26:13]Read from MH i2c: 01 [09:26:13]MH_I2C_Read... [09:26:13]*** Stop cut motor [09:26:13]*** Cut end [09:26:13]Read from MH i2c: 01 07 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: 01 07 00 19 20 00 00 00 00 00 FF 0F 4E [09:26:13]process_action close_receipt done [09:26:13]requested_data is exist [09:26:13]produce_requested_data [09:26:13]requested_item fm.sn is exist - process it [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 11 00 00 [09:26:13]Write to MH i2c: E2 08 00 1A 20 80 11 00 00 00 00 00 00 B4 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 17 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 17 00 1A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [09:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:26:13]wFMCommunicate OK [09:26:13]requested_item fd.num is exist - process it [09:26:13]SAM_PROTO_GetFieldsCounters [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 13 00 00 [09:26:13]Write to MH i2c: E2 08 00 1B 20 80 13 00 00 00 00 00 00 B7 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 62 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 62 00 1B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 14 03 00 0E 04 04 00 20 02 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 61 [09:26:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 14 03 00 0E 04 04 00 20 02 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 [09:26:13]wFMCommunicate OK [09:26:13]SAM_PROTO_GetFieldsCounters done [09:26:13]requested_item shift.num is exist - process it [09:26:13]requested_item shift.opened is exist - process it [09:26:13]req_shift_opened [09:26:13]FM_GetShiftState [09:26:13]SAM_PROTO_GetShiftState [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 13 01 00 [09:26:13]Write to MH i2c: E2 08 00 1C 20 80 13 01 00 00 00 00 00 B9 [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:13]Read from MH i2c: E2 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 0E 00 [09:26:13]MH_I2C_Read... [09:26:13]Read from MH i2c: E2 0E 00 1C 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BB [09:26:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:26:13]wFMCommunicate OK [09:26:13]SAM_PROTO_GetShiftState done [09:26:13]FM_GetShiftState done [09:26:13]req_shift_opened done [09:26:13]requested_item shift.open_date is exist - process it [09:26:13]req_shift_open_date [09:26:13]req_shift_open_date done [09:26:13]produce_requested_data done [09:26:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201795,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:26:13]process_action_free close_receipt [09:26:13]json_value_free [09:26:13]json_value_free done [09:26:13]process_json_proto returns [09:26:13]Send response to host [09:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201795,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:26:13]free response buf [09:26:13]execute_script done [09:26:13]execute_script returns [09:26:13]free content buf [09:26:13]Sock 8.Close socket [09:26:13]Sock 8.Thread stoped [09:27:12]accept exits with 9 [09:27:12]New connection [09:27:12]New thread 3066936676 created [09:27:12]Thread 3067080036 joined [09:27:12]Waiting for new connection... [09:27:12] Sock 9.Parse request [09:27:12]Sock 9.Check first char [09:27:12]Sock 9.First char is OK [09:27:12]request: POST /json_proto HTTP/1.0 [09:27:12]Method: POST [09:27:12]URL: /json_proto [09:27:12]Method is POST - this is cgi request [09:27:12]url: /json_proto [09:27:12]query_string will be loaded in cgi processing [09:27:12]execute_cgi json_proto POST (null) [09:27:12]execute_cgi path=json_proto method=POST [09:27:12]POST find Content-Length [09:27:12]Host: 172.17.63.195:8080 [09:27:12]Content-Length: 677 [09:27:12]Content-Type: application/json [09:27:12] [09:27:12]POST finish read [09:27:12]Found Content-Length = 677 [09:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:27:12]execute_script... [09:27:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:27:12]POST & json_proto [09:27:12]process_json_proto [09:27:12]json parsed OK: [09:27:12]protocol is kg_v1.0 [09:27:12]action value=close_receipt [09:27:12]process_action close_receipt [09:27:12]cmd_close_receipt [09:27:12]MH_GetDate [09:27:12]Write to MH i2c: F0 00 00 1D 20 2C [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: F0 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: F0 09 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: F0 09 00 1D 20 00 74 07 1E 67 68 46 19 67 63 [09:27:12]GetLastDocTimeStamp 1730021173 [09:27:12]current date 1730021236 [09:27:12]FM_GetShiftState [09:27:12]SAM_PROTO_GetShiftState [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 13 01 00 [09:27:12]Write to MH i2c: E2 08 00 1E 20 80 13 01 00 00 00 00 00 BB [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:12]Read from MH i2c: E2 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 0E 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 0E 00 1E 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BD [09:27:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:27:12]wFMCommunicate OK [09:27:12]SAM_PROTO_GetShiftState done [09:27:12]FM_GetShiftState done [09:27:12]opened in 1729987312 [09:27:12]opened+sec_in_day 1730073712 [09:27:12]quantity*price = 60009 [09:27:12]sum+1 = 60010 [09:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 88 27.10.2024 09:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201796 ФПД: 191559077802924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092716&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201796&fm=191559077802924&tin=02508201610067®Number=0000000000091777&sum=60000 [09:27:13]StoreToDocumentArchive [09:27:13]shift 544 fd 201796 [09:27:13]save to /storage/0544/doc_00201796 [09:27:13]save last doc name /storage/0544/doc_00201796 to /storage/kkm_last_doc_name [09:27:13]save OK [09:27:13]Clear old archive folders... [09:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:13]tlvbuf is B6DC74A0 [09:27:13]SAM_PROTO_ClearQueue [09:27:13]wFMCommunicate request_size=4 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 09 00 00 [09:27:13]Write to MH i2c: E2 08 00 2B 20 80 09 00 00 00 00 00 00 BD [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 2B 20 00 90 00 BF [09:27:13]RAPDU: 90 00 [09:27:13]wFMCommunicate OK [09:27:13]SAM_PROTO_ClearQueue done [09:27:13]KKMCreateOFDPacket [09:27:13]OFDProtocolAddRootSTLVToBuf [09:27:13]FM_MakeSignedData [09:27:13]FM_MakeSignedData [09:27:13]SAM_PROTO_SignData [09:27:13]wFMCommunicate request_size=4 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 0D 01 02 [09:27:13]Write to MH i2c: E2 08 00 2C 20 80 0D 01 02 00 00 00 00 C5 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 2C 20 00 90 00 C0 [09:27:13]RAPDU: 90 00 [09:27:13]wFMCommunicate OK [09:27:13]wFMCommunicate request_size=255 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 58 00 00 00 F4 03 04 00 74 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 14 03 00 35 04 06 00 AE [09:27:13]Write to MH i2c: E2 02 01 2D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 58 00 00 00 F4 03 04 00 74 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 14 03 00 35 04 06 00 AE 00 00 B9 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:13]Read from MH i2c: E2 03 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 2D 20 00 90 00 C1 [09:27:13]RAPDU: 90 00 [09:27:13]wFMCommunicate OK [09:27:13]wFMCommunicate request_size=10 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 0D 02 02 05 38 D2 C9 33 AC [09:27:13]Write to MH i2c: E2 0D 00 2E 20 80 0D 02 02 05 00 38 D2 C9 33 AC 00 00 84 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 03 00 2E 20 00 90 00 C2 [09:27:13]RAPDU: 90 00 [09:27:13]wFMCommunicate OK [09:27:13]wFMCommunicate request_size=4 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 0D 03 02 [09:27:13]Write to MH i2c: E2 08 00 2F 20 80 0D 03 02 00 00 00 00 CA [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0B 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0B 00 2F 20 00 74 44 D2 2C A0 CF 90 FB 90 00 7B [09:27:13]RAPDU: 74 44 D2 2C A0 CF 90 FB 90 00 [09:27:13]wFMCommunicate OK [09:27:13]SAM_PROTO_SignData done [09:27:13]FM_MakeSignedData done [09:27:13]CreateOFDProtocolMessage [09:27:13]wFMCommunicate request_size=4 [09:27:13]MH_SAM_APDU [09:27:13]CAPDU: 80 11 00 00 [09:27:13]Write to MH i2c: E2 08 00 30 20 80 11 00 00 00 00 00 00 CA [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 17 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 17 00 30 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [09:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:27:13]wFMCommunicate OK [09:27:13]CreateOFDProtocolMessage done [09:27:13]OFDSenderStorePacket 201796 [09:27:13]StoreOFDPacket docnum=201796 [09:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8C 9E 07 01 C0 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 58 00 00 00 F4 03 04 00 74 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 14 03 00 35 04 06 00 AE 38 D2 C9 33 AC 74 44 D2 2C A0 CF 90 FB [09:27:13]CheckFolder [09:27:13]dirname=/storage/ofd_packets [09:27:13]CheckFolder done [09:27:13]ProducePacketName [09:27:13]name=ofd_packets/00201796 [09:27:13]NVStorageSaveData ofd_packets/00201796 [09:27:13]File name is /storage/ofd_packets/00201796 [09:27:13]Write 301 bytes [09:27:13]NVStorageSaveData done [09:27:13]OFDSenderStorePacket done [09:27:13]KKMCreateOFDPacket done [09:27:13]NVStorageSaveData kkm_last_timestamp [09:27:13]File name is /storage/kkm_last_timestamp [09:27:13]Write 4 bytes [09:27:13]NVStorageSaveData done [09:27:13]ExternCall_PrintAddStr [09:27:13]wPrintStart [09:27:13]Write to MH i2c: 01 00 00 31 20 51 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 07 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 07 00 31 20 00 00 00 00 00 FF 0F 66 [09:27:13]RasterBufferAndPrint [09:27:13]line Счет N : (1)449555 [09:27:13]line ИНН: 02508201610067 [09:27:13]line Контрольно-Кассовый Чек [09:27:13]line ПРОДАЖА [09:27:13]line ТРК (МРК, ГНК) : 52 [09:27:13]line Товар: 2710124130 [09:27:13]line Аи-92-К-2 [09:27:13]line 8.970 * 66.90 [09:27:13]line = 600.09 [09:27:13]line НДС 12% НСП 1% [09:27:13]line > о реализуемом товаре [09:27:13]line ОКРУГЛЕНИЕ: -0.09 [09:27:13]line ИТОГО: 600.00 [09:27:13]line Внесено: 600.00 [09:27:13]line СДАЧА: 0.00 [09:27:13]line НСП 1% : 5.31 [09:27:13]line НДС 12% : 63.73 [09:27:13]line Наличными: 600.00 [09:27:13]line Безнал.: 0.00 [09:27:13]line Место: АЗС № 171 "Партнер Нефть" [09:27:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:27:13]line СНО: Общий режим [09:27:13]line Чек 88 27.10.2024 09:27 [09:27:13]line Смена: 544 ФФД: 1.0 [09:27:13]line ЗНМ: 0300000109 [09:27:13]line РНМ: 0000000000091777 [09:27:13]line Версия ККМ: 001 [09:27:13]line ФМ: 0000000000871756 [09:27:13]line ФД: 201796 [09:27:13]line ФПД: 191559077802924 [09:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092716&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201796&fm=191559077802924&tin=02508201610067®Number=0000000000091777&sum=60000 [09:27:14]written 0, free lines is 4095 [09:27:14]Write to MH i2c: 01 00 00 5C 20 7C [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: 01 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: 01 07 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: 01 07 00 5C 20 00 00 00 00 00 90 0C 1F [09:27:14]RasterBufferAndPrint [09:27:14]line [09:27:14]line [09:27:14]line [09:27:14]line [09:27:14]line [09:27:14]written 0, free lines is 3221 [09:27:14]MH_Cut [09:27:14]Write to MH i2c: D1 01 00 63 20 01 55 [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: D1 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: D1 01 00 [09:27:14]MH_I2C_Read... [09:27:14]Read from MH i2c: D1 01 00 63 20 00 54 [09:27:14]Write to MH i2c: 01 00 00 64 20 84 [09:27:14]Write i2c OK [09:27:14]MH_I2C_Read... [09:27:15]*** Cut start [09:27:15]*** Purtial cut [09:27:15]*** Stage 1: CUTSNS_PIN = 1 [09:27:15]Read from MH i2c: 01 [09:27:15]MH_I2C_Read... [09:27:15]*** Stop cut motor [09:27:15]*** Cut end [09:27:15]Read from MH i2c: 01 07 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 64 20 00 00 00 00 00 FF 0F 99 [09:27:15]process_action close_receipt done [09:27:15]requested_data is exist [09:27:15]produce_requested_data [09:27:15]requested_item fm.sn is exist - process it [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 11 00 00 [09:27:15]Write to MH i2c: E2 08 00 65 20 80 11 00 00 00 00 00 00 FF [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:15]Read from MH i2c: E2 17 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 17 00 65 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [09:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:27:15]wFMCommunicate OK [09:27:15]requested_item fd.num is exist - process it [09:27:15]SAM_PROTO_GetFieldsCounters [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 13 00 00 [09:27:15]Write to MH i2c: E2 08 00 66 20 80 13 00 00 00 00 00 00 02 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:16]Read from MH i2c: E2 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 62 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 62 00 66 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 44 14 03 00 0E 04 04 00 20 02 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 B0 [09:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 44 14 03 00 0E 04 04 00 20 02 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 [09:27:16]wFMCommunicate OK [09:27:16]SAM_PROTO_GetFieldsCounters done [09:27:16]requested_item shift.num is exist - process it [09:27:16]requested_item shift.opened is exist - process it [09:27:16]req_shift_opened [09:27:16]FM_GetShiftState [09:27:16]SAM_PROTO_GetShiftState [09:27:16]wFMCommunicate request_size=4 [09:27:16]MH_SAM_APDU [09:27:16]CAPDU: 80 13 01 00 [09:27:16]Write to MH i2c: E2 08 00 67 20 80 13 01 00 00 00 00 00 04 [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:16]Read from MH i2c: E2 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 0E 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 0E 00 67 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 06 [09:27:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:27:16]wFMCommunicate OK [09:27:16]SAM_PROTO_GetShiftState done [09:27:16]FM_GetShiftState done [09:27:16]req_shift_opened done [09:27:16]requested_item shift.open_date is exist - process it [09:27:16]req_shift_open_date [09:27:16]req_shift_open_date done [09:27:16]produce_requested_data done [09:27:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201796,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:27:16]process_action_free close_receipt [09:27:16]json_value_free [09:27:16]json_value_free done [09:27:16]process_json_proto returns [09:27:16]Send response to host [09:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201796,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:27:16]free response buf [09:27:16]execute_script done [09:27:16]execute_script returns [09:27:16]free content buf [09:27:16]Sock 9.Close socket [09:27:16]Sock 9.Thread stoped [09:27:51]accept exits with 8 [09:27:51]New connection [09:27:51]New thread 3067080036 created [09:27:51]Thread 3066936676 joined [09:27:51]Waiting for new connection... [09:27:51] Sock 8.Parse request [09:27:51]Sock 8.Check first char [09:27:51]Sock 8.First char is OK [09:27:51]request: POST /json_proto HTTP/1.0 [09:27:51]Method: POST [09:27:51]URL: /json_proto [09:27:51]Method is POST - this is cgi request [09:27:51]url: /json_proto [09:27:51]query_string will be loaded in cgi processing [09:27:51]execute_cgi json_proto POST (null) [09:27:51]execute_cgi path=json_proto method=POST [09:27:51]POST find Content-Length [09:27:51]Host: 172.17.63.195:8080 [09:27:51]Content-Length: 679 [09:27:51]Content-Type: application/json [09:27:51] [09:27:51]POST finish read [09:27:51]Found Content-Length = 679 [09:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:51]execute_script... [09:27:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:51]POST & json_proto [09:27:51]process_json_proto [09:27:51]json parsed OK: [09:27:51]protocol is kg_v1.0 [09:27:51]action value=close_receipt [09:27:51]process_action close_receipt [09:27:51]cmd_close_receipt [09:27:51]MH_GetDate [09:27:51]Write to MH i2c: F0 00 00 68 20 77 [09:27:51]Write i2c OK [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: F0 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: F0 09 00 [09:27:51]MH_I2C_Read... [09:27:51]Read from MH i2c: F0 09 00 68 20 00 9B 07 1E 67 68 46 19 67 D5 [09:27:51]GetLastDocTimeStamp 1730021236 [09:27:51]current date 1730021275 [09:27:51]FM_GetShiftState [09:27:51]SAM_PROTO_GetShiftState [09:27:51]wFMCommunicate request_size=4 [09:27:51]MH_SAM_APDU [09:27:51]CAPDU: 80 13 01 00 [09:27:51]Write to MH i2c: E2 08 00 69 20 80 13 01 00 00 00 00 00 06 [09:27:51]Write i2c OK [09:27:51]MH_I2C_Read... [09:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:52]Read from MH i2c: E2 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 0E 00 [09:27:52]MH_I2C_Read... [09:27:52]Read from MH i2c: E2 0E 00 69 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 08 [09:27:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:27:52]wFMCommunicate OK [09:27:52]SAM_PROTO_GetShiftState done [09:27:52]FM_GetShiftState done [09:27:52]opened in 1729987312 [09:27:52]opened+sec_in_day 1730073712 [09:27:52]quantity*price = 250012 [09:27:52]sum+1 = 250013 [09:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 89 27.10.2024 09:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201797 ФПД: 100529713932735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092755&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201797&fm=100529713932735&tin=02508201610067®Number=0000000000091777&sum=250000 [09:27:53]StoreToDocumentArchive [09:27:53]shift 544 fd 201797 [09:27:53]save to /storage/0544/doc_00201797 [09:27:53]save last doc name /storage/0544/doc_00201797 to /storage/kkm_last_doc_name [09:27:53]save OK [09:27:53]Clear old archive folders... [09:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:27:53]tlvbuf is B6DC7370 [09:27:53]SAM_PROTO_ClearQueue [09:27:53]wFMCommunicate request_size=4 [09:27:53]MH_SAM_APDU [09:27:53]CAPDU: 80 09 00 00 [09:27:53]Write to MH i2c: E2 08 00 76 20 80 09 00 00 00 00 00 00 08 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:53]Read from MH i2c: E2 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 03 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 03 00 76 20 00 90 00 0A [09:27:53]RAPDU: 90 00 [09:27:53]wFMCommunicate OK [09:27:53]SAM_PROTO_ClearQueue done [09:27:53]KKMCreateOFDPacket [09:27:53]OFDProtocolAddRootSTLVToBuf [09:27:53]FM_MakeSignedData [09:27:53]FM_MakeSignedData [09:27:53]SAM_PROTO_SignData [09:27:53]wFMCommunicate request_size=4 [09:27:53]MH_SAM_APDU [09:27:53]CAPDU: 80 0D 01 02 [09:27:53]Write to MH i2c: E2 08 00 77 20 80 0D 01 02 00 00 00 00 10 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:53]Read from MH i2c: E2 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 03 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 03 00 77 20 00 90 00 0B [09:27:53]RAPDU: 90 00 [09:27:53]wFMCommunicate OK [09:27:53]wFMCommunicate request_size=255 [09:27:53]MH_SAM_APDU [09:27:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9B 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 14 03 00 35 04 06 00 5B 6E 65 E3 [09:27:53]Write to MH i2c: E2 02 01 78 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9B 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 14 03 00 35 04 06 00 5B 6E 65 E3 00 00 0A [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:53]Read from MH i2c: E2 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 03 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [09:27:53]RAPDU: 90 00 [09:27:53]wFMCommunicate OK [09:27:53]wFMCommunicate request_size=7 [09:27:53]MH_SAM_APDU [09:27:53]CAPDU: 80 0D 02 02 02 69 BF [09:27:53]Write to MH i2c: E2 0A 00 79 20 80 0D 02 02 02 00 69 BF 00 00 3F [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:53]Read from MH i2c: E2 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 03 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [09:27:53]RAPDU: 90 00 [09:27:53]wFMCommunicate OK [09:27:53]wFMCommunicate request_size=4 [09:27:53]MH_SAM_APDU [09:27:53]CAPDU: 80 0D 03 02 [09:27:53]Write to MH i2c: E2 08 00 7A 20 80 0D 03 02 00 00 00 00 15 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:53]Read from MH i2c: E2 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 0B 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 0B 00 7A 20 00 03 29 71 8A E5 2B FF D8 90 00 24 [09:27:53]RAPDU: 03 29 71 8A E5 2B FF D8 90 00 [09:27:53]wFMCommunicate OK [09:27:53]SAM_PROTO_SignData done [09:27:53]FM_MakeSignedData done [09:27:53]CreateOFDProtocolMessage [09:27:53]wFMCommunicate request_size=4 [09:27:53]MH_SAM_APDU [09:27:53]CAPDU: 80 11 00 00 [09:27:53]Write to MH i2c: E2 08 00 7B 20 80 11 00 00 00 00 00 00 15 [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:53]Read from MH i2c: E2 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 17 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: E2 17 00 7B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [09:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:27:53]wFMCommunicate OK [09:27:53]CreateOFDProtocolMessage done [09:27:53]OFDSenderStorePacket 201797 [09:27:53]StoreOFDPacket docnum=201797 [09:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8F 16 04 01 73 57 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9B 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 14 03 00 35 04 06 00 5B 6E 65 E3 69 BF 03 29 71 8A E5 2B FF D8 [09:27:53]CheckFolder [09:27:53]dirname=/storage/ofd_packets [09:27:53]CheckFolder done [09:27:53]ProducePacketName [09:27:53]name=ofd_packets/00201797 [09:27:53]NVStorageSaveData ofd_packets/00201797 [09:27:53]File name is /storage/ofd_packets/00201797 [09:27:53]Write 298 bytes [09:27:53]NVStorageSaveData done [09:27:53]OFDSenderStorePacket done [09:27:53]KKMCreateOFDPacket done [09:27:53]NVStorageSaveData kkm_last_timestamp [09:27:53]File name is /storage/kkm_last_timestamp [09:27:53]Write 4 bytes [09:27:53]NVStorageSaveData done [09:27:53]ExternCall_PrintAddStr [09:27:53]wPrintStart [09:27:53]Write to MH i2c: 01 00 00 7C 20 9C [09:27:53]Write i2c OK [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: 01 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: 01 07 00 [09:27:53]MH_I2C_Read... [09:27:53]Read from MH i2c: 01 07 00 7C 20 00 00 00 00 00 FF 0F B1 [09:27:53]RasterBufferAndPrint [09:27:53]line Счет N : (1)449554 [09:27:53]line ИНН: 02508201610067 [09:27:53]line Контрольно-Кассовый Чек [09:27:53]line ПРОДАЖА [09:27:53]line ТРК (МРК, ГНК) : 33 [09:27:53]line Товар: 2710194210 [09:27:53]line ДТ-К-2 [09:27:53]line 32.810 * 76.20 [09:27:53]line = 2500.12 [09:27:53]line НДС 12% НСП 1% [09:27:53]line > о реализуемом товаре [09:27:53]line ОКРУГЛЕНИЕ: -0.12 [09:27:53]line ИТОГО: 2500.00 [09:27:53]line Внесено: 2500.00 [09:27:53]line СДАЧА: 0.00 [09:27:53]line НСП 1% : 22.12 [09:27:53]line НДС 12% : 265.50 [09:27:53]line Наличными: 2500.00 [09:27:53]line Безнал.: 0.00 [09:27:53]line Место: АЗС № 171 "Партнер Нефть" [09:27:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:27:53]line СНО: Общий режим [09:27:53]line Чек 89 27.10.2024 09:27 [09:27:53]line Смена: 544 ФФД: 1.0 [09:27:53]line ЗНМ: 0300000109 [09:27:53]line РНМ: 0000000000091777 [09:27:53]line Версия ККМ: 001 [09:27:53]line ФМ: 0000000000871756 [09:27:53]line ФД: 201797 [09:27:53]line ФПД: 100529713932735 [09:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092755&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201797&fm=100529713932735&tin=02508201610067®Number=0000000000091777&sum=250000 [09:27:54]written 0, free lines is 4095 [09:27:54]Write to MH i2c: 01 00 00 A7 20 C7 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: 01 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: 01 07 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 8C 0C 66 [09:27:54]RasterBufferAndPrint [09:27:54]line [09:27:54]line [09:27:54]line [09:27:54]line [09:27:54]line [09:27:54]written 0, free lines is 3216 [09:27:54]MH_Cut [09:27:54]Write to MH i2c: D1 01 00 AE 20 01 A0 [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: D1 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: D1 01 00 [09:27:54]MH_I2C_Read... [09:27:54]Read from MH i2c: D1 01 00 AE 20 00 9F [09:27:54]Write to MH i2c: 01 00 00 AF 20 CF [09:27:54]Write i2c OK [09:27:54]MH_I2C_Read... [09:27:55]*** Cut start [09:27:55]*** Purtial cut [09:27:55]*** Stage 1: CUTSNS_PIN = 1 [09:27:55]Read from MH i2c: 01 [09:27:55]MH_I2C_Read... [09:27:55]*** Stop cut motor [09:27:55]*** Cut end [09:27:55]Read from MH i2c: 01 07 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: 01 07 00 AF 20 00 00 00 00 00 FF 0F E4 [09:27:55]process_action close_receipt done [09:27:55]requested_data is exist [09:27:55]produce_requested_data [09:27:55]requested_item fm.sn is exist - process it [09:27:55]wFMCommunicate request_size=4 [09:27:55]MH_SAM_APDU [09:27:55]CAPDU: 80 11 00 00 [09:27:55]Write to MH i2c: E2 08 00 B0 20 80 11 00 00 00 00 00 00 4A [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:55]Read from MH i2c: E2 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 17 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 17 00 B0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [09:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:27:55]wFMCommunicate OK [09:27:55]requested_item fd.num is exist - process it [09:27:55]SAM_PROTO_GetFieldsCounters [09:27:55]wFMCommunicate request_size=4 [09:27:55]MH_SAM_APDU [09:27:55]CAPDU: 80 13 00 00 [09:27:55]Write to MH i2c: E2 08 00 B1 20 80 13 00 00 00 00 00 00 4D [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:55]Read from MH i2c: E2 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 62 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 62 00 B1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 45 14 03 00 0E 04 04 00 20 02 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 FF [09:27:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 45 14 03 00 0E 04 04 00 20 02 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 [09:27:55]wFMCommunicate OK [09:27:55]SAM_PROTO_GetFieldsCounters done [09:27:55]requested_item shift.num is exist - process it [09:27:55]requested_item shift.opened is exist - process it [09:27:55]req_shift_opened [09:27:55]FM_GetShiftState [09:27:55]SAM_PROTO_GetShiftState [09:27:55]wFMCommunicate request_size=4 [09:27:55]MH_SAM_APDU [09:27:55]CAPDU: 80 13 01 00 [09:27:55]Write to MH i2c: E2 08 00 B2 20 80 13 01 00 00 00 00 00 4F [09:27:55]Write i2c OK [09:27:55]MH_I2C_Read... [09:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:55]Read from MH i2c: E2 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 0E 00 [09:27:55]MH_I2C_Read... [09:27:55]Read from MH i2c: E2 0E 00 B2 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 51 [09:27:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:27:55]wFMCommunicate OK [09:27:55]SAM_PROTO_GetShiftState done [09:27:55]FM_GetShiftState done [09:27:55]req_shift_opened done [09:27:55]requested_item shift.open_date is exist - process it [09:27:55]req_shift_open_date [09:27:55]req_shift_open_date done [09:27:55]produce_requested_data done [09:27:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201797,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:27:55]process_action_free close_receipt [09:27:55]json_value_free [09:27:55]json_value_free done [09:27:55]process_json_proto returns [09:27:55]Send response to host [09:27:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201797,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:27:55]free response buf [09:27:55]execute_script done [09:27:55]execute_script returns [09:27:55]free content buf [09:27:55]Sock 8.Close socket [09:27:55]Sock 8.Thread stoped [09:28:13]accept exits with 9 [09:28:13]New connection [09:28:13]New thread 3066936676 created [09:28:13]Thread 3067080036 joined [09:28:13]Waiting for new connection... [09:28:13] Sock 9.Parse request [09:28:13]Sock 9.Check first char [09:28:13]Sock 9.First char is OK [09:28:13]request: POST /json_proto HTTP/1.0 [09:28:13]Method: POST [09:28:13]URL: /json_proto [09:28:13]Method is POST - this is cgi request [09:28:13]url: /json_proto [09:28:13]query_string will be loaded in cgi processing [09:28:13]execute_cgi json_proto POST (null) [09:28:13]execute_cgi path=json_proto method=POST [09:28:13]POST find Content-Length [09:28:13]Host: 172.17.63.195:8080 [09:28:13]Content-Length: 677 [09:28:13]Content-Type: application/json [09:28:13] [09:28:13]POST finish read [09:28:13]Found Content-Length = 677 [09:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:13]execute_script... [09:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:13]POST & json_proto [09:28:13]process_json_proto [09:28:13]json parsed OK: [09:28:13]protocol is kg_v1.0 [09:28:13]action value=close_receipt [09:28:13]process_action close_receipt [09:28:13]cmd_close_receipt [09:28:13]MH_GetDate [09:28:13]Write to MH i2c: F0 00 00 B3 20 C2 [09:28:13]Write i2c OK [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: F0 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: F0 09 00 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: F0 09 00 B3 20 00 B1 07 1E 67 68 46 19 67 36 [09:28:13]GetLastDocTimeStamp 1730021275 [09:28:13]current date 1730021297 [09:28:13]FM_GetShiftState [09:28:13]SAM_PROTO_GetShiftState [09:28:13]wFMCommunicate request_size=4 [09:28:13]MH_SAM_APDU [09:28:13]CAPDU: 80 13 01 00 [09:28:13]Write to MH i2c: E2 08 00 B4 20 80 13 01 00 00 00 00 00 51 [09:28:13]Write i2c OK [09:28:13]MH_I2C_Read... [09:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:13]Read from MH i2c: E2 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 0E 00 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 0E 00 B4 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 53 [09:28:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:28:13]wFMCommunicate OK [09:28:13]SAM_PROTO_GetShiftState done [09:28:13]FM_GetShiftState done [09:28:13]opened in 1729987312 [09:28:13]opened+sec_in_day 1730073712 [09:28:13]quantity*price = 50041 [09:28:13]sum+1 = 50042 [09:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 90 27.10.2024 09:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201798 ФПД: 219020450999094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092817&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201798&fm=219020450999094&tin=02508201610067®Number=0000000000091777&sum=50000 [09:28:14]StoreToDocumentArchive [09:28:14]shift 544 fd 201798 [09:28:14]save to /storage/0544/doc_00201798 [09:28:14]save last doc name /storage/0544/doc_00201798 to /storage/kkm_last_doc_name [09:28:14]save OK [09:28:14]Clear old archive folders... [09:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:14]tlvbuf is 00098C40 [09:28:14]SAM_PROTO_ClearQueue [09:28:14]wFMCommunicate request_size=4 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 09 00 00 [09:28:14]Write to MH i2c: E2 08 00 C1 20 80 09 00 00 00 00 00 00 53 [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:14]Read from MH i2c: E2 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 C1 20 00 90 00 55 [09:28:14]RAPDU: 90 00 [09:28:14]wFMCommunicate OK [09:28:14]SAM_PROTO_ClearQueue done [09:28:14]KKMCreateOFDPacket [09:28:14]OFDProtocolAddRootSTLVToBuf [09:28:14]FM_MakeSignedData [09:28:14]FM_MakeSignedData [09:28:14]SAM_PROTO_SignData [09:28:14]wFMCommunicate request_size=4 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 0D 01 02 [09:28:14]Write to MH i2c: E2 08 00 C2 20 80 0D 01 02 00 00 00 00 5B [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:14]Read from MH i2c: E2 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [09:28:14]RAPDU: 90 00 [09:28:14]wFMCommunicate OK [09:28:14]wFMCommunicate request_size=255 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5A 00 00 00 F4 03 04 00 B1 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 14 03 00 35 04 06 00 C7 [09:28:14]Write to MH i2c: E2 02 01 C3 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5A 00 00 00 F4 03 04 00 B1 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 14 03 00 35 04 06 00 C7 00 00 CC [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [09:28:15]RAPDU: 90 00 [09:28:15]wFMCommunicate OK [09:28:15]wFMCommunicate request_size=10 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 0D 02 02 05 32 AC 2E 2B 36 [09:28:15]Write to MH i2c: E2 0D 00 C4 20 80 0D 02 02 05 00 32 AC 2E 2B 36 00 00 D5 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [09:28:15]RAPDU: 90 00 [09:28:15]wFMCommunicate OK [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 0D 03 02 [09:28:15]Write to MH i2c: E2 08 00 C5 20 80 0D 03 02 00 00 00 00 60 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 0B 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 0B 00 C5 20 00 90 52 08 23 56 6E 05 0A 90 00 41 [09:28:15]RAPDU: 90 52 08 23 56 6E 05 0A 90 00 [09:28:15]wFMCommunicate OK [09:28:15]SAM_PROTO_SignData done [09:28:15]FM_MakeSignedData done [09:28:15]CreateOFDProtocolMessage [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 11 00 00 [09:28:15]Write to MH i2c: E2 08 00 C6 20 80 11 00 00 00 00 00 00 60 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 17 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 17 00 C6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [09:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:28:15]wFMCommunicate OK [09:28:15]CreateOFDProtocolMessage done [09:28:15]OFDSenderStorePacket 201798 [09:28:15]StoreOFDPacket docnum=201798 [09:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7E 5A 07 01 05 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5A 00 00 00 F4 03 04 00 B1 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 14 03 00 35 04 06 00 C7 32 AC 2E 2B 36 90 52 08 23 56 6E 05 0A [09:28:15]CheckFolder [09:28:15]dirname=/storage/ofd_packets [09:28:15]CheckFolder done [09:28:15]ProducePacketName [09:28:15]name=ofd_packets/00201798 [09:28:15]NVStorageSaveData ofd_packets/00201798 [09:28:15]File name is /storage/ofd_packets/00201798 [09:28:15]Write 301 bytes [09:28:15]NVStorageSaveData done [09:28:15]OFDSenderStorePacket done [09:28:15]KKMCreateOFDPacket done [09:28:15]NVStorageSaveData kkm_last_timestamp [09:28:15]File name is /storage/kkm_last_timestamp [09:28:15]Write 4 bytes [09:28:15]NVStorageSaveData done [09:28:15]ExternCall_PrintAddStr [09:28:15]wPrintStart [09:28:15]Write to MH i2c: 01 00 00 C7 20 E7 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 C7 20 00 00 00 00 00 FF 0F FC [09:28:15]RasterBufferAndPrint [09:28:15]line Счет N : (1)449556 [09:28:15]line ИНН: 02508201610067 [09:28:15]line Контрольно-Кассовый Чек [09:28:15]line ПРОДАЖА [09:28:15]line ТРК (МРК, ГНК) : 62 [09:28:15]line Товар: 2710124130 [09:28:15]line Аи-92-К-2 [09:28:15]line 7.480 * 66.90 [09:28:15]line = 500.41 [09:28:15]line НДС 12% НСП 1% [09:28:15]line > о реализуемом товаре [09:28:15]line ОКРУГЛЕНИЕ: -0.41 [09:28:15]line ИТОГО: 500.00 [09:28:15]line Внесено: 500.00 [09:28:15]line СДАЧА: 0.00 [09:28:15]line НСП 1% : 4.43 [09:28:15]line НДС 12% : 53.14 [09:28:15]line Наличными: 500.00 [09:28:15]line Безнал.: 0.00 [09:28:15]line Место: АЗС № 171 "Партнер Нефть" [09:28:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:28:15]line СНО: Общий режим [09:28:15]line Чек 90 27.10.2024 09:28 [09:28:15]line Смена: 544 ФФД: 1.0 [09:28:15]line ЗНМ: 0300000109 [09:28:15]line РНМ: 0000000000091777 [09:28:15]line Версия ККМ: 001 [09:28:15]line ФМ: 0000000000871756 [09:28:15]line ФД: 201798 [09:28:15]line ФПД: 219020450999094 [09:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092817&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201798&fm=219020450999094&tin=02508201610067®Number=0000000000091777&sum=50000 [09:28:15]written 0, free lines is 4095 [09:28:15]Write to MH i2c: 01 00 00 F2 20 12 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 F2 20 00 00 00 00 00 90 0C B5 [09:28:15]RasterBufferAndPrint [09:28:15]line [09:28:15]line [09:28:15]line [09:28:15]line [09:28:15]line [09:28:15]written 0, free lines is 3219 [09:28:15]MH_Cut [09:28:15]Write to MH i2c: D1 01 00 F9 20 01 EB [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: D1 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: D1 01 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: D1 01 00 F9 20 00 EA [09:28:15]Write to MH i2c: 01 00 00 FA 20 1A [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:16]*** Cut start [09:28:16]*** Purtial cut [09:28:16]*** Stage 1: CUTSNS_PIN = 1 [09:28:16]Read from MH i2c: 01 [09:28:16]MH_I2C_Read... [09:28:16]*** Stop cut motor [09:28:16]*** Cut end [09:28:16]Read from MH i2c: 01 07 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 07 00 FA 20 00 00 00 00 00 FF 0F 2F [09:28:16]process_action close_receipt done [09:28:16]requested_data is exist [09:28:16]produce_requested_data [09:28:16]requested_item fm.sn is exist - process it [09:28:16]wFMCommunicate request_size=4 [09:28:16]MH_SAM_APDU [09:28:16]CAPDU: 80 11 00 00 [09:28:16]Write to MH i2c: E2 08 00 FB 20 80 11 00 00 00 00 00 00 95 [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:16]Read from MH i2c: E2 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 17 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 17 00 FB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [09:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:28:16]wFMCommunicate OK [09:28:16]requested_item fd.num is exist - process it [09:28:16]SAM_PROTO_GetFieldsCounters [09:28:16]wFMCommunicate request_size=4 [09:28:16]MH_SAM_APDU [09:28:16]CAPDU: 80 13 00 00 [09:28:16]Write to MH i2c: E2 08 00 FC 20 80 13 00 00 00 00 00 00 98 [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:17]Read from MH i2c: E2 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 62 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 62 00 FC 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 46 14 03 00 0E 04 04 00 20 02 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 4E [09:28:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 46 14 03 00 0E 04 04 00 20 02 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 [09:28:17]wFMCommunicate OK [09:28:17]SAM_PROTO_GetFieldsCounters done [09:28:17]requested_item shift.num is exist - process it [09:28:17]requested_item shift.opened is exist - process it [09:28:17]req_shift_opened [09:28:17]FM_GetShiftState [09:28:17]SAM_PROTO_GetShiftState [09:28:17]wFMCommunicate request_size=4 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 13 01 00 [09:28:17]Write to MH i2c: E2 08 00 FD 20 80 13 01 00 00 00 00 00 9A [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:17]Read from MH i2c: E2 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 0E 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 0E 00 FD 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9C [09:28:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:28:17]wFMCommunicate OK [09:28:17]SAM_PROTO_GetShiftState done [09:28:17]FM_GetShiftState done [09:28:17]req_shift_opened done [09:28:17]requested_item shift.open_date is exist - process it [09:28:17]req_shift_open_date [09:28:17]req_shift_open_date done [09:28:17]produce_requested_data done [09:28:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201798,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:28:17]process_action_free close_receipt [09:28:17]json_value_free [09:28:17]json_value_free done [09:28:17]process_json_proto returns [09:28:17]Send response to host [09:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201798,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:28:17]free response buf [09:28:17]execute_script done [09:28:17]execute_script returns [09:28:17]free content buf [09:28:17]Sock 9.Close socket [09:28:17]Sock 9.Thread stoped [09:28:23]ConnectInit Can't connect to host [09:28:23]CommunicateWithHost connect error [09:28:23]CommunicateWithHost err = -1 [09:28:23]OFD Sender: Server communicate error [09:28:23]OFD Sender: Processing packet 201795 [packets to send 115, broken 111] [09:28:23]ProducePacketName [09:28:23]name=ofd_packets/00201795 [09:28:23]OFD Sender: To server: pG, [09:28:23]CommunicateWithHost lk.salyk.kg:30040 [09:28:23]ConnectInit lk.salyk.kg [09:28:23]Connected sock=9 [09:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 35 F5 07 01 54 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 57 00 00 00 F4 03 04 00 35 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 14 03 00 35 04 06 00 3D ED B1 8F 77 87 E1 47 7B EC 20 41 C0 05 [09:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EF 75 47 00 D5 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 14 03 00 F4 03 04 00 5F B3 1D 67 B6 04 01 00 00 1E FB 5C CE 69 07 36 05 [09:28:23]CommunicateWithHost err = 0 [09:28:23]CheckOFDResponse [09:28:23]1017 (14) - 77093643461234 [09:28:23]1041 (16) - 0000000000871756 [09:28:23]1040 (4) - 201795 [09:28:23]1012 (4) - 27.10.2024 03:28 [09:28:23]1206 (1) - 0 [09:28:23]OFD Sender: Remove packet 201795 [09:28:23]ProducePacketName [09:28:23]name=ofd_packets/00201795 [09:28:23]NVStorageDeleteData [09:28:24]OFD Sender: Processing packet 201796 [packets to send 114, broken 111] [09:28:24]ProducePacketName [09:28:24]name=ofd_packets/00201796 [09:28:24]OFD Sender: To server: pG, [09:28:24]CommunicateWithHost lk.salyk.kg:30040 [09:28:24]ConnectInit lk.salyk.kg [09:28:24]Connected sock=9 [09:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8C 9E 07 01 C0 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 58 00 00 00 F4 03 04 00 74 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 14 03 00 35 04 06 00 AE 38 D2 C9 33 AC 74 44 D2 2C A0 CF 90 FB [09:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4D BB 47 00 FB B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 14 03 00 F4 03 04 00 5F B3 1D 67 B6 04 01 00 00 F7 E6 41 D7 E4 FF 32 69 [09:28:24]CommunicateWithHost err = 0 [09:28:24]CheckOFDResponse [09:28:24]1017 (14) - 77093643461234 [09:28:24]1041 (16) - 0000000000871756 [09:28:24]1040 (4) - 201796 [09:28:24]1012 (4) - 27.10.2024 03:28 [09:28:24]1206 (1) - 0 [09:28:24]OFD Sender: Remove packet 201796 [09:28:24]ProducePacketName [09:28:24]name=ofd_packets/00201796 [09:28:24]NVStorageDeleteData [09:28:24]OFD Sender: Processing packet 201797 [packets to send 113, broken 111] [09:28:24]ProducePacketName [09:28:24]name=ofd_packets/00201797 [09:28:24]OFD Sender: To server: pG, [09:28:24]CommunicateWithHost lk.salyk.kg:30040 [09:28:24]ConnectInit lk.salyk.kg [09:28:25]Connected sock=9 [09:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8F 16 04 01 73 57 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9B 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 14 03 00 35 04 06 00 5B 6E 65 E3 69 BF 03 29 71 8A E5 2B FF D8 [09:28:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2D 9A 47 00 7E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 14 03 00 F4 03 04 00 60 B3 1D 67 B6 04 01 00 00 AC E4 52 AF 35 F0 4B CF [09:28:25]CommunicateWithHost err = 0 [09:28:25]CheckOFDResponse [09:28:25]1017 (14) - 77093643461234 [09:28:25]1041 (16) - 0000000000871756 [09:28:25]1040 (4) - 201797 [09:28:25]1012 (4) - 27.10.2024 03:28 [09:28:25]1206 (1) - 0 [09:28:25]OFD Sender: Remove packet 201797 [09:28:25]ProducePacketName [09:28:25]name=ofd_packets/00201797 [09:28:25]NVStorageDeleteData [09:28:25]OFD Sender: Processing packet 201798 [packets to send 112, broken 111] [09:28:25]ProducePacketName [09:28:25]name=ofd_packets/00201798 [09:28:25]OFD Sender: To server: pG, [09:28:25]CommunicateWithHost lk.salyk.kg:30040 [09:28:25]ConnectInit lk.salyk.kg [09:28:25]Connected sock=9 [09:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7E 5A 07 01 05 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5A 00 00 00 F4 03 04 00 B1 07 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 14 03 00 35 04 06 00 C7 32 AC 2E 2B 36 90 52 08 23 56 6E 05 0A [09:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 87 5A 47 00 F2 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 14 03 00 F4 03 04 00 61 B3 1D 67 B6 04 01 00 00 8F F7 0E 32 66 C5 2E F0 [09:28:26]CommunicateWithHost err = 0 [09:28:26]CheckOFDResponse [09:28:26]1017 (14) - 77093643461234 [09:28:26]1041 (16) - 0000000000871756 [09:28:26]1040 (4) - 201798 [09:28:26]1012 (4) - 27.10.2024 03:28 [09:28:26]1206 (1) - 0 [09:28:26]OFD Sender: Remove packet 201798 [09:28:26]ProducePacketName [09:28:26]name=ofd_packets/00201798 [09:28:26]NVStorageDeleteData [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:09]accept exits with 8 [09:31:09]New connection [09:31:09]New thread 3067080036 created [09:31:09]Thread 3066936676 joined [09:31:09]Waiting for new connection... [09:31:09] Sock 8.Parse request [09:31:09]Sock 8.Check first char [09:31:09]Sock 8.First char is OK [09:31:09]request: POST /json_proto HTTP/1.0 [09:31:09]Method: POST [09:31:09]URL: /json_proto [09:31:09]Method is POST - this is cgi request [09:31:09]url: /json_proto [09:31:09]query_string will be loaded in cgi processing [09:31:09]execute_cgi json_proto POST (null) [09:31:09]execute_cgi path=json_proto method=POST [09:31:09]POST find Content-Length [09:31:09]Host: 172.17.63.195:8080 [09:31:09]Content-Length: 677 [09:31:09]Content-Type: application/json [09:31:09] [09:31:09]POST finish read [09:31:09]Found Content-Length = 677 [09:31:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:09]execute_script... [09:31: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)449558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:09]POST & json_proto [09:31:09]process_json_proto [09:31:09]json parsed OK: [09:31:09]protocol is kg_v1.0 [09:31:09]action value=close_receipt [09:31:09]process_action close_receipt [09:31:09]cmd_close_receipt [09:31:09]MH_GetDate [09:31:09]Write to MH i2c: F0 00 00 FE 20 0D [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: F0 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: F0 09 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: F0 09 00 FE 20 00 61 08 1E 67 68 46 19 67 32 [09:31:09]GetLastDocTimeStamp 1730021297 [09:31:09]current date 1730021473 [09:31:09]FM_GetShiftState [09:31:09]SAM_PROTO_GetShiftState [09:31:09]wFMCommunicate request_size=4 [09:31:09]MH_SAM_APDU [09:31:09]CAPDU: 80 13 01 00 [09:31:09]Write to MH i2c: E2 08 00 FF 20 80 13 01 00 00 00 00 00 9C [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:10]Read from MH i2c: E2 [09:31:10]MH_I2C_Read... [09:31:10]Read from MH i2c: E2 0E 00 [09:31:10]MH_I2C_Read... [09:31:10]Read from MH i2c: E2 0E 00 FF 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9E [09:31:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:31:10]wFMCommunicate OK [09:31:10]SAM_PROTO_GetShiftState done [09:31:10]FM_GetShiftState done [09:31:10]opened in 1729987312 [09:31:10]opened+sec_in_day 1730073712 [09:31:10]quantity*price = 50041 [09:31:10]sum+1 = 50042 [09:31:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 91 27.10.2024 09:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201799 ФПД: 274511094767340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093113&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201799&fm=274511094767340&tin=02508201610067®Number=0000000000091777&sum=50000 [09:31:11]StoreToDocumentArchive [09:31:11]shift 544 fd 201799 [09:31:11]save to /storage/0544/doc_00201799 [09:31:11]save last doc name /storage/0544/doc_00201799 to /storage/kkm_last_doc_name [09:31:11]save OK [09:31:11]Clear old archive folders... [09:31:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:11]tlvbuf is 000A38B0 [09:31:11]SAM_PROTO_ClearQueue [09:31:11]wFMCommunicate request_size=4 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 09 00 00 [09:31:11]Write to MH i2c: E2 08 00 0C 21 80 09 00 00 00 00 00 00 9F [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 03 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [09:31:11]RAPDU: 90 00 [09:31:11]wFMCommunicate OK [09:31:11]SAM_PROTO_ClearQueue done [09:31:11]KKMCreateOFDPacket [09:31:11]OFDProtocolAddRootSTLVToBuf [09:31:11]FM_MakeSignedData [09:31:11]FM_MakeSignedData [09:31:11]SAM_PROTO_SignData [09:31:11]wFMCommunicate request_size=4 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 0D 01 02 [09:31:11]Write to MH i2c: E2 08 00 0D 21 80 0D 01 02 00 00 00 00 A7 [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 03 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [09:31:11]RAPDU: 90 00 [09:31:11]wFMCommunicate OK [09:31:11]wFMCommunicate request_size=255 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5B 00 00 00 F4 03 04 00 61 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 14 03 00 35 04 06 00 F9 [09:31:11]Write to MH i2c: E2 02 01 0E 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5B 00 00 00 F4 03 04 00 61 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 14 03 00 35 04 06 00 F9 00 00 FD [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 03 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [09:31:11]RAPDU: 90 00 [09:31:11]wFMCommunicate OK [09:31:11]wFMCommunicate request_size=10 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 0D 02 02 05 AA 98 4A 5E EC [09:31:11]Write to MH i2c: E2 0D 00 0F 21 80 0D 02 02 05 00 AA 98 4A 5E EC 00 00 8A [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 03 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [09:31:11]RAPDU: 90 00 [09:31:11]wFMCommunicate OK [09:31:11]wFMCommunicate request_size=4 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 0D 03 02 [09:31:11]Write to MH i2c: E2 08 00 10 21 80 0D 03 02 00 00 00 00 AC [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 0B 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 0B 00 10 21 00 28 71 16 31 E9 CC 50 34 90 00 C6 [09:31:11]RAPDU: 28 71 16 31 E9 CC 50 34 90 00 [09:31:11]wFMCommunicate OK [09:31:11]SAM_PROTO_SignData done [09:31:11]FM_MakeSignedData done [09:31:11]CreateOFDProtocolMessage [09:31:11]wFMCommunicate request_size=4 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 11 00 00 [09:31:11]Write to MH i2c: E2 08 00 11 21 80 11 00 00 00 00 00 00 AC [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 17 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 17 00 11 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 01 [09:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:31:11]wFMCommunicate OK [09:31:11]CreateOFDProtocolMessage done [09:31:11]OFDSenderStorePacket 201799 [09:31:11]StoreOFDPacket docnum=201799 [09:31:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6C A6 07 01 E2 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5B 00 00 00 F4 03 04 00 61 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 14 03 00 35 04 06 00 F9 AA 98 4A 5E EC 28 71 16 31 E9 CC 50 34 [09:31:11]CheckFolder [09:31:11]dirname=/storage/ofd_packets [09:31:11]CheckFolder done [09:31:11]ProducePacketName [09:31:11]name=ofd_packets/00201799 [09:31:11]NVStorageSaveData ofd_packets/00201799 [09:31:11]File name is /storage/ofd_packets/00201799 [09:31:11]Write 301 bytes [09:31:11]NVStorageSaveData done [09:31:11]OFDSenderStorePacket done [09:31:11]KKMCreateOFDPacket done [09:31:11]NVStorageSaveData kkm_last_timestamp [09:31:11]File name is /storage/kkm_last_timestamp [09:31:11]Write 4 bytes [09:31:11]NVStorageSaveData done [09:31:11]ExternCall_PrintAddStr [09:31:11]wPrintStart [09:31:11]Write to MH i2c: 01 00 00 12 21 33 [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: 01 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: 01 07 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: 01 07 00 12 21 00 00 00 00 00 FF 0F 48 [09:31:11]RasterBufferAndPrint [09:31:11]line Счет N : (1)449558 [09:31:11]line ИНН: 02508201610067 [09:31:11]line Контрольно-Кассовый Чек [09:31:11]line ПРОДАЖА [09:31:11]line ТРК (МРК, ГНК) : 62 [09:31:11]line Товар: 2710124130 [09:31:11]line Аи-92-К-2 [09:31:11]line 7.480 * 66.90 [09:31:11]line = 500.41 [09:31:11]line НДС 12% НСП 1% [09:31:11]line > о реализуемом товаре [09:31:11]line ОКРУГЛЕНИЕ: -0.41 [09:31:11]line ИТОГО: 500.00 [09:31:11]line Внесено: 500.00 [09:31:11]line СДАЧА: 0.00 [09:31:11]line НСП 1% : 4.43 [09:31:11]line НДС 12% : 53.14 [09:31:11]line Наличными: 500.00 [09:31:11]line Безнал.: 0.00 [09:31:11]line Место: АЗС № 171 "Партнер Нефть" [09:31:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:31:11]line СНО: Общий режим [09:31:11]line Чек 91 27.10.2024 09:31 [09:31:11]line Смена: 544 ФФД: 1.0 [09:31:11]line ЗНМ: 0300000109 [09:31:11]line РНМ: 0000000000091777 [09:31:11]line Версия ККМ: 001 [09:31:11]line ФМ: 0000000000871756 [09:31:11]line ФД: 201799 [09:31:11]line ФПД: 274511094767340 [09:31:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093113&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201799&fm=274511094767340&tin=02508201610067®Number=0000000000091777&sum=50000 [09:31:12]OFD Sender: Processing packet 201799 [packets to send 112, broken 111] [09:31:12]ProducePacketName [09:31:12]name=ofd_packets/00201799 [09:31:12]OFD Sender: To server: pG, [09:31:12]CommunicateWithHost lk.salyk.kg:30040 [09:31:12]ConnectInit lk.salyk.kg [09:31:12]written 0, free lines is 4095 [09:31:12]Connected sock=10 [09:31:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6C A6 07 01 E2 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5B 00 00 00 F4 03 04 00 61 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 14 03 00 35 04 06 00 F9 AA 98 4A 5E EC 28 71 16 31 E9 CC 50 34 [09:31:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E7 81 47 00 1E 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 14 03 00 F4 03 04 00 07 B4 1D 67 B6 04 01 00 00 91 11 29 C6 98 3E 52 6E [09:31:12]CommunicateWithHost err = 0 [09:31:12]CheckOFDResponse [09:31:12]1017 (14) - 77093643461234 [09:31:12]1041 (16) - 0000000000871756 [09:31:12]1040 (4) - 201799 [09:31:12]1012 (4) - 27.10.2024 03:31 [09:31:12]1206 (1) - 0 [09:31:12]OFD Sender: Remove packet 201799 [09:31:12]ProducePacketName [09:31:12]name=ofd_packets/00201799 [09:31:12]NVStorageDeleteData [09:31:12]Write to MH i2c: 01 00 00 3D 21 5E [09:31:12]Write i2c OK [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: 01 [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: 01 07 00 [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: 01 07 00 3D 21 00 00 00 00 00 8F 0C 00 [09:31:12]RasterBufferAndPrint [09:31:12]line [09:31:12]line [09:31:12]line [09:31:12]line [09:31:12]line [09:31:12]written 0, free lines is 3218 [09:31:12]MH_Cut [09:31:12]Write to MH i2c: D1 01 00 44 21 01 37 [09:31:12]Write i2c OK [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: D1 [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: D1 01 00 [09:31:12]MH_I2C_Read... [09:31:12]Read from MH i2c: D1 01 00 44 21 00 36 [09:31:12]Write to MH i2c: 01 00 00 45 21 66 [09:31:12]Write i2c OK [09:31:12]MH_I2C_Read... [09:31:12]OFD Sender: No OFD packet to send [09:31:13]*** Cut start [09:31:13]*** Purtial cut [09:31:13]*** Stage 1: CUTSNS_PIN = 1 [09:31:13]Read from MH i2c: 01 [09:31:13]MH_I2C_Read... [09:31:13]*** Stop cut motor [09:31:13]*** Cut end [09:31:13]Read from MH i2c: 01 07 00 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: 01 07 00 45 21 00 00 00 00 00 FF 0F 7B [09:31:13]process_action close_receipt done [09:31:13]requested_data is exist [09:31:13]produce_requested_data [09:31:13]requested_item fm.sn is exist - process it [09:31:13]wFMCommunicate request_size=4 [09:31:13]MH_SAM_APDU [09:31:13]CAPDU: 80 11 00 00 [09:31:13]Write to MH i2c: E2 08 00 46 21 80 11 00 00 00 00 00 00 E1 [09:31:13]Write i2c OK [09:31:13]MH_I2C_Read... [09:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:13]Read from MH i2c: E2 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 17 00 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 17 00 46 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [09:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:31:13]wFMCommunicate OK [09:31:13]requested_item fd.num is exist - process it [09:31:13]SAM_PROTO_GetFieldsCounters [09:31:13]wFMCommunicate request_size=4 [09:31:13]MH_SAM_APDU [09:31:13]CAPDU: 80 13 00 00 [09:31:13]Write to MH i2c: E2 08 00 47 21 80 13 00 00 00 00 00 00 E4 [09:31:13]Write i2c OK [09:31:13]MH_I2C_Read... [09:31:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:13]Read from MH i2c: E2 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 62 00 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 62 00 47 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 47 14 03 00 0E 04 04 00 20 02 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 9E [09:31:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 47 14 03 00 0E 04 04 00 20 02 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 [09:31:13]wFMCommunicate OK [09:31:13]SAM_PROTO_GetFieldsCounters done [09:31:13]requested_item shift.num is exist - process it [09:31:13]requested_item shift.opened is exist - process it [09:31:13]req_shift_opened [09:31:13]FM_GetShiftState [09:31:13]SAM_PROTO_GetShiftState [09:31:13]wFMCommunicate request_size=4 [09:31:13]MH_SAM_APDU [09:31:13]CAPDU: 80 13 01 00 [09:31:13]Write to MH i2c: E2 08 00 48 21 80 13 01 00 00 00 00 00 E6 [09:31:13]Write i2c OK [09:31:13]MH_I2C_Read... [09:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:13]Read from MH i2c: E2 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 0E 00 [09:31:13]MH_I2C_Read... [09:31:13]Read from MH i2c: E2 0E 00 48 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E8 [09:31:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:31:13]wFMCommunicate OK [09:31:13]SAM_PROTO_GetShiftState done [09:31:13]FM_GetShiftState done [09:31:13]req_shift_opened done [09:31:13]requested_item shift.open_date is exist - process it [09:31:13]req_shift_open_date [09:31:13]req_shift_open_date done [09:31:13]produce_requested_data done [09:31:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201799,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:31:13]process_action_free close_receipt [09:31:13]json_value_free [09:31:13]json_value_free done [09:31:13]process_json_proto returns [09:31:13]Send response to host [09:31:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201799,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:31:13]free response buf [09:31:13]execute_script done [09:31:13]execute_script returns [09:31:13]free content buf [09:31:13]Sock 8.Close socket [09:31:13]Sock 8.Thread stoped [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:15]accept exits with 9 [09:32:15]New connection [09:32:15]New thread 3066936676 created [09:32:15]Thread 3067080036 joined [09:32:15]Waiting for new connection... [09:32:15] Sock 9.Parse request [09:32:15]Sock 9.Check first char [09:32:15]Sock 9.First char is OK [09:32:15]request: POST /json_proto HTTP/1.0 [09:32:15]Method: POST [09:32:15]URL: /json_proto [09:32:15]Method is POST - this is cgi request [09:32:15]url: /json_proto [09:32:15]query_string will be loaded in cgi processing [09:32:15]execute_cgi json_proto POST (null) [09:32:15]execute_cgi path=json_proto method=POST [09:32:15]POST find Content-Length [09:32:15]Host: 172.17.63.195:8080 [09:32:15]Content-Length: 682 [09:32:15]Content-Type: application/json [09:32:15] [09:32:15]POST finish read [09:32:15]Found Content-Length = 682 [09:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:15]execute_script... [09:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:15]POST & json_proto [09:32:15]process_json_proto [09:32:15]json parsed OK: [09:32:15]protocol is kg_v1.0 [09:32:15]action value=close_receipt [09:32:15]process_action close_receipt [09:32:15]cmd_close_receipt [09:32:15]MH_GetDate [09:32:15]Write to MH i2c: F0 00 00 49 21 59 [09:32:15]Write i2c OK [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: F0 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: F0 09 00 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: F0 09 00 49 21 00 A3 08 1E 67 68 46 19 67 C0 [09:32:15]GetLastDocTimeStamp 1730021473 [09:32:15]current date 1730021539 [09:32:15]FM_GetShiftState [09:32:15]SAM_PROTO_GetShiftState [09:32:15]wFMCommunicate request_size=4 [09:32:15]MH_SAM_APDU [09:32:15]CAPDU: 80 13 01 00 [09:32:15]Write to MH i2c: E2 08 00 4A 21 80 13 01 00 00 00 00 00 E8 [09:32:15]Write i2c OK [09:32:15]MH_I2C_Read... [09:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:15]Read from MH i2c: E2 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 0E 00 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 0E 00 4A 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 EA [09:32:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:32:15]wFMCommunicate OK [09:32:15]SAM_PROTO_GetShiftState done [09:32:15]FM_GetShiftState done [09:32:15]opened in 1729987312 [09:32:15]opened+sec_in_day 1730073712 [09:32:15]quantity*price = 200031 [09:32:15]sum+1 = 200032 [09:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 92 27.10.2024 09:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201800 ФПД: 125510159892130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201800&fm=125510159892130&tin=02508201610067®Number=0000000000091777&sum=200000 [09:32:17]StoreToDocumentArchive [09:32:17]shift 544 fd 201800 [09:32:17]save to /storage/0544/doc_00201800 [09:32:17]save last doc name /storage/0544/doc_00201800 to /storage/kkm_last_doc_name [09:32:17]save OK [09:32:17]Clear old archive folders... [09:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:17]tlvbuf is 000D8E60 [09:32:17]SAM_PROTO_ClearQueue [09:32:17]wFMCommunicate request_size=4 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 09 00 00 [09:32:17]Write to MH i2c: E2 08 00 57 21 80 09 00 00 00 00 00 00 EA [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [09:32:17]RAPDU: 90 00 [09:32:17]wFMCommunicate OK [09:32:17]SAM_PROTO_ClearQueue done [09:32:17]KKMCreateOFDPacket [09:32:17]OFDProtocolAddRootSTLVToBuf [09:32:17]FM_MakeSignedData [09:32:17]FM_MakeSignedData [09:32:17]SAM_PROTO_SignData [09:32:17]wFMCommunicate request_size=4 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 0D 01 02 [09:32:17]Write to MH i2c: E2 08 00 58 21 80 0D 01 02 00 00 00 00 F2 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [09:32:17]RAPDU: 90 00 [09:32:17]wFMCommunicate OK [09:32:17]wFMCommunicate request_size=255 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A3 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 14 03 00 35 04 06 00 72 [09:32:17]Write to MH i2c: E2 02 01 59 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A3 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 14 03 00 35 04 06 00 72 00 00 47 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [09:32:17]RAPDU: 90 00 [09:32:17]wFMCommunicate OK [09:32:17]wFMCommunicate request_size=10 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 0D 02 02 05 26 9C 7E FE A2 [09:32:17]Write to MH i2c: E2 0D 00 5A 21 80 0D 02 02 05 00 26 9C 7E FE A2 00 00 DF [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 03 00 5A 21 00 90 00 EF [09:32:17]RAPDU: 90 00 [09:32:17]wFMCommunicate OK [09:32:17]wFMCommunicate request_size=4 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 0D 03 02 [09:32:17]Write to MH i2c: E2 08 00 5B 21 80 0D 03 02 00 00 00 00 F7 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 0B 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 0B 00 5B 21 00 F4 E4 D2 43 31 CB D2 32 90 00 E5 [09:32:17]RAPDU: F4 E4 D2 43 31 CB D2 32 90 00 [09:32:17]wFMCommunicate OK [09:32:17]SAM_PROTO_SignData done [09:32:17]FM_MakeSignedData done [09:32:17]CreateOFDProtocolMessage [09:32:17]wFMCommunicate request_size=4 [09:32:17]MH_SAM_APDU [09:32:17]CAPDU: 80 11 00 00 [09:32:17]Write to MH i2c: E2 08 00 5C 21 80 11 00 00 00 00 00 00 F7 [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:17]Read from MH i2c: E2 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 17 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: E2 17 00 5C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4C [09:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:32:17]wFMCommunicate OK [09:32:17]CreateOFDProtocolMessage done [09:32:17]OFDSenderStorePacket 201800 [09:32:17]StoreOFDPacket docnum=201800 [09:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7F FE 07 01 E0 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A3 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 14 03 00 35 04 06 00 72 26 9C 7E FE A2 F4 E4 D2 43 31 CB D2 32 [09:32:17]CheckFolder [09:32:17]dirname=/storage/ofd_packets [09:32:17]CheckFolder done [09:32:17]ProducePacketName [09:32:17]name=ofd_packets/00201800 [09:32:17]NVStorageSaveData ofd_packets/00201800 [09:32:17]File name is /storage/ofd_packets/00201800 [09:32:17]Write 301 bytes [09:32:17]NVStorageSaveData done [09:32:17]OFDSenderStorePacket done [09:32:17]KKMCreateOFDPacket done [09:32:17]NVStorageSaveData kkm_last_timestamp [09:32:17]File name is /storage/kkm_last_timestamp [09:32:17]Write 4 bytes [09:32:17]NVStorageSaveData done [09:32:17]ExternCall_PrintAddStr [09:32:17]wPrintStart [09:32:17]Write to MH i2c: 01 00 00 5D 21 7E [09:32:17]Write i2c OK [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 07 00 [09:32:17]MH_I2C_Read... [09:32:17]Read from MH i2c: 01 07 00 5D 21 00 00 00 00 00 FF 0F 93 [09:32:17]RasterBufferAndPrint [09:32:17]line Счет N : (1)449559 [09:32:17]line ИНН: 02508201610067 [09:32:17]line Контрольно-Кассовый Чек [09:32:17]line ПРОДАЖА [09:32:17]line ТРК (МРК, ГНК) : 41 [09:32:17]line Товар: 2710124130 [09:32:17]line Аи-92-К-2 [09:32:17]line 29.900 * 66.90 [09:32:17]line = 2000.31 [09:32:17]line НДС 12% НСП 1% [09:32:17]line > о реализуемом товаре [09:32:17]line ОКРУГЛЕНИЕ: -0.31 [09:32:17]line ИТОГО: 2000.00 [09:32:17]line Внесено: 2000.00 [09:32:17]line СДАЧА: 0.00 [09:32:17]line НСП 1% : 17.70 [09:32:17]line НДС 12% : 212.42 [09:32:17]line Наличными: 2000.00 [09:32:17]line Безнал.: 0.00 [09:32:17]line Место: АЗС № 171 "Партнер Нефть" [09:32:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:32:17]line СНО: Общий режим [09:32:17]line Чек 92 27.10.2024 09:32 [09:32:17]line Смена: 544 ФФД: 1.0 [09:32:17]line ЗНМ: 0300000109 [09:32:17]line РНМ: 0000000000091777 [09:32:17]line Версия ККМ: 001 [09:32:17]line ФМ: 0000000000871756 [09:32:17]line ФД: 201800 [09:32:17]line ФПД: 125510159892130 [09:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201800&fm=125510159892130&tin=02508201610067®Number=0000000000091777&sum=200000 [09:32:17]OFD Sender: Processing packet 201800 [packets to send 112, broken 111] [09:32:17]ProducePacketName [09:32:17]name=ofd_packets/00201800 [09:32:17]OFD Sender: To server: pG, [09:32:17]CommunicateWithHost lk.salyk.kg:30040 [09:32:17]ConnectInit lk.salyk.kg [09:32:17]written 0, free lines is 4095 [09:32:18]Connected sock=10 [09:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7F FE 07 01 E0 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A3 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 14 03 00 35 04 06 00 72 26 9C 7E FE A2 F4 E4 D2 43 31 CB D2 32 [09:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8C 7F 47 00 3F F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 14 03 00 F4 03 04 00 49 B4 1D 67 B6 04 01 00 00 7C 62 65 9E BC 21 EB 73 [09:32:18]CommunicateWithHost err = 0 [09:32:18]CheckOFDResponse [09:32:18]1017 (14) - 77093643461234 [09:32:18]1041 (16) - 0000000000871756 [09:32:18]1040 (4) - 201800 [09:32:18]1012 (4) - 27.10.2024 03:32 [09:32:18]1206 (1) - 0 [09:32:18]OFD Sender: Remove packet 201800 [09:32:18]ProducePacketName [09:32:18]name=ofd_packets/00201800 [09:32:18]NVStorageDeleteData [09:32:18]Write to MH i2c: 01 00 00 88 21 A9 [09:32:18]Write i2c OK [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: 01 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: 01 07 00 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: 01 07 00 88 21 00 00 00 00 00 99 0C 55 [09:32:18]RasterBufferAndPrint [09:32:18]line [09:32:18]line [09:32:18]line [09:32:18]line [09:32:18]line [09:32:18]written 0, free lines is 3231 [09:32:18]MH_Cut [09:32:18]Write to MH i2c: D1 01 00 8F 21 01 82 [09:32:18]Write i2c OK [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: D1 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: D1 01 00 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: D1 01 00 8F 21 00 81 [09:32:18]Write to MH i2c: 01 00 00 90 21 B1 [09:32:18]Write i2c OK [09:32:18]MH_I2C_Read... [09:32:18]OFD Sender: No OFD packet to send [09:32:19]*** Cut start [09:32:19]*** Purtial cut [09:32:19]*** Stage 1: CUTSNS_PIN = 1 [09:32:19]Read from MH i2c: 01 [09:32:19]MH_I2C_Read... [09:32:19]*** Stop cut motor [09:32:19]*** Cut end [09:32:19]Read from MH i2c: 01 07 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: 01 07 00 90 21 00 00 00 00 00 FF 0F C6 [09:32:19]process_action close_receipt done [09:32:19]requested_data is exist [09:32:19]produce_requested_data [09:32:19]requested_item fm.sn is exist - process it [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 11 00 00 [09:32:19]Write to MH i2c: E2 08 00 91 21 80 11 00 00 00 00 00 00 2C [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 17 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 17 00 91 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [09:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:32:19]wFMCommunicate OK [09:32:19]requested_item fd.num is exist - process it [09:32:19]SAM_PROTO_GetFieldsCounters [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 13 00 00 [09:32:19]Write to MH i2c: E2 08 00 92 21 80 13 00 00 00 00 00 00 2F [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 62 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 62 00 92 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 48 14 03 00 0E 04 04 00 20 02 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 ED [09:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 48 14 03 00 0E 04 04 00 20 02 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 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_GetFieldsCounters done [09:32:19]requested_item shift.num is exist - process it [09:32:19]requested_item shift.opened is exist - process it [09:32:19]req_shift_opened [09:32:19]FM_GetShiftState [09:32:19]SAM_PROTO_GetShiftState [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 13 01 00 [09:32:19]Write to MH i2c: E2 08 00 93 21 80 13 01 00 00 00 00 00 31 [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 93 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 33 [09:32:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_GetShiftState done [09:32:19]FM_GetShiftState done [09:32:19]req_shift_opened done [09:32:19]requested_item shift.open_date is exist - process it [09:32:19]req_shift_open_date [09:32:19]req_shift_open_date done [09:32:19]produce_requested_data done [09:32:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201800,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:32:19]process_action_free close_receipt [09:32:19]json_value_free [09:32:19]json_value_free done [09:32:19]process_json_proto returns [09:32:19]Send response to host [09:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201800,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:32:19]free response buf [09:32:19]execute_script done [09:32:19]execute_script returns [09:32:19]free content buf [09:32:19]Sock 9.Close socket [09:32:19]Sock 9.Thread stoped [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]accept exits with 8 [09:32:58]New connection [09:32:58]New thread 3067080036 created [09:32:58]Thread 3066936676 joined [09:32:58]Waiting for new connection... [09:32:58] Sock 8.Parse request [09:32:58]Sock 8.Check first char [09:32:58]Sock 8.First char is OK [09:32:58]request: POST /json_proto HTTP/1.0 [09:32:58]Method: POST [09:32:58]URL: /json_proto [09:32:58]Method is POST - this is cgi request [09:32:58]url: /json_proto [09:32:58]query_string will be loaded in cgi processing [09:32:58]execute_cgi json_proto POST (null) [09:32:58]execute_cgi path=json_proto method=POST [09:32:58]POST find Content-Length [09:32:58]Host: 172.17.63.195:8080 [09:32:58]Content-Length: 679 [09:32:58]Content-Type: application/json [09:32:58] [09:32:58]POST finish read [09:32:58]Found Content-Length = 679 [09:32:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.530, "sum" : 1640.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1640.00, "total" : 1640.00, "payments": [ { "type": 0, "sum" : 1640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:58]execute_script... [09:32: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)449560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.530, "sum" : 1640.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1640.00, "total" : 1640.00, "payments": [ { "type": 0, "sum" : 1640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:58]POST & json_proto [09:32:58]process_json_proto [09:32:58]json parsed OK: [09:32:58]protocol is kg_v1.0 [09:32:58]action value=close_receipt [09:32:58]process_action close_receipt [09:32:58]cmd_close_receipt [09:32:58]MH_GetDate [09:32:58]Write to MH i2c: F0 00 00 94 21 A4 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: F0 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: F0 09 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: F0 09 00 94 21 00 CE 08 1E 67 68 46 19 67 36 [09:32:58]GetLastDocTimeStamp 1730021539 [09:32:58]current date 1730021582 [09:32:58]FM_GetShiftState [09:32:58]SAM_PROTO_GetShiftState [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 13 01 00 [09:32:58]Write to MH i2c: E2 08 00 95 21 80 13 01 00 00 00 00 00 33 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 0E 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 0E 00 95 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 35 [09:32:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:32:58]wFMCommunicate OK [09:32:58]SAM_PROTO_GetShiftState done [09:32:58]FM_GetShiftState done [09:32:58]opened in 1729987312 [09:32:58]opened+sec_in_day 1730073712 [09:32:58]quantity*price = 164058 [09:32:58]sum+1 = 164060 [09:32:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1640.00 Внесено: 1640.00 СДАЧА: 0.00 НСП 1% : 14.52 НДС 12% : 174.22 Наличными: 1640.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 93 27.10.2024 09:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201801 ФПД: 27347288545102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093302&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201801&fm=27347288545102&tin=02508201610067®Number=0000000000091777&sum=164000 [09:32:59]StoreToDocumentArchive [09:32:59]shift 544 fd 201801 [09:32:59]save to /storage/0544/doc_00201801 [09:32:59]save last doc name /storage/0544/doc_00201801 to /storage/kkm_last_doc_name [09:32:59]save OK [09:32:59]Clear old archive folders... [09:32:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:32:59]tlvbuf is 00142710 [09:32:59]SAM_PROTO_ClearQueue [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 09 00 00 [09:32:59]Write to MH i2c: E2 08 00 A2 21 80 09 00 00 00 00 00 00 35 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 A2 21 00 90 00 37 [09:32:59]RAPDU: 90 00 [09:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_ClearQueue done [09:32:59]KKMCreateOFDPacket [09:32:59]OFDProtocolAddRootSTLVToBuf [09:32:59]FM_MakeSignedData [09:32:59]FM_MakeSignedData [09:32:59]SAM_PROTO_SignData [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 0D 01 02 [09:32:59]Write to MH i2c: E2 08 00 A3 21 80 0D 01 02 00 00 00 00 3D [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 03 00 A3 21 00 90 00 38 [09:32:59]RAPDU: 90 00 [09:32:59]wFMCommunicate OK [09:32:59]wFMCommunicate request_size=255 [09:32:59]MH_SAM_APDU [09:32: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 32 FF 03 08 00 03 1A 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DB 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 44 00 00 00 00 07 04 06 00 A0 80 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CE 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 14 03 00 35 04 06 00 18 DF 49 6B [09:32:59]Write to MH i2c: E2 02 01 A4 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 1A 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DB 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 44 00 00 00 00 07 04 06 00 A0 80 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CE 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 14 03 00 35 04 06 00 18 DF 49 6B 00 00 77 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 03 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 03 00 A4 21 00 90 00 39 [09:33:00]RAPDU: 90 00 [09:33:00]wFMCommunicate OK [09:33:00]wFMCommunicate request_size=7 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 0D 02 02 02 57 4E [09:33:00]Write to MH i2c: E2 0A 00 A5 21 80 0D 02 02 02 00 57 4E 00 00 E9 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 03 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 03 00 A5 21 00 90 00 3A [09:33:00]RAPDU: 90 00 [09:33:00]wFMCommunicate OK [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 0D 03 02 [09:33:00]Write to MH i2c: E2 08 00 A6 21 80 0D 03 02 00 00 00 00 42 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 0B 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 0B 00 A6 21 00 75 67 1B 99 1A A9 DC DD 90 00 4F [09:33:00]RAPDU: 75 67 1B 99 1A A9 DC DD 90 00 [09:33:00]wFMCommunicate OK [09:33:00]SAM_PROTO_SignData done [09:33:00]FM_MakeSignedData done [09:33:00]CreateOFDProtocolMessage [09:33:00]wFMCommunicate request_size=4 [09:33:00]MH_SAM_APDU [09:33:00]CAPDU: 80 11 00 00 [09:33:00]Write to MH i2c: E2 08 00 A7 21 80 11 00 00 00 00 00 00 42 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:00]Read from MH i2c: E2 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 17 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: E2 17 00 A7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 97 [09:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:33:00]wFMCommunicate OK [09:33:00]CreateOFDProtocolMessage done [09:33:00]OFDSenderStorePacket 201801 [09:33:00]StoreOFDPacket docnum=201801 [09:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 17 48 04 01 34 DC 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 32 FF 03 08 00 03 1A 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DB 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 44 00 00 00 00 07 04 06 00 A0 80 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CE 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 14 03 00 35 04 06 00 18 DF 49 6B 57 4E 75 67 1B 99 1A A9 DC DD [09:33:00]CheckFolder [09:33:00]dirname=/storage/ofd_packets [09:33:00]CheckFolder done [09:33:00]ProducePacketName [09:33:00]name=ofd_packets/00201801 [09:33:00]NVStorageSaveData ofd_packets/00201801 [09:33:00]File name is /storage/ofd_packets/00201801 [09:33:00]Write 298 bytes [09:33:00]NVStorageSaveData done [09:33:00]OFDSenderStorePacket done [09:33:00]KKMCreateOFDPacket done [09:33:00]NVStorageSaveData kkm_last_timestamp [09:33:00]File name is /storage/kkm_last_timestamp [09:33:00]Write 4 bytes [09:33:00]NVStorageSaveData done [09:33:00]ExternCall_PrintAddStr [09:33:00]wPrintStart [09:33:00]Write to MH i2c: 01 00 00 A8 21 C9 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 A8 21 00 00 00 00 00 FF 0F DE [09:33:00]RasterBufferAndPrint [09:33:00]line Счет N : (1)449560 [09:33:00]line ИНН: 02508201610067 [09:33:00]line Контрольно-Кассовый Чек [09:33:00]line ПРОДАЖА [09:33:00]line ТРК (МРК, ГНК) : 21 [09:33:00]line Товар: 2710194210 [09:33:00]line ДТ-К-2 [09:33:00]line 21.530 * 76.20 [09:33:00]line = 1640.59 [09:33:00]line НДС 12% НСП 1% [09:33:00]line > о реализуемом товаре [09:33:00]line ОКРУГЛЕНИЕ: -0.59 [09:33:00]line ИТОГО: 1640.00 [09:33:00]line Внесено: 1640.00 [09:33:00]line СДАЧА: 0.00 [09:33:00]line НСП 1% : 14.52 [09:33:00]line НДС 12% : 174.22 [09:33:00]line Наличными: 1640.00 [09:33:00]line Безнал.: 0.00 [09:33:00]line Место: АЗС № 171 "Партнер Нефть" [09:33:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:33:00]line СНО: Общий режим [09:33:00]line Чек 93 27.10.2024 09:33 [09:33:00]line Смена: 544 ФФД: 1.0 [09:33:00]line ЗНМ: 0300000109 [09:33:00]line РНМ: 0000000000091777 [09:33:00]line Версия ККМ: 001 [09:33:00]line ФМ: 0000000000871756 [09:33:00]line ФД: 201801 [09:33:00]line ФПД: 27347288545102 [09:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093302&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201801&fm=27347288545102&tin=02508201610067®Number=0000000000091777&sum=164000 [09:33:00]OFD Sender: Processing packet 201801 [packets to send 112, broken 111] [09:33:00]ProducePacketName [09:33:00]name=ofd_packets/00201801 [09:33:00]OFD Sender: To server: pG, [09:33:00]CommunicateWithHost lk.salyk.kg:30040 [09:33:00]ConnectInit lk.salyk.kg [09:33:00]written 0, free lines is 4095 [09:33:00]Connected sock=10 [09:33:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 17 48 04 01 34 DC 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 32 FF 03 08 00 03 1A 54 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DB 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 44 00 00 00 00 07 04 06 00 A0 80 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CE 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 14 03 00 35 04 06 00 18 DF 49 6B 57 4E 75 67 1B 99 1A A9 DC DD [09:33:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2E B2 47 00 E5 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 14 03 00 F4 03 04 00 74 B4 1D 67 B6 04 01 00 00 4D FA 41 B6 3B 20 58 80 [09:33:00]CommunicateWithHost err = 0 [09:33:00]CheckOFDResponse [09:33:00]1017 (14) - 77093643461234 [09:33:00]1041 (16) - 0000000000871756 [09:33:00]1040 (4) - 201801 [09:33:00]1012 (4) - 27.10.2024 03:33 [09:33:00]1206 (1) - 0 [09:33:00]OFD Sender: Remove packet 201801 [09:33:00]ProducePacketName [09:33:00]name=ofd_packets/00201801 [09:33:00]NVStorageDeleteData [09:33:01]Write to MH i2c: 01 00 00 D3 21 F4 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: 01 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: 01 07 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: 01 07 00 D3 21 00 00 00 00 00 8C 0C 93 [09:33:01]RasterBufferAndPrint [09:33:01]line [09:33:01]line [09:33:01]line [09:33:01]line [09:33:01]line [09:33:01]written 0, free lines is 3217 [09:33:01]MH_Cut [09:33:01]Write to MH i2c: D1 01 00 DA 21 01 CD [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: D1 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: D1 01 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: D1 01 00 DA 21 00 CC [09:33:01]Write to MH i2c: 01 00 00 DB 21 FC [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]OFD Sender: No OFD packet to send [09:33:01]*** Cut start [09:33:01]*** Purtial cut [09:33:01]*** Stage 1: CUTSNS_PIN = 1 [09:33:02]Read from MH i2c: 01 [09:33:02]MH_I2C_Read... [09:33:02]*** Stop cut motor [09:33:02]*** Cut end [09:33:02]Read from MH i2c: 01 07 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: 01 07 00 DB 21 00 00 00 00 00 FF 0F 11 [09:33:02]process_action close_receipt done [09:33:02]requested_data is exist [09:33:02]produce_requested_data [09:33:02]requested_item fm.sn is exist - process it [09:33:02]wFMCommunicate request_size=4 [09:33:02]MH_SAM_APDU [09:33:02]CAPDU: 80 11 00 00 [09:33:02]Write to MH i2c: E2 08 00 DC 21 80 11 00 00 00 00 00 00 77 [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:02]Read from MH i2c: E2 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 17 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 17 00 DC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [09:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:33:02]wFMCommunicate OK [09:33:02]requested_item fd.num is exist - process it [09:33:02]SAM_PROTO_GetFieldsCounters [09:33:02]wFMCommunicate request_size=4 [09:33:02]MH_SAM_APDU [09:33:02]CAPDU: 80 13 00 00 [09:33:02]Write to MH i2c: E2 08 00 DD 21 80 13 00 00 00 00 00 00 7A [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:02]Read from MH i2c: E2 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 62 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 62 00 DD 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 49 14 03 00 0E 04 04 00 20 02 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 3C [09:33:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 49 14 03 00 0E 04 04 00 20 02 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 [09:33:02]wFMCommunicate OK [09:33:02]SAM_PROTO_GetFieldsCounters done [09:33:02]requested_item shift.num is exist - process it [09:33:02]requested_item shift.opened is exist - process it [09:33:02]req_shift_opened [09:33:02]FM_GetShiftState [09:33:02]SAM_PROTO_GetShiftState [09:33:02]wFMCommunicate request_size=4 [09:33:02]MH_SAM_APDU [09:33:02]CAPDU: 80 13 01 00 [09:33:02]Write to MH i2c: E2 08 00 DE 21 80 13 01 00 00 00 00 00 7C [09:33:02]Write i2c OK [09:33:02]MH_I2C_Read... [09:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:02]Read from MH i2c: E2 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 0E 00 [09:33:02]MH_I2C_Read... [09:33:02]Read from MH i2c: E2 0E 00 DE 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7E [09:33:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:33:02]wFMCommunicate OK [09:33:02]SAM_PROTO_GetShiftState done [09:33:02]FM_GetShiftState done [09:33:02]req_shift_opened done [09:33:02]requested_item shift.open_date is exist - process it [09:33:02]req_shift_open_date [09:33:02]req_shift_open_date done [09:33:02]produce_requested_data done [09:33:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201801,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:33:02]process_action_free close_receipt [09:33:02]json_value_free [09:33:02]json_value_free done [09:33:02]process_json_proto returns [09:33:02]Send response to host [09:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201801,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:33:02]free response buf [09:33:02]execute_script done [09:33:02]execute_script returns [09:33:02]free content buf [09:33:02]Sock 8.Close socket [09:33:02]Sock 8.Thread stoped [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:13]accept exits with 9 [09:33:13]New connection [09:33:13]New thread 3066936676 created [09:33:13]Thread 3067080036 joined [09:33:13]Waiting for new connection... [09:33:13] Sock 9.Parse request [09:33:13]Sock 9.Check first char [09:33:13]Sock 9.First char is OK [09:33:13]request: POST /json_proto HTTP/1.0 [09:33:13]Method: POST [09:33:13]URL: /json_proto [09:33:13]Method is POST - this is cgi request [09:33:13]url: /json_proto [09:33:13]query_string will be loaded in cgi processing [09:33:13]execute_cgi json_proto POST (null) [09:33:13]execute_cgi path=json_proto method=POST [09:33:13]POST find Content-Length [09:33:13]Host: 172.17.63.195:8080 [09:33:13]Content-Length: 677 [09:33:13]Content-Type: application/json [09:33:13] [09:33:13]POST finish read [09:33:13]Found Content-Length = 677 [09:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:13]execute_script... [09:33:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:13]POST & json_proto [09:33:13]process_json_proto [09:33:13]json parsed OK: [09:33:13]protocol is kg_v1.0 [09:33:13]action value=close_receipt [09:33:13]process_action close_receipt [09:33:13]cmd_close_receipt [09:33:13]MH_GetDate [09:33:13]Write to MH i2c: F0 00 00 DF 21 EF [09:33:13]Write i2c OK [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: F0 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: F0 09 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: F0 09 00 DF 21 00 DD 08 1E 67 68 46 19 67 90 [09:33:13]GetLastDocTimeStamp 1730021582 [09:33:13]current date 1730021597 [09:33:13]FM_GetShiftState [09:33:13]SAM_PROTO_GetShiftState [09:33:13]wFMCommunicate request_size=4 [09:33:13]MH_SAM_APDU [09:33:13]CAPDU: 80 13 01 00 [09:33:13]Write to MH i2c: E2 08 00 E0 21 80 13 01 00 00 00 00 00 7E [09:33:13]Write i2c OK [09:33:13]MH_I2C_Read... [09:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:13]Read from MH i2c: E2 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 0E 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 0E 00 E0 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 80 [09:33:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:33:13]wFMCommunicate OK [09:33:13]SAM_PROTO_GetShiftState done [09:33:13]FM_GetShiftState done [09:33:13]opened in 1729987312 [09:33:13]opened+sec_in_day 1730073712 [09:33:13]quantity*price = 40068 [09:33:13]sum+1 = 40069 [09:33:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 94 27.10.2024 09:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201802 ФПД: 92414576327898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093317&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201802&fm=92414576327898&tin=02508201610067®Number=0000000000091777&sum=40000 [09:33:14]StoreToDocumentArchive [09:33:14]shift 544 fd 201802 [09:33:14]save to /storage/0544/doc_00201802 [09:33:14]save last doc name /storage/0544/doc_00201802 to /storage/kkm_last_doc_name [09:33:14]save OK [09:33:14]Clear old archive folders... [09:33:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:14]tlvbuf is B6EF9490 [09:33:14]SAM_PROTO_ClearQueue [09:33:14]wFMCommunicate request_size=4 [09:33:14]MH_SAM_APDU [09:33:14]CAPDU: 80 09 00 00 [09:33:14]Write to MH i2c: E2 08 00 ED 21 80 09 00 00 00 00 00 00 80 [09:33:14]Write i2c OK [09:33:14]MH_I2C_Read... [09:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:14]Read from MH i2c: E2 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: E2 03 00 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [09:33:14]RAPDU: 90 00 [09:33:14]wFMCommunicate OK [09:33:14]SAM_PROTO_ClearQueue done [09:33:14]KKMCreateOFDPacket [09:33:14]OFDProtocolAddRootSTLVToBuf [09:33:14]FM_MakeSignedData [09:33:14]FM_MakeSignedData [09:33:14]SAM_PROTO_SignData [09:33:14]wFMCommunicate request_size=4 [09:33:14]MH_SAM_APDU [09:33:14]CAPDU: 80 0D 01 02 [09:33:14]Write to MH i2c: E2 08 00 EE 21 80 0D 01 02 00 00 00 00 88 [09:33:14]Write i2c OK [09:33:14]MH_I2C_Read... [09:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:14]Read from MH i2c: E2 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: E2 03 00 [09:33:14]MH_I2C_Read... [09:33:14]Read from MH i2c: E2 03 00 EE 21 00 90 00 83 [09:33:14]RAPDU: 90 00 [09:33:14]wFMCommunicate OK [09:33:14]wFMCommunicate request_size=255 [09:33:14]MH_SAM_APDU [09:33:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 5E 00 00 00 F4 03 04 00 DD 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 14 03 00 35 04 06 00 54 [09:33:14]Write to MH i2c: E2 02 01 EF 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 5E 00 00 00 F4 03 04 00 DD 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 14 03 00 35 04 06 00 54 00 00 6B [09:33:14]Write i2c OK [09:33:14]MH_I2C_Read... [09:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:15]Read from MH i2c: E2 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 03 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 03 00 EF 21 00 90 00 84 [09:33:15]RAPDU: 90 00 [09:33:15]wFMCommunicate OK [09:33:15]wFMCommunicate request_size=10 [09:33:15]MH_SAM_APDU [09:33:15]CAPDU: 80 0D 02 02 05 0C F1 FE 7C DA [09:33:15]Write to MH i2c: E2 0D 00 F0 21 80 0D 02 02 05 00 0C F1 FE 7C DA 00 00 E6 [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:15]Read from MH i2c: E2 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 03 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 03 00 F0 21 00 90 00 85 [09:33:15]RAPDU: 90 00 [09:33:15]wFMCommunicate OK [09:33:15]wFMCommunicate request_size=4 [09:33:15]MH_SAM_APDU [09:33:15]CAPDU: 80 0D 03 02 [09:33:15]Write to MH i2c: E2 08 00 F1 21 80 0D 03 02 00 00 00 00 8D [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:15]Read from MH i2c: E2 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 0B 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 0B 00 F1 21 00 D3 8B 58 FA 0F 0C EB F9 90 00 3D [09:33:15]RAPDU: D3 8B 58 FA 0F 0C EB F9 90 00 [09:33:15]wFMCommunicate OK [09:33:15]SAM_PROTO_SignData done [09:33:15]FM_MakeSignedData done [09:33:15]CreateOFDProtocolMessage [09:33:15]wFMCommunicate request_size=4 [09:33:15]MH_SAM_APDU [09:33:15]CAPDU: 80 11 00 00 [09:33:15]Write to MH i2c: E2 08 00 F2 21 80 11 00 00 00 00 00 00 8D [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:15]Read from MH i2c: E2 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 17 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: E2 17 00 F2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E2 [09:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:33:15]wFMCommunicate OK [09:33:15]CreateOFDProtocolMessage done [09:33:15]OFDSenderStorePacket 201802 [09:33:15]StoreOFDPacket docnum=201802 [09:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 19 D0 07 01 50 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 5E 00 00 00 F4 03 04 00 DD 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 14 03 00 35 04 06 00 54 0C F1 FE 7C DA D3 8B 58 FA 0F 0C EB F9 [09:33:15]CheckFolder [09:33:15]dirname=/storage/ofd_packets [09:33:15]CheckFolder done [09:33:15]ProducePacketName [09:33:15]name=ofd_packets/00201802 [09:33:15]NVStorageSaveData ofd_packets/00201802 [09:33:15]File name is /storage/ofd_packets/00201802 [09:33:15]Write 301 bytes [09:33:15]NVStorageSaveData done [09:33:15]OFDSenderStorePacket done [09:33:15]KKMCreateOFDPacket done [09:33:15]NVStorageSaveData kkm_last_timestamp [09:33:15]File name is /storage/kkm_last_timestamp [09:33:15]Write 4 bytes [09:33:15]NVStorageSaveData done [09:33:15]ExternCall_PrintAddStr [09:33:15]wPrintStart [09:33:15]Write to MH i2c: 01 00 00 F3 21 14 [09:33:15]Write i2c OK [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: 01 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: 01 07 00 [09:33:15]MH_I2C_Read... [09:33:15]Read from MH i2c: 01 07 00 F3 21 00 00 00 00 00 FF 0F 29 [09:33:15]RasterBufferAndPrint [09:33:15]line Счет N : (1)449561 [09:33:15]line ИНН: 02508201610067 [09:33:15]line Контрольно-Кассовый Чек [09:33:15]line ПРОДАЖА [09:33:15]line ТРК (МРК, ГНК) : 61 [09:33:15]line Товар: 2710124500 [09:33:15]line Аи-95-К-3 [09:33:15]line 5.400 * 74.20 [09:33:15]line = 400.68 [09:33:15]line НДС 12% НСП 1% [09:33:15]line > о реализуемом товаре [09:33:15]line ОКРУГЛЕНИЕ: -0.68 [09:33:15]line ИТОГО: 400.00 [09:33:15]line Внесено: 400.00 [09:33:15]line СДАЧА: 0.00 [09:33:15]line НСП 1% : 3.55 [09:33:15]line НДС 12% : 42.55 [09:33:15]line Наличными: 400.00 [09:33:15]line Безнал.: 0.00 [09:33:15]line Место: АЗС № 171 "Партнер Нефть" [09:33:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:33:15]line СНО: Общий режим [09:33:15]line Чек 94 27.10.2024 09:33 [09:33:15]line Смена: 544 ФФД: 1.0 [09:33:15]line ЗНМ: 0300000109 [09:33:15]line РНМ: 0000000000091777 [09:33:15]line Версия ККМ: 001 [09:33:15]line ФМ: 0000000000871756 [09:33:15]line ФД: 201802 [09:33:15]line ФПД: 92414576327898 [09:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093317&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201802&fm=92414576327898&tin=02508201610067®Number=0000000000091777&sum=40000 [09:33:15]OFD Sender: Processing packet 201802 [packets to send 112, broken 111] [09:33:15]ProducePacketName [09:33:15]name=ofd_packets/00201802 [09:33:15]OFD Sender: To server: pG, [09:33:15]CommunicateWithHost lk.salyk.kg:30040 [09:33:15]ConnectInit lk.salyk.kg [09:33:15]written 0, free lines is 4095 [09:33:15]Connected sock=10 [09:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 19 D0 07 01 50 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 5E 00 00 00 F4 03 04 00 DD 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 14 03 00 35 04 06 00 54 0C F1 FE 7C DA D3 8B 58 FA 0F 0C EB F9 [09:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 70 2F 47 00 1C F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 14 03 00 F4 03 04 00 83 B4 1D 67 B6 04 01 00 00 46 44 6F 41 AF 1E F1 1B [09:33:16]CommunicateWithHost err = 0 [09:33:16]CheckOFDResponse [09:33:16]1017 (14) - 77093643461234 [09:33:16]1041 (16) - 0000000000871756 [09:33:16]1040 (4) - 201802 [09:33:16]1012 (4) - 27.10.2024 03:33 [09:33:16]1206 (1) - 0 [09:33:16]OFD Sender: Remove packet 201802 [09:33:16]ProducePacketName [09:33:16]name=ofd_packets/00201802 [09:33:16]NVStorageDeleteData [09:33:16]Write to MH i2c: 01 00 00 1E 22 40 [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: 01 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: 01 07 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: 01 07 00 1E 22 00 00 00 00 00 8C 0C DF [09:33:16]RasterBufferAndPrint [09:33:16]line [09:33:16]line [09:33:16]line [09:33:16]line [09:33:16]line [09:33:16]written 0, free lines is 3217 [09:33:16]MH_Cut [09:33:16]Write to MH i2c: D1 01 00 25 22 01 19 [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: D1 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: D1 01 00 [09:33:16]MH_I2C_Read... [09:33:16]Read from MH i2c: D1 01 00 25 22 00 18 [09:33:16]Write to MH i2c: 01 00 00 26 22 48 [09:33:16]Write i2c OK [09:33:16]MH_I2C_Read... [09:33:16]OFD Sender: No OFD packet to send [09:33:17]*** Cut start [09:33:17]*** Purtial cut [09:33:17]*** Stage 1: CUTSNS_PIN = 1 [09:33:17]Read from MH i2c: 01 [09:33:17]MH_I2C_Read... [09:33:17]*** Stop cut motor [09:33:17]*** Cut end [09:33:17]Read from MH i2c: 01 07 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: 01 07 00 26 22 00 00 00 00 00 FF 0F 5D [09:33:17]process_action close_receipt done [09:33:17]requested_data is exist [09:33:17]produce_requested_data [09:33:17]requested_item fm.sn is exist - process it [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 11 00 00 [09:33:17]Write to MH i2c: E2 08 00 27 22 80 11 00 00 00 00 00 00 C3 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 17 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 17 00 27 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [09:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:33:17]wFMCommunicate OK [09:33:17]requested_item fd.num is exist - process it [09:33:17]SAM_PROTO_GetFieldsCounters [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 13 00 00 [09:33:17]Write to MH i2c: E2 08 00 28 22 80 13 00 00 00 00 00 00 C6 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 62 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 62 00 28 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4A 14 03 00 0E 04 04 00 20 02 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 8C [09:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4A 14 03 00 0E 04 04 00 20 02 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 [09:33:17]wFMCommunicate OK [09:33:17]SAM_PROTO_GetFieldsCounters done [09:33:17]requested_item shift.num is exist - process it [09:33:17]requested_item shift.opened is exist - process it [09:33:17]req_shift_opened [09:33:17]FM_GetShiftState [09:33:17]SAM_PROTO_GetShiftState [09:33:17]wFMCommunicate request_size=4 [09:33:17]MH_SAM_APDU [09:33:17]CAPDU: 80 13 01 00 [09:33:17]Write to MH i2c: E2 08 00 29 22 80 13 01 00 00 00 00 00 C8 [09:33:17]Write i2c OK [09:33:17]MH_I2C_Read... [09:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:17]Read from MH i2c: E2 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 0E 00 [09:33:17]MH_I2C_Read... [09:33:17]Read from MH i2c: E2 0E 00 29 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CA [09:33:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:33:17]wFMCommunicate OK [09:33:17]SAM_PROTO_GetShiftState done [09:33:17]FM_GetShiftState done [09:33:17]req_shift_opened done [09:33:17]requested_item shift.open_date is exist - process it [09:33:17]req_shift_open_date [09:33:17]req_shift_open_date done [09:33:17]produce_requested_data done [09:33:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201802,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:33:17]process_action_free close_receipt [09:33:17]json_value_free [09:33:17]json_value_free done [09:33:17]process_json_proto returns [09:33:17]Send response to host [09:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201802,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:33:17]free response buf [09:33:17]execute_script done [09:33:17]execute_script returns [09:33:17]free content buf [09:33:17]Sock 9.Close socket [09:33:17]Sock 9.Thread stoped [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:29]accept exits with 8 [09:33:29]New connection [09:33:29]New thread 3067080036 created [09:33:29]Thread 3066936676 joined [09:33:29]Waiting for new connection... [09:33:29] Sock 8.Parse request [09:33:29]Sock 8.Check first char [09:33:29]Sock 8.First char is OK [09:33:29]request: POST /json_proto HTTP/1.0 [09:33:29]Method: POST [09:33:29]URL: /json_proto [09:33:29]Method is POST - this is cgi request [09:33:29]url: /json_proto [09:33:29]query_string will be loaded in cgi processing [09:33:29]execute_cgi json_proto POST (null) [09:33:29]execute_cgi path=json_proto method=POST [09:33:29]POST find Content-Length [09:33:29]Host: 172.17.63.195:8080 [09:33:29]Content-Length: 677 [09:33:29]Content-Type: application/json [09:33:29] [09:33:29]POST finish read [09:33:29]Found Content-Length = 677 [09:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:29]execute_script... [09:33: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)449562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:29]POST & json_proto [09:33:29]process_json_proto [09:33:29]json parsed OK: [09:33:29]protocol is kg_v1.0 [09:33:29]action value=close_receipt [09:33:29]process_action close_receipt [09:33:29]cmd_close_receipt [09:33:29]MH_GetDate [09:33:29]Write to MH i2c: F0 00 00 2A 22 3B [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: F0 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: F0 09 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: F0 09 00 2A 22 00 ED 08 1E 67 68 46 19 67 EC [09:33:29]GetLastDocTimeStamp 1730021597 [09:33:29]current date 1730021613 [09:33:29]FM_GetShiftState [09:33:29]SAM_PROTO_GetShiftState [09:33:29]wFMCommunicate request_size=4 [09:33:29]MH_SAM_APDU [09:33:29]CAPDU: 80 13 01 00 [09:33:29]Write to MH i2c: E2 08 00 2B 22 80 13 01 00 00 00 00 00 CA [09:33:29]Write i2c OK [09:33:29]MH_I2C_Read... [09:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:29]Read from MH i2c: E2 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 0E 00 [09:33:29]MH_I2C_Read... [09:33:29]Read from MH i2c: E2 0E 00 2B 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CC [09:33:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:33:29]wFMCommunicate OK [09:33:29]SAM_PROTO_GetShiftState done [09:33:29]FM_GetShiftState done [09:33:29]opened in 1729987312 [09:33:29]opened+sec_in_day 1730073712 [09:33:29]quantity*price = 50041 [09:33:29]sum+1 = 50042 [09:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 95 27.10.2024 09:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201803 ФПД: 64723788334691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093333&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201803&fm=64723788334691&tin=02508201610067®Number=0000000000091777&sum=50000 [09:33:30]StoreToDocumentArchive [09:33:30]shift 544 fd 201803 [09:33:30]save to /storage/0544/doc_00201803 [09:33:30]save last doc name /storage/0544/doc_00201803 to /storage/kkm_last_doc_name [09:33:30]save OK [09:33:30]Clear old archive folders... [09:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:30]tlvbuf is 000C8850 [09:33:30]SAM_PROTO_ClearQueue [09:33:30]wFMCommunicate request_size=4 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 09 00 00 [09:33:30]Write to MH i2c: E2 08 00 38 22 80 09 00 00 00 00 00 00 CC [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:30]Read from MH i2c: E2 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 03 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 03 00 38 22 00 90 00 CE [09:33:30]RAPDU: 90 00 [09:33:30]wFMCommunicate OK [09:33:30]SAM_PROTO_ClearQueue done [09:33:30]KKMCreateOFDPacket [09:33:30]OFDProtocolAddRootSTLVToBuf [09:33:30]FM_MakeSignedData [09:33:30]FM_MakeSignedData [09:33:30]SAM_PROTO_SignData [09:33:30]wFMCommunicate request_size=4 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 0D 01 02 [09:33:30]Write to MH i2c: E2 08 00 39 22 80 0D 01 02 00 00 00 00 D4 [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:30]Read from MH i2c: E2 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 03 00 [09:33:30]MH_I2C_Read... [09:33:30]Read from MH i2c: E2 03 00 39 22 00 90 00 CF [09:33:30]RAPDU: 90 00 [09:33:30]wFMCommunicate OK [09:33:30]wFMCommunicate request_size=255 [09:33:30]MH_SAM_APDU [09:33:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5F 00 00 00 F4 03 04 00 ED 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 14 03 00 35 04 06 00 3A [09:33:30]Write to MH i2c: E2 02 01 3A 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5F 00 00 00 F4 03 04 00 ED 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 14 03 00 35 04 06 00 3A 00 00 FF [09:33:30]Write i2c OK [09:33:30]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 3A 22 00 90 00 D0 [09:33:31]RAPDU: 90 00 [09:33:31]wFMCommunicate OK [09:33:31]wFMCommunicate request_size=10 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 0D 02 02 05 DD AE 69 86 63 [09:33:31]Write to MH i2c: E2 0D 00 3B 22 80 0D 02 02 05 00 DD AE 69 86 63 00 00 BE [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 03 00 3B 22 00 90 00 D1 [09:33:31]RAPDU: 90 00 [09:33:31]wFMCommunicate OK [09:33:31]wFMCommunicate request_size=4 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 0D 03 02 [09:33:31]Write to MH i2c: E2 08 00 3C 22 80 0D 03 02 00 00 00 00 D9 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 0B 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 0B 00 3C 22 00 12 94 27 F0 C9 C8 50 34 90 00 AC [09:33:31]RAPDU: 12 94 27 F0 C9 C8 50 34 90 00 [09:33:31]wFMCommunicate OK [09:33:31]SAM_PROTO_SignData done [09:33:31]FM_MakeSignedData done [09:33:31]CreateOFDProtocolMessage [09:33:31]wFMCommunicate request_size=4 [09:33:31]MH_SAM_APDU [09:33:31]CAPDU: 80 11 00 00 [09:33:31]Write to MH i2c: E2 08 00 3D 22 80 11 00 00 00 00 00 00 D9 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:31]Read from MH i2c: E2 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 17 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: E2 17 00 3D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2E [09:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:33:31]wFMCommunicate OK [09:33:31]CreateOFDProtocolMessage done [09:33:31]OFDSenderStorePacket 201803 [09:33:31]StoreOFDPacket docnum=201803 [09:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8E 63 07 01 12 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5F 00 00 00 F4 03 04 00 ED 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 14 03 00 35 04 06 00 3A DD AE 69 86 63 12 94 27 F0 C9 C8 50 34 [09:33:31]CheckFolder [09:33:31]dirname=/storage/ofd_packets [09:33:31]CheckFolder done [09:33:31]ProducePacketName [09:33:31]name=ofd_packets/00201803 [09:33:31]NVStorageSaveData ofd_packets/00201803 [09:33:31]File name is /storage/ofd_packets/00201803 [09:33:31]Write 301 bytes [09:33:31]NVStorageSaveData done [09:33:31]OFDSenderStorePacket done [09:33:31]KKMCreateOFDPacket done [09:33:31]NVStorageSaveData kkm_last_timestamp [09:33:31]File name is /storage/kkm_last_timestamp [09:33:31]Write 4 bytes [09:33:31]NVStorageSaveData done [09:33:31]ExternCall_PrintAddStr [09:33:31]wPrintStart [09:33:31]Write to MH i2c: 01 00 00 3E 22 60 [09:33:31]Write i2c OK [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: 01 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: 01 07 00 [09:33:31]MH_I2C_Read... [09:33:31]Read from MH i2c: 01 07 00 3E 22 00 00 00 00 00 FF 0F 75 [09:33:31]RasterBufferAndPrint [09:33:31]line Счет N : (1)449562 [09:33:31]line ИНН: 02508201610067 [09:33:31]line Контрольно-Кассовый Чек [09:33:31]line ПРОДАЖА [09:33:31]line ТРК (МРК, ГНК) : 41 [09:33:31]line Товар: 2710124130 [09:33:31]line Аи-92-К-2 [09:33:31]line 7.480 * 66.90 [09:33:31]line = 500.41 [09:33:31]line НДС 12% НСП 1% [09:33:31]line > о реализуемом товаре [09:33:31]line ОКРУГЛЕНИЕ: -0.41 [09:33:31]line ИТОГО: 500.00 [09:33:31]line Внесено: 500.00 [09:33:31]line СДАЧА: 0.00 [09:33:31]line НСП 1% : 4.43 [09:33:31]line НДС 12% : 53.14 [09:33:31]line Наличными: 500.00 [09:33:31]line Безнал.: 0.00 [09:33:31]line Место: АЗС № 171 "Партнер Нефть" [09:33:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:33:31]line СНО: Общий режим [09:33:31]line Чек 95 27.10.2024 09:33 [09:33:31]line Смена: 544 ФФД: 1.0 [09:33:31]line ЗНМ: 0300000109 [09:33:31]line РНМ: 0000000000091777 [09:33:31]line Версия ККМ: 001 [09:33:31]line ФМ: 0000000000871756 [09:33:31]line ФД: 201803 [09:33:31]line ФПД: 64723788334691 [09:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093333&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201803&fm=64723788334691&tin=02508201610067®Number=0000000000091777&sum=50000 [09:33:31]OFD Sender: Processing packet 201803 [packets to send 112, broken 111] [09:33:31]ProducePacketName [09:33:31]name=ofd_packets/00201803 [09:33:31]OFD Sender: To server: pG, [09:33:31]CommunicateWithHost lk.salyk.kg:30040 [09:33:31]ConnectInit lk.salyk.kg [09:33:31]written 0, free lines is 4095 [09:33:31]Connected sock=10 [09:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8E 63 07 01 12 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5F 00 00 00 F4 03 04 00 ED 08 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 14 03 00 35 04 06 00 3A DD AE 69 86 63 12 94 27 F0 C9 C8 50 34 [09:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CA 0C 47 00 6B F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 14 03 00 F4 03 04 00 93 B4 1D 67 B6 04 01 00 00 DB 77 B0 11 54 E8 55 7E [09:33:32]CommunicateWithHost err = 0 [09:33:32]CheckOFDResponse [09:33:32]1017 (14) - 77093643461234 [09:33:32]1041 (16) - 0000000000871756 [09:33:32]1040 (4) - 201803 [09:33:32]1012 (4) - 27.10.2024 03:33 [09:33:32]1206 (1) - 0 [09:33:32]OFD Sender: Remove packet 201803 [09:33:32]ProducePacketName [09:33:32]name=ofd_packets/00201803 [09:33:32]NVStorageDeleteData [09:33:32]Write to MH i2c: 01 00 00 69 22 8B [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 07 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: 01 07 00 69 22 00 00 00 00 00 92 0C 30 [09:33:32]RasterBufferAndPrint [09:33:32]line [09:33:32]line [09:33:32]line [09:33:32]line [09:33:32]line [09:33:32]written 0, free lines is 3223 [09:33:32]MH_Cut [09:33:32]Write to MH i2c: D1 01 00 70 22 01 64 [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: D1 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: D1 01 00 [09:33:32]MH_I2C_Read... [09:33:32]Read from MH i2c: D1 01 00 70 22 00 63 [09:33:32]Write to MH i2c: 01 00 00 71 22 93 [09:33:32]Write i2c OK [09:33:32]MH_I2C_Read... [09:33:32]OFD Sender: No OFD packet to send [09:33:33]*** Cut start [09:33:33]*** Purtial cut [09:33:33]*** Stage 1: CUTSNS_PIN = 1 [09:33:33]Read from MH i2c: 01 [09:33:33]MH_I2C_Read... [09:33:33]*** Stop cut motor [09:33:33]*** Cut end [09:33:33]Read from MH i2c: 01 07 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: 01 07 00 71 22 00 00 00 00 00 FF 0F A8 [09:33:33]process_action close_receipt done [09:33:33]requested_data is exist [09:33:33]produce_requested_data [09:33:33]requested_item fm.sn is exist - process it [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 11 00 00 [09:33:33]Write to MH i2c: E2 08 00 72 22 80 11 00 00 00 00 00 00 0E [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 17 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 17 00 72 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [09:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:33:33]wFMCommunicate OK [09:33:33]requested_item fd.num is exist - process it [09:33:33]SAM_PROTO_GetFieldsCounters [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 13 00 00 [09:33:33]Write to MH i2c: E2 08 00 73 22 80 13 00 00 00 00 00 00 11 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 62 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 62 00 73 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4B 14 03 00 0E 04 04 00 20 02 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 DB [09:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4B 14 03 00 0E 04 04 00 20 02 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 [09:33:33]wFMCommunicate OK [09:33:33]SAM_PROTO_GetFieldsCounters done [09:33:33]requested_item shift.num is exist - process it [09:33:33]requested_item shift.opened is exist - process it [09:33:33]req_shift_opened [09:33:33]FM_GetShiftState [09:33:33]SAM_PROTO_GetShiftState [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 13 01 00 [09:33:33]Write to MH i2c: E2 08 00 74 22 80 13 01 00 00 00 00 00 13 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 0E 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 0E 00 74 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 15 [09:33:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:33:33]wFMCommunicate OK [09:33:33]SAM_PROTO_GetShiftState done [09:33:33]FM_GetShiftState done [09:33:33]req_shift_opened done [09:33:33]requested_item shift.open_date is exist - process it [09:33:33]req_shift_open_date [09:33:33]req_shift_open_date done [09:33:33]produce_requested_data done [09:33:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201803,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:33:33]process_action_free close_receipt [09:33:33]json_value_free [09:33:33]json_value_free done [09:33:33]process_json_proto returns [09:33:33]Send response to host [09:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201803,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:33:33]free response buf [09:33:33]execute_script done [09:33:33]execute_script returns [09:33:33]free content buf [09:33:33]Sock 8.Close socket [09:33:33]Sock 8.Thread stoped [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:29]accept exits with 9 [09:36:29]New connection [09:36:29]New thread 3066936676 created [09:36:29]Thread 3067080036 joined [09:36:29]Waiting for new connection... [09:36:29] Sock 9.Parse request [09:36:29]Sock 9.Check first char [09:36:29]Sock 9.First char is OK [09:36:29]request: POST /json_proto HTTP/1.0 [09:36:29]Method: POST [09:36:29]URL: /json_proto [09:36:29]Method is POST - this is cgi request [09:36:29]url: /json_proto [09:36:29]query_string will be loaded in cgi processing [09:36:29]execute_cgi json_proto POST (null) [09:36:29]execute_cgi path=json_proto method=POST [09:36:29]POST find Content-Length [09:36:29]Host: 172.17.63.195:8080 [09:36:29]Content-Length: 632 [09:36:29]Content-Type: application/json [09:36:29] [09:36:29]POST finish read [09:36:29]Found Content-Length = 632 [09:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:36:29]execute_script... [09:36: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)449563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:36:29]POST & json_proto [09:36:29]process_json_proto [09:36:29]json parsed OK: [09:36:29]protocol is kg_v1.0 [09:36:29]action value=close_receipt [09:36:29]process_action close_receipt [09:36:29]cmd_close_receipt [09:36:29]MH_GetDate [09:36:29]Write to MH i2c: F0 00 00 75 22 86 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: F0 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: F0 09 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: F0 09 00 75 22 00 A1 09 1E 67 68 46 19 67 EC [09:36:29]GetLastDocTimeStamp 1730021613 [09:36:29]current date 1730021793 [09:36:29]FM_GetShiftState [09:36:29]SAM_PROTO_GetShiftState [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 13 01 00 [09:36:29]Write to MH i2c: E2 08 00 76 22 80 13 01 00 00 00 00 00 15 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 76 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 17 [09:36:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:36:29]wFMCommunicate OK [09:36:29]SAM_PROTO_GetShiftState done [09:36:29]FM_GetShiftState done [09:36:29]opened in 1729987312 [09:36:29]opened+sec_in_day 1730073712 [09:36:29]quantity*price = 50000 [09:36:29]sum+1 = 50001 [09:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 96 27.10.2024 09:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201804 ФПД: 237263778745705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093633&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201804&fm=237263778745705&tin=02508201610067®Number=0000000000091777&sum=50000 [09:36:30]StoreToDocumentArchive [09:36:30]shift 544 fd 201804 [09:36:30]save to /storage/0544/doc_00201804 [09:36:30]save last doc name /storage/0544/doc_00201804 to /storage/kkm_last_doc_name [09:36:30]save OK [09:36:30]Clear old archive folders... [09:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:36:30]tlvbuf is 000D8F50 [09:36:30]SAM_PROTO_ClearQueue [09:36:30]wFMCommunicate request_size=4 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 09 00 00 [09:36:30]Write to MH i2c: E2 08 00 83 22 80 09 00 00 00 00 00 00 17 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 83 22 00 90 00 19 [09:36:30]RAPDU: 90 00 [09:36:30]wFMCommunicate OK [09:36:30]SAM_PROTO_ClearQueue done [09:36:30]KKMCreateOFDPacket [09:36:30]OFDProtocolAddRootSTLVToBuf [09:36:30]FM_MakeSignedData [09:36:30]FM_MakeSignedData [09:36:30]SAM_PROTO_SignData [09:36:30]wFMCommunicate request_size=4 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 0D 01 02 [09:36:30]Write to MH i2c: E2 08 00 84 22 80 0D 01 02 00 00 00 00 1F [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 84 22 00 90 00 1A [09:36:30]RAPDU: 90 00 [09:36:30]wFMCommunicate OK [09:36:30]wFMCommunicate request_size=255 [09:36:30]MH_SAM_APDU [09:36: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 20 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 60 00 00 00 F4 03 04 00 A1 09 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 14 03 00 35 04 06 00 [09:36:30]Write to MH i2c: E2 02 01 85 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 A1 09 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 14 03 00 35 04 06 00 00 00 24 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 03 00 85 22 00 90 00 1B [09:36:30]RAPDU: 90 00 [09:36:30]wFMCommunicate OK [09:36:30]wFMCommunicate request_size=11 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 0D 02 02 06 D7 CA 47 40 0D 69 [09:36:30]Write to MH i2c: E2 0E 00 86 22 80 0D 02 02 06 00 D7 CA 47 40 0D 69 00 00 CC [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:31]Read from MH i2c: E2 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 03 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 03 00 86 22 00 90 00 1C [09:36:31]RAPDU: 90 00 [09:36:31]wFMCommunicate OK [09:36:31]wFMCommunicate request_size=4 [09:36:31]MH_SAM_APDU [09:36:31]CAPDU: 80 0D 03 02 [09:36:31]Write to MH i2c: E2 08 00 87 22 80 0D 03 02 00 00 00 00 24 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:31]Read from MH i2c: E2 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 0B 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 0B 00 87 22 00 82 90 41 FF 4C 38 53 1F 90 00 6D [09:36:31]RAPDU: 82 90 41 FF 4C 38 53 1F 90 00 [09:36:31]wFMCommunicate OK [09:36:31]SAM_PROTO_SignData done [09:36:31]FM_MakeSignedData done [09:36:31]CreateOFDProtocolMessage [09:36:31]wFMCommunicate request_size=4 [09:36:31]MH_SAM_APDU [09:36:31]CAPDU: 80 11 00 00 [09:36:31]Write to MH i2c: E2 08 00 88 22 80 11 00 00 00 00 00 00 24 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:31]Read from MH i2c: E2 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 17 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 17 00 88 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 79 [09:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:36:31]wFMCommunicate OK [09:36:31]CreateOFDProtocolMessage done [09:36:31]OFDSenderStorePacket 201804 [09:36:31]StoreOFDPacket docnum=201804 [09:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 D3 09 08 01 23 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 A1 09 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 14 03 00 35 04 06 00 D7 CA 47 40 0D 69 82 90 41 FF 4C 38 53 1F [09:36:31]CheckFolder [09:36:31]dirname=/storage/ofd_packets [09:36:31]CheckFolder done [09:36:31]ProducePacketName [09:36:31]name=ofd_packets/00201804 [09:36:31]NVStorageSaveData ofd_packets/00201804 [09:36:31]File name is /storage/ofd_packets/00201804 [09:36:31]Write 302 bytes [09:36:31]NVStorageSaveData done [09:36:31]OFDSenderStorePacket done [09:36:31]KKMCreateOFDPacket done [09:36:31]NVStorageSaveData kkm_last_timestamp [09:36:31]File name is /storage/kkm_last_timestamp [09:36:31]Write 4 bytes [09:36:31]NVStorageSaveData done [09:36:31]OFD Sender: Processing packet 201804 [packets to send 112, broken 111] [09:36:31]ProducePacketName [09:36:31]name=ofd_packets/00201804 [09:36:31]OFD Sender: To server: pG, [09:36:31]CommunicateWithHost lk.salyk.kg:30040 [09:36:31]ConnectInit lk.salyk.kg [09:36:31]ExternCall_PrintAddStr [09:36:31]wPrintStart [09:36:31]Write to MH i2c: 01 00 00 89 22 AB [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 07 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 07 00 89 22 00 00 00 00 00 FF 0F C0 [09:36:31]RasterBufferAndPrint [09:36:31]line Счет N : (1)449563 [09:36:31]line ИНН: 02508201610067 [09:36:31]line Контрольно-Кассовый Чек [09:36:31]line ПРОДАЖА [09:36:31]line ТРК (МРК, ГНК) : 42 [09:36:31]line Товар: 2710124130 [09:36:31]line SUPER 92-К-5 [09:36:31]line 7.310 * 68.40 [09:36:31]line = 500.00 [09:36:31]line НДС 12% НСП 1% [09:36:31]line > о реализуемом товаре [09:36:31]line ИТОГО: 500.00 [09:36:31]line НСП 1% : 4.42 [09:36:31]line НДС 12% : 53.10 [09:36:31]line Наличными: 500.00 [09:36:31]line Безнал.: 0.00 [09:36:31]line Место: АЗС № 171 "Партнер Нефть" [09:36:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:36:31]line СНО: Общий режим [09:36:31]line Чек 96 27.10.2024 09:36 [09:36:31]line Смена: 544 ФФД: 1.0 [09:36:31]line ЗНМ: 0300000109 [09:36:31]line РНМ: 0000000000091777 [09:36:31]line Версия ККМ: 001 [09:36:31]line ФМ: 0000000000871756 [09:36:31]line ФД: 201804 [09:36:31]line ФПД: 237263778745705 [09:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093633&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201804&fm=237263778745705&tin=02508201610067®Number=0000000000091777&sum=50000 [09:36:31]Connected sock=11 [09:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 D3 09 08 01 23 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 A1 09 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 14 03 00 35 04 06 00 D7 CA 47 40 0D 69 82 90 41 FF 4C 38 53 1F [09:36:31]written 0, free lines is 4095 [09:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B8 C3 47 00 B9 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 14 03 00 F4 03 04 00 47 B5 1D 67 B6 04 01 00 00 8E 8B C7 53 B7 73 E7 A3 [09:36:31]CommunicateWithHost err = 0 [09:36:31]CheckOFDResponse [09:36:31]1017 (14) - 77093643461234 [09:36:31]1041 (16) - 0000000000871756 [09:36:31]1040 (4) - 201804 [09:36:31]1012 (4) - 27.10.2024 03:36 [09:36:31]1206 (1) - 0 [09:36:31]OFD Sender: Remove packet 201804 [09:36:31]ProducePacketName [09:36:31]name=ofd_packets/00201804 [09:36:31]NVStorageDeleteData [09:36:31]Write to MH i2c: 01 00 00 B1 22 D3 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 07 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: 01 07 00 B1 22 00 00 00 00 00 CD 0C B3 [09:36:31]RasterBufferAndPrint [09:36:31]line [09:36:31]line [09:36:31]line [09:36:31]line [09:36:31]line [09:36:31]written 0, free lines is 3280 [09:36:31]MH_Cut [09:36:31]Write to MH i2c: D1 01 00 B8 22 01 AC [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: D1 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: D1 01 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: D1 01 00 B8 22 00 AB [09:36:31]Write to MH i2c: 01 00 00 B9 22 DB [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:32]OFD Sender: No OFD packet to send [09:36:32]*** Cut start [09:36:32]*** Purtial cut [09:36:32]*** Stage 1: CUTSNS_PIN = 1 [09:36:33]Read from MH i2c: 01 [09:36:33]MH_I2C_Read... [09:36:33]*** Stop cut motor [09:36:33]*** Cut end [09:36:33]Read from MH i2c: 01 07 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 07 00 B9 22 00 00 00 00 00 FF 0F F0 [09:36:33]process_action close_receipt done [09:36:33]requested_data is exist [09:36:33]produce_requested_data [09:36:33]requested_item fm.sn is exist - process it [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 11 00 00 [09:36:33]Write to MH i2c: E2 08 00 BA 22 80 11 00 00 00 00 00 00 56 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 17 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 17 00 BA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AB [09:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:36:33]wFMCommunicate OK [09:36:33]requested_item fd.num is exist - process it [09:36:33]SAM_PROTO_GetFieldsCounters [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 13 00 00 [09:36:33]Write to MH i2c: E2 08 00 BB 22 80 13 00 00 00 00 00 00 59 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 62 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 62 00 BB 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4C 14 03 00 0E 04 04 00 20 02 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 27 [09:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4C 14 03 00 0E 04 04 00 20 02 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 [09:36:33]wFMCommunicate OK [09:36:33]SAM_PROTO_GetFieldsCounters done [09:36:33]requested_item shift.num is exist - process it [09:36:33]requested_item shift.opened is exist - process it [09:36:33]req_shift_opened [09:36:33]FM_GetShiftState [09:36:33]SAM_PROTO_GetShiftState [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 13 01 00 [09:36:33]Write to MH i2c: E2 08 00 BC 22 80 13 01 00 00 00 00 00 5B [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 0E 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 0E 00 BC 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5D [09:36:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:36:33]wFMCommunicate OK [09:36:33]SAM_PROTO_GetShiftState done [09:36:33]FM_GetShiftState done [09:36:33]req_shift_opened done [09:36:33]requested_item shift.open_date is exist - process it [09:36:33]req_shift_open_date [09:36:33]req_shift_open_date done [09:36:33]produce_requested_data done [09:36:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201804,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:36:33]process_action_free close_receipt [09:36:33]json_value_free [09:36:33]json_value_free done [09:36:33]process_json_proto returns [09:36:33]Send response to host [09:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201804,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:36:33]free response buf [09:36:33]execute_script done [09:36:33]execute_script returns [09:36:33]free content buf [09:36:33]Sock 9.Close socket [09:36:33]Sock 9.Thread stoped [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]accept exits with 8 [09:37:27]New connection [09:37:27]New thread 3067080036 created [09:37:27]Thread 3066936676 joined [09:37:27]Waiting for new connection... [09:37:27] Sock 8.Parse request [09:37:27]Sock 8.Check first char [09:37:27]Sock 8.First char is OK [09:37:27]request: POST /json_proto HTTP/1.0 [09:37:27]Method: POST [09:37:27]URL: /json_proto [09:37:27]Method is POST - this is cgi request [09:37:27]url: /json_proto [09:37:27]query_string will be loaded in cgi processing [09:37:27]execute_cgi json_proto POST (null) [09:37:27]execute_cgi path=json_proto method=POST [09:37:27]POST find Content-Length [09:37:27]Host: 172.17.63.195:8080 [09:37:27]Content-Length: 677 [09:37:27]Content-Type: application/json [09:37:27] [09:37:27]POST finish read [09:37:27]Found Content-Length = 677 [09:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:37:27]execute_script... [09:37: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)449564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:37:27]POST & json_proto [09:37:27]process_json_proto [09:37:27]json parsed OK: [09:37:27]protocol is kg_v1.0 [09:37:27]action value=close_receipt [09:37:27]process_action close_receipt [09:37:27]cmd_close_receipt [09:37:27]MH_GetDate [09:37:27]Write to MH i2c: F0 00 00 BD 22 CE [09:37:27]Write i2c OK [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: F0 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: F0 09 00 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: F0 09 00 BD 22 00 DB 09 1E 67 68 46 19 67 6E [09:37:27]GetLastDocTimeStamp 1730021793 [09:37:27]current date 1730021851 [09:37:27]FM_GetShiftState [09:37:27]SAM_PROTO_GetShiftState [09:37:27]wFMCommunicate request_size=4 [09:37:27]MH_SAM_APDU [09:37:27]CAPDU: 80 13 01 00 [09:37:27]Write to MH i2c: E2 08 00 BE 22 80 13 01 00 00 00 00 00 5D [09:37:27]Write i2c OK [09:37:27]MH_I2C_Read... [09:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:27]Read from MH i2c: E2 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 0E 00 [09:37:27]MH_I2C_Read... [09:37:27]Read from MH i2c: E2 0E 00 BE 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5F [09:37:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:37:27]wFMCommunicate OK [09:37:27]SAM_PROTO_GetShiftState done [09:37:27]FM_GetShiftState done [09:37:27]opened in 1729987312 [09:37:27]opened+sec_in_day 1730073712 [09:37:27]quantity*price = 20003 [09:37:27]sum+1 = 20004 [09:37:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 97 27.10.2024 09:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201805 ФПД: 81075374352236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093731&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201805&fm=81075374352236&tin=02508201610067®Number=0000000000091777&sum=20000 [09:37:28]StoreToDocumentArchive [09:37:28]shift 544 fd 201805 [09:37:28]save to /storage/0544/doc_00201805 [09:37:28]save last doc name /storage/0544/doc_00201805 to /storage/kkm_last_doc_name [09:37:28]save OK [09:37:28]Clear old archive folders... [09:37:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:28]tlvbuf is 00141CA0 [09:37:28]SAM_PROTO_ClearQueue [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 09 00 00 [09:37:28]Write to MH i2c: E2 08 00 CB 22 80 09 00 00 00 00 00 00 5F [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 CB 22 00 90 00 61 [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]SAM_PROTO_ClearQueue done [09:37:28]KKMCreateOFDPacket [09:37:28]OFDProtocolAddRootSTLVToBuf [09:37:28]FM_MakeSignedData [09:37:28]FM_MakeSignedData [09:37:28]SAM_PROTO_SignData [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 01 02 [09:37:28]Write to MH i2c: E2 08 00 CC 22 80 0D 01 02 00 00 00 00 67 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]wFMCommunicate request_size=255 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 61 00 00 00 F4 03 04 00 DB 09 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 14 03 00 35 04 06 00 49 [09:37:28]Write to MH i2c: E2 02 01 CD 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 61 00 00 00 F4 03 04 00 DB 09 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 14 03 00 35 04 06 00 49 00 00 56 [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 CD 22 00 90 00 63 [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]wFMCommunicate request_size=10 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 02 02 05 BC D4 E3 67 6C [09:37:28]Write to MH i2c: E2 0D 00 CE 22 80 0D 02 02 05 00 BC D4 E3 67 6C 00 00 BA [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [09:37:28]RAPDU: 90 00 [09:37:28]wFMCommunicate OK [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 0D 03 02 [09:37:28]Write to MH i2c: E2 08 00 CF 22 80 0D 03 02 00 00 00 00 6C [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 0B 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 0B 00 CF 22 00 A5 AA 12 32 81 9D 6A 7D 90 00 05 [09:37:28]RAPDU: A5 AA 12 32 81 9D 6A 7D 90 00 [09:37:28]wFMCommunicate OK [09:37:28]SAM_PROTO_SignData done [09:37:28]FM_MakeSignedData done [09:37:28]CreateOFDProtocolMessage [09:37:28]wFMCommunicate request_size=4 [09:37:28]MH_SAM_APDU [09:37:28]CAPDU: 80 11 00 00 [09:37:28]Write to MH i2c: E2 08 00 D0 22 80 11 00 00 00 00 00 00 6C [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 [09:37:28]MH_I2C_Read... [09:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:28]Read from MH i2c: E2 17 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: E2 17 00 D0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [09:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:37:28]wFMCommunicate OK [09:37:28]CreateOFDProtocolMessage done [09:37:28]OFDSenderStorePacket 201805 [09:37:28]StoreOFDPacket docnum=201805 [09:37:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C A7 07 01 50 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 61 00 00 00 F4 03 04 00 DB 09 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 14 03 00 35 04 06 00 49 BC D4 E3 67 6C A5 AA 12 32 81 9D 6A 7D [09:37:28]CheckFolder [09:37:28]dirname=/storage/ofd_packets [09:37:28]CheckFolder done [09:37:28]ProducePacketName [09:37:28]name=ofd_packets/00201805 [09:37:28]NVStorageSaveData ofd_packets/00201805 [09:37:28]File name is /storage/ofd_packets/00201805 [09:37:28]Write 301 bytes [09:37:28]NVStorageSaveData done [09:37:28]OFDSenderStorePacket done [09:37:28]KKMCreateOFDPacket done [09:37:28]NVStorageSaveData kkm_last_timestamp [09:37:28]File name is /storage/kkm_last_timestamp [09:37:28]Write 4 bytes [09:37:28]NVStorageSaveData done [09:37:28]ExternCall_PrintAddStr [09:37:28]wPrintStart [09:37:28]Write to MH i2c: 01 00 00 D1 22 F3 [09:37:28]OFD Sender: Processing packet 201805 [packets to send 112, broken 111] [09:37:28]ProducePacketName [09:37:28]name=ofd_packets/00201805 [09:37:28]OFD Sender: To server: pG, [09:37:28]CommunicateWithHost lk.salyk.kg:30040 [09:37:28]ConnectInit lk.salyk.kg [09:37:28]Write i2c OK [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 07 00 [09:37:28]MH_I2C_Read... [09:37:28]Read from MH i2c: 01 07 00 D1 22 00 00 00 00 00 FF 0F 08 [09:37:28]RasterBufferAndPrint [09:37:28]line Счет N : (1)449564 [09:37:28]line ИНН: 02508201610067 [09:37:28]line Контрольно-Кассовый Чек [09:37:28]line ПРОДАЖА [09:37:28]line ТРК (МРК, ГНК) : 62 [09:37:28]line Товар: 2710124130 [09:37:28]line Аи-92-К-2 [09:37:28]line 2.990 * 66.90 [09:37:28]line = 200.03 [09:37:28]line НДС 12% НСП 1% [09:37:28]line > о реализуемом товаре [09:37:28]line ОКРУГЛЕНИЕ: -0.03 [09:37:28]line ИТОГО: 200.00 [09:37:28]line Внесено: 200.00 [09:37:28]line СДАЧА: 0.00 [09:37:28]line НСП 1% : 1.77 [09:37:28]line НДС 12% : 21.24 [09:37:28]line Наличными: 200.00 [09:37:28]line Безнал.: 0.00 [09:37:28]line Место: АЗС № 171 "Партнер Нефть" [09:37:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:37:28]line СНО: Общий режим [09:37:28]line Чек 97 27.10.2024 09:37 [09:37:28]line Смена: 544 ФФД: 1.0 [09:37:28]line ЗНМ: 0300000109 [09:37:28]line РНМ: 0000000000091777 [09:37:28]line Версия ККМ: 001 [09:37:28]line ФМ: 0000000000871756 [09:37:28]line ФД: 201805 [09:37:28]line ФПД: 81075374352236 [09:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093731&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201805&fm=81075374352236&tin=02508201610067®Number=0000000000091777&sum=20000 [09:37:28]written 0, free lines is 4095 [09:37:29]Connected sock=10 [09:37:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C A7 07 01 50 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 61 00 00 00 F4 03 04 00 DB 09 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 14 03 00 35 04 06 00 49 BC D4 E3 67 6C A5 AA 12 32 81 9D 6A 7D [09:37:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A7 62 47 00 25 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 14 03 00 F4 03 04 00 80 B5 1D 67 B6 04 01 00 00 61 9E 48 DC AB 1D 15 31 [09:37:29]CommunicateWithHost err = 0 [09:37:29]CheckOFDResponse [09:37:29]1017 (14) - 77093643461234 [09:37:29]1041 (16) - 0000000000871756 [09:37:29]1040 (4) - 201805 [09:37:29]1012 (4) - 27.10.2024 03:37 [09:37:29]1206 (1) - 0 [09:37:29]OFD Sender: Remove packet 201805 [09:37:29]ProducePacketName [09:37:29]name=ofd_packets/00201805 [09:37:29]NVStorageDeleteData [09:37:29]Write to MH i2c: 01 00 00 FC 22 1E [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 07 00 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: 01 07 00 FC 22 00 00 00 00 00 8C 0C BD [09:37:29]RasterBufferAndPrint [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]line [09:37:29]written 0, free lines is 3216 [09:37:29]MH_Cut [09:37:29]Write to MH i2c: D1 01 00 03 23 01 F8 [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 01 00 [09:37:29]MH_I2C_Read... [09:37:29]Read from MH i2c: D1 01 00 03 23 00 F7 [09:37:29]Write to MH i2c: 01 00 00 04 23 27 [09:37:29]Write i2c OK [09:37:29]MH_I2C_Read... [09:37:29]OFD Sender: No OFD packet to send [09:37:30]*** Cut start [09:37:30]*** Purtial cut [09:37:30]*** Stage 1: CUTSNS_PIN = 1 [09:37:30]Read from MH i2c: 01 [09:37:30]MH_I2C_Read... [09:37:30]*** Stop cut motor [09:37:30]*** Cut end [09:37:30]Read from MH i2c: 01 07 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: 01 07 00 04 23 00 00 00 00 00 FF 0F 3C [09:37:30]process_action close_receipt done [09:37:30]requested_data is exist [09:37:30]produce_requested_data [09:37:30]requested_item fm.sn is exist - process it [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 11 00 00 [09:37:30]Write to MH i2c: E2 08 00 05 23 80 11 00 00 00 00 00 00 A2 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 17 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 17 00 05 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F7 [09:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:37:30]wFMCommunicate OK [09:37:30]requested_item fd.num is exist - process it [09:37:30]SAM_PROTO_GetFieldsCounters [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 13 00 00 [09:37:30]Write to MH i2c: E2 08 00 06 23 80 13 00 00 00 00 00 00 A5 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 62 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 62 00 06 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4D 14 03 00 0E 04 04 00 20 02 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 77 [09:37:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4D 14 03 00 0E 04 04 00 20 02 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 [09:37:30]wFMCommunicate OK [09:37:30]SAM_PROTO_GetFieldsCounters done [09:37:30]requested_item shift.num is exist - process it [09:37:30]requested_item shift.opened is exist - process it [09:37:30]req_shift_opened [09:37:30]FM_GetShiftState [09:37:30]SAM_PROTO_GetShiftState [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 13 01 00 [09:37:30]Write to MH i2c: E2 08 00 07 23 80 13 01 00 00 00 00 00 A7 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 0E 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 0E 00 07 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A9 [09:37:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:37:30]wFMCommunicate OK [09:37:30]SAM_PROTO_GetShiftState done [09:37:30]FM_GetShiftState done [09:37:30]req_shift_opened done [09:37:30]requested_item shift.open_date is exist - process it [09:37:30]req_shift_open_date [09:37:30]req_shift_open_date done [09:37:30]produce_requested_data done [09:37:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201805,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:37:30]process_action_free close_receipt [09:37:30]json_value_free [09:37:30]json_value_free done [09:37:30]process_json_proto returns [09:37:30]Send response to host [09:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201805,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:37:30]free response buf [09:37:30]execute_script done [09:37:30]execute_script returns [09:37:30]free content buf [09:37:30]Sock 8.Close socket [09:37:30]Sock 8.Thread stoped [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:41:59]accept exits with 9 [09:41:59]New connection [09:41:59]New thread 3066936676 created [09:41:59]Thread 3067080036 joined [09:41:59]Waiting for new connection... [09:41:59] Sock 9.Parse request [09:41:59]Sock 9.Check first char [09:41:59]Sock 9.First char is OK [09:41:59]request: POST /json_proto HTTP/1.0 [09:41:59]Method: POST [09:41:59]URL: /json_proto [09:41:59]Method is POST - this is cgi request [09:41:59]url: /json_proto [09:41:59]query_string will be loaded in cgi processing [09:41:59]execute_cgi json_proto POST (null) [09:41:59]execute_cgi path=json_proto method=POST [09:41:59]POST find Content-Length [09:41:59]Host: 172.17.63.195:8080 [09:41:59]Content-Length: 677 [09:41:59]Content-Type: application/json [09:41:59] [09:41:59]POST finish read [09:41:59]Found Content-Length = 677 [09:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:41:59]execute_script... [09:41:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:41:59]POST & json_proto [09:41:59]process_json_proto [09:41:59]json parsed OK: [09:41:59]protocol is kg_v1.0 [09:41:59]action value=close_receipt [09:41:59]process_action close_receipt [09:41:59]cmd_close_receipt [09:41:59]MH_GetDate [09:41:59]Write to MH i2c: F0 00 00 08 23 1A [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 09 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 09 00 08 23 00 EB 0A 1E 67 68 46 19 67 CB [09:41:59]GetLastDocTimeStamp 1730021851 [09:41:59]current date 1730022123 [09:41:59]FM_GetShiftState [09:41:59]SAM_PROTO_GetShiftState [09:41:59]wFMCommunicate request_size=4 [09:41:59]MH_SAM_APDU [09:41:59]CAPDU: 80 13 01 00 [09:41:59]Write to MH i2c: E2 08 00 09 23 80 13 01 00 00 00 00 00 A9 [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:59]Read from MH i2c: E2 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 0E 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 0E 00 09 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AB [09:41:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:41:59]wFMCommunicate OK [09:41:59]SAM_PROTO_GetShiftState done [09:41:59]FM_GetShiftState done [09:41:59]opened in 1729987312 [09:41:59]opened+sec_in_day 1730073712 [09:41:59]quantity*price = 20003 [09:41:59]sum+1 = 20004 [09:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 98 27.10.2024 09:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201806 ФПД: 103642439014595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094203&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201806&fm=103642439014595&tin=02508201610067®Number=0000000000091777&sum=20000 [09:42:00]StoreToDocumentArchive [09:42:00]shift 544 fd 201806 [09:42:00]save to /storage/0544/doc_00201806 [09:42:00]save last doc name /storage/0544/doc_00201806 to /storage/kkm_last_doc_name [09:42:00]save OK [09:42:00]Clear old archive folders... [09:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:00]tlvbuf is 0008BFA0 [09:42:00]SAM_PROTO_ClearQueue [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 09 00 00 [09:42:00]Write to MH i2c: E2 08 00 16 23 80 09 00 00 00 00 00 00 AB [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 16 23 00 90 00 AD [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]SAM_PROTO_ClearQueue done [09:42:00]KKMCreateOFDPacket [09:42:00]OFDProtocolAddRootSTLVToBuf [09:42:00]FM_MakeSignedData [09:42:00]FM_MakeSignedData [09:42:00]SAM_PROTO_SignData [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 01 02 [09:42:00]Write to MH i2c: E2 08 00 17 23 80 0D 01 02 00 00 00 00 B3 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 17 23 00 90 00 AE [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]wFMCommunicate request_size=255 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 62 00 00 00 F4 03 04 00 EB 0A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 14 03 00 35 04 06 00 5E [09:42:00]Write to MH i2c: E2 02 01 18 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 62 00 00 00 F4 03 04 00 EB 0A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 14 03 00 35 04 06 00 5E 00 00 CA [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]wFMCommunicate request_size=10 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 02 02 05 43 22 C2 D8 C3 [09:42:00]Write to MH i2c: E2 0D 00 19 23 80 0D 02 02 05 00 43 22 C2 D8 C3 00 00 82 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 03 02 [09:42:00]Write to MH i2c: E2 08 00 1A 23 80 0D 03 02 00 00 00 00 B8 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 0B 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 0B 00 1A 23 00 AE A9 9D D2 41 29 54 B2 90 00 EF [09:42:00]RAPDU: AE A9 9D D2 41 29 54 B2 90 00 [09:42:00]wFMCommunicate OK [09:42:00]SAM_PROTO_SignData done [09:42:00]FM_MakeSignedData done [09:42:00]CreateOFDProtocolMessage [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 11 00 00 [09:42:00]Write to MH i2c: E2 08 00 1B 23 80 11 00 00 00 00 00 00 B8 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:01]Read from MH i2c: E2 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 17 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 17 00 1B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0D [09:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:42:01]wFMCommunicate OK [09:42:01]CreateOFDProtocolMessage done [09:42:01]OFDSenderStorePacket 201806 [09:42:01]StoreOFDPacket docnum=201806 [09:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E2 FA 07 01 3C 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 62 00 00 00 F4 03 04 00 EB 0A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 14 03 00 35 04 06 00 5E 43 22 C2 D8 C3 AE A9 9D D2 41 29 54 B2 [09:42:01]CheckFolder [09:42:01]dirname=/storage/ofd_packets [09:42:01]CheckFolder done [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00201806 [09:42:01]NVStorageSaveData ofd_packets/00201806 [09:42:01]File name is /storage/ofd_packets/00201806 [09:42:01]Write 301 bytes [09:42:01]NVStorageSaveData done [09:42:01]OFDSenderStorePacket done [09:42:01]KKMCreateOFDPacket done [09:42:01]NVStorageSaveData kkm_last_timestamp [09:42:01]File name is /storage/kkm_last_timestamp [09:42:01]Write 4 bytes [09:42:01]NVStorageSaveData done [09:42:01]ExternCall_PrintAddStr [09:42:01]wPrintStart [09:42:01]Write to MH i2c: 01 00 00 1C 23 3F [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 1C 23 00 00 00 00 00 FF 0F 54 [09:42:01]RasterBufferAndPrint [09:42:01]line Счет N : (1)449565 [09:42:01]line ИНН: 02508201610067 [09:42:01]line Контрольно-Кассовый Чек [09:42:01]line ПРОДАЖА [09:42:01]line ТРК (МРК, ГНК) : 31 [09:42:01]line Товар: 2710124130 [09:42:01]line Аи-92-К-2 [09:42:01]line 2.990 * 66.90 [09:42:01]line = 200.03 [09:42:01]line НДС 12% НСП 1% [09:42:01]line > о реализуемом товаре [09:42:01]line ОКРУГЛЕНИЕ: -0.03 [09:42:01]line ИТОГО: 200.00 [09:42:01]line Внесено: 200.00 [09:42:01]line СДАЧА: 0.00 [09:42:01]line НСП 1% : 1.77 [09:42:01]line НДС 12% : 21.24 [09:42:01]line Наличными: 200.00 [09:42:01]line Безнал.: 0.00 [09:42:01]line Место: АЗС № 171 "Партнер Нефть" [09:42:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:42:01]line СНО: Общий режим [09:42:01]line Чек 98 27.10.2024 09:42 [09:42:01]line Смена: 544 ФФД: 1.0 [09:42:01]line ЗНМ: 0300000109 [09:42:01]line РНМ: 0000000000091777 [09:42:01]line Версия ККМ: 001 [09:42:01]line ФМ: 0000000000871756 [09:42:01]line ФД: 201806 [09:42:01]line ФПД: 103642439014595 [09:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094203&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201806&fm=103642439014595&tin=02508201610067®Number=0000000000091777&sum=20000 [09:42:01]OFD Sender: Processing packet 201806 [packets to send 112, broken 111] [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00201806 [09:42:01]OFD Sender: To server: pG, [09:42:01]CommunicateWithHost lk.salyk.kg:30040 [09:42:01]ConnectInit lk.salyk.kg [09:42:01]written 0, free lines is 4095 [09:42:01]Connected sock=10 [09:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E2 FA 07 01 3C 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 62 00 00 00 F4 03 04 00 EB 0A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 14 03 00 35 04 06 00 5E 43 22 C2 D8 C3 AE A9 9D D2 41 29 54 B2 [09:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F0 4E 47 00 BE 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 14 03 00 F4 03 04 00 91 B6 1D 67 B6 04 01 00 00 F0 70 5C E8 CC 26 64 19 [09:42:01]CommunicateWithHost err = 0 [09:42:01]CheckOFDResponse [09:42:01]1017 (14) - 77093643461234 [09:42:01]1041 (16) - 0000000000871756 [09:42:01]1040 (4) - 201806 [09:42:01]1012 (4) - 27.10.2024 03:42 [09:42:01]1206 (1) - 0 [09:42:01]OFD Sender: Remove packet 201806 [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00201806 [09:42:01]NVStorageDeleteData [09:42:01]Write to MH i2c: 01 00 00 47 23 6A [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 47 23 00 00 00 00 00 8A 0C 07 [09:42:01]RasterBufferAndPrint [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]written 0, free lines is 3215 [09:42:01]MH_Cut [09:42:01]Write to MH i2c: D1 01 00 4E 23 01 43 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 01 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 01 00 4E 23 00 42 [09:42:01]Write to MH i2c: 01 00 00 4F 23 72 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:02]OFD Sender: No OFD packet to send [09:42:02]*** Cut start [09:42:02]*** Purtial cut [09:42:02]*** Stage 1: CUTSNS_PIN = 1 [09:42:02]Read from MH i2c: 01 [09:42:02]MH_I2C_Read... [09:42:02]*** Stop cut motor [09:42:02]*** Cut end [09:42:02]Read from MH i2c: 01 07 00 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: 01 07 00 4F 23 00 00 00 00 00 FF 0F 87 [09:42:02]process_action close_receipt done [09:42:02]requested_data is exist [09:42:02]produce_requested_data [09:42:02]requested_item fm.sn is exist - process it [09:42:02]wFMCommunicate request_size=4 [09:42:02]MH_SAM_APDU [09:42:02]CAPDU: 80 11 00 00 [09:42:02]Write to MH i2c: E2 08 00 50 23 80 11 00 00 00 00 00 00 ED [09:42:02]Write i2c OK [09:42:02]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 17 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 17 00 50 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 42 [09:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:42:03]wFMCommunicate OK [09:42:03]requested_item fd.num is exist - process it [09:42:03]SAM_PROTO_GetFieldsCounters [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 13 00 00 [09:42:03]Write to MH i2c: E2 08 00 51 23 80 13 00 00 00 00 00 00 F0 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 62 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 62 00 51 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4E 14 03 00 0E 04 04 00 20 02 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 C6 [09:42:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4E 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:03]wFMCommunicate OK [09:42:03]SAM_PROTO_GetFieldsCounters done [09:42:03]requested_item shift.num is exist - process it [09:42:03]requested_item shift.opened is exist - process it [09:42:03]req_shift_opened [09:42:03]FM_GetShiftState [09:42:03]SAM_PROTO_GetShiftState [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 13 01 00 [09:42:03]Write to MH i2c: E2 08 00 52 23 80 13 01 00 00 00 00 00 F2 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 0E 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 0E 00 52 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F4 [09:42:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:42:03]wFMCommunicate OK [09:42:03]SAM_PROTO_GetShiftState done [09:42:03]FM_GetShiftState done [09:42:03]req_shift_opened done [09:42:03]requested_item shift.open_date is exist - process it [09:42:03]req_shift_open_date [09:42:03]req_shift_open_date done [09:42:03]produce_requested_data done [09:42:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201806,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:42:03]process_action_free close_receipt [09:42:03]json_value_free [09:42:03]json_value_free done [09:42:03]process_json_proto returns [09:42:03]Send response to host [09:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201806,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:42:03]free response buf [09:42:03]execute_script done [09:42:03]execute_script returns [09:42:03]free content buf [09:42:03]Sock 9.Close socket [09:42:03]Sock 9.Thread stoped [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:00]accept exits with 8 [09:43:00]New connection [09:43:00]New thread 3067080036 created [09:43:00]Thread 3066936676 joined [09:43:00]Waiting for new connection... [09:43:00] Sock 8.Parse request [09:43:00]Sock 8.Check first char [09:43:00]Sock 8.First char is OK [09:43:00]request: POST /json_proto HTTP/1.0 [09:43:00]Method: POST [09:43:00]URL: /json_proto [09:43:00]Method is POST - this is cgi request [09:43:00]url: /json_proto [09:43:00]query_string will be loaded in cgi processing [09:43:00]execute_cgi json_proto POST (null) [09:43:00]execute_cgi path=json_proto method=POST [09:43:00]POST find Content-Length [09:43:00]Host: 172.17.63.195:8080 [09:43:00]Content-Length: 677 [09:43:00]Content-Type: application/json [09:43:00] [09:43:00]POST finish read [09:43:00]Found Content-Length = 677 [09:43:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:00]execute_script... [09:43:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:00]POST & json_proto [09:43:00]process_json_proto [09:43:00]json parsed OK: [09:43:00]protocol is kg_v1.0 [09:43:00]action value=close_receipt [09:43:00]process_action close_receipt [09:43:00]cmd_close_receipt [09:43:00]MH_GetDate [09:43:00]Write to MH i2c: F0 00 00 53 23 65 [09:43:00]Write i2c OK [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: F0 [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: F0 09 00 [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: F0 09 00 53 23 00 28 0B 1E 67 68 46 19 67 54 [09:43:00]GetLastDocTimeStamp 1730022123 [09:43:00]current date 1730022184 [09:43:00]FM_GetShiftState [09:43:00]SAM_PROTO_GetShiftState [09:43:00]wFMCommunicate request_size=4 [09:43:00]MH_SAM_APDU [09:43:00]CAPDU: 80 13 01 00 [09:43:00]Write to MH i2c: E2 08 00 54 23 80 13 01 00 00 00 00 00 F4 [09:43:00]Write i2c OK [09:43:00]MH_I2C_Read... [09:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:00]Read from MH i2c: E2 [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: E2 0E 00 [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: E2 0E 00 54 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F6 [09:43:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:43:00]wFMCommunicate OK [09:43:00]SAM_PROTO_GetShiftState done [09:43:00]FM_GetShiftState done [09:43:00]opened in 1729987312 [09:43:00]opened+sec_in_day 1730073712 [09:43:00]quantity*price = 40006 [09:43:00]sum+1 = 40007 [09:43:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 99 27.10.2024 09:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201807 ФПД: 75288021502283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094304&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201807&fm=75288021502283&tin=02508201610067®Number=0000000000091777&sum=40000 [09:43:01]StoreToDocumentArchive [09:43:01]shift 544 fd 201807 [09:43:01]save to /storage/0544/doc_00201807 [09:43:01]save last doc name /storage/0544/doc_00201807 to /storage/kkm_last_doc_name [09:43:01]save OK [09:43:01]Clear old archive folders... [09:43:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:01]tlvbuf is 000E1A50 [09:43:01]SAM_PROTO_ClearQueue [09:43:01]wFMCommunicate request_size=4 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 09 00 00 [09:43:01]Write to MH i2c: E2 08 00 61 23 80 09 00 00 00 00 00 00 F6 [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 03 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 03 00 61 23 00 90 00 F8 [09:43:01]RAPDU: 90 00 [09:43:01]wFMCommunicate OK [09:43:01]SAM_PROTO_ClearQueue done [09:43:01]KKMCreateOFDPacket [09:43:01]OFDProtocolAddRootSTLVToBuf [09:43:01]FM_MakeSignedData [09:43:01]FM_MakeSignedData [09:43:01]SAM_PROTO_SignData [09:43:01]wFMCommunicate request_size=4 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 0D 01 02 [09:43:01]Write to MH i2c: E2 08 00 62 23 80 0D 01 02 00 00 00 00 FE [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 03 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [09:43:01]RAPDU: 90 00 [09:43:01]wFMCommunicate OK [09:43:01]wFMCommunicate request_size=255 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 28 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 14 03 00 35 04 06 00 44 [09:43:01]Write to MH i2c: E2 02 01 63 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 28 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 14 03 00 35 04 06 00 44 00 00 48 [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:02]Read from MH i2c: E2 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 03 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [09:43:02]RAPDU: 90 00 [09:43:02]wFMCommunicate OK [09:43:02]wFMCommunicate request_size=10 [09:43:02]MH_SAM_APDU [09:43:02]CAPDU: 80 0D 02 02 05 79 5B C7 09 4B [09:43:02]Write to MH i2c: E2 0D 00 64 23 80 0D 02 02 05 00 79 5B C7 09 4B 00 00 FA [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:02]Read from MH i2c: E2 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 03 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 03 00 64 23 00 90 00 FB [09:43:02]RAPDU: 90 00 [09:43:02]wFMCommunicate OK [09:43:02]wFMCommunicate request_size=4 [09:43:02]MH_SAM_APDU [09:43:02]CAPDU: 80 0D 03 02 [09:43:02]Write to MH i2c: E2 08 00 65 23 80 0D 03 02 00 00 00 00 03 [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:02]Read from MH i2c: E2 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 0B 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 0B 00 65 23 00 30 85 CA 50 A2 5F F0 AE 90 00 72 [09:43:02]RAPDU: 30 85 CA 50 A2 5F F0 AE 90 00 [09:43:02]wFMCommunicate OK [09:43:02]SAM_PROTO_SignData done [09:43:02]FM_MakeSignedData done [09:43:02]CreateOFDProtocolMessage [09:43:02]wFMCommunicate request_size=4 [09:43:02]MH_SAM_APDU [09:43:02]CAPDU: 80 11 00 00 [09:43:02]Write to MH i2c: E2 08 00 66 23 80 11 00 00 00 00 00 00 03 [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]OFD Sender: No OFD packet to send [09:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:02]Read from MH i2c: E2 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 17 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 17 00 66 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 58 [09:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:43:02]wFMCommunicate OK [09:43:02]CreateOFDProtocolMessage done [09:43:02]OFDSenderStorePacket 201807 [09:43:02]StoreOFDPacket docnum=201807 [09:43:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 58 DA 07 01 5F 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 28 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 14 03 00 35 04 06 00 44 79 5B C7 09 4B 30 85 CA 50 A2 5F F0 AE [09:43:02]CheckFolder [09:43:02]dirname=/storage/ofd_packets [09:43:02]CheckFolder done [09:43:02]ProducePacketName [09:43:02]name=ofd_packets/00201807 [09:43:02]NVStorageSaveData ofd_packets/00201807 [09:43:02]File name is /storage/ofd_packets/00201807 [09:43:02]Write 301 bytes [09:43:02]NVStorageSaveData done [09:43:02]OFDSenderStorePacket done [09:43:02]KKMCreateOFDPacket done [09:43:02]NVStorageSaveData kkm_last_timestamp [09:43:02]File name is /storage/kkm_last_timestamp [09:43:02]Write 4 bytes [09:43:02]NVStorageSaveData done [09:43:02]ExternCall_PrintAddStr [09:43:02]wPrintStart [09:43:02]Write to MH i2c: 01 00 00 67 23 8A [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: 01 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: 01 07 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: 01 07 00 67 23 00 00 00 00 00 FF 0F 9F [09:43:02]RasterBufferAndPrint [09:43:02]line Счет N : (1)449566 [09:43:02]line ИНН: 02508201610067 [09:43:02]line Контрольно-Кассовый Чек [09:43:02]line ПРОДАЖА [09:43:02]line ТРК (МРК, ГНК) : 41 [09:43:02]line Товар: 2710124130 [09:43:02]line Аи-92-К-2 [09:43:02]line 5.980 * 66.90 [09:43:02]line = 400.06 [09:43:02]line НДС 12% НСП 1% [09:43:02]line > о реализуемом товаре [09:43:02]line ОКРУГЛЕНИЕ: -0.06 [09:43:02]line ИТОГО: 400.00 [09:43:02]line Внесено: 400.00 [09:43:02]line СДАЧА: 0.00 [09:43:02]line НСП 1% : 3.54 [09:43:02]line НДС 12% : 42.48 [09:43:02]line Наличными: 400.00 [09:43:02]line Безнал.: 0.00 [09:43:02]line Место: АЗС № 171 "Партнер Нефть" [09:43:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:43:02]line СНО: Общий режим [09:43:02]line Чек 99 27.10.2024 09:43 [09:43:02]line Смена: 544 ФФД: 1.0 [09:43:02]line ЗНМ: 0300000109 [09:43:02]line РНМ: 0000000000091777 [09:43:02]line Версия ККМ: 001 [09:43:02]line ФМ: 0000000000871756 [09:43:02]line ФД: 201807 [09:43:02]line ФПД: 75288021502283 [09:43:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094304&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201807&fm=75288021502283&tin=02508201610067®Number=0000000000091777&sum=40000 [09:43:02]OFD Sender: Processing packet 201807 [packets to send 112, broken 111] [09:43:02]ProducePacketName [09:43:02]name=ofd_packets/00201807 [09:43:02]OFD Sender: To server: pG, [09:43:02]CommunicateWithHost lk.salyk.kg:30040 [09:43:02]ConnectInit lk.salyk.kg [09:43:02]written 0, free lines is 4095 [09:43:02]Connected sock=10 [09:43:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 58 DA 07 01 5F 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 28 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 14 03 00 35 04 06 00 44 79 5B C7 09 4B 30 85 CA 50 A2 5F F0 AE [09:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 75 76 47 00 26 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 14 03 00 F4 03 04 00 CE B6 1D 67 B6 04 01 00 00 EF 22 BA 58 4A F2 CB 3C [09:43:03]CommunicateWithHost err = 0 [09:43:03]CheckOFDResponse [09:43:03]1017 (14) - 77093643461234 [09:43:03]1041 (16) - 0000000000871756 [09:43:03]1040 (4) - 201807 [09:43:03]1012 (4) - 27.10.2024 03:43 [09:43:03]1206 (1) - 0 [09:43:03]OFD Sender: Remove packet 201807 [09:43:03]ProducePacketName [09:43:03]name=ofd_packets/00201807 [09:43:03]NVStorageDeleteData [09:43:03]Write to MH i2c: 01 00 00 92 23 B5 [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: 01 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: 01 07 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: 01 07 00 92 23 00 00 00 00 00 94 0C 5C [09:43:03]RasterBufferAndPrint [09:43:03]line [09:43:03]line [09:43:03]line [09:43:03]line [09:43:03]line [09:43:03]written 0, free lines is 3225 [09:43:03]MH_Cut [09:43:03]Write to MH i2c: D1 01 00 99 23 01 8E [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: D1 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: D1 01 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: D1 01 00 99 23 00 8D [09:43:03]Write to MH i2c: 01 00 00 9A 23 BD [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]OFD Sender: No OFD packet to send [09:43:04]*** Cut start [09:43:04]*** Purtial cut [09:43:04]*** Stage 1: CUTSNS_PIN = 1 [09:43:04]Read from MH i2c: 01 [09:43:04]MH_I2C_Read... [09:43:04]*** Stop cut motor [09:43:04]*** Cut end [09:43:04]Read from MH i2c: 01 07 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 07 00 9A 23 00 00 00 00 00 FF 0F D2 [09:43:04]process_action close_receipt done [09:43:04]requested_data is exist [09:43:04]produce_requested_data [09:43:04]requested_item fm.sn is exist - process it [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 11 00 00 [09:43:04]Write to MH i2c: E2 08 00 9B 23 80 11 00 00 00 00 00 00 38 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 17 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 17 00 9B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [09:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:43:04]wFMCommunicate OK [09:43:04]requested_item fd.num is exist - process it [09:43:04]SAM_PROTO_GetFieldsCounters [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 13 00 00 [09:43:04]Write to MH i2c: E2 08 00 9C 23 80 13 00 00 00 00 00 00 3B [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 62 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 62 00 9C 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4F 14 03 00 0E 04 04 00 20 02 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 15 [09:43:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4F 14 03 00 0E 04 04 00 20 02 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 [09:43:04]wFMCommunicate OK [09:43:04]SAM_PROTO_GetFieldsCounters done [09:43:04]requested_item shift.num is exist - process it [09:43:04]requested_item shift.opened is exist - process it [09:43:04]req_shift_opened [09:43:04]FM_GetShiftState [09:43:04]SAM_PROTO_GetShiftState [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 13 01 00 [09:43:04]Write to MH i2c: E2 08 00 9D 23 80 13 01 00 00 00 00 00 3D [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0E 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0E 00 9D 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3F [09:43:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:43:04]wFMCommunicate OK [09:43:04]SAM_PROTO_GetShiftState done [09:43:04]FM_GetShiftState done [09:43:04]req_shift_opened done [09:43:04]requested_item shift.open_date is exist - process it [09:43:04]req_shift_open_date [09:43:04]req_shift_open_date done [09:43:04]produce_requested_data done [09:43:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201807,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:43:04]process_action_free close_receipt [09:43:04]json_value_free [09:43:04]json_value_free done [09:43:04]process_json_proto returns [09:43:04]Send response to host [09:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201807,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:43:04]free response buf [09:43:04]execute_script done [09:43:04]execute_script returns [09:43:04]free content buf [09:43:04]Sock 8.Close socket [09:43:04]Sock 8.Thread stoped [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:21]accept exits with 9 [09:44:21]New connection [09:44:21]New thread 3066936676 created [09:44:21]Thread 3067080036 joined [09:44:21]Waiting for new connection... [09:44:21] Sock 9.Parse request [09:44:21]Sock 9.Check first char [09:44:21]Sock 9.First char is OK [09:44:21]request: POST /json_proto HTTP/1.0 [09:44:21]Method: POST [09:44:21]URL: /json_proto [09:44:21]Method is POST - this is cgi request [09:44:21]url: /json_proto [09:44:21]query_string will be loaded in cgi processing [09:44:21]execute_cgi json_proto POST (null) [09:44:21]execute_cgi path=json_proto method=POST [09:44:21]POST find Content-Length [09:44:21]Host: 172.17.63.195:8080 [09:44:21]Content-Length: 679 [09:44:21]Content-Type: application/json [09:44:21] [09:44:21]POST finish read [09:44:21]Found Content-Length = 679 [09:44:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:21]execute_script... [09:44: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)449567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:21]POST & json_proto [09:44:21]process_json_proto [09:44:21]json parsed OK: [09:44:21]protocol is kg_v1.0 [09:44:21]action value=close_receipt [09:44:21]process_action close_receipt [09:44:21]cmd_close_receipt [09:44:21]MH_GetDate [09:44:21]Write to MH i2c: F0 00 00 9E 23 B0 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: F0 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: F0 09 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: F0 09 00 9E 23 00 79 0B 1E 67 68 46 19 67 F0 [09:44:21]GetLastDocTimeStamp 1730022184 [09:44:21]current date 1730022265 [09:44:21]FM_GetShiftState [09:44:21]SAM_PROTO_GetShiftState [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 13 01 00 [09:44:21]Write to MH i2c: E2 08 00 9F 23 80 13 01 00 00 00 00 00 3F [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0E 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0E 00 9F 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 41 [09:44:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_GetShiftState done [09:44:21]FM_GetShiftState done [09:44:21]opened in 1729987312 [09:44:21]opened+sec_in_day 1730073712 [09:44:21]quantity*price = 250012 [09:44:21]sum+1 = 250013 [09:44:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 100 27.10.2024 09:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201808 ФПД: 178305573623712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094425&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201808&fm=178305573623712&tin=02508201610067®Number=0000000000091777&sum=250000 [09:44:22]StoreToDocumentArchive [09:44:22]shift 544 fd 201808 [09:44:22]save to /storage/0544/doc_00201808 [09:44:22]save last doc name /storage/0544/doc_00201808 to /storage/kkm_last_doc_name [09:44:22]save OK [09:44:22]Clear old archive folders... [09:44:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:44:22]tlvbuf is 001420E0 [09:44:22]SAM_PROTO_ClearQueue [09:44:22]wFMCommunicate request_size=4 [09:44:22]MH_SAM_APDU [09:44:22]CAPDU: 80 09 00 00 [09:44:22]Write to MH i2c: E2 08 00 AC 23 80 09 00 00 00 00 00 00 41 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:22]Read from MH i2c: E2 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 03 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 03 00 AC 23 00 90 00 43 [09:44:22]RAPDU: 90 00 [09:44:22]wFMCommunicate OK [09:44:22]SAM_PROTO_ClearQueue done [09:44:22]KKMCreateOFDPacket [09:44:22]OFDProtocolAddRootSTLVToBuf [09:44:22]FM_MakeSignedData [09:44:22]FM_MakeSignedData [09:44:22]SAM_PROTO_SignData [09:44:22]wFMCommunicate request_size=4 [09:44:22]MH_SAM_APDU [09:44:22]CAPDU: 80 0D 01 02 [09:44:22]Write to MH i2c: E2 08 00 AD 23 80 0D 01 02 00 00 00 00 49 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:22]Read from MH i2c: E2 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 03 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [09:44:22]RAPDU: 90 00 [09:44:22]wFMCommunicate OK [09:44:22]wFMCommunicate request_size=255 [09:44:22]MH_SAM_APDU [09:44: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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 79 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 14 03 00 35 04 06 00 A2 2B 00 60 [09:44:22]Write to MH i2c: E2 02 01 AE 23 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 79 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 14 03 00 35 04 06 00 A2 2B 00 60 00 00 57 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:22]Read from MH i2c: E2 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 03 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 03 00 AE 23 00 90 00 45 [09:44:22]RAPDU: 90 00 [09:44:22]wFMCommunicate OK [09:44:22]wFMCommunicate request_size=7 [09:44:22]MH_SAM_APDU [09:44:22]CAPDU: 80 0D 02 02 02 97 A0 [09:44:22]Write to MH i2c: E2 0A 00 AF 23 80 0D 02 02 02 00 97 A0 00 00 87 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:22]Read from MH i2c: E2 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 03 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 03 00 AF 23 00 90 00 46 [09:44:22]RAPDU: 90 00 [09:44:22]wFMCommunicate OK [09:44:22]wFMCommunicate request_size=4 [09:44:22]MH_SAM_APDU [09:44:22]CAPDU: 80 0D 03 02 [09:44:22]Write to MH i2c: E2 08 00 B0 23 80 0D 03 02 00 00 00 00 4E [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:22]Read from MH i2c: E2 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 0B 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 0B 00 B0 23 00 73 2B 1D EA 61 23 58 D6 90 00 A6 [09:44:22]RAPDU: 73 2B 1D EA 61 23 58 D6 90 00 [09:44:22]wFMCommunicate OK [09:44:22]SAM_PROTO_SignData done [09:44:22]FM_MakeSignedData done [09:44:22]CreateOFDProtocolMessage [09:44:22]wFMCommunicate request_size=4 [09:44:22]MH_SAM_APDU [09:44:22]CAPDU: 80 11 00 00 [09:44:22]Write to MH i2c: E2 08 00 B1 23 80 11 00 00 00 00 00 00 4E [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:22]Read from MH i2c: E2 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 17 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: E2 17 00 B1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A3 [09:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:44:22]wFMCommunicate OK [09:44:22]CreateOFDProtocolMessage done [09:44:22]OFDSenderStorePacket 201808 [09:44:22]StoreOFDPacket docnum=201808 [09:44:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8D 35 04 01 E8 32 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 79 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 14 03 00 35 04 06 00 A2 2B 00 60 97 A0 73 2B 1D EA 61 23 58 D6 [09:44:22]CheckFolder [09:44:22]dirname=/storage/ofd_packets [09:44:22]CheckFolder done [09:44:22]ProducePacketName [09:44:22]name=ofd_packets/00201808 [09:44:22]NVStorageSaveData ofd_packets/00201808 [09:44:22]File name is /storage/ofd_packets/00201808 [09:44:22]Write 298 bytes [09:44:22]NVStorageSaveData done [09:44:22]OFDSenderStorePacket done [09:44:22]KKMCreateOFDPacket done [09:44:22]NVStorageSaveData kkm_last_timestamp [09:44:22]File name is /storage/kkm_last_timestamp [09:44:22]Write 4 bytes [09:44:22]NVStorageSaveData done [09:44:22]ExternCall_PrintAddStr [09:44:22]wPrintStart [09:44:22]Write to MH i2c: 01 00 00 B2 23 D5 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 07 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 07 00 B2 23 00 00 00 00 00 FF 0F EA [09:44:22]RasterBufferAndPrint [09:44:22]line Счет N : (1)449567 [09:44:22]line ИНН: 02508201610067 [09:44:22]line Контрольно-Кассовый Чек [09:44:22]line ПРОДАЖА [09:44:22]line ТРК (МРК, ГНК) : 21 [09:44:22]line Товар: 2710194210 [09:44:22]line ДТ-К-2 [09:44:22]line 32.810 * 76.20 [09:44:22]line = 2500.12 [09:44:22]line НДС 12% НСП 1% [09:44:22]line > о реализуемом товаре [09:44:22]line ОКРУГЛЕНИЕ: -0.12 [09:44:22]line ИТОГО: 2500.00 [09:44:22]line Внесено: 2500.00 [09:44:22]line СДАЧА: 0.00 [09:44:22]line НСП 1% : 22.12 [09:44:22]line НДС 12% : 265.50 [09:44:22]line Наличными: 2500.00 [09:44:22]line Безнал.: 0.00 [09:44:22]line Место: АЗС № 171 "Партнер Нефть" [09:44:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:44:22]line СНО: Общий режим [09:44:22]line Чек 100 27.10.2024 09:44 [09:44:22]line Смена: 544 ФФД: 1.0 [09:44:22]line ЗНМ: 0300000109 [09:44:22]line РНМ: 0000000000091777 [09:44:22]line Версия ККМ: 001 [09:44:22]line ФМ: 0000000000871756 [09:44:22]line ФД: 201808 [09:44:22]line ФПД: 178305573623712 [09:44:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094425&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201808&fm=178305573623712&tin=02508201610067®Number=0000000000091777&sum=250000 [09:44:23]OFD Sender: Processing packet 201808 [packets to send 112, broken 111] [09:44:23]ProducePacketName [09:44:23]name=ofd_packets/00201808 [09:44:23]OFD Sender: To server: pG, [09:44:23]CommunicateWithHost lk.salyk.kg:30040 [09:44:23]ConnectInit lk.salyk.kg [09:44:23]written 0, free lines is 4095 [09:44:23]Connected sock=10 [09:44:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8D 35 04 01 E8 32 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 79 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 14 03 00 35 04 06 00 A2 2B 00 60 97 A0 73 2B 1D EA 61 23 58 D6 [09:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F8 9E 47 00 17 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 14 03 00 F4 03 04 00 1F B7 1D 67 B6 04 01 00 00 9D A2 62 4F AA 06 EB F4 [09:44:23]CommunicateWithHost err = 0 [09:44:23]CheckOFDResponse [09:44:23]1017 (14) - 77093643461234 [09:44:23]1041 (16) - 0000000000871756 [09:44:23]1040 (4) - 201808 [09:44:23]1012 (4) - 27.10.2024 03:44 [09:44:23]1206 (1) - 0 [09:44:23]OFD Sender: Remove packet 201808 [09:44:23]ProducePacketName [09:44:23]name=ofd_packets/00201808 [09:44:23]NVStorageDeleteData [09:44:23]Write to MH i2c: 01 00 00 DD 23 00 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 07 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 07 00 DD 23 00 00 00 00 00 8C 0C 9F [09:44:23]RasterBufferAndPrint [09:44:23]line [09:44:23]line [09:44:23]line [09:44:23]line [09:44:23]line [09:44:23]written 0, free lines is 3216 [09:44:23]MH_Cut [09:44:23]Write to MH i2c: D1 01 00 E4 23 01 D9 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: D1 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: D1 01 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: D1 01 00 E4 23 00 D8 [09:44:23]Write to MH i2c: 01 00 00 E5 23 08 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:24]OFD Sender: No OFD packet to send [09:44:24]*** Cut start [09:44:24]*** Purtial cut [09:44:24]*** Stage 1: CUTSNS_PIN = 1 [09:44:24]Read from MH i2c: 01 [09:44:24]MH_I2C_Read... [09:44:24]*** Stop cut motor [09:44:24]*** Cut end [09:44:24]Read from MH i2c: 01 07 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 E5 23 00 00 00 00 00 FF 0F 1D [09:44:24]process_action close_receipt done [09:44:24]requested_data is exist [09:44:24]produce_requested_data [09:44:24]requested_item fm.sn is exist - process it [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 11 00 00 [09:44:24]Write to MH i2c: E2 08 00 E6 23 80 11 00 00 00 00 00 00 83 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 17 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 17 00 E6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D8 [09:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:44:24]wFMCommunicate OK [09:44:24]requested_item fd.num is exist - process it [09:44:24]SAM_PROTO_GetFieldsCounters [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 13 00 00 [09:44:24]Write to MH i2c: E2 08 00 E7 23 80 13 00 00 00 00 00 00 86 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 62 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 62 00 E7 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 50 14 03 00 0E 04 04 00 20 02 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 64 [09:44:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 50 14 03 00 0E 04 04 00 20 02 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 [09:44:25]wFMCommunicate OK [09:44:25]SAM_PROTO_GetFieldsCounters done [09:44:25]requested_item shift.num is exist - process it [09:44:25]requested_item shift.opened is exist - process it [09:44:25]req_shift_opened [09:44:25]FM_GetShiftState [09:44:25]SAM_PROTO_GetShiftState [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 13 01 00 [09:44:25]Write to MH i2c: E2 08 00 E8 23 80 13 01 00 00 00 00 00 88 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 0E 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 0E 00 E8 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8A [09:44:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:44:25]wFMCommunicate OK [09:44:25]SAM_PROTO_GetShiftState done [09:44:25]FM_GetShiftState done [09:44:25]req_shift_opened done [09:44:25]requested_item shift.open_date is exist - process it [09:44:25]req_shift_open_date [09:44:25]req_shift_open_date done [09:44:25]produce_requested_data done [09:44:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201808,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:44:25]process_action_free close_receipt [09:44:25]json_value_free [09:44:25]json_value_free done [09:44:25]process_json_proto returns [09:44:25]Send response to host [09:44:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201808,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:44:25]free response buf [09:44:25]execute_script done [09:44:25]execute_script returns [09:44:25]free content buf [09:44:25]Sock 9.Close socket [09:44:25]Sock 9.Thread stoped [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:10]accept exits with 8 [09:45:10]New connection [09:45:10]New thread 3067080036 created [09:45:10]Thread 3066936676 joined [09:45:10]Waiting for new connection... [09:45:10] Sock 8.Parse request [09:45:10]Sock 8.Check first char [09:45:10]Sock 8.First char is OK [09:45:10]request: POST /json_proto HTTP/1.0 [09:45:10]Method: POST [09:45:10]URL: /json_proto [09:45:10]Method is POST - this is cgi request [09:45:10]url: /json_proto [09:45:10]query_string will be loaded in cgi processing [09:45:10]execute_cgi json_proto POST (null) [09:45:10]execute_cgi path=json_proto method=POST [09:45:10]POST find Content-Length [09:45:10]Host: 172.17.63.195:8080 [09:45:10]Content-Length: 677 [09:45:10]Content-Type: application/json [09:45:10] [09:45:10]POST finish read [09:45:10]Found Content-Length = 677 [09:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:10]execute_script... [09:45: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)449568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:10]POST & json_proto [09:45:10]process_json_proto [09:45:10]json parsed OK: [09:45:10]protocol is kg_v1.0 [09:45:10]action value=close_receipt [09:45:10]process_action close_receipt [09:45:10]cmd_close_receipt [09:45:10]MH_GetDate [09:45:10]Write to MH i2c: F0 00 00 E9 23 FB [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: F0 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: F0 09 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: F0 09 00 E9 23 00 AA 0B 1E 67 68 46 19 67 6C [09:45:10]GetLastDocTimeStamp 1730022265 [09:45:10]current date 1730022314 [09:45:10]FM_GetShiftState [09:45:10]SAM_PROTO_GetShiftState [09:45:10]wFMCommunicate request_size=4 [09:45:10]MH_SAM_APDU [09:45:10]CAPDU: 80 13 01 00 [09:45:10]Write to MH i2c: E2 08 00 EA 23 80 13 01 00 00 00 00 00 8A [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:10]Read from MH i2c: E2 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 0E 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 0E 00 EA 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8C [09:45:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:45:10]wFMCommunicate OK [09:45:10]SAM_PROTO_GetShiftState done [09:45:10]FM_GetShiftState done [09:45:10]opened in 1729987312 [09:45:10]opened+sec_in_day 1730073712 [09:45:10]quantity*price = 50041 [09:45:10]sum+1 = 50042 [09:45:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 101 27.10.2024 09:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201809 ФПД: 268993787648907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094514&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201809&fm=268993787648907&tin=02508201610067®Number=0000000000091777&sum=50000 [09:45:11]StoreToDocumentArchive [09:45:11]shift 544 fd 201809 [09:45:11]save to /storage/0544/doc_00201809 [09:45:11]save last doc name /storage/0544/doc_00201809 to /storage/kkm_last_doc_name [09:45:11]save OK [09:45:11]Clear old archive folders... [09:45:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:11]tlvbuf is 000C86F0 [09:45:11]SAM_PROTO_ClearQueue [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 09 00 00 [09:45:11]Write to MH i2c: E2 08 00 F7 23 80 09 00 00 00 00 00 00 8C [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 F7 23 00 90 00 8E [09:45:11]RAPDU: 90 00 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_ClearQueue done [09:45:11]KKMCreateOFDPacket [09:45:11]OFDProtocolAddRootSTLVToBuf [09:45:11]FM_MakeSignedData [09:45:11]FM_MakeSignedData [09:45:11]SAM_PROTO_SignData [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 0D 01 02 [09:45:11]Write to MH i2c: E2 08 00 F8 23 80 0D 01 02 00 00 00 00 94 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 F8 23 00 90 00 8F [09:45:11]RAPDU: 90 00 [09:45:11]wFMCommunicate OK [09:45:11]wFMCommunicate request_size=255 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 65 00 00 00 F4 03 04 00 AA 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 14 03 00 35 04 06 00 F4 [09:45:11]Write to MH i2c: E2 02 01 F9 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 65 00 00 00 F4 03 04 00 AA 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 14 03 00 35 04 06 00 F4 00 00 45 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 F9 23 00 90 00 90 [09:45:11]RAPDU: 90 00 [09:45:11]wFMCommunicate OK [09:45:11]wFMCommunicate request_size=10 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 0D 02 02 05 A5 FF 28 DB 8B [09:45:11]Write to MH i2c: E2 0D 00 FA 23 80 0D 02 02 05 00 A5 FF 28 DB 8B 00 00 D3 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 03 00 FA 23 00 90 00 91 [09:45:11]RAPDU: 90 00 [09:45:11]wFMCommunicate OK [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 0D 03 02 [09:45:11]Write to MH i2c: E2 08 00 FB 23 80 0D 03 02 00 00 00 00 99 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0B 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 0B 00 FB 23 00 0F DB DD 6F D3 89 74 CD 90 00 6D [09:45:11]RAPDU: 0F DB DD 6F D3 89 74 CD 90 00 [09:45:11]wFMCommunicate OK [09:45:11]SAM_PROTO_SignData done [09:45:11]FM_MakeSignedData done [09:45:11]CreateOFDProtocolMessage [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 11 00 00 [09:45:11]Write to MH i2c: E2 08 00 FC 23 80 11 00 00 00 00 00 00 99 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 FC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EE [09:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:45:11]wFMCommunicate OK [09:45:11]CreateOFDProtocolMessage done [09:45:11]OFDSenderStorePacket 201809 [09:45:11]StoreOFDPacket docnum=201809 [09:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 77 11 07 01 73 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 65 00 00 00 F4 03 04 00 AA 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 14 03 00 35 04 06 00 F4 A5 FF 28 DB 8B 0F DB DD 6F D3 89 74 CD [09:45:11]CheckFolder [09:45:11]dirname=/storage/ofd_packets [09:45:11]CheckFolder done [09:45:11]ProducePacketName [09:45:11]name=ofd_packets/00201809 [09:45:11]NVStorageSaveData ofd_packets/00201809 [09:45:11]File name is /storage/ofd_packets/00201809 [09:45:11]Write 301 bytes [09:45:11]NVStorageSaveData done [09:45:11]OFDSenderStorePacket done [09:45:11]KKMCreateOFDPacket done [09:45:11]NVStorageSaveData kkm_last_timestamp [09:45:11]File name is /storage/kkm_last_timestamp [09:45:11]Write 4 bytes [09:45:11]NVStorageSaveData done [09:45:11]ExternCall_PrintAddStr [09:45:11]wPrintStart [09:45:11]Write to MH i2c: 01 00 00 FD 23 20 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: 01 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: 01 07 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: 01 07 00 FD 23 00 00 00 00 00 FF 0F 35 [09:45:11]RasterBufferAndPrint [09:45:11]line Счет N : (1)449568 [09:45:11]line ИНН: 02508201610067 [09:45:11]line Контрольно-Кассовый Чек [09:45:11]line ПРОДАЖА [09:45:11]line ТРК (МРК, ГНК) : 41 [09:45:11]line Товар: 2710124130 [09:45:11]line Аи-92-К-2 [09:45:11]line 7.480 * 66.90 [09:45:11]line = 500.41 [09:45:11]line НДС 12% НСП 1% [09:45:11]line > о реализуемом товаре [09:45:11]line ОКРУГЛЕНИЕ: -0.41 [09:45:11]line ИТОГО: 500.00 [09:45:11]line Внесено: 500.00 [09:45:11]line СДАЧА: 0.00 [09:45:11]line НСП 1% : 4.43 [09:45:11]line НДС 12% : 53.14 [09:45:11]line Наличными: 500.00 [09:45:11]line Безнал.: 0.00 [09:45:11]line Место: АЗС № 171 "Партнер Нефть" [09:45:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:45:11]line СНО: Общий режим [09:45:11]line Чек 101 27.10.2024 09:45 [09:45:11]line Смена: 544 ФФД: 1.0 [09:45:11]line ЗНМ: 0300000109 [09:45:11]line РНМ: 0000000000091777 [09:45:11]line Версия ККМ: 001 [09:45:11]line ФМ: 0000000000871756 [09:45:11]line ФД: 201809 [09:45:11]line ФПД: 268993787648907 [09:45:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094514&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201809&fm=268993787648907&tin=02508201610067®Number=0000000000091777&sum=50000 [09:45:12]OFD Sender: Processing packet 201809 [packets to send 112, broken 111] [09:45:12]ProducePacketName [09:45:12]name=ofd_packets/00201809 [09:45:12]OFD Sender: To server: pG, [09:45:12]CommunicateWithHost lk.salyk.kg:30040 [09:45:12]ConnectInit lk.salyk.kg [09:45:12]written 0, free lines is 4095 [09:45:12]Connected sock=10 [09:45:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 77 11 07 01 73 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 65 00 00 00 F4 03 04 00 AA 0B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 14 03 00 35 04 06 00 F4 A5 FF 28 DB 8B 0F DB DD 6F D3 89 74 CD [09:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 72 E7 47 00 79 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 14 03 00 F4 03 04 00 4F B7 1D 67 B6 04 01 00 00 66 DA 49 1E A5 DF 5E 77 [09:45:12]CommunicateWithHost err = 0 [09:45:12]CheckOFDResponse [09:45:12]1017 (14) - 77093643461234 [09:45:12]1041 (16) - 0000000000871756 [09:45:12]1040 (4) - 201809 [09:45:12]1012 (4) - 27.10.2024 03:45 [09:45:12]1206 (1) - 0 [09:45:12]OFD Sender: Remove packet 201809 [09:45:12]ProducePacketName [09:45:12]name=ofd_packets/00201809 [09:45:12]NVStorageDeleteData [09:45:12]Write to MH i2c: 01 00 00 28 24 4C [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: 01 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: 01 07 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: 01 07 00 28 24 00 00 00 00 00 96 0C F5 [09:45:12]RasterBufferAndPrint [09:45:12]line [09:45:12]line [09:45:12]line [09:45:12]line [09:45:12]line [09:45:12]written 0, free lines is 3228 [09:45:12]MH_Cut [09:45:12]Write to MH i2c: D1 01 00 2F 24 01 25 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: D1 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: D1 01 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: D1 01 00 2F 24 00 24 [09:45:12]Write to MH i2c: 01 00 00 30 24 54 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:13]OFD Sender: No OFD packet to send [09:45:13]*** Cut start [09:45:13]*** Purtial cut [09:45:13]*** Stage 1: CUTSNS_PIN = 1 [09:45:13]Read from MH i2c: 01 [09:45:13]MH_I2C_Read... [09:45:13]*** Stop cut motor [09:45:13]*** Cut end [09:45:13]Read from MH i2c: 01 07 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: 01 07 00 30 24 00 00 00 00 00 FF 0F 69 [09:45:13]process_action close_receipt done [09:45:13]requested_data is exist [09:45:13]produce_requested_data [09:45:13]requested_item fm.sn is exist - process it [09:45:13]wFMCommunicate request_size=4 [09:45:13]MH_SAM_APDU [09:45:13]CAPDU: 80 11 00 00 [09:45:13]Write to MH i2c: E2 08 00 31 24 80 11 00 00 00 00 00 00 CF [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:13]Read from MH i2c: E2 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 17 00 [09:45:13]MH_I2C_Read... [09:45:13]Read from MH i2c: E2 17 00 31 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 24 [09:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:45:13]wFMCommunicate OK [09:45:13]requested_item fd.num is exist - process it [09:45:13]SAM_PROTO_GetFieldsCounters [09:45:13]wFMCommunicate request_size=4 [09:45:13]MH_SAM_APDU [09:45:13]CAPDU: 80 13 00 00 [09:45:13]Write to MH i2c: E2 08 00 32 24 80 13 00 00 00 00 00 00 D2 [09:45:13]Write i2c OK [09:45:13]MH_I2C_Read... [09:45:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:14]Read from MH i2c: E2 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 62 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 62 00 32 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 51 14 03 00 0E 04 04 00 20 02 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 B4 [09:45:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 51 14 03 00 0E 04 04 00 20 02 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 [09:45:14]wFMCommunicate OK [09:45:14]SAM_PROTO_GetFieldsCounters done [09:45:14]requested_item shift.num is exist - process it [09:45:14]requested_item shift.opened is exist - process it [09:45:14]req_shift_opened [09:45:14]FM_GetShiftState [09:45:14]SAM_PROTO_GetShiftState [09:45:14]wFMCommunicate request_size=4 [09:45:14]MH_SAM_APDU [09:45:14]CAPDU: 80 13 01 00 [09:45:14]Write to MH i2c: E2 08 00 33 24 80 13 01 00 00 00 00 00 D4 [09:45:14]Write i2c OK [09:45:14]MH_I2C_Read... [09:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:14]Read from MH i2c: E2 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 0E 00 [09:45:14]MH_I2C_Read... [09:45:14]Read from MH i2c: E2 0E 00 33 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D6 [09:45:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:45:14]wFMCommunicate OK [09:45:14]SAM_PROTO_GetShiftState done [09:45:14]FM_GetShiftState done [09:45:14]req_shift_opened done [09:45:14]requested_item shift.open_date is exist - process it [09:45:14]req_shift_open_date [09:45:14]req_shift_open_date done [09:45:14]produce_requested_data done [09:45:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201809,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:45:14]process_action_free close_receipt [09:45:14]json_value_free [09:45:14]json_value_free done [09:45:14]process_json_proto returns [09:45:14]Send response to host [09:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201809,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:45:14]free response buf [09:45:14]execute_script done [09:45:14]execute_script returns [09:45:14]free content buf [09:45:14]Sock 8.Close socket [09:45:14]Sock 8.Thread stoped [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:28]accept exits with 9 [09:47:28]New connection [09:47:28]New thread 3066936676 created [09:47:28]Thread 3067080036 joined [09:47:28]Waiting for new connection... [09:47:28] Sock 9.Parse request [09:47:28]Sock 9.Check first char [09:47:28]Sock 9.First char is OK [09:47:28]request: POST /json_proto HTTP/1.0 [09:47:28]Method: POST [09:47:28]URL: /json_proto [09:47:28]Method is POST - this is cgi request [09:47:28]url: /json_proto [09:47:28]query_string will be loaded in cgi processing [09:47:28]execute_cgi json_proto POST (null) [09:47:28]execute_cgi path=json_proto method=POST [09:47:28]POST find Content-Length [09:47:28]Host: 172.17.63.195:8080 [09:47:28]Content-Length: 677 [09:47:28]Content-Type: application/json [09:47:28] [09:47:28]POST finish read [09:47:28]Found Content-Length = 677 [09:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:47:28]execute_script... [09:47:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:47:28]POST & json_proto [09:47:28]process_json_proto [09:47:28]json parsed OK: [09:47:28]protocol is kg_v1.0 [09:47:28]action value=close_receipt [09:47:28]process_action close_receipt [09:47:28]cmd_close_receipt [09:47:28]MH_GetDate [09:47:28]Write to MH i2c: F0 00 00 34 24 47 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: F0 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: F0 09 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: F0 09 00 34 24 00 34 0C 1E 67 68 46 19 67 43 [09:47:28]GetLastDocTimeStamp 1730022314 [09:47:28]current date 1730022452 [09:47:28]FM_GetShiftState [09:47:28]SAM_PROTO_GetShiftState [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 13 01 00 [09:47:28]Write to MH i2c: E2 08 00 35 24 80 13 01 00 00 00 00 00 D6 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 0E 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 0E 00 35 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [09:47:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:47:28]wFMCommunicate OK [09:47:28]SAM_PROTO_GetShiftState done [09:47:28]FM_GetShiftState done [09:47:28]opened in 1729987312 [09:47:28]opened+sec_in_day 1730073712 [09:47:28]quantity*price = 20003 [09:47:28]sum+1 = 20004 [09:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 102 27.10.2024 09:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201810 ФПД: 7031258468183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094732&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201810&fm=7031258468183&tin=02508201610067®Number=0000000000091777&sum=20000 [09:47:29]StoreToDocumentArchive [09:47:29]shift 544 fd 201810 [09:47:29]save to /storage/0544/doc_00201810 [09:47:29]save last doc name /storage/0544/doc_00201810 to /storage/kkm_last_doc_name [09:47:29]save OK [09:47:29]Clear old archive folders... [09:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:29]tlvbuf is 00121120 [09:47:29]SAM_PROTO_ClearQueue [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 09 00 00 [09:47:29]Write to MH i2c: E2 08 00 42 24 80 09 00 00 00 00 00 00 D8 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 42 24 00 90 00 DA [09:47:29]RAPDU: 90 00 [09:47:29]wFMCommunicate OK [09:47:29]SAM_PROTO_ClearQueue done [09:47:29]KKMCreateOFDPacket [09:47:29]OFDProtocolAddRootSTLVToBuf [09:47:29]FM_MakeSignedData [09:47:29]FM_MakeSignedData [09:47:29]SAM_PROTO_SignData [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 0D 01 02 [09:47:29]Write to MH i2c: E2 08 00 43 24 80 0D 01 02 00 00 00 00 E0 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 43 24 00 90 00 DB [09:47:29]RAPDU: 90 00 [09:47:29]wFMCommunicate OK [09:47:29]wFMCommunicate request_size=255 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 34 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 14 03 00 35 04 06 00 06 [09:47:29]Write to MH i2c: E2 02 01 44 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 34 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 14 03 00 35 04 06 00 06 00 00 F2 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 44 24 00 90 00 DC [09:47:29]RAPDU: 90 00 [09:47:29]wFMCommunicate OK [09:47:29]wFMCommunicate request_size=10 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 0D 02 02 05 65 17 A9 CF 57 [09:47:29]Write to MH i2c: E2 0D 00 45 24 80 0D 02 02 05 00 65 17 A9 CF 57 00 00 38 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 03 00 45 24 00 90 00 DD [09:47:29]RAPDU: 90 00 [09:47:29]wFMCommunicate OK [09:47:29]wFMCommunicate request_size=4 [09:47:29]MH_SAM_APDU [09:47:29]CAPDU: 80 0D 03 02 [09:47:29]Write to MH i2c: E2 08 00 46 24 80 0D 03 02 00 00 00 00 E5 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:29]Read from MH i2c: E2 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 0B 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: E2 0B 00 46 24 00 8B 44 9F 98 95 E5 C3 B3 90 00 DC [09:47:30]RAPDU: 8B 44 9F 98 95 E5 C3 B3 90 00 [09:47:30]wFMCommunicate OK [09:47:30]SAM_PROTO_SignData done [09:47:30]FM_MakeSignedData done [09:47:30]CreateOFDProtocolMessage [09:47:30]wFMCommunicate request_size=4 [09:47:30]MH_SAM_APDU [09:47:30]CAPDU: 80 11 00 00 [09:47:30]Write to MH i2c: E2 08 00 47 24 80 11 00 00 00 00 00 00 E5 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:30]Read from MH i2c: E2 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 17 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 17 00 47 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3A [09:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:47:30]wFMCommunicate OK [09:47:30]CreateOFDProtocolMessage done [09:47:30]OFDSenderStorePacket 201810 [09:47:30]StoreOFDPacket docnum=201810 [09:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 54 01 07 01 22 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 34 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 14 03 00 35 04 06 00 06 65 17 A9 CF 57 8B 44 9F 98 95 E5 C3 B3 [09:47:30]CheckFolder [09:47:30]dirname=/storage/ofd_packets [09:47:30]CheckFolder done [09:47:30]ProducePacketName [09:47:30]name=ofd_packets/00201810 [09:47:30]NVStorageSaveData ofd_packets/00201810 [09:47:30]File name is /storage/ofd_packets/00201810 [09:47:30]Write 301 bytes [09:47:30]NVStorageSaveData done [09:47:30]OFDSenderStorePacket done [09:47:30]KKMCreateOFDPacket done [09:47:30]NVStorageSaveData kkm_last_timestamp [09:47:30]File name is /storage/kkm_last_timestamp [09:47:30]Write 4 bytes [09:47:30]NVStorageSaveData done [09:47:30]ExternCall_PrintAddStr [09:47:30]wPrintStart [09:47:30]Write to MH i2c: 01 00 00 48 24 6C [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 07 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 07 00 48 24 00 00 00 00 00 FF 0F 81 [09:47:30]RasterBufferAndPrint [09:47:30]line Счет N : (1)449570 [09:47:30]line ИНН: 02508201610067 [09:47:30]line Контрольно-Кассовый Чек [09:47:30]line ПРОДАЖА [09:47:30]line ТРК (МРК, ГНК) : 41 [09:47:30]line Товар: 2710124130 [09:47:30]line Аи-92-К-2 [09:47:30]line 2.990 * 66.90 [09:47:30]line = 200.03 [09:47:30]line НДС 12% НСП 1% [09:47:30]line > о реализуемом товаре [09:47:30]line ОКРУГЛЕНИЕ: -0.03 [09:47:30]line ИТОГО: 200.00 [09:47:30]line Внесено: 200.00 [09:47:30]line СДАЧА: 0.00 [09:47:30]line НСП 1% : 1.77 [09:47:30]line НДС 12% : 21.24 [09:47:30]line Наличными: 200.00 [09:47:30]line Безнал.: 0.00 [09:47:30]line Место: АЗС № 171 "Партнер Нефть" [09:47:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:47:30]line СНО: Общий режим [09:47:30]line Чек 102 27.10.2024 09:47 [09:47:30]line Смена: 544 ФФД: 1.0 [09:47:30]line ЗНМ: 0300000109 [09:47:30]line РНМ: 0000000000091777 [09:47:30]line Версия ККМ: 001 [09:47:30]line ФМ: 0000000000871756 [09:47:30]line ФД: 201810 [09:47:30]line ФПД: 7031258468183 [09:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094732&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201810&fm=7031258468183&tin=02508201610067®Number=0000000000091777&sum=20000 [09:47:30]OFD Sender: Processing packet 201810 [packets to send 112, broken 111] [09:47:30]ProducePacketName [09:47:30]name=ofd_packets/00201810 [09:47:30]OFD Sender: To server: pG, [09:47:30]CommunicateWithHost lk.salyk.kg:30040 [09:47:30]ConnectInit lk.salyk.kg [09:47:30]written 0, free lines is 4095 [09:47:30]Connected sock=10 [09:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 54 01 07 01 22 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 34 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 14 03 00 35 04 06 00 06 65 17 A9 CF 57 8B 44 9F 98 95 E5 C3 B3 [09:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 88 2B 47 00 4B 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 14 03 00 F4 03 04 00 DA B7 1D 67 B6 04 01 00 00 2A D2 A6 3D 69 84 98 10 [09:47:30]CommunicateWithHost err = 0 [09:47:30]CheckOFDResponse [09:47:30]1017 (14) - 77093643461234 [09:47:30]1041 (16) - 0000000000871756 [09:47:30]1040 (4) - 201810 [09:47:30]1012 (4) - 27.10.2024 03:47 [09:47:30]1206 (1) - 0 [09:47:30]OFD Sender: Remove packet 201810 [09:47:30]ProducePacketName [09:47:30]name=ofd_packets/00201810 [09:47:30]NVStorageDeleteData [09:47:30]Write to MH i2c: 01 00 00 73 24 97 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 07 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 07 00 73 24 00 00 00 00 00 8F 0C 39 [09:47:30]RasterBufferAndPrint [09:47:30]line [09:47:30]line [09:47:30]line [09:47:30]line [09:47:30]line [09:47:30]written 0, free lines is 3219 [09:47:30]MH_Cut [09:47:30]Write to MH i2c: D1 01 00 7A 24 01 70 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: D1 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: D1 01 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: D1 01 00 7A 24 00 6F [09:47:30]Write to MH i2c: 01 00 00 7B 24 9F [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:31]OFD Sender: No OFD packet to send [09:47:31]*** Cut start [09:47:31]*** Purtial cut [09:47:31]*** Stage 1: CUTSNS_PIN = 1 [09:47:31]Read from MH i2c: 01 [09:47:31]MH_I2C_Read... [09:47:31]*** Stop cut motor [09:47:31]*** Cut end [09:47:31]Read from MH i2c: 01 07 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: 01 07 00 7B 24 00 00 00 00 00 FF 0F B4 [09:47:31]process_action close_receipt done [09:47:31]requested_data is exist [09:47:31]produce_requested_data [09:47:31]requested_item fm.sn is exist - process it [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 11 00 00 [09:47:31]Write to MH i2c: E2 08 00 7C 24 80 11 00 00 00 00 00 00 1A [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 17 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 17 00 7C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6F [09:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:47:32]wFMCommunicate OK [09:47:32]requested_item fd.num is exist - process it [09:47:32]SAM_PROTO_GetFieldsCounters [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 13 00 00 [09:47:32]Write to MH i2c: E2 08 00 7D 24 80 13 00 00 00 00 00 00 1D [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 62 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 62 00 7D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 52 14 03 00 0E 04 04 00 20 02 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 03 [09:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 52 14 03 00 0E 04 04 00 20 02 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 [09:47:32]wFMCommunicate OK [09:47:32]SAM_PROTO_GetFieldsCounters done [09:47:32]requested_item shift.num is exist - process it [09:47:32]requested_item shift.opened is exist - process it [09:47:32]req_shift_opened [09:47:32]FM_GetShiftState [09:47:32]SAM_PROTO_GetShiftState [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 13 01 00 [09:47:32]Write to MH i2c: E2 08 00 7E 24 80 13 01 00 00 00 00 00 1F [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 0E 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 0E 00 7E 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [09:47:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:47:32]wFMCommunicate OK [09:47:32]SAM_PROTO_GetShiftState done [09:47:32]FM_GetShiftState done [09:47:32]req_shift_opened done [09:47:32]requested_item shift.open_date is exist - process it [09:47:32]req_shift_open_date [09:47:32]req_shift_open_date done [09:47:32]produce_requested_data done [09:47:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201810,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:47:32]process_action_free close_receipt [09:47:32]json_value_free [09:47:32]json_value_free done [09:47:32]process_json_proto returns [09:47:32]Send response to host [09:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201810,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:47:32]free response buf [09:47:32]execute_script done [09:47:32]execute_script returns [09:47:32]free content buf [09:47:32]Sock 9.Close socket [09:47:32]Sock 9.Thread stoped [09:47:32]accept exits with 8 [09:47:32]New connection [09:47:32]New thread 3067080036 created [09:47:32]Thread 3066936676 joined [09:47:32]Waiting for new connection... [09:47:32] Sock 8.Parse request [09:47:32]Sock 8.Check first char [09:47:32]Sock 8.First char is OK [09:47:32]request: POST /json_proto HTTP/1.0 [09:47:32]Method: POST [09:47:32]URL: /json_proto [09:47:32]Method is POST - this is cgi request [09:47:32]url: /json_proto [09:47:32]query_string will be loaded in cgi processing [09:47:32]execute_cgi json_proto POST (null) [09:47:32]execute_cgi path=json_proto method=POST [09:47:32]POST find Content-Length [09:47:32]Host: 172.17.63.195:8080 [09:47:32]Content-Length: 769 [09:47:32]Content-Type: application/json [09:47:32] [09:47:32]POST finish read [09:47:32]Found Content-Length = 769 [09:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:32]execute_script... [09:47:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:32]POST & json_proto [09:47:32]process_json_proto [09:47:32]json parsed OK: [09:47:32]protocol is kg_v1.0 [09:47:32]action value=close_receipt [09:47:32]process_action close_receipt [09:47:32]cmd_close_receipt [09:47:32]MH_GetDate [09:47:32]Write to MH i2c: F0 00 00 7F 24 92 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: F0 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: F0 09 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: F0 09 00 7F 24 00 38 0C 1E 67 68 46 19 67 92 [09:47:32]GetLastDocTimeStamp 1730022452 [09:47:32]current date 1730022456 [09:47:32]FM_GetShiftState [09:47:32]SAM_PROTO_GetShiftState [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 13 01 00 [09:47:32]Write to MH i2c: E2 08 00 80 24 80 13 01 00 00 00 00 00 21 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 0E 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 0E 00 80 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 23 [09:47:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:47:32]wFMCommunicate OK [09:47:32]SAM_PROTO_GetShiftState done [09:47:32]FM_GetShiftState done [09:47:32]opened in 1729987312 [09:47:32]opened+sec_in_day 1730073712 [09:47:32]quantity*price = 100015 [09:47:32]sum+1 = 100017 [09:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 103 27.10.2024 09:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201811 ФПД: 81433532578026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094736&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201811&fm=81433532578026&tin=02508201610067®Number=0000000000091777&sum=100016 [09:47:34]StoreToDocumentArchive [09:47:34]shift 544 fd 201811 [09:47:34]save to /storage/0544/doc_00201811 [09:47:34]save last doc name /storage/0544/doc_00201811 to /storage/kkm_last_doc_name [09:47:34]save OK [09:47:34]Clear old archive folders... [09:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:34]tlvbuf is 001645D0 [09:47:34]SAM_PROTO_ClearQueue [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 09 00 00 [09:47:34]Write to MH i2c: E2 08 00 8D 24 80 09 00 00 00 00 00 00 23 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 8D 24 00 90 00 25 [09:47:34]RAPDU: 90 00 [09:47:34]wFMCommunicate OK [09:47:34]SAM_PROTO_ClearQueue done [09:47:34]KKMCreateOFDPacket [09:47:34]OFDProtocolAddRootSTLVToBuf [09:47:34]FM_MakeSignedData [09:47:34]FM_MakeSignedData [09:47:34]SAM_PROTO_SignData [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 0D 01 02 [09:47:34]Write to MH i2c: E2 08 00 8E 24 80 0D 01 02 00 00 00 00 2B [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 8E 24 00 90 00 26 [09:47:34]RAPDU: 90 00 [09:47:34]wFMCommunicate OK [09:47:34]wFMCommunicate request_size=255 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 67 00 00 00 F4 03 04 00 38 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 14 03 00 35 04 06 00 4A [09:47:34]Write to MH i2c: E2 02 01 8F 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 67 00 00 00 F4 03 04 00 38 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 14 03 00 35 04 06 00 4A 00 00 DF [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 8F 24 00 90 00 27 [09:47:34]RAPDU: 90 00 [09:47:34]wFMCommunicate OK [09:47:34]wFMCommunicate request_size=10 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 0D 02 02 05 10 38 C8 38 EA [09:47:34]Write to MH i2c: E2 0D 00 90 24 80 0D 02 02 05 00 10 38 C8 38 EA 00 00 6A [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 03 00 90 24 00 90 00 28 [09:47:34]RAPDU: 90 00 [09:47:34]wFMCommunicate OK [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 0D 03 02 [09:47:34]Write to MH i2c: E2 08 00 91 24 80 0D 03 02 00 00 00 00 30 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 0B 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 0B 00 91 24 00 F9 A7 66 16 24 3F D1 06 90 00 87 [09:47:34]RAPDU: F9 A7 66 16 24 3F D1 06 90 00 [09:47:34]wFMCommunicate OK [09:47:34]SAM_PROTO_SignData done [09:47:34]FM_MakeSignedData done [09:47:34]CreateOFDProtocolMessage [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 11 00 00 [09:47:34]Write to MH i2c: E2 08 00 92 24 80 11 00 00 00 00 00 00 30 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 17 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 17 00 92 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 85 [09:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:47:34]wFMCommunicate OK [09:47:34]CreateOFDProtocolMessage done [09:47:34]OFDSenderStorePacket 201811 [09:47:34]StoreOFDPacket docnum=201811 [09:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C B3 07 01 2B 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 67 00 00 00 F4 03 04 00 38 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 14 03 00 35 04 06 00 4A 10 38 C8 38 EA F9 A7 66 16 24 3F D1 06 [09:47:34]CheckFolder [09:47:34]dirname=/storage/ofd_packets [09:47:34]CheckFolder done [09:47:34]ProducePacketName [09:47:34]name=ofd_packets/00201811 [09:47:34]NVStorageSaveData ofd_packets/00201811 [09:47:34]File name is /storage/ofd_packets/00201811 [09:47:34]Write 301 bytes [09:47:34]NVStorageSaveData done [09:47:34]OFDSenderStorePacket done [09:47:34]KKMCreateOFDPacket done [09:47:34]NVStorageSaveData kkm_last_timestamp [09:47:34]File name is /storage/kkm_last_timestamp [09:47:34]Write 4 bytes [09:47:34]NVStorageSaveData done [09:47:34]ExternCall_PrintAddStr [09:47:34]wPrintStart [09:47:34]Write to MH i2c: 01 00 00 93 24 B7 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 07 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 07 00 93 24 00 00 00 00 00 FF 0F CC [09:47:34]RasterBufferAndPrint [09:47:34]line Счет N : (1)449569 [09:47:34]line ИНН: 02508201610067 [09:47:34]line Контрольно-Кассовый Чек [09:47:34]line ПРОДАЖА [09:47:34]line ТРК (МРК, ГНК) : 52 [09:47:34]line Товар: 2710124130 [09:47:34]line Аи-92-К-2 [09:47:34]line 14.950 * 66.90 [09:47:34]line = 1000.16 [09:47:34]line НДС 12% НСП 1% [09:47:34]line > о реализуемом товаре [09:47:34]line ИТОГО: 1000.16 [09:47:34]line НСП 1% : 8.85 [09:47:34]line НДС 12% : 106.21 [09:47:34]line Наличными: 0.00 [09:47:34]line Безнал.: 1000.16 [09:47:34]line Место: АЗС № 171 "Партнер Нефть" [09:47:34]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:47:34]line СНО: Общий режим [09:47:34]line Чек 103 27.10.2024 09:47 [09:47:34]line Смена: 544 ФФД: 1.0 [09:47:34]line ЗНМ: 0300000109 [09:47:34]line РНМ: 0000000000091777 [09:47:34]line Версия ККМ: 001 [09:47:34]line Платежная система: Mbank [09:47:34]line ФМ: 0000000000871756 [09:47:34]line ФД: 201811 [09:47:34]line ФПД: 81433532578026 [09:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094736&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201811&fm=81433532578026&tin=02508201610067®Number=0000000000091777&sum=100016 [09:47:34]written 0, free lines is 4095 [09:47:34]OFD Sender: Processing packet 201811 [packets to send 112, broken 111] [09:47:34]ProducePacketName [09:47:34]name=ofd_packets/00201811 [09:47:34]OFD Sender: To server: pG, [09:47:34]CommunicateWithHost lk.salyk.kg:30040 [09:47:34]ConnectInit lk.salyk.kg [09:47:34]Connected sock=10 [09:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C B3 07 01 2B 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 67 00 00 00 F4 03 04 00 38 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 14 03 00 35 04 06 00 4A 10 38 C8 38 EA F9 A7 66 16 24 3F D1 06 [09:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F9 21 47 00 91 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 14 03 00 F4 03 04 00 DE B7 1D 67 B6 04 01 00 00 DB 87 1A F8 C1 E9 94 92 [09:47:35]CommunicateWithHost err = 0 [09:47:35]CheckOFDResponse [09:47:35]1017 (14) - 77093643461234 [09:47:35]1041 (16) - 0000000000871756 [09:47:35]1040 (4) - 201811 [09:47:35]1012 (4) - 27.10.2024 03:47 [09:47:35]1206 (1) - 0 [09:47:35]OFD Sender: Remove packet 201811 [09:47:35]ProducePacketName [09:47:35]name=ofd_packets/00201811 [09:47:35]NVStorageDeleteData [09:47:35]Write to MH i2c: 01 00 00 BC 24 E0 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: 01 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: 01 07 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: 01 07 00 BC 24 00 00 00 00 00 BE 0C B1 [09:47:35]RasterBufferAndPrint [09:47:35]line [09:47:35]line [09:47:35]line [09:47:35]line [09:47:35]line [09:47:35]written 0, free lines is 3272 [09:47:35]MH_Cut [09:47:35]Write to MH i2c: D1 01 00 C3 24 01 B9 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: D1 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: D1 01 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: D1 01 00 C3 24 00 B8 [09:47:35]Write to MH i2c: 01 00 00 C4 24 E8 [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]OFD Sender: No OFD packet to send [09:47:36]*** Cut start [09:47:36]*** Purtial cut [09:47:36]*** Stage 1: CUTSNS_PIN = 1 [09:47:36]Read from MH i2c: 01 [09:47:36]MH_I2C_Read... [09:47:36]*** Stop cut motor [09:47:36]*** Cut end [09:47:36]Read from MH i2c: 01 07 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 07 00 C4 24 00 00 00 00 00 FF 0F FD [09:47:36]process_action close_receipt done [09:47:36]requested_data is exist [09:47:36]produce_requested_data [09:47:36]requested_item fm.sn is exist - process it [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 11 00 00 [09:47:36]Write to MH i2c: E2 08 00 C5 24 80 11 00 00 00 00 00 00 63 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 17 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 17 00 C5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [09:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:47:36]wFMCommunicate OK [09:47:36]requested_item fd.num is exist - process it [09:47:36]SAM_PROTO_GetFieldsCounters [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 13 00 00 [09:47:36]Write to MH i2c: E2 08 00 C6 24 80 13 00 00 00 00 00 00 66 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 62 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 62 00 C6 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 53 14 03 00 0E 04 04 00 20 02 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 50 [09:47:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 53 14 03 00 0E 04 04 00 20 02 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 [09:47:36]wFMCommunicate OK [09:47:36]SAM_PROTO_GetFieldsCounters done [09:47:36]requested_item shift.num is exist - process it [09:47:36]requested_item shift.opened is exist - process it [09:47:36]req_shift_opened [09:47:36]FM_GetShiftState [09:47:36]SAM_PROTO_GetShiftState [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 13 01 00 [09:47:36]Write to MH i2c: E2 08 00 C7 24 80 13 01 00 00 00 00 00 68 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 0E 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 0E 00 C7 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6A [09:47:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:47:36]wFMCommunicate OK [09:47:36]SAM_PROTO_GetShiftState done [09:47:36]FM_GetShiftState done [09:47:36]req_shift_opened done [09:47:36]requested_item shift.open_date is exist - process it [09:47:36]req_shift_open_date [09:47:36]req_shift_open_date done [09:47:36]produce_requested_data done [09:47:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201811,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:47:36]process_action_free close_receipt [09:47:36]json_value_free [09:47:36]json_value_free done [09:47:36]process_json_proto returns [09:47:36]Send response to host [09:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201811,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:47:36]free response buf [09:47:36]execute_script done [09:47:36]execute_script returns [09:47:36]free content buf [09:47:36]Sock 8.Close socket [09:47:36]Sock 8.Thread stoped [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:05]accept exits with 9 [09:48:05]New connection [09:48:05]New thread 3066936676 created [09:48:05]Thread 3067080036 joined [09:48:05]Waiting for new connection... [09:48:05] Sock 9.Parse request [09:48:05]Sock 9.Check first char [09:48:05]Sock 9.First char is OK [09:48:05]request: POST /json_proto HTTP/1.0 [09:48:05]Method: POST [09:48:05]URL: /json_proto [09:48:05]Method is POST - this is cgi request [09:48:05]url: /json_proto [09:48:05]query_string will be loaded in cgi processing [09:48:05]execute_cgi json_proto POST (null) [09:48:05]execute_cgi path=json_proto method=POST [09:48:05]POST find Content-Length [09:48:05]Host: 172.17.63.195:8080 [09:48:05]Content-Length: 677 [09:48:05]Content-Type: application/json [09:48:05] [09:48:05]POST finish read [09:48:05]Found Content-Length = 677 [09:48:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:05]execute_script... [09:48: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)449571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:05]POST & json_proto [09:48:05]process_json_proto [09:48:05]json parsed OK: [09:48:05]protocol is kg_v1.0 [09:48:05]action value=close_receipt [09:48:05]process_action close_receipt [09:48:05]cmd_close_receipt [09:48:05]MH_GetDate [09:48:05]Write to MH i2c: F0 00 00 C8 24 DB [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: F0 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: F0 09 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: F0 09 00 C8 24 00 59 0C 1E 67 68 46 19 67 FC [09:48:05]GetLastDocTimeStamp 1730022456 [09:48:05]current date 1730022489 [09:48:05]FM_GetShiftState [09:48:05]SAM_PROTO_GetShiftState [09:48:05]wFMCommunicate request_size=4 [09:48:05]MH_SAM_APDU [09:48:05]CAPDU: 80 13 01 00 [09:48:05]Write to MH i2c: E2 08 00 C9 24 80 13 01 00 00 00 00 00 6A [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:05]Read from MH i2c: E2 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 0E 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: E2 0E 00 C9 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [09:48:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:48:05]wFMCommunicate OK [09:48:05]SAM_PROTO_GetShiftState done [09:48:05]FM_GetShiftState done [09:48:05]opened in 1729987312 [09:48:05]opened+sec_in_day 1730073712 [09:48:05]quantity*price = 50041 [09:48:05]sum+1 = 50042 [09:48:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 104 27.10.2024 09:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201812 ФПД: 167434914430740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094809&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201812&fm=167434914430740&tin=02508201610067®Number=0000000000091777&sum=50000 [09:48:06]StoreToDocumentArchive [09:48:06]shift 544 fd 201812 [09:48:06]save to /storage/0544/doc_00201812 [09:48:06]save last doc name /storage/0544/doc_00201812 to /storage/kkm_last_doc_name [09:48:06]save OK [09:48:06]Clear old archive folders... [09:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:06]tlvbuf is 00137690 [09:48:06]SAM_PROTO_ClearQueue [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 09 00 00 [09:48:06]Write to MH i2c: E2 08 00 D6 24 80 09 00 00 00 00 00 00 6C [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 03 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [09:48:06]RAPDU: 90 00 [09:48:06]wFMCommunicate OK [09:48:06]SAM_PROTO_ClearQueue done [09:48:06]KKMCreateOFDPacket [09:48:06]OFDProtocolAddRootSTLVToBuf [09:48:06]FM_MakeSignedData [09:48:06]FM_MakeSignedData [09:48:06]SAM_PROTO_SignData [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 0D 01 02 [09:48:06]Write to MH i2c: E2 08 00 D7 24 80 0D 01 02 00 00 00 00 74 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 03 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 03 00 D7 24 00 90 00 6F [09:48:07]RAPDU: 90 00 [09:48:07]wFMCommunicate OK [09:48:07]wFMCommunicate request_size=255 [09:48:07]MH_SAM_APDU [09:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 59 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 14 03 00 35 04 06 00 98 [09:48:07]Write to MH i2c: E2 02 01 D8 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 59 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 14 03 00 35 04 06 00 98 00 00 7F [09:48:07]Write i2c OK [09:48:07]MH_I2C_Read... [09:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 03 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 03 00 D8 24 00 90 00 70 [09:48:07]RAPDU: 90 00 [09:48:07]wFMCommunicate OK [09:48:07]wFMCommunicate request_size=10 [09:48:07]MH_SAM_APDU [09:48:07]CAPDU: 80 0D 02 02 05 47 FA 98 FF 14 [09:48:07]Write to MH i2c: E2 0D 00 D9 24 80 0D 02 02 05 00 47 FA 98 FF 14 00 00 6D [09:48:07]Write i2c OK [09:48:07]MH_I2C_Read... [09:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 03 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 03 00 D9 24 00 90 00 71 [09:48:07]RAPDU: 90 00 [09:48:07]wFMCommunicate OK [09:48:07]wFMCommunicate request_size=4 [09:48:07]MH_SAM_APDU [09:48:07]CAPDU: 80 0D 03 02 [09:48:07]Write to MH i2c: E2 08 00 DA 24 80 0D 03 02 00 00 00 00 79 [09:48:07]Write i2c OK [09:48:07]MH_I2C_Read... [09:48:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 0B 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 0B 00 DA 24 00 A0 4D 73 CB EA 99 9D F5 90 00 BA [09:48:07]RAPDU: A0 4D 73 CB EA 99 9D F5 90 00 [09:48:07]wFMCommunicate OK [09:48:07]SAM_PROTO_SignData done [09:48:07]FM_MakeSignedData done [09:48:07]CreateOFDProtocolMessage [09:48:07]wFMCommunicate request_size=4 [09:48:07]MH_SAM_APDU [09:48:07]CAPDU: 80 11 00 00 [09:48:07]Write to MH i2c: E2 08 00 DB 24 80 11 00 00 00 00 00 00 79 [09:48:07]Write i2c OK [09:48:07]MH_I2C_Read... [09:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 17 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 17 00 DB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [09:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:48:07]wFMCommunicate OK [09:48:07]CreateOFDProtocolMessage done [09:48:07]OFDSenderStorePacket 201812 [09:48:07]StoreOFDPacket docnum=201812 [09:48:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E 0B 07 01 8A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 59 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 14 03 00 35 04 06 00 98 47 FA 98 FF 14 A0 4D 73 CB EA 99 9D F5 [09:48:07]CheckFolder [09:48:07]dirname=/storage/ofd_packets [09:48:07]CheckFolder done [09:48:07]ProducePacketName [09:48:07]name=ofd_packets/00201812 [09:48:07]NVStorageSaveData ofd_packets/00201812 [09:48:07]File name is /storage/ofd_packets/00201812 [09:48:07]Write 301 bytes [09:48:07]NVStorageSaveData done [09:48:07]OFDSenderStorePacket done [09:48:07]KKMCreateOFDPacket done [09:48:07]NVStorageSaveData kkm_last_timestamp [09:48:07]File name is /storage/kkm_last_timestamp [09:48:07]Write 4 bytes [09:48:07]NVStorageSaveData done [09:48:07]ExternCall_PrintAddStr [09:48:07]wPrintStart [09:48:07]Write to MH i2c: 01 00 00 DC 24 00 [09:48:07]Write i2c OK [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: 01 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: 01 07 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: 01 07 00 DC 24 00 00 00 00 00 FF 0F 15 [09:48:07]RasterBufferAndPrint [09:48:07]line Счет N : (1)449571 [09:48:07]line ИНН: 02508201610067 [09:48:07]line Контрольно-Кассовый Чек [09:48:07]line ПРОДАЖА [09:48:07]line ТРК (МРК, ГНК) : 62 [09:48:07]line Товар: 2710124130 [09:48:07]line Аи-92-К-2 [09:48:07]line 7.480 * 66.90 [09:48:07]line = 500.41 [09:48:07]line НДС 12% НСП 1% [09:48:07]line > о реализуемом товаре [09:48:07]line ОКРУГЛЕНИЕ: -0.41 [09:48:07]line ИТОГО: 500.00 [09:48:07]line Внесено: 500.00 [09:48:07]line СДАЧА: 0.00 [09:48:07]line НСП 1% : 4.43 [09:48:07]line НДС 12% : 53.14 [09:48:07]line Наличными: 500.00 [09:48:07]line Безнал.: 0.00 [09:48:07]line Место: АЗС № 171 "Партнер Нефть" [09:48:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:48:07]line СНО: Общий режим [09:48:07]line Чек 104 27.10.2024 09:48 [09:48:07]line Смена: 544 ФФД: 1.0 [09:48:07]line ЗНМ: 0300000109 [09:48:07]line РНМ: 0000000000091777 [09:48:07]line Версия ККМ: 001 [09:48:07]line ФМ: 0000000000871756 [09:48:07]line ФД: 201812 [09:48:07]line ФПД: 167434914430740 [09:48:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094809&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201812&fm=167434914430740&tin=02508201610067®Number=0000000000091777&sum=50000 [09:48:07]OFD Sender: Processing packet 201812 [packets to send 112, broken 111] [09:48:07]ProducePacketName [09:48:07]name=ofd_packets/00201812 [09:48:07]OFD Sender: To server: pG, [09:48:07]CommunicateWithHost lk.salyk.kg:30040 [09:48:07]ConnectInit lk.salyk.kg [09:48:07]written 0, free lines is 4095 [09:48:07]Connected sock=10 [09:48:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E 0B 07 01 8A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 59 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 14 03 00 35 04 06 00 98 47 FA 98 FF 14 A0 4D 73 CB EA 99 9D F5 [09:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 82 AA 47 00 84 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 14 03 00 F4 03 04 00 FF B7 1D 67 B6 04 01 00 00 A2 26 FE 44 C6 4A 8F 2E [09:48:08]CommunicateWithHost err = 0 [09:48:08]CheckOFDResponse [09:48:08]1017 (14) - 77093643461234 [09:48:08]1041 (16) - 0000000000871756 [09:48:08]1040 (4) - 201812 [09:48:08]1012 (4) - 27.10.2024 03:48 [09:48:08]1206 (1) - 0 [09:48:08]OFD Sender: Remove packet 201812 [09:48:08]ProducePacketName [09:48:08]name=ofd_packets/00201812 [09:48:08]NVStorageDeleteData [09:48:08]Write to MH i2c: 01 00 00 07 25 2C [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: 01 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: 01 07 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: 01 07 00 07 25 00 00 00 00 00 8C 0C CB [09:48:08]RasterBufferAndPrint [09:48:08]line [09:48:08]line [09:48:08]line [09:48:08]line [09:48:08]line [09:48:08]written 0, free lines is 3215 [09:48:08]MH_Cut [09:48:08]Write to MH i2c: D1 01 00 0E 25 01 05 [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: D1 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: D1 01 00 [09:48:08]MH_I2C_Read... [09:48:08]Read from MH i2c: D1 01 00 0E 25 00 04 [09:48:08]Write to MH i2c: 01 00 00 0F 25 34 [09:48:08]Write i2c OK [09:48:08]MH_I2C_Read... [09:48:08]OFD Sender: No OFD packet to send [09:48:09]*** Cut start [09:48:09]*** Purtial cut [09:48:09]*** Stage 1: CUTSNS_PIN = 1 [09:48:09]Read from MH i2c: 01 [09:48:09]MH_I2C_Read... [09:48:09]*** Stop cut motor [09:48:09]*** Cut end [09:48:09]Read from MH i2c: 01 07 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: 01 07 00 0F 25 00 00 00 00 00 FF 0F 49 [09:48:09]process_action close_receipt done [09:48:09]requested_data is exist [09:48:09]produce_requested_data [09:48:09]requested_item fm.sn is exist - process it [09:48:09]wFMCommunicate request_size=4 [09:48:09]MH_SAM_APDU [09:48:09]CAPDU: 80 11 00 00 [09:48:09]Write to MH i2c: E2 08 00 10 25 80 11 00 00 00 00 00 00 AF [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:09]Read from MH i2c: E2 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 17 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 17 00 10 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [09:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:48:09]wFMCommunicate OK [09:48:09]requested_item fd.num is exist - process it [09:48:09]SAM_PROTO_GetFieldsCounters [09:48:09]wFMCommunicate request_size=4 [09:48:09]MH_SAM_APDU [09:48:09]CAPDU: 80 13 00 00 [09:48:09]Write to MH i2c: E2 08 00 11 25 80 13 00 00 00 00 00 00 B2 [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:09]Read from MH i2c: E2 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 62 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 62 00 11 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 54 14 03 00 0E 04 04 00 20 02 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 A0 [09:48:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 54 14 03 00 0E 04 04 00 20 02 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 [09:48:09]wFMCommunicate OK [09:48:09]SAM_PROTO_GetFieldsCounters done [09:48:09]requested_item shift.num is exist - process it [09:48:09]requested_item shift.opened is exist - process it [09:48:09]req_shift_opened [09:48:09]FM_GetShiftState [09:48:09]SAM_PROTO_GetShiftState [09:48:09]wFMCommunicate request_size=4 [09:48:09]MH_SAM_APDU [09:48:09]CAPDU: 80 13 01 00 [09:48:09]Write to MH i2c: E2 08 00 12 25 80 13 01 00 00 00 00 00 B4 [09:48:09]Write i2c OK [09:48:09]MH_I2C_Read... [09:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:09]Read from MH i2c: E2 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 0E 00 [09:48:09]MH_I2C_Read... [09:48:09]Read from MH i2c: E2 0E 00 12 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B6 [09:48:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:48:09]wFMCommunicate OK [09:48:09]SAM_PROTO_GetShiftState done [09:48:09]FM_GetShiftState done [09:48:09]req_shift_opened done [09:48:09]requested_item shift.open_date is exist - process it [09:48:09]req_shift_open_date [09:48:09]req_shift_open_date done [09:48:09]produce_requested_data done [09:48:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201812,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:48:09]process_action_free close_receipt [09:48:09]json_value_free [09:48:09]json_value_free done [09:48:09]process_json_proto returns [09:48:09]Send response to host [09:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201812,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:48:09]free response buf [09:48:09]execute_script done [09:48:09]execute_script returns [09:48:09]free content buf [09:48:09]Sock 9.Close socket [09:48:09]Sock 9.Thread stoped [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:21]accept exits with 8 [09:49:21]New connection [09:49:21]New thread 3067080036 created [09:49:21]Thread 3066936676 joined [09:49:21]Waiting for new connection... [09:49:21] Sock 8.Parse request [09:49:21]Sock 8.Check first char [09:49:21]Sock 8.First char is OK [09:49:21]request: POST /json_proto HTTP/1.0 [09:49:21]Method: POST [09:49:21]URL: /json_proto [09:49:21]Method is POST - this is cgi request [09:49:21]url: /json_proto [09:49:21]query_string will be loaded in cgi processing [09:49:21]execute_cgi json_proto POST (null) [09:49:21]execute_cgi path=json_proto method=POST [09:49:21]POST find Content-Length [09:49:21]Host: 172.17.63.195:8080 [09:49:21]Content-Length: 679 [09:49:21]Content-Type: application/json [09:49:21] [09:49:21]POST finish read [09:49:21]Found Content-Length = 679 [09:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [09:49:21]execute_script... [09:49: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)449572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [09:49:21]POST & json_proto [09:49:21]process_json_proto [09:49:21]json parsed OK: [09:49:21]protocol is kg_v1.0 [09:49:21]action value=close_receipt [09:49:21]process_action close_receipt [09:49:21]cmd_close_receipt [09:49:21]MH_GetDate [09:49:21]Write to MH i2c: F0 00 00 13 25 27 [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: F0 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: F0 09 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: F0 09 00 13 25 00 A5 0C 1E 67 68 46 19 67 94 [09:49:21]GetLastDocTimeStamp 1730022489 [09:49:21]current date 1730022565 [09:49:21]FM_GetShiftState [09:49:21]SAM_PROTO_GetShiftState [09:49:21]wFMCommunicate request_size=4 [09:49:21]MH_SAM_APDU [09:49:21]CAPDU: 80 13 01 00 [09:49:21]Write to MH i2c: E2 08 00 14 25 80 13 01 00 00 00 00 00 B6 [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:21]Read from MH i2c: E2 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 0E 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 0E 00 14 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [09:49:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:49:21]wFMCommunicate OK [09:49:21]SAM_PROTO_GetShiftState done [09:49:21]FM_GetShiftState done [09:49:21]opened in 1729987312 [09:49:21]opened+sec_in_day 1730073712 [09:49:21]quantity*price = 100050 [09:49:21]sum+1 = 100052 [09:49: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 105 27.10.2024 09:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201813 ФПД: 236491253496658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094925&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201813&fm=236491253496658&tin=02508201610067®Number=0000000000091777&sum=100000 [09:49:22]StoreToDocumentArchive [09:49:22]shift 544 fd 201813 [09:49:22]save to /storage/0544/doc_00201813 [09:49:22]save last doc name /storage/0544/doc_00201813 to /storage/kkm_last_doc_name [09:49:22]save OK [09:49:22]Clear old archive folders... [09:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:49:22]tlvbuf is 00090190 [09:49:22]SAM_PROTO_ClearQueue [09:49:22]wFMCommunicate request_size=4 [09:49:22]MH_SAM_APDU [09:49:22]CAPDU: 80 09 00 00 [09:49:22]Write to MH i2c: E2 08 00 21 25 80 09 00 00 00 00 00 00 B8 [09:49:22]Write i2c OK [09:49:22]MH_I2C_Read... [09:49:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:22]Read from MH i2c: E2 [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: E2 03 00 [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: E2 03 00 21 25 00 90 00 BA [09:49:22]RAPDU: 90 00 [09:49:22]wFMCommunicate OK [09:49:22]SAM_PROTO_ClearQueue done [09:49:22]KKMCreateOFDPacket [09:49:22]OFDProtocolAddRootSTLVToBuf [09:49:22]FM_MakeSignedData [09:49:22]FM_MakeSignedData [09:49:22]SAM_PROTO_SignData [09:49:22]wFMCommunicate request_size=4 [09:49:22]MH_SAM_APDU [09:49:22]CAPDU: 80 0D 01 02 [09:49:22]Write to MH i2c: E2 08 00 22 25 80 0D 01 02 00 00 00 00 C0 [09:49:22]Write i2c OK [09:49:22]MH_I2C_Read... [09:49:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:22]Read from MH i2c: E2 [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: E2 03 00 [09:49:22]MH_I2C_Read... [09:49:22]Read from MH i2c: E2 03 00 22 25 00 90 00 BB [09:49:22]RAPDU: 90 00 [09:49:22]wFMCommunicate OK [09:49:22]wFMCommunicate request_size=255 [09:49:22]MH_SAM_APDU [09:49: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 32 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 69 00 00 00 F4 03 04 00 A5 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 14 03 00 35 04 06 00 D7 16 69 28 [09:49:22]Write to MH i2c: E2 02 01 23 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 69 00 00 00 F4 03 04 00 A5 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 14 03 00 35 04 06 00 D7 16 69 28 00 00 F5 [09:49:22]Write i2c OK [09:49:22]MH_I2C_Read... [09:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:23]Read from MH i2c: E2 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 03 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 03 00 23 25 00 90 00 BC [09:49:23]RAPDU: 90 00 [09:49:23]wFMCommunicate OK [09:49:23]wFMCommunicate request_size=7 [09:49:23]MH_SAM_APDU [09:49:23]CAPDU: 80 0D 02 02 02 3B 52 [09:49:23]Write to MH i2c: E2 0A 00 24 25 80 0D 02 02 02 00 3B 52 00 00 54 [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:23]Read from MH i2c: E2 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 03 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 03 00 24 25 00 90 00 BD [09:49:23]RAPDU: 90 00 [09:49:23]wFMCommunicate OK [09:49:23]wFMCommunicate request_size=4 [09:49:23]MH_SAM_APDU [09:49:23]CAPDU: 80 0D 03 02 [09:49:23]Write to MH i2c: E2 08 00 25 25 80 0D 03 02 00 00 00 00 C5 [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:23]Read from MH i2c: E2 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 0B 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 0B 00 25 25 00 48 16 5F 57 56 2E 51 03 90 00 B2 [09:49:23]RAPDU: 48 16 5F 57 56 2E 51 03 90 00 [09:49:23]wFMCommunicate OK [09:49:23]SAM_PROTO_SignData done [09:49:23]FM_MakeSignedData done [09:49:23]CreateOFDProtocolMessage [09:49:23]wFMCommunicate request_size=4 [09:49:23]MH_SAM_APDU [09:49:23]CAPDU: 80 11 00 00 [09:49:23]Write to MH i2c: E2 08 00 26 25 80 11 00 00 00 00 00 00 C5 [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:23]Read from MH i2c: E2 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 17 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: E2 17 00 26 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1A [09:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:49:23]wFMCommunicate OK [09:49:23]CreateOFDProtocolMessage done [09:49:23]OFDSenderStorePacket 201813 [09:49:23]StoreOFDPacket docnum=201813 [09:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 53 42 04 01 95 A7 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 32 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 69 00 00 00 F4 03 04 00 A5 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 14 03 00 35 04 06 00 D7 16 69 28 3B 52 48 16 5F 57 56 2E 51 03 [09:49:23]CheckFolder [09:49:23]dirname=/storage/ofd_packets [09:49:23]CheckFolder done [09:49:23]ProducePacketName [09:49:23]name=ofd_packets/00201813 [09:49:23]NVStorageSaveData ofd_packets/00201813 [09:49:23]File name is /storage/ofd_packets/00201813 [09:49:23]Write 298 bytes [09:49:23]NVStorageSaveData done [09:49:23]OFDSenderStorePacket done [09:49:23]KKMCreateOFDPacket done [09:49:23]NVStorageSaveData kkm_last_timestamp [09:49:23]File name is /storage/kkm_last_timestamp [09:49:23]Write 4 bytes [09:49:23]NVStorageSaveData done [09:49:23]ExternCall_PrintAddStr [09:49:23]wPrintStart [09:49:23]Write to MH i2c: 01 00 00 27 25 4C [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: 01 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: 01 07 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: 01 07 00 27 25 00 00 00 00 00 FF 0F 61 [09:49:23]RasterBufferAndPrint [09:49:23]line Счет N : (1)449572 [09:49:23]line ИНН: 02508201610067 [09:49:23]line Контрольно-Кассовый Чек [09:49:23]line ПРОДАЖА [09:49:23]line ТРК (МРК, ГНК) : 33 [09:49:23]line Товар: 2710194210 [09:49:23]line ДТ-К-2 [09:49:23]line 13.130 * 76.20 [09:49:23]line = 1000.51 [09:49:23]line НДС 12% НСП 1% [09:49:23]line > о реализуемом товаре [09:49:23]line ОКРУГЛЕНИЕ: -0.51 [09:49:23]line ИТОГО: 1000.00 [09:49:23]line Внесено: 1000.00 [09:49:23]line СДАЧА: 0.00 [09:49:23]line НСП 1% : 8.85 [09:49:23]line НДС 12% : 106.25 [09:49:23]line Наличными: 1000.00 [09:49:23]line Безнал.: 0.00 [09:49:23]line Место: АЗС № 171 "Партнер Нефть" [09:49:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:49:23]line СНО: Общий режим [09:49:23]line Чек 105 27.10.2024 09:49 [09:49:23]line Смена: 544 ФФД: 1.0 [09:49:23]line ЗНМ: 0300000109 [09:49:23]line РНМ: 0000000000091777 [09:49:23]line Версия ККМ: 001 [09:49:23]line ФМ: 0000000000871756 [09:49:23]line ФД: 201813 [09:49:23]line ФПД: 236491253496658 [09:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094925&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201813&fm=236491253496658&tin=02508201610067®Number=0000000000091777&sum=100000 [09:49:23]OFD Sender: Processing packet 201813 [packets to send 112, broken 111] [09:49:23]ProducePacketName [09:49:23]name=ofd_packets/00201813 [09:49:23]OFD Sender: To server: pG, [09:49:23]CommunicateWithHost lk.salyk.kg:30040 [09:49:23]ConnectInit lk.salyk.kg [09:49:23]written 0, free lines is 4095 [09:49:23]Connected sock=10 [09:49:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 53 42 04 01 95 A7 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 32 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 69 00 00 00 F4 03 04 00 A5 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 14 03 00 35 04 06 00 D7 16 69 28 3B 52 48 16 5F 57 56 2E 51 03 [09:49:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 75 BC 47 00 00 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 14 03 00 F4 03 04 00 4B B8 1D 67 B6 04 01 00 00 20 00 AD 29 41 58 35 9A [09:49:23]CommunicateWithHost err = 0 [09:49:23]CheckOFDResponse [09:49:23]1017 (14) - 77093643461234 [09:49:23]1041 (16) - 0000000000871756 [09:49:23]1040 (4) - 201813 [09:49:23]1012 (4) - 27.10.2024 03:49 [09:49:23]1206 (1) - 0 [09:49:23]OFD Sender: Remove packet 201813 [09:49:23]ProducePacketName [09:49:23]name=ofd_packets/00201813 [09:49:23]NVStorageDeleteData [09:49:23]Write to MH i2c: 01 00 00 52 25 77 [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: 01 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: 01 07 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: 01 07 00 52 25 00 00 00 00 00 9E 0C 28 [09:49:23]RasterBufferAndPrint [09:49:23]line [09:49:23]line [09:49:23]line [09:49:23]line [09:49:23]line [09:49:23]written 0, free lines is 3236 [09:49:23]MH_Cut [09:49:23]Write to MH i2c: D1 01 00 59 25 01 50 [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: D1 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: D1 01 00 [09:49:23]MH_I2C_Read... [09:49:23]Read from MH i2c: D1 01 00 59 25 00 4F [09:49:23]Write to MH i2c: 01 00 00 5A 25 7F [09:49:23]Write i2c OK [09:49:23]MH_I2C_Read... [09:49:24]OFD Sender: No OFD packet to send [09:49:24]*** Cut start [09:49:24]*** Purtial cut [09:49:24]*** Stage 1: CUTSNS_PIN = 1 [09:49:25]Read from MH i2c: 01 [09:49:25]MH_I2C_Read... [09:49:25]*** Stop cut motor [09:49:25]*** Cut end [09:49:25]Read from MH i2c: 01 07 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: 01 07 00 5A 25 00 00 00 00 00 FF 0F 94 [09:49:25]process_action close_receipt done [09:49:25]requested_data is exist [09:49:25]produce_requested_data [09:49:25]requested_item fm.sn is exist - process it [09:49:25]wFMCommunicate request_size=4 [09:49:25]MH_SAM_APDU [09:49:25]CAPDU: 80 11 00 00 [09:49:25]Write to MH i2c: E2 08 00 5B 25 80 11 00 00 00 00 00 00 FA [09:49:25]Write i2c OK [09:49:25]MH_I2C_Read... [09:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:25]Read from MH i2c: E2 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 17 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 17 00 5B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [09:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:49:25]wFMCommunicate OK [09:49:25]requested_item fd.num is exist - process it [09:49:25]SAM_PROTO_GetFieldsCounters [09:49:25]wFMCommunicate request_size=4 [09:49:25]MH_SAM_APDU [09:49:25]CAPDU: 80 13 00 00 [09:49:25]Write to MH i2c: E2 08 00 5C 25 80 13 00 00 00 00 00 00 FD [09:49:25]Write i2c OK [09:49:25]MH_I2C_Read... [09:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:25]Read from MH i2c: E2 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 62 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 62 00 5C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 55 14 03 00 0E 04 04 00 20 02 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 EF [09:49:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 55 14 03 00 0E 04 04 00 20 02 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 [09:49:25]wFMCommunicate OK [09:49:25]SAM_PROTO_GetFieldsCounters done [09:49:25]requested_item shift.num is exist - process it [09:49:25]requested_item shift.opened is exist - process it [09:49:25]req_shift_opened [09:49:25]FM_GetShiftState [09:49:25]SAM_PROTO_GetShiftState [09:49:25]wFMCommunicate request_size=4 [09:49:25]MH_SAM_APDU [09:49:25]CAPDU: 80 13 01 00 [09:49:25]Write to MH i2c: E2 08 00 5D 25 80 13 01 00 00 00 00 00 FF [09:49:25]Write i2c OK [09:49:25]MH_I2C_Read... [09:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:25]Read from MH i2c: E2 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 0E 00 [09:49:25]MH_I2C_Read... [09:49:25]Read from MH i2c: E2 0E 00 5D 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 01 [09:49:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:49:25]wFMCommunicate OK [09:49:25]SAM_PROTO_GetShiftState done [09:49:25]FM_GetShiftState done [09:49:25]req_shift_opened done [09:49:25]requested_item shift.open_date is exist - process it [09:49:25]req_shift_open_date [09:49:25]req_shift_open_date done [09:49:25]produce_requested_data done [09:49:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201813,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:49:25]process_action_free close_receipt [09:49:25]json_value_free [09:49:25]json_value_free done [09:49:25]process_json_proto returns [09:49:25]Send response to host [09:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201813,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:49:25]free response buf [09:49:25]execute_script done [09:49:25]execute_script returns [09:49:25]free content buf [09:49:25]Sock 8.Close socket [09:49:25]Sock 8.Thread stoped [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:52]accept exits with 9 [09:49:52]New connection [09:49:52]New thread 3066936676 created [09:49:52]Thread 3067080036 joined [09:49:52]Waiting for new connection... [09:49:52] Sock 9.Parse request [09:49:52]Sock 9.Check first char [09:49:52]Sock 9.First char is OK [09:49:52]request: POST /json_proto HTTP/1.0 [09:49:52]Method: POST [09:49:52]URL: /json_proto [09:49:52]Method is POST - this is cgi request [09:49:52]url: /json_proto [09:49:52]query_string will be loaded in cgi processing [09:49:52]execute_cgi json_proto POST (null) [09:49:52]execute_cgi path=json_proto method=POST [09:49:52]POST find Content-Length [09:49:52]Host: 172.17.63.195:8080 [09:49:52]Content-Length: 677 [09:49:52]Content-Type: application/json [09:49:52] [09:49:52]POST finish read [09:49:52]Found Content-Length = 677 [09:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:52]execute_script... [09:49:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:52]POST & json_proto [09:49:52]process_json_proto [09:49:52]json parsed OK: [09:49:52]protocol is kg_v1.0 [09:49:52]action value=close_receipt [09:49:52]process_action close_receipt [09:49:52]cmd_close_receipt [09:49:52]MH_GetDate [09:49:52]Write to MH i2c: F0 00 00 5E 25 72 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 09 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 09 00 5E 25 00 C4 0C 1E 67 68 46 19 67 FE [09:49:52]GetLastDocTimeStamp 1730022565 [09:49:52]current date 1730022596 [09:49:52]FM_GetShiftState [09:49:52]SAM_PROTO_GetShiftState [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 13 01 00 [09:49:52]Write to MH i2c: E2 08 00 5F 25 80 13 01 00 00 00 00 00 01 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0E 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0E 00 5F 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 03 [09:49:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_GetShiftState done [09:49:52]FM_GetShiftState done [09:49:52]opened in 1729987312 [09:49:52]opened+sec_in_day 1730073712 [09:49:52]quantity*price = 50041 [09:49:52]sum+1 = 50042 [09:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 106 27.10.2024 09:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201814 ФПД: 230022867282322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094956&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201814&fm=230022867282322&tin=02508201610067®Number=0000000000091777&sum=50000 [09:49:53]StoreToDocumentArchive [09:49:53]shift 544 fd 201814 [09:49:53]save to /storage/0544/doc_00201814 [09:49:53]save last doc name /storage/0544/doc_00201814 to /storage/kkm_last_doc_name [09:49:53]save OK [09:49:53]Clear old archive folders... [09:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:53]tlvbuf is 0008FAE0 [09:49:53]SAM_PROTO_ClearQueue [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 09 00 00 [09:49:53]Write to MH i2c: E2 08 00 6C 25 80 09 00 00 00 00 00 00 03 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 6C 25 00 90 00 05 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_ClearQueue done [09:49:53]KKMCreateOFDPacket [09:49:53]OFDProtocolAddRootSTLVToBuf [09:49:53]FM_MakeSignedData [09:49:53]FM_MakeSignedData [09:49:53]SAM_PROTO_SignData [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 01 02 [09:49:53]Write to MH i2c: E2 08 00 6D 25 80 0D 01 02 00 00 00 00 0B [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 6D 25 00 90 00 06 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=255 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 00 00 00 F4 03 04 00 C4 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 14 03 00 35 04 06 00 D1 [09:49:53]Write to MH i2c: E2 02 01 6E 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 32 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 6A 00 00 00 F4 03 04 00 C4 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 14 03 00 35 04 06 00 D1 00 00 BE [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 6E 25 00 90 00 07 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=10 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 02 02 05 34 5F 4B 69 92 [09:49:53]Write to MH i2c: E2 0D 00 6F 25 80 0D 02 02 05 00 34 5F 4B 69 92 00 00 F1 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 6F 25 00 90 00 08 [09:49:54]RAPDU: 90 00 [09:49:54]wFMCommunicate OK [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 0D 03 02 [09:49:54]Write to MH i2c: E2 08 00 70 25 80 0D 03 02 00 00 00 00 10 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 0B 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 0B 00 70 25 00 90 50 2C 9D 7E 93 CF 8E 90 00 28 [09:49:54]RAPDU: 90 50 2C 9D 7E 93 CF 8E 90 00 [09:49:54]wFMCommunicate OK [09:49:54]SAM_PROTO_SignData done [09:49:54]FM_MakeSignedData done [09:49:54]CreateOFDProtocolMessage [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 11 00 00 [09:49:54]Write to MH i2c: E2 08 00 71 25 80 11 00 00 00 00 00 00 10 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 17 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 17 00 71 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 65 [09:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:49:54]wFMCommunicate OK [09:49:54]CreateOFDProtocolMessage done [09:49:54]OFDSenderStorePacket 201814 [09:49:54]StoreOFDPacket docnum=201814 [09:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 74 96 07 01 E5 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 00 00 00 F4 03 04 00 C4 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 14 03 00 35 04 06 00 D1 34 5F 4B 69 92 90 50 2C 9D 7E 93 CF 8E [09:49:54]CheckFolder [09:49:54]dirname=/storage/ofd_packets [09:49:54]CheckFolder done [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00201814 [09:49:54]NVStorageSaveData ofd_packets/00201814 [09:49:54]File name is /storage/ofd_packets/00201814 [09:49:54]Write 301 bytes [09:49:54]NVStorageSaveData done [09:49:54]OFDSenderStorePacket done [09:49:54]KKMCreateOFDPacket done [09:49:54]NVStorageSaveData kkm_last_timestamp [09:49:54]File name is /storage/kkm_last_timestamp [09:49:54]Write 4 bytes [09:49:54]NVStorageSaveData done [09:49:54]ExternCall_PrintAddStr [09:49:54]wPrintStart [09:49:54]Write to MH i2c: 01 00 00 72 25 97 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 72 25 00 00 00 00 00 FF 0F AC [09:49:54]RasterBufferAndPrint [09:49:54]line Счет N : (1)449573 [09:49:54]line ИНН: 02508201610067 [09:49:54]line Контрольно-Кассовый Чек [09:49:54]line ПРОДАЖА [09:49:54]line ТРК (МРК, ГНК) : 52 [09:49:54]line Товар: 2710124130 [09:49:54]line Аи-92-К-2 [09:49:54]line 7.480 * 66.90 [09:49:54]line = 500.41 [09:49:54]line НДС 12% НСП 1% [09:49:54]line > о реализуемом товаре [09:49:54]line ОКРУГЛЕНИЕ: -0.41 [09:49:54]line ИТОГО: 500.00 [09:49:54]line Внесено: 500.00 [09:49:54]line СДАЧА: 0.00 [09:49:54]line НСП 1% : 4.43 [09:49:54]line НДС 12% : 53.14 [09:49:54]line Наличными: 500.00 [09:49:54]line Безнал.: 0.00 [09:49:54]line Место: АЗС № 171 "Партнер Нефть" [09:49:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:49:54]line СНО: Общий режим [09:49:54]line Чек 106 27.10.2024 09:49 [09:49:54]line Смена: 544 ФФД: 1.0 [09:49:54]line ЗНМ: 0300000109 [09:49:54]line РНМ: 0000000000091777 [09:49:54]line Версия ККМ: 001 [09:49:54]line ФМ: 0000000000871756 [09:49:54]line ФД: 201814 [09:49:54]line ФПД: 230022867282322 [09:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094956&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201814&fm=230022867282322&tin=02508201610067®Number=0000000000091777&sum=50000 [09:49:54]OFD Sender: Processing packet 201814 [packets to send 112, broken 111] [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00201814 [09:49:54]OFD Sender: To server: pG, [09:49:54]CommunicateWithHost lk.salyk.kg:30040 [09:49:54]ConnectInit lk.salyk.kg [09:49:54]written 0, free lines is 4095 [09:49:54]Connected sock=10 [09:49:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 74 96 07 01 E5 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 00 00 00 F4 03 04 00 C4 0C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 14 03 00 35 04 06 00 D1 34 5F 4B 69 92 90 50 2C 9D 7E 93 CF 8E [09:49:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0A BD 47 00 0F 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 14 03 00 F4 03 04 00 6A B8 1D 67 B6 04 01 00 00 C2 26 6D F2 0B A3 62 B6 [09:49:54]CommunicateWithHost err = 0 [09:49:54]CheckOFDResponse [09:49:54]1017 (14) - 77093643461234 [09:49:54]1041 (16) - 0000000000871756 [09:49:54]1040 (4) - 201814 [09:49:54]1012 (4) - 27.10.2024 03:50 [09:49:54]1206 (1) - 0 [09:49:54]OFD Sender: Remove packet 201814 [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00201814 [09:49:54]NVStorageDeleteData [09:49:54]Write to MH i2c: 01 00 00 9D 25 C2 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 9D 25 00 00 00 00 00 8D 0C 62 [09:49:54]RasterBufferAndPrint [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]written 0, free lines is 3217 [09:49:54]MH_Cut [09:49:54]Write to MH i2c: D1 01 00 A4 25 01 9B [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 01 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 01 00 A4 25 00 9A [09:49:54]Write to MH i2c: 01 00 00 A5 25 CA [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:55]OFD Sender: No OFD packet to send [09:49:55]*** Cut start [09:49:55]*** Purtial cut [09:49:55]*** Stage 1: CUTSNS_PIN = 1 [09:49:56]Read from MH i2c: 01 [09:49:56]MH_I2C_Read... [09:49:56]*** Stop cut motor [09:49:56]*** Cut end [09:49:56]Read from MH i2c: 01 07 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: 01 07 00 A5 25 00 00 00 00 00 FF 0F DF [09:49:56]process_action close_receipt done [09:49:56]requested_data is exist [09:49:56]produce_requested_data [09:49:56]requested_item fm.sn is exist - process it [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 11 00 00 [09:49:56]Write to MH i2c: E2 08 00 A6 25 80 11 00 00 00 00 00 00 45 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:56]Read from MH i2c: E2 17 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 17 00 A6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [09:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:49:56]wFMCommunicate OK [09:49:56]requested_item fd.num is exist - process it [09:49:56]SAM_PROTO_GetFieldsCounters [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 13 00 00 [09:49:56]Write to MH i2c: E2 08 00 A7 25 80 13 00 00 00 00 00 00 48 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 62 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 62 00 A7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 56 14 03 00 0E 04 04 00 20 02 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 3E [09:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 56 14 03 00 0E 04 04 00 20 02 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 [09:49:56]wFMCommunicate OK [09:49:56]SAM_PROTO_GetFieldsCounters done [09:49:56]requested_item shift.num is exist - process it [09:49:56]requested_item shift.opened is exist - process it [09:49:56]req_shift_opened [09:49:56]FM_GetShiftState [09:49:56]SAM_PROTO_GetShiftState [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 13 01 00 [09:49:56]Write to MH i2c: E2 08 00 A8 25 80 13 01 00 00 00 00 00 4A [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 0E 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 0E 00 A8 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4C [09:49:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:49:56]wFMCommunicate OK [09:49:56]SAM_PROTO_GetShiftState done [09:49:56]FM_GetShiftState done [09:49:56]req_shift_opened done [09:49:56]requested_item shift.open_date is exist - process it [09:49:56]req_shift_open_date [09:49:56]req_shift_open_date done [09:49:56]produce_requested_data done [09:49:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201814,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:49:56]process_action_free close_receipt [09:49:56]json_value_free [09:49:56]json_value_free done [09:49:56]process_json_proto returns [09:49:56]Send response to host [09:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201814,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:49:56]free response buf [09:49:56]execute_script done [09:49:56]execute_script returns [09:49:56]free content buf [09:49:56]Sock 9.Close socket [09:49:56]Sock 9.Thread stoped [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:47]accept exits with 8 [09:51:47]New connection [09:51:47]New thread 3067080036 created [09:51:47]Thread 3066936676 joined [09:51:47]Waiting for new connection... [09:51:47] Sock 8.Parse request [09:51:47]Sock 8.Check first char [09:51:47]Sock 8.First char is OK [09:51:47]request: POST /json_proto HTTP/1.0 [09:51:47]Method: POST [09:51:47]URL: /json_proto [09:51:47]Method is POST - this is cgi request [09:51:47]url: /json_proto [09:51:47]query_string will be loaded in cgi processing [09:51:47]execute_cgi json_proto POST (null) [09:51:47]execute_cgi path=json_proto method=POST [09:51:47]POST find Content-Length [09:51:47]Host: 172.17.63.195:8080 [09:51:47]Content-Length: 984 [09:51:47]Content-Type: application/json [09:51:47] [09:51:47]POST finish read [09:51:47]Found Content-Length = 984 [09:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 37.940, "sum" : 2500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 171\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.94 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:47]execute_script... [09:51: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)449574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 37.940, "sum" : 2500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 171\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.94 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:47]POST & json_proto [09:51:47]process_json_proto [09:51:47]json parsed OK: [09:51:47]protocol is kg_v1.0 [09:51:47]action value=close_receipt [09:51:47]process_action close_receipt [09:51:47]cmd_close_receipt [09:51:47]MH_GetDate [09:51:47]Write to MH i2c: F0 00 00 A9 25 BD [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: F0 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: F0 09 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: F0 09 00 A9 25 00 37 0D 1E 67 68 46 19 67 BD [09:51:47]GetLastDocTimeStamp 1730022596 [09:51:47]current date 1730022711 [09:51:47]FM_GetShiftState [09:51:47]SAM_PROTO_GetShiftState [09:51:47]wFMCommunicate request_size=4 [09:51:47]MH_SAM_APDU [09:51:47]CAPDU: 80 13 01 00 [09:51:47]Write to MH i2c: E2 08 00 AA 25 80 13 01 00 00 00 00 00 4C [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:47]Read from MH i2c: E2 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 0E 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 0E 00 AA 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4E [09:51:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:51:47]wFMCommunicate OK [09:51:47]SAM_PROTO_GetShiftState done [09:51:47]FM_GetShiftState done [09:51:47]opened in 1729987312 [09:51:47]opened+sec_in_day 1730073712 [09:51:47]quantity*price = 250024 [09:51:47]sum+1 = 250026 [09:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 107 27.10.2024 09:51 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Дисконтная программа АИ-92 номер 171 сэкономлено 37.94 сом ФМ: 0000000000871756 ФД: 201815 ФПД: 256559627348610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095151&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201815&fm=256559627348610&tin=02508201610067®Number=0000000000091777&sum=250000 [09:51:48]StoreToDocumentArchive [09:51:48]shift 544 fd 201815 [09:51:48]save to /storage/0544/doc_00201815 [09:51:48]save last doc name /storage/0544/doc_00201815 to /storage/kkm_last_doc_name [09:51:48]save OK [09:51:48]Clear old archive folders... [09:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:48]tlvbuf is B6EF9D60 [09:51:48]SAM_PROTO_ClearQueue [09:51:48]wFMCommunicate request_size=4 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 09 00 00 [09:51:48]Write to MH i2c: E2 08 00 B7 25 80 09 00 00 00 00 00 00 4E [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 B7 25 00 90 00 50 [09:51:48]RAPDU: 90 00 [09:51:48]wFMCommunicate OK [09:51:48]SAM_PROTO_ClearQueue done [09:51:48]KKMCreateOFDPacket [09:51:48]OFDProtocolAddRootSTLVToBuf [09:51:48]FM_MakeSignedData [09:51:48]FM_MakeSignedData [09:51:48]SAM_PROTO_SignData [09:51:48]wFMCommunicate request_size=4 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 0D 01 02 [09:51:48]Write to MH i2c: E2 08 00 B8 25 80 0D 01 02 00 00 00 00 56 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 B8 25 00 90 00 51 [09:51:48]RAPDU: 90 00 [09:51:48]wFMCommunicate OK [09:51:48]wFMCommunicate request_size=255 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 37 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 14 03 00 35 04 06 00 E9 [09:51:48]Write to MH i2c: E2 02 01 B9 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 32 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 37 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 14 03 00 35 04 06 00 E9 00 00 BE [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 B9 25 00 90 00 52 [09:51:49]RAPDU: 90 00 [09:51:49]wFMCommunicate OK [09:51:49]wFMCommunicate request_size=10 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 0D 02 02 05 56 F1 73 AA 82 [09:51:49]Write to MH i2c: E2 0D 00 BA 25 80 0D 02 02 05 00 56 F1 73 AA 82 00 00 49 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 BA 25 00 90 00 53 [09:51:49]RAPDU: 90 00 [09:51:49]wFMCommunicate OK [09:51:49]wFMCommunicate request_size=4 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 0D 03 02 [09:51:49]Write to MH i2c: E2 08 00 BB 25 80 0D 03 02 00 00 00 00 5B [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 0B 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 0B 00 BB 25 00 F8 41 1F 64 E5 7E 72 3A 90 00 27 [09:51:49]RAPDU: F8 41 1F 64 E5 7E 72 3A 90 00 [09:51:49]wFMCommunicate OK [09:51:49]SAM_PROTO_SignData done [09:51:49]FM_MakeSignedData done [09:51:49]CreateOFDProtocolMessage [09:51:49]wFMCommunicate request_size=4 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 11 00 00 [09:51:49]Write to MH i2c: E2 08 00 BC 25 80 11 00 00 00 00 00 00 5B [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 17 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 17 00 BC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B0 [09:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:51:49]wFMCommunicate OK [09:51:49]CreateOFDProtocolMessage done [09:51:49]OFDSenderStorePacket 201815 [09:51:49]StoreOFDPacket docnum=201815 [09:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6C 17 07 01 46 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 37 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 14 03 00 35 04 06 00 E9 56 F1 73 AA 82 F8 41 1F 64 E5 7E 72 3A [09:51:49]CheckFolder [09:51:49]dirname=/storage/ofd_packets [09:51:49]CheckFolder done [09:51:49]ProducePacketName [09:51:49]name=ofd_packets/00201815 [09:51:49]NVStorageSaveData ofd_packets/00201815 [09:51:49]File name is /storage/ofd_packets/00201815 [09:51:49]Write 301 bytes [09:51:49]NVStorageSaveData done [09:51:49]OFDSenderStorePacket done [09:51:49]KKMCreateOFDPacket done [09:51:49]NVStorageSaveData kkm_last_timestamp [09:51:49]File name is /storage/kkm_last_timestamp [09:51:49]Write 4 bytes [09:51:49]NVStorageSaveData done [09:51:49]ExternCall_PrintAddStr [09:51:49]wPrintStart [09:51:49]Write to MH i2c: 01 00 00 BD 25 E2 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 BD 25 00 00 00 00 00 FF 0F F7 [09:51:49]RasterBufferAndPrint [09:51:49]line Счет N : (1)449574 [09:51:49]line ИНН: 02508201610067 [09:51:49]line Контрольно-Кассовый Чек [09:51:49]line ПРОДАЖА [09:51:49]line ТРК (МРК, ГНК) : 41 [09:51:49]line Товар: 2710124130 [09:51:49]line Аи-92-К-2 [09:51:49]line 37.940 * 65.90 [09:51:49]line = 2500.25 [09:51:49]line НДС 12% НСП 1% [09:51:49]line > о реализуемом товаре [09:51:49]line ОКРУГЛЕНИЕ: -0.25 [09:51:49]line ИТОГО: 2500.00 [09:51:49]line Внесено: 2500.00 [09:51:49]line СДАЧА: 0.00 [09:51:49]line НСП 1% : 22.13 [09:51:49]line НДС 12% : 265.51 [09:51:49]line Наличными: 2500.00 [09:51:49]line Безнал.: 0.00 [09:51:49]line Место: АЗС № 171 "Партнер Нефть" [09:51:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:51:49]line СНО: Общий режим [09:51:49]line Чек 107 27.10.2024 09:51 [09:51:49]line Смена: 544 ФФД: 1.0 [09:51:49]line ЗНМ: 0300000109 [09:51:49]line РНМ: 0000000000091777 [09:51:49]line Версия ККМ: 001 [09:51:49]line [09:51:49]line Дисконтная программа [09:51:49]line АИ-92 [09:51:49]line номер 171 [09:51:49]line сэкономлено 37.94 сом [09:51:49]line ФМ: 0000000000871756 [09:51:49]line ФД: 201815 [09:51:49]line ФПД: 256559627348610 [09:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095151&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201815&fm=256559627348610&tin=02508201610067®Number=0000000000091777&sum=250000 [09:51:49]OFD Sender: Processing packet 201815 [packets to send 112, broken 111] [09:51:49]ProducePacketName [09:51:49]name=ofd_packets/00201815 [09:51:49]OFD Sender: To server: pG, [09:51:49]CommunicateWithHost lk.salyk.kg:30040 [09:51:49]ConnectInit lk.salyk.kg [09:51:49]written 0, free lines is 4095 [09:51:49]Connected sock=10 [09:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6C 17 07 01 46 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 94 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A9 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 37 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 14 03 00 35 04 06 00 E9 56 F1 73 AA 82 F8 41 1F 64 E5 7E 72 3A [09:51:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DE CF 47 00 74 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 14 03 00 F4 03 04 00 DD B8 1D 67 B6 04 01 00 00 DB 95 7B DA 45 F3 1C 5B [09:51:50]CommunicateWithHost err = 0 [09:51:50]CheckOFDResponse [09:51:50]1017 (14) - 77093643461234 [09:51:50]1041 (16) - 0000000000871756 [09:51:50]1040 (4) - 201815 [09:51:50]1012 (4) - 27.10.2024 03:51 [09:51:50]1206 (1) - 0 [09:51:50]OFD Sender: Remove packet 201815 [09:51:50]ProducePacketName [09:51:50]name=ofd_packets/00201815 [09:51:50]NVStorageDeleteData [09:51:50]Write to MH i2c: 01 00 00 ED 25 12 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 ED 25 00 00 00 00 00 3C 0C 61 [09:51:50]RasterBufferAndPrint [09:51:50]line [09:51:50]line [09:51:50]line [09:51:50]line [09:51:50]line [09:51:50]written 0, free lines is 3137 [09:51:50]MH_Cut [09:51:50]Write to MH i2c: D1 01 00 F4 25 01 EB [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: D1 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: D1 01 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: D1 01 00 F4 25 00 EA [09:51:50]Write to MH i2c: 01 00 00 F5 25 1A [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]OFD Sender: No OFD packet to send [09:51:51]*** Cut start [09:51:51]*** Purtial cut [09:51:51]*** Stage 1: CUTSNS_PIN = 1 [09:51:51]Read from MH i2c: 01 [09:51:51]MH_I2C_Read... [09:51:51]*** Stop cut motor [09:51:51]*** Cut end [09:51:51]Read from MH i2c: 01 07 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 07 00 F5 25 00 00 00 00 00 FF 0F 2F [09:51:51]process_action close_receipt done [09:51:51]requested_data is exist [09:51:51]produce_requested_data [09:51:51]requested_item fm.sn is exist - process it [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 11 00 00 [09:51:51]Write to MH i2c: E2 08 00 F6 25 80 11 00 00 00 00 00 00 95 [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 17 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 17 00 F6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [09:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:51:51]wFMCommunicate OK [09:51:51]requested_item fd.num is exist - process it [09:51:51]SAM_PROTO_GetFieldsCounters [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 13 00 00 [09:51:51]Write to MH i2c: E2 08 00 F7 25 80 13 00 00 00 00 00 00 98 [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 62 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 62 00 F7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 57 14 03 00 0E 04 04 00 20 02 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 92 [09:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 57 14 03 00 0E 04 04 00 20 02 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 [09:51:51]wFMCommunicate OK [09:51:51]SAM_PROTO_GetFieldsCounters done [09:51:51]requested_item shift.num is exist - process it [09:51:51]requested_item shift.opened is exist - process it [09:51:51]req_shift_opened [09:51:51]FM_GetShiftState [09:51:51]SAM_PROTO_GetShiftState [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 13 01 00 [09:51:51]Write to MH i2c: E2 08 00 F8 25 80 13 01 00 00 00 00 00 9A [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 0E 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 0E 00 F8 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9C [09:51:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:51:51]wFMCommunicate OK [09:51:51]SAM_PROTO_GetShiftState done [09:51:51]FM_GetShiftState done [09:51:51]req_shift_opened done [09:51:51]requested_item shift.open_date is exist - process it [09:51:51]req_shift_open_date [09:51:51]req_shift_open_date done [09:51:51]produce_requested_data done [09:51:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201815,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:51:51]process_action_free close_receipt [09:51:51]json_value_free [09:51:51]json_value_free done [09:51:51]process_json_proto returns [09:51:51]Send response to host [09:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201815,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:51:51]free response buf [09:51:51]execute_script done [09:51:51]execute_script returns [09:51:51]free content buf [09:51:51]Sock 8.Close socket [09:51:51]Sock 8.Thread stoped [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:14]accept exits with 9 [09:53:14]New connection [09:53:14]New thread 3066936676 created [09:53:14]Thread 3067080036 joined [09:53:14]Waiting for new connection... [09:53:14] Sock 9.Parse request [09:53:14]Sock 9.Check first char [09:53:14]Sock 9.First char is OK [09:53:14]request: POST /json_proto HTTP/1.0 [09:53:14]Method: POST [09:53:14]URL: /json_proto [09:53:14]Method is POST - this is cgi request [09:53:14]url: /json_proto [09:53:14]query_string will be loaded in cgi processing [09:53:14]execute_cgi json_proto POST (null) [09:53:14]execute_cgi path=json_proto method=POST [09:53:14]POST find Content-Length [09:53:14]Host: 172.17.63.195:8080 [09:53:14]Content-Length: 679 [09:53:14]Content-Type: application/json [09:53:14] [09:53:14]POST finish read [09:53:14]Found Content-Length = 679 [09:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [09:53:14]execute_script... [09:53:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [09:53:14]POST & json_proto [09:53:14]process_json_proto [09:53:14]json parsed OK: [09:53:14]protocol is kg_v1.0 [09:53:14]action value=close_receipt [09:53:14]process_action close_receipt [09:53:14]cmd_close_receipt [09:53:14]MH_GetDate [09:53:14]Write to MH i2c: F0 00 00 F9 25 0D [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: F0 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: F0 09 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: F0 09 00 F9 25 00 8E 0D 1E 67 68 46 19 67 64 [09:53:14]GetLastDocTimeStamp 1730022711 [09:53:14]current date 1730022798 [09:53:14]FM_GetShiftState [09:53:14]SAM_PROTO_GetShiftState [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 13 01 00 [09:53:14]Write to MH i2c: E2 08 00 FA 25 80 13 01 00 00 00 00 00 9C [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 0E 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 0E 00 FA 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9E [09:53:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:53:14]wFMCommunicate OK [09:53:14]SAM_PROTO_GetShiftState done [09:53:14]FM_GetShiftState done [09:53:14]opened in 1729987312 [09:53:14]opened+sec_in_day 1730073712 [09:53:14]quantity*price = 100050 [09:53:14]sum+1 = 100052 [09:53:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 108 27.10.2024 09:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201816 ФПД: 12417350696326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095318&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201816&fm=12417350696326&tin=02508201610067®Number=0000000000091777&sum=100000 [09:53:15]StoreToDocumentArchive [09:53:15]shift 544 fd 201816 [09:53:15]save to /storage/0544/doc_00201816 [09:53:15]save last doc name /storage/0544/doc_00201816 to /storage/kkm_last_doc_name [09:53:15]save OK [09:53:15]Clear old archive folders... [09:53:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:53:15]tlvbuf is B6F74410 [09:53:15]SAM_PROTO_ClearQueue [09:53:15]wFMCommunicate request_size=4 [09:53:15]MH_SAM_APDU [09:53:15]CAPDU: 80 09 00 00 [09:53:15]Write to MH i2c: E2 08 00 07 26 80 09 00 00 00 00 00 00 9F [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:15]Read from MH i2c: E2 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 03 00 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 03 00 07 26 00 90 00 A1 [09:53:15]RAPDU: 90 00 [09:53:15]wFMCommunicate OK [09:53:15]SAM_PROTO_ClearQueue done [09:53:15]KKMCreateOFDPacket [09:53:15]OFDProtocolAddRootSTLVToBuf [09:53:15]FM_MakeSignedData [09:53:15]FM_MakeSignedData [09:53:15]SAM_PROTO_SignData [09:53:15]wFMCommunicate request_size=4 [09:53:15]MH_SAM_APDU [09:53:15]CAPDU: 80 0D 01 02 [09:53:15]Write to MH i2c: E2 08 00 08 26 80 0D 01 02 00 00 00 00 A7 [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:15]Read from MH i2c: E2 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 03 00 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: E2 03 00 08 26 00 90 00 A2 [09:53:15]RAPDU: 90 00 [09:53:15]wFMCommunicate OK [09:53:15]wFMCommunicate request_size=255 [09:53:15]MH_SAM_APDU [09:53:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 6C 00 00 00 F4 03 04 00 8E 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 14 03 00 35 04 06 00 0B 4B 23 C6 [09:53:15]Write to MH i2c: E2 02 01 09 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 32 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 6C 00 00 00 F4 03 04 00 8E 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 14 03 00 35 04 06 00 0B 4B 23 C6 00 00 8D [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 03 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 03 00 09 26 00 90 00 A3 [09:53:16]RAPDU: 90 00 [09:53:16]wFMCommunicate OK [09:53:16]wFMCommunicate request_size=7 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 0D 02 02 02 FD 86 [09:53:16]Write to MH i2c: E2 0A 00 0A 26 80 0D 02 02 02 00 FD 86 00 00 31 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 03 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 03 00 0A 26 00 90 00 A4 [09:53:16]RAPDU: 90 00 [09:53:16]wFMCommunicate OK [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 0D 03 02 [09:53:16]Write to MH i2c: E2 08 00 0B 26 80 0D 03 02 00 00 00 00 AC [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0B 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0B 00 0B 26 00 E6 41 EE E5 CD 89 56 87 90 00 DA [09:53:16]RAPDU: E6 41 EE E5 CD 89 56 87 90 00 [09:53:16]wFMCommunicate OK [09:53:16]SAM_PROTO_SignData done [09:53:16]FM_MakeSignedData done [09:53:16]CreateOFDProtocolMessage [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 11 00 00 [09:53:16]Write to MH i2c: E2 08 00 0C 26 80 11 00 00 00 00 00 00 AC [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 17 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 17 00 0C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 01 [09:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:53:16]wFMCommunicate OK [09:53:16]CreateOFDProtocolMessage done [09:53:16]OFDSenderStorePacket 201816 [09:53:16]StoreOFDPacket docnum=201816 [09:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3B 92 04 01 CE D4 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 32 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 6C 00 00 00 F4 03 04 00 8E 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 14 03 00 35 04 06 00 0B 4B 23 C6 FD 86 E6 41 EE E5 CD 89 56 87 [09:53:16]CheckFolder [09:53:16]dirname=/storage/ofd_packets [09:53:16]CheckFolder done [09:53:16]ProducePacketName [09:53:16]name=ofd_packets/00201816 [09:53:16]NVStorageSaveData ofd_packets/00201816 [09:53:16]File name is /storage/ofd_packets/00201816 [09:53:16]Write 298 bytes [09:53:16]NVStorageSaveData done [09:53:16]OFDSenderStorePacket done [09:53:16]KKMCreateOFDPacket done [09:53:16]NVStorageSaveData kkm_last_timestamp [09:53:16]File name is /storage/kkm_last_timestamp [09:53:16]Write 4 bytes [09:53:16]NVStorageSaveData done [09:53:16]ExternCall_PrintAddStr [09:53:16]wPrintStart [09:53:16]Write to MH i2c: 01 00 00 0D 26 33 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 07 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 07 00 0D 26 00 00 00 00 00 FF 0F 48 [09:53:16]RasterBufferAndPrint [09:53:16]line Счет N : (1)449576 [09:53:16]line ИНН: 02508201610067 [09:53:16]line Контрольно-Кассовый Чек [09:53:16]line ПРОДАЖА [09:53:16]line ТРК (МРК, ГНК) : 11 [09:53:16]line Товар: 2710194210 [09:53:16]line ДТ-К-2 [09:53:16]line 13.130 * 76.20 [09:53:16]line = 1000.51 [09:53:16]line НДС 12% НСП 1% [09:53:16]line > о реализуемом товаре [09:53:16]line ОКРУГЛЕНИЕ: -0.51 [09:53:16]line ИТОГО: 1000.00 [09:53:16]line Внесено: 1000.00 [09:53:16]line СДАЧА: 0.00 [09:53:16]line НСП 1% : 8.85 [09:53:16]line НДС 12% : 106.25 [09:53:16]line Наличными: 1000.00 [09:53:16]line Безнал.: 0.00 [09:53:16]line Место: АЗС № 171 "Партнер Нефть" [09:53:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:53:16]line СНО: Общий режим [09:53:16]line Чек 108 27.10.2024 09:53 [09:53:16]line Смена: 544 ФФД: 1.0 [09:53:16]line ЗНМ: 0300000109 [09:53:16]line РНМ: 0000000000091777 [09:53:16]line Версия ККМ: 001 [09:53:16]line ФМ: 0000000000871756 [09:53:16]line ФД: 201816 [09:53:16]line ФПД: 12417350696326 [09:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095318&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201816&fm=12417350696326&tin=02508201610067®Number=0000000000091777&sum=100000 [09:53:16]OFD Sender: Processing packet 201816 [packets to send 112, broken 111] [09:53:16]ProducePacketName [09:53:16]name=ofd_packets/00201816 [09:53:16]OFD Sender: To server: pG, [09:53:16]CommunicateWithHost lk.salyk.kg:30040 [09:53:16]ConnectInit lk.salyk.kg [09:53:16]written 0, free lines is 4095 [09:53:16]Connected sock=10 [09:53:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3B 92 04 01 CE D4 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 32 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 6C 00 00 00 F4 03 04 00 8E 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 14 03 00 35 04 06 00 0B 4B 23 C6 FD 86 E6 41 EE E5 CD 89 56 87 [09:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D5 AE 47 00 45 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 14 03 00 F4 03 04 00 34 B9 1D 67 B6 04 01 00 00 3A B7 1A DF A8 59 72 3F [09:53:17]CommunicateWithHost err = 0 [09:53:17]CheckOFDResponse [09:53:17]1017 (14) - 77093643461234 [09:53:17]1041 (16) - 0000000000871756 [09:53:17]1040 (4) - 201816 [09:53:17]1012 (4) - 27.10.2024 03:53 [09:53:17]1206 (1) - 0 [09:53:17]OFD Sender: Remove packet 201816 [09:53:17]ProducePacketName [09:53:17]name=ofd_packets/00201816 [09:53:17]NVStorageDeleteData [09:53:17]Write to MH i2c: 01 00 00 38 26 5E [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 07 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 07 00 38 26 00 00 00 00 00 8A 0C FB [09:53:17]RasterBufferAndPrint [09:53:17]line [09:53:17]line [09:53:17]line [09:53:17]line [09:53:17]line [09:53:17]written 0, free lines is 3213 [09:53:17]MH_Cut [09:53:17]Write to MH i2c: D1 01 00 3F 26 01 37 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: D1 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: D1 01 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: D1 01 00 3F 26 00 36 [09:53:17]Write to MH i2c: 01 00 00 40 26 66 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]OFD Sender: No OFD packet to send [09:53:17]*** Cut start [09:53:17]*** Purtial cut [09:53:17]*** CUTSNS_PIN = 0 [09:53:18]*** Stage 1: CUTSNS_PIN = 1 [09:53:20]Read from MH i2c: 01 [09:53:20]MH_I2C_Read... [09:53:20]*** Stop cut motor [09:53:20]*** Cut end [09:53:20]Read from MH i2c: 01 07 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 07 00 40 26 00 00 00 00 00 FF 0F 7B [09:53:20]process_action close_receipt done [09:53:20]requested_data is exist [09:53:20]produce_requested_data [09:53:20]requested_item fm.sn is exist - process it [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 11 00 00 [09:53:20]Write to MH i2c: E2 08 00 41 26 80 11 00 00 00 00 00 00 E1 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 17 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 17 00 41 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [09:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:53:20]wFMCommunicate OK [09:53:20]requested_item fd.num is exist - process it [09:53:20]SAM_PROTO_GetFieldsCounters [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 13 00 00 [09:53:20]Write to MH i2c: E2 08 00 42 26 80 13 00 00 00 00 00 00 E4 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 62 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 62 00 42 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 58 14 03 00 0E 04 04 00 20 02 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 E2 [09:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 58 14 03 00 0E 04 04 00 20 02 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 [09:53:20]wFMCommunicate OK [09:53:20]SAM_PROTO_GetFieldsCounters done [09:53:20]requested_item shift.num is exist - process it [09:53:20]requested_item shift.opened is exist - process it [09:53:20]req_shift_opened [09:53:20]FM_GetShiftState [09:53:20]SAM_PROTO_GetShiftState [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 13 01 00 [09:53:20]Write to MH i2c: E2 08 00 43 26 80 13 01 00 00 00 00 00 E6 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 0E 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 0E 00 43 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E8 [09:53:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:53:20]wFMCommunicate OK [09:53:20]SAM_PROTO_GetShiftState done [09:53:20]FM_GetShiftState done [09:53:20]req_shift_opened done [09:53:20]requested_item shift.open_date is exist - process it [09:53:20]req_shift_open_date [09:53:20]req_shift_open_date done [09:53:20]produce_requested_data done [09:53:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201816,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:53:20]process_action_free close_receipt [09:53:20]json_value_free [09:53:20]json_value_free done [09:53:20]process_json_proto returns [09:53:20]Send response to host [09:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201816,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:53:20]free response buf [09:53:20]execute_script done [09:53:20]execute_script returns [09:53:20]free content buf [09:53:20]Sock 9.Close socket [09:53:20]Sock 9.Thread stoped [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:16]accept exits with 8 [09:54:16]New connection [09:54:16]New thread 3067080036 created [09:54:16]Thread 3066936676 joined [09:54:16]Waiting for new connection... [09:54:16] Sock 8.Parse request [09:54:16]Sock 8.Check first char [09:54:16]Sock 8.First char is OK [09:54:16]request: POST /json_proto HTTP/1.0 [09:54:16]Method: POST [09:54:16]URL: /json_proto [09:54:16]Method is POST - this is cgi request [09:54:16]url: /json_proto [09:54:16]query_string will be loaded in cgi processing [09:54:16]execute_cgi json_proto POST (null) [09:54:16]execute_cgi path=json_proto method=POST [09:54:16]POST find Content-Length [09:54:16]Host: 172.17.63.195:8080 [09:54:16]Content-Length: 682 [09:54:16]Content-Type: application/json [09:54:16] [09:54:16]POST finish read [09:54:16]Found Content-Length = 682 [09:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:16]execute_script... [09:54:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:16]POST & json_proto [09:54:16]process_json_proto [09:54:16]json parsed OK: [09:54:16]protocol is kg_v1.0 [09:54:16]action value=close_receipt [09:54:16]process_action close_receipt [09:54:16]cmd_close_receipt [09:54:16]MH_GetDate [09:54:16]Write to MH i2c: F0 00 00 44 26 59 [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: F0 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: F0 09 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: F0 09 00 44 26 00 CC 0D 1E 67 68 46 19 67 EE [09:54:16]GetLastDocTimeStamp 1730022798 [09:54:16]current date 1730022860 [09:54:16]FM_GetShiftState [09:54:16]SAM_PROTO_GetShiftState [09:54:16]wFMCommunicate request_size=4 [09:54:16]MH_SAM_APDU [09:54:16]CAPDU: 80 13 01 00 [09:54:16]Write to MH i2c: E2 08 00 45 26 80 13 01 00 00 00 00 00 E8 [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:16]Read from MH i2c: E2 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 0E 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 0E 00 45 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 EA [09:54:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:54:16]wFMCommunicate OK [09:54:16]SAM_PROTO_GetShiftState done [09:54:16]FM_GetShiftState done [09:54:16]opened in 1729987312 [09:54:16]opened+sec_in_day 1730073712 [09:54:16]quantity*price = 100015 [09:54:16]sum+1 = 100017 [09:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 109 27.10.2024 09:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201817 ФПД: 71950879565744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095420&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201817&fm=71950879565744&tin=02508201610067®Number=0000000000091777&sum=100000 [09:54:17]StoreToDocumentArchive [09:54:17]shift 544 fd 201817 [09:54:17]save to /storage/0544/doc_00201817 [09:54:17]save last doc name /storage/0544/doc_00201817 to /storage/kkm_last_doc_name [09:54:17]save OK [09:54:17]Clear old archive folders... [09:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:17]tlvbuf is 000E4330 [09:54:17]SAM_PROTO_ClearQueue [09:54:17]wFMCommunicate request_size=4 [09:54:17]MH_SAM_APDU [09:54:17]CAPDU: 80 09 00 00 [09:54:17]Write to MH i2c: E2 08 00 52 26 80 09 00 00 00 00 00 00 EA [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:17]Read from MH i2c: E2 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: E2 03 00 52 26 00 90 00 EC [09:54:17]RAPDU: 90 00 [09:54:17]wFMCommunicate OK [09:54:17]SAM_PROTO_ClearQueue done [09:54:17]KKMCreateOFDPacket [09:54:17]OFDProtocolAddRootSTLVToBuf [09:54:17]FM_MakeSignedData [09:54:17]FM_MakeSignedData [09:54:17]SAM_PROTO_SignData [09:54:17]wFMCommunicate request_size=4 [09:54:17]MH_SAM_APDU [09:54:17]CAPDU: 80 0D 01 02 [09:54:17]Write to MH i2c: E2 08 00 53 26 80 0D 01 02 00 00 00 00 F2 [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:18]Read from MH i2c: E2 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 03 00 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 03 00 53 26 00 90 00 ED [09:54:18]RAPDU: 90 00 [09:54:18]wFMCommunicate OK [09:54:18]wFMCommunicate request_size=255 [09:54:18]MH_SAM_APDU [09:54:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6D 00 00 00 F4 03 04 00 CC 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 14 03 00 35 04 06 00 41 [09:54:18]Write to MH i2c: E2 02 01 54 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6D 00 00 00 F4 03 04 00 CC 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 14 03 00 35 04 06 00 41 00 00 1E [09:54:18]Write i2c OK [09:54:18]MH_I2C_Read... [09:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:18]Read from MH i2c: E2 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 03 00 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 03 00 54 26 00 90 00 EE [09:54:18]RAPDU: 90 00 [09:54:18]wFMCommunicate OK [09:54:18]wFMCommunicate request_size=10 [09:54:18]MH_SAM_APDU [09:54:18]CAPDU: 80 0D 02 02 05 70 5E 9E 27 B0 [09:54:18]Write to MH i2c: E2 0D 00 55 26 80 0D 02 02 05 00 70 5E 9E 27 B0 00 00 42 [09:54:18]Write i2c OK [09:54:18]MH_I2C_Read... [09:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:18]Read from MH i2c: E2 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 03 00 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 03 00 55 26 00 90 00 EF [09:54:18]RAPDU: 90 00 [09:54:18]wFMCommunicate OK [09:54:18]wFMCommunicate request_size=4 [09:54:18]MH_SAM_APDU [09:54:18]CAPDU: 80 0D 03 02 [09:54:18]Write to MH i2c: E2 08 00 56 26 80 0D 03 02 00 00 00 00 F7 [09:54:18]Write i2c OK [09:54:18]MH_I2C_Read... [09:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:18]Read from MH i2c: E2 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 0B 00 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 0B 00 56 26 00 7F 35 C5 2D 91 24 CD 75 90 00 95 [09:54:18]RAPDU: 7F 35 C5 2D 91 24 CD 75 90 00 [09:54:18]wFMCommunicate OK [09:54:18]SAM_PROTO_SignData done [09:54:18]FM_MakeSignedData done [09:54:18]CreateOFDProtocolMessage [09:54:18]wFMCommunicate request_size=4 [09:54:18]MH_SAM_APDU [09:54:18]CAPDU: 80 11 00 00 [09:54:18]Write to MH i2c: E2 08 00 57 26 80 11 00 00 00 00 00 00 F7 [09:54:18]Write i2c OK [09:54:18]MH_I2C_Read... [09:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:18]Read from MH i2c: E2 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 17 00 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: E2 17 00 57 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4C [09:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:54:18]wFMCommunicate OK [09:54:18]CreateOFDProtocolMessage done [09:54:18]OFDSenderStorePacket 201817 [09:54:18]StoreOFDPacket docnum=201817 [09:54:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 86 19 07 01 AB CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6D 00 00 00 F4 03 04 00 CC 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 14 03 00 35 04 06 00 41 70 5E 9E 27 B0 7F 35 C5 2D 91 24 CD 75 [09:54:18]CheckFolder [09:54:18]dirname=/storage/ofd_packets [09:54:18]CheckFolder done [09:54:18]ProducePacketName [09:54:18]name=ofd_packets/00201817 [09:54:18]NVStorageSaveData ofd_packets/00201817 [09:54:18]File name is /storage/ofd_packets/00201817 [09:54:18]Write 301 bytes [09:54:18]NVStorageSaveData done [09:54:18]OFDSenderStorePacket done [09:54:18]KKMCreateOFDPacket done [09:54:18]NVStorageSaveData kkm_last_timestamp [09:54:18]File name is /storage/kkm_last_timestamp [09:54:18]Write 4 bytes [09:54:18]NVStorageSaveData done [09:54:18]ExternCall_PrintAddStr [09:54:18]wPrintStart [09:54:18]Write to MH i2c: 01 00 00 58 26 7E [09:54:18]Write i2c OK [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: 01 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: 01 07 00 [09:54:18]MH_I2C_Read... [09:54:18]Read from MH i2c: 01 07 00 58 26 00 00 00 00 00 FF 0F 93 [09:54:18]RasterBufferAndPrint [09:54:18]line Счет N : (1)449577 [09:54:18]line ИНН: 02508201610067 [09:54:18]line Контрольно-Кассовый Чек [09:54:18]line ПРОДАЖА [09:54:18]line ТРК (МРК, ГНК) : 62 [09:54:18]line Товар: 2710124130 [09:54:18]line Аи-92-К-2 [09:54:18]line 14.950 * 66.90 [09:54:18]line = 1000.16 [09:54:18]line НДС 12% НСП 1% [09:54:18]line > о реализуемом товаре [09:54:18]line ОКРУГЛЕНИЕ: -0.16 [09:54:18]line ИТОГО: 1000.00 [09:54:18]line Внесено: 1000.00 [09:54:18]line СДАЧА: 0.00 [09:54:18]line НСП 1% : 8.85 [09:54:18]line НДС 12% : 106.21 [09:54:18]line Наличными: 1000.00 [09:54:18]line Безнал.: 0.00 [09:54:18]line Место: АЗС № 171 "Партнер Нефть" [09:54:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:54:18]line СНО: Общий режим [09:54:18]line Чек 109 27.10.2024 09:54 [09:54:18]line Смена: 544 ФФД: 1.0 [09:54:18]line ЗНМ: 0300000109 [09:54:18]line РНМ: 0000000000091777 [09:54:18]line Версия ККМ: 001 [09:54:18]line ФМ: 0000000000871756 [09:54:18]line ФД: 201817 [09:54:18]line ФПД: 71950879565744 [09:54:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095420&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201817&fm=71950879565744&tin=02508201610067®Number=0000000000091777&sum=100000 [09:54:18]OFD Sender: Processing packet 201817 [packets to send 112, broken 111] [09:54:18]ProducePacketName [09:54:18]name=ofd_packets/00201817 [09:54:18]OFD Sender: To server: pG, [09:54:18]CommunicateWithHost lk.salyk.kg:30040 [09:54:18]ConnectInit lk.salyk.kg [09:54:18]written 0, free lines is 4095 [09:54:18]Connected sock=10 [09:54:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 86 19 07 01 AB CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6D 00 00 00 F4 03 04 00 CC 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 14 03 00 35 04 06 00 41 70 5E 9E 27 B0 7F 35 C5 2D 91 24 CD 75 [09:54:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 40 3D 47 00 E2 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 14 03 00 F4 03 04 00 72 B9 1D 67 B6 04 01 00 00 28 F2 98 52 3E 75 9A 0E [09:54:19]CommunicateWithHost err = 0 [09:54:19]CheckOFDResponse [09:54:19]1017 (14) - 77093643461234 [09:54:19]1041 (16) - 0000000000871756 [09:54:19]1040 (4) - 201817 [09:54:19]1012 (4) - 27.10.2024 03:54 [09:54:19]1206 (1) - 0 [09:54:19]OFD Sender: Remove packet 201817 [09:54:19]ProducePacketName [09:54:19]name=ofd_packets/00201817 [09:54:19]NVStorageDeleteData [09:54:19]Write to MH i2c: 01 00 00 83 26 A9 [09:54:19]Write i2c OK [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: 01 [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: 01 07 00 [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: 01 07 00 83 26 00 00 00 00 00 90 0C 4C [09:54:19]RasterBufferAndPrint [09:54:19]line [09:54:19]line [09:54:19]line [09:54:19]line [09:54:19]line [09:54:19]written 0, free lines is 3220 [09:54:19]MH_Cut [09:54:19]Write to MH i2c: D1 01 00 8A 26 01 82 [09:54:19]Write i2c OK [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: D1 [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: D1 01 00 [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: D1 01 00 8A 26 00 81 [09:54:19]Write to MH i2c: 01 00 00 8B 26 B1 [09:54:19]Write i2c OK [09:54:19]MH_I2C_Read... [09:54:19]OFD Sender: No OFD packet to send [09:54:20]*** Cut start [09:54:20]*** Purtial cut [09:54:20]*** Stage 1: CUTSNS_PIN = 1 [09:54:20]Read from MH i2c: 01 [09:54:20]MH_I2C_Read... [09:54:20]*** Stop cut motor [09:54:20]*** Cut end [09:54:20]Read from MH i2c: 01 07 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: 01 07 00 8B 26 00 00 00 00 00 FF 0F C6 [09:54:20]process_action close_receipt done [09:54:20]requested_data is exist [09:54:20]produce_requested_data [09:54:20]requested_item fm.sn is exist - process it [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 11 00 00 [09:54:20]Write to MH i2c: E2 08 00 8C 26 80 11 00 00 00 00 00 00 2C [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 17 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 17 00 8C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [09:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:54:20]wFMCommunicate OK [09:54:20]requested_item fd.num is exist - process it [09:54:20]SAM_PROTO_GetFieldsCounters [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 13 00 00 [09:54:20]Write to MH i2c: E2 08 00 8D 26 80 13 00 00 00 00 00 00 2F [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 62 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 62 00 8D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 59 14 03 00 0E 04 04 00 20 02 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 31 [09:54:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 59 14 03 00 0E 04 04 00 20 02 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 [09:54:20]wFMCommunicate OK [09:54:20]SAM_PROTO_GetFieldsCounters done [09:54:20]requested_item shift.num is exist - process it [09:54:20]requested_item shift.opened is exist - process it [09:54:20]req_shift_opened [09:54:20]FM_GetShiftState [09:54:20]SAM_PROTO_GetShiftState [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 13 01 00 [09:54:20]Write to MH i2c: E2 08 00 8E 26 80 13 01 00 00 00 00 00 31 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0E 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0E 00 8E 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 33 [09:54:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:54:20]wFMCommunicate OK [09:54:20]SAM_PROTO_GetShiftState done [09:54:20]FM_GetShiftState done [09:54:20]req_shift_opened done [09:54:20]requested_item shift.open_date is exist - process it [09:54:20]req_shift_open_date [09:54:20]req_shift_open_date done [09:54:20]produce_requested_data done [09:54:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201817,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:54:20]process_action_free close_receipt [09:54:20]json_value_free [09:54:20]json_value_free done [09:54:20]process_json_proto returns [09:54:20]Send response to host [09:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201817,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:54:20]free response buf [09:54:20]execute_script done [09:54:20]execute_script returns [09:54:20]free content buf [09:54:20]Sock 8.Close socket [09:54:20]Sock 8.Thread stoped [09:54:20]accept exits with 9 [09:54:20]New connection [09:54:20]New thread 3066936676 created [09:54:20]Thread 3067080036 joined [09:54:20]Waiting for new connection... [09:54:20] Sock 9.Parse request [09:54:20]Sock 9.Check first char [09:54:20]Sock 9.First char is OK [09:54:20]request: POST /json_proto HTTP/1.0 [09:54:20]Method: POST [09:54:20]URL: /json_proto [09:54:20]Method is POST - this is cgi request [09:54:20]url: /json_proto [09:54:20]query_string will be loaded in cgi processing [09:54:20]execute_cgi json_proto POST (null) [09:54:20]execute_cgi path=json_proto method=POST [09:54:20]POST find Content-Length [09:54:20]Host: 172.17.63.195:8080 [09:54:20]Content-Length: 679 [09:54:20]Content-Type: application/json [09:54:20] [09:54:20]POST finish read [09:54:20]Found Content-Length = 679 [09:54:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:20]execute_script... [09:54: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)449575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:20]POST & json_proto [09:54:20]process_json_proto [09:54:20]json parsed OK: [09:54:20]protocol is kg_v1.0 [09:54:20]action value=close_receipt [09:54:20]process_action close_receipt [09:54:20]cmd_close_receipt [09:54:20]MH_GetDate [09:54:20]Write to MH i2c: F0 00 00 8F 26 A4 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: F0 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: F0 09 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: F0 09 00 8F 26 00 D0 0D 1E 67 68 46 19 67 3D [09:54:20]GetLastDocTimeStamp 1730022860 [09:54:20]current date 1730022864 [09:54:20]FM_GetShiftState [09:54:20]SAM_PROTO_GetShiftState [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 13 01 00 [09:54:20]Write to MH i2c: E2 08 00 90 26 80 13 01 00 00 00 00 00 33 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0E 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0E 00 90 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 35 [09:54:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:54:21]wFMCommunicate OK [09:54:21]SAM_PROTO_GetShiftState done [09:54:21]FM_GetShiftState done [09:54:21]opened in 1729987312 [09:54:21]opened+sec_in_day 1730073712 [09:54:21]quantity*price = 250012 [09:54:21]sum+1 = 250013 [09:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 110 27.10.2024 09:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201818 ФПД: 141842940599140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095424&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201818&fm=141842940599140&tin=02508201610067®Number=0000000000091777&sum=250000 [09:54:22]StoreToDocumentArchive [09:54:22]shift 544 fd 201818 [09:54:22]save to /storage/0544/doc_00201818 [09:54:22]save last doc name /storage/0544/doc_00201818 to /storage/kkm_last_doc_name [09:54:22]save OK [09:54:22]Clear old archive folders... [09:54:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:54:22]tlvbuf is 0016C970 [09:54:22]SAM_PROTO_ClearQueue [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 09 00 00 [09:54:22]Write to MH i2c: E2 08 00 9D 26 80 09 00 00 00 00 00 00 35 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 9D 26 00 90 00 37 [09:54:22]RAPDU: 90 00 [09:54:22]wFMCommunicate OK [09:54:22]SAM_PROTO_ClearQueue done [09:54:22]KKMCreateOFDPacket [09:54:22]OFDProtocolAddRootSTLVToBuf [09:54:22]FM_MakeSignedData [09:54:22]FM_MakeSignedData [09:54:22]SAM_PROTO_SignData [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 0D 01 02 [09:54:22]Write to MH i2c: E2 08 00 9E 26 80 0D 01 02 00 00 00 00 3D [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 9E 26 00 90 00 38 [09:54:22]RAPDU: 90 00 [09:54:22]wFMCommunicate OK [09:54:22]wFMCommunicate request_size=255 [09:54:22]MH_SAM_APDU [09:54: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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D0 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 14 03 00 35 04 06 00 81 01 62 16 [09:54:22]Write to MH i2c: E2 02 01 9F 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D0 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 14 03 00 35 04 06 00 81 01 62 16 00 00 85 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 9F 26 00 90 00 39 [09:54:22]RAPDU: 90 00 [09:54:22]wFMCommunicate OK [09:54:22]wFMCommunicate request_size=7 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 0D 02 02 02 9B 64 [09:54:22]Write to MH i2c: E2 0A 00 A0 26 80 0D 02 02 02 00 9B 64 00 00 43 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 03 00 A0 26 00 90 00 3A [09:54:22]RAPDU: 90 00 [09:54:22]wFMCommunicate OK [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 0D 03 02 [09:54:22]Write to MH i2c: E2 08 00 A1 26 80 0D 03 02 00 00 00 00 42 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:23]Read from MH i2c: E2 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 0B 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 0B 00 A1 26 00 93 A9 84 CC 0F 60 74 D9 90 00 8B [09:54:23]RAPDU: 93 A9 84 CC 0F 60 74 D9 90 00 [09:54:23]wFMCommunicate OK [09:54:23]SAM_PROTO_SignData done [09:54:23]FM_MakeSignedData done [09:54:23]CreateOFDProtocolMessage [09:54:23]wFMCommunicate request_size=4 [09:54:23]MH_SAM_APDU [09:54:23]CAPDU: 80 11 00 00 [09:54:23]Write to MH i2c: E2 08 00 A2 26 80 11 00 00 00 00 00 00 42 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:23]Read from MH i2c: E2 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 17 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 17 00 A2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 97 [09:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:54:23]wFMCommunicate OK [09:54:23]CreateOFDProtocolMessage done [09:54:23]OFDSenderStorePacket 201818 [09:54:23]StoreOFDPacket docnum=201818 [09:54:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2E 18 04 01 94 C5 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D0 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 14 03 00 35 04 06 00 81 01 62 16 9B 64 93 A9 84 CC 0F 60 74 D9 [09:54:23]CheckFolder [09:54:23]dirname=/storage/ofd_packets [09:54:23]CheckFolder done [09:54:23]ProducePacketName [09:54:23]name=ofd_packets/00201818 [09:54:23]NVStorageSaveData ofd_packets/00201818 [09:54:23]File name is /storage/ofd_packets/00201818 [09:54:23]Write 298 bytes [09:54:23]NVStorageSaveData done [09:54:23]OFDSenderStorePacket done [09:54:23]KKMCreateOFDPacket done [09:54:23]NVStorageSaveData kkm_last_timestamp [09:54:23]File name is /storage/kkm_last_timestamp [09:54:23]Write 4 bytes [09:54:23]NVStorageSaveData done [09:54:23]ExternCall_PrintAddStr [09:54:23]wPrintStart [09:54:23]Write to MH i2c: 01 00 00 A3 26 C9 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 07 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 07 00 A3 26 00 00 00 00 00 FF 0F DE [09:54:23]RasterBufferAndPrint [09:54:23]line Счет N : (1)449575 [09:54:23]line ИНН: 02508201610067 [09:54:23]line Контрольно-Кассовый Чек [09:54:23]line ПРОДАЖА [09:54:23]line ТРК (МРК, ГНК) : 43 [09:54:23]line Товар: 2710194210 [09:54:23]line ДТ-К-2 [09:54:23]line 32.810 * 76.20 [09:54:23]line = 2500.12 [09:54:23]line НДС 12% НСП 1% [09:54:23]line > о реализуемом товаре [09:54:23]line ОКРУГЛЕНИЕ: -0.12 [09:54:23]line ИТОГО: 2500.00 [09:54:23]line Внесено: 2500.00 [09:54:23]line СДАЧА: 0.00 [09:54:23]line НСП 1% : 22.12 [09:54:23]line НДС 12% : 265.50 [09:54:23]line Наличными: 2500.00 [09:54:23]line Безнал.: 0.00 [09:54:23]line Место: АЗС № 171 "Партнер Нефть" [09:54:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:54:23]line СНО: Общий режим [09:54:23]line Чек 110 27.10.2024 09:54 [09:54:23]line Смена: 544 ФФД: 1.0 [09:54:23]line ЗНМ: 0300000109 [09:54:23]line РНМ: 0000000000091777 [09:54:23]line Версия ККМ: 001 [09:54:23]line ФМ: 0000000000871756 [09:54:23]line ФД: 201818 [09:54:23]line ФПД: 141842940599140 [09:54:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095424&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201818&fm=141842940599140&tin=02508201610067®Number=0000000000091777&sum=250000 [09:54:23]written 0, free lines is 4095 [09:54:23]OFD Sender: Processing packet 201818 [packets to send 112, broken 111] [09:54:23]ProducePacketName [09:54:23]name=ofd_packets/00201818 [09:54:23]OFD Sender: To server: pG, [09:54:23]CommunicateWithHost lk.salyk.kg:30040 [09:54:23]ConnectInit lk.salyk.kg [09:54:23]Connected sock=10 [09:54:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2E 18 04 01 94 C5 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D0 0D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 14 03 00 35 04 06 00 81 01 62 16 9B 64 93 A9 84 CC 0F 60 74 D9 [09:54:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 78 FF 47 00 F3 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 14 03 00 F4 03 04 00 76 B9 1D 67 B6 04 01 00 00 8A FA 38 B2 B0 4C 37 18 [09:54:23]CommunicateWithHost err = 0 [09:54:23]CheckOFDResponse [09:54:23]1017 (14) - 77093643461234 [09:54:23]1041 (16) - 0000000000871756 [09:54:23]1040 (4) - 201818 [09:54:23]1012 (4) - 27.10.2024 03:54 [09:54:23]1206 (1) - 0 [09:54:23]OFD Sender: Remove packet 201818 [09:54:23]ProducePacketName [09:54:23]name=ofd_packets/00201818 [09:54:23]NVStorageDeleteData [09:54:23]Write to MH i2c: 01 00 00 CE 26 F4 [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 07 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: 01 07 00 CE 26 00 00 00 00 00 9D 0C A4 [09:54:23]RasterBufferAndPrint [09:54:23]line [09:54:23]line [09:54:23]line [09:54:23]line [09:54:23]line [09:54:23]written 0, free lines is 3243 [09:54:23]MH_Cut [09:54:23]Write to MH i2c: D1 01 00 D5 26 01 CD [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: D1 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: D1 01 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: D1 01 00 D5 26 00 CC [09:54:23]Write to MH i2c: 01 00 00 D6 26 FC [09:54:23]Write i2c OK [09:54:23]MH_I2C_Read... [09:54:24]OFD Sender: No OFD packet to send [09:54:24]*** Cut start [09:54:24]*** Purtial cut [09:54:24]*** CUTSNS_PIN = 0 [09:54:24]*** Stage 1: CUTSNS_PIN = 1 [09:54:26]Read from MH i2c: 01 [09:54:26]MH_I2C_Read... [09:54:26]*** Stop cut motor [09:54:26]*** Cut end [09:54:26]Read from MH i2c: 01 07 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: 01 07 00 D6 26 00 00 00 00 00 FF 0F 11 [09:54:26]process_action close_receipt done [09:54:26]requested_data is exist [09:54:26]produce_requested_data [09:54:26]requested_item fm.sn is exist - process it [09:54:26]wFMCommunicate request_size=4 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 11 00 00 [09:54:26]Write to MH i2c: E2 08 00 D7 26 80 11 00 00 00 00 00 00 77 [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 17 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 17 00 D7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [09:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:54:26]wFMCommunicate OK [09:54:26]requested_item fd.num is exist - process it [09:54:26]SAM_PROTO_GetFieldsCounters [09:54:26]wFMCommunicate request_size=4 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 13 00 00 [09:54:26]Write to MH i2c: E2 08 00 D8 26 80 13 00 00 00 00 00 00 7A [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 62 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 62 00 D8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5A 14 03 00 0E 04 04 00 20 02 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 80 [09:54:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5A 14 03 00 0E 04 04 00 20 02 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 [09:54:26]wFMCommunicate OK [09:54:26]SAM_PROTO_GetFieldsCounters done [09:54:26]requested_item shift.num is exist - process it [09:54:26]requested_item shift.opened is exist - process it [09:54:26]req_shift_opened [09:54:26]FM_GetShiftState [09:54:26]SAM_PROTO_GetShiftState [09:54:26]wFMCommunicate request_size=4 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 13 01 00 [09:54:26]Write to MH i2c: E2 08 00 D9 26 80 13 01 00 00 00 00 00 7C [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 0E 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 0E 00 D9 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7E [09:54:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:54:26]wFMCommunicate OK [09:54:26]SAM_PROTO_GetShiftState done [09:54:26]FM_GetShiftState done [09:54:26]req_shift_opened done [09:54:26]requested_item shift.open_date is exist - process it [09:54:26]req_shift_open_date [09:54:26]req_shift_open_date done [09:54:26]produce_requested_data done [09:54:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201818,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:54:26]process_action_free close_receipt [09:54:26]json_value_free [09:54:26]json_value_free done [09:54:26]process_json_proto returns [09:54:26]Send response to host [09:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201818,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:54:26]free response buf [09:54:26]execute_script done [09:54:26]execute_script returns [09:54:26]free content buf [09:54:26]Sock 9.Close socket [09:54:26]Sock 9.Thread stoped [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]accept exits with 8 [09:57:09]New connection [09:57:09]New thread 3067080036 created [09:57:09]Thread 3066936676 joined [09:57:09]Waiting for new connection... [09:57:09] Sock 8.Parse request [09:57:09]Sock 8.Check first char [09:57:09]Sock 8.First char is OK [09:57:09]request: POST /json_proto HTTP/1.0 [09:57:09]Method: POST [09:57:09]URL: /json_proto [09:57:09]Method is POST - this is cgi request [09:57:09]url: /json_proto [09:57:09]query_string will be loaded in cgi processing [09:57:09]execute_cgi json_proto POST (null) [09:57:09]execute_cgi path=json_proto method=POST [09:57:09]POST find Content-Length [09:57:09]Host: 172.17.63.195:8080 [09:57:09]Content-Length: 682 [09:57:09]Content-Type: application/json [09:57:09] [09:57:09]POST finish read [09:57:09]Found Content-Length = 682 [09:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:09]execute_script... [09:57: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)449578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:09]POST & json_proto [09:57:09]process_json_proto [09:57:09]json parsed OK: [09:57:09]protocol is kg_v1.0 [09:57:09]action value=close_receipt [09:57:09]process_action close_receipt [09:57:09]cmd_close_receipt [09:57:09]MH_GetDate [09:57:09]Write to MH i2c: F0 00 00 DA 26 EF [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: F0 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: F0 09 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: F0 09 00 DA 26 00 79 0E 1E 67 68 46 19 67 32 [09:57:09]GetLastDocTimeStamp 1730022864 [09:57:09]current date 1730023033 [09:57:09]FM_GetShiftState [09:57:09]SAM_PROTO_GetShiftState [09:57:09]wFMCommunicate request_size=4 [09:57:09]MH_SAM_APDU [09:57:09]CAPDU: 80 13 01 00 [09:57:09]Write to MH i2c: E2 08 00 DB 26 80 13 01 00 00 00 00 00 7E [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:09]Read from MH i2c: E2 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 0E 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 0E 00 DB 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 80 [09:57:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:57:09]wFMCommunicate OK [09:57:09]SAM_PROTO_GetShiftState done [09:57:09]FM_GetShiftState done [09:57:09]opened in 1729987312 [09:57:09]opened+sec_in_day 1730073712 [09:57:09]quantity*price = 100015 [09:57:09]sum+1 = 100017 [09:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 111 27.10.2024 09:57 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201819 ФПД: 181620614462693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095713&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201819&fm=181620614462693&tin=02508201610067®Number=0000000000091777&sum=100000 [09:57:10]StoreToDocumentArchive [09:57:10]shift 544 fd 201819 [09:57:10]save to /storage/0544/doc_00201819 [09:57:10]save last doc name /storage/0544/doc_00201819 to /storage/kkm_last_doc_name [09:57:10]save OK [09:57:10]Clear old archive folders... [09:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:10]tlvbuf is 00137F20 [09:57:10]SAM_PROTO_ClearQueue [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 09 00 00 [09:57:10]Write to MH i2c: E2 08 00 E8 26 80 09 00 00 00 00 00 00 80 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 E8 26 00 90 00 82 [09:57:10]RAPDU: 90 00 [09:57:10]wFMCommunicate OK [09:57:10]SAM_PROTO_ClearQueue done [09:57:10]KKMCreateOFDPacket [09:57:10]OFDProtocolAddRootSTLVToBuf [09:57:10]FM_MakeSignedData [09:57:10]FM_MakeSignedData [09:57:10]SAM_PROTO_SignData [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 0D 01 02 [09:57:10]Write to MH i2c: E2 08 00 E9 26 80 0D 01 02 00 00 00 00 88 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 E9 26 00 90 00 83 [09:57:10]RAPDU: 90 00 [09:57:10]wFMCommunicate OK [09:57:10]wFMCommunicate request_size=255 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6F 00 00 00 F4 03 04 00 79 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 14 03 00 35 04 06 00 A5 [09:57:10]Write to MH i2c: E2 02 01 EA 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6F 00 00 00 F4 03 04 00 79 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 14 03 00 35 04 06 00 A5 00 00 CA [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 EA 26 00 90 00 84 [09:57:10]RAPDU: 90 00 [09:57:10]wFMCommunicate OK [09:57:10]wFMCommunicate request_size=10 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 0D 02 02 05 2E D8 35 7C E5 [09:57:10]Write to MH i2c: E2 0D 00 EB 26 80 0D 02 02 05 00 2E D8 35 7C E5 00 00 31 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 03 00 EB 26 00 90 00 85 [09:57:10]RAPDU: 90 00 [09:57:10]wFMCommunicate OK [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 0D 03 02 [09:57:10]Write to MH i2c: E2 08 00 EC 26 80 0D 03 02 00 00 00 00 8D [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 0B 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 0B 00 EC 26 00 59 19 C8 6C D4 FD 32 BF 90 00 F6 [09:57:10]RAPDU: 59 19 C8 6C D4 FD 32 BF 90 00 [09:57:10]wFMCommunicate OK [09:57:10]SAM_PROTO_SignData done [09:57:10]FM_MakeSignedData done [09:57:10]CreateOFDProtocolMessage [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 11 00 00 [09:57:10]Write to MH i2c: E2 08 00 ED 26 80 11 00 00 00 00 00 00 8D [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 17 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 17 00 ED 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E2 [09:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:57:10]wFMCommunicate OK [09:57:10]CreateOFDProtocolMessage done [09:57:10]OFDSenderStorePacket 201819 [09:57:10]StoreOFDPacket docnum=201819 [09:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8B 90 07 01 CF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6F 00 00 00 F4 03 04 00 79 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 14 03 00 35 04 06 00 A5 2E D8 35 7C E5 59 19 C8 6C D4 FD 32 BF [09:57:10]CheckFolder [09:57:10]dirname=/storage/ofd_packets [09:57:10]CheckFolder done [09:57:10]ProducePacketName [09:57:10]name=ofd_packets/00201819 [09:57:10]NVStorageSaveData ofd_packets/00201819 [09:57:10]File name is /storage/ofd_packets/00201819 [09:57:10]Write 301 bytes [09:57:10]NVStorageSaveData done [09:57:10]OFDSenderStorePacket done [09:57:10]KKMCreateOFDPacket done [09:57:10]NVStorageSaveData kkm_last_timestamp [09:57:10]File name is /storage/kkm_last_timestamp [09:57:10]Write 4 bytes [09:57:10]NVStorageSaveData done [09:57:10]ExternCall_PrintAddStr [09:57:10]wPrintStart [09:57:10]Write to MH i2c: 01 00 00 EE 26 14 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 07 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 07 00 EE 26 00 00 00 00 00 FF 0F 29 [09:57:10]RasterBufferAndPrint [09:57:10]line Счет N : (1)449578 [09:57:10]line ИНН: 02508201610067 [09:57:10]line Контрольно-Кассовый Чек [09:57:10]line ПРОДАЖА [09:57:10]line ТРК (МРК, ГНК) : 31 [09:57:10]line Товар: 2710124130 [09:57:10]line Аи-92-К-2 [09:57:10]line 14.950 * 66.90 [09:57:10]line = 1000.16 [09:57:10]line НДС 12% НСП 1% [09:57:10]line > о реализуемом товаре [09:57:10]line ОКРУГЛЕНИЕ: -0.16 [09:57:10]line ИТОГО: 1000.00 [09:57:10]line Внесено: 1000.00 [09:57:10]line СДАЧА: 0.00 [09:57:10]line НСП 1% : 8.85 [09:57:10]line НДС 12% : 106.21 [09:57:10]line Наличными: 1000.00 [09:57:10]line Безнал.: 0.00 [09:57:10]line Место: АЗС № 171 "Партнер Нефть" [09:57:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:57:10]line СНО: Общий режим [09:57:10]line Чек 111 27.10.2024 09:57 [09:57:10]line Смена: 544 ФФД: 1.0 [09:57:10]line ЗНМ: 0300000109 [09:57:10]line РНМ: 0000000000091777 [09:57:10]line Версия ККМ: 001 [09:57:10]line ФМ: 0000000000871756 [09:57:10]line ФД: 201819 [09:57:10]line ФПД: 181620614462693 [09:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095713&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201819&fm=181620614462693&tin=02508201610067®Number=0000000000091777&sum=100000 [09:57:11]OFD Sender: Processing packet 201819 [packets to send 112, broken 111] [09:57:11]ProducePacketName [09:57:11]name=ofd_packets/00201819 [09:57:11]OFD Sender: To server: pG, [09:57:11]CommunicateWithHost lk.salyk.kg:30040 [09:57:11]ConnectInit lk.salyk.kg [09:57:11]written 0, free lines is 4095 [09:57:11]Connected sock=10 [09:57:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8B 90 07 01 CF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6F 00 00 00 F4 03 04 00 79 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 14 03 00 35 04 06 00 A5 2E D8 35 7C E5 59 19 C8 6C D4 FD 32 BF [09:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A9 A0 47 00 22 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 14 03 00 F4 03 04 00 1E BA 1D 67 B6 04 01 00 00 84 2C 38 1C 24 47 18 17 [09:57:11]CommunicateWithHost err = 0 [09:57:11]CheckOFDResponse [09:57:11]1017 (14) - 77093643461234 [09:57:11]1041 (16) - 0000000000871756 [09:57:11]1040 (4) - 201819 [09:57:11]1012 (4) - 27.10.2024 03:57 [09:57:11]1206 (1) - 0 [09:57:11]OFD Sender: Remove packet 201819 [09:57:11]ProducePacketName [09:57:11]name=ofd_packets/00201819 [09:57:11]NVStorageDeleteData [09:57:11]Write to MH i2c: 01 00 00 19 27 40 [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 07 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: 01 07 00 19 27 00 00 00 00 00 8C 0C DF [09:57:11]RasterBufferAndPrint [09:57:11]line [09:57:11]line [09:57:11]line [09:57:11]line [09:57:11]line [09:57:11]written 0, free lines is 3217 [09:57:11]MH_Cut [09:57:11]Write to MH i2c: D1 01 00 20 27 01 19 [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: D1 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: D1 01 00 [09:57:11]MH_I2C_Read... [09:57:11]Read from MH i2c: D1 01 00 20 27 00 18 [09:57:11]Write to MH i2c: 01 00 00 21 27 48 [09:57:11]Write i2c OK [09:57:11]MH_I2C_Read... [09:57:12]OFD Sender: No OFD packet to send [09:57:12]*** Cut start [09:57:12]*** Purtial cut [09:57:12]*** Stage 1: CUTSNS_PIN = 1 [09:57:12]Read from MH i2c: 01 [09:57:12]MH_I2C_Read... [09:57:12]*** Stop cut motor [09:57:12]*** Cut end [09:57:12]Read from MH i2c: 01 07 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: 01 07 00 21 27 00 00 00 00 00 FF 0F 5D [09:57:12]process_action close_receipt done [09:57:12]requested_data is exist [09:57:12]produce_requested_data [09:57:12]requested_item fm.sn is exist - process it [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 11 00 00 [09:57:12]Write to MH i2c: E2 08 00 22 27 80 11 00 00 00 00 00 00 C3 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 17 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 17 00 22 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [09:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:57:12]wFMCommunicate OK [09:57:12]requested_item fd.num is exist - process it [09:57:12]SAM_PROTO_GetFieldsCounters [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 13 00 00 [09:57:12]Write to MH i2c: E2 08 00 23 27 80 13 00 00 00 00 00 00 C6 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 62 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 62 00 23 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5B 14 03 00 0E 04 04 00 20 02 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 D0 [09:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5B 14 03 00 0E 04 04 00 20 02 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 [09:57:12]wFMCommunicate OK [09:57:12]SAM_PROTO_GetFieldsCounters done [09:57:12]requested_item shift.num is exist - process it [09:57:12]requested_item shift.opened is exist - process it [09:57:12]req_shift_opened [09:57:12]FM_GetShiftState [09:57:12]SAM_PROTO_GetShiftState [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 13 01 00 [09:57:12]Write to MH i2c: E2 08 00 24 27 80 13 01 00 00 00 00 00 C8 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:13]Read from MH i2c: E2 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 0E 00 [09:57:13]MH_I2C_Read... [09:57:13]Read from MH i2c: E2 0E 00 24 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CA [09:57:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:57:13]wFMCommunicate OK [09:57:13]SAM_PROTO_GetShiftState done [09:57:13]FM_GetShiftState done [09:57:13]req_shift_opened done [09:57:13]requested_item shift.open_date is exist - process it [09:57:13]req_shift_open_date [09:57:13]req_shift_open_date done [09:57:13]produce_requested_data done [09:57:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201819,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:57:13]process_action_free close_receipt [09:57:13]json_value_free [09:57:13]json_value_free done [09:57:13]process_json_proto returns [09:57:13]Send response to host [09:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201819,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:57:13]free response buf [09:57:13]execute_script done [09:57:13]execute_script returns [09:57:13]free content buf [09:57:13]Sock 8.Close socket [09:57:13]Sock 8.Thread stoped [09:57:14]accept exits with 9 [09:57:14]New connection [09:57:14]New thread 3066936676 created [09:57:14]Thread 3067080036 joined [09:57:14]Waiting for new connection... [09:57:14] Sock 9.Parse request [09:57:14]Sock 9.Check first char [09:57:14]Sock 9.First char is OK [09:57:14]request: POST /json_proto HTTP/1.0 [09:57:14]Method: POST [09:57:14]URL: /json_proto [09:57:14]Method is POST - this is cgi request [09:57:14]url: /json_proto [09:57:14]query_string will be loaded in cgi processing [09:57:14]execute_cgi json_proto POST (null) [09:57:14]execute_cgi path=json_proto method=POST [09:57:14]POST find Content-Length [09:57:14]Host: 172.17.63.195:8080 [09:57:14]Content-Length: 632 [09:57:14]Content-Type: application/json [09:57:14] [09:57:14]POST finish read [09:57:14]Found Content-Length = 632 [09:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:57:14]execute_script... [09:57: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)449579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:57:14]POST & json_proto [09:57:14]process_json_proto [09:57:14]json parsed OK: [09:57:14]protocol is kg_v1.0 [09:57:14]action value=close_receipt [09:57:14]process_action close_receipt [09:57:14]cmd_close_receipt [09:57:14]MH_GetDate [09:57:14]Write to MH i2c: F0 00 00 25 27 3B [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 09 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: F0 09 00 25 27 00 7E 0E 1E 67 68 46 19 67 83 [09:57:14]GetLastDocTimeStamp 1730023033 [09:57:14]current date 1730023038 [09:57:14]FM_GetShiftState [09:57:14]SAM_PROTO_GetShiftState [09:57:14]wFMCommunicate request_size=4 [09:57:14]MH_SAM_APDU [09:57:14]CAPDU: 80 13 01 00 [09:57:14]Write to MH i2c: E2 08 00 26 27 80 13 01 00 00 00 00 00 CA [09:57:14]Write i2c OK [09:57:14]MH_I2C_Read... [09:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:14]Read from MH i2c: E2 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 0E 00 [09:57:14]MH_I2C_Read... [09:57:14]Read from MH i2c: E2 0E 00 26 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CC [09:57:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:57:14]wFMCommunicate OK [09:57:14]SAM_PROTO_GetShiftState done [09:57:14]FM_GetShiftState done [09:57:14]opened in 1729987312 [09:57:14]opened+sec_in_day 1730073712 [09:57:14]quantity*price = 50000 [09:57:14]sum+1 = 50001 [09:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 112 27.10.2024 09:57 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201820 ФПД: 65770490483252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095718&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201820&fm=65770490483252&tin=02508201610067®Number=0000000000091777&sum=50000 [09:57:16]StoreToDocumentArchive [09:57:16]shift 544 fd 201820 [09:57:16]save to /storage/0544/doc_00201820 [09:57:16]save last doc name /storage/0544/doc_00201820 to /storage/kkm_last_doc_name [09:57:16]save OK [09:57:16]Clear old archive folders... [09:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:57:16]tlvbuf is 0016C850 [09:57:16]SAM_PROTO_ClearQueue [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 09 00 00 [09:57:16]Write to MH i2c: E2 08 00 33 27 80 09 00 00 00 00 00 00 CC [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 33 27 00 90 00 CE [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]SAM_PROTO_ClearQueue done [09:57:16]KKMCreateOFDPacket [09:57:16]OFDProtocolAddRootSTLVToBuf [09:57:16]FM_MakeSignedData [09:57:16]FM_MakeSignedData [09:57:16]SAM_PROTO_SignData [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 01 02 [09:57:16]Write to MH i2c: E2 08 00 34 27 80 0D 01 02 00 00 00 00 D4 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 34 27 00 90 00 CF [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=255 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 7E 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 14 03 00 35 04 06 00 [09:57:16]Write to MH i2c: E2 02 01 35 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 20 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 70 00 00 00 F4 03 04 00 7E 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 14 03 00 35 04 06 00 00 00 DB [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 35 27 00 90 00 D0 [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=11 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 02 02 06 3B D1 62 B8 D2 34 [09:57:16]Write to MH i2c: E2 0E 00 36 27 80 0D 02 02 06 00 3B D1 62 B8 D2 34 00 00 0F [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 03 00 36 27 00 90 00 D1 [09:57:16]RAPDU: 90 00 [09:57:16]wFMCommunicate OK [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 0D 03 02 [09:57:16]Write to MH i2c: E2 08 00 37 27 80 0D 03 02 00 00 00 00 D9 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 0B 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 0B 00 37 27 00 0D 69 8A 06 CA 13 58 C9 90 00 DE [09:57:16]RAPDU: 0D 69 8A 06 CA 13 58 C9 90 00 [09:57:16]wFMCommunicate OK [09:57:16]SAM_PROTO_SignData done [09:57:16]FM_MakeSignedData done [09:57:16]CreateOFDProtocolMessage [09:57:16]wFMCommunicate request_size=4 [09:57:16]MH_SAM_APDU [09:57:16]CAPDU: 80 11 00 00 [09:57:16]Write to MH i2c: E2 08 00 38 27 80 11 00 00 00 00 00 00 D9 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:16]Read from MH i2c: E2 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 17 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: E2 17 00 38 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2E [09:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:57:16]wFMCommunicate OK [09:57:16]CreateOFDProtocolMessage done [09:57:16]OFDSenderStorePacket 201820 [09:57:16]StoreOFDPacket docnum=201820 [09:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 2E 52 08 01 5C 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 7E 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 14 03 00 35 04 06 00 3B D1 62 B8 D2 34 0D 69 8A 06 CA 13 58 C9 [09:57:16]CheckFolder [09:57:16]dirname=/storage/ofd_packets [09:57:16]CheckFolder done [09:57:16]ProducePacketName [09:57:16]name=ofd_packets/00201820 [09:57:16]NVStorageSaveData ofd_packets/00201820 [09:57:16]File name is /storage/ofd_packets/00201820 [09:57:16]Write 302 bytes [09:57:16]NVStorageSaveData done [09:57:16]OFDSenderStorePacket done [09:57:16]KKMCreateOFDPacket done [09:57:16]NVStorageSaveData kkm_last_timestamp [09:57:16]File name is /storage/kkm_last_timestamp [09:57:16]Write 4 bytes [09:57:16]NVStorageSaveData done [09:57:16]ExternCall_PrintAddStr [09:57:16]wPrintStart [09:57:16]Write to MH i2c: 01 00 00 39 27 60 [09:57:16]Write i2c OK [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 07 00 [09:57:16]MH_I2C_Read... [09:57:16]Read from MH i2c: 01 07 00 39 27 00 00 00 00 00 FF 0F 75 [09:57:16]RasterBufferAndPrint [09:57:16]line Счет N : (1)449579 [09:57:16]line ИНН: 02508201610067 [09:57:16]line Контрольно-Кассовый Чек [09:57:16]line ПРОДАЖА [09:57:16]line ТРК (МРК, ГНК) : 42 [09:57:16]line Товар: 2710124130 [09:57:16]line SUPER 92-К-5 [09:57:16]line 7.310 * 68.40 [09:57:16]line = 500.00 [09:57:16]line НДС 12% НСП 1% [09:57:16]line > о реализуемом товаре [09:57:16]line ИТОГО: 500.00 [09:57:16]line НСП 1% : 4.42 [09:57:16]line НДС 12% : 53.10 [09:57:16]line Наличными: 500.00 [09:57:16]line Безнал.: 0.00 [09:57:16]line Место: АЗС № 171 "Партнер Нефть" [09:57:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:57:16]line СНО: Общий режим [09:57:16]line Чек 112 27.10.2024 09:57 [09:57:16]line Смена: 544 ФФД: 1.0 [09:57:16]line ЗНМ: 0300000109 [09:57:16]line РНМ: 0000000000091777 [09:57:16]line Версия ККМ: 001 [09:57:16]line ФМ: 0000000000871756 [09:57:16]line ФД: 201820 [09:57:16]line ФПД: 65770490483252 [09:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095718&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201820&fm=65770490483252&tin=02508201610067®Number=0000000000091777&sum=50000 [09:57:16]OFD Sender: Processing packet 201820 [packets to send 112, broken 111] [09:57:16]ProducePacketName [09:57:16]name=ofd_packets/00201820 [09:57:16]OFD Sender: To server: pG, [09:57:16]CommunicateWithHost lk.salyk.kg:30040 [09:57:16]ConnectInit lk.salyk.kg [09:57:16]written 0, free lines is 4095 [09:57:16]Connected sock=10 [09:57:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 2E 52 08 01 5C 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 7E 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 14 03 00 35 04 06 00 3B D1 62 B8 D2 34 0D 69 8A 06 CA 13 58 C9 [09:57:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E9 CE 47 00 37 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 14 03 00 F4 03 04 00 24 BA 1D 67 B6 04 01 00 00 7B EE 95 C4 1E 18 54 3B [09:57:17]CommunicateWithHost err = 0 [09:57:17]CheckOFDResponse [09:57:17]1017 (14) - 77093643461234 [09:57:17]1041 (16) - 0000000000871756 [09:57:17]1040 (4) - 201820 [09:57:17]1012 (4) - 27.10.2024 03:57 [09:57:17]1206 (1) - 0 [09:57:17]OFD Sender: Remove packet 201820 [09:57:17]ProducePacketName [09:57:17]name=ofd_packets/00201820 [09:57:17]NVStorageDeleteData [09:57:17]Write to MH i2c: 01 00 00 61 27 88 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: 01 07 00 61 27 00 00 00 00 00 D2 0C 6D [09:57:17]RasterBufferAndPrint [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]line [09:57:17]written 0, free lines is 3290 [09:57:17]MH_Cut [09:57:17]Write to MH i2c: D1 01 00 68 27 01 61 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 01 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: D1 01 00 68 27 00 60 [09:57:17]Write to MH i2c: 01 00 00 69 27 90 [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]OFD Sender: No OFD packet to send [09:57:17]*** Cut start [09:57:17]*** Purtial cut [09:57:17]*** CUTSNS_PIN = 0 [09:57:18]*** Stage 1: CUTSNS_PIN = 1 [09:57:19]Read from MH i2c: 01 [09:57:19]MH_I2C_Read... [09:57:19]*** Stop cut motor [09:57:19]*** Cut end [09:57:19]Read from MH i2c: 01 07 00 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: 01 07 00 69 27 00 00 00 00 00 FF 0F A5 [09:57:19]process_action close_receipt done [09:57:19]requested_data is exist [09:57:19]produce_requested_data [09:57:19]requested_item fm.sn is exist - process it [09:57:19]wFMCommunicate request_size=4 [09:57:19]MH_SAM_APDU [09:57:19]CAPDU: 80 11 00 00 [09:57:19]Write to MH i2c: E2 08 00 6A 27 80 11 00 00 00 00 00 00 0B [09:57:19]Write i2c OK [09:57:19]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 17 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 17 00 6A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 60 [09:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:57:20]wFMCommunicate OK [09:57:20]requested_item fd.num is exist - process it [09:57:20]SAM_PROTO_GetFieldsCounters [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 13 00 00 [09:57:20]Write to MH i2c: E2 08 00 6B 27 80 13 00 00 00 00 00 00 0E [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 62 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 62 00 6B 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5C 14 03 00 0E 04 04 00 20 02 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 1C [09:57:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5C 14 03 00 0E 04 04 00 20 02 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 [09:57:20]wFMCommunicate OK [09:57:20]SAM_PROTO_GetFieldsCounters done [09:57:20]requested_item shift.num is exist - process it [09:57:20]requested_item shift.opened is exist - process it [09:57:20]req_shift_opened [09:57:20]FM_GetShiftState [09:57:20]SAM_PROTO_GetShiftState [09:57:20]wFMCommunicate request_size=4 [09:57:20]MH_SAM_APDU [09:57:20]CAPDU: 80 13 01 00 [09:57:20]Write to MH i2c: E2 08 00 6C 27 80 13 01 00 00 00 00 00 10 [09:57:20]Write i2c OK [09:57:20]MH_I2C_Read... [09:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:20]Read from MH i2c: E2 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 0E 00 [09:57:20]MH_I2C_Read... [09:57:20]Read from MH i2c: E2 0E 00 6C 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 12 [09:57:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:57:20]wFMCommunicate OK [09:57:20]SAM_PROTO_GetShiftState done [09:57:20]FM_GetShiftState done [09:57:20]req_shift_opened done [09:57:20]requested_item shift.open_date is exist - process it [09:57:20]req_shift_open_date [09:57:20]req_shift_open_date done [09:57:20]produce_requested_data done [09:57:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201820,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:57:20]process_action_free close_receipt [09:57:20]json_value_free [09:57:20]json_value_free done [09:57:20]process_json_proto returns [09:57:20]Send response to host [09:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201820,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:57:20]free response buf [09:57:20]execute_script done [09:57:20]execute_script returns [09:57:20]free content buf [09:57:20]Sock 9.Close socket [09:57:20]Sock 9.Thread stoped [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:45]accept exits with 8 [09:58:45]New connection [09:58:45]New thread 3067080036 created [09:58:45]Thread 3066936676 joined [09:58:45]Waiting for new connection... [09:58:45] Sock 8.Parse request [09:58:45]Sock 8.Check first char [09:58:45]Sock 8.First char is OK [09:58:45]request: POST /json_proto HTTP/1.0 [09:58:45]Method: POST [09:58:45]URL: /json_proto [09:58:45]Method is POST - this is cgi request [09:58:45]url: /json_proto [09:58:45]query_string will be loaded in cgi processing [09:58:45]execute_cgi json_proto POST (null) [09:58:45]execute_cgi path=json_proto method=POST [09:58:45]POST find Content-Length [09:58:45]Host: 172.17.63.195:8080 [09:58:45]Content-Length: 675 [09:58:45]Content-Type: application/json [09:58:45] [09:58:45]POST finish read [09:58:45]Found Content-Length = 675 [09:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:58:45]execute_script... [09:58:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [09:58:45]POST & json_proto [09:58:45]process_json_proto [09:58:45]json parsed OK: [09:58:45]protocol is kg_v1.0 [09:58:45]action value=close_receipt [09:58:45]process_action close_receipt [09:58:45]cmd_close_receipt [09:58:45]MH_GetDate [09:58:45]Write to MH i2c: F0 00 00 6D 27 83 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 09 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: F0 09 00 6D 27 00 D9 0E 1E 67 68 46 19 67 26 [09:58:45]GetLastDocTimeStamp 1730023038 [09:58:45]current date 1730023129 [09:58:45]FM_GetShiftState [09:58:45]SAM_PROTO_GetShiftState [09:58:45]wFMCommunicate request_size=4 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 13 01 00 [09:58:45]Write to MH i2c: E2 08 00 6E 27 80 13 01 00 00 00 00 00 12 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 0E 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 0E 00 6E 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 14 [09:58:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:58:45]wFMCommunicate OK [09:58:45]SAM_PROTO_GetShiftState done [09:58:45]FM_GetShiftState done [09:58:45]opened in 1729987312 [09:58:45]opened+sec_in_day 1730073712 [09:58:45]quantity*price = 100000 [09:58:45]sum+1 = 100002 [09:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 113 27.10.2024 09:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201821 ФПД: 272323489195669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095850&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201821&fm=272323489195669&tin=02508201610067®Number=0000000000091777&sum=100000 [09:58:47]StoreToDocumentArchive [09:58:47]shift 544 fd 201821 [09:58:47]save to /storage/0544/doc_00201821 [09:58:47]save last doc name /storage/0544/doc_00201821 to /storage/kkm_last_doc_name [09:58:47]save OK [09:58:47]Clear old archive folders... [09:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:58:47]tlvbuf is 00137950 [09:58:47]SAM_PROTO_ClearQueue [09:58:47]wFMCommunicate request_size=4 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 09 00 00 [09:58:47]Write to MH i2c: E2 08 00 7B 27 80 09 00 00 00 00 00 00 14 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 7B 27 00 90 00 16 [09:58:47]RAPDU: 90 00 [09:58:47]wFMCommunicate OK [09:58:47]SAM_PROTO_ClearQueue done [09:58:47]KKMCreateOFDPacket [09:58:47]OFDProtocolAddRootSTLVToBuf [09:58:47]FM_MakeSignedData [09:58:47]FM_MakeSignedData [09:58:47]SAM_PROTO_SignData [09:58:47]wFMCommunicate request_size=4 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 0D 01 02 [09:58:47]Write to MH i2c: E2 08 00 7C 27 80 0D 01 02 00 00 00 00 1C [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 7C 27 00 90 00 17 [09:58:47]RAPDU: 90 00 [09:58:47]wFMCommunicate OK [09:58:47]wFMCommunicate request_size=255 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 DA 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 14 03 00 35 04 06 00 [09:58:47]Write to MH i2c: E2 02 01 7D 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 20 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 71 00 00 00 F4 03 04 00 DA 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 14 03 00 35 04 06 00 00 00 F9 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 7D 27 00 90 00 18 [09:58:47]RAPDU: 90 00 [09:58:47]wFMCommunicate OK [09:58:47]wFMCommunicate request_size=11 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 0D 02 02 06 F7 AD 40 D6 66 95 [09:58:47]Write to MH i2c: E2 0E 00 7E 27 80 0D 02 02 06 00 F7 AD 40 D6 66 95 00 00 E0 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 03 00 7E 27 00 90 00 19 [09:58:47]RAPDU: 90 00 [09:58:47]wFMCommunicate OK [09:58:47]wFMCommunicate request_size=4 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 0D 03 02 [09:58:47]Write to MH i2c: E2 08 00 7F 27 80 0D 03 02 00 00 00 00 21 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 0B 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 0B 00 7F 27 00 CE CF B7 A0 FF E7 EE 49 90 00 33 [09:58:47]RAPDU: CE CF B7 A0 FF E7 EE 49 90 00 [09:58:47]wFMCommunicate OK [09:58:47]SAM_PROTO_SignData done [09:58:47]FM_MakeSignedData done [09:58:47]CreateOFDProtocolMessage [09:58:47]wFMCommunicate request_size=4 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 11 00 00 [09:58:47]Write to MH i2c: E2 08 00 80 27 80 11 00 00 00 00 00 00 21 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 17 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 17 00 80 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [09:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:58:47]wFMCommunicate OK [09:58:47]CreateOFDProtocolMessage done [09:58:47]OFDSenderStorePacket 201821 [09:58:47]StoreOFDPacket docnum=201821 [09:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 D3 6C 08 01 71 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 DA 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 14 03 00 35 04 06 00 F7 AD 40 D6 66 95 CE CF B7 A0 FF E7 EE 49 [09:58:47]CheckFolder [09:58:47]dirname=/storage/ofd_packets [09:58:47]CheckFolder done [09:58:47]ProducePacketName [09:58:47]name=ofd_packets/00201821 [09:58:47]NVStorageSaveData ofd_packets/00201821 [09:58:47]File name is /storage/ofd_packets/00201821 [09:58:47]Write 302 bytes [09:58:47]NVStorageSaveData done [09:58:47]OFDSenderStorePacket done [09:58:47]KKMCreateOFDPacket done [09:58:47]NVStorageSaveData kkm_last_timestamp [09:58:47]File name is /storage/kkm_last_timestamp [09:58:47]Write 4 bytes [09:58:47]NVStorageSaveData done [09:58:47]ExternCall_PrintAddStr [09:58:47]wPrintStart [09:58:47]Write to MH i2c: 01 00 00 81 27 A8 [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 07 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: 01 07 00 81 27 00 00 00 00 00 FF 0F BD [09:58:47]RasterBufferAndPrint [09:58:47]line Счет N : (1)449580 [09:58:47]line ИНН: 02508201610067 [09:58:47]line Контрольно-Кассовый Чек [09:58:47]line ПРОДАЖА [09:58:47]line ТРК (МРК, ГНК) : 42 [09:58:47]line Товар: 2710124130 [09:58:47]line SUPER 92-К-5 [09:58:47]line 14.620 * 68.40 [09:58:47]line = 1000.01 [09:58:47]line НДС 12% НСП 1% [09:58:47]line > о реализуемом товаре [09:58:47]line ОКРУГЛЕНИЕ: -0.01 [09:58:47]line ИТОГО: 1000.00 [09:58:47]line Внесено: 1000.00 [09:58:47]line СДАЧА: 0.00 [09:58:47]line НСП 1% : 8.85 [09:58:47]line НДС 12% : 106.20 [09:58:47]line Наличными: 1000.00 [09:58:47]line Безнал.: 0.00 [09:58:47]line Место: АЗС № 171 "Партнер Нефть" [09:58:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:58:47]line СНО: Общий режим [09:58:47]line Чек 113 27.10.2024 09:58 [09:58:47]line Смена: 544 ФФД: 1.0 [09:58:47]line ЗНМ: 0300000109 [09:58:47]line РНМ: 0000000000091777 [09:58:47]line Версия ККМ: 001 [09:58:47]line ФМ: 0000000000871756 [09:58:47]line ФД: 201821 [09:58:47]line ФПД: 272323489195669 [09:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095850&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201821&fm=272323489195669&tin=02508201610067®Number=0000000000091777&sum=100000 [09:58:47]OFD Sender: Processing packet 201821 [packets to send 112, broken 111] [09:58:47]ProducePacketName [09:58:47]name=ofd_packets/00201821 [09:58:47]OFD Sender: To server: pG, [09:58:47]CommunicateWithHost lk.salyk.kg:30040 [09:58:47]ConnectInit lk.salyk.kg [09:58:47]written 0, free lines is 4095 [09:58:48]Connected sock=10 [09:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 D3 6C 08 01 71 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 71 00 00 00 F4 03 04 00 DA 0E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 14 03 00 35 04 06 00 F7 AD 40 D6 66 95 CE CF B7 A0 FF E7 EE 49 [09:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E7 8D 47 00 05 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 14 03 00 F4 03 04 00 7F BA 1D 67 B6 04 01 00 00 7E 3E 99 C4 58 92 1B 9B [09:58:48]CommunicateWithHost err = 0 [09:58:48]CheckOFDResponse [09:58:48]1017 (14) - 77093643461234 [09:58:48]1041 (16) - 0000000000871756 [09:58:48]1040 (4) - 201821 [09:58:48]1012 (4) - 27.10.2024 03:58 [09:58:48]1206 (1) - 0 [09:58:48]OFD Sender: Remove packet 201821 [09:58:48]ProducePacketName [09:58:48]name=ofd_packets/00201821 [09:58:48]NVStorageDeleteData [09:58:48]Write to MH i2c: 01 00 00 AC 27 D3 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 07 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 07 00 AC 27 00 00 00 00 00 8F 0C 75 [09:58:48]RasterBufferAndPrint [09:58:48]line [09:58:48]line [09:58:48]line [09:58:48]line [09:58:48]line [09:58:48]written 0, free lines is 3221 [09:58:48]MH_Cut [09:58:48]Write to MH i2c: D1 01 00 B3 27 01 AC [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: D1 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: D1 01 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: D1 01 00 B3 27 00 AB [09:58:48]Write to MH i2c: 01 00 00 B4 27 DB [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]OFD Sender: No OFD packet to send [09:58:49]*** Cut start [09:58:49]*** Purtial cut [09:58:49]*** Stage 1: CUTSNS_PIN = 1 [09:58:49]Read from MH i2c: 01 [09:58:49]MH_I2C_Read... [09:58:49]*** Stop cut motor [09:58:49]*** Cut end [09:58:49]Read from MH i2c: 01 07 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 07 00 B4 27 00 00 00 00 00 FF 0F F0 [09:58:49]process_action close_receipt done [09:58:49]requested_data is exist [09:58:49]produce_requested_data [09:58:49]requested_item fm.sn is exist - process it [09:58:49]wFMCommunicate request_size=4 [09:58:49]MH_SAM_APDU [09:58:49]CAPDU: 80 11 00 00 [09:58:49]Write to MH i2c: E2 08 00 B5 27 80 11 00 00 00 00 00 00 56 [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:49]Read from MH i2c: E2 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 17 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 17 00 B5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AB [09:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:58:49]wFMCommunicate OK [09:58:49]requested_item fd.num is exist - process it [09:58:49]SAM_PROTO_GetFieldsCounters [09:58:49]wFMCommunicate request_size=4 [09:58:49]MH_SAM_APDU [09:58:49]CAPDU: 80 13 00 00 [09:58:49]Write to MH i2c: E2 08 00 B6 27 80 13 00 00 00 00 00 00 59 [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:49]Read from MH i2c: E2 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 62 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 62 00 B6 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5D 14 03 00 0E 04 04 00 20 02 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 6B [09:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5D 14 03 00 0E 04 04 00 20 02 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 [09:58:49]wFMCommunicate OK [09:58:49]SAM_PROTO_GetFieldsCounters done [09:58:49]requested_item shift.num is exist - process it [09:58:49]requested_item shift.opened is exist - process it [09:58:49]req_shift_opened [09:58:49]FM_GetShiftState [09:58:49]SAM_PROTO_GetShiftState [09:58:49]wFMCommunicate request_size=4 [09:58:49]MH_SAM_APDU [09:58:49]CAPDU: 80 13 01 00 [09:58:49]Write to MH i2c: E2 08 00 B7 27 80 13 01 00 00 00 00 00 5B [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:49]Read from MH i2c: E2 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 0E 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: E2 0E 00 B7 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5D [09:58:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [09:58:49]wFMCommunicate OK [09:58:49]SAM_PROTO_GetShiftState done [09:58:49]FM_GetShiftState done [09:58:49]req_shift_opened done [09:58:49]requested_item shift.open_date is exist - process it [09:58:49]req_shift_open_date [09:58:49]req_shift_open_date done [09:58:49]produce_requested_data done [09:58:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201821,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [09:58:49]process_action_free close_receipt [09:58:49]json_value_free [09:58:49]json_value_free done [09:58:49]process_json_proto returns [09:58:49]Send response to host [09:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201821,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [09:58:49]free response buf [09:58:49]execute_script done [09:58:49]execute_script returns [09:58:49]free content buf [09:58:49]Sock 8.Close socket [09:58:49]Sock 8.Thread stoped [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:40]accept exits with 9 [10:01:40]New connection [10:01:40]New thread 3066936676 created [10:01:40]Thread 3067080036 joined [10:01:40]Waiting for new connection... [10:01:40] Sock 9.Parse request [10:01:40]Sock 9.Check first char [10:01:40]Sock 9.First char is OK [10:01:40]request: POST /json_proto HTTP/1.0 [10:01:40]Method: POST [10:01:40]URL: /json_proto [10:01:40]Method is POST - this is cgi request [10:01:40]url: /json_proto [10:01:40]query_string will be loaded in cgi processing [10:01:40]execute_cgi json_proto POST (null) [10:01:40]execute_cgi path=json_proto method=POST [10:01:40]POST find Content-Length [10:01:40]Host: 172.17.63.195:8080 [10:01:40]Content-Length: 679 [10:01:40]Content-Type: application/json [10:01:40] [10:01:40]POST finish read [10:01:40]Found Content-Length = 679 [10:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:40]execute_script... [10:01:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:40]POST & json_proto [10:01:40]process_json_proto [10:01:40]json parsed OK: [10:01:40]protocol is kg_v1.0 [10:01:40]action value=close_receipt [10:01:40]process_action close_receipt [10:01:40]cmd_close_receipt [10:01:40]MH_GetDate [10:01:40]Write to MH i2c: F0 00 00 B8 27 CE [10:01:40]Write i2c OK [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: F0 [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: F0 09 00 [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: F0 09 00 B8 27 00 88 0F 1E 67 68 46 19 67 21 [10:01:40]GetLastDocTimeStamp 1730023130 [10:01:40]current date 1730023304 [10:01:40]FM_GetShiftState [10:01:40]SAM_PROTO_GetShiftState [10:01:40]wFMCommunicate request_size=4 [10:01:40]MH_SAM_APDU [10:01:40]CAPDU: 80 13 01 00 [10:01:40]Write to MH i2c: E2 08 00 B9 27 80 13 01 00 00 00 00 00 5D [10:01:40]Write i2c OK [10:01:40]MH_I2C_Read... [10:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:40]Read from MH i2c: E2 [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: E2 0E 00 [10:01:40]MH_I2C_Read... [10:01:40]Read from MH i2c: E2 0E 00 B9 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5F [10:01:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:01:40]wFMCommunicate OK [10:01:40]SAM_PROTO_GetShiftState done [10:01:40]FM_GetShiftState done [10:01:40]opened in 1729987312 [10:01:40]opened+sec_in_day 1730073712 [10:01:40]quantity*price = 150037 [10:01:40]sum+1 = 150039 [10:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 114 27.10.2024 10:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201822 ФПД: 177499199103313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201822&fm=177499199103313&tin=02508201610067®Number=0000000000091777&sum=150000 [10:01:41]StoreToDocumentArchive [10:01:41]shift 544 fd 201822 [10:01:41]save to /storage/0544/doc_00201822 [10:01:41]save last doc name /storage/0544/doc_00201822 to /storage/kkm_last_doc_name [10:01:41]save OK [10:01:41]Clear old archive folders... [10:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:41]tlvbuf is B6EF9A20 [10:01:41]SAM_PROTO_ClearQueue [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 09 00 00 [10:01:41]Write to MH i2c: E2 08 00 C6 27 80 09 00 00 00 00 00 00 5F [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 C6 27 00 90 00 61 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]SAM_PROTO_ClearQueue done [10:01:41]KKMCreateOFDPacket [10:01:41]OFDProtocolAddRootSTLVToBuf [10:01:41]FM_MakeSignedData [10:01:41]FM_MakeSignedData [10:01:41]SAM_PROTO_SignData [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 01 02 [10:01:41]Write to MH i2c: E2 08 00 C7 27 80 0D 01 02 00 00 00 00 67 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 C7 27 00 90 00 62 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]wFMCommunicate request_size=255 [10:01:41]MH_SAM_APDU [10:01:41]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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 88 0F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 14 03 00 35 04 06 00 A1 6F 40 B5 [10:01:41]Write to MH i2c: E2 02 01 C8 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 88 0F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 14 03 00 35 04 06 00 A1 6F 40 B5 00 00 92 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 C8 27 00 90 00 63 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]wFMCommunicate request_size=7 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 02 02 02 E1 51 [10:01:41]Write to MH i2c: E2 0A 00 C9 27 80 0D 02 02 02 00 E1 51 00 00 A0 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [10:01:42]RAPDU: 90 00 [10:01:42]wFMCommunicate OK [10:01:42]wFMCommunicate request_size=4 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 0D 03 02 [10:01:42]Write to MH i2c: E2 08 00 CA 27 80 0D 03 02 00 00 00 00 6C [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 0B 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 0B 00 CA 27 00 76 5F CE 28 3C 40 68 4A 90 00 66 [10:01:42]RAPDU: 76 5F CE 28 3C 40 68 4A 90 00 [10:01:42]wFMCommunicate OK [10:01:42]SAM_PROTO_SignData done [10:01:42]FM_MakeSignedData done [10:01:42]CreateOFDProtocolMessage [10:01:42]wFMCommunicate request_size=4 [10:01:42]MH_SAM_APDU [10:01:42]CAPDU: 80 11 00 00 [10:01:42]Write to MH i2c: E2 08 00 CB 27 80 11 00 00 00 00 00 00 6C [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:42]Read from MH i2c: E2 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 17 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: E2 17 00 CB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [10:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:01:42]wFMCommunicate OK [10:01:42]CreateOFDProtocolMessage done [10:01:42]OFDSenderStorePacket 201822 [10:01:42]StoreOFDPacket docnum=201822 [10:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9D B5 04 01 66 99 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 88 0F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 14 03 00 35 04 06 00 A1 6F 40 B5 E1 51 76 5F CE 28 3C 40 68 4A [10:01:42]CheckFolder [10:01:42]dirname=/storage/ofd_packets [10:01:42]CheckFolder done [10:01:42]ProducePacketName [10:01:42]name=ofd_packets/00201822 [10:01:42]NVStorageSaveData ofd_packets/00201822 [10:01:42]File name is /storage/ofd_packets/00201822 [10:01:42]Write 298 bytes [10:01:42]NVStorageSaveData done [10:01:42]OFDSenderStorePacket done [10:01:42]KKMCreateOFDPacket done [10:01:42]NVStorageSaveData kkm_last_timestamp [10:01:42]File name is /storage/kkm_last_timestamp [10:01:42]Write 4 bytes [10:01:42]NVStorageSaveData done [10:01:42]ExternCall_PrintAddStr [10:01:42]wPrintStart [10:01:42]Write to MH i2c: 01 00 00 CC 27 F3 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 CC 27 00 00 00 00 00 FF 0F 08 [10:01:42]RasterBufferAndPrint [10:01:42]line Счет N : (1)449581 [10:01:42]line ИНН: 02508201610067 [10:01:42]line Контрольно-Кассовый Чек [10:01:42]line ПРОДАЖА [10:01:42]line ТРК (МРК, ГНК) : 33 [10:01:42]line Товар: 2710194210 [10:01:42]line ДТ-К-2 [10:01:42]line 19.690 * 76.20 [10:01:42]line = 1500.38 [10:01:42]line НДС 12% НСП 1% [10:01:42]line > о реализуемом товаре [10:01:42]line ОКРУГЛЕНИЕ: -0.38 [10:01:42]line ИТОГО: 1500.00 [10:01:42]line Внесено: 1500.00 [10:01:42]line СДАЧА: 0.00 [10:01:42]line НСП 1% : 13.28 [10:01:42]line НДС 12% : 159.33 [10:01:42]line Наличными: 1500.00 [10:01:42]line Безнал.: 0.00 [10:01:42]line Место: АЗС № 171 "Партнер Нефть" [10:01:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:01:42]line СНО: Общий режим [10:01:42]line Чек 114 27.10.2024 10:01 [10:01:42]line Смена: 544 ФФД: 1.0 [10:01:42]line ЗНМ: 0300000109 [10:01:42]line РНМ: 0000000000091777 [10:01:42]line Версия ККМ: 001 [10:01:42]line ФМ: 0000000000871756 [10:01:42]line ФД: 201822 [10:01:42]line ФПД: 177499199103313 [10:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201822&fm=177499199103313&tin=02508201610067®Number=0000000000091777&sum=150000 [10:01:42]OFD Sender: Processing packet 201822 [packets to send 112, broken 111] [10:01:42]ProducePacketName [10:01:42]name=ofd_packets/00201822 [10:01:42]OFD Sender: To server: pG, [10:01:42]CommunicateWithHost lk.salyk.kg:30040 [10:01:42]ConnectInit lk.salyk.kg [10:01:42]written 0, free lines is 4095 [10:01:42]Connected sock=10 [10:01:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9D B5 04 01 66 99 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 88 0F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 14 03 00 35 04 06 00 A1 6F 40 B5 E1 51 76 5F CE 28 3C 40 68 4A [10:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 37 02 47 00 65 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 14 03 00 F4 03 04 00 2E BB 1D 67 B6 04 01 00 00 EC DE 0D 65 6F EE 80 76 [10:01:42]CommunicateWithHost err = 0 [10:01:42]CheckOFDResponse [10:01:42]1017 (14) - 77093643461234 [10:01:42]1041 (16) - 0000000000871756 [10:01:42]1040 (4) - 201822 [10:01:42]1012 (4) - 27.10.2024 04:01 [10:01:42]1206 (1) - 0 [10:01:42]OFD Sender: Remove packet 201822 [10:01:42]ProducePacketName [10:01:42]name=ofd_packets/00201822 [10:01:42]NVStorageDeleteData [10:01:42]Write to MH i2c: 01 00 00 F7 27 1E [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 F7 27 00 00 00 00 00 86 0C B7 [10:01:42]RasterBufferAndPrint [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]written 0, free lines is 3211 [10:01:42]MH_Cut [10:01:42]Write to MH i2c: D1 01 00 FE 27 01 F7 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 01 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 01 00 FE 27 00 F6 [10:01:42]Write to MH i2c: 01 00 00 FF 27 26 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:43]OFD Sender: No OFD packet to send [10:01:43]*** Cut start [10:01:43]*** Purtial cut [10:01:43]*** Stage 1: CUTSNS_PIN = 1 [10:01:44]Read from MH i2c: 01 [10:01:44]MH_I2C_Read... [10:01:44]*** Stop cut motor [10:01:44]*** Cut end [10:01:44]Read from MH i2c: 01 07 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: 01 07 00 FF 27 00 00 00 00 00 FF 0F 3B [10:01:44]process_action close_receipt done [10:01:44]requested_data is exist [10:01:44]produce_requested_data [10:01:44]requested_item fm.sn is exist - process it [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 11 00 00 [10:01:44]Write to MH i2c: E2 08 00 00 28 80 11 00 00 00 00 00 00 A2 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 17 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 17 00 00 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F7 [10:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:01:44]wFMCommunicate OK [10:01:44]requested_item fd.num is exist - process it [10:01:44]SAM_PROTO_GetFieldsCounters [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 13 00 00 [10:01:44]Write to MH i2c: E2 08 00 01 28 80 13 00 00 00 00 00 00 A5 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 62 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 62 00 01 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5E 14 03 00 0E 04 04 00 20 02 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 BB [10:01:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5E 14 03 00 0E 04 04 00 20 02 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 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_GetFieldsCounters done [10:01:44]requested_item shift.num is exist - process it [10:01:44]requested_item shift.opened is exist - process it [10:01:44]req_shift_opened [10:01:44]FM_GetShiftState [10:01:44]SAM_PROTO_GetShiftState [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 13 01 00 [10:01:44]Write to MH i2c: E2 08 00 02 28 80 13 01 00 00 00 00 00 A7 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 02 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A9 [10:01:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_GetShiftState done [10:01:44]FM_GetShiftState done [10:01:44]req_shift_opened done [10:01:44]requested_item shift.open_date is exist - process it [10:01:44]req_shift_open_date [10:01:44]req_shift_open_date done [10:01:44]produce_requested_data done [10:01:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201822,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:01:44]process_action_free close_receipt [10:01:44]json_value_free [10:01:44]json_value_free done [10:01:44]process_json_proto returns [10:01:44]Send response to host [10:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201822,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:01:44]free response buf [10:01:44]execute_script done [10:01:44]execute_script returns [10:01:44]free content buf [10:01:44]Sock 9.Close socket [10:01:44]Sock 9.Thread stoped [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:50]accept exits with 8 [10:02:50]New connection [10:02:50]New thread 3067080036 created [10:02:50]Thread 3066936676 joined [10:02:50]Waiting for new connection... [10:02:50] Sock 8.Parse request [10:02:50]Sock 8.Check first char [10:02:50]Sock 8.First char is OK [10:02:50]request: POST /json_proto HTTP/1.0 [10:02:50]Method: POST [10:02:50]URL: /json_proto [10:02:50]Method is POST - this is cgi request [10:02:50]url: /json_proto [10:02:50]query_string will be loaded in cgi processing [10:02:50]execute_cgi json_proto POST (null) [10:02:50]execute_cgi path=json_proto method=POST [10:02:50]POST find Content-Length [10:02:50]Host: 172.17.63.195:8080 [10:02:50]Content-Length: 632 [10:02:50]Content-Type: application/json [10:02:50] [10:02:50]POST finish read [10:02:50]Found Content-Length = 632 [10:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [10:02:50]execute_script... [10:02: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)449582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [10:02:50]POST & json_proto [10:02:50]process_json_proto [10:02:50]json parsed OK: [10:02:50]protocol is kg_v1.0 [10:02:50]action value=close_receipt [10:02:50]process_action close_receipt [10:02:50]cmd_close_receipt [10:02:50]MH_GetDate [10:02:50]Write to MH i2c: F0 00 00 03 28 1A [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 09 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 09 00 03 28 00 CE 0F 1E 67 68 46 19 67 B3 [10:02:50]GetLastDocTimeStamp 1730023304 [10:02:50]current date 1730023374 [10:02:50]FM_GetShiftState [10:02:50]SAM_PROTO_GetShiftState [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 13 01 00 [10:02:50]Write to MH i2c: E2 08 00 04 28 80 13 01 00 00 00 00 00 A9 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0E 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0E 00 04 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AB [10:02:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_GetShiftState done [10:02:50]FM_GetShiftState done [10:02:50]opened in 1729987312 [10:02:50]opened+sec_in_day 1730073712 [10:02:50]quantity*price = 50000 [10:02:50]sum+1 = 50001 [10:02:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 115 27.10.2024 10:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201823 ФПД: 95487665085192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100254&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201823&fm=95487665085192&tin=02508201610067®Number=0000000000091777&sum=50000 [10:02:51]StoreToDocumentArchive [10:02:51]shift 544 fd 201823 [10:02:51]save to /storage/0544/doc_00201823 [10:02:51]save last doc name /storage/0544/doc_00201823 to /storage/kkm_last_doc_name [10:02:51]save OK [10:02:51]Clear old archive folders... [10:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:02:51]tlvbuf is B6F74460 [10:02:51]SAM_PROTO_ClearQueue [10:02:51]wFMCommunicate request_size=4 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 09 00 00 [10:02:51]Write to MH i2c: E2 08 00 11 28 80 09 00 00 00 00 00 00 AB [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:51]Read from MH i2c: E2 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 11 28 00 90 00 AD [10:02:51]RAPDU: 90 00 [10:02:51]wFMCommunicate OK [10:02:51]SAM_PROTO_ClearQueue done [10:02:51]KKMCreateOFDPacket [10:02:51]OFDProtocolAddRootSTLVToBuf [10:02:51]FM_MakeSignedData [10:02:51]FM_MakeSignedData [10:02:51]SAM_PROTO_SignData [10:02:51]wFMCommunicate request_size=4 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 0D 01 02 [10:02:51]Write to MH i2c: E2 08 00 12 28 80 0D 01 02 00 00 00 00 B3 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:51]Read from MH i2c: E2 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 12 28 00 90 00 AE [10:02:51]RAPDU: 90 00 [10:02:51]wFMCommunicate OK [10:02:51]wFMCommunicate request_size=255 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 CE 0F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 14 03 00 35 04 06 00 [10:02:51]Write to MH i2c: E2 02 01 13 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 CE 0F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 14 03 00 35 04 06 00 00 00 11 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:51]Read from MH i2c: E2 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [10:02:51]RAPDU: 90 00 [10:02:51]wFMCommunicate OK [10:02:51]wFMCommunicate request_size=11 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 0D 02 02 06 56 D8 74 5B 9B 08 [10:02:51]Write to MH i2c: E2 0E 00 14 28 80 0D 02 02 06 00 56 D8 74 5B 9B 08 00 00 62 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:51]Read from MH i2c: E2 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [10:02:51]RAPDU: 90 00 [10:02:51]wFMCommunicate OK [10:02:51]wFMCommunicate request_size=4 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 0D 03 02 [10:02:51]Write to MH i2c: E2 08 00 15 28 80 0D 03 02 00 00 00 00 B8 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:51]Read from MH i2c: E2 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 0B 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 0B 00 15 28 00 4E 6C 0E E7 4F CC 9D 2B 90 00 4B [10:02:51]RAPDU: 4E 6C 0E E7 4F CC 9D 2B 90 00 [10:02:51]wFMCommunicate OK [10:02:51]SAM_PROTO_SignData done [10:02:51]FM_MakeSignedData done [10:02:51]CreateOFDProtocolMessage [10:02:51]wFMCommunicate request_size=4 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 11 00 00 [10:02:51]Write to MH i2c: E2 08 00 16 28 80 11 00 00 00 00 00 00 B8 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:51]Read from MH i2c: E2 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 17 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: E2 17 00 16 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0D [10:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:02:51]wFMCommunicate OK [10:02:51]CreateOFDProtocolMessage done [10:02:51]OFDSenderStorePacket 201823 [10:02:51]StoreOFDPacket docnum=201823 [10:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 ED 46 08 01 A7 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 CE 0F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 14 03 00 35 04 06 00 56 D8 74 5B 9B 08 4E 6C 0E E7 4F CC 9D 2B [10:02:51]CheckFolder [10:02:51]dirname=/storage/ofd_packets [10:02:51]CheckFolder done [10:02:51]ProducePacketName [10:02:51]name=ofd_packets/00201823 [10:02:51]NVStorageSaveData ofd_packets/00201823 [10:02:51]File name is /storage/ofd_packets/00201823 [10:02:51]Write 302 bytes [10:02:51]NVStorageSaveData done [10:02:51]OFDSenderStorePacket done [10:02:51]KKMCreateOFDPacket done [10:02:51]NVStorageSaveData kkm_last_timestamp [10:02:51]File name is /storage/kkm_last_timestamp [10:02:51]Write 4 bytes [10:02:51]NVStorageSaveData done [10:02:51]OFD Sender: Processing packet 201823 [packets to send 112, broken 111] [10:02:51]ProducePacketName [10:02:51]name=ofd_packets/00201823 [10:02:51]OFD Sender: To server: pG, [10:02:51]CommunicateWithHost lk.salyk.kg:30040 [10:02:51]ConnectInit lk.salyk.kg [10:02:51]ExternCall_PrintAddStr [10:02:51]wPrintStart [10:02:51]Write to MH i2c: 01 00 00 17 28 3F [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 07 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 07 00 17 28 00 00 00 00 00 FF 0F 54 [10:02:51]RasterBufferAndPrint [10:02:51]line Счет N : (1)449582 [10:02:51]line ИНН: 02508201610067 [10:02:51]line Контрольно-Кассовый Чек [10:02:51]line ПРОДАЖА [10:02:51]line ТРК (МРК, ГНК) : 42 [10:02:51]line Товар: 2710124130 [10:02:51]line SUPER 92-К-5 [10:02:51]line 7.310 * 68.40 [10:02:51]line = 500.00 [10:02:51]line НДС 12% НСП 1% [10:02:51]line > о реализуемом товаре [10:02:51]line ИТОГО: 500.00 [10:02:51]line НСП 1% : 4.42 [10:02:51]line НДС 12% : 53.10 [10:02:51]line Наличными: 500.00 [10:02:51]line Безнал.: 0.00 [10:02:51]line Место: АЗС № 171 "Партнер Нефть" [10:02:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:02:51]line СНО: Общий режим [10:02:51]line Чек 115 27.10.2024 10:02 [10:02:51]line Смена: 544 ФФД: 1.0 [10:02:51]line ЗНМ: 0300000109 [10:02:51]line РНМ: 0000000000091777 [10:02:51]line Версия ККМ: 001 [10:02:51]line ФМ: 0000000000871756 [10:02:51]line ФД: 201823 [10:02:51]line ФПД: 95487665085192 [10:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100254&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201823&fm=95487665085192&tin=02508201610067®Number=0000000000091777&sum=50000 [10:02:52]Connected sock=11 [10:02:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 ED 46 08 01 A7 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 73 00 00 00 F4 03 04 00 CE 0F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 14 03 00 35 04 06 00 56 D8 74 5B 9B 08 4E 6C 0E E7 4F CC 9D 2B [10:02:52]written 0, free lines is 4095 [10:02:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF 14 47 00 0C BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 14 03 00 F4 03 04 00 73 BB 1D 67 B6 04 01 00 00 56 1C 56 C0 EE F4 6A BD [10:02:52]CommunicateWithHost err = 0 [10:02:52]CheckOFDResponse [10:02:52]1017 (14) - 77093643461234 [10:02:52]1041 (16) - 0000000000871756 [10:02:52]1040 (4) - 201823 [10:02:52]1012 (4) - 27.10.2024 04:02 [10:02:52]1206 (1) - 0 [10:02:52]OFD Sender: Remove packet 201823 [10:02:52]ProducePacketName [10:02:52]name=ofd_packets/00201823 [10:02:52]NVStorageDeleteData [10:02:52]Write to MH i2c: 01 00 00 3F 28 67 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 07 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 07 00 3F 28 00 00 00 00 00 CD 0C 47 [10:02:52]RasterBufferAndPrint [10:02:52]line [10:02:52]line [10:02:52]line [10:02:52]line [10:02:52]line [10:02:52]written 0, free lines is 3280 [10:02:52]MH_Cut [10:02:52]Write to MH i2c: D1 01 00 46 28 01 40 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: D1 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: D1 01 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: D1 01 00 46 28 00 3F [10:02:52]Write to MH i2c: 01 00 00 47 28 6F [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]OFD Sender: No OFD packet to send [10:02:53]*** Cut start [10:02:53]*** Purtial cut [10:02:53]*** Stage 1: CUTSNS_PIN = 1 [10:02:53]Read from MH i2c: 01 [10:02:53]MH_I2C_Read... [10:02:53]*** Stop cut motor [10:02:53]*** Cut end [10:02:53]Read from MH i2c: 01 07 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: 01 07 00 47 28 00 00 00 00 00 FF 0F 84 [10:02:53]process_action close_receipt done [10:02:53]requested_data is exist [10:02:53]produce_requested_data [10:02:53]requested_item fm.sn is exist - process it [10:02:53]wFMCommunicate request_size=4 [10:02:53]MH_SAM_APDU [10:02:53]CAPDU: 80 11 00 00 [10:02:53]Write to MH i2c: E2 08 00 48 28 80 11 00 00 00 00 00 00 EA [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:53]Read from MH i2c: E2 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 17 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 17 00 48 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [10:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:02:53]wFMCommunicate OK [10:02:53]requested_item fd.num is exist - process it [10:02:53]SAM_PROTO_GetFieldsCounters [10:02:53]wFMCommunicate request_size=4 [10:02:53]MH_SAM_APDU [10:02:53]CAPDU: 80 13 00 00 [10:02:53]Write to MH i2c: E2 08 00 49 28 80 13 00 00 00 00 00 00 ED [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:53]Read from MH i2c: E2 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 62 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 62 00 49 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5F 14 03 00 0E 04 04 00 20 02 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 07 [10:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5F 14 03 00 0E 04 04 00 20 02 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 [10:02:53]wFMCommunicate OK [10:02:53]SAM_PROTO_GetFieldsCounters done [10:02:53]requested_item shift.num is exist - process it [10:02:53]requested_item shift.opened is exist - process it [10:02:53]req_shift_opened [10:02:53]FM_GetShiftState [10:02:53]SAM_PROTO_GetShiftState [10:02:53]wFMCommunicate request_size=4 [10:02:53]MH_SAM_APDU [10:02:53]CAPDU: 80 13 01 00 [10:02:53]Write to MH i2c: E2 08 00 4A 28 80 13 01 00 00 00 00 00 EF [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:53]Read from MH i2c: E2 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 0E 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 0E 00 4A 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F1 [10:02:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:02:53]wFMCommunicate OK [10:02:53]SAM_PROTO_GetShiftState done [10:02:53]FM_GetShiftState done [10:02:53]req_shift_opened done [10:02:53]requested_item shift.open_date is exist - process it [10:02:53]req_shift_open_date [10:02:53]req_shift_open_date done [10:02:53]produce_requested_data done [10:02:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201823,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:02:53]process_action_free close_receipt [10:02:53]json_value_free [10:02:53]json_value_free done [10:02:53]process_json_proto returns [10:02:53]Send response to host [10:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201823,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:02:53]free response buf [10:02:53]execute_script done [10:02:53]execute_script returns [10:02:53]free content buf [10:02:53]Sock 8.Close socket [10:02:53]Sock 8.Thread stoped [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:54]accept exits with 9 [10:03:54]New connection [10:03:54]New thread 3066936676 created [10:03:54]Thread 3067080036 joined [10:03:54]Waiting for new connection... [10:03:54] Sock 9.Parse request [10:03:54]Sock 9.Check first char [10:03:54]Sock 9.First char is OK [10:03:54]request: POST /json_proto HTTP/1.0 [10:03:54]Method: POST [10:03:54]URL: /json_proto [10:03:54]Method is POST - this is cgi request [10:03:54]url: /json_proto [10:03:54]query_string will be loaded in cgi processing [10:03:54]execute_cgi json_proto POST (null) [10:03:54]execute_cgi path=json_proto method=POST [10:03:54]POST find Content-Length [10:03:54]Host: 172.17.63.195:8080 [10:03:54]Content-Length: 678 [10:03:54]Content-Type: application/json [10:03:54] [10:03:54]POST finish read [10:03:54]Found Content-Length = 678 [10:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:54]execute_script... [10:03: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)449583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:54]POST & json_proto [10:03:54]process_json_proto [10:03:54]json parsed OK: [10:03:54]protocol is kg_v1.0 [10:03:54]action value=close_receipt [10:03:54]process_action close_receipt [10:03:54]cmd_close_receipt [10:03:54]MH_GetDate [10:03:54]Write to MH i2c: F0 00 00 4B 28 62 [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: F0 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: F0 09 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: F0 09 00 4B 28 00 0E 10 1E 67 68 46 19 67 3C [10:03:54]GetLastDocTimeStamp 1730023374 [10:03:54]current date 1730023438 [10:03:54]FM_GetShiftState [10:03:54]SAM_PROTO_GetShiftState [10:03:54]wFMCommunicate request_size=4 [10:03:54]MH_SAM_APDU [10:03:54]CAPDU: 80 13 01 00 [10:03:54]Write to MH i2c: E2 08 00 4C 28 80 13 01 00 00 00 00 00 F1 [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:54]Read from MH i2c: E2 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 0E 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 0E 00 4C 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F3 [10:03:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:03:54]wFMCommunicate OK [10:03:54]SAM_PROTO_GetShiftState done [10:03:54]FM_GetShiftState done [10:03:54]opened in 1729987312 [10:03:54]opened+sec_in_day 1730073712 [10:03:54]quantity*price = 90004 [10:03:54]sum+1 = 90006 [10:03:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 116 27.10.2024 10:03 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201824 ФПД: 28508072566429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100358&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201824&fm=28508072566429&tin=02508201610067®Number=0000000000091777&sum=90000 [10:03:55]StoreToDocumentArchive [10:03:55]shift 544 fd 201824 [10:03:55]save to /storage/0544/doc_00201824 [10:03:55]save last doc name /storage/0544/doc_00201824 to /storage/kkm_last_doc_name [10:03:55]save OK [10:03:55]Clear old archive folders... [10:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:55]tlvbuf is 000A3CB0 [10:03:55]SAM_PROTO_ClearQueue [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 09 00 00 [10:03:55]Write to MH i2c: E2 08 00 59 28 80 09 00 00 00 00 00 00 F3 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 59 28 00 90 00 F5 [10:03:55]RAPDU: 90 00 [10:03:55]wFMCommunicate OK [10:03:55]SAM_PROTO_ClearQueue done [10:03:55]KKMCreateOFDPacket [10:03:55]OFDProtocolAddRootSTLVToBuf [10:03:55]FM_MakeSignedData [10:03:55]FM_MakeSignedData [10:03:55]SAM_PROTO_SignData [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 0D 01 02 [10:03:55]Write to MH i2c: E2 08 00 5A 28 80 0D 01 02 00 00 00 00 FB [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 5A 28 00 90 00 F6 [10:03:55]RAPDU: 90 00 [10:03:55]wFMCommunicate OK [10:03:55]wFMCommunicate request_size=255 [10:03:55]MH_SAM_APDU [10:03: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 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 0E 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 14 03 00 35 04 06 00 19 [10:03:55]Write to MH i2c: E2 02 01 5B 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 0E 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 14 03 00 35 04 06 00 19 00 00 F0 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 5B 28 00 90 00 F7 [10:03:55]RAPDU: 90 00 [10:03:55]wFMCommunicate OK [10:03:55]wFMCommunicate request_size=10 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 0D 02 02 05 ED 8D 89 DE 9D [10:03:55]Write to MH i2c: E2 0D 00 5C 28 80 0D 02 02 05 00 ED 8D 89 DE 9D 00 00 86 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [10:03:55]RAPDU: 90 00 [10:03:55]wFMCommunicate OK [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 0D 03 02 [10:03:55]Write to MH i2c: E2 08 00 5D 28 80 0D 03 02 00 00 00 00 00 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 0B 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 0B 00 5D 28 00 1F 3A FD E8 AB 1D C7 BE 90 00 8C [10:03:55]RAPDU: 1F 3A FD E8 AB 1D C7 BE 90 00 [10:03:55]wFMCommunicate OK [10:03:55]SAM_PROTO_SignData done [10:03:55]FM_MakeSignedData done [10:03:55]CreateOFDProtocolMessage [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 11 00 00 [10:03:55]Write to MH i2c: E2 08 00 5E 28 80 11 00 00 00 00 00 00 00 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 17 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 17 00 5E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 55 [10:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:03:55]wFMCommunicate OK [10:03:55]CreateOFDProtocolMessage done [10:03:55]OFDSenderStorePacket 201824 [10:03:55]StoreOFDPacket docnum=201824 [10:03:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 03 FC 07 01 1C 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 0E 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 14 03 00 35 04 06 00 19 ED 8D 89 DE 9D 1F 3A FD E8 AB 1D C7 BE [10:03:55]CheckFolder [10:03:55]dirname=/storage/ofd_packets [10:03:55]CheckFolder done [10:03:55]ProducePacketName [10:03:55]name=ofd_packets/00201824 [10:03:55]NVStorageSaveData ofd_packets/00201824 [10:03:55]File name is /storage/ofd_packets/00201824 [10:03:55]Write 301 bytes [10:03:55]NVStorageSaveData done [10:03:55]OFDSenderStorePacket done [10:03:55]KKMCreateOFDPacket done [10:03:55]NVStorageSaveData kkm_last_timestamp [10:03:55]File name is /storage/kkm_last_timestamp [10:03:55]Write 4 bytes [10:03:55]NVStorageSaveData done [10:03:55]ExternCall_PrintAddStr [10:03:55]wPrintStart [10:03:55]Write to MH i2c: 01 00 00 5F 28 87 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: 01 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: 01 07 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: 01 07 00 5F 28 00 00 00 00 00 FF 0F 9C [10:03:55]RasterBufferAndPrint [10:03:55]line Счет N : (1)449583 [10:03:55]line ИНН: 02508201610067 [10:03:55]line Контрольно-Кассовый Чек [10:03:55]line ПРОДАЖА [10:03:55]line ТРК (МРК, ГНК) : 51 [10:03:55]line Товар: 2710124500 [10:03:55]line Аи-95-К-3 [10:03:55]line 12.130 * 74.20 [10:03:55]line = 900.05 [10:03:55]line НДС 12% НСП 1% [10:03:55]line > о реализуемом товаре [10:03:55]line ОКРУГЛЕНИЕ: -0.05 [10:03:55]line ИТОГО: 900.00 [10:03:55]line Внесено: 900.00 [10:03:55]line СДАЧА: 0.00 [10:03:55]line НСП 1% : 7.96 [10:03:55]line НДС 12% : 95.58 [10:03:55]line Наличными: 900.00 [10:03:55]line Безнал.: 0.00 [10:03:55]line Место: АЗС № 171 "Партнер Нефть" [10:03:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:03:55]line СНО: Общий режим [10:03:55]line Чек 116 27.10.2024 10:03 [10:03:55]line Смена: 544 ФФД: 1.0 [10:03:55]line ЗНМ: 0300000109 [10:03:55]line РНМ: 0000000000091777 [10:03:55]line Версия ККМ: 001 [10:03:55]line ФМ: 0000000000871756 [10:03:55]line ФД: 201824 [10:03:55]line ФПД: 28508072566429 [10:03:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100358&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201824&fm=28508072566429&tin=02508201610067®Number=0000000000091777&sum=90000 [10:03:56]OFD Sender: Processing packet 201824 [packets to send 112, broken 111] [10:03:56]ProducePacketName [10:03:56]name=ofd_packets/00201824 [10:03:56]OFD Sender: To server: pG, [10:03:56]CommunicateWithHost lk.salyk.kg:30040 [10:03:56]ConnectInit lk.salyk.kg [10:03:56]written 0, free lines is 4095 [10:03:56]Connected sock=10 [10:03:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 03 FC 07 01 1C 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 0E 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 14 03 00 35 04 06 00 19 ED 8D 89 DE 9D 1F 3A FD E8 AB 1D C7 BE [10:03:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3B DA 47 00 72 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 14 03 00 F4 03 04 00 B3 BB 1D 67 B6 04 01 00 00 83 89 D3 5C E5 7A B7 8E [10:03:56]CommunicateWithHost err = 0 [10:03:56]CheckOFDResponse [10:03:56]1017 (14) - 77093643461234 [10:03:56]1041 (16) - 0000000000871756 [10:03:56]1040 (4) - 201824 [10:03:56]1012 (4) - 27.10.2024 04:04 [10:03:56]1206 (1) - 0 [10:03:56]OFD Sender: Remove packet 201824 [10:03:56]ProducePacketName [10:03:56]name=ofd_packets/00201824 [10:03:56]NVStorageDeleteData [10:03:56]Write to MH i2c: 01 00 00 8A 28 B2 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: 01 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: 01 07 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: 01 07 00 8A 28 00 00 00 00 00 8C 0C 51 [10:03:56]RasterBufferAndPrint [10:03:56]line [10:03:56]line [10:03:56]line [10:03:56]line [10:03:56]line [10:03:56]written 0, free lines is 3218 [10:03:56]MH_Cut [10:03:56]Write to MH i2c: D1 01 00 91 28 01 8B [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: D1 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: D1 01 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: D1 01 00 91 28 00 8A [10:03:56]Write to MH i2c: 01 00 00 92 28 BA [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:57]OFD Sender: No OFD packet to send [10:03:57]*** Cut start [10:03:57]*** Purtial cut [10:03:57]*** Stage 1: CUTSNS_PIN = 1 [10:03:57]Read from MH i2c: 01 [10:03:57]MH_I2C_Read... [10:03:57]*** Stop cut motor [10:03:57]*** Cut end [10:03:57]Read from MH i2c: 01 07 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: 01 07 00 92 28 00 00 00 00 00 FF 0F CF [10:03:57]process_action close_receipt done [10:03:57]requested_data is exist [10:03:57]produce_requested_data [10:03:57]requested_item fm.sn is exist - process it [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 11 00 00 [10:03:57]Write to MH i2c: E2 08 00 93 28 80 11 00 00 00 00 00 00 35 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 17 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 17 00 93 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8A [10:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:03:57]wFMCommunicate OK [10:03:57]requested_item fd.num is exist - process it [10:03:57]SAM_PROTO_GetFieldsCounters [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 13 00 00 [10:03:57]Write to MH i2c: E2 08 00 94 28 80 13 00 00 00 00 00 00 38 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 62 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 62 00 94 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 60 14 03 00 0E 04 04 00 20 02 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 56 [10:03:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 60 14 03 00 0E 04 04 00 20 02 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 [10:03:58]wFMCommunicate OK [10:03:58]SAM_PROTO_GetFieldsCounters done [10:03:58]requested_item shift.num is exist - process it [10:03:58]requested_item shift.opened is exist - process it [10:03:58]req_shift_opened [10:03:58]FM_GetShiftState [10:03:58]SAM_PROTO_GetShiftState [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 13 01 00 [10:03:58]Write to MH i2c: E2 08 00 95 28 80 13 01 00 00 00 00 00 3A [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0E 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0E 00 95 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3C [10:03:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:03:58]wFMCommunicate OK [10:03:58]SAM_PROTO_GetShiftState done [10:03:58]FM_GetShiftState done [10:03:58]req_shift_opened done [10:03:58]requested_item shift.open_date is exist - process it [10:03:58]req_shift_open_date [10:03:58]req_shift_open_date done [10:03:58]produce_requested_data done [10:03:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201824,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:03:58]process_action_free close_receipt [10:03:58]json_value_free [10:03:58]json_value_free done [10:03:58]process_json_proto returns [10:03:58]Send response to host [10:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201824,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:03:58]free response buf [10:03:58]execute_script done [10:03:58]execute_script returns [10:03:58]free content buf [10:03:58]Sock 9.Close socket [10:03:58]Sock 9.Thread stoped [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:54]accept exits with 8 [10:04:54]New connection [10:04:54]New thread 3067080036 created [10:04:54]Thread 3066936676 joined [10:04:54]Waiting for new connection... [10:04:54] Sock 8.Parse request [10:04:54]Sock 8.Check first char [10:04:54]Sock 8.First char is OK [10:04:54]request: POST /json_proto HTTP/1.0 [10:04:54]Method: POST [10:04:54]URL: /json_proto [10:04:54]Method is POST - this is cgi request [10:04:54]url: /json_proto [10:04:54]query_string will be loaded in cgi processing [10:04:54]execute_cgi json_proto POST (null) [10:04:54]execute_cgi path=json_proto method=POST [10:04:54]POST find Content-Length [10:04:54]Host: 172.17.63.195:8080 [10:04:54]Content-Length: 679 [10:04:54]Content-Type: application/json [10:04:54] [10:04:54]POST finish read [10:04:54]Found Content-Length = 679 [10:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:04:54]execute_script... [10:04: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)449584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:04:54]POST & json_proto [10:04:54]process_json_proto [10:04:54]json parsed OK: [10:04:54]protocol is kg_v1.0 [10:04:54]action value=close_receipt [10:04:54]process_action close_receipt [10:04:54]cmd_close_receipt [10:04:54]MH_GetDate [10:04:54]Write to MH i2c: F0 00 00 96 28 AD [10:04:54]Write i2c OK [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: F0 [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: F0 09 00 [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: F0 09 00 96 28 00 4A 10 1E 67 68 46 19 67 C3 [10:04:54]GetLastDocTimeStamp 1730023438 [10:04:54]current date 1730023498 [10:04:54]FM_GetShiftState [10:04:54]SAM_PROTO_GetShiftState [10:04:54]wFMCommunicate request_size=4 [10:04:54]MH_SAM_APDU [10:04:54]CAPDU: 80 13 01 00 [10:04:54]Write to MH i2c: E2 08 00 97 28 80 13 01 00 00 00 00 00 3C [10:04:54]Write i2c OK [10:04:54]MH_I2C_Read... [10:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:54]Read from MH i2c: E2 [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: E2 0E 00 [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: E2 0E 00 97 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3E [10:04:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:04:54]wFMCommunicate OK [10:04:54]SAM_PROTO_GetShiftState done [10:04:54]FM_GetShiftState done [10:04:54]opened in 1729987312 [10:04:54]opened+sec_in_day 1730073712 [10:04:54]quantity*price = 100050 [10:04:54]sum+1 = 100052 [10:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 117 27.10.2024 10:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201825 ФПД: 114071578829472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100458&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201825&fm=114071578829472&tin=02508201610067®Number=0000000000091777&sum=100000 [10:04:55]StoreToDocumentArchive [10:04:55]shift 544 fd 201825 [10:04:55]save to /storage/0544/doc_00201825 [10:04:55]save last doc name /storage/0544/doc_00201825 to /storage/kkm_last_doc_name [10:04:55]save OK [10:04:55]Clear old archive folders... [10:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:55]tlvbuf is 00165000 [10:04:55]SAM_PROTO_ClearQueue [10:04:55]wFMCommunicate request_size=4 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 09 00 00 [10:04:55]Write to MH i2c: E2 08 00 A4 28 80 09 00 00 00 00 00 00 3E [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [10:04:55]RAPDU: 90 00 [10:04:55]wFMCommunicate OK [10:04:55]SAM_PROTO_ClearQueue done [10:04:55]KKMCreateOFDPacket [10:04:55]OFDProtocolAddRootSTLVToBuf [10:04:55]FM_MakeSignedData [10:04:55]FM_MakeSignedData [10:04:55]SAM_PROTO_SignData [10:04:55]wFMCommunicate request_size=4 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 0D 01 02 [10:04:55]Write to MH i2c: E2 08 00 A5 28 80 0D 01 02 00 00 00 00 46 [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 A5 28 00 90 00 41 [10:04:55]RAPDU: 90 00 [10:04:55]wFMCommunicate OK [10:04:55]wFMCommunicate request_size=255 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 75 00 00 00 F4 03 04 00 4A 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 14 03 00 35 04 06 00 67 BF 5B EF [10:04:55]Write to MH i2c: E2 02 01 A6 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 32 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 75 00 00 00 F4 03 04 00 4A 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 14 03 00 35 04 06 00 67 BF 5B EF 00 00 2E [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 A6 28 00 90 00 42 [10:04:56]RAPDU: 90 00 [10:04:56]wFMCommunicate OK [10:04:56]wFMCommunicate request_size=7 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 0D 02 02 02 62 A0 [10:04:56]Write to MH i2c: E2 0A 00 A7 28 80 0D 02 02 02 00 62 A0 00 00 4F [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [10:04:56]RAPDU: 90 00 [10:04:56]wFMCommunicate OK [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 0D 03 02 [10:04:56]Write to MH i2c: E2 08 00 A8 28 80 0D 03 02 00 00 00 00 4B [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0B 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0B 00 A8 28 00 3D A4 04 3E 10 90 F7 88 90 00 8E [10:04:56]RAPDU: 3D A4 04 3E 10 90 F7 88 90 00 [10:04:56]wFMCommunicate OK [10:04:56]SAM_PROTO_SignData done [10:04:56]FM_MakeSignedData done [10:04:56]CreateOFDProtocolMessage [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 11 00 00 [10:04:56]Write to MH i2c: E2 08 00 A9 28 80 11 00 00 00 00 00 00 4B [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 17 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 17 00 A9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A0 [10:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:04:56]wFMCommunicate OK [10:04:56]CreateOFDProtocolMessage done [10:04:56]OFDSenderStorePacket 201825 [10:04:56]StoreOFDPacket docnum=201825 [10:04:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0A 71 04 01 B4 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 32 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 75 00 00 00 F4 03 04 00 4A 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 14 03 00 35 04 06 00 67 BF 5B EF 62 A0 3D A4 04 3E 10 90 F7 88 [10:04:56]CheckFolder [10:04:56]dirname=/storage/ofd_packets [10:04:56]CheckFolder done [10:04:56]ProducePacketName [10:04:56]name=ofd_packets/00201825 [10:04:56]NVStorageSaveData ofd_packets/00201825 [10:04:56]File name is /storage/ofd_packets/00201825 [10:04:56]Write 298 bytes [10:04:56]NVStorageSaveData done [10:04:56]OFDSenderStorePacket done [10:04:56]KKMCreateOFDPacket done [10:04:56]NVStorageSaveData kkm_last_timestamp [10:04:56]File name is /storage/kkm_last_timestamp [10:04:56]Write 4 bytes [10:04:56]NVStorageSaveData done [10:04:56]ExternCall_PrintAddStr [10:04:56]wPrintStart [10:04:56]Write to MH i2c: 01 00 00 AA 28 D2 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: 01 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: 01 07 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: 01 07 00 AA 28 00 00 00 00 00 FF 0F E7 [10:04:56]RasterBufferAndPrint [10:04:56]line Счет N : (1)449584 [10:04:56]line ИНН: 02508201610067 [10:04:56]line Контрольно-Кассовый Чек [10:04:56]line ПРОДАЖА [10:04:56]line ТРК (МРК, ГНК) : 33 [10:04:56]line Товар: 2710194210 [10:04:56]line ДТ-К-2 [10:04:56]line 13.130 * 76.20 [10:04:56]line = 1000.51 [10:04:56]line НДС 12% НСП 1% [10:04:56]line > о реализуемом товаре [10:04:56]line ОКРУГЛЕНИЕ: -0.51 [10:04:56]line ИТОГО: 1000.00 [10:04:56]line Внесено: 1000.00 [10:04:56]line СДАЧА: 0.00 [10:04:56]line НСП 1% : 8.85 [10:04:56]line НДС 12% : 106.25 [10:04:56]line Наличными: 1000.00 [10:04:56]line Безнал.: 0.00 [10:04:56]line Место: АЗС № 171 "Партнер Нефть" [10:04:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:04:56]line СНО: Общий режим [10:04:56]line Чек 117 27.10.2024 10:04 [10:04:56]line Смена: 544 ФФД: 1.0 [10:04:56]line ЗНМ: 0300000109 [10:04:56]line РНМ: 0000000000091777 [10:04:56]line Версия ККМ: 001 [10:04:56]line ФМ: 0000000000871756 [10:04:56]line ФД: 201825 [10:04:56]line ФПД: 114071578829472 [10:04:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100458&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201825&fm=114071578829472&tin=02508201610067®Number=0000000000091777&sum=100000 [10:04:56]OFD Sender: Processing packet 201825 [packets to send 112, broken 111] [10:04:56]ProducePacketName [10:04:56]name=ofd_packets/00201825 [10:04:56]OFD Sender: To server: pG, [10:04:56]CommunicateWithHost lk.salyk.kg:30040 [10:04:56]ConnectInit lk.salyk.kg [10:04:56]written 0, free lines is 4095 [10:04:56]Connected sock=10 [10:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0A 71 04 01 B4 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 32 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 75 00 00 00 F4 03 04 00 4A 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 14 03 00 35 04 06 00 67 BF 5B EF 62 A0 3D A4 04 3E 10 90 F7 88 [10:04:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4B 77 47 00 7D 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 14 03 00 F4 03 04 00 F0 BB 1D 67 B6 04 01 00 00 83 4A 0E B5 24 20 EC 36 [10:04:57]CommunicateWithHost err = 0 [10:04:57]CheckOFDResponse [10:04:57]1017 (14) - 77093643461234 [10:04:57]1041 (16) - 0000000000871756 [10:04:57]1040 (4) - 201825 [10:04:57]1012 (4) - 27.10.2024 04:05 [10:04:57]1206 (1) - 0 [10:04:57]OFD Sender: Remove packet 201825 [10:04:57]ProducePacketName [10:04:57]name=ofd_packets/00201825 [10:04:57]NVStorageDeleteData [10:04:57]Write to MH i2c: 01 00 00 D5 28 FD [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 D5 28 00 00 00 00 00 8F 0C 9F [10:04:57]RasterBufferAndPrint [10:04:57]line [10:04:57]line [10:04:57]line [10:04:57]line [10:04:57]line [10:04:57]written 0, free lines is 3218 [10:04:57]MH_Cut [10:04:57]Write to MH i2c: D1 01 00 DC 28 01 D6 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: D1 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: D1 01 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: D1 01 00 DC 28 00 D5 [10:04:57]Write to MH i2c: 01 00 00 DD 28 05 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]OFD Sender: No OFD packet to send [10:04:58]*** Cut start [10:04:58]*** Purtial cut [10:04:58]*** Stage 1: CUTSNS_PIN = 1 [10:04:58]Read from MH i2c: 01 [10:04:58]MH_I2C_Read... [10:04:58]*** Stop cut motor [10:04:58]*** Cut end [10:04:58]Read from MH i2c: 01 07 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 DD 28 00 00 00 00 00 FF 0F 1A [10:04:58]process_action close_receipt done [10:04:58]requested_data is exist [10:04:58]produce_requested_data [10:04:58]requested_item fm.sn is exist - process it [10:04:58]wFMCommunicate request_size=4 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 11 00 00 [10:04:58]Write to MH i2c: E2 08 00 DE 28 80 11 00 00 00 00 00 00 80 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 17 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 17 00 DE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D5 [10:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:04:58]wFMCommunicate OK [10:04:58]requested_item fd.num is exist - process it [10:04:58]SAM_PROTO_GetFieldsCounters [10:04:58]wFMCommunicate request_size=4 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 13 00 00 [10:04:58]Write to MH i2c: E2 08 00 DF 28 80 13 00 00 00 00 00 00 83 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 62 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 62 00 DF 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 61 14 03 00 0E 04 04 00 20 02 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 A5 [10:04:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 61 14 03 00 0E 04 04 00 20 02 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 [10:04:58]wFMCommunicate OK [10:04:58]SAM_PROTO_GetFieldsCounters done [10:04:58]requested_item shift.num is exist - process it [10:04:58]requested_item shift.opened is exist - process it [10:04:58]req_shift_opened [10:04:58]FM_GetShiftState [10:04:58]SAM_PROTO_GetShiftState [10:04:58]wFMCommunicate request_size=4 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 13 01 00 [10:04:58]Write to MH i2c: E2 08 00 E0 28 80 13 01 00 00 00 00 00 85 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:58]Read from MH i2c: E2 0E 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 0E 00 E0 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 87 [10:04:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:04:58]wFMCommunicate OK [10:04:58]SAM_PROTO_GetShiftState done [10:04:58]FM_GetShiftState done [10:04:58]req_shift_opened done [10:04:58]requested_item shift.open_date is exist - process it [10:04:58]req_shift_open_date [10:04:58]req_shift_open_date done [10:04:58]produce_requested_data done [10:04:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201825,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:04:58]process_action_free close_receipt [10:04:58]json_value_free [10:04:58]json_value_free done [10:04:58]process_json_proto returns [10:04:58]Send response to host [10:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201825,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:04:58]free response buf [10:04:58]execute_script done [10:04:58]execute_script returns [10:04:58]free content buf [10:04:58]Sock 8.Close socket [10:04:58]Sock 8.Thread stoped [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:37]accept exits with 9 [10:05:37]New connection [10:05:37]New thread 3066936676 created [10:05:37]Thread 3067080036 joined [10:05:37]Waiting for new connection... [10:05:37] Sock 9.Parse request [10:05:37]Sock 9.Check first char [10:05:37]Sock 9.First char is OK [10:05:37]request: POST /json_proto HTTP/1.0 [10:05:37]Method: POST [10:05:37]URL: /json_proto [10:05:37]Method is POST - this is cgi request [10:05:37]url: /json_proto [10:05:37]query_string will be loaded in cgi processing [10:05:37]execute_cgi json_proto POST (null) [10:05:37]execute_cgi path=json_proto method=POST [10:05:37]POST find Content-Length [10:05:37]Host: 172.17.63.195:8080 [10:05:37]Content-Length: 677 [10:05:37]Content-Type: application/json [10:05:37] [10:05:37]POST finish read [10:05:37]Found Content-Length = 677 [10:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:05:37]execute_script... [10:05:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:05:37]POST & json_proto [10:05:37]process_json_proto [10:05:37]json parsed OK: [10:05:37]protocol is kg_v1.0 [10:05:37]action value=close_receipt [10:05:37]process_action close_receipt [10:05:37]cmd_close_receipt [10:05:37]MH_GetDate [10:05:37]Write to MH i2c: F0 00 00 E1 28 F8 [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 09 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: F0 09 00 E1 28 00 75 10 1E 67 68 46 19 67 39 [10:05:37]GetLastDocTimeStamp 1730023498 [10:05:37]current date 1730023541 [10:05:37]FM_GetShiftState [10:05:37]SAM_PROTO_GetShiftState [10:05:37]wFMCommunicate request_size=4 [10:05:37]MH_SAM_APDU [10:05:37]CAPDU: 80 13 01 00 [10:05:37]Write to MH i2c: E2 08 00 E2 28 80 13 01 00 00 00 00 00 87 [10:05:37]Write i2c OK [10:05:37]MH_I2C_Read... [10:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:37]Read from MH i2c: E2 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: E2 0E 00 [10:05:37]MH_I2C_Read... [10:05:37]Read from MH i2c: E2 0E 00 E2 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 89 [10:05:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:05:37]wFMCommunicate OK [10:05:37]SAM_PROTO_GetShiftState done [10:05:37]FM_GetShiftState done [10:05:37]opened in 1729987312 [10:05:37]opened+sec_in_day 1730073712 [10:05:37]quantity*price = 20003 [10:05:37]sum+1 = 20004 [10:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 118 27.10.2024 10:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201826 ФПД: 101933921536233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100542&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201826&fm=101933921536233&tin=02508201610067®Number=0000000000091777&sum=20000 [10:05:39]StoreToDocumentArchive [10:05:39]shift 544 fd 201826 [10:05:39]save to /storage/0544/doc_00201826 [10:05:39]save last doc name /storage/0544/doc_00201826 to /storage/kkm_last_doc_name [10:05:39]save OK [10:05:39]Clear old archive folders... [10:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:39]tlvbuf is 000A3DA0 [10:05:39]SAM_PROTO_ClearQueue [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 09 00 00 [10:05:39]Write to MH i2c: E2 08 00 EF 28 80 09 00 00 00 00 00 00 89 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [10:05:39]RAPDU: 90 00 [10:05:39]wFMCommunicate OK [10:05:39]SAM_PROTO_ClearQueue done [10:05:39]KKMCreateOFDPacket [10:05:39]OFDProtocolAddRootSTLVToBuf [10:05:39]FM_MakeSignedData [10:05:39]FM_MakeSignedData [10:05:39]SAM_PROTO_SignData [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 0D 01 02 [10:05:39]Write to MH i2c: E2 08 00 F0 28 80 0D 01 02 00 00 00 00 91 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 F0 28 00 90 00 8C [10:05:39]RAPDU: 90 00 [10:05:39]wFMCommunicate OK [10:05:39]wFMCommunicate request_size=255 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 76 00 00 00 F4 03 04 00 76 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 14 03 00 35 04 06 00 5C [10:05:39]Write to MH i2c: E2 02 01 F1 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 32 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 76 00 00 00 F4 03 04 00 76 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 14 03 00 35 04 06 00 5C 00 00 5F [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [10:05:39]RAPDU: 90 00 [10:05:39]wFMCommunicate OK [10:05:39]wFMCommunicate request_size=10 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 0D 02 02 05 B5 57 2F 08 E9 [10:05:39]Write to MH i2c: E2 0D 00 F2 28 80 0D 02 02 05 00 B5 57 2F 08 E9 00 00 CA [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [10:05:39]RAPDU: 90 00 [10:05:39]wFMCommunicate OK [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 0D 03 02 [10:05:39]Write to MH i2c: E2 08 00 F3 28 80 0D 03 02 00 00 00 00 96 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 0B 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 0B 00 F3 28 00 E5 5D F4 AA 9C 74 53 13 90 00 ED [10:05:39]RAPDU: E5 5D F4 AA 9C 74 53 13 90 00 [10:05:39]wFMCommunicate OK [10:05:39]SAM_PROTO_SignData done [10:05:39]FM_MakeSignedData done [10:05:39]CreateOFDProtocolMessage [10:05:39]wFMCommunicate request_size=4 [10:05:39]MH_SAM_APDU [10:05:39]CAPDU: 80 11 00 00 [10:05:39]Write to MH i2c: E2 08 00 F4 28 80 11 00 00 00 00 00 00 96 [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:39]Read from MH i2c: E2 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 17 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: E2 17 00 F4 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [10:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:05:39]wFMCommunicate OK [10:05:39]CreateOFDProtocolMessage done [10:05:39]OFDSenderStorePacket 201826 [10:05:39]StoreOFDPacket docnum=201826 [10:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 40 5B 07 01 FC 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 76 00 00 00 F4 03 04 00 76 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 14 03 00 35 04 06 00 5C B5 57 2F 08 E9 E5 5D F4 AA 9C 74 53 13 [10:05:39]CheckFolder [10:05:39]dirname=/storage/ofd_packets [10:05:39]CheckFolder done [10:05:39]ProducePacketName [10:05:39]name=ofd_packets/00201826 [10:05:39]NVStorageSaveData ofd_packets/00201826 [10:05:39]File name is /storage/ofd_packets/00201826 [10:05:39]Write 301 bytes [10:05:39]NVStorageSaveData done [10:05:39]OFDSenderStorePacket done [10:05:39]KKMCreateOFDPacket done [10:05:39]NVStorageSaveData kkm_last_timestamp [10:05:39]File name is /storage/kkm_last_timestamp [10:05:39]Write 4 bytes [10:05:39]NVStorageSaveData done [10:05:39]ExternCall_PrintAddStr [10:05:39]wPrintStart [10:05:39]Write to MH i2c: 01 00 00 F5 28 1D [10:05:39]Write i2c OK [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 07 00 [10:05:39]MH_I2C_Read... [10:05:39]Read from MH i2c: 01 07 00 F5 28 00 00 00 00 00 FF 0F 32 [10:05:39]RasterBufferAndPrint [10:05:39]line Счет N : (1)449585 [10:05:39]line ИНН: 02508201610067 [10:05:39]line Контрольно-Кассовый Чек [10:05:39]line ПРОДАЖА [10:05:39]line ТРК (МРК, ГНК) : 41 [10:05:39]line Товар: 2710124130 [10:05:39]line Аи-92-К-2 [10:05:39]line 2.990 * 66.90 [10:05:39]line = 200.03 [10:05:39]line НДС 12% НСП 1% [10:05:39]line > о реализуемом товаре [10:05:39]line ОКРУГЛЕНИЕ: -0.03 [10:05:39]line ИТОГО: 200.00 [10:05:39]line Внесено: 200.00 [10:05:39]line СДАЧА: 0.00 [10:05:39]line НСП 1% : 1.77 [10:05:39]line НДС 12% : 21.24 [10:05:39]line Наличными: 200.00 [10:05:39]line Безнал.: 0.00 [10:05:39]line Место: АЗС № 171 "Партнер Нефть" [10:05:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:05:39]line СНО: Общий режим [10:05:39]line Чек 118 27.10.2024 10:05 [10:05:39]line Смена: 544 ФФД: 1.0 [10:05:39]line ЗНМ: 0300000109 [10:05:39]line РНМ: 0000000000091777 [10:05:39]line Версия ККМ: 001 [10:05:39]line ФМ: 0000000000871756 [10:05:39]line ФД: 201826 [10:05:39]line ФПД: 101933921536233 [10:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100542&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201826&fm=101933921536233&tin=02508201610067®Number=0000000000091777&sum=20000 [10:05:39]OFD Sender: Processing packet 201826 [packets to send 112, broken 111] [10:05:39]ProducePacketName [10:05:39]name=ofd_packets/00201826 [10:05:39]OFD Sender: To server: pG, [10:05:39]CommunicateWithHost lk.salyk.kg:30040 [10:05:39]ConnectInit lk.salyk.kg [10:05:39]written 0, free lines is 4095 [10:05:40]Connected sock=10 [10:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 40 5B 07 01 FC 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 76 00 00 00 F4 03 04 00 76 10 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 14 03 00 35 04 06 00 5C B5 57 2F 08 E9 E5 5D F4 AA 9C 74 53 13 [10:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 22 90 47 00 B8 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 14 03 00 F4 03 04 00 1B BC 1D 67 B6 04 01 00 00 1A C1 8A 5F F9 5F F6 24 [10:05:40]CommunicateWithHost err = 0 [10:05:40]CheckOFDResponse [10:05:40]1017 (14) - 77093643461234 [10:05:40]1041 (16) - 0000000000871756 [10:05:40]1040 (4) - 201826 [10:05:40]1012 (4) - 27.10.2024 04:05 [10:05:40]1206 (1) - 0 [10:05:40]OFD Sender: Remove packet 201826 [10:05:40]ProducePacketName [10:05:40]name=ofd_packets/00201826 [10:05:40]NVStorageDeleteData [10:05:40]Write to MH i2c: 01 00 00 20 29 49 [10:05:40]Write i2c OK [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: 01 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: 01 07 00 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: 01 07 00 20 29 00 00 00 00 00 95 0C F1 [10:05:40]RasterBufferAndPrint [10:05:40]line [10:05:40]line [10:05:40]line [10:05:40]line [10:05:40]line [10:05:40]written 0, free lines is 3227 [10:05:40]MH_Cut [10:05:40]Write to MH i2c: D1 01 00 27 29 01 22 [10:05:40]Write i2c OK [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: D1 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: D1 01 00 [10:05:40]MH_I2C_Read... [10:05:40]Read from MH i2c: D1 01 00 27 29 00 21 [10:05:40]Write to MH i2c: 01 00 00 28 29 51 [10:05:40]Write i2c OK [10:05:40]MH_I2C_Read... [10:05:40]OFD Sender: No OFD packet to send [10:05:41]*** Cut start [10:05:41]*** Purtial cut [10:05:41]*** Stage 1: CUTSNS_PIN = 1 [10:05:41]Read from MH i2c: 01 [10:05:41]MH_I2C_Read... [10:05:41]*** Stop cut motor [10:05:41]*** Cut end [10:05:41]Read from MH i2c: 01 07 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: 01 07 00 28 29 00 00 00 00 00 FF 0F 66 [10:05:41]process_action close_receipt done [10:05:41]requested_data is exist [10:05:41]produce_requested_data [10:05:41]requested_item fm.sn is exist - process it [10:05:41]wFMCommunicate request_size=4 [10:05:41]MH_SAM_APDU [10:05:41]CAPDU: 80 11 00 00 [10:05:41]Write to MH i2c: E2 08 00 29 29 80 11 00 00 00 00 00 00 CC [10:05:41]Write i2c OK [10:05:41]MH_I2C_Read... [10:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:41]Read from MH i2c: E2 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 17 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 17 00 29 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [10:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:05:41]wFMCommunicate OK [10:05:41]requested_item fd.num is exist - process it [10:05:41]SAM_PROTO_GetFieldsCounters [10:05:41]wFMCommunicate request_size=4 [10:05:41]MH_SAM_APDU [10:05:41]CAPDU: 80 13 00 00 [10:05:41]Write to MH i2c: E2 08 00 2A 29 80 13 00 00 00 00 00 00 CF [10:05:41]Write i2c OK [10:05:41]MH_I2C_Read... [10:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:41]Read from MH i2c: E2 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 62 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 62 00 2A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 62 14 03 00 0E 04 04 00 20 02 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 F5 [10:05:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 62 14 03 00 0E 04 04 00 20 02 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 [10:05:41]wFMCommunicate OK [10:05:41]SAM_PROTO_GetFieldsCounters done [10:05:41]requested_item shift.num is exist - process it [10:05:41]requested_item shift.opened is exist - process it [10:05:41]req_shift_opened [10:05:41]FM_GetShiftState [10:05:41]SAM_PROTO_GetShiftState [10:05:41]wFMCommunicate request_size=4 [10:05:41]MH_SAM_APDU [10:05:41]CAPDU: 80 13 01 00 [10:05:41]Write to MH i2c: E2 08 00 2B 29 80 13 01 00 00 00 00 00 D1 [10:05:41]Write i2c OK [10:05:41]MH_I2C_Read... [10:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:41]Read from MH i2c: E2 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 0E 00 [10:05:41]MH_I2C_Read... [10:05:41]Read from MH i2c: E2 0E 00 2B 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D3 [10:05:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:05:41]wFMCommunicate OK [10:05:41]SAM_PROTO_GetShiftState done [10:05:41]FM_GetShiftState done [10:05:41]req_shift_opened done [10:05:41]requested_item shift.open_date is exist - process it [10:05:41]req_shift_open_date [10:05:41]req_shift_open_date done [10:05:41]produce_requested_data done [10:05:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201826,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:05:41]process_action_free close_receipt [10:05:41]json_value_free [10:05:41]json_value_free done [10:05:41]process_json_proto returns [10:05:41]Send response to host [10:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201826,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:05:41]free response buf [10:05:41]execute_script done [10:05:41]execute_script returns [10:05:41]free content buf [10:05:41]Sock 9.Close socket [10:05:41]Sock 9.Thread stoped [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:06]accept exits with 8 [10:08:06]New connection [10:08:06]New thread 3067080036 created [10:08:06]Thread 3066936676 joined [10:08:06]Waiting for new connection... [10:08:06] Sock 8.Parse request [10:08:06]Sock 8.Check first char [10:08:06]Sock 8.First char is OK [10:08:06]request: POST /json_proto HTTP/1.0 [10:08:06]Method: POST [10:08:06]URL: /json_proto [10:08:06]Method is POST - this is cgi request [10:08:06]url: /json_proto [10:08:06]query_string will be loaded in cgi processing [10:08:06]execute_cgi json_proto POST (null) [10:08:06]execute_cgi path=json_proto method=POST [10:08:06]POST find Content-Length [10:08:06]Host: 172.17.63.195:8080 [10:08:06]Content-Length: 679 [10:08:06]Content-Type: application/json [10:08:06] [10:08:06]POST finish read [10:08:06]Found Content-Length = 679 [10:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:08:06]execute_script... [10:08:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:08:06]POST & json_proto [10:08:06]process_json_proto [10:08:06]json parsed OK: [10:08:06]protocol is kg_v1.0 [10:08:06]action value=close_receipt [10:08:06]process_action close_receipt [10:08:06]cmd_close_receipt [10:08:06]MH_GetDate [10:08:06]Write to MH i2c: F0 00 00 2C 29 44 [10:08:06]Write i2c OK [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: F0 [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: F0 09 00 [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: F0 09 00 2C 29 00 0A 11 1E 67 68 46 19 67 1B [10:08:06]GetLastDocTimeStamp 1730023542 [10:08:06]current date 1730023690 [10:08:06]FM_GetShiftState [10:08:06]SAM_PROTO_GetShiftState [10:08:06]wFMCommunicate request_size=4 [10:08:06]MH_SAM_APDU [10:08:06]CAPDU: 80 13 01 00 [10:08:06]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [10:08:06]Write i2c OK [10:08:06]MH_I2C_Read... [10:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:06]Read from MH i2c: E2 [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: E2 0E 00 [10:08:06]MH_I2C_Read... [10:08:06]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D5 [10:08:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:08:06]wFMCommunicate OK [10:08:06]SAM_PROTO_GetShiftState done [10:08:06]FM_GetShiftState done [10:08:06]opened in 1729987312 [10:08:06]opened+sec_in_day 1730073712 [10:08:06]quantity*price = 100050 [10:08:06]sum+1 = 100052 [10:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 119 27.10.2024 10:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201827 ФПД: 187068094341416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100810&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201827&fm=187068094341416&tin=02508201610067®Number=0000000000091777&sum=100000 [10:08:07]StoreToDocumentArchive [10:08:07]shift 544 fd 201827 [10:08:07]save to /storage/0544/doc_00201827 [10:08:07]save last doc name /storage/0544/doc_00201827 to /storage/kkm_last_doc_name [10:08:07]save OK [10:08:07]Clear old archive folders... [10:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:07]tlvbuf is 001655D0 [10:08:07]SAM_PROTO_ClearQueue [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 09 00 00 [10:08:07]Write to MH i2c: E2 08 00 3A 29 80 09 00 00 00 00 00 00 D5 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 3A 29 00 90 00 D7 [10:08:07]RAPDU: 90 00 [10:08:07]wFMCommunicate OK [10:08:07]SAM_PROTO_ClearQueue done [10:08:07]KKMCreateOFDPacket [10:08:07]OFDProtocolAddRootSTLVToBuf [10:08:07]FM_MakeSignedData [10:08:07]FM_MakeSignedData [10:08:07]SAM_PROTO_SignData [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 0D 01 02 [10:08:07]Write to MH i2c: E2 08 00 3B 29 80 0D 01 02 00 00 00 00 DD [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [10:08:07]RAPDU: 90 00 [10:08:07]wFMCommunicate OK [10:08:07]wFMCommunicate request_size=255 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 77 00 00 00 F4 03 04 00 0A 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 14 03 00 35 04 06 00 AA 23 2F 4F [10:08:07]Write to MH i2c: E2 02 01 3C 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 32 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 77 00 00 00 F4 03 04 00 0A 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 14 03 00 35 04 06 00 AA 23 2F 4F 00 00 65 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [10:08:07]RAPDU: 90 00 [10:08:07]wFMCommunicate OK [10:08:07]wFMCommunicate request_size=7 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 0D 02 02 02 E1 28 [10:08:07]Write to MH i2c: E2 0A 00 3D 29 80 0D 02 02 02 00 E1 28 00 00 ED [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [10:08:07]RAPDU: 90 00 [10:08:07]wFMCommunicate OK [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 0D 03 02 [10:08:07]Write to MH i2c: E2 08 00 3E 29 80 0D 03 02 00 00 00 00 E2 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 0B 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 0B 00 3E 29 00 21 3E DA DE ED F5 FF 91 90 00 6C [10:08:07]RAPDU: 21 3E DA DE ED F5 FF 91 90 00 [10:08:07]wFMCommunicate OK [10:08:07]SAM_PROTO_SignData done [10:08:07]FM_MakeSignedData done [10:08:07]CreateOFDProtocolMessage [10:08:07]wFMCommunicate request_size=4 [10:08:07]MH_SAM_APDU [10:08:07]CAPDU: 80 11 00 00 [10:08:07]Write to MH i2c: E2 08 00 3F 29 80 11 00 00 00 00 00 00 E2 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:07]Read from MH i2c: E2 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 17 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: E2 17 00 3F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 37 [10:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:08:07]wFMCommunicate OK [10:08:07]CreateOFDProtocolMessage done [10:08:07]OFDSenderStorePacket 201827 [10:08:07]StoreOFDPacket docnum=201827 [10:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 66 6F 04 01 87 8C 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 32 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 77 00 00 00 F4 03 04 00 0A 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 14 03 00 35 04 06 00 AA 23 2F 4F E1 28 21 3E DA DE ED F5 FF 91 [10:08:07]CheckFolder [10:08:07]dirname=/storage/ofd_packets [10:08:07]CheckFolder done [10:08:07]ProducePacketName [10:08:07]name=ofd_packets/00201827 [10:08:07]NVStorageSaveData ofd_packets/00201827 [10:08:07]File name is /storage/ofd_packets/00201827 [10:08:07]Write 298 bytes [10:08:07]NVStorageSaveData done [10:08:07]OFDSenderStorePacket done [10:08:07]KKMCreateOFDPacket done [10:08:07]NVStorageSaveData kkm_last_timestamp [10:08:07]File name is /storage/kkm_last_timestamp [10:08:07]Write 4 bytes [10:08:07]NVStorageSaveData done [10:08:07]ExternCall_PrintAddStr [10:08:07]wPrintStart [10:08:07]Write to MH i2c: 01 00 00 40 29 69 [10:08:07]Write i2c OK [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: 01 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: 01 07 00 [10:08:07]MH_I2C_Read... [10:08:07]Read from MH i2c: 01 07 00 40 29 00 00 00 00 00 FF 0F 7E [10:08:07]RasterBufferAndPrint [10:08:07]line Счет N : (1)449586 [10:08:07]line ИНН: 02508201610067 [10:08:07]line Контрольно-Кассовый Чек [10:08:07]line ПРОДАЖА [10:08:07]line ТРК (МРК, ГНК) : 33 [10:08:07]line Товар: 2710194210 [10:08:07]line ДТ-К-2 [10:08:07]line 13.130 * 76.20 [10:08:07]line = 1000.51 [10:08:07]line НДС 12% НСП 1% [10:08:07]line > о реализуемом товаре [10:08:07]line ОКРУГЛЕНИЕ: -0.51 [10:08:07]line ИТОГО: 1000.00 [10:08:07]line Внесено: 1000.00 [10:08:07]line СДАЧА: 0.00 [10:08:07]line НСП 1% : 8.85 [10:08:07]line НДС 12% : 106.25 [10:08:07]line Наличными: 1000.00 [10:08:07]line Безнал.: 0.00 [10:08:07]line Место: АЗС № 171 "Партнер Нефть" [10:08:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:08:07]line СНО: Общий режим [10:08:07]line Чек 119 27.10.2024 10:08 [10:08:07]line Смена: 544 ФФД: 1.0 [10:08:07]line ЗНМ: 0300000109 [10:08:07]line РНМ: 0000000000091777 [10:08:07]line Версия ККМ: 001 [10:08:07]line ФМ: 0000000000871756 [10:08:07]line ФД: 201827 [10:08:07]line ФПД: 187068094341416 [10:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100810&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201827&fm=187068094341416&tin=02508201610067®Number=0000000000091777&sum=100000 [10:08:08]OFD Sender: Processing packet 201827 [packets to send 112, broken 111] [10:08:08]ProducePacketName [10:08:08]name=ofd_packets/00201827 [10:08:08]OFD Sender: To server: pG, [10:08:08]CommunicateWithHost lk.salyk.kg:30040 [10:08:08]ConnectInit lk.salyk.kg [10:08:08]written 0, free lines is 4095 [10:08:08]Connected sock=10 [10:08:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 66 6F 04 01 87 8C 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 32 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 77 00 00 00 F4 03 04 00 0A 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 14 03 00 35 04 06 00 AA 23 2F 4F E1 28 21 3E DA DE ED F5 FF 91 [10:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5D F2 47 00 9B 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 14 03 00 F4 03 04 00 AF BC 1D 67 B6 04 01 00 00 1A 3C 1F E4 90 38 8C C4 [10:08:08]CommunicateWithHost err = 0 [10:08:08]CheckOFDResponse [10:08:08]1017 (14) - 77093643461234 [10:08:08]1041 (16) - 0000000000871756 [10:08:08]1040 (4) - 201827 [10:08:08]1012 (4) - 27.10.2024 04:08 [10:08:08]1206 (1) - 0 [10:08:08]OFD Sender: Remove packet 201827 [10:08:08]ProducePacketName [10:08:08]name=ofd_packets/00201827 [10:08:08]NVStorageDeleteData [10:08:08]Write to MH i2c: 01 00 00 6B 29 94 [10:08:08]Write i2c OK [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: 01 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: 01 07 00 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 8D 0C 34 [10:08:08]RasterBufferAndPrint [10:08:08]line [10:08:08]line [10:08:08]line [10:08:08]line [10:08:08]line [10:08:08]written 0, free lines is 3218 [10:08:08]MH_Cut [10:08:08]Write to MH i2c: D1 01 00 72 29 01 6D [10:08:08]Write i2c OK [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: D1 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: D1 01 00 [10:08:08]MH_I2C_Read... [10:08:08]Read from MH i2c: D1 01 00 72 29 00 6C [10:08:08]Write to MH i2c: 01 00 00 73 29 9C [10:08:08]Write i2c OK [10:08:08]MH_I2C_Read... [10:08:09]OFD Sender: No OFD packet to send [10:08:09]*** Cut start [10:08:09]*** Purtial cut [10:08:09]*** Stage 1: CUTSNS_PIN = 1 [10:08:09]Read from MH i2c: 01 [10:08:09]MH_I2C_Read... [10:08:09]*** Stop cut motor [10:08:09]*** Cut end [10:08:09]Read from MH i2c: 01 07 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: 01 07 00 73 29 00 00 00 00 00 FF 0F B1 [10:08:09]process_action close_receipt done [10:08:09]requested_data is exist [10:08:09]produce_requested_data [10:08:09]requested_item fm.sn is exist - process it [10:08:09]wFMCommunicate request_size=4 [10:08:09]MH_SAM_APDU [10:08:09]CAPDU: 80 11 00 00 [10:08:09]Write to MH i2c: E2 08 00 74 29 80 11 00 00 00 00 00 00 17 [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:09]Read from MH i2c: E2 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 17 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 17 00 74 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [10:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:08:09]wFMCommunicate OK [10:08:09]requested_item fd.num is exist - process it [10:08:09]SAM_PROTO_GetFieldsCounters [10:08:09]wFMCommunicate request_size=4 [10:08:09]MH_SAM_APDU [10:08:09]CAPDU: 80 13 00 00 [10:08:09]Write to MH i2c: E2 08 00 75 29 80 13 00 00 00 00 00 00 1A [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:09]Read from MH i2c: E2 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 62 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 62 00 75 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 63 14 03 00 0E 04 04 00 20 02 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 44 [10:08:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 63 14 03 00 0E 04 04 00 20 02 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 [10:08:10]wFMCommunicate OK [10:08:10]SAM_PROTO_GetFieldsCounters done [10:08:10]requested_item shift.num is exist - process it [10:08:10]requested_item shift.opened is exist - process it [10:08:10]req_shift_opened [10:08:10]FM_GetShiftState [10:08:10]SAM_PROTO_GetShiftState [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 13 01 00 [10:08:10]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 0E 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1E [10:08:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:08:10]wFMCommunicate OK [10:08:10]SAM_PROTO_GetShiftState done [10:08:10]FM_GetShiftState done [10:08:10]req_shift_opened done [10:08:10]requested_item shift.open_date is exist - process it [10:08:10]req_shift_open_date [10:08:10]req_shift_open_date done [10:08:10]produce_requested_data done [10:08:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201827,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:08:10]process_action_free close_receipt [10:08:10]json_value_free [10:08:10]json_value_free done [10:08:10]process_json_proto returns [10:08:10]Send response to host [10:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201827,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:08:10]free response buf [10:08:10]execute_script done [10:08:10]execute_script returns [10:08:10]free content buf [10:08:10]Sock 8.Close socket [10:08:10]Sock 8.Thread stoped [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:22]accept exits with 9 [10:08:22]New connection [10:08:22]New thread 3066936676 created [10:08:22]Thread 3067080036 joined [10:08:22]Waiting for new connection... [10:08:22] Sock 9.Parse request [10:08:22]Sock 9.Check first char [10:08:22]Sock 9.First char is OK [10:08:22]request: POST /json_proto HTTP/1.0 [10:08:22]Method: POST [10:08:22]URL: /json_proto [10:08:22]Method is POST - this is cgi request [10:08:22]url: /json_proto [10:08:22]query_string will be loaded in cgi processing [10:08:22]execute_cgi json_proto POST (null) [10:08:22]execute_cgi path=json_proto method=POST [10:08:22]POST find Content-Length [10:08:22]Host: 172.17.63.195:8080 [10:08:22]Content-Length: 677 [10:08:22]Content-Type: application/json [10:08:22] [10:08:22]POST finish read [10:08:22]Found Content-Length = 677 [10:08:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:22]execute_script... [10:08: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)449587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:22]POST & json_proto [10:08:22]process_json_proto [10:08:22]json parsed OK: [10:08:22]protocol is kg_v1.0 [10:08:22]action value=close_receipt [10:08:22]process_action close_receipt [10:08:22]cmd_close_receipt [10:08:22]MH_GetDate [10:08:22]Write to MH i2c: F0 00 00 77 29 8F [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: F0 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: F0 09 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: F0 09 00 77 29 00 1A 11 1E 67 68 46 19 67 76 [10:08:22]GetLastDocTimeStamp 1730023690 [10:08:22]current date 1730023706 [10:08:22]FM_GetShiftState [10:08:22]SAM_PROTO_GetShiftState [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 13 01 00 [10:08:22]Write to MH i2c: E2 08 00 78 29 80 13 01 00 00 00 00 00 1E [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 0E 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 0E 00 78 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 20 [10:08:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:08:22]wFMCommunicate OK [10:08:22]SAM_PROTO_GetShiftState done [10:08:22]FM_GetShiftState done [10:08:22]opened in 1729987312 [10:08:22]opened+sec_in_day 1730073712 [10:08:22]quantity*price = 50041 [10:08:22]sum+1 = 50042 [10:08:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 120 27.10.2024 10:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201828 ФПД: 170325109670448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201828&fm=170325109670448&tin=02508201610067®Number=0000000000091777&sum=50000 [10:08:23]StoreToDocumentArchive [10:08:23]shift 544 fd 201828 [10:08:23]save to /storage/0544/doc_00201828 [10:08:23]save last doc name /storage/0544/doc_00201828 to /storage/kkm_last_doc_name [10:08:23]save OK [10:08:23]Clear old archive folders... [10:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:23]tlvbuf is 000A3740 [10:08:23]SAM_PROTO_ClearQueue [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 09 00 00 [10:08:23]Write to MH i2c: E2 08 00 85 29 80 09 00 00 00 00 00 00 20 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [10:08:23]RAPDU: 90 00 [10:08:23]wFMCommunicate OK [10:08:23]SAM_PROTO_ClearQueue done [10:08:23]KKMCreateOFDPacket [10:08:23]OFDProtocolAddRootSTLVToBuf [10:08:23]FM_MakeSignedData [10:08:23]FM_MakeSignedData [10:08:23]SAM_PROTO_SignData [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 0D 01 02 [10:08:23]Write to MH i2c: E2 08 00 86 29 80 0D 01 02 00 00 00 00 28 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [10:08:23]RAPDU: 90 00 [10:08:23]wFMCommunicate OK [10:08:23]wFMCommunicate request_size=255 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 78 00 00 00 F4 03 04 00 1A 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 14 03 00 35 04 06 00 9A [10:08:23]Write to MH i2c: E2 02 01 87 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 78 00 00 00 F4 03 04 00 1A 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 14 03 00 35 04 06 00 9A 00 00 1B [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [10:08:23]RAPDU: 90 00 [10:08:23]wFMCommunicate OK [10:08:23]wFMCommunicate request_size=10 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 0D 02 02 05 E8 E7 A8 82 30 [10:08:23]Write to MH i2c: E2 0D 00 88 29 80 0D 02 02 05 00 E8 E7 A8 82 30 00 00 5E [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [10:08:23]RAPDU: 90 00 [10:08:23]wFMCommunicate OK [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 0D 03 02 [10:08:23]Write to MH i2c: E2 08 00 89 29 80 0D 03 02 00 00 00 00 2D [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 0B 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 0B 00 89 29 00 1C 25 A6 FC 50 F4 C5 61 90 00 7B [10:08:23]RAPDU: 1C 25 A6 FC 50 F4 C5 61 90 00 [10:08:23]wFMCommunicate OK [10:08:23]SAM_PROTO_SignData done [10:08:23]FM_MakeSignedData done [10:08:23]CreateOFDProtocolMessage [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 11 00 00 [10:08:23]Write to MH i2c: E2 08 00 8A 29 80 11 00 00 00 00 00 00 2D [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 17 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 17 00 8A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 82 [10:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:08:24]wFMCommunicate OK [10:08:24]CreateOFDProtocolMessage done [10:08:24]OFDSenderStorePacket 201828 [10:08:24]StoreOFDPacket docnum=201828 [10:08:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD 77 07 01 54 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 78 00 00 00 F4 03 04 00 1A 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 14 03 00 35 04 06 00 9A E8 E7 A8 82 30 1C 25 A6 FC 50 F4 C5 61 [10:08:24]CheckFolder [10:08:24]dirname=/storage/ofd_packets [10:08:24]CheckFolder done [10:08:24]ProducePacketName [10:08:24]name=ofd_packets/00201828 [10:08:24]NVStorageSaveData ofd_packets/00201828 [10:08:24]File name is /storage/ofd_packets/00201828 [10:08:24]Write 301 bytes [10:08:24]NVStorageSaveData done [10:08:24]OFDSenderStorePacket done [10:08:24]KKMCreateOFDPacket done [10:08:24]NVStorageSaveData kkm_last_timestamp [10:08:24]File name is /storage/kkm_last_timestamp [10:08:24]Write 4 bytes [10:08:24]NVStorageSaveData done [10:08:24]ExternCall_PrintAddStr [10:08:24]wPrintStart [10:08:24]Write to MH i2c: 01 00 00 8B 29 B4 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 8B 29 00 00 00 00 00 FF 0F C9 [10:08:24]RasterBufferAndPrint [10:08:24]line Счет N : (1)449587 [10:08:24]line ИНН: 02508201610067 [10:08:24]line Контрольно-Кассовый Чек [10:08:24]line ПРОДАЖА [10:08:24]line ТРК (МРК, ГНК) : 52 [10:08:24]line Товар: 2710124130 [10:08:24]line Аи-92-К-2 [10:08:24]line 7.480 * 66.90 [10:08:24]line = 500.41 [10:08:24]line НДС 12% НСП 1% [10:08:24]line > о реализуемом товаре [10:08:24]line ОКРУГЛЕНИЕ: -0.41 [10:08:24]line ИТОГО: 500.00 [10:08:24]line Внесено: 500.00 [10:08:24]line СДАЧА: 0.00 [10:08:24]line НСП 1% : 4.43 [10:08:24]line НДС 12% : 53.14 [10:08:24]line Наличными: 500.00 [10:08:24]line Безнал.: 0.00 [10:08:24]line Место: АЗС № 171 "Партнер Нефть" [10:08:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:08:24]line СНО: Общий режим [10:08:24]line Чек 120 27.10.2024 10:08 [10:08:24]line Смена: 544 ФФД: 1.0 [10:08:24]line ЗНМ: 0300000109 [10:08:24]line РНМ: 0000000000091777 [10:08:24]line Версия ККМ: 001 [10:08:24]line ФМ: 0000000000871756 [10:08:24]line ФД: 201828 [10:08:24]line ФПД: 170325109670448 [10:08:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201828&fm=170325109670448&tin=02508201610067®Number=0000000000091777&sum=50000 [10:08:24]OFD Sender: Processing packet 201828 [packets to send 112, broken 111] [10:08:24]ProducePacketName [10:08:24]name=ofd_packets/00201828 [10:08:24]OFD Sender: To server: pG, [10:08:24]CommunicateWithHost lk.salyk.kg:30040 [10:08:24]ConnectInit lk.salyk.kg [10:08:24]written 0, free lines is 4095 [10:08:24]Connected sock=10 [10:08:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD 77 07 01 54 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 78 00 00 00 F4 03 04 00 1A 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 14 03 00 35 04 06 00 9A E8 E7 A8 82 30 1C 25 A6 FC 50 F4 C5 61 [10:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D4 6A 47 00 D9 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 14 03 00 F4 03 04 00 C0 BC 1D 67 B6 04 01 00 00 39 98 C8 0C 50 AB ED E7 [10:08:24]CommunicateWithHost err = 0 [10:08:24]CheckOFDResponse [10:08:24]1017 (14) - 77093643461234 [10:08:24]1041 (16) - 0000000000871756 [10:08:24]1040 (4) - 201828 [10:08:24]1012 (4) - 27.10.2024 04:08 [10:08:24]1206 (1) - 0 [10:08:24]OFD Sender: Remove packet 201828 [10:08:24]ProducePacketName [10:08:24]name=ofd_packets/00201828 [10:08:24]NVStorageDeleteData [10:08:24]Write to MH i2c: 01 00 00 B6 29 DF [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 B6 29 00 00 00 00 00 8B 0C 7D [10:08:24]RasterBufferAndPrint [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]written 0, free lines is 3215 [10:08:24]MH_Cut [10:08:24]Write to MH i2c: D1 01 00 BD 29 01 B8 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 01 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 01 00 BD 29 00 B7 [10:08:24]Write to MH i2c: 01 00 00 BE 29 E7 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:25]OFD Sender: No OFD packet to send [10:08:25]*** Cut start [10:08:25]*** Purtial cut [10:08:25]*** CUTSNS_PIN = 0 [10:08:25]*** Stage 1: CUTSNS_PIN = 1 [10:08:27]Read from MH i2c: 01 [10:08:27]MH_I2C_Read... [10:08:27]*** Stop cut motor [10:08:27]*** Cut end [10:08:27]Read from MH i2c: 01 07 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: 01 07 00 BE 29 00 00 00 00 00 FF 0F FC [10:08:27]process_action close_receipt done [10:08:27]requested_data is exist [10:08:27]produce_requested_data [10:08:27]requested_item fm.sn is exist - process it [10:08:27]wFMCommunicate request_size=4 [10:08:27]MH_SAM_APDU [10:08:27]CAPDU: 80 11 00 00 [10:08:27]Write to MH i2c: E2 08 00 BF 29 80 11 00 00 00 00 00 00 62 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:27]Read from MH i2c: E2 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 17 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 17 00 BF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [10:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:08:27]wFMCommunicate OK [10:08:27]requested_item fd.num is exist - process it [10:08:27]SAM_PROTO_GetFieldsCounters [10:08:27]wFMCommunicate request_size=4 [10:08:27]MH_SAM_APDU [10:08:27]CAPDU: 80 13 00 00 [10:08:27]Write to MH i2c: E2 08 00 C0 29 80 13 00 00 00 00 00 00 65 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:27]Read from MH i2c: E2 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 62 00 [10:08:27]MH_I2C_Read... [10:08:27]Read from MH i2c: E2 62 00 C0 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 64 14 03 00 0E 04 04 00 20 02 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 93 [10:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 64 14 03 00 0E 04 04 00 20 02 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 [10:08:27]wFMCommunicate OK [10:08:27]SAM_PROTO_GetFieldsCounters done [10:08:27]requested_item shift.num is exist - process it [10:08:27]requested_item shift.opened is exist - process it [10:08:27]req_shift_opened [10:08:27]FM_GetShiftState [10:08:27]SAM_PROTO_GetShiftState [10:08:27]wFMCommunicate request_size=4 [10:08:27]MH_SAM_APDU [10:08:27]CAPDU: 80 13 01 00 [10:08:27]Write to MH i2c: E2 08 00 C1 29 80 13 01 00 00 00 00 00 67 [10:08:27]Write i2c OK [10:08:27]MH_I2C_Read... [10:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:28]Read from MH i2c: E2 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 0E 00 [10:08:28]MH_I2C_Read... [10:08:28]Read from MH i2c: E2 0E 00 C1 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 69 [10:08:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:08:28]wFMCommunicate OK [10:08:28]SAM_PROTO_GetShiftState done [10:08:28]FM_GetShiftState done [10:08:28]req_shift_opened done [10:08:28]requested_item shift.open_date is exist - process it [10:08:28]req_shift_open_date [10:08:28]req_shift_open_date done [10:08:28]produce_requested_data done [10:08:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201828,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:08:28]process_action_free close_receipt [10:08:28]json_value_free [10:08:28]json_value_free done [10:08:28]process_json_proto returns [10:08:28]Send response to host [10:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201828,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:08:28]free response buf [10:08:28]execute_script done [10:08:28]execute_script returns [10:08:28]free content buf [10:08:28]Sock 9.Close socket [10:08:28]Sock 9.Thread stoped [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]accept exits with 8 [10:08:55]New connection [10:08:55]New thread 3067080036 created [10:08:55]Thread 3066936676 joined [10:08:55]Waiting for new connection... [10:08:55] Sock 8.Parse request [10:08:55]Sock 8.Check first char [10:08:55]Sock 8.First char is OK [10:08:55]request: POST /json_proto HTTP/1.0 [10:08:55]Method: POST [10:08:55]URL: /json_proto [10:08:55]Method is POST - this is cgi request [10:08:55]url: /json_proto [10:08:55]query_string will be loaded in cgi processing [10:08:55]execute_cgi json_proto POST (null) [10:08:55]execute_cgi path=json_proto method=POST [10:08:55]POST find Content-Length [10:08:55]Host: 172.17.63.195:8080 [10:08:55]Content-Length: 677 [10:08:55]Content-Type: application/json [10:08:55] [10:08:55]POST finish read [10:08:55]Found Content-Length = 677 [10:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:55]execute_script... [10:08:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:55]POST & json_proto [10:08:55]process_json_proto [10:08:55]json parsed OK: [10:08:55]protocol is kg_v1.0 [10:08:55]action value=close_receipt [10:08:55]process_action close_receipt [10:08:55]cmd_close_receipt [10:08:55]MH_GetDate [10:08:55]Write to MH i2c: F0 00 00 C2 29 DA [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 09 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: F0 09 00 C2 29 00 3B 11 1E 67 68 46 19 67 E2 [10:08:55]GetLastDocTimeStamp 1730023706 [10:08:55]current date 1730023739 [10:08:55]FM_GetShiftState [10:08:55]SAM_PROTO_GetShiftState [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 13 01 00 [10:08:55]Write to MH i2c: E2 08 00 C3 29 80 13 01 00 00 00 00 00 69 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0E 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0E 00 C3 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6B [10:08:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:08:55]wFMCommunicate OK [10:08:55]SAM_PROTO_GetShiftState done [10:08:55]FM_GetShiftState done [10:08:55]opened in 1729987312 [10:08:55]opened+sec_in_day 1730073712 [10:08:55]quantity*price = 50041 [10:08:55]sum+1 = 50042 [10:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 121 27.10.2024 10:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201829 ФПД: 228620427950706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100859&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201829&fm=228620427950706&tin=02508201610067®Number=0000000000091777&sum=50000 [10:08:56]StoreToDocumentArchive [10:08:56]shift 544 fd 201829 [10:08:56]save to /storage/0544/doc_00201829 [10:08:56]save last doc name /storage/0544/doc_00201829 to /storage/kkm_last_doc_name [10:08:56]save OK [10:08:56]Clear old archive folders... [10:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:56]tlvbuf is 000C80D0 [10:08:56]SAM_PROTO_ClearQueue [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 09 00 00 [10:08:56]Write to MH i2c: E2 08 00 D0 29 80 09 00 00 00 00 00 00 6B [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [10:08:56]RAPDU: 90 00 [10:08:56]wFMCommunicate OK [10:08:56]SAM_PROTO_ClearQueue done [10:08:56]KKMCreateOFDPacket [10:08:56]OFDProtocolAddRootSTLVToBuf [10:08:56]FM_MakeSignedData [10:08:56]FM_MakeSignedData [10:08:56]SAM_PROTO_SignData [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 0D 01 02 [10:08:56]Write to MH i2c: E2 08 00 D1 29 80 0D 01 02 00 00 00 00 73 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 D1 29 00 90 00 6E [10:08:56]RAPDU: 90 00 [10:08:56]wFMCommunicate OK [10:08:56]wFMCommunicate request_size=255 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 3B 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 14 03 00 35 04 06 00 CF [10:08:56]Write to MH i2c: E2 02 01 D2 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 3B 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 14 03 00 35 04 06 00 CF 00 00 BE [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 D2 29 00 90 00 6F [10:08:56]RAPDU: 90 00 [10:08:56]wFMCommunicate OK [10:08:56]wFMCommunicate request_size=10 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 0D 02 02 05 ED D7 65 7A 72 [10:08:56]Write to MH i2c: E2 0D 00 D3 29 80 0D 02 02 05 00 ED D7 65 7A 72 00 00 95 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 03 00 D3 29 00 90 00 70 [10:08:56]RAPDU: 90 00 [10:08:56]wFMCommunicate OK [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 0D 03 02 [10:08:56]Write to MH i2c: E2 08 00 D4 29 80 0D 03 02 00 00 00 00 78 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 0B 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 0B 00 D4 29 00 3F 89 AB 0A 57 A1 54 21 90 00 63 [10:08:56]RAPDU: 3F 89 AB 0A 57 A1 54 21 90 00 [10:08:56]wFMCommunicate OK [10:08:56]SAM_PROTO_SignData done [10:08:56]FM_MakeSignedData done [10:08:56]CreateOFDProtocolMessage [10:08:56]wFMCommunicate request_size=4 [10:08:56]MH_SAM_APDU [10:08:56]CAPDU: 80 11 00 00 [10:08:56]Write to MH i2c: E2 08 00 D5 29 80 11 00 00 00 00 00 00 78 [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:56]Read from MH i2c: E2 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 17 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: E2 17 00 D5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CD [10:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:08:56]wFMCommunicate OK [10:08:56]CreateOFDProtocolMessage done [10:08:56]OFDSenderStorePacket 201829 [10:08:56]StoreOFDPacket docnum=201829 [10:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B9 F2 07 01 1E C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 3B 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 14 03 00 35 04 06 00 CF ED D7 65 7A 72 3F 89 AB 0A 57 A1 54 21 [10:08:56]CheckFolder [10:08:56]dirname=/storage/ofd_packets [10:08:56]CheckFolder done [10:08:56]ProducePacketName [10:08:56]name=ofd_packets/00201829 [10:08:56]NVStorageSaveData ofd_packets/00201829 [10:08:56]File name is /storage/ofd_packets/00201829 [10:08:56]Write 301 bytes [10:08:56]NVStorageSaveData done [10:08:56]OFDSenderStorePacket done [10:08:56]KKMCreateOFDPacket done [10:08:56]NVStorageSaveData kkm_last_timestamp [10:08:56]File name is /storage/kkm_last_timestamp [10:08:56]Write 4 bytes [10:08:56]NVStorageSaveData done [10:08:56]ExternCall_PrintAddStr [10:08:56]wPrintStart [10:08:56]Write to MH i2c: 01 00 00 D6 29 FF [10:08:56]Write i2c OK [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: 01 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: 01 07 00 [10:08:56]MH_I2C_Read... [10:08:56]Read from MH i2c: 01 07 00 D6 29 00 00 00 00 00 FF 0F 14 [10:08:56]RasterBufferAndPrint [10:08:56]line Счет N : (1)449588 [10:08:56]line ИНН: 02508201610067 [10:08:56]line Контрольно-Кассовый Чек [10:08:56]line ПРОДАЖА [10:08:56]line ТРК (МРК, ГНК) : 41 [10:08:56]line Товар: 2710124130 [10:08:56]line Аи-92-К-2 [10:08:56]line 7.480 * 66.90 [10:08:56]line = 500.41 [10:08:56]line НДС 12% НСП 1% [10:08:56]line > о реализуемом товаре [10:08:56]line ОКРУГЛЕНИЕ: -0.41 [10:08:56]line ИТОГО: 500.00 [10:08:56]line Внесено: 500.00 [10:08:56]line СДАЧА: 0.00 [10:08:56]line НСП 1% : 4.43 [10:08:56]line НДС 12% : 53.14 [10:08:56]line Наличными: 500.00 [10:08:56]line Безнал.: 0.00 [10:08:56]line Место: АЗС № 171 "Партнер Нефть" [10:08:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:08:56]line СНО: Общий режим [10:08:56]line Чек 121 27.10.2024 10:08 [10:08:56]line Смена: 544 ФФД: 1.0 [10:08:56]line ЗНМ: 0300000109 [10:08:56]line РНМ: 0000000000091777 [10:08:56]line Версия ККМ: 001 [10:08:56]line ФМ: 0000000000871756 [10:08:56]line ФД: 201829 [10:08:56]line ФПД: 228620427950706 [10:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100859&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201829&fm=228620427950706&tin=02508201610067®Number=0000000000091777&sum=50000 [10:08:57]OFD Sender: Processing packet 201829 [packets to send 112, broken 111] [10:08:57]ProducePacketName [10:08:57]name=ofd_packets/00201829 [10:08:57]OFD Sender: To server: pG, [10:08:57]CommunicateWithHost lk.salyk.kg:30040 [10:08:57]ConnectInit lk.salyk.kg [10:08:57]written 0, free lines is 4095 [10:08:57]Connected sock=10 [10:08:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B9 F2 07 01 1E C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 3B 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 14 03 00 35 04 06 00 CF ED D7 65 7A 72 3F 89 AB 0A 57 A1 54 21 [10:08:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EC 49 47 00 40 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 14 03 00 F4 03 04 00 E0 BC 1D 67 B6 04 01 00 00 8F 18 29 54 CF C6 97 34 [10:08:57]CommunicateWithHost err = 0 [10:08:57]CheckOFDResponse [10:08:57]1017 (14) - 77093643461234 [10:08:57]1041 (16) - 0000000000871756 [10:08:57]1040 (4) - 201829 [10:08:57]1012 (4) - 27.10.2024 04:09 [10:08:57]1206 (1) - 0 [10:08:57]OFD Sender: Remove packet 201829 [10:08:57]ProducePacketName [10:08:57]name=ofd_packets/00201829 [10:08:57]NVStorageDeleteData [10:08:57]Write to MH i2c: 01 00 00 01 2A 2B [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: 01 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: 01 07 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: 01 07 00 01 2A 00 00 00 00 00 96 0C D4 [10:08:57]RasterBufferAndPrint [10:08:57]line [10:08:57]line [10:08:57]line [10:08:57]line [10:08:57]line [10:08:57]written 0, free lines is 3228 [10:08:57]MH_Cut [10:08:57]Write to MH i2c: D1 01 00 08 2A 01 04 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: D1 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: D1 01 00 [10:08:57]MH_I2C_Read... [10:08:57]Read from MH i2c: D1 01 00 08 2A 00 03 [10:08:57]Write to MH i2c: 01 00 00 09 2A 33 [10:08:57]Write i2c OK [10:08:57]MH_I2C_Read... [10:08:57]OFD Sender: No OFD packet to send [10:08:58]*** Cut start [10:08:58]*** Purtial cut [10:08:58]*** Stage 1: CUTSNS_PIN = 1 [10:08:58]Read from MH i2c: 01 [10:08:58]MH_I2C_Read... [10:08:58]*** Stop cut motor [10:08:58]*** Cut end [10:08:58]Read from MH i2c: 01 07 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: 01 07 00 09 2A 00 00 00 00 00 FF 0F 48 [10:08:58]process_action close_receipt done [10:08:58]requested_data is exist [10:08:58]produce_requested_data [10:08:58]requested_item fm.sn is exist - process it [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 11 00 00 [10:08:58]Write to MH i2c: E2 08 00 0A 2A 80 11 00 00 00 00 00 00 AE [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 17 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 17 00 0A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 03 [10:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:08:58]wFMCommunicate OK [10:08:58]requested_item fd.num is exist - process it [10:08:58]SAM_PROTO_GetFieldsCounters [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 13 00 00 [10:08:58]Write to MH i2c: E2 08 00 0B 2A 80 13 00 00 00 00 00 00 B1 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 62 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 62 00 0B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 65 14 03 00 0E 04 04 00 20 02 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 E3 [10:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 65 14 03 00 0E 04 04 00 20 02 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 [10:08:58]wFMCommunicate OK [10:08:58]SAM_PROTO_GetFieldsCounters done [10:08:58]requested_item shift.num is exist - process it [10:08:58]requested_item shift.opened is exist - process it [10:08:58]req_shift_opened [10:08:58]FM_GetShiftState [10:08:58]SAM_PROTO_GetShiftState [10:08:58]wFMCommunicate request_size=4 [10:08:58]MH_SAM_APDU [10:08:58]CAPDU: 80 13 01 00 [10:08:58]Write to MH i2c: E2 08 00 0C 2A 80 13 01 00 00 00 00 00 B3 [10:08:58]Write i2c OK [10:08:58]MH_I2C_Read... [10:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:58]Read from MH i2c: E2 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 0E 00 [10:08:58]MH_I2C_Read... [10:08:58]Read from MH i2c: E2 0E 00 0C 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B5 [10:08:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:08:58]wFMCommunicate OK [10:08:58]SAM_PROTO_GetShiftState done [10:08:58]FM_GetShiftState done [10:08:58]req_shift_opened done [10:08:58]requested_item shift.open_date is exist - process it [10:08:58]req_shift_open_date [10:08:58]req_shift_open_date done [10:08:58]produce_requested_data done [10:08:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201829,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:08:58]process_action_free close_receipt [10:08:58]json_value_free [10:08:58]json_value_free done [10:08:58]process_json_proto returns [10:08:58]Send response to host [10:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201829,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:08:58]free response buf [10:08:58]execute_script done [10:08:58]execute_script returns [10:08:58]free content buf [10:08:58]Sock 8.Close socket [10:08:58]Sock 8.Thread stoped [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]accept exits with 9 [10:09:32]New connection [10:09:32]New thread 3066936676 created [10:09:32]Thread 3067080036 joined [10:09:32]Waiting for new connection... [10:09:32] Sock 9.Parse request [10:09:32]Sock 9.Check first char [10:09:32]Sock 9.First char is OK [10:09:32]request: POST /json_proto HTTP/1.0 [10:09:32]Method: POST [10:09:32]URL: /json_proto [10:09:32]Method is POST - this is cgi request [10:09:32]url: /json_proto [10:09:32]query_string will be loaded in cgi processing [10:09:32]execute_cgi json_proto POST (null) [10:09:32]execute_cgi path=json_proto method=POST [10:09:32]POST find Content-Length [10:09:32]Host: 172.17.63.195:8080 [10:09:32]Content-Length: 632 [10:09:32]Content-Type: application/json [10:09:32] [10:09:32]POST finish read [10:09:32]Found Content-Length = 632 [10:09:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [10:09:32]execute_script... [10:09:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [10:09:32]POST & json_proto [10:09:32]process_json_proto [10:09:32]json parsed OK: [10:09:32]protocol is kg_v1.0 [10:09:32]action value=close_receipt [10:09:32]process_action close_receipt [10:09:32]cmd_close_receipt [10:09:32]MH_GetDate [10:09:32]Write to MH i2c: F0 00 00 0D 2A 26 [10:09:32]Write i2c OK [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: F0 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: F0 09 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: F0 09 00 0D 2A 00 60 11 1E 67 68 46 19 67 53 [10:09:32]GetLastDocTimeStamp 1730023739 [10:09:32]current date 1730023776 [10:09:32]FM_GetShiftState [10:09:32]SAM_PROTO_GetShiftState [10:09:32]wFMCommunicate request_size=4 [10:09:32]MH_SAM_APDU [10:09:32]CAPDU: 80 13 01 00 [10:09:32]Write to MH i2c: E2 08 00 0E 2A 80 13 01 00 00 00 00 00 B5 [10:09:32]Write i2c OK [10:09:32]MH_I2C_Read... [10:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:32]Read from MH i2c: E2 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 0E 00 [10:09:32]MH_I2C_Read... [10:09:32]Read from MH i2c: E2 0E 00 0E 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B7 [10:09:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:09:32]wFMCommunicate OK [10:09:32]SAM_PROTO_GetShiftState done [10:09:32]FM_GetShiftState done [10:09:32]opened in 1729987312 [10:09:32]opened+sec_in_day 1730073712 [10:09:32]quantity*price = 50000 [10:09:32]sum+1 = 50001 [10:09:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 122 27.10.2024 10:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201830 ФПД: 19996257094967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100936&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201830&fm=19996257094967&tin=02508201610067®Number=0000000000091777&sum=50000 [10:09:33]StoreToDocumentArchive [10:09:33]shift 544 fd 201830 [10:09:33]save to /storage/0544/doc_00201830 [10:09:33]save last doc name /storage/0544/doc_00201830 to /storage/kkm_last_doc_name [10:09:33]save OK [10:09:33]Clear old archive folders... [10:09:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:09:33]tlvbuf is 000D91D0 [10:09:33]SAM_PROTO_ClearQueue [10:09:33]wFMCommunicate request_size=4 [10:09:33]MH_SAM_APDU [10:09:33]CAPDU: 80 09 00 00 [10:09:33]Write to MH i2c: E2 08 00 1B 2A 80 09 00 00 00 00 00 00 B7 [10:09:33]Write i2c OK [10:09:33]MH_I2C_Read... [10:09:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:33]Read from MH i2c: E2 [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: E2 03 00 [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: E2 03 00 1B 2A 00 90 00 B9 [10:09:33]RAPDU: 90 00 [10:09:33]wFMCommunicate OK [10:09:33]SAM_PROTO_ClearQueue done [10:09:33]KKMCreateOFDPacket [10:09:33]OFDProtocolAddRootSTLVToBuf [10:09:33]FM_MakeSignedData [10:09:33]FM_MakeSignedData [10:09:33]SAM_PROTO_SignData [10:09:33]wFMCommunicate request_size=4 [10:09:33]MH_SAM_APDU [10:09:33]CAPDU: 80 0D 01 02 [10:09:33]Write to MH i2c: E2 08 00 1C 2A 80 0D 01 02 00 00 00 00 BF [10:09:33]Write i2c OK [10:09:33]MH_I2C_Read... [10:09:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:33]Read from MH i2c: E2 [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: E2 03 00 [10:09:33]MH_I2C_Read... [10:09:33]Read from MH i2c: E2 03 00 1C 2A 00 90 00 BA [10:09:33]RAPDU: 90 00 [10:09:33]wFMCommunicate OK [10:09:33]wFMCommunicate request_size=255 [10:09:33]MH_SAM_APDU [10:09:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 60 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 14 03 00 35 04 06 00 [10:09:33]Write to MH i2c: E2 02 01 1D 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 7A 00 00 00 F4 03 04 00 60 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 14 03 00 35 04 06 00 00 00 BF [10:09:33]Write i2c OK [10:09:33]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 1D 2A 00 90 00 BB [10:09:34]RAPDU: 90 00 [10:09:34]wFMCommunicate OK [10:09:34]wFMCommunicate request_size=11 [10:09:34]MH_SAM_APDU [10:09:34]CAPDU: 80 0D 02 02 06 12 2F BD CD 0D 37 [10:09:34]Write to MH i2c: E2 0E 00 1E 2A 80 0D 02 02 06 00 12 2F BD CD 0D 37 00 00 DD [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 03 00 1E 2A 00 90 00 BC [10:09:34]RAPDU: 90 00 [10:09:34]wFMCommunicate OK [10:09:34]wFMCommunicate request_size=4 [10:09:34]MH_SAM_APDU [10:09:34]CAPDU: 80 0D 03 02 [10:09:34]Write to MH i2c: E2 08 00 1F 2A 80 0D 03 02 00 00 00 00 C4 [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 0B 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 0B 00 1F 2A 00 FE 5C 08 48 A2 DF 6E 2A 90 00 88 [10:09:34]RAPDU: FE 5C 08 48 A2 DF 6E 2A 90 00 [10:09:34]wFMCommunicate OK [10:09:34]SAM_PROTO_SignData done [10:09:34]FM_MakeSignedData done [10:09:34]CreateOFDProtocolMessage [10:09:34]wFMCommunicate request_size=4 [10:09:34]MH_SAM_APDU [10:09:34]CAPDU: 80 11 00 00 [10:09:34]Write to MH i2c: E2 08 00 20 2A 80 11 00 00 00 00 00 00 C4 [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:34]Read from MH i2c: E2 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 17 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: E2 17 00 20 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 19 [10:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:09:34]wFMCommunicate OK [10:09:34]CreateOFDProtocolMessage done [10:09:34]OFDSenderStorePacket 201830 [10:09:34]StoreOFDPacket docnum=201830 [10:09:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 18 8F 08 01 99 B5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 60 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 14 03 00 35 04 06 00 12 2F BD CD 0D 37 FE 5C 08 48 A2 DF 6E 2A [10:09:34]CheckFolder [10:09:34]dirname=/storage/ofd_packets [10:09:34]CheckFolder done [10:09:34]ProducePacketName [10:09:34]name=ofd_packets/00201830 [10:09:34]NVStorageSaveData ofd_packets/00201830 [10:09:34]File name is /storage/ofd_packets/00201830 [10:09:34]Write 302 bytes [10:09:34]NVStorageSaveData done [10:09:34]OFDSenderStorePacket done [10:09:34]KKMCreateOFDPacket done [10:09:34]NVStorageSaveData kkm_last_timestamp [10:09:34]File name is /storage/kkm_last_timestamp [10:09:34]Write 4 bytes [10:09:34]NVStorageSaveData done [10:09:34]ExternCall_PrintAddStr [10:09:34]wPrintStart [10:09:34]Write to MH i2c: 01 00 00 21 2A 4B [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 07 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 07 00 21 2A 00 00 00 00 00 FF 0F 60 [10:09:34]RasterBufferAndPrint [10:09:34]line Счет N : (1)449589 [10:09:34]line ИНН: 02508201610067 [10:09:34]line Контрольно-Кассовый Чек [10:09:34]line ПРОДАЖА [10:09:34]line ТРК (МРК, ГНК) : 63 [10:09:34]line Товар: 2710124130 [10:09:34]line SUPER 92-К-5 [10:09:34]line 7.310 * 68.40 [10:09:34]line = 500.00 [10:09:34]line НДС 12% НСП 1% [10:09:34]line > о реализуемом товаре [10:09:34]line ИТОГО: 500.00 [10:09:34]line НСП 1% : 4.42 [10:09:34]line НДС 12% : 53.10 [10:09:34]line Наличными: 500.00 [10:09:34]line Безнал.: 0.00 [10:09:34]line Место: АЗС № 171 "Партнер Нефть" [10:09:34]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:09:34]line СНО: Общий режим [10:09:34]line Чек 122 27.10.2024 10:09 [10:09:34]line Смена: 544 ФФД: 1.0 [10:09:34]line ЗНМ: 0300000109 [10:09:34]line РНМ: 0000000000091777 [10:09:34]line Версия ККМ: 001 [10:09:34]line ФМ: 0000000000871756 [10:09:34]line ФД: 201830 [10:09:34]line ФПД: 19996257094967 [10:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100936&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201830&fm=19996257094967&tin=02508201610067®Number=0000000000091777&sum=50000 [10:09:34]written 0, free lines is 4095 [10:09:34]OFD Sender: Processing packet 201830 [packets to send 112, broken 111] [10:09:34]ProducePacketName [10:09:34]name=ofd_packets/00201830 [10:09:34]OFD Sender: To server: pG, [10:09:34]CommunicateWithHost lk.salyk.kg:30040 [10:09:34]ConnectInit lk.salyk.kg [10:09:34]Write to MH i2c: 01 00 00 49 2A 73 [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 07 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: 01 07 00 49 2A 00 00 00 00 00 CC 0C 52 [10:09:34]RasterBufferAndPrint [10:09:34]line [10:09:34]line [10:09:34]line [10:09:34]line [10:09:34]line [10:09:34]written 0, free lines is 3279 [10:09:34]MH_Cut [10:09:34]Write to MH i2c: D1 01 00 50 2A 01 4C [10:09:34]Connected sock=10 [10:09:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 18 8F 08 01 99 B5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 60 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 14 03 00 35 04 06 00 12 2F BD CD 0D 37 FE 5C 08 48 A2 DF 6E 2A [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: D1 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: D1 01 00 [10:09:34]MH_I2C_Read... [10:09:34]Read from MH i2c: D1 01 00 50 2A 00 4B [10:09:34]Write to MH i2c: 01 00 00 51 2A 7B [10:09:34]Write i2c OK [10:09:34]MH_I2C_Read... [10:09:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2B CC 47 00 6A F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 14 03 00 F4 03 04 00 06 BD 1D 67 B6 04 01 00 00 E6 4B 4D 1E B3 F0 37 AA [10:09:35]CommunicateWithHost err = 0 [10:09:35]CheckOFDResponse [10:09:35]1017 (14) - 77093643461234 [10:09:35]1041 (16) - 0000000000871756 [10:09:35]1040 (4) - 201830 [10:09:35]1012 (4) - 27.10.2024 04:09 [10:09:35]1206 (1) - 0 [10:09:35]OFD Sender: Remove packet 201830 [10:09:35]ProducePacketName [10:09:35]name=ofd_packets/00201830 [10:09:35]NVStorageDeleteData [10:09:35]OFD Sender: No OFD packet to send [10:09:35]*** Cut start [10:09:35]*** Purtial cut [10:09:35]*** Stage 1: CUTSNS_PIN = 1 [10:09:35]Read from MH i2c: 01 [10:09:35]MH_I2C_Read... [10:09:35]*** Stop cut motor [10:09:35]*** Cut end [10:09:35]Read from MH i2c: 01 07 00 [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: 01 07 00 51 2A 00 00 00 00 00 FF 0F 90 [10:09:35]process_action close_receipt done [10:09:35]requested_data is exist [10:09:35]produce_requested_data [10:09:35]requested_item fm.sn is exist - process it [10:09:35]wFMCommunicate request_size=4 [10:09:35]MH_SAM_APDU [10:09:35]CAPDU: 80 11 00 00 [10:09:35]Write to MH i2c: E2 08 00 52 2A 80 11 00 00 00 00 00 00 F6 [10:09:35]Write i2c OK [10:09:35]MH_I2C_Read... [10:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:35]Read from MH i2c: E2 [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: E2 17 00 [10:09:35]MH_I2C_Read... [10:09:35]Read from MH i2c: E2 17 00 52 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [10:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:09:35]wFMCommunicate OK [10:09:35]requested_item fd.num is exist - process it [10:09:35]SAM_PROTO_GetFieldsCounters [10:09:35]wFMCommunicate request_size=4 [10:09:35]MH_SAM_APDU [10:09:35]CAPDU: 80 13 00 00 [10:09:35]Write to MH i2c: E2 08 00 53 2A 80 13 00 00 00 00 00 00 F9 [10:09:35]Write i2c OK [10:09:35]MH_I2C_Read... [10:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:36]Read from MH i2c: E2 [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: E2 62 00 [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: E2 62 00 53 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 66 14 03 00 0E 04 04 00 20 02 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 2F [10:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 66 14 03 00 0E 04 04 00 20 02 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 [10:09:36]wFMCommunicate OK [10:09:36]SAM_PROTO_GetFieldsCounters done [10:09:36]requested_item shift.num is exist - process it [10:09:36]requested_item shift.opened is exist - process it [10:09:36]req_shift_opened [10:09:36]FM_GetShiftState [10:09:36]SAM_PROTO_GetShiftState [10:09:36]wFMCommunicate request_size=4 [10:09:36]MH_SAM_APDU [10:09:36]CAPDU: 80 13 01 00 [10:09:36]Write to MH i2c: E2 08 00 54 2A 80 13 01 00 00 00 00 00 FB [10:09:36]Write i2c OK [10:09:36]MH_I2C_Read... [10:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:36]Read from MH i2c: E2 [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: E2 0E 00 [10:09:36]MH_I2C_Read... [10:09:36]Read from MH i2c: E2 0E 00 54 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FD [10:09:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:09:36]wFMCommunicate OK [10:09:36]SAM_PROTO_GetShiftState done [10:09:36]FM_GetShiftState done [10:09:36]req_shift_opened done [10:09:36]requested_item shift.open_date is exist - process it [10:09:36]req_shift_open_date [10:09:36]req_shift_open_date done [10:09:36]produce_requested_data done [10:09:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201830,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:09:36]process_action_free close_receipt [10:09:36]json_value_free [10:09:36]json_value_free done [10:09:36]process_json_proto returns [10:09:36]Send response to host [10:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201830,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:09:36]free response buf [10:09:36]execute_script done [10:09:36]execute_script returns [10:09:36]free content buf [10:09:36]Sock 9.Close socket [10:09:36]Sock 9.Thread stoped [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:44]accept exits with 8 [10:10:44]New connection [10:10:44]New thread 3067080036 created [10:10:44]Thread 3066936676 joined [10:10:44]Waiting for new connection... [10:10:44] Sock 8.Parse request [10:10:44]Sock 8.Check first char [10:10:44]Sock 8.First char is OK [10:10:44]request: POST /json_proto HTTP/1.0 [10:10:44]Method: POST [10:10:44]URL: /json_proto [10:10:44]Method is POST - this is cgi request [10:10:44]url: /json_proto [10:10:44]query_string will be loaded in cgi processing [10:10:44]execute_cgi json_proto POST (null) [10:10:44]execute_cgi path=json_proto method=POST [10:10:44]POST find Content-Length [10:10:44]Host: 172.17.63.195:8080 [10:10:44]Content-Length: 677 [10:10:44]Content-Type: application/json [10:10:44] [10:10:44]POST finish read [10:10:44]Found Content-Length = 677 [10:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:44]execute_script... [10:10: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)449590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:44]POST & json_proto [10:10:44]process_json_proto [10:10:44]json parsed OK: [10:10:44]protocol is kg_v1.0 [10:10:44]action value=close_receipt [10:10:44]process_action close_receipt [10:10:44]cmd_close_receipt [10:10:44]MH_GetDate [10:10:44]Write to MH i2c: F0 00 00 55 2A 6E [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 09 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: F0 09 00 55 2A 00 A8 11 1E 67 68 46 19 67 E3 [10:10:44]GetLastDocTimeStamp 1730023776 [10:10:44]current date 1730023848 [10:10:44]FM_GetShiftState [10:10:44]SAM_PROTO_GetShiftState [10:10:44]wFMCommunicate request_size=4 [10:10:44]MH_SAM_APDU [10:10:44]CAPDU: 80 13 01 00 [10:10:44]Write to MH i2c: E2 08 00 56 2A 80 13 01 00 00 00 00 00 FD [10:10:44]Write i2c OK [10:10:44]MH_I2C_Read... [10:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:44]Read from MH i2c: E2 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0E 00 [10:10:44]MH_I2C_Read... [10:10:44]Read from MH i2c: E2 0E 00 56 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FF [10:10:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:10:44]wFMCommunicate OK [10:10:44]SAM_PROTO_GetShiftState done [10:10:44]FM_GetShiftState done [10:10:44]opened in 1729987312 [10:10:44]opened+sec_in_day 1730073712 [10:10:44]quantity*price = 40006 [10:10:44]sum+1 = 40007 [10:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 123 27.10.2024 10:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201831 ФПД: 155227904200174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101048&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201831&fm=155227904200174&tin=02508201610067®Number=0000000000091777&sum=40000 [10:10:45]StoreToDocumentArchive [10:10:45]shift 544 fd 201831 [10:10:45]save to /storage/0544/doc_00201831 [10:10:45]save last doc name /storage/0544/doc_00201831 to /storage/kkm_last_doc_name [10:10:45]save OK [10:10:45]Clear old archive folders... [10:10:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:45]tlvbuf is 00137500 [10:10:45]SAM_PROTO_ClearQueue [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 09 00 00 [10:10:45]Write to MH i2c: E2 08 00 63 2A 80 09 00 00 00 00 00 00 FF [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [10:10:45]RAPDU: 90 00 [10:10:45]wFMCommunicate OK [10:10:45]SAM_PROTO_ClearQueue done [10:10:45]KKMCreateOFDPacket [10:10:45]OFDProtocolAddRootSTLVToBuf [10:10:45]FM_MakeSignedData [10:10:45]FM_MakeSignedData [10:10:45]SAM_PROTO_SignData [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 0D 01 02 [10:10:45]Write to MH i2c: E2 08 00 64 2A 80 0D 01 02 00 00 00 00 07 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [10:10:45]RAPDU: 90 00 [10:10:45]wFMCommunicate OK [10:10:45]wFMCommunicate request_size=255 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A8 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 14 03 00 35 04 06 00 8D [10:10:45]Write to MH i2c: E2 02 01 65 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A8 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 14 03 00 35 04 06 00 8D 00 00 50 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [10:10:45]RAPDU: 90 00 [10:10:45]wFMCommunicate OK [10:10:45]wFMCommunicate request_size=10 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 0D 02 02 05 2D D0 16 CD EE [10:10:45]Write to MH i2c: E2 0D 00 66 2A 80 0D 02 02 05 00 2D D0 16 CD EE 00 00 E2 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 03 00 66 2A 00 90 00 04 [10:10:45]RAPDU: 90 00 [10:10:45]wFMCommunicate OK [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 0D 03 02 [10:10:45]Write to MH i2c: E2 08 00 67 2A 80 0D 03 02 00 00 00 00 0C [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:45]OFD Sender: No OFD packet to send [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 0B 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 0B 00 67 2A 00 12 7B AE D0 C1 92 9D 01 90 00 09 [10:10:45]RAPDU: 12 7B AE D0 C1 92 9D 01 90 00 [10:10:45]wFMCommunicate OK [10:10:45]SAM_PROTO_SignData done [10:10:45]FM_MakeSignedData done [10:10:45]CreateOFDProtocolMessage [10:10:45]wFMCommunicate request_size=4 [10:10:45]MH_SAM_APDU [10:10:45]CAPDU: 80 11 00 00 [10:10:45]Write to MH i2c: E2 08 00 68 2A 80 11 00 00 00 00 00 00 0C [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:45]Read from MH i2c: E2 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 17 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: E2 17 00 68 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [10:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:10:45]wFMCommunicate OK [10:10:45]CreateOFDProtocolMessage done [10:10:45]OFDSenderStorePacket 201831 [10:10:45]StoreOFDPacket docnum=201831 [10:10:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 28 65 07 01 AD 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A8 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 14 03 00 35 04 06 00 8D 2D D0 16 CD EE 12 7B AE D0 C1 92 9D 01 [10:10:45]CheckFolder [10:10:45]dirname=/storage/ofd_packets [10:10:45]CheckFolder done [10:10:45]ProducePacketName [10:10:45]name=ofd_packets/00201831 [10:10:45]NVStorageSaveData ofd_packets/00201831 [10:10:45]File name is /storage/ofd_packets/00201831 [10:10:45]Write 301 bytes [10:10:45]NVStorageSaveData done [10:10:45]OFDSenderStorePacket done [10:10:45]KKMCreateOFDPacket done [10:10:45]NVStorageSaveData kkm_last_timestamp [10:10:45]File name is /storage/kkm_last_timestamp [10:10:45]Write 4 bytes [10:10:45]NVStorageSaveData done [10:10:45]ExternCall_PrintAddStr [10:10:45]wPrintStart [10:10:45]Write to MH i2c: 01 00 00 69 2A 93 [10:10:45]Write i2c OK [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 [10:10:45]MH_I2C_Read... [10:10:45]Read from MH i2c: 01 07 00 69 2A 00 00 00 00 00 FF 0F A8 [10:10:45]RasterBufferAndPrint [10:10:45]line Счет N : (1)449590 [10:10:45]line ИНН: 02508201610067 [10:10:45]line Контрольно-Кассовый Чек [10:10:45]line ПРОДАЖА [10:10:45]line ТРК (МРК, ГНК) : 41 [10:10:45]line Товар: 2710124130 [10:10:45]line Аи-92-К-2 [10:10:45]line 5.980 * 66.90 [10:10:45]line = 400.06 [10:10:45]line НДС 12% НСП 1% [10:10:45]line > о реализуемом товаре [10:10:45]line ОКРУГЛЕНИЕ: -0.06 [10:10:45]line ИТОГО: 400.00 [10:10:45]line Внесено: 400.00 [10:10:45]line СДАЧА: 0.00 [10:10:45]line НСП 1% : 3.54 [10:10:45]line НДС 12% : 42.48 [10:10:45]line Наличными: 400.00 [10:10:45]line Безнал.: 0.00 [10:10:45]line Место: АЗС № 171 "Партнер Нефть" [10:10:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:10:45]line СНО: Общий режим [10:10:45]line Чек 123 27.10.2024 10:10 [10:10:45]line Смена: 544 ФФД: 1.0 [10:10:45]line ЗНМ: 0300000109 [10:10:45]line РНМ: 0000000000091777 [10:10:45]line Версия ККМ: 001 [10:10:45]line ФМ: 0000000000871756 [10:10:45]line ФД: 201831 [10:10:45]line ФПД: 155227904200174 [10:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101048&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201831&fm=155227904200174&tin=02508201610067®Number=0000000000091777&sum=40000 [10:10:46]OFD Sender: Processing packet 201831 [packets to send 112, broken 111] [10:10:46]ProducePacketName [10:10:46]name=ofd_packets/00201831 [10:10:46]OFD Sender: To server: pG, [10:10:46]CommunicateWithHost lk.salyk.kg:30040 [10:10:46]ConnectInit lk.salyk.kg [10:10:46]written 0, free lines is 4095 [10:10:46]Connected sock=10 [10:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 28 65 07 01 AD 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 A8 11 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 14 03 00 35 04 06 00 8D 2D D0 16 CD EE 12 7B AE D0 C1 92 9D 01 [10:10:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4C 37 47 00 C6 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 14 03 00 F4 03 04 00 4D BD 1D 67 B6 04 01 00 00 3E CC 3A 35 6A 69 BD 32 [10:10:46]CommunicateWithHost err = 0 [10:10:46]CheckOFDResponse [10:10:46]1017 (14) - 77093643461234 [10:10:46]1041 (16) - 0000000000871756 [10:10:46]1040 (4) - 201831 [10:10:46]1012 (4) - 27.10.2024 04:10 [10:10:46]1206 (1) - 0 [10:10:46]OFD Sender: Remove packet 201831 [10:10:46]ProducePacketName [10:10:46]name=ofd_packets/00201831 [10:10:46]NVStorageDeleteData [10:10:46]Write to MH i2c: 01 00 00 94 2A BE [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: 01 07 00 94 2A 00 00 00 00 00 A0 0C 71 [10:10:46]RasterBufferAndPrint [10:10:46]line [10:10:46]line [10:10:46]line [10:10:46]line [10:10:46]line [10:10:46]written 0, free lines is 3238 [10:10:46]MH_Cut [10:10:46]Write to MH i2c: D1 01 00 9B 2A 01 97 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: D1 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: D1 01 00 [10:10:46]MH_I2C_Read... [10:10:46]Read from MH i2c: D1 01 00 9B 2A 00 96 [10:10:46]Write to MH i2c: 01 00 00 9C 2A C6 [10:10:46]Write i2c OK [10:10:46]MH_I2C_Read... [10:10:46]OFD Sender: No OFD packet to send [10:10:47]*** Cut start [10:10:47]*** Purtial cut [10:10:47]*** Stage 1: CUTSNS_PIN = 1 [10:10:47]Read from MH i2c: 01 [10:10:47]MH_I2C_Read... [10:10:47]*** Stop cut motor [10:10:47]*** Cut end [10:10:47]Read from MH i2c: 01 07 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: 01 07 00 9C 2A 00 00 00 00 00 FF 0F DB [10:10:47]process_action close_receipt done [10:10:47]requested_data is exist [10:10:47]produce_requested_data [10:10:47]requested_item fm.sn is exist - process it [10:10:47]wFMCommunicate request_size=4 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 11 00 00 [10:10:47]Write to MH i2c: E2 08 00 9D 2A 80 11 00 00 00 00 00 00 41 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 17 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 17 00 9D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 96 [10:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:10:47]wFMCommunicate OK [10:10:47]requested_item fd.num is exist - process it [10:10:47]SAM_PROTO_GetFieldsCounters [10:10:47]wFMCommunicate request_size=4 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 13 00 00 [10:10:47]Write to MH i2c: E2 08 00 9E 2A 80 13 00 00 00 00 00 00 44 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 62 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 62 00 9E 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 67 14 03 00 0E 04 04 00 20 02 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 7E [10:10:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 67 14 03 00 0E 04 04 00 20 02 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 [10:10:47]wFMCommunicate OK [10:10:47]SAM_PROTO_GetFieldsCounters done [10:10:47]requested_item shift.num is exist - process it [10:10:47]requested_item shift.opened is exist - process it [10:10:47]req_shift_opened [10:10:47]FM_GetShiftState [10:10:47]SAM_PROTO_GetShiftState [10:10:47]wFMCommunicate request_size=4 [10:10:47]MH_SAM_APDU [10:10:47]CAPDU: 80 13 01 00 [10:10:47]Write to MH i2c: E2 08 00 9F 2A 80 13 01 00 00 00 00 00 46 [10:10:47]Write i2c OK [10:10:47]MH_I2C_Read... [10:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:47]Read from MH i2c: E2 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 0E 00 [10:10:47]MH_I2C_Read... [10:10:47]Read from MH i2c: E2 0E 00 9F 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 48 [10:10:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:10:47]wFMCommunicate OK [10:10:47]SAM_PROTO_GetShiftState done [10:10:47]FM_GetShiftState done [10:10:47]req_shift_opened done [10:10:47]requested_item shift.open_date is exist - process it [10:10:47]req_shift_open_date [10:10:47]req_shift_open_date done [10:10:47]produce_requested_data done [10:10:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201831,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:10:47]process_action_free close_receipt [10:10:47]json_value_free [10:10:47]json_value_free done [10:10:47]process_json_proto returns [10:10:47]Send response to host [10:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201831,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:10:47]free response buf [10:10:47]execute_script done [10:10:47]execute_script returns [10:10:47]free content buf [10:10:47]Sock 8.Close socket [10:10:47]Sock 8.Thread stoped [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:27]accept exits with 9 [10:14:27]New connection [10:14:27]New thread 3066936676 created [10:14:27]Thread 3067080036 joined [10:14:27]Waiting for new connection... [10:14:27] Sock 9.Parse request [10:14:27]Sock 9.Check first char [10:14:27]Sock 9.First char is OK [10:14:27]request: POST /json_proto HTTP/1.0 [10:14:27]Method: POST [10:14:27]URL: /json_proto [10:14:27]Method is POST - this is cgi request [10:14:27]url: /json_proto [10:14:27]query_string will be loaded in cgi processing [10:14:27]execute_cgi json_proto POST (null) [10:14:27]execute_cgi path=json_proto method=POST [10:14:27]POST find Content-Length [10:14:27]Host: 172.17.63.195:8080 [10:14:27]Content-Length: 670 [10:14:27]Content-Type: application/json [10:14:27] [10:14:27]POST finish read [10:14:27]Found Content-Length = 670 [10:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449591", "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" : 6.290, "sum" : 430.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:27]execute_script... [10:14: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)449591", "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" : 6.290, "sum" : 430.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 430.00, "total" : 430.00, "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:27]POST & json_proto [10:14:27]process_json_proto [10:14:27]json parsed OK: [10:14:27]protocol is kg_v1.0 [10:14:27]action value=close_receipt [10:14:27]process_action close_receipt [10:14:27]cmd_close_receipt [10:14:27]MH_GetDate [10:14:27]Write to MH i2c: F0 00 00 A0 2A B9 [10:14:27]Write i2c OK [10:14:27]MH_I2C_Read... [10:14:27]Read from MH i2c: F0 [10:14:27]MH_I2C_Read... [10:14:27]Read from MH i2c: F0 09 00 [10:14:27]MH_I2C_Read... [10:14:27]Read from MH i2c: F0 09 00 A0 2A 00 87 12 1E 67 68 46 19 67 0E [10:14:27]GetLastDocTimeStamp 1730023848 [10:14:27]current date 1730024071 [10:14:27]FM_GetShiftState [10:14:27]SAM_PROTO_GetShiftState [10:14:27]wFMCommunicate request_size=4 [10:14:27]MH_SAM_APDU [10:14:27]CAPDU: 80 13 01 00 [10:14:27]Write to MH i2c: E2 08 00 A1 2A 80 13 01 00 00 00 00 00 48 [10:14:27]Write i2c OK [10:14:27]MH_I2C_Read... [10:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:27]Read from MH i2c: E2 [10:14:27]MH_I2C_Read... [10:14:27]Read from MH i2c: E2 0E 00 [10:14:27]MH_I2C_Read... [10:14:27]Read from MH i2c: E2 0E 00 A1 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4A [10:14:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:14:27]wFMCommunicate OK [10:14:27]SAM_PROTO_GetShiftState done [10:14:27]FM_GetShiftState done [10:14:27]opened in 1729987312 [10:14:27]opened+sec_in_day 1730073712 [10:14:27]quantity*price = 43023 [10:14:27]sum+1 = 43025 [10:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 430.00 Внесено: 430.00 СДАЧА: 0.00 НСП 1% : 3.81 НДС 12% : 45.69 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 124 27.10.2024 10:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201832 ФПД: 83421031172532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101431&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201832&fm=83421031172532&tin=02508201610067®Number=0000000000091777&sum=43000 [10:14:28]StoreToDocumentArchive [10:14:28]shift 544 fd 201832 [10:14:28]save to /storage/0544/doc_00201832 [10:14:28]save last doc name /storage/0544/doc_00201832 to /storage/kkm_last_doc_name [10:14:28]save OK [10:14:28]Clear old archive folders... [10:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:14:28]tlvbuf is B6F74360 [10:14:28]SAM_PROTO_ClearQueue [10:14:28]wFMCommunicate request_size=4 [10:14:28]MH_SAM_APDU [10:14:28]CAPDU: 80 09 00 00 [10:14:28]Write to MH i2c: E2 08 00 AE 2A 80 09 00 00 00 00 00 00 4A [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:28]Read from MH i2c: E2 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 03 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [10:14:28]RAPDU: 90 00 [10:14:28]wFMCommunicate OK [10:14:28]SAM_PROTO_ClearQueue done [10:14:28]KKMCreateOFDPacket [10:14:28]OFDProtocolAddRootSTLVToBuf [10:14:28]FM_MakeSignedData [10:14:28]FM_MakeSignedData [10:14:28]SAM_PROTO_SignData [10:14:28]wFMCommunicate request_size=4 [10:14:28]MH_SAM_APDU [10:14:28]CAPDU: 80 0D 01 02 [10:14:28]Write to MH i2c: E2 08 00 AF 2A 80 0D 01 02 00 00 00 00 52 [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:28]Read from MH i2c: E2 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 03 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [10:14:28]RAPDU: 90 00 [10:14:28]wFMCommunicate OK [10:14:28]wFMCommunicate request_size=255 [10:14:28]MH_SAM_APDU [10:14: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 18 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 10 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 11 00 00 00 00 07 04 06 00 F8 A7 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 87 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 14 03 00 35 04 06 00 [10:14:28]Write to MH i2c: E2 02 01 B0 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 18 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 10 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 11 00 00 00 00 07 04 06 00 F8 A7 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 87 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 14 03 00 35 04 06 00 00 00 16 [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [10:14:29]RAPDU: 90 00 [10:14:29]wFMCommunicate OK [10:14:29]wFMCommunicate request_size=11 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 0D 02 02 06 4B DE F8 EE 09 B4 [10:14:29]Write to MH i2c: E2 0E 00 B1 2A 80 0D 02 02 06 00 4B DE F8 EE 09 B4 00 00 2D [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 B1 2A 00 90 00 4F [10:14:29]RAPDU: 90 00 [10:14:29]wFMCommunicate OK [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 0D 03 02 [10:14:29]Write to MH i2c: E2 08 00 B2 2A 80 0D 03 02 00 00 00 00 57 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 0B 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 0B 00 B2 2A 00 93 D6 7C A5 11 00 F3 5A 90 00 40 [10:14:29]RAPDU: 93 D6 7C A5 11 00 F3 5A 90 00 [10:14:29]wFMCommunicate OK [10:14:29]SAM_PROTO_SignData done [10:14:29]FM_MakeSignedData done [10:14:29]CreateOFDProtocolMessage [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 11 00 00 [10:14:29]Write to MH i2c: E2 08 00 B3 2A 80 11 00 00 00 00 00 00 57 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 17 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 17 00 B3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AC [10:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:14:29]wFMCommunicate OK [10:14:29]CreateOFDProtocolMessage done [10:14:29]OFDSenderStorePacket 201832 [10:14:29]StoreOFDPacket docnum=201832 [10:14:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E9 B8 08 01 F5 F1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 18 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 10 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 11 00 00 00 00 07 04 06 00 F8 A7 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 87 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 14 03 00 35 04 06 00 4B DE F8 EE 09 B4 93 D6 7C A5 11 00 F3 5A [10:14:29]CheckFolder [10:14:29]dirname=/storage/ofd_packets [10:14:29]CheckFolder done [10:14:29]ProducePacketName [10:14:29]name=ofd_packets/00201832 [10:14:29]NVStorageSaveData ofd_packets/00201832 [10:14:29]File name is /storage/ofd_packets/00201832 [10:14:29]Write 302 bytes [10:14:29]NVStorageSaveData done [10:14:29]OFDSenderStorePacket done [10:14:29]KKMCreateOFDPacket done [10:14:29]NVStorageSaveData kkm_last_timestamp [10:14:29]File name is /storage/kkm_last_timestamp [10:14:29]Write 4 bytes [10:14:29]NVStorageSaveData done [10:14:29]ExternCall_PrintAddStr [10:14:29]wPrintStart [10:14:29]Write to MH i2c: 01 00 00 B4 2A DE [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: 01 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: 01 07 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: 01 07 00 B4 2A 00 00 00 00 00 FF 0F F3 [10:14:29]RasterBufferAndPrint [10:14:29]line Счет N : (1)449591 [10:14:29]line ИНН: 02508201610067 [10:14:29]line Контрольно-Кассовый Чек [10:14:29]line ПРОДАЖА [10:14:29]line ТРК (МРК, ГНК) : 53 [10:14:29]line Товар: 2710124130 [10:14:29]line SUPER 92-К-5 [10:14:29]line 6.290 * 68.40 [10:14:29]line = 430.24 [10:14:29]line НДС 12% НСП 1% [10:14:29]line > о реализуемом товаре [10:14:29]line ОКРУГЛЕНИЕ: -0.24 [10:14:29]line ИТОГО: 430.00 [10:14:29]line Внесено: 430.00 [10:14:29]line СДАЧА: 0.00 [10:14:29]line НСП 1% : 3.81 [10:14:29]line НДС 12% : 45.69 [10:14:29]line Наличными: 430.00 [10:14:29]line Безнал.: 0.00 [10:14:29]line Место: АЗС № 171 "Партнер Нефть" [10:14:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:14:29]line СНО: Общий режим [10:14:29]line Чек 124 27.10.2024 10:14 [10:14:29]line Смена: 544 ФФД: 1.0 [10:14:29]line ЗНМ: 0300000109 [10:14:29]line РНМ: 0000000000091777 [10:14:29]line Версия ККМ: 001 [10:14:29]line ФМ: 0000000000871756 [10:14:29]line ФД: 201832 [10:14:29]line ФПД: 83421031172532 [10:14:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101431&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201832&fm=83421031172532&tin=02508201610067®Number=0000000000091777&sum=43000 [10:14:29]OFD Sender: Processing packet 201832 [packets to send 112, broken 111] [10:14:29]ProducePacketName [10:14:29]name=ofd_packets/00201832 [10:14:29]OFD Sender: To server: pG, [10:14:29]CommunicateWithHost lk.salyk.kg:30040 [10:14:29]ConnectInit lk.salyk.kg [10:14:29]written 0, free lines is 4095 [10:14:29]Connected sock=10 [10:14:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E9 B8 08 01 F5 F1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 18 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 10 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 11 00 00 00 00 07 04 06 00 F8 A7 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 87 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 14 03 00 35 04 06 00 4B DE F8 EE 09 B4 93 D6 7C A5 11 00 F3 5A [10:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D5 20 47 00 9F 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 14 03 00 F4 03 04 00 2C BE 1D 67 B6 04 01 00 00 6F CE 31 E4 04 F3 99 18 [10:14:29]CommunicateWithHost err = 0 [10:14:29]CheckOFDResponse [10:14:29]1017 (14) - 77093643461234 [10:14:29]1041 (16) - 0000000000871756 [10:14:29]1040 (4) - 201832 [10:14:29]1012 (4) - 27.10.2024 04:14 [10:14:29]1206 (1) - 0 [10:14:29]OFD Sender: Remove packet 201832 [10:14:29]ProducePacketName [10:14:29]name=ofd_packets/00201832 [10:14:29]NVStorageDeleteData [10:14:29]Write to MH i2c: 01 00 00 DF 2A 09 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: 01 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: 01 07 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: 01 07 00 DF 2A 00 00 00 00 00 91 0C AD [10:14:29]RasterBufferAndPrint [10:14:29]line [10:14:29]line [10:14:29]line [10:14:29]line [10:14:29]line [10:14:29]written 0, free lines is 3221 [10:14:29]MH_Cut [10:14:29]Write to MH i2c: D1 01 00 E6 2A 01 E2 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: D1 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: D1 01 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: D1 01 00 E6 2A 00 E1 [10:14:29]Write to MH i2c: 01 00 00 E7 2A 11 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:30]OFD Sender: No OFD packet to send [10:14:30]*** Cut start [10:14:30]*** Purtial cut [10:14:30]*** Stage 1: CUTSNS_PIN = 1 [10:14:30]Read from MH i2c: 01 [10:14:30]MH_I2C_Read... [10:14:30]*** Stop cut motor [10:14:30]*** Cut end [10:14:30]Read from MH i2c: 01 07 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 07 00 E7 2A 00 00 00 00 00 FF 0F 26 [10:14:30]process_action close_receipt done [10:14:30]requested_data is exist [10:14:30]produce_requested_data [10:14:30]requested_item fm.sn is exist - process it [10:14:30]wFMCommunicate request_size=4 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 11 00 00 [10:14:30]Write to MH i2c: E2 08 00 E8 2A 80 11 00 00 00 00 00 00 8C [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 17 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 17 00 E8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [10:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:14:30]wFMCommunicate OK [10:14:30]requested_item fd.num is exist - process it [10:14:30]SAM_PROTO_GetFieldsCounters [10:14:30]wFMCommunicate request_size=4 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 13 00 00 [10:14:30]Write to MH i2c: E2 08 00 E9 2A 80 13 00 00 00 00 00 00 8F [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 62 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 62 00 E9 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 68 14 03 00 0E 04 04 00 20 02 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 CD [10:14:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 68 14 03 00 0E 04 04 00 20 02 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 [10:14:31]wFMCommunicate OK [10:14:31]SAM_PROTO_GetFieldsCounters done [10:14:31]requested_item shift.num is exist - process it [10:14:31]requested_item shift.opened is exist - process it [10:14:31]req_shift_opened [10:14:31]FM_GetShiftState [10:14:31]SAM_PROTO_GetShiftState [10:14:31]wFMCommunicate request_size=4 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 13 01 00 [10:14:31]Write to MH i2c: E2 08 00 EA 2A 80 13 01 00 00 00 00 00 91 [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 0E 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 0E 00 EA 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 93 [10:14:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:14:31]wFMCommunicate OK [10:14:31]SAM_PROTO_GetShiftState done [10:14:31]FM_GetShiftState done [10:14:31]req_shift_opened done [10:14:31]requested_item shift.open_date is exist - process it [10:14:31]req_shift_open_date [10:14:31]req_shift_open_date done [10:14:31]produce_requested_data done [10:14:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201832,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:14:31]process_action_free close_receipt [10:14:31]json_value_free [10:14:31]json_value_free done [10:14:31]process_json_proto returns [10:14:31]Send response to host [10:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201832,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:14:31]free response buf [10:14:31]execute_script done [10:14:31]execute_script returns [10:14:31]free content buf [10:14:31]Sock 9.Close socket [10:14:31]Sock 9.Thread stoped [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:14:57]accept exits with 8 [10:14:57]New connection [10:14:57]New thread 3067080036 created [10:14:57]Thread 3066936676 joined [10:14:57]Waiting for new connection... [10:14:57] Sock 8.Parse request [10:14:57]Sock 8.Check first char [10:14:57]Sock 8.First char is OK [10:14:57]request: POST /json_proto HTTP/1.0 [10:14:57]Method: POST [10:14:57]URL: /json_proto [10:14:57]Method is POST - this is cgi request [10:14:57]url: /json_proto [10:14:57]query_string will be loaded in cgi processing [10:14:57]execute_cgi json_proto POST (null) [10:14:57]execute_cgi path=json_proto method=POST [10:14:57]POST find Content-Length [10:14:57]Host: 172.17.63.195:8080 [10:14:57]Content-Length: 677 [10:14:57]Content-Type: application/json [10:14:57] [10:14:57]POST finish read [10:14:57]Found Content-Length = 677 [10:14:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:57]execute_script... [10:14: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)449592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:57]POST & json_proto [10:14:57]process_json_proto [10:14:57]json parsed OK: [10:14:57]protocol is kg_v1.0 [10:14:57]action value=close_receipt [10:14:57]process_action close_receipt [10:14:57]cmd_close_receipt [10:14:57]MH_GetDate [10:14:57]Write to MH i2c: F0 00 00 EB 2A 04 [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: F0 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: F0 09 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: F0 09 00 EB 2A 00 A5 12 1E 67 68 46 19 67 77 [10:14:57]GetLastDocTimeStamp 1730024071 [10:14:57]current date 1730024101 [10:14:57]FM_GetShiftState [10:14:57]SAM_PROTO_GetShiftState [10:14:57]wFMCommunicate request_size=4 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 13 01 00 [10:14:57]Write to MH i2c: E2 08 00 EC 2A 80 13 01 00 00 00 00 00 93 [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 0E 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 0E 00 EC 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 95 [10:14:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:14:57]wFMCommunicate OK [10:14:57]SAM_PROTO_GetShiftState done [10:14:57]FM_GetShiftState done [10:14:57]opened in 1729987312 [10:14:57]opened+sec_in_day 1730073712 [10:14:57]quantity*price = 30038 [10:14:57]sum+1 = 30039 [10:14:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 125 27.10.2024 10:15 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201833 ФПД: 8523312727054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101501&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201833&fm=8523312727054&tin=02508201610067®Number=0000000000091777&sum=30000 [10:14:58]StoreToDocumentArchive [10:14:58]shift 544 fd 201833 [10:14:58]save to /storage/0544/doc_00201833 [10:14:58]save last doc name /storage/0544/doc_00201833 to /storage/kkm_last_doc_name [10:14:58]save OK [10:14:58]Clear old archive folders... [10:14:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:58]tlvbuf is 000E20A0 [10:14:58]SAM_PROTO_ClearQueue [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 09 00 00 [10:14:58]Write to MH i2c: E2 08 00 F9 2A 80 09 00 00 00 00 00 00 95 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 F9 2A 00 90 00 97 [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]SAM_PROTO_ClearQueue done [10:14:58]KKMCreateOFDPacket [10:14:58]OFDProtocolAddRootSTLVToBuf [10:14:58]FM_MakeSignedData [10:14:58]FM_MakeSignedData [10:14:58]SAM_PROTO_SignData [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 01 02 [10:14:58]Write to MH i2c: E2 08 00 FA 2A 80 0D 01 02 00 00 00 00 9D [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 FA 2A 00 90 00 98 [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]wFMCommunicate request_size=255 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7D 00 00 00 F4 03 04 00 A5 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 14 03 00 35 04 06 00 07 [10:14:58]Write to MH i2c: E2 02 01 FB 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7D 00 00 00 F4 03 04 00 A5 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 14 03 00 35 04 06 00 07 00 00 87 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 FB 2A 00 90 00 99 [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]wFMCommunicate request_size=10 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 02 02 05 C0 7D 07 04 0E [10:14:58]Write to MH i2c: E2 0D 00 FC 2A 80 0D 02 02 05 00 C0 7D 07 04 0E 00 00 00 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 FC 2A 00 90 00 9A [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 03 02 [10:14:58]Write to MH i2c: E2 08 00 FD 2A 80 0D 03 02 00 00 00 00 A2 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 0B 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 0B 00 FD 2A 00 87 8A FF 50 1D 7A CD 9F 90 00 06 [10:14:58]RAPDU: 87 8A FF 50 1D 7A CD 9F 90 00 [10:14:58]wFMCommunicate OK [10:14:58]SAM_PROTO_SignData done [10:14:58]FM_MakeSignedData done [10:14:58]CreateOFDProtocolMessage [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 11 00 00 [10:14:58]Write to MH i2c: E2 08 00 FE 2A 80 11 00 00 00 00 00 00 A2 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 FE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F7 [10:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:14:58]wFMCommunicate OK [10:14:58]CreateOFDProtocolMessage done [10:14:58]OFDSenderStorePacket 201833 [10:14:58]StoreOFDPacket docnum=201833 [10:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 18 07 01 56 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7D 00 00 00 F4 03 04 00 A5 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 14 03 00 35 04 06 00 07 C0 7D 07 04 0E 87 8A FF 50 1D 7A CD 9F [10:14:58]CheckFolder [10:14:58]dirname=/storage/ofd_packets [10:14:58]CheckFolder done [10:14:58]ProducePacketName [10:14:58]name=ofd_packets/00201833 [10:14:58]NVStorageSaveData ofd_packets/00201833 [10:14:58]File name is /storage/ofd_packets/00201833 [10:14:58]Write 301 bytes [10:14:58]NVStorageSaveData done [10:14:58]OFDSenderStorePacket done [10:14:58]KKMCreateOFDPacket done [10:14:58]NVStorageSaveData kkm_last_timestamp [10:14:58]File name is /storage/kkm_last_timestamp [10:14:58]Write 4 bytes [10:14:58]NVStorageSaveData done [10:14:58]ExternCall_PrintAddStr [10:14:58]wPrintStart [10:14:58]Write to MH i2c: 01 00 00 FF 2A 29 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 FF 2A 00 00 00 00 00 FF 0F 3E [10:14:58]RasterBufferAndPrint [10:14:58]line Счет N : (1)449592 [10:14:58]line ИНН: 02508201610067 [10:14:58]line Контрольно-Кассовый Чек [10:14:58]line ПРОДАЖА [10:14:58]line ТРК (МРК, ГНК) : 41 [10:14:58]line Товар: 2710124130 [10:14:58]line Аи-92-К-2 [10:14:58]line 4.490 * 66.90 [10:14:58]line = 300.38 [10:14:58]line НДС 12% НСП 1% [10:14:58]line > о реализуемом товаре [10:14:58]line ОКРУГЛЕНИЕ: -0.38 [10:14:58]line ИТОГО: 300.00 [10:14:58]line Внесено: 300.00 [10:14:58]line СДАЧА: 0.00 [10:14:58]line НСП 1% : 2.66 [10:14:58]line НДС 12% : 31.90 [10:14:58]line Наличными: 300.00 [10:14:58]line Безнал.: 0.00 [10:14:58]line Место: АЗС № 171 "Партнер Нефть" [10:14:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:14:58]line СНО: Общий режим [10:14:58]line Чек 125 27.10.2024 10:15 [10:14:58]line Смена: 544 ФФД: 1.0 [10:14:58]line ЗНМ: 0300000109 [10:14:58]line РНМ: 0000000000091777 [10:14:58]line Версия ККМ: 001 [10:14:58]line ФМ: 0000000000871756 [10:14:58]line ФД: 201833 [10:14:58]line ФПД: 8523312727054 [10:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101501&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201833&fm=8523312727054&tin=02508201610067®Number=0000000000091777&sum=30000 [10:14:59]OFD Sender: Processing packet 201833 [packets to send 112, broken 111] [10:14:59]ProducePacketName [10:14:59]name=ofd_packets/00201833 [10:14:59]OFD Sender: To server: pG, [10:14:59]CommunicateWithHost lk.salyk.kg:30040 [10:14:59]ConnectInit lk.salyk.kg [10:14:59]written 0, free lines is 4095 [10:14:59]Connected sock=10 [10:14:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 18 07 01 56 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7D 00 00 00 F4 03 04 00 A5 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 14 03 00 35 04 06 00 07 C0 7D 07 04 0E 87 8A FF 50 1D 7A CD 9F [10:14:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F4 51 47 00 D9 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 14 03 00 F4 03 04 00 4A BE 1D 67 B6 04 01 00 00 BD 83 CD F4 E6 FB 91 C7 [10:14:59]CommunicateWithHost err = 0 [10:14:59]CheckOFDResponse [10:14:59]1017 (14) - 77093643461234 [10:14:59]1041 (16) - 0000000000871756 [10:14:59]1040 (4) - 201833 [10:14:59]1012 (4) - 27.10.2024 04:15 [10:14:59]1206 (1) - 0 [10:14:59]OFD Sender: Remove packet 201833 [10:14:59]ProducePacketName [10:14:59]name=ofd_packets/00201833 [10:14:59]NVStorageDeleteData [10:14:59]Write to MH i2c: 01 00 00 2A 2B 55 [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: 01 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: 01 07 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: 01 07 00 2A 2B 00 00 00 00 00 97 0C FF [10:14:59]RasterBufferAndPrint [10:14:59]line [10:14:59]line [10:14:59]line [10:14:59]line [10:14:59]line [10:14:59]written 0, free lines is 3227 [10:14:59]MH_Cut [10:14:59]Write to MH i2c: D1 01 00 31 2B 01 2E [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: D1 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: D1 01 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: D1 01 00 31 2B 00 2D [10:14:59]Write to MH i2c: 01 00 00 32 2B 5D [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]OFD Sender: No OFD packet to send [10:15:00]*** Cut start [10:15:00]*** Purtial cut [10:15:00]*** Stage 1: CUTSNS_PIN = 1 [10:15:00]Read from MH i2c: 01 [10:15:00]MH_I2C_Read... [10:15:00]*** Stop cut motor [10:15:00]*** Cut end [10:15:00]Read from MH i2c: 01 07 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: 01 07 00 32 2B 00 00 00 00 00 FF 0F 72 [10:15:00]process_action close_receipt done [10:15:00]requested_data is exist [10:15:00]produce_requested_data [10:15:00]requested_item fm.sn is exist - process it [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 11 00 00 [10:15:00]Write to MH i2c: E2 08 00 33 2B 80 11 00 00 00 00 00 00 D8 [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 17 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 17 00 33 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2D [10:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:15:00]wFMCommunicate OK [10:15:00]requested_item fd.num is exist - process it [10:15:00]SAM_PROTO_GetFieldsCounters [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 13 00 00 [10:15:00]Write to MH i2c: E2 08 00 34 2B 80 13 00 00 00 00 00 00 DB [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 62 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 62 00 34 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 69 14 03 00 0E 04 04 00 20 02 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 1D [10:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 69 14 03 00 0E 04 04 00 20 02 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 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_GetFieldsCounters done [10:15:00]requested_item shift.num is exist - process it [10:15:00]requested_item shift.opened is exist - process it [10:15:00]req_shift_opened [10:15:00]FM_GetShiftState [10:15:00]SAM_PROTO_GetShiftState [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 13 01 00 [10:15:00]Write to MH i2c: E2 08 00 35 2B 80 13 01 00 00 00 00 00 DD [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 0E 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 0E 00 35 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DF [10:15:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_GetShiftState done [10:15:00]FM_GetShiftState done [10:15:00]req_shift_opened done [10:15:00]requested_item shift.open_date is exist - process it [10:15:00]req_shift_open_date [10:15:00]req_shift_open_date done [10:15:00]produce_requested_data done [10:15:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201833,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:15:00]process_action_free close_receipt [10:15:00]json_value_free [10:15:00]json_value_free done [10:15:00]process_json_proto returns [10:15:00]Send response to host [10:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201833,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:15:00]free response buf [10:15:00]execute_script done [10:15:00]execute_script returns [10:15:00]free content buf [10:15:00]Sock 8.Close socket [10:15:00]Sock 8.Thread stoped [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:05]accept exits with 9 [10:16:05]New connection [10:16:05]New thread 3066936676 created [10:16:05]Thread 3067080036 joined [10:16:05]Waiting for new connection... [10:16:05] Sock 9.Parse request [10:16:05]Sock 9.Check first char [10:16:05]Sock 9.First char is OK [10:16:05]request: POST /json_proto HTTP/1.0 [10:16:05]Method: POST [10:16:05]URL: /json_proto [10:16:05]Method is POST - this is cgi request [10:16:05]url: /json_proto [10:16:05]query_string will be loaded in cgi processing [10:16:05]execute_cgi json_proto POST (null) [10:16:05]execute_cgi path=json_proto method=POST [10:16:05]POST find Content-Length [10:16:05]Host: 172.17.63.195:8080 [10:16:05]Content-Length: 632 [10:16:05]Content-Type: application/json [10:16:05] [10:16:05]POST finish read [10:16:05]Found Content-Length = 632 [10:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [10:16:05]execute_script... [10:16: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)449593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [10:16:05]POST & json_proto [10:16:05]process_json_proto [10:16:05]json parsed OK: [10:16:05]protocol is kg_v1.0 [10:16:05]action value=close_receipt [10:16:05]process_action close_receipt [10:16:05]cmd_close_receipt [10:16:05]MH_GetDate [10:16:05]Write to MH i2c: F0 00 00 36 2B 50 [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: F0 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: F0 09 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: F0 09 00 36 2B 00 E9 12 1E 67 68 46 19 67 07 [10:16:05]GetLastDocTimeStamp 1730024101 [10:16:05]current date 1730024169 [10:16:05]FM_GetShiftState [10:16:05]SAM_PROTO_GetShiftState [10:16:05]wFMCommunicate request_size=4 [10:16:05]MH_SAM_APDU [10:16:05]CAPDU: 80 13 01 00 [10:16:05]Write to MH i2c: E2 08 00 37 2B 80 13 01 00 00 00 00 00 DF [10:16:05]Write i2c OK [10:16:05]MH_I2C_Read... [10:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:05]Read from MH i2c: E2 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 0E 00 [10:16:05]MH_I2C_Read... [10:16:05]Read from MH i2c: E2 0E 00 37 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E1 [10:16:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:16:05]wFMCommunicate OK [10:16:05]SAM_PROTO_GetShiftState done [10:16:05]FM_GetShiftState done [10:16:05]opened in 1729987312 [10:16:05]opened+sec_in_day 1730073712 [10:16:05]quantity*price = 50000 [10:16:05]sum+1 = 50001 [10:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 126 27.10.2024 10:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201834 ФПД: 4291253036013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101609&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201834&fm=4291253036013&tin=02508201610067®Number=0000000000091777&sum=50000 [10:16:06]StoreToDocumentArchive [10:16:06]shift 544 fd 201834 [10:16:06]save to /storage/0544/doc_00201834 [10:16:06]save last doc name /storage/0544/doc_00201834 to /storage/kkm_last_doc_name [10:16:06]save OK [10:16:06]Clear old archive folders... [10:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:16:06]tlvbuf is 000C8630 [10:16:06]SAM_PROTO_ClearQueue [10:16:06]wFMCommunicate request_size=4 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 09 00 00 [10:16:06]Write to MH i2c: E2 08 00 44 2B 80 09 00 00 00 00 00 00 E1 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 44 2B 00 90 00 E3 [10:16:06]RAPDU: 90 00 [10:16:06]wFMCommunicate OK [10:16:06]SAM_PROTO_ClearQueue done [10:16:06]KKMCreateOFDPacket [10:16:06]OFDProtocolAddRootSTLVToBuf [10:16:06]FM_MakeSignedData [10:16:06]FM_MakeSignedData [10:16:06]SAM_PROTO_SignData [10:16:06]wFMCommunicate request_size=4 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 0D 01 02 [10:16:06]Write to MH i2c: E2 08 00 45 2B 80 0D 01 02 00 00 00 00 E9 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 45 2B 00 90 00 E4 [10:16:06]RAPDU: 90 00 [10:16:06]wFMCommunicate OK [10:16:06]wFMCommunicate request_size=255 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 E9 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 14 03 00 35 04 06 00 [10:16:06]Write to MH i2c: E2 02 01 46 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 E9 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 14 03 00 35 04 06 00 00 00 7B [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 46 2B 00 90 00 E5 [10:16:06]RAPDU: 90 00 [10:16:06]wFMCommunicate OK [10:16:06]wFMCommunicate request_size=11 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 0D 02 02 06 03 E7 22 9C E3 ED [10:16:06]Write to MH i2c: E2 0E 00 47 2B 80 0D 02 02 06 00 03 E7 22 9C E3 ED 00 00 70 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 03 00 47 2B 00 90 00 E6 [10:16:06]RAPDU: 90 00 [10:16:06]wFMCommunicate OK [10:16:06]wFMCommunicate request_size=4 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 0D 03 02 [10:16:06]Write to MH i2c: E2 08 00 48 2B 80 0D 03 02 00 00 00 00 EE [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 0B 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 0B 00 48 2B 00 44 25 09 2E 93 26 A4 A5 90 00 91 [10:16:06]RAPDU: 44 25 09 2E 93 26 A4 A5 90 00 [10:16:06]wFMCommunicate OK [10:16:06]SAM_PROTO_SignData done [10:16:06]FM_MakeSignedData done [10:16:06]CreateOFDProtocolMessage [10:16:06]wFMCommunicate request_size=4 [10:16:06]MH_SAM_APDU [10:16:06]CAPDU: 80 11 00 00 [10:16:06]Write to MH i2c: E2 08 00 49 2B 80 11 00 00 00 00 00 00 EE [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:06]Read from MH i2c: E2 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 17 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: E2 17 00 49 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [10:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:16:06]wFMCommunicate OK [10:16:06]CreateOFDProtocolMessage done [10:16:06]OFDSenderStorePacket 201834 [10:16:06]StoreOFDPacket docnum=201834 [10:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 D0 E1 08 01 08 ED 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 E9 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 14 03 00 35 04 06 00 03 E7 22 9C E3 ED 44 25 09 2E 93 26 A4 A5 [10:16:06]CheckFolder [10:16:06]dirname=/storage/ofd_packets [10:16:06]CheckFolder done [10:16:06]ProducePacketName [10:16:06]name=ofd_packets/00201834 [10:16:06]NVStorageSaveData ofd_packets/00201834 [10:16:06]File name is /storage/ofd_packets/00201834 [10:16:06]Write 302 bytes [10:16:06]NVStorageSaveData done [10:16:06]OFDSenderStorePacket done [10:16:06]KKMCreateOFDPacket done [10:16:06]NVStorageSaveData kkm_last_timestamp [10:16:06]File name is /storage/kkm_last_timestamp [10:16:06]Write 4 bytes [10:16:06]NVStorageSaveData done [10:16:06]ExternCall_PrintAddStr [10:16:06]wPrintStart [10:16:06]Write to MH i2c: 01 00 00 4A 2B 75 [10:16:06]Write i2c OK [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 07 00 [10:16:06]MH_I2C_Read... [10:16:06]Read from MH i2c: 01 07 00 4A 2B 00 00 00 00 00 FF 0F 8A [10:16:06]RasterBufferAndPrint [10:16:06]line Счет N : (1)449593 [10:16:06]line ИНН: 02508201610067 [10:16:06]line Контрольно-Кассовый Чек [10:16:06]line ПРОДАЖА [10:16:06]line ТРК (МРК, ГНК) : 42 [10:16:06]line Товар: 2710124130 [10:16:06]line SUPER 92-К-5 [10:16:06]line 7.310 * 68.40 [10:16:06]line = 500.00 [10:16:06]line НДС 12% НСП 1% [10:16:06]line > о реализуемом товаре [10:16:06]line ИТОГО: 500.00 [10:16:06]line НСП 1% : 4.42 [10:16:06]line НДС 12% : 53.10 [10:16:06]line Наличными: 500.00 [10:16:06]line Безнал.: 0.00 [10:16:06]line Место: АЗС № 171 "Партнер Нефть" [10:16:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:16:06]line СНО: Общий режим [10:16:06]line Чек 126 27.10.2024 10:16 [10:16:06]line Смена: 544 ФФД: 1.0 [10:16:06]line ЗНМ: 0300000109 [10:16:06]line РНМ: 0000000000091777 [10:16:06]line Версия ККМ: 001 [10:16:06]line ФМ: 0000000000871756 [10:16:06]line ФД: 201834 [10:16:06]line ФПД: 4291253036013 [10:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101609&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201834&fm=4291253036013&tin=02508201610067®Number=0000000000091777&sum=50000 [10:16:07]OFD Sender: Processing packet 201834 [packets to send 112, broken 111] [10:16:07]ProducePacketName [10:16:07]name=ofd_packets/00201834 [10:16:07]OFD Sender: To server: pG, [10:16:07]CommunicateWithHost lk.salyk.kg:30040 [10:16:07]ConnectInit lk.salyk.kg [10:16:07]written 0, free lines is 4095 [10:16:07]Connected sock=10 [10:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 D0 E1 08 01 08 ED 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 E9 12 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 14 03 00 35 04 06 00 03 E7 22 9C E3 ED 44 25 09 2E 93 26 A4 A5 [10:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F 5D 47 00 91 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 14 03 00 F4 03 04 00 8E BE 1D 67 B6 04 01 00 00 58 A3 DD 76 F1 D2 1F BC [10:16:07]CommunicateWithHost err = 0 [10:16:07]CheckOFDResponse [10:16:07]1017 (14) - 77093643461234 [10:16:07]1041 (16) - 0000000000871756 [10:16:07]1040 (4) - 201834 [10:16:07]1012 (4) - 27.10.2024 04:16 [10:16:07]1206 (1) - 0 [10:16:07]OFD Sender: Remove packet 201834 [10:16:07]ProducePacketName [10:16:07]name=ofd_packets/00201834 [10:16:07]NVStorageDeleteData [10:16:07]Write to MH i2c: 01 00 00 72 2B 9D [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: 01 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: 01 07 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: 01 07 00 72 2B 00 00 00 00 00 CC 0C 7C [10:16:07]RasterBufferAndPrint [10:16:07]line [10:16:07]line [10:16:07]line [10:16:07]line [10:16:07]line [10:16:07]written 0, free lines is 3279 [10:16:07]MH_Cut [10:16:07]Write to MH i2c: D1 01 00 79 2B 01 76 [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: D1 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: D1 01 00 [10:16:07]MH_I2C_Read... [10:16:07]Read from MH i2c: D1 01 00 79 2B 00 75 [10:16:07]Write to MH i2c: 01 00 00 7A 2B A5 [10:16:07]Write i2c OK [10:16:07]MH_I2C_Read... [10:16:07]OFD Sender: No OFD packet to send [10:16:08]*** Cut start [10:16:08]*** Purtial cut [10:16:08]*** Stage 1: CUTSNS_PIN = 1 [10:16:08]Read from MH i2c: 01 [10:16:08]MH_I2C_Read... [10:16:08]*** Stop cut motor [10:16:08]*** Cut end [10:16:08]Read from MH i2c: 01 07 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: 01 07 00 7A 2B 00 00 00 00 00 FF 0F BA [10:16:08]process_action close_receipt done [10:16:08]requested_data is exist [10:16:08]produce_requested_data [10:16:08]requested_item fm.sn is exist - process it [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 11 00 00 [10:16:08]Write to MH i2c: E2 08 00 7B 2B 80 11 00 00 00 00 00 00 20 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 17 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 17 00 7B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 75 [10:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:16:08]wFMCommunicate OK [10:16:08]requested_item fd.num is exist - process it [10:16:08]SAM_PROTO_GetFieldsCounters [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 13 00 00 [10:16:08]Write to MH i2c: E2 08 00 7C 2B 80 13 00 00 00 00 00 00 23 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 62 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 62 00 7C 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6A 14 03 00 0E 04 04 00 20 02 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 69 [10:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6A 14 03 00 0E 04 04 00 20 02 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 [10:16:08]wFMCommunicate OK [10:16:08]SAM_PROTO_GetFieldsCounters done [10:16:08]requested_item shift.num is exist - process it [10:16:08]requested_item shift.opened is exist - process it [10:16:08]req_shift_opened [10:16:08]FM_GetShiftState [10:16:08]SAM_PROTO_GetShiftState [10:16:08]wFMCommunicate request_size=4 [10:16:08]MH_SAM_APDU [10:16:08]CAPDU: 80 13 01 00 [10:16:08]Write to MH i2c: E2 08 00 7D 2B 80 13 01 00 00 00 00 00 25 [10:16:08]Write i2c OK [10:16:08]MH_I2C_Read... [10:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:08]Read from MH i2c: E2 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 0E 00 [10:16:08]MH_I2C_Read... [10:16:08]Read from MH i2c: E2 0E 00 7D 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 27 [10:16:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:16:08]wFMCommunicate OK [10:16:08]SAM_PROTO_GetShiftState done [10:16:08]FM_GetShiftState done [10:16:08]req_shift_opened done [10:16:08]requested_item shift.open_date is exist - process it [10:16:08]req_shift_open_date [10:16:08]req_shift_open_date done [10:16:08]produce_requested_data done [10:16:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201834,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:16:08]process_action_free close_receipt [10:16:08]json_value_free [10:16:08]json_value_free done [10:16:08]process_json_proto returns [10:16:08]Send response to host [10:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201834,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:16:08]free response buf [10:16:08]execute_script done [10:16:08]execute_script returns [10:16:08]free content buf [10:16:08]Sock 9.Close socket [10:16:08]Sock 9.Thread stoped [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:45]accept exits with 8 [10:16:45]New connection [10:16:45]New thread 3067080036 created [10:16:45]Thread 3066936676 joined [10:16:45]Waiting for new connection... [10:16:45] Sock 8.Parse request [10:16:45]Sock 8.Check first char [10:16:45]Sock 8.First char is OK [10:16:45]request: POST /json_proto HTTP/1.0 [10:16:45]Method: POST [10:16:45]URL: /json_proto [10:16:45]Method is POST - this is cgi request [10:16:45]url: /json_proto [10:16:45]query_string will be loaded in cgi processing [10:16:45]execute_cgi json_proto POST (null) [10:16:45]execute_cgi path=json_proto method=POST [10:16:45]POST find Content-Length [10:16:45]Host: 172.17.63.195:8080 [10:16:45]Content-Length: 677 [10:16:45]Content-Type: application/json [10:16:45] [10:16:45]POST finish read [10:16:45]Found Content-Length = 677 [10:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:16:45]execute_script... [10:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:16:45]POST & json_proto [10:16:45]process_json_proto [10:16:45]json parsed OK: [10:16:45]protocol is kg_v1.0 [10:16:45]action value=close_receipt [10:16:45]process_action close_receipt [10:16:45]cmd_close_receipt [10:16:45]MH_GetDate [10:16:45]Write to MH i2c: F0 00 00 7E 2B 98 [10:16:45]Write i2c OK [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: F0 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: F0 09 00 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: F0 09 00 7E 2B 00 11 13 1E 67 68 46 19 67 78 [10:16:45]GetLastDocTimeStamp 1730024169 [10:16:45]current date 1730024209 [10:16:45]FM_GetShiftState [10:16:45]SAM_PROTO_GetShiftState [10:16:45]wFMCommunicate request_size=4 [10:16:45]MH_SAM_APDU [10:16:45]CAPDU: 80 13 01 00 [10:16:45]Write to MH i2c: E2 08 00 7F 2B 80 13 01 00 00 00 00 00 27 [10:16:45]Write i2c OK [10:16:45]MH_I2C_Read... [10:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:45]Read from MH i2c: E2 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: E2 0E 00 [10:16:45]MH_I2C_Read... [10:16:45]Read from MH i2c: E2 0E 00 7F 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 29 [10:16:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:16:45]wFMCommunicate OK [10:16:45]SAM_PROTO_GetShiftState done [10:16:45]FM_GetShiftState done [10:16:45]opened in 1729987312 [10:16:45]opened+sec_in_day 1730073712 [10:16:45]quantity*price = 50041 [10:16:45]sum+1 = 50042 [10:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 127 27.10.2024 10:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201835 ФПД: 39179896748619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101649&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201835&fm=39179896748619&tin=02508201610067®Number=0000000000091777&sum=50000 [10:16:46]StoreToDocumentArchive [10:16:46]shift 544 fd 201835 [10:16:46]save to /storage/0544/doc_00201835 [10:16:46]save last doc name /storage/0544/doc_00201835 to /storage/kkm_last_doc_name [10:16:46]save OK [10:16:46]Clear old archive folders... [10:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:46]tlvbuf is 00142550 [10:16:46]SAM_PROTO_ClearQueue [10:16:46]wFMCommunicate request_size=4 [10:16:46]MH_SAM_APDU [10:16:46]CAPDU: 80 09 00 00 [10:16:46]Write to MH i2c: E2 08 00 8C 2B 80 09 00 00 00 00 00 00 29 [10:16:46]Write i2c OK [10:16:46]MH_I2C_Read... [10:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:46]Read from MH i2c: E2 [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: E2 03 00 [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: E2 03 00 8C 2B 00 90 00 2B [10:16:46]RAPDU: 90 00 [10:16:46]wFMCommunicate OK [10:16:46]SAM_PROTO_ClearQueue done [10:16:46]KKMCreateOFDPacket [10:16:46]OFDProtocolAddRootSTLVToBuf [10:16:46]FM_MakeSignedData [10:16:46]FM_MakeSignedData [10:16:46]SAM_PROTO_SignData [10:16:46]wFMCommunicate request_size=4 [10:16:46]MH_SAM_APDU [10:16:46]CAPDU: 80 0D 01 02 [10:16:46]Write to MH i2c: E2 08 00 8D 2B 80 0D 01 02 00 00 00 00 31 [10:16:46]Write i2c OK [10:16:46]MH_I2C_Read... [10:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:46]Read from MH i2c: E2 [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: E2 03 00 [10:16:46]MH_I2C_Read... [10:16:46]Read from MH i2c: E2 03 00 8D 2B 00 90 00 2C [10:16:46]RAPDU: 90 00 [10:16:46]wFMCommunicate OK [10:16:46]wFMCommunicate request_size=255 [10:16:46]MH_SAM_APDU [10:16: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 11 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 14 03 00 35 04 06 00 23 [10:16:46]Write to MH i2c: E2 02 01 8E 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 11 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 14 03 00 35 04 06 00 23 00 00 B4 [10:16:46]Write i2c OK [10:16:46]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [10:16:47]RAPDU: 90 00 [10:16:47]wFMCommunicate OK [10:16:47]wFMCommunicate request_size=10 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 0D 02 02 05 A2 47 D3 FA 4B [10:16:47]Write to MH i2c: E2 0D 00 8F 2B 80 0D 02 02 05 00 A2 47 D3 FA 4B 00 00 3F [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 03 00 8F 2B 00 90 00 2E [10:16:47]RAPDU: 90 00 [10:16:47]wFMCommunicate OK [10:16:47]wFMCommunicate request_size=4 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 0D 03 02 [10:16:47]Write to MH i2c: E2 08 00 90 2B 80 0D 03 02 00 00 00 00 36 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 0B 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 0B 00 90 2B 00 1D 97 4C 57 F2 CE BB 31 90 00 3A [10:16:47]RAPDU: 1D 97 4C 57 F2 CE BB 31 90 00 [10:16:47]wFMCommunicate OK [10:16:47]SAM_PROTO_SignData done [10:16:47]FM_MakeSignedData done [10:16:47]CreateOFDProtocolMessage [10:16:47]wFMCommunicate request_size=4 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 11 00 00 [10:16:47]Write to MH i2c: E2 08 00 91 2B 80 11 00 00 00 00 00 00 36 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 17 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 17 00 91 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [10:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:16:47]wFMCommunicate OK [10:16:47]CreateOFDProtocolMessage done [10:16:47]OFDSenderStorePacket 201835 [10:16:47]StoreOFDPacket docnum=201835 [10:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B7 C0 07 01 CA A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 11 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 14 03 00 35 04 06 00 23 A2 47 D3 FA 4B 1D 97 4C 57 F2 CE BB 31 [10:16:47]CheckFolder [10:16:47]dirname=/storage/ofd_packets [10:16:47]CheckFolder done [10:16:47]ProducePacketName [10:16:47]name=ofd_packets/00201835 [10:16:47]NVStorageSaveData ofd_packets/00201835 [10:16:47]File name is /storage/ofd_packets/00201835 [10:16:47]Write 301 bytes [10:16:47]NVStorageSaveData done [10:16:47]OFDSenderStorePacket done [10:16:47]KKMCreateOFDPacket done [10:16:47]NVStorageSaveData kkm_last_timestamp [10:16:47]File name is /storage/kkm_last_timestamp [10:16:47]Write 4 bytes [10:16:47]NVStorageSaveData done [10:16:47]ExternCall_PrintAddStr [10:16:47]wPrintStart [10:16:47]Write to MH i2c: 01 00 00 92 2B BD [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: 01 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: 01 07 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: 01 07 00 92 2B 00 00 00 00 00 FF 0F D2 [10:16:47]RasterBufferAndPrint [10:16:47]line Счет N : (1)449594 [10:16:47]line ИНН: 02508201610067 [10:16:47]line Контрольно-Кассовый Чек [10:16:47]line ПРОДАЖА [10:16:47]line ТРК (МРК, ГНК) : 52 [10:16:47]line Товар: 2710124130 [10:16:47]line Аи-92-К-2 [10:16:47]line 7.480 * 66.90 [10:16:47]line = 500.41 [10:16:47]line НДС 12% НСП 1% [10:16:47]line > о реализуемом товаре [10:16:47]line ОКРУГЛЕНИЕ: -0.41 [10:16:47]line ИТОГО: 500.00 [10:16:47]line Внесено: 500.00 [10:16:47]line СДАЧА: 0.00 [10:16:47]line НСП 1% : 4.43 [10:16:47]line НДС 12% : 53.14 [10:16:47]line Наличными: 500.00 [10:16:47]line Безнал.: 0.00 [10:16:47]line Место: АЗС № 171 "Партнер Нефть" [10:16:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:16:47]line СНО: Общий режим [10:16:47]line Чек 127 27.10.2024 10:16 [10:16:47]line Смена: 544 ФФД: 1.0 [10:16:47]line ЗНМ: 0300000109 [10:16:47]line РНМ: 0000000000091777 [10:16:47]line Версия ККМ: 001 [10:16:47]line ФМ: 0000000000871756 [10:16:47]line ФД: 201835 [10:16:47]line ФПД: 39179896748619 [10:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101649&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201835&fm=39179896748619&tin=02508201610067®Number=0000000000091777&sum=50000 [10:16:47]OFD Sender: Processing packet 201835 [packets to send 112, broken 111] [10:16:47]ProducePacketName [10:16:47]name=ofd_packets/00201835 [10:16:47]OFD Sender: To server: pG, [10:16:47]CommunicateWithHost lk.salyk.kg:30040 [10:16:47]ConnectInit lk.salyk.kg [10:16:47]written 0, free lines is 4095 [10:16:47]Connected sock=9 [10:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B7 C0 07 01 CA A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 11 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 14 03 00 35 04 06 00 23 A2 47 D3 FA 4B 1D 97 4C 57 F2 CE BB 31 [10:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2D 99 47 00 EF 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 14 03 00 F4 03 04 00 B7 BE 1D 67 B6 04 01 00 00 C7 A9 31 70 2A F5 3D EB [10:16:48]CommunicateWithHost err = 0 [10:16:48]CheckOFDResponse [10:16:48]1017 (14) - 77093643461234 [10:16:48]1041 (16) - 0000000000871756 [10:16:48]1040 (4) - 201835 [10:16:48]1012 (4) - 27.10.2024 04:16 [10:16:48]1206 (1) - 0 [10:16:48]OFD Sender: Remove packet 201835 [10:16:48]ProducePacketName [10:16:48]name=ofd_packets/00201835 [10:16:48]NVStorageDeleteData [10:16:48]Write to MH i2c: 01 00 00 BD 2B E8 [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: 01 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: 01 07 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: 01 07 00 BD 2B 00 00 00 00 00 89 0C 84 [10:16:48]RasterBufferAndPrint [10:16:48]line [10:16:48]line [10:16:48]line [10:16:48]line [10:16:48]line [10:16:48]written 0, free lines is 3213 [10:16:48]MH_Cut [10:16:48]Write to MH i2c: D1 01 00 C4 2B 01 C1 [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: D1 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: D1 01 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: D1 01 00 C4 2B 00 C0 [10:16:48]Write to MH i2c: 01 00 00 C5 2B F0 [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]OFD Sender: No OFD packet to send [10:16:49]*** Cut start [10:16:49]*** Purtial cut [10:16:49]*** Stage 1: CUTSNS_PIN = 1 [10:16:49]Read from MH i2c: 01 [10:16:49]MH_I2C_Read... [10:16:49]*** Stop cut motor [10:16:49]*** Cut end [10:16:49]Read from MH i2c: 01 07 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: 01 07 00 C5 2B 00 00 00 00 00 FF 0F 05 [10:16:49]process_action close_receipt done [10:16:49]requested_data is exist [10:16:49]produce_requested_data [10:16:49]requested_item fm.sn is exist - process it [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 11 00 00 [10:16:49]Write to MH i2c: E2 08 00 C6 2B 80 11 00 00 00 00 00 00 6B [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 17 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 17 00 C6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C0 [10:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:16:49]wFMCommunicate OK [10:16:49]requested_item fd.num is exist - process it [10:16:49]SAM_PROTO_GetFieldsCounters [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 13 00 00 [10:16:49]Write to MH i2c: E2 08 00 C7 2B 80 13 00 00 00 00 00 00 6E [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 62 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 62 00 C7 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6B 14 03 00 0E 04 04 00 20 02 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 B8 [10:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6B 14 03 00 0E 04 04 00 20 02 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 [10:16:49]wFMCommunicate OK [10:16:49]SAM_PROTO_GetFieldsCounters done [10:16:49]requested_item shift.num is exist - process it [10:16:49]requested_item shift.opened is exist - process it [10:16:49]req_shift_opened [10:16:49]FM_GetShiftState [10:16:49]SAM_PROTO_GetShiftState [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 13 01 00 [10:16:49]Write to MH i2c: E2 08 00 C8 2B 80 13 01 00 00 00 00 00 70 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 0E 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 0E 00 C8 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 72 [10:16:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:16:49]wFMCommunicate OK [10:16:49]SAM_PROTO_GetShiftState done [10:16:49]FM_GetShiftState done [10:16:49]req_shift_opened done [10:16:49]requested_item shift.open_date is exist - process it [10:16:49]req_shift_open_date [10:16:49]req_shift_open_date done [10:16:49]produce_requested_data done [10:16:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201835,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:16:49]process_action_free close_receipt [10:16:49]json_value_free [10:16:49]json_value_free done [10:16:49]process_json_proto returns [10:16:49]Send response to host [10:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201835,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:16:49]free response buf [10:16:49]execute_script done [10:16:49]execute_script returns [10:16:49]free content buf [10:16:49]Sock 8.Close socket [10:16:49]Sock 8.Thread stoped [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:40]accept exits with 10 [10:17:40]New connection [10:17:40]New thread 3066936676 created [10:17:40]Thread 3067080036 joined [10:17:40]Waiting for new connection... [10:17:40] Sock 10.Parse request [10:17:40]Sock 10.Check first char [10:17:40]Sock 10.First char is OK [10:17:40]request: POST /json_proto HTTP/1.0 [10:17:40]Method: POST [10:17:40]URL: /json_proto [10:17:40]Method is POST - this is cgi request [10:17:40]url: /json_proto [10:17:40]query_string will be loaded in cgi processing [10:17:40]execute_cgi json_proto POST (null) [10:17:40]execute_cgi path=json_proto method=POST [10:17:40]POST find Content-Length [10:17:40]Host: 172.17.63.195:8080 [10:17:40]Content-Length: 679 [10:17:40]Content-Type: application/json [10:17:40] [10:17:40]POST finish read [10:17:40]Found Content-Length = 679 [10:17:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:40]execute_script... [10:17: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)449595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:40]POST & json_proto [10:17:40]process_json_proto [10:17:40]json parsed OK: [10:17:40]protocol is kg_v1.0 [10:17:40]action value=close_receipt [10:17:40]process_action close_receipt [10:17:40]cmd_close_receipt [10:17:40]MH_GetDate [10:17:40]Write to MH i2c: F0 00 00 C9 2B E3 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: F0 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: F0 09 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: F0 09 00 C9 2B 00 48 13 1E 67 68 46 19 67 FA [10:17:40]GetLastDocTimeStamp 1730024209 [10:17:40]current date 1730024264 [10:17:40]FM_GetShiftState [10:17:40]SAM_PROTO_GetShiftState [10:17:40]wFMCommunicate request_size=4 [10:17:40]MH_SAM_APDU [10:17:40]CAPDU: 80 13 01 00 [10:17:40]Write to MH i2c: E2 08 00 CA 2B 80 13 01 00 00 00 00 00 72 [10:17:40]Write i2c OK [10:17:40]MH_I2C_Read... [10:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:40]Read from MH i2c: E2 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 0E 00 [10:17:40]MH_I2C_Read... [10:17:40]Read from MH i2c: E2 0E 00 CA 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 74 [10:17:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:17:40]wFMCommunicate OK [10:17:40]SAM_PROTO_GetShiftState done [10:17:40]FM_GetShiftState done [10:17:40]opened in 1729987312 [10:17:40]opened+sec_in_day 1730073712 [10:17:40]quantity*price = 200025 [10:17:40]sum+1 = 200026 [10:17:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 128 27.10.2024 10:17 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201836 ФПД: 276950231274812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101744&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201836&fm=276950231274812&tin=02508201610067®Number=0000000000091777&sum=200000 [10:17:41]StoreToDocumentArchive [10:17:41]shift 544 fd 201836 [10:17:41]save to /storage/0544/doc_00201836 [10:17:41]save last doc name /storage/0544/doc_00201836 to /storage/kkm_last_doc_name [10:17:41]save OK [10:17:41]Clear old archive folders... [10:17:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:41]tlvbuf is 001652D0 [10:17:41]SAM_PROTO_ClearQueue [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 09 00 00 [10:17:41]Write to MH i2c: E2 08 00 D7 2B 80 09 00 00 00 00 00 00 74 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 D7 2B 00 90 00 76 [10:17:41]RAPDU: 90 00 [10:17:41]wFMCommunicate OK [10:17:41]SAM_PROTO_ClearQueue done [10:17:41]KKMCreateOFDPacket [10:17:41]OFDProtocolAddRootSTLVToBuf [10:17:41]FM_MakeSignedData [10:17:41]FM_MakeSignedData [10:17:41]SAM_PROTO_SignData [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 0D 01 02 [10:17:41]Write to MH i2c: E2 08 00 D8 2B 80 0D 01 02 00 00 00 00 7C [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [10:17:41]RAPDU: 90 00 [10:17:41]wFMCommunicate OK [10:17:41]wFMCommunicate request_size=255 [10:17:41]MH_SAM_APDU [10:17:41]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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 48 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 14 03 00 35 04 06 00 FB E2 80 27 [10:17:41]Write to MH i2c: E2 02 01 D9 2B 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 48 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 14 03 00 35 04 06 00 FB E2 80 27 00 00 7D [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [10:17:41]RAPDU: 90 00 [10:17:41]wFMCommunicate OK [10:17:41]wFMCommunicate request_size=7 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 0D 02 02 02 D5 3C [10:17:41]Write to MH i2c: E2 0A 00 DA 2B 80 0D 02 02 02 00 D5 3C 00 00 94 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:42]Read from MH i2c: E2 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 03 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 03 00 DA 2B 00 90 00 79 [10:17:42]RAPDU: 90 00 [10:17:42]wFMCommunicate OK [10:17:42]wFMCommunicate request_size=4 [10:17:42]MH_SAM_APDU [10:17:42]CAPDU: 80 0D 03 02 [10:17:42]Write to MH i2c: E2 08 00 DB 2B 80 0D 03 02 00 00 00 00 81 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:42]Read from MH i2c: E2 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 0B 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 0B 00 DB 2B 00 B2 BF B5 E6 20 A0 7E 7E 90 00 4A [10:17:42]RAPDU: B2 BF B5 E6 20 A0 7E 7E 90 00 [10:17:42]wFMCommunicate OK [10:17:42]SAM_PROTO_SignData done [10:17:42]FM_MakeSignedData done [10:17:42]CreateOFDProtocolMessage [10:17:42]wFMCommunicate request_size=4 [10:17:42]MH_SAM_APDU [10:17:42]CAPDU: 80 11 00 00 [10:17:42]Write to MH i2c: E2 08 00 DC 2B 80 11 00 00 00 00 00 00 81 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:42]Read from MH i2c: E2 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 17 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 17 00 DC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [10:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:17:42]wFMCommunicate OK [10:17:42]CreateOFDProtocolMessage done [10:17:42]OFDSenderStorePacket 201836 [10:17:42]StoreOFDPacket docnum=201836 [10:17:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DD CC 04 01 AD A7 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 48 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 14 03 00 35 04 06 00 FB E2 80 27 D5 3C B2 BF B5 E6 20 A0 7E 7E [10:17:42]CheckFolder [10:17:42]dirname=/storage/ofd_packets [10:17:42]CheckFolder done [10:17:42]ProducePacketName [10:17:42]name=ofd_packets/00201836 [10:17:42]NVStorageSaveData ofd_packets/00201836 [10:17:42]File name is /storage/ofd_packets/00201836 [10:17:42]Write 298 bytes [10:17:42]NVStorageSaveData done [10:17:42]OFDSenderStorePacket done [10:17:42]KKMCreateOFDPacket done [10:17:42]NVStorageSaveData kkm_last_timestamp [10:17:42]File name is /storage/kkm_last_timestamp [10:17:42]Write 4 bytes [10:17:42]NVStorageSaveData done [10:17:42]ExternCall_PrintAddStr [10:17:42]wPrintStart [10:17:42]Write to MH i2c: 01 00 00 DD 2B 08 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 07 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 07 00 DD 2B 00 00 00 00 00 FF 0F 1D [10:17:42]RasterBufferAndPrint [10:17:42]line Счет N : (1)449595 [10:17:42]line ИНН: 02508201610067 [10:17:42]line Контрольно-Кассовый Чек [10:17:42]line ПРОДАЖА [10:17:42]line ТРК (МРК, ГНК) : 11 [10:17:42]line Товар: 2710194210 [10:17:42]line ДТ-К-2 [10:17:42]line 26.250 * 76.20 [10:17:42]line = 2000.25 [10:17:42]line НДС 12% НСП 1% [10:17:42]line > о реализуемом товаре [10:17:42]line ОКРУГЛЕНИЕ: -0.25 [10:17:42]line ИТОГО: 2000.00 [10:17:42]line Внесено: 2000.00 [10:17:42]line СДАЧА: 0.00 [10:17:42]line НСП 1% : 17.70 [10:17:42]line НДС 12% : 212.42 [10:17:42]line Наличными: 2000.00 [10:17:42]line Безнал.: 0.00 [10:17:42]line Место: АЗС № 171 "Партнер Нефть" [10:17:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:17:42]line СНО: Общий режим [10:17:42]line Чек 128 27.10.2024 10:17 [10:17:42]line Смена: 544 ФФД: 1.0 [10:17:42]line ЗНМ: 0300000109 [10:17:42]line РНМ: 0000000000091777 [10:17:42]line Версия ККМ: 001 [10:17:42]line ФМ: 0000000000871756 [10:17:42]line ФД: 201836 [10:17:42]line ФПД: 276950231274812 [10:17:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101744&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201836&fm=276950231274812&tin=02508201610067®Number=0000000000091777&sum=200000 [10:17:42]written 0, free lines is 4095 [10:17:42]OFD Sender: Processing packet 201836 [packets to send 112, broken 111] [10:17:42]ProducePacketName [10:17:42]name=ofd_packets/00201836 [10:17:42]OFD Sender: To server: pG, [10:17:42]CommunicateWithHost lk.salyk.kg:30040 [10:17:42]ConnectInit lk.salyk.kg [10:17:42]Connected sock=9 [10:17:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DD CC 04 01 AD A7 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 48 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 14 03 00 35 04 06 00 FB E2 80 27 D5 3C B2 BF B5 E6 20 A0 7E 7E [10:17:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FA CC 47 00 A6 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 14 03 00 F4 03 04 00 EE BE 1D 67 B6 04 01 00 00 77 76 E1 B4 E3 93 8A 04 [10:17:42]CommunicateWithHost err = 0 [10:17:42]CheckOFDResponse [10:17:42]1017 (14) - 77093643461234 [10:17:42]1041 (16) - 0000000000871756 [10:17:42]1040 (4) - 201836 [10:17:42]1012 (4) - 27.10.2024 04:17 [10:17:42]1206 (1) - 0 [10:17:42]OFD Sender: Remove packet 201836 [10:17:42]ProducePacketName [10:17:42]name=ofd_packets/00201836 [10:17:42]NVStorageDeleteData [10:17:42]Write to MH i2c: 01 00 00 08 2C 34 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 07 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: 01 07 00 08 2C 00 00 00 00 00 8D 0C D4 [10:17:42]RasterBufferAndPrint [10:17:42]line [10:17:42]line [10:17:42]line [10:17:42]line [10:17:42]line [10:17:42]written 0, free lines is 3218 [10:17:42]MH_Cut [10:17:42]Write to MH i2c: D1 01 00 0F 2C 01 0D [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: D1 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: D1 01 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: D1 01 00 0F 2C 00 0C [10:17:42]Write to MH i2c: 01 00 00 10 2C 3C [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:43]OFD Sender: No OFD packet to send [10:17:43]*** Cut start [10:17:43]*** Purtial cut [10:17:43]*** Stage 1: CUTSNS_PIN = 1 [10:17:44]Read from MH i2c: 01 [10:17:44]MH_I2C_Read... [10:17:44]*** Stop cut motor [10:17:44]*** Cut end [10:17:44]Read from MH i2c: 01 07 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 07 00 10 2C 00 00 00 00 00 FF 0F 51 [10:17:44]process_action close_receipt done [10:17:44]requested_data is exist [10:17:44]produce_requested_data [10:17:44]requested_item fm.sn is exist - process it [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 11 00 00 [10:17:44]Write to MH i2c: E2 08 00 11 2C 80 11 00 00 00 00 00 00 B7 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 17 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 17 00 11 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0C [10:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:17:44]wFMCommunicate OK [10:17:44]requested_item fd.num is exist - process it [10:17:44]SAM_PROTO_GetFieldsCounters [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 13 00 00 [10:17:44]Write to MH i2c: E2 08 00 12 2C 80 13 00 00 00 00 00 00 BA [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 62 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 62 00 12 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6C 14 03 00 0E 04 04 00 20 02 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 08 [10:17:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6C 14 03 00 0E 04 04 00 20 02 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 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_GetFieldsCounters done [10:17:44]requested_item shift.num is exist - process it [10:17:44]requested_item shift.opened is exist - process it [10:17:44]req_shift_opened [10:17:44]FM_GetShiftState [10:17:44]SAM_PROTO_GetShiftState [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 13 01 00 [10:17:44]Write to MH i2c: E2 08 00 13 2C 80 13 01 00 00 00 00 00 BC [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 0E 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 0E 00 13 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BE [10:17:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_GetShiftState done [10:17:44]FM_GetShiftState done [10:17:44]req_shift_opened done [10:17:44]requested_item shift.open_date is exist - process it [10:17:44]req_shift_open_date [10:17:44]req_shift_open_date done [10:17:44]produce_requested_data done [10:17:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201836,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:17:44]process_action_free close_receipt [10:17:44]json_value_free [10:17:44]json_value_free done [10:17:44]process_json_proto returns [10:17:44]Send response to host [10:17:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201836,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:17:44]free response buf [10:17:44]execute_script done [10:17:44]execute_script returns [10:17:44]free content buf [10:17:44]Sock 10.Close socket [10:17:44]Sock 10.Thread stoped [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:14]accept exits with 8 [10:20:14]New connection [10:20:14]New thread 3067080036 created [10:20:14]Thread 3066936676 joined [10:20:14]Waiting for new connection... [10:20:14] Sock 8.Parse request [10:20:14]Sock 8.Check first char [10:20:14]Sock 8.First char is OK [10:20:14]request: POST /json_proto HTTP/1.0 [10:20:14]Method: POST [10:20:14]URL: /json_proto [10:20:14]Method is POST - this is cgi request [10:20:14]url: /json_proto [10:20:14]query_string will be loaded in cgi processing [10:20:14]execute_cgi json_proto POST (null) [10:20:14]execute_cgi path=json_proto method=POST [10:20:14]POST find Content-Length [10:20:14]Host: 172.17.63.195:8080 [10:20:14]Content-Length: 677 [10:20:14]Content-Type: application/json [10:20:14] [10:20:14]POST finish read [10:20:14]Found Content-Length = 677 [10:20:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:20:14]execute_script... [10:20: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)449599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:20:14]POST & json_proto [10:20:14]process_json_proto [10:20:14]json parsed OK: [10:20:14]protocol is kg_v1.0 [10:20:14]action value=close_receipt [10:20:14]process_action close_receipt [10:20:14]cmd_close_receipt [10:20:14]MH_GetDate [10:20:14]Write to MH i2c: F0 00 00 14 2C 2F [10:20:14]Write i2c OK [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: F0 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: F0 09 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: F0 09 00 14 2C 00 E2 13 1E 67 68 46 19 67 E0 [10:20:14]GetLastDocTimeStamp 1730024264 [10:20:14]current date 1730024418 [10:20:14]FM_GetShiftState [10:20:14]SAM_PROTO_GetShiftState [10:20:14]wFMCommunicate request_size=4 [10:20:14]MH_SAM_APDU [10:20:14]CAPDU: 80 13 01 00 [10:20:14]Write to MH i2c: E2 08 00 15 2C 80 13 01 00 00 00 00 00 BE [10:20:14]Write i2c OK [10:20:14]MH_I2C_Read... [10:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:14]Read from MH i2c: E2 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 0E 00 [10:20:14]MH_I2C_Read... [10:20:14]Read from MH i2c: E2 0E 00 15 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C0 [10:20:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:20:14]wFMCommunicate OK [10:20:14]SAM_PROTO_GetShiftState done [10:20:14]FM_GetShiftState done [10:20:14]opened in 1729987312 [10:20:14]opened+sec_in_day 1730073712 [10:20:14]quantity*price = 20003 [10:20:14]sum+1 = 20004 [10:20:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 129 27.10.2024 10:20 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201837 ФПД: 139173237644590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201837&fm=139173237644590&tin=02508201610067®Number=0000000000091777&sum=20000 [10:20:15]StoreToDocumentArchive [10:20:15]shift 544 fd 201837 [10:20:15]save to /storage/0544/doc_00201837 [10:20:15]save last doc name /storage/0544/doc_00201837 to /storage/kkm_last_doc_name [10:20:15]save OK [10:20:15]Clear old archive folders... [10:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:15]tlvbuf is 00141D00 [10:20:15]SAM_PROTO_ClearQueue [10:20:15]wFMCommunicate request_size=4 [10:20:15]MH_SAM_APDU [10:20:15]CAPDU: 80 09 00 00 [10:20:15]Write to MH i2c: E2 08 00 22 2C 80 09 00 00 00 00 00 00 C0 [10:20:15]Write i2c OK [10:20:15]MH_I2C_Read... [10:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:15]Read from MH i2c: E2 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: E2 03 00 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: E2 03 00 22 2C 00 90 00 C2 [10:20:15]RAPDU: 90 00 [10:20:15]wFMCommunicate OK [10:20:15]SAM_PROTO_ClearQueue done [10:20:15]KKMCreateOFDPacket [10:20:15]OFDProtocolAddRootSTLVToBuf [10:20:15]FM_MakeSignedData [10:20:15]FM_MakeSignedData [10:20:15]SAM_PROTO_SignData [10:20:15]wFMCommunicate request_size=4 [10:20:15]MH_SAM_APDU [10:20:15]CAPDU: 80 0D 01 02 [10:20:15]Write to MH i2c: E2 08 00 23 2C 80 0D 01 02 00 00 00 00 C8 [10:20:15]Write i2c OK [10:20:15]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 23 2C 00 90 00 C3 [10:20:16]RAPDU: 90 00 [10:20:16]wFMCommunicate OK [10:20:16]wFMCommunicate request_size=255 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 00 00 00 F4 03 04 00 E2 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 14 03 00 35 04 06 00 7E [10:20:16]Write to MH i2c: E2 02 01 24 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 00 00 00 F4 03 04 00 E2 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 14 03 00 35 04 06 00 7E 00 00 3D [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 24 2C 00 90 00 C4 [10:20:16]RAPDU: 90 00 [10:20:16]wFMCommunicate OK [10:20:16]wFMCommunicate request_size=10 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 0D 02 02 05 93 CB 64 5D 2E [10:20:16]Write to MH i2c: E2 0D 00 25 2C 80 0D 02 02 05 00 93 CB 64 5D 2E 00 00 22 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 03 00 25 2C 00 90 00 C5 [10:20:16]RAPDU: 90 00 [10:20:16]wFMCommunicate OK [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 0D 03 02 [10:20:16]Write to MH i2c: E2 08 00 26 2C 80 0D 03 02 00 00 00 00 CD [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 0B 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 0B 00 26 2C 00 51 08 33 85 18 8C 7B 35 90 00 33 [10:20:16]RAPDU: 51 08 33 85 18 8C 7B 35 90 00 [10:20:16]wFMCommunicate OK [10:20:16]SAM_PROTO_SignData done [10:20:16]FM_MakeSignedData done [10:20:16]CreateOFDProtocolMessage [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 11 00 00 [10:20:16]Write to MH i2c: E2 08 00 27 2C 80 11 00 00 00 00 00 00 CD [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 17 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 17 00 27 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [10:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:20:16]wFMCommunicate OK [10:20:16]CreateOFDProtocolMessage done [10:20:16]OFDSenderStorePacket 201837 [10:20:16]StoreOFDPacket docnum=201837 [10:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B1 7E 07 01 DC E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 00 00 00 F4 03 04 00 E2 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 14 03 00 35 04 06 00 7E 93 CB 64 5D 2E 51 08 33 85 18 8C 7B 35 [10:20:16]CheckFolder [10:20:16]dirname=/storage/ofd_packets [10:20:16]CheckFolder done [10:20:16]ProducePacketName [10:20:16]name=ofd_packets/00201837 [10:20:16]NVStorageSaveData ofd_packets/00201837 [10:20:16]File name is /storage/ofd_packets/00201837 [10:20:16]Write 301 bytes [10:20:16]NVStorageSaveData done [10:20:16]OFDSenderStorePacket done [10:20:16]KKMCreateOFDPacket done [10:20:16]NVStorageSaveData kkm_last_timestamp [10:20:16]File name is /storage/kkm_last_timestamp [10:20:16]Write 4 bytes [10:20:16]NVStorageSaveData done [10:20:16]ExternCall_PrintAddStr [10:20:16]wPrintStart [10:20:16]Write to MH i2c: 01 00 00 28 2C 54 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: 01 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: 01 07 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: 01 07 00 28 2C 00 00 00 00 00 FF 0F 69 [10:20:16]RasterBufferAndPrint [10:20:16]line Счет N : (1)449599 [10:20:16]line ИНН: 02508201610067 [10:20:16]line Контрольно-Кассовый Чек [10:20:16]line ПРОДАЖА [10:20:16]line ТРК (МРК, ГНК) : 52 [10:20:16]line Товар: 2710124130 [10:20:16]line Аи-92-К-2 [10:20:16]line 2.990 * 66.90 [10:20:16]line = 200.03 [10:20:16]line НДС 12% НСП 1% [10:20:16]line > о реализуемом товаре [10:20:16]line ОКРУГЛЕНИЕ: -0.03 [10:20:16]line ИТОГО: 200.00 [10:20:16]line Внесено: 200.00 [10:20:16]line СДАЧА: 0.00 [10:20:16]line НСП 1% : 1.77 [10:20:16]line НДС 12% : 21.24 [10:20:16]line Наличными: 200.00 [10:20:16]line Безнал.: 0.00 [10:20:16]line Место: АЗС № 171 "Партнер Нефть" [10:20:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:20:16]line СНО: Общий режим [10:20:16]line Чек 129 27.10.2024 10:20 [10:20:16]line Смена: 544 ФФД: 1.0 [10:20:16]line ЗНМ: 0300000109 [10:20:16]line РНМ: 0000000000091777 [10:20:16]line Версия ККМ: 001 [10:20:16]line ФМ: 0000000000871756 [10:20:16]line ФД: 201837 [10:20:16]line ФПД: 139173237644590 [10:20:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201837&fm=139173237644590&tin=02508201610067®Number=0000000000091777&sum=20000 [10:20:16]OFD Sender: Processing packet 201837 [packets to send 112, broken 111] [10:20:16]ProducePacketName [10:20:16]name=ofd_packets/00201837 [10:20:16]OFD Sender: To server: pG, [10:20:16]CommunicateWithHost lk.salyk.kg:30040 [10:20:16]ConnectInit lk.salyk.kg [10:20:16]written 0, free lines is 4095 [10:20:17]Connected sock=10 [10:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B1 7E 07 01 DC E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 00 00 00 F4 03 04 00 E2 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 14 03 00 35 04 06 00 7E 93 CB 64 5D 2E 51 08 33 85 18 8C 7B 35 [10:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 24 5C 47 00 1D 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 14 03 00 F4 03 04 00 88 BF 1D 67 B6 04 01 00 00 4C 84 CD 02 07 EC B2 CF [10:20:17]CommunicateWithHost err = 0 [10:20:17]CheckOFDResponse [10:20:17]1017 (14) - 77093643461234 [10:20:17]1041 (16) - 0000000000871756 [10:20:17]1040 (4) - 201837 [10:20:17]1012 (4) - 27.10.2024 04:20 [10:20:17]1206 (1) - 0 [10:20:17]OFD Sender: Remove packet 201837 [10:20:17]ProducePacketName [10:20:17]name=ofd_packets/00201837 [10:20:17]NVStorageDeleteData [10:20:17]Write to MH i2c: 01 00 00 53 2C 7F [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: 01 07 00 53 2C 00 00 00 00 00 8C 0C 1E [10:20:17]RasterBufferAndPrint [10:20:17]line [10:20:17]line [10:20:17]line [10:20:17]line [10:20:17]line [10:20:17]written 0, free lines is 3217 [10:20:17]MH_Cut [10:20:17]Write to MH i2c: D1 01 00 5A 2C 01 58 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: D1 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: D1 01 00 [10:20:17]MH_I2C_Read... [10:20:17]Read from MH i2c: D1 01 00 5A 2C 00 57 [10:20:17]Write to MH i2c: 01 00 00 5B 2C 87 [10:20:17]Write i2c OK [10:20:17]MH_I2C_Read... [10:20:17]OFD Sender: No OFD packet to send [10:20:18]*** Cut start [10:20:18]*** Purtial cut [10:20:18]*** Stage 1: CUTSNS_PIN = 1 [10:20:18]Read from MH i2c: 01 [10:20:18]MH_I2C_Read... [10:20:18]*** Stop cut motor [10:20:18]*** Cut end [10:20:18]Read from MH i2c: 01 07 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: 01 07 00 5B 2C 00 00 00 00 00 FF 0F 9C [10:20:18]process_action close_receipt done [10:20:18]requested_data is exist [10:20:18]produce_requested_data [10:20:18]requested_item fm.sn is exist - process it [10:20:18]wFMCommunicate request_size=4 [10:20:18]MH_SAM_APDU [10:20:18]CAPDU: 80 11 00 00 [10:20:18]Write to MH i2c: E2 08 00 5C 2C 80 11 00 00 00 00 00 00 02 [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:18]Read from MH i2c: E2 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 17 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 17 00 5C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 57 [10:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:20:18]wFMCommunicate OK [10:20:18]requested_item fd.num is exist - process it [10:20:18]SAM_PROTO_GetFieldsCounters [10:20:18]wFMCommunicate request_size=4 [10:20:18]MH_SAM_APDU [10:20:18]CAPDU: 80 13 00 00 [10:20:18]Write to MH i2c: E2 08 00 5D 2C 80 13 00 00 00 00 00 00 05 [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:18]Read from MH i2c: E2 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 62 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 62 00 5D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6D 14 03 00 0E 04 04 00 20 02 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 57 [10:20:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6D 14 03 00 0E 04 04 00 20 02 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 [10:20:18]wFMCommunicate OK [10:20:18]SAM_PROTO_GetFieldsCounters done [10:20:18]requested_item shift.num is exist - process it [10:20:18]requested_item shift.opened is exist - process it [10:20:18]req_shift_opened [10:20:18]FM_GetShiftState [10:20:18]SAM_PROTO_GetShiftState [10:20:18]wFMCommunicate request_size=4 [10:20:18]MH_SAM_APDU [10:20:18]CAPDU: 80 13 01 00 [10:20:18]Write to MH i2c: E2 08 00 5E 2C 80 13 01 00 00 00 00 00 07 [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:18]Read from MH i2c: E2 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 0E 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: E2 0E 00 5E 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 09 [10:20:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:20:18]wFMCommunicate OK [10:20:18]SAM_PROTO_GetShiftState done [10:20:18]FM_GetShiftState done [10:20:18]req_shift_opened done [10:20:18]requested_item shift.open_date is exist - process it [10:20:18]req_shift_open_date [10:20:18]req_shift_open_date done [10:20:18]produce_requested_data done [10:20:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201837,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:20:18]process_action_free close_receipt [10:20:18]json_value_free [10:20:18]json_value_free done [10:20:18]process_json_proto returns [10:20:18]Send response to host [10:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201837,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:20:18]free response buf [10:20:18]execute_script done [10:20:18]execute_script returns [10:20:18]free content buf [10:20:18]Sock 8.Close socket [10:20:18]Sock 8.Thread stoped [10:20:18]accept exits with 9 [10:20:18]New connection [10:20:18]New thread 3066936676 created [10:20:18]Thread 3067080036 joined [10:20:18]Waiting for new connection... [10:20:18] Sock 9.Parse request [10:20:18]Sock 9.Check first char [10:20:18]Sock 9.First char is OK [10:20:18]request: POST /json_proto HTTP/1.0 [10:20:18]Method: POST [10:20:18]URL: /json_proto [10:20:18]Method is POST - this is cgi request [10:20:18]url: /json_proto [10:20:18]query_string will be loaded in cgi processing [10:20:18]execute_cgi json_proto POST (null) [10:20:18]execute_cgi path=json_proto method=POST [10:20:18]POST find Content-Length [10:20:18]Host: 172.17.63.195:8080 [10:20:18]Content-Length: 675 [10:20:18]Content-Type: application/json [10:20:18] [10:20:18]POST finish read [10:20:18]Found Content-Length = 675 [10:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 15.360, "sum" : 1050.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:18]execute_script... [10:20: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)449598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 15.360, "sum" : 1050.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:18]POST & json_proto [10:20:18]process_json_proto [10:20:18]json parsed OK: [10:20:18]protocol is kg_v1.0 [10:20:18]action value=close_receipt [10:20:18]process_action close_receipt [10:20:18]cmd_close_receipt [10:20:18]MH_GetDate [10:20:18]Write to MH i2c: F0 00 00 5F 2C 7A [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: F0 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: F0 09 00 [10:20:18]MH_I2C_Read... [10:20:18]Read from MH i2c: F0 09 00 5F 2C 00 E7 13 1E 67 68 46 19 67 30 [10:20:18]GetLastDocTimeStamp 1730024418 [10:20:18]current date 1730024423 [10:20:18]FM_GetShiftState [10:20:18]SAM_PROTO_GetShiftState [10:20:18]wFMCommunicate request_size=4 [10:20:18]MH_SAM_APDU [10:20:18]CAPDU: 80 13 01 00 [10:20:18]Write to MH i2c: E2 08 00 60 2C 80 13 01 00 00 00 00 00 09 [10:20:18]Write i2c OK [10:20:18]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 [10:20:19]MH_I2C_Read... [10:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:19]Read from MH i2c: E2 0E 00 [10:20:19]MH_I2C_Read... [10:20:19]Read from MH i2c: E2 0E 00 60 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0B [10:20:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:20:19]wFMCommunicate OK [10:20:19]SAM_PROTO_GetShiftState done [10:20:19]FM_GetShiftState done [10:20:19]opened in 1729987312 [10:20:19]opened+sec_in_day 1730073712 [10:20:19]quantity*price = 105062 [10:20:19]sum+1 = 105063 [10:20:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.30 НДС 12% : 111.57 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 130 27.10.2024 10:20 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201838 ФПД: 93649544779088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102023&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201838&fm=93649544779088&tin=02508201610067®Number=0000000000091777&sum=105000 [10:20:20]StoreToDocumentArchive [10:20:20]shift 544 fd 201838 [10:20:20]save to /storage/0544/doc_00201838 [10:20:20]save last doc name /storage/0544/doc_00201838 to /storage/kkm_last_doc_name [10:20:20]save OK [10:20:20]Clear old archive folders... [10:20:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:20:20]tlvbuf is 001CB250 [10:20:20]SAM_PROTO_ClearQueue [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 09 00 00 [10:20:20]Write to MH i2c: E2 08 00 6D 2C 80 09 00 00 00 00 00 00 0B [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 6D 2C 00 90 00 0D [10:20:20]RAPDU: 90 00 [10:20:20]wFMCommunicate OK [10:20:20]SAM_PROTO_ClearQueue done [10:20:20]KKMCreateOFDPacket [10:20:20]OFDProtocolAddRootSTLVToBuf [10:20:20]FM_MakeSignedData [10:20:20]FM_MakeSignedData [10:20:20]SAM_PROTO_SignData [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 0D 01 02 [10:20:20]Write to MH i2c: E2 08 00 6E 2C 80 0D 01 02 00 00 00 00 13 [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 6E 2C 00 90 00 0E [10:20:20]RAPDU: 90 00 [10:20:20]wFMCommunicate OK [10:20:20]wFMCommunicate request_size=255 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E7 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 14 03 00 35 04 06 00 [10:20:20]Write to MH i2c: E2 02 01 6F 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E7 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 14 03 00 35 04 06 00 00 00 64 [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 6F 2C 00 90 00 0F [10:20:20]RAPDU: 90 00 [10:20:20]wFMCommunicate OK [10:20:20]wFMCommunicate request_size=11 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 0D 02 02 06 55 2C 7B D9 95 50 [10:20:20]Write to MH i2c: E2 0E 00 70 2C 80 0D 02 02 06 00 55 2C 7B D9 95 50 00 00 DC [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:20]Read from MH i2c: E2 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 [10:20:20]MH_I2C_Read... [10:20:20]Read from MH i2c: E2 03 00 70 2C 00 90 00 10 [10:20:20]RAPDU: 90 00 [10:20:20]wFMCommunicate OK [10:20:20]wFMCommunicate request_size=4 [10:20:20]MH_SAM_APDU [10:20:20]CAPDU: 80 0D 03 02 [10:20:20]Write to MH i2c: E2 08 00 71 2C 80 0D 03 02 00 00 00 00 18 [10:20:20]Write i2c OK [10:20:20]MH_I2C_Read... [10:20:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:21]Read from MH i2c: E2 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: E2 0B 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: E2 0B 00 71 2C 00 75 46 22 DE 9A C2 3C 94 90 00 00 [10:20:21]RAPDU: 75 46 22 DE 9A C2 3C 94 90 00 [10:20:21]wFMCommunicate OK [10:20:21]SAM_PROTO_SignData done [10:20:21]FM_MakeSignedData done [10:20:21]CreateOFDProtocolMessage [10:20:21]wFMCommunicate request_size=4 [10:20:21]MH_SAM_APDU [10:20:21]CAPDU: 80 11 00 00 [10:20:21]Write to MH i2c: E2 08 00 72 2C 80 11 00 00 00 00 00 00 18 [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:21]Read from MH i2c: E2 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: E2 17 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: E2 17 00 72 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [10:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:20:21]wFMCommunicate OK [10:20:21]CreateOFDProtocolMessage done [10:20:21]OFDSenderStorePacket 201838 [10:20:21]StoreOFDPacket docnum=201838 [10:20:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 4E 02 08 01 15 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E7 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 14 03 00 35 04 06 00 55 2C 7B D9 95 50 75 46 22 DE 9A C2 3C 94 [10:20:21]CheckFolder [10:20:21]dirname=/storage/ofd_packets [10:20:21]CheckFolder done [10:20:21]ProducePacketName [10:20:21]name=ofd_packets/00201838 [10:20:21]NVStorageSaveData ofd_packets/00201838 [10:20:21]File name is /storage/ofd_packets/00201838 [10:20:21]Write 302 bytes [10:20:21]NVStorageSaveData done [10:20:21]OFDSenderStorePacket done [10:20:21]KKMCreateOFDPacket done [10:20:21]NVStorageSaveData kkm_last_timestamp [10:20:21]File name is /storage/kkm_last_timestamp [10:20:21]Write 4 bytes [10:20:21]NVStorageSaveData done [10:20:21]ExternCall_PrintAddStr [10:20:21]wPrintStart [10:20:21]Write to MH i2c: 01 00 00 73 2C 9F [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 07 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 07 00 73 2C 00 00 00 00 00 FF 0F B4 [10:20:21]RasterBufferAndPrint [10:20:21]line Счет N : (1)449598 [10:20:21]line ИНН: 02508201610067 [10:20:21]line Контрольно-Кассовый Чек [10:20:21]line ПРОДАЖА [10:20:21]line ТРК (МРК, ГНК) : 63 [10:20:21]line Товар: 2710124130 [10:20:21]line SUPER 92-К-5 [10:20:21]line 15.360 * 68.40 [10:20:21]line = 1050.62 [10:20:21]line НДС 12% НСП 1% [10:20:21]line > о реализуемом товаре [10:20:21]line ОКРУГЛЕНИЕ: -0.62 [10:20:21]line ИТОГО: 1050.00 [10:20:21]line Внесено: 1050.00 [10:20:21]line СДАЧА: 0.00 [10:20:21]line НСП 1% : 9.30 [10:20:21]line НДС 12% : 111.57 [10:20:21]line Наличными: 1050.00 [10:20:21]line Безнал.: 0.00 [10:20:21]line Место: АЗС № 171 "Партнер Нефть" [10:20:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:20:21]line СНО: Общий режим [10:20:21]line Чек 130 27.10.2024 10:20 [10:20:21]line Смена: 544 ФФД: 1.0 [10:20:21]line ЗНМ: 0300000109 [10:20:21]line РНМ: 0000000000091777 [10:20:21]line Версия ККМ: 001 [10:20:21]line ФМ: 0000000000871756 [10:20:21]line ФД: 201838 [10:20:21]line ФПД: 93649544779088 [10:20:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102023&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201838&fm=93649544779088&tin=02508201610067®Number=0000000000091777&sum=105000 [10:20:21]written 0, free lines is 4095 [10:20:21]OFD Sender: Processing packet 201838 [packets to send 112, broken 111] [10:20:21]ProducePacketName [10:20:21]name=ofd_packets/00201838 [10:20:21]OFD Sender: To server: pG, [10:20:21]CommunicateWithHost lk.salyk.kg:30040 [10:20:21]ConnectInit lk.salyk.kg [10:20:21]Connected sock=10 [10:20:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 4E 02 08 01 15 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E7 13 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 14 03 00 35 04 06 00 55 2C 7B D9 95 50 75 46 22 DE 9A C2 3C 94 [10:20:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 17 7E 47 00 4E 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 14 03 00 F4 03 04 00 8C BF 1D 67 B6 04 01 00 00 32 41 DE 0D E2 82 14 E5 [10:20:21]CommunicateWithHost err = 0 [10:20:21]CheckOFDResponse [10:20:21]1017 (14) - 77093643461234 [10:20:21]1041 (16) - 0000000000871756 [10:20:21]1040 (4) - 201838 [10:20:21]1012 (4) - 27.10.2024 04:20 [10:20:21]1206 (1) - 0 [10:20:21]OFD Sender: Remove packet 201838 [10:20:21]ProducePacketName [10:20:21]name=ofd_packets/00201838 [10:20:21]NVStorageDeleteData [10:20:21]Write to MH i2c: 01 00 00 9E 2C CA [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 07 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: 01 07 00 9E 2C 00 00 00 00 00 A2 0C 7F [10:20:21]RasterBufferAndPrint [10:20:21]line [10:20:21]line [10:20:21]line [10:20:21]line [10:20:21]line [10:20:21]written 0, free lines is 3246 [10:20:21]MH_Cut [10:20:21]Write to MH i2c: D1 01 00 A5 2C 01 A3 [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: D1 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: D1 01 00 [10:20:21]MH_I2C_Read... [10:20:21]Read from MH i2c: D1 01 00 A5 2C 00 A2 [10:20:21]Write to MH i2c: 01 00 00 A6 2C D2 [10:20:21]Write i2c OK [10:20:21]MH_I2C_Read... [10:20:22]OFD Sender: No OFD packet to send [10:20:22]*** Cut start [10:20:22]*** Purtial cut [10:20:22]*** Stage 1: CUTSNS_PIN = 1 [10:20:22]Read from MH i2c: 01 [10:20:22]MH_I2C_Read... [10:20:22]*** Stop cut motor [10:20:22]*** Cut end [10:20:22]Read from MH i2c: 01 07 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: 01 07 00 A6 2C 00 00 00 00 00 FF 0F E7 [10:20:22]process_action close_receipt done [10:20:22]requested_data is exist [10:20:22]produce_requested_data [10:20:22]requested_item fm.sn is exist - process it [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 11 00 00 [10:20:22]Write to MH i2c: E2 08 00 A7 2C 80 11 00 00 00 00 00 00 4D [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 17 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 17 00 A7 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A2 [10:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:20:22]wFMCommunicate OK [10:20:22]requested_item fd.num is exist - process it [10:20:22]SAM_PROTO_GetFieldsCounters [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 13 00 00 [10:20:22]Write to MH i2c: E2 08 00 A8 2C 80 13 00 00 00 00 00 00 50 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 62 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 62 00 A8 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6E 14 03 00 0E 04 04 00 20 02 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 A6 [10:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6E 14 03 00 0E 04 04 00 20 02 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 [10:20:22]wFMCommunicate OK [10:20:22]SAM_PROTO_GetFieldsCounters done [10:20:22]requested_item shift.num is exist - process it [10:20:22]requested_item shift.opened is exist - process it [10:20:22]req_shift_opened [10:20:22]FM_GetShiftState [10:20:22]SAM_PROTO_GetShiftState [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 13 01 00 [10:20:22]Write to MH i2c: E2 08 00 A9 2C 80 13 01 00 00 00 00 00 52 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 0E 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 0E 00 A9 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 54 [10:20:23]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:20:23]wFMCommunicate OK [10:20:23]SAM_PROTO_GetShiftState done [10:20:23]FM_GetShiftState done [10:20:23]req_shift_opened done [10:20:23]requested_item shift.open_date is exist - process it [10:20:23]req_shift_open_date [10:20:23]req_shift_open_date done [10:20:23]produce_requested_data done [10:20:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201838,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:20:23]process_action_free close_receipt [10:20:23]json_value_free [10:20:23]json_value_free done [10:20:23]process_json_proto returns [10:20:23]Send response to host [10:20:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201838,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:20:23]free response buf [10:20:23]execute_script done [10:20:23]execute_script returns [10:20:23]free content buf [10:20:23]Sock 9.Close socket [10:20:23]Sock 9.Thread stoped [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:45]accept exits with 8 [10:20:45]New connection [10:20:45]New thread 3067080036 created [10:20:45]Thread 3066936676 joined [10:20:45]Waiting for new connection... [10:20:45] Sock 8.Parse request [10:20:45]Sock 8.Check first char [10:20:45]Sock 8.First char is OK [10:20:45]request: POST /json_proto HTTP/1.0 [10:20:45]Method: POST [10:20:45]URL: /json_proto [10:20:45]Method is POST - this is cgi request [10:20:45]url: /json_proto [10:20:45]query_string will be loaded in cgi processing [10:20:45]execute_cgi json_proto POST (null) [10:20:45]execute_cgi path=json_proto method=POST [10:20:45]POST find Content-Length [10:20:45]Host: 172.17.63.195:8080 [10:20:45]Content-Length: 679 [10:20:45]Content-Type: application/json [10:20:45] [10:20:45]POST finish read [10:20:45]Found Content-Length = 679 [10:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:45]execute_script... [10:20:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:45]POST & json_proto [10:20:45]process_json_proto [10:20:45]json parsed OK: [10:20:45]protocol is kg_v1.0 [10:20:45]action value=close_receipt [10:20:45]process_action close_receipt [10:20:45]cmd_close_receipt [10:20:45]MH_GetDate [10:20:45]Write to MH i2c: F0 00 00 AA 2C C5 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: F0 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: F0 09 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: F0 09 00 AA 2C 00 01 14 1E 67 68 46 19 67 96 [10:20:45]GetLastDocTimeStamp 1730024423 [10:20:45]current date 1730024449 [10:20:45]FM_GetShiftState [10:20:45]SAM_PROTO_GetShiftState [10:20:45]wFMCommunicate request_size=4 [10:20:45]MH_SAM_APDU [10:20:45]CAPDU: 80 13 01 00 [10:20:45]Write to MH i2c: E2 08 00 AB 2C 80 13 01 00 00 00 00 00 54 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:45]Read from MH i2c: E2 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0E 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: E2 0E 00 AB 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 56 [10:20:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:20:45]wFMCommunicate OK [10:20:45]SAM_PROTO_GetShiftState done [10:20:45]FM_GetShiftState done [10:20:45]opened in 1729987312 [10:20:45]opened+sec_in_day 1730073712 [10:20:45]quantity*price = 300075 [10:20:45]sum+1 = 300077 [10:20:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 131 27.10.2024 10:20 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201839 ФПД: 199881414032993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102049&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201839&fm=199881414032993&tin=02508201610067®Number=0000000000091777&sum=300000 [10:20:46]StoreToDocumentArchive [10:20:46]shift 544 fd 201839 [10:20:46]save to /storage/0544/doc_00201839 [10:20:46]save last doc name /storage/0544/doc_00201839 to /storage/kkm_last_doc_name [10:20:46]save OK [10:20:46]Clear old archive folders... [10:20:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:20:46]tlvbuf is 00165080 [10:20:46]SAM_PROTO_ClearQueue [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 09 00 00 [10:20:46]Write to MH i2c: E2 08 00 B8 2C 80 09 00 00 00 00 00 00 56 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 B8 2C 00 90 00 58 [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_ClearQueue done [10:20:46]KKMCreateOFDPacket [10:20:46]OFDProtocolAddRootSTLVToBuf [10:20:46]FM_MakeSignedData [10:20:46]FM_MakeSignedData [10:20:46]SAM_PROTO_SignData [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 0D 01 02 [10:20:46]Write to MH i2c: E2 08 00 B9 2C 80 0D 01 02 00 00 00 00 5E [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 B9 2C 00 90 00 59 [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]wFMCommunicate request_size=255 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 01 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 14 03 00 35 04 06 00 B5 CA 84 AE [10:20:46]Write to MH i2c: E2 02 01 BA 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 01 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 14 03 00 35 04 06 00 B5 CA 84 AE 00 00 95 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 BA 2C 00 90 00 5A [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]wFMCommunicate request_size=7 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 0D 02 02 02 3E 61 [10:20:46]Write to MH i2c: E2 0A 00 BB 2C 80 0D 02 02 02 00 3E 61 00 00 04 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 BB 2C 00 90 00 5B [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 0D 03 02 [10:20:46]Write to MH i2c: E2 08 00 BC 2C 80 0D 03 02 00 00 00 00 63 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0B 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0B 00 BC 2C 00 3D 7A E4 43 C8 04 5F C9 90 00 36 [10:20:46]RAPDU: 3D 7A E4 43 C8 04 5F C9 90 00 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_SignData done [10:20:46]FM_MakeSignedData done [10:20:46]CreateOFDProtocolMessage [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 11 00 00 [10:20:46]Write to MH i2c: E2 08 00 BD 2C 80 11 00 00 00 00 00 00 63 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 BD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [10:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:20:46]wFMCommunicate OK [10:20:46]CreateOFDProtocolMessage done [10:20:46]OFDSenderStorePacket 201839 [10:20:46]StoreOFDPacket docnum=201839 [10:20:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 18 BB 04 01 4C 03 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 01 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 14 03 00 35 04 06 00 B5 CA 84 AE 3E 61 3D 7A E4 43 C8 04 5F C9 [10:20:46]CheckFolder [10:20:46]dirname=/storage/ofd_packets [10:20:46]CheckFolder done [10:20:46]ProducePacketName [10:20:46]name=ofd_packets/00201839 [10:20:46]NVStorageSaveData ofd_packets/00201839 [10:20:46]File name is /storage/ofd_packets/00201839 [10:20:46]Write 298 bytes [10:20:46]NVStorageSaveData done [10:20:46]OFDSenderStorePacket done [10:20:46]KKMCreateOFDPacket done [10:20:46]NVStorageSaveData kkm_last_timestamp [10:20:46]File name is /storage/kkm_last_timestamp [10:20:46]Write 4 bytes [10:20:46]NVStorageSaveData done [10:20:46]ExternCall_PrintAddStr [10:20:46]wPrintStart [10:20:46]Write to MH i2c: 01 00 00 BE 2C EA [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 BE 2C 00 00 00 00 00 FF 0F FF [10:20:46]RasterBufferAndPrint [10:20:46]line Счет N : (1)449597 [10:20:46]line ИНН: 02508201610067 [10:20:46]line Контрольно-Кассовый Чек [10:20:46]line ПРОДАЖА [10:20:46]line ТРК (МРК, ГНК) : 43 [10:20:46]line Товар: 2710194210 [10:20:46]line ДТ-К-2 [10:20:46]line 39.380 * 76.20 [10:20:46]line = 3000.76 [10:20:46]line НДС 12% НСП 1% [10:20:46]line > о реализуемом товаре [10:20:46]line ОКРУГЛЕНИЕ: -0.76 [10:20:46]line ИТОГО: 3000.00 [10:20:46]line Внесено: 3000.00 [10:20:46]line СДАЧА: 0.00 [10:20:46]line НСП 1% : 26.55 [10:20:46]line НДС 12% : 318.66 [10:20:46]line Наличными: 3000.00 [10:20:46]line Безнал.: 0.00 [10:20:46]line Место: АЗС № 171 "Партнер Нефть" [10:20:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:20:46]line СНО: Общий режим [10:20:46]line Чек 131 27.10.2024 10:20 [10:20:46]line Смена: 544 ФФД: 1.0 [10:20:46]line ЗНМ: 0300000109 [10:20:46]line РНМ: 0000000000091777 [10:20:46]line Версия ККМ: 001 [10:20:46]line ФМ: 0000000000871756 [10:20:46]line ФД: 201839 [10:20:46]line ФПД: 199881414032993 [10:20:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102049&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201839&fm=199881414032993&tin=02508201610067®Number=0000000000091777&sum=300000 [10:20:47]OFD Sender: Processing packet 201839 [packets to send 112, broken 111] [10:20:47]ProducePacketName [10:20:47]name=ofd_packets/00201839 [10:20:47]OFD Sender: To server: pG, [10:20:47]CommunicateWithHost lk.salyk.kg:30040 [10:20:47]ConnectInit lk.salyk.kg [10:20:47]written 0, free lines is 4095 [10:20:47]Connected sock=10 [10:20:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 18 BB 04 01 4C 03 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 01 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 14 03 00 35 04 06 00 B5 CA 84 AE 3E 61 3D 7A E4 43 C8 04 5F C9 [10:20:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 55 4E 47 00 F1 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 14 03 00 F4 03 04 00 A6 BF 1D 67 B6 04 01 00 00 D3 AF 28 85 F0 60 7A 48 [10:20:47]CommunicateWithHost err = 0 [10:20:47]CheckOFDResponse [10:20:47]1017 (14) - 77093643461234 [10:20:47]1041 (16) - 0000000000871756 [10:20:47]1040 (4) - 201839 [10:20:47]1012 (4) - 27.10.2024 04:20 [10:20:47]1206 (1) - 0 [10:20:47]OFD Sender: Remove packet 201839 [10:20:47]ProducePacketName [10:20:47]name=ofd_packets/00201839 [10:20:47]NVStorageDeleteData [10:20:47]Write to MH i2c: 01 00 00 E9 2C 15 [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 07 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 07 00 E9 2C 00 00 00 00 00 A4 0C CC [10:20:47]RasterBufferAndPrint [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]written 0, free lines is 3242 [10:20:47]MH_Cut [10:20:47]Write to MH i2c: D1 01 00 F0 2C 01 EE [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 01 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 01 00 F0 2C 00 ED [10:20:47]Write to MH i2c: 01 00 00 F1 2C 1D [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]OFD Sender: No OFD packet to send [10:20:48]*** Cut start [10:20:48]*** Purtial cut [10:20:48]*** Stage 1: CUTSNS_PIN = 1 [10:20:48]Read from MH i2c: 01 [10:20:48]MH_I2C_Read... [10:20:48]*** Stop cut motor [10:20:48]*** Cut end [10:20:48]Read from MH i2c: 01 07 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 FF 0F 32 [10:20:48]process_action close_receipt done [10:20:48]requested_data is exist [10:20:48]produce_requested_data [10:20:48]requested_item fm.sn is exist - process it [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 11 00 00 [10:20:48]Write to MH i2c: E2 08 00 F2 2C 80 11 00 00 00 00 00 00 98 [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:48]Read from MH i2c: E2 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 17 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 17 00 F2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 ED [10:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:20:48]wFMCommunicate OK [10:20:48]requested_item fd.num is exist - process it [10:20:48]SAM_PROTO_GetFieldsCounters [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 13 00 00 [10:20:48]Write to MH i2c: E2 08 00 F3 2C 80 13 00 00 00 00 00 00 9B [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:48]Read from MH i2c: E2 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 62 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 62 00 F3 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6F 14 03 00 0E 04 04 00 20 02 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 F5 [10:20:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6F 14 03 00 0E 04 04 00 20 02 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 [10:20:48]wFMCommunicate OK [10:20:48]SAM_PROTO_GetFieldsCounters done [10:20:48]requested_item shift.num is exist - process it [10:20:48]requested_item shift.opened is exist - process it [10:20:48]req_shift_opened [10:20:48]FM_GetShiftState [10:20:48]SAM_PROTO_GetShiftState [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 13 01 00 [10:20:48]Write to MH i2c: E2 08 00 F4 2C 80 13 01 00 00 00 00 00 9D [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:48]Read from MH i2c: E2 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 0E 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 0E 00 F4 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9F [10:20:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:20:48]wFMCommunicate OK [10:20:48]SAM_PROTO_GetShiftState done [10:20:48]FM_GetShiftState done [10:20:48]req_shift_opened done [10:20:48]requested_item shift.open_date is exist - process it [10:20:48]req_shift_open_date [10:20:48]req_shift_open_date done [10:20:48]produce_requested_data done [10:20:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201839,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:20:48]process_action_free close_receipt [10:20:48]json_value_free [10:20:48]json_value_free done [10:20:48]process_json_proto returns [10:20:48]Send response to host [10:20:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201839,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:20:48]free response buf [10:20:48]execute_script done [10:20:48]execute_script returns [10:20:48]free content buf [10:20:48]Sock 8.Close socket [10:20:48]Sock 8.Thread stoped [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:24]accept exits with 9 [10:21:24]New connection [10:21:24]New thread 3066936676 created [10:21:24]Thread 3067080036 joined [10:21:24]Waiting for new connection... [10:21:24] Sock 9.Parse request [10:21:24]Sock 9.Check first char [10:21:24]Sock 9.First char is OK [10:21:24]request: POST /json_proto HTTP/1.0 [10:21:24]Method: POST [10:21:24]URL: /json_proto [10:21:24]Method is POST - this is cgi request [10:21:24]url: /json_proto [10:21:24]query_string will be loaded in cgi processing [10:21:24]execute_cgi json_proto POST (null) [10:21:24]execute_cgi path=json_proto method=POST [10:21:24]POST find Content-Length [10:21:24]Host: 172.17.63.195:8080 [10:21:24]Content-Length: 677 [10:21:24]Content-Type: application/json [10:21:24] [10:21:24]POST finish read [10:21:24]Found Content-Length = 677 [10:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:21:24]execute_script... [10:21:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:21:24]POST & json_proto [10:21:24]process_json_proto [10:21:24]json parsed OK: [10:21:24]protocol is kg_v1.0 [10:21:24]action value=close_receipt [10:21:24]process_action close_receipt [10:21:24]cmd_close_receipt [10:21:24]MH_GetDate [10:21:24]Write to MH i2c: F0 00 00 F5 2C 10 [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: F0 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: F0 09 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: F0 09 00 F5 2C 00 29 14 1E 67 68 46 19 67 09 [10:21:24]GetLastDocTimeStamp 1730024449 [10:21:24]current date 1730024489 [10:21:24]FM_GetShiftState [10:21:24]SAM_PROTO_GetShiftState [10:21:24]wFMCommunicate request_size=4 [10:21:24]MH_SAM_APDU [10:21:24]CAPDU: 80 13 01 00 [10:21:24]Write to MH i2c: E2 08 00 F6 2C 80 13 01 00 00 00 00 00 9F [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:24]Read from MH i2c: E2 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 0E 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 0E 00 F6 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A1 [10:21:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:21:24]wFMCommunicate OK [10:21:24]SAM_PROTO_GetShiftState done [10:21:24]FM_GetShiftState done [10:21:24]opened in 1729987312 [10:21:24]opened+sec_in_day 1730073712 [10:21:24]quantity*price = 20003 [10:21:24]sum+1 = 20004 [10:21:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 132 27.10.2024 10:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201840 ФПД: 79823656855248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102129&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201840&fm=79823656855248&tin=02508201610067®Number=0000000000091777&sum=20000 [10:21:26]StoreToDocumentArchive [10:21:26]shift 544 fd 201840 [10:21:26]save to /storage/0544/doc_00201840 [10:21:26]save last doc name /storage/0544/doc_00201840 to /storage/kkm_last_doc_name [10:21:26]save OK [10:21:26]Clear old archive folders... [10:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:26]tlvbuf is B6DC73E0 [10:21:26]SAM_PROTO_ClearQueue [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 09 00 00 [10:21:26]Write to MH i2c: E2 08 00 03 2D 80 09 00 00 00 00 00 00 A2 [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 03 2D 00 90 00 A4 [10:21:26]RAPDU: 90 00 [10:21:26]wFMCommunicate OK [10:21:26]SAM_PROTO_ClearQueue done [10:21:26]KKMCreateOFDPacket [10:21:26]OFDProtocolAddRootSTLVToBuf [10:21:26]FM_MakeSignedData [10:21:26]FM_MakeSignedData [10:21:26]SAM_PROTO_SignData [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 0D 01 02 [10:21:26]Write to MH i2c: E2 08 00 04 2D 80 0D 01 02 00 00 00 00 AA [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 04 2D 00 90 00 A5 [10:21:26]RAPDU: 90 00 [10:21:26]wFMCommunicate OK [10:21:26]wFMCommunicate request_size=255 [10:21:26]MH_SAM_APDU [10:21: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 32 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 84 00 00 00 F4 03 04 00 29 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 14 03 00 35 04 06 00 48 [10:21:26]Write to MH i2c: E2 02 01 05 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 84 00 00 00 F4 03 04 00 29 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 14 03 00 35 04 06 00 48 00 00 37 [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 05 2D 00 90 00 A6 [10:21:26]RAPDU: 90 00 [10:21:26]wFMCommunicate OK [10:21:26]wFMCommunicate request_size=10 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 0D 02 02 05 99 64 B6 26 D0 [10:21:26]Write to MH i2c: E2 0D 00 06 2D 80 0D 02 02 05 00 99 64 B6 26 D0 00 00 60 [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 06 2D 00 90 00 A7 [10:21:26]RAPDU: 90 00 [10:21:26]wFMCommunicate OK [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 0D 03 02 [10:21:26]Write to MH i2c: E2 08 00 07 2D 80 0D 03 02 00 00 00 00 AF [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 0B 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 0B 00 07 2D 00 51 E7 46 50 C0 32 8A 78 90 00 72 [10:21:26]RAPDU: 51 E7 46 50 C0 32 8A 78 90 00 [10:21:26]wFMCommunicate OK [10:21:26]SAM_PROTO_SignData done [10:21:26]FM_MakeSignedData done [10:21:26]CreateOFDProtocolMessage [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 11 00 00 [10:21:26]Write to MH i2c: E2 08 00 08 2D 80 11 00 00 00 00 00 00 AF [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 17 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 17 00 08 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [10:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:21:26]wFMCommunicate OK [10:21:26]CreateOFDProtocolMessage done [10:21:26]OFDSenderStorePacket 201840 [10:21:26]StoreOFDPacket docnum=201840 [10:21:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9E A7 07 01 B7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 84 00 00 00 F4 03 04 00 29 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 14 03 00 35 04 06 00 48 99 64 B6 26 D0 51 E7 46 50 C0 32 8A 78 [10:21:26]CheckFolder [10:21:26]dirname=/storage/ofd_packets [10:21:26]CheckFolder done [10:21:26]ProducePacketName [10:21:26]name=ofd_packets/00201840 [10:21:26]NVStorageSaveData ofd_packets/00201840 [10:21:26]File name is /storage/ofd_packets/00201840 [10:21:26]Write 301 bytes [10:21:26]NVStorageSaveData done [10:21:26]OFDSenderStorePacket done [10:21:26]KKMCreateOFDPacket done [10:21:26]NVStorageSaveData kkm_last_timestamp [10:21:26]File name is /storage/kkm_last_timestamp [10:21:26]Write 4 bytes [10:21:26]NVStorageSaveData done [10:21:26]ExternCall_PrintAddStr [10:21:26]wPrintStart [10:21:26]Write to MH i2c: 01 00 00 09 2D 36 [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: 01 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: 01 07 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: 01 07 00 09 2D 00 00 00 00 00 FF 0F 4B [10:21:26]RasterBufferAndPrint [10:21:26]line Счет N : (1)449600 [10:21:26]line ИНН: 02508201610067 [10:21:26]line Контрольно-Кассовый Чек [10:21:26]line ПРОДАЖА [10:21:26]line ТРК (МРК, ГНК) : 62 [10:21:26]line Товар: 2710124130 [10:21:26]line Аи-92-К-2 [10:21:26]line 2.990 * 66.90 [10:21:26]line = 200.03 [10:21:26]line НДС 12% НСП 1% [10:21:26]line > о реализуемом товаре [10:21:26]line ОКРУГЛЕНИЕ: -0.03 [10:21:26]line ИТОГО: 200.00 [10:21:26]line Внесено: 200.00 [10:21:26]line СДАЧА: 0.00 [10:21:26]line НСП 1% : 1.77 [10:21:26]line НДС 12% : 21.24 [10:21:26]line Наличными: 200.00 [10:21:26]line Безнал.: 0.00 [10:21:26]line Место: АЗС № 171 "Партнер Нефть" [10:21:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:21:26]line СНО: Общий режим [10:21:26]line Чек 132 27.10.2024 10:21 [10:21:26]line Смена: 544 ФФД: 1.0 [10:21:26]line ЗНМ: 0300000109 [10:21:26]line РНМ: 0000000000091777 [10:21:26]line Версия ККМ: 001 [10:21:26]line ФМ: 0000000000871756 [10:21:26]line ФД: 201840 [10:21:26]line ФПД: 79823656855248 [10:21:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102129&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201840&fm=79823656855248&tin=02508201610067®Number=0000000000091777&sum=20000 [10:21:26]OFD Sender: Processing packet 201840 [packets to send 112, broken 111] [10:21:26]ProducePacketName [10:21:26]name=ofd_packets/00201840 [10:21:26]OFD Sender: To server: pG, [10:21:26]CommunicateWithHost lk.salyk.kg:30040 [10:21:26]ConnectInit lk.salyk.kg [10:21:26]written 0, free lines is 4095 [10:21:27]Connected sock=10 [10:21:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9E A7 07 01 B7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 84 00 00 00 F4 03 04 00 29 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 14 03 00 35 04 06 00 48 99 64 B6 26 D0 51 E7 46 50 C0 32 8A 78 [10:21:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 29 7F 47 00 70 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 14 03 00 F4 03 04 00 CE BF 1D 67 B6 04 01 00 00 3F 86 88 4E 85 00 1C D1 [10:21:27]CommunicateWithHost err = 0 [10:21:27]CheckOFDResponse [10:21:27]1017 (14) - 77093643461234 [10:21:27]1041 (16) - 0000000000871756 [10:21:27]1040 (4) - 201840 [10:21:27]1012 (4) - 27.10.2024 04:21 [10:21:27]1206 (1) - 0 [10:21:27]OFD Sender: Remove packet 201840 [10:21:27]ProducePacketName [10:21:27]name=ofd_packets/00201840 [10:21:27]NVStorageDeleteData [10:21:27]Write to MH i2c: 01 00 00 34 2D 61 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 07 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 07 00 34 2D 00 00 00 00 00 91 0C 05 [10:21:27]RasterBufferAndPrint [10:21:27]line [10:21:27]line [10:21:27]line [10:21:27]line [10:21:27]line [10:21:27]written 0, free lines is 3221 [10:21:27]MH_Cut [10:21:27]Write to MH i2c: D1 01 00 3B 2D 01 3A [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: D1 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: D1 01 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: D1 01 00 3B 2D 00 39 [10:21:27]Write to MH i2c: 01 00 00 3C 2D 69 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]OFD Sender: No OFD packet to send [10:21:28]*** Cut start [10:21:28]*** Purtial cut [10:21:28]*** Stage 1: CUTSNS_PIN = 1 [10:21:28]Read from MH i2c: 01 [10:21:28]MH_I2C_Read... [10:21:28]*** Stop cut motor [10:21:28]*** Cut end [10:21:28]Read from MH i2c: 01 07 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: 01 07 00 3C 2D 00 00 00 00 00 FF 0F 7E [10:21:28]process_action close_receipt done [10:21:28]requested_data is exist [10:21:28]produce_requested_data [10:21:28]requested_item fm.sn is exist - process it [10:21:28]wFMCommunicate request_size=4 [10:21:28]MH_SAM_APDU [10:21:28]CAPDU: 80 11 00 00 [10:21:28]Write to MH i2c: E2 08 00 3D 2D 80 11 00 00 00 00 00 00 E4 [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:28]Read from MH i2c: E2 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 17 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 17 00 3D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 39 [10:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:21:28]wFMCommunicate OK [10:21:28]requested_item fd.num is exist - process it [10:21:28]SAM_PROTO_GetFieldsCounters [10:21:28]wFMCommunicate request_size=4 [10:21:28]MH_SAM_APDU [10:21:28]CAPDU: 80 13 00 00 [10:21:28]Write to MH i2c: E2 08 00 3E 2D 80 13 00 00 00 00 00 00 E7 [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:28]Read from MH i2c: E2 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 62 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 62 00 3E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 70 14 03 00 0E 04 04 00 20 02 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 45 [10:21:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 70 14 03 00 0E 04 04 00 20 02 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 [10:21:28]wFMCommunicate OK [10:21:28]SAM_PROTO_GetFieldsCounters done [10:21:28]requested_item shift.num is exist - process it [10:21:28]requested_item shift.opened is exist - process it [10:21:28]req_shift_opened [10:21:28]FM_GetShiftState [10:21:28]SAM_PROTO_GetShiftState [10:21:28]wFMCommunicate request_size=4 [10:21:28]MH_SAM_APDU [10:21:28]CAPDU: 80 13 01 00 [10:21:28]Write to MH i2c: E2 08 00 3F 2D 80 13 01 00 00 00 00 00 E9 [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:28]Read from MH i2c: E2 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 0E 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 0E 00 3F 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 EB [10:21:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:21:28]wFMCommunicate OK [10:21:28]SAM_PROTO_GetShiftState done [10:21:28]FM_GetShiftState done [10:21:28]req_shift_opened done [10:21:28]requested_item shift.open_date is exist - process it [10:21:28]req_shift_open_date [10:21:28]req_shift_open_date done [10:21:28]produce_requested_data done [10:21:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201840,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:21:28]process_action_free close_receipt [10:21:28]json_value_free [10:21:28]json_value_free done [10:21:28]process_json_proto returns [10:21:28]Send response to host [10:21:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201840,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:21:28]free response buf [10:21:28]execute_script done [10:21:28]execute_script returns [10:21:28]free content buf [10:21:28]Sock 9.Close socket [10:21:28]Sock 9.Thread stoped [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:18]accept exits with 8 [10:22:18]New connection [10:22:18]New thread 3067080036 created [10:22:18]Thread 3066936676 joined [10:22:18]Waiting for new connection... [10:22:18] Sock 8.Parse request [10:22:18]Sock 8.Check first char [10:22:18]Sock 8.First char is OK [10:22:18]request: POST /json_proto HTTP/1.0 [10:22:18]Method: POST [10:22:18]URL: /json_proto [10:22:18]Method is POST - this is cgi request [10:22:18]url: /json_proto [10:22:18]query_string will be loaded in cgi processing [10:22:18]execute_cgi json_proto POST (null) [10:22:18]execute_cgi path=json_proto method=POST [10:22:18]POST find Content-Length [10:22:18]Host: 172.17.63.195:8080 [10:22:18]Content-Length: 682 [10:22:18]Content-Type: application/json [10:22:18] [10:22:18]POST finish read [10:22:18]Found Content-Length = 682 [10:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:18]execute_script... [10:22: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)449601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:18]POST & json_proto [10:22:18]process_json_proto [10:22:18]json parsed OK: [10:22:18]protocol is kg_v1.0 [10:22:18]action value=close_receipt [10:22:18]process_action close_receipt [10:22:18]cmd_close_receipt [10:22:18]MH_GetDate [10:22:18]Write to MH i2c: F0 00 00 40 2D 5C [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 09 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 09 00 40 2D 00 5E 14 1E 67 68 46 19 67 8A [10:22:18]GetLastDocTimeStamp 1730024489 [10:22:18]current date 1730024542 [10:22:18]FM_GetShiftState [10:22:18]SAM_PROTO_GetShiftState [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 13 01 00 [10:22:18]Write to MH i2c: E2 08 00 41 2D 80 13 01 00 00 00 00 00 EB [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 41 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 ED [10:22:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_GetShiftState done [10:22:18]FM_GetShiftState done [10:22:18]opened in 1729987312 [10:22:18]opened+sec_in_day 1730073712 [10:22:18]quantity*price = 120018 [10:22:18]sum+1 = 120020 [10:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 133 27.10.2024 10:22 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201841 ФПД: 171664916942978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102222&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201841&fm=171664916942978&tin=02508201610067®Number=0000000000091777&sum=120000 [10:22:19]StoreToDocumentArchive [10:22:19]shift 544 fd 201841 [10:22:19]save to /storage/0544/doc_00201841 [10:22:19]save last doc name /storage/0544/doc_00201841 to /storage/kkm_last_doc_name [10:22:19]save OK [10:22:19]Clear old archive folders... [10:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:19]tlvbuf is 001AEFE0 [10:22:19]SAM_PROTO_ClearQueue [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 09 00 00 [10:22:19]Write to MH i2c: E2 08 00 4E 2D 80 09 00 00 00 00 00 00 ED [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 4E 2D 00 90 00 EF [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]SAM_PROTO_ClearQueue done [10:22:19]KKMCreateOFDPacket [10:22:19]OFDProtocolAddRootSTLVToBuf [10:22:19]FM_MakeSignedData [10:22:19]FM_MakeSignedData [10:22:19]SAM_PROTO_SignData [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 01 02 [10:22:19]Write to MH i2c: E2 08 00 4F 2D 80 0D 01 02 00 00 00 00 F5 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 4F 2D 00 90 00 F0 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=255 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5E 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 14 03 00 35 04 06 00 9C [10:22:19]Write to MH i2c: E2 02 01 50 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5E 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 14 03 00 35 04 06 00 9C 00 00 52 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 50 2D 00 90 00 F1 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=10 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 02 02 05 20 DA 65 10 82 [10:22:19]Write to MH i2c: E2 0D 00 51 2D 80 0D 02 02 05 00 20 DA 65 10 82 00 00 F3 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:20]Read from MH i2c: E2 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 03 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 03 00 51 2D 00 90 00 F2 [10:22:20]RAPDU: 90 00 [10:22:20]wFMCommunicate OK [10:22:20]wFMCommunicate request_size=4 [10:22:20]MH_SAM_APDU [10:22:20]CAPDU: 80 0D 03 02 [10:22:20]Write to MH i2c: E2 08 00 52 2D 80 0D 03 02 00 00 00 00 FA [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:20]Read from MH i2c: E2 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 0B 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 0B 00 52 2D 00 5F 5F 50 1D A6 B2 6C 34 90 00 1E [10:22:20]RAPDU: 5F 5F 50 1D A6 B2 6C 34 90 00 [10:22:20]wFMCommunicate OK [10:22:20]SAM_PROTO_SignData done [10:22:20]FM_MakeSignedData done [10:22:20]CreateOFDProtocolMessage [10:22:20]wFMCommunicate request_size=4 [10:22:20]MH_SAM_APDU [10:22:20]CAPDU: 80 11 00 00 [10:22:20]Write to MH i2c: E2 08 00 53 2D 80 11 00 00 00 00 00 00 FA [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:20]Read from MH i2c: E2 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 17 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: E2 17 00 53 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [10:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:22:20]wFMCommunicate OK [10:22:20]CreateOFDProtocolMessage done [10:22:20]OFDSenderStorePacket 201841 [10:22:20]StoreOFDPacket docnum=201841 [10:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 60 07 01 85 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5E 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 14 03 00 35 04 06 00 9C 20 DA 65 10 82 5F 5F 50 1D A6 B2 6C 34 [10:22:20]CheckFolder [10:22:20]dirname=/storage/ofd_packets [10:22:20]CheckFolder done [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00201841 [10:22:20]NVStorageSaveData ofd_packets/00201841 [10:22:20]File name is /storage/ofd_packets/00201841 [10:22:20]Write 301 bytes [10:22:20]NVStorageSaveData done [10:22:20]OFDSenderStorePacket done [10:22:20]KKMCreateOFDPacket done [10:22:20]NVStorageSaveData kkm_last_timestamp [10:22:20]File name is /storage/kkm_last_timestamp [10:22:20]Write 4 bytes [10:22:20]NVStorageSaveData done [10:22:20]ExternCall_PrintAddStr [10:22:20]wPrintStart [10:22:20]Write to MH i2c: 01 00 00 54 2D 81 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 54 2D 00 00 00 00 00 FF 0F 96 [10:22:20]RasterBufferAndPrint [10:22:20]line Счет N : (1)449601 [10:22:20]line ИНН: 02508201610067 [10:22:20]line Контрольно-Кассовый Чек [10:22:20]line ПРОДАЖА [10:22:20]line ТРК (МРК, ГНК) : 52 [10:22:20]line Товар: 2710124130 [10:22:20]line Аи-92-К-2 [10:22:20]line 17.940 * 66.90 [10:22:20]line = 1200.19 [10:22:20]line НДС 12% НСП 1% [10:22:20]line > о реализуемом товаре [10:22:20]line ОКРУГЛЕНИЕ: -0.19 [10:22:20]line ИТОГО: 1200.00 [10:22:20]line Внесено: 1200.00 [10:22:20]line СДАЧА: 0.00 [10:22:20]line НСП 1% : 10.62 [10:22:20]line НДС 12% : 127.45 [10:22:20]line Наличными: 1200.00 [10:22:20]line Безнал.: 0.00 [10:22:20]line Место: АЗС № 171 "Партнер Нефть" [10:22:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:22:20]line СНО: Общий режим [10:22:20]line Чек 133 27.10.2024 10:22 [10:22:20]line Смена: 544 ФФД: 1.0 [10:22:20]line ЗНМ: 0300000109 [10:22:20]line РНМ: 0000000000091777 [10:22:20]line Версия ККМ: 001 [10:22:20]line ФМ: 0000000000871756 [10:22:20]line ФД: 201841 [10:22:20]line ФПД: 171664916942978 [10:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102222&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201841&fm=171664916942978&tin=02508201610067®Number=0000000000091777&sum=120000 [10:22:20]OFD Sender: Processing packet 201841 [packets to send 112, broken 111] [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00201841 [10:22:20]OFD Sender: To server: pG, [10:22:20]CommunicateWithHost lk.salyk.kg:30040 [10:22:20]ConnectInit lk.salyk.kg [10:22:20]written 0, free lines is 4095 [10:22:20]Connected sock=10 [10:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 60 07 01 85 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5E 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 14 03 00 35 04 06 00 9C 20 DA 65 10 82 5F 5F 50 1D A6 B2 6C 34 [10:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 25 FB 47 00 AD C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 14 03 00 F4 03 04 00 04 C0 1D 67 B6 04 01 00 00 67 EA 99 CD 8F 7D B5 B7 [10:22:20]CommunicateWithHost err = 0 [10:22:20]CheckOFDResponse [10:22:20]1017 (14) - 77093643461234 [10:22:20]1041 (16) - 0000000000871756 [10:22:20]1040 (4) - 201841 [10:22:20]1012 (4) - 27.10.2024 04:22 [10:22:20]1206 (1) - 0 [10:22:20]OFD Sender: Remove packet 201841 [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00201841 [10:22:20]NVStorageDeleteData [10:22:20]Write to MH i2c: 01 00 00 7F 2D AC [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 7F 2D 00 00 00 00 00 8F 0C 4E [10:22:20]RasterBufferAndPrint [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]written 0, free lines is 3219 [10:22:20]MH_Cut [10:22:20]Write to MH i2c: D1 01 00 86 2D 01 85 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 01 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 01 00 86 2D 00 84 [10:22:20]Write to MH i2c: 01 00 00 87 2D B4 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:21]OFD Sender: No OFD packet to send [10:22:21]*** Cut start [10:22:21]*** Purtial cut [10:22:21]*** Stage 1: CUTSNS_PIN = 1 [10:22:22]Read from MH i2c: 01 [10:22:22]MH_I2C_Read... [10:22:22]*** Stop cut motor [10:22:22]*** Cut end [10:22:22]Read from MH i2c: 01 07 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: 01 07 00 87 2D 00 00 00 00 00 FF 0F C9 [10:22:22]process_action close_receipt done [10:22:22]requested_data is exist [10:22:22]produce_requested_data [10:22:22]requested_item fm.sn is exist - process it [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 11 00 00 [10:22:22]Write to MH i2c: E2 08 00 88 2D 80 11 00 00 00 00 00 00 2F [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 17 00 88 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [10:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:22:22]wFMCommunicate OK [10:22:22]requested_item fd.num is exist - process it [10:22:22]SAM_PROTO_GetFieldsCounters [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 13 00 00 [10:22:22]Write to MH i2c: E2 08 00 89 2D 80 13 00 00 00 00 00 00 32 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 62 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 62 00 89 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 71 14 03 00 0E 04 04 00 20 02 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 94 [10:22:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 71 14 03 00 0E 04 04 00 20 02 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 [10:22:22]wFMCommunicate OK [10:22:22]SAM_PROTO_GetFieldsCounters done [10:22:22]requested_item shift.num is exist - process it [10:22:22]requested_item shift.opened is exist - process it [10:22:22]req_shift_opened [10:22:22]FM_GetShiftState [10:22:22]SAM_PROTO_GetShiftState [10:22:22]wFMCommunicate request_size=4 [10:22:22]MH_SAM_APDU [10:22:22]CAPDU: 80 13 01 00 [10:22:22]Write to MH i2c: E2 08 00 8A 2D 80 13 01 00 00 00 00 00 34 [10:22:22]Write i2c OK [10:22:22]MH_I2C_Read... [10:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:22]Read from MH i2c: E2 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 0E 00 [10:22:22]MH_I2C_Read... [10:22:22]Read from MH i2c: E2 0E 00 8A 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 36 [10:22:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:22:22]wFMCommunicate OK [10:22:22]SAM_PROTO_GetShiftState done [10:22:22]FM_GetShiftState done [10:22:22]req_shift_opened done [10:22:22]requested_item shift.open_date is exist - process it [10:22:22]req_shift_open_date [10:22:22]req_shift_open_date done [10:22:22]produce_requested_data done [10:22:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201841,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:22:22]process_action_free close_receipt [10:22:22]json_value_free [10:22:22]json_value_free done [10:22:22]process_json_proto returns [10:22:22]Send response to host [10:22:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201841,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:22:22]free response buf [10:22:22]execute_script done [10:22:22]execute_script returns [10:22:22]free content buf [10:22:22]Sock 8.Close socket [10:22:22]Sock 8.Thread stoped [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:07]accept exits with 9 [10:23:07]New connection [10:23:07]New thread 3066936676 created [10:23:07]Thread 3067080036 joined [10:23:07]Waiting for new connection... [10:23:07] Sock 9.Parse request [10:23:07]Sock 9.Check first char [10:23:07]Sock 9.First char is OK [10:23:07]request: POST /json_proto HTTP/1.0 [10:23:07]Method: POST [10:23:07]URL: /json_proto [10:23:07]Method is POST - this is cgi request [10:23:07]url: /json_proto [10:23:07]query_string will be loaded in cgi processing [10:23:07]execute_cgi json_proto POST (null) [10:23:07]execute_cgi path=json_proto method=POST [10:23:07]POST find Content-Length [10:23:07]Host: 172.17.63.195:8080 [10:23:07]Content-Length: 677 [10:23:07]Content-Type: application/json [10:23:07] [10:23:07]POST finish read [10:23:07]Found Content-Length = 677 [10:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:23:07]execute_script... [10:23: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)449602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:23:07]POST & json_proto [10:23:07]process_json_proto [10:23:07]json parsed OK: [10:23:07]protocol is kg_v1.0 [10:23:07]action value=close_receipt [10:23:07]process_action close_receipt [10:23:07]cmd_close_receipt [10:23:07]MH_GetDate [10:23:07]Write to MH i2c: F0 00 00 8B 2D A7 [10:23:07]Write i2c OK [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: F0 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: F0 09 00 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: F0 09 00 8B 2D 00 90 14 1E 67 68 46 19 67 07 [10:23:07]GetLastDocTimeStamp 1730024542 [10:23:07]current date 1730024592 [10:23:07]FM_GetShiftState [10:23:07]SAM_PROTO_GetShiftState [10:23:07]wFMCommunicate request_size=4 [10:23:07]MH_SAM_APDU [10:23:07]CAPDU: 80 13 01 00 [10:23:07]Write to MH i2c: E2 08 00 8C 2D 80 13 01 00 00 00 00 00 36 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:08]Read from MH i2c: E2 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 0E 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 0E 00 8C 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 38 [10:23:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:23:08]wFMCommunicate OK [10:23:08]SAM_PROTO_GetShiftState done [10:23:08]FM_GetShiftState done [10:23:08]opened in 1729987312 [10:23:08]opened+sec_in_day 1730073712 [10:23:08]quantity*price = 20003 [10:23:08]sum+1 = 20004 [10:23:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 134 27.10.2024 10:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201842 ФПД: 53888197053135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102312&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201842&fm=53888197053135&tin=02508201610067®Number=0000000000091777&sum=20000 [10:23:09]StoreToDocumentArchive [10:23:09]shift 544 fd 201842 [10:23:09]save to /storage/0544/doc_00201842 [10:23:09]save last doc name /storage/0544/doc_00201842 to /storage/kkm_last_doc_name [10:23:09]save OK [10:23:09]Clear old archive folders... [10:23:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:09]tlvbuf is 00082D30 [10:23:09]SAM_PROTO_ClearQueue [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 09 00 00 [10:23:09]Write to MH i2c: E2 08 00 99 2D 80 09 00 00 00 00 00 00 38 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 99 2D 00 90 00 3A [10:23:09]RAPDU: 90 00 [10:23:09]wFMCommunicate OK [10:23:09]SAM_PROTO_ClearQueue done [10:23:09]KKMCreateOFDPacket [10:23:09]OFDProtocolAddRootSTLVToBuf [10:23:09]FM_MakeSignedData [10:23:09]FM_MakeSignedData [10:23:09]SAM_PROTO_SignData [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 0D 01 02 [10:23:09]Write to MH i2c: E2 08 00 9A 2D 80 0D 01 02 00 00 00 00 40 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 9A 2D 00 90 00 3B [10:23:09]RAPDU: 90 00 [10:23:09]wFMCommunicate OK [10:23:09]wFMCommunicate request_size=255 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 86 00 00 00 F4 03 04 00 90 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 14 03 00 35 04 06 00 31 [10:23:09]Write to MH i2c: E2 02 01 9B 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 86 00 00 00 F4 03 04 00 90 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 14 03 00 35 04 06 00 31 00 00 21 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 9B 2D 00 90 00 3C [10:23:09]RAPDU: 90 00 [10:23:09]wFMCommunicate OK [10:23:09]wFMCommunicate request_size=10 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 0D 02 02 05 02 D2 D7 CA CF [10:23:09]Write to MH i2c: E2 0D 00 9C 2D 80 0D 02 02 05 00 02 D2 D7 CA CF 00 00 91 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 9C 2D 00 90 00 3D [10:23:09]RAPDU: 90 00 [10:23:09]wFMCommunicate OK [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 0D 03 02 [10:23:09]Write to MH i2c: E2 08 00 9D 2D 80 0D 03 02 00 00 00 00 45 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 0B 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 0B 00 9D 2D 00 3E 35 50 45 EE 9E 9F F1 90 00 6A [10:23:09]RAPDU: 3E 35 50 45 EE 9E 9F F1 90 00 [10:23:09]wFMCommunicate OK [10:23:09]SAM_PROTO_SignData done [10:23:09]FM_MakeSignedData done [10:23:09]CreateOFDProtocolMessage [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 11 00 00 [10:23:09]Write to MH i2c: E2 08 00 9E 2D 80 11 00 00 00 00 00 00 45 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 17 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 17 00 9E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [10:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:23:09]wFMCommunicate OK [10:23:09]CreateOFDProtocolMessage done [10:23:09]OFDSenderStorePacket 201842 [10:23:09]StoreOFDPacket docnum=201842 [10:23:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A6 65 07 01 1A 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 86 00 00 00 F4 03 04 00 90 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 14 03 00 35 04 06 00 31 02 D2 D7 CA CF 3E 35 50 45 EE 9E 9F F1 [10:23:09]CheckFolder [10:23:09]dirname=/storage/ofd_packets [10:23:09]CheckFolder done [10:23:09]ProducePacketName [10:23:09]name=ofd_packets/00201842 [10:23:09]NVStorageSaveData ofd_packets/00201842 [10:23:09]File name is /storage/ofd_packets/00201842 [10:23:09]Write 301 bytes [10:23:09]NVStorageSaveData done [10:23:09]OFDSenderStorePacket done [10:23:09]KKMCreateOFDPacket done [10:23:09]NVStorageSaveData kkm_last_timestamp [10:23:09]File name is /storage/kkm_last_timestamp [10:23:09]Write 4 bytes [10:23:09]NVStorageSaveData done [10:23:09]ExternCall_PrintAddStr [10:23:09]wPrintStart [10:23:09]Write to MH i2c: 01 00 00 9F 2D CC [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 07 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 07 00 9F 2D 00 00 00 00 00 FF 0F E1 [10:23:09]RasterBufferAndPrint [10:23:09]line Счет N : (1)449602 [10:23:09]line ИНН: 02508201610067 [10:23:09]line Контрольно-Кассовый Чек [10:23:09]line ПРОДАЖА [10:23:09]line ТРК (МРК, ГНК) : 62 [10:23:09]line Товар: 2710124130 [10:23:09]line Аи-92-К-2 [10:23:09]line 2.990 * 66.90 [10:23:09]line = 200.03 [10:23:09]line НДС 12% НСП 1% [10:23:09]line > о реализуемом товаре [10:23:09]line ОКРУГЛЕНИЕ: -0.03 [10:23:09]line ИТОГО: 200.00 [10:23:09]line Внесено: 200.00 [10:23:09]line СДАЧА: 0.00 [10:23:09]line НСП 1% : 1.77 [10:23:09]line НДС 12% : 21.24 [10:23:09]line Наличными: 200.00 [10:23:09]line Безнал.: 0.00 [10:23:09]line Место: АЗС № 171 "Партнер Нефть" [10:23:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:23:09]line СНО: Общий режим [10:23:09]line Чек 134 27.10.2024 10:23 [10:23:09]line Смена: 544 ФФД: 1.0 [10:23:09]line ЗНМ: 0300000109 [10:23:09]line РНМ: 0000000000091777 [10:23:09]line Версия ККМ: 001 [10:23:09]line ФМ: 0000000000871756 [10:23:09]line ФД: 201842 [10:23:09]line ФПД: 53888197053135 [10:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102312&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201842&fm=53888197053135&tin=02508201610067®Number=0000000000091777&sum=20000 [10:23:10]OFD Sender: Processing packet 201842 [packets to send 112, broken 111] [10:23:10]ProducePacketName [10:23:10]name=ofd_packets/00201842 [10:23:10]OFD Sender: To server: pG, [10:23:10]CommunicateWithHost lk.salyk.kg:30040 [10:23:10]ConnectInit lk.salyk.kg [10:23:10]written 0, free lines is 4095 [10:23:10]Connected sock=10 [10:23:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A6 65 07 01 1A 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 86 00 00 00 F4 03 04 00 90 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 14 03 00 35 04 06 00 31 02 D2 D7 CA CF 3E 35 50 45 EE 9E 9F F1 [10:23:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5B 7A 47 00 E1 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 14 03 00 F4 03 04 00 35 C0 1D 67 B6 04 01 00 00 6D 5A 52 2A 38 48 06 F7 [10:23:10]CommunicateWithHost err = 0 [10:23:10]CheckOFDResponse [10:23:10]1017 (14) - 77093643461234 [10:23:10]1041 (16) - 0000000000871756 [10:23:10]1040 (4) - 201842 [10:23:10]1012 (4) - 27.10.2024 04:23 [10:23:10]1206 (1) - 0 [10:23:10]OFD Sender: Remove packet 201842 [10:23:10]ProducePacketName [10:23:10]name=ofd_packets/00201842 [10:23:10]NVStorageDeleteData [10:23:10]Write to MH i2c: 01 00 00 CA 2D F7 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: 01 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: 01 07 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: 01 07 00 CA 2D 00 00 00 00 00 92 0C 9C [10:23:10]RasterBufferAndPrint [10:23:10]line [10:23:10]line [10:23:10]line [10:23:10]line [10:23:10]line [10:23:10]written 0, free lines is 3223 [10:23:10]MH_Cut [10:23:10]Write to MH i2c: D1 01 00 D1 2D 01 D0 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: D1 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: D1 01 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: D1 01 00 D1 2D 00 CF [10:23:10]Write to MH i2c: 01 00 00 D2 2D FF [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]OFD Sender: No OFD packet to send [10:23:11]*** Cut start [10:23:11]*** Purtial cut [10:23:11]*** CUTSNS_PIN = 0 [10:23:11]*** Stage 1: CUTSNS_PIN = 1 [10:23:13]Read from MH i2c: 01 [10:23:13]MH_I2C_Read... [10:23:13]*** Stop cut motor [10:23:13]*** Cut end [10:23:13]Read from MH i2c: 01 07 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: 01 07 00 D2 2D 00 00 00 00 00 FF 0F 14 [10:23:13]process_action close_receipt done [10:23:13]requested_data is exist [10:23:13]produce_requested_data [10:23:13]requested_item fm.sn is exist - process it [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 11 00 00 [10:23:13]Write to MH i2c: E2 08 00 D3 2D 80 11 00 00 00 00 00 00 7A [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:13]Read from MH i2c: E2 17 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 17 00 D3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CF [10:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:23:13]wFMCommunicate OK [10:23:13]requested_item fd.num is exist - process it [10:23:13]SAM_PROTO_GetFieldsCounters [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 13 00 00 [10:23:13]Write to MH i2c: E2 08 00 D4 2D 80 13 00 00 00 00 00 00 7D [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 62 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 62 00 D4 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 72 14 03 00 0E 04 04 00 20 02 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 E3 [10:23:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 72 14 03 00 0E 04 04 00 20 02 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 [10:23:13]wFMCommunicate OK [10:23:13]SAM_PROTO_GetFieldsCounters done [10:23:13]requested_item shift.num is exist - process it [10:23:13]requested_item shift.opened is exist - process it [10:23:13]req_shift_opened [10:23:13]FM_GetShiftState [10:23:13]SAM_PROTO_GetShiftState [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 13 01 00 [10:23:13]Write to MH i2c: E2 08 00 D5 2D 80 13 01 00 00 00 00 00 7F [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 0E 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 0E 00 D5 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 81 [10:23:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:23:13]wFMCommunicate OK [10:23:13]SAM_PROTO_GetShiftState done [10:23:13]FM_GetShiftState done [10:23:13]req_shift_opened done [10:23:13]requested_item shift.open_date is exist - process it [10:23:13]req_shift_open_date [10:23:13]req_shift_open_date done [10:23:13]produce_requested_data done [10:23:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201842,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:23:13]process_action_free close_receipt [10:23:13]json_value_free [10:23:13]json_value_free done [10:23:13]process_json_proto returns [10:23:13]Send response to host [10:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201842,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:23:13]free response buf [10:23:13]execute_script done [10:23:13]execute_script returns [10:23:13]free content buf [10:23:13]Sock 9.Close socket [10:23:13]Sock 9.Thread stoped [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]accept exits with 8 [10:24:10]New connection [10:24:10]New thread 3067080036 created [10:24:10]Thread 3066936676 joined [10:24:10]Waiting for new connection... [10:24:10] Sock 8.Parse request [10:24:10]Sock 8.Check first char [10:24:10]Sock 8.First char is OK [10:24:10]request: POST /json_proto HTTP/1.0 [10:24:10]Method: POST [10:24:10]URL: /json_proto [10:24:10]Method is POST - this is cgi request [10:24:10]url: /json_proto [10:24:10]query_string will be loaded in cgi processing [10:24:10]execute_cgi json_proto POST (null) [10:24:10]execute_cgi path=json_proto method=POST [10:24:10]POST find Content-Length [10:24:10]Host: 172.17.63.195:8080 [10:24:10]Content-Length: 682 [10:24:10]Content-Type: application/json [10:24:10] [10:24:10]POST finish read [10:24:10]Found Content-Length = 682 [10:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:10]execute_script... [10: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 : (1)449603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:10]POST & json_proto [10:24:10]process_json_proto [10:24:10]json parsed OK: [10:24:10]protocol is kg_v1.0 [10:24:10]action value=close_receipt [10:24:10]process_action close_receipt [10:24:10]cmd_close_receipt [10:24:10]MH_GetDate [10:24:10]Write to MH i2c: F0 00 00 D6 2D F2 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 09 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 09 00 D6 2D 00 CE 14 1E 67 68 46 19 67 90 [10:24:10]GetLastDocTimeStamp 1730024592 [10:24:10]current date 1730024654 [10:24:10]FM_GetShiftState [10:24:10]SAM_PROTO_GetShiftState [10:24:10]wFMCommunicate request_size=4 [10:24:10]MH_SAM_APDU [10:24:10]CAPDU: 80 13 01 00 [10:24:10]Write to MH i2c: E2 08 00 D7 2D 80 13 01 00 00 00 00 00 81 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:10]Read from MH i2c: E2 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 0E 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 0E 00 D7 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 83 [10:24:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:24:10]wFMCommunicate OK [10:24:10]SAM_PROTO_GetShiftState done [10:24:10]FM_GetShiftState done [10:24:10]opened in 1729987312 [10:24:10]opened+sec_in_day 1730073712 [10:24:10]quantity*price = 100015 [10:24:10]sum+1 = 100017 [10:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 135 27.10.2024 10:24 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201843 ФПД: 130512165294285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102414&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201843&fm=130512165294285&tin=02508201610067®Number=0000000000091777&sum=100000 [10:24:11]StoreToDocumentArchive [10:24:11]shift 544 fd 201843 [10:24:11]save to /storage/0544/doc_00201843 [10:24:11]save last doc name /storage/0544/doc_00201843 to /storage/kkm_last_doc_name [10:24:11]save OK [10:24:11]Clear old archive folders... [10:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:11]tlvbuf is 000C84B0 [10:24:11]SAM_PROTO_ClearQueue [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 09 00 00 [10:24:11]Write to MH i2c: E2 08 00 E4 2D 80 09 00 00 00 00 00 00 83 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 E4 2D 00 90 00 85 [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_ClearQueue done [10:24:11]KKMCreateOFDPacket [10:24:11]OFDProtocolAddRootSTLVToBuf [10:24:11]FM_MakeSignedData [10:24:11]FM_MakeSignedData [10:24:11]SAM_PROTO_SignData [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 01 02 [10:24:11]Write to MH i2c: E2 08 00 E5 2D 80 0D 01 02 00 00 00 00 8B [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 E5 2D 00 90 00 86 [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]wFMCommunicate request_size=255 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 00 00 00 F4 03 04 00 CE 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 14 03 00 35 04 06 00 76 [10:24:11]Write to MH i2c: E2 02 01 E6 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 00 00 00 F4 03 04 00 CE 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 14 03 00 35 04 06 00 76 00 00 29 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 E6 2D 00 90 00 87 [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]wFMCommunicate request_size=10 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 02 02 05 B3 3B 40 50 CD [10:24:11]Write to MH i2c: E2 0D 00 E7 2D 80 0D 02 02 05 00 B3 3B 40 50 CD 00 00 E3 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 E7 2D 00 90 00 88 [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 03 02 [10:24:11]Write to MH i2c: E2 08 00 E8 2D 80 0D 03 02 00 00 00 00 90 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 0B 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 0B 00 E8 2D 00 A8 EE FE 6A 48 52 2B CB 90 00 1F [10:24:12]RAPDU: A8 EE FE 6A 48 52 2B CB 90 00 [10:24:12]wFMCommunicate OK [10:24:12]SAM_PROTO_SignData done [10:24:12]FM_MakeSignedData done [10:24:12]CreateOFDProtocolMessage [10:24:12]wFMCommunicate request_size=4 [10:24:12]MH_SAM_APDU [10:24:12]CAPDU: 80 11 00 00 [10:24:12]Write to MH i2c: E2 08 00 E9 2D 80 11 00 00 00 00 00 00 90 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:12]Read from MH i2c: E2 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 17 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: E2 17 00 E9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E5 [10:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:24:12]wFMCommunicate OK [10:24:12]CreateOFDProtocolMessage done [10:24:12]OFDSenderStorePacket 201843 [10:24:12]StoreOFDPacket docnum=201843 [10:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC 1B 07 01 28 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 00 00 00 F4 03 04 00 CE 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 14 03 00 35 04 06 00 76 B3 3B 40 50 CD A8 EE FE 6A 48 52 2B CB [10:24:12]CheckFolder [10:24:12]dirname=/storage/ofd_packets [10:24:12]CheckFolder done [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00201843 [10:24:12]NVStorageSaveData ofd_packets/00201843 [10:24:12]File name is /storage/ofd_packets/00201843 [10:24:12]Write 301 bytes [10:24:12]NVStorageSaveData done [10:24:12]OFDSenderStorePacket done [10:24:12]KKMCreateOFDPacket done [10:24:12]NVStorageSaveData kkm_last_timestamp [10:24:12]File name is /storage/kkm_last_timestamp [10:24:12]Write 4 bytes [10:24:12]NVStorageSaveData done [10:24:12]ExternCall_PrintAddStr [10:24:12]wPrintStart [10:24:12]Write to MH i2c: 01 00 00 EA 2D 17 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 EA 2D 00 00 00 00 00 FF 0F 2C [10:24:12]RasterBufferAndPrint [10:24:12]line Счет N : (1)449603 [10:24:12]line ИНН: 02508201610067 [10:24:12]line Контрольно-Кассовый Чек [10:24:12]line ПРОДАЖА [10:24:12]line ТРК (МРК, ГНК) : 52 [10:24:12]line Товар: 2710124130 [10:24:12]line Аи-92-К-2 [10:24:12]line 14.950 * 66.90 [10:24:12]line = 1000.16 [10:24:12]line НДС 12% НСП 1% [10:24:12]line > о реализуемом товаре [10:24:12]line ОКРУГЛЕНИЕ: -0.16 [10:24:12]line ИТОГО: 1000.00 [10:24:12]line Внесено: 1000.00 [10:24:12]line СДАЧА: 0.00 [10:24:12]line НСП 1% : 8.85 [10:24:12]line НДС 12% : 106.21 [10:24:12]line Наличными: 1000.00 [10:24:12]line Безнал.: 0.00 [10:24:12]line Место: АЗС № 171 "Партнер Нефть" [10:24:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:24:12]line СНО: Общий режим [10:24:12]line Чек 135 27.10.2024 10:24 [10:24:12]line Смена: 544 ФФД: 1.0 [10:24:12]line ЗНМ: 0300000109 [10:24:12]line РНМ: 0000000000091777 [10:24:12]line Версия ККМ: 001 [10:24:12]line ФМ: 0000000000871756 [10:24:12]line ФД: 201843 [10:24:12]line ФПД: 130512165294285 [10:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102414&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201843&fm=130512165294285&tin=02508201610067®Number=0000000000091777&sum=100000 [10:24:12]OFD Sender: Processing packet 201843 [packets to send 112, broken 111] [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00201843 [10:24:12]OFD Sender: To server: pG, [10:24:12]CommunicateWithHost lk.salyk.kg:30040 [10:24:12]ConnectInit lk.salyk.kg [10:24:12]written 0, free lines is 4095 [10:24:12]Connected sock=10 [10:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC 1B 07 01 28 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 00 00 00 F4 03 04 00 CE 14 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 14 03 00 35 04 06 00 76 B3 3B 40 50 CD A8 EE FE 6A 48 52 2B CB [10:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6F 8E 47 00 C6 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 14 03 00 F4 03 04 00 74 C0 1D 67 B6 04 01 00 00 1F 56 51 E7 27 EA AB D4 [10:24:12]CommunicateWithHost err = 0 [10:24:12]CheckOFDResponse [10:24:12]1017 (14) - 77093643461234 [10:24:12]1041 (16) - 0000000000871756 [10:24:12]1040 (4) - 201843 [10:24:12]1012 (4) - 27.10.2024 04:24 [10:24:12]1206 (1) - 0 [10:24:12]OFD Sender: Remove packet 201843 [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00201843 [10:24:12]NVStorageDeleteData [10:24:12]Write to MH i2c: 01 00 00 15 2E 43 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 15 2E 00 00 00 00 00 91 0C E7 [10:24:12]RasterBufferAndPrint [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]written 0, free lines is 3221 [10:24:12]MH_Cut [10:24:12]Write to MH i2c: D1 01 00 1C 2E 01 1C [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 01 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 01 00 1C 2E 00 1B [10:24:12]Write to MH i2c: 01 00 00 1D 2E 4B [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:13]OFD Sender: No OFD packet to send [10:24:13]*** Cut start [10:24:13]*** Purtial cut [10:24:13]*** Stage 1: CUTSNS_PIN = 1 [10:24:14]Read from MH i2c: 01 [10:24:14]MH_I2C_Read... [10:24:14]*** Stop cut motor [10:24:14]*** Cut end [10:24:14]Read from MH i2c: 01 07 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: 01 07 00 1D 2E 00 00 00 00 00 FF 0F 60 [10:24:14]process_action close_receipt done [10:24:14]requested_data is exist [10:24:14]produce_requested_data [10:24:14]requested_item fm.sn is exist - process it [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 11 00 00 [10:24:14]Write to MH i2c: E2 08 00 1E 2E 80 11 00 00 00 00 00 00 C6 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 17 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 17 00 1E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [10:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:24:14]wFMCommunicate OK [10:24:14]requested_item fd.num is exist - process it [10:24:14]SAM_PROTO_GetFieldsCounters [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 13 00 00 [10:24:14]Write to MH i2c: E2 08 00 1F 2E 80 13 00 00 00 00 00 00 C9 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 62 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 62 00 1F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 73 14 03 00 0E 04 04 00 20 02 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 33 [10:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 73 14 03 00 0E 04 04 00 20 02 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 [10:24:14]wFMCommunicate OK [10:24:14]SAM_PROTO_GetFieldsCounters done [10:24:14]requested_item shift.num is exist - process it [10:24:14]requested_item shift.opened is exist - process it [10:24:14]req_shift_opened [10:24:14]FM_GetShiftState [10:24:14]SAM_PROTO_GetShiftState [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 13 01 00 [10:24:14]Write to MH i2c: E2 08 00 20 2E 80 13 01 00 00 00 00 00 CB [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 0E 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 0E 00 20 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CD [10:24:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:24:14]wFMCommunicate OK [10:24:14]SAM_PROTO_GetShiftState done [10:24:14]FM_GetShiftState done [10:24:14]req_shift_opened done [10:24:14]requested_item shift.open_date is exist - process it [10:24:14]req_shift_open_date [10:24:14]req_shift_open_date done [10:24:14]produce_requested_data done [10:24:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201843,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:24:14]process_action_free close_receipt [10:24:14]json_value_free [10:24:14]json_value_free done [10:24:14]process_json_proto returns [10:24:14]Send response to host [10:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201843,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:24:14]free response buf [10:24:14]execute_script done [10:24:14]execute_script returns [10:24:14]free content buf [10:24:14]Sock 8.Close socket [10:24:14]Sock 8.Thread stoped [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:42]accept exits with 9 [10:25:42]New connection [10:25:42]New thread 3066936676 created [10:25:42]Thread 3067080036 joined [10:25:42]Waiting for new connection... [10:25:42] Sock 9.Parse request [10:25:42]Sock 9.Check first char [10:25:42]Sock 9.First char is OK [10:25:42]request: POST /json_proto HTTP/1.0 [10:25:42]Method: POST [10:25:42]URL: /json_proto [10:25:42]Method is POST - this is cgi request [10:25:42]url: /json_proto [10:25:42]query_string will be loaded in cgi processing [10:25:42]execute_cgi json_proto POST (null) [10:25:42]execute_cgi path=json_proto method=POST [10:25:42]POST find Content-Length [10:25:42]Host: 172.17.63.195:8080 [10:25:42]Content-Length: 677 [10:25:42]Content-Type: application/json [10:25:42] [10:25:42]POST finish read [10:25:42]Found Content-Length = 677 [10:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:42]execute_script... [10:25: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)449605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:42]POST & json_proto [10:25:42]process_json_proto [10:25:42]json parsed OK: [10:25:42]protocol is kg_v1.0 [10:25:42]action value=close_receipt [10:25:42]process_action close_receipt [10:25:42]cmd_close_receipt [10:25:42]MH_GetDate [10:25:42]Write to MH i2c: F0 00 00 21 2E 3E [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: F0 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: F0 09 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: F0 09 00 21 2E 00 2A 15 1E 67 68 46 19 67 39 [10:25:42]GetLastDocTimeStamp 1730024654 [10:25:42]current date 1730024746 [10:25:42]FM_GetShiftState [10:25:42]SAM_PROTO_GetShiftState [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 13 01 00 [10:25:42]Write to MH i2c: E2 08 00 22 2E 80 13 01 00 00 00 00 00 CD [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0E 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0E 00 22 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CF [10:25:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_GetShiftState done [10:25:42]FM_GetShiftState done [10:25:42]opened in 1729987312 [10:25:42]opened+sec_in_day 1730073712 [10:25:42]quantity*price = 40006 [10:25:42]sum+1 = 40007 [10:25:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 136 27.10.2024 10:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201844 ФПД: 12382407606903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102546&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201844&fm=12382407606903&tin=02508201610067®Number=0000000000091777&sum=40000 [10:25:43]StoreToDocumentArchive [10:25:43]shift 544 fd 201844 [10:25:43]save to /storage/0544/doc_00201844 [10:25:43]save last doc name /storage/0544/doc_00201844 to /storage/kkm_last_doc_name [10:25:43]save OK [10:25:43]Clear old archive folders... [10:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:43]tlvbuf is B6DC7240 [10:25:43]SAM_PROTO_ClearQueue [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 09 00 00 [10:25:43]Write to MH i2c: E2 08 00 2F 2E 80 09 00 00 00 00 00 00 CF [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 2F 2E 00 90 00 D1 [10:25:43]RAPDU: 90 00 [10:25:43]wFMCommunicate OK [10:25:43]SAM_PROTO_ClearQueue done [10:25:43]KKMCreateOFDPacket [10:25:43]OFDProtocolAddRootSTLVToBuf [10:25:43]FM_MakeSignedData [10:25:43]FM_MakeSignedData [10:25:43]SAM_PROTO_SignData [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 0D 01 02 [10:25:43]Write to MH i2c: E2 08 00 30 2E 80 0D 01 02 00 00 00 00 D7 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]OFD Sender: No OFD packet to send [10:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 30 2E 00 90 00 D2 [10:25:43]RAPDU: 90 00 [10:25:43]wFMCommunicate OK [10:25:43]wFMCommunicate request_size=255 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2A 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 14 03 00 35 04 06 00 0B [10:25:43]Write to MH i2c: E2 02 01 31 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2A 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 14 03 00 35 04 06 00 0B 00 00 3E [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 31 2E 00 90 00 D3 [10:25:43]RAPDU: 90 00 [10:25:43]wFMCommunicate OK [10:25:43]wFMCommunicate request_size=10 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 0D 02 02 05 43 01 01 C2 77 [10:25:43]Write to MH i2c: E2 0D 00 32 2E 80 0D 02 02 05 00 43 01 01 C2 77 00 00 62 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 03 00 32 2E 00 90 00 D4 [10:25:43]RAPDU: 90 00 [10:25:43]wFMCommunicate OK [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 0D 03 02 [10:25:43]Write to MH i2c: E2 08 00 33 2E 80 0D 03 02 00 00 00 00 DC [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 0B 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 0B 00 33 2E 00 0D 43 C9 C9 EA 18 11 9C 90 00 6E [10:25:43]RAPDU: 0D 43 C9 C9 EA 18 11 9C 90 00 [10:25:43]wFMCommunicate OK [10:25:43]SAM_PROTO_SignData done [10:25:43]FM_MakeSignedData done [10:25:43]CreateOFDProtocolMessage [10:25:43]wFMCommunicate request_size=4 [10:25:43]MH_SAM_APDU [10:25:43]CAPDU: 80 11 00 00 [10:25:43]Write to MH i2c: E2 08 00 34 2E 80 11 00 00 00 00 00 00 DC [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:43]Read from MH i2c: E2 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 17 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: E2 17 00 34 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [10:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:25:43]wFMCommunicate OK [10:25:43]CreateOFDProtocolMessage done [10:25:43]OFDSenderStorePacket 201844 [10:25:43]StoreOFDPacket docnum=201844 [10:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 DB 07 01 3D CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2A 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 14 03 00 35 04 06 00 0B 43 01 01 C2 77 0D 43 C9 C9 EA 18 11 9C [10:25:43]CheckFolder [10:25:43]dirname=/storage/ofd_packets [10:25:43]CheckFolder done [10:25:43]ProducePacketName [10:25:43]name=ofd_packets/00201844 [10:25:43]NVStorageSaveData ofd_packets/00201844 [10:25:43]File name is /storage/ofd_packets/00201844 [10:25:43]Write 301 bytes [10:25:43]NVStorageSaveData done [10:25:43]OFDSenderStorePacket done [10:25:43]KKMCreateOFDPacket done [10:25:43]NVStorageSaveData kkm_last_timestamp [10:25:43]File name is /storage/kkm_last_timestamp [10:25:43]Write 4 bytes [10:25:43]NVStorageSaveData done [10:25:43]ExternCall_PrintAddStr [10:25:43]wPrintStart [10:25:43]Write to MH i2c: 01 00 00 35 2E 63 [10:25:43]Write i2c OK [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 [10:25:43]MH_I2C_Read... [10:25:43]Read from MH i2c: 01 07 00 35 2E 00 00 00 00 00 FF 0F 78 [10:25:43]RasterBufferAndPrint [10:25:43]line Счет N : (1)449605 [10:25:43]line ИНН: 02508201610067 [10:25:43]line Контрольно-Кассовый Чек [10:25:43]line ПРОДАЖА [10:25:43]line ТРК (МРК, ГНК) : 41 [10:25:43]line Товар: 2710124130 [10:25:43]line Аи-92-К-2 [10:25:43]line 5.980 * 66.90 [10:25:43]line = 400.06 [10:25:43]line НДС 12% НСП 1% [10:25:43]line > о реализуемом товаре [10:25:43]line ОКРУГЛЕНИЕ: -0.06 [10:25:43]line ИТОГО: 400.00 [10:25:43]line Внесено: 400.00 [10:25:43]line СДАЧА: 0.00 [10:25:43]line НСП 1% : 3.54 [10:25:43]line НДС 12% : 42.48 [10:25:43]line Наличными: 400.00 [10:25:43]line Безнал.: 0.00 [10:25:43]line Место: АЗС № 171 "Партнер Нефть" [10:25:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:25:43]line СНО: Общий режим [10:25:43]line Чек 136 27.10.2024 10:25 [10:25:43]line Смена: 544 ФФД: 1.0 [10:25:43]line ЗНМ: 0300000109 [10:25:43]line РНМ: 0000000000091777 [10:25:43]line Версия ККМ: 001 [10:25:43]line ФМ: 0000000000871756 [10:25:43]line ФД: 201844 [10:25:43]line ФПД: 12382407606903 [10:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102546&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201844&fm=12382407606903&tin=02508201610067®Number=0000000000091777&sum=40000 [10:25:44]OFD Sender: Processing packet 201844 [packets to send 112, broken 111] [10:25:44]ProducePacketName [10:25:44]name=ofd_packets/00201844 [10:25:44]OFD Sender: To server: pG, [10:25:44]CommunicateWithHost lk.salyk.kg:30040 [10:25:44]ConnectInit lk.salyk.kg [10:25:44]written 0, free lines is 4095 [10:25:44]Connected sock=10 [10:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 DB 07 01 3D CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2A 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 14 03 00 35 04 06 00 0B 43 01 01 C2 77 0D 43 C9 C9 EA 18 11 9C [10:25:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 52 F7 47 00 91 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 14 03 00 F4 03 04 00 CF C0 1D 67 B6 04 01 00 00 11 A0 F3 E4 92 35 0C 77 [10:25:44]CommunicateWithHost err = 0 [10:25:44]CheckOFDResponse [10:25:44]1017 (14) - 77093643461234 [10:25:44]1041 (16) - 0000000000871756 [10:25:44]1040 (4) - 201844 [10:25:44]1012 (4) - 27.10.2024 04:25 [10:25:44]1206 (1) - 0 [10:25:44]OFD Sender: Remove packet 201844 [10:25:44]ProducePacketName [10:25:44]name=ofd_packets/00201844 [10:25:44]NVStorageDeleteData [10:25:44]Write to MH i2c: 01 00 00 60 2E 8E [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 60 2E 00 00 00 00 00 94 0C 35 [10:25:44]RasterBufferAndPrint [10:25:44]line [10:25:44]line [10:25:44]line [10:25:44]line [10:25:44]line [10:25:44]written 0, free lines is 3227 [10:25:44]MH_Cut [10:25:44]Write to MH i2c: D1 01 00 67 2E 01 67 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: D1 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: D1 01 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: D1 01 00 67 2E 00 66 [10:25:44]Write to MH i2c: 01 00 00 68 2E 96 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]OFD Sender: No OFD packet to send [10:25:45]*** Cut start [10:25:45]*** Purtial cut [10:25:45]*** Stage 1: CUTSNS_PIN = 1 [10:25:45]Read from MH i2c: 01 [10:25:45]MH_I2C_Read... [10:25:45]*** Stop cut motor [10:25:45]*** Cut end [10:25:45]Read from MH i2c: 01 07 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: 01 07 00 68 2E 00 00 00 00 00 FF 0F AB [10:25:45]process_action close_receipt done [10:25:45]requested_data is exist [10:25:45]produce_requested_data [10:25:45]requested_item fm.sn is exist - process it [10:25:45]wFMCommunicate request_size=4 [10:25:45]MH_SAM_APDU [10:25:45]CAPDU: 80 11 00 00 [10:25:45]Write to MH i2c: E2 08 00 69 2E 80 11 00 00 00 00 00 00 11 [10:25:45]Write i2c OK [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 [10:25:45]MH_I2C_Read... [10:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:45]Read from MH i2c: E2 17 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 17 00 69 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [10:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:25:45]wFMCommunicate OK [10:25:45]requested_item fd.num is exist - process it [10:25:45]SAM_PROTO_GetFieldsCounters [10:25:45]wFMCommunicate request_size=4 [10:25:45]MH_SAM_APDU [10:25:45]CAPDU: 80 13 00 00 [10:25:45]Write to MH i2c: E2 08 00 6A 2E 80 13 00 00 00 00 00 00 14 [10:25:45]Write i2c OK [10:25:45]MH_I2C_Read... [10:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:45]Read from MH i2c: E2 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 62 00 [10:25:45]MH_I2C_Read... [10:25:45]Read from MH i2c: E2 62 00 6A 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 74 14 03 00 0E 04 04 00 20 02 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 82 [10:25:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 74 14 03 00 0E 04 04 00 20 02 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 [10:25:45]wFMCommunicate OK [10:25:45]SAM_PROTO_GetFieldsCounters done [10:25:45]requested_item shift.num is exist - process it [10:25:45]requested_item shift.opened is exist - process it [10:25:45]req_shift_opened [10:25:45]FM_GetShiftState [10:25:45]SAM_PROTO_GetShiftState [10:25:45]wFMCommunicate request_size=4 [10:25:45]MH_SAM_APDU [10:25:45]CAPDU: 80 13 01 00 [10:25:45]Write to MH i2c: E2 08 00 6B 2E 80 13 01 00 00 00 00 00 16 [10:25:45]Write i2c OK [10:25:45]MH_I2C_Read... [10:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:46]Read from MH i2c: E2 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 6B 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 18 [10:25:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:25:46]wFMCommunicate OK [10:25:46]SAM_PROTO_GetShiftState done [10:25:46]FM_GetShiftState done [10:25:46]req_shift_opened done [10:25:46]requested_item shift.open_date is exist - process it [10:25:46]req_shift_open_date [10:25:46]req_shift_open_date done [10:25:46]produce_requested_data done [10:25:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201844,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:25:46]process_action_free close_receipt [10:25:46]json_value_free [10:25:46]json_value_free done [10:25:46]process_json_proto returns [10:25:46]Send response to host [10:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201844,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:25:46]free response buf [10:25:46]execute_script done [10:25:46]execute_script returns [10:25:46]free content buf [10:25:46]Sock 9.Close socket [10:25:46]Sock 9.Thread stoped [10:25:46]accept exits with 8 [10:25:46]New connection [10:25:46]New thread 3067080036 created [10:25:46]Thread 3066936676 joined [10:25:46]Waiting for new connection... [10:25:46] Sock 8.Parse request [10:25:46]Sock 8.Check first char [10:25:46]Sock 8.First char is OK [10:25:46]request: POST /json_proto HTTP/1.0 [10:25:46]Method: POST [10:25:46]URL: /json_proto [10:25:46]Method is POST - this is cgi request [10:25:46]url: /json_proto [10:25:46]query_string will be loaded in cgi processing [10:25:46]execute_cgi json_proto POST (null) [10:25:46]execute_cgi path=json_proto method=POST [10:25:46]POST find Content-Length [10:25:46]Host: 172.17.63.195:8080 [10:25:46]Content-Length: 679 [10:25:46]Content-Type: application/json [10:25:46] [10:25:46]POST finish read [10:25:46]Found Content-Length = 679 [10:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:46]execute_script... [10:25:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:46]POST & json_proto [10:25:46]process_json_proto [10:25:46]json parsed OK: [10:25:46]protocol is kg_v1.0 [10:25:46]action value=close_receipt [10:25:46]process_action close_receipt [10:25:46]cmd_close_receipt [10:25:46]MH_GetDate [10:25:46]Write to MH i2c: F0 00 00 6C 2E 89 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 09 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: F0 09 00 6C 2E 00 2E 15 1E 67 68 46 19 67 88 [10:25:46]GetLastDocTimeStamp 1730024746 [10:25:46]current date 1730024750 [10:25:46]FM_GetShiftState [10:25:46]SAM_PROTO_GetShiftState [10:25:46]wFMCommunicate request_size=4 [10:25:46]MH_SAM_APDU [10:25:46]CAPDU: 80 13 01 00 [10:25:46]Write to MH i2c: E2 08 00 6D 2E 80 13 01 00 00 00 00 00 18 [10:25:46]Write i2c OK [10:25:46]MH_I2C_Read... [10:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:46]Read from MH i2c: E2 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 [10:25:46]MH_I2C_Read... [10:25:46]Read from MH i2c: E2 0E 00 6D 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1A [10:25:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:25:46]wFMCommunicate OK [10:25:46]SAM_PROTO_GetShiftState done [10:25:46]FM_GetShiftState done [10:25:46]opened in 1729987312 [10:25:46]opened+sec_in_day 1730073712 [10:25:46]quantity*price = 300075 [10:25:46]sum+1 = 300077 [10:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 137 27.10.2024 10:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201845 ФПД: 223057077287255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201845&fm=223057077287255&tin=02508201610067®Number=0000000000091777&sum=300000 [10:25:48]StoreToDocumentArchive [10:25:48]shift 544 fd 201845 [10:25:48]save to /storage/0544/doc_00201845 [10:25:48]save last doc name /storage/0544/doc_00201845 to /storage/kkm_last_doc_name [10:25:48]save OK [10:25:48]Clear old archive folders... [10:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:25:48]tlvbuf is 000C1450 [10:25:48]SAM_PROTO_ClearQueue [10:25:48]wFMCommunicate request_size=4 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 09 00 00 [10:25:48]Write to MH i2c: E2 08 00 7A 2E 80 09 00 00 00 00 00 00 1A [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 7A 2E 00 90 00 1C [10:25:48]RAPDU: 90 00 [10:25:48]wFMCommunicate OK [10:25:48]SAM_PROTO_ClearQueue done [10:25:48]KKMCreateOFDPacket [10:25:48]OFDProtocolAddRootSTLVToBuf [10:25:48]FM_MakeSignedData [10:25:48]FM_MakeSignedData [10:25:48]SAM_PROTO_SignData [10:25:48]wFMCommunicate request_size=4 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 0D 01 02 [10:25:48]Write to MH i2c: E2 08 00 7B 2E 80 0D 01 02 00 00 00 00 22 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 7B 2E 00 90 00 1D [10:25:48]RAPDU: 90 00 [10:25:48]wFMCommunicate OK [10:25:48]wFMCommunicate request_size=255 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 2E 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 14 03 00 35 04 06 00 CA DE 85 DB [10:25:48]Write to MH i2c: E2 02 01 7C 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 2E 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 14 03 00 35 04 06 00 CA DE 85 DB 00 00 EA [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 7C 2E 00 90 00 1E [10:25:48]RAPDU: 90 00 [10:25:48]wFMCommunicate OK [10:25:48]wFMCommunicate request_size=7 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 0D 02 02 02 39 57 [10:25:48]Write to MH i2c: E2 0A 00 7D 2E 80 0D 02 02 02 00 39 57 00 00 B9 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 03 00 7D 2E 00 90 00 1F [10:25:48]RAPDU: 90 00 [10:25:48]wFMCommunicate OK [10:25:48]wFMCommunicate request_size=4 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 0D 03 02 [10:25:48]Write to MH i2c: E2 08 00 7E 2E 80 0D 03 02 00 00 00 00 27 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 0B 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 0B 00 7E 2E 00 2A 1C BE 17 A9 B8 2D 22 90 00 F3 [10:25:48]RAPDU: 2A 1C BE 17 A9 B8 2D 22 90 00 [10:25:48]wFMCommunicate OK [10:25:48]SAM_PROTO_SignData done [10:25:48]FM_MakeSignedData done [10:25:48]CreateOFDProtocolMessage [10:25:48]wFMCommunicate request_size=4 [10:25:48]MH_SAM_APDU [10:25:48]CAPDU: 80 11 00 00 [10:25:48]Write to MH i2c: E2 08 00 7F 2E 80 11 00 00 00 00 00 00 27 [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:48]Read from MH i2c: E2 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 17 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: E2 17 00 7F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [10:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:25:48]wFMCommunicate OK [10:25:48]CreateOFDProtocolMessage done [10:25:48]OFDSenderStorePacket 201845 [10:25:48]StoreOFDPacket docnum=201845 [10:25:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 27 6A 04 01 F6 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 2E 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 14 03 00 35 04 06 00 CA DE 85 DB 39 57 2A 1C BE 17 A9 B8 2D 22 [10:25:48]CheckFolder [10:25:48]dirname=/storage/ofd_packets [10:25:48]CheckFolder done [10:25:48]ProducePacketName [10:25:48]name=ofd_packets/00201845 [10:25:48]NVStorageSaveData ofd_packets/00201845 [10:25:48]File name is /storage/ofd_packets/00201845 [10:25:48]Write 298 bytes [10:25:48]NVStorageSaveData done [10:25:48]OFDSenderStorePacket done [10:25:48]KKMCreateOFDPacket done [10:25:48]NVStorageSaveData kkm_last_timestamp [10:25:48]File name is /storage/kkm_last_timestamp [10:25:48]Write 4 bytes [10:25:48]NVStorageSaveData done [10:25:48]ExternCall_PrintAddStr [10:25:48]wPrintStart [10:25:48]Write to MH i2c: 01 00 00 80 2E AE [10:25:48]Write i2c OK [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 [10:25:48]MH_I2C_Read... [10:25:48]Read from MH i2c: 01 07 00 80 2E 00 00 00 00 00 FF 0F C3 [10:25:48]RasterBufferAndPrint [10:25:48]line Счет N : (1)449604 [10:25:48]line ИНН: 02508201610067 [10:25:48]line Контрольно-Кассовый Чек [10:25:48]line ПРОДАЖА [10:25:48]line ТРК (МРК, ГНК) : 11 [10:25:48]line Товар: 2710194210 [10:25:48]line ДТ-К-2 [10:25:48]line 39.380 * 76.20 [10:25:48]line = 3000.76 [10:25:48]line НДС 12% НСП 1% [10:25:48]line > о реализуемом товаре [10:25:48]line ОКРУГЛЕНИЕ: -0.76 [10:25:48]line ИТОГО: 3000.00 [10:25:48]line Внесено: 3000.00 [10:25:48]line СДАЧА: 0.00 [10:25:48]line НСП 1% : 26.55 [10:25:48]line НДС 12% : 318.66 [10:25:48]line Наличными: 3000.00 [10:25:48]line Безнал.: 0.00 [10:25:48]line Место: АЗС № 171 "Партнер Нефть" [10:25:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:25:48]line СНО: Общий режим [10:25:48]line Чек 137 27.10.2024 10:25 [10:25:48]line Смена: 544 ФФД: 1.0 [10:25:48]line ЗНМ: 0300000109 [10:25:48]line РНМ: 0000000000091777 [10:25:48]line Версия ККМ: 001 [10:25:48]line ФМ: 0000000000871756 [10:25:48]line ФД: 201845 [10:25:48]line ФПД: 223057077287255 [10:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201845&fm=223057077287255&tin=02508201610067®Number=0000000000091777&sum=300000 [10:25:48]written 0, free lines is 4095 [10:25:48]OFD Sender: Processing packet 201845 [packets to send 112, broken 111] [10:25:48]ProducePacketName [10:25:48]name=ofd_packets/00201845 [10:25:48]OFD Sender: To server: pG, [10:25:48]CommunicateWithHost lk.salyk.kg:30040 [10:25:48]ConnectInit lk.salyk.kg [10:25:48]Connected sock=10 [10:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 27 6A 04 01 F6 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 2E 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 14 03 00 35 04 06 00 CA DE 85 DB 39 57 2A 1C BE 17 A9 B8 2D 22 [10:25:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 89 25 47 00 94 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 14 03 00 F4 03 04 00 D4 C0 1D 67 B6 04 01 00 00 69 B4 71 A4 74 AD 0B C5 [10:25:49]CommunicateWithHost err = 0 [10:25:49]CheckOFDResponse [10:25:49]1017 (14) - 77093643461234 [10:25:49]1041 (16) - 0000000000871756 [10:25:49]1040 (4) - 201845 [10:25:49]1012 (4) - 27.10.2024 04:25 [10:25:49]1206 (1) - 0 [10:25:49]OFD Sender: Remove packet 201845 [10:25:49]ProducePacketName [10:25:49]name=ofd_packets/00201845 [10:25:49]NVStorageDeleteData [10:25:49]Write to MH i2c: 01 00 00 AB 2E D9 [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: 01 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: 01 07 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: 01 07 00 AB 2E 00 00 00 00 00 A2 0C 8E [10:25:49]RasterBufferAndPrint [10:25:49]line [10:25:49]line [10:25:49]line [10:25:49]line [10:25:49]line [10:25:49]written 0, free lines is 3245 [10:25:49]MH_Cut [10:25:49]Write to MH i2c: D1 01 00 B2 2E 01 B2 [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: D1 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: D1 01 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: D1 01 00 B2 2E 00 B1 [10:25:49]Write to MH i2c: 01 00 00 B3 2E E1 [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]OFD Sender: No OFD packet to send [10:25:49]*** Cut start [10:25:49]*** Purtial cut [10:25:49]*** Stage 1: CUTSNS_PIN = 1 [10:25:50]Read from MH i2c: 01 [10:25:50]MH_I2C_Read... [10:25:50]*** Stop cut motor [10:25:50]*** Cut end [10:25:50]Read from MH i2c: 01 07 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 B3 2E 00 00 00 00 00 FF 0F F6 [10:25:50]process_action close_receipt done [10:25:50]requested_data is exist [10:25:50]produce_requested_data [10:25:50]requested_item fm.sn is exist - process it [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 11 00 00 [10:25:50]Write to MH i2c: E2 08 00 B4 2E 80 11 00 00 00 00 00 00 5C [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 17 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 17 00 B4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [10:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:25:50]wFMCommunicate OK [10:25:50]requested_item fd.num is exist - process it [10:25:50]SAM_PROTO_GetFieldsCounters [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 00 00 [10:25:50]Write to MH i2c: E2 08 00 B5 2E 80 13 00 00 00 00 00 00 5F [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 62 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 62 00 B5 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 75 14 03 00 0E 04 04 00 20 02 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 D1 [10:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 75 14 03 00 0E 04 04 00 20 02 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 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetFieldsCounters done [10:25:50]requested_item shift.num is exist - process it [10:25:50]requested_item shift.opened is exist - process it [10:25:50]req_shift_opened [10:25:50]FM_GetShiftState [10:25:50]SAM_PROTO_GetShiftState [10:25:50]wFMCommunicate request_size=4 [10:25:50]MH_SAM_APDU [10:25:50]CAPDU: 80 13 01 00 [10:25:50]Write to MH i2c: E2 08 00 B6 2E 80 13 01 00 00 00 00 00 61 [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:50]Read from MH i2c: E2 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: E2 0E 00 B6 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 63 [10:25:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:25:50]wFMCommunicate OK [10:25:50]SAM_PROTO_GetShiftState done [10:25:50]FM_GetShiftState done [10:25:50]req_shift_opened done [10:25:50]requested_item shift.open_date is exist - process it [10:25:50]req_shift_open_date [10:25:50]req_shift_open_date done [10:25:50]produce_requested_data done [10:25:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201845,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:25:50]process_action_free close_receipt [10:25:50]json_value_free [10:25:50]json_value_free done [10:25:50]process_json_proto returns [10:25:50]Send response to host [10:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201845,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:25:50]free response buf [10:25:50]execute_script done [10:25:50]execute_script returns [10:25:50]free content buf [10:25:50]Sock 8.Close socket [10:25:50]Sock 8.Thread stoped [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:14]accept exits with 9 [10:27:14]New connection [10:27:14]New thread 3066936676 created [10:27:14]Thread 3067080036 joined [10:27:14]Waiting for new connection... [10:27:14] Sock 9.Parse request [10:27:14]Sock 9.Check first char [10:27:14]Sock 9.First char is OK [10:27:14]request: POST /json_proto HTTP/1.0 [10:27:14]Method: POST [10:27:14]URL: /json_proto [10:27:14]Method is POST - this is cgi request [10:27:14]url: /json_proto [10:27:14]query_string will be loaded in cgi processing [10:27:14]execute_cgi json_proto POST (null) [10:27:14]execute_cgi path=json_proto method=POST [10:27:14]POST find Content-Length [10:27:14]Host: 172.17.63.195:8080 [10:27:14]Content-Length: 797 [10:27:14]Content-Type: application/json [10:27:14] [10:27:14]POST finish read [10:27:14]Found Content-Length = 797 [10:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.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\u000A4756314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:14]execute_script... [10:27: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)449606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.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\u000A4756314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:14]POST & json_proto [10:27:14]process_json_proto [10:27:14]json parsed OK: [10:27:14]protocol is kg_v1.0 [10:27:14]action value=close_receipt [10:27:14]process_action close_receipt [10:27:14]cmd_close_receipt [10:27:14]MH_GetDate [10:27:14]Write to MH i2c: F0 00 00 B7 2E D4 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 09 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: F0 09 00 B7 2E 00 86 15 1E 67 68 46 19 67 2B [10:27:14]GetLastDocTimeStamp 1730024750 [10:27:14]current date 1730024838 [10:27:14]FM_GetShiftState [10:27:14]SAM_PROTO_GetShiftState [10:27:14]wFMCommunicate request_size=4 [10:27:14]MH_SAM_APDU [10:27:14]CAPDU: 80 13 01 00 [10:27:14]Write to MH i2c: E2 08 00 B8 2E 80 13 01 00 00 00 00 00 63 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:14]Read from MH i2c: E2 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 0E 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 0E 00 B8 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 65 [10:27:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:27:14]wFMCommunicate OK [10:27:14]SAM_PROTO_GetShiftState done [10:27:14]FM_GetShiftState done [10:27:14]opened in 1729987312 [10:27:14]opened+sec_in_day 1730073712 [10:27:14]quantity*price = 0 [10:27:14]sum+1 = 1 [10:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 138 27.10.2024 10:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Талоны: Топливные Талоны 4756314 ФМ: 0000000000871756 ФД: 201846 ФПД: 6326500972400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102718&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201846&fm=6326500972400&tin=02508201610067®Number=0000000000091777&sum=0 [10:27:15]StoreToDocumentArchive [10:27:15]shift 544 fd 201846 [10:27:15]save to /storage/0544/doc_00201846 [10:27:15]save last doc name /storage/0544/doc_00201846 to /storage/kkm_last_doc_name [10:27:15]save OK [10:27:15]Clear old archive folders... [10:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:15]tlvbuf is 000D8FB0 [10:27:15]SAM_PROTO_ClearQueue [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 09 00 00 [10:27:15]Write to MH i2c: E2 08 00 C5 2E 80 09 00 00 00 00 00 00 65 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 C5 2E 00 90 00 67 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]SAM_PROTO_ClearQueue done [10:27:15]KKMCreateOFDPacket [10:27:15]OFDProtocolAddRootSTLVToBuf [10:27:15]FM_MakeSignedData [10:27:15]FM_MakeSignedData [10:27:15]SAM_PROTO_SignData [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 01 02 [10:27:15]Write to MH i2c: E2 08 00 C6 2E 80 0D 01 02 00 00 00 00 6D [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 C6 2E 00 90 00 68 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=255 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 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 8A 00 00 00 F4 03 04 00 86 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 14 03 00 35 04 06 00 05 C1 00 D7 [10:27:15]Write to MH i2c: E2 02 01 C7 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 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 8A 00 00 00 F4 03 04 00 86 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 14 03 00 35 04 06 00 05 C1 00 D7 00 00 D8 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:16]Read from MH i2c: E2 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 03 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 03 00 C7 2E 00 90 00 69 [10:27:16]RAPDU: 90 00 [10:27:16]wFMCommunicate OK [10:27:16]wFMCommunicate request_size=7 [10:27:16]MH_SAM_APDU [10:27:16]CAPDU: 80 0D 02 02 02 D7 70 [10:27:16]Write to MH i2c: E2 0A 00 C8 2E 80 0D 02 02 02 00 D7 70 00 00 BB [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:16]Read from MH i2c: E2 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 03 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 03 00 C8 2E 00 90 00 6A [10:27:16]RAPDU: 90 00 [10:27:16]wFMCommunicate OK [10:27:16]wFMCommunicate request_size=4 [10:27:16]MH_SAM_APDU [10:27:16]CAPDU: 80 0D 03 02 [10:27:16]Write to MH i2c: E2 08 00 C9 2E 80 0D 03 02 00 00 00 00 72 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:16]Read from MH i2c: E2 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 0B 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 0B 00 C9 2E 00 AC 49 67 49 AD B9 79 C4 90 00 BB [10:27:16]RAPDU: AC 49 67 49 AD B9 79 C4 90 00 [10:27:16]wFMCommunicate OK [10:27:16]SAM_PROTO_SignData done [10:27:16]FM_MakeSignedData done [10:27:16]CreateOFDProtocolMessage [10:27:16]wFMCommunicate request_size=4 [10:27:16]MH_SAM_APDU [10:27:16]CAPDU: 80 11 00 00 [10:27:16]Write to MH i2c: E2 08 00 CA 2E 80 11 00 00 00 00 00 00 72 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:16]Read from MH i2c: E2 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 17 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: E2 17 00 CA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [10:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:27:16]wFMCommunicate OK [10:27:16]CreateOFDProtocolMessage done [10:27:16]OFDSenderStorePacket 201846 [10:27:16]StoreOFDPacket docnum=201846 [10:27:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 49 EA 04 01 1F A3 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 32 FF 03 08 00 03 50 C3 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 8A 00 00 00 F4 03 04 00 86 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 14 03 00 35 04 06 00 05 C1 00 D7 D7 70 AC 49 67 49 AD B9 79 C4 [10:27:16]CheckFolder [10:27:16]dirname=/storage/ofd_packets [10:27:16]CheckFolder done [10:27:16]ProducePacketName [10:27:16]name=ofd_packets/00201846 [10:27:16]NVStorageSaveData ofd_packets/00201846 [10:27:16]File name is /storage/ofd_packets/00201846 [10:27:16]Write 298 bytes [10:27:16]NVStorageSaveData done [10:27:16]OFDSenderStorePacket done [10:27:16]KKMCreateOFDPacket done [10:27:16]NVStorageSaveData kkm_last_timestamp [10:27:16]File name is /storage/kkm_last_timestamp [10:27:16]Write 4 bytes [10:27:16]NVStorageSaveData done [10:27:16]ExternCall_PrintAddStr [10:27:16]wPrintStart [10:27:16]Write to MH i2c: 01 00 00 CB 2E F9 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 07 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 07 00 CB 2E 00 00 00 00 00 FF 0F 0E [10:27:16]RasterBufferAndPrint [10:27:16]line Счет N : (1)449606 [10:27:16]line ИНН: 02508201610067 [10:27:16]line Контрольно-Кассовый Чек [10:27:16]line ПРОДАЖА [10:27:16]line ТРК (МРК, ГНК) : 21 [10:27:16]line Товар: 2710194210 [10:27:16]line ДТ-К-2 [10:27:16]line 50.000 * 0.00 [10:27:16]line = 0.00 [10:27:16]line НДС 12% НСП 1% [10:27:16]line > о реализуемом товаре [10:27:16]line ИТОГО: 0.00 [10:27:16]line НСП 1% : 0.00 [10:27:16]line НДС 12% : 0.00 [10:27:16]line Наличными: 0.00 [10:27:16]line Безнал.: 0.00 [10:27:16]line Место: АЗС № 171 "Партнер Нефть" [10:27:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:27:16]line СНО: Общий режим [10:27:16]line Чек 138 27.10.2024 10:27 [10:27:16]line Смена: 544 ФФД: 1.0 [10:27:16]line ЗНМ: 0300000109 [10:27:16]line РНМ: 0000000000091777 [10:27:16]line Версия ККМ: 001 [10:27:16]line Талоны: Топливные Талоны [10:27:16]line 4756314 [10:27:16]line ФМ: 0000000000871756 [10:27:16]line ФД: 201846 [10:27:16]line ФПД: 6326500972400 [10:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102718&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201846&fm=6326500972400&tin=02508201610067®Number=0000000000091777&sum=0 [10:27:16]OFD Sender: Processing packet 201846 [packets to send 112, broken 111] [10:27:16]ProducePacketName [10:27:16]name=ofd_packets/00201846 [10:27:16]OFD Sender: To server: pG, [10:27:16]CommunicateWithHost lk.salyk.kg:30040 [10:27:16]ConnectInit lk.salyk.kg [10:27:16]written 0, free lines is 4095 [10:27:16]Connected sock=10 [10:27:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 49 EA 04 01 1F A3 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 32 FF 03 08 00 03 50 C3 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 8A 00 00 00 F4 03 04 00 86 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 14 03 00 35 04 06 00 05 C1 00 D7 D7 70 AC 49 67 49 AD B9 79 C4 [10:27:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D2 C5 47 00 50 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 14 03 00 F4 03 04 00 2C C1 1D 67 B6 04 01 00 00 88 D6 E1 13 80 D9 CD 32 [10:27:17]CommunicateWithHost err = 0 [10:27:17]CheckOFDResponse [10:27:17]1017 (14) - 77093643461234 [10:27:17]1041 (16) - 0000000000871756 [10:27:17]1040 (4) - 201846 [10:27:17]1012 (4) - 27.10.2024 04:27 [10:27:17]1206 (1) - 0 [10:27:17]OFD Sender: Remove packet 201846 [10:27:17]ProducePacketName [10:27:17]name=ofd_packets/00201846 [10:27:17]NVStorageDeleteData [10:27:17]Write to MH i2c: 01 00 00 F5 2E 23 [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: 01 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: 01 07 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: 01 07 00 F5 2E 00 00 00 00 00 A6 0C DC [10:27:17]RasterBufferAndPrint [10:27:17]line [10:27:17]line [10:27:17]line [10:27:17]line [10:27:17]line [10:27:17]written 0, free lines is 3241 [10:27:17]MH_Cut [10:27:17]Write to MH i2c: D1 01 00 FC 2E 01 FC [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: D1 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: D1 01 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: D1 01 00 FC 2E 00 FB [10:27:17]Write to MH i2c: 01 00 00 FD 2E 2B [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]OFD Sender: No OFD packet to send [10:27:18]*** Cut start [10:27:18]*** Purtial cut [10:27:18]*** Stage 1: CUTSNS_PIN = 1 [10:27:18]Read from MH i2c: 01 [10:27:18]MH_I2C_Read... [10:27:18]*** Stop cut motor [10:27:18]*** Cut end [10:27:18]Read from MH i2c: 01 07 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: 01 07 00 FD 2E 00 00 00 00 00 FF 0F 40 [10:27:18]process_action close_receipt done [10:27:18]requested_data is exist [10:27:18]produce_requested_data [10:27:18]requested_item fm.sn is exist - process it [10:27:18]wFMCommunicate request_size=4 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 11 00 00 [10:27:18]Write to MH i2c: E2 08 00 FE 2E 80 11 00 00 00 00 00 00 A6 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 17 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 17 00 FE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FB [10:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:27:18]wFMCommunicate OK [10:27:18]requested_item fd.num is exist - process it [10:27:18]SAM_PROTO_GetFieldsCounters [10:27:18]wFMCommunicate request_size=4 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 13 00 00 [10:27:18]Write to MH i2c: E2 08 00 FF 2E 80 13 00 00 00 00 00 00 A9 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 62 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 62 00 FF 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 76 14 03 00 0E 04 04 00 20 02 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 1F [10:27:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 76 14 03 00 0E 04 04 00 20 02 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 [10:27:18]wFMCommunicate OK [10:27:18]SAM_PROTO_GetFieldsCounters done [10:27:18]requested_item shift.num is exist - process it [10:27:18]requested_item shift.opened is exist - process it [10:27:18]req_shift_opened [10:27:18]FM_GetShiftState [10:27:18]SAM_PROTO_GetShiftState [10:27:18]wFMCommunicate request_size=4 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 13 01 00 [10:27:18]Write to MH i2c: E2 08 00 00 2F 80 13 01 00 00 00 00 00 AC [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 0E 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 0E 00 00 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AE [10:27:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:27:18]wFMCommunicate OK [10:27:18]SAM_PROTO_GetShiftState done [10:27:18]FM_GetShiftState done [10:27:18]req_shift_opened done [10:27:18]requested_item shift.open_date is exist - process it [10:27:18]req_shift_open_date [10:27:18]req_shift_open_date done [10:27:18]produce_requested_data done [10:27:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201846,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:27:18]process_action_free close_receipt [10:27:18]json_value_free [10:27:18]json_value_free done [10:27:18]process_json_proto returns [10:27:18]Send response to host [10:27:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201846,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:27:18]free response buf [10:27:18]execute_script done [10:27:18]execute_script returns [10:27:18]free content buf [10:27:18]Sock 9.Close socket [10:27:18]Sock 9.Thread stoped [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]accept exits with 8 [10:28:22]New connection [10:28:22]New thread 3067080036 created [10:28:22]Thread 3066936676 joined [10:28:22]Waiting for new connection... [10:28:22] Sock 8.Parse request [10:28:22]Sock 8.Check first char [10:28:22]Sock 8.First char is OK [10:28:22]request: POST /json_proto HTTP/1.0 [10:28:22]Method: POST [10:28:22]URL: /json_proto [10:28:22]Method is POST - this is cgi request [10:28:22]url: /json_proto [10:28:22]query_string will be loaded in cgi processing [10:28:22]execute_cgi json_proto POST (null) [10:28:22]execute_cgi path=json_proto method=POST [10:28:22]POST find Content-Length [10:28:22]Host: 172.17.63.195:8080 [10:28:22]Content-Length: 766 [10:28:22]Content-Type: application/json [10:28:22] [10:28:22]POST finish read [10:28:22]Found Content-Length = 766 [10:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:22]execute_script... [10:28: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)449607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:22]POST & json_proto [10:28:22]process_json_proto [10:28:22]json parsed OK: [10:28:22]protocol is kg_v1.0 [10:28:22]action value=close_receipt [10:28:22]process_action close_receipt [10:28:22]cmd_close_receipt [10:28:22]MH_GetDate [10:28:22]Write to MH i2c: F0 00 00 01 2F 1F [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: F0 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: F0 09 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: F0 09 00 01 2F 00 CA 15 1E 67 68 46 19 67 BA [10:28:22]GetLastDocTimeStamp 1730024838 [10:28:22]current date 1730024906 [10:28:22]FM_GetShiftState [10:28:22]SAM_PROTO_GetShiftState [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 13 01 00 [10:28:22]Write to MH i2c: E2 08 00 02 2F 80 13 01 00 00 00 00 00 AE [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 0E 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 0E 00 02 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B0 [10:28:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:28:22]wFMCommunicate OK [10:28:22]SAM_PROTO_GetShiftState done [10:28:22]FM_GetShiftState done [10:28:22]opened in 1729987312 [10:28:22]opened+sec_in_day 1730073712 [10:28:22]quantity*price = 150037 [10:28:22]sum+1 = 150039 [10:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 139 27.10.2024 10:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201847 ФПД: 181879486830740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201847&fm=181879486830740&tin=02508201610067®Number=0000000000091777&sum=150038 [10:28:23]StoreToDocumentArchive [10:28:23]shift 544 fd 201847 [10:28:23]save to /storage/0544/doc_00201847 [10:28:23]save last doc name /storage/0544/doc_00201847 to /storage/kkm_last_doc_name [10:28:23]save OK [10:28:23]Clear old archive folders... [10:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:28:23]tlvbuf is 00120BE0 [10:28:23]SAM_PROTO_ClearQueue [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 09 00 00 [10:28:23]Write to MH i2c: E2 08 00 0F 2F 80 09 00 00 00 00 00 00 B0 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 03 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 03 00 0F 2F 00 90 00 B2 [10:28:23]RAPDU: 90 00 [10:28:23]wFMCommunicate OK [10:28:23]SAM_PROTO_ClearQueue done [10:28:23]KKMCreateOFDPacket [10:28:23]OFDProtocolAddRootSTLVToBuf [10:28:23]FM_MakeSignedData [10:28:23]FM_MakeSignedData [10:28:23]SAM_PROTO_SignData [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 0D 01 02 [10:28:23]Write to MH i2c: E2 08 00 10 2F 80 0D 01 02 00 00 00 00 B8 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 03 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 03 00 10 2F 00 90 00 B3 [10:28:23]RAPDU: 90 00 [10:28:23]wFMCommunicate OK [10:28:23]wFMCommunicate request_size=255 [10:28:23]MH_SAM_APDU [10:28: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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CA 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 14 03 00 35 04 06 00 A5 6B 1E 34 [10:28:23]Write to MH i2c: E2 02 01 11 2F 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CA 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 14 03 00 35 04 06 00 A5 6B 1E 34 00 00 08 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 03 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 03 00 11 2F 00 90 00 B4 [10:28:24]RAPDU: 90 00 [10:28:24]wFMCommunicate OK [10:28:24]wFMCommunicate request_size=7 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 0D 02 02 02 58 94 [10:28:24]Write to MH i2c: E2 0A 00 12 2F 80 0D 02 02 02 00 58 94 00 00 AB [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 03 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 03 00 12 2F 00 90 00 B5 [10:28:24]RAPDU: 90 00 [10:28:24]wFMCommunicate OK [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 0D 03 02 [10:28:24]Write to MH i2c: E2 08 00 13 2F 80 0D 03 02 00 00 00 00 BD [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0B 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0B 00 13 2F 00 87 13 F6 83 44 8D 8F 6E 90 00 9F [10:28:24]RAPDU: 87 13 F6 83 44 8D 8F 6E 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_SignData done [10:28:24]FM_MakeSignedData done [10:28:24]CreateOFDProtocolMessage [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 11 00 00 [10:28:24]Write to MH i2c: E2 08 00 14 2F 80 11 00 00 00 00 00 00 BD [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 14 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 12 [10:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:28:24]wFMCommunicate OK [10:28:24]CreateOFDProtocolMessage done [10:28:24]OFDSenderStorePacket 201847 [10:28:24]StoreOFDPacket docnum=201847 [10:28:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 12 BD 04 01 F2 F0 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CA 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 14 03 00 35 04 06 00 A5 6B 1E 34 58 94 87 13 F6 83 44 8D 8F 6E [10:28:24]CheckFolder [10:28:24]dirname=/storage/ofd_packets [10:28:24]CheckFolder done [10:28:24]ProducePacketName [10:28:24]name=ofd_packets/00201847 [10:28:24]NVStorageSaveData ofd_packets/00201847 [10:28:24]File name is /storage/ofd_packets/00201847 [10:28:24]Write 298 bytes [10:28:24]NVStorageSaveData done [10:28:24]OFDSenderStorePacket done [10:28:24]KKMCreateOFDPacket done [10:28:24]NVStorageSaveData kkm_last_timestamp [10:28:24]File name is /storage/kkm_last_timestamp [10:28:24]Write 4 bytes [10:28:24]NVStorageSaveData done [10:28:24]ExternCall_PrintAddStr [10:28:24]wPrintStart [10:28:24]Write to MH i2c: 01 00 00 15 2F 44 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 15 2F 00 00 00 00 00 FF 0F 59 [10:28:24]RasterBufferAndPrint [10:28:24]line Счет N : (1)449607 [10:28:24]line ИНН: 02508201610067 [10:28:24]line Контрольно-Кассовый Чек [10:28:24]line ПРОДАЖА [10:28:24]line ТРК (МРК, ГНК) : 11 [10:28:24]line Товар: 2710194210 [10:28:24]line ДТ-К-2 [10:28:24]line 19.690 * 76.20 [10:28:24]line = 1500.38 [10:28:24]line НДС 12% НСП 1% [10:28:24]line > о реализуемом товаре [10:28:24]line ИТОГО: 1500.38 [10:28:24]line НСП 1% : 13.28 [10:28:24]line НДС 12% : 159.33 [10:28:24]line Наличными: 0.00 [10:28:24]line Безнал.: 1500.38 [10:28:24]line Место: АЗС № 171 "Партнер Нефть" [10:28:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:28:24]line СНО: Общий режим [10:28:24]line Чек 139 27.10.2024 10:28 [10:28:24]line Смена: 544 ФФД: 1.0 [10:28:24]line ЗНМ: 0300000109 [10:28:24]line РНМ: 0000000000091777 [10:28:24]line Версия ККМ: 001 [10:28:24]line Платежная система: Mbank [10:28:24]line ФМ: 0000000000871756 [10:28:24]line ФД: 201847 [10:28:24]line ФПД: 181879486830740 [10:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201847&fm=181879486830740&tin=02508201610067®Number=0000000000091777&sum=150038 [10:28:24]OFD Sender: Processing packet 201847 [packets to send 112, broken 111] [10:28:24]ProducePacketName [10:28:24]name=ofd_packets/00201847 [10:28:24]OFD Sender: To server: pG, [10:28:24]CommunicateWithHost lk.salyk.kg:30040 [10:28:24]ConnectInit lk.salyk.kg [10:28:24]written 0, free lines is 4095 [10:28:24]Connected sock=10 [10:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 12 BD 04 01 F2 F0 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 CA 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 14 03 00 35 04 06 00 A5 6B 1E 34 58 94 87 13 F6 83 44 8D 8F 6E [10:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 85 85 47 00 2B A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 14 03 00 F4 03 04 00 70 C1 1D 67 B6 04 01 00 00 1E 96 F6 58 72 7B A8 AF [10:28:24]CommunicateWithHost err = 0 [10:28:24]CheckOFDResponse [10:28:24]1017 (14) - 77093643461234 [10:28:24]1041 (16) - 0000000000871756 [10:28:24]1040 (4) - 201847 [10:28:24]1012 (4) - 27.10.2024 04:28 [10:28:24]1206 (1) - 0 [10:28:24]OFD Sender: Remove packet 201847 [10:28:24]ProducePacketName [10:28:24]name=ofd_packets/00201847 [10:28:24]NVStorageDeleteData [10:28:25]Write to MH i2c: 01 00 00 3E 2F 6D [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 3E 2F 00 00 00 00 00 BA 0C 3A [10:28:25]RasterBufferAndPrint [10:28:25]line [10:28:25]line [10:28:25]line [10:28:25]line [10:28:25]line [10:28:25]written 0, free lines is 3262 [10:28:25]MH_Cut [10:28:25]Write to MH i2c: D1 01 00 45 2F 01 46 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: D1 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: D1 01 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: D1 01 00 45 2F 00 45 [10:28:25]Write to MH i2c: 01 00 00 46 2F 75 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]OFD Sender: No OFD packet to send [10:28:25]*** Cut start [10:28:25]*** Purtial cut [10:28:25]*** Stage 1: CUTSNS_PIN = 1 [10:28:26]Read from MH i2c: 01 [10:28:26]MH_I2C_Read... [10:28:26]*** Stop cut motor [10:28:26]*** Cut end [10:28:26]Read from MH i2c: 01 07 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 07 00 46 2F 00 00 00 00 00 FF 0F 8A [10:28:26]process_action close_receipt done [10:28:26]requested_data is exist [10:28:26]produce_requested_data [10:28:26]requested_item fm.sn is exist - process it [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 11 00 00 [10:28:26]Write to MH i2c: E2 08 00 47 2F 80 11 00 00 00 00 00 00 F0 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 17 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 17 00 47 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 45 [10:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:28:26]wFMCommunicate OK [10:28:26]requested_item fd.num is exist - process it [10:28:26]SAM_PROTO_GetFieldsCounters [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 13 00 00 [10:28:26]Write to MH i2c: E2 08 00 48 2F 80 13 00 00 00 00 00 00 F3 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 62 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 62 00 48 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 77 14 03 00 0E 04 04 00 20 02 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 6D [10:28:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 77 14 03 00 0E 04 04 00 20 02 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 [10:28:26]wFMCommunicate OK [10:28:26]SAM_PROTO_GetFieldsCounters done [10:28:26]requested_item shift.num is exist - process it [10:28:26]requested_item shift.opened is exist - process it [10:28:26]req_shift_opened [10:28:26]FM_GetShiftState [10:28:26]SAM_PROTO_GetShiftState [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 13 01 00 [10:28:26]Write to MH i2c: E2 08 00 49 2F 80 13 01 00 00 00 00 00 F5 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 0E 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 0E 00 49 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F7 [10:28:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:28:26]wFMCommunicate OK [10:28:26]SAM_PROTO_GetShiftState done [10:28:26]FM_GetShiftState done [10:28:26]req_shift_opened done [10:28:26]requested_item shift.open_date is exist - process it [10:28:26]req_shift_open_date [10:28:26]req_shift_open_date done [10:28:26]produce_requested_data done [10:28:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201847,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:28:26]process_action_free close_receipt [10:28:26]json_value_free [10:28:26]json_value_free done [10:28:26]process_json_proto returns [10:28:26]Send response to host [10:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201847,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:28:26]free response buf [10:28:26]execute_script done [10:28:26]execute_script returns [10:28:26]free content buf [10:28:26]Sock 8.Close socket [10:28:26]Sock 8.Thread stoped [10:28:26]accept exits with 9 [10:28:26]New connection [10:28:26]New thread 3066936676 created [10:28:26]Thread 3067080036 joined [10:28:26]Waiting for new connection... [10:28:26] Sock 9.Parse request [10:28:26]Sock 9.Check first char [10:28:26]Sock 9.First char is OK [10:28:26]request: POST /json_proto HTTP/1.0 [10:28:26]Method: POST [10:28:26]URL: /json_proto [10:28:26]Method is POST - this is cgi request [10:28:26]url: /json_proto [10:28:26]query_string will be loaded in cgi processing [10:28:26]execute_cgi json_proto POST (null) [10:28:26]execute_cgi path=json_proto method=POST [10:28:26]POST find Content-Length [10:28:26]Host: 172.17.63.195:8080 [10:28:26]Content-Length: 677 [10:28:26]Content-Type: application/json [10:28:26] [10:28:26]POST finish read [10:28:26]Found Content-Length = 677 [10:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:28:26]execute_script... [10:28: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)449608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:28:26]POST & json_proto [10:28:26]process_json_proto [10:28:26]json parsed OK: [10:28:26]protocol is kg_v1.0 [10:28:26]action value=close_receipt [10:28:26]process_action close_receipt [10:28:26]cmd_close_receipt [10:28:26]MH_GetDate [10:28:26]Write to MH i2c: F0 00 00 4A 2F 68 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: F0 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: F0 09 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: F0 09 00 4A 2F 00 CE 15 1E 67 68 46 19 67 07 [10:28:26]GetLastDocTimeStamp 1730024906 [10:28:26]current date 1730024910 [10:28:26]FM_GetShiftState [10:28:26]SAM_PROTO_GetShiftState [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 13 01 00 [10:28:26]Write to MH i2c: E2 08 00 4B 2F 80 13 01 00 00 00 00 00 F7 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 0E 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 0E 00 4B 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F9 [10:28:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:28:26]wFMCommunicate OK [10:28:26]SAM_PROTO_GetShiftState done [10:28:26]FM_GetShiftState done [10:28:26]opened in 1729987312 [10:28:26]opened+sec_in_day 1730073712 [10:28:26]quantity*price = 50041 [10:28:26]sum+1 = 50042 [10:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 140 27.10.2024 10:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201848 ФПД: 186422225807929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102830&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201848&fm=186422225807929&tin=02508201610067®Number=0000000000091777&sum=50000 [10:28:28]StoreToDocumentArchive [10:28:28]shift 544 fd 201848 [10:28:28]save to /storage/0544/doc_00201848 [10:28:28]save last doc name /storage/0544/doc_00201848 to /storage/kkm_last_doc_name [10:28:28]save OK [10:28:28]Clear old archive folders... [10:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:28]tlvbuf is 000C06A0 [10:28:28]SAM_PROTO_ClearQueue [10:28:28]wFMCommunicate request_size=4 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 09 00 00 [10:28:28]Write to MH i2c: E2 08 00 58 2F 80 09 00 00 00 00 00 00 F9 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 58 2F 00 90 00 FB [10:28:28]RAPDU: 90 00 [10:28:28]wFMCommunicate OK [10:28:28]SAM_PROTO_ClearQueue done [10:28:28]KKMCreateOFDPacket [10:28:28]OFDProtocolAddRootSTLVToBuf [10:28:28]FM_MakeSignedData [10:28:28]FM_MakeSignedData [10:28:28]SAM_PROTO_SignData [10:28:28]wFMCommunicate request_size=4 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 0D 01 02 [10:28:28]Write to MH i2c: E2 08 00 59 2F 80 0D 01 02 00 00 00 00 01 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 59 2F 00 90 00 FC [10:28:28]RAPDU: 90 00 [10:28:28]wFMCommunicate OK [10:28:28]wFMCommunicate request_size=255 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 00 00 00 F4 03 04 00 CE 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 14 03 00 35 04 06 00 A9 [10:28:28]Write to MH i2c: E2 02 01 5A 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 00 00 00 F4 03 04 00 CE 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 14 03 00 35 04 06 00 A9 00 00 E3 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 5A 2F 00 90 00 FD [10:28:28]RAPDU: 90 00 [10:28:28]wFMCommunicate OK [10:28:28]wFMCommunicate request_size=10 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 0D 02 02 05 8C CE 8C 2A 39 [10:28:28]Write to MH i2c: E2 0D 00 5B 2F 80 0D 02 02 05 00 8C CE 8C 2A 39 00 00 57 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 03 00 5B 2F 00 90 00 FE [10:28:28]RAPDU: 90 00 [10:28:28]wFMCommunicate OK [10:28:28]wFMCommunicate request_size=4 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 0D 03 02 [10:28:28]Write to MH i2c: E2 08 00 5C 2F 80 0D 03 02 00 00 00 00 06 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 0B 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 0B 00 5C 2F 00 91 6F E4 25 27 3A 1C EF 90 00 7C [10:28:28]RAPDU: 91 6F E4 25 27 3A 1C EF 90 00 [10:28:28]wFMCommunicate OK [10:28:28]SAM_PROTO_SignData done [10:28:28]FM_MakeSignedData done [10:28:28]CreateOFDProtocolMessage [10:28:28]wFMCommunicate request_size=4 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 11 00 00 [10:28:28]Write to MH i2c: E2 08 00 5D 2F 80 11 00 00 00 00 00 00 06 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 17 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 17 00 5D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5B [10:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:28:28]wFMCommunicate OK [10:28:28]CreateOFDProtocolMessage done [10:28:28]OFDSenderStorePacket 201848 [10:28:28]StoreOFDPacket docnum=201848 [10:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7B 47 07 01 0B 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 00 00 00 F4 03 04 00 CE 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 14 03 00 35 04 06 00 A9 8C CE 8C 2A 39 91 6F E4 25 27 3A 1C EF [10:28:28]CheckFolder [10:28:28]dirname=/storage/ofd_packets [10:28:28]CheckFolder done [10:28:28]ProducePacketName [10:28:28]name=ofd_packets/00201848 [10:28:28]NVStorageSaveData ofd_packets/00201848 [10:28:28]File name is /storage/ofd_packets/00201848 [10:28:28]Write 301 bytes [10:28:28]NVStorageSaveData done [10:28:28]OFDSenderStorePacket done [10:28:28]KKMCreateOFDPacket done [10:28:28]NVStorageSaveData kkm_last_timestamp [10:28:28]File name is /storage/kkm_last_timestamp [10:28:28]Write 4 bytes [10:28:28]NVStorageSaveData done [10:28:28]ExternCall_PrintAddStr [10:28:28]wPrintStart [10:28:28]Write to MH i2c: 01 00 00 5E 2F 8D [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 07 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 07 00 5E 2F 00 00 00 00 00 FF 0F A2 [10:28:28]RasterBufferAndPrint [10:28:28]line Счет N : (1)449608 [10:28:28]line ИНН: 02508201610067 [10:28:28]line Контрольно-Кассовый Чек [10:28:28]line ПРОДАЖА [10:28:28]line ТРК (МРК, ГНК) : 52 [10:28:28]line Товар: 2710124130 [10:28:28]line Аи-92-К-2 [10:28:28]line 7.480 * 66.90 [10:28:28]line = 500.41 [10:28:28]line НДС 12% НСП 1% [10:28:28]line > о реализуемом товаре [10:28:28]line ОКРУГЛЕНИЕ: -0.41 [10:28:28]line ИТОГО: 500.00 [10:28:28]line Внесено: 500.00 [10:28:28]line СДАЧА: 0.00 [10:28:28]line НСП 1% : 4.43 [10:28:28]line НДС 12% : 53.14 [10:28:28]line Наличными: 500.00 [10:28:28]line Безнал.: 0.00 [10:28:28]line Место: АЗС № 171 "Партнер Нефть" [10:28:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:28:28]line СНО: Общий режим [10:28:28]line Чек 140 27.10.2024 10:28 [10:28:28]line Смена: 544 ФФД: 1.0 [10:28:28]line ЗНМ: 0300000109 [10:28:28]line РНМ: 0000000000091777 [10:28:28]line Версия ККМ: 001 [10:28:28]line ФМ: 0000000000871756 [10:28:28]line ФД: 201848 [10:28:28]line ФПД: 186422225807929 [10:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102830&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201848&fm=186422225807929&tin=02508201610067®Number=0000000000091777&sum=50000 [10:28:28]written 0, free lines is 4095 [10:28:28]OFD Sender: Processing packet 201848 [packets to send 112, broken 111] [10:28:28]ProducePacketName [10:28:28]name=ofd_packets/00201848 [10:28:28]OFD Sender: To server: pG, [10:28:28]CommunicateWithHost lk.salyk.kg:30040 [10:28:28]ConnectInit lk.salyk.kg [10:28:29]Connected sock=10 [10:28:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7B 47 07 01 0B 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 00 00 00 F4 03 04 00 CE 15 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 14 03 00 35 04 06 00 A9 8C CE 8C 2A 39 91 6F E4 25 27 3A 1C EF [10:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F1 AD 47 00 B4 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 14 03 00 F4 03 04 00 74 C1 1D 67 B6 04 01 00 00 F3 D3 80 4C 8D 94 D0 90 [10:28:29]CommunicateWithHost err = 0 [10:28:29]CheckOFDResponse [10:28:29]1017 (14) - 77093643461234 [10:28:29]1041 (16) - 0000000000871756 [10:28:29]1040 (4) - 201848 [10:28:29]1012 (4) - 27.10.2024 04:28 [10:28:29]1206 (1) - 0 [10:28:29]OFD Sender: Remove packet 201848 [10:28:29]ProducePacketName [10:28:29]name=ofd_packets/00201848 [10:28:29]NVStorageDeleteData [10:28:29]Write to MH i2c: 01 00 00 89 2F B8 [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 07 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 07 00 89 2F 00 00 00 00 00 8F 0C 5A [10:28:29]RasterBufferAndPrint [10:28:29]line [10:28:29]line [10:28:29]line [10:28:29]line [10:28:29]line [10:28:29]written 0, free lines is 3227 [10:28:29]MH_Cut [10:28:29]Write to MH i2c: D1 01 00 90 2F 01 91 [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: D1 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: D1 01 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: D1 01 00 90 2F 00 90 [10:28:29]Write to MH i2c: 01 00 00 91 2F C0 [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]OFD Sender: No OFD packet to send [10:28:30]*** Cut start [10:28:30]*** Purtial cut [10:28:30]*** Stage 1: CUTSNS_PIN = 1 [10:28:30]Read from MH i2c: 01 [10:28:30]MH_I2C_Read... [10:28:30]*** Stop cut motor [10:28:30]*** Cut end [10:28:30]Read from MH i2c: 01 07 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: 01 07 00 91 2F 00 00 00 00 00 FF 0F D5 [10:28:30]process_action close_receipt done [10:28:30]requested_data is exist [10:28:30]produce_requested_data [10:28:30]requested_item fm.sn is exist - process it [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 11 00 00 [10:28:30]Write to MH i2c: E2 08 00 92 2F 80 11 00 00 00 00 00 00 3B [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 17 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 17 00 92 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [10:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:28:30]wFMCommunicate OK [10:28:30]requested_item fd.num is exist - process it [10:28:30]SAM_PROTO_GetFieldsCounters [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 13 00 00 [10:28:30]Write to MH i2c: E2 08 00 93 2F 80 13 00 00 00 00 00 00 3E [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 62 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 62 00 93 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 78 14 03 00 0E 04 04 00 20 02 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 BC [10:28:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 78 14 03 00 0E 04 04 00 20 02 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 [10:28:30]wFMCommunicate OK [10:28:30]SAM_PROTO_GetFieldsCounters done [10:28:30]requested_item shift.num is exist - process it [10:28:30]requested_item shift.opened is exist - process it [10:28:30]req_shift_opened [10:28:30]FM_GetShiftState [10:28:30]SAM_PROTO_GetShiftState [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 13 01 00 [10:28:30]Write to MH i2c: E2 08 00 94 2F 80 13 01 00 00 00 00 00 40 [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0E 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0E 00 94 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 42 [10:28:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:28:30]wFMCommunicate OK [10:28:30]SAM_PROTO_GetShiftState done [10:28:30]FM_GetShiftState done [10:28:30]req_shift_opened done [10:28:30]requested_item shift.open_date is exist - process it [10:28:30]req_shift_open_date [10:28:30]req_shift_open_date done [10:28:30]produce_requested_data done [10:28:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201848,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:28:30]process_action_free close_receipt [10:28:30]json_value_free [10:28:30]json_value_free done [10:28:30]process_json_proto returns [10:28:30]Send response to host [10:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201848,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:28:30]free response buf [10:28:30]execute_script done [10:28:30]execute_script returns [10:28:30]free content buf [10:28:30]Sock 9.Close socket [10:28:30]Sock 9.Thread stoped [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]accept exits with 8 [10:31:09]New connection [10:31:09]New thread 3067080036 created [10:31:09]Thread 3066936676 joined [10:31:09]Waiting for new connection... [10:31:09] Sock 8.Parse request [10:31:09]Sock 8.Check first char [10:31:09]Sock 8.First char is OK [10:31:09]request: POST /json_proto HTTP/1.0 [10:31:09]Method: POST [10:31:09]URL: /json_proto [10:31:09]Method is POST - this is cgi request [10:31:09]url: /json_proto [10:31:09]query_string will be loaded in cgi processing [10:31:09]execute_cgi json_proto POST (null) [10:31:09]execute_cgi path=json_proto method=POST [10:31:09]POST find Content-Length [10:31:09]Host: 172.17.63.195:8080 [10:31:09]Content-Length: 674 [10:31:09]Content-Type: application/json [10:31:09] [10:31:09]POST finish read [10:31:09]Found Content-Length = 674 [10:31:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:09]execute_script... [10:31: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)449609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:09]POST & json_proto [10:31:09]process_json_proto [10:31:09]json parsed OK: [10:31:09]protocol is kg_v1.0 [10:31:09]action value=close_receipt [10:31:09]process_action close_receipt [10:31:09]cmd_close_receipt [10:31:09]MH_GetDate [10:31:09]Write to MH i2c: F0 00 00 95 2F B3 [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: F0 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: F0 09 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: F0 09 00 95 2F 00 71 16 1E 67 68 46 19 67 F6 [10:31:09]GetLastDocTimeStamp 1730024910 [10:31:09]current date 1730025073 [10:31:09]FM_GetShiftState [10:31:09]SAM_PROTO_GetShiftState [10:31:09]wFMCommunicate request_size=4 [10:31:09]MH_SAM_APDU [10:31:09]CAPDU: 80 13 01 00 [10:31:09]Write to MH i2c: E2 08 00 96 2F 80 13 01 00 00 00 00 00 42 [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:09]Read from MH i2c: E2 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 0E 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 0E 00 96 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 44 [10:31:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:31:09]wFMCommunicate OK [10:31:09]SAM_PROTO_GetShiftState done [10:31:09]FM_GetShiftState done [10:31:09]opened in 1729987312 [10:31:09]opened+sec_in_day 1730073712 [10:31:09]quantity*price = 50063 [10:31:09]sum+1 = 50064 [10:31:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 141 27.10.2024 10:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201849 ФПД: 88985833419227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103113&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201849&fm=88985833419227&tin=02508201610067®Number=0000000000091777&sum=50000 [10:31:10]StoreToDocumentArchive [10:31:10]shift 544 fd 201849 [10:31:10]save to /storage/0544/doc_00201849 [10:31:10]save last doc name /storage/0544/doc_00201849 to /storage/kkm_last_doc_name [10:31:10]save OK [10:31:10]Clear old archive folders... [10:31:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:31:10]tlvbuf is 00142630 [10:31:10]SAM_PROTO_ClearQueue [10:31:10]wFMCommunicate request_size=4 [10:31:10]MH_SAM_APDU [10:31:10]CAPDU: 80 09 00 00 [10:31:10]Write to MH i2c: E2 08 00 A3 2F 80 09 00 00 00 00 00 00 44 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:10]Read from MH i2c: E2 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 03 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 03 00 A3 2F 00 90 00 46 [10:31:10]RAPDU: 90 00 [10:31:10]wFMCommunicate OK [10:31:10]SAM_PROTO_ClearQueue done [10:31:10]KKMCreateOFDPacket [10:31:10]OFDProtocolAddRootSTLVToBuf [10:31:10]FM_MakeSignedData [10:31:10]FM_MakeSignedData [10:31:10]SAM_PROTO_SignData [10:31:10]wFMCommunicate request_size=4 [10:31:10]MH_SAM_APDU [10:31:10]CAPDU: 80 0D 01 02 [10:31:10]Write to MH i2c: E2 08 00 A4 2F 80 0D 01 02 00 00 00 00 4C [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:10]Read from MH i2c: E2 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 03 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 03 00 A4 2F 00 90 00 47 [10:31:10]RAPDU: 90 00 [10:31:10]wFMCommunicate OK [10:31:10]wFMCommunicate request_size=255 [10:31:10]MH_SAM_APDU [10:31:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 71 16 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 14 03 00 35 04 06 00 50 EE A0 FD [10:31:10]Write to MH i2c: E2 02 01 A5 2F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 71 16 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 14 03 00 35 04 06 00 50 EE A0 FD 00 00 84 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:10]Read from MH i2c: E2 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 03 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 03 00 A5 2F 00 90 00 48 [10:31:10]RAPDU: 90 00 [10:31:10]wFMCommunicate OK [10:31:10]wFMCommunicate request_size=7 [10:31:10]MH_SAM_APDU [10:31:10]CAPDU: 80 0D 02 02 02 B1 DB [10:31:10]Write to MH i2c: E2 0A 00 A6 2F 80 0D 02 02 02 00 B1 DB 00 00 DF [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:10]Read from MH i2c: E2 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 03 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 03 00 A6 2F 00 90 00 49 [10:31:10]RAPDU: 90 00 [10:31:10]wFMCommunicate OK [10:31:10]wFMCommunicate request_size=4 [10:31:10]MH_SAM_APDU [10:31:10]CAPDU: 80 0D 03 02 [10:31:10]Write to MH i2c: E2 08 00 A7 2F 80 0D 03 02 00 00 00 00 51 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:10]Read from MH i2c: E2 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 0B 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 0B 00 A7 2F 00 C2 E9 D2 38 F2 43 58 B3 90 00 47 [10:31:10]RAPDU: C2 E9 D2 38 F2 43 58 B3 90 00 [10:31:10]wFMCommunicate OK [10:31:10]SAM_PROTO_SignData done [10:31:10]FM_MakeSignedData done [10:31:10]CreateOFDProtocolMessage [10:31:10]wFMCommunicate request_size=4 [10:31:10]MH_SAM_APDU [10:31:10]CAPDU: 80 11 00 00 [10:31:10]Write to MH i2c: E2 08 00 A8 2F 80 11 00 00 00 00 00 00 51 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:10]Read from MH i2c: E2 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 17 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: E2 17 00 A8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A6 [10:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:31:10]wFMCommunicate OK [10:31:10]CreateOFDProtocolMessage done [10:31:10]OFDSenderStorePacket 201849 [10:31:10]StoreOFDPacket docnum=201849 [10:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 82 17 04 01 38 27 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 71 16 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 14 03 00 35 04 06 00 50 EE A0 FD B1 DB C2 E9 D2 38 F2 43 58 B3 [10:31:10]CheckFolder [10:31:10]dirname=/storage/ofd_packets [10:31:10]CheckFolder done [10:31:10]ProducePacketName [10:31:10]name=ofd_packets/00201849 [10:31:10]NVStorageSaveData ofd_packets/00201849 [10:31:10]File name is /storage/ofd_packets/00201849 [10:31:10]Write 298 bytes [10:31:10]NVStorageSaveData done [10:31:10]OFDSenderStorePacket done [10:31:10]KKMCreateOFDPacket done [10:31:10]NVStorageSaveData kkm_last_timestamp [10:31:10]File name is /storage/kkm_last_timestamp [10:31:10]Write 4 bytes [10:31:10]NVStorageSaveData done [10:31:10]ExternCall_PrintAddStr [10:31:10]wPrintStart [10:31:10]Write to MH i2c: 01 00 00 A9 2F D8 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: 01 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: 01 07 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: 01 07 00 A9 2F 00 00 00 00 00 FF 0F ED [10:31:10]RasterBufferAndPrint [10:31:10]line Счет N : (1)449609 [10:31:10]line ИНН: 02508201610067 [10:31:10]line Контрольно-Кассовый Чек [10:31:10]line ПРОДАЖА [10:31:10]line ТРК (МРК, ГНК) : 43 [10:31:10]line Товар: 2710194210 [10:31:10]line ДТ-К-2 [10:31:10]line 6.570 * 76.20 [10:31:10]line = 500.63 [10:31:10]line НДС 12% НСП 1% [10:31:10]line > о реализуемом товаре [10:31:10]line ОКРУГЛЕНИЕ: -0.63 [10:31:10]line ИТОГО: 500.00 [10:31:10]line Внесено: 500.00 [10:31:10]line СДАЧА: 0.00 [10:31:10]line НСП 1% : 4.43 [10:31:10]line НДС 12% : 53.16 [10:31:10]line Наличными: 500.00 [10:31:10]line Безнал.: 0.00 [10:31:10]line Место: АЗС № 171 "Партнер Нефть" [10:31:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:31:10]line СНО: Общий режим [10:31:10]line Чек 141 27.10.2024 10:31 [10:31:10]line Смена: 544 ФФД: 1.0 [10:31:10]line ЗНМ: 0300000109 [10:31:10]line РНМ: 0000000000091777 [10:31:10]line Версия ККМ: 001 [10:31:10]line ФМ: 0000000000871756 [10:31:10]line ФД: 201849 [10:31:10]line ФПД: 88985833419227 [10:31:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103113&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201849&fm=88985833419227&tin=02508201610067®Number=0000000000091777&sum=50000 [10:31:11]OFD Sender: Processing packet 201849 [packets to send 112, broken 111] [10:31:11]ProducePacketName [10:31:11]name=ofd_packets/00201849 [10:31:11]OFD Sender: To server: pG, [10:31:11]CommunicateWithHost lk.salyk.kg:30040 [10:31:11]ConnectInit lk.salyk.kg [10:31:11]written 0, free lines is 4095 [10:31:11]Connected sock=10 [10:31:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 82 17 04 01 38 27 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 71 16 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 14 03 00 35 04 06 00 50 EE A0 FD B1 DB C2 E9 D2 38 F2 43 58 B3 [10:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B2 6A 47 00 6A 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 14 03 00 F4 03 04 00 17 C2 1D 67 B6 04 01 00 00 D4 1B B4 6C 7F 70 0F 64 [10:31:11]CommunicateWithHost err = 0 [10:31:11]CheckOFDResponse [10:31:11]1017 (14) - 77093643461234 [10:31:11]1041 (16) - 0000000000871756 [10:31:11]1040 (4) - 201849 [10:31:11]1012 (4) - 27.10.2024 04:31 [10:31:11]1206 (1) - 0 [10:31:11]OFD Sender: Remove packet 201849 [10:31:11]ProducePacketName [10:31:11]name=ofd_packets/00201849 [10:31:11]NVStorageDeleteData [10:31:11]Write to MH i2c: 01 00 00 D4 2F 03 [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: 01 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: 01 07 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: 01 07 00 D4 2F 00 00 00 00 00 92 0C A8 [10:31:11]RasterBufferAndPrint [10:31:11]line [10:31:11]line [10:31:11]line [10:31:11]line [10:31:11]line [10:31:11]written 0, free lines is 3223 [10:31:11]MH_Cut [10:31:11]Write to MH i2c: D1 01 00 DB 2F 01 DC [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: D1 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: D1 01 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: D1 01 00 DB 2F 00 DB [10:31:11]Write to MH i2c: 01 00 00 DC 2F 0B [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:12]OFD Sender: No OFD packet to send [10:31:12]*** Cut start [10:31:12]*** Purtial cut [10:31:12]*** Stage 1: CUTSNS_PIN = 1 [10:31:12]Read from MH i2c: 01 [10:31:12]MH_I2C_Read... [10:31:12]*** Stop cut motor [10:31:12]*** Cut end [10:31:12]Read from MH i2c: 01 07 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: 01 07 00 DC 2F 00 00 00 00 00 FF 0F 20 [10:31:12]process_action close_receipt done [10:31:12]requested_data is exist [10:31:12]produce_requested_data [10:31:12]requested_item fm.sn is exist - process it [10:31:12]wFMCommunicate request_size=4 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 11 00 00 [10:31:12]Write to MH i2c: E2 08 00 DD 2F 80 11 00 00 00 00 00 00 86 [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:12]Read from MH i2c: E2 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 17 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 17 00 DD 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DB [10:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:31:12]wFMCommunicate OK [10:31:12]requested_item fd.num is exist - process it [10:31:12]SAM_PROTO_GetFieldsCounters [10:31:12]wFMCommunicate request_size=4 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 13 00 00 [10:31:12]Write to MH i2c: E2 08 00 DE 2F 80 13 00 00 00 00 00 00 89 [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 62 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 62 00 DE 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 79 14 03 00 0E 04 04 00 20 02 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 0B [10:31:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 79 14 03 00 0E 04 04 00 20 02 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 [10:31:13]wFMCommunicate OK [10:31:13]SAM_PROTO_GetFieldsCounters done [10:31:13]requested_item shift.num is exist - process it [10:31:13]requested_item shift.opened is exist - process it [10:31:13]req_shift_opened [10:31:13]FM_GetShiftState [10:31:13]SAM_PROTO_GetShiftState [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 13 01 00 [10:31:13]Write to MH i2c: E2 08 00 DF 2F 80 13 01 00 00 00 00 00 8B [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:13]Read from MH i2c: E2 0E 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 0E 00 DF 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8D [10:31:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:31:13]wFMCommunicate OK [10:31:13]SAM_PROTO_GetShiftState done [10:31:13]FM_GetShiftState done [10:31:13]req_shift_opened done [10:31:13]requested_item shift.open_date is exist - process it [10:31:13]req_shift_open_date [10:31:13]req_shift_open_date done [10:31:13]produce_requested_data done [10:31:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201849,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:31:13]process_action_free close_receipt [10:31:13]json_value_free [10:31:13]json_value_free done [10:31:13]process_json_proto returns [10:31:13]Send response to host [10:31:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201849,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:31:13]free response buf [10:31:13]execute_script done [10:31:13]execute_script returns [10:31:13]free content buf [10:31:13]Sock 8.Close socket [10:31:13]Sock 8.Thread stoped [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:33:59]accept exits with 9 [10:33:59]New connection [10:33:59]New thread 3066936676 created [10:33:59]Thread 3067080036 joined [10:33:59]Waiting for new connection... [10:33:59] Sock 9.Parse request [10:33:59]Sock 9.Check first char [10:33:59]Sock 9.First char is OK [10:33:59]request: POST /json_proto HTTP/1.0 [10:33:59]Method: POST [10:33:59]URL: /json_proto [10:33:59]Method is POST - this is cgi request [10:33:59]url: /json_proto [10:33:59]query_string will be loaded in cgi processing [10:33:59]execute_cgi json_proto POST (null) [10:33:59]execute_cgi path=json_proto method=POST [10:33:59]POST find Content-Length [10:33:59]Host: 172.17.63.195:8080 [10:33:59]Content-Length: 677 [10:33:59]Content-Type: application/json [10:33:59] [10:33:59]POST finish read [10:33:59]Found Content-Length = 677 [10:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:59]execute_script... [10:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:59]POST & json_proto [10:33:59]process_json_proto [10:33:59]json parsed OK: [10:33:59]protocol is kg_v1.0 [10:33:59]action value=close_receipt [10:33:59]process_action close_receipt [10:33:59]cmd_close_receipt [10:33:59]MH_GetDate [10:33:59]Write to MH i2c: F0 00 00 E0 2F FE [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: F0 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: F0 09 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: F0 09 00 E0 2F 00 1B 17 1E 67 68 46 19 67 EC [10:33:59]GetLastDocTimeStamp 1730025073 [10:33:59]current date 1730025243 [10:33:59]FM_GetShiftState [10:33:59]SAM_PROTO_GetShiftState [10:33:59]wFMCommunicate request_size=4 [10:33:59]MH_SAM_APDU [10:33:59]CAPDU: 80 13 01 00 [10:33:59]Write to MH i2c: E2 08 00 E1 2F 80 13 01 00 00 00 00 00 8D [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:59]Read from MH i2c: E2 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: E2 0E 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: E2 0E 00 E1 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8F [10:33:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:33:59]wFMCommunicate OK [10:33:59]SAM_PROTO_GetShiftState done [10:33:59]FM_GetShiftState done [10:33:59]opened in 1729987312 [10:33:59]opened+sec_in_day 1730073712 [10:33:59]quantity*price = 30038 [10:33:59]sum+1 = 30039 [10:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 142 27.10.2024 10:34 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201850 ФПД: 167183476440995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201850&fm=167183476440995&tin=02508201610067®Number=0000000000091777&sum=30000 [10:34:00]StoreToDocumentArchive [10:34:00]shift 544 fd 201850 [10:34:00]save to /storage/0544/doc_00201850 [10:34:00]save last doc name /storage/0544/doc_00201850 to /storage/kkm_last_doc_name [10:34:00]save OK [10:34:00]Clear old archive folders... [10:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:00]tlvbuf is 00082930 [10:34:00]SAM_PROTO_ClearQueue [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 09 00 00 [10:34:00]Write to MH i2c: E2 08 00 EE 2F 80 09 00 00 00 00 00 00 8F [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 EE 2F 00 90 00 91 [10:34:00]RAPDU: 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_ClearQueue done [10:34:00]KKMCreateOFDPacket [10:34:00]OFDProtocolAddRootSTLVToBuf [10:34:00]FM_MakeSignedData [10:34:00]FM_MakeSignedData [10:34:00]SAM_PROTO_SignData [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 0D 01 02 [10:34:00]Write to MH i2c: E2 08 00 EF 2F 80 0D 01 02 00 00 00 00 97 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 EF 2F 00 90 00 92 [10:34:00]RAPDU: 90 00 [10:34:00]wFMCommunicate OK [10:34:00]wFMCommunicate request_size=255 [10:34:00]MH_SAM_APDU [10:34: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 32 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 8E 00 00 00 F4 03 04 00 1B 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 14 03 00 35 04 06 00 98 [10:34:00]Write to MH i2c: E2 02 01 F0 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8E 00 00 00 F4 03 04 00 1B 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 14 03 00 35 04 06 00 98 00 00 AF [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 F0 2F 00 90 00 93 [10:34:00]RAPDU: 90 00 [10:34:00]wFMCommunicate OK [10:34:00]wFMCommunicate request_size=10 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 0D 02 02 05 0D 6F B9 BF A3 [10:34:00]Write to MH i2c: E2 0D 00 F1 2F 80 0D 02 02 05 00 0D 6F B9 BF A3 00 00 3B [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 03 00 F1 2F 00 90 00 94 [10:34:00]RAPDU: 90 00 [10:34:00]wFMCommunicate OK [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 0D 03 02 [10:34:00]Write to MH i2c: E2 08 00 F2 2F 80 0D 03 02 00 00 00 00 9C [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0B 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0B 00 F2 2F 00 F7 47 C2 FB FA A1 80 2E 90 00 E1 [10:34:00]RAPDU: F7 47 C2 FB FA A1 80 2E 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_SignData done [10:34:00]FM_MakeSignedData done [10:34:00]CreateOFDProtocolMessage [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 11 00 00 [10:34:00]Write to MH i2c: E2 08 00 F3 2F 80 11 00 00 00 00 00 00 9C [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 F3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F1 [10:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:34:00]wFMCommunicate OK [10:34:00]CreateOFDProtocolMessage done [10:34:00]OFDSenderStorePacket 201850 [10:34:00]StoreOFDPacket docnum=201850 [10:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8A 4C 07 01 4A 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8E 00 00 00 F4 03 04 00 1B 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 14 03 00 35 04 06 00 98 0D 6F B9 BF A3 F7 47 C2 FB FA A1 80 2E [10:34:00]CheckFolder [10:34:00]dirname=/storage/ofd_packets [10:34:00]CheckFolder done [10:34:00]ProducePacketName [10:34:00]name=ofd_packets/00201850 [10:34:00]NVStorageSaveData ofd_packets/00201850 [10:34:00]File name is /storage/ofd_packets/00201850 [10:34:00]Write 301 bytes [10:34:00]NVStorageSaveData done [10:34:00]OFDSenderStorePacket done [10:34:00]KKMCreateOFDPacket done [10:34:00]NVStorageSaveData kkm_last_timestamp [10:34:00]File name is /storage/kkm_last_timestamp [10:34:00]Write 4 bytes [10:34:00]NVStorageSaveData done [10:34:00]ExternCall_PrintAddStr [10:34:00]wPrintStart [10:34:00]Write to MH i2c: 01 00 00 F4 2F 23 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 07 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 07 00 F4 2F 00 00 00 00 00 FF 0F 38 [10:34:00]RasterBufferAndPrint [10:34:00]line Счет N : (1)449610 [10:34:00]line ИНН: 02508201610067 [10:34:00]line Контрольно-Кассовый Чек [10:34:00]line ПРОДАЖА [10:34:00]line ТРК (МРК, ГНК) : 52 [10:34:00]line Товар: 2710124130 [10:34:00]line Аи-92-К-2 [10:34:00]line 4.490 * 66.90 [10:34:00]line = 300.38 [10:34:00]line НДС 12% НСП 1% [10:34:00]line > о реализуемом товаре [10:34:00]line ОКРУГЛЕНИЕ: -0.38 [10:34:00]line ИТОГО: 300.00 [10:34:00]line Внесено: 300.00 [10:34:00]line СДАЧА: 0.00 [10:34:00]line НСП 1% : 2.66 [10:34:00]line НДС 12% : 31.90 [10:34:00]line Наличными: 300.00 [10:34:00]line Безнал.: 0.00 [10:34:00]line Место: АЗС № 171 "Партнер Нефть" [10:34:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:34:00]line СНО: Общий режим [10:34:00]line Чек 142 27.10.2024 10:34 [10:34:00]line Смена: 544 ФФД: 1.0 [10:34:00]line ЗНМ: 0300000109 [10:34:00]line РНМ: 0000000000091777 [10:34:00]line Версия ККМ: 001 [10:34:00]line ФМ: 0000000000871756 [10:34:00]line ФД: 201850 [10:34:00]line ФПД: 167183476440995 [10:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201850&fm=167183476440995&tin=02508201610067®Number=0000000000091777&sum=30000 [10:34:01]OFD Sender: Processing packet 201850 [packets to send 112, broken 111] [10:34:01]ProducePacketName [10:34:01]name=ofd_packets/00201850 [10:34:01]OFD Sender: To server: pG, [10:34:01]CommunicateWithHost lk.salyk.kg:30040 [10:34:01]ConnectInit lk.salyk.kg [10:34:01]written 0, free lines is 4095 [10:34:01]Connected sock=8 [10:34:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8A 4C 07 01 4A 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8E 00 00 00 F4 03 04 00 1B 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 14 03 00 35 04 06 00 98 0D 6F B9 BF A3 F7 47 C2 FB FA A1 80 2E [10:34:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D1 14 47 00 75 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 14 03 00 F4 03 04 00 C0 C2 1D 67 B6 04 01 00 00 FD BE 20 16 FB 24 15 F6 [10:34:01]CommunicateWithHost err = 0 [10:34:01]CheckOFDResponse [10:34:01]1017 (14) - 77093643461234 [10:34:01]1041 (16) - 0000000000871756 [10:34:01]1040 (4) - 201850 [10:34:01]1012 (4) - 27.10.2024 04:34 [10:34:01]1206 (1) - 0 [10:34:01]OFD Sender: Remove packet 201850 [10:34:01]ProducePacketName [10:34:01]name=ofd_packets/00201850 [10:34:01]NVStorageDeleteData [10:34:01]Write to MH i2c: 01 00 00 1F 30 4F [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 07 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: 01 07 00 1F 30 00 00 00 00 00 8F 0C F1 [10:34:01]RasterBufferAndPrint [10:34:01]line [10:34:01]line [10:34:01]line [10:34:01]line [10:34:01]line [10:34:01]written 0, free lines is 3219 [10:34:01]MH_Cut [10:34:01]Write to MH i2c: D1 01 00 26 30 01 28 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: D1 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: D1 01 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: D1 01 00 26 30 00 27 [10:34:01]Write to MH i2c: 01 00 00 27 30 57 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:02]OFD Sender: No OFD packet to send [10:34:02]*** Cut start [10:34:02]*** Purtial cut [10:34:02]*** Stage 1: CUTSNS_PIN = 1 [10:34:02]Read from MH i2c: 01 [10:34:02]MH_I2C_Read... [10:34:02]*** Stop cut motor [10:34:02]*** Cut end [10:34:02]Read from MH i2c: 01 07 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: 01 07 00 27 30 00 00 00 00 00 FF 0F 6C [10:34:02]process_action close_receipt done [10:34:02]requested_data is exist [10:34:02]produce_requested_data [10:34:02]requested_item fm.sn is exist - process it [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 11 00 00 [10:34:02]Write to MH i2c: E2 08 00 28 30 80 11 00 00 00 00 00 00 D2 [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 17 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 17 00 28 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [10:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:34:02]wFMCommunicate OK [10:34:02]requested_item fd.num is exist - process it [10:34:02]SAM_PROTO_GetFieldsCounters [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 13 00 00 [10:34:02]Write to MH i2c: E2 08 00 29 30 80 13 00 00 00 00 00 00 D5 [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 62 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 62 00 29 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7A 14 03 00 0E 04 04 00 20 02 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 5B [10:34:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7A 14 03 00 0E 04 04 00 20 02 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 [10:34:03]wFMCommunicate OK [10:34:03]SAM_PROTO_GetFieldsCounters done [10:34:03]requested_item shift.num is exist - process it [10:34:03]requested_item shift.opened is exist - process it [10:34:03]req_shift_opened [10:34:03]FM_GetShiftState [10:34:03]SAM_PROTO_GetShiftState [10:34:03]wFMCommunicate request_size=4 [10:34:03]MH_SAM_APDU [10:34:03]CAPDU: 80 13 01 00 [10:34:03]Write to MH i2c: E2 08 00 2A 30 80 13 01 00 00 00 00 00 D7 [10:34:03]Write i2c OK [10:34:03]MH_I2C_Read... [10:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:03]Read from MH i2c: E2 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 0E 00 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 0E 00 2A 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D9 [10:34:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:34:03]wFMCommunicate OK [10:34:03]SAM_PROTO_GetShiftState done [10:34:03]FM_GetShiftState done [10:34:03]req_shift_opened done [10:34:03]requested_item shift.open_date is exist - process it [10:34:03]req_shift_open_date [10:34:03]req_shift_open_date done [10:34:03]produce_requested_data done [10:34:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201850,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:34:03]process_action_free close_receipt [10:34:03]json_value_free [10:34:03]json_value_free done [10:34:03]process_json_proto returns [10:34:03]Send response to host [10:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201850,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:34:03]free response buf [10:34:03]execute_script done [10:34:03]execute_script returns [10:34:03]free content buf [10:34:03]Sock 9.Close socket [10:34:03]Sock 9.Thread stoped [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:52]accept exits with 10 [10:34:52]New connection [10:34:52]New thread 3067080036 created [10:34:52]Thread 3066936676 joined [10:34:52]Waiting for new connection... [10:34:52] Sock 10.Parse request [10:34:52]Sock 10.Check first char [10:34:52]Sock 10.First char is OK [10:34:52]request: POST /json_proto HTTP/1.0 [10:34:52]Method: POST [10:34:52]URL: /json_proto [10:34:52]Method is POST - this is cgi request [10:34:52]url: /json_proto [10:34:52]query_string will be loaded in cgi processing [10:34:52]execute_cgi json_proto POST (null) [10:34:52]execute_cgi path=json_proto method=POST [10:34:52]POST find Content-Length [10:34:52]Host: 172.17.63.195:8080 [10:34:52]Content-Length: 679 [10:34:52]Content-Type: application/json [10:34:52] [10:34:52]POST finish read [10:34:52]Found Content-Length = 679 [10:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.580, "sum" : 707.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 707.00, "payments": [ { "type": 0, "sum" : 707.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:52]execute_script... [10:34:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.580, "sum" : 707.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 707.00, "payments": [ { "type": 0, "sum" : 707.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:52]POST & json_proto [10:34:52]process_json_proto [10:34:52]json parsed OK: [10:34:52]protocol is kg_v1.0 [10:34:52]action value=close_receipt [10:34:52]process_action close_receipt [10:34:52]cmd_close_receipt [10:34:52]MH_GetDate [10:34:52]Write to MH i2c: F0 00 00 2B 30 4A [10:34:52]Write i2c OK [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: F0 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: F0 09 00 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: F0 09 00 2B 30 00 50 17 1E 67 68 46 19 67 6D [10:34:52]GetLastDocTimeStamp 1730025243 [10:34:52]current date 1730025296 [10:34:52]FM_GetShiftState [10:34:52]SAM_PROTO_GetShiftState [10:34:52]wFMCommunicate request_size=4 [10:34:52]MH_SAM_APDU [10:34:52]CAPDU: 80 13 01 00 [10:34:52]Write to MH i2c: E2 08 00 2C 30 80 13 01 00 00 00 00 00 D9 [10:34:52]Write i2c OK [10:34:52]MH_I2C_Read... [10:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:52]Read from MH i2c: E2 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: E2 0E 00 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: E2 0E 00 2C 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DB [10:34:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:34:52]wFMCommunicate OK [10:34:52]SAM_PROTO_GetShiftState done [10:34:52]FM_GetShiftState done [10:34:52]opened in 1729987312 [10:34:52]opened+sec_in_day 1730073712 [10:34:52]quantity*price = 70780 [10:34:52]sum+1 = 70781 [10:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 707.00 Внесено: 1000.00 СДАЧА: 293.00 НСП 1% : 6.26 НДС 12% : 75.16 Наличными: 707.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 143 27.10.2024 10:34 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201851 ФПД: 77299632868293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103456&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201851&fm=77299632868293&tin=02508201610067®Number=0000000000091777&sum=70700 [10:34:53]StoreToDocumentArchive [10:34:53]shift 544 fd 201851 [10:34:53]save to /storage/0544/doc_00201851 [10:34:53]save last doc name /storage/0544/doc_00201851 to /storage/kkm_last_doc_name [10:34:53]save OK [10:34:53]Clear old archive folders... [10:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:53]tlvbuf is 00164950 [10:34:53]SAM_PROTO_ClearQueue [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 09 00 00 [10:34:53]Write to MH i2c: E2 08 00 39 30 80 09 00 00 00 00 00 00 DB [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 39 30 00 90 00 DD [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]SAM_PROTO_ClearQueue done [10:34:53]KKMCreateOFDPacket [10:34:53]OFDProtocolAddRootSTLVToBuf [10:34:53]FM_MakeSignedData [10:34:53]FM_MakeSignedData [10:34:53]SAM_PROTO_SignData [10:34:53]wFMCommunicate request_size=4 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 01 02 [10:34:53]Write to MH i2c: E2 08 00 3A 30 80 0D 01 02 00 00 00 00 E3 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:53]Read from MH i2c: E2 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 [10:34:53]MH_I2C_Read... [10:34:53]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [10:34:53]RAPDU: 90 00 [10:34:53]wFMCommunicate OK [10:34:53]wFMCommunicate request_size=255 [10:34:53]MH_SAM_APDU [10:34:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7C 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 1D 00 00 00 00 07 04 06 00 2C 14 01 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 50 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 14 03 00 35 04 06 00 46 [10:34:53]Write to MH i2c: E2 02 01 3B 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7C 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 1D 00 00 00 00 07 04 06 00 2C 14 01 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 50 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 14 03 00 35 04 06 00 46 00 00 20 [10:34:53]Write i2c OK [10:34:53]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 3B 30 00 90 00 DF [10:34:54]RAPDU: 90 00 [10:34:54]wFMCommunicate OK [10:34:54]wFMCommunicate request_size=10 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 0D 02 02 05 4D B9 28 8B C5 [10:34:54]Write to MH i2c: E2 0D 00 3C 30 80 0D 02 02 05 00 4D B9 28 8B C5 00 00 6E [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 03 00 3C 30 00 90 00 E0 [10:34:54]RAPDU: 90 00 [10:34:54]wFMCommunicate OK [10:34:54]wFMCommunicate request_size=4 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 0D 03 02 [10:34:54]Write to MH i2c: E2 08 00 3D 30 80 0D 03 02 00 00 00 00 E8 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 0B 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 0B 00 3D 30 00 C5 2F 56 34 86 96 C8 70 90 00 BB [10:34:54]RAPDU: C5 2F 56 34 86 96 C8 70 90 00 [10:34:54]wFMCommunicate OK [10:34:54]SAM_PROTO_SignData done [10:34:54]FM_MakeSignedData done [10:34:54]CreateOFDProtocolMessage [10:34:54]wFMCommunicate request_size=4 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 11 00 00 [10:34:54]Write to MH i2c: E2 08 00 3E 30 80 11 00 00 00 00 00 00 E8 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 17 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 17 00 3E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [10:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:34:54]wFMCommunicate OK [10:34:54]CreateOFDProtocolMessage done [10:34:54]OFDSenderStorePacket 201851 [10:34:54]StoreOFDPacket docnum=201851 [10:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5F DB 07 01 1A 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 32 FF 03 08 00 03 54 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7C 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 1D 00 00 00 00 07 04 06 00 2C 14 01 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 50 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 14 03 00 35 04 06 00 46 4D B9 28 8B C5 C5 2F 56 34 86 96 C8 70 [10:34:54]CheckFolder [10:34:54]dirname=/storage/ofd_packets [10:34:54]CheckFolder done [10:34:54]ProducePacketName [10:34:54]name=ofd_packets/00201851 [10:34:54]NVStorageSaveData ofd_packets/00201851 [10:34:54]File name is /storage/ofd_packets/00201851 [10:34:54]Write 301 bytes [10:34:54]NVStorageSaveData done [10:34:54]OFDSenderStorePacket done [10:34:54]KKMCreateOFDPacket done [10:34:54]NVStorageSaveData kkm_last_timestamp [10:34:54]File name is /storage/kkm_last_timestamp [10:34:54]Write 4 bytes [10:34:54]NVStorageSaveData done [10:34:54]ExternCall_PrintAddStr [10:34:54]wPrintStart [10:34:54]Write to MH i2c: 01 00 00 3F 30 6F [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 07 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 07 00 3F 30 00 00 00 00 00 FF 0F 84 [10:34:54]RasterBufferAndPrint [10:34:54]line Счет N : (1)449611 [10:34:54]line ИНН: 02508201610067 [10:34:54]line Контрольно-Кассовый Чек [10:34:54]line ПРОДАЖА [10:34:54]line ТРК (МРК, ГНК) : 41 [10:34:54]line Товар: 2710124130 [10:34:54]line Аи-92-К-2 [10:34:54]line 10.580 * 66.90 [10:34:54]line = 707.80 [10:34:54]line НДС 12% НСП 1% [10:34:54]line > о реализуемом товаре [10:34:54]line ОКРУГЛЕНИЕ: -0.80 [10:34:54]line ИТОГО: 707.00 [10:34:54]line Внесено: 1000.00 [10:34:54]line СДАЧА: 293.00 [10:34:54]line НСП 1% : 6.26 [10:34:54]line НДС 12% : 75.16 [10:34:54]line Наличными: 707.00 [10:34:54]line Безнал.: 0.00 [10:34:54]line Место: АЗС № 171 "Партнер Нефть" [10:34:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:34:54]line СНО: Общий режим [10:34:54]line Чек 143 27.10.2024 10:34 [10:34:54]line Смена: 544 ФФД: 1.0 [10:34:54]line ЗНМ: 0300000109 [10:34:54]line РНМ: 0000000000091777 [10:34:54]line Версия ККМ: 001 [10:34:54]line ФМ: 0000000000871756 [10:34:54]line ФД: 201851 [10:34:54]line ФПД: 77299632868293 [10:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103456&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201851&fm=77299632868293&tin=02508201610067®Number=0000000000091777&sum=70700 [10:34:54]OFD Sender: Processing packet 201851 [packets to send 112, broken 111] [10:34:54]ProducePacketName [10:34:54]name=ofd_packets/00201851 [10:34:54]OFD Sender: To server: pG, [10:34:54]CommunicateWithHost lk.salyk.kg:30040 [10:34:54]ConnectInit lk.salyk.kg [10:34:54]written 0, free lines is 4095 [10:34:54]Connected sock=9 [10:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5F DB 07 01 1A 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 32 FF 03 08 00 03 54 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7C 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 1D 00 00 00 00 07 04 06 00 2C 14 01 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 50 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 14 03 00 35 04 06 00 46 4D B9 28 8B C5 C5 2F 56 34 86 96 C8 70 [10:34:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 19 DC 47 00 F4 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 14 03 00 F4 03 04 00 F6 C2 1D 67 B6 04 01 00 00 2E 55 88 B7 59 B4 4C AA [10:34:54]CommunicateWithHost err = 0 [10:34:54]CheckOFDResponse [10:34:54]1017 (14) - 77093643461234 [10:34:54]1041 (16) - 0000000000871756 [10:34:54]1040 (4) - 201851 [10:34:54]1012 (4) - 27.10.2024 04:35 [10:34:54]1206 (1) - 0 [10:34:54]OFD Sender: Remove packet 201851 [10:34:54]ProducePacketName [10:34:54]name=ofd_packets/00201851 [10:34:54]NVStorageDeleteData [10:34:54]Write to MH i2c: 01 00 00 6A 30 9A [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 07 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: 01 07 00 6A 30 00 00 00 00 00 94 0C 41 [10:34:54]RasterBufferAndPrint [10:34:54]line [10:34:54]line [10:34:54]line [10:34:54]line [10:34:54]line [10:34:54]written 0, free lines is 3225 [10:34:54]MH_Cut [10:34:54]Write to MH i2c: D1 01 00 71 30 01 73 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 01 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: D1 01 00 71 30 00 72 [10:34:54]Write to MH i2c: 01 00 00 72 30 A2 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:55]OFD Sender: No OFD packet to send [10:34:55]*** Cut start [10:34:55]*** Purtial cut [10:34:55]*** Stage 1: CUTSNS_PIN = 1 [10:34:56]Read from MH i2c: 01 [10:34:56]MH_I2C_Read... [10:34:56]*** Stop cut motor [10:34:56]*** Cut end [10:34:56]Read from MH i2c: 01 07 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: 01 07 00 72 30 00 00 00 00 00 FF 0F B7 [10:34:56]process_action close_receipt done [10:34:56]requested_data is exist [10:34:56]produce_requested_data [10:34:56]requested_item fm.sn is exist - process it [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 11 00 00 [10:34:56]Write to MH i2c: E2 08 00 73 30 80 11 00 00 00 00 00 00 1D [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 17 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 17 00 73 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [10:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:34:56]wFMCommunicate OK [10:34:56]requested_item fd.num is exist - process it [10:34:56]SAM_PROTO_GetFieldsCounters [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 13 00 00 [10:34:56]Write to MH i2c: E2 08 00 74 30 80 13 00 00 00 00 00 00 20 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 62 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 62 00 74 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7B 14 03 00 0E 04 04 00 20 02 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 AA [10:34:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7B 14 03 00 0E 04 04 00 20 02 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 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_GetFieldsCounters done [10:34:56]requested_item shift.num is exist - process it [10:34:56]requested_item shift.opened is exist - process it [10:34:56]req_shift_opened [10:34:56]FM_GetShiftState [10:34:56]SAM_PROTO_GetShiftState [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 13 01 00 [10:34:56]Write to MH i2c: E2 08 00 75 30 80 13 01 00 00 00 00 00 22 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0E 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0E 00 75 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 24 [10:34:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_GetShiftState done [10:34:56]FM_GetShiftState done [10:34:56]req_shift_opened done [10:34:56]requested_item shift.open_date is exist - process it [10:34:56]req_shift_open_date [10:34:56]req_shift_open_date done [10:34:56]produce_requested_data done [10:34:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201851,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:34:56]process_action_free close_receipt [10:34:56]json_value_free [10:34:56]json_value_free done [10:34:56]process_json_proto returns [10:34:56]Send response to host [10:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201851,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:34:56]free response buf [10:34:56]execute_script done [10:34:56]execute_script returns [10:34:56]free content buf [10:34:56]Sock 10.Close socket [10:34:56]Sock 10.Thread stoped [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:37]int [10:35:37]Write to MH i2c: 01 00 00 76 30 A6 [10:35:37]*** FLAG_PRN_KEY set [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 76 30 00 08 00 00 00 FF 0F C3 [10:35:37]state=0 [10:35:37]Key pressed [10:35:37]Feed [10:35:37]Write to MH i2c: D8 00 00 77 30 7E [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: D8 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: D8 01 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: D8 01 00 77 30 00 7F [10:35:37]int [10:35:37]Write to MH i2c: 01 00 00 78 30 A8 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 78 30 00 48 00 00 00 3C 00 33 [10:35:37]state=2 [10:35:37]Key pressed [10:35:37]int [10:35:37]Write to MH i2c: 01 00 00 79 30 A9 [10:35:37]*** FLAG_PRN_KEY reset [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: 01 07 00 79 30 00 00 00 00 00 F6 0F B5 [10:35:37]state=2 [10:35:37]Stop feed [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:11]accept exits with 8 [10:36:11]New connection [10:36:11]New thread 3066936676 created [10:36:11]Thread 3067080036 joined [10:36:11]Waiting for new connection... [10:36:11] Sock 8.Parse request [10:36:11]Sock 8.Check first char [10:36:11]Sock 8.First char is OK [10:36:11]request: POST /json_proto HTTP/1.0 [10:36:11]Method: POST [10:36:11]URL: /json_proto [10:36:11]Method is POST - this is cgi request [10:36:11]url: /json_proto [10:36:11]query_string will be loaded in cgi processing [10:36:11]execute_cgi json_proto POST (null) [10:36:11]execute_cgi path=json_proto method=POST [10:36:11]POST find Content-Length [10:36:11]Host: 172.17.63.195:8080 [10:36:11]Content-Length: 682 [10:36:11]Content-Type: application/json [10:36:11] [10:36:11]POST finish read [10:36:11]Found Content-Length = 682 [10:36:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:11]execute_script... [10:36: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)449612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:11]POST & json_proto [10:36:11]process_json_proto [10:36:11]json parsed OK: [10:36:11]protocol is kg_v1.0 [10:36:11]action value=close_receipt [10:36:11]process_action close_receipt [10:36:11]cmd_close_receipt [10:36:11]MH_GetDate [10:36:11]Write to MH i2c: F0 00 00 7A 30 99 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: F0 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: F0 09 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: F0 09 00 7A 30 00 9F 17 1E 67 68 46 19 67 0B [10:36:11]GetLastDocTimeStamp 1730025296 [10:36:11]current date 1730025375 [10:36:11]FM_GetShiftState [10:36:11]SAM_PROTO_GetShiftState [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 13 01 00 [10:36:11]Write to MH i2c: E2 08 00 7B 30 80 13 01 00 00 00 00 00 28 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0E 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0E 00 7B 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2A [10:36:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_GetShiftState done [10:36:11]FM_GetShiftState done [10:36:11]opened in 1729987312 [10:36:11]opened+sec_in_day 1730073712 [10:36:11]quantity*price = 200043 [10:36:11]sum+1 = 200044 [10:36:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 144 27.10.2024 10:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201852 ФПД: 89575972238374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103615&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201852&fm=89575972238374&tin=02508201610067®Number=0000000000091777&sum=200000 [10:36:12]StoreToDocumentArchive [10:36:12]shift 544 fd 201852 [10:36:12]save to /storage/0544/doc_00201852 [10:36:12]save last doc name /storage/0544/doc_00201852 to /storage/kkm_last_doc_name [10:36:12]save OK [10:36:12]Clear old archive folders... [10:36:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:12]tlvbuf is B6F77AE0 [10:36:12]SAM_PROTO_ClearQueue [10:36:12]wFMCommunicate request_size=4 [10:36:12]MH_SAM_APDU [10:36:12]CAPDU: 80 09 00 00 [10:36:12]Write to MH i2c: E2 08 00 88 30 80 09 00 00 00 00 00 00 2A [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:12]Read from MH i2c: E2 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: E2 03 00 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: E2 03 00 88 30 00 90 00 2C [10:36:12]RAPDU: 90 00 [10:36:12]wFMCommunicate OK [10:36:12]SAM_PROTO_ClearQueue done [10:36:12]KKMCreateOFDPacket [10:36:12]OFDProtocolAddRootSTLVToBuf [10:36:12]FM_MakeSignedData [10:36:12]FM_MakeSignedData [10:36:12]SAM_PROTO_SignData [10:36:12]wFMCommunicate request_size=4 [10:36:12]MH_SAM_APDU [10:36:12]CAPDU: 80 0D 01 02 [10:36:12]Write to MH i2c: E2 08 00 89 30 80 0D 01 02 00 00 00 00 32 [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:12]Read from MH i2c: E2 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: E2 03 00 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: E2 03 00 89 30 00 90 00 2D [10:36:12]RAPDU: 90 00 [10:36:12]wFMCommunicate OK [10:36:12]wFMCommunicate request_size=255 [10:36:12]MH_SAM_APDU [10:36:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9F 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 14 03 00 35 04 06 00 51 [10:36:12]Write to MH i2c: E2 02 01 8A 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9F 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 14 03 00 35 04 06 00 51 00 00 40 [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:12]Read from MH i2c: E2 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: E2 03 00 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: E2 03 00 8A 30 00 90 00 2E [10:36:12]RAPDU: 90 00 [10:36:12]wFMCommunicate OK [10:36:12]wFMCommunicate request_size=10 [10:36:12]MH_SAM_APDU [10:36:12]CAPDU: 80 0D 02 02 05 78 08 01 74 26 [10:36:12]Write to MH i2c: E2 0D 00 8B 30 80 0D 02 02 05 00 78 08 01 74 26 00 00 5A [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 8B 30 00 90 00 2F [10:36:13]RAPDU: 90 00 [10:36:13]wFMCommunicate OK [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 0D 03 02 [10:36:13]Write to MH i2c: E2 08 00 8C 30 80 0D 03 02 00 00 00 00 37 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0B 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0B 00 8C 30 00 9F 8E A3 50 7C 9E 32 21 90 00 C5 [10:36:13]RAPDU: 9F 8E A3 50 7C 9E 32 21 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_SignData done [10:36:13]FM_MakeSignedData done [10:36:13]CreateOFDProtocolMessage [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 11 00 00 [10:36:13]Write to MH i2c: E2 08 00 8D 30 80 11 00 00 00 00 00 00 37 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 17 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 17 00 8D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8C [10:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:36:13]wFMCommunicate OK [10:36:13]CreateOFDProtocolMessage done [10:36:13]OFDSenderStorePacket 201852 [10:36:13]StoreOFDPacket docnum=201852 [10:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 C9 07 01 1D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9F 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 14 03 00 35 04 06 00 51 78 08 01 74 26 9F 8E A3 50 7C 9E 32 21 [10:36:13]CheckFolder [10:36:13]dirname=/storage/ofd_packets [10:36:13]CheckFolder done [10:36:13]ProducePacketName [10:36:13]name=ofd_packets/00201852 [10:36:13]NVStorageSaveData ofd_packets/00201852 [10:36:13]File name is /storage/ofd_packets/00201852 [10:36:13]Write 301 bytes [10:36:13]NVStorageSaveData done [10:36:13]OFDSenderStorePacket done [10:36:13]KKMCreateOFDPacket done [10:36:13]NVStorageSaveData kkm_last_timestamp [10:36:13]File name is /storage/kkm_last_timestamp [10:36:13]Write 4 bytes [10:36:13]NVStorageSaveData done [10:36:13]ExternCall_PrintAddStr [10:36:13]wPrintStart [10:36:13]Write to MH i2c: 01 00 00 8E 30 BE [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 07 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 07 00 8E 30 00 00 00 00 00 FF 0F D3 [10:36:13]RasterBufferAndPrint [10:36:13]line Счет N : (1)449612 [10:36:13]line ИНН: 02508201610067 [10:36:13]line Контрольно-Кассовый Чек [10:36:13]line ПРОДАЖА [10:36:13]line ТРК (МРК, ГНК) : 51 [10:36:13]line Товар: 2710124500 [10:36:13]line Аи-95-К-3 [10:36:13]line 26.960 * 74.20 [10:36:13]line = 2000.43 [10:36:13]line НДС 12% НСП 1% [10:36:13]line > о реализуемом товаре [10:36:13]line ОКРУГЛЕНИЕ: -0.43 [10:36:13]line ИТОГО: 2000.00 [10:36:13]line Внесено: 2000.00 [10:36:13]line СДАЧА: 0.00 [10:36:13]line НСП 1% : 17.70 [10:36:13]line НДС 12% : 212.43 [10:36:13]line Наличными: 2000.00 [10:36:13]line Безнал.: 0.00 [10:36:13]line Место: АЗС № 171 "Партнер Нефть" [10:36:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:36:13]line СНО: Общий режим [10:36:13]line Чек 144 27.10.2024 10:36 [10:36:13]line Смена: 544 ФФД: 1.0 [10:36:13]line ЗНМ: 0300000109 [10:36:13]line РНМ: 0000000000091777 [10:36:13]line Версия ККМ: 001 [10:36:13]line ФМ: 0000000000871756 [10:36:13]line ФД: 201852 [10:36:13]line ФПД: 89575972238374 [10:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103615&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201852&fm=89575972238374&tin=02508201610067®Number=0000000000091777&sum=200000 [10:36:13]OFD Sender: Processing packet 201852 [packets to send 112, broken 111] [10:36:13]ProducePacketName [10:36:13]name=ofd_packets/00201852 [10:36:13]OFD Sender: To server: pG, [10:36:13]CommunicateWithHost lk.salyk.kg:30040 [10:36:13]ConnectInit lk.salyk.kg [10:36:13]written 0, free lines is 4095 [10:36:13]Connected sock=10 [10:36:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 C9 07 01 1D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9F 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 14 03 00 35 04 06 00 51 78 08 01 74 26 9F 8E A3 50 7C 9E 32 21 [10:36:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B7 82 47 00 4F B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 14 03 00 F4 03 04 00 45 C3 1D 67 B6 04 01 00 00 6E B3 4E E8 6D F4 D4 40 [10:36:13]CommunicateWithHost err = 0 [10:36:13]CheckOFDResponse [10:36:13]1017 (14) - 77093643461234 [10:36:13]1041 (16) - 0000000000871756 [10:36:13]1040 (4) - 201852 [10:36:13]1012 (4) - 27.10.2024 04:36 [10:36:13]1206 (1) - 0 [10:36:13]OFD Sender: Remove packet 201852 [10:36:13]ProducePacketName [10:36:13]name=ofd_packets/00201852 [10:36:13]NVStorageDeleteData [10:36:13]Write to MH i2c: 01 00 00 B9 30 E9 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 07 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 07 00 B9 30 00 00 00 00 00 92 0C 8E [10:36:13]RasterBufferAndPrint [10:36:13]line [10:36:13]line [10:36:13]line [10:36:13]line [10:36:13]line [10:36:13]written 0, free lines is 3222 [10:36:13]MH_Cut [10:36:13]Write to MH i2c: D1 01 00 C0 30 01 C2 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: D1 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: D1 01 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: D1 01 00 C0 30 00 C1 [10:36:13]Write to MH i2c: 01 00 00 C1 30 F1 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:14]OFD Sender: No OFD packet to send [10:36:14]*** Cut start [10:36:14]*** Purtial cut [10:36:14]*** Stage 1: CUTSNS_PIN = 1 [10:36:15]Read from MH i2c: 01 [10:36:15]MH_I2C_Read... [10:36:15]*** Stop cut motor [10:36:15]*** Cut end [10:36:15]Read from MH i2c: 01 07 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 07 00 C1 30 00 00 00 00 00 FF 0F 06 [10:36:15]process_action close_receipt done [10:36:15]requested_data is exist [10:36:15]produce_requested_data [10:36:15]requested_item fm.sn is exist - process it [10:36:15]wFMCommunicate request_size=4 [10:36:15]MH_SAM_APDU [10:36:15]CAPDU: 80 11 00 00 [10:36:15]Write to MH i2c: E2 08 00 C2 30 80 11 00 00 00 00 00 00 6C [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:15]Read from MH i2c: E2 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 17 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 17 00 C2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [10:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:36:15]wFMCommunicate OK [10:36:15]requested_item fd.num is exist - process it [10:36:15]SAM_PROTO_GetFieldsCounters [10:36:15]wFMCommunicate request_size=4 [10:36:15]MH_SAM_APDU [10:36:15]CAPDU: 80 13 00 00 [10:36:15]Write to MH i2c: E2 08 00 C3 30 80 13 00 00 00 00 00 00 6F [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:15]Read from MH i2c: E2 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 62 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 62 00 C3 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7C 14 03 00 0E 04 04 00 20 02 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 FD [10:36:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7C 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:15]wFMCommunicate OK [10:36:15]SAM_PROTO_GetFieldsCounters done [10:36:15]requested_item shift.num is exist - process it [10:36:15]requested_item shift.opened is exist - process it [10:36:15]req_shift_opened [10:36:15]FM_GetShiftState [10:36:15]SAM_PROTO_GetShiftState [10:36:15]wFMCommunicate request_size=4 [10:36:15]MH_SAM_APDU [10:36:15]CAPDU: 80 13 01 00 [10:36:15]Write to MH i2c: E2 08 00 C4 30 80 13 01 00 00 00 00 00 71 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:15]Read from MH i2c: E2 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 0E 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 0E 00 C4 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 73 [10:36:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:36:15]wFMCommunicate OK [10:36:15]SAM_PROTO_GetShiftState done [10:36:15]FM_GetShiftState done [10:36:15]req_shift_opened done [10:36:15]requested_item shift.open_date is exist - process it [10:36:15]req_shift_open_date [10:36:15]req_shift_open_date done [10:36:15]produce_requested_data done [10:36:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201852,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:36:15]process_action_free close_receipt [10:36:15]json_value_free [10:36:15]json_value_free done [10:36:15]process_json_proto returns [10:36:15]Send response to host [10:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201852,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:36:15]free response buf [10:36:15]execute_script done [10:36:15]execute_script returns [10:36:15]free content buf [10:36:15]Sock 8.Close socket [10:36:15]Sock 8.Thread stoped [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:35]accept exits with 9 [10:37:35]New connection [10:37:35]New thread 3067080036 created [10:37:35]Thread 3066936676 joined [10:37:35]Waiting for new connection... [10:37:35] Sock 9.Parse request [10:37:35]Sock 9.Check first char [10:37:35]Sock 9.First char is OK [10:37:35]request: POST /json_proto HTTP/1.0 [10:37:35]Method: POST [10:37:35]URL: /json_proto [10:37:35]Method is POST - this is cgi request [10:37:35]url: /json_proto [10:37:35]query_string will be loaded in cgi processing [10:37:35]execute_cgi json_proto POST (null) [10:37:35]execute_cgi path=json_proto method=POST [10:37:35]POST find Content-Length [10:37:35]Host: 172.17.63.195:8080 [10:37:35]Content-Length: 679 [10:37:35]Content-Type: application/json [10:37:35] [10:37:35]POST finish read [10:37:35]Found Content-Length = 679 [10:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.170, "sum" : 1003.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1003.00, "total" : 1003.00, "payments": [ { "type": 0, "sum" : 1003.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:35]execute_script... [10:37:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.170, "sum" : 1003.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1003.00, "total" : 1003.00, "payments": [ { "type": 0, "sum" : 1003.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:35]POST & json_proto [10:37:35]process_json_proto [10:37:35]json parsed OK: [10:37:35]protocol is kg_v1.0 [10:37:35]action value=close_receipt [10:37:35]process_action close_receipt [10:37:35]cmd_close_receipt [10:37:35]MH_GetDate [10:37:35]Write to MH i2c: F0 00 00 C5 30 E4 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: F0 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: F0 09 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: F0 09 00 C5 30 00 F3 17 1E 67 68 46 19 67 AA [10:37:35]GetLastDocTimeStamp 1730025375 [10:37:35]current date 1730025459 [10:37:35]FM_GetShiftState [10:37:35]SAM_PROTO_GetShiftState [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 13 01 00 [10:37:35]Write to MH i2c: E2 08 00 C6 30 80 13 01 00 00 00 00 00 73 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 0E 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 0E 00 C6 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 75 [10:37:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:37:35]wFMCommunicate OK [10:37:35]SAM_PROTO_GetShiftState done [10:37:35]FM_GetShiftState done [10:37:35]opened in 1729987312 [10:37:35]opened+sec_in_day 1730073712 [10:37:35]quantity*price = 100355 [10:37:35]sum+1 = 100356 [10:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1003.00 Внесено: 1003.00 СДАЧА: 0.00 НСП 1% : 8.88 НДС 12% : 106.57 Наличными: 1003.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 145 27.10.2024 10:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201853 ФПД: 3980991582953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103740&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201853&fm=3980991582953&tin=02508201610067®Number=0000000000091777&sum=100300 [10:37:37]StoreToDocumentArchive [10:37:37]shift 544 fd 201853 [10:37:37]save to /storage/0544/doc_00201853 [10:37:37]save last doc name /storage/0544/doc_00201853 to /storage/kkm_last_doc_name [10:37:37]save OK [10:37:37]Clear old archive folders... [10:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:37:37]tlvbuf is 0008B800 [10:37:37]SAM_PROTO_ClearQueue [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 09 00 00 [10:37:37]Write to MH i2c: E2 08 00 D3 30 80 09 00 00 00 00 00 00 75 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 D3 30 00 90 00 77 [10:37:37]RAPDU: 90 00 [10:37:37]wFMCommunicate OK [10:37:37]SAM_PROTO_ClearQueue done [10:37:37]KKMCreateOFDPacket [10:37:37]OFDProtocolAddRootSTLVToBuf [10:37:37]FM_MakeSignedData [10:37:37]FM_MakeSignedData [10:37:37]SAM_PROTO_SignData [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 0D 01 02 [10:37:37]Write to MH i2c: E2 08 00 D4 30 80 0D 01 02 00 00 00 00 7D [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 D4 30 00 90 00 78 [10:37:37]RAPDU: 90 00 [10:37:37]wFMCommunicate OK [10:37:37]wFMCommunicate request_size=255 [10:37:37]MH_SAM_APDU [10:37: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 32 FF 03 08 00 03 72 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 03 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 29 00 00 00 00 07 04 06 00 CC 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F4 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 14 03 00 35 04 06 00 03 9E E5 96 [10:37:37]Write to MH i2c: E2 02 01 D5 30 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 32 FF 03 08 00 03 72 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 03 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 29 00 00 00 00 07 04 06 00 CC 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F4 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 14 03 00 35 04 06 00 03 9E E5 96 00 00 D1 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 D5 30 00 90 00 79 [10:37:37]RAPDU: 90 00 [10:37:37]wFMCommunicate OK [10:37:37]wFMCommunicate request_size=7 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 0D 02 02 02 D2 E9 [10:37:37]Write to MH i2c: E2 0A 00 D6 30 80 0D 02 02 02 00 D2 E9 00 00 3F [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 03 00 D6 30 00 90 00 7A [10:37:37]RAPDU: 90 00 [10:37:37]wFMCommunicate OK [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 0D 03 02 [10:37:37]Write to MH i2c: E2 08 00 D7 30 80 0D 03 02 00 00 00 00 82 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 0B 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 0B 00 D7 30 00 29 5E 16 23 78 A5 3C E5 90 00 81 [10:37:37]RAPDU: 29 5E 16 23 78 A5 3C E5 90 00 [10:37:37]wFMCommunicate OK [10:37:37]SAM_PROTO_SignData done [10:37:37]FM_MakeSignedData done [10:37:37]CreateOFDProtocolMessage [10:37:37]wFMCommunicate request_size=4 [10:37:37]MH_SAM_APDU [10:37:37]CAPDU: 80 11 00 00 [10:37:37]Write to MH i2c: E2 08 00 D8 30 80 11 00 00 00 00 00 00 82 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:37]Read from MH i2c: E2 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 17 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: E2 17 00 D8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D7 [10:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:37:37]wFMCommunicate OK [10:37:37]CreateOFDProtocolMessage done [10:37:37]OFDSenderStorePacket 201853 [10:37:37]StoreOFDPacket docnum=201853 [10:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 98 15 04 01 AE C7 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 32 FF 03 08 00 03 72 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 03 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 29 00 00 00 00 07 04 06 00 CC 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F4 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 14 03 00 35 04 06 00 03 9E E5 96 D2 E9 29 5E 16 23 78 A5 3C E5 [10:37:37]CheckFolder [10:37:37]dirname=/storage/ofd_packets [10:37:37]CheckFolder done [10:37:37]ProducePacketName [10:37:37]name=ofd_packets/00201853 [10:37:37]NVStorageSaveData ofd_packets/00201853 [10:37:37]File name is /storage/ofd_packets/00201853 [10:37:37]Write 298 bytes [10:37:37]NVStorageSaveData done [10:37:37]OFDSenderStorePacket done [10:37:37]KKMCreateOFDPacket done [10:37:37]NVStorageSaveData kkm_last_timestamp [10:37:37]File name is /storage/kkm_last_timestamp [10:37:37]Write 4 bytes [10:37:37]NVStorageSaveData done [10:37:37]ExternCall_PrintAddStr [10:37:37]wPrintStart [10:37:37]Write to MH i2c: 01 00 00 D9 30 09 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 D9 30 00 00 00 00 00 FF 0F 1E [10:37:37]RasterBufferAndPrint [10:37:37]line Счет N : (1)449613 [10:37:37]line ИНН: 02508201610067 [10:37:37]line Контрольно-Кассовый Чек [10:37:37]line ПРОДАЖА [10:37:37]line ТРК (МРК, ГНК) : 11 [10:37:37]line Товар: 2710194210 [10:37:37]line ДТ-К-2 [10:37:37]line 13.170 * 76.20 [10:37:37]line = 1003.55 [10:37:37]line НДС 12% НСП 1% [10:37:37]line > о реализуемом товаре [10:37:37]line ОКРУГЛЕНИЕ: -0.55 [10:37:37]line ИТОГО: 1003.00 [10:37:37]line Внесено: 1003.00 [10:37:37]line СДАЧА: 0.00 [10:37:37]line НСП 1% : 8.88 [10:37:37]line НДС 12% : 106.57 [10:37:37]line Наличными: 1003.00 [10:37:37]line Безнал.: 0.00 [10:37:37]line Место: АЗС № 171 "Партнер Нефть" [10:37:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:37:37]line СНО: Общий режим [10:37:37]line Чек 145 27.10.2024 10:37 [10:37:37]line Смена: 544 ФФД: 1.0 [10:37:37]line ЗНМ: 0300000109 [10:37:37]line РНМ: 0000000000091777 [10:37:37]line Версия ККМ: 001 [10:37:37]line ФМ: 0000000000871756 [10:37:37]line ФД: 201853 [10:37:37]line ФПД: 3980991582953 [10:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103740&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201853&fm=3980991582953&tin=02508201610067®Number=0000000000091777&sum=100300 [10:37:37]OFD Sender: Processing packet 201853 [packets to send 112, broken 111] [10:37:37]ProducePacketName [10:37:37]name=ofd_packets/00201853 [10:37:37]OFD Sender: To server: pG, [10:37:37]CommunicateWithHost lk.salyk.kg:30040 [10:37:37]ConnectInit lk.salyk.kg [10:37:37]written 0, free lines is 4095 [10:37:37]Connected sock=10 [10:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 98 15 04 01 AE C7 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 32 FF 03 08 00 03 72 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 03 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 29 00 00 00 00 07 04 06 00 CC 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 F4 17 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 14 03 00 35 04 06 00 03 9E E5 96 D2 E9 29 5E 16 23 78 A5 3C E5 [10:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D9 A8 47 00 7A 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 14 03 00 F4 03 04 00 99 C3 1D 67 B6 04 01 00 00 92 FD C6 7F 22 79 33 2C [10:37:38]CommunicateWithHost err = 0 [10:37:38]CheckOFDResponse [10:37:38]1017 (14) - 77093643461234 [10:37:38]1041 (16) - 0000000000871756 [10:37:38]1040 (4) - 201853 [10:37:38]1012 (4) - 27.10.2024 04:37 [10:37:38]1206 (1) - 0 [10:37:38]OFD Sender: Remove packet 201853 [10:37:38]ProducePacketName [10:37:38]name=ofd_packets/00201853 [10:37:38]NVStorageDeleteData [10:37:38]Write to MH i2c: 01 00 00 04 31 35 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: 01 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: 01 07 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: 01 07 00 04 31 00 00 00 00 00 88 0C D0 [10:37:38]RasterBufferAndPrint [10:37:38]line [10:37:38]line [10:37:38]line [10:37:38]line [10:37:38]line [10:37:38]written 0, free lines is 3212 [10:37:38]MH_Cut [10:37:38]Write to MH i2c: D1 01 00 0B 31 01 0E [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: D1 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: D1 01 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: D1 01 00 0B 31 00 0D [10:37:38]Write to MH i2c: 01 00 00 0C 31 3D [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]OFD Sender: No OFD packet to send [10:37:39]*** Cut start [10:37:39]*** Purtial cut [10:37:39]*** Stage 1: CUTSNS_PIN = 1 [10:37:39]Read from MH i2c: 01 [10:37:39]MH_I2C_Read... [10:37:39]*** Stop cut motor [10:37:39]*** Cut end [10:37:39]Read from MH i2c: 01 07 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: 01 07 00 0C 31 00 00 00 00 00 FF 0F 52 [10:37:39]process_action close_receipt done [10:37:39]requested_data is exist [10:37:39]produce_requested_data [10:37:39]requested_item fm.sn is exist - process it [10:37:39]wFMCommunicate request_size=4 [10:37:39]MH_SAM_APDU [10:37:39]CAPDU: 80 11 00 00 [10:37:39]Write to MH i2c: E2 08 00 0D 31 80 11 00 00 00 00 00 00 B8 [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:39]Read from MH i2c: E2 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 17 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 17 00 0D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0D [10:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:37:39]wFMCommunicate OK [10:37:39]requested_item fd.num is exist - process it [10:37:39]SAM_PROTO_GetFieldsCounters [10:37:39]wFMCommunicate request_size=4 [10:37:39]MH_SAM_APDU [10:37:39]CAPDU: 80 13 00 00 [10:37:39]Write to MH i2c: E2 08 00 0E 31 80 13 00 00 00 00 00 00 BB [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:39]Read from MH i2c: E2 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 62 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 62 00 0E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7D 14 03 00 0E 04 04 00 20 02 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 4D [10:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7D 14 03 00 0E 04 04 00 20 02 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 [10:37:39]wFMCommunicate OK [10:37:39]SAM_PROTO_GetFieldsCounters done [10:37:39]requested_item shift.num is exist - process it [10:37:39]requested_item shift.opened is exist - process it [10:37:39]req_shift_opened [10:37:39]FM_GetShiftState [10:37:39]SAM_PROTO_GetShiftState [10:37:39]wFMCommunicate request_size=4 [10:37:39]MH_SAM_APDU [10:37:39]CAPDU: 80 13 01 00 [10:37:39]Write to MH i2c: E2 08 00 0F 31 80 13 01 00 00 00 00 00 BD [10:37:39]Write i2c OK [10:37:39]MH_I2C_Read... [10:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:39]Read from MH i2c: E2 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 0E 00 [10:37:39]MH_I2C_Read... [10:37:39]Read from MH i2c: E2 0E 00 0F 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BF [10:37:39]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:37:39]wFMCommunicate OK [10:37:39]SAM_PROTO_GetShiftState done [10:37:39]FM_GetShiftState done [10:37:39]req_shift_opened done [10:37:39]requested_item shift.open_date is exist - process it [10:37:39]req_shift_open_date [10:37:39]req_shift_open_date done [10:37:39]produce_requested_data done [10:37:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201853,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:37:39]process_action_free close_receipt [10:37:39]json_value_free [10:37:39]json_value_free done [10:37:39]process_json_proto returns [10:37:39]Send response to host [10:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201853,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:37:39]free response buf [10:37:39]execute_script done [10:37:39]execute_script returns [10:37:39]free content buf [10:37:39]Sock 9.Close socket [10:37:39]Sock 9.Thread stoped [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:51]accept exits with 8 [10:37:51]New connection [10:37:51]New thread 3066936676 created [10:37:51]Thread 3067080036 joined [10:37:51]Waiting for new connection... [10:37:51] Sock 8.Parse request [10:37:51]Sock 8.Check first char [10:37:51]Sock 8.First char is OK [10:37:51]request: POST /json_proto HTTP/1.0 [10:37:51]Method: POST [10:37:51]URL: /json_proto [10:37:51]Method is POST - this is cgi request [10:37:51]url: /json_proto [10:37:51]query_string will be loaded in cgi processing [10:37:51]execute_cgi json_proto POST (null) [10:37:51]execute_cgi path=json_proto method=POST [10:37:51]POST find Content-Length [10:37:51]Host: 172.17.63.195:8080 [10:37:51]Content-Length: 677 [10:37:51]Content-Type: application/json [10:37:51] [10:37:51]POST finish read [10:37:51]Found Content-Length = 677 [10:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:51]execute_script... [10:37: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)449614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:51]POST & json_proto [10:37:51]process_json_proto [10:37:51]json parsed OK: [10:37:51]protocol is kg_v1.0 [10:37:51]action value=close_receipt [10:37:51]process_action close_receipt [10:37:51]cmd_close_receipt [10:37:51]MH_GetDate [10:37:51]Write to MH i2c: F0 00 00 10 31 30 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: F0 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: F0 09 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: F0 09 00 10 31 00 03 18 1E 67 68 46 19 67 07 [10:37:51]GetLastDocTimeStamp 1730025460 [10:37:51]current date 1730025475 [10:37:51]FM_GetShiftState [10:37:51]SAM_PROTO_GetShiftState [10:37:51]wFMCommunicate request_size=4 [10:37:51]MH_SAM_APDU [10:37:51]CAPDU: 80 13 01 00 [10:37:51]Write to MH i2c: E2 08 00 11 31 80 13 01 00 00 00 00 00 BF [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:51]Read from MH i2c: E2 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 0E 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 0E 00 11 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C1 [10:37:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:37:51]wFMCommunicate OK [10:37:51]SAM_PROTO_GetShiftState done [10:37:51]FM_GetShiftState done [10:37:51]opened in 1729987312 [10:37:51]opened+sec_in_day 1730073712 [10:37:51]quantity*price = 30038 [10:37:51]sum+1 = 30039 [10:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 146 27.10.2024 10:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201854 ФПД: 196227727411356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103756&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201854&fm=196227727411356&tin=02508201610067®Number=0000000000091777&sum=30000 [10:37:52]StoreToDocumentArchive [10:37:52]shift 544 fd 201854 [10:37:52]save to /storage/0544/doc_00201854 [10:37:52]save last doc name /storage/0544/doc_00201854 to /storage/kkm_last_doc_name [10:37:52]save OK [10:37:52]Clear old archive folders... [10:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:52]tlvbuf is 0008B930 [10:37:52]SAM_PROTO_ClearQueue [10:37:52]wFMCommunicate request_size=4 [10:37:52]MH_SAM_APDU [10:37:52]CAPDU: 80 09 00 00 [10:37:52]Write to MH i2c: E2 08 00 1E 31 80 09 00 00 00 00 00 00 C1 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 1E 31 00 90 00 C3 [10:37:53]RAPDU: 90 00 [10:37:53]wFMCommunicate OK [10:37:53]SAM_PROTO_ClearQueue done [10:37:53]KKMCreateOFDPacket [10:37:53]OFDProtocolAddRootSTLVToBuf [10:37:53]FM_MakeSignedData [10:37:53]FM_MakeSignedData [10:37:53]SAM_PROTO_SignData [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 0D 01 02 [10:37:53]Write to MH i2c: E2 08 00 1F 31 80 0D 01 02 00 00 00 00 C9 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 1F 31 00 90 00 C4 [10:37:53]RAPDU: 90 00 [10:37:53]wFMCommunicate OK [10:37:53]wFMCommunicate request_size=255 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 92 00 00 00 F4 03 04 00 04 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 14 03 00 35 04 06 00 B2 [10:37:53]Write to MH i2c: E2 02 01 20 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 92 00 00 00 F4 03 04 00 04 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 14 03 00 35 04 06 00 B2 00 00 ED [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:53]Read from MH i2c: E2 03 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 20 31 00 90 00 C5 [10:37:53]RAPDU: 90 00 [10:37:53]wFMCommunicate OK [10:37:53]wFMCommunicate request_size=10 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 0D 02 02 05 77 D3 FC C8 9C [10:37:53]Write to MH i2c: E2 0D 00 21 31 80 0D 02 02 05 00 77 D3 FC C8 9C 00 00 80 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 03 00 21 31 00 90 00 C6 [10:37:53]RAPDU: 90 00 [10:37:53]wFMCommunicate OK [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 0D 03 02 [10:37:53]Write to MH i2c: E2 08 00 22 31 80 0D 03 02 00 00 00 00 CE [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 0B 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 0B 00 22 31 00 56 A0 16 B8 38 10 A4 3F 90 00 BE [10:37:53]RAPDU: 56 A0 16 B8 38 10 A4 3F 90 00 [10:37:53]wFMCommunicate OK [10:37:53]SAM_PROTO_SignData done [10:37:53]FM_MakeSignedData done [10:37:53]CreateOFDProtocolMessage [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 11 00 00 [10:37:53]Write to MH i2c: E2 08 00 23 31 80 11 00 00 00 00 00 00 CE [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 17 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 17 00 23 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 23 [10:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:37:53]wFMCommunicate OK [10:37:53]CreateOFDProtocolMessage done [10:37:53]OFDSenderStorePacket 201854 [10:37:53]StoreOFDPacket docnum=201854 [10:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 69 E1 07 01 3E 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 92 00 00 00 F4 03 04 00 04 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 14 03 00 35 04 06 00 B2 77 D3 FC C8 9C 56 A0 16 B8 38 10 A4 3F [10:37:53]CheckFolder [10:37:53]dirname=/storage/ofd_packets [10:37:53]CheckFolder done [10:37:53]ProducePacketName [10:37:53]name=ofd_packets/00201854 [10:37:53]NVStorageSaveData ofd_packets/00201854 [10:37:53]File name is /storage/ofd_packets/00201854 [10:37:53]Write 301 bytes [10:37:53]NVStorageSaveData done [10:37:53]OFDSenderStorePacket done [10:37:53]KKMCreateOFDPacket done [10:37:53]NVStorageSaveData kkm_last_timestamp [10:37:53]File name is /storage/kkm_last_timestamp [10:37:53]Write 4 bytes [10:37:53]NVStorageSaveData done [10:37:53]ExternCall_PrintAddStr [10:37:53]wPrintStart [10:37:53]Write to MH i2c: 01 00 00 24 31 55 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: 01 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: 01 07 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: 01 07 00 24 31 00 00 00 00 00 FF 0F 6A [10:37:53]RasterBufferAndPrint [10:37:53]line Счет N : (1)449614 [10:37:53]line ИНН: 02508201610067 [10:37:53]line Контрольно-Кассовый Чек [10:37:53]line ПРОДАЖА [10:37:53]line ТРК (МРК, ГНК) : 52 [10:37:53]line Товар: 2710124130 [10:37:53]line Аи-92-К-2 [10:37:53]line 4.490 * 66.90 [10:37:53]line = 300.38 [10:37:53]line НДС 12% НСП 1% [10:37:53]line > о реализуемом товаре [10:37:53]line ОКРУГЛЕНИЕ: -0.38 [10:37:53]line ИТОГО: 300.00 [10:37:53]line Внесено: 300.00 [10:37:53]line СДАЧА: 0.00 [10:37:53]line НСП 1% : 2.66 [10:37:53]line НДС 12% : 31.90 [10:37:53]line Наличными: 300.00 [10:37:53]line Безнал.: 0.00 [10:37:53]line Место: АЗС № 171 "Партнер Нефть" [10:37:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:37:53]line СНО: Общий режим [10:37:53]line Чек 146 27.10.2024 10:37 [10:37:53]line Смена: 544 ФФД: 1.0 [10:37:53]line ЗНМ: 0300000109 [10:37:53]line РНМ: 0000000000091777 [10:37:53]line Версия ККМ: 001 [10:37:53]line ФМ: 0000000000871756 [10:37:53]line ФД: 201854 [10:37:53]line ФПД: 196227727411356 [10:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103756&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201854&fm=196227727411356&tin=02508201610067®Number=0000000000091777&sum=30000 [10:37:53]OFD Sender: Processing packet 201854 [packets to send 112, broken 111] [10:37:53]ProducePacketName [10:37:53]name=ofd_packets/00201854 [10:37:53]OFD Sender: To server: pG, [10:37:53]CommunicateWithHost lk.salyk.kg:30040 [10:37:53]ConnectInit lk.salyk.kg [10:37:53]written 0, free lines is 4095 [10:37:53]Connected sock=10 [10:37:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 69 E1 07 01 3E 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 92 00 00 00 F4 03 04 00 04 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 14 03 00 35 04 06 00 B2 77 D3 FC C8 9C 56 A0 16 B8 38 10 A4 3F [10:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C8 EC 47 00 77 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 14 03 00 F4 03 04 00 A9 C3 1D 67 B6 04 01 00 00 0E 91 24 4D 15 7A 4B 79 [10:37:54]CommunicateWithHost err = 0 [10:37:54]CheckOFDResponse [10:37:54]1017 (14) - 77093643461234 [10:37:54]1041 (16) - 0000000000871756 [10:37:54]1040 (4) - 201854 [10:37:54]1012 (4) - 27.10.2024 04:38 [10:37:54]1206 (1) - 0 [10:37:54]OFD Sender: Remove packet 201854 [10:37:54]ProducePacketName [10:37:54]name=ofd_packets/00201854 [10:37:54]NVStorageDeleteData [10:37:54]Write to MH i2c: 01 00 00 4F 31 80 [10:37:54]Write i2c OK [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: 01 [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: 01 07 00 [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: 01 07 00 4F 31 00 00 00 00 00 8C 0C 1F [10:37:54]RasterBufferAndPrint [10:37:54]line [10:37:54]line [10:37:54]line [10:37:54]line [10:37:54]line [10:37:54]written 0, free lines is 3216 [10:37:54]MH_Cut [10:37:54]Write to MH i2c: D1 01 00 56 31 01 59 [10:37:54]Write i2c OK [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: D1 [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: D1 01 00 [10:37:54]MH_I2C_Read... [10:37:54]Read from MH i2c: D1 01 00 56 31 00 58 [10:37:54]Write to MH i2c: 01 00 00 57 31 88 [10:37:54]Write i2c OK [10:37:54]MH_I2C_Read... [10:37:54]OFD Sender: No OFD packet to send [10:37:55]*** Cut start [10:37:55]*** Purtial cut [10:37:55]*** CUTSNS_PIN = 0 [10:37:55]*** Stage 1: CUTSNS_PIN = 1 [10:37:57]Read from MH i2c: 01 [10:37:57]MH_I2C_Read... [10:37:57]*** Stop cut motor [10:37:57]*** Cut end [10:37:57]Read from MH i2c: 01 07 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 07 00 57 31 00 00 00 00 00 FF 0F 9D [10:37:57]process_action close_receipt done [10:37:57]requested_data is exist [10:37:57]produce_requested_data [10:37:57]requested_item fm.sn is exist - process it [10:37:57]wFMCommunicate request_size=4 [10:37:57]MH_SAM_APDU [10:37:57]CAPDU: 80 11 00 00 [10:37:57]Write to MH i2c: E2 08 00 58 31 80 11 00 00 00 00 00 00 03 [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:57]Read from MH i2c: E2 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 17 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 17 00 58 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 58 [10:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:37:57]wFMCommunicate OK [10:37:57]requested_item fd.num is exist - process it [10:37:57]SAM_PROTO_GetFieldsCounters [10:37:57]wFMCommunicate request_size=4 [10:37:57]MH_SAM_APDU [10:37:57]CAPDU: 80 13 00 00 [10:37:57]Write to MH i2c: E2 08 00 59 31 80 13 00 00 00 00 00 00 06 [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:57]Read from MH i2c: E2 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 62 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 62 00 59 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7E 14 03 00 0E 04 04 00 20 02 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 9C [10:37:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7E 14 03 00 0E 04 04 00 20 02 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 [10:37:57]wFMCommunicate OK [10:37:57]SAM_PROTO_GetFieldsCounters done [10:37:57]requested_item shift.num is exist - process it [10:37:57]requested_item shift.opened is exist - process it [10:37:57]req_shift_opened [10:37:57]FM_GetShiftState [10:37:57]SAM_PROTO_GetShiftState [10:37:57]wFMCommunicate request_size=4 [10:37:57]MH_SAM_APDU [10:37:57]CAPDU: 80 13 01 00 [10:37:57]Write to MH i2c: E2 08 00 5A 31 80 13 01 00 00 00 00 00 08 [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:57]Read from MH i2c: E2 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 0E 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: E2 0E 00 5A 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0A [10:37:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:37:57]wFMCommunicate OK [10:37:57]SAM_PROTO_GetShiftState done [10:37:57]FM_GetShiftState done [10:37:57]req_shift_opened done [10:37:57]requested_item shift.open_date is exist - process it [10:37:57]req_shift_open_date [10:37:57]req_shift_open_date done [10:37:57]produce_requested_data done [10:37:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201854,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:37:57]process_action_free close_receipt [10:37:57]json_value_free [10:37:57]json_value_free done [10:37:57]process_json_proto returns [10:37:57]Send response to host [10:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201854,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:37:57]free response buf [10:37:57]execute_script done [10:37:57]execute_script returns [10:37:57]free content buf [10:37:57]Sock 8.Close socket [10:37:57]Sock 8.Thread stoped [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]int [10:38:19]Write to MH i2c: 01 00 00 5B 31 8C [10:38:19]*** FLAG_PRN_KEY set [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 5B 31 00 08 00 00 00 FF 0F A9 [10:38:19]state=0 [10:38:19]Key pressed [10:38:19]Feed [10:38:19]Write to MH i2c: D8 00 00 5C 31 64 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D8 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D8 01 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D8 01 00 5C 31 00 65 [10:38:19]int [10:38:19]Write to MH i2c: 01 00 00 5D 31 8E [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 5D 31 00 48 00 00 00 3C 00 19 [10:38:19]state=2 [10:38:19]Key pressed [10:38:19]int [10:38:19]Write to MH i2c: 01 00 00 5E 31 8F [10:38:19]*** FLAG_PRN_KEY reset [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 5E 31 00 00 00 00 00 F5 0F 9A [10:38:19]state=2 [10:38:19]Stop feed [10:38:19]int [10:38:19]Write to MH i2c: 01 00 00 5F 31 90 [10:38:19]*** FLAG_PRN_KEY set [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 5F 31 00 08 00 00 00 FF 0F AD [10:38:19]state=0 [10:38:19]Key pressed [10:38:19]Feed [10:38:19]Write to MH i2c: D8 00 00 60 31 68 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D8 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D8 01 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D8 01 00 60 31 00 69 [10:38:19]int [10:38:19]Write to MH i2c: 01 00 00 61 31 92 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 61 31 00 48 00 00 00 3C 00 1D [10:38:19]state=2 [10:38:19]Key pressed [10:38:19]int [10:38:19]Write to MH i2c: 01 00 00 62 31 93 [10:38:19]*** FLAG_PRN_KEY reset [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 62 31 00 00 00 00 00 F5 0F 9E [10:38:19]state=2 [10:38:19]Stop feed [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:26]accept exits with 9 [10:38:26]New connection [10:38:26]New thread 3067080036 created [10:38:26]Thread 3066936676 joined [10:38:26]Waiting for new connection... [10:38:26] Sock 9.Parse request [10:38:26]Sock 9.Check first char [10:38:26]Sock 9.First char is OK [10:38:26]request: POST /json_proto HTTP/1.0 [10:38:26]Method: POST [10:38:26]URL: /json_proto [10:38:26]Method is POST - this is cgi request [10:38:26]url: /json_proto [10:38:26]query_string will be loaded in cgi processing [10:38:26]execute_cgi json_proto POST (null) [10:38:26]execute_cgi path=json_proto method=POST [10:38:26]POST find Content-Length [10:38:26]Host: 172.17.63.195:8080 [10:38:26]Content-Length: 679 [10:38:26]Content-Type: application/json [10:38:26] [10:38:26]POST finish read [10:38:26]Found Content-Length = 679 [10:38:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:38:26]execute_script... [10:38: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)449616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:38:26]POST & json_proto [10:38:26]process_json_proto [10:38:26]json parsed OK: [10:38:26]protocol is kg_v1.0 [10:38:26]action value=close_receipt [10:38:26]process_action close_receipt [10:38:26]cmd_close_receipt [10:38:26]MH_GetDate [10:38:26]Write to MH i2c: F0 00 00 63 31 83 [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: F0 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: F0 09 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: F0 09 00 63 31 00 26 18 1E 67 68 46 19 67 7D [10:38:26]GetLastDocTimeStamp 1730025476 [10:38:26]current date 1730025510 [10:38:26]FM_GetShiftState [10:38:26]SAM_PROTO_GetShiftState [10:38:26]wFMCommunicate request_size=4 [10:38:26]MH_SAM_APDU [10:38:26]CAPDU: 80 13 01 00 [10:38:26]Write to MH i2c: E2 08 00 64 31 80 13 01 00 00 00 00 00 12 [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:26]Read from MH i2c: E2 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 0E 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 0E 00 64 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 14 [10:38:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:38:26]wFMCommunicate OK [10:38:26]SAM_PROTO_GetShiftState done [10:38:26]FM_GetShiftState done [10:38:26]opened in 1729987312 [10:38:26]opened+sec_in_day 1730073712 [10:38:26]quantity*price = 100050 [10:38:26]sum+1 = 100052 [10:38:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 147 27.10.2024 10:38 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201855 ФПД: 42046654697255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103830&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201855&fm=42046654697255&tin=02508201610067®Number=0000000000091777&sum=100000 [10:38:27]StoreToDocumentArchive [10:38:27]shift 544 fd 201855 [10:38:27]save to /storage/0544/doc_00201855 [10:38:27]save last doc name /storage/0544/doc_00201855 to /storage/kkm_last_doc_name [10:38:27]save OK [10:38:27]Clear old archive folders... [10:38:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:38:27]tlvbuf is 0008FF20 [10:38:27]SAM_PROTO_ClearQueue [10:38:27]wFMCommunicate request_size=4 [10:38:27]MH_SAM_APDU [10:38:27]CAPDU: 80 09 00 00 [10:38:27]Write to MH i2c: E2 08 00 71 31 80 09 00 00 00 00 00 00 14 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:27]Read from MH i2c: E2 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 03 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 03 00 71 31 00 90 00 16 [10:38:27]RAPDU: 90 00 [10:38:27]wFMCommunicate OK [10:38:27]SAM_PROTO_ClearQueue done [10:38:27]KKMCreateOFDPacket [10:38:27]OFDProtocolAddRootSTLVToBuf [10:38:27]FM_MakeSignedData [10:38:27]FM_MakeSignedData [10:38:27]SAM_PROTO_SignData [10:38:27]wFMCommunicate request_size=4 [10:38:27]MH_SAM_APDU [10:38:27]CAPDU: 80 0D 01 02 [10:38:27]Write to MH i2c: E2 08 00 72 31 80 0D 01 02 00 00 00 00 1C [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:27]Read from MH i2c: E2 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 03 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 03 00 72 31 00 90 00 17 [10:38:27]RAPDU: 90 00 [10:38:27]wFMCommunicate OK [10:38:27]wFMCommunicate request_size=255 [10:38:27]MH_SAM_APDU [10:38:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 93 00 00 00 F4 03 04 00 26 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 14 03 00 35 04 06 00 26 3D BF EA [10:38:27]Write to MH i2c: E2 02 01 73 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 93 00 00 00 F4 03 04 00 26 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 14 03 00 35 04 06 00 26 3D BF EA 00 00 C0 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:27]Read from MH i2c: E2 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 03 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 03 00 73 31 00 90 00 18 [10:38:27]RAPDU: 90 00 [10:38:27]wFMCommunicate OK [10:38:27]wFMCommunicate request_size=7 [10:38:27]MH_SAM_APDU [10:38:27]CAPDU: 80 0D 02 02 02 CF 27 [10:38:27]Write to MH i2c: E2 0A 00 74 31 80 0D 02 02 02 00 CF 27 00 00 19 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:27]Read from MH i2c: E2 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 03 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 03 00 74 31 00 90 00 19 [10:38:27]RAPDU: 90 00 [10:38:27]wFMCommunicate OK [10:38:27]wFMCommunicate request_size=4 [10:38:27]MH_SAM_APDU [10:38:27]CAPDU: 80 0D 03 02 [10:38:27]Write to MH i2c: E2 08 00 75 31 80 0D 03 02 00 00 00 00 21 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:27]Read from MH i2c: E2 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 0B 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 0B 00 75 31 00 FC 48 5E 2A B6 97 59 B0 90 00 44 [10:38:27]RAPDU: FC 48 5E 2A B6 97 59 B0 90 00 [10:38:27]wFMCommunicate OK [10:38:27]SAM_PROTO_SignData done [10:38:27]FM_MakeSignedData done [10:38:27]CreateOFDProtocolMessage [10:38:27]wFMCommunicate request_size=4 [10:38:27]MH_SAM_APDU [10:38:27]CAPDU: 80 11 00 00 [10:38:27]Write to MH i2c: E2 08 00 76 31 80 11 00 00 00 00 00 00 21 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:27]Read from MH i2c: E2 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 17 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: E2 17 00 76 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [10:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:38:27]wFMCommunicate OK [10:38:27]CreateOFDProtocolMessage done [10:38:27]OFDSenderStorePacket 201855 [10:38:27]StoreOFDPacket docnum=201855 [10:38:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 36 A9 04 01 1C 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 32 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 93 00 00 00 F4 03 04 00 26 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 14 03 00 35 04 06 00 26 3D BF EA CF 27 FC 48 5E 2A B6 97 59 B0 [10:38:27]CheckFolder [10:38:27]dirname=/storage/ofd_packets [10:38:27]CheckFolder done [10:38:27]ProducePacketName [10:38:27]name=ofd_packets/00201855 [10:38:27]NVStorageSaveData ofd_packets/00201855 [10:38:27]File name is /storage/ofd_packets/00201855 [10:38:27]Write 298 bytes [10:38:27]NVStorageSaveData done [10:38:27]OFDSenderStorePacket done [10:38:27]KKMCreateOFDPacket done [10:38:27]NVStorageSaveData kkm_last_timestamp [10:38:27]File name is /storage/kkm_last_timestamp [10:38:27]Write 4 bytes [10:38:27]NVStorageSaveData done [10:38:27]ExternCall_PrintAddStr [10:38:27]wPrintStart [10:38:27]Write to MH i2c: 01 00 00 77 31 A8 [10:38:27]Write i2c OK [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: 01 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: 01 07 00 [10:38:27]MH_I2C_Read... [10:38:27]Read from MH i2c: 01 07 00 77 31 00 00 00 00 00 FF 0F BD [10:38:27]RasterBufferAndPrint [10:38:27]line Счет N : (1)449616 [10:38:27]line ИНН: 02508201610067 [10:38:27]line Контрольно-Кассовый Чек [10:38:27]line ПРОДАЖА [10:38:27]line ТРК (МРК, ГНК) : 21 [10:38:27]line Товар: 2710194210 [10:38:27]line ДТ-К-2 [10:38:27]line 13.130 * 76.20 [10:38:27]line = 1000.51 [10:38:27]line НДС 12% НСП 1% [10:38:27]line > о реализуемом товаре [10:38:27]line ОКРУГЛЕНИЕ: -0.51 [10:38:27]line ИТОГО: 1000.00 [10:38:27]line Внесено: 1000.00 [10:38:27]line СДАЧА: 0.00 [10:38:27]line НСП 1% : 8.85 [10:38:27]line НДС 12% : 106.25 [10:38:27]line Наличными: 1000.00 [10:38:27]line Безнал.: 0.00 [10:38:27]line Место: АЗС № 171 "Партнер Нефть" [10:38:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:38:27]line СНО: Общий режим [10:38:27]line Чек 147 27.10.2024 10:38 [10:38:27]line Смена: 544 ФФД: 1.0 [10:38:27]line ЗНМ: 0300000109 [10:38:27]line РНМ: 0000000000091777 [10:38:27]line Версия ККМ: 001 [10:38:27]line ФМ: 0000000000871756 [10:38:27]line ФД: 201855 [10:38:27]line ФПД: 42046654697255 [10:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103830&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201855&fm=42046654697255&tin=02508201610067®Number=0000000000091777&sum=100000 [10:38:28]OFD Sender: Processing packet 201855 [packets to send 112, broken 111] [10:38:28]ProducePacketName [10:38:28]name=ofd_packets/00201855 [10:38:28]OFD Sender: To server: pG, [10:38:28]CommunicateWithHost lk.salyk.kg:30040 [10:38:28]ConnectInit lk.salyk.kg [10:38:28]written 0, free lines is 4095 [10:38:28]Connected sock=10 [10:38:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 36 A9 04 01 1C 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 32 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 93 00 00 00 F4 03 04 00 26 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 14 03 00 35 04 06 00 26 3D BF EA CF 27 FC 48 5E 2A B6 97 59 B0 [10:38:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DA C8 47 00 63 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 30 38 37 31 37 35 36 10 04 04 00 7F 14 03 00 F4 03 04 00 CB C3 1D 67 B6 04 01 00 00 70 90 53 08 6C D7 FA 98 [10:38:28]CommunicateWithHost err = 0 [10:38:28]CheckOFDResponse [10:38:28]1017 (14) - 77093643461234 [10:38:28]1041 (16) - 0000000000871756 [10:38:28]1040 (4) - 201855 [10:38:28]1012 (4) - 27.10.2024 04:38 [10:38:28]1206 (1) - 0 [10:38:28]OFD Sender: Remove packet 201855 [10:38:28]ProducePacketName [10:38:28]name=ofd_packets/00201855 [10:38:28]NVStorageDeleteData [10:38:28]Write to MH i2c: 01 00 00 A2 31 D3 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: 01 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: 01 07 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: 01 07 00 A2 31 00 00 00 00 00 8F 0C 75 [10:38:28]RasterBufferAndPrint [10:38:28]line [10:38:28]line [10:38:28]line [10:38:28]line [10:38:28]line [10:38:28]written 0, free lines is 3219 [10:38:28]MH_Cut [10:38:28]Write to MH i2c: D1 01 00 A9 31 01 AC [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: D1 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: D1 01 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: D1 01 00 A9 31 00 AB [10:38:28]Write to MH i2c: 01 00 00 AA 31 DB [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]OFD Sender: No OFD packet to send [10:38:29]*** Cut start [10:38:29]*** Purtial cut [10:38:29]*** Stage 1: CUTSNS_PIN = 1 [10:38:29]Read from MH i2c: 01 [10:38:29]MH_I2C_Read... [10:38:29]*** Stop cut motor [10:38:29]*** Cut end [10:38:29]Read from MH i2c: 01 07 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: 01 07 00 AA 31 00 00 00 00 00 FF 0F F0 [10:38:29]process_action close_receipt done [10:38:29]requested_data is exist [10:38:29]produce_requested_data [10:38:29]requested_item fm.sn is exist - process it [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 11 00 00 [10:38:29]Write to MH i2c: E2 08 00 AB 31 80 11 00 00 00 00 00 00 56 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 17 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 17 00 AB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AB [10:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:38:29]wFMCommunicate OK [10:38:29]requested_item fd.num is exist - process it [10:38:29]SAM_PROTO_GetFieldsCounters [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 13 00 00 [10:38:29]Write to MH i2c: E2 08 00 AC 31 80 13 00 00 00 00 00 00 59 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 62 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 62 00 AC 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7F 14 03 00 0E 04 04 00 20 02 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 F3 [10:38:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7F 14 03 00 0E 04 04 00 20 02 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 [10:38:29]wFMCommunicate OK [10:38:29]SAM_PROTO_GetFieldsCounters done [10:38:29]requested_item shift.num is exist - process it [10:38:29]requested_item shift.opened is exist - process it [10:38:29]req_shift_opened [10:38:29]FM_GetShiftState [10:38:29]SAM_PROTO_GetShiftState [10:38:29]wFMCommunicate request_size=4 [10:38:29]MH_SAM_APDU [10:38:29]CAPDU: 80 13 01 00 [10:38:29]Write to MH i2c: E2 08 00 AD 31 80 13 01 00 00 00 00 00 5B [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:29]Read from MH i2c: E2 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 0E 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: E2 0E 00 AD 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5D [10:38:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:38:29]wFMCommunicate OK [10:38:29]SAM_PROTO_GetShiftState done [10:38:29]FM_GetShiftState done [10:38:29]req_shift_opened done [10:38:29]requested_item shift.open_date is exist - process it [10:38:29]req_shift_open_date [10:38:29]req_shift_open_date done [10:38:29]produce_requested_data done [10:38:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201855,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:38:29]process_action_free close_receipt [10:38:29]json_value_free [10:38:29]json_value_free done [10:38:29]process_json_proto returns [10:38:29]Send response to host [10:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201855,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:38:29]free response buf [10:38:29]execute_script done [10:38:29]execute_script returns [10:38:29]free content buf [10:38:29]Sock 9.Close socket [10:38:29]Sock 9.Thread stoped [10:38:30]accept exits with 8 [10:38:30]New connection [10:38:30]New thread 3066936676 created [10:38:30]Thread 3067080036 joined [10:38:30]Waiting for new connection... [10:38:30] Sock 8.Parse request [10:38:30]Sock 8.Check first char [10:38:30]Sock 8.First char is OK [10:38:30]request: POST /json_proto HTTP/1.0 [10:38:30]Method: POST [10:38:30]URL: /json_proto [10:38:30]Method is POST - this is cgi request [10:38:30]url: /json_proto [10:38:30]query_string will be loaded in cgi processing [10:38:30]execute_cgi json_proto POST (null) [10:38:30]execute_cgi path=json_proto method=POST [10:38:30]POST find Content-Length [10:38:30]Host: 172.17.63.195:8080 [10:38:30]Content-Length: 766 [10:38:30]Content-Type: application/json [10:38:30] [10:38:30]POST finish read [10:38:30]Found Content-Length = 766 [10:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:30]execute_script... [10:38: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)449615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:30]POST & json_proto [10:38:30]process_json_proto [10:38:30]json parsed OK: [10:38:30]protocol is kg_v1.0 [10:38:30]action value=close_receipt [10:38:30]process_action close_receipt [10:38:30]cmd_close_receipt [10:38:30]MH_GetDate [10:38:30]Write to MH i2c: F0 00 00 AE 31 CE [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: F0 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: F0 09 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: F0 09 00 AE 31 00 2A 18 1E 67 68 46 19 67 CC [10:38:30]GetLastDocTimeStamp 1730025510 [10:38:30]current date 1730025514 [10:38:30]FM_GetShiftState [10:38:30]SAM_PROTO_GetShiftState [10:38:30]wFMCommunicate request_size=4 [10:38:30]MH_SAM_APDU [10:38:30]CAPDU: 80 13 01 00 [10:38:30]Write to MH i2c: E2 08 00 AF 31 80 13 01 00 00 00 00 00 5D [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:30]Read from MH i2c: E2 0E 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 0E 00 AF 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5F [10:38:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:38:30]wFMCommunicate OK [10:38:30]SAM_PROTO_GetShiftState done [10:38:30]FM_GetShiftState done [10:38:30]opened in 1729987312 [10:38:30]opened+sec_in_day 1730073712 [10:38:30]quantity*price = 50041 [10:38:30]sum+1 = 50042 [10:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 148 27.10.2024 10:38 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201856 ФПД: 99680989747397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103834&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201856&fm=99680989747397&tin=02508201610067®Number=0000000000091777&sum=50041 [10:38:31]StoreToDocumentArchive [10:38:31]shift 544 fd 201856 [10:38:31]save to /storage/0544/doc_00201856 [10:38:31]save last doc name /storage/0544/doc_00201856 to /storage/kkm_last_doc_name [10:38:31]save OK [10:38:31]Clear old archive folders... [10:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:31]tlvbuf is 0009F3D0 [10:38:31]SAM_PROTO_ClearQueue [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 09 00 00 [10:38:31]Write to MH i2c: E2 08 00 BC 31 80 09 00 00 00 00 00 00 5F [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 BC 31 00 90 00 61 [10:38:31]RAPDU: 90 00 [10:38:31]wFMCommunicate OK [10:38:31]SAM_PROTO_ClearQueue done [10:38:31]KKMCreateOFDPacket [10:38:31]OFDProtocolAddRootSTLVToBuf [10:38:31]FM_MakeSignedData [10:38:31]FM_MakeSignedData [10:38:31]SAM_PROTO_SignData [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 0D 01 02 [10:38:31]Write to MH i2c: E2 08 00 BD 31 80 0D 01 02 00 00 00 00 67 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 BD 31 00 90 00 62 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=255 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 2A 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 14 03 00 35 04 06 00 5A [10:38:32]Write to MH i2c: E2 02 01 BE 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 2A 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 14 03 00 35 04 06 00 5A 00 00 BB [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=10 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 02 02 05 A8 C9 FC 18 C5 [10:38:32]Write to MH i2c: E2 0D 00 BF 31 80 0D 02 02 05 00 A8 C9 FC 18 C5 00 00 BE [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 03 02 [10:38:32]Write to MH i2c: E2 08 00 C0 31 80 0D 03 02 00 00 00 00 6C [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0B 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0B 00 C0 31 00 03 CE 93 59 96 16 C3 57 90 00 F0 [10:38:32]RAPDU: 03 CE 93 59 96 16 C3 57 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_SignData done [10:38:32]FM_MakeSignedData done [10:38:32]CreateOFDProtocolMessage [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 11 00 00 [10:38:32]Write to MH i2c: E2 08 00 C1 31 80 11 00 00 00 00 00 00 6C [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 C1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [10:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:38:32]wFMCommunicate OK [10:38:32]CreateOFDProtocolMessage done [10:38:32]OFDSenderStorePacket 201856 [10:38:32]StoreOFDPacket docnum=201856 [10:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E AB 07 01 F0 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 2A 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 14 03 00 35 04 06 00 5A A8 C9 FC 18 C5 03 CE 93 59 96 16 C3 57 [10:38:32]CheckFolder [10:38:32]dirname=/storage/ofd_packets [10:38:32]CheckFolder done [10:38:32]ProducePacketName [10:38:32]name=ofd_packets/00201856 [10:38:32]NVStorageSaveData ofd_packets/00201856 [10:38:32]File name is /storage/ofd_packets/00201856 [10:38:32]Write 301 bytes [10:38:32]NVStorageSaveData done [10:38:32]OFDSenderStorePacket done [10:38:32]KKMCreateOFDPacket done [10:38:32]NVStorageSaveData kkm_last_timestamp [10:38:32]File name is /storage/kkm_last_timestamp [10:38:32]Write 4 bytes [10:38:32]NVStorageSaveData done [10:38:32]ExternCall_PrintAddStr [10:38:32]wPrintStart [10:38:32]Write to MH i2c: 01 00 00 C2 31 F3 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 07 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 07 00 C2 31 00 00 00 00 00 FF 0F 08 [10:38:32]RasterBufferAndPrint [10:38:32]line Счет N : (1)449615 [10:38:32]line ИНН: 02508201610067 [10:38:32]line Контрольно-Кассовый Чек [10:38:32]line ПРОДАЖА [10:38:32]line ТРК (МРК, ГНК) : 41 [10:38:32]line Товар: 2710124130 [10:38:32]line Аи-92-К-2 [10:38:32]line 7.480 * 66.90 [10:38:32]line = 500.41 [10:38:32]line НДС 12% НСП 1% [10:38:32]line > о реализуемом товаре [10:38:32]line ИТОГО: 500.41 [10:38:32]line НСП 1% : 4.43 [10:38:32]line НДС 12% : 53.14 [10:38:32]line Наличными: 0.00 [10:38:32]line Безнал.: 500.41 [10:38:32]line Место: АЗС № 171 "Партнер Нефть" [10:38:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:38:32]line СНО: Общий режим [10:38:32]line Чек 148 27.10.2024 10:38 [10:38:32]line Смена: 544 ФФД: 1.0 [10:38:32]line ЗНМ: 0300000109 [10:38:32]line РНМ: 0000000000091777 [10:38:32]line Версия ККМ: 001 [10:38:32]line Платежная система: Mbank [10:38:32]line ФМ: 0000000000871756 [10:38:32]line ФД: 201856 [10:38:32]line ФПД: 99680989747397 [10:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103834&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201856&fm=99680989747397&tin=02508201610067®Number=0000000000091777&sum=50041 [10:38:33]int [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: DD [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: OFD Sender: Processing packet 201856 [packets to send 112, broken 111] [10:38:33]DD ProducePacketName [10:38:33]05 name=ofd_packets/00201856 [10:38:33]00 OFD Sender: To server: pG, [10:38:33] [10:38:33]CommunicateWithHost lk.salyk.kg:30040 [10:38:33]MH_I2C_Read... [10:38:33]ConnectInit lk.salyk.kg [10:38:33]Read from MH i2c: DD 05 00 C3 31 00 00 00 FF 0F E3 [10:38:33]written 0, free lines is 4095 [10:38:33]Write to MH i2c: Write to MH i2c: 01 DD 00 8C 00 01 C4 C4 31 31 F5 00 [10:38:33]00 *** FLAG_PRN_KEY set [10:38:33]00 *** FLAG_PRN_KEY reset [10:38:33]00 *** FLAG_PRN_KEY set [10:38:33]21 00 00 00 40 01 60 06 2E 0C 38 00 C0 FD 37 03 F0 07 80 E0 C0 7C 03 07 80 03 C0 0F 80 07 E0 1F FF C0 2E 0C 10 00 C0 C0 07 0F FC C0 C3 FC 3F C0 1F F0 FF 2D 0C 00 00 E0 D7 17 1E 0E 01 83 1C 01 80 0F 07 78 E0 3C 10 C7 E0 2D 0C 10 00 40 D4 07 38 06 E0 80 1F 0F F0 70 38 00 07 2D 0C 00 00 20 D6 01 70 00 03 C0 1B 0D E0 30 70 2D F0 13 00 00 94 00 38 38 0F 80 FF FE F0 33 19 38 2D C4 10 00 48 15 11 E0 3F E0 70 0E 00 00 73 39 E0 FF 2E Write i2c OK [10:38:33]C0 MH_I2C_Read... [10:38:33]13 Read from MH i2c: 00 01 20 [10:38:33]16 MH_I2C_Read... [10:38:33]23 Read from MH i2c: 78 01 F0 07 03 00 80 [10:38:33]78 MH_I2C_Read... [10:38:33]07 E0 63 31 E7 C0 80 2E C0 10 00 00 D4 33 70 70 38 C3 61 F0 78 EF E0 83 C0 2E C0 10 00 08 D2 13 E0 38 3C 00 E1 E1 78 F8 F8 F0 01 2E 10 10 00 00 D4 33 3C 1C 83 C1 3F B8 F0 78 00 E0 2E F0 10 00 00 DE 03 1F F8 Read from MH i2c: FF 01 F8 07 1E 00 E3 C4 03 31 81 00 81 08 1F 00 38 00 E0 00 38 FF 2E 0F 10 12 10 [10:38:33]00 state=0 [10:38:33]00 Key pressed [10:38:33]7C Feed [10:38:33]00 Write to MH i2c: 0F 0E D8 FF 00 F1 00 FF C5 F8 31 00 CD 2E [10:38:33]F4 10 00 00 80 Write i2c OK [10:38:33]00 MH_I2C_Read... [10:38:33]70 00 38 E0 00 0F 70 2E 00 10 00 20 3E 01 07 03 C0 03 80 01 C0 60 2E 4C 00 00 40 81 33 38 06 70 80 01 E0 70 78 01 C0 2E CC 10 00 08 40 1B 1E 0E 78 10 03 0E 41 38 F0 Read from MH i2c: 01 D8 03 [10:38:33]2E MH_I2C_Read... [10:38:33]CC Read from MH i2c: 00 D8 00 01 E0 00 C3 [10:38:33]3F MH_I2C_Read... [10:38:33]0F FC Read from MH i2c: 3F D8 F0 01 81 01 FF 00 C1 C5 80 31 7F 00 C0 CE 1F [10:38:33]E0 int line is 0 - check status [10:38:33]7F Write to MH i2c: F1 01 FF 00 80 00 2D C6 CC 31 10 F7 00 [10:38:33]00 C0 1B 03 F0 0F Write i2c OK [10:38:33]C0 MH_I2C_Read... [10:38:33]01 3F 00 0F 80 F0 7E 21 EC 3B 00 E8 01 00 00 00 00 00 00 00 00 00 00 00 00 C0 00 03 21 00 00 00 00 00 21 00 00 00 40 01 60 06 00 00 00 B7 [10:38:33]Read from MH i2c: 01 [10:38:33]MH_I2C_Read... [10:38:33]Connected sock=6 [10:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E AB 07 01 F0 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 Write i2c OK [10:38:33]31 MH_I2C_Read... [10:38:33]30 *** FLAG_PRN_KEY reset [10:38:33]31 Read from MH i2c: 32 DD 34 [10:38:33]31 MH_I2C_Read... [10:38:33]33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 2A 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 14 03 00 35 04 06 00 5A A8 C9 FC 18 C5 03 CE 93 59 96 16 C3 57 [10:38:33]Read from MH i2c: DD 05 00 [10:38:33]answer for other command [DD] [10:38:33]MH Int Process stopped [10:38:33]Read from MH i2c: DD 05 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: DD 05 00 C4 31 00 1E 00 D9 0F DC [10:38:33]answer with wrong packet_num 31C4 - expected 31C7 [10:38:33]process_action_free close_receipt [10:38:33]json_value_free [10:38:33]json_value_free done [10:38:33]process_json_proto returns [10:38:33]Send response to host [10:38:33]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [10:38:33]free response buf [10:38:33]execute_script done [10:38:33]execute_script returns [10:38:33]free content buf [10:38:33]Sock 8.Close socket [10:38:33]Sock 8.Thread stoped [10:38:33]*** FLAG_PRN_KEY set [10:38:33]*** FLAG_PRN_KEY reset [10:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 47 90 47 00 E9 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 14 03 00 F4 03 04 00 D1 C3 1D 67 B6 04 01 00 00 A8 6B 55 56 07 EC 70 EA [10:38:33]CommunicateWithHost err = 0 [10:38:33]CheckOFDResponse [10:38:33]1017 (14) - 77093643461234 [10:38:33]1041 (16) - 0000000000871756 [10:38:33]1040 (4) - 201856 [10:38:33]1012 (4) - 27.10.2024 04:38 [10:38:33]1206 (1) - 0 [10:38:33]OFD Sender: Remove packet 201856 [10:38:33]ProducePacketName [10:38:33]name=ofd_packets/00201856 [10:38:33]NVStorageDeleteData [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:27]accept exits with 9 [10:39:27]New connection [10:39:27]New thread 3067080036 created [10:39:27]Thread 3066936676 joined [10:39:27]Waiting for new connection... [10:39:27] Sock 9.Parse request [10:39:27]Sock 9.Check first char [10:39:27]Sock 9.First char is OK [10:39:27]request: POST /json_proto HTTP/1.0 [10:39:27]Method: POST [10:39:27]URL: /json_proto [10:39:27]Method is POST - this is cgi request [10:39:27]url: /json_proto [10:39:27]query_string will be loaded in cgi processing [10:39:27]execute_cgi json_proto POST (null) [10:39:27]execute_cgi path=json_proto method=POST [10:39:27]POST find Content-Length [10:39:27]Host: 172.17.63.195:8080 [10:39:27]Content-Length: 215 [10:39:27]Content-Type: application/json [10:39:27] [10:39:27]POST finish read [10:39:27]Found Content-Length = 215 [10:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:27]execute_script... [10:39:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:27]POST & json_proto [10:39:27]process_json_proto [10:39:27]json parsed OK: [10:39:27]protocol is kg_v1.0 [10:39:27]action value=get_value [10:39:27]process_action get_value [10:39:27]cmd_get_value [10:39:27]process_action get_value done [10:39:27]requested_data is exist [10:39:27]produce_requested_data [10:39:27]requested_item kkm.sn is exist - process it [10:39:27]requested_item kkm.ver is exist - process it [10:39:27]requested_item fm.sn is exist - process it [10:39:27]wFMCommunicate request_size=4 [10:39:27]MH_SAM_APDU [10:39:27]CAPDU: 80 11 00 00 [10:39:27]Write to MH i2c: E2 08 00 C8 31 80 11 00 00 00 00 00 00 73 [10:39:27]Write i2c OK [10:39:27]MH_I2C_Read... [10:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:27]Read from MH i2c: E2 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: E2 17 00 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: E2 17 00 C8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C8 [10:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:39:27]wFMCommunicate OK [10:39:27]requested_item fd.num is exist - process it [10:39:27]SAM_PROTO_GetFieldsCounters [10:39:27]wFMCommunicate request_size=4 [10:39:27]MH_SAM_APDU [10:39:27]CAPDU: 80 13 00 00 [10:39:27]Write to MH i2c: E2 08 00 C9 31 80 13 00 00 00 00 00 00 76 [10:39:27]Write i2c OK [10:39:27]MH_I2C_Read... [10:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:27]Read from MH i2c: E2 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: E2 62 00 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: E2 62 00 C9 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 80 14 03 00 0E 04 04 00 20 02 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 14 [10:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 80 14 03 00 0E 04 04 00 20 02 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 [10:39:27]wFMCommunicate OK [10:39:27]SAM_PROTO_GetFieldsCounters done [10:39:27]requested_item shift.num is exist - process it [10:39:27]requested_item shift.opened is exist - process it [10:39:27]req_shift_opened [10:39:27]FM_GetShiftState [10:39:27]SAM_PROTO_GetShiftState [10:39:27]wFMCommunicate request_size=4 [10:39:27]MH_SAM_APDU [10:39:27]CAPDU: 80 13 01 00 [10:39:27]Write to MH i2c: E2 08 00 CA 31 80 13 01 00 00 00 00 00 78 [10:39:27]Write i2c OK [10:39:27]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0E 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0E 00 CA 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7A [10:39:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_GetShiftState done [10:39:28]FM_GetShiftState done [10:39:28]req_shift_opened done [10:39:28]requested_item shift.open_date is exist - process it [10:39:28]req_shift_open_date [10:39:28]req_shift_open_date done [10:39:28]produce_requested_data done [10:39:28]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201856,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:39:28]process_action_free get_value [10:39:28]json_value_free [10:39:28]json_value_free done [10:39:28]process_json_proto returns [10:39:28]Send response to host [10:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201856,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:39:28]free response buf [10:39:28]execute_script done [10:39:28]execute_script returns [10:39:28]free content buf [10:39:28]Sock 9.Close socket [10:39:28]Sock 9.Thread stoped [10:39:28]accept exits with 6 [10:39:28]New connection [10:39:28]New thread 3066936676 created [10:39:28]Thread 3067080036 joined [10:39:28]Waiting for new connection... [10:39:28] Sock 6.Parse request [10:39:28]Sock 6.Check first char [10:39:28]Sock 6.First char is OK [10:39:28]request: POST /json_proto HTTP/1.0 [10:39:28]Method: POST [10:39:28]URL: /json_proto [10:39:28]Method is POST - this is cgi request [10:39:28]url: /json_proto [10:39:28]query_string will be loaded in cgi processing [10:39:28]execute_cgi json_proto POST (null) [10:39:28]execute_cgi path=json_proto method=POST [10:39:28]POST find Content-Length [10:39:28]Host: 172.17.63.195:8080 [10:39:28]Content-Length: 331 [10:39:28]Content-Type: application/json [10:39:28] [10:39:28]POST finish read [10:39:28]Found Content-Length = 331 [10:39:28]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" ] } } [10:39:28]execute_script... [10:39:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:39:28]POST & json_proto [10:39:28]process_json_proto [10:39:28]json parsed OK: [10:39:28]protocol is kg_v1.0 [10:39:28]action value=get_value [10:39:28]process_action get_value [10:39:28]cmd_get_value [10:39:28]process_action get_value done [10:39:28]requested_data is exist [10:39:28]produce_requested_data [10:39:28]requested_item fm.sale.total is exist - process it [10:39:28]SAM_PROTO_GetFMData [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 13 03 00 [10:39:28]Write to MH i2c: E2 08 00 CB 31 80 13 03 00 00 00 00 00 7B [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 FD 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 FD 00 CB 31 00 C4 04 85 04 C0 04 6E 04 04 00 40 10 03 00 69 04 A3 00 6F 04 04 00 1B 10 03 00 B1 04 05 00 9F E7 A3 AD 03 70 04 05 00 C4 80 96 4E 03 72 04 04 00 DB 66 0D 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3F 8B 08 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D4 DE 55 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 92 [10:39:28]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 40 10 03 00 69 04 A3 00 6F 04 04 00 1B 10 03 00 B1 04 05 00 9F E7 A3 AD 03 70 04 05 00 C4 80 96 4E 03 72 04 04 00 DB 66 0D 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3F 8B 08 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D4 DE 55 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [10:39:28]wFMCommunicate OK [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 17 00 00 [10:39:28]Write to MH i2c: E2 08 00 CC 31 80 17 00 00 00 00 00 00 7D [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:39:29]Read from MH i2c: E2 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: E2 FD 00 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: E2 FD 00 CC 31 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 84 [10:39:29]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [10:39:29]wFMCommunicate OK [10:39:29]wFMCommunicate request_size=4 [10:39:29]MH_SAM_APDU [10:39:29]CAPDU: 80 17 00 00 [10:39:29]Write to MH i2c: E2 08 00 CD 31 80 17 00 00 00 00 00 00 7E [10:39:29]Write i2c OK [10:39:29]MH_I2C_Read... [10:39:29]OFD Sender: No OFD packet to send [10:39:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:39:29]Read from MH i2c: E2 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: E2 FD 00 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: E2 FD 00 CD 31 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 93 [10:39:29]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:39:29]wFMCommunicate OK [10:39:29]wFMCommunicate request_size=4 [10:39:29]MH_SAM_APDU [10:39:29]CAPDU: 80 17 00 00 [10:39:29]Write to MH i2c: E2 08 00 CE 31 80 17 00 00 00 00 00 00 7F [10:39:29]Write i2c OK [10:39:29]MH_I2C_Read... [10:39:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:39:29]Read from MH i2c: E2 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: E2 FD 00 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: E2 FD 00 CE 31 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [10:39:29]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:39:29]wFMCommunicate OK [10:39:29]wFMCommunicate request_size=4 [10:39:29]MH_SAM_APDU [10:39:29]CAPDU: 80 17 00 00 [10:39:29]Write to MH i2c: E2 08 00 CF 31 80 17 00 00 00 00 00 00 80 [10:39:29]Write i2c OK [10:39:29]MH_I2C_Read... [10:39:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:39:29]Read from MH i2c: E2 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: E2 E1 00 [10:39:29]MH_I2C_Read... [10:39:29]Read from MH i2c: E2 E1 00 CF 31 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6E [10:39:29]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:39:29]wFMCommunicate OK [10:39:29]SAM_PROTO_GetFMData done [10:39:29]requested_item fm.sale_refund.total is exist - process it [10:39:29]requested_item fm.buy.total is exist - process it [10:39:29]requested_item shift.sale.total is exist - process it [10:39:29]SAM_PROTO_GetShiftData [10:39:29]wFMCommunicate request_size=4 [10:39:29]MH_SAM_APDU [10:39:29]CAPDU: 80 13 02 00 [10:39:29]Write to MH i2c: E2 08 00 D0 31 80 13 02 00 00 00 00 00 7F [10:39:29]Write i2c OK [10:39:29]MH_I2C_Read... [10:39:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:39:30]Read from MH i2c: E2 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 FD 00 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 FD 00 D0 31 00 AF 04 AA 04 AB 04 6E 04 04 00 94 00 00 00 69 04 9C 00 6F 04 04 00 94 00 00 00 B1 04 03 00 B5 1A A6 70 04 03 00 88 CF 98 72 04 03 00 2D 4B 0D 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 5E A5 11 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 6B 78 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 58 [10:39:30]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 94 00 00 00 69 04 9C 00 6F 04 04 00 94 00 00 00 B1 04 03 00 B5 1A A6 70 04 03 00 88 CF 98 72 04 03 00 2D 4B 0D 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 5E A5 11 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 6B 78 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:39:30]wFMCommunicate OK [10:39:30]wFMCommunicate request_size=4 [10:39:30]MH_SAM_APDU [10:39:30]CAPDU: 80 17 00 00 [10:39:30]Write to MH i2c: E2 08 00 D1 31 80 17 00 00 00 00 00 00 82 [10:39:30]Write i2c OK [10:39:30]MH_I2C_Read... [10:39:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:39:30]Read from MH i2c: E2 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 FD 00 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 FD 00 D1 31 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 9B [10:39:30]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [10:39:30]wFMCommunicate OK [10:39:30]wFMCommunicate request_size=4 [10:39:30]MH_SAM_APDU [10:39:30]CAPDU: 80 17 00 00 [10:39:30]Write to MH i2c: E2 08 00 D2 31 80 17 00 00 00 00 00 00 83 [10:39:30]Write i2c OK [10:39:30]MH_I2C_Read... [10:39:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:39:30]Read from MH i2c: E2 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 FD 00 [10:39:30]MH_I2C_Read... [10:39:30]Read from MH i2c: E2 FD 00 D2 31 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 37 [10:39:30]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [10:39:30]wFMCommunicate OK [10:39:30]wFMCommunicate request_size=4 [10:39:30]MH_SAM_APDU [10:39:30]CAPDU: 80 17 00 00 [10:39:30]Write to MH i2c: E2 08 00 D3 31 80 17 00 00 00 00 00 00 84 [10:39:30]Write i2c OK [10:39:30]MH_I2C_Read... [10:39:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:39:31]Read from MH i2c: E2 [10:39:31]MH_I2C_Read... [10:39:31]Read from MH i2c: E2 FD 00 [10:39:31]MH_I2C_Read... [10:39:31]Read from MH i2c: E2 FD 00 D3 31 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 02 [10:39:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:39:31]wFMCommunicate OK [10:39:31]wFMCommunicate request_size=4 [10:39:31]MH_SAM_APDU [10:39:31]CAPDU: 80 17 00 00 [10:39:31]Write to MH i2c: E2 08 00 D4 31 80 17 00 00 00 00 00 00 85 [10:39:31]Write i2c OK [10:39:31]MH_I2C_Read... [10:39:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:39:31]Read from MH i2c: E2 [10:39:31]MH_I2C_Read... [10:39:31]Read from MH i2c: E2 CC 00 [10:39:31]MH_I2C_Read... [10:39:31]Read from MH i2c: E2 CC 00 D4 31 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [10:39:31]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:39:31]wFMCommunicate OK [10:39:31]SAM_PROTO_GetShiftData done [10:39:31]requested_item shift.sale.total_cash is exist - process it [10:39:31]requested_item shift.sale_refund.total is exist - process it [10:39:31]requested_item shift.sale_refund.total_cash is exist - process it [10:39:31]requested_item shift.buy.total is exist - process it [10:39:31]requested_item shift.buy.total_cash is exist - process it [10:39:31]produce_requested_data done [10:39:31]produce_requested_data return {"fm.sale.total":157981019.19,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":108858.13,"shift.sale.total_cash":100146.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} [10:39:31]process_action_free get_value [10:39:31]json_value_free [10:39:31]json_value_free done [10:39:31]process_json_proto returns [10:39:31]Send response to host [10:39:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157981019.19,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":108858.13,"shift.sale.total_cash":100146.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}}} [10:39:31]free response buf [10:39:31]execute_script done [10:39:31]execute_script returns [10:39:31]free content buf [10:39:31]Sock 6.Close socket [10:39:31]Sock 6.Thread stoped [10:39:31]accept exits with 5 [10:39:31]New connection [10:39:31]New thread 3067080036 created [10:39:31]Thread 3066936676 joined [10:39:31]Waiting for new connection... [10:39:31] Sock 5.Parse request [10:39:31]Sock 5.Check first char [10:39:31]Sock 5.First char is OK [10:39:31]request: POST /json_proto HTTP/1.0 [10:39:31]Method: POST [10:39:31]URL: /json_proto [10:39:31]Method is POST - this is cgi request [10:39:31]url: /json_proto [10:39:31]query_string will be loaded in cgi processing [10:39:31]execute_cgi json_proto POST (null) [10:39:31]execute_cgi path=json_proto method=POST [10:39:31]POST find Content-Length [10:39:31]Host: 172.17.63.195:8080 [10:39:31]Content-Length: 144 [10:39:31]Content-Type: application/json [10:39:31] [10:39:31]POST finish read [10:39:31]Found Content-Length = 144 [10:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:39:31]execute_script... [10:39:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:39:31]POST & json_proto [10:39:31]process_json_proto [10:39:31]json parsed OK: [10:39:31]protocol is kg_v1.0 [10:39:31]action value=print_doc [10:39:31]process_action print_doc [10:39:31]ExternCall_PrintAddStr [10:39:31]wPrintStart [10:39:31]Write to MH i2c: 01 00 00 D5 31 06 [10:39:31]Write i2c OK [10:39:31]MH_I2C_Read... [10:39:31]Read from MH i2c: 01 [10:39:31]MH_I2C_Read... [10:39:31]Read from MH i2c: 01 07 00 [10:39:31]MH_I2C_Read... [10:39:31]Read from MH i2c: 01 07 00 D5 31 00 00 00 00 00 FF 0F 1B [10:39:31]RasterBufferAndPrint [10:39:31]line Счет N : (1)449615 [10:39:31]line ИНН: 02508201610067 [10:39:31]line Контрольно-Кассовый Чек [10:39:31]line ПРОДАЖА [10:39:31]line ТРК (МРК, ГНК) : 41 [10:39:31]line Товар: 2710124130 [10:39:31]line Аи-92-К-2 [10:39:31]line 7.480 * 66.90 [10:39:31]line = 500.41 [10:39:31]line НДС 12% НСП 1% [10:39:31]line > о реализуемом товаре [10:39:31]line ИТОГО: 500.41 [10:39:31]line НСП 1% : 4.43 [10:39:31]line НДС 12% : 53.14 [10:39:31]line Наличными: 0.00 [10:39:31]line Безнал.: 500.41 [10:39:31]line Место: АЗС № 171 "Партнер Нефть" [10:39:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:39:31]line СНО: Общий режим [10:39:31]line Чек 148 27.10.2024 10:38 [10:39:31]line Смена: 544 ФФД: 1.0 [10:39:31]line ЗНМ: 0300000109 [10:39:31]line РНМ: 0000000000091777 [10:39:31]line Версия ККМ: 001 [10:39:31]line Платежная система: Mbank [10:39:31]line ФМ: 0000000000871756 [10:39:31]line ФД: 201856 [10:39:31]line ФПД: 99680989747397 [10:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103834&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201856&fm=99680989747397&tin=02508201610067®Number=0000000000091777&sum=50041 [10:39:31]written 0, free lines is 4095 [10:39:32]Write to MH i2c: 01 00 00 FE 31 2F [10:39:32]Write i2c OK [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: 01 [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: 01 07 00 [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 C3 0C 05 [10:39:32]RasterBufferAndPrint [10:39:32]line [10:39:32]line [10:39:32]line [10:39:32]line [10:39:32]line [10:39:32]written 0, free lines is 3280 [10:39:32]MH_Cut [10:39:32]Write to MH i2c: D1 01 00 05 32 01 09 [10:39:32]Write i2c OK [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: D1 [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: D1 01 00 [10:39:32]MH_I2C_Read... [10:39:32]Read from MH i2c: D1 01 00 05 32 00 08 [10:39:32]Write to MH i2c: 01 00 00 06 32 38 [10:39:32]Write i2c OK [10:39:32]MH_I2C_Read... [10:39:33]*** Cut start [10:39:33]*** Purtial cut [10:39:33]*** Stage 1: CUTSNS_PIN = 1 [10:39:33]Read from MH i2c: 01 [10:39:33]MH_I2C_Read... [10:39:33]*** Stop cut motor [10:39:33]*** Cut end [10:39:33]Read from MH i2c: 01 07 00 [10:39:33]MH_I2C_Read... [10:39:33]Read from MH i2c: 01 07 00 06 32 00 00 00 00 00 FF 0F 4D [10:39:33]process_action print_doc done [10:39:33]requested_data is exist [10:39:33]produce_requested_data [10:39:33]produce_requested_data return (null) [10:39:33]process_action_free print_doc [10:39:33]json_value_free [10:39:33]json_value_free done [10:39:33]process_json_proto returns [10:39:33]Send response to host [10:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:39:33]free response buf [10:39:33]execute_script done [10:39:33]execute_script returns [10:39:33]free content buf [10:39:33]Sock 5.Close socket [10:39:33]Sock 5.Thread stoped [10:39:34]OFD Sender: No OFD packet to send [10:39:35]*** FLAG_PRN_KEY set [10:39:35]*** FLAG_PRN_KEY reset [10:39:35]*** FLAG_PRN_KEY set [10:39:35]*** FLAG_PRN_KEY reset [10:39:36]*** FLAG_PRN_KEY set [10:39:36]*** FLAG_PRN_KEY reset [10:39:36]*** FLAG_PRN_KEY set [10:39:36]*** FLAG_PRN_KEY reset [10:39:36]*** FLAG_PRN_KEY set [10:39:36]*** FLAG_PRN_KEY reset [10:39:37]*** FLAG_PRN_KEY set [10:39:37]*** FLAG_PRN_KEY reset [10:39:37]*** FLAG_PRN_KEY set [10:39:37]*** FLAG_PRN_KEY reset [10:39:38]*** FLAG_PRN_PAP1 set [10:39:38]*** FLAG_PRN_PAP2 set [10:39:39]OFD Sender: No OFD packet to send [10:39:39]*** FLAG_PRN_PAP2 reset [10:39:39]*** FLAG_PRN_PAP1 reset [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:00]accept exits with 6 [10:41:00]New connection [10:41:00]New thread 3066936676 created [10:41:00]Thread 3067080036 joined [10:41:00]Waiting for new connection... [10:41:00] Sock 6.Parse request [10:41:00]Sock 6.Check first char [10:41:00]Sock 6.First char is OK [10:41:00]request: POST /json_proto HTTP/1.0 [10:41:00]Method: POST [10:41:00]URL: /json_proto [10:41:00]Method is POST - this is cgi request [10:41:00]url: /json_proto [10:41:00]query_string will be loaded in cgi processing [10:41:00]execute_cgi json_proto POST (null) [10:41:00]execute_cgi path=json_proto method=POST [10:41:00]POST find Content-Length [10:41:00]Host: 172.17.63.195:8080 [10:41:00]Content-Length: 677 [10:41:00]Content-Type: application/json [10:41:00] [10:41:00]POST finish read [10:41:00]Found Content-Length = 677 [10:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:00]execute_script... [10:41:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:00]POST & json_proto [10:41:00]process_json_proto [10:41:00]json parsed OK: [10:41:00]protocol is kg_v1.0 [10:41:00]action value=close_receipt [10:41:00]process_action close_receipt [10:41:00]cmd_close_receipt [10:41:00]MH_GetDate [10:41:00]Write to MH i2c: F0 00 00 07 32 28 [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: F0 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: F0 09 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: F0 09 00 07 32 00 C0 18 1E 67 68 46 19 67 BC [10:41:00]GetLastDocTimeStamp 1730025514 [10:41:00]current date 1730025664 [10:41:00]FM_GetShiftState [10:41:00]SAM_PROTO_GetShiftState [10:41:00]wFMCommunicate request_size=4 [10:41:00]MH_SAM_APDU [10:41:00]CAPDU: 80 13 01 00 [10:41:00]Write to MH i2c: E2 08 00 08 32 80 13 01 00 00 00 00 00 B7 [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:00]Read from MH i2c: E2 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 0E 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 0E 00 08 32 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B9 [10:41:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:41:00]wFMCommunicate OK [10:41:00]SAM_PROTO_GetShiftState done [10:41:00]FM_GetShiftState done [10:41:00]opened in 1729987312 [10:41:00]opened+sec_in_day 1730073712 [10:41:00]quantity*price = 30038 [10:41:00]sum+1 = 30039 [10:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 149 27.10.2024 10:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201857 ФПД: 50103017742713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104104&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201857&fm=50103017742713&tin=02508201610067®Number=0000000000091777&sum=30000 [10:41:01]StoreToDocumentArchive [10:41:01]shift 544 fd 201857 [10:41:01]save to /storage/0544/doc_00201857 [10:41:01]save last doc name /storage/0544/doc_00201857 to /storage/kkm_last_doc_name [10:41:01]save OK [10:41:01]Clear old archive folders... [10:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:01]tlvbuf is 00137D80 [10:41:01]SAM_PROTO_ClearQueue [10:41:01]wFMCommunicate request_size=4 [10:41:01]MH_SAM_APDU [10:41:01]CAPDU: 80 09 00 00 [10:41:01]Write to MH i2c: E2 08 00 15 32 80 09 00 00 00 00 00 00 B9 [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 03 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 03 00 15 32 00 90 00 BB [10:41:01]RAPDU: 90 00 [10:41:01]wFMCommunicate OK [10:41:01]SAM_PROTO_ClearQueue done [10:41:01]KKMCreateOFDPacket [10:41:01]OFDProtocolAddRootSTLVToBuf [10:41:01]FM_MakeSignedData [10:41:01]FM_MakeSignedData [10:41:01]SAM_PROTO_SignData [10:41:01]wFMCommunicate request_size=4 [10:41:01]MH_SAM_APDU [10:41:01]CAPDU: 80 0D 01 02 [10:41:01]Write to MH i2c: E2 08 00 16 32 80 0D 01 02 00 00 00 00 C1 [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 03 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 03 00 16 32 00 90 00 BC [10:41:01]RAPDU: 90 00 [10:41:01]wFMCommunicate OK [10:41:01]wFMCommunicate request_size=255 [10:41:01]MH_SAM_APDU [10:41:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 95 00 00 00 F4 03 04 00 C0 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 14 03 00 35 04 06 00 2D [10:41:01]Write to MH i2c: E2 02 01 17 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 95 00 00 00 F4 03 04 00 C0 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 14 03 00 35 04 06 00 2D 00 00 22 [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 03 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 03 00 17 32 00 90 00 BD [10:41:01]RAPDU: 90 00 [10:41:01]wFMCommunicate OK [10:41:01]wFMCommunicate request_size=10 [10:41:01]MH_SAM_APDU [10:41:01]CAPDU: 80 0D 02 02 05 91 84 93 21 79 [10:41:01]Write to MH i2c: E2 0D 00 18 32 80 0D 02 02 05 00 91 84 93 21 79 00 00 10 [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 03 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 03 00 18 32 00 90 00 BE [10:41:01]RAPDU: 90 00 [10:41:01]wFMCommunicate OK [10:41:01]wFMCommunicate request_size=4 [10:41:01]MH_SAM_APDU [10:41:01]CAPDU: 80 0D 03 02 [10:41:01]Write to MH i2c: E2 08 00 19 32 80 0D 03 02 00 00 00 00 C6 [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 0B 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 0B 00 19 32 00 03 F4 CD 2D 15 22 BD 5F 90 00 0B [10:41:01]RAPDU: 03 F4 CD 2D 15 22 BD 5F 90 00 [10:41:01]wFMCommunicate OK [10:41:01]SAM_PROTO_SignData done [10:41:01]FM_MakeSignedData done [10:41:01]CreateOFDProtocolMessage [10:41:01]wFMCommunicate request_size=4 [10:41:01]MH_SAM_APDU [10:41:01]CAPDU: 80 11 00 00 [10:41:01]Write to MH i2c: E2 08 00 1A 32 80 11 00 00 00 00 00 00 C6 [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:01]Read from MH i2c: E2 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 17 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: E2 17 00 1A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [10:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:41:01]wFMCommunicate OK [10:41:02]CreateOFDProtocolMessage done [10:41:02]OFDSenderStorePacket 201857 [10:41:02]StoreOFDPacket docnum=201857 [10:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F6 27 07 01 8F 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 95 00 00 00 F4 03 04 00 C0 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 14 03 00 35 04 06 00 2D 91 84 93 21 79 03 F4 CD 2D 15 22 BD 5F [10:41:02]CheckFolder [10:41:02]dirname=/storage/ofd_packets [10:41:02]CheckFolder done [10:41:02]ProducePacketName [10:41:02]name=ofd_packets/00201857 [10:41:02]NVStorageSaveData ofd_packets/00201857 [10:41:02]File name is /storage/ofd_packets/00201857 [10:41:02]Write 301 bytes [10:41:02]NVStorageSaveData done [10:41:02]OFDSenderStorePacket done [10:41:02]KKMCreateOFDPacket done [10:41:02]NVStorageSaveData kkm_last_timestamp [10:41:02]File name is /storage/kkm_last_timestamp [10:41:02]Write 4 bytes [10:41:02]NVStorageSaveData done [10:41:02]ExternCall_PrintAddStr [10:41:02]wPrintStart [10:41:02]Write to MH i2c: 01 00 00 1B 32 4D [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: 01 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: 01 07 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: 01 07 00 1B 32 00 00 00 00 00 FF 0F 62 [10:41:02]RasterBufferAndPrint [10:41:02]line Счет N : (1)449618 [10:41:02]line ИНН: 02508201610067 [10:41:02]line Контрольно-Кассовый Чек [10:41:02]line ПРОДАЖА [10:41:02]line ТРК (МРК, ГНК) : 52 [10:41:02]line Товар: 2710124130 [10:41:02]line Аи-92-К-2 [10:41:02]line 4.490 * 66.90 [10:41:02]line = 300.38 [10:41:02]line НДС 12% НСП 1% [10:41:02]line > о реализуемом товаре [10:41:02]line ОКРУГЛЕНИЕ: -0.38 [10:41:02]line ИТОГО: 300.00 [10:41:02]line Внесено: 300.00 [10:41:02]line СДАЧА: 0.00 [10:41:02]line НСП 1% : 2.66 [10:41:02]line НДС 12% : 31.90 [10:41:02]line Наличными: 300.00 [10:41:02]line Безнал.: 0.00 [10:41:02]line Место: АЗС № 171 "Партнер Нефть" [10:41:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:41:02]line СНО: Общий режим [10:41:02]line Чек 149 27.10.2024 10:41 [10:41:02]line Смена: 544 ФФД: 1.0 [10:41:02]line ЗНМ: 0300000109 [10:41:02]line РНМ: 0000000000091777 [10:41:02]line Версия ККМ: 001 [10:41:02]line ФМ: 0000000000871756 [10:41:02]line ФД: 201857 [10:41:02]line ФПД: 50103017742713 [10:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104104&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201857&fm=50103017742713&tin=02508201610067®Number=0000000000091777&sum=30000 [10:41:02]OFD Sender: Processing packet 201857 [packets to send 112, broken 111] [10:41:02]ProducePacketName [10:41:02]name=ofd_packets/00201857 [10:41:02]OFD Sender: To server: pG, [10:41:02]CommunicateWithHost lk.salyk.kg:30040 [10:41:02]ConnectInit lk.salyk.kg [10:41:02]written 0, free lines is 4095 [10:41:02]Connected sock=8 [10:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F6 27 07 01 8F 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 95 00 00 00 F4 03 04 00 C0 18 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 14 03 00 35 04 06 00 2D 91 84 93 21 79 03 F4 CD 2D 15 22 BD 5F [10:41:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F7 94 47 00 D1 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 14 03 00 F4 03 04 00 66 C4 1D 67 B6 04 01 00 00 50 D8 7A D8 E8 58 AD 44 [10:41:02]CommunicateWithHost err = 0 [10:41:02]CheckOFDResponse [10:41:02]1017 (14) - 77093643461234 [10:41:02]1041 (16) - 0000000000871756 [10:41:02]1040 (4) - 201857 [10:41:02]1012 (4) - 27.10.2024 04:41 [10:41:02]1206 (1) - 0 [10:41:02]OFD Sender: Remove packet 201857 [10:41:02]ProducePacketName [10:41:02]name=ofd_packets/00201857 [10:41:02]NVStorageDeleteData [10:41:02]Write to MH i2c: 01 00 00 46 32 78 [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: 01 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: 01 07 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: 01 07 00 46 32 00 00 00 00 00 87 0C 12 [10:41:02]RasterBufferAndPrint [10:41:02]line [10:41:02]line [10:41:02]line [10:41:02]line [10:41:02]line [10:41:02]written 0, free lines is 3212 [10:41:02]MH_Cut [10:41:02]Write to MH i2c: D1 01 00 4D 32 01 51 [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: D1 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: D1 01 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: D1 01 00 4D 32 00 50 [10:41:02]Write to MH i2c: 01 00 00 4E 32 80 [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:03]OFD Sender: No OFD packet to send [10:41:03]*** Cut start [10:41:03]*** Purtial cut [10:41:03]*** Stage 1: CUTSNS_PIN = 1 [10:41:03]Read from MH i2c: 01 [10:41:03]MH_I2C_Read... [10:41:03]*** Stop cut motor [10:41:03]*** Cut end [10:41:03]Read from MH i2c: 01 07 00 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: 01 07 00 4E 32 00 00 00 00 00 FF 0F 95 [10:41:03]process_action close_receipt done [10:41:03]requested_data is exist [10:41:03]produce_requested_data [10:41:03]requested_item fm.sn is exist - process it [10:41:03]wFMCommunicate request_size=4 [10:41:03]MH_SAM_APDU [10:41:03]CAPDU: 80 11 00 00 [10:41:03]Write to MH i2c: E2 08 00 4F 32 80 11 00 00 00 00 00 00 FB [10:41:03]Write i2c OK [10:41:03]MH_I2C_Read... [10:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:03]Read from MH i2c: E2 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 17 00 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 17 00 4F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 50 [10:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:41:03]wFMCommunicate OK [10:41:03]requested_item fd.num is exist - process it [10:41:03]SAM_PROTO_GetFieldsCounters [10:41:03]wFMCommunicate request_size=4 [10:41:03]MH_SAM_APDU [10:41:03]CAPDU: 80 13 00 00 [10:41:03]Write to MH i2c: E2 08 00 50 32 80 13 00 00 00 00 00 00 FE [10:41:03]Write i2c OK [10:41:03]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 62 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 62 00 50 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 81 14 03 00 0E 04 04 00 20 02 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 A0 [10:41:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 81 14 03 00 0E 04 04 00 20 02 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 [10:41:04]wFMCommunicate OK [10:41:04]SAM_PROTO_GetFieldsCounters done [10:41:04]requested_item shift.num is exist - process it [10:41:04]requested_item shift.opened is exist - process it [10:41:04]req_shift_opened [10:41:04]FM_GetShiftState [10:41:04]SAM_PROTO_GetShiftState [10:41:04]wFMCommunicate request_size=4 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 13 01 00 [10:41:04]Write to MH i2c: E2 08 00 51 32 80 13 01 00 00 00 00 00 00 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 0E 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 0E 00 51 32 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 02 [10:41:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:41:04]wFMCommunicate OK [10:41:04]SAM_PROTO_GetShiftState done [10:41:04]FM_GetShiftState done [10:41:04]req_shift_opened done [10:41:04]requested_item shift.open_date is exist - process it [10:41:04]req_shift_open_date [10:41:04]req_shift_open_date done [10:41:04]produce_requested_data done [10:41:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201857,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:41:04]process_action_free close_receipt [10:41:04]json_value_free [10:41:04]json_value_free done [10:41:04]process_json_proto returns [10:41:04]Send response to host [10:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201857,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:41:04]free response buf [10:41:04]execute_script done [10:41:04]execute_script returns [10:41:04]free content buf [10:41:04]Sock 6.Close socket [10:41:04]Sock 6.Thread stoped [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:25]accept exits with 5 [10:42:25]New connection [10:42:25]New thread 3067080036 created [10:42:25]Thread 3066936676 joined [10:42:25]Waiting for new connection... [10:42:25] Sock 5.Parse request [10:42:25]Sock 5.Check first char [10:42:25]Sock 5.First char is OK [10:42:25]request: POST /json_proto HTTP/1.0 [10:42:25]Method: POST [10:42:25]URL: /json_proto [10:42:25]Method is POST - this is cgi request [10:42:25]url: /json_proto [10:42:25]query_string will be loaded in cgi processing [10:42:25]execute_cgi json_proto POST (null) [10:42:25]execute_cgi path=json_proto method=POST [10:42:25]POST find Content-Length [10:42:25]Host: 172.17.63.195:8080 [10:42:25]Content-Length: 677 [10:42:25]Content-Type: application/json [10:42:25] [10:42:25]POST finish read [10:42:25]Found Content-Length = 677 [10:42:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:42:25]execute_script... [10:42: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)449617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:42:25]POST & json_proto [10:42:25]process_json_proto [10:42:25]json parsed OK: [10:42:25]protocol is kg_v1.0 [10:42:25]action value=close_receipt [10:42:25]process_action close_receipt [10:42:25]cmd_close_receipt [10:42:25]MH_GetDate [10:42:25]Write to MH i2c: F0 00 00 52 32 73 [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 09 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: F0 09 00 52 32 00 16 19 1E 67 68 46 19 67 5E [10:42:25]GetLastDocTimeStamp 1730025664 [10:42:25]current date 1730025750 [10:42:25]FM_GetShiftState [10:42:25]SAM_PROTO_GetShiftState [10:42:25]wFMCommunicate request_size=4 [10:42:25]MH_SAM_APDU [10:42:25]CAPDU: 80 13 01 00 [10:42:25]Write to MH i2c: E2 08 00 53 32 80 13 01 00 00 00 00 00 02 [10:42:25]Write i2c OK [10:42:25]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 0E 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 0E 00 53 32 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 04 [10:42:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:42:26]wFMCommunicate OK [10:42:26]SAM_PROTO_GetShiftState done [10:42:26]FM_GetShiftState done [10:42:26]opened in 1729987312 [10:42:26]opened+sec_in_day 1730073712 [10:42:26]quantity*price = 50041 [10:42:26]sum+1 = 50042 [10:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 150 27.10.2024 10:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201858 ФПД: 28284851020579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104230&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201858&fm=28284851020579&tin=02508201610067®Number=0000000000091777&sum=50000 [10:42:27]StoreToDocumentArchive [10:42:27]shift 544 fd 201858 [10:42:27]save to /storage/0544/doc_00201858 [10:42:27]save last doc name /storage/0544/doc_00201858 to /storage/kkm_last_doc_name [10:42:27]save OK [10:42:27]Clear old archive folders... [10:42:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:27]tlvbuf is 001CF640 [10:42:27]SAM_PROTO_ClearQueue [10:42:27]wFMCommunicate request_size=4 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 09 00 00 [10:42:27]Write to MH i2c: E2 08 00 60 32 80 09 00 00 00 00 00 00 04 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 60 32 00 90 00 06 [10:42:27]RAPDU: 90 00 [10:42:27]wFMCommunicate OK [10:42:27]SAM_PROTO_ClearQueue done [10:42:27]KKMCreateOFDPacket [10:42:27]OFDProtocolAddRootSTLVToBuf [10:42:27]FM_MakeSignedData [10:42:27]FM_MakeSignedData [10:42:27]SAM_PROTO_SignData [10:42:27]wFMCommunicate request_size=4 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 0D 01 02 [10:42:27]Write to MH i2c: E2 08 00 61 32 80 0D 01 02 00 00 00 00 0C [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 61 32 00 90 00 07 [10:42:27]RAPDU: 90 00 [10:42:27]wFMCommunicate OK [10:42:27]wFMCommunicate request_size=255 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 96 00 00 00 F4 03 04 00 16 19 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 14 03 00 35 04 06 00 19 [10:42:27]Write to MH i2c: E2 02 01 62 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 96 00 00 00 F4 03 04 00 16 19 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 14 03 00 35 04 06 00 19 00 00 BE [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 62 32 00 90 00 08 [10:42:27]RAPDU: 90 00 [10:42:27]wFMCommunicate OK [10:42:27]wFMCommunicate request_size=10 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 0D 02 02 05 B9 94 7F 63 23 [10:42:27]Write to MH i2c: E2 0D 00 63 32 80 0D 02 02 05 00 B9 94 7F 63 23 00 00 6B [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 63 32 00 90 00 09 [10:42:27]RAPDU: 90 00 [10:42:27]wFMCommunicate OK [10:42:27]wFMCommunicate request_size=4 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 0D 03 02 [10:42:27]Write to MH i2c: E2 08 00 64 32 80 0D 03 02 00 00 00 00 11 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 0B 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 0B 00 64 32 00 89 D6 17 23 F4 4F 0D 93 90 00 8E [10:42:27]RAPDU: 89 D6 17 23 F4 4F 0D 93 90 00 [10:42:27]wFMCommunicate OK [10:42:27]SAM_PROTO_SignData done [10:42:27]FM_MakeSignedData done [10:42:27]CreateOFDProtocolMessage [10:42:27]wFMCommunicate request_size=4 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 11 00 00 [10:42:27]Write to MH i2c: E2 08 00 65 32 80 11 00 00 00 00 00 00 11 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 17 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 17 00 65 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [10:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:42:27]wFMCommunicate OK [10:42:27]CreateOFDProtocolMessage done [10:42:27]OFDSenderStorePacket 201858 [10:42:27]StoreOFDPacket docnum=201858 [10:42:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC BC 07 01 1A F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 96 00 00 00 F4 03 04 00 16 19 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 14 03 00 35 04 06 00 19 B9 94 7F 63 23 89 D6 17 23 F4 4F 0D 93 [10:42:27]CheckFolder [10:42:27]dirname=/storage/ofd_packets [10:42:27]CheckFolder done [10:42:27]ProducePacketName [10:42:27]name=ofd_packets/00201858 [10:42:27]NVStorageSaveData ofd_packets/00201858 [10:42:27]File name is /storage/ofd_packets/00201858 [10:42:27]Write 301 bytes [10:42:27]NVStorageSaveData done [10:42:27]OFDSenderStorePacket done [10:42:27]KKMCreateOFDPacket done [10:42:27]NVStorageSaveData kkm_last_timestamp [10:42:27]File name is /storage/kkm_last_timestamp [10:42:27]Write 4 bytes [10:42:27]NVStorageSaveData done [10:42:27]ExternCall_PrintAddStr [10:42:27]wPrintStart [10:42:27]Write to MH i2c: 01 00 00 66 32 98 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: 01 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: 01 07 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: 01 07 00 66 32 00 00 00 00 00 FF 0F AD [10:42:27]RasterBufferAndPrint [10:42:27]line Счет N : (1)449617 [10:42:27]line ИНН: 02508201610067 [10:42:27]line Контрольно-Кассовый Чек [10:42:27]line ПРОДАЖА [10:42:27]line ТРК (МРК, ГНК) : 41 [10:42:27]line Товар: 2710124130 [10:42:27]line Аи-92-К-2 [10:42:27]line 7.480 * 66.90 [10:42:27]line = 500.41 [10:42:27]line НДС 12% НСП 1% [10:42:27]line > о реализуемом товаре [10:42:27]line ОКРУГЛЕНИЕ: -0.41 [10:42:27]line ИТОГО: 500.00 [10:42:27]line Внесено: 500.00 [10:42:27]line СДАЧА: 0.00 [10:42:27]line НСП 1% : 4.43 [10:42:27]line НДС 12% : 53.14 [10:42:27]line Наличными: 500.00 [10:42:27]line Безнал.: 0.00 [10:42:27]line Место: АЗС № 171 "Партнер Нефть" [10:42:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:42:27]line СНО: Общий режим [10:42:27]line Чек 150 27.10.2024 10:42 [10:42:27]line Смена: 544 ФФД: 1.0 [10:42:27]line ЗНМ: 0300000109 [10:42:27]line РНМ: 0000000000091777 [10:42:27]line Версия ККМ: 001 [10:42:27]line ФМ: 0000000000871756 [10:42:27]line ФД: 201858 [10:42:27]line ФПД: 28284851020579 [10:42:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104230&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201858&fm=28284851020579&tin=02508201610067®Number=0000000000091777&sum=50000 [10:42:28]OFD Sender: Processing packet 201858 [packets to send 112, broken 111] [10:42:28]ProducePacketName [10:42:28]name=ofd_packets/00201858 [10:42:28]OFD Sender: To server: pG, [10:42:28]CommunicateWithHost lk.salyk.kg:30040 [10:42:28]ConnectInit lk.salyk.kg [10:42:28]written 0, free lines is 4095 [10:42:28]Connected sock=9 [10:42:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC BC 07 01 1A F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 96 00 00 00 F4 03 04 00 16 19 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 14 03 00 35 04 06 00 19 B9 94 7F 63 23 89 D6 17 23 F4 4F 0D 93 [10:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E0 BA 47 00 9C BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 14 03 00 F4 03 04 00 BB C4 1D 67 B6 04 01 00 00 0A FC 57 F5 C4 0B 31 87 [10:42:28]CommunicateWithHost err = 0 [10:42:28]CheckOFDResponse [10:42:28]1017 (14) - 77093643461234 [10:42:28]1041 (16) - 0000000000871756 [10:42:28]1040 (4) - 201858 [10:42:28]1012 (4) - 27.10.2024 04:42 [10:42:28]1206 (1) - 0 [10:42:28]OFD Sender: Remove packet 201858 [10:42:28]ProducePacketName [10:42:28]name=ofd_packets/00201858 [10:42:28]NVStorageDeleteData [10:42:28]Write to MH i2c: 01 00 00 91 32 C3 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 07 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 07 00 91 32 00 00 00 00 00 8C 0C 62 [10:42:28]RasterBufferAndPrint [10:42:28]line [10:42:28]line [10:42:28]line [10:42:28]line [10:42:28]line [10:42:28]written 0, free lines is 3215 [10:42:28]MH_Cut [10:42:28]Write to MH i2c: D1 01 00 98 32 01 9C [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: D1 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: D1 01 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: D1 01 00 98 32 00 9B [10:42:28]Write to MH i2c: 01 00 00 99 32 CB [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]OFD Sender: No OFD packet to send [10:42:29]*** Cut start [10:42:29]*** Purtial cut [10:42:29]*** CUTSNS_PIN = 0 [10:42:29]*** Stage 1: CUTSNS_PIN = 1 [10:42:31]Read from MH i2c: 01 [10:42:31]MH_I2C_Read... [10:42:31]*** Stop cut motor [10:42:31]*** Cut end [10:42:31]Read from MH i2c: 01 07 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: 01 07 00 99 32 00 00 00 00 00 FF 0F E0 [10:42:31]process_action close_receipt done [10:42:31]requested_data is exist [10:42:31]produce_requested_data [10:42:31]requested_item fm.sn is exist - process it [10:42:31]wFMCommunicate request_size=4 [10:42:31]MH_SAM_APDU [10:42:31]CAPDU: 80 11 00 00 [10:42:31]Write to MH i2c: E2 08 00 9A 32 80 11 00 00 00 00 00 00 46 [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:31]Read from MH i2c: E2 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 17 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 17 00 9A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9B [10:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:42:31]wFMCommunicate OK [10:42:31]requested_item fd.num is exist - process it [10:42:31]SAM_PROTO_GetFieldsCounters [10:42:31]wFMCommunicate request_size=4 [10:42:31]MH_SAM_APDU [10:42:31]CAPDU: 80 13 00 00 [10:42:31]Write to MH i2c: E2 08 00 9B 32 80 13 00 00 00 00 00 00 49 [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:31]Read from MH i2c: E2 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 62 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 62 00 9B 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 82 14 03 00 0E 04 04 00 20 02 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 EF [10:42:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 82 14 03 00 0E 04 04 00 20 02 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 [10:42:31]wFMCommunicate OK [10:42:31]SAM_PROTO_GetFieldsCounters done [10:42:31]requested_item shift.num is exist - process it [10:42:31]requested_item shift.opened is exist - process it [10:42:31]req_shift_opened [10:42:31]FM_GetShiftState [10:42:31]SAM_PROTO_GetShiftState [10:42:31]wFMCommunicate request_size=4 [10:42:31]MH_SAM_APDU [10:42:31]CAPDU: 80 13 01 00 [10:42:31]Write to MH i2c: E2 08 00 9C 32 80 13 01 00 00 00 00 00 4B [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:31]Read from MH i2c: E2 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 0E 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 0E 00 9C 32 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4D [10:42:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:42:31]wFMCommunicate OK [10:42:31]SAM_PROTO_GetShiftState done [10:42:31]FM_GetShiftState done [10:42:31]req_shift_opened done [10:42:31]requested_item shift.open_date is exist - process it [10:42:31]req_shift_open_date [10:42:31]req_shift_open_date done [10:42:31]produce_requested_data done [10:42:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201858,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:42:31]process_action_free close_receipt [10:42:31]json_value_free [10:42:31]json_value_free done [10:42:31]process_json_proto returns [10:42:31]Send response to host [10:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201858,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:42:31]free response buf [10:42:31]execute_script done [10:42:31]execute_script returns [10:42:31]free content buf [10:42:31]Sock 5.Close socket [10:42:31]Sock 5.Thread stoped [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:40]*** FLAG_PRN_KEY set [10:42:40]*** FLAG_PRN_KEY reset [10:42:40]*** FLAG_PRN_KEY set [10:42:40]*** FLAG_PRN_KEY reset [10:42:40]*** FLAG_PRN_KEY set [10:42:41]*** FLAG_PRN_KEY reset [10:42:41]*** FLAG_PRN_KEY set [10:42:42]*** FLAG_PRN_KEY reset [10:42:42]*** FLAG_PRN_KEY set [10:42:42]*** FLAG_PRN_KEY reset [10:42:43]*** FLAG_PRN_PAP1 set [10:42:43]*** FLAG_PRN_PAP2 set [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903 init start (LINUX_LIGHT) [00:00:11]*** Serial: 3139303353513838 54000000005725CF (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 11+0=11 [00:00:11]*** BPK Status Register BPK_RDY = 0x2 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30515 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 0B 00 00 00 00 00 00 00 0A [00:00:11]Current date/time: 01.01.1970 00:00 [00:00:11]FM_Init [00:00:11]wFMConnect [00:00:11]MH_SAM_On [00:00:11]Write to MH i2c: E0 00 00 08 00 E7 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_init finished! [00:00:11]*** atr: [00:00:11]*** 0F 3B D5 18 FF 81 91 FE [00:00:11]*** 1F C3 80 73 C8 21 10 0A [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]Read from MH i2c: E0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E0 10 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:00:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:11]wFMCommunicate request_size=10 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:11]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 11 00 00 [00:00:11]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [00:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:00:11]wFMCommunicate OK [00:00:11]Detected FM SN is 0000000000871756 [00:00:11]Stored FM SN is 0000000000871756 [00:00:11]wFMCommunicate request_size=9 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 16 00 00 04 7E FB 00 00 [00:00:11]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 7E FB 00 00 00 00 0B [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]FM PIN OK [00:00:11]wFMCommunicate request_size=8 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 14 04 00 03 02 00 01 [00:00:11]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=13 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:00:11]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 11 00 00 [00:00:11]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [00:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:00:11]wFMCommunicate OK [00:00:11]DocumentArchiveInit [00:00:11]Start Httpd... [00:00:11]Httpd thread 3067358564 created [00:00:11]Write to MH i2c: 01 00 00 0F 00 0F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:00:11]MH Int Process started [00:00:11]Allocated Socket 8 [00:00:11]Bind OK [00:00:11]Listen OK [00:00:11]httpd running on port 8080 [00:00:11]Waiting for new connection... [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:18]accept exits with 9 [00:00:18]New connection [00:00:18]New thread 3067071844 created [00:00:18]Waiting for new connection... [00:00:18] Sock 9.Parse request [00:00:18]Sock 9.Check first char [00:00:18]Sock 9.First char is OK [00:00:18]request: POST /json_proto HTTP/1.0 [00:00:18]Method: POST [00:00:18]URL: /json_proto [00:00:18]Method is POST - this is cgi request [00:00:18]url: /json_proto [00:00:18]query_string will be loaded in cgi processing [00:00:18]execute_cgi json_proto POST (null) [00:00:18]execute_cgi path=json_proto method=POST [00:00:18]POST find Content-Length [00:00:18]Host: 172.17.63.195:8080 [00:00:18]Content-Length: 215 [00:00:18]Content-Type: application/json [00:00:18] [00:00:18]POST finish read [00:00:18]Found Content-Length = 215 [00:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:18]execute_script... [00:00:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:18]POST & json_proto [00:00:18]process_json_proto [00:00:18]json parsed OK: [00:00:18]protocol is kg_v1.0 [00:00:18]action value=get_value [00:00:18]process_action get_value [00:00:18]cmd_get_value [00:00:18]process_action get_value done [00:00:18]requested_data is exist [00:00:18]produce_requested_data [00:00:18]requested_item kkm.sn is exist - process it [00:00:18]requested_item kkm.ver is exist - process it [00:00:18]requested_item fm.sn is exist - process it [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 11 00 00 [00:00:18]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 17 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [00:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:00:18]wFMCommunicate OK [00:00:18]requested_item fd.num is exist - process it [00:00:18]SAM_PROTO_GetFieldsCounters [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 13 00 00 [00:00:18]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 62 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 82 14 03 00 0E 04 04 00 20 02 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 33 [00:00:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 82 14 03 00 0E 04 04 00 20 02 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 [00:00:18]wFMCommunicate OK [00:00:18]SAM_PROTO_GetFieldsCounters done [00:00:18]requested_item shift.num is exist - process it [00:00:18]requested_item shift.opened is exist - process it [00:00:18]req_shift_opened [00:00:18]FM_GetShiftState [00:00:18]SAM_PROTO_GetShiftState [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 13 01 00 [00:00:18]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 0E 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 91 [00:00:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:00:19]wFMCommunicate OK [00:00:19]SAM_PROTO_GetShiftState done [00:00:19]FM_GetShiftState done [00:00:19]req_shift_opened done [00:00:19]requested_item shift.open_date is exist - process it [00:00:19]req_shift_open_date [00:00:19]req_shift_open_date done [00:00:19]produce_requested_data done [00:00:19]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201858,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [00:00:19]process_action_free get_value [00:00:19]json_value_free [00:00:19]json_value_free done [00:00:19]process_json_proto returns [00:00:19]Send response to host [00:00:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201858,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [00:00:19]free response buf [00:00:19]execute_script done [00:00:19]execute_script returns [00:00:19]free content buf [00:00:19]Sock 9.Close socket [00:00:19]Sock 9.Thread stoped [00:00:19]accept exits with 7 [00:00:19]New connection [00:00:19]New thread 3066928484 created [00:00:19]Thread 3067071844 joined [00:00:19]Waiting for new connection... [00:00:19] Sock 7.Parse request [00:00:19]Sock 7.Check first char [00:00:19]Sock 7.First char is OK [00:00:19]request: POST /json_proto HTTP/1.0 [00:00:19]Method: POST [00:00:19]URL: /json_proto [00:00:19]Method is POST - this is cgi request [00:00:19]url: /json_proto [00:00:19]query_string will be loaded in cgi processing [00:00:19]execute_cgi json_proto POST (null) [00:00:19]execute_cgi path=json_proto method=POST [00:00:19]POST find Content-Length [00:00:19]Host: 172.17.63.195:8080 [00:00:19]Content-Length: 331 [00:00:19]Content-Type: application/json [00:00:19] [00:00:19]POST finish read [00:00:19]Found Content-Length = 331 [00:00:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:19]execute_script... [00:00:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:19]POST & json_proto [00:00:19]process_json_proto [00:00:19]json parsed OK: [00:00:19]protocol is kg_v1.0 [00:00:19]action value=get_value [00:00:19]process_action get_value [00:00:19]cmd_get_value [00:00:19]process_action get_value done [00:00:19]requested_data is exist [00:00:19]produce_requested_data [00:00:19]requested_item fm.sale.total is exist - process it [00:00:19]SAM_PROTO_GetFMData [00:00:19]wFMCommunicate request_size=4 [00:00:19]MH_SAM_APDU [00:00:19]CAPDU: 80 13 03 00 [00:00:19]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 42 10 03 00 69 04 A3 00 6F 04 04 00 1D 10 03 00 B1 04 05 00 1F 20 A5 AD 03 70 04 05 00 44 B9 97 4E 03 72 04 04 00 DB 66 0D 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 AC 08 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 E1 55 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 43 [00:00:19]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 10 03 00 69 04 A3 00 6F 04 04 00 1D 10 03 00 B1 04 05 00 1F 20 A5 AD 03 70 04 05 00 44 B9 97 4E 03 72 04 04 00 DB 66 0D 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 AC 08 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 99 E1 55 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [00:00:19]wFMCommunicate OK [00:00:19]wFMCommunicate request_size=4 [00:00:19]MH_SAM_APDU [00:00:19]CAPDU: 80 17 00 00 [00:00:19]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 9B [00:00:20]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:00:20]wFMCommunicate OK [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 17 00 00 [00:00:20]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [00:00:20]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:00:20]wFMCommunicate OK [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 17 00 00 [00:00:20]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [00:00:20]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:20]wFMCommunicate OK [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 17 00 00 [00:00:20]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:00:20]Read from MH i2c: E2 E1 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [00:00:20]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:20]wFMCommunicate OK [00:00:20]SAM_PROTO_GetFMData done [00:00:20]requested_item fm.sale_refund.total is exist - process it [00:00:20]requested_item fm.buy.total is exist - process it [00:00:20]requested_item shift.sale.total is exist - process it [00:00:20]SAM_PROTO_GetShiftData [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 13 02 00 [00:00:20]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 96 00 00 00 69 04 9C 00 6F 04 04 00 96 00 00 00 B1 04 03 00 35 53 A7 70 04 03 00 08 08 9A 72 04 03 00 2D 4B 0D 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 96 C6 11 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 30 7B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 09 [00:00:21]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 96 00 00 00 69 04 9C 00 6F 04 04 00 96 00 00 00 B1 04 03 00 35 53 A7 70 04 03 00 08 08 9A 72 04 03 00 2D 4B 0D 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 96 C6 11 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 30 7B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 17 00 00 [00:00:21]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [00:00:21]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 17 00 00 [00:00:21]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]OFD Sender: No OFD packet to send [00:00:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [00:00:21]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 17 00 00 [00:00:21]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 FD 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [00:00:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [00:00:22]wFMCommunicate OK [00:00:22]wFMCommunicate request_size=4 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 17 00 00 [00:00:22]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 CC 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [00:00:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:22]wFMCommunicate OK [00:00:22]SAM_PROTO_GetShiftData done [00:00:22]requested_item shift.sale.total_cash is exist - process it [00:00:22]requested_item shift.sale_refund.total is exist - process it [00:00:22]requested_item shift.sale_refund.total_cash is exist - process it [00:00:22]requested_item shift.buy.total is exist - process it [00:00:22]requested_item shift.buy.total_cash is exist - process it [00:00:22]produce_requested_data done [00:00:22]produce_requested_data return {"fm.sale.total":157981819.19,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":109658.13,"shift.sale.total_cash":100946.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:22]process_action_free get_value [00:00:22]json_value_free [00:00:22]json_value_free done [00:00:22]process_json_proto returns [00:00:22]Send response to host [00:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157981819.19,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":109658.13,"shift.sale.total_cash":100946.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:22]free response buf [00:00:22]execute_script done [00:00:22]execute_script returns [00:00:22]free content buf [00:00:22]Sock 7.Close socket [00:00:22]Sock 7.Thread stoped [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]accept exits with 9 [00:02:11]New connection [00:02:11]New thread 3067071844 created [00:02:11] Sock 9.Parse request [00:02:11]Thread 3066928484 joined [00:02:11]Sock 9.Check first char [00:02:11]Waiting for new connection... [00:02:11]Sock 9.First char is OK [00:02:11]request: POST /json_proto HTTP/1.0 [00:02:11]Method: POST [00:02:11]URL: /json_proto [00:02:11]Method is POST - this is cgi request [00:02:11]url: /json_proto [00:02:11]query_string will be loaded in cgi processing [00:02:11]execute_cgi json_proto POST (null) [00:02:11]execute_cgi path=json_proto method=POST [00:02:11]POST find Content-Length [00:02:11]Host: 172.17.63.195:8080 [00:02:11]Content-Length: 677 [00:02:11]Content-Type: application/json [00:02:11] [00:02:11]POST finish read [00:02:11]Found Content-Length = 677 [00:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [00:02:11]execute_script... [00:02: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)449619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [00:02:11]POST & json_proto [00:02:11]process_json_proto [00:02:11]json parsed OK: [00:02:11]protocol is kg_v1.0 [00:02:11]action value=close_receipt [00:02:11]process_action close_receipt [00:02:11]cmd_close_receipt [00:02:11]MH_GetDate [00:02:11]Write to MH i2c: F0 00 00 1D 00 0C [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: F0 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: F0 09 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: F0 09 00 1D 00 00 84 00 00 00 00 00 00 00 99 [00:02:11]GetLastDocTimeStamp 97 [00:02:11]current date 132 [00:02:11]FM_GetShiftState [00:02:11]SAM_PROTO_GetShiftState [00:02:11]wFMCommunicate request_size=4 [00:02:11]MH_SAM_APDU [00:02:11]CAPDU: 80 13 01 00 [00:02:11]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 0E 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [00:02:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:02:11]wFMCommunicate OK [00:02:11]SAM_PROTO_GetShiftState done [00:02:11]FM_GetShiftState done [00:02:11]curdatesum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 151 27.10.2024 10:52 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201859 ФПД: 104964313713308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105220&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201859&fm=104964313713308&tin=02508201610067®Number=0000000000091777&sum=50000 [10:52:22]StoreToDocumentArchive [10:52:22]shift 544 fd 201859 [10:52:22]save to /storage/0544/doc_00201859 [10:52:22]save last doc name /storage/0544/doc_00201859 to /storage/kkm_last_doc_name [10:52:22]save OK [10:52:22]Clear old archive folders... [10:52:22]Remove dir /storage/0522 [10:52:22]opendir ok [10:52:22]file . [10:52:22]file .. [10:52:22]file doc_1730026337 [10:52:22]remove file /storage/0522/doc_1730026337 [10:52:22]remove dir /storage/0522 [10:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:22]tlvbuf is 00462220 [10:52:22]SAM_PROTO_ClearQueue [10:52:22]wFMCommunicate request_size=4 [10:52:22]MH_SAM_APDU [10:52:22]CAPDU: 80 09 00 00 [10:52:22]Write to MH i2c: E2 08 00 B3 00 80 09 00 00 00 00 00 00 25 [10:52:22]Write i2c OK [10:52:22]MH_I2C_Read... [10:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:22]Read from MH i2c: E2 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 03 00 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [10:52:22]RAPDU: 90 00 [10:52:22]wFMCommunicate OK [10:52:22]SAM_PROTO_ClearQueue done [10:52:22]KKMCreateOFDPacket [10:52:22]OFDProtocolAddRootSTLVToBuf [10:52:22]FM_MakeSignedData [10:52:22]FM_MakeSignedData [10:52:22]SAM_PROTO_SignData [10:52:22]wFMCommunicate request_size=4 [10:52:22]MH_SAM_APDU [10:52:22]CAPDU: 80 0D 01 02 [10:52:22]Write to MH i2c: E2 08 00 B4 00 80 0D 01 02 00 00 00 00 2D [10:52:22]Write i2c OK [10:52:22]MH_I2C_Read... [10:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:22]Read from MH i2c: E2 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 03 00 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [10:52:22]RAPDU: 90 00 [10:52:22]wFMCommunicate OK [10:52:22]wFMCommunicate request_size=255 [10:52:22]MH_SAM_APDU [10:52:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 97 00 00 00 F4 03 04 00 64 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 14 03 00 35 04 06 00 5F [10:52:22]Write to MH i2c: E2 02 01 B5 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 97 00 00 00 F4 03 04 00 64 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 14 03 00 35 04 06 00 5F 00 00 77 [10:52:22]Write i2c OK [10:52:22]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 03 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [10:52:23]RAPDU: 90 00 [10:52:23]wFMCommunicate OK [10:52:23]wFMCommunicate request_size=10 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 0D 02 02 05 76 E8 A2 0A 9C [10:52:23]Write to MH i2c: E2 0D 00 B6 00 80 0D 02 02 05 00 76 E8 A2 0A 9C 00 00 E0 [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 03 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [10:52:23]RAPDU: 90 00 [10:52:23]wFMCommunicate OK [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 0D 03 02 [10:52:23]Write to MH i2c: E2 08 00 B7 00 80 0D 03 02 00 00 00 00 32 [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 0B 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 0B 00 B7 00 00 2D 51 BD 13 74 53 88 76 90 00 46 [10:52:23]RAPDU: 2D 51 BD 13 74 53 88 76 90 00 [10:52:23]wFMCommunicate OK [10:52:23]SAM_PROTO_SignData done [10:52:23]FM_MakeSignedData done [10:52:23]CreateOFDProtocolMessage [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 11 00 00 [10:52:23]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 17 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 87 [10:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:52:23]wFMCommunicate OK [10:52:23]CreateOFDProtocolMessage done [10:52:23]OFDSenderStorePacket 201859 [10:52:23]StoreOFDPacket docnum=201859 [10:52:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 71 BE 07 01 BB 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 97 00 00 00 F4 03 04 00 64 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 14 03 00 35 04 06 00 5F 76 E8 A2 0A 9C 2D 51 BD 13 74 53 88 76 [10:52:23]CheckFolder [10:52:23]dirname=/storage/ofd_packets [10:52:23]CheckFolder done [10:52:23]ProducePacketName [10:52:23]name=ofd_packets/00201859 [10:52:23]NVStorageSaveData ofd_packets/00201859 [10:52:23]File name is /storage/ofd_packets/00201859 [10:52:23]Write 301 bytes [10:52:23]NVStorageSaveData done [10:52:23]OFDSenderStorePacket done [10:52:23]KKMCreateOFDPacket done [10:52:23]NVStorageSaveData kkm_last_timestamp [10:52:23]File name is /storage/kkm_last_timestamp [10:52:23]OFD Sender: Processing packet 201859 [packets to send 112, broken 111] [10:52:23]ProducePacketName [10:52:23]name=ofd_packets/00201859 [10:52:23]OFD Sender: To server: pG, [10:52:23]CommunicateWithHost lk.salyk.kg:30040 [10:52:23]ConnectInit lk.salyk.kg [10:52:23]Write 4 bytes [10:52:23]NVStorageSaveData done [10:52:23]ExternCall_PrintAddStr [10:52:23]wPrintStart [10:52:23]Write to MH i2c: 01 00 00 B9 00 B9 [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: 01 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: 01 07 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [10:52:23]RasterBufferAndPrint [10:52:23]line Счет N : (1)449619 [10:52:23]line ИНН: 02508201610067 [10:52:23]line Контрольно-Кассовый Чек [10:52:23]line ПРОДАЖА [10:52:23]line ТРК (МРК, ГНК) : 52 [10:52:23]line Товар: 2710124130 [10:52:23]line Аи-92-К-2 [10:52:23]line 7.480 * 66.90 [10:52:23]line = 500.41 [10:52:23]line НДС 12% НСП 1% [10:52:23]line > о реализуемом товаре [10:52:23]line ОКРУГЛЕНИЕ: -0.41 [10:52:23]line ИТОГО: 500.00 [10:52:23]line Внесено: 500.00 [10:52:23]line СДАЧА: 0.00 [10:52:23]line НСП 1% : 4.43 [10:52:23]line НДС 12% : 53.14 [10:52:23]line Наличными: 500.00 [10:52:23]line Безнал.: 0.00 [10:52:23]line Место: АЗС № 171 "Партнер Нефть" [10:52:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:52:23]line СНО: Общий режим [10:52:23]line Чек 151 27.10.2024 10:52 [10:52:23]line Смена: 544 ФФД: 1.0 [10:52:23]line ЗНМ: 0300000109 [10:52:23]line РНМ: 0000000000091777 [10:52:23]line Версия ККМ: 001 [10:52:23]line ФМ: 0000000000871756 [10:52:23]line ФД: 201859 [10:52:23]line ФПД: 104964313713308 [10:52:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105220&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201859&fm=104964313713308&tin=02508201610067®Number=0000000000091777&sum=50000 [10:52:23]written 0, free lines is 4095 [10:52:23]Connected sock=11 [10:52:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 71 BE 07 01 BB 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 97 00 00 00 F4 03 04 00 64 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 14 03 00 35 04 06 00 5F 76 E8 A2 0A 9C 2D 51 BD 13 74 53 88 76 [10:52:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CF 3A 47 00 66 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 14 03 00 F4 03 04 00 20 C7 1D 67 B6 04 01 00 00 82 11 2E 58 CD A7 FF 55 [10:52:24]CommunicateWithHost err = 0 [10:52:24]CheckOFDResponse [10:52:24]1017 (14) - 77093643461234 [10:52:24]1041 (16) - 0000000000871756 [10:52:24]1040 (4) - 201859 [10:52:24]1012 (4) - 27.10.2024 04:52 [10:52:24]1206 (1) - 0 [10:52:24]OFD Sender: Remove packet 201859 [10:52:24]ProducePacketName [10:52:24]name=ofd_packets/00201859 [10:52:24]NVStorageDeleteData [10:52:24]Write to MH i2c: 01 00 00 E4 00 E4 [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: 01 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: 01 07 00 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 48 0D 40 [10:52:24]RasterBufferAndPrint [10:52:24]line [10:52:24]line [10:52:24]line [10:52:24]line [10:52:24]line [10:52:24]written 0, free lines is 3430 [10:52:24]MH_Cut [10:52:24]Write to MH i2c: D1 01 00 EB 00 01 BD [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: D1 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: D1 01 00 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: D1 01 00 EB 00 00 BC [10:52:24]Write to MH i2c: 01 00 00 EC 00 EC [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]OFD Sender: No OFD packet to send [10:52:24]*** Cut start [10:52:24]*** Purtial cut [10:52:24]*** CUTSNS_PIN = 0 [10:52:25]*** Stage 1: CUTSNS_PIN = 1 [10:52:26]Read from MH i2c: 01 [10:52:26]MH_I2C_Read... [10:52:26]*** Stop cut motor [10:52:26]*** Cut end [10:52:26]Read from MH i2c: 01 07 00 [10:52:26]MH_I2C_Read... [10:52:26]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 FF 0F 01 [10:52:26]process_action close_receipt done [10:52:26]requested_data is exist [10:52:26]produce_requested_data [10:52:26]requested_item fm.sn is exist - process it [10:52:26]wFMCommunicate request_size=4 [10:52:26]MH_SAM_APDU [10:52:26]CAPDU: 80 11 00 00 [10:52:26]Write to MH i2c: E2 08 00 ED 00 80 11 00 00 00 00 00 00 67 [10:52:26]Write i2c OK [10:52:26]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 17 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 17 00 ED 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BC [10:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:52:27]wFMCommunicate OK [10:52:27]requested_item fd.num is exist - process it [10:52:27]SAM_PROTO_GetFieldsCounters [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 13 00 00 [10:52:27]Write to MH i2c: E2 08 00 EE 00 80 13 00 00 00 00 00 00 6A [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 62 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 62 00 EE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 83 14 03 00 0E 04 04 00 20 02 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 14 [10:52:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 83 14 03 00 0E 04 04 00 20 02 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 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_GetFieldsCounters done [10:52:27]requested_item shift.num is exist - process it [10:52:27]requested_item shift.opened is exist - process it [10:52:27]req_shift_opened [10:52:27]FM_GetShiftState [10:52:27]SAM_PROTO_GetShiftState [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 13 01 00 [10:52:27]Write to MH i2c: E2 08 00 EF 00 80 13 01 00 00 00 00 00 6C [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 EF 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6E [10:52:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_GetShiftState done [10:52:27]FM_GetShiftState done [10:52:27]req_shift_opened done [10:52:27]requested_item shift.open_date is exist - process it [10:52:27]req_shift_open_date [10:52:27]req_shift_open_date done [10:52:27]produce_requested_data done [10:52:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201859,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:52:27]process_action_free close_receipt [10:52:27]json_value_free [10:52:27]json_value_free done [10:52:27]process_json_proto returns [10:52:27]Send response to host [10:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201859,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:52:27]free response buf [10:52:27]execute_script done [10:52:27]execute_script returns [10:52:27]free content buf [10:52:27]Sock 7.Close socket [10:52:27]Sock 7.Thread stoped [10:52:27]accept exits with 9 [10:52:27]New connection [10:52:27]New thread 3066948964 created [10:52:27]Thread 3066805604 joined [10:52:27]Waiting for new connection... [10:52:27] Sock 9.Parse request [10:52:27]Sock 9.Check first char [10:52:27]Sock 9.First char is OK [10:52:27]request: POST /json_proto HTTP/1.0 [10:52:27]Method: POST [10:52:27]URL: /json_proto [10:52:27]Method is POST - this is cgi request [10:52:27]url: /json_proto [10:52:27]query_string will be loaded in cgi processing [10:52:27]execute_cgi json_proto POST (null) [10:52:27]execute_cgi path=json_proto method=POST [10:52:27]POST find Content-Length [10:52:27]Host: 172.17.63.195:8080 [10:52:27]Content-Length: 677 [10:52:27]Content-Type: application/json [10:52:27] [10:52:27]POST finish read [10:52:27]Found Content-Length = 677 [10:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:52:27]execute_script... [10:52:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:52:27]POST & json_proto [10:52:27]process_json_proto [10:52:27]json parsed OK: [10:52:27]protocol is kg_v1.0 [10:52:27]action value=close_receipt [10:52:27]process_action close_receipt [10:52:27]cmd_close_receipt [10:52:27]MH_GetDate [10:52:27]Write to MH i2c: F0 00 00 F0 00 DF [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 09 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: F0 09 00 F0 00 00 6B 1B 1E 67 47 1B 1E 67 DA [10:52:27]GetLastDocTimeStamp 1730026340 [10:52:27]current date 1730026347 [10:52:27]FM_GetShiftState [10:52:27]SAM_PROTO_GetShiftState [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 13 01 00 [10:52:27]Write to MH i2c: E2 08 00 F1 00 80 13 01 00 00 00 00 00 6E [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0E 00 F1 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 70 [10:52:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_GetShiftState done [10:52:27]FM_GetShiftState done [10:52:27]opened in 1729987312 [10:52:27]opened+sec_in_day 1730073712 [10:52:27]quantity*price = 50041 [10:52:27]sum+1 = 50042 [10:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 152 27.10.2024 10:52 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201860 ФПД: 40864665005324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105227&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201860&fm=40864665005324&tin=02508201610067®Number=0000000000091777&sum=50000 [10:52:29]StoreToDocumentArchive [10:52:29]shift 544 fd 201860 [10:52:29]save to /storage/0544/doc_00201860 [10:52:29]save last doc name /storage/0544/doc_00201860 to /storage/kkm_last_doc_name [10:52:29]save OK [10:52:29]Clear old archive folders... [10:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:29]tlvbuf is 0047CF70 [10:52:29]SAM_PROTO_ClearQueue [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 09 00 00 [10:52:29]Write to MH i2c: E2 08 00 FE 00 80 09 00 00 00 00 00 00 70 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [10:52:29]RAPDU: 90 00 [10:52:29]wFMCommunicate OK [10:52:29]SAM_PROTO_ClearQueue done [10:52:29]KKMCreateOFDPacket [10:52:29]OFDProtocolAddRootSTLVToBuf [10:52:29]FM_MakeSignedData [10:52:29]FM_MakeSignedData [10:52:29]SAM_PROTO_SignData [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 0D 01 02 [10:52:29]Write to MH i2c: E2 08 00 FF 00 80 0D 01 02 00 00 00 00 78 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [10:52:29]RAPDU: 90 00 [10:52:29]wFMCommunicate OK [10:52:29]wFMCommunicate request_size=255 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 98 00 00 00 F4 03 04 00 6B 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 14 03 00 35 04 06 00 25 [10:52:30]Write to MH i2c: E2 02 01 00 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 98 00 00 00 F4 03 04 00 6B 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 14 03 00 35 04 06 00 25 00 00 92 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]wFMCommunicate request_size=10 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 02 02 05 2A 8B D7 6D 0C [10:52:30]Write to MH i2c: E2 0D 00 01 01 80 0D 02 02 05 00 2A 8B D7 6D 0C 00 00 8B [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 03 02 [10:52:30]Write to MH i2c: E2 08 00 02 01 80 0D 03 02 00 00 00 00 7E [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 0B 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 0B 00 02 01 00 4B DD AD 63 E3 9F 8C 45 90 00 0A [10:52:30]RAPDU: 4B DD AD 63 E3 9F 8C 45 90 00 [10:52:30]wFMCommunicate OK [10:52:30]SAM_PROTO_SignData done [10:52:30]FM_MakeSignedData done [10:52:30]CreateOFDProtocolMessage [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 11 00 00 [10:52:30]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 17 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [10:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:52:30]wFMCommunicate OK [10:52:30]CreateOFDProtocolMessage done [10:52:30]OFDSenderStorePacket 201860 [10:52:30]StoreOFDPacket docnum=201860 [10:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E1 A5 07 01 37 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 98 00 00 00 F4 03 04 00 6B 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 14 03 00 35 04 06 00 25 2A 8B D7 6D 0C 4B DD AD 63 E3 9F 8C 45 [10:52:30]CheckFolder [10:52:30]dirname=/storage/ofd_packets [10:52:30]CheckFolder done [10:52:30]ProducePacketName [10:52:30]name=ofd_packets/00201860 [10:52:30]NVStorageSaveData ofd_packets/00201860 [10:52:30]File name is /storage/ofd_packets/00201860 [10:52:30]Write 301 bytes [10:52:30]NVStorageSaveData done [10:52:30]OFDSenderStorePacket done [10:52:30]KKMCreateOFDPacket done [10:52:30]NVStorageSaveData kkm_last_timestamp [10:52:30]File name is /storage/kkm_last_timestamp [10:52:30]Write 4 bytes [10:52:30]NVStorageSaveData done [10:52:30]ExternCall_PrintAddStr [10:52:30]wPrintStart [10:52:30]Write to MH i2c: 01 00 00 04 01 05 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [10:52:30]RasterBufferAndPrint [10:52:30]line Счет N : (1)449620 [10:52:30]line ИНН: 02508201610067 [10:52:30]line Контрольно-Кассовый Чек [10:52:30]line ПРОДАЖА [10:52:30]line ТРК (МРК, ГНК) : 41 [10:52:30]line Товар: 2710124130 [10:52:30]line Аи-92-К-2 [10:52:30]line 7.480 * 66.90 [10:52:30]line = 500.41 [10:52:30]line НДС 12% НСП 1% [10:52:30]line > о реализуемом товаре [10:52:30]line ОКРУГЛЕНИЕ: -0.41 [10:52:30]line ИТОГО: 500.00 [10:52:30]line Внесено: 500.00 [10:52:30]line СДАЧА: 0.00 [10:52:30]line НСП 1% : 4.43 [10:52:30]line НДС 12% : 53.14 [10:52:30]line Наличными: 500.00 [10:52:30]line Безнал.: 0.00 [10:52:30]line Место: АЗС № 171 "Партнер Нефть" [10:52:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:52:30]line СНО: Общий режим [10:52:30]line Чек 152 27.10.2024 10:52 [10:52:30]line Смена: 544 ФФД: 1.0 [10:52:30]line ЗНМ: 0300000109 [10:52:30]line РНМ: 0000000000091777 [10:52:30]line Версия ККМ: 001 [10:52:30]line ФМ: 0000000000871756 [10:52:30]line ФД: 201860 [10:52:30]line ФПД: 40864665005324 [10:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105227&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201860&fm=40864665005324&tin=02508201610067®Number=0000000000091777&sum=50000 [10:52:30]written 0, free lines is 4095 [10:52:30]OFD Sender: Processing packet 201860 [packets to send 112, broken 111] [10:52:30]ProducePacketName [10:52:30]name=ofd_packets/00201860 [10:52:30]OFD Sender: To server: pG, [10:52:30]CommunicateWithHost lk.salyk.kg:30040 [10:52:30]ConnectInit lk.salyk.kg [10:52:30]Connected sock=10 [10:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E1 A5 07 01 37 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 98 00 00 00 F4 03 04 00 6B 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 14 03 00 35 04 06 00 25 2A 8B D7 6D 0C 4B DD AD 63 E3 9F 8C 45 [10:52:31]Write to MH i2c: 01 00 00 2F 01 30 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 A8 0C EB [10:52:31]RasterBufferAndPrint [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]written 0, free lines is 3281 [10:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DF EA 47 00 26 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 14 03 00 F4 03 04 00 27 C7 1D 67 B6 04 01 00 00 3B 05 3A 4C 8D BE 6C 72 [10:52:31]CommunicateWithHost err = 0 [10:52:31]CheckOFDResponse [10:52:31]1017 (14) - 77093643461234 [10:52:31]1041 (16) - 0000000000871756 [10:52:31]1040 (4) - 201860 [10:52:31]1012 (4) - 27.10.2024 04:52 [10:52:31]1206 (1) - 0 [10:52:31]OFD Sender: Remove packet 201860 [10:52:31]ProducePacketName [10:52:31]name=ofd_packets/00201860 [10:52:31]NVStorageDeleteData [10:52:31]MH_Cut [10:52:31]Write to MH i2c: D1 01 00 36 01 01 09 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 01 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 01 00 36 01 00 08 [10:52:31]Write to MH i2c: 01 00 00 37 01 38 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:32]OFD Sender: No OFD packet to send [10:52:32]*** Cut start [10:52:32]*** Purtial cut [10:52:32]*** Stage 1: CUTSNS_PIN = 1 [10:52:32]Read from MH i2c: 01 [10:52:32]MH_I2C_Read... [10:52:32]*** Stop cut motor [10:52:32]*** Cut end [10:52:32]Read from MH i2c: 01 07 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [10:52:32]process_action close_receipt done [10:52:32]requested_data is exist [10:52:32]produce_requested_data [10:52:32]requested_item fm.sn is exist - process it [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 11 00 00 [10:52:32]Write to MH i2c: E2 08 00 38 01 80 11 00 00 00 00 00 00 B3 [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 17 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 17 00 38 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 08 [10:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:52:32]wFMCommunicate OK [10:52:32]requested_item fd.num is exist - process it [10:52:32]SAM_PROTO_GetFieldsCounters [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 13 00 00 [10:52:32]Write to MH i2c: E2 08 00 39 01 80 13 00 00 00 00 00 00 B6 [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 62 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 62 00 39 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 84 14 03 00 0E 04 04 00 20 02 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 64 [10:52:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 84 14 03 00 0E 04 04 00 20 02 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 [10:52:32]wFMCommunicate OK [10:52:32]SAM_PROTO_GetFieldsCounters done [10:52:32]requested_item shift.num is exist - process it [10:52:32]requested_item shift.opened is exist - process it [10:52:32]req_shift_opened [10:52:32]FM_GetShiftState [10:52:32]SAM_PROTO_GetShiftState [10:52:32]wFMCommunicate request_size=4 [10:52:32]MH_SAM_APDU [10:52:32]CAPDU: 80 13 01 00 [10:52:32]Write to MH i2c: E2 08 00 3A 01 80 13 01 00 00 00 00 00 B8 [10:52:32]Write i2c OK [10:52:32]MH_I2C_Read... [10:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:32]Read from MH i2c: E2 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 0E 00 [10:52:32]MH_I2C_Read... [10:52:32]Read from MH i2c: E2 0E 00 3A 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BA [10:52:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:52:32]wFMCommunicate OK [10:52:32]SAM_PROTO_GetShiftState done [10:52:32]FM_GetShiftState done [10:52:32]req_shift_opened done [10:52:32]requested_item shift.open_date is exist - process it [10:52:33]req_shift_open_date [10:52:33]req_shift_open_date done [10:52:33]produce_requested_data done [10:52:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201860,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:52:33]process_action_free close_receipt [10:52:33]json_value_free [10:52:33]json_value_free done [10:52:33]process_json_proto returns [10:52:33]Send response to host [10:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201860,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:52:33]free response buf [10:52:33]execute_script done [10:52:33]execute_script returns [10:52:33]free content buf [10:52:33]Sock 9.Close socket [10:52:33]Sock 9.Thread stoped [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:56]accept exits with 7 [10:52:56]New connection [10:52:56]New thread 3066805604 created [10:52:56]Thread 3066948964 joined [10:52:56]Waiting for new connection... [10:52:56] Sock 7.Parse request [10:52:56]Sock 7.Check first char [10:52:56]Sock 7.First char is OK [10:52:56]request: POST /json_proto HTTP/1.0 [10:52:56]Method: POST [10:52:56]URL: /json_proto [10:52:56]Method is POST - this is cgi request [10:52:56]url: /json_proto [10:52:56]query_string will be loaded in cgi processing [10:52:56]execute_cgi json_proto POST (null) [10:52:56]execute_cgi path=json_proto method=POST [10:52:56]POST find Content-Length [10:52:56]Host: 172.17.63.195:8080 [10:52:56]Content-Length: 677 [10:52:56]Content-Type: application/json [10:52:56] [10:52:56]POST finish read [10:52:56]Found Content-Length = 677 [10:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:52:56]execute_script... [10:52:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:52:56]POST & json_proto [10:52:56]process_json_proto [10:52:56]json parsed OK: [10:52:56]protocol is kg_v1.0 [10:52:56]action value=close_receipt [10:52:56]process_action close_receipt [10:52:56]cmd_close_receipt [10:52:56]MH_GetDate [10:52:56]Write to MH i2c: F0 00 00 3B 01 2B [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: F0 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: F0 09 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: F0 09 00 3B 01 00 88 1B 1E 67 47 1B 1E 67 43 [10:52:56]GetLastDocTimeStamp 1730026347 [10:52:56]current date 1730026376 [10:52:56]FM_GetShiftState [10:52:56]SAM_PROTO_GetShiftState [10:52:56]wFMCommunicate request_size=4 [10:52:56]MH_SAM_APDU [10:52:56]CAPDU: 80 13 01 00 [10:52:56]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:56]Read from MH i2c: E2 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 0E 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BC [10:52:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:52:56]wFMCommunicate OK [10:52:56]SAM_PROTO_GetShiftState done [10:52:56]FM_GetShiftState done [10:52:56]opened in 1729987312 [10:52:56]opened+sec_in_day 1730073712 [10:52:56]quantity*price = 20003 [10:52:56]sum+1 = 20004 [10:52:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 153 27.10.2024 10:52 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201861 ФПД: 74037600849187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105256&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201861&fm=74037600849187&tin=02508201610067®Number=0000000000091777&sum=20000 [10:52:57]StoreToDocumentArchive [10:52:57]shift 544 fd 201861 [10:52:57]save to /storage/0544/doc_00201861 [10:52:57]save last doc name /storage/0544/doc_00201861 to /storage/kkm_last_doc_name [10:52:57]save OK [10:52:57]Clear old archive folders... [10:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:57]tlvbuf is 00493BF0 [10:52:57]SAM_PROTO_ClearQueue [10:52:57]wFMCommunicate request_size=4 [10:52:57]MH_SAM_APDU [10:52:57]CAPDU: 80 09 00 00 [10:52:57]Write to MH i2c: E2 08 00 49 01 80 09 00 00 00 00 00 00 BC [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:57]Read from MH i2c: E2 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [10:52:57]RAPDU: 90 00 [10:52:57]wFMCommunicate OK [10:52:57]SAM_PROTO_ClearQueue done [10:52:57]KKMCreateOFDPacket [10:52:57]OFDProtocolAddRootSTLVToBuf [10:52:57]FM_MakeSignedData [10:52:57]FM_MakeSignedData [10:52:57]SAM_PROTO_SignData [10:52:57]wFMCommunicate request_size=4 [10:52:57]MH_SAM_APDU [10:52:57]CAPDU: 80 0D 01 02 [10:52:57]Write to MH i2c: E2 08 00 4A 01 80 0D 01 02 00 00 00 00 C4 [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:57]Read from MH i2c: E2 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [10:52:57]RAPDU: 90 00 [10:52:57]wFMCommunicate OK [10:52:57]wFMCommunicate request_size=255 [10:52:57]MH_SAM_APDU [10:52:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 99 00 00 00 F4 03 04 00 88 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 14 03 00 35 04 06 00 43 [10:52:58]Write to MH i2c: E2 02 01 4B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 99 00 00 00 F4 03 04 00 88 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 14 03 00 35 04 06 00 43 00 00 DC [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:58]Read from MH i2c: E2 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 03 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [10:52:58]RAPDU: 90 00 [10:52:58]wFMCommunicate OK [10:52:58]wFMCommunicate request_size=10 [10:52:58]MH_SAM_APDU [10:52:58]CAPDU: 80 0D 02 02 05 56 38 E6 0D 23 [10:52:58]Write to MH i2c: E2 0D 00 4C 01 80 0D 02 02 05 00 56 38 E6 0D 23 00 00 75 [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:58]Read from MH i2c: E2 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 03 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [10:52:58]RAPDU: 90 00 [10:52:58]wFMCommunicate OK [10:52:58]wFMCommunicate request_size=4 [10:52:58]MH_SAM_APDU [10:52:58]CAPDU: 80 0D 03 02 [10:52:58]Write to MH i2c: E2 08 00 4D 01 80 0D 03 02 00 00 00 00 C9 [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:58]Read from MH i2c: E2 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 0B 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 0B 00 4D 01 00 1B AE 75 77 DC 1E F8 E0 90 00 51 [10:52:58]RAPDU: 1B AE 75 77 DC 1E F8 E0 90 00 [10:52:58]wFMCommunicate OK [10:52:58]SAM_PROTO_SignData done [10:52:58]FM_MakeSignedData done [10:52:58]CreateOFDProtocolMessage [10:52:58]wFMCommunicate request_size=4 [10:52:58]MH_SAM_APDU [10:52:58]CAPDU: 80 11 00 00 [10:52:58]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:58]Read from MH i2c: E2 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 17 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1E [10:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:52:58]wFMCommunicate OK [10:52:58]CreateOFDProtocolMessage done [10:52:58]OFDSenderStorePacket 201861 [10:52:58]StoreOFDPacket docnum=201861 [10:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D5 46 07 01 C8 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 99 00 00 00 F4 03 04 00 88 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 14 03 00 35 04 06 00 43 56 38 E6 0D 23 1B AE 75 77 DC 1E F8 E0 [10:52:58]CheckFolder [10:52:58]dirname=/storage/ofd_packets [10:52:58]CheckFolder done [10:52:58]ProducePacketName [10:52:58]name=ofd_packets/00201861 [10:52:58]NVStorageSaveData ofd_packets/00201861 [10:52:58]File name is /storage/ofd_packets/00201861 [10:52:58]Write 301 bytes [10:52:58]NVStorageSaveData done [10:52:58]OFDSenderStorePacket done [10:52:58]KKMCreateOFDPacket done [10:52:58]NVStorageSaveData kkm_last_timestamp [10:52:58]File name is /storage/kkm_last_timestamp [10:52:58]Write 4 bytes [10:52:58]NVStorageSaveData done [10:52:58]ExternCall_PrintAddStr [10:52:58]wPrintStart [10:52:58]Write to MH i2c: 01 00 00 4F 01 50 [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: 01 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: 01 07 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 FF 0F 65 [10:52:58]RasterBufferAndPrint [10:52:58]line Счет N : (1)449621 [10:52:58]line ИНН: 02508201610067 [10:52:58]line Контрольно-Кассовый Чек [10:52:58]line ПРОДАЖА [10:52:58]line ТРК (МРК, ГНК) : 41 [10:52:58]line Товар: 2710124130 [10:52:58]line Аи-92-К-2 [10:52:58]line 2.990 * 66.90 [10:52:58]line = 200.03 [10:52:58]line НДС 12% НСП 1% [10:52:58]line > о реализуемом товаре [10:52:58]line ОКРУГЛЕНИЕ: -0.03 [10:52:58]line ИТОГО: 200.00 [10:52:58]line Внесено: 200.00 [10:52:58]line СДАЧА: 0.00 [10:52:58]line НСП 1% : 1.77 [10:52:58]line НДС 12% : 21.24 [10:52:58]line Наличными: 200.00 [10:52:58]line Безнал.: 0.00 [10:52:58]line Место: АЗС № 171 "Партнер Нефть" [10:52:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:52:58]line СНО: Общий режим [10:52:58]line Чек 153 27.10.2024 10:52 [10:52:58]line Смена: 544 ФФД: 1.0 [10:52:58]line ЗНМ: 0300000109 [10:52:58]line РНМ: 0000000000091777 [10:52:58]line Версия ККМ: 001 [10:52:58]line ФМ: 0000000000871756 [10:52:58]line ФД: 201861 [10:52:58]line ФПД: 74037600849187 [10:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105256&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201861&fm=74037600849187&tin=02508201610067®Number=0000000000091777&sum=20000 [10:52:58]OFD Sender: Processing packet 201861 [packets to send 112, broken 111] [10:52:58]ProducePacketName [10:52:58]name=ofd_packets/00201861 [10:52:58]OFD Sender: To server: pG, [10:52:58]CommunicateWithHost lk.salyk.kg:30040 [10:52:58]ConnectInit lk.salyk.kg [10:52:58]written 0, free lines is 4095 [10:52:58]Connected sock=10 [10:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D5 46 07 01 C8 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 99 00 00 00 F4 03 04 00 88 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 14 03 00 35 04 06 00 43 56 38 E6 0D 23 1B AE 75 77 DC 1E F8 E0 [10:52:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3A 1E 47 00 A8 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 14 03 00 F4 03 04 00 43 C7 1D 67 B6 04 01 00 00 4C D6 7D 73 0B 58 DB D8 [10:52:59]CommunicateWithHost err = 0 [10:52:59]CheckOFDResponse [10:52:59]1017 (14) - 77093643461234 [10:52:59]1041 (16) - 0000000000871756 [10:52:59]1040 (4) - 201861 [10:52:59]1012 (4) - 27.10.2024 04:53 [10:52:59]1206 (1) - 0 [10:52:59]OFD Sender: Remove packet 201861 [10:52:59]ProducePacketName [10:52:59]name=ofd_packets/00201861 [10:52:59]NVStorageDeleteData [10:52:59]Write to MH i2c: 01 00 00 7A 01 7B [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: 01 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: 01 07 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 3F 0D CE [10:52:59]RasterBufferAndPrint [10:52:59]line [10:52:59]line [10:52:59]line [10:52:59]line [10:52:59]line [10:52:59]written 0, free lines is 3414 [10:52:59]MH_Cut [10:52:59]Write to MH i2c: D1 01 00 81 01 01 54 [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: D1 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: D1 01 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: D1 01 00 81 01 00 53 [10:52:59]Write to MH i2c: 01 00 00 82 01 83 [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]OFD Sender: No OFD packet to send [10:53:00]*** Cut start [10:53:00]*** Purtial cut [10:53:00]*** Stage 1: CUTSNS_PIN = 1 [10:53:00]Read from MH i2c: 01 [10:53:00]MH_I2C_Read... [10:53:00]*** Stop cut motor [10:53:00]*** Cut end [10:53:00]Read from MH i2c: 01 07 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 FF 0F 98 [10:53:00]process_action close_receipt done [10:53:00]requested_data is exist [10:53:00]produce_requested_data [10:53:00]requested_item fm.sn is exist - process it [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 11 00 00 [10:53:00]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 17 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 53 [10:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:53:00]wFMCommunicate OK [10:53:00]requested_item fd.num is exist - process it [10:53:00]SAM_PROTO_GetFieldsCounters [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 13 00 00 [10:53:00]Write to MH i2c: E2 08 00 84 01 80 13 00 00 00 00 00 00 01 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 62 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 62 00 84 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 85 14 03 00 0E 04 04 00 20 02 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 B3 [10:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 85 14 03 00 0E 04 04 00 20 02 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 [10:53:00]wFMCommunicate OK [10:53:00]SAM_PROTO_GetFieldsCounters done [10:53:00]requested_item shift.num is exist - process it [10:53:00]requested_item shift.opened is exist - process it [10:53:00]req_shift_opened [10:53:00]FM_GetShiftState [10:53:00]SAM_PROTO_GetShiftState [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 13 01 00 [10:53:00]Write to MH i2c: E2 08 00 85 01 80 13 01 00 00 00 00 00 03 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 0E 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 0E 00 85 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 05 [10:53:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:53:00]wFMCommunicate OK [10:53:00]SAM_PROTO_GetShiftState done [10:53:00]FM_GetShiftState done [10:53:00]req_shift_opened done [10:53:00]requested_item shift.open_date is exist - process it [10:53:00]req_shift_open_date [10:53:00]req_shift_open_date done [10:53:00]produce_requested_data done [10:53:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201861,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:53:00]process_action_free close_receipt [10:53:00]json_value_free [10:53:00]json_value_free done [10:53:00]process_json_proto returns [10:53:00]Send response to host [10:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201861,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:53:00]free response buf [10:53:00]execute_script done [10:53:00]execute_script returns [10:53:00]free content buf [10:53:00]Sock 7.Close socket [10:53:00]Sock 7.Thread stoped [10:53:04]OFD Sender: No OFD packet to send [10:53:07]accept exits with 9 [10:53:07]New connection [10:53:07]New thread 3066948964 created [10:53:07]Thread 3066805604 joined [10:53:07]Waiting for new connection... [10:53:07] Sock 9.Parse request [10:53:07]Sock 9.Check first char [10:53:07]Sock 9.First char is OK [10:53:07]request: POST /json_proto HTTP/1.0 [10:53:07]Method: POST [10:53:07]URL: /json_proto [10:53:07]Method is POST - this is cgi request [10:53:07]url: /json_proto [10:53:07]query_string will be loaded in cgi processing [10:53:07]execute_cgi json_proto POST (null) [10:53:07]execute_cgi path=json_proto method=POST [10:53:07]POST find Content-Length [10:53:07]Host: 172.17.63.195:8080 [10:53:07]Content-Length: 677 [10:53:07]Content-Type: application/json [10:53:07] [10:53:07]POST finish read [10:53:07]Found Content-Length = 677 [10:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:53:07]execute_script... [10:53: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)449622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:53:07]POST & json_proto [10:53:07]process_json_proto [10:53:07]json parsed OK: [10:53:07]protocol is kg_v1.0 [10:53:07]action value=close_receipt [10:53:07]process_action close_receipt [10:53:07]cmd_close_receipt [10:53:07]MH_GetDate [10:53:07]Write to MH i2c: F0 00 00 86 01 76 [10:53:07]Write i2c OK [10:53:07]MH_I2C_Read... [10:53:07]Read from MH i2c: F0 [10:53:07]MH_I2C_Read... [10:53:07]Read from MH i2c: F0 09 00 [10:53:07]MH_I2C_Read... [10:53:07]Read from MH i2c: F0 09 00 86 01 00 93 1B 1E 67 47 1B 1E 67 99 [10:53:07]GetLastDocTimeStamp 1730026376 [10:53:07]current date 1730026387 [10:53:07]FM_GetShiftState [10:53:07]SAM_PROTO_GetShiftState [10:53:07]wFMCommunicate request_size=4 [10:53:07]MH_SAM_APDU [10:53:07]CAPDU: 80 13 01 00 [10:53:07]Write to MH i2c: E2 08 00 87 01 80 13 01 00 00 00 00 00 05 [10:53:07]Write i2c OK [10:53:07]MH_I2C_Read... [10:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:07]Read from MH i2c: E2 [10:53:07]MH_I2C_Read... [10:53:07]Read from MH i2c: E2 0E 00 [10:53:07]MH_I2C_Read... [10:53:07]Read from MH i2c: E2 0E 00 87 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 07 [10:53:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:53:07]wFMCommunicate OK [10:53:07]SAM_PROTO_GetShiftState done [10:53:07]FM_GetShiftState done [10:53:07]opened in 1729987312 [10:53:07]opened+sec_in_day 1730073712 [10:53:07]quantity*price = 50041 [10:53:07]sum+1 = 50042 [10:53: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 154 27.10.2024 10:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201862 ФПД: 164245303420919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105307&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201862&fm=164245303420919&tin=02508201610067®Number=0000000000091777&sum=50000 [10:53:08]StoreToDocumentArchive [10:53:08]shift 544 fd 201862 [10:53:08]save to /storage/0544/doc_00201862 [10:53:08]save last doc name /storage/0544/doc_00201862 to /storage/kkm_last_doc_name [10:53:08]save OK [10:53:08]Clear old archive folders... [10:53:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:08]tlvbuf is 0052A620 [10:53:08]SAM_PROTO_ClearQueue [10:53:08]wFMCommunicate request_size=4 [10:53:08]MH_SAM_APDU [10:53:08]CAPDU: 80 09 00 00 [10:53:08]Write to MH i2c: E2 08 00 94 01 80 09 00 00 00 00 00 00 07 [10:53:08]Write i2c OK [10:53:08]MH_I2C_Read... [10:53:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:08]Read from MH i2c: E2 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: E2 03 00 [10:53:08]MH_I2C_Read... [10:53:08]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [10:53:08]RAPDU: 90 00 [10:53:08]wFMCommunicate OK [10:53:08]SAM_PROTO_ClearQueue done [10:53:08]KKMCreateOFDPacket [10:53:08]OFDProtocolAddRootSTLVToBuf [10:53:08]FM_MakeSignedData [10:53:08]FM_MakeSignedData [10:53:08]SAM_PROTO_SignData [10:53:08]wFMCommunicate request_size=4 [10:53:08]MH_SAM_APDU [10:53:08]CAPDU: 80 0D 01 02 [10:53:08]Write to MH i2c: E2 08 00 95 01 80 0D 01 02 00 00 00 00 0F [10:53:08]Write i2c OK [10:53:08]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 03 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [10:53:09]RAPDU: 90 00 [10:53:09]wFMCommunicate OK [10:53:09]wFMCommunicate request_size=255 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9A 00 00 00 F4 03 04 00 93 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 14 03 00 35 04 06 00 95 [10:53:09]Write to MH i2c: E2 02 01 96 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9A 00 00 00 F4 03 04 00 93 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 14 03 00 35 04 06 00 95 00 00 C4 [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 03 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [10:53:09]RAPDU: 90 00 [10:53:09]wFMCommunicate OK [10:53:09]wFMCommunicate request_size=10 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 0D 02 02 05 61 56 F7 67 F7 [10:53:09]Write to MH i2c: E2 0D 00 97 01 80 0D 02 02 05 00 61 56 F7 67 F7 00 00 28 [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 03 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [10:53:09]RAPDU: 90 00 [10:53:09]wFMCommunicate OK [10:53:09]wFMCommunicate request_size=4 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 0D 03 02 [10:53:09]Write to MH i2c: E2 08 00 98 01 80 0D 03 02 00 00 00 00 14 [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 0B 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 0B 00 98 01 00 13 ED 80 B7 30 18 48 E2 90 00 BE [10:53:09]RAPDU: 13 ED 80 B7 30 18 48 E2 90 00 [10:53:09]wFMCommunicate OK [10:53:09]SAM_PROTO_SignData done [10:53:09]FM_MakeSignedData done [10:53:09]CreateOFDProtocolMessage [10:53:09]wFMCommunicate request_size=4 [10:53:09]MH_SAM_APDU [10:53:09]CAPDU: 80 11 00 00 [10:53:09]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:09]Read from MH i2c: E2 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 17 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 69 [10:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:53:09]wFMCommunicate OK [10:53:09]CreateOFDProtocolMessage done [10:53:09]OFDSenderStorePacket 201862 [10:53:09]StoreOFDPacket docnum=201862 [10:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B7 8D 07 01 FA AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9A 00 00 00 F4 03 04 00 93 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 14 03 00 35 04 06 00 95 61 56 F7 67 F7 13 ED 80 B7 30 18 48 E2 [10:53:09]CheckFolder [10:53:09]dirname=/storage/ofd_packets [10:53:09]CheckFolder done [10:53:09]ProducePacketName [10:53:09]name=ofd_packets/00201862 [10:53:09]NVStorageSaveData ofd_packets/00201862 [10:53:09]File name is /storage/ofd_packets/00201862 [10:53:09]Write 301 bytes [10:53:09]NVStorageSaveData done [10:53:09]OFDSenderStorePacket done [10:53:09]KKMCreateOFDPacket done [10:53:09]NVStorageSaveData kkm_last_timestamp [10:53:09]File name is /storage/kkm_last_timestamp [10:53:09]Write 4 bytes [10:53:09]NVStorageSaveData done [10:53:09]ExternCall_PrintAddStr [10:53:09]wPrintStart [10:53:09]Write to MH i2c: 01 00 00 9A 01 9B [10:53:09]Write i2c OK [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: 01 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: 01 07 00 [10:53:09]MH_I2C_Read... [10:53:09]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 FF 0F B0 [10:53:09]RasterBufferAndPrint [10:53:09]line Счет N : (1)449622 [10:53:09]line ИНН: 02508201610067 [10:53:09]line Контрольно-Кассовый Чек [10:53:09]line ПРОДАЖА [10:53:09]line ТРК (МРК, ГНК) : 62 [10:53:09]line Товар: 2710124130 [10:53:09]line Аи-92-К-2 [10:53:09]line 7.480 * 66.90 [10:53:09]line = 500.41 [10:53:09]line НДС 12% НСП 1% [10:53:09]line > о реализуемом товаре [10:53:09]line ОКРУГЛЕНИЕ: -0.41 [10:53:09]line ИТОГО: 500.00 [10:53:09]line Внесено: 500.00 [10:53:09]line СДАЧА: 0.00 [10:53:09]line НСП 1% : 4.43 [10:53:09]line НДС 12% : 53.14 [10:53:09]line Наличными: 500.00 [10:53:09]line Безнал.: 0.00 [10:53:09]line Место: АЗС № 171 "Партнер Нефть" [10:53:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:53:09]line СНО: Общий режим [10:53:09]line Чек 154 27.10.2024 10:53 [10:53:09]line Смена: 544 ФФД: 1.0 [10:53:09]line ЗНМ: 0300000109 [10:53:09]line РНМ: 0000000000091777 [10:53:09]line Версия ККМ: 001 [10:53:09]line ФМ: 0000000000871756 [10:53:09]line ФД: 201862 [10:53:09]line ФПД: 164245303420919 [10:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105307&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201862&fm=164245303420919&tin=02508201610067®Number=0000000000091777&sum=50000 [10:53:09]written 0, free lines is 4095 [10:53:09]OFD Sender: Processing packet 201862 [packets to send 112, broken 111] [10:53:09]ProducePacketName [10:53:09]name=ofd_packets/00201862 [10:53:09]OFD Sender: To server: pG, [10:53:09]CommunicateWithHost lk.salyk.kg:30040 [10:53:09]ConnectInit lk.salyk.kg [10:53:10]Connected sock=10 [10:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B7 8D 07 01 FA AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9A 00 00 00 F4 03 04 00 93 1B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 14 03 00 35 04 06 00 95 61 56 F7 67 F7 13 ED 80 B7 30 18 48 E2 [10:53:10]Write to MH i2c: 01 00 00 C5 01 C6 [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: 01 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: 01 07 00 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 8F 0C 68 [10:53:10]RasterBufferAndPrint [10:53:10]line [10:53:10]line [10:53:10]line [10:53:10]line [10:53:10]line [10:53:10]written 0, free lines is 3244 [10:53:10]MH_Cut [10:53:10]Write to MH i2c: D1 01 00 CC 01 01 9F [10:53:10]Write i2c OK [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: D1 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: D1 01 00 [10:53:10]MH_I2C_Read... [10:53:10]Read from MH i2c: D1 01 00 CC 01 00 9E [10:53:10]Write to MH i2c: 01 00 00 CD 01 CE [10:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 86 E9 47 00 29 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 Write i2c OK [10:53:10]04 MH_I2C_Read... [10:53:10]04 00 86 14 03 00 F4 03 04 00 4E C7 1D 67 B6 04 01 00 00 32 E7 A2 2D E2 52 4A 08 [10:53:10]CommunicateWithHost err = 0 [10:53:10]CheckOFDResponse [10:53:10]1017 (14) - 77093643461234 [10:53:10]1041 (16) - 0000000000871756 [10:53:10]1040 (4) - 201862 [10:53:10]1012 (4) - 27.10.2024 04:53 [10:53:10]1206 (1) - 0 [10:53:10]OFD Sender: Remove packet 201862 [10:53:10]ProducePacketName [10:53:10]name=ofd_packets/00201862 [10:53:10]NVStorageDeleteData [10:53:11]OFD Sender: No OFD packet to send [10:53:11]*** Cut start [10:53:11]*** Purtial cut [10:53:11]*** Stage 1: CUTSNS_PIN = 1 [10:53:11]Read from MH i2c: 01 [10:53:11]MH_I2C_Read... [10:53:11]*** Stop cut motor [10:53:11]*** Cut end [10:53:11]Read from MH i2c: 01 07 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [10:53:11]process_action close_receipt done [10:53:11]requested_data is exist [10:53:11]produce_requested_data [10:53:11]requested_item fm.sn is exist - process it [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 11 00 00 [10:53:11]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 17 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9E [10:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:53:11]wFMCommunicate OK [10:53:11]requested_item fd.num is exist - process it [10:53:11]SAM_PROTO_GetFieldsCounters [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 13 00 00 [10:53:11]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 62 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 62 00 CF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 86 14 03 00 0E 04 04 00 20 02 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 02 [10:53:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 86 14 03 00 0E 04 04 00 20 02 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 [10:53:11]wFMCommunicate OK [10:53:11]SAM_PROTO_GetFieldsCounters done [10:53:11]requested_item shift.num is exist - process it [10:53:11]requested_item shift.opened is exist - process it [10:53:11]req_shift_opened [10:53:11]FM_GetShiftState [10:53:11]SAM_PROTO_GetShiftState [10:53:11]wFMCommunicate request_size=4 [10:53:11]MH_SAM_APDU [10:53:11]CAPDU: 80 13 01 00 [10:53:11]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [10:53:11]Write i2c OK [10:53:11]MH_I2C_Read... [10:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:11]Read from MH i2c: E2 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 0E 00 [10:53:11]MH_I2C_Read... [10:53:11]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 50 [10:53:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:53:11]wFMCommunicate OK [10:53:11]SAM_PROTO_GetShiftState done [10:53:11]FM_GetShiftState done [10:53:11]req_shift_opened done [10:53:11]requested_item shift.open_date is exist - process it [10:53:11]req_shift_open_date [10:53:11]req_shift_open_date done [10:53:11]produce_requested_data done [10:53:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201862,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:53:12]process_action_free close_receipt [10:53:12]json_value_free [10:53:12]json_value_free done [10:53:12]process_json_proto returns [10:53:12]Send response to host [10:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201862,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:53:12]free response buf [10:53:12]execute_script done [10:53:12]execute_script returns [10:53:12]free content buf [10:53:12]Sock 9.Close socket [10:53:12]Sock 9.Thread stoped [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:47]int [10:53:47]Write to MH i2c: 01 00 00 D1 01 D2 [10:53:47]*** FLAG_PRN_KEY set [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: 01 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: 01 07 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: 01 07 00 D1 01 00 08 00 00 00 FF 0F EF [10:53:47]state=0 [10:53:47]Key pressed [10:53:47]Feed [10:53:47]Write to MH i2c: D8 00 00 D2 01 AA [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: D8 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: D8 01 00 [10:53:47]MH_I2C_Read... [10:53:47]Read from MH i2c: D8 01 00 D2 01 00 AB [10:53:47]int [10:53:47]Write to MH i2c: 01 00 00 D3 01 D4 [10:53:47]Write i2c OK [10:53:47]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 07 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 07 00 D3 01 00 48 00 00 00 3C 00 5F [10:53:48]state=2 [10:53:48]Key pressed [10:53:48]int [10:53:48]Write to MH i2c: 01 00 00 D4 01 D5 [10:53:48]*** FLAG_PRN_KEY reset [10:53:48]Write i2c OK [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 07 00 [10:53:48]MH_I2C_Read... [10:53:48]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 F7 0F E2 [10:53:48]state=2 [10:53:48]Stop feed [10:53:49]int [10:53:49]Write to MH i2c: 01 00 00 D5 01 D6 [10:53:49]*** FLAG_PRN_KEY set [10:53:49]Write i2c OK [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 D5 01 00 08 00 00 00 FF 0F F3 [10:53:49]state=0 [10:53:49]Key pressed [10:53:49]Feed [10:53:49]Write to MH i2c: D8 00 00 D6 01 AE [10:53:49]Write i2c OK [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: D8 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: D8 01 00 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: D8 01 00 D6 01 00 AF [10:53:49]int [10:53:49]Write to MH i2c: 01 00 00 D7 01 D8 [10:53:49]Write i2c OK [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 D7 01 00 48 00 00 00 3C 00 63 [10:53:49]state=2 [10:53:49]Key pressed [10:53:49]int [10:53:49]Write to MH i2c: 01 00 00 D8 01 D9 [10:53:49]*** FLAG_PRN_KEY reset [10:53:49]*** FLAG_PRN_KEY set [10:53:49]Write i2c OK [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 D8 01 00 08 00 00 00 F7 0F EE [10:53:49]state=2 [10:53:49]Key pressed [10:53:49]int [10:53:49]Write to MH i2c: 01 00 00 D9 01 DA [10:53:49]*** FLAG_PRN_KEY reset [10:53:49]Write i2c OK [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 [10:53:49]MH_I2C_Read... [10:53:49]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [10:53:49]state=2 [10:53:49]Stop feed [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:48]accept exits with 7 [10:55:48]New connection [10:55:48]New thread 3066805604 created [10:55:48]Thread 3066948964 joined [10:55:48]Waiting for new connection... [10:55:48] Sock 7.Parse request [10:55:48]Sock 7.Check first char [10:55:48]Sock 7.First char is OK [10:55:48]request: POST /json_proto HTTP/1.0 [10:55:48]Method: POST [10:55:48]URL: /json_proto [10:55:48]Method is POST - this is cgi request [10:55:48]url: /json_proto [10:55:48]query_string will be loaded in cgi processing [10:55:48]execute_cgi json_proto POST (null) [10:55:48]execute_cgi path=json_proto method=POST [10:55:48]POST find Content-Length [10:55:48]Host: 172.17.63.195:8080 [10:55:48]Content-Length: 679 [10:55:48]Content-Type: application/json [10:55:48] [10:55:48]POST finish read [10:55:48]Found Content-Length = 679 [10:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:55:48]execute_script... [10:55:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [10:55:48]POST & json_proto [10:55:48]process_json_proto [10:55:48]json parsed OK: [10:55:48]protocol is kg_v1.0 [10:55:48]action value=close_receipt [10:55:48]process_action close_receipt [10:55:48]cmd_close_receipt [10:55:48]MH_GetDate [10:55:48]Write to MH i2c: F0 00 00 DA 01 CA [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: F0 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: F0 09 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: F0 09 00 DA 01 00 34 1C 1E 67 47 1B 1E 67 8F [10:55:48]GetLastDocTimeStamp 1730026387 [10:55:48]current date 1730026548 [10:55:48]FM_GetShiftState [10:55:48]SAM_PROTO_GetShiftState [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 13 01 00 [10:55:48]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 0E 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5B [10:55:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:55:48]wFMCommunicate OK [10:55:48]SAM_PROTO_GetShiftState done [10:55:48]FM_GetShiftState done [10:55:48]opened in 1729987312 [10:55:48]opened+sec_in_day 1730073712 [10:55:48]quantity*price = 100050 [10:55:48]sum+1 = 100052 [10:55:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 155 27.10.2024 10:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201863 ФПД: 93592275313177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105548&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201863&fm=93592275313177&tin=02508201610067®Number=0000000000091777&sum=100000 [10:55:49]StoreToDocumentArchive [10:55:49]shift 544 fd 201863 [10:55:49]save to /storage/0544/doc_00201863 [10:55:49]save last doc name /storage/0544/doc_00201863 to /storage/kkm_last_doc_name [10:55:49]save OK [10:55:49]Clear old archive folders... [10:55:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:55:49]tlvbuf is B6F54550 [10:55:49]SAM_PROTO_ClearQueue [10:55:49]wFMCommunicate request_size=4 [10:55:49]MH_SAM_APDU [10:55:49]CAPDU: 80 09 00 00 [10:55:49]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [10:55:49]RAPDU: 90 00 [10:55:49]wFMCommunicate OK [10:55:49]SAM_PROTO_ClearQueue done [10:55:49]KKMCreateOFDPacket [10:55:49]OFDProtocolAddRootSTLVToBuf [10:55:49]FM_MakeSignedData [10:55:49]FM_MakeSignedData [10:55:49]SAM_PROTO_SignData [10:55:49]wFMCommunicate request_size=4 [10:55:49]MH_SAM_APDU [10:55:49]CAPDU: 80 0D 01 02 [10:55:49]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:49]Read from MH i2c: E2 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [10:55:49]RAPDU: 90 00 [10:55:49]wFMCommunicate OK [10:55:49]wFMCommunicate request_size=255 [10:55:49]MH_SAM_APDU [10:55:49]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 32 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 9B 00 00 00 F4 03 04 00 34 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 14 03 00 35 04 06 00 55 1F 26 52 [10:55:49]Write to MH i2c: E2 02 01 EA 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 9B 00 00 00 F4 03 04 00 34 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 14 03 00 35 04 06 00 55 1F 26 52 00 00 09 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [10:55:50]RAPDU: 90 00 [10:55:50]wFMCommunicate OK [10:55:50]wFMCommunicate request_size=7 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 0D 02 02 02 E2 19 [10:55:50]Write to MH i2c: E2 0A 00 EB 01 80 0D 02 02 02 00 E2 19 00 00 65 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [10:55:50]RAPDU: 90 00 [10:55:50]wFMCommunicate OK [10:55:50]wFMCommunicate request_size=4 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 0D 03 02 [10:55:50]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 0B 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 0B 00 EC 01 00 0C A1 60 69 82 A1 71 8F 90 00 02 [10:55:50]RAPDU: 0C A1 60 69 82 A1 71 8F 90 00 [10:55:50]wFMCommunicate OK [10:55:50]SAM_PROTO_SignData done [10:55:50]FM_MakeSignedData done [10:55:50]CreateOFDProtocolMessage [10:55:50]wFMCommunicate request_size=4 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 11 00 00 [10:55:50]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 17 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [10:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:55:50]wFMCommunicate OK [10:55:50]CreateOFDProtocolMessage done [10:55:50]OFDSenderStorePacket 201863 [10:55:50]StoreOFDPacket docnum=201863 [10:55:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2C 6B 04 01 05 2A 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 32 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 9B 00 00 00 F4 03 04 00 34 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 14 03 00 35 04 06 00 55 1F 26 52 E2 19 0C A1 60 69 82 A1 71 8F [10:55:50]CheckFolder [10:55:50]dirname=/storage/ofd_packets [10:55:50]CheckFolder done [10:55:50]ProducePacketName [10:55:50]name=ofd_packets/00201863 [10:55:50]NVStorageSaveData ofd_packets/00201863 [10:55:50]File name is /storage/ofd_packets/00201863 [10:55:50]Write 298 bytes [10:55:50]NVStorageSaveData done [10:55:50]OFDSenderStorePacket done [10:55:50]KKMCreateOFDPacket done [10:55:50]NVStorageSaveData kkm_last_timestamp [10:55:50]File name is /storage/kkm_last_timestamp [10:55:50]Write 4 bytes [10:55:50]NVStorageSaveData done [10:55:50]ExternCall_PrintAddStr [10:55:50]wPrintStart [10:55:50]Write to MH i2c: 01 00 00 EE 01 EF [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 07 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [10:55:50]RasterBufferAndPrint [10:55:50]line Счет N : (1)449623 [10:55:50]line ИНН: 02508201610067 [10:55:50]line Контрольно-Кассовый Чек [10:55:50]line ПРОДАЖА [10:55:50]line ТРК (МРК, ГНК) : 11 [10:55:50]line Товар: 2710194210 [10:55:50]line ДТ-К-2 [10:55:50]line 13.130 * 76.20 [10:55:50]line = 1000.51 [10:55:50]line НДС 12% НСП 1% [10:55:50]line > о реализуемом товаре [10:55:50]line ОКРУГЛЕНИЕ: -0.51 [10:55:50]line ИТОГО: 1000.00 [10:55:50]line Внесено: 1000.00 [10:55:50]line СДАЧА: 0.00 [10:55:50]line НСП 1% : 8.85 [10:55:50]line НДС 12% : 106.25 [10:55:50]line Наличными: 1000.00 [10:55:50]line Безнал.: 0.00 [10:55:50]line Место: АЗС № 171 "Партнер Нефть" [10:55:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:55:50]line СНО: Общий режим [10:55:50]line Чек 155 27.10.2024 10:55 [10:55:50]line Смена: 544 ФФД: 1.0 [10:55:50]line ЗНМ: 0300000109 [10:55:50]line РНМ: 0000000000091777 [10:55:50]line Версия ККМ: 001 [10:55:50]line ФМ: 0000000000871756 [10:55:50]line ФД: 201863 [10:55:50]line ФПД: 93592275313177 [10:55:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105548&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201863&fm=93592275313177&tin=02508201610067®Number=0000000000091777&sum=100000 [10:55:50]OFD Sender: Processing packet 201863 [packets to send 112, broken 111] [10:55:50]ProducePacketName [10:55:50]name=ofd_packets/00201863 [10:55:50]OFD Sender: To server: pG, [10:55:50]CommunicateWithHost lk.salyk.kg:30040 [10:55:50]ConnectInit lk.salyk.kg [10:55:50]written 0, free lines is 4095 [10:55:50]Connected sock=10 [10:55:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2C 6B 04 01 05 2A 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 32 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 9B 00 00 00 F4 03 04 00 34 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 14 03 00 35 04 06 00 55 1F 26 52 E2 19 0C A1 60 69 82 A1 71 8F [10:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A8 23 47 00 D3 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 14 03 00 F4 03 04 00 EF C7 1D 67 B6 04 01 00 00 5F C0 E7 37 D3 9D 1B 33 [10:55:51]CommunicateWithHost err = 0 [10:55:51]CheckOFDResponse [10:55:51]1017 (14) - 77093643461234 [10:55:51]1041 (16) - 0000000000871756 [10:55:51]1040 (4) - 201863 [10:55:51]1012 (4) - 27.10.2024 04:56 [10:55:51]1206 (1) - 0 [10:55:51]OFD Sender: Remove packet 201863 [10:55:51]ProducePacketName [10:55:51]name=ofd_packets/00201863 [10:55:51]NVStorageDeleteData [10:55:51]Write to MH i2c: 01 00 00 19 02 1B [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 86 0C B4 [10:55:51]RasterBufferAndPrint [10:55:51]line [10:55:51]line [10:55:51]line [10:55:51]line [10:55:51]line [10:55:51]written 0, free lines is 3210 [10:55:51]MH_Cut [10:55:51]Write to MH i2c: D1 01 00 20 02 01 F4 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: D1 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: D1 01 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: D1 01 00 20 02 00 F3 [10:55:51]Write to MH i2c: 01 00 00 21 02 23 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]OFD Sender: No OFD packet to send [10:55:52]*** Cut start [10:55:52]*** Purtial cut [10:55:52]*** Stage 1: CUTSNS_PIN = 1 [10:55:52]Read from MH i2c: 01 [10:55:52]MH_I2C_Read... [10:55:52]*** Stop cut motor [10:55:52]*** Cut end [10:55:52]Read from MH i2c: 01 07 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [10:55:52]process_action close_receipt done [10:55:52]requested_data is exist [10:55:52]produce_requested_data [10:55:52]requested_item fm.sn is exist - process it [10:55:52]wFMCommunicate request_size=4 [10:55:52]MH_SAM_APDU [10:55:52]CAPDU: 80 11 00 00 [10:55:52]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:52]Read from MH i2c: E2 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 17 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F3 [10:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:55:52]wFMCommunicate OK [10:55:52]requested_item fd.num is exist - process it [10:55:52]SAM_PROTO_GetFieldsCounters [10:55:52]wFMCommunicate request_size=4 [10:55:52]MH_SAM_APDU [10:55:52]CAPDU: 80 13 00 00 [10:55:52]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:52]Read from MH i2c: E2 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 62 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 62 00 23 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 87 14 03 00 0E 04 04 00 20 02 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 5B [10:55:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 87 14 03 00 0E 04 04 00 20 02 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 [10:55:52]wFMCommunicate OK [10:55:52]SAM_PROTO_GetFieldsCounters done [10:55:52]requested_item shift.num is exist - process it [10:55:52]requested_item shift.opened is exist - process it [10:55:52]req_shift_opened [10:55:52]FM_GetShiftState [10:55:52]SAM_PROTO_GetShiftState [10:55:52]wFMCommunicate request_size=4 [10:55:52]MH_SAM_APDU [10:55:52]CAPDU: 80 13 01 00 [10:55:52]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:52]Read from MH i2c: E2 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 0E 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A5 [10:55:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:55:52]wFMCommunicate OK [10:55:52]SAM_PROTO_GetShiftState done [10:55:52]FM_GetShiftState done [10:55:52]req_shift_opened done [10:55:52]requested_item shift.open_date is exist - process it [10:55:52]req_shift_open_date [10:55:52]req_shift_open_date done [10:55:52]produce_requested_data done [10:55:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201863,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:55:52]process_action_free close_receipt [10:55:52]json_value_free [10:55:52]json_value_free done [10:55:52]process_json_proto returns [10:55:52]Send response to host [10:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201863,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:55:52]free response buf [10:55:52]execute_script done [10:55:52]execute_script returns [10:55:52]free content buf [10:55:52]Sock 7.Close socket [10:55:52]Sock 7.Thread stoped [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:02]accept exits with 9 [10:58:02]New connection [10:58:02]New thread 3066948964 created [10:58:02]Thread 3066805604 joined [10:58:02]Waiting for new connection... [10:58:02] Sock 9.Parse request [10:58:02]Sock 9.Check first char [10:58:02]Sock 9.First char is OK [10:58:02]request: POST /json_proto HTTP/1.0 [10:58:02]Method: POST [10:58:02]URL: /json_proto [10:58:02]Method is POST - this is cgi request [10:58:02]url: /json_proto [10:58:02]query_string will be loaded in cgi processing [10:58:02]execute_cgi json_proto POST (null) [10:58:02]execute_cgi path=json_proto method=POST [10:58:02]POST find Content-Length [10:58:02]Host: 172.17.63.195:8080 [10:58:02]Content-Length: 682 [10:58:02]Content-Type: application/json [10:58:02] [10:58:02]POST finish read [10:58:02]Found Content-Length = 682 [10:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:02]execute_script... [10:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:02]POST & json_proto [10:58:02]process_json_proto [10:58:02]json parsed OK: [10:58:02]protocol is kg_v1.0 [10:58:02]action value=close_receipt [10:58:02]process_action close_receipt [10:58:02]cmd_close_receipt [10:58:02]MH_GetDate [10:58:02]Write to MH i2c: F0 00 00 25 02 16 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: F0 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: F0 09 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: F0 09 00 25 02 00 BA 1C 1E 67 47 1B 1E 67 61 [10:58:02]GetLastDocTimeStamp 1730026548 [10:58:02]current date 1730026682 [10:58:02]FM_GetShiftState [10:58:02]SAM_PROTO_GetShiftState [10:58:02]wFMCommunicate request_size=4 [10:58:02]MH_SAM_APDU [10:58:02]CAPDU: 80 13 01 00 [10:58:02]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:02]Read from MH i2c: E2 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 0E 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A7 [10:58:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:58:02]wFMCommunicate OK [10:58:02]SAM_PROTO_GetShiftState done [10:58:02]FM_GetShiftState done [10:58:02]opened in 1729987312 [10:58:02]opened+sec_in_day 1730073712 [10:58:02]quantity*price = 150032 [10:58:02]sum+1 = 150033 [10:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 156 27.10.2024 10:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201864 ФПД: 275476694504209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105802&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201864&fm=275476694504209&tin=02508201610067®Number=0000000000091777&sum=150000 [10:58:03]StoreToDocumentArchive [10:58:03]shift 544 fd 201864 [10:58:03]save to /storage/0544/doc_00201864 [10:58:03]save last doc name /storage/0544/doc_00201864 to /storage/kkm_last_doc_name [10:58:03]save OK [10:58:03]Clear old archive folders... [10:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:03]tlvbuf is 00528DF0 [10:58:03]SAM_PROTO_ClearQueue [10:58:03]wFMCommunicate request_size=4 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 09 00 00 [10:58:03]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [10:58:03]RAPDU: 90 00 [10:58:03]wFMCommunicate OK [10:58:03]SAM_PROTO_ClearQueue done [10:58:03]KKMCreateOFDPacket [10:58:03]OFDProtocolAddRootSTLVToBuf [10:58:03]FM_MakeSignedData [10:58:03]FM_MakeSignedData [10:58:03]SAM_PROTO_SignData [10:58:03]wFMCommunicate request_size=4 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 0D 01 02 [10:58:03]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [10:58:03]RAPDU: 90 00 [10:58:03]wFMCommunicate OK [10:58:03]wFMCommunicate request_size=255 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 BA 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 14 03 00 35 04 06 00 FA [10:58:03]Write to MH i2c: E2 02 01 35 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 BA 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 14 03 00 35 04 06 00 FA 00 00 59 [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [10:58:03]RAPDU: 90 00 [10:58:03]wFMCommunicate OK [10:58:03]wFMCommunicate request_size=10 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 0D 02 02 05 8B 6A 85 13 11 [10:58:03]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 8B 6A 85 13 11 00 00 5A [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [10:58:03]RAPDU: 90 00 [10:58:03]wFMCommunicate OK [10:58:03]wFMCommunicate request_size=4 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 0D 03 02 [10:58:03]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 0B 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 0B 00 37 02 00 49 48 25 17 B4 16 83 16 90 00 E5 [10:58:03]RAPDU: 49 48 25 17 B4 16 83 16 90 00 [10:58:03]wFMCommunicate OK [10:58:03]SAM_PROTO_SignData done [10:58:03]FM_MakeSignedData done [10:58:03]CreateOFDProtocolMessage [10:58:03]wFMCommunicate request_size=4 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 11 00 00 [10:58:03]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 17 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [10:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:58:03]wFMCommunicate OK [10:58:03]CreateOFDProtocolMessage done [10:58:03]OFDSenderStorePacket 201864 [10:58:03]StoreOFDPacket docnum=201864 [10:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 67 EC 07 01 55 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 33 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 BA 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 14 03 00 35 04 06 00 FA 8B 6A 85 13 11 49 48 25 17 B4 16 83 16 [10:58:03]CheckFolder [10:58:03]dirname=/storage/ofd_packets [10:58:03]CheckFolder done [10:58:03]ProducePacketName [10:58:03]name=ofd_packets/00201864 [10:58:03]NVStorageSaveData ofd_packets/00201864 [10:58:03]File name is /storage/ofd_packets/00201864 [10:58:03]Write 301 bytes [10:58:03]NVStorageSaveData done [10:58:03]OFDSenderStorePacket done [10:58:03]KKMCreateOFDPacket done [10:58:03]NVStorageSaveData kkm_last_timestamp [10:58:03]File name is /storage/kkm_last_timestamp [10:58:03]Write 4 bytes [10:58:03]NVStorageSaveData done [10:58:03]ExternCall_PrintAddStr [10:58:03]wPrintStart [10:58:03]Write to MH i2c: 01 00 00 39 02 3B [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 07 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [10:58:03]RasterBufferAndPrint [10:58:03]line Счет N : (1)449624 [10:58:03]line ИНН: 02508201610067 [10:58:03]line Контрольно-Кассовый Чек [10:58:03]line ПРОДАЖА [10:58:03]line ТРК (МРК, ГНК) : 51 [10:58:03]line Товар: 2710124500 [10:58:03]line Аи-95-К-3 [10:58:03]line 20.220 * 74.20 [10:58:03]line = 1500.32 [10:58:03]line НДС 12% НСП 1% [10:58:03]line > о реализуемом товаре [10:58:03]line ОКРУГЛЕНИЕ: -0.32 [10:58:03]line ИТОГО: 1500.00 [10:58:03]line Внесено: 1500.00 [10:58:03]line СДАЧА: 0.00 [10:58:03]line НСП 1% : 13.28 [10:58:03]line НДС 12% : 159.33 [10:58:03]line Наличными: 1500.00 [10:58:03]line Безнал.: 0.00 [10:58:03]line Место: АЗС № 171 "Партнер Нефть" [10:58:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:58:03]line СНО: Общий режим [10:58:03]line Чек 156 27.10.2024 10:58 [10:58:03]line Смена: 544 ФФД: 1.0 [10:58:03]line ЗНМ: 0300000109 [10:58:03]line РНМ: 0000000000091777 [10:58:03]line Версия ККМ: 001 [10:58:03]line ФМ: 0000000000871756 [10:58:03]line ФД: 201864 [10:58:03]line ФПД: 275476694504209 [10:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105802&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201864&fm=275476694504209&tin=02508201610067®Number=0000000000091777&sum=150000 [10:58:04]OFD Sender: Processing packet 201864 [packets to send 112, broken 111] [10:58:04]ProducePacketName [10:58:04]name=ofd_packets/00201864 [10:58:04]OFD Sender: To server: pG, [10:58:04]CommunicateWithHost lk.salyk.kg:30040 [10:58:04]ConnectInit lk.salyk.kg [10:58:04]written 0, free lines is 4095 [10:58:04]Connected sock=10 [10:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 67 EC 07 01 55 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 33 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 BA 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 14 03 00 35 04 06 00 FA 8B 6A 85 13 11 49 48 25 17 B4 16 83 16 [10:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3D D3 47 00 3D A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 14 03 00 F4 03 04 00 74 C8 1D 67 B6 04 01 00 00 D2 F5 3B AD 18 DA C3 88 [10:58:04]CommunicateWithHost err = 0 [10:58:04]CheckOFDResponse [10:58:04]1017 (14) - 77093643461234 [10:58:04]1041 (16) - 0000000000871756 [10:58:04]1040 (4) - 201864 [10:58:04]1012 (4) - 27.10.2024 04:58 [10:58:04]1206 (1) - 0 [10:58:04]OFD Sender: Remove packet 201864 [10:58:04]ProducePacketName [10:58:04]name=ofd_packets/00201864 [10:58:04]NVStorageDeleteData [10:58:04]Write to MH i2c: 01 00 00 64 02 66 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 8C 0C 05 [10:58:04]RasterBufferAndPrint [10:58:04]line [10:58:04]line [10:58:04]line [10:58:04]line [10:58:04]line [10:58:04]written 0, free lines is 3215 [10:58:04]MH_Cut [10:58:04]Write to MH i2c: D1 01 00 6B 02 01 3F [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: D1 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: D1 01 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: D1 01 00 6B 02 00 3E [10:58:04]Write to MH i2c: 01 00 00 6C 02 6E [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]OFD Sender: No OFD packet to send [10:58:05]*** Cut start [10:58:05]*** Purtial cut [10:58:05]*** Stage 1: CUTSNS_PIN = 1 [10:58:05]Read from MH i2c: 01 [10:58:05]MH_I2C_Read... [10:58:05]*** Stop cut motor [10:58:05]*** Cut end [10:58:05]Read from MH i2c: 01 07 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [10:58:05]process_action close_receipt done [10:58:05]requested_data is exist [10:58:05]produce_requested_data [10:58:05]requested_item fm.sn is exist - process it [10:58:05]wFMCommunicate request_size=4 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 11 00 00 [10:58:05]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 17 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3E [10:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:58:05]wFMCommunicate OK [10:58:05]requested_item fd.num is exist - process it [10:58:05]SAM_PROTO_GetFieldsCounters [10:58:05]wFMCommunicate request_size=4 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 13 00 00 [10:58:05]Write to MH i2c: E2 08 00 6E 02 80 13 00 00 00 00 00 00 EC [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 62 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 62 00 6E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 88 14 03 00 0E 04 04 00 20 02 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 AA [10:58:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 88 14 03 00 0E 04 04 00 20 02 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 [10:58:05]wFMCommunicate OK [10:58:05]SAM_PROTO_GetFieldsCounters done [10:58:05]requested_item shift.num is exist - process it [10:58:05]requested_item shift.opened is exist - process it [10:58:05]req_shift_opened [10:58:05]FM_GetShiftState [10:58:05]SAM_PROTO_GetShiftState [10:58:05]wFMCommunicate request_size=4 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 13 01 00 [10:58:05]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F0 [10:58:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:58:05]wFMCommunicate OK [10:58:05]SAM_PROTO_GetShiftState done [10:58:05]FM_GetShiftState done [10:58:05]req_shift_opened done [10:58:05]requested_item shift.open_date is exist - process it [10:58:05]req_shift_open_date [10:58:05]req_shift_open_date done [10:58:05]produce_requested_data done [10:58:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201864,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:58:05]process_action_free close_receipt [10:58:05]json_value_free [10:58:05]json_value_free done [10:58:05]process_json_proto returns [10:58:05]Send response to host [10:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201864,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:58:05]free response buf [10:58:05]execute_script done [10:58:05]execute_script returns [10:58:05]free content buf [10:58:05]Sock 9.Close socket [10:58:05]Sock 9.Thread stoped [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:28]accept exits with 7 [10:58:28]New connection [10:58:28]New thread 3066805604 created [10:58:28]Thread 3066948964 joined [10:58:28]Waiting for new connection... [10:58:28] Sock 7.Parse request [10:58:28]Sock 7.Check first char [10:58:28]Sock 7.First char is OK [10:58:28]request: POST /json_proto HTTP/1.0 [10:58:28]Method: POST [10:58:28]URL: /json_proto [10:58:28]Method is POST - this is cgi request [10:58:28]url: /json_proto [10:58:28]query_string will be loaded in cgi processing [10:58:28]execute_cgi json_proto POST (null) [10:58:28]execute_cgi path=json_proto method=POST [10:58:28]POST find Content-Length [10:58:28]Host: 172.17.63.195:8080 [10:58:28]Content-Length: 677 [10:58:28]Content-Type: application/json [10:58:28] [10:58:28]POST finish read [10:58:28]Found Content-Length = 677 [10:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:28]execute_script... [10:58:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:28]POST & json_proto [10:58:28]process_json_proto [10:58:28]json parsed OK: [10:58:28]protocol is kg_v1.0 [10:58:28]action value=close_receipt [10:58:28]process_action close_receipt [10:58:28]cmd_close_receipt [10:58:28]MH_GetDate [10:58:28]Write to MH i2c: F0 00 00 70 02 61 [10:58:28]Write i2c OK [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: F0 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: F0 09 00 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: F0 09 00 70 02 00 D4 1C 1E 67 47 1B 1E 67 C6 [10:58:28]GetLastDocTimeStamp 1730026682 [10:58:28]current date 1730026708 [10:58:28]FM_GetShiftState [10:58:28]SAM_PROTO_GetShiftState [10:58:28]wFMCommunicate request_size=4 [10:58:28]MH_SAM_APDU [10:58:28]CAPDU: 80 13 01 00 [10:58:28]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [10:58:28]Write i2c OK [10:58:28]MH_I2C_Read... [10:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:28]Read from MH i2c: E2 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 0E 00 [10:58:28]MH_I2C_Read... [10:58:28]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F2 [10:58:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:58:28]wFMCommunicate OK [10:58:28]SAM_PROTO_GetShiftState done [10:58:28]FM_GetShiftState done [10:58:28]opened in 1729987312 [10:58:28]opened+sec_in_day 1730073712 [10:58:28]quantity*price = 25020 [10:58:28]sum+1 = 25022 [10:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 157 27.10.2024 10:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201865 ФПД: 172673198921193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105828&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201865&fm=172673198921193&tin=02508201610067®Number=0000000000091777&sum=25000 [10:58:29]StoreToDocumentArchive [10:58:29]shift 544 fd 201865 [10:58:29]save to /storage/0544/doc_00201865 [10:58:29]save last doc name /storage/0544/doc_00201865 to /storage/kkm_last_doc_name [10:58:29]save OK [10:58:29]Clear old archive folders... [10:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:29]tlvbuf is B6F546B0 [10:58:29]SAM_PROTO_ClearQueue [10:58:29]wFMCommunicate request_size=4 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 09 00 00 [10:58:29]Write to MH i2c: E2 08 00 7E 02 80 09 00 00 00 00 00 00 F2 [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [10:58:29]RAPDU: 90 00 [10:58:29]wFMCommunicate OK [10:58:29]SAM_PROTO_ClearQueue done [10:58:29]KKMCreateOFDPacket [10:58:29]OFDProtocolAddRootSTLVToBuf [10:58:29]FM_MakeSignedData [10:58:29]FM_MakeSignedData [10:58:29]SAM_PROTO_SignData [10:58:29]wFMCommunicate request_size=4 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 0D 01 02 [10:58:29]Write to MH i2c: E2 08 00 7F 02 80 0D 01 02 00 00 00 00 FA [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [10:58:29]RAPDU: 90 00 [10:58:29]wFMCommunicate OK [10:58:29]wFMCommunicate request_size=255 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D4 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 14 03 00 35 04 06 00 9D [10:58:29]Write to MH i2c: E2 02 01 80 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D4 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 14 03 00 35 04 06 00 9D 00 00 D8 [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [10:58:29]RAPDU: 90 00 [10:58:29]wFMCommunicate OK [10:58:29]wFMCommunicate request_size=10 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 0D 02 02 05 0B 9C AF 15 E9 [10:58:29]Write to MH i2c: E2 0D 00 81 02 80 0D 02 02 05 00 0B 9C AF 15 E9 00 00 5B [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [10:58:29]RAPDU: 90 00 [10:58:29]wFMCommunicate OK [10:58:29]wFMCommunicate request_size=4 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 0D 03 02 [10:58:29]Write to MH i2c: E2 08 00 82 02 80 0D 03 02 00 00 00 00 FF [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 0B 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 0B 00 82 02 00 CB E0 BF 27 A6 78 29 C0 90 00 98 [10:58:29]RAPDU: CB E0 BF 27 A6 78 29 C0 90 00 [10:58:29]wFMCommunicate OK [10:58:29]SAM_PROTO_SignData done [10:58:29]FM_MakeSignedData done [10:58:29]CreateOFDProtocolMessage [10:58:29]wFMCommunicate request_size=4 [10:58:29]MH_SAM_APDU [10:58:29]CAPDU: 80 11 00 00 [10:58:29]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:29]Read from MH i2c: E2 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 17 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [10:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:58:29]wFMCommunicate OK [10:58:29]CreateOFDProtocolMessage done [10:58:29]OFDSenderStorePacket 201865 [10:58:29]StoreOFDPacket docnum=201865 [10:58:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FE A4 07 01 80 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D4 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 14 03 00 35 04 06 00 9D 0B 9C AF 15 E9 CB E0 BF 27 A6 78 29 C0 [10:58:29]CheckFolder [10:58:29]dirname=/storage/ofd_packets [10:58:29]CheckFolder done [10:58:29]ProducePacketName [10:58:29]name=ofd_packets/00201865 [10:58:29]NVStorageSaveData ofd_packets/00201865 [10:58:29]File name is /storage/ofd_packets/00201865 [10:58:29]Write 301 bytes [10:58:29]NVStorageSaveData done [10:58:29]OFDSenderStorePacket done [10:58:29]KKMCreateOFDPacket done [10:58:29]NVStorageSaveData kkm_last_timestamp [10:58:29]File name is /storage/kkm_last_timestamp [10:58:29]Write 4 bytes [10:58:29]NVStorageSaveData done [10:58:29]ExternCall_PrintAddStr [10:58:29]wPrintStart [10:58:29]Write to MH i2c: 01 00 00 84 02 86 [10:58:29]Write i2c OK [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: 01 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: 01 07 00 [10:58:29]MH_I2C_Read... [10:58:29]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 FF 0F 9B [10:58:29]RasterBufferAndPrint [10:58:29]line Счет N : (1)449625 [10:58:29]line ИНН: 02508201610067 [10:58:29]line Контрольно-Кассовый Чек [10:58:29]line ПРОДАЖА [10:58:29]line ТРК (МРК, ГНК) : 62 [10:58:29]line Товар: 2710124130 [10:58:29]line Аи-92-К-2 [10:58:29]line 3.740 * 66.90 [10:58:29]line = 250.21 [10:58:29]line НДС 12% НСП 1% [10:58:29]line > о реализуемом товаре [10:58:29]line ОКРУГЛЕНИЕ: -0.21 [10:58:29]line ИТОГО: 250.00 [10:58:29]line Внесено: 250.00 [10:58:29]line СДАЧА: 0.00 [10:58:29]line НСП 1% : 2.21 [10:58:29]line НДС 12% : 26.57 [10:58:29]line Наличными: 250.00 [10:58:29]line Безнал.: 0.00 [10:58:29]line Место: АЗС № 171 "Партнер Нефть" [10:58:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:58:29]line СНО: Общий режим [10:58:29]line Чек 157 27.10.2024 10:58 [10:58:29]line Смена: 544 ФФД: 1.0 [10:58:29]line ЗНМ: 0300000109 [10:58:29]line РНМ: 0000000000091777 [10:58:29]line Версия ККМ: 001 [10:58:29]line ФМ: 0000000000871756 [10:58:29]line ФД: 201865 [10:58:29]line ФПД: 172673198921193 [10:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105828&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201865&fm=172673198921193&tin=02508201610067®Number=0000000000091777&sum=25000 [10:58:30]OFD Sender: Processing packet 201865 [packets to send 112, broken 111] [10:58:30]ProducePacketName [10:58:30]name=ofd_packets/00201865 [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]written 0, free lines is 4095 [10:58:30]Connected sock=10 [10:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FE A4 07 01 80 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D4 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 14 03 00 35 04 06 00 9D 0B 9C AF 15 E9 CB E0 BF 27 A6 78 29 C0 [10:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D1 CA 47 00 5D 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 14 03 00 F4 03 04 00 8E C8 1D 67 B6 04 01 00 00 89 34 7E 96 52 06 E6 CD [10:58:30]CommunicateWithHost err = 0 [10:58:30]CheckOFDResponse [10:58:30]1017 (14) - 77093643461234 [10:58:30]1041 (16) - 0000000000871756 [10:58:30]1040 (4) - 201865 [10:58:30]1012 (4) - 27.10.2024 04:58 [10:58:30]1206 (1) - 0 [10:58:30]OFD Sender: Remove packet 201865 [10:58:30]ProducePacketName [10:58:30]name=ofd_packets/00201865 [10:58:30]NVStorageDeleteData [10:58:30]Write to MH i2c: 01 00 00 AF 02 B1 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 07 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 8F 0C 53 [10:58:30]RasterBufferAndPrint [10:58:30]line [10:58:30]line [10:58:30]line [10:58:30]line [10:58:30]line [10:58:30]written 0, free lines is 3218 [10:58:30]MH_Cut [10:58:30]Write to MH i2c: D1 01 00 B6 02 01 8A [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: D1 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: D1 01 00 [10:58:30]MH_I2C_Read... [10:58:30]Read from MH i2c: D1 01 00 B6 02 00 89 [10:58:30]Write to MH i2c: 01 00 00 B7 02 B9 [10:58:30]Write i2c OK [10:58:30]MH_I2C_Read... [10:58:30]OFD Sender: No OFD packet to send [10:58:31]*** Cut start [10:58:31]*** Purtial cut [10:58:31]*** Stage 1: CUTSNS_PIN = 1 [10:58:31]Read from MH i2c: 01 [10:58:31]MH_I2C_Read... [10:58:31]*** Stop cut motor [10:58:31]*** Cut end [10:58:31]Read from MH i2c: 01 07 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [10:58:31]process_action close_receipt done [10:58:31]requested_data is exist [10:58:31]produce_requested_data [10:58:31]requested_item fm.sn is exist - process it [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 11 00 00 [10:58:31]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 17 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 89 [10:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:58:31]wFMCommunicate OK [10:58:31]requested_item fd.num is exist - process it [10:58:31]SAM_PROTO_GetFieldsCounters [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 13 00 00 [10:58:31]Write to MH i2c: E2 08 00 B9 02 80 13 00 00 00 00 00 00 37 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 62 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 62 00 B9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 89 14 03 00 0E 04 04 00 20 02 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 F9 [10:58:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 89 14 03 00 0E 04 04 00 20 02 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 [10:58:31]wFMCommunicate OK [10:58:31]SAM_PROTO_GetFieldsCounters done [10:58:31]requested_item shift.num is exist - process it [10:58:31]requested_item shift.opened is exist - process it [10:58:31]req_shift_opened [10:58:31]FM_GetShiftState [10:58:31]SAM_PROTO_GetShiftState [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 13 01 00 [10:58:31]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 0E 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3B [10:58:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:58:31]wFMCommunicate OK [10:58:31]SAM_PROTO_GetShiftState done [10:58:31]FM_GetShiftState done [10:58:31]req_shift_opened done [10:58:31]requested_item shift.open_date is exist - process it [10:58:31]req_shift_open_date [10:58:31]req_shift_open_date done [10:58:31]produce_requested_data done [10:58:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201865,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:58:31]process_action_free close_receipt [10:58:31]json_value_free [10:58:31]json_value_free done [10:58:31]process_json_proto returns [10:58:31]Send response to host [10:58:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201865,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:58:31]free response buf [10:58:31]execute_script done [10:58:31]execute_script returns [10:58:31]free content buf [10:58:31]Sock 7.Close socket [10:58:31]Sock 7.Thread stoped [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]accept exits with 9 [10:58:45]New connection [10:58:45]New thread 3066948964 created [10:58:45]Thread 3066805604 joined [10:58:45]Waiting for new connection... [10:58:45] Sock 9.Parse request [10:58:45]Sock 9.Check first char [10:58:45]Sock 9.First char is OK [10:58:45]request: POST /json_proto HTTP/1.0 [10:58:45]Method: POST [10:58:45]URL: /json_proto [10:58:45]Method is POST - this is cgi request [10:58:45]url: /json_proto [10:58:45]query_string will be loaded in cgi processing [10:58:45]execute_cgi json_proto POST (null) [10:58:45]execute_cgi path=json_proto method=POST [10:58:45]POST find Content-Length [10:58:45]Host: 172.17.63.195:8080 [10:58:45]Content-Length: 679 [10:58:45]Content-Type: application/json [10:58:45] [10:58:45]POST finish read [10:58:45]Found Content-Length = 679 [10:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:45]execute_script... [10:58:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:45]POST & json_proto [10:58:45]process_json_proto [10:58:45]json parsed OK: [10:58:45]protocol is kg_v1.0 [10:58:45]action value=close_receipt [10:58:45]process_action close_receipt [10:58:45]cmd_close_receipt [10:58:45]MH_GetDate [10:58:45]Write to MH i2c: F0 00 00 BB 02 AC [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: F0 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: F0 09 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: F0 09 00 BB 02 00 E5 1C 1E 67 47 1B 1E 67 22 [10:58:45]GetLastDocTimeStamp 1730026708 [10:58:45]current date 1730026725 [10:58:45]FM_GetShiftState [10:58:45]SAM_PROTO_GetShiftState [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 13 01 00 [10:58:45]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0E 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3D [10:58:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_GetShiftState done [10:58:45]FM_GetShiftState done [10:58:45]opened in 1729987312 [10:58:45]opened+sec_in_day 1730073712 [10:58:45]quantity*price = 150037 [10:58:45]sum+1 = 150039 [10:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 158 27.10.2024 10:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201866 ФПД: 106735884064744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105845&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201866&fm=106735884064744&tin=02508201610067®Number=0000000000091777&sum=150000 [10:58:46]StoreToDocumentArchive [10:58:46]shift 544 fd 201866 [10:58:46]save to /storage/0544/doc_00201866 [10:58:46]save last doc name /storage/0544/doc_00201866 to /storage/kkm_last_doc_name [10:58:46]save OK [10:58:46]Clear old archive folders... [10:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:58:46]tlvbuf is 0040A920 [10:58:46]SAM_PROTO_ClearQueue [10:58:46]wFMCommunicate request_size=4 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 09 00 00 [10:58:46]Write to MH i2c: E2 08 00 C9 02 80 09 00 00 00 00 00 00 3D [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [10:58:46]RAPDU: 90 00 [10:58:46]wFMCommunicate OK [10:58:46]SAM_PROTO_ClearQueue done [10:58:46]KKMCreateOFDPacket [10:58:46]OFDProtocolAddRootSTLVToBuf [10:58:46]FM_MakeSignedData [10:58:46]FM_MakeSignedData [10:58:46]SAM_PROTO_SignData [10:58:46]wFMCommunicate request_size=4 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 0D 01 02 [10:58:46]Write to MH i2c: E2 08 00 CA 02 80 0D 01 02 00 00 00 00 45 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [10:58:46]RAPDU: 90 00 [10:58:46]wFMCommunicate OK [10:58:46]wFMCommunicate request_size=255 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 E5 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 14 03 00 35 04 06 00 61 13 62 74 [10:58:46]Write to MH i2c: E2 02 01 CB 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 E5 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 14 03 00 35 04 06 00 61 13 62 74 00 00 77 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [10:58:46]RAPDU: 90 00 [10:58:46]wFMCommunicate OK [10:58:46]wFMCommunicate request_size=7 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 0D 02 02 02 57 E8 [10:58:46]Write to MH i2c: E2 0A 00 CC 02 80 0D 02 02 02 00 57 E8 00 00 8B [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [10:58:46]RAPDU: 90 00 [10:58:46]wFMCommunicate OK [10:58:46]wFMCommunicate request_size=4 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 0D 03 02 [10:58:46]Write to MH i2c: E2 08 00 CD 02 80 0D 03 02 00 00 00 00 4A [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 0B 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 0B 00 CD 02 00 E2 44 B8 DF AD CC 17 C1 90 00 59 [10:58:46]RAPDU: E2 44 B8 DF AD CC 17 C1 90 00 [10:58:46]wFMCommunicate OK [10:58:46]SAM_PROTO_SignData done [10:58:46]FM_MakeSignedData done [10:58:46]CreateOFDProtocolMessage [10:58:46]wFMCommunicate request_size=4 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 11 00 00 [10:58:46]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 17 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 17 00 CE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [10:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:58:46]wFMCommunicate OK [10:58:46]CreateOFDProtocolMessage done [10:58:46]OFDSenderStorePacket 201866 [10:58:46]StoreOFDPacket docnum=201866 [10:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 4C 8F 04 01 DA BD 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 E5 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 14 03 00 35 04 06 00 61 13 62 74 57 E8 E2 44 B8 DF AD CC 17 C1 [10:58:46]CheckFolder [10:58:46]dirname=/storage/ofd_packets [10:58:46]CheckFolder done [10:58:46]ProducePacketName [10:58:46]name=ofd_packets/00201866 [10:58:46]NVStorageSaveData ofd_packets/00201866 [10:58:46]File name is /storage/ofd_packets/00201866 [10:58:46]Write 298 bytes [10:58:46]NVStorageSaveData done [10:58:46]OFDSenderStorePacket done [10:58:46]KKMCreateOFDPacket done [10:58:46]NVStorageSaveData kkm_last_timestamp [10:58:46]File name is /storage/kkm_last_timestamp [10:58:46]Write 4 bytes [10:58:46]NVStorageSaveData done [10:58:46]ExternCall_PrintAddStr [10:58:46]wPrintStart [10:58:46]Write to MH i2c: 01 00 00 CF 02 D1 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: 01 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: 01 07 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [10:58:46]RasterBufferAndPrint [10:58:46]line Счет N : (1)449626 [10:58:46]line ИНН: 02508201610067 [10:58:46]line Контрольно-Кассовый Чек [10:58:46]line ПРОДАЖА [10:58:46]line ТРК (МРК, ГНК) : 21 [10:58:46]line Товар: 2710194210 [10:58:46]line ДТ-К-2 [10:58:46]line 19.690 * 76.20 [10:58:46]line = 1500.38 [10:58:46]line НДС 12% НСП 1% [10:58:46]line > о реализуемом товаре [10:58:46]line ОКРУГЛЕНИЕ: -0.38 [10:58:46]line ИТОГО: 1500.00 [10:58:46]line Внесено: 1500.00 [10:58:46]line СДАЧА: 0.00 [10:58:46]line НСП 1% : 13.28 [10:58:46]line НДС 12% : 159.33 [10:58:46]line Наличными: 1500.00 [10:58:46]line Безнал.: 0.00 [10:58:46]line Место: АЗС № 171 "Партнер Нефть" [10:58:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:58:46]line СНО: Общий режим [10:58:46]line Чек 158 27.10.2024 10:58 [10:58:46]line Смена: 544 ФФД: 1.0 [10:58:46]line ЗНМ: 0300000109 [10:58:46]line РНМ: 0000000000091777 [10:58:46]line Версия ККМ: 001 [10:58:46]line ФМ: 0000000000871756 [10:58:46]line ФД: 201866 [10:58:46]line ФПД: 106735884064744 [10:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105845&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201866&fm=106735884064744&tin=02508201610067®Number=0000000000091777&sum=150000 [10:58:47]OFD Sender: Processing packet 201866 [packets to send 112, broken 111] [10:58:47]ProducePacketName [10:58:47]name=ofd_packets/00201866 [10:58:47]OFD Sender: To server: pG, [10:58:47]CommunicateWithHost lk.salyk.kg:30040 [10:58:47]ConnectInit lk.salyk.kg [10:58:47]written 0, free lines is 4095 [10:58:47]Connected sock=10 [10:58:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 4C 8F 04 01 DA BD 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 E5 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 14 03 00 35 04 06 00 61 13 62 74 57 E8 E2 44 B8 DF AD CC 17 C1 [10:58:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FE 5E 47 00 EF B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 14 03 00 F4 03 04 00 9F C8 1D 67 B6 04 01 00 00 C8 3C 7B 51 0C 39 3B 01 [10:58:47]CommunicateWithHost err = 0 [10:58:47]CheckOFDResponse [10:58:47]1017 (14) - 77093643461234 [10:58:47]1041 (16) - 0000000000871756 [10:58:47]1040 (4) - 201866 [10:58:47]1012 (4) - 27.10.2024 04:59 [10:58:47]1206 (1) - 0 [10:58:47]OFD Sender: Remove packet 201866 [10:58:47]ProducePacketName [10:58:47]name=ofd_packets/00201866 [10:58:47]NVStorageDeleteData [10:58:47]Write to MH i2c: 01 00 00 FA 02 FC [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 07 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 8D 0C 9C [10:58:47]RasterBufferAndPrint [10:58:47]line [10:58:47]line [10:58:47]line [10:58:47]line [10:58:47]line [10:58:47]written 0, free lines is 3218 [10:58:47]MH_Cut [10:58:47]Write to MH i2c: D1 01 00 01 03 01 D6 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: D1 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: D1 01 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: D1 01 00 01 03 00 D5 [10:58:47]Write to MH i2c: 01 00 00 02 03 05 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:48]OFD Sender: No OFD packet to send [10:58:48]*** Cut start [10:58:48]*** Purtial cut [10:58:48]*** Stage 1: CUTSNS_PIN = 1 [10:58:48]Read from MH i2c: 01 [10:58:48]MH_I2C_Read... [10:58:48]*** Stop cut motor [10:58:48]*** Cut end [10:58:48]Read from MH i2c: 01 07 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 FF 0F 1A [10:58:48]process_action close_receipt done [10:58:48]requested_data is exist [10:58:48]produce_requested_data [10:58:48]requested_item fm.sn is exist - process it [10:58:48]wFMCommunicate request_size=4 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 11 00 00 [10:58:48]Write to MH i2c: E2 08 00 03 03 80 11 00 00 00 00 00 00 80 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:49]Read from MH i2c: E2 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 17 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 17 00 03 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D5 [10:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:58:49]wFMCommunicate OK [10:58:49]requested_item fd.num is exist - process it [10:58:49]SAM_PROTO_GetFieldsCounters [10:58:49]wFMCommunicate request_size=4 [10:58:49]MH_SAM_APDU [10:58:49]CAPDU: 80 13 00 00 [10:58:49]Write to MH i2c: E2 08 00 04 03 80 13 00 00 00 00 00 00 83 [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:49]Read from MH i2c: E2 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 62 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 62 00 04 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8A 14 03 00 0E 04 04 00 20 02 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 49 [10:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8A 14 03 00 0E 04 04 00 20 02 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 [10:58:49]wFMCommunicate OK [10:58:49]SAM_PROTO_GetFieldsCounters done [10:58:49]requested_item shift.num is exist - process it [10:58:49]requested_item shift.opened is exist - process it [10:58:49]req_shift_opened [10:58:49]FM_GetShiftState [10:58:49]SAM_PROTO_GetShiftState [10:58:49]wFMCommunicate request_size=4 [10:58:49]MH_SAM_APDU [10:58:49]CAPDU: 80 13 01 00 [10:58:49]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:49]Read from MH i2c: E2 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 0E 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 87 [10:58:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:58:49]wFMCommunicate OK [10:58:49]SAM_PROTO_GetShiftState done [10:58:49]FM_GetShiftState done [10:58:49]req_shift_opened done [10:58:49]requested_item shift.open_date is exist - process it [10:58:49]req_shift_open_date [10:58:49]req_shift_open_date done [10:58:49]produce_requested_data done [10:58:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201866,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:58:49]process_action_free close_receipt [10:58:49]json_value_free [10:58:49]json_value_free done [10:58:49]process_json_proto returns [10:58:49]Send response to host [10:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201866,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:58:49]free response buf [10:58:49]execute_script done [10:58:49]execute_script returns [10:58:49]free content buf [10:58:49]Sock 9.Close socket [10:58:49]Sock 9.Thread stoped [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:58:59]accept exits with 7 [10:58:59]New connection [10:58:59]New thread 3066805604 created [10:58:59]Thread 3066948964 joined [10:58:59]Waiting for new connection... [10:58:59] Sock 7.Parse request [10:58:59]Sock 7.Check first char [10:58:59]Sock 7.First char is OK [10:58:59]request: POST /json_proto HTTP/1.0 [10:58:59]Method: POST [10:58:59]URL: /json_proto [10:58:59]Method is POST - this is cgi request [10:58:59]url: /json_proto [10:58:59]query_string will be loaded in cgi processing [10:58:59]execute_cgi json_proto POST (null) [10:58:59]execute_cgi path=json_proto method=POST [10:58:59]POST find Content-Length [10:58:59]Host: 172.17.63.195:8080 [10:58:59]Content-Length: 674 [10:58:59]Content-Type: application/json [10:58:59] [10:58:59]POST finish read [10:58:59]Found Content-Length = 674 [10:58:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:59]execute_script... [10:58:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:59]POST & json_proto [10:58:59]process_json_proto [10:58:59]json parsed OK: [10:58:59]protocol is kg_v1.0 [10:58:59]action value=close_receipt [10:58:59]process_action close_receipt [10:58:59]cmd_close_receipt [10:58:59]MH_GetDate [10:58:59]Write to MH i2c: F0 00 00 06 03 F8 [10:58:59]Write i2c OK [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: F0 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: F0 09 00 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: F0 09 00 06 03 00 F3 1C 1E 67 47 1B 1E 67 7C [10:58:59]GetLastDocTimeStamp 1730026725 [10:58:59]current date 1730026739 [10:58:59]FM_GetShiftState [10:58:59]SAM_PROTO_GetShiftState [10:58:59]wFMCommunicate request_size=4 [10:58:59]MH_SAM_APDU [10:58:59]CAPDU: 80 13 01 00 [10:58:59]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [10:58:59]Write i2c OK [10:58:59]MH_I2C_Read... [10:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:59]Read from MH i2c: E2 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: E2 0E 00 [10:58:59]MH_I2C_Read... [10:58:59]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 89 [10:58:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:58:59]wFMCommunicate OK [10:58:59]SAM_PROTO_GetShiftState done [10:58:59]FM_GetShiftState done [10:58:59]opened in 1729987312 [10:58:59]opened+sec_in_day 1730073712 [10:58:59]quantity*price = 50063 [10:58:59]sum+1 = 50064 [10:58:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 159 27.10.2024 10:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201867 ФПД: 62643520842688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105859&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201867&fm=62643520842688&tin=02508201610067®Number=0000000000091777&sum=50000 [10:59:00]StoreToDocumentArchive [10:59:00]shift 544 fd 201867 [10:59:00]save to /storage/0544/doc_00201867 [10:59:00]save last doc name /storage/0544/doc_00201867 to /storage/kkm_last_doc_name [10:59:00]save OK [10:59:00]Clear old archive folders... [10:59:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:59:00]tlvbuf is 0047F1A0 [10:59:00]SAM_PROTO_ClearQueue [10:59:00]wFMCommunicate request_size=4 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 09 00 00 [10:59:00]Write to MH i2c: E2 08 00 14 03 80 09 00 00 00 00 00 00 89 [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 03 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [10:59:00]RAPDU: 90 00 [10:59:00]wFMCommunicate OK [10:59:00]SAM_PROTO_ClearQueue done [10:59:00]KKMCreateOFDPacket [10:59:00]OFDProtocolAddRootSTLVToBuf [10:59:00]FM_MakeSignedData [10:59:00]FM_MakeSignedData [10:59:00]SAM_PROTO_SignData [10:59:00]wFMCommunicate request_size=4 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 0D 01 02 [10:59:00]Write to MH i2c: E2 08 00 15 03 80 0D 01 02 00 00 00 00 91 [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 03 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [10:59:00]RAPDU: 90 00 [10:59:00]wFMCommunicate OK [10:59:00]wFMCommunicate request_size=255 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F3 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 14 03 00 35 04 06 00 38 F9 54 CE [10:59:00]Write to MH i2c: E2 02 01 16 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F3 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 14 03 00 35 04 06 00 38 F9 54 CE 00 00 ED [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 03 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [10:59:00]RAPDU: 90 00 [10:59:00]wFMCommunicate OK [10:59:00]wFMCommunicate request_size=7 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 0D 02 02 02 AB C0 [10:59:00]Write to MH i2c: E2 0A 00 17 03 80 0D 02 02 02 00 AB C0 00 00 03 [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 03 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [10:59:00]RAPDU: 90 00 [10:59:00]wFMCommunicate OK [10:59:00]wFMCommunicate request_size=4 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 0D 03 02 [10:59:00]Write to MH i2c: E2 08 00 18 03 80 0D 03 02 00 00 00 00 96 [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 0B 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 0B 00 18 03 00 4A CF 62 10 47 BF A0 3F 90 00 07 [10:59:00]RAPDU: 4A CF 62 10 47 BF A0 3F 90 00 [10:59:00]wFMCommunicate OK [10:59:00]SAM_PROTO_SignData done [10:59:00]FM_MakeSignedData done [10:59:00]CreateOFDProtocolMessage [10:59:00]wFMCommunicate request_size=4 [10:59:00]MH_SAM_APDU [10:59:00]CAPDU: 80 11 00 00 [10:59:00]Write to MH i2c: E2 08 00 19 03 80 11 00 00 00 00 00 00 96 [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:00]Read from MH i2c: E2 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 17 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: E2 17 00 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [10:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:59:00]wFMCommunicate OK [10:59:00]CreateOFDProtocolMessage done [10:59:00]OFDSenderStorePacket 201867 [10:59:00]StoreOFDPacket docnum=201867 [10:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8E 56 04 01 2A DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F3 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 14 03 00 35 04 06 00 38 F9 54 CE AB C0 4A CF 62 10 47 BF A0 3F [10:59:00]CheckFolder [10:59:00]dirname=/storage/ofd_packets [10:59:00]CheckFolder done [10:59:00]ProducePacketName [10:59:00]name=ofd_packets/00201867 [10:59:00]NVStorageSaveData ofd_packets/00201867 [10:59:00]File name is /storage/ofd_packets/00201867 [10:59:00]Write 298 bytes [10:59:00]NVStorageSaveData done [10:59:00]OFDSenderStorePacket done [10:59:00]KKMCreateOFDPacket done [10:59:00]NVStorageSaveData kkm_last_timestamp [10:59:00]File name is /storage/kkm_last_timestamp [10:59:00]Write 4 bytes [10:59:00]NVStorageSaveData done [10:59:00]ExternCall_PrintAddStr [10:59:00]wPrintStart [10:59:00]Write to MH i2c: 01 00 00 1A 03 1D [10:59:00]Write i2c OK [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: 01 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: 01 07 00 [10:59:00]MH_I2C_Read... [10:59:00]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FF 0F 32 [10:59:00]RasterBufferAndPrint [10:59:00]line Счет N : (1)449627 [10:59:00]line ИНН: 02508201610067 [10:59:00]line Контрольно-Кассовый Чек [10:59:00]line ПРОДАЖА [10:59:00]line ТРК (МРК, ГНК) : 43 [10:59:00]line Товар: 2710194210 [10:59:00]line ДТ-К-2 [10:59:00]line 6.570 * 76.20 [10:59:00]line = 500.63 [10:59:00]line НДС 12% НСП 1% [10:59:00]line > о реализуемом товаре [10:59:00]line ОКРУГЛЕНИЕ: -0.63 [10:59:00]line ИТОГО: 500.00 [10:59:00]line Внесено: 500.00 [10:59:00]line СДАЧА: 0.00 [10:59:00]line НСП 1% : 4.43 [10:59:00]line НДС 12% : 53.16 [10:59:00]line Наличными: 500.00 [10:59:00]line Безнал.: 0.00 [10:59:00]line Место: АЗС № 171 "Партнер Нефть" [10:59:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:59:00]line СНО: Общий режим [10:59:00]line Чек 159 27.10.2024 10:58 [10:59:00]line Смена: 544 ФФД: 1.0 [10:59:00]line ЗНМ: 0300000109 [10:59:00]line РНМ: 0000000000091777 [10:59:00]line Версия ККМ: 001 [10:59:00]line ФМ: 0000000000871756 [10:59:00]line ФД: 201867 [10:59:00]line ФПД: 62643520842688 [10:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105859&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201867&fm=62643520842688&tin=02508201610067®Number=0000000000091777&sum=50000 [10:59:01]written 0, free lines is 4095 [10:59:01]OFD Sender: Processing packet 201867 [packets to send 112, broken 111] [10:59:01]ProducePacketName [10:59:01]name=ofd_packets/00201867 [10:59:01]OFD Sender: To server: pG, [10:59:01]CommunicateWithHost lk.salyk.kg:30040 [10:59:01]ConnectInit lk.salyk.kg [10:59:01]Connected sock=10 [10:59:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8E 56 04 01 2A DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 F3 1C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 14 03 00 35 04 06 00 38 F9 54 CE AB C0 4A CF 62 10 47 BF A0 3F [10:59:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F 5E 47 00 46 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 14 03 00 F4 03 04 00 AD C8 1D 67 B6 04 01 00 00 88 17 43 B7 0E 60 78 B6 [10:59:01]CommunicateWithHost err = 0 [10:59:01]CheckOFDResponse [10:59:01]1017 (14) - 77093643461234 [10:59:01]1041 (16) - 0000000000871756 [10:59:01]1040 (4) - 201867 [10:59:01]1012 (4) - 27.10.2024 04:59 [10:59:01]1206 (1) - 0 [10:59:01]OFD Sender: Remove packet 201867 [10:59:01]ProducePacketName [10:59:01]name=ofd_packets/00201867 [10:59:01]NVStorageDeleteData [10:59:01]Write to MH i2c: 01 00 00 45 03 48 [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: 01 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: 01 07 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 95 0C F0 [10:59:01]RasterBufferAndPrint [10:59:01]line [10:59:01]line [10:59:01]line [10:59:01]line [10:59:01]line [10:59:01]written 0, free lines is 3227 [10:59:01]MH_Cut [10:59:01]Write to MH i2c: D1 01 00 4C 03 01 21 [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: D1 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: D1 01 00 [10:59:01]MH_I2C_Read... [10:59:01]Read from MH i2c: D1 01 00 4C 03 00 20 [10:59:01]Write to MH i2c: 01 00 00 4D 03 50 [10:59:01]Write i2c OK [10:59:01]MH_I2C_Read... [10:59:02]OFD Sender: No OFD packet to send [10:59:02]*** Cut start [10:59:02]*** Purtial cut [10:59:02]*** Stage 1: CUTSNS_PIN = 1 [10:59:02]Read from MH i2c: 01 [10:59:02]MH_I2C_Read... [10:59:02]*** Stop cut motor [10:59:02]*** Cut end [10:59:02]Read from MH i2c: 01 07 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [10:59:02]process_action close_receipt done [10:59:02]requested_data is exist [10:59:02]produce_requested_data [10:59:02]requested_item fm.sn is exist - process it [10:59:02]wFMCommunicate request_size=4 [10:59:02]MH_SAM_APDU [10:59:02]CAPDU: 80 11 00 00 [10:59:02]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:02]Read from MH i2c: E2 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: E2 17 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 20 [10:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:59:02]wFMCommunicate OK [10:59:02]requested_item fd.num is exist - process it [10:59:02]SAM_PROTO_GetFieldsCounters [10:59:02]wFMCommunicate request_size=4 [10:59:02]MH_SAM_APDU [10:59:02]CAPDU: 80 13 00 00 [10:59:02]Write to MH i2c: E2 08 00 4F 03 80 13 00 00 00 00 00 00 CE [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:02]Read from MH i2c: E2 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: E2 62 00 [10:59:02]MH_I2C_Read... [10:59:02]Read from MH i2c: E2 62 00 4F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8B 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [10:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8B 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:02]wFMCommunicate OK [10:59:02]SAM_PROTO_GetFieldsCounters done [10:59:02]requested_item shift.num is exist - process it [10:59:02]requested_item shift.opened is exist - process it [10:59:02]req_shift_opened [10:59:02]FM_GetShiftState [10:59:02]SAM_PROTO_GetShiftState [10:59:02]wFMCommunicate request_size=4 [10:59:02]MH_SAM_APDU [10:59:02]CAPDU: 80 13 01 00 [10:59:02]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [10:59:02]Write i2c OK [10:59:02]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 [10:59:03]MH_I2C_Read... [10:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:03]Read from MH i2c: E2 0E 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D2 [10:59:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:59:03]wFMCommunicate OK [10:59:03]SAM_PROTO_GetShiftState done [10:59:03]FM_GetShiftState done [10:59:03]req_shift_opened done [10:59:03]requested_item shift.open_date is exist - process it [10:59:03]req_shift_open_date [10:59:03]req_shift_open_date done [10:59:03]produce_requested_data done [10:59:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201867,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:59:03]process_action_free close_receipt [10:59:03]json_value_free [10:59:03]json_value_free done [10:59:03]process_json_proto returns [10:59:03]Send response to host [10:59:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201867,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:59:03]free response buf [10:59:03]execute_script done [10:59:03]execute_script returns [10:59:03]free content buf [10:59:03]Sock 7.Close socket [10:59:03]Sock 7.Thread stoped [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:19]int [10:59:19]Write to MH i2c: 01 00 00 51 03 54 [10:59:19]*** FLAG_PRN_PAP1 set [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 51 03 00 01 00 00 00 FF 0F 6A [10:59:19]state=0 [10:59:19]No paper [10:59:19]int [10:59:19]Write to MH i2c: 01 00 00 52 03 55 [10:59:19]*** FLAG_PRN_PAP2 set [10:59:19]Write i2c OK [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 [10:59:19]MH_I2C_Read... [10:59:19]Read from MH i2c: 01 07 00 52 03 00 03 00 00 00 FF 0F 6D [10:59:19]state=0 [10:59:19]No paper [10:59:19]Cover opened [10:59:22]OFD Sender: No OFD packet to send [10:59:24]Write to MH i2c: 01 00 00 53 03 56 [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: 01 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: 01 07 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: 01 07 00 53 03 00 03 00 00 00 FF 0F 6E [10:59:24]state=3 [10:59:24]No paper [10:59:24]Cover opened [10:59:27]OFD Sender: No OFD packet to send [10:59:29]Write to MH i2c: 01 00 00 54 03 57 [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: 01 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: 01 07 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: 01 07 00 54 03 00 03 00 00 00 FF 0F 6F [10:59:29]state=3 [10:59:29]No paper [10:59:29]Cover opened [10:59:29]accept exits with 9 [10:59:29]New connection [10:59:29]New thread 3066948964 created [10:59:29]Thread 3066805604 joined [10:59:29]Waiting for new connection... [10:59:29] Sock 9.Parse request [10:59:29]Sock 9.Check first char [10:59:29]Sock 9.First char is OK [10:59:29]request: POST /json_proto HTTP/1.0 [10:59:29]Method: POST [10:59:29]URL: /json_proto [10:59:29]Method is POST - this is cgi request [10:59:29]url: /json_proto [10:59:29]query_string will be loaded in cgi processing [10:59:29]execute_cgi json_proto POST (null) [10:59:29]execute_cgi path=json_proto method=POST [10:59:29]POST find Content-Length [10:59:29]Host: 172.17.63.195:8080 [10:59:29]Content-Length: 674 [10:59:29]Content-Type: application/json [10:59:29] [10:59:29]POST finish read [10:59:29]Found Content-Length = 674 [10:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:29]execute_script... [10:59:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:29]POST & json_proto [10:59:29]process_json_proto [10:59:29]json parsed OK: [10:59:29]protocol is kg_v1.0 [10:59:29]action value=close_receipt [10:59:29]process_action close_receipt [10:59:29]cmd_close_receipt [10:59:29]MH_GetDate [10:59:29]Write to MH i2c: F0 00 00 55 03 47 [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: F0 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: F0 09 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: F0 09 00 55 03 00 11 1D 1E 67 47 1B 1E 67 EA [10:59:29]GetLastDocTimeStamp 1730026739 [10:59:29]current date 1730026769 [10:59:29]FM_GetShiftState [10:59:29]SAM_PROTO_GetShiftState [10:59:29]wFMCommunicate request_size=4 [10:59:29]MH_SAM_APDU [10:59:29]CAPDU: 80 13 01 00 [10:59:29]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:29]Read from MH i2c: E2 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 0E 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [10:59:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:59:29]wFMCommunicate OK [10:59:29]SAM_PROTO_GetShiftState done [10:59:29]FM_GetShiftState done [10:59:29]opened in 1729987312 [10:59:29]opened+sec_in_day 1730073712 [10:59:29]quantity*price = 50063 [10:59:29]sum+1 = 50064 [10:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 160 27.10.2024 10:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201868 ФПД: 269315475024561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201868&fm=269315475024561&tin=02508201610067®Number=0000000000091777&sum=50000 [10:59:30]StoreToDocumentArchive [10:59:30]shift 544 fd 201868 [10:59:30]save to /storage/0544/doc_00201868 [10:59:30]save last doc name /storage/0544/doc_00201868 to /storage/kkm_last_doc_name [10:59:30]save OK [10:59:30]Clear old archive folders... [10:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:59:30]tlvbuf is 00426070 [10:59:30]SAM_PROTO_ClearQueue [10:59:30]wFMCommunicate request_size=4 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 09 00 00 [10:59:30]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [10:59:31]RAPDU: 90 00 [10:59:31]wFMCommunicate OK [10:59:31]SAM_PROTO_ClearQueue done [10:59:31]KKMCreateOFDPacket [10:59:31]OFDProtocolAddRootSTLVToBuf [10:59:31]FM_MakeSignedData [10:59:31]FM_MakeSignedData [10:59:31]SAM_PROTO_SignData [10:59:31]wFMCommunicate request_size=4 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 0D 01 02 [10:59:31]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [10:59:31]RAPDU: 90 00 [10:59:31]wFMCommunicate OK [10:59:31]wFMCommunicate request_size=255 [10:59:31]MH_SAM_APDU [10:59: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 11 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 14 03 00 35 04 06 00 F4 F0 E5 38 [10:59:31]Write to MH i2c: E2 02 01 65 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 11 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 14 03 00 35 04 06 00 F4 F0 E5 38 00 00 0B [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [10:59:31]RAPDU: 90 00 [10:59:31]wFMCommunicate OK [10:59:31]wFMCommunicate request_size=7 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 0D 02 02 02 AA B1 [10:59:31]Write to MH i2c: E2 0A 00 66 03 80 0D 02 02 02 00 AA B1 00 00 42 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [10:59:31]RAPDU: 90 00 [10:59:31]wFMCommunicate OK [10:59:31]wFMCommunicate request_size=4 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 0D 03 02 [10:59:31]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 0B 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 0B 00 67 03 00 8F B2 32 58 88 92 FE 00 90 00 C9 [10:59:31]RAPDU: 8F B2 32 58 88 92 FE 00 90 00 [10:59:31]wFMCommunicate OK [10:59:31]SAM_PROTO_SignData done [10:59:31]FM_MakeSignedData done [10:59:31]CreateOFDProtocolMessage [10:59:31]wFMCommunicate request_size=4 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 11 00 00 [10:59:31]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 17 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3A [10:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:59:31]wFMCommunicate OK [10:59:31]CreateOFDProtocolMessage done [10:59:31]OFDSenderStorePacket 201868 [10:59:31]StoreOFDPacket docnum=201868 [10:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 99 6F 04 01 6E 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 11 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 14 03 00 35 04 06 00 F4 F0 E5 38 AA B1 8F B2 32 58 88 92 FE 00 [10:59:31]CheckFolder [10:59:31]dirname=/storage/ofd_packets [10:59:31]CheckFolder done [10:59:31]ProducePacketName [10:59:31]name=ofd_packets/00201868 [10:59:31]NVStorageSaveData ofd_packets/00201868 [10:59:31]File name is /storage/ofd_packets/00201868 [10:59:31]Write 298 bytes [10:59:31]NVStorageSaveData done [10:59:31]OFDSenderStorePacket done [10:59:31]KKMCreateOFDPacket done [10:59:31]NVStorageSaveData kkm_last_timestamp [10:59:31]File name is /storage/kkm_last_timestamp [10:59:31]Write 4 bytes [10:59:31]NVStorageSaveData done [10:59:31]ExternCall_PrintAddStr [10:59:31]wPrintStart [10:59:31]Write to MH i2c: 01 00 00 69 03 6C [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 07 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 07 00 69 03 00 03 00 00 00 FF 0F 84 [10:59:31]RasterBufferAndPrint [10:59:31]line Счет N : (1)449629 [10:59:31]line ИНН: 02508201610067 [10:59:31]line Контрольно-Кассовый Чек [10:59:31]line ПРОДАЖА [10:59:31]line ТРК (МРК, ГНК) : 11 [10:59:31]line Товар: 2710194210 [10:59:31]line ДТ-К-2 [10:59:31]line 6.570 * 76.20 [10:59:31]line = 500.63 [10:59:31]line НДС 12% НСП 1% [10:59:31]line > о реализуемом товаре [10:59:31]line ОКРУГЛЕНИЕ: -0.63 [10:59:31]line ИТОГО: 500.00 [10:59:31]line Внесено: 500.00 [10:59:31]line СДАЧА: 0.00 [10:59:31]line НСП 1% : 4.43 [10:59:31]line НДС 12% : 53.16 [10:59:31]line Наличными: 500.00 [10:59:31]line Безнал.: 0.00 [10:59:31]line Место: АЗС № 171 "Партнер Нефть" [10:59:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:59:31]line СНО: Общий режим [10:59:31]line Чек 160 27.10.2024 10:59 [10:59:31]line Смена: 544 ФФД: 1.0 [10:59:31]line ЗНМ: 0300000109 [10:59:31]line РНМ: 0000000000091777 [10:59:31]line Версия ККМ: 001 [10:59:31]line ФМ: 0000000000871756 [10:59:31]line ФД: 201868 [10:59:31]line ФПД: 269315475024561 [10:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201868&fm=269315475024561&tin=02508201610067®Number=0000000000091777&sum=50000 [10:59:31]OFD Sender: Processing packet 201868 [packets to send 112, broken 111] [10:59:31]ProducePacketName [10:59:31]name=ofd_packets/00201868 [10:59:31]OFD Sender: To server: pG, [10:59:31]CommunicateWithHost lk.salyk.kg:30040 [10:59:31]ConnectInit lk.salyk.kg [10:59:31]written 0, free lines is 4095 [10:59:31]*** FLAG_PRN_PAP2 reset [10:59:31]*** FLAG_PRN_PAP1 reset [10:59:31]int [10:59:31]Write to MH i2c: 01 00 00 6B 03 6E [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: DD [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: DD [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: DD 05 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: DD 05 00 [10:59:31]answer for other command [DD] [10:59:31]MH Int Process stopped [10:59:31]Read from MH i2c: DD 05 00 6B 03 00 1E 00 E1 0F 5D [10:59:31]answer with wrong packet_num 036B - expected 036C [10:59:31]process_action_free close_receipt [10:59:31]json_value_free [10:59:31]json_value_free done [10:59:31]process_json_proto returns [10:59:31]Send response to host [10:59:31]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [10:59:31]free response buf [10:59:31]execute_script done [10:59:31]execute_script returns [10:59:31]free content buf [10:59:31]Sock 9.Close socket [10:59:31]Sock 9.Thread stoped [10:59:31]Connected sock=6 [10:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 99 6F 04 01 6E 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 11 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 14 03 00 35 04 06 00 F4 F0 E5 38 AA B1 8F B2 32 58 88 92 FE 00 [10:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 23 07 47 00 64 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 14 03 00 F4 03 04 00 CC C8 1D 67 B6 04 01 00 00 2C 52 43 73 B1 01 B3 E3 [10:59:32]CommunicateWithHost err = 0 [10:59:32]CheckOFDResponse [10:59:32]1017 (14) - 77093643461234 [10:59:32]1041 (16) - 0000000000871756 [10:59:32]1040 (4) - 201868 [10:59:32]1012 (4) - 27.10.2024 04:59 [10:59:32]1206 (1) - 0 [10:59:32]OFD Sender: Remove packet 201868 [10:59:32]ProducePacketName [10:59:32]name=ofd_packets/00201868 [10:59:32]NVStorageDeleteData [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:41]accept exits with 7 [10:59:41]New connection [10:59:41]New thread 3066805604 created [10:59:41]Thread 3066948964 joined [10:59:41]Waiting for new connection... [10:59:41] Sock 7.Parse request [10:59:41]Sock 7.Check first char [10:59:41]Sock 7.First char is OK [10:59:41]request: POST /json_proto HTTP/1.0 [10:59:41]Method: POST [10:59:41]URL: /json_proto [10:59:41]Method is POST - this is cgi request [10:59:41]url: /json_proto [10:59:41]query_string will be loaded in cgi processing [10:59:41]execute_cgi json_proto POST (null) [10:59:41]execute_cgi path=json_proto method=POST [10:59:41]POST find Content-Length [10:59:41]Host: 172.17.63.195:8080 [10:59:41]Content-Length: 215 [10:59:41]Content-Type: application/json [10:59:41] [10:59:41]POST finish read [10:59:41]Found Content-Length = 215 [10:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:41]execute_script... [10:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:41]POST & json_proto [10:59:41]process_json_proto [10:59:41]json parsed OK: [10:59:41]protocol is kg_v1.0 [10:59:41]action value=get_value [10:59:41]process_action get_value [10:59:41]cmd_get_value [10:59:41]process_action get_value done [10:59:41]requested_data is exist [10:59:41]produce_requested_data [10:59:41]requested_item kkm.sn is exist - process it [10:59:41]requested_item kkm.ver is exist - process it [10:59:41]requested_item fm.sn is exist - process it [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 11 00 00 [10:59:41]Write to MH i2c: E2 08 00 6D 03 80 11 00 00 00 00 00 00 EA [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 17 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 17 00 6D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [10:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:59:41]wFMCommunicate OK [10:59:41]requested_item fd.num is exist - process it [10:59:41]SAM_PROTO_GetFieldsCounters [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 13 00 00 [10:59:41]Write to MH i2c: E2 08 00 6E 03 80 13 00 00 00 00 00 00 ED [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:41]Read from MH i2c: E2 62 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 62 00 6E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8C 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [10:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8C 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_GetFieldsCounters done [10:59:41]requested_item shift.num is exist - process it [10:59:41]requested_item shift.opened is exist - process it [10:59:41]req_shift_opened [10:59:41]FM_GetShiftState [10:59:41]SAM_PROTO_GetShiftState [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 13 01 00 [10:59:41]Write to MH i2c: E2 08 00 6F 03 80 13 01 00 00 00 00 00 EF [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:41]Read from MH i2c: E2 0E 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0E 00 6F 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F1 [10:59:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_GetShiftState done [10:59:41]FM_GetShiftState done [10:59:41]req_shift_opened done [10:59:41]requested_item shift.open_date is exist - process it [10:59:41]req_shift_open_date [10:59:41]req_shift_open_date done [10:59:41]produce_requested_data done [10:59:41]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201868,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:59:41]process_action_free get_value [10:59:41]json_value_free [10:59:41]json_value_free done [10:59:41]process_json_proto returns [10:59:41]Send response to host [10:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201868,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:59:41]free response buf [10:59:41]execute_script done [10:59:41]execute_script returns [10:59:41]free content buf [10:59:41]Sock 7.Close socket [10:59:41]Sock 7.Thread stoped [10:59:41]accept exits with 5 [10:59:41]New connection [10:59:41]New thread 3066948964 created [10:59:41]Thread 3066805604 joined [10:59:41]Waiting for new connection... [10:59:41] Sock 5.Parse request [10:59:41]Sock 5.Check first char [10:59:41]Sock 5.First char is OK [10:59:41]request: POST /json_proto HTTP/1.0 [10:59:41]Method: POST [10:59:41]URL: /json_proto [10:59:41]Method is POST - this is cgi request [10:59:41]url: /json_proto [10:59:41]query_string will be loaded in cgi processing [10:59:41]execute_cgi json_proto POST (null) [10:59:41]execute_cgi path=json_proto method=POST [10:59:41]POST find Content-Length [10:59:41]Host: 172.17.63.195:8080 [10:59:41]Content-Length: 331 [10:59:41]Content-Type: application/json [10:59:41] [10:59:41]POST finish read [10:59:41]Found Content-Length = 331 [10:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:59:41]execute_script... [10:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:59:41]POST & json_proto [10:59:41]process_json_proto [10:59:41]json parsed OK: [10:59:41]protocol is kg_v1.0 [10:59:41]action value=get_value [10:59:42]process_action get_value [10:59:42]cmd_get_value [10:59:42]process_action get_value done [10:59:42]requested_data is exist [10:59:42]produce_requested_data [10:59:42]requested_item fm.sale.total is exist - process it [10:59:42]SAM_PROTO_GetFMData [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 13 03 00 [10:59:42]Write to MH i2c: E2 08 00 70 03 80 13 03 00 00 00 00 00 F2 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]OFD Sender: No OFD packet to send [10:59:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 FD 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 FD 00 70 03 00 C4 04 85 04 C0 04 6E 04 04 00 4C 10 03 00 69 04 A3 00 6F 04 04 00 27 10 03 00 B1 04 05 00 F7 BA AF AD 03 70 04 05 00 1C 54 A2 4E 03 72 04 04 00 DB 66 0D 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 ED CC 09 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A3 F9 55 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 6A [10:59:42]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4C 10 03 00 69 04 A3 00 6F 04 04 00 27 10 03 00 B1 04 05 00 F7 BA AF AD 03 70 04 05 00 1C 54 A2 4E 03 72 04 04 00 DB 66 0D 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 ED CC 09 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A3 F9 55 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 17 00 00 [10:59:42]Write to MH i2c: E2 08 00 71 03 80 17 00 00 00 00 00 00 F4 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 FD 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 FD 00 71 03 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 FB [10:59:43]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [10:59:43]wFMCommunicate OK [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 17 00 00 [10:59:43]Write to MH i2c: E2 08 00 72 03 80 17 00 00 00 00 00 00 F5 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 FD 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 FD 00 72 03 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 0A [10:59:43]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:59:43]wFMCommunicate OK [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 17 00 00 [10:59:43]Write to MH i2c: E2 08 00 73 03 80 17 00 00 00 00 00 00 F6 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 FD 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 FD 00 73 03 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [10:59:43]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:59:43]wFMCommunicate OK [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 17 00 00 [10:59:43]Write to MH i2c: E2 08 00 74 03 80 17 00 00 00 00 00 00 F7 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 E1 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 E1 00 74 03 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [10:59:43]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:59:43]wFMCommunicate OK [10:59:43]SAM_PROTO_GetFMData done [10:59:43]requested_item fm.sale_refund.total is exist - process it [10:59:43]requested_item fm.buy.total is exist - process it [10:59:43]requested_item shift.sale.total is exist - process it [10:59:43]SAM_PROTO_GetShiftData [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 13 02 00 [10:59:43]Write to MH i2c: E2 08 00 75 03 80 13 02 00 00 00 00 00 F6 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 FD 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 FD 00 75 03 00 AF 04 AA 04 AB 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 A0 00 00 00 B1 04 03 00 0D EE B1 70 04 03 00 E0 A2 A4 72 04 03 00 2D 4B 0D 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 0C E7 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3A 93 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 30 [10:59:44]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 A0 00 00 00 B1 04 03 00 0D EE B1 70 04 03 00 E0 A2 A4 72 04 03 00 2D 4B 0D 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 0C E7 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3A 93 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:59:44]wFMCommunicate OK [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 17 00 00 [10:59:44]Write to MH i2c: E2 08 00 76 03 80 17 00 00 00 00 00 00 F9 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 FD 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 FD 00 76 03 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 12 [10:59:44]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [10:59:44]wFMCommunicate OK [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 17 00 00 [10:59:44]Write to MH i2c: E2 08 00 77 03 80 17 00 00 00 00 00 00 FA [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 FD 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 FD 00 77 03 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 AE [10:59:44]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [10:59:44]wFMCommunicate OK [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 17 00 00 [10:59:44]Write to MH i2c: E2 08 00 78 03 80 17 00 00 00 00 00 00 FB [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 FD 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 FD 00 78 03 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 79 [10:59:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [10:59:45]wFMCommunicate OK [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 17 00 00 [10:59:45]Write to MH i2c: E2 08 00 79 03 80 17 00 00 00 00 00 00 FC [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 CC 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 CC 00 79 03 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DD [10:59:45]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:59:45]wFMCommunicate OK [10:59:45]SAM_PROTO_GetShiftData done [10:59:45]requested_item shift.sale.total_cash is exist - process it [10:59:45]requested_item shift.sale_refund.total is exist - process it [10:59:45]requested_item shift.sale_refund.total_cash is exist - process it [10:59:45]requested_item shift.buy.total is exist - process it [10:59:45]requested_item shift.buy.total_cash is exist - process it [10:59:45]produce_requested_data done [10:59:45]produce_requested_data return {"fm.sale.total":157988769.19,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":116608.13,"shift.sale.total_cash":107896.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} [10:59:45]process_action_free get_value [10:59:45]json_value_free [10:59:45]json_value_free done [10:59:45]process_json_proto returns [10:59:45]Send response to host [10:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157988769.19,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":116608.13,"shift.sale.total_cash":107896.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}}} [10:59:45]free response buf [10:59:45]execute_script done [10:59:45]execute_script returns [10:59:45]free content buf [10:59:45]Sock 5.Close socket [10:59:45]Sock 5.Thread stoped [10:59:45]accept exits with 6 [10:59:45]New connection [10:59:45]New thread 3066805604 created [10:59:45]Thread 3066948964 joined [10:59:45]Waiting for new connection... [10:59:45] Sock 6.Parse request [10:59:45]Sock 6.Check first char [10:59:45]Sock 6.First char is OK [10:59:45]request: POST /json_proto HTTP/1.0 [10:59:45]Method: POST [10:59:45]URL: /json_proto [10:59:45]Method is POST - this is cgi request [10:59:45]url: /json_proto [10:59:45]query_string will be loaded in cgi processing [10:59:45]execute_cgi json_proto POST (null) [10:59:45]execute_cgi path=json_proto method=POST [10:59:45]POST find Content-Length [10:59:45]Host: 172.17.63.195:8080 [10:59:45]Content-Length: 144 [10:59:45]Content-Type: application/json [10:59:45] [10:59:45]POST finish read [10:59:45]Found Content-Length = 144 [10:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:59:45]execute_script... [10:59:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:59:45]POST & json_proto [10:59:45]process_json_proto [10:59:45]json parsed OK: [10:59:45]protocol is kg_v1.0 [10:59:45]action value=print_doc [10:59:45]process_action print_doc [10:59:45]ExternCall_PrintAddStr [10:59:45]wPrintStart [10:59:45]Write to MH i2c: 01 00 00 7A 03 7D [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 FF 0F 92 [10:59:45]RasterBufferAndPrint [10:59:45]line Счет N : (1)449629 [10:59:45]line ИНН: 02508201610067 [10:59:45]line Контрольно-Кассовый Чек [10:59:45]line ПРОДАЖА [10:59:45]line ТРК (МРК, ГНК) : 11 [10:59:45]line Товар: 2710194210 [10:59:45]line ДТ-К-2 [10:59:45]line 6.570 * 76.20 [10:59:45]line = 500.63 [10:59:45]line НДС 12% НСП 1% [10:59:45]line > о реализуемом товаре [10:59:45]line ОКРУГЛЕНИЕ: -0.63 [10:59:45]line ИТОГО: 500.00 [10:59:45]line Внесено: 500.00 [10:59:45]line СДАЧА: 0.00 [10:59:45]line НСП 1% : 4.43 [10:59:45]line НДС 12% : 53.16 [10:59:45]line Наличными: 500.00 [10:59:45]line Безнал.: 0.00 [10:59:45]line Место: АЗС № 171 "Партнер Нефть" [10:59:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:59:45]line СНО: Общий режим [10:59:45]line Чек 160 27.10.2024 10:59 [10:59:45]line Смена: 544 ФФД: 1.0 [10:59:45]line ЗНМ: 0300000109 [10:59:45]line РНМ: 0000000000091777 [10:59:45]line Версия ККМ: 001 [10:59:45]line ФМ: 0000000000871756 [10:59:45]line ФД: 201868 [10:59:45]line ФПД: 269315475024561 [10:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201868&fm=269315475024561&tin=02508201610067®Number=0000000000091777&sum=50000 [10:59:45]written 0, free lines is 4095 [10:59:46]Write to MH i2c: 01 00 00 A5 03 A8 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: 01 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: 01 07 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 8A 0C 45 [10:59:46]RasterBufferAndPrint [10:59:46]line [10:59:46]line [10:59:46]line [10:59:46]line [10:59:46]line [10:59:46]written 0, free lines is 3218 [10:59:46]MH_Cut [10:59:46]Write to MH i2c: D1 01 00 AC 03 01 81 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: D1 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: D1 01 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: D1 01 00 AC 03 00 80 [10:59:46]Write to MH i2c: 01 00 00 AD 03 B0 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** Cut start [10:59:46]*** Purtial cut [10:59:46]*** Stage 1: CUTSNS_PIN = 1 [10:59:47]Read from MH i2c: 01 [10:59:47]MH_I2C_Read... [10:59:47]*** Stop cut motor [10:59:47]*** Cut end [10:59:47]Read from MH i2c: 01 07 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [10:59:47]process_action print_doc done [10:59:47]requested_data is exist [10:59:47]produce_requested_data [10:59:47]produce_requested_data return (null) [10:59:47]process_action_free print_doc [10:59:47]json_value_free [10:59:47]json_value_free done [10:59:47]process_json_proto returns [10:59:47]Send response to host [10:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:59:47]free response buf [10:59:47]execute_script done [10:59:47]execute_script returns [10:59:47]free content buf [10:59:47]Sock 6.Close socket [10:59:47]Sock 6.Thread stoped [10:59:47]accept exits with 5 [10:59:47]New connection [10:59:47]New thread 3066948964 created [10:59:47]Thread 3066805604 joined [10:59:47]Waiting for new connection... [10:59:47] Sock 5.Parse request [10:59:47]Sock 5.Check first char [10:59:47]Sock 5.First char is OK [10:59:47]request: POST /json_proto HTTP/1.0 [10:59:47]Method: POST [10:59:47]URL: /json_proto [10:59:47]Method is POST - this is cgi request [10:59:47]url: /json_proto [10:59:47]query_string will be loaded in cgi processing [10:59:47]execute_cgi json_proto POST (null) [10:59:47]execute_cgi path=json_proto method=POST [10:59:47]POST find Content-Length [10:59:47]Host: 172.17.63.195:8080 [10:59:47]Content-Length: 677 [10:59:47]Content-Type: application/json [10:59:47] [10:59:47]POST finish read [10:59:47]Found Content-Length = 677 [10:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:59:47]execute_script... [10:59: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)449628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:59:47]POST & json_proto [10:59:47]process_json_proto [10:59:47]json parsed OK: [10:59:47]protocol is kg_v1.0 [10:59:47]action value=close_receipt [10:59:47]process_action close_receipt [10:59:47]cmd_close_receipt [10:59:47]MH_GetDate [10:59:47]Write to MH i2c: F0 00 00 AE 03 A0 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: F0 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: F0 09 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: F0 09 00 AE 03 00 23 1D 1E 67 47 1B 1E 67 55 [10:59:47]GetLastDocTimeStamp 1730026769 [10:59:47]current date 1730026787 [10:59:47]FM_GetShiftState [10:59:47]SAM_PROTO_GetShiftState [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 13 01 00 [10:59:47]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0E 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [10:59:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_GetShiftState done [10:59:47]FM_GetShiftState done [10:59:47]opened in 1729987312 [10:59:47]opened+sec_in_day 1730073712 [10:59:47]quantity*price = 50041 [10:59:47]sum+1 = 50042 [10:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 161 27.10.2024 10:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201869 ФПД: 140402157012371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105947&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201869&fm=140402157012371&tin=02508201610067®Number=0000000000091777&sum=50000 [10:59:48]StoreToDocumentArchive [10:59:48]shift 544 fd 201869 [10:59:48]save to /storage/0544/doc_00201869 [10:59:48]save last doc name /storage/0544/doc_00201869 to /storage/kkm_last_doc_name [10:59:48]save OK [10:59:48]Clear old archive folders... [10:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:48]tlvbuf is B6EC0D30 [10:59:48]SAM_PROTO_ClearQueue [10:59:48]wFMCommunicate request_size=4 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 09 00 00 [10:59:48]Write to MH i2c: E2 08 00 BC 03 80 09 00 00 00 00 00 00 31 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [10:59:48]RAPDU: 90 00 [10:59:48]wFMCommunicate OK [10:59:48]SAM_PROTO_ClearQueue done [10:59:48]KKMCreateOFDPacket [10:59:48]OFDProtocolAddRootSTLVToBuf [10:59:48]FM_MakeSignedData [10:59:48]FM_MakeSignedData [10:59:48]SAM_PROTO_SignData [10:59:48]wFMCommunicate request_size=4 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 0D 01 02 [10:59:48]Write to MH i2c: E2 08 00 BD 03 80 0D 01 02 00 00 00 00 39 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:48]Read from MH i2c: E2 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [10:59:48]RAPDU: 90 00 [10:59:48]wFMCommunicate OK [10:59:48]wFMCommunicate request_size=255 [10:59:48]MH_SAM_APDU [10:59:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 00 00 00 F4 03 04 00 23 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 14 03 00 35 04 06 00 7F [10:59:48]Write to MH i2c: E2 02 01 BE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 00 00 00 F4 03 04 00 23 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 14 03 00 35 04 06 00 7F 00 00 78 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 03 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [10:59:49]RAPDU: 90 00 [10:59:49]wFMCommunicate OK [10:59:49]wFMCommunicate request_size=10 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 0D 02 02 05 B1 EC B1 C5 93 [10:59:49]Write to MH i2c: E2 0D 00 BF 03 80 0D 02 02 05 00 B1 EC B1 C5 93 00 00 EC [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 03 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [10:59:49]RAPDU: 90 00 [10:59:49]wFMCommunicate OK [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 0D 03 02 [10:59:49]Write to MH i2c: E2 08 00 C0 03 80 0D 03 02 00 00 00 00 3E [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 0B 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 0B 00 C0 03 00 7E 8C 59 79 3A A3 8F BF 90 00 46 [10:59:49]RAPDU: 7E 8C 59 79 3A A3 8F BF 90 00 [10:59:49]wFMCommunicate OK [10:59:49]SAM_PROTO_SignData done [10:59:49]FM_MakeSignedData done [10:59:49]CreateOFDProtocolMessage [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 11 00 00 [10:59:49]Write to MH i2c: E2 08 00 C1 03 80 11 00 00 00 00 00 00 3E [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 17 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 17 00 C1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [10:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:59:49]wFMCommunicate OK [10:59:49]CreateOFDProtocolMessage done [10:59:49]OFDSenderStorePacket 201869 [10:59:49]StoreOFDPacket docnum=201869 [10:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A4 8C 07 01 B3 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 00 00 00 F4 03 04 00 23 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 14 03 00 35 04 06 00 7F B1 EC B1 C5 93 7E 8C 59 79 3A A3 8F BF [10:59:49]CheckFolder [10:59:49]dirname=/storage/ofd_packets [10:59:49]CheckFolder done [10:59:49]ProducePacketName [10:59:49]name=ofd_packets/00201869 [10:59:49]NVStorageSaveData ofd_packets/00201869 [10:59:49]File name is /storage/ofd_packets/00201869 [10:59:49]Write 301 bytes [10:59:49]NVStorageSaveData done [10:59:49]OFDSenderStorePacket done [10:59:49]KKMCreateOFDPacket done [10:59:49]NVStorageSaveData kkm_last_timestamp [10:59:49]File name is /storage/kkm_last_timestamp [10:59:49]Write 4 bytes [10:59:49]NVStorageSaveData done [10:59:49]ExternCall_PrintAddStr [10:59:49]wPrintStart [10:59:49]Write to MH i2c: 01 00 00 C2 03 C5 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 07 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: 01 07 00 C2 03 00 00 00 00 00 FF 0F DA [10:59:49]RasterBufferAndPrint [10:59:49]line Счет N : (1)449628 [10:59:49]line ИНН: 02508201610067 [10:59:49]line Контрольно-Кассовый Чек [10:59:49]line ПРОДАЖА [10:59:49]line ТРК (МРК, ГНК) : 52 [10:59:49]line Товар: 2710124130 [10:59:49]line Аи-92-К-2 [10:59:49]line 7.480 * 66.90 [10:59:49]line = 500.41 [10:59:49]line НДС 12% НСП 1% [10:59:49]line > о реализуемом товаре [10:59:49]line ОКРУГЛЕНИЕ: -0.41 [10:59:49]line ИТОГО: 500.00 [10:59:49]line Внесено: 500.00 [10:59:49]line СДАЧА: 0.00 [10:59:49]line НСП 1% : 4.43 [10:59:49]line НДС 12% : 53.14 [10:59:49]line Наличными: 500.00 [10:59:49]line Безнал.: 0.00 [10:59:49]line Место: АЗС № 171 "Партнер Нефть" [10:59:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:59:49]line СНО: Общий режим [10:59:49]line Чек 161 27.10.2024 10:59 [10:59:49]line Смена: 544 ФФД: 1.0 [10:59:49]line ЗНМ: 0300000109 [10:59:49]line РНМ: 0000000000091777 [10:59:49]line Версия ККМ: 001 [10:59:49]line ФМ: 0000000000871756 [10:59:49]line ФД: 201869 [10:59:49]line ФПД: 140402157012371 [10:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105947&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201869&fm=140402157012371&tin=02508201610067®Number=0000000000091777&sum=50000 [10:59:49]written 0, free lines is 4095 [10:59:49]OFD Sender: Processing packet 201869 [packets to send 112, broken 111] [10:59:49]ProducePacketName [10:59:49]name=ofd_packets/00201869 [10:59:49]OFD Sender: To server: pG, [10:59:49]CommunicateWithHost lk.salyk.kg:30040 [10:59:49]ConnectInit lk.salyk.kg [10:59:49]Connected sock=7 [10:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A4 8C 07 01 B3 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 00 00 00 F4 03 04 00 23 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 14 03 00 35 04 06 00 7F B1 EC B1 C5 93 7E 8C 59 79 3A A3 8F BF [10:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C 95 47 00 E6 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 14 03 00 F4 03 04 00 DE C8 1D 67 B6 04 01 00 00 62 BC 63 70 D4 91 17 93 [10:59:50]CommunicateWithHost err = 0 [10:59:50]CheckOFDResponse [10:59:50]1017 (14) - 77093643461234 [10:59:50]1041 (16) - 0000000000871756 [10:59:50]1040 (4) - 201869 [10:59:50]1012 (4) - 27.10.2024 05:00 [10:59:50]1206 (1) - 0 [10:59:50]OFD Sender: Remove packet 201869 [10:59:50]ProducePacketName [10:59:50]name=ofd_packets/00201869 [10:59:50]NVStorageDeleteData [10:59:50]Write to MH i2c: 01 00 00 ED 03 F0 [10:59:50]Write i2c OK [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: 01 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: 01 07 00 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: 01 07 00 ED 03 00 00 00 00 00 A3 0C A6 [10:59:50]RasterBufferAndPrint [10:59:50]line [10:59:50]line [10:59:50]line [10:59:50]line [10:59:50]line [10:59:50]written 0, free lines is 3250 [10:59:50]MH_Cut [10:59:50]Write to MH i2c: D1 01 00 F4 03 01 C9 [10:59:50]Write i2c OK [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: D1 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: D1 01 00 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: D1 01 00 F4 03 00 C8 [10:59:50]Write to MH i2c: 01 00 00 F5 03 F8 [10:59:50]Write i2c OK [10:59:50]MH_I2C_Read... [10:59:50]OFD Sender: No OFD packet to send [10:59:51]*** Cut start [10:59:51]*** Purtial cut [10:59:51]*** Stage 1: CUTSNS_PIN = 1 [10:59:51]Read from MH i2c: 01 [10:59:51]MH_I2C_Read... [10:59:51]*** Stop cut motor [10:59:51]*** Cut end [10:59:51]Read from MH i2c: 01 07 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [10:59:51]process_action close_receipt done [10:59:51]requested_data is exist [10:59:51]produce_requested_data [10:59:51]requested_item fm.sn is exist - process it [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 11 00 00 [10:59:51]Write to MH i2c: E2 08 00 F6 03 80 11 00 00 00 00 00 00 73 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 17 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 17 00 F6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C8 [10:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:59:51]wFMCommunicate OK [10:59:51]requested_item fd.num is exist - process it [10:59:51]SAM_PROTO_GetFieldsCounters [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 13 00 00 [10:59:51]Write to MH i2c: E2 08 00 F7 03 80 13 00 00 00 00 00 00 76 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 62 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 62 00 F7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8D 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [10:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8D 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:51]wFMCommunicate OK [10:59:51]SAM_PROTO_GetFieldsCounters done [10:59:51]requested_item shift.num is exist - process it [10:59:51]requested_item shift.opened is exist - process it [10:59:51]req_shift_opened [10:59:51]FM_GetShiftState [10:59:51]SAM_PROTO_GetShiftState [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 13 01 00 [10:59:51]Write to MH i2c: E2 08 00 F8 03 80 13 01 00 00 00 00 00 78 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:51]Read from MH i2c: E2 0E 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 0E 00 F8 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7A [10:59:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [10:59:51]wFMCommunicate OK [10:59:51]SAM_PROTO_GetShiftState done [10:59:51]FM_GetShiftState done [10:59:51]req_shift_opened done [10:59:51]requested_item shift.open_date is exist - process it [10:59:51]req_shift_open_date [10:59:51]req_shift_open_date done [10:59:51]produce_requested_data done [10:59:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201869,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [10:59:51]process_action_free close_receipt [10:59:51]json_value_free [10:59:51]json_value_free done [10:59:51]process_json_proto returns [10:59:51]Send response to host [10:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201869,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [10:59:51]free response buf [10:59:51]execute_script done [10:59:51]execute_script returns [10:59:51]free content buf [10:59:51]Sock 5.Close socket [10:59:51]Sock 5.Thread stoped [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:02]*** FLAG_PRN_KEY set [11:00:02]*** FLAG_PRN_KEY reset [11:00:02]*** FLAG_PRN_KEY set [11:00:02]*** FLAG_PRN_KEY reset [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:02]accept exits with 6 [11:01:02]New connection [11:01:02]New thread 3066805604 created [11:01:02]Thread 3066948964 joined [11:01:02]Waiting for new connection... [11:01:02] Sock 6.Parse request [11:01:02]Sock 6.Check first char [11:01:02]Sock 6.First char is OK [11:01:02]request: POST /json_proto HTTP/1.0 [11:01:02]Method: POST [11:01:02]URL: /json_proto [11:01:02]Method is POST - this is cgi request [11:01:02]url: /json_proto [11:01:02]query_string will be loaded in cgi processing [11:01:02]execute_cgi json_proto POST (null) [11:01:02]execute_cgi path=json_proto method=POST [11:01:02]POST find Content-Length [11:01:02]Host: 172.17.63.195:8080 [11:01:02]Content-Length: 677 [11:01:02]Content-Type: application/json [11:01:02] [11:01:02]POST finish read [11:01:02]Found Content-Length = 677 [11:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:01:02]execute_script... [11:01:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:01:02]POST & json_proto [11:01:02]process_json_proto [11:01:02]json parsed OK: [11:01:02]protocol is kg_v1.0 [11:01:02]action value=close_receipt [11:01:02]process_action close_receipt [11:01:02]cmd_close_receipt [11:01:02]MH_GetDate [11:01:02]Write to MH i2c: F0 00 00 F9 03 EB [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: F0 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: F0 09 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: F0 09 00 F9 03 00 6E 1D 1E 67 47 1B 1E 67 EB [11:01:02]GetLastDocTimeStamp 1730026787 [11:01:02]current date 1730026862 [11:01:02]FM_GetShiftState [11:01:02]SAM_PROTO_GetShiftState [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 13 01 00 [11:01:02]Write to MH i2c: E2 08 00 FA 03 80 13 01 00 00 00 00 00 7A [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 0E 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 0E 00 FA 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7C [11:01:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:01:02]wFMCommunicate OK [11:01:02]SAM_PROTO_GetShiftState done [11:01:02]FM_GetShiftState done [11:01:02]opened in 1729987312 [11:01:02]opened+sec_in_day 1730073712 [11:01:02]quantity*price = 50041 [11:01:02]sum+1 = 50042 [11:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 162 27.10.2024 11:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201870 ФПД: 186465626943774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110102&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201870&fm=186465626943774&tin=02508201610067®Number=0000000000091777&sum=50000 [11:01:03]StoreToDocumentArchive [11:01:03]shift 544 fd 201870 [11:01:03]save to /storage/0544/doc_00201870 [11:01:03]save last doc name /storage/0544/doc_00201870 to /storage/kkm_last_doc_name [11:01:03]save OK [11:01:03]Clear old archive folders... [11:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:03]tlvbuf is 00424CD0 [11:01:03]SAM_PROTO_ClearQueue [11:01:03]wFMCommunicate request_size=4 [11:01:03]MH_SAM_APDU [11:01:03]CAPDU: 80 09 00 00 [11:01:03]Write to MH i2c: E2 08 00 07 04 80 09 00 00 00 00 00 00 7D [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:03]Read from MH i2c: E2 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 03 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [11:01:03]RAPDU: 90 00 [11:01:03]wFMCommunicate OK [11:01:03]SAM_PROTO_ClearQueue done [11:01:03]KKMCreateOFDPacket [11:01:03]OFDProtocolAddRootSTLVToBuf [11:01:03]FM_MakeSignedData [11:01:03]FM_MakeSignedData [11:01:03]SAM_PROTO_SignData [11:01:03]wFMCommunicate request_size=4 [11:01:03]MH_SAM_APDU [11:01:03]CAPDU: 80 0D 01 02 [11:01:03]Write to MH i2c: E2 08 00 08 04 80 0D 01 02 00 00 00 00 85 [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:03]Read from MH i2c: E2 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 03 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [11:01:03]RAPDU: 90 00 [11:01:03]wFMCommunicate OK [11:01:03]wFMCommunicate request_size=255 [11:01:03]MH_SAM_APDU [11:01:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A2 00 00 00 F4 03 04 00 6E 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 14 03 00 35 04 06 00 A9 [11:01:03]Write to MH i2c: E2 02 01 09 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A2 00 00 00 F4 03 04 00 6E 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 14 03 00 35 04 06 00 A9 00 00 3B [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [11:01:04]RAPDU: 90 00 [11:01:04]wFMCommunicate OK [11:01:04]wFMCommunicate request_size=10 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 0D 02 02 05 96 E9 74 F1 1E [11:01:04]Write to MH i2c: E2 0D 00 0A 04 80 0D 02 02 05 00 96 E9 74 F1 1E 00 00 94 [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [11:01:04]RAPDU: 90 00 [11:01:04]wFMCommunicate OK [11:01:04]wFMCommunicate request_size=4 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 0D 03 02 [11:01:04]Write to MH i2c: E2 08 00 0B 04 80 0D 03 02 00 00 00 00 8A [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 0B 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 0B 00 0B 04 00 B8 84 B8 FB 26 3E B9 7B 90 00 12 [11:01:04]RAPDU: B8 84 B8 FB 26 3E B9 7B 90 00 [11:01:04]wFMCommunicate OK [11:01:04]SAM_PROTO_SignData done [11:01:04]FM_MakeSignedData done [11:01:04]CreateOFDProtocolMessage [11:01:04]wFMCommunicate request_size=4 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 11 00 00 [11:01:04]Write to MH i2c: E2 08 00 0C 04 80 11 00 00 00 00 00 00 8A [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 17 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 17 00 0C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [11:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:01:04]wFMCommunicate OK [11:01:04]CreateOFDProtocolMessage done [11:01:04]OFDSenderStorePacket 201870 [11:01:04]StoreOFDPacket docnum=201870 [11:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F6 B1 07 01 3C 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A2 00 00 00 F4 03 04 00 6E 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 14 03 00 35 04 06 00 A9 96 E9 74 F1 1E B8 84 B8 FB 26 3E B9 7B [11:01:04]CheckFolder [11:01:04]dirname=/storage/ofd_packets [11:01:04]CheckFolder done [11:01:04]ProducePacketName [11:01:04]name=ofd_packets/00201870 [11:01:04]NVStorageSaveData ofd_packets/00201870 [11:01:04]File name is /storage/ofd_packets/00201870 [11:01:04]Write 301 bytes [11:01:04]NVStorageSaveData done [11:01:04]OFDSenderStorePacket done [11:01:04]KKMCreateOFDPacket done [11:01:04]NVStorageSaveData kkm_last_timestamp [11:01:04]File name is /storage/kkm_last_timestamp [11:01:04]Write 4 bytes [11:01:04]NVStorageSaveData done [11:01:04]ExternCall_PrintAddStr [11:01:04]wPrintStart [11:01:04]Write to MH i2c: 01 00 00 0D 04 11 [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: 01 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: 01 07 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FF 0F 26 [11:01:04]RasterBufferAndPrint [11:01:04]line Счет N : (1)449630 [11:01:04]line ИНН: 02508201610067 [11:01:04]line Контрольно-Кассовый Чек [11:01:04]line ПРОДАЖА [11:01:04]line ТРК (МРК, ГНК) : 41 [11:01:04]line Товар: 2710124130 [11:01:04]line Аи-92-К-2 [11:01:04]line 7.480 * 66.90 [11:01:04]line = 500.41 [11:01:04]line НДС 12% НСП 1% [11:01:04]line > о реализуемом товаре [11:01:04]line ОКРУГЛЕНИЕ: -0.41 [11:01:04]line ИТОГО: 500.00 [11:01:04]line Внесено: 500.00 [11:01:04]line СДАЧА: 0.00 [11:01:04]line НСП 1% : 4.43 [11:01:04]line НДС 12% : 53.14 [11:01:04]line Наличными: 500.00 [11:01:04]line Безнал.: 0.00 [11:01:04]line Место: АЗС № 171 "Партнер Нефть" [11:01:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:01:04]line СНО: Общий режим [11:01:04]line Чек 162 27.10.2024 11:01 [11:01:04]line Смена: 544 ФФД: 1.0 [11:01:04]line ЗНМ: 0300000109 [11:01:04]line РНМ: 0000000000091777 [11:01:04]line Версия ККМ: 001 [11:01:04]line ФМ: 0000000000871756 [11:01:04]line ФД: 201870 [11:01:04]line ФПД: 186465626943774 [11:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110102&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201870&fm=186465626943774&tin=02508201610067®Number=0000000000091777&sum=50000 [11:01:04]OFD Sender: Processing packet 201870 [packets to send 112, broken 111] [11:01:04]ProducePacketName [11:01:04]name=ofd_packets/00201870 [11:01:04]OFD Sender: To server: pG, [11:01:04]CommunicateWithHost lk.salyk.kg:30040 [11:01:04]ConnectInit lk.salyk.kg [11:01:04]written 0, free lines is 4095 [11:01:04]Connected sock=5 [11:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F6 B1 07 01 3C 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A2 00 00 00 F4 03 04 00 6E 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 14 03 00 35 04 06 00 A9 96 E9 74 F1 1E B8 84 B8 FB 26 3E B9 7B [11:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 07 07 47 00 42 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 14 03 00 F4 03 04 00 29 C9 1D 67 B6 04 01 00 00 A1 52 C1 62 87 2F CC B6 [11:01:04]CommunicateWithHost err = 0 [11:01:04]CheckOFDResponse [11:01:04]1017 (14) - 77093643461234 [11:01:04]1041 (16) - 0000000000871756 [11:01:04]1040 (4) - 201870 [11:01:04]1012 (4) - 27.10.2024 05:01 [11:01:04]1206 (1) - 0 [11:01:04]OFD Sender: Remove packet 201870 [11:01:04]ProducePacketName [11:01:04]name=ofd_packets/00201870 [11:01:04]NVStorageDeleteData [11:01:05]Write to MH i2c: 01 00 00 38 04 3C [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 07 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 97 0C E6 [11:01:05]RasterBufferAndPrint [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]written 0, free lines is 3229 [11:01:05]MH_Cut [11:01:05]Write to MH i2c: D1 01 00 3F 04 01 15 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 01 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 01 00 3F 04 00 14 [11:01:05]Write to MH i2c: 01 00 00 40 04 44 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]OFD Sender: No OFD packet to send [11:01:06]*** Cut start [11:01:06]*** Purtial cut [11:01:06]*** Stage 1: CUTSNS_PIN = 1 [11:01:06]Read from MH i2c: 01 [11:01:06]MH_I2C_Read... [11:01:06]*** Stop cut motor [11:01:06]*** Cut end [11:01:06]Read from MH i2c: 01 07 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [11:01:06]process_action close_receipt done [11:01:06]requested_data is exist [11:01:06]produce_requested_data [11:01:06]requested_item fm.sn is exist - process it [11:01:06]wFMCommunicate request_size=4 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 11 00 00 [11:01:06]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:06]Read from MH i2c: E2 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 17 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 14 [11:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:01:06]wFMCommunicate OK [11:01:06]requested_item fd.num is exist - process it [11:01:06]SAM_PROTO_GetFieldsCounters [11:01:06]wFMCommunicate request_size=4 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 13 00 00 [11:01:06]Write to MH i2c: E2 08 00 42 04 80 13 00 00 00 00 00 00 C2 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:06]Read from MH i2c: E2 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 62 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 62 00 42 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8E 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [11:01:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8E 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:06]wFMCommunicate OK [11:01:06]SAM_PROTO_GetFieldsCounters done [11:01:06]requested_item shift.num is exist - process it [11:01:06]requested_item shift.opened is exist - process it [11:01:06]req_shift_opened [11:01:06]FM_GetShiftState [11:01:06]SAM_PROTO_GetShiftState [11:01:06]wFMCommunicate request_size=4 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 13 01 00 [11:01:06]Write to MH i2c: E2 08 00 43 04 80 13 01 00 00 00 00 00 C4 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 [11:01:06]MH_I2C_Read... [11:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:06]Read from MH i2c: E2 0E 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 0E 00 43 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C6 [11:01:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:01:06]wFMCommunicate OK [11:01:06]SAM_PROTO_GetShiftState done [11:01:06]FM_GetShiftState done [11:01:06]req_shift_opened done [11:01:06]requested_item shift.open_date is exist - process it [11:01:06]req_shift_open_date [11:01:06]req_shift_open_date done [11:01:06]produce_requested_data done [11:01:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201870,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:01:06]process_action_free close_receipt [11:01:06]json_value_free [11:01:06]json_value_free done [11:01:06]process_json_proto returns [11:01:06]Send response to host [11:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201870,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:01:06]free response buf [11:01:06]execute_script done [11:01:06]execute_script returns [11:01:06]free content buf [11:01:06]Sock 6.Close socket [11:01:06]Sock 6.Thread stoped [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:26]*** FLAG_PRN_KEY set [11:02:26]*** FLAG_PRN_KEY reset [11:02:26]*** FLAG_PRN_KEY set [11:02:27]*** FLAG_PRN_KEY reset [11:02:27]*** FLAG_PRN_KEY set [11:02:27]*** FLAG_PRN_KEY reset [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]accept exits with 7 [11:02:40]New connection [11:02:40]New thread 3066948964 created [11:02:40]Thread 3066805604 joined [11:02:40]Waiting for new connection... [11:02:40] Sock 7.Parse request [11:02:40]Sock 7.Check first char [11:02:40]Sock 7.First char is OK [11:02:40]request: POST /json_proto HTTP/1.0 [11:02:40]Method: POST [11:02:40]URL: /json_proto [11:02:40]Method is POST - this is cgi request [11:02:40]url: /json_proto [11:02:40]query_string will be loaded in cgi processing [11:02:40]execute_cgi json_proto POST (null) [11:02:40]execute_cgi path=json_proto method=POST [11:02:40]POST find Content-Length [11:02:40]Host: 172.17.63.195:8080 [11:02:40]Content-Length: 670 [11:02:40]Content-Type: application/json [11:02:40] [11:02:40]POST finish read [11:02:40]Found Content-Length = 670 [11:02:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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:02:40]execute_script... [11:02: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)449633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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:02:40]POST & json_proto [11:02:40]process_json_proto [11:02:40]json parsed OK: [11:02:40]protocol is kg_v1.0 [11:02:40]action value=close_receipt [11:02:40]process_action close_receipt [11:02:40]cmd_close_receipt [11:02:40]MH_GetDate [11:02:40]Write to MH i2c: F0 00 00 44 04 37 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: F0 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: F0 09 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: F0 09 00 44 04 00 D0 1D 1E 67 47 1B 1E 67 99 [11:02:40]GetLastDocTimeStamp 1730026862 [11:02:40]current date 1730026960 [11:02:40]FM_GetShiftState [11:02:40]SAM_PROTO_GetShiftState [11:02:40]wFMCommunicate request_size=4 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 13 01 00 [11:02:40]Write to MH i2c: E2 08 00 45 04 80 13 01 00 00 00 00 00 C6 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:40]Read from MH i2c: E2 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 0E 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 0E 00 45 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C8 [11:02:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:02:40]wFMCommunicate OK [11:02:40]SAM_PROTO_GetShiftState done [11:02:40]FM_GetShiftState done [11:02:40]opened in 1729987312 [11:02:40]opened+sec_in_day 1730073712 [11:02:40]quantity*price = 30027 [11:02:40]sum+1 = 30029 [11:02:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 163 27.10.2024 11:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201871 ФПД: 281074957175558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110240&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201871&fm=281074957175558&tin=02508201610067®Number=0000000000091777&sum=30000 [11:02:41]StoreToDocumentArchive [11:02:41]shift 544 fd 201871 [11:02:41]save to /storage/0544/doc_00201871 [11:02:41]save last doc name /storage/0544/doc_00201871 to /storage/kkm_last_doc_name [11:02:41]save OK [11:02:41]Clear old archive folders... [11:02:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:02:41]tlvbuf is 00424110 [11:02:41]SAM_PROTO_ClearQueue [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 09 00 00 [11:02:41]Write to MH i2c: E2 08 00 52 04 80 09 00 00 00 00 00 00 C8 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 03 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [11:02:41]RAPDU: 90 00 [11:02:41]wFMCommunicate OK [11:02:41]SAM_PROTO_ClearQueue done [11:02:41]KKMCreateOFDPacket [11:02:41]OFDProtocolAddRootSTLVToBuf [11:02:41]FM_MakeSignedData [11:02:41]FM_MakeSignedData [11:02:41]SAM_PROTO_SignData [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 0D 01 02 [11:02:41]Write to MH i2c: E2 08 00 53 04 80 0D 01 02 00 00 00 00 D0 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 03 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [11:02:41]RAPDU: 90 00 [11:02:41]wFMCommunicate OK [11:02:41]wFMCommunicate request_size=255 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 A3 00 00 00 F4 03 04 00 D0 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 14 03 00 35 04 06 00 [11:02:41]Write to MH i2c: E2 02 01 54 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 A3 00 00 00 F4 03 04 00 D0 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 14 03 00 35 04 06 00 00 00 FC [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 03 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [11:02:41]RAPDU: 90 00 [11:02:41]wFMCommunicate OK [11:02:41]wFMCommunicate request_size=11 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 0D 02 02 06 FF A2 DC FA 4B 06 [11:02:41]Write to MH i2c: E2 0E 00 55 04 80 0D 02 02 06 00 FF A2 DC FA 4B 06 00 00 A7 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 03 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [11:02:41]RAPDU: 90 00 [11:02:41]wFMCommunicate OK [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 0D 03 02 [11:02:41]Write to MH i2c: E2 08 00 56 04 80 0D 03 02 00 00 00 00 D5 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 0B 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 0B 00 56 04 00 AF 88 AA DA CF 77 B9 1A 90 00 AA [11:02:41]RAPDU: AF 88 AA DA CF 77 B9 1A 90 00 [11:02:41]wFMCommunicate OK [11:02:41]SAM_PROTO_SignData done [11:02:41]FM_MakeSignedData done [11:02:41]CreateOFDProtocolMessage [11:02:41]wFMCommunicate request_size=4 [11:02:41]MH_SAM_APDU [11:02:41]CAPDU: 80 11 00 00 [11:02:41]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:41]Read from MH i2c: E2 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 17 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2A [11:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:02:41]wFMCommunicate OK [11:02:41]CreateOFDProtocolMessage done [11:02:41]OFDSenderStorePacket 201871 [11:02:41]StoreOFDPacket docnum=201871 [11:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 19 9C 08 01 F3 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 A3 00 00 00 F4 03 04 00 D0 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 14 03 00 35 04 06 00 FF A2 DC FA 4B 06 AF 88 AA DA CF 77 B9 1A [11:02:41]CheckFolder [11:02:41]dirname=/storage/ofd_packets [11:02:41]CheckFolder done [11:02:41]ProducePacketName [11:02:41]name=ofd_packets/00201871 [11:02:41]NVStorageSaveData ofd_packets/00201871 [11:02:41]File name is /storage/ofd_packets/00201871 [11:02:41]Write 302 bytes [11:02:41]NVStorageSaveData done [11:02:41]OFDSenderStorePacket done [11:02:41]KKMCreateOFDPacket done [11:02:41]NVStorageSaveData kkm_last_timestamp [11:02:41]File name is /storage/kkm_last_timestamp [11:02:41]Write 4 bytes [11:02:41]NVStorageSaveData done [11:02:41]ExternCall_PrintAddStr [11:02:41]wPrintStart [11:02:41]Write to MH i2c: 01 00 00 58 04 5C [11:02:41]Write i2c OK [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 07 00 [11:02:41]MH_I2C_Read... [11:02:41]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [11:02:41]RasterBufferAndPrint [11:02:41]line Счет N : (1)449633 [11:02:41]line ИНН: 02508201610067 [11:02:41]line Контрольно-Кассовый Чек [11:02:41]line ПРОДАЖА [11:02:41]line ТРК (МРК, ГНК) : 42 [11:02:41]line Товар: 2710124130 [11:02:41]line SUPER 92-К-5 [11:02:41]line 4.390 * 68.40 [11:02:41]line = 300.28 [11:02:41]line НДС 12% НСП 1% [11:02:41]line > о реализуемом товаре [11:02:41]line ОКРУГЛЕНИЕ: -0.28 [11:02:41]line ИТОГО: 300.00 [11:02:41]line Внесено: 300.00 [11:02:41]line СДАЧА: 0.00 [11:02:41]line НСП 1% : 2.66 [11:02:41]line НДС 12% : 31.89 [11:02:41]line Наличными: 300.00 [11:02:41]line Безнал.: 0.00 [11:02:41]line Место: АЗС № 171 "Партнер Нефть" [11:02:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:02:41]line СНО: Общий режим [11:02:41]line Чек 163 27.10.2024 11:02 [11:02:41]line Смена: 544 ФФД: 1.0 [11:02:41]line ЗНМ: 0300000109 [11:02:41]line РНМ: 0000000000091777 [11:02:41]line Версия ККМ: 001 [11:02:41]line ФМ: 0000000000871756 [11:02:41]line ФД: 201871 [11:02:41]line ФПД: 281074957175558 [11:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110240&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201871&fm=281074957175558&tin=02508201610067®Number=0000000000091777&sum=30000 [11:02:42]OFD Sender: Processing packet 201871 [packets to send 112, broken 111] [11:02:42]ProducePacketName [11:02:42]name=ofd_packets/00201871 [11:02:42]OFD Sender: To server: pG, [11:02:42]CommunicateWithHost lk.salyk.kg:30040 [11:02:42]ConnectInit lk.salyk.kg [11:02:42]written 0, free lines is 4095 [11:02:42]Connected sock=6 [11:02:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 19 9C 08 01 F3 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 A3 00 00 00 F4 03 04 00 D0 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 14 03 00 35 04 06 00 FF A2 DC FA 4B 06 AF 88 AA DA CF 77 B9 1A [11:02:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 31 37 47 00 5D A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 14 03 00 F4 03 04 00 8A C9 1D 67 B6 04 01 00 00 4A C0 F4 48 92 45 4B 1C [11:02:42]CommunicateWithHost err = 0 [11:02:42]CheckOFDResponse [11:02:42]1017 (14) - 77093643461234 [11:02:42]1041 (16) - 0000000000871756 [11:02:42]1040 (4) - 201871 [11:02:42]1012 (4) - 27.10.2024 05:03 [11:02:42]1206 (1) - 0 [11:02:42]OFD Sender: Remove packet 201871 [11:02:42]ProducePacketName [11:02:42]name=ofd_packets/00201871 [11:02:42]NVStorageDeleteData [11:02:42]Write to MH i2c: 01 00 00 83 04 87 [11:02:42]Write i2c OK [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: 01 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: 01 07 00 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 8A 0C 24 [11:02:42]RasterBufferAndPrint [11:02:42]line [11:02:42]line [11:02:42]line [11:02:42]line [11:02:42]line [11:02:42]written 0, free lines is 3215 [11:02:42]MH_Cut [11:02:42]Write to MH i2c: D1 01 00 8A 04 01 60 [11:02:42]Write i2c OK [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: D1 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: D1 01 00 [11:02:42]MH_I2C_Read... [11:02:42]Read from MH i2c: D1 01 00 8A 04 00 5F [11:02:42]Write to MH i2c: 01 00 00 8B 04 8F [11:02:42]Write i2c OK [11:02:42]MH_I2C_Read... [11:02:42]OFD Sender: No OFD packet to send [11:02:43]*** Cut start [11:02:43]*** Purtial cut [11:02:43]*** Stage 1: CUTSNS_PIN = 1 [11:02:43]Read from MH i2c: 01 [11:02:43]MH_I2C_Read... [11:02:43]*** Stop cut motor [11:02:43]*** Cut end [11:02:43]Read from MH i2c: 01 07 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: 01 07 00 8B 04 00 00 00 00 00 FF 0F A4 [11:02:43]process_action close_receipt done [11:02:43]requested_data is exist [11:02:43]produce_requested_data [11:02:43]requested_item fm.sn is exist - process it [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 11 00 00 [11:02:43]Write to MH i2c: E2 08 00 8C 04 80 11 00 00 00 00 00 00 0A [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 17 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 17 00 8C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5F [11:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:02:43]wFMCommunicate OK [11:02:43]requested_item fd.num is exist - process it [11:02:43]SAM_PROTO_GetFieldsCounters [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 13 00 00 [11:02:43]Write to MH i2c: E2 08 00 8D 04 80 13 00 00 00 00 00 00 0D [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 62 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 62 00 8D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8F 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [11:02:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8F 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:43]wFMCommunicate OK [11:02:43]SAM_PROTO_GetFieldsCounters done [11:02:43]requested_item shift.num is exist - process it [11:02:43]requested_item shift.opened is exist - process it [11:02:43]req_shift_opened [11:02:43]FM_GetShiftState [11:02:43]SAM_PROTO_GetShiftState [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 13 01 00 [11:02:43]Write to MH i2c: E2 08 00 8E 04 80 13 01 00 00 00 00 00 0F [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 8E 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 11 [11:02:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:02:43]wFMCommunicate OK [11:02:43]SAM_PROTO_GetShiftState done [11:02:43]FM_GetShiftState done [11:02:43]req_shift_opened done [11:02:43]requested_item shift.open_date is exist - process it [11:02:43]req_shift_open_date [11:02:43]req_shift_open_date done [11:02:43]produce_requested_data done [11:02:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201871,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:02:43]process_action_free close_receipt [11:02:43]json_value_free [11:02:43]json_value_free done [11:02:43]process_json_proto returns [11:02:43]Send response to host [11:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201871,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:02:43]free response buf [11:02:43]execute_script done [11:02:43]execute_script returns [11:02:43]free content buf [11:02:43]Sock 7.Close socket [11:02:43]Sock 7.Thread stoped [11:02:44]accept exits with 5 [11:02:44]New connection [11:02:44]New thread 3066805604 created [11:02:44]Thread 3066948964 joined [11:02:44]Waiting for new connection... [11:02:44] Sock 5.Parse request [11:02:44]Sock 5.Check first char [11:02:44]Sock 5.First char is OK [11:02:44]request: POST /json_proto HTTP/1.0 [11:02:44]Method: POST [11:02:44]URL: /json_proto [11:02:44]Method is POST - this is cgi request [11:02:44]url: /json_proto [11:02:44]query_string will be loaded in cgi processing [11:02:44]execute_cgi json_proto POST (null) [11:02:44]execute_cgi path=json_proto method=POST [11:02:44]POST find Content-Length [11:02:44]Host: 172.17.63.195:8080 [11:02:44]Content-Length: 670 [11:02:44]Content-Type: application/json [11:02:44] [11:02:44]POST finish read [11:02:44]Found Content-Length = 670 [11:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 9.510, "sum" : 650.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:44]execute_script... [11:02:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 9.510, "sum" : 650.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:44]POST & json_proto [11:02:44]process_json_proto [11:02:44]json parsed OK: [11:02:44]protocol is kg_v1.0 [11:02:44]action value=close_receipt [11:02:44]process_action close_receipt [11:02:44]cmd_close_receipt [11:02:44]MH_GetDate [11:02:44]Write to MH i2c: F0 00 00 8F 04 82 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 09 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: F0 09 00 8F 04 00 D4 1D 1E 67 47 1B 1E 67 E8 [11:02:44]GetLastDocTimeStamp 1730026960 [11:02:44]current date 1730026964 [11:02:44]FM_GetShiftState [11:02:44]SAM_PROTO_GetShiftState [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 13 01 00 [11:02:44]Write to MH i2c: E2 08 00 90 04 80 13 01 00 00 00 00 00 11 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0E 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0E 00 90 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 13 [11:02:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:02:44]wFMCommunicate OK [11:02:44]SAM_PROTO_GetShiftState done [11:02:44]FM_GetShiftState done [11:02:44]opened in 1729987312 [11:02:44]opened+sec_in_day 1730073712 [11:02:44]quantity*price = 65048 [11:02:44]sum+1 = 65049 [11:02:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.08 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 164 27.10.2024 11:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201872 ФПД: 109633009487657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110244&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201872&fm=109633009487657&tin=02508201610067®Number=0000000000091777&sum=65000 [11:02:45]StoreToDocumentArchive [11:02:45]shift 544 fd 201872 [11:02:45]save to /storage/0544/doc_00201872 [11:02:45]save last doc name /storage/0544/doc_00201872 to /storage/kkm_last_doc_name [11:02:45]save OK [11:02:45]Clear old archive folders... [11:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:02:45]tlvbuf is 00425CA0 [11:02:45]SAM_PROTO_ClearQueue [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 09 00 00 [11:02:45]Write to MH i2c: E2 08 00 9D 04 80 09 00 00 00 00 00 00 13 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 9D 04 00 90 00 15 [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]SAM_PROTO_ClearQueue done [11:02:45]KKMCreateOFDPacket [11:02:45]OFDProtocolAddRootSTLVToBuf [11:02:45]FM_MakeSignedData [11:02:45]FM_MakeSignedData [11:02:45]SAM_PROTO_SignData [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 01 02 [11:02:45]Write to MH i2c: E2 08 00 9E 04 80 0D 01 02 00 00 00 00 1B [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 03 00 9E 04 00 90 00 16 [11:02:45]RAPDU: 90 00 [11:02:45]wFMCommunicate OK [11:02:45]wFMCommunicate request_size=255 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D4 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 14 03 00 35 04 06 00 [11:02:45]Write to MH i2c: E2 02 01 9F 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D4 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 14 03 00 35 04 06 00 00 00 02 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 9F 04 00 90 00 17 [11:02:46]RAPDU: 90 00 [11:02:46]wFMCommunicate OK [11:02:46]wFMCommunicate request_size=11 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 0D 02 02 06 63 B5 EC 96 0F 29 [11:02:46]Write to MH i2c: E2 0E 00 A0 04 80 0D 02 02 06 00 63 B5 EC 96 0F 29 00 00 FC [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 A0 04 00 90 00 18 [11:02:46]RAPDU: 90 00 [11:02:46]wFMCommunicate OK [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 0D 03 02 [11:02:46]Write to MH i2c: E2 08 00 A1 04 80 0D 03 02 00 00 00 00 20 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 0B 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 0B 00 A1 04 00 83 0F 2C 76 56 53 26 F2 90 00 16 [11:02:46]RAPDU: 83 0F 2C 76 56 53 26 F2 90 00 [11:02:46]wFMCommunicate OK [11:02:46]SAM_PROTO_SignData done [11:02:46]FM_MakeSignedData done [11:02:46]CreateOFDProtocolMessage [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 11 00 00 [11:02:46]Write to MH i2c: E2 08 00 A2 04 80 11 00 00 00 00 00 00 20 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 17 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 17 00 A2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 75 [11:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:02:46]wFMCommunicate OK [11:02:46]CreateOFDProtocolMessage done [11:02:46]OFDSenderStorePacket 201872 [11:02:46]StoreOFDPacket docnum=201872 [11:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 61 D7 08 01 86 BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D4 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 14 03 00 35 04 06 00 63 B5 EC 96 0F 29 83 0F 2C 76 56 53 26 F2 [11:02:46]CheckFolder [11:02:46]dirname=/storage/ofd_packets [11:02:46]CheckFolder done [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00201872 [11:02:46]NVStorageSaveData ofd_packets/00201872 [11:02:46]File name is /storage/ofd_packets/00201872 [11:02:46]Write 302 bytes [11:02:46]NVStorageSaveData done [11:02:46]OFDSenderStorePacket done [11:02:46]KKMCreateOFDPacket done [11:02:46]NVStorageSaveData kkm_last_timestamp [11:02:46]File name is /storage/kkm_last_timestamp [11:02:46]Write 4 bytes [11:02:46]NVStorageSaveData done [11:02:46]ExternCall_PrintAddStr [11:02:46]wPrintStart [11:02:46]Write to MH i2c: 01 00 00 A3 04 A7 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 A3 04 00 00 00 00 00 FF 0F BC [11:02:46]RasterBufferAndPrint [11:02:46]line Счет N : (1)449632 [11:02:46]line ИНН: 02508201610067 [11:02:46]line Контрольно-Кассовый Чек [11:02:46]line ПРОДАЖА [11:02:46]line ТРК (МРК, ГНК) : 63 [11:02:46]line Товар: 2710124130 [11:02:46]line SUPER 92-К-5 [11:02:46]line 9.510 * 68.40 [11:02:46]line = 650.48 [11:02:46]line НДС 12% НСП 1% [11:02:46]line > о реализуемом товаре [11:02:46]line ОКРУГЛЕНИЕ: -0.48 [11:02:46]line ИТОГО: 650.00 [11:02:46]line Внесено: 650.00 [11:02:46]line СДАЧА: 0.00 [11:02:46]line НСП 1% : 5.76 [11:02:46]line НДС 12% : 69.08 [11:02:46]line Наличными: 650.00 [11:02:46]line Безнал.: 0.00 [11:02:46]line Место: АЗС № 171 "Партнер Нефть" [11:02:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:02:46]line СНО: Общий режим [11:02:46]line Чек 164 27.10.2024 11:02 [11:02:46]line Смена: 544 ФФД: 1.0 [11:02:46]line ЗНМ: 0300000109 [11:02:46]line РНМ: 0000000000091777 [11:02:46]line Версия ККМ: 001 [11:02:46]line ФМ: 0000000000871756 [11:02:46]line ФД: 201872 [11:02:46]line ФПД: 109633009487657 [11:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110244&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201872&fm=109633009487657&tin=02508201610067®Number=0000000000091777&sum=65000 [11:02:46]written 0, free lines is 4095 [11:02:46]OFD Sender: Processing packet 201872 [packets to send 112, broken 111] [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00201872 [11:02:46]OFD Sender: To server: pG, [11:02:46]CommunicateWithHost lk.salyk.kg:30040 [11:02:46]ConnectInit lk.salyk.kg [11:02:46]Connected sock=7 [11:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 61 D7 08 01 86 BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D4 1D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 14 03 00 35 04 06 00 63 B5 EC 96 0F 29 83 0F 2C 76 56 53 26 F2 [11:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 48 BE 47 00 28 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 14 03 00 F4 03 04 00 8E C9 1D 67 B6 04 01 00 00 15 0D E4 3C CA B7 A7 8B [11:02:46]CommunicateWithHost err = 0 [11:02:46]CheckOFDResponse [11:02:46]1017 (14) - 77093643461234 [11:02:46]1041 (16) - 0000000000871756 [11:02:46]1040 (4) - 201872 [11:02:46]1012 (4) - 27.10.2024 05:03 [11:02:46]1206 (1) - 0 [11:02:46]OFD Sender: Remove packet 201872 [11:02:46]ProducePacketName [11:02:46]name=ofd_packets/00201872 [11:02:46]NVStorageDeleteData [11:02:46]Write to MH i2c: 01 00 00 CE 04 D2 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 98 0C 7D [11:02:46]RasterBufferAndPrint [11:02:46]line [11:02:46]line [11:02:46]line [11:02:46]line [11:02:46]line [11:02:46]written 0, free lines is 3235 [11:02:46]MH_Cut [11:02:46]Write to MH i2c: D1 01 00 D5 04 01 AB [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: D1 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: D1 01 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: D1 01 00 D5 04 00 AA [11:02:46]Write to MH i2c: 01 00 00 D6 04 DA [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:47]OFD Sender: No OFD packet to send [11:02:47]*** Cut start [11:02:47]*** Purtial cut [11:02:47]*** Stage 1: CUTSNS_PIN = 1 [11:02:47]Read from MH i2c: 01 [11:02:47]MH_I2C_Read... [11:02:47]*** Stop cut motor [11:02:47]*** Cut end [11:02:47]Read from MH i2c: 01 07 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 07 00 D6 04 00 00 00 00 00 FF 0F EF [11:02:47]process_action close_receipt done [11:02:47]requested_data is exist [11:02:47]produce_requested_data [11:02:47]requested_item fm.sn is exist - process it [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 11 00 00 [11:02:47]Write to MH i2c: E2 08 00 D7 04 80 11 00 00 00 00 00 00 55 [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 17 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 17 00 D7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AA [11:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:02:47]wFMCommunicate OK [11:02:47]requested_item fd.num is exist - process it [11:02:47]SAM_PROTO_GetFieldsCounters [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 13 00 00 [11:02:47]Write to MH i2c: E2 08 00 D8 04 80 13 00 00 00 00 00 00 58 [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 62 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 62 00 D8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 90 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [11:02:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 90 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:48]wFMCommunicate OK [11:02:48]SAM_PROTO_GetFieldsCounters done [11:02:48]requested_item shift.num is exist - process it [11:02:48]requested_item shift.opened is exist - process it [11:02:48]req_shift_opened [11:02:48]FM_GetShiftState [11:02:48]SAM_PROTO_GetShiftState [11:02:48]wFMCommunicate request_size=4 [11:02:48]MH_SAM_APDU [11:02:48]CAPDU: 80 13 01 00 [11:02:48]Write to MH i2c: E2 08 00 D9 04 80 13 01 00 00 00 00 00 5A [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:48]Read from MH i2c: E2 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 0E 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: E2 0E 00 D9 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5C [11:02:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:02:48]wFMCommunicate OK [11:02:48]SAM_PROTO_GetShiftState done [11:02:48]FM_GetShiftState done [11:02:48]req_shift_opened done [11:02:48]requested_item shift.open_date is exist - process it [11:02:48]req_shift_open_date [11:02:48]req_shift_open_date done [11:02:48]produce_requested_data done [11:02:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201872,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:02:48]process_action_free close_receipt [11:02:48]json_value_free [11:02:48]json_value_free done [11:02:48]process_json_proto returns [11:02:48]Send response to host [11:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201872,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:02:48]free response buf [11:02:48]execute_script done [11:02:48]execute_script returns [11:02:48]free content buf [11:02:48]Sock 5.Close socket [11:02:48]Sock 5.Thread stoped [11:02:48]*** FLAG_PRN_KEY set [11:02:49]*** FLAG_PRN_KEY reset [11:02:49]*** FLAG_PRN_PAP1 set [11:02:49]*** FLAG_PRN_PAP2 set [11:02:51]*** FLAG_PRN_PAP1 reset [11:02:51]*** FLAG_PRN_PAP2 reset [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:03]accept exits with 6 [11:04:03]New connection [11:04:03]New thread 3066948964 created [11:04:03]Thread 3066805604 joined [11:04:03]Waiting for new connection... [11:04:03] Sock 6.Parse request [11:04:03]Sock 6.Check first char [11:04:03]Sock 6.First char is OK [11:04:03]request: POST /json_proto HTTP/1.0 [11:04:03]Method: POST [11:04:03]URL: /json_proto [11:04:03]Method is POST - this is cgi request [11:04:03]url: /json_proto [11:04:03]query_string will be loaded in cgi processing [11:04:03]execute_cgi json_proto POST (null) [11:04:03]execute_cgi path=json_proto method=POST [11:04:03]POST find Content-Length [11:04:03]Host: 172.17.63.195:8080 [11:04:03]Content-Length: 674 [11:04:03]Content-Type: application/json [11:04:03] [11:04:03]POST finish read [11:04:03]Found Content-Length = 674 [11:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:04:03]execute_script... [11:04:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:04:03]POST & json_proto [11:04:03]process_json_proto [11:04:03]json parsed OK: [11:04:03]protocol is kg_v1.0 [11:04:03]action value=close_receipt [11:04:03]process_action close_receipt [11:04:03]cmd_close_receipt [11:04:03]MH_GetDate [11:04:03]Write to MH i2c: F0 00 00 DA 04 CD [11:04:03]Write i2c OK [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: F0 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: F0 09 00 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: F0 09 00 DA 04 00 23 1E 1E 67 47 1B 1E 67 83 [11:04:03]GetLastDocTimeStamp 1730026964 [11:04:03]current date 1730027043 [11:04:03]FM_GetShiftState [11:04:03]SAM_PROTO_GetShiftState [11:04:03]wFMCommunicate request_size=4 [11:04:03]MH_SAM_APDU [11:04:03]CAPDU: 80 13 01 00 [11:04:03]Write to MH i2c: E2 08 00 DB 04 80 13 01 00 00 00 00 00 5C [11:04:03]Write i2c OK [11:04:03]MH_I2C_Read... [11:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:03]Read from MH i2c: E2 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: E2 0E 00 [11:04:03]MH_I2C_Read... [11:04:03]Read from MH i2c: E2 0E 00 DB 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5E [11:04:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:04:03]wFMCommunicate OK [11:04:03]SAM_PROTO_GetShiftState done [11:04:03]FM_GetShiftState done [11:04:03]opened in 1729987312 [11:04:03]opened+sec_in_day 1730073712 [11:04:03]quantity*price = 50063 [11:04:03]sum+1 = 50064 [11:04:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 165 27.10.2024 11:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201873 ФПД: 105478035736323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201873&fm=105478035736323&tin=02508201610067®Number=0000000000091777&sum=50000 [11:04:04]StoreToDocumentArchive [11:04:04]shift 544 fd 201873 [11:04:04]save to /storage/0544/doc_00201873 [11:04:04]save last doc name /storage/0544/doc_00201873 to /storage/kkm_last_doc_name [11:04:04]save OK [11:04:04]Clear old archive folders... [11:04:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:04:04]tlvbuf is 0046C0B0 [11:04:04]SAM_PROTO_ClearQueue [11:04:04]wFMCommunicate request_size=4 [11:04:04]MH_SAM_APDU [11:04:04]CAPDU: 80 09 00 00 [11:04:04]Write to MH i2c: E2 08 00 E8 04 80 09 00 00 00 00 00 00 5E [11:04:04]Write i2c OK [11:04:04]MH_I2C_Read... [11:04:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:04]Read from MH i2c: E2 [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: E2 03 00 [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: E2 03 00 E8 04 00 90 00 60 [11:04:04]RAPDU: 90 00 [11:04:04]wFMCommunicate OK [11:04:04]SAM_PROTO_ClearQueue done [11:04:04]KKMCreateOFDPacket [11:04:04]OFDProtocolAddRootSTLVToBuf [11:04:04]FM_MakeSignedData [11:04:04]FM_MakeSignedData [11:04:04]SAM_PROTO_SignData [11:04:04]wFMCommunicate request_size=4 [11:04:04]MH_SAM_APDU [11:04:04]CAPDU: 80 0D 01 02 [11:04:04]Write to MH i2c: E2 08 00 E9 04 80 0D 01 02 00 00 00 00 66 [11:04:04]Write i2c OK [11:04:04]MH_I2C_Read... [11:04:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:04]Read from MH i2c: E2 [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: E2 03 00 [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: E2 03 00 E9 04 00 90 00 61 [11:04:04]RAPDU: 90 00 [11:04:04]wFMCommunicate OK [11:04:04]wFMCommunicate request_size=255 [11:04:04]MH_SAM_APDU [11:04:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 23 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 14 03 00 35 04 06 00 5F EE 84 DA [11:04:04]Write to MH i2c: E2 02 01 EA 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 23 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 14 03 00 35 04 06 00 5F EE 84 DA 00 00 58 [11:04:04]Write i2c OK [11:04:04]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 EA 04 00 90 00 62 [11:04:05]RAPDU: 90 00 [11:04:05]wFMCommunicate OK [11:04:05]wFMCommunicate request_size=7 [11:04:05]MH_SAM_APDU [11:04:05]CAPDU: 80 0D 02 02 02 07 03 [11:04:05]Write to MH i2c: E2 0A 00 EB 04 80 0D 02 02 02 00 07 03 00 00 77 [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 EB 04 00 90 00 63 [11:04:05]RAPDU: 90 00 [11:04:05]wFMCommunicate OK [11:04:05]wFMCommunicate request_size=4 [11:04:05]MH_SAM_APDU [11:04:05]CAPDU: 80 0D 03 02 [11:04:05]Write to MH i2c: E2 08 00 EC 04 80 0D 03 02 00 00 00 00 6B [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 0B 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 0B 00 EC 04 00 4A C5 03 F4 9A E6 B6 03 90 00 AB [11:04:05]RAPDU: 4A C5 03 F4 9A E6 B6 03 90 00 [11:04:05]wFMCommunicate OK [11:04:05]SAM_PROTO_SignData done [11:04:05]FM_MakeSignedData done [11:04:05]CreateOFDProtocolMessage [11:04:05]wFMCommunicate request_size=4 [11:04:05]MH_SAM_APDU [11:04:05]CAPDU: 80 11 00 00 [11:04:05]Write to MH i2c: E2 08 00 ED 04 80 11 00 00 00 00 00 00 6B [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 17 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 17 00 ED 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C0 [11:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:04:05]wFMCommunicate OK [11:04:05]CreateOFDProtocolMessage done [11:04:05]OFDSenderStorePacket 201873 [11:04:05]StoreOFDPacket docnum=201873 [11:04:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 91 32 04 01 44 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 23 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 14 03 00 35 04 06 00 5F EE 84 DA 07 03 4A C5 03 F4 9A E6 B6 03 [11:04:05]CheckFolder [11:04:05]dirname=/storage/ofd_packets [11:04:05]CheckFolder done [11:04:05]ProducePacketName [11:04:05]name=ofd_packets/00201873 [11:04:05]NVStorageSaveData ofd_packets/00201873 [11:04:05]File name is /storage/ofd_packets/00201873 [11:04:05]Write 298 bytes [11:04:05]NVStorageSaveData done [11:04:05]OFDSenderStorePacket done [11:04:05]KKMCreateOFDPacket done [11:04:05]NVStorageSaveData kkm_last_timestamp [11:04:05]File name is /storage/kkm_last_timestamp [11:04:05]Write 4 bytes [11:04:05]NVStorageSaveData done [11:04:05]ExternCall_PrintAddStr [11:04:05]wPrintStart [11:04:05]Write to MH i2c: 01 00 00 EE 04 F2 [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: 01 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: 01 07 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: 01 07 00 EE 04 00 00 00 00 00 FF 0F 07 [11:04:05]RasterBufferAndPrint [11:04:05]line Счет N : (1)449631 [11:04:05]line ИНН: 02508201610067 [11:04:05]line Контрольно-Кассовый Чек [11:04:05]line ПРОДАЖА [11:04:05]line ТРК (МРК, ГНК) : 11 [11:04:05]line Товар: 2710194210 [11:04:05]line ДТ-К-2 [11:04:05]line 6.570 * 76.20 [11:04:05]line = 500.63 [11:04:05]line НДС 12% НСП 1% [11:04:05]line > о реализуемом товаре [11:04:05]line ОКРУГЛЕНИЕ: -0.63 [11:04:05]line ИТОГО: 500.00 [11:04:05]line Внесено: 500.00 [11:04:05]line СДАЧА: 0.00 [11:04:05]line НСП 1% : 4.43 [11:04:05]line НДС 12% : 53.16 [11:04:05]line Наличными: 500.00 [11:04:05]line Безнал.: 0.00 [11:04:05]line Место: АЗС № 171 "Партнер Нефть" [11:04:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:04:05]line СНО: Общий режим [11:04:05]line Чек 165 27.10.2024 11:04 [11:04:05]line Смена: 544 ФФД: 1.0 [11:04:05]line ЗНМ: 0300000109 [11:04:05]line РНМ: 0000000000091777 [11:04:05]line Версия ККМ: 001 [11:04:05]line ФМ: 0000000000871756 [11:04:05]line ФД: 201873 [11:04:05]line ФПД: 105478035736323 [11:04:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201873&fm=105478035736323&tin=02508201610067®Number=0000000000091777&sum=50000 [11:04:05]OFD Sender: Processing packet 201873 [packets to send 112, broken 111] [11:04:05]ProducePacketName [11:04:05]name=ofd_packets/00201873 [11:04:05]OFD Sender: To server: pG, [11:04:05]CommunicateWithHost lk.salyk.kg:30040 [11:04:05]ConnectInit lk.salyk.kg [11:04:05]written 0, free lines is 4095 [11:04:05]Connected sock=7 [11:04:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 91 32 04 01 44 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 23 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 14 03 00 35 04 06 00 5F EE 84 DA 07 03 4A C5 03 F4 9A E6 B6 03 [11:04:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E7 E2 47 00 74 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 14 03 00 F4 03 04 00 DE C9 1D 67 B6 04 01 00 00 5C 2E D4 2F A6 43 C4 2E [11:04:05]CommunicateWithHost err = 0 [11:04:05]CheckOFDResponse [11:04:05]1017 (14) - 77093643461234 [11:04:05]1041 (16) - 0000000000871756 [11:04:05]1040 (4) - 201873 [11:04:05]1012 (4) - 27.10.2024 05:04 [11:04:05]1206 (1) - 0 [11:04:05]OFD Sender: Remove packet 201873 [11:04:05]ProducePacketName [11:04:05]name=ofd_packets/00201873 [11:04:05]NVStorageDeleteData [11:04:06]Write to MH i2c: 01 00 00 19 05 1E [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 07 00 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 8A 0C BB [11:04:06]RasterBufferAndPrint [11:04:06]line [11:04:06]line [11:04:06]line [11:04:06]line [11:04:06]line [11:04:06]written 0, free lines is 3215 [11:04:06]MH_Cut [11:04:06]Write to MH i2c: D1 01 00 20 05 01 F7 [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: D1 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: D1 01 00 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: D1 01 00 20 05 00 F6 [11:04:06]Write to MH i2c: 01 00 00 21 05 26 [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:06]OFD Sender: No OFD packet to send [11:04:07]*** Cut start [11:04:07]*** Purtial cut [11:04:07]*** Stage 1: CUTSNS_PIN = 1 [11:04:07]Read from MH i2c: 01 [11:04:07]MH_I2C_Read... [11:04:07]*** Stop cut motor [11:04:07]*** Cut end [11:04:07]Read from MH i2c: 01 07 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: 01 07 00 21 05 00 00 00 00 00 FF 0F 3B [11:04:07]process_action close_receipt done [11:04:07]requested_data is exist [11:04:07]produce_requested_data [11:04:07]requested_item fm.sn is exist - process it [11:04:07]wFMCommunicate request_size=4 [11:04:07]MH_SAM_APDU [11:04:07]CAPDU: 80 11 00 00 [11:04:07]Write to MH i2c: E2 08 00 22 05 80 11 00 00 00 00 00 00 A1 [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 17 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F6 [11:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:04:07]wFMCommunicate OK [11:04:07]requested_item fd.num is exist - process it [11:04:07]SAM_PROTO_GetFieldsCounters [11:04:07]wFMCommunicate request_size=4 [11:04:07]MH_SAM_APDU [11:04:07]CAPDU: 80 13 00 00 [11:04:07]Write to MH i2c: E2 08 00 23 05 80 13 00 00 00 00 00 00 A4 [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 62 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 62 00 23 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 91 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [11:04:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 91 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:07]wFMCommunicate OK [11:04:07]SAM_PROTO_GetFieldsCounters done [11:04:07]requested_item shift.num is exist - process it [11:04:07]requested_item shift.opened is exist - process it [11:04:07]req_shift_opened [11:04:07]FM_GetShiftState [11:04:07]SAM_PROTO_GetShiftState [11:04:07]wFMCommunicate request_size=4 [11:04:07]MH_SAM_APDU [11:04:07]CAPDU: 80 13 01 00 [11:04:07]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 0E 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A8 [11:04:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:04:07]wFMCommunicate OK [11:04:07]SAM_PROTO_GetShiftState done [11:04:07]FM_GetShiftState done [11:04:07]req_shift_opened done [11:04:07]requested_item shift.open_date is exist - process it [11:04:07]req_shift_open_date [11:04:07]req_shift_open_date done [11:04:07]produce_requested_data done [11:04:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201873,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:04:07]process_action_free close_receipt [11:04:07]json_value_free [11:04:07]json_value_free done [11:04:07]process_json_proto returns [11:04:07]Send response to host [11:04:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201873,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:04:07]free response buf [11:04:07]execute_script done [11:04:07]execute_script returns [11:04:07]free content buf [11:04:07]Sock 6.Close socket [11:04:07]Sock 6.Thread stoped [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]accept exits with 5 [11:04:31]New connection [11:04:31]New thread 3066805604 created [11:04:31]Thread 3066948964 joined [11:04:31]Waiting for new connection... [11:04:31] Sock 5.Parse request [11:04:31]Sock 5.Check first char [11:04:31]Sock 5.First char is OK [11:04:31]request: POST /json_proto HTTP/1.0 [11:04:31]Method: POST [11:04:31]URL: /json_proto [11:04:31]Method is POST - this is cgi request [11:04:31]url: /json_proto [11:04:31]query_string will be loaded in cgi processing [11:04:31]execute_cgi json_proto POST (null) [11:04:31]execute_cgi path=json_proto method=POST [11:04:31]POST find Content-Length [11:04:31]Host: 172.17.63.195:8080 [11:04:31]Content-Length: 766 [11:04:31]Content-Type: application/json [11:04:31] [11:04:31]POST finish read [11:04:31]Found Content-Length = 766 [11:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:31]execute_script... [11:04:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:31]POST & json_proto [11:04:31]process_json_proto [11:04:31]json parsed OK: [11:04:31]protocol is kg_v1.0 [11:04:31]action value=close_receipt [11:04:31]process_action close_receipt [11:04:31]cmd_close_receipt [11:04:31]MH_GetDate [11:04:31]Write to MH i2c: F0 00 00 25 05 19 [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 09 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 09 00 25 05 00 3F 1E 1E 67 47 1B 1E 67 EB [11:04:31]GetLastDocTimeStamp 1730027043 [11:04:31]current date 1730027071 [11:04:31]FM_GetShiftState [11:04:31]SAM_PROTO_GetShiftState [11:04:31]wFMCommunicate request_size=4 [11:04:31]MH_SAM_APDU [11:04:31]CAPDU: 80 13 01 00 [11:04:31]Write to MH i2c: E2 08 00 26 05 80 13 01 00 00 00 00 00 A8 [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:31]Read from MH i2c: E2 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 0E 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 0E 00 26 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AA [11:04:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:04:31]wFMCommunicate OK [11:04:31]SAM_PROTO_GetShiftState done [11:04:31]FM_GetShiftState done [11:04:31]opened in 1729987312 [11:04:31]opened+sec_in_day 1730073712 [11:04:31]quantity*price = 25020 [11:04:31]sum+1 = 25022 [11:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 166 27.10.2024 11:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201874 ФПД: 124173625000721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110431&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201874&fm=124173625000721&tin=02508201610067®Number=0000000000091777&sum=25021 [11:04:32]StoreToDocumentArchive [11:04:32]shift 544 fd 201874 [11:04:32]save to /storage/0544/doc_00201874 [11:04:32]save last doc name /storage/0544/doc_00201874 to /storage/kkm_last_doc_name [11:04:32]save OK [11:04:32]Clear old archive folders... [11:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:32]tlvbuf is 0046C800 [11:04:32]SAM_PROTO_ClearQueue [11:04:32]wFMCommunicate request_size=4 [11:04:32]MH_SAM_APDU [11:04:32]CAPDU: 80 09 00 00 [11:04:32]Write to MH i2c: E2 08 00 33 05 80 09 00 00 00 00 00 00 AA [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:32]Read from MH i2c: E2 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 03 00 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [11:04:32]RAPDU: 90 00 [11:04:32]wFMCommunicate OK [11:04:32]SAM_PROTO_ClearQueue done [11:04:32]KKMCreateOFDPacket [11:04:32]OFDProtocolAddRootSTLVToBuf [11:04:32]FM_MakeSignedData [11:04:32]FM_MakeSignedData [11:04:32]SAM_PROTO_SignData [11:04:32]wFMCommunicate request_size=4 [11:04:32]MH_SAM_APDU [11:04:32]CAPDU: 80 0D 01 02 [11:04:32]Write to MH i2c: E2 08 00 34 05 80 0D 01 02 00 00 00 00 B2 [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:32]Read from MH i2c: E2 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 03 00 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [11:04:32]RAPDU: 90 00 [11:04:32]wFMCommunicate OK [11:04:32]wFMCommunicate request_size=255 [11:04:32]MH_SAM_APDU [11:04:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3F 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 14 03 00 35 04 06 00 70 [11:04:32]Write to MH i2c: E2 02 01 35 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3F 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 14 03 00 35 04 06 00 70 00 00 0C [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:32]Read from MH i2c: E2 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 03 00 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [11:04:32]RAPDU: 90 00 [11:04:32]wFMCommunicate OK [11:04:32]wFMCommunicate request_size=10 [11:04:32]MH_SAM_APDU [11:04:32]CAPDU: 80 0D 02 02 05 EF 6C CF 03 11 [11:04:32]Write to MH i2c: E2 0D 00 36 05 80 0D 02 02 05 00 EF 6C CF 03 11 00 00 FD [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:32]Read from MH i2c: E2 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 03 00 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [11:04:32]RAPDU: 90 00 [11:04:32]wFMCommunicate OK [11:04:32]wFMCommunicate request_size=4 [11:04:32]MH_SAM_APDU [11:04:32]CAPDU: 80 0D 03 02 [11:04:32]Write to MH i2c: E2 08 00 37 05 80 0D 03 02 00 00 00 00 B7 [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:32]Read from MH i2c: E2 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 0B 00 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: E2 0B 00 37 05 00 6C D4 D2 D3 63 CB C9 EE 90 00 82 [11:04:32]RAPDU: 6C D4 D2 D3 63 CB C9 EE 90 00 [11:04:32]wFMCommunicate OK [11:04:32]SAM_PROTO_SignData done [11:04:32]FM_MakeSignedData done [11:04:32]CreateOFDProtocolMessage [11:04:32]wFMCommunicate request_size=4 [11:04:32]MH_SAM_APDU [11:04:32]CAPDU: 80 11 00 00 [11:04:32]Write to MH i2c: E2 08 00 38 05 80 11 00 00 00 00 00 00 B7 [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 17 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 17 00 38 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0C [11:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:04:33]wFMCommunicate OK [11:04:33]CreateOFDProtocolMessage done [11:04:33]OFDSenderStorePacket 201874 [11:04:33]StoreOFDPacket docnum=201874 [11:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4E 9C 07 01 4D FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3F 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 14 03 00 35 04 06 00 70 EF 6C CF 03 11 6C D4 D2 D3 63 CB C9 EE [11:04:33]CheckFolder [11:04:33]dirname=/storage/ofd_packets [11:04:33]CheckFolder done [11:04:33]ProducePacketName [11:04:33]name=ofd_packets/00201874 [11:04:33]NVStorageSaveData ofd_packets/00201874 [11:04:33]File name is /storage/ofd_packets/00201874 [11:04:33]Write 301 bytes [11:04:33]NVStorageSaveData done [11:04:33]OFDSenderStorePacket done [11:04:33]KKMCreateOFDPacket done [11:04:33]NVStorageSaveData kkm_last_timestamp [11:04:33]File name is /storage/kkm_last_timestamp [11:04:33]Write 4 bytes [11:04:33]NVStorageSaveData done [11:04:33]ExternCall_PrintAddStr [11:04:33]wPrintStart [11:04:33]Write to MH i2c: 01 00 00 39 05 3E [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 FF 0F 53 [11:04:33]RasterBufferAndPrint [11:04:33]line Счет N : (1)449634 [11:04:33]line ИНН: 02508201610067 [11:04:33]line Контрольно-Кассовый Чек [11:04:33]line ПРОДАЖА [11:04:33]line ТРК (МРК, ГНК) : 52 [11:04:33]line Товар: 2710124130 [11:04:33]line Аи-92-К-2 [11:04:33]line 3.740 * 66.90 [11:04:33]line = 250.21 [11:04:33]line НДС 12% НСП 1% [11:04:33]line > о реализуемом товаре [11:04:33]line ИТОГО: 250.21 [11:04:33]line НСП 1% : 2.21 [11:04:33]line НДС 12% : 26.57 [11:04:33]line Наличными: 0.00 [11:04:33]line Безнал.: 250.21 [11:04:33]line Место: АЗС № 171 "Партнер Нефть" [11:04:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:04:33]line СНО: Общий режим [11:04:33]line Чек 166 27.10.2024 11:04 [11:04:33]line Смена: 544 ФФД: 1.0 [11:04:33]line ЗНМ: 0300000109 [11:04:33]line РНМ: 0000000000091777 [11:04:33]line Версия ККМ: 001 [11:04:33]line Платежная система: Mbank [11:04:33]line ФМ: 0000000000871756 [11:04:33]line ФД: 201874 [11:04:33]line ФПД: 124173625000721 [11:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110431&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201874&fm=124173625000721&tin=02508201610067®Number=0000000000091777&sum=25021 [11:04:33]written 0, free lines is 4095 [11:04:33]OFD Sender: Processing packet 201874 [packets to send 112, broken 111] [11:04:33]ProducePacketName [11:04:33]name=ofd_packets/00201874 [11:04:33]OFD Sender: To server: pG, [11:04:33]CommunicateWithHost lk.salyk.kg:30040 [11:04:33]ConnectInit lk.salyk.kg [11:04:33]Connected sock=7 [11:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4E 9C 07 01 4D FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3F 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 14 03 00 35 04 06 00 70 EF 6C CF 03 11 6C D4 D2 D3 63 CB C9 EE [11:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F7 F7 47 00 FD 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 14 03 00 F4 03 04 00 F9 C9 1D 67 B6 04 01 00 00 55 38 82 54 0B 1F 1B 4C [11:04:33]CommunicateWithHost err = 0 [11:04:33]CheckOFDResponse [11:04:33]1017 (14) - 77093643461234 [11:04:33]1041 (16) - 0000000000871756 [11:04:33]1040 (4) - 201874 [11:04:33]1012 (4) - 27.10.2024 05:04 [11:04:33]1206 (1) - 0 [11:04:33]OFD Sender: Remove packet 201874 [11:04:33]ProducePacketName [11:04:33]name=ofd_packets/00201874 [11:04:33]NVStorageDeleteData [11:04:33]Write to MH i2c: 01 00 00 62 05 67 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 B5 0C 2F [11:04:33]RasterBufferAndPrint [11:04:33]line [11:04:33]line [11:04:33]line [11:04:33]line [11:04:33]line [11:04:33]written 0, free lines is 3256 [11:04:33]MH_Cut [11:04:33]Write to MH i2c: D1 01 00 69 05 01 40 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: D1 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: D1 01 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: D1 01 00 69 05 00 3F [11:04:33]Write to MH i2c: 01 00 00 6A 05 6F [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:34]OFD Sender: No OFD packet to send [11:04:34]*** Cut start [11:04:34]*** Purtial cut [11:04:34]*** Stage 1: CUTSNS_PIN = 1 [11:04:34]Read from MH i2c: 01 [11:04:34]MH_I2C_Read... [11:04:34]*** Stop cut motor [11:04:34]*** Cut end [11:04:34]Read from MH i2c: 01 07 00 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 FF 0F 84 [11:04:34]process_action close_receipt done [11:04:34]requested_data is exist [11:04:34]produce_requested_data [11:04:34]requested_item fm.sn is exist - process it [11:04:34]wFMCommunicate request_size=4 [11:04:34]MH_SAM_APDU [11:04:34]CAPDU: 80 11 00 00 [11:04:34]Write to MH i2c: E2 08 00 6B 05 80 11 00 00 00 00 00 00 EA [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:34]Read from MH i2c: E2 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: E2 17 00 [11:04:34]MH_I2C_Read... [11:04:34]Read from MH i2c: E2 17 00 6B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [11:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:04:34]wFMCommunicate OK [11:04:34]requested_item fd.num is exist - process it [11:04:34]SAM_PROTO_GetFieldsCounters [11:04:34]wFMCommunicate request_size=4 [11:04:34]MH_SAM_APDU [11:04:34]CAPDU: 80 13 00 00 [11:04:34]Write to MH i2c: E2 08 00 6C 05 80 13 00 00 00 00 00 00 ED [11:04:34]Write i2c OK [11:04:34]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 62 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 62 00 6C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 92 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [11:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 92 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:35]wFMCommunicate OK [11:04:35]SAM_PROTO_GetFieldsCounters done [11:04:35]requested_item shift.num is exist - process it [11:04:35]requested_item shift.opened is exist - process it [11:04:35]req_shift_opened [11:04:35]FM_GetShiftState [11:04:35]SAM_PROTO_GetShiftState [11:04:35]wFMCommunicate request_size=4 [11:04:35]MH_SAM_APDU [11:04:35]CAPDU: 80 13 01 00 [11:04:35]Write to MH i2c: E2 08 00 6D 05 80 13 01 00 00 00 00 00 EF [11:04:35]Write i2c OK [11:04:35]MH_I2C_Read... [11:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:35]Read from MH i2c: E2 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 0E 00 [11:04:35]MH_I2C_Read... [11:04:35]Read from MH i2c: E2 0E 00 6D 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F1 [11:04:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:04:35]wFMCommunicate OK [11:04:35]SAM_PROTO_GetShiftState done [11:04:35]FM_GetShiftState done [11:04:35]req_shift_opened done [11:04:35]requested_item shift.open_date is exist - process it [11:04:35]req_shift_open_date [11:04:35]req_shift_open_date done [11:04:35]produce_requested_data done [11:04:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201874,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:04:35]process_action_free close_receipt [11:04:35]json_value_free [11:04:35]json_value_free done [11:04:35]process_json_proto returns [11:04:35]Send response to host [11:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201874,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:04:35]free response buf [11:04:35]execute_script done [11:04:35]execute_script returns [11:04:35]free content buf [11:04:35]Sock 5.Close socket [11:04:35]Sock 5.Thread stoped [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:02]accept exits with 6 [11:05:02]New connection [11:05:02]New thread 3066948964 created [11:05:02]Thread 3066805604 joined [11:05:02]Waiting for new connection... [11:05:02] Sock 6.Parse request [11:05:02]Sock 6.Check first char [11:05:02]Sock 6.First char is OK [11:05:02]request: POST /json_proto HTTP/1.0 [11:05:02]Method: POST [11:05:02]URL: /json_proto [11:05:02]Method is POST - this is cgi request [11:05:02]url: /json_proto [11:05:02]query_string will be loaded in cgi processing [11:05:02]execute_cgi json_proto POST (null) [11:05:02]execute_cgi path=json_proto method=POST [11:05:02]POST find Content-Length [11:05:02]Host: 172.17.63.195:8080 [11:05:02]Content-Length: 675 [11:05:02]Content-Type: application/json [11:05:02] [11:05:02]POST finish read [11:05:02]Found Content-Length = 675 [11:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:02]execute_script... [11:05: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)449635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:02]POST & json_proto [11:05:02]process_json_proto [11:05:02]json parsed OK: [11:05:02]protocol is kg_v1.0 [11:05:02]action value=close_receipt [11:05:02]process_action close_receipt [11:05:02]cmd_close_receipt [11:05:02]MH_GetDate [11:05:02]Write to MH i2c: F0 00 00 6E 05 62 [11:05:02]Write i2c OK [11:05:02]MH_I2C_Read... [11:05:02]Read from MH i2c: F0 [11:05:02]MH_I2C_Read... [11:05:02]Read from MH i2c: F0 09 00 [11:05:02]MH_I2C_Read... [11:05:02]Read from MH i2c: F0 09 00 6E 05 00 5E 1E 1E 67 47 1B 1E 67 53 [11:05:02]GetLastDocTimeStamp 1730027071 [11:05:02]current date 1730027102 [11:05:02]FM_GetShiftState [11:05:02]SAM_PROTO_GetShiftState [11:05:02]wFMCommunicate request_size=4 [11:05:02]MH_SAM_APDU [11:05:02]CAPDU: 80 13 01 00 [11:05:02]Write to MH i2c: E2 08 00 6F 05 80 13 01 00 00 00 00 00 F1 [11:05:02]Write i2c OK [11:05:02]MH_I2C_Read... [11:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:02]Read from MH i2c: E2 [11:05:02]MH_I2C_Read... [11:05:02]Read from MH i2c: E2 0E 00 [11:05:02]MH_I2C_Read... [11:05:02]Read from MH i2c: E2 0E 00 6F 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F3 [11:05:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:05:02]wFMCommunicate OK [11:05:02]SAM_PROTO_GetShiftState done [11:05:02]FM_GetShiftState done [11:05:02]opened in 1729987312 [11:05:02]opened+sec_in_day 1730073712 [11:05:02]quantity*price = 90068 [11:05:02]sum+1 = 90069 [11:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 167 27.10.2024 11:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201875 ФПД: 124740251880195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110502&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201875&fm=124740251880195&tin=02508201610067®Number=0000000000091777&sum=90000 [11:05:03]StoreToDocumentArchive [11:05:03]shift 544 fd 201875 [11:05:03]save to /storage/0544/doc_00201875 [11:05:03]save last doc name /storage/0544/doc_00201875 to /storage/kkm_last_doc_name [11:05:03]save OK [11:05:03]Clear old archive folders... [11:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:03]tlvbuf is 00469EB0 [11:05:03]SAM_PROTO_ClearQueue [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 09 00 00 [11:05:03]Write to MH i2c: E2 08 00 7C 05 80 09 00 00 00 00 00 00 F3 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 7C 05 00 90 00 F5 [11:05:03]RAPDU: 90 00 [11:05:03]wFMCommunicate OK [11:05:03]SAM_PROTO_ClearQueue done [11:05:03]KKMCreateOFDPacket [11:05:03]OFDProtocolAddRootSTLVToBuf [11:05:03]FM_MakeSignedData [11:05:03]FM_MakeSignedData [11:05:03]SAM_PROTO_SignData [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 0D 01 02 [11:05:03]Write to MH i2c: E2 08 00 7D 05 80 0D 01 02 00 00 00 00 FB [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 7D 05 00 90 00 F6 [11:05:03]RAPDU: 90 00 [11:05:03]wFMCommunicate OK [11:05:03]wFMCommunicate request_size=255 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5E 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 14 03 00 35 04 06 00 71 73 5A 67 [11:05:03]Write to MH i2c: E2 02 01 7E 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5E 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 14 03 00 35 04 06 00 71 73 5A 67 00 00 67 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 7E 05 00 90 00 F7 [11:05:03]RAPDU: 90 00 [11:05:03]wFMCommunicate OK [11:05:03]wFMCommunicate request_size=7 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 0D 02 02 02 0B 03 [11:05:03]Write to MH i2c: E2 0A 00 7F 05 80 0D 02 02 02 00 0B 03 00 00 10 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 03 00 7F 05 00 90 00 F8 [11:05:03]RAPDU: 90 00 [11:05:03]wFMCommunicate OK [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 0D 03 02 [11:05:03]Write to MH i2c: E2 08 00 80 05 80 0D 03 02 00 00 00 00 00 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 0B 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 0B 00 80 05 00 DA 9C 15 A4 67 4E 2E 86 90 00 99 [11:05:04]RAPDU: DA 9C 15 A4 67 4E 2E 86 90 00 [11:05:04]wFMCommunicate OK [11:05:04]SAM_PROTO_SignData done [11:05:04]FM_MakeSignedData done [11:05:04]CreateOFDProtocolMessage [11:05:04]wFMCommunicate request_size=4 [11:05:04]MH_SAM_APDU [11:05:04]CAPDU: 80 11 00 00 [11:05:04]Write to MH i2c: E2 08 00 81 05 80 11 00 00 00 00 00 00 00 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 17 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 17 00 81 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 55 [11:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:05:04]wFMCommunicate OK [11:05:04]CreateOFDProtocolMessage done [11:05:04]OFDSenderStorePacket 201875 [11:05:04]StoreOFDPacket docnum=201875 [11:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 97 1A 04 01 3C 2A 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5E 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 14 03 00 35 04 06 00 71 73 5A 67 0B 03 DA 9C 15 A4 67 4E 2E 86 [11:05:04]CheckFolder [11:05:04]dirname=/storage/ofd_packets [11:05:04]CheckFolder done [11:05:04]ProducePacketName [11:05:04]name=ofd_packets/00201875 [11:05:04]NVStorageSaveData ofd_packets/00201875 [11:05:04]File name is /storage/ofd_packets/00201875 [11:05:04]Write 298 bytes [11:05:04]NVStorageSaveData done [11:05:04]OFDSenderStorePacket done [11:05:04]KKMCreateOFDPacket done [11:05:04]NVStorageSaveData kkm_last_timestamp [11:05:04]File name is /storage/kkm_last_timestamp [11:05:04]Write 4 bytes [11:05:04]NVStorageSaveData done [11:05:04]ExternCall_PrintAddStr [11:05:04]wPrintStart [11:05:04]Write to MH i2c: 01 00 00 82 05 87 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 07 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [11:05:04]RasterBufferAndPrint [11:05:04]line Счет N : (1)449635 [11:05:04]line ИНН: 02508201610067 [11:05:04]line Контрольно-Кассовый Чек [11:05:04]line ПРОДАЖА [11:05:04]line ТРК (МРК, ГНК) : 21 [11:05:04]line Товар: 2710194210 [11:05:04]line ДТ-К-2 [11:05:04]line 11.820 * 76.20 [11:05:04]line = 900.68 [11:05:04]line НДС 12% НСП 1% [11:05:04]line > о реализуемом товаре [11:05:04]line ОКРУГЛЕНИЕ: -0.68 [11:05:04]line ИТОГО: 900.00 [11:05:04]line Внесено: 900.00 [11:05:04]line СДАЧА: 0.00 [11:05:04]line НСП 1% : 7.97 [11:05:04]line НДС 12% : 95.65 [11:05:04]line Наличными: 900.00 [11:05:04]line Безнал.: 0.00 [11:05:04]line Место: АЗС № 171 "Партнер Нефть" [11:05:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:05:04]line СНО: Общий режим [11:05:04]line Чек 167 27.10.2024 11:05 [11:05:04]line Смена: 544 ФФД: 1.0 [11:05:04]line ЗНМ: 0300000109 [11:05:04]line РНМ: 0000000000091777 [11:05:04]line Версия ККМ: 001 [11:05:04]line ФМ: 0000000000871756 [11:05:04]line ФД: 201875 [11:05:04]line ФПД: 124740251880195 [11:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110502&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201875&fm=124740251880195&tin=02508201610067®Number=0000000000091777&sum=90000 [11:05:04]OFD Sender: Processing packet 201875 [packets to send 112, broken 111] [11:05:04]ProducePacketName [11:05:04]name=ofd_packets/00201875 [11:05:04]OFD Sender: To server: pG, [11:05:04]CommunicateWithHost lk.salyk.kg:30040 [11:05:04]ConnectInit lk.salyk.kg [11:05:04]written 0, free lines is 4095 [11:05:04]Connected sock=7 [11:05:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 97 1A 04 01 3C 2A 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 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5E 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 14 03 00 35 04 06 00 71 73 5A 67 0B 03 DA 9C 15 A4 67 4E 2E 86 [11:05:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FA 69 47 00 94 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 14 03 00 F4 03 04 00 18 CA 1D 67 B6 04 01 00 00 BB 39 77 DA 2E 40 41 3B [11:05:04]CommunicateWithHost err = 0 [11:05:04]CheckOFDResponse [11:05:04]1017 (14) - 77093643461234 [11:05:04]1041 (16) - 0000000000871756 [11:05:04]1040 (4) - 201875 [11:05:04]1012 (4) - 27.10.2024 05:05 [11:05:04]1206 (1) - 0 [11:05:04]OFD Sender: Remove packet 201875 [11:05:04]ProducePacketName [11:05:04]name=ofd_packets/00201875 [11:05:04]NVStorageDeleteData [11:05:04]Write to MH i2c: 01 00 00 AD 05 B2 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 07 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 8C 0C 51 [11:05:04]RasterBufferAndPrint [11:05:04]line [11:05:04]line [11:05:04]line [11:05:04]line [11:05:04]line [11:05:04]written 0, free lines is 3216 [11:05:04]MH_Cut [11:05:04]Write to MH i2c: D1 01 00 B4 05 01 8B [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: D1 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: D1 01 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: D1 01 00 B4 05 00 8A [11:05:04]Write to MH i2c: 01 00 00 B5 05 BA [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:05]OFD Sender: No OFD packet to send [11:05:05]*** Cut start [11:05:05]*** Purtial cut [11:05:05]*** Stage 1: CUTSNS_PIN = 1 [11:05:06]Read from MH i2c: 01 [11:05:06]MH_I2C_Read... [11:05:06]*** Stop cut motor [11:05:06]*** Cut end [11:05:06]Read from MH i2c: 01 07 00 [11:05:06]MH_I2C_Read... [11:05:06]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [11:05:06]process_action close_receipt done [11:05:06]requested_data is exist [11:05:06]produce_requested_data [11:05:06]requested_item fm.sn is exist - process it [11:05:06]wFMCommunicate request_size=4 [11:05:06]MH_SAM_APDU [11:05:06]CAPDU: 80 11 00 00 [11:05:06]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [11:05:06]Write i2c OK [11:05:06]MH_I2C_Read... [11:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:06]Read from MH i2c: E2 [11:05:06]MH_I2C_Read... [11:05:06]Read from MH i2c: E2 17 00 [11:05:06]MH_I2C_Read... [11:05:06]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8A [11:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:05:06]wFMCommunicate OK [11:05:06]requested_item fd.num is exist - process it [11:05:06]SAM_PROTO_GetFieldsCounters [11:05:06]wFMCommunicate request_size=4 [11:05:06]MH_SAM_APDU [11:05:06]CAPDU: 80 13 00 00 [11:05:06]Write to MH i2c: E2 08 00 B7 05 80 13 00 00 00 00 00 00 38 [11:05:06]Write i2c OK [11:05:06]MH_I2C_Read... [11:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:06]Read from MH i2c: E2 [11:05:06]MH_I2C_Read... [11:05:06]Read from MH i2c: E2 62 00 [11:05:06]MH_I2C_Read... [11:05:06]Read from MH i2c: E2 62 00 B7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 93 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [11:05:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 93 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:06]wFMCommunicate OK [11:05:06]SAM_PROTO_GetFieldsCounters done [11:05:06]requested_item shift.num is exist - process it [11:05:06]requested_item shift.opened is exist - process it [11:05:06]req_shift_opened [11:05:06]FM_GetShiftState [11:05:06]SAM_PROTO_GetShiftState [11:05:06]wFMCommunicate request_size=4 [11:05:06]MH_SAM_APDU [11:05:06]CAPDU: 80 13 01 00 [11:05:06]Write to MH i2c: E2 08 00 B8 05 80 13 01 00 00 00 00 00 3A [11:05:06]Write i2c OK [11:05:06]MH_I2C_Read... [11:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:06]Read from MH i2c: E2 [11:05:06]MH_I2C_Read... [11:05:06]Read from MH i2c: E2 0E 00 [11:05:06]MH_I2C_Read... [11:05:06]Read from MH i2c: E2 0E 00 B8 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3C [11:05:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:05:06]wFMCommunicate OK [11:05:06]SAM_PROTO_GetShiftState done [11:05:06]FM_GetShiftState done [11:05:06]req_shift_opened done [11:05:06]requested_item shift.open_date is exist - process it [11:05:06]req_shift_open_date [11:05:06]req_shift_open_date done [11:05:06]produce_requested_data done [11:05:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201875,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:05:06]process_action_free close_receipt [11:05:06]json_value_free [11:05:06]json_value_free done [11:05:06]process_json_proto returns [11:05:06]Send response to host [11:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201875,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:05:06]free response buf [11:05:06]execute_script done [11:05:06]execute_script returns [11:05:06]free content buf [11:05:06]Sock 6.Close socket [11:05:06]Sock 6.Thread stoped [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:40]accept exits with 5 [11:06:40]New connection [11:06:40]New thread 3066805604 created [11:06:40]Thread 3066948964 joined [11:06:40]Waiting for new connection... [11:06:40] Sock 5.Parse request [11:06:40]Sock 5.Check first char [11:06:40]Sock 5.First char is OK [11:06:40]request: POST /json_proto HTTP/1.0 [11:06:40]Method: POST [11:06:40]URL: /json_proto [11:06:40]Method is POST - this is cgi request [11:06:40]url: /json_proto [11:06:40]query_string will be loaded in cgi processing [11:06:40]execute_cgi json_proto POST (null) [11:06:40]execute_cgi path=json_proto method=POST [11:06:40]POST find Content-Length [11:06:40]Host: 172.17.63.195:8080 [11:06:40]Content-Length: 677 [11:06:40]Content-Type: application/json [11:06:40] [11:06:40]POST finish read [11:06:40]Found Content-Length = 677 [11:06:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:06:40]execute_script... [11:06: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)449637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:06:40]POST & json_proto [11:06:40]process_json_proto [11:06:40]json parsed OK: [11:06:40]protocol is kg_v1.0 [11:06:40]action value=close_receipt [11:06:40]process_action close_receipt [11:06:40]cmd_close_receipt [11:06:40]MH_GetDate [11:06:40]Write to MH i2c: F0 00 00 B9 05 AD [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: F0 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: F0 09 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: F0 09 00 B9 05 00 C0 1E 1E 67 47 1B 1E 67 00 [11:06:40]GetLastDocTimeStamp 1730027102 [11:06:40]current date 1730027200 [11:06:40]FM_GetShiftState [11:06:40]SAM_PROTO_GetShiftState [11:06:40]wFMCommunicate request_size=4 [11:06:40]MH_SAM_APDU [11:06:40]CAPDU: 80 13 01 00 [11:06:40]Write to MH i2c: E2 08 00 BA 05 80 13 01 00 00 00 00 00 3C [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:40]Read from MH i2c: E2 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 0E 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: E2 0E 00 BA 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3E [11:06:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:06:40]wFMCommunicate OK [11:06:40]SAM_PROTO_GetShiftState done [11:06:40]FM_GetShiftState done [11:06:40]opened in 1729987312 [11:06:40]opened+sec_in_day 1730073712 [11:06:40]quantity*price = 60009 [11:06:40]sum+1 = 60010 [11:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 168 27.10.2024 11:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201876 ФПД: 245532711555826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110640&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201876&fm=245532711555826&tin=02508201610067®Number=0000000000091777&sum=60000 [11:06:42]StoreToDocumentArchive [11:06:42]shift 544 fd 201876 [11:06:42]save to /storage/0544/doc_00201876 [11:06:42]save last doc name /storage/0544/doc_00201876 to /storage/kkm_last_doc_name [11:06:42]save OK [11:06:42]Clear old archive folders... [11:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:42]tlvbuf is 0048CB00 [11:06:42]SAM_PROTO_ClearQueue [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 09 00 00 [11:06:42]Write to MH i2c: E2 08 00 C7 05 80 09 00 00 00 00 00 00 3E [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [11:06:42]RAPDU: 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_ClearQueue done [11:06:42]KKMCreateOFDPacket [11:06:42]OFDProtocolAddRootSTLVToBuf [11:06:42]FM_MakeSignedData [11:06:42]FM_MakeSignedData [11:06:42]SAM_PROTO_SignData [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 0D 01 02 [11:06:42]Write to MH i2c: E2 08 00 C8 05 80 0D 01 02 00 00 00 00 46 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 C8 05 00 90 00 41 [11:06:42]RAPDU: 90 00 [11:06:42]wFMCommunicate OK [11:06:42]wFMCommunicate request_size=255 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A8 00 00 00 F4 03 04 00 C0 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 14 03 00 35 04 06 00 DF [11:06:42]Write to MH i2c: E2 02 01 C9 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A8 00 00 00 F4 03 04 00 C0 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 14 03 00 35 04 06 00 DF 00 00 6E [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [11:06:42]RAPDU: 90 00 [11:06:42]wFMCommunicate OK [11:06:42]wFMCommunicate request_size=10 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 0D 02 02 05 4F 8A 0D 92 F2 [11:06:42]Write to MH i2c: E2 0D 00 CA 05 80 0D 02 02 05 00 4F 8A 0D 92 F2 00 00 BD [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [11:06:42]RAPDU: 90 00 [11:06:42]wFMCommunicate OK [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 0D 03 02 [11:06:42]Write to MH i2c: E2 08 00 CB 05 80 0D 03 02 00 00 00 00 4B [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0B 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0B 00 CB 05 00 AD 01 9E 66 47 47 92 90 90 00 AE [11:06:42]RAPDU: AD 01 9E 66 47 47 92 90 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_SignData done [11:06:42]FM_MakeSignedData done [11:06:42]CreateOFDProtocolMessage [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 11 00 00 [11:06:42]Write to MH i2c: E2 08 00 CC 05 80 11 00 00 00 00 00 00 4B [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 17 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 17 00 CC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A0 [11:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:06:42]wFMCommunicate OK [11:06:42]CreateOFDProtocolMessage done [11:06:42]OFDSenderStorePacket 201876 [11:06:42]StoreOFDPacket docnum=201876 [11:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D5 89 07 01 30 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A8 00 00 00 F4 03 04 00 C0 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 14 03 00 35 04 06 00 DF 4F 8A 0D 92 F2 AD 01 9E 66 47 47 92 90 [11:06:42]CheckFolder [11:06:42]dirname=/storage/ofd_packets [11:06:42]CheckFolder done [11:06:42]ProducePacketName [11:06:42]name=ofd_packets/00201876 [11:06:42]NVStorageSaveData ofd_packets/00201876 [11:06:42]File name is /storage/ofd_packets/00201876 [11:06:42]Write 301 bytes [11:06:42]NVStorageSaveData done [11:06:42]OFDSenderStorePacket done [11:06:42]KKMCreateOFDPacket done [11:06:42]NVStorageSaveData kkm_last_timestamp [11:06:42]File name is /storage/kkm_last_timestamp [11:06:42]Write 4 bytes [11:06:42]NVStorageSaveData done [11:06:42]ExternCall_PrintAddStr [11:06:42]wPrintStart [11:06:42]Write to MH i2c: 01 00 00 CD 05 D2 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: 01 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: 01 07 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: 01 07 00 CD 05 00 00 00 00 00 FF 0F E7 [11:06:42]RasterBufferAndPrint [11:06:42]line Счет N : (1)449637 [11:06:42]line ИНН: 02508201610067 [11:06:42]line Контрольно-Кассовый Чек [11:06:42]line ПРОДАЖА [11:06:42]line ТРК (МРК, ГНК) : 52 [11:06:42]line Товар: 2710124130 [11:06:42]line Аи-92-К-2 [11:06:42]line 8.970 * 66.90 [11:06:42]line = 600.09 [11:06:42]line НДС 12% НСП 1% [11:06:42]line > о реализуемом товаре [11:06:42]line ОКРУГЛЕНИЕ: -0.09 [11:06:42]line ИТОГО: 600.00 [11:06:42]line Внесено: 600.00 [11:06:42]line СДАЧА: 0.00 [11:06:42]line НСП 1% : 5.31 [11:06:42]line НДС 12% : 63.73 [11:06:42]line Наличными: 600.00 [11:06:42]line Безнал.: 0.00 [11:06:42]line Место: АЗС № 171 "Партнер Нефть" [11:06:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:06:42]line СНО: Общий режим [11:06:42]line Чек 168 27.10.2024 11:06 [11:06:42]line Смена: 544 ФФД: 1.0 [11:06:42]line ЗНМ: 0300000109 [11:06:42]line РНМ: 0000000000091777 [11:06:42]line Версия ККМ: 001 [11:06:42]line ФМ: 0000000000871756 [11:06:42]line ФД: 201876 [11:06:42]line ФПД: 245532711555826 [11:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110640&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201876&fm=245532711555826&tin=02508201610067®Number=0000000000091777&sum=60000 [11:06:42]OFD Sender: Processing packet 201876 [packets to send 112, broken 111] [11:06:42]ProducePacketName [11:06:42]name=ofd_packets/00201876 [11:06:42]OFD Sender: To server: pG, [11:06:42]CommunicateWithHost lk.salyk.kg:30040 [11:06:42]ConnectInit lk.salyk.kg [11:06:42]written 0, free lines is 4095 [11:06:43]Connected sock=7 [11:06:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D5 89 07 01 30 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A8 00 00 00 F4 03 04 00 C0 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 14 03 00 35 04 06 00 DF 4F 8A 0D 92 F2 AD 01 9E 66 47 47 92 90 [11:06:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 16 7C 47 00 8A 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 14 03 00 F4 03 04 00 7B CA 1D 67 B6 04 01 00 00 88 67 57 E2 BD B2 18 00 [11:06:43]CommunicateWithHost err = 0 [11:06:43]CheckOFDResponse [11:06:43]1017 (14) - 77093643461234 [11:06:43]1041 (16) - 0000000000871756 [11:06:43]1040 (4) - 201876 [11:06:43]1012 (4) - 27.10.2024 05:07 [11:06:43]1206 (1) - 0 [11:06:43]OFD Sender: Remove packet 201876 [11:06:43]ProducePacketName [11:06:43]name=ofd_packets/00201876 [11:06:43]NVStorageDeleteData [11:06:43]Write to MH i2c: 01 00 00 F8 05 FD [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 8A 0C 9A [11:06:43]RasterBufferAndPrint [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]line [11:06:43]written 0, free lines is 3213 [11:06:43]MH_Cut [11:06:43]Write to MH i2c: D1 01 00 FF 05 01 D6 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 01 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: D1 01 00 FF 05 00 D5 [11:06:43]Write to MH i2c: 01 00 00 00 06 06 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]OFD Sender: No OFD packet to send [11:06:44]*** Cut start [11:06:44]*** Purtial cut [11:06:44]*** Stage 1: CUTSNS_PIN = 1 [11:06:44]Read from MH i2c: 01 [11:06:44]MH_I2C_Read... [11:06:44]*** Stop cut motor [11:06:44]*** Cut end [11:06:44]Read from MH i2c: 01 07 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: 01 07 00 00 06 00 00 00 00 00 FF 0F 1B [11:06:44]process_action close_receipt done [11:06:44]requested_data is exist [11:06:44]produce_requested_data [11:06:44]requested_item fm.sn is exist - process it [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 11 00 00 [11:06:44]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:44]Read from MH i2c: E2 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 17 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [11:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:06:44]wFMCommunicate OK [11:06:44]requested_item fd.num is exist - process it [11:06:44]SAM_PROTO_GetFieldsCounters [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 13 00 00 [11:06:44]Write to MH i2c: E2 08 00 02 06 80 13 00 00 00 00 00 00 84 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:44]Read from MH i2c: E2 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 62 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 62 00 02 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 94 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [11:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 94 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:44]wFMCommunicate OK [11:06:44]SAM_PROTO_GetFieldsCounters done [11:06:44]requested_item shift.num is exist - process it [11:06:44]requested_item shift.opened is exist - process it [11:06:44]req_shift_opened [11:06:44]FM_GetShiftState [11:06:44]SAM_PROTO_GetShiftState [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 13 01 00 [11:06:44]Write to MH i2c: E2 08 00 03 06 80 13 01 00 00 00 00 00 86 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:44]Read from MH i2c: E2 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 0E 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 0E 00 03 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 88 [11:06:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:06:44]wFMCommunicate OK [11:06:44]SAM_PROTO_GetShiftState done [11:06:44]FM_GetShiftState done [11:06:44]req_shift_opened done [11:06:44]requested_item shift.open_date is exist - process it [11:06:44]req_shift_open_date [11:06:44]req_shift_open_date done [11:06:44]produce_requested_data done [11:06:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201876,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:06:44]process_action_free close_receipt [11:06:44]json_value_free [11:06:44]json_value_free done [11:06:44]process_json_proto returns [11:06:44]Send response to host [11:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201876,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:06:44]free response buf [11:06:44]execute_script done [11:06:44]execute_script returns [11:06:44]free content buf [11:06:44]Sock 5.Close socket [11:06:44]Sock 5.Thread stoped [11:06:47]accept exits with 6 [11:06:47]New connection [11:06:47]New thread 3066948964 created [11:06:47]Thread 3066805604 joined [11:06:47]Waiting for new connection... [11:06:47] Sock 6.Parse request [11:06:47]Sock 6.Check first char [11:06:47]Sock 6.First char is OK [11:06:47]request: POST /json_proto HTTP/1.0 [11:06:47]Method: POST [11:06:47]URL: /json_proto [11:06:47]Method is POST - this is cgi request [11:06:47]url: /json_proto [11:06:47]query_string will be loaded in cgi processing [11:06:47]execute_cgi json_proto POST (null) [11:06:47]execute_cgi path=json_proto method=POST [11:06:47]POST find Content-Length [11:06:47]Host: 172.17.63.195:8080 [11:06:47]Content-Length: 682 [11:06:47]Content-Type: application/json [11:06:47] [11:06:47]POST finish read [11:06:47]Found Content-Length = 682 [11:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:47]execute_script... [11:06: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)449636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:47]POST & json_proto [11:06:47]process_json_proto [11:06:47]json parsed OK: [11:06:47]protocol is kg_v1.0 [11:06:47]action value=close_receipt [11:06:47]process_action close_receipt [11:06:47]cmd_close_receipt [11:06:47]MH_GetDate [11:06:47]Write to MH i2c: F0 00 00 04 06 F9 [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: F0 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: F0 09 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: F0 09 00 04 06 00 C7 1E 1E 67 47 1B 1E 67 53 [11:06:47]GetLastDocTimeStamp 1730027200 [11:06:47]current date 1730027207 [11:06:47]FM_GetShiftState [11:06:47]SAM_PROTO_GetShiftState [11:06:47]wFMCommunicate request_size=4 [11:06:47]MH_SAM_APDU [11:06:47]CAPDU: 80 13 01 00 [11:06:47]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [11:06:47]Write i2c OK [11:06:47]MH_I2C_Read... [11:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:47]Read from MH i2c: E2 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 0E 00 [11:06:47]MH_I2C_Read... [11:06:47]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8A [11:06:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:06:47]wFMCommunicate OK [11:06:47]SAM_PROTO_GetShiftState done [11:06:47]FM_GetShiftState done [11:06:47]opened in 1729987312 [11:06:47]opened+sec_in_day 1730073712 [11:06:47]quantity*price = 200031 [11:06:47]sum+1 = 200032 [11:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 169 27.10.2024 11:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201877 ФПД: 273268512542889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110647&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201877&fm=273268512542889&tin=02508201610067®Number=0000000000091777&sum=200000 [11:06:48]StoreToDocumentArchive [11:06:48]shift 544 fd 201877 [11:06:48]save to /storage/0544/doc_00201877 [11:06:48]save last doc name /storage/0544/doc_00201877 to /storage/kkm_last_doc_name [11:06:48]save OK [11:06:48]Clear old archive folders... [11:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:48]tlvbuf is 0048E380 [11:06:48]SAM_PROTO_ClearQueue [11:06:48]wFMCommunicate request_size=4 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 09 00 00 [11:06:48]Write to MH i2c: E2 08 00 12 06 80 09 00 00 00 00 00 00 8A [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:48]Read from MH i2c: E2 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [11:06:48]RAPDU: 90 00 [11:06:48]wFMCommunicate OK [11:06:48]SAM_PROTO_ClearQueue done [11:06:48]KKMCreateOFDPacket [11:06:48]OFDProtocolAddRootSTLVToBuf [11:06:48]FM_MakeSignedData [11:06:48]FM_MakeSignedData [11:06:48]SAM_PROTO_SignData [11:06:48]wFMCommunicate request_size=4 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 0D 01 02 [11:06:48]Write to MH i2c: E2 08 00 13 06 80 0D 01 02 00 00 00 00 92 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:48]Read from MH i2c: E2 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [11:06:48]RAPDU: 90 00 [11:06:48]wFMCommunicate OK [11:06:48]wFMCommunicate request_size=255 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C7 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 14 03 00 35 04 06 00 F8 [11:06:48]Write to MH i2c: E2 02 01 14 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C7 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 14 03 00 35 04 06 00 F8 00 00 41 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:48]Read from MH i2c: E2 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [11:06:48]RAPDU: 90 00 [11:06:48]wFMCommunicate OK [11:06:48]wFMCommunicate request_size=10 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 0D 02 02 05 89 48 9E 50 A9 [11:06:48]Write to MH i2c: E2 0D 00 15 06 80 0D 02 02 05 00 89 48 9E 50 A9 00 00 07 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:48]Read from MH i2c: E2 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [11:06:48]RAPDU: 90 00 [11:06:48]wFMCommunicate OK [11:06:48]wFMCommunicate request_size=4 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 0D 03 02 [11:06:48]Write to MH i2c: E2 08 00 16 06 80 0D 03 02 00 00 00 00 97 [11:06:48]OFD Sender: No OFD packet to send [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:48]Read from MH i2c: E2 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 0B 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 0B 00 16 06 00 4E B0 F8 77 CA 7C D6 70 90 00 91 [11:06:48]RAPDU: 4E B0 F8 77 CA 7C D6 70 90 00 [11:06:48]wFMCommunicate OK [11:06:48]SAM_PROTO_SignData done [11:06:48]FM_MakeSignedData done [11:06:48]CreateOFDProtocolMessage [11:06:48]wFMCommunicate request_size=4 [11:06:48]MH_SAM_APDU [11:06:48]CAPDU: 80 11 00 00 [11:06:48]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:48]Read from MH i2c: E2 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 17 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [11:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:06:48]wFMCommunicate OK [11:06:48]CreateOFDProtocolMessage done [11:06:48]OFDSenderStorePacket 201877 [11:06:48]StoreOFDPacket docnum=201877 [11:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FA 1B 07 01 57 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C7 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 14 03 00 35 04 06 00 F8 89 48 9E 50 A9 4E B0 F8 77 CA 7C D6 70 [11:06:48]CheckFolder [11:06:48]dirname=/storage/ofd_packets [11:06:48]CheckFolder done [11:06:48]ProducePacketName [11:06:48]name=ofd_packets/00201877 [11:06:48]NVStorageSaveData ofd_packets/00201877 [11:06:48]File name is /storage/ofd_packets/00201877 [11:06:48]Write 301 bytes [11:06:48]NVStorageSaveData done [11:06:48]OFDSenderStorePacket done [11:06:48]KKMCreateOFDPacket done [11:06:48]NVStorageSaveData kkm_last_timestamp [11:06:48]File name is /storage/kkm_last_timestamp [11:06:48]Write 4 bytes [11:06:48]NVStorageSaveData done [11:06:48]ExternCall_PrintAddStr [11:06:48]wPrintStart [11:06:48]Write to MH i2c: 01 00 00 18 06 1E [11:06:48]Write i2c OK [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: 01 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: 01 07 00 [11:06:48]MH_I2C_Read... [11:06:48]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [11:06:48]RasterBufferAndPrint [11:06:48]line Счет N : (1)449636 [11:06:48]line ИНН: 02508201610067 [11:06:48]line Контрольно-Кассовый Чек [11:06:48]line ПРОДАЖА [11:06:48]line ТРК (МРК, ГНК) : 41 [11:06:48]line Товар: 2710124130 [11:06:48]line Аи-92-К-2 [11:06:48]line 29.900 * 66.90 [11:06:48]line = 2000.31 [11:06:48]line НДС 12% НСП 1% [11:06:48]line > о реализуемом товаре [11:06:48]line ОКРУГЛЕНИЕ: -0.31 [11:06:48]line ИТОГО: 2000.00 [11:06:48]line Внесено: 2000.00 [11:06:48]line СДАЧА: 0.00 [11:06:48]line НСП 1% : 17.70 [11:06:48]line НДС 12% : 212.42 [11:06:48]line Наличными: 2000.00 [11:06:48]line Безнал.: 0.00 [11:06:48]line Место: АЗС № 171 "Партнер Нефть" [11:06:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:06:48]line СНО: Общий режим [11:06:48]line Чек 169 27.10.2024 11:06 [11:06:48]line Смена: 544 ФФД: 1.0 [11:06:48]line ЗНМ: 0300000109 [11:06:48]line РНМ: 0000000000091777 [11:06:48]line Версия ККМ: 001 [11:06:48]line ФМ: 0000000000871756 [11:06:48]line ФД: 201877 [11:06:48]line ФПД: 273268512542889 [11:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110647&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201877&fm=273268512542889&tin=02508201610067®Number=0000000000091777&sum=200000 [11:06:48]written 0, free lines is 4095 [11:06:48]OFD Sender: Processing packet 201877 [packets to send 112, broken 111] [11:06:48]ProducePacketName [11:06:48]name=ofd_packets/00201877 [11:06:48]OFD Sender: To server: pG, [11:06:48]CommunicateWithHost lk.salyk.kg:30040 [11:06:48]ConnectInit lk.salyk.kg [11:06:49]Connected sock=7 [11:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FA 1B 07 01 57 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C7 1E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 14 03 00 35 04 06 00 F8 89 48 9E 50 A9 4E B0 F8 77 CA 7C D6 70 [11:06:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1A 0D 47 00 97 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 14 03 00 F4 03 04 00 81 CA 1D 67 B6 04 01 00 00 78 28 9E 35 0C 51 3F 0B [11:06:49]CommunicateWithHost err = 0 [11:06:49]CheckOFDResponse [11:06:49]1017 (14) - 77093643461234 [11:06:49]1041 (16) - 0000000000871756 [11:06:49]1040 (4) - 201877 [11:06:49]1012 (4) - 27.10.2024 05:07 [11:06:49]1206 (1) - 0 [11:06:49]OFD Sender: Remove packet 201877 [11:06:49]ProducePacketName [11:06:49]name=ofd_packets/00201877 [11:06:49]NVStorageDeleteData [11:06:49]Write to MH i2c: 01 00 00 43 06 49 [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 07 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 AA 0C 06 [11:06:49]RasterBufferAndPrint [11:06:49]line [11:06:49]line [11:06:49]line [11:06:49]line [11:06:49]line [11:06:49]written 0, free lines is 3250 [11:06:49]MH_Cut [11:06:49]Write to MH i2c: D1 01 00 4A 06 01 22 [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: D1 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: D1 01 00 [11:06:49]MH_I2C_Read... [11:06:49]Read from MH i2c: D1 01 00 4A 06 00 21 [11:06:49]Write to MH i2c: 01 00 00 4B 06 51 [11:06:49]Write i2c OK [11:06:49]MH_I2C_Read... [11:06:49]OFD Sender: No OFD packet to send [11:06:50]*** Cut start [11:06:50]*** Purtial cut [11:06:50]*** Stage 1: CUTSNS_PIN = 1 [11:06:50]Read from MH i2c: 01 [11:06:50]MH_I2C_Read... [11:06:50]*** Stop cut motor [11:06:50]*** Cut end [11:06:50]Read from MH i2c: 01 07 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 FF 0F 66 [11:06:50]process_action close_receipt done [11:06:50]requested_data is exist [11:06:50]produce_requested_data [11:06:50]requested_item fm.sn is exist - process it [11:06:50]wFMCommunicate request_size=4 [11:06:50]MH_SAM_APDU [11:06:50]CAPDU: 80 11 00 00 [11:06:50]Write to MH i2c: E2 08 00 4C 06 80 11 00 00 00 00 00 00 CC [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 [11:06:50]MH_I2C_Read... [11:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:50]Read from MH i2c: E2 17 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 17 00 4C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [11:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:06:50]wFMCommunicate OK [11:06:50]requested_item fd.num is exist - process it [11:06:50]SAM_PROTO_GetFieldsCounters [11:06:50]wFMCommunicate request_size=4 [11:06:50]MH_SAM_APDU [11:06:50]CAPDU: 80 13 00 00 [11:06:50]Write to MH i2c: E2 08 00 4D 06 80 13 00 00 00 00 00 00 CF [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:50]Read from MH i2c: E2 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 62 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 62 00 4D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 95 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [11:06:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 95 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:50]wFMCommunicate OK [11:06:50]SAM_PROTO_GetFieldsCounters done [11:06:50]requested_item shift.num is exist - process it [11:06:50]requested_item shift.opened is exist - process it [11:06:50]req_shift_opened [11:06:50]FM_GetShiftState [11:06:50]SAM_PROTO_GetShiftState [11:06:50]wFMCommunicate request_size=4 [11:06:50]MH_SAM_APDU [11:06:50]CAPDU: 80 13 01 00 [11:06:50]Write to MH i2c: E2 08 00 4E 06 80 13 01 00 00 00 00 00 D1 [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:50]Read from MH i2c: E2 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 4E 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D3 [11:06:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:06:50]wFMCommunicate OK [11:06:50]SAM_PROTO_GetShiftState done [11:06:50]FM_GetShiftState done [11:06:50]req_shift_opened done [11:06:50]requested_item shift.open_date is exist - process it [11:06:50]req_shift_open_date [11:06:50]req_shift_open_date done [11:06:50]produce_requested_data done [11:06:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201877,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:06:50]process_action_free close_receipt [11:06:50]json_value_free [11:06:50]json_value_free done [11:06:50]process_json_proto returns [11:06:50]Send response to host [11:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201877,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:06:50]free response buf [11:06:50]execute_script done [11:06:50]execute_script returns [11:06:50]free content buf [11:06:50]Sock 6.Close socket [11:06:50]Sock 6.Thread stoped [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:02]*** FLAG_PRN_KEY set [11:07:02]*** FLAG_PRN_KEY reset [11:07:02]*** FLAG_PRN_KEY set [11:07:02]*** FLAG_PRN_KEY reset [11:07:02]*** FLAG_PRN_KEY set [11:07:03]*** FLAG_PRN_KEY reset [11:07:03]*** FLAG_PRN_KEY set [11:07:04]OFD Sender: No OFD packet to send [11:07:05]*** FLAG_PRN_KEY reset [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:16]accept exits with 5 [11:08:16]New connection [11:08:16]New thread 3066805604 created [11:08:16]Thread 3066948964 joined [11:08:16]Waiting for new connection... [11:08:16] Sock 5.Parse request [11:08:16]Sock 5.Check first char [11:08:16]Sock 5.First char is OK [11:08:16]request: POST /json_proto HTTP/1.0 [11:08:16]Method: POST [11:08:16]URL: /json_proto [11:08:16]Method is POST - this is cgi request [11:08:16]url: /json_proto [11:08:16]query_string will be loaded in cgi processing [11:08:16]execute_cgi json_proto POST (null) [11:08:16]execute_cgi path=json_proto method=POST [11:08:16]POST find Content-Length [11:08:16]Host: 172.17.63.195:8080 [11:08:16]Content-Length: 682 [11:08:16]Content-Type: application/json [11:08:16] [11:08:16]POST finish read [11:08:16]Found Content-Length = 682 [11:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:08:16]execute_script... [11:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:08:16]POST & json_proto [11:08:16]process_json_proto [11:08:16]json parsed OK: [11:08:16]protocol is kg_v1.0 [11:08:16]action value=close_receipt [11:08:16]process_action close_receipt [11:08:16]cmd_close_receipt [11:08:16]MH_GetDate [11:08:16]Write to MH i2c: F0 00 00 4F 06 44 [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: F0 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: F0 09 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: F0 09 00 4F 06 00 20 1F 1E 67 47 1B 1E 67 F8 [11:08:16]GetLastDocTimeStamp 1730027207 [11:08:16]current date 1730027296 [11:08:16]FM_GetShiftState [11:08:16]SAM_PROTO_GetShiftState [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 13 01 00 [11:08:16]Write to MH i2c: E2 08 00 50 06 80 13 01 00 00 00 00 00 D3 [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 0E 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 0E 00 50 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D5 [11:08:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:08:16]wFMCommunicate OK [11:08:16]SAM_PROTO_GetShiftState done [11:08:16]FM_GetShiftState done [11:08:16]opened in 1729987312 [11:08:16]opened+sec_in_day 1730073712 [11:08:16]quantity*price = 100015 [11:08:16]sum+1 = 100017 [11:08:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 170 27.10.2024 11:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201878 ФПД: 93780209841604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110816&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201878&fm=93780209841604&tin=02508201610067®Number=0000000000091777&sum=100000 [11:08:17]StoreToDocumentArchive [11:08:17]shift 544 fd 201878 [11:08:17]save to /storage/0544/doc_00201878 [11:08:17]save last doc name /storage/0544/doc_00201878 to /storage/kkm_last_doc_name [11:08:17]save OK [11:08:17]Clear old archive folders... [11:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:17]tlvbuf is 00486E00 [11:08:17]SAM_PROTO_ClearQueue [11:08:17]wFMCommunicate request_size=4 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 09 00 00 [11:08:17]Write to MH i2c: E2 08 00 5D 06 80 09 00 00 00 00 00 00 D5 [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [11:08:17]RAPDU: 90 00 [11:08:17]wFMCommunicate OK [11:08:17]SAM_PROTO_ClearQueue done [11:08:17]KKMCreateOFDPacket [11:08:17]OFDProtocolAddRootSTLVToBuf [11:08:17]FM_MakeSignedData [11:08:17]FM_MakeSignedData [11:08:17]SAM_PROTO_SignData [11:08:17]wFMCommunicate request_size=4 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 0D 01 02 [11:08:17]Write to MH i2c: E2 08 00 5E 06 80 0D 01 02 00 00 00 00 DD [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [11:08:17]RAPDU: 90 00 [11:08:17]wFMCommunicate OK [11:08:17]wFMCommunicate request_size=255 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AA 00 00 00 F4 03 04 00 20 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 14 03 00 35 04 06 00 55 [11:08:17]Write to MH i2c: E2 02 01 5F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AA 00 00 00 F4 03 04 00 20 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 14 03 00 35 04 06 00 55 00 00 FD [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [11:08:17]RAPDU: 90 00 [11:08:17]wFMCommunicate OK [11:08:17]wFMCommunicate request_size=10 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 0D 02 02 05 4A E8 18 35 C4 [11:08:17]Write to MH i2c: E2 0D 00 60 06 80 0D 02 02 05 00 4A E8 18 35 C4 00 00 2D [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 60 06 00 90 00 DA [11:08:17]RAPDU: 90 00 [11:08:17]wFMCommunicate OK [11:08:17]wFMCommunicate request_size=4 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 0D 03 02 [11:08:17]Write to MH i2c: E2 08 00 61 06 80 0D 03 02 00 00 00 00 E2 [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 0B 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 0B 00 61 06 00 04 A7 AC 73 26 F0 1A 9E 90 00 7B [11:08:17]RAPDU: 04 A7 AC 73 26 F0 1A 9E 90 00 [11:08:17]wFMCommunicate OK [11:08:17]SAM_PROTO_SignData done [11:08:17]FM_MakeSignedData done [11:08:17]CreateOFDProtocolMessage [11:08:17]wFMCommunicate request_size=4 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 11 00 00 [11:08:17]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 17 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 37 [11:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:08:17]wFMCommunicate OK [11:08:17]CreateOFDProtocolMessage done [11:08:17]OFDSenderStorePacket 201878 [11:08:17]StoreOFDPacket docnum=201878 [11:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C0 BD 07 01 D1 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AA 00 00 00 F4 03 04 00 20 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 14 03 00 35 04 06 00 55 4A E8 18 35 C4 04 A7 AC 73 26 F0 1A 9E [11:08:17]CheckFolder [11:08:17]dirname=/storage/ofd_packets [11:08:17]CheckFolder done [11:08:17]ProducePacketName [11:08:17]name=ofd_packets/00201878 [11:08:17]NVStorageSaveData ofd_packets/00201878 [11:08:17]File name is /storage/ofd_packets/00201878 [11:08:17]Write 301 bytes [11:08:17]NVStorageSaveData done [11:08:17]OFDSenderStorePacket done [11:08:17]KKMCreateOFDPacket done [11:08:17]NVStorageSaveData kkm_last_timestamp [11:08:17]File name is /storage/kkm_last_timestamp [11:08:17]Write 4 bytes [11:08:17]NVStorageSaveData done [11:08:17]ExternCall_PrintAddStr [11:08:17]wPrintStart [11:08:17]Write to MH i2c: 01 00 00 63 06 69 [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: 01 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: 01 07 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 FF 0F 7E [11:08:17]RasterBufferAndPrint [11:08:17]line Счет N : (1)449638 [11:08:17]line ИНН: 02508201610067 [11:08:17]line Контрольно-Кассовый Чек [11:08:17]line ПРОДАЖА [11:08:17]line ТРК (МРК, ГНК) : 31 [11:08:17]line Товар: 2710124130 [11:08:17]line Аи-92-К-2 [11:08:17]line 14.950 * 66.90 [11:08:17]line = 1000.16 [11:08:17]line НДС 12% НСП 1% [11:08:17]line > о реализуемом товаре [11:08:17]line ОКРУГЛЕНИЕ: -0.16 [11:08:17]line ИТОГО: 1000.00 [11:08:17]line Внесено: 1000.00 [11:08:17]line СДАЧА: 0.00 [11:08:17]line НСП 1% : 8.85 [11:08:17]line НДС 12% : 106.21 [11:08:17]line Наличными: 1000.00 [11:08:17]line Безнал.: 0.00 [11:08:17]line Место: АЗС № 171 "Партнер Нефть" [11:08:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:08:17]line СНО: Общий режим [11:08:17]line Чек 170 27.10.2024 11:08 [11:08:17]line Смена: 544 ФФД: 1.0 [11:08:17]line ЗНМ: 0300000109 [11:08:17]line РНМ: 0000000000091777 [11:08:17]line Версия ККМ: 001 [11:08:17]line ФМ: 0000000000871756 [11:08:17]line ФД: 201878 [11:08:17]line ФПД: 93780209841604 [11:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110816&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201878&fm=93780209841604&tin=02508201610067®Number=0000000000091777&sum=100000 [11:08:18]OFD Sender: Processing packet 201878 [packets to send 112, broken 111] [11:08:18]ProducePacketName [11:08:18]name=ofd_packets/00201878 [11:08:18]OFD Sender: To server: pG, [11:08:18]CommunicateWithHost lk.salyk.kg:30040 [11:08:18]ConnectInit lk.salyk.kg [11:08:18]written 0, free lines is 4095 [11:08:18]Connected sock=7 [11:08:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C0 BD 07 01 D1 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AA 00 00 00 F4 03 04 00 20 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 14 03 00 35 04 06 00 55 4A E8 18 35 C4 04 A7 AC 73 26 F0 1A 9E [11:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 05 8B 47 00 BE 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 14 03 00 F4 03 04 00 DA CA 1D 67 B6 04 01 00 00 03 4D 9C E3 14 53 FF 40 [11:08:18]CommunicateWithHost err = 0 [11:08:18]CheckOFDResponse [11:08:18]1017 (14) - 77093643461234 [11:08:18]1041 (16) - 0000000000871756 [11:08:18]1040 (4) - 201878 [11:08:18]1012 (4) - 27.10.2024 05:08 [11:08:18]1206 (1) - 0 [11:08:18]OFD Sender: Remove packet 201878 [11:08:18]ProducePacketName [11:08:18]name=ofd_packets/00201878 [11:08:18]NVStorageDeleteData [11:08:18]Write to MH i2c: 01 00 00 8E 06 94 [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 8E 06 00 00 00 00 00 88 0C 2F [11:08:18]RasterBufferAndPrint [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]written 0, free lines is 3212 [11:08:18]MH_Cut [11:08:18]Write to MH i2c: D1 01 00 95 06 01 6D [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 01 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 01 00 95 06 00 6C [11:08:18]Write to MH i2c: 01 00 00 96 06 9C [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:19]OFD Sender: No OFD packet to send [11:08:19]*** Cut start [11:08:19]*** Purtial cut [11:08:19]*** Stage 1: CUTSNS_PIN = 1 [11:08:19]Read from MH i2c: 01 [11:08:19]MH_I2C_Read... [11:08:19]*** Stop cut motor [11:08:19]*** Cut end [11:08:19]Read from MH i2c: 01 07 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: 01 07 00 96 06 00 00 00 00 00 FF 0F B1 [11:08:19]process_action close_receipt done [11:08:19]requested_data is exist [11:08:19]produce_requested_data [11:08:19]requested_item fm.sn is exist - process it [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 11 00 00 [11:08:19]Write to MH i2c: E2 08 00 97 06 80 11 00 00 00 00 00 00 17 [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 17 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 17 00 97 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [11:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:08:19]wFMCommunicate OK [11:08:19]requested_item fd.num is exist - process it [11:08:19]SAM_PROTO_GetFieldsCounters [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 13 00 00 [11:08:19]Write to MH i2c: E2 08 00 98 06 80 13 00 00 00 00 00 00 1A [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:20]Read from MH i2c: E2 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 62 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 62 00 98 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 96 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [11:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 96 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:20]wFMCommunicate OK [11:08:20]SAM_PROTO_GetFieldsCounters done [11:08:20]requested_item shift.num is exist - process it [11:08:20]requested_item shift.opened is exist - process it [11:08:20]req_shift_opened [11:08:20]FM_GetShiftState [11:08:20]SAM_PROTO_GetShiftState [11:08:20]wFMCommunicate request_size=4 [11:08:20]MH_SAM_APDU [11:08:20]CAPDU: 80 13 01 00 [11:08:20]Write to MH i2c: E2 08 00 99 06 80 13 01 00 00 00 00 00 1C [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:20]Read from MH i2c: E2 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 0E 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 0E 00 99 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1E [11:08:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:08:20]wFMCommunicate OK [11:08:20]SAM_PROTO_GetShiftState done [11:08:20]FM_GetShiftState done [11:08:20]req_shift_opened done [11:08:20]requested_item shift.open_date is exist - process it [11:08:20]req_shift_open_date [11:08:20]req_shift_open_date done [11:08:20]produce_requested_data done [11:08:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201878,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:08:20]process_action_free close_receipt [11:08:20]json_value_free [11:08:20]json_value_free done [11:08:20]process_json_proto returns [11:08:20]Send response to host [11:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201878,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:08:20]free response buf [11:08:20]execute_script done [11:08:20]execute_script returns [11:08:20]free content buf [11:08:20]Sock 5.Close socket [11:08:20]Sock 5.Thread stoped [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:51]accept exits with 6 [11:09:51]New connection [11:09:51]New thread 3066948964 created [11:09:51]Thread 3066805604 joined [11:09:51]Waiting for new connection... [11:09:51] Sock 6.Parse request [11:09:51]Sock 6.Check first char [11:09:51]Sock 6.First char is OK [11:09:51]request: POST /json_proto HTTP/1.0 [11:09:51]Method: POST [11:09:51]URL: /json_proto [11:09:51]Method is POST - this is cgi request [11:09:51]url: /json_proto [11:09:51]query_string will be loaded in cgi processing [11:09:51]execute_cgi json_proto POST (null) [11:09:51]execute_cgi path=json_proto method=POST [11:09:51]POST find Content-Length [11:09:51]Host: 172.17.63.195:8080 [11:09:51]Content-Length: 674 [11:09:51]Content-Type: application/json [11:09:51] [11:09:51]POST finish read [11:09:51]Found Content-Length = 674 [11:09:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:09:51]execute_script... [11:09: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)449639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:09:51]POST & json_proto [11:09:51]process_json_proto [11:09:51]json parsed OK: [11:09:51]protocol is kg_v1.0 [11:09:51]action value=close_receipt [11:09:51]process_action close_receipt [11:09:51]cmd_close_receipt [11:09:51]MH_GetDate [11:09:51]Write to MH i2c: F0 00 00 9A 06 8F [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: F0 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: F0 09 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: F0 09 00 9A 06 00 7F 1F 1E 67 47 1B 1E 67 A2 [11:09:51]GetLastDocTimeStamp 1730027296 [11:09:51]current date 1730027391 [11:09:51]FM_GetShiftState [11:09:51]SAM_PROTO_GetShiftState [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 13 01 00 [11:09:51]Write to MH i2c: E2 08 00 9B 06 80 13 01 00 00 00 00 00 1E [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 0E 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 0E 00 9B 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 20 [11:09:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:09:51]wFMCommunicate OK [11:09:51]SAM_PROTO_GetShiftState done [11:09:51]FM_GetShiftState done [11:09:51]opened in 1729987312 [11:09:51]opened+sec_in_day 1730073712 [11:09:51]quantity*price = 50063 [11:09:51]sum+1 = 50064 [11:09:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 171 27.10.2024 11:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201879 ФПД: 97839932067584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110951&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201879&fm=97839932067584&tin=02508201610067®Number=0000000000091777&sum=50000 [11:09:52]StoreToDocumentArchive [11:09:52]shift 544 fd 201879 [11:09:52]save to /storage/0544/doc_00201879 [11:09:52]save last doc name /storage/0544/doc_00201879 to /storage/kkm_last_doc_name [11:09:52]save OK [11:09:52]Clear old archive folders... [11:09:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:09:52]tlvbuf is 00486E00 [11:09:52]SAM_PROTO_ClearQueue [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 09 00 00 [11:09:52]Write to MH i2c: E2 08 00 A8 06 80 09 00 00 00 00 00 00 20 [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [11:09:52]RAPDU: 90 00 [11:09:52]wFMCommunicate OK [11:09:52]SAM_PROTO_ClearQueue done [11:09:52]KKMCreateOFDPacket [11:09:52]OFDProtocolAddRootSTLVToBuf [11:09:52]FM_MakeSignedData [11:09:52]FM_MakeSignedData [11:09:52]SAM_PROTO_SignData [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 0D 01 02 [11:09:52]Write to MH i2c: E2 08 00 A9 06 80 0D 01 02 00 00 00 00 28 [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 A9 06 00 90 00 23 [11:09:52]RAPDU: 90 00 [11:09:52]wFMCommunicate OK [11:09:52]wFMCommunicate request_size=255 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7F 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 14 03 00 35 04 06 00 58 FC 22 65 [11:09:52]Write to MH i2c: E2 02 01 AA 06 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7F 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 14 03 00 35 04 06 00 58 FC 22 65 00 00 B3 [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 AA 06 00 90 00 24 [11:09:52]RAPDU: 90 00 [11:09:52]wFMCommunicate OK [11:09:52]wFMCommunicate request_size=7 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 0D 02 02 02 4F 00 [11:09:52]Write to MH i2c: E2 0A 00 AB 06 80 0D 02 02 02 00 4F 00 00 00 7E [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 03 00 AB 06 00 90 00 25 [11:09:52]RAPDU: 90 00 [11:09:52]wFMCommunicate OK [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 0D 03 02 [11:09:52]Write to MH i2c: E2 08 00 AC 06 80 0D 03 02 00 00 00 00 2D [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 0B 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 0B 00 AC 06 00 78 FE 8B 35 6E 7D 87 A6 90 00 7C [11:09:52]RAPDU: 78 FE 8B 35 6E 7D 87 A6 90 00 [11:09:52]wFMCommunicate OK [11:09:52]SAM_PROTO_SignData done [11:09:52]FM_MakeSignedData done [11:09:52]CreateOFDProtocolMessage [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 11 00 00 [11:09:52]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:53]Read from MH i2c: E2 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 17 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 17 00 AD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 82 [11:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:09:53]wFMCommunicate OK [11:09:53]CreateOFDProtocolMessage done [11:09:53]OFDSenderStorePacket 201879 [11:09:53]StoreOFDPacket docnum=201879 [11:09:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 39 E1 04 01 5F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7F 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 14 03 00 35 04 06 00 58 FC 22 65 4F 00 78 FE 8B 35 6E 7D 87 A6 [11:09:53]CheckFolder [11:09:53]dirname=/storage/ofd_packets [11:09:53]CheckFolder done [11:09:53]ProducePacketName [11:09:53]name=ofd_packets/00201879 [11:09:53]NVStorageSaveData ofd_packets/00201879 [11:09:53]File name is /storage/ofd_packets/00201879 [11:09:53]Write 298 bytes [11:09:53]NVStorageSaveData done [11:09:53]OFDSenderStorePacket done [11:09:53]KKMCreateOFDPacket done [11:09:53]NVStorageSaveData kkm_last_timestamp [11:09:53]File name is /storage/kkm_last_timestamp [11:09:53]Write 4 bytes [11:09:53]NVStorageSaveData done [11:09:53]ExternCall_PrintAddStr [11:09:53]wPrintStart [11:09:53]Write to MH i2c: 01 00 00 AE 06 B4 [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 07 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 07 00 AE 06 00 00 00 00 00 FF 0F C9 [11:09:53]RasterBufferAndPrint [11:09:53]line Счет N : (1)449639 [11:09:53]line ИНН: 02508201610067 [11:09:53]line Контрольно-Кассовый Чек [11:09:53]line ПРОДАЖА [11:09:53]line ТРК (МРК, ГНК) : 11 [11:09:53]line Товар: 2710194210 [11:09:53]line ДТ-К-2 [11:09:53]line 6.570 * 76.20 [11:09:53]line = 500.63 [11:09:53]line НДС 12% НСП 1% [11:09:53]line > о реализуемом товаре [11:09:53]line ОКРУГЛЕНИЕ: -0.63 [11:09:53]line ИТОГО: 500.00 [11:09:53]line Внесено: 500.00 [11:09:53]line СДАЧА: 0.00 [11:09:53]line НСП 1% : 4.43 [11:09:53]line НДС 12% : 53.16 [11:09:53]line Наличными: 500.00 [11:09:53]line Безнал.: 0.00 [11:09:53]line Место: АЗС № 171 "Партнер Нефть" [11:09:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:09:53]line СНО: Общий режим [11:09:53]line Чек 171 27.10.2024 11:09 [11:09:53]line Смена: 544 ФФД: 1.0 [11:09:53]line ЗНМ: 0300000109 [11:09:53]line РНМ: 0000000000091777 [11:09:53]line Версия ККМ: 001 [11:09:53]line ФМ: 0000000000871756 [11:09:53]line ФД: 201879 [11:09:53]line ФПД: 97839932067584 [11:09:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110951&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201879&fm=97839932067584&tin=02508201610067®Number=0000000000091777&sum=50000 [11:09:53]OFD Sender: Processing packet 201879 [packets to send 112, broken 111] [11:09:53]ProducePacketName [11:09:53]name=ofd_packets/00201879 [11:09:53]OFD Sender: To server: pG, [11:09:53]CommunicateWithHost lk.salyk.kg:30040 [11:09:53]ConnectInit lk.salyk.kg [11:09:53]written 0, free lines is 4095 [11:09:53]Connected sock=7 [11:09:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 39 E1 04 01 5F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7F 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 14 03 00 35 04 06 00 58 FC 22 65 4F 00 78 FE 8B 35 6E 7D 87 A6 [11:09:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DC 7F 47 00 9A B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 14 03 00 F4 03 04 00 39 CB 1D 67 B6 04 01 00 00 57 29 C3 91 84 93 58 5B [11:09:53]CommunicateWithHost err = 0 [11:09:53]CheckOFDResponse [11:09:53]1017 (14) - 77093643461234 [11:09:53]1041 (16) - 0000000000871756 [11:09:53]1040 (4) - 201879 [11:09:53]1012 (4) - 27.10.2024 05:10 [11:09:53]1206 (1) - 0 [11:09:53]OFD Sender: Remove packet 201879 [11:09:53]ProducePacketName [11:09:53]name=ofd_packets/00201879 [11:09:53]NVStorageDeleteData [11:09:53]Write to MH i2c: 01 00 00 D9 06 DF [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 07 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 83 0C 75 [11:09:53]RasterBufferAndPrint [11:09:53]line [11:09:53]line [11:09:53]line [11:09:53]line [11:09:53]line [11:09:53]written 0, free lines is 3206 [11:09:53]MH_Cut [11:09:53]Write to MH i2c: D1 01 00 E0 06 01 B8 [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: D1 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: D1 01 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: D1 01 00 E0 06 00 B7 [11:09:53]Write to MH i2c: 01 00 00 E1 06 E7 [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:54]OFD Sender: No OFD packet to send [11:09:54]*** Cut start [11:09:54]*** Purtial cut [11:09:54]*** Stage 1: CUTSNS_PIN = 1 [11:09:54]Read from MH i2c: 01 [11:09:54]MH_I2C_Read... [11:09:54]*** Stop cut motor [11:09:54]*** Cut end [11:09:54]Read from MH i2c: 01 07 00 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 FF 0F FC [11:09:54]process_action close_receipt done [11:09:54]requested_data is exist [11:09:54]produce_requested_data [11:09:54]requested_item fm.sn is exist - process it [11:09:54]wFMCommunicate request_size=4 [11:09:54]MH_SAM_APDU [11:09:54]CAPDU: 80 11 00 00 [11:09:54]Write to MH i2c: E2 08 00 E2 06 80 11 00 00 00 00 00 00 62 [11:09:54]Write i2c OK [11:09:54]MH_I2C_Read... [11:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:55]Read from MH i2c: E2 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 17 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 17 00 E2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [11:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:09:55]wFMCommunicate OK [11:09:55]requested_item fd.num is exist - process it [11:09:55]SAM_PROTO_GetFieldsCounters [11:09:55]wFMCommunicate request_size=4 [11:09:55]MH_SAM_APDU [11:09:55]CAPDU: 80 13 00 00 [11:09:55]Write to MH i2c: E2 08 00 E3 06 80 13 00 00 00 00 00 00 65 [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:55]Read from MH i2c: E2 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 62 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 62 00 E3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 97 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:09:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 97 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:55]wFMCommunicate OK [11:09:55]SAM_PROTO_GetFieldsCounters done [11:09:55]requested_item shift.num is exist - process it [11:09:55]requested_item shift.opened is exist - process it [11:09:55]req_shift_opened [11:09:55]FM_GetShiftState [11:09:55]SAM_PROTO_GetShiftState [11:09:55]wFMCommunicate request_size=4 [11:09:55]MH_SAM_APDU [11:09:55]CAPDU: 80 13 01 00 [11:09:55]Write to MH i2c: E2 08 00 E4 06 80 13 01 00 00 00 00 00 67 [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:55]Read from MH i2c: E2 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 0E 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: E2 0E 00 E4 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 69 [11:09:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:09:55]wFMCommunicate OK [11:09:55]SAM_PROTO_GetShiftState done [11:09:55]FM_GetShiftState done [11:09:55]req_shift_opened done [11:09:55]requested_item shift.open_date is exist - process it [11:09:55]req_shift_open_date [11:09:55]req_shift_open_date done [11:09:55]produce_requested_data done [11:09:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201879,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:09:55]process_action_free close_receipt [11:09:55]json_value_free [11:09:55]json_value_free done [11:09:55]process_json_proto returns [11:09:55]Send response to host [11:09:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201879,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:09:55]free response buf [11:09:55]execute_script done [11:09:55]execute_script returns [11:09:55]free content buf [11:09:55]Sock 6.Close socket [11:09:55]Sock 6.Thread stoped [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:20]accept exits with 5 [11:10:20]New connection [11:10:20]New thread 3066805604 created [11:10:20]Thread 3066948964 joined [11:10:20]Waiting for new connection... [11:10:20] Sock 5.Parse request [11:10:20]Sock 5.Check first char [11:10:20]Sock 5.First char is OK [11:10:20]request: POST /json_proto HTTP/1.0 [11:10:20]Method: POST [11:10:20]URL: /json_proto [11:10:20]Method is POST - this is cgi request [11:10:20]url: /json_proto [11:10:20]query_string will be loaded in cgi processing [11:10:20]execute_cgi json_proto POST (null) [11:10:20]execute_cgi path=json_proto method=POST [11:10:20]POST find Content-Length [11:10:20]Host: 172.17.63.195:8080 [11:10:20]Content-Length: 674 [11:10:20]Content-Type: application/json [11:10:20] [11:10:20]POST finish read [11:10:20]Found Content-Length = 674 [11:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:20]execute_script... [11:10: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)449640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:20]POST & json_proto [11:10:20]process_json_proto [11:10:20]json parsed OK: [11:10:20]protocol is kg_v1.0 [11:10:20]action value=close_receipt [11:10:20]process_action close_receipt [11:10:20]cmd_close_receipt [11:10:20]MH_GetDate [11:10:20]Write to MH i2c: F0 00 00 E5 06 DA [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: F0 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: F0 09 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: F0 09 00 E5 06 00 9C 1F 1E 67 47 1B 1E 67 0A [11:10:20]GetLastDocTimeStamp 1730027391 [11:10:20]current date 1730027420 [11:10:20]FM_GetShiftState [11:10:20]SAM_PROTO_GetShiftState [11:10:20]wFMCommunicate request_size=4 [11:10:20]MH_SAM_APDU [11:10:20]CAPDU: 80 13 01 00 [11:10:20]Write to MH i2c: E2 08 00 E6 06 80 13 01 00 00 00 00 00 69 [11:10:20]Write i2c OK [11:10:20]MH_I2C_Read... [11:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:20]Read from MH i2c: E2 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 0E 00 [11:10:20]MH_I2C_Read... [11:10:20]Read from MH i2c: E2 0E 00 E6 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6B [11:10:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:10:20]wFMCommunicate OK [11:10:20]SAM_PROTO_GetShiftState done [11:10:20]FM_GetShiftState done [11:10:20]opened in 1729987312 [11:10:20]opened+sec_in_day 1730073712 [11:10:20]quantity*price = 60045 [11:10:20]sum+1 = 60047 [11:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 172 27.10.2024 11:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201880 ФПД: 134700984650196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111020&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201880&fm=134700984650196&tin=02508201610067®Number=0000000000091777&sum=60000 [11:10:21]StoreToDocumentArchive [11:10:21]shift 544 fd 201880 [11:10:21]save to /storage/0544/doc_00201880 [11:10:21]save last doc name /storage/0544/doc_00201880 to /storage/kkm_last_doc_name [11:10:21]save OK [11:10:21]Clear old archive folders... [11:10:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:10:21]tlvbuf is 0046E200 [11:10:21]SAM_PROTO_ClearQueue [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 09 00 00 [11:10:21]Write to MH i2c: E2 08 00 F3 06 80 09 00 00 00 00 00 00 6B [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]SAM_PROTO_ClearQueue done [11:10:21]KKMCreateOFDPacket [11:10:21]OFDProtocolAddRootSTLVToBuf [11:10:21]FM_MakeSignedData [11:10:21]FM_MakeSignedData [11:10:21]SAM_PROTO_SignData [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 0D 01 02 [11:10:21]Write to MH i2c: E2 08 00 F4 06 80 0D 01 02 00 00 00 00 73 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 F4 06 00 90 00 6E [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]wFMCommunicate request_size=255 [11:10:21]MH_SAM_APDU [11:10: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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 9C 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 14 03 00 35 04 06 00 7A 82 84 57 [11:10:21]Write to MH i2c: E2 02 01 F5 06 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 9C 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 14 03 00 35 04 06 00 7A 82 84 57 00 00 52 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 F5 06 00 90 00 6F [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]wFMCommunicate request_size=7 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 0D 02 02 02 49 D4 [11:10:21]Write to MH i2c: E2 0A 00 F6 06 80 0D 02 02 02 00 49 D4 00 00 97 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 03 00 F6 06 00 90 00 70 [11:10:21]RAPDU: 90 00 [11:10:21]wFMCommunicate OK [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 0D 03 02 [11:10:21]Write to MH i2c: E2 08 00 F7 06 80 0D 03 02 00 00 00 00 78 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:21]Read from MH i2c: E2 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 0B 00 [11:10:21]MH_I2C_Read... [11:10:21]Read from MH i2c: E2 0B 00 F7 06 00 A6 B5 C8 38 CE 5C 6A C3 90 00 2B [11:10:21]RAPDU: A6 B5 C8 38 CE 5C 6A C3 90 00 [11:10:21]wFMCommunicate OK [11:10:21]SAM_PROTO_SignData done [11:10:21]FM_MakeSignedData done [11:10:21]CreateOFDProtocolMessage [11:10:21]wFMCommunicate request_size=4 [11:10:21]MH_SAM_APDU [11:10:21]CAPDU: 80 11 00 00 [11:10:21]Write to MH i2c: E2 08 00 F8 06 80 11 00 00 00 00 00 00 78 [11:10:21]Write i2c OK [11:10:21]MH_I2C_Read... [11:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:22]Read from MH i2c: E2 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 17 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 17 00 F8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CD [11:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:10:22]wFMCommunicate OK [11:10:22]CreateOFDProtocolMessage done [11:10:22]OFDSenderStorePacket 201880 [11:10:22]StoreOFDPacket docnum=201880 [11:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3F F0 04 01 C0 2C 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 9C 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 14 03 00 35 04 06 00 7A 82 84 57 49 D4 A6 B5 C8 38 CE 5C 6A C3 [11:10:22]CheckFolder [11:10:22]dirname=/storage/ofd_packets [11:10:22]CheckFolder done [11:10:22]ProducePacketName [11:10:22]name=ofd_packets/00201880 [11:10:22]NVStorageSaveData ofd_packets/00201880 [11:10:22]File name is /storage/ofd_packets/00201880 [11:10:22]Write 298 bytes [11:10:22]NVStorageSaveData done [11:10:22]OFDSenderStorePacket done [11:10:22]KKMCreateOFDPacket done [11:10:22]NVStorageSaveData kkm_last_timestamp [11:10:22]File name is /storage/kkm_last_timestamp [11:10:22]Write 4 bytes [11:10:22]NVStorageSaveData done [11:10:22]ExternCall_PrintAddStr [11:10:22]wPrintStart [11:10:22]Write to MH i2c: 01 00 00 F9 06 FF [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 F9 06 00 00 00 00 00 FF 0F 14 [11:10:22]RasterBufferAndPrint [11:10:22]line Счет N : (1)449640 [11:10:22]line ИНН: 02508201610067 [11:10:22]line Контрольно-Кассовый Чек [11:10:22]line ПРОДАЖА [11:10:22]line ТРК (МРК, ГНК) : 33 [11:10:22]line Товар: 2710194210 [11:10:22]line ДТ-К-2 [11:10:22]line 7.880 * 76.20 [11:10:22]line = 600.46 [11:10:22]line НДС 12% НСП 1% [11:10:22]line > о реализуемом товаре [11:10:22]line ОКРУГЛЕНИЕ: -0.46 [11:10:22]line ИТОГО: 600.00 [11:10:22]line Внесено: 600.00 [11:10:22]line СДАЧА: 0.00 [11:10:22]line НСП 1% : 5.31 [11:10:22]line НДС 12% : 63.77 [11:10:22]line Наличными: 600.00 [11:10:22]line Безнал.: 0.00 [11:10:22]line Место: АЗС № 171 "Партнер Нефть" [11:10:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:10:22]line СНО: Общий режим [11:10:22]line Чек 172 27.10.2024 11:10 [11:10:22]line Смена: 544 ФФД: 1.0 [11:10:22]line ЗНМ: 0300000109 [11:10:22]line РНМ: 0000000000091777 [11:10:22]line Версия ККМ: 001 [11:10:22]line ФМ: 0000000000871756 [11:10:22]line ФД: 201880 [11:10:22]line ФПД: 134700984650196 [11:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111020&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201880&fm=134700984650196&tin=02508201610067®Number=0000000000091777&sum=60000 [11:10:22]OFD Sender: Processing packet 201880 [packets to send 112, broken 111] [11:10:22]ProducePacketName [11:10:22]name=ofd_packets/00201880 [11:10:22]OFD Sender: To server: pG, [11:10:22]CommunicateWithHost lk.salyk.kg:30040 [11:10:22]ConnectInit lk.salyk.kg [11:10:22]written 0, free lines is 4095 [11:10:22]Connected sock=7 [11:10:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3F F0 04 01 C0 2C 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 9C 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 14 03 00 35 04 06 00 7A 82 84 57 49 D4 A6 B5 C8 38 CE 5C 6A C3 [11:10:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DA E0 47 00 1A C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 14 03 00 F4 03 04 00 56 CB 1D 67 B6 04 01 00 00 FF 47 E0 30 96 5A B9 D2 [11:10:22]CommunicateWithHost err = 0 [11:10:22]CheckOFDResponse [11:10:22]1017 (14) - 77093643461234 [11:10:22]1041 (16) - 0000000000871756 [11:10:22]1040 (4) - 201880 [11:10:22]1012 (4) - 27.10.2024 05:10 [11:10:22]1206 (1) - 0 [11:10:22]OFD Sender: Remove packet 201880 [11:10:22]ProducePacketName [11:10:22]name=ofd_packets/00201880 [11:10:22]NVStorageDeleteData [11:10:22]Write to MH i2c: 01 00 00 24 07 2B [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: 01 07 00 24 07 00 00 00 00 00 88 0C C6 [11:10:22]RasterBufferAndPrint [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]line [11:10:22]written 0, free lines is 3212 [11:10:22]MH_Cut [11:10:22]Write to MH i2c: D1 01 00 2B 07 01 04 [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: D1 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: D1 01 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: D1 01 00 2B 07 00 03 [11:10:22]Write to MH i2c: 01 00 00 2C 07 33 [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:23]OFD Sender: No OFD packet to send [11:10:23]*** Cut start [11:10:23]*** Purtial cut [11:10:23]*** Stage 1: CUTSNS_PIN = 1 [11:10:23]Read from MH i2c: 01 [11:10:23]MH_I2C_Read... [11:10:23]*** Stop cut motor [11:10:23]*** Cut end [11:10:23]Read from MH i2c: 01 07 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 FF 0F 48 [11:10:23]process_action close_receipt done [11:10:23]requested_data is exist [11:10:23]produce_requested_data [11:10:23]requested_item fm.sn is exist - process it [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 11 00 00 [11:10:23]Write to MH i2c: E2 08 00 2D 07 80 11 00 00 00 00 00 00 AE [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:24]Read from MH i2c: E2 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 17 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 17 00 2D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 03 [11:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:10:24]wFMCommunicate OK [11:10:24]requested_item fd.num is exist - process it [11:10:24]SAM_PROTO_GetFieldsCounters [11:10:24]wFMCommunicate request_size=4 [11:10:24]MH_SAM_APDU [11:10:24]CAPDU: 80 13 00 00 [11:10:24]Write to MH i2c: E2 08 00 2E 07 80 13 00 00 00 00 00 00 B1 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:24]Read from MH i2c: E2 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 62 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 62 00 2E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 98 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [11:10:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 98 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:24]wFMCommunicate OK [11:10:24]SAM_PROTO_GetFieldsCounters done [11:10:24]requested_item shift.num is exist - process it [11:10:24]requested_item shift.opened is exist - process it [11:10:24]req_shift_opened [11:10:24]FM_GetShiftState [11:10:24]SAM_PROTO_GetShiftState [11:10:24]wFMCommunicate request_size=4 [11:10:24]MH_SAM_APDU [11:10:24]CAPDU: 80 13 01 00 [11:10:24]Write to MH i2c: E2 08 00 2F 07 80 13 01 00 00 00 00 00 B3 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:24]Read from MH i2c: E2 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 0E 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 0E 00 2F 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B5 [11:10:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:10:24]wFMCommunicate OK [11:10:24]SAM_PROTO_GetShiftState done [11:10:24]FM_GetShiftState done [11:10:24]req_shift_opened done [11:10:24]requested_item shift.open_date is exist - process it [11:10:24]req_shift_open_date [11:10:24]req_shift_open_date done [11:10:24]produce_requested_data done [11:10:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201880,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:10:24]process_action_free close_receipt [11:10:24]json_value_free [11:10:24]json_value_free done [11:10:24]process_json_proto returns [11:10:24]Send response to host [11:10:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201880,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:10:24]free response buf [11:10:24]execute_script done [11:10:24]execute_script returns [11:10:24]free content buf [11:10:24]Sock 5.Close socket [11:10:24]Sock 5.Thread stoped [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:57]accept exits with 6 [11:10:57]New connection [11:10:57]New thread 3066948964 created [11:10:57]Thread 3066805604 joined [11:10:57]Waiting for new connection... [11:10:57] Sock 6.Parse request [11:10:57]Sock 6.Check first char [11:10:57]Sock 6.First char is OK [11:10:57]request: POST /json_proto HTTP/1.0 [11:10:57]Method: POST [11:10:57]URL: /json_proto [11:10:57]Method is POST - this is cgi request [11:10:57]url: /json_proto [11:10:57]query_string will be loaded in cgi processing [11:10:57]execute_cgi json_proto POST (null) [11:10:57]execute_cgi path=json_proto method=POST [11:10:57]POST find Content-Length [11:10:57]Host: 172.17.63.195:8080 [11:10:57]Content-Length: 677 [11:10:57]Content-Type: application/json [11:10:57] [11:10:57]POST finish read [11:10:57]Found Content-Length = 677 [11:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:57]execute_script... [11:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:10:57]POST & json_proto [11:10:57]process_json_proto [11:10:57]json parsed OK: [11:10:57]protocol is kg_v1.0 [11:10:57]action value=close_receipt [11:10:57]process_action close_receipt [11:10:57]cmd_close_receipt [11:10:57]MH_GetDate [11:10:57]Write to MH i2c: F0 00 00 30 07 26 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 09 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 09 00 30 07 00 C1 1F 1E 67 47 1B 1E 67 7B [11:10:57]GetLastDocTimeStamp 1730027420 [11:10:57]current date 1730027457 [11:10:57]FM_GetShiftState [11:10:57]SAM_PROTO_GetShiftState [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 13 01 00 [11:10:57]Write to MH i2c: E2 08 00 31 07 80 13 01 00 00 00 00 00 B5 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 31 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B7 [11:10:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_GetShiftState done [11:10:57]FM_GetShiftState done [11:10:57]opened in 1729987312 [11:10:57]opened+sec_in_day 1730073712 [11:10:57]quantity*price = 30038 [11:10:57]sum+1 = 30039 [11:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 173 27.10.2024 11:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201881 ФПД: 68994533733136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201881&fm=68994533733136&tin=02508201610067®Number=0000000000091777&sum=30000 [11:10:58]StoreToDocumentArchive [11:10:58]shift 544 fd 201881 [11:10:58]save to /storage/0544/doc_00201881 [11:10:58]save last doc name /storage/0544/doc_00201881 to /storage/kkm_last_doc_name [11:10:58]save OK [11:10:58]Clear old archive folders... [11:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:58]tlvbuf is 0048A360 [11:10:58]SAM_PROTO_ClearQueue [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 09 00 00 [11:10:58]Write to MH i2c: E2 08 00 3E 07 80 09 00 00 00 00 00 00 B7 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 3E 07 00 90 00 B9 [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]SAM_PROTO_ClearQueue done [11:10:58]KKMCreateOFDPacket [11:10:58]OFDProtocolAddRootSTLVToBuf [11:10:58]FM_MakeSignedData [11:10:58]FM_MakeSignedData [11:10:58]SAM_PROTO_SignData [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 01 02 [11:10:58]Write to MH i2c: E2 08 00 3F 07 80 0D 01 02 00 00 00 00 BF [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 3F 07 00 90 00 BA [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]wFMCommunicate request_size=255 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AD 00 00 00 F4 03 04 00 C1 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 14 03 00 35 04 06 00 3E [11:10:58]Write to MH i2c: E2 02 01 40 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AD 00 00 00 F4 03 04 00 C1 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 14 03 00 35 04 06 00 3E 00 00 69 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 40 07 00 90 00 BB [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]wFMCommunicate request_size=10 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 02 02 05 C0 0A AC B3 10 [11:10:58]Write to MH i2c: E2 0D 00 41 07 80 0D 02 02 05 00 C0 0A AC B3 10 00 00 05 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 03 02 [11:10:58]Write to MH i2c: E2 08 00 42 07 80 0D 03 02 00 00 00 00 C4 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 0B 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 0B 00 42 07 00 EA 32 CF C0 86 FC 4A 4E 90 00 8A [11:10:58]RAPDU: EA 32 CF C0 86 FC 4A 4E 90 00 [11:10:58]wFMCommunicate OK [11:10:58]SAM_PROTO_SignData done [11:10:58]FM_MakeSignedData done [11:10:58]CreateOFDProtocolMessage [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 11 00 00 [11:10:58]Write to MH i2c: E2 08 00 43 07 80 11 00 00 00 00 00 00 C4 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 17 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 17 00 43 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 19 [11:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:10:58]wFMCommunicate OK [11:10:58]CreateOFDProtocolMessage done [11:10:58]OFDSenderStorePacket 201881 [11:10:58]StoreOFDPacket docnum=201881 [11:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 50 AF 07 01 AC EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AD 00 00 00 F4 03 04 00 C1 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 14 03 00 35 04 06 00 3E C0 0A AC B3 10 EA 32 CF C0 86 FC 4A 4E [11:10:58]CheckFolder [11:10:58]dirname=/storage/ofd_packets [11:10:58]CheckFolder done [11:10:58]ProducePacketName [11:10:58]name=ofd_packets/00201881 [11:10:58]NVStorageSaveData ofd_packets/00201881 [11:10:58]File name is /storage/ofd_packets/00201881 [11:10:58]Write 301 bytes [11:10:58]NVStorageSaveData done [11:10:58]OFDSenderStorePacket done [11:10:58]KKMCreateOFDPacket done [11:10:58]NVStorageSaveData kkm_last_timestamp [11:10:58]File name is /storage/kkm_last_timestamp [11:10:58]Write 4 bytes [11:10:58]NVStorageSaveData done [11:10:58]ExternCall_PrintAddStr [11:10:58]wPrintStart [11:10:58]Write to MH i2c: 01 00 00 44 07 4B [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 44 07 00 00 00 00 00 FF 0F 60 [11:10:58]RasterBufferAndPrint [11:10:58]line Счет N : (1)449642 [11:10:58]line ИНН: 02508201610067 [11:10:58]line Контрольно-Кассовый Чек [11:10:58]line ПРОДАЖА [11:10:58]line ТРК (МРК, ГНК) : 52 [11:10:58]line Товар: 2710124130 [11:10:58]line Аи-92-К-2 [11:10:58]line 4.490 * 66.90 [11:10:58]line = 300.38 [11:10:58]line НДС 12% НСП 1% [11:10:58]line > о реализуемом товаре [11:10:58]line ОКРУГЛЕНИЕ: -0.38 [11:10:58]line ИТОГО: 300.00 [11:10:58]line Внесено: 300.00 [11:10:58]line СДАЧА: 0.00 [11:10:58]line НСП 1% : 2.66 [11:10:58]line НДС 12% : 31.90 [11:10:58]line Наличными: 300.00 [11:10:58]line Безнал.: 0.00 [11:10:58]line Место: АЗС № 171 "Партнер Нефть" [11:10:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:10:58]line СНО: Общий режим [11:10:58]line Чек 173 27.10.2024 11:10 [11:10:58]line Смена: 544 ФФД: 1.0 [11:10:58]line ЗНМ: 0300000109 [11:10:58]line РНМ: 0000000000091777 [11:10:58]line Версия ККМ: 001 [11:10:58]line ФМ: 0000000000871756 [11:10:58]line ФД: 201881 [11:10:58]line ФПД: 68994533733136 [11:10:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201881&fm=68994533733136&tin=02508201610067®Number=0000000000091777&sum=30000 [11:10:59]OFD Sender: Processing packet 201881 [packets to send 112, broken 111] [11:10:59]ProducePacketName [11:10:59]name=ofd_packets/00201881 [11:10:59]OFD Sender: To server: pG, [11:10:59]CommunicateWithHost lk.salyk.kg:30040 [11:10:59]ConnectInit lk.salyk.kg [11:10:59]written 0, free lines is 4095 [11:10:59]Connected sock=7 [11:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 50 AF 07 01 AC EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AD 00 00 00 F4 03 04 00 C1 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 14 03 00 35 04 06 00 3E C0 0A AC B3 10 EA 32 CF C0 86 FC 4A 4E [11:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0B 5E 47 00 26 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 14 03 00 F4 03 04 00 7B CB 1D 67 B6 04 01 00 00 53 7D 25 0D 24 9C 3B 8B [11:10:59]CommunicateWithHost err = 0 [11:10:59]CheckOFDResponse [11:10:59]1017 (14) - 77093643461234 [11:10:59]1041 (16) - 0000000000871756 [11:10:59]1040 (4) - 201881 [11:10:59]1012 (4) - 27.10.2024 05:11 [11:10:59]1206 (1) - 0 [11:10:59]OFD Sender: Remove packet 201881 [11:10:59]ProducePacketName [11:10:59]name=ofd_packets/00201881 [11:10:59]NVStorageDeleteData [11:10:59]Write to MH i2c: 01 00 00 6F 07 76 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 07 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 8D 0C 16 [11:10:59]RasterBufferAndPrint [11:10:59]line [11:10:59]line [11:10:59]line [11:10:59]line [11:10:59]line [11:10:59]written 0, free lines is 3217 [11:10:59]MH_Cut [11:10:59]Write to MH i2c: D1 01 00 76 07 01 4F [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: D1 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: D1 01 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: D1 01 00 76 07 00 4E [11:10:59]Write to MH i2c: 01 00 00 77 07 7E [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:11:00]OFD Sender: No OFD packet to send [11:11:00]*** Cut start [11:11:00]*** Purtial cut [11:11:00]*** Stage 1: CUTSNS_PIN = 1 [11:11:00]Read from MH i2c: 01 [11:11:00]MH_I2C_Read... [11:11:00]*** Stop cut motor [11:11:00]*** Cut end [11:11:00]Read from MH i2c: 01 07 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 FF 0F 93 [11:11:00]process_action close_receipt done [11:11:00]requested_data is exist [11:11:00]produce_requested_data [11:11:00]requested_item fm.sn is exist - process it [11:11:00]wFMCommunicate request_size=4 [11:11:00]MH_SAM_APDU [11:11:00]CAPDU: 80 11 00 00 [11:11:00]Write to MH i2c: E2 08 00 78 07 80 11 00 00 00 00 00 00 F9 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 17 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 17 00 78 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4E [11:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:11:01]wFMCommunicate OK [11:11:01]requested_item fd.num is exist - process it [11:11:01]SAM_PROTO_GetFieldsCounters [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 13 00 00 [11:11:01]Write to MH i2c: E2 08 00 79 07 80 13 00 00 00 00 00 00 FC [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 62 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 62 00 79 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 99 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 99 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:01]wFMCommunicate OK [11:11:01]SAM_PROTO_GetFieldsCounters done [11:11:01]requested_item shift.num is exist - process it [11:11:01]requested_item shift.opened is exist - process it [11:11:01]req_shift_opened [11:11:01]FM_GetShiftState [11:11:01]SAM_PROTO_GetShiftState [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 13 01 00 [11:11:01]Write to MH i2c: E2 08 00 7A 07 80 13 01 00 00 00 00 00 FE [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 0E 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 0E 00 7A 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 00 [11:11:01]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:11:01]wFMCommunicate OK [11:11:01]SAM_PROTO_GetShiftState done [11:11:01]FM_GetShiftState done [11:11:01]req_shift_opened done [11:11:01]requested_item shift.open_date is exist - process it [11:11:01]req_shift_open_date [11:11:01]req_shift_open_date done [11:11:01]produce_requested_data done [11:11:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201881,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:11:01]process_action_free close_receipt [11:11:01]json_value_free [11:11:01]json_value_free done [11:11:01]process_json_proto returns [11:11:01]Send response to host [11:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201881,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:11:01]free response buf [11:11:01]execute_script done [11:11:01]execute_script returns [11:11:01]free content buf [11:11:01]Sock 6.Close socket [11:11:01]Sock 6.Thread stoped [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:18]accept exits with 5 [11:11:18]New connection [11:11:18]New thread 3066805604 created [11:11:18]Thread 3066948964 joined [11:11:18]Waiting for new connection... [11:11:18] Sock 5.Parse request [11:11:18]Sock 5.Check first char [11:11:18]Sock 5.First char is OK [11:11:18]request: POST /json_proto HTTP/1.0 [11:11:18]Method: POST [11:11:18]URL: /json_proto [11:11:18]Method is POST - this is cgi request [11:11:18]url: /json_proto [11:11:18]query_string will be loaded in cgi processing [11:11:18]execute_cgi json_proto POST (null) [11:11:18]execute_cgi path=json_proto method=POST [11:11:18]POST find Content-Length [11:11:18]Host: 172.17.63.195:8080 [11:11:18]Content-Length: 679 [11:11:18]Content-Type: application/json [11:11:18] [11:11:18]POST finish read [11:11:18]Found Content-Length = 679 [11:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:11:18]execute_script... [11:11: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)449641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:11:18]POST & json_proto [11:11:18]process_json_proto [11:11:18]json parsed OK: [11:11:18]protocol is kg_v1.0 [11:11:18]action value=close_receipt [11:11:18]process_action close_receipt [11:11:18]cmd_close_receipt [11:11:18]MH_GetDate [11:11:18]Write to MH i2c: F0 00 00 7B 07 71 [11:11:18]Write i2c OK [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: F0 [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: F0 09 00 [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: F0 09 00 7B 07 00 D6 1F 1E 67 47 1B 1E 67 DB [11:11:18]GetLastDocTimeStamp 1730027457 [11:11:18]current date 1730027478 [11:11:18]FM_GetShiftState [11:11:18]SAM_PROTO_GetShiftState [11:11:18]wFMCommunicate request_size=4 [11:11:18]MH_SAM_APDU [11:11:18]CAPDU: 80 13 01 00 [11:11:18]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [11:11:18]Write i2c OK [11:11:18]MH_I2C_Read... [11:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:18]Read from MH i2c: E2 [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: E2 0E 00 [11:11:18]MH_I2C_Read... [11:11:18]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 02 [11:11:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:11:18]wFMCommunicate OK [11:11:18]SAM_PROTO_GetShiftState done [11:11:18]FM_GetShiftState done [11:11:18]opened in 1729987312 [11:11:18]opened+sec_in_day 1730073712 [11:11:18]quantity*price = 100050 [11:11:18]sum+1 = 100052 [11:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 174 27.10.2024 11:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201882 ФПД: 54192935626623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111118&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201882&fm=54192935626623&tin=02508201610067®Number=0000000000091777&sum=100000 [11:11:19]StoreToDocumentArchive [11:11:19]shift 544 fd 201882 [11:11:19]save to /storage/0544/doc_00201882 [11:11:19]save last doc name /storage/0544/doc_00201882 to /storage/kkm_last_doc_name [11:11:19]save OK [11:11:19]Clear old archive folders... [11:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:19]tlvbuf is 004720D0 [11:11:19]SAM_PROTO_ClearQueue [11:11:19]wFMCommunicate request_size=4 [11:11:19]MH_SAM_APDU [11:11:19]CAPDU: 80 09 00 00 [11:11:19]Write to MH i2c: E2 08 00 89 07 80 09 00 00 00 00 00 00 02 [11:11:19]Write i2c OK [11:11:19]MH_I2C_Read... [11:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:19]Read from MH i2c: E2 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 03 00 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 03 00 89 07 00 90 00 04 [11:11:19]RAPDU: 90 00 [11:11:19]wFMCommunicate OK [11:11:19]SAM_PROTO_ClearQueue done [11:11:19]KKMCreateOFDPacket [11:11:19]OFDProtocolAddRootSTLVToBuf [11:11:19]FM_MakeSignedData [11:11:19]FM_MakeSignedData [11:11:19]SAM_PROTO_SignData [11:11:19]wFMCommunicate request_size=4 [11:11:19]MH_SAM_APDU [11:11:19]CAPDU: 80 0D 01 02 [11:11:19]Write to MH i2c: E2 08 00 8A 07 80 0D 01 02 00 00 00 00 0A [11:11:19]Write i2c OK [11:11:19]MH_I2C_Read... [11:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:19]Read from MH i2c: E2 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 03 00 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 03 00 8A 07 00 90 00 05 [11:11:19]RAPDU: 90 00 [11:11:19]wFMCommunicate OK [11:11:19]wFMCommunicate request_size=255 [11:11:19]MH_SAM_APDU [11:11: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 32 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 AE 00 00 00 F4 03 04 00 D6 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 14 03 00 35 04 06 00 31 49 C6 AD [11:11:19]Write to MH i2c: E2 02 01 8B 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 AE 00 00 00 F4 03 04 00 D6 1F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 14 03 00 35 04 06 00 31 49 C6 AD 00 00 7C [11:11:19]Write i2c OK [11:11:19]MH_I2C_Read... [11:11:20]OFD Sender: No OFD packet to send [11:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 03 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [11:11:20]RAPDU: 90 00 [11:11:20]wFMCommunicate OK [11:11:20]wFMCommunicate request_size=7 [11:11:20]MH_SAM_APDU [11:11:20]CAPDU: 80 0D 02 02 02 67 7F [11:11:20]Write to MH i2c: E2 0A 00 8C 07 80 0D 02 02 02 00 67 7F 00 00 F7 [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 03 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [11:11:20]RAPDU: 90 00 [11:11:20]wFMCommunicate OK [11:11:20]wFMCommunicate request_size=4 [11:11:20]MH_SAM_APDU [11:11:20]CAPDU: 80 0D 03 02 [11:11:20]Write to MH i2c: E2 08 00 8D 07 80 0D 03 02 00 00 00 00 0F [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 0B 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 0B 00 8D 07 00 D6 2B 7F 49 6B F8 15 CB 90 00 1C [11:11:20]RAPDU: D6 2B 7F 49 6B F8 15 CB 90 00 [11:11:20]wFMCommunicate OK [11:11:20]SAM_PROTO_SignData done [11:11:20]FM_MakeSignedData done [11:11:20]CreateOFDProtocolMessage [11:11:20]wFMCommunicate request_size=4 [11:11:20]MH_SAM_APDU [11:11:20]CAPDU: 80 11 00 00 [11:11:20]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [11:11:20]Write i2c OK [11:11:20]MH_I2C_Read... [11:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:20]Read from MH i2c: E2 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 17 00 [11:11:20]MH_I2C_Read... [11:11:20]Read from MH i2c: E2 17 00 8E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 64 [11:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:11:20]wFMCommunicate OK [11:11:20]CreateOFDProtocolMessage done [11:11:20]OFDSenderStorePacket 201882 [11:11:20]StoreOFDPacket docnum=201882 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903 init start (LINUX_LIGHT) [00:00:11]*** Serial: 3139303353513838 54000000005725CF (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 1199+1730026311=1730027510 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30515 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 F7 1F 1E 67 47 1B 1E 67 81 [11:11:51]Current date/time: 27.10.2024 11:11 [11:11:51]FM_Init [11:11:51]wFMConnect [11:11:51]MH_SAM_On [11:11:51]Write to MH i2c: E0 00 00 08 00 E7 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_init finished! [11:11:51]*** atr: [11:11:51]*** 0F 3B D5 18 FF 81 91 FE [11:11:51]*** 1F C3 80 73 C8 21 10 0A [11:11:51]*** 00 00 00 00 00 00 00 00 [11:11:51]*** 00 00 00 00 00 00 00 00 [11:11:51]*** 00 00 00 00 00 00 00 00 [11:11:51]*** 00 00 00 00 00 00 00 00 [11:11:51]*** 00 00 00 00 00 00 00 00 [11:11:51]*** 00 00 00 00 00 00 00 00 [11:11:51]Read from MH i2c: E0 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E0 10 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:11:51]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:11:51]wFMCommunicate request_size=10 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:11:51]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 11 00 00 [11:11:51]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 17 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [11:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:11:51]wFMCommunicate OK [11:11:51]Detected FM SN is 0000000000871756 [11:11:51]Stored FM SN is 0000000000871756 [11:11:51]wFMCommunicate request_size=9 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 16 00 00 04 7E FB 00 00 [11:11:51]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 7E FB 00 00 00 00 0B [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]FM PIN OK [11:11:51]wFMCommunicate request_size=8 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 14 04 00 03 02 00 01 [11:11:51]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]wFMCommunicate request_size=13 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:11:51]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:11:51]RAPDU: 90 00 [11:11:51]wFMCommunicate OK [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 11 00 00 [11:11:51]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 17 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [11:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:11:51]wFMCommunicate OK [11:11:51]DocumentArchiveInit [11:11:51]Start Httpd... [11:11:51]Httpd thread 3066928484 created [11:11:51]Write to MH i2c: 01 00 00 0F 00 0F [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 07 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:11:51]MH Int Process started [11:11:51]Allocated Socket 6 [11:11:51]Bind OK [11:11:51]Listen OK [11:11:51]httpd running on port 8080 [11:11:51]Waiting for new connection... [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:11:57]accept exits with 7 [11:11:57]New connection [11:11:57]New thread 3066641764 created [11:11:57]Waiting for new connection... [11:11:57] Sock 7.Parse request [11:11:57]Sock 7.Check first char [11:11:57]Sock 7.First char is OK [11:11:57]request: POST /json_proto HTTP/1.0 [11:11:57]Method: POST [11:11:57]URL: /json_proto [11:11:57]Method is POST - this is cgi request [11:11:57]url: /json_proto [11:11:57]query_string will be loaded in cgi processing [11:11:57]execute_cgi json_proto POST (null) [11:11:57]execute_cgi path=json_proto method=POST [11:11:57]POST find Content-Length [11:11:57]Host: 172.17.63.195:8080 [11:11:57]Content-Length: 215 [11:11:57]Content-Type: application/json [11:11:57] [11:11:57]POST finish read [11:11:57]Found Content-Length = 215 [11:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:57]execute_script... [11:11:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:57]POST & json_proto [11:11:57]process_json_proto [11:11:57]json parsed OK: [11:11:57]protocol is kg_v1.0 [11:11:57]action value=get_value [11:11:57]process_action get_value [11:11:57]cmd_get_value [11:11:57]process_action get_value done [11:11:57]requested_data is exist [11:11:57]produce_requested_data [11:11:57]requested_item kkm.sn is exist - process it [11:11:57]requested_item kkm.ver is exist - process it [11:11:57]requested_item fm.sn is exist - process it [11:11:57]wFMCommunicate request_size=4 [11:11:57]MH_SAM_APDU [11:11:57]CAPDU: 80 11 00 00 [11:11:57]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:57]Read from MH i2c: E2 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: E2 17 00 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [11:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:11:57]wFMCommunicate OK [11:11:57]requested_item fd.num is exist - process it [11:11:57]SAM_PROTO_GetFieldsCounters [11:11:57]wFMCommunicate request_size=4 [11:11:57]MH_SAM_APDU [11:11:57]CAPDU: 80 13 00 00 [11:11:57]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:57]Read from MH i2c: E2 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: E2 62 00 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9A 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:11:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9A 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:57]wFMCommunicate OK [11:11:57]SAM_PROTO_GetFieldsCounters done [11:11:57]requested_item shift.num is exist - process it [11:11:57]requested_item shift.opened is exist - process it [11:11:57]req_shift_opened [11:11:57]FM_GetShiftState [11:11:57]SAM_PROTO_GetShiftState [11:11:57]wFMCommunicate request_size=4 [11:11:57]MH_SAM_APDU [11:11:57]CAPDU: 80 13 01 00 [11:11:57]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 91 [11:11:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:11:58]wFMCommunicate OK [11:11:58]SAM_PROTO_GetShiftState done [11:11:58]FM_GetShiftState done [11:11:58]req_shift_opened done [11:11:58]requested_item shift.open_date is exist - process it [11:11:58]req_shift_open_date [11:11:58]req_shift_open_date done [11:11:58]produce_requested_data done [11:11:58]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201882,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:11:58]process_action_free get_value [11:11:58]json_value_free [11:11:58]json_value_free done [11:11:58]process_json_proto returns [11:11:58]Send response to host [11:11:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201882,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:11:58]free response buf [11:11:58]execute_script done [11:11:58]execute_script returns [11:11:58]free content buf [11:11:58]Sock 7.Close socket [11:11:58]Sock 7.Thread stoped [11:11:58]accept exits with 9 [11:11:58]New connection [11:11:58]New thread 3066498404 created [11:11:58]Thread 3066641764 joined [11:11:58]Waiting for new connection... [11:11:58] Sock 9.Parse request [11:11:58]Sock 9.Check first char [11:11:58]Sock 9.First char is OK [11:11:58]request: POST /json_proto HTTP/1.0 [11:11:58]Method: POST [11:11:58]URL: /json_proto [11:11:58]Method is POST - this is cgi request [11:11:58]url: /json_proto [11:11:58]query_string will be loaded in cgi processing [11:11:58]execute_cgi json_proto POST (null) [11:11:58]execute_cgi path=json_proto method=POST [11:11:58]POST find Content-Length [11:11:58]Host: 172.17.63.195:8080 [11:11:58]Content-Length: 331 [11:11:58]Content-Type: application/json [11:11:58] [11:11:58]POST finish read [11:11:58]Found Content-Length = 331 [11:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:11:58]execute_script... [11:11:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:11:58]POST & json_proto [11:11:58]process_json_proto [11:11:58]json parsed OK: [11:11:58]protocol is kg_v1.0 [11:11:58]action value=get_value [11:11:58]process_action get_value [11:11:58]cmd_get_value [11:11:58]process_action get_value done [11:11:58]requested_data is exist [11:11:58]produce_requested_data [11:11:58]requested_item fm.sale.total is exist - process it [11:11:58]SAM_PROTO_GetFMData [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 13 03 00 [11:11:58]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 FD 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 5A 10 03 00 69 04 A3 00 6F 04 04 00 35 10 03 00 B1 04 05 00 0C 61 BE AD 03 70 04 05 00 74 98 B0 4E 03 72 04 04 00 98 C8 0D 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 64 5B 0B 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 1A 56 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 18 [11:11:58]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 5A 10 03 00 69 04 A3 00 6F 04 04 00 35 10 03 00 B1 04 05 00 0C 61 BE AD 03 70 04 05 00 74 98 B0 4E 03 72 04 04 00 98 C8 0D 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 64 5B 0B 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D7 1A 56 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [11:11:58]wFMCommunicate OK [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 17 00 00 [11:11:58]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 FD 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 9B [11:11:59]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [11:11:59]wFMCommunicate OK [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 17 00 00 [11:11:59]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 FD 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [11:11:59]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [11:11:59]wFMCommunicate OK [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 17 00 00 [11:11:59]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 FD 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [11:11:59]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:11:59]wFMCommunicate OK [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 17 00 00 [11:11:59]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 E1 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [11:11:59]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_GetFMData done [11:11:59]requested_item fm.sale_refund.total is exist - process it [11:11:59]requested_item fm.buy.total is exist - process it [11:11:59]requested_item shift.sale.total is exist - process it [11:11:59]SAM_PROTO_GetShiftData [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 13 02 00 [11:11:59]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 FD 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 AE 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 22 94 C0 70 04 03 00 38 E7 B2 72 04 03 00 EA AC 0D 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 83 75 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6E B4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 DB [11:12:00]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 AE 00 00 00 69 04 9C 00 6F 04 04 00 AE 00 00 00 B1 04 03 00 22 94 C0 70 04 03 00 38 E7 B2 72 04 03 00 EA AC 0D 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 83 75 14 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6E B4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 17 00 00 [11:12:00]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 FD 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [11:12:00]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 17 00 00 [11:12:00]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 FD 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [11:12:00]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 17 00 00 [11:12:00]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 FD 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [11:12:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [11:12:01]wFMCommunicate OK [11:12:01]wFMCommunicate request_size=4 [11:12:01]MH_SAM_APDU [11:12:01]CAPDU: 80 17 00 00 [11:12:01]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:12:01]Read from MH i2c: E2 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 CC 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [11:12:01]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:12:01]wFMCommunicate OK [11:12:01]SAM_PROTO_GetShiftData done [11:12:01]requested_item shift.sale.total_cash is exist - process it [11:12:01]requested_item shift.sale_refund.total is exist - process it [11:12:01]requested_item shift.sale_refund.total_cash is exist - process it [11:12:01]requested_item shift.buy.total is exist - process it [11:12:01]requested_item shift.buy.total_cash is exist - process it [11:12:01]produce_requested_data done [11:12:01]produce_requested_data return {"fm.sale.total":157998369.40,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":126208.34,"shift.sale.total_cash":117246.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} [11:12:01]process_action_free get_value [11:12:01]json_value_free [11:12:01]json_value_free done [11:12:01]process_json_proto returns [11:12:01]Send response to host [11:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157998369.40,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":126208.34,"shift.sale.total_cash":117246.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}}} [11:12:01]free response buf [11:12:01]execute_script done [11:12:01]execute_script returns [11:12:01]free content buf [11:12:01]Sock 9.Close socket [11:12:01]Sock 9.Thread stoped [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:30]accept exits with 7 [11:13:30]New connection [11:13:30]New thread 3066641764 created [11:13:30]Thread 3066498404 joined [11:13:30]Waiting for new connection... [11:13:30] Sock 7.Parse request [11:13:30]Sock 7.Check first char [11:13:30]Sock 7.First char is OK [11:13:30]request: POST /json_proto HTTP/1.0 [11:13:30]Method: POST [11:13:30]URL: /json_proto [11:13:30]Method is POST - this is cgi request [11:13:30]url: /json_proto [11:13:30]query_string will be loaded in cgi processing [11:13:30]execute_cgi json_proto POST (null) [11:13:30]execute_cgi path=json_proto method=POST [11:13:30]POST find Content-Length [11:13:30]Host: 172.17.63.195:8080 [11:13:30]Content-Length: 682 [11:13:30]Content-Type: application/json [11:13:30] [11:13:30]POST finish read [11:13:30]Found Content-Length = 682 [11:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:13:30]execute_script... [11:13:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:13:30]POST & json_proto [11:13:30]process_json_proto [11:13:30]json parsed OK: [11:13:30]protocol is kg_v1.0 [11:13:30]action value=close_receipt [11:13:30]process_action close_receipt [11:13:30]cmd_close_receipt [11:13:30]MH_GetDate [11:13:30]Write to MH i2c: F0 00 00 1D 00 0C [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: F0 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: F0 09 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: F0 09 00 1D 00 00 5A 20 1E 67 47 1B 1E 67 FB [11:13:30]GetLastDocTimeStamp 97 [11:13:30]current date 1730027610 [11:13:30]FM_GetShiftState [11:13:30]SAM_PROTO_GetShiftState [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 13 01 00 [11:13:30]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [11:13:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_GetShiftState done [11:13:30]FM_GetShiftState done [11:13:30]opened in 1729987312 [11:13:30]opened+sec_in_day 1730073712 [11:13:30]quantity*price = 100015 [11:13:30]sum+1 = 100017 [11:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 175 27.10.2024 11:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201883 ФПД: 154561086000433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111330&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201883&fm=154561086000433&tin=02508201610067®Number=0000000000091777&sum=100000 [11:13:31]StoreToDocumentArchive [11:13:31]shift 544 fd 201883 [11:13:31]save to /storage/0544/doc_00201883 [11:13:31]save last doc name /storage/0544/doc_00201883 to /storage/kkm_last_doc_name [11:13:31]save OK [11:13:31]Clear old archive folders... [11:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:31]tlvbuf is 0119F430 [11:13:31]SAM_PROTO_ClearQueue [11:13:31]wFMCommunicate request_size=4 [11:13:31]MH_SAM_APDU [11:13:31]CAPDU: 80 09 00 00 [11:13:31]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:13:31]Write i2c OK [11:13:31]MH_I2C_Read... [11:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:31]Read from MH i2c: E2 [11:13:31]MH_I2C_Read... [11:13:31]Read from MH i2c: E2 03 00 [11:13:31]MH_I2C_Read... [11:13:31]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:13:31]RAPDU: 90 00 [11:13:31]wFMCommunicate OK [11:13:31]SAM_PROTO_ClearQueue done [11:13:31]KKMCreateOFDPacket [11:13:31]OFDProtocolAddRootSTLVToBuf [11:13:31]FM_MakeSignedData [11:13:31]FM_MakeSignedData [11:13:31]SAM_PROTO_SignData [11:13:31]wFMCommunicate request_size=4 [11:13:31]MH_SAM_APDU [11:13:31]CAPDU: 80 0D 01 02 [11:13:31]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:13:31]Write i2c OK [11:13:31]MH_I2C_Read... [11:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:31]Read from MH i2c: E2 [11:13:31]MH_I2C_Read... [11:13:31]Read from MH i2c: E2 03 00 [11:13:31]MH_I2C_Read... [11:13:31]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:13:31]RAPDU: 90 00 [11:13:31]wFMCommunicate OK [11:13:31]wFMCommunicate request_size=255 [11:13:31]MH_SAM_APDU [11:13: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 32 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 AF 00 00 00 F4 03 04 00 5A 20 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 14 03 00 35 04 06 00 8C [11:13:31]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 00 00 00 F4 03 04 00 5A 20 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 14 03 00 35 04 06 00 8C 00 00 41 [11:13:31]Write i2c OK [11:13:31]MH_I2C_Read... [11:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:32]Read from MH i2c: E2 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 03 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:13:32]RAPDU: 90 00 [11:13:32]wFMCommunicate OK [11:13:32]wFMCommunicate request_size=10 [11:13:32]MH_SAM_APDU [11:13:32]CAPDU: 80 0D 02 02 05 92 8E A0 8D 31 [11:13:32]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 92 8E A0 8D 31 00 00 30 [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:32]Read from MH i2c: E2 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 03 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:13:32]RAPDU: 90 00 [11:13:32]wFMCommunicate OK [11:13:32]wFMCommunicate request_size=4 [11:13:32]MH_SAM_APDU [11:13:32]CAPDU: 80 0D 03 02 [11:13:32]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:32]Read from MH i2c: E2 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 0B 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 0B 00 2F 00 00 BB 79 38 39 50 EE 3D 6C 90 00 37 [11:13:32]RAPDU: BB 79 38 39 50 EE 3D 6C 90 00 [11:13:32]wFMCommunicate OK [11:13:32]SAM_PROTO_SignData done [11:13:32]FM_MakeSignedData done [11:13:32]CreateOFDProtocolMessage [11:13:32]wFMCommunicate request_size=4 [11:13:32]MH_SAM_APDU [11:13:32]CAPDU: 80 11 00 00 [11:13:32]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:32]Read from MH i2c: E2 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 17 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [11:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:13:32]wFMCommunicate OK [11:13:32]CreateOFDProtocolMessage done [11:13:32]OFDSenderStorePacket 201883 [11:13:32]StoreOFDPacket docnum=201883 [11:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 3B 07 01 0F 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 00 00 00 F4 03 04 00 5A 20 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 14 03 00 35 04 06 00 8C 92 8E A0 8D 31 BB 79 38 39 50 EE 3D 6C [11:13:32]CheckFolder [11:13:32]dirname=/storage/ofd_packets [11:13:32]CheckFolder done [11:13:32]ProducePacketName [11:13:32]name=ofd_packets/00201883 [11:13:32]NVStorageSaveData ofd_packets/00201883 [11:13:32]File name is /storage/ofd_packets/00201883 [11:13:32]Write 301 bytes [11:13:32]NVStorageSaveData done [11:13:32]OFDSenderStorePacket done [11:13:32]KKMCreateOFDPacket done [11:13:32]NVStorageSaveData kkm_last_timestamp [11:13:32]File name is /storage/kkm_last_timestamp [11:13:32]Write 4 bytes [11:13:32]NVStorageSaveData done [11:13:32]ExternCall_PrintAddStr [11:13:32]wPrintStart [11:13:32]Write to MH i2c: 01 00 00 31 00 31 [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: 01 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: 01 07 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:13:32]RasterBufferAndPrint [11:13:32]line Счет N : (1)449643 [11:13:32]line ИНН: 02508201610067 [11:13:32]line Контрольно-Кассовый Чек [11:13:32]line ПРОДАЖА [11:13:32]line ТРК (МРК, ГНК) : 41 [11:13:32]line Товар: 2710124130 [11:13:32]line Аи-92-К-2 [11:13:32]line 14.950 * 66.90 [11:13:32]line = 1000.16 [11:13:32]line НДС 12% НСП 1% [11:13:32]line > о реализуемом товаре [11:13:32]line ОКРУГЛЕНИЕ: -0.16 [11:13:32]line ИТОГО: 1000.00 [11:13:32]line Внесено: 1000.00 [11:13:32]line СДАЧА: 0.00 [11:13:32]line НСП 1% : 8.85 [11:13:32]line НДС 12% : 106.21 [11:13:32]line Наличными: 1000.00 [11:13:32]line Безнал.: 0.00 [11:13:32]line Место: АЗС № 171 "Партнер Нефть" [11:13:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:13:32]line СНО: Общий режим [11:13:32]line Чек 175 27.10.2024 11:13 [11:13:32]line Смена: 544 ФФД: 1.0 [11:13:32]line ЗНМ: 0300000109 [11:13:32]line РНМ: 0000000000091777 [11:13:32]line Версия ККМ: 001 [11:13:32]line ФМ: 0000000000871756 [11:13:32]line ФД: 201883 [11:13:32]line ФПД: 154561086000433 [11:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111330&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201883&fm=154561086000433&tin=02508201610067®Number=0000000000091777&sum=100000 [11:13:32]written 0, free lines is 4095 [11:13:32]OFD Sender: Processing packet 201883 [packets to send 112, broken 111] [11:13:32]ProducePacketName [11:13:32]name=ofd_packets/00201883 [11:13:32]OFD Sender: To server: pG, [11:13:32]CommunicateWithHost lk.salyk.kg:30040 [11:13:32]ConnectInit lk.salyk.kg [11:13:32]Connected sock=10 [11:13:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 3B 07 01 0F 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 00 00 00 F4 03 04 00 5A 20 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 14 03 00 35 04 06 00 8C 92 8E A0 8D 31 BB 79 38 39 50 EE 3D 6C [11:13:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BC 75 47 00 F7 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 14 03 00 F4 03 04 00 15 CC 1D 67 B6 04 01 00 00 BF 42 C1 87 56 37 7E B0 [11:13:32]CommunicateWithHost err = 0 [11:13:32]CheckOFDResponse [11:13:32]1017 (14) - 77093643461234 [11:13:32]1041 (16) - 0000000000871756 [11:13:32]1040 (4) - 201883 [11:13:32]1012 (4) - 27.10.2024 05:13 [11:13:32]1206 (1) - 0 [11:13:32]OFD Sender: Remove packet 201883 [11:13:32]ProducePacketName [11:13:32]name=ofd_packets/00201883 [11:13:32]NVStorageDeleteData [11:13:32]Write to MH i2c: 01 00 00 5C 00 5C [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: 01 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: 01 07 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 A0 0C 0F [11:13:32]RasterBufferAndPrint [11:13:32]line [11:13:32]line [11:13:32]line [11:13:32]line [11:13:32]line [11:13:32]written 0, free lines is 3238 [11:13:32]MH_Cut [11:13:32]Write to MH i2c: D1 01 00 63 00 01 35 [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: D1 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: D1 01 00 [11:13:32]MH_I2C_Read... [11:13:32]Read from MH i2c: D1 01 00 63 00 00 34 [11:13:32]Write to MH i2c: 01 00 00 64 00 64 [11:13:32]Write i2c OK [11:13:32]MH_I2C_Read... [11:13:33]OFD Sender: No OFD packet to send [11:13:33]*** Cut start [11:13:33]*** Purtial cut [11:13:33]*** Stage 1: CUTSNS_PIN = 1 [11:13:33]Read from MH i2c: 01 [11:13:34]MH_I2C_Read... [11:13:34]*** Stop cut motor [11:13:34]*** Cut end [11:13:34]Read from MH i2c: 01 07 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:13:34]process_action close_receipt done [11:13:34]requested_data is exist [11:13:34]produce_requested_data [11:13:34]requested_item fm.sn is exist - process it [11:13:34]wFMCommunicate request_size=4 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 11 00 00 [11:13:34]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 17 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [11:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:13:34]wFMCommunicate OK [11:13:34]requested_item fd.num is exist - process it [11:13:34]SAM_PROTO_GetFieldsCounters [11:13:34]wFMCommunicate request_size=4 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 13 00 00 [11:13:34]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 62 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9B 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [11:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9B 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:34]wFMCommunicate OK [11:13:34]SAM_PROTO_GetFieldsCounters done [11:13:34]requested_item shift.num is exist - process it [11:13:34]requested_item shift.opened is exist - process it [11:13:34]req_shift_opened [11:13:34]FM_GetShiftState [11:13:34]SAM_PROTO_GetShiftState [11:13:34]wFMCommunicate request_size=4 [11:13:34]MH_SAM_APDU [11:13:34]CAPDU: 80 13 01 00 [11:13:34]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:13:34]Write i2c OK [11:13:34]MH_I2C_Read... [11:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:34]Read from MH i2c: E2 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 0E 00 [11:13:34]MH_I2C_Read... [11:13:34]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E6 [11:13:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:13:34]wFMCommunicate OK [11:13:34]SAM_PROTO_GetShiftState done [11:13:34]FM_GetShiftState done [11:13:34]req_shift_opened done [11:13:34]requested_item shift.open_date is exist - process it [11:13:34]req_shift_open_date [11:13:34]req_shift_open_date done [11:13:34]produce_requested_data done [11:13:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201883,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:13:34]process_action_free close_receipt [11:13:34]json_value_free [11:13:34]json_value_free done [11:13:34]process_json_proto returns [11:13:34]Send response to host [11:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201883,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:13:34]free response buf [11:13:34]execute_script done [11:13:34]execute_script returns [11:13:34]free content buf [11:13:34]Sock 7.Close socket [11:13:34]Sock 7.Thread stoped [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:50]accept exits with 9 [11:16:50]New connection [11:16:50]New thread 3066498404 created [11:16:50]Thread 3066641764 joined [11:16:50]Waiting for new connection... [11:16:50] Sock 9.Parse request [11:16:50]Sock 9.Check first char [11:16:50]Sock 9.First char is OK [11:16:50]request: POST /json_proto HTTP/1.0 [11:16:50]Method: POST [11:16:50]URL: /json_proto [11:16:50]Method is POST - this is cgi request [11:16:50]url: /json_proto [11:16:50]query_string will be loaded in cgi processing [11:16:50]execute_cgi json_proto POST (null) [11:16:50]execute_cgi path=json_proto method=POST [11:16:50]POST find Content-Length [11:16:50]Host: 172.17.63.195:8080 [11:16:50]Content-Length: 677 [11:16:50]Content-Type: application/json [11:16:50] [11:16:50]POST finish read [11:16:50]Found Content-Length = 677 [11:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:16:50]execute_script... [11:16: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)449644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:16:50]POST & json_proto [11:16:50]process_json_proto [11:16:50]json parsed OK: [11:16:50]protocol is kg_v1.0 [11:16:50]action value=close_receipt [11:16:50]process_action close_receipt [11:16:50]cmd_close_receipt [11:16:50]MH_GetDate [11:16:50]Write to MH i2c: F0 00 00 68 00 57 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: F0 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: F0 09 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: F0 09 00 68 00 00 22 21 1E 67 47 1B 1E 67 0F [11:16:50]GetLastDocTimeStamp 1730027610 [11:16:50]current date 1730027810 [11:16:50]FM_GetShiftState [11:16:50]SAM_PROTO_GetShiftState [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 01 00 [11:16:50]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E8 [11:16:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_GetShiftState done [11:16:50]FM_GetShiftState done [11:16:50]opened in 1729987312 [11:16:50]opened+sec_in_day 1730073712 [11:16:50]quantity*price = 30038 [11:16:50]sum+1 = 30039 [11:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 176 27.10.2024 11:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201884 ФПД: 197354341248665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111650&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201884&fm=197354341248665&tin=02508201610067®Number=0000000000091777&sum=30000 [11:16:51]StoreToDocumentArchive [11:16:51]shift 544 fd 201884 [11:16:51]save to /storage/0544/doc_00201884 [11:16:51]save last doc name /storage/0544/doc_00201884 to /storage/kkm_last_doc_name [11:16:51]save OK [11:16:51]Clear old archive folders... [11:16:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:51]tlvbuf is 0119A610 [11:16:51]SAM_PROTO_ClearQueue [11:16:51]wFMCommunicate request_size=4 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 09 00 00 [11:16:51]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:16:51]RAPDU: 90 00 [11:16:51]wFMCommunicate OK [11:16:51]SAM_PROTO_ClearQueue done [11:16:51]KKMCreateOFDPacket [11:16:51]OFDProtocolAddRootSTLVToBuf [11:16:51]FM_MakeSignedData [11:16:51]FM_MakeSignedData [11:16:51]SAM_PROTO_SignData [11:16:51]wFMCommunicate request_size=4 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 0D 01 02 [11:16:51]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:16:51]RAPDU: 90 00 [11:16:51]wFMCommunicate OK [11:16:51]wFMCommunicate request_size=255 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 00 00 00 F4 03 04 00 22 21 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 14 03 00 35 04 06 00 B3 [11:16:51]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 00 00 00 F4 03 04 00 22 21 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 14 03 00 35 04 06 00 B3 00 00 78 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]wFMCommunicate request_size=10 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 02 02 05 7E 23 67 AE 99 [11:16:52]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 7E 23 67 AE 99 00 00 4C [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 03 02 [11:16:52]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0B 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0B 00 7A 00 00 92 F5 75 C7 5A B7 B9 E8 90 00 6B [11:16:52]RAPDU: 92 F5 75 C7 5A B7 B9 E8 90 00 [11:16:52]wFMCommunicate OK [11:16:52]SAM_PROTO_SignData done [11:16:52]FM_MakeSignedData done [11:16:52]CreateOFDProtocolMessage [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 11 00 00 [11:16:52]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 17 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [11:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:16:52]wFMCommunicate OK [11:16:52]CreateOFDProtocolMessage done [11:16:52]OFDSenderStorePacket 201884 [11:16:52]StoreOFDPacket docnum=201884 [11:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 13 26 07 01 AA 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 00 00 00 F4 03 04 00 22 21 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 14 03 00 35 04 06 00 B3 7E 23 67 AE 99 92 F5 75 C7 5A B7 B9 E8 [11:16:52]CheckFolder [11:16:52]dirname=/storage/ofd_packets [11:16:52]CheckFolder done [11:16:52]ProducePacketName [11:16:52]name=ofd_packets/00201884 [11:16:52]NVStorageSaveData ofd_packets/00201884 [11:16:52]File name is /storage/ofd_packets/00201884 [11:16:52]Write 301 bytes [11:16:52]NVStorageSaveData done [11:16:52]OFDSenderStorePacket done [11:16:52]KKMCreateOFDPacket done [11:16:52]NVStorageSaveData kkm_last_timestamp [11:16:52]File name is /storage/kkm_last_timestamp [11:16:52]Write 4 bytes [11:16:52]NVStorageSaveData done [11:16:52]ExternCall_PrintAddStr [11:16:52]wPrintStart [11:16:52]Write to MH i2c: 01 00 00 7C 00 7C [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 07 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [11:16:52]RasterBufferAndPrint [11:16:52]line Счет N : (1)449644 [11:16:52]line ИНН: 02508201610067 [11:16:52]line Контрольно-Кассовый Чек [11:16:52]line ПРОДАЖА [11:16:52]line ТРК (МРК, ГНК) : 41 [11:16:52]line Товар: 2710124130 [11:16:52]line Аи-92-К-2 [11:16:52]line 4.490 * 66.90 [11:16:52]line = 300.38 [11:16:52]line НДС 12% НСП 1% [11:16:52]line > о реализуемом товаре [11:16:52]line ОКРУГЛЕНИЕ: -0.38 [11:16:52]line ИТОГО: 300.00 [11:16:52]line Внесено: 300.00 [11:16:52]line СДАЧА: 0.00 [11:16:52]line НСП 1% : 2.66 [11:16:52]line НДС 12% : 31.90 [11:16:52]line Наличными: 300.00 [11:16:52]line Безнал.: 0.00 [11:16:52]line Место: АЗС № 171 "Партнер Нефть" [11:16:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:16:52]line СНО: Общий режим [11:16:52]line Чек 176 27.10.2024 11:16 [11:16:52]line Смена: 544 ФФД: 1.0 [11:16:52]line ЗНМ: 0300000109 [11:16:52]line РНМ: 0000000000091777 [11:16:52]line Версия ККМ: 001 [11:16:52]line ФМ: 0000000000871756 [11:16:52]line ФД: 201884 [11:16:52]line ФПД: 197354341248665 [11:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111650&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201884&fm=197354341248665&tin=02508201610067®Number=0000000000091777&sum=30000 [11:16:52]OFD Sender: Processing packet 201884 [packets to send 112, broken 111] [11:16:52]ProducePacketName [11:16:52]name=ofd_packets/00201884 [11:16:52]OFD Sender: To server: pG, [11:16:52]CommunicateWithHost lk.salyk.kg:30040 [11:16:52]ConnectInit lk.salyk.kg [11:16:52]written 0, free lines is 4095 [11:16:52]Connected sock=11 [11:16:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 13 26 07 01 AA 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 00 00 00 F4 03 04 00 22 21 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 14 03 00 35 04 06 00 B3 7E 23 67 AE 99 92 F5 75 C7 5A B7 B9 E8 [11:16:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 08 31 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 30 38 37 31 37 35 36 10 04 04 00 9C 14 03 00 F4 03 04 00 DD CC 1D 67 B6 04 01 00 00 05 E6 3F A7 D9 4B 96 2B [11:16:52]CommunicateWithHost err = 0 [11:16:52]CheckOFDResponse [11:16:52]1017 (14) - 77093643461234 [11:16:52]1041 (16) - 0000000000871756 [11:16:52]1040 (4) - 201884 [11:16:52]1012 (4) - 27.10.2024 05:17 [11:16:52]1206 (1) - 0 [11:16:52]OFD Sender: Remove packet 201884 [11:16:52]ProducePacketName [11:16:52]name=ofd_packets/00201884 [11:16:52]NVStorageDeleteData [11:16:53]Write to MH i2c: 01 00 00 A7 00 A7 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 95 0C 4F [11:16:53]RasterBufferAndPrint [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]written 0, free lines is 3226 [11:16:53]MH_Cut [11:16:53]Write to MH i2c: D1 01 00 AE 00 01 80 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 01 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 01 00 AE 00 00 7F [11:16:53]Write to MH i2c: 01 00 00 AF 00 AF [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]OFD Sender: No OFD packet to send [11:16:53]*** Cut start [11:16:53]*** Purtial cut [11:16:53]*** Stage 1: CUTSNS_PIN = 1 [11:16:54]Read from MH i2c: 01 [11:16:54]MH_I2C_Read... [11:16:54]*** Stop cut motor [11:16:54]*** Cut end [11:16:54]Read from MH i2c: 01 07 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [11:16:54]process_action close_receipt done [11:16:54]requested_data is exist [11:16:54]produce_requested_data [11:16:54]requested_item fm.sn is exist - process it [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 11 00 00 [11:16:54]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [11:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:16:54]wFMCommunicate OK [11:16:54]requested_item fd.num is exist - process it [11:16:54]SAM_PROTO_GetFieldsCounters [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 13 00 00 [11:16:54]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 62 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9C 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [11:16:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9C 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:54]wFMCommunicate OK [11:16:54]SAM_PROTO_GetFieldsCounters done [11:16:54]requested_item shift.num is exist - process it [11:16:54]requested_item shift.opened is exist - process it [11:16:54]req_shift_opened [11:16:54]FM_GetShiftState [11:16:54]SAM_PROTO_GetShiftState [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 13 01 00 [11:16:54]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0E 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [11:16:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:16:54]wFMCommunicate OK [11:16:54]SAM_PROTO_GetShiftState done [11:16:54]FM_GetShiftState done [11:16:54]req_shift_opened done [11:16:54]requested_item shift.open_date is exist - process it [11:16:54]req_shift_open_date [11:16:54]req_shift_open_date done [11:16:54]produce_requested_data done [11:16:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201884,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:16:54]process_action_free close_receipt [11:16:54]json_value_free [11:16:54]json_value_free done [11:16:54]process_json_proto returns [11:16:54]Send response to host [11:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201884,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:16:54]free response buf [11:16:54]execute_script done [11:16:54]execute_script returns [11:16:54]free content buf [11:16:54]Sock 9.Close socket [11:16:54]Sock 9.Thread stoped [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:44]accept exits with 8 [11:18:44]New connection [11:18:44]New thread 3066641764 created [11:18:44]Thread 3066498404 joined [11:18:44]Waiting for new connection... [11:18:44] Sock 8.Parse request [11:18:44]Sock 8.Check first char [11:18:44]Sock 8.First char is OK [11:18:44]request: POST /json_proto HTTP/1.0 [11:18:44]Method: POST [11:18:44]URL: /json_proto [11:18:44]Method is POST - this is cgi request [11:18:44]url: /json_proto [11:18:44]query_string will be loaded in cgi processing [11:18:44]execute_cgi json_proto POST (null) [11:18:44]execute_cgi path=json_proto method=POST [11:18:44]POST find Content-Length [11:18:44]Host: 172.17.63.195:8080 [11:18:44]Content-Length: 677 [11:18:44]Content-Type: application/json [11:18:44] [11:18:44]POST finish read [11:18:44]Found Content-Length = 677 [11:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:44]execute_script... [11: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)449645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:44]POST & json_proto [11:18:44]process_json_proto [11:18:44]json parsed OK: [11:18:44]protocol is kg_v1.0 [11:18:44]action value=close_receipt [11:18:44]process_action close_receipt [11:18:44]cmd_close_receipt [11:18:44]MH_GetDate [11:18:44]Write to MH i2c: F0 00 00 B3 00 A2 [11:18:44]Write i2c OK [11:18:44]MH_I2C_Read... [11:18:44]Read from MH i2c: F0 [11:18:44]MH_I2C_Read... [11:18:44]Read from MH i2c: F0 09 00 [11:18:44]MH_I2C_Read... [11:18:44]Read from MH i2c: F0 09 00 B3 00 00 95 21 1E 67 47 1B 1E 67 CD [11:18:44]GetLastDocTimeStamp 1730027810 [11:18:44]current date 1730027925 [11:18:44]FM_GetShiftState [11:18:44]SAM_PROTO_GetShiftState [11:18:44]wFMCommunicate request_size=4 [11:18:44]MH_SAM_APDU [11:18:44]CAPDU: 80 13 01 00 [11:18:44]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [11:18:44]Write i2c OK [11:18:44]MH_I2C_Read... [11:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:44]Read from MH i2c: E2 [11:18:44]MH_I2C_Read... [11:18:44]Read from MH i2c: E2 0E 00 [11:18:44]MH_I2C_Read... [11:18:44]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 33 [11:18:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:18:44]wFMCommunicate OK [11:18:44]SAM_PROTO_GetShiftState done [11:18:44]FM_GetShiftState done [11:18:44]opened in 1729987312 [11:18:44]opened+sec_in_day 1730073712 [11:18:44]quantity*price = 50041 [11:18:44]sum+1 = 50042 [11:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 177 27.10.2024 11:18 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201885 ФПД: 103791693478565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111845&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201885&fm=103791693478565&tin=02508201610067®Number=0000000000091777&sum=50000 [11:18:46]StoreToDocumentArchive [11:18:46]shift 544 fd 201885 [11:18:46]save to /storage/0544/doc_00201885 [11:18:46]save last doc name /storage/0544/doc_00201885 to /storage/kkm_last_doc_name [11:18:46]save OK [11:18:46]Clear old archive folders... [11:18:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:46]tlvbuf is 01190A00 [11:18:46]SAM_PROTO_ClearQueue [11:18:46]wFMCommunicate request_size=4 [11:18:46]MH_SAM_APDU [11:18:46]CAPDU: 80 09 00 00 [11:18:46]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [11:18:46]Write i2c OK [11:18:46]MH_I2C_Read... [11:18:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:46]Read from MH i2c: E2 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 03 00 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:18:46]RAPDU: 90 00 [11:18:46]wFMCommunicate OK [11:18:46]SAM_PROTO_ClearQueue done [11:18:46]KKMCreateOFDPacket [11:18:46]OFDProtocolAddRootSTLVToBuf [11:18:46]FM_MakeSignedData [11:18:46]FM_MakeSignedData [11:18:46]SAM_PROTO_SignData [11:18:46]wFMCommunicate request_size=4 [11:18:46]MH_SAM_APDU [11:18:46]CAPDU: 80 0D 01 02 [11:18:46]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [11:18:46]Write i2c OK [11:18:46]MH_I2C_Read... [11:18:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:46]Read from MH i2c: E2 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 03 00 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:18:46]RAPDU: 90 00 [11:18:46]wFMCommunicate OK [11:18:46]wFMCommunicate request_size=255 [11:18:46]MH_SAM_APDU [11:18: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 32 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 B1 00 00 00 F4 03 04 00 95 21 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 14 03 00 35 04 06 00 5E [11:18:46]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 00 00 00 F4 03 04 00 95 21 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 14 03 00 35 04 06 00 5E 00 00 EF [11:18:46]Write i2c OK [11:18:46]MH_I2C_Read... [11:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:46]Read from MH i2c: E2 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 03 00 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:18:46]RAPDU: 90 00 [11:18:46]wFMCommunicate OK [11:18:46]wFMCommunicate request_size=10 [11:18:46]MH_SAM_APDU [11:18:46]CAPDU: 80 0D 02 02 05 65 E3 05 3A A5 [11:18:46]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 65 E3 05 3A A5 00 00 74 [11:18:46]Write i2c OK [11:18:46]MH_I2C_Read... [11:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:46]Read from MH i2c: E2 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 03 00 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [11:18:46]RAPDU: 90 00 [11:18:46]wFMCommunicate OK [11:18:46]wFMCommunicate request_size=4 [11:18:46]MH_SAM_APDU [11:18:46]CAPDU: 80 0D 03 02 [11:18:46]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [11:18:46]Write i2c OK [11:18:46]MH_I2C_Read... [11:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:46]Read from MH i2c: E2 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 0B 00 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 0B 00 C5 00 00 AA 16 20 B4 C3 E3 75 40 90 00 30 [11:18:46]RAPDU: AA 16 20 B4 C3 E3 75 40 90 00 [11:18:46]wFMCommunicate OK [11:18:46]SAM_PROTO_SignData done [11:18:46]FM_MakeSignedData done [11:18:46]CreateOFDProtocolMessage [11:18:46]wFMCommunicate request_size=4 [11:18:46]MH_SAM_APDU [11:18:46]CAPDU: 80 11 00 00 [11:18:46]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [11:18:46]Write i2c OK [11:18:46]MH_I2C_Read... [11:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:46]Read from MH i2c: E2 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 17 00 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [11:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:18:46]wFMCommunicate OK [11:18:46]CreateOFDProtocolMessage done [11:18:46]OFDSenderStorePacket 201885 [11:18:46]StoreOFDPacket docnum=201885 [11:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 CA 07 01 3D 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 00 00 00 F4 03 04 00 95 21 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 14 03 00 35 04 06 00 5E 65 E3 05 3A A5 AA 16 20 B4 C3 E3 75 40 [11:18:46]CheckFolder [11:18:46]dirname=/storage/ofd_packets [11:18:46]CheckFolder done [11:18:46]ProducePacketName [11:18:46]name=ofd_packets/00201885 [11:18:46]NVStorageSaveData ofd_packets/00201885 [11:18:46]File name is /storage/ofd_packets/00201885 [11:18:46]Write 301 bytes [11:18:46]NVStorageSaveData done [11:18:46]OFDSenderStorePacket done [11:18:46]KKMCreateOFDPacket done [11:18:46]NVStorageSaveData kkm_last_timestamp [11:18:46]File name is /storage/kkm_last_timestamp [11:18:46]Write 4 bytes [11:18:46]NVStorageSaveData done [11:18:46]ExternCall_PrintAddStr [11:18:46]wPrintStart [11:18:46]Write to MH i2c: 01 00 00 C7 00 C7 [11:18:46]Write i2c OK [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: 01 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: 01 07 00 [11:18:46]MH_I2C_Read... [11:18:46]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [11:18:46]RasterBufferAndPrint [11:18:46]line Счет N : (1)449645 [11:18:46]line ИНН: 02508201610067 [11:18:46]line Контрольно-Кассовый Чек [11:18:46]line ПРОДАЖА [11:18:46]line ТРК (МРК, ГНК) : 52 [11:18:46]line Товар: 2710124130 [11:18:46]line Аи-92-К-2 [11:18:46]line 7.480 * 66.90 [11:18:46]line = 500.41 [11:18:46]line НДС 12% НСП 1% [11:18:46]line > о реализуемом товаре [11:18:46]line ОКРУГЛЕНИЕ: -0.41 [11:18:46]line ИТОГО: 500.00 [11:18:46]line Внесено: 500.00 [11:18:46]line СДАЧА: 0.00 [11:18:46]line НСП 1% : 4.43 [11:18:46]line НДС 12% : 53.14 [11:18:46]line Наличными: 500.00 [11:18:46]line Безнал.: 0.00 [11:18:46]line Место: АЗС № 171 "Партнер Нефть" [11:18:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:18:46]line СНО: Общий режим [11:18:46]line Чек 177 27.10.2024 11:18 [11:18:46]line Смена: 544 ФФД: 1.0 [11:18:46]line ЗНМ: 0300000109 [11:18:46]line РНМ: 0000000000091777 [11:18:46]line Версия ККМ: 001 [11:18:46]line ФМ: 0000000000871756 [11:18:46]line ФД: 201885 [11:18:46]line ФПД: 103791693478565 [11:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111845&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201885&fm=103791693478565&tin=02508201610067®Number=0000000000091777&sum=50000 [11:18:46]OFD Sender: Processing packet 201885 [packets to send 112, broken 111] [11:18:46]ProducePacketName [11:18:46]name=ofd_packets/00201885 [11:18:46]OFD Sender: To server: pG, [11:18:46]CommunicateWithHost lk.salyk.kg:30040 [11:18:46]ConnectInit lk.salyk.kg [11:18:46]written 0, free lines is 4095 [11:18:47]Connected sock=10 [11:18:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 CA 07 01 3D 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 00 00 00 F4 03 04 00 95 21 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 14 03 00 35 04 06 00 5E 65 E3 05 3A A5 AA 16 20 B4 C3 E3 75 40 [11:18:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B8 7E 47 00 D8 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 14 03 00 F4 03 04 00 4F CD 1D 67 B6 04 01 00 00 2F 30 AB 9E B4 17 BC 45 [11:18:47]CommunicateWithHost err = 0 [11:18:47]CheckOFDResponse [11:18:47]1017 (14) - 77093643461234 [11:18:47]1041 (16) - 0000000000871756 [11:18:47]1040 (4) - 201885 [11:18:47]1012 (4) - 27.10.2024 05:19 [11:18:47]1206 (1) - 0 [11:18:47]OFD Sender: Remove packet 201885 [11:18:47]ProducePacketName [11:18:47]name=ofd_packets/00201885 [11:18:47]NVStorageDeleteData [11:18:47]Write to MH i2c: 01 00 00 F2 00 F2 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: 01 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: 01 07 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 91 0C 96 [11:18:47]RasterBufferAndPrint [11:18:47]line [11:18:47]line [11:18:47]line [11:18:47]line [11:18:47]line [11:18:47]written 0, free lines is 3221 [11:18:47]MH_Cut [11:18:47]Write to MH i2c: D1 01 00 F9 00 01 CB [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: D1 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: D1 01 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: D1 01 00 F9 00 00 CA [11:18:47]Write to MH i2c: 01 00 00 FA 00 FA [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]OFD Sender: No OFD packet to send [11:18:48]*** Cut start [11:18:48]*** Purtial cut [11:18:48]*** CUTSNS_PIN = 0 [11:18:48]*** Stage 1: CUTSNS_PIN = 1 [11:18:50]Read from MH i2c: 01 [11:18:50]MH_I2C_Read... [11:18:50]*** Stop cut motor [11:18:50]*** Cut end [11:18:50]Read from MH i2c: 01 07 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [11:18:50]process_action close_receipt done [11:18:50]requested_data is exist [11:18:50]produce_requested_data [11:18:50]requested_item fm.sn is exist - process it [11:18:50]wFMCommunicate request_size=4 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 11 00 00 [11:18:50]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 17 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [11:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:18:50]wFMCommunicate OK [11:18:50]requested_item fd.num is exist - process it [11:18:50]SAM_PROTO_GetFieldsCounters [11:18:50]wFMCommunicate request_size=4 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 13 00 00 [11:18:50]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 62 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9D 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [11:18:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9D 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:50]wFMCommunicate OK [11:18:50]SAM_PROTO_GetFieldsCounters done [11:18:50]requested_item shift.num is exist - process it [11:18:50]requested_item shift.opened is exist - process it [11:18:50]req_shift_opened [11:18:50]FM_GetShiftState [11:18:50]SAM_PROTO_GetShiftState [11:18:50]wFMCommunicate request_size=4 [11:18:50]MH_SAM_APDU [11:18:50]CAPDU: 80 13 01 00 [11:18:50]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:50]Read from MH i2c: E2 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 0E 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7C [11:18:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:18:50]wFMCommunicate OK [11:18:50]SAM_PROTO_GetShiftState done [11:18:50]FM_GetShiftState done [11:18:50]req_shift_opened done [11:18:50]requested_item shift.open_date is exist - process it [11:18:50]req_shift_open_date [11:18:50]req_shift_open_date done [11:18:50]produce_requested_data done [11:18:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201885,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:18:50]process_action_free close_receipt [11:18:50]json_value_free [11:18:50]json_value_free done [11:18:50]process_json_proto returns [11:18:50]Send response to host [11:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201885,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:18:50]free response buf [11:18:50]execute_script done [11:18:50]execute_script returns [11:18:50]free content buf [11:18:50]Sock 8.Close socket [11:18:50]Sock 8.Thread stoped [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [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:45]accept exits with 9 [11:20:45]New connection [11:20:45]New thread 3066498404 created [11:20:45]Thread 3066641764 joined [11:20:45]Waiting for new connection... [11:20:45] Sock 9.Parse request [11:20:45]Sock 9.Check first char [11:20:45]Sock 9.First char is OK [11:20:45]request: POST /json_proto HTTP/1.0 [11:20:45]Method: POST [11:20:45]URL: /json_proto [11:20:45]Method is POST - this is cgi request [11:20:45]url: /json_proto [11:20:45]query_string will be loaded in cgi processing [11:20:45]execute_cgi json_proto POST (null) [11:20:45]execute_cgi path=json_proto method=POST [11:20:45]POST find Content-Length [11:20:45]Host: 172.17.63.195:8080 [11:20:45]Content-Length: 678 [11:20:45]Content-Type: application/json [11:20:45] [11:20:45]POST finish read [11:20:45]Found Content-Length = 678 [11:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:45]execute_script... [11:20:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:45]POST & json_proto [11:20:45]process_json_proto [11:20:45]json parsed OK: [11:20:45]protocol is kg_v1.0 [11:20:45]action value=close_receipt [11:20:45]process_action close_receipt [11:20:45]cmd_close_receipt [11:20:45]MH_GetDate [11:20:45]Write to MH i2c: F0 00 00 FE 00 ED [11:20:45]Write i2c OK [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: F0 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: F0 09 00 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: F0 09 00 FE 00 00 0E 22 1E 67 47 1B 1E 67 92 [11:20:45]GetLastDocTimeStamp 1730027925 [11:20:45]current date 1730028046 [11:20:45]FM_GetShiftState [11:20:45]SAM_PROTO_GetShiftState [11:20:45]wFMCommunicate request_size=4 [11:20:45]MH_SAM_APDU [11:20:45]CAPDU: 80 13 01 00 [11:20:45]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [11:20:45]Write i2c OK [11:20:45]MH_I2C_Read... [11:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:45]Read from MH i2c: E2 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: E2 0E 00 [11:20:45]MH_I2C_Read... [11:20:45]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7E [11:20:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:20:45]wFMCommunicate OK [11:20:45]SAM_PROTO_GetShiftState done [11:20:45]FM_GetShiftState done [11:20:45]opened in 1729987312 [11:20:45]opened+sec_in_day 1730073712 [11:20:45]quantity*price = 70044 [11:20:45]sum+1 = 70045 [11:20:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 178 27.10.2024 11:20 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201886 ФПД: 62904129104035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112046&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201886&fm=62904129104035&tin=02508201610067®Number=0000000000091777&sum=70000 [11:20:47]StoreToDocumentArchive [11:20:47]shift 544 fd 201886 [11:20:47]save to /storage/0544/doc_00201886 [11:20:47]save last doc name /storage/0544/doc_00201886 to /storage/kkm_last_doc_name [11:20:47]save OK [11:20:47]Clear old archive folders... [11:20:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:47]tlvbuf is 011B2950 [11:20:47]SAM_PROTO_ClearQueue [11:20:47]wFMCommunicate request_size=4 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 09 00 00 [11:20:47]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:47]Read from MH i2c: E2 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 03 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:20:47]RAPDU: 90 00 [11:20:47]wFMCommunicate OK [11:20:47]SAM_PROTO_ClearQueue done [11:20:47]KKMCreateOFDPacket [11:20:47]OFDProtocolAddRootSTLVToBuf [11:20:47]FM_MakeSignedData [11:20:47]FM_MakeSignedData [11:20:47]SAM_PROTO_SignData [11:20:47]wFMCommunicate request_size=4 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 0D 01 02 [11:20:47]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:47]Read from MH i2c: E2 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 03 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [11:20:47]RAPDU: 90 00 [11:20:47]wFMCommunicate OK [11:20:47]wFMCommunicate request_size=255 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0E 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 14 03 00 35 04 06 00 39 [11:20:47]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0E 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 14 03 00 35 04 06 00 39 00 00 A2 [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:47]Read from MH i2c: E2 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 03 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [11:20:47]RAPDU: 90 00 [11:20:47]wFMCommunicate OK [11:20:47]wFMCommunicate request_size=10 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 0D 02 02 05 36 02 45 28 A3 [11:20:47]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 36 02 45 28 A3 00 00 DC [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:47]Read from MH i2c: E2 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 03 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [11:20:47]RAPDU: 90 00 [11:20:47]wFMCommunicate OK [11:20:47]wFMCommunicate request_size=4 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 0D 03 02 [11:20:47]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:47]Read from MH i2c: E2 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 0B 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 0B 00 10 01 00 F6 9C 57 6C 57 2E 31 31 90 00 C9 [11:20:47]RAPDU: F6 9C 57 6C 57 2E 31 31 90 00 [11:20:47]wFMCommunicate OK [11:20:47]SAM_PROTO_SignData done [11:20:47]FM_MakeSignedData done [11:20:47]CreateOFDProtocolMessage [11:20:47]wFMCommunicate request_size=4 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 11 00 00 [11:20:47]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:47]Read from MH i2c: E2 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 17 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [11:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:20:47]wFMCommunicate OK [11:20:47]CreateOFDProtocolMessage done [11:20:47]OFDSenderStorePacket 201886 [11:20:47]StoreOFDPacket docnum=201886 [11:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E 86 07 01 08 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0E 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 14 03 00 35 04 06 00 39 36 02 45 28 A3 F6 9C 57 6C 57 2E 31 31 [11:20:47]CheckFolder [11:20:47]dirname=/storage/ofd_packets [11:20:47]CheckFolder done [11:20:47]ProducePacketName [11:20:47]name=ofd_packets/00201886 [11:20:47]NVStorageSaveData ofd_packets/00201886 [11:20:47]File name is /storage/ofd_packets/00201886 [11:20:47]Write 301 bytes [11:20:47]NVStorageSaveData done [11:20:47]OFDSenderStorePacket done [11:20:47]KKMCreateOFDPacket done [11:20:47]NVStorageSaveData kkm_last_timestamp [11:20:47]File name is /storage/kkm_last_timestamp [11:20:47]Write 4 bytes [11:20:47]NVStorageSaveData done [11:20:47]ExternCall_PrintAddStr [11:20:47]wPrintStart [11:20:47]Write to MH i2c: 01 00 00 12 01 13 [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: 01 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: 01 07 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [11:20:47]RasterBufferAndPrint [11:20:47]line Счет N : (1)449646 [11:20:47]line ИНН: 02508201610067 [11:20:47]line Контрольно-Кассовый Чек [11:20:47]line ПРОДАЖА [11:20:47]line ТРК (МРК, ГНК) : 41 [11:20:47]line Товар: 2710124130 [11:20:47]line Аи-92-К-2 [11:20:47]line 10.470 * 66.90 [11:20:47]line = 700.44 [11:20:47]line НДС 12% НСП 1% [11:20:47]line > о реализуемом товаре [11:20:47]line ОКРУГЛЕНИЕ: -0.44 [11:20:47]line ИТОГО: 700.00 [11:20:47]line Внесено: 700.00 [11:20:47]line СДАЧА: 0.00 [11:20:47]line НСП 1% : 6.20 [11:20:47]line НДС 12% : 74.38 [11:20:47]line Наличными: 700.00 [11:20:47]line Безнал.: 0.00 [11:20:47]line Место: АЗС № 171 "Партнер Нефть" [11:20:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:20:47]line СНО: Общий режим [11:20:47]line Чек 178 27.10.2024 11:20 [11:20:47]line Смена: 544 ФФД: 1.0 [11:20:47]line ЗНМ: 0300000109 [11:20:47]line РНМ: 0000000000091777 [11:20:47]line Версия ККМ: 001 [11:20:47]line ФМ: 0000000000871756 [11:20:47]line ФД: 201886 [11:20:47]line ФПД: 62904129104035 [11:20:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112046&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201886&fm=62904129104035&tin=02508201610067®Number=0000000000091777&sum=70000 [11:20:47]OFD Sender: Processing packet 201886 [packets to send 112, broken 111] [11:20:47]ProducePacketName [11:20:47]name=ofd_packets/00201886 [11:20:47]OFD Sender: To server: pG, [11:20:47]CommunicateWithHost lk.salyk.kg:30040 [11:20:47]ConnectInit lk.salyk.kg [11:20:47]written 0, free lines is 4095 [11:20:48]Connected sock=8 [11:20:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E 86 07 01 08 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0E 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 14 03 00 35 04 06 00 39 36 02 45 28 A3 F6 9C 57 6C 57 2E 31 31 [11:20:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 10 D3 47 00 45 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 14 03 00 F4 03 04 00 C8 CD 1D 67 B6 04 01 00 00 8E E1 7D 7F 27 FB 29 71 [11:20:48]CommunicateWithHost err = 0 [11:20:48]CheckOFDResponse [11:20:48]1017 (14) - 77093643461234 [11:20:48]1041 (16) - 0000000000871756 [11:20:48]1040 (4) - 201886 [11:20:48]1012 (4) - 27.10.2024 05:21 [11:20:48]1206 (1) - 0 [11:20:48]OFD Sender: Remove packet 201886 [11:20:48]ProducePacketName [11:20:48]name=ofd_packets/00201886 [11:20:48]NVStorageDeleteData [11:20:48]Write to MH i2c: 01 00 00 3D 01 3E [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 07 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 94 0C E5 [11:20:48]RasterBufferAndPrint [11:20:48]line [11:20:48]line [11:20:48]line [11:20:48]line [11:20:48]line [11:20:48]written 0, free lines is 3225 [11:20:48]MH_Cut [11:20:48]Write to MH i2c: D1 01 00 44 01 01 17 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: D1 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: D1 01 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: D1 01 00 44 01 00 16 [11:20:48]Write to MH i2c: 01 00 00 45 01 46 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]OFD Sender: No OFD packet to send [11:20:49]*** Cut start [11:20:49]*** Purtial cut [11:20:49]*** Stage 1: CUTSNS_PIN = 1 [11:20:49]*** Stop cut motor [11:20:49]*** Cut end [11:20:49]Read from MH i2c: 01 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [11:20:49]process_action close_receipt done [11:20:49]requested_data is exist [11:20:49]produce_requested_data [11:20:49]requested_item fm.sn is exist - process it [11:20:49]wFMCommunicate request_size=4 [11:20:49]MH_SAM_APDU [11:20:49]CAPDU: 80 11 00 00 [11:20:49]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:49]Read from MH i2c: E2 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 17 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [11:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:20:49]wFMCommunicate OK [11:20:49]requested_item fd.num is exist - process it [11:20:49]SAM_PROTO_GetFieldsCounters [11:20:49]wFMCommunicate request_size=4 [11:20:49]MH_SAM_APDU [11:20:49]CAPDU: 80 13 00 00 [11:20:49]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:49]Read from MH i2c: E2 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 62 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9E 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [11:20:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9E 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:49]wFMCommunicate OK [11:20:49]SAM_PROTO_GetFieldsCounters done [11:20:49]requested_item shift.num is exist - process it [11:20:49]requested_item shift.opened is exist - process it [11:20:49]req_shift_opened [11:20:49]FM_GetShiftState [11:20:49]SAM_PROTO_GetShiftState [11:20:49]wFMCommunicate request_size=4 [11:20:49]MH_SAM_APDU [11:20:49]CAPDU: 80 13 01 00 [11:20:49]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:49]Read from MH i2c: E2 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 0E 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C8 [11:20:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:20:49]wFMCommunicate OK [11:20:49]SAM_PROTO_GetShiftState done [11:20:49]FM_GetShiftState done [11:20:49]req_shift_opened done [11:20:49]requested_item shift.open_date is exist - process it [11:20:49]req_shift_open_date [11:20:49]req_shift_open_date done [11:20:49]produce_requested_data done [11:20:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201886,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:20:49]process_action_free close_receipt [11:20:49]json_value_free [11:20:49]json_value_free done [11:20:49]process_json_proto returns [11:20:49]Send response to host [11:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201886,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:20:49]free response buf [11:20:49]execute_script done [11:20:49]execute_script returns [11:20:49]free content buf [11:20:49]Sock 9.Close socket [11:20:49]Sock 9.Thread stoped [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:46]accept exits with 10 [11:22:46]New connection [11:22:46]New thread 3066641764 created [11:22:46]Thread 3066498404 joined [11:22:46]Waiting for new connection... [11:22:46] Sock 10.Parse request [11:22:46]Sock 10.Check first char [11:22:46]Sock 10.First char is OK [11:22:46]request: POST /json_proto HTTP/1.0 [11:22:46]Method: POST [11:22:46]URL: /json_proto [11:22:46]Method is POST - this is cgi request [11:22:46]url: /json_proto [11:22:46]query_string will be loaded in cgi processing [11:22:46]execute_cgi json_proto POST (null) [11:22:46]execute_cgi path=json_proto method=POST [11:22:46]POST find Content-Length [11:22:46]Host: 172.17.63.195:8080 [11:22:46]Content-Length: 677 [11:22:46]Content-Type: application/json [11:22:46] [11:22:46]POST finish read [11:22:46]Found Content-Length = 677 [11:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:46]execute_script... [11:22:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:46]POST & json_proto [11:22:46]process_json_proto [11:22:46]json parsed OK: [11:22:46]protocol is kg_v1.0 [11:22:46]action value=close_receipt [11:22:46]process_action close_receipt [11:22:46]cmd_close_receipt [11:22:46]MH_GetDate [11:22:46]Write to MH i2c: F0 00 00 49 01 39 [11:22:46]Write i2c OK [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: F0 [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: F0 09 00 [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: F0 09 00 49 01 00 86 22 1E 67 47 1B 1E 67 56 [11:22:46]GetLastDocTimeStamp 1730028046 [11:22:46]current date 1730028166 [11:22:46]FM_GetShiftState [11:22:46]SAM_PROTO_GetShiftState [11:22:46]wFMCommunicate request_size=4 [11:22:46]MH_SAM_APDU [11:22:46]CAPDU: 80 13 01 00 [11:22:46]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [11:22:46]Write i2c OK [11:22:46]MH_I2C_Read... [11:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:46]Read from MH i2c: E2 [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: E2 0E 00 [11:22:46]MH_I2C_Read... [11:22:46]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CA [11:22:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:22:46]wFMCommunicate OK [11:22:46]SAM_PROTO_GetShiftState done [11:22:46]FM_GetShiftState done [11:22:46]opened in 1729987312 [11:22:46]opened+sec_in_day 1730073712 [11:22:46]quantity*price = 47030 [11:22:46]sum+1 = 47032 [11:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.94 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 179 27.10.2024 11:22 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201887 ФПД: 61207004901731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112247&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201887&fm=61207004901731&tin=02508201610067®Number=0000000000091777&sum=47000 [11:22:47]StoreToDocumentArchive [11:22:47]shift 544 fd 201887 [11:22:47]save to /storage/0544/doc_00201887 [11:22:47]save last doc name /storage/0544/doc_00201887 to /storage/kkm_last_doc_name [11:22:47]save OK [11:22:47]Clear old archive folders... [11:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:47]tlvbuf is 0119E090 [11:22:47]SAM_PROTO_ClearQueue [11:22:47]wFMCommunicate request_size=4 [11:22:47]MH_SAM_APDU [11:22:47]CAPDU: 80 09 00 00 [11:22:47]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [11:22:47]Write i2c OK [11:22:47]MH_I2C_Read... [11:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:47]Read from MH i2c: E2 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 03 00 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [11:22:47]RAPDU: 90 00 [11:22:47]wFMCommunicate OK [11:22:47]SAM_PROTO_ClearQueue done [11:22:47]KKMCreateOFDPacket [11:22:47]OFDProtocolAddRootSTLVToBuf [11:22:47]FM_MakeSignedData [11:22:47]FM_MakeSignedData [11:22:47]SAM_PROTO_SignData [11:22:47]wFMCommunicate request_size=4 [11:22:47]MH_SAM_APDU [11:22:47]CAPDU: 80 0D 01 02 [11:22:47]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [11:22:47]Write i2c OK [11:22:47]MH_I2C_Read... [11:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:47]Read from MH i2c: E2 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 03 00 [11:22:47]MH_I2C_Read... [11:22:47]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [11:22:47]RAPDU: 90 00 [11:22:47]wFMCommunicate OK [11:22:47]wFMCommunicate request_size=255 [11:22:47]MH_SAM_APDU [11:22:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 87 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 14 03 00 35 04 06 00 37 [11:22:47]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 87 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 14 03 00 35 04 06 00 37 00 00 E0 [11:22:47]Write i2c OK [11:22:47]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 03 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [11:22:48]RAPDU: 90 00 [11:22:48]wFMCommunicate OK [11:22:48]wFMCommunicate request_size=10 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 0D 02 02 05 AA DD C8 F1 63 [11:22:48]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 AA DD C8 F1 63 00 00 82 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 03 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [11:22:48]RAPDU: 90 00 [11:22:48]wFMCommunicate OK [11:22:48]wFMCommunicate request_size=4 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 0D 03 02 [11:22:48]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0B 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 0B 00 5B 01 00 A0 A5 E9 27 15 C3 34 BE 90 00 F7 [11:22:48]RAPDU: A0 A5 E9 27 15 C3 34 BE 90 00 [11:22:48]wFMCommunicate OK [11:22:48]SAM_PROTO_SignData done [11:22:48]FM_MakeSignedData done [11:22:48]CreateOFDProtocolMessage [11:22:48]wFMCommunicate request_size=4 [11:22:48]MH_SAM_APDU [11:22:48]CAPDU: 80 11 00 00 [11:22:48]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:48]Read from MH i2c: E2 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 17 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [11:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:22:48]wFMCommunicate OK [11:22:48]CreateOFDProtocolMessage done [11:22:48]OFDSenderStorePacket 201887 [11:22:48]StoreOFDPacket docnum=201887 [11:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B CC 07 01 5A B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 87 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 14 03 00 35 04 06 00 37 AA DD C8 F1 63 A0 A5 E9 27 15 C3 34 BE [11:22:48]CheckFolder [11:22:48]dirname=/storage/ofd_packets [11:22:48]CheckFolder done [11:22:48]ProducePacketName [11:22:48]name=ofd_packets/00201887 [11:22:48]NVStorageSaveData ofd_packets/00201887 [11:22:48]File name is /storage/ofd_packets/00201887 [11:22:48]Write 301 bytes [11:22:48]NVStorageSaveData done [11:22:48]OFDSenderStorePacket done [11:22:48]KKMCreateOFDPacket done [11:22:48]NVStorageSaveData kkm_last_timestamp [11:22:48]File name is /storage/kkm_last_timestamp [11:22:48]Write 4 bytes [11:22:48]NVStorageSaveData done [11:22:48]ExternCall_PrintAddStr [11:22:48]wPrintStart [11:22:48]Write to MH i2c: 01 00 00 5D 01 5E [11:22:48]Write i2c OK [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: 01 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: 01 07 00 [11:22:48]MH_I2C_Read... [11:22:48]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [11:22:48]RasterBufferAndPrint [11:22:48]line Счет N : (1)449647 [11:22:48]line ИНН: 02508201610067 [11:22:48]line Контрольно-Кассовый Чек [11:22:48]line ПРОДАЖА [11:22:48]line ТРК (МРК, ГНК) : 41 [11:22:48]line Товар: 2710124130 [11:22:48]line Аи-92-К-2 [11:22:48]line 7.030 * 66.90 [11:22:48]line = 470.31 [11:22:48]line НДС 12% НСП 1% [11:22:48]line > о реализуемом товаре [11:22:48]line ОКРУГЛЕНИЕ: -0.31 [11:22:48]line ИТОГО: 470.00 [11:22:48]line Внесено: 470.00 [11:22:48]line СДАЧА: 0.00 [11:22:48]line НСП 1% : 4.16 [11:22:48]line НДС 12% : 49.94 [11:22:48]line Наличными: 470.00 [11:22:48]line Безнал.: 0.00 [11:22:48]line Место: АЗС № 171 "Партнер Нефть" [11:22:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:22:48]line СНО: Общий режим [11:22:48]line Чек 179 27.10.2024 11:22 [11:22:48]line Смена: 544 ФФД: 1.0 [11:22:48]line ЗНМ: 0300000109 [11:22:48]line РНМ: 0000000000091777 [11:22:48]line Версия ККМ: 001 [11:22:48]line ФМ: 0000000000871756 [11:22:48]line ФД: 201887 [11:22:48]line ФПД: 61207004901731 [11:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112247&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201887&fm=61207004901731&tin=02508201610067®Number=0000000000091777&sum=47000 [11:22:48]OFD Sender: Processing packet 201887 [packets to send 112, broken 111] [11:22:48]ProducePacketName [11:22:48]name=ofd_packets/00201887 [11:22:48]OFD Sender: To server: pG, [11:22:48]CommunicateWithHost lk.salyk.kg:30040 [11:22:48]ConnectInit lk.salyk.kg [11:22:48]written 0, free lines is 4095 [11:22:48]Connected sock=11 [11:22:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B CC 07 01 5A B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 87 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 14 03 00 35 04 06 00 37 AA DD C8 F1 63 A0 A5 E9 27 15 C3 34 BE [11:22:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2A 08 47 00 93 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 14 03 00 F4 03 04 00 41 CE 1D 67 B6 04 01 00 00 B0 7A 9E 0A 1A 5A E2 8F [11:22:49]CommunicateWithHost err = 0 [11:22:49]CheckOFDResponse [11:22:49]1017 (14) - 77093643461234 [11:22:49]1041 (16) - 0000000000871756 [11:22:49]1040 (4) - 201887 [11:22:49]1012 (4) - 27.10.2024 05:23 [11:22:49]1206 (1) - 0 [11:22:49]OFD Sender: Remove packet 201887 [11:22:49]ProducePacketName [11:22:49]name=ofd_packets/00201887 [11:22:49]NVStorageDeleteData [11:22:49]Write to MH i2c: 01 00 00 88 01 89 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: 01 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: 01 07 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 99 0C 35 [11:22:49]RasterBufferAndPrint [11:22:49]line [11:22:49]line [11:22:49]line [11:22:49]line [11:22:49]line [11:22:49]written 0, free lines is 3230 [11:22:49]MH_Cut [11:22:49]Write to MH i2c: D1 01 00 8F 01 01 62 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: D1 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: D1 01 00 [11:22:49]MH_I2C_Read... [11:22:49]Read from MH i2c: D1 01 00 8F 01 00 61 [11:22:49]Write to MH i2c: 01 00 00 90 01 91 [11:22:49]Write i2c OK [11:22:49]MH_I2C_Read... [11:22:49]OFD Sender: No OFD packet to send [11:22:50]*** Cut start [11:22:50]*** Purtial cut [11:22:50]*** Stage 1: CUTSNS_PIN = 1 [11:22:50]Read from MH i2c: 01 [11:22:50]MH_I2C_Read... [11:22:50]*** Stop cut motor [11:22:50]*** Cut end [11:22:50]Read from MH i2c: 01 07 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [11:22:50]process_action close_receipt done [11:22:50]requested_data is exist [11:22:50]produce_requested_data [11:22:50]requested_item fm.sn is exist - process it [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 11 00 00 [11:22:50]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [11:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:22:50]wFMCommunicate OK [11:22:50]requested_item fd.num is exist - process it [11:22:50]SAM_PROTO_GetFieldsCounters [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 13 00 00 [11:22:50]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 62 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9F 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [11:22:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9F 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:50]wFMCommunicate OK [11:22:50]SAM_PROTO_GetFieldsCounters done [11:22:50]requested_item shift.num is exist - process it [11:22:50]requested_item shift.opened is exist - process it [11:22:50]req_shift_opened [11:22:50]FM_GetShiftState [11:22:50]SAM_PROTO_GetShiftState [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 13 01 00 [11:22:50]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0E 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 13 [11:22:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:22:50]wFMCommunicate OK [11:22:50]SAM_PROTO_GetShiftState done [11:22:50]FM_GetShiftState done [11:22:50]req_shift_opened done [11:22:50]requested_item shift.open_date is exist - process it [11:22:50]req_shift_open_date [11:22:50]req_shift_open_date done [11:22:50]produce_requested_data done [11:22:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201887,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:22:50]process_action_free close_receipt [11:22:50]json_value_free [11:22:50]json_value_free done [11:22:50]process_json_proto returns [11:22:50]Send response to host [11:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201887,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:22:50]free response buf [11:22:50]execute_script done [11:22:50]execute_script returns [11:22:50]free content buf [11:22:50]Sock 10.Close socket [11:22:50]Sock 10.Thread stoped [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:38]accept exits with 9 [11:23:38]New connection [11:23:38]New thread 3066498404 created [11:23:38]Thread 3066641764 joined [11:23:38]Waiting for new connection... [11:23:38] Sock 9.Parse request [11:23:38]Sock 9.Check first char [11:23:38]Sock 9.First char is OK [11:23:38]request: POST /json_proto HTTP/1.0 [11:23:38]Method: POST [11:23:38]URL: /json_proto [11:23:38]Method is POST - this is cgi request [11:23:38]url: /json_proto [11:23:38]query_string will be loaded in cgi processing [11:23:38]execute_cgi json_proto POST (null) [11:23:38]execute_cgi path=json_proto method=POST [11:23:38]POST find Content-Length [11:23:38]Host: 172.17.63.195:8080 [11:23:38]Content-Length: 675 [11:23:38]Content-Type: application/json [11:23:38] [11:23:38]POST finish read [11:23:38]Found Content-Length = 675 [11:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [11:23:38]execute_script... [11:23:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [11:23:38]POST & json_proto [11:23:38]process_json_proto [11:23:38]json parsed OK: [11:23:38]protocol is kg_v1.0 [11:23:38]action value=close_receipt [11:23:38]process_action close_receipt [11:23:38]cmd_close_receipt [11:23:38]MH_GetDate [11:23:38]Write to MH i2c: F0 00 00 94 01 84 [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: F0 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: F0 09 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: F0 09 00 94 01 00 BB 22 1E 67 47 1B 1E 67 D6 [11:23:38]GetLastDocTimeStamp 1730028167 [11:23:38]current date 1730028219 [11:23:38]FM_GetShiftState [11:23:38]SAM_PROTO_GetShiftState [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 13 01 00 [11:23:38]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 0E 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 15 [11:23:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:23:38]wFMCommunicate OK [11:23:38]SAM_PROTO_GetShiftState done [11:23:38]FM_GetShiftState done [11:23:38]opened in 1729987312 [11:23:38]opened+sec_in_day 1730073712 [11:23:38]quantity*price = 100000 [11:23:38]sum+1 = 100002 [11:23:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 180 27.10.2024 11:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201888 ФПД: 242111327579838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112339&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201888&fm=242111327579838&tin=02508201610067®Number=0000000000091777&sum=100000 [11:23:40]StoreToDocumentArchive [11:23:40]shift 544 fd 201888 [11:23:40]save to /storage/0544/doc_00201888 [11:23:40]save last doc name /storage/0544/doc_00201888 to /storage/kkm_last_doc_name [11:23:40]save OK [11:23:40]Clear old archive folders... [11:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:23:40]tlvbuf is 011E7EF0 [11:23:40]SAM_PROTO_ClearQueue [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 09 00 00 [11:23:40]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_ClearQueue done [11:23:40]KKMCreateOFDPacket [11:23:40]OFDProtocolAddRootSTLVToBuf [11:23:40]FM_MakeSignedData [11:23:40]FM_MakeSignedData [11:23:40]SAM_PROTO_SignData [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 01 02 [11:23:40]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=255 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 BB 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 14 03 00 35 04 06 00 [11:23:40]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 B4 00 00 00 F4 03 04 00 BB 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 14 03 00 35 04 06 00 00 00 75 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=11 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 02 02 06 DC 32 EF AD 2E BE [11:23:40]Write to MH i2c: E2 0E 00 A5 01 80 0D 02 02 06 00 DC 32 EF AD 2E BE 00 00 C2 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 03 02 [11:23:40]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 0B 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 0B 00 A6 01 00 3E F0 A9 1A 8F 96 6E 55 90 00 FC [11:23:40]RAPDU: 3E F0 A9 1A 8F 96 6E 55 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_SignData done [11:23:40]FM_MakeSignedData done [11:23:40]CreateOFDProtocolMessage [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 11 00 00 [11:23:40]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 17 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [11:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:23:40]wFMCommunicate OK [11:23:40]CreateOFDProtocolMessage done [11:23:40]OFDSenderStorePacket 201888 [11:23:40]StoreOFDPacket docnum=201888 [11:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 22 DC 08 01 6B 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 BB 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 14 03 00 35 04 06 00 DC 32 EF AD 2E BE 3E F0 A9 1A 8F 96 6E 55 [11:23:40]CheckFolder [11:23:40]dirname=/storage/ofd_packets [11:23:40]CheckFolder done [11:23:40]ProducePacketName [11:23:40]name=ofd_packets/00201888 [11:23:40]NVStorageSaveData ofd_packets/00201888 [11:23:40]File name is /storage/ofd_packets/00201888 [11:23:40]Write 302 bytes [11:23:40]NVStorageSaveData done [11:23:40]OFDSenderStorePacket done [11:23:40]KKMCreateOFDPacket done [11:23:40]NVStorageSaveData kkm_last_timestamp [11:23:40]File name is /storage/kkm_last_timestamp [11:23:40]Write 4 bytes [11:23:40]NVStorageSaveData done [11:23:40]ExternCall_PrintAddStr [11:23:40]wPrintStart [11:23:40]Write to MH i2c: 01 00 00 A8 01 A9 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: 01 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: 01 07 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [11:23:40]RasterBufferAndPrint [11:23:40]line Счет N : (1)449648 [11:23:40]line ИНН: 02508201610067 [11:23:40]line Контрольно-Кассовый Чек [11:23:40]line ПРОДАЖА [11:23:40]line ТРК (МРК, ГНК) : 63 [11:23:40]line Товар: 2710124130 [11:23:40]line SUPER 92-К-5 [11:23:40]line 14.620 * 68.40 [11:23:40]line = 1000.01 [11:23:40]line НДС 12% НСП 1% [11:23:40]line > о реализуемом товаре [11:23:40]line ОКРУГЛЕНИЕ: -0.01 [11:23:40]line ИТОГО: 1000.00 [11:23:40]line Внесено: 1000.00 [11:23:40]line СДАЧА: 0.00 [11:23:40]line НСП 1% : 8.85 [11:23:40]line НДС 12% : 106.20 [11:23:40]line Наличными: 1000.00 [11:23:40]line Безнал.: 0.00 [11:23:40]line Место: АЗС № 171 "Партнер Нефть" [11:23:40]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:23:40]line СНО: Общий режим [11:23:40]line Чек 180 27.10.2024 11:23 [11:23:40]line Смена: 544 ФФД: 1.0 [11:23:40]line ЗНМ: 0300000109 [11:23:40]line РНМ: 0000000000091777 [11:23:40]line Версия ККМ: 001 [11:23:40]line ФМ: 0000000000871756 [11:23:40]line ФД: 201888 [11:23:40]line ФПД: 242111327579838 [11:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112339&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201888&fm=242111327579838&tin=02508201610067®Number=0000000000091777&sum=100000 [11:23:40]written 0, free lines is 4095 [11:23:40]OFD Sender: Processing packet 201888 [packets to send 112, broken 111] [11:23:40]ProducePacketName [11:23:40]name=ofd_packets/00201888 [11:23:40]OFD Sender: To server: pG, [11:23:40]CommunicateWithHost lk.salyk.kg:30040 [11:23:40]ConnectInit lk.salyk.kg [11:23:41]Connected sock=11 [11:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 22 DC 08 01 6B 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 BB 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 14 03 00 35 04 06 00 DC 32 EF AD 2E BE 3E F0 A9 1A 8F 96 6E 55 [11:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 92 47 00 AF FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 14 03 00 F4 03 04 00 75 CE 1D 67 B6 04 01 00 00 D1 E6 D3 54 17 65 C9 DB [11:23:41]CommunicateWithHost err = 0 [11:23:41]CheckOFDResponse [11:23:41]1017 (14) - 77093643461234 [11:23:41]1041 (16) - 0000000000871756 [11:23:41]1040 (4) - 201888 [11:23:41]1012 (4) - 27.10.2024 05:24 [11:23:41]1206 (1) - 0 [11:23:41]OFD Sender: Remove packet 201888 [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00201888 [11:23:41]NVStorageDeleteData [11:23:41]Write to MH i2c: 01 00 00 D3 01 D4 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 DE 0C C5 [11:23:41]RasterBufferAndPrint [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]written 0, free lines is 3307 [11:23:41]MH_Cut [11:23:41]Write to MH i2c: D1 01 00 DA 01 01 AD [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 01 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 01 00 DA 01 00 AC [11:23:41]Write to MH i2c: 01 00 00 DB 01 DC [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]OFD Sender: No OFD packet to send [11:23:42]*** Cut start [11:23:42]*** Purtial cut [11:23:42]*** Stage 1: CUTSNS_PIN = 1 [11:23:42]Read from MH i2c: 01 [11:23:42]MH_I2C_Read... [11:23:42]*** Stop cut motor [11:23:42]*** Cut end [11:23:42]Read from MH i2c: 01 07 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [11:23:42]process_action close_receipt done [11:23:42]requested_data is exist [11:23:42]produce_requested_data [11:23:42]requested_item fm.sn is exist - process it [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 11 00 00 [11:23:42]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 17 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AC [11:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:23:42]wFMCommunicate OK [11:23:42]requested_item fd.num is exist - process it [11:23:42]SAM_PROTO_GetFieldsCounters [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 13 00 00 [11:23:42]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 62 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:23:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:42]wFMCommunicate OK [11:23:42]SAM_PROTO_GetFieldsCounters done [11:23:42]requested_item shift.num is exist - process it [11:23:42]requested_item shift.opened is exist - process it [11:23:42]req_shift_opened [11:23:42]FM_GetShiftState [11:23:42]SAM_PROTO_GetShiftState [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 13 01 00 [11:23:42]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 0E 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5E [11:23:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:23:42]wFMCommunicate OK [11:23:42]SAM_PROTO_GetShiftState done [11:23:42]FM_GetShiftState done [11:23:42]req_shift_opened done [11:23:42]requested_item shift.open_date is exist - process it [11:23:42]req_shift_open_date [11:23:42]req_shift_open_date done [11:23:42]produce_requested_data done [11:23:42]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201888,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:23:42]process_action_free close_receipt [11:23:42]json_value_free [11:23:42]json_value_free done [11:23:42]process_json_proto returns [11:23:42]Send response to host [11:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201888,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:23:42]free response buf [11:23:42]execute_script done [11:23:42]execute_script returns [11:23:42]free content buf [11:23:42]Sock 9.Close socket [11:23:42]Sock 9.Thread stoped [11:23:46]OFD Sender: No OFD packet to send [11:23:47]accept exits with 10 [11:23:47]New connection [11:23:47]New thread 3066641764 created [11:23:47]Thread 3066498404 joined [11:23:47]Waiting for new connection... [11:23:47] Sock 10.Parse request [11:23:47]Sock 10.Check first char [11:23:47]Sock 10.First char is OK [11:23:47]request: POST /json_proto HTTP/1.0 [11:23:47]Method: POST [11:23:47]URL: /json_proto [11:23:47]Method is POST - this is cgi request [11:23:47]url: /json_proto [11:23:47]query_string will be loaded in cgi processing [11:23:47]execute_cgi json_proto POST (null) [11:23:47]execute_cgi path=json_proto method=POST [11:23:47]POST find Content-Length [11:23:47]Host: 172.17.63.195:8080 [11:23:47]Content-Length: 682 [11:23:47]Content-Type: application/json [11:23:47] [11:23:47]POST finish read [11:23:47]Found Content-Length = 682 [11:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [11:23:47]execute_script... [11:23: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)449649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [11:23:47]POST & json_proto [11:23:47]process_json_proto [11:23:47]json parsed OK: [11:23:47]protocol is kg_v1.0 [11:23:47]action value=close_receipt [11:23:47]process_action close_receipt [11:23:47]cmd_close_receipt [11:23:47]MH_GetDate [11:23:47]Write to MH i2c: F0 00 00 DF 01 CF [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: F0 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: F0 09 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: F0 09 00 DF 01 00 C4 22 1E 67 47 1B 1E 67 2A [11:23:47]GetLastDocTimeStamp 1730028219 [11:23:47]current date 1730028228 [11:23:47]FM_GetShiftState [11:23:47]SAM_PROTO_GetShiftState [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 13 01 00 [11:23:47]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:48]Read from MH i2c: E2 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0E 00 [11:23:48]MH_I2C_Read... [11:23:48]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 60 [11:23:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:23:48]wFMCommunicate OK [11:23:48]SAM_PROTO_GetShiftState done [11:23:48]FM_GetShiftState done [11:23:48]opened in 1729987312 [11:23:48]opened+sec_in_day 1730073712 [11:23:48]quantity*price = 100021 [11:23:48]sum+1 = 100023 [11:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 181 27.10.2024 11:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201889 ФПД: 77667916944950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112348&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201889&fm=77667916944950&tin=02508201610067®Number=0000000000091777&sum=100000 [11:23:49]StoreToDocumentArchive [11:23:49]shift 544 fd 201889 [11:23:49]save to /storage/0544/doc_00201889 [11:23:49]save last doc name /storage/0544/doc_00201889 to /storage/kkm_last_doc_name [11:23:49]save OK [11:23:49]Clear old archive folders... [11:23:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:49]tlvbuf is 011E77B0 [11:23:49]SAM_PROTO_ClearQueue [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 09 00 00 [11:23:49]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 03 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [11:23:49]RAPDU: 90 00 [11:23:49]wFMCommunicate OK [11:23:49]SAM_PROTO_ClearQueue done [11:23:49]KKMCreateOFDPacket [11:23:49]OFDProtocolAddRootSTLVToBuf [11:23:49]FM_MakeSignedData [11:23:49]FM_MakeSignedData [11:23:49]SAM_PROTO_SignData [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 0D 01 02 [11:23:49]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 03 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [11:23:49]RAPDU: 90 00 [11:23:49]wFMCommunicate OK [11:23:49]wFMCommunicate request_size=255 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 B5 00 00 00 F4 03 04 00 C4 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 14 03 00 35 04 06 00 46 [11:23:49]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 B5 00 00 00 F4 03 04 00 C4 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 14 03 00 35 04 06 00 46 00 00 5A [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 03 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [11:23:49]RAPDU: 90 00 [11:23:49]wFMCommunicate OK [11:23:49]wFMCommunicate request_size=10 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 0D 02 02 05 A3 78 99 96 36 [11:23:49]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 A3 78 99 96 36 00 00 F5 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 03 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [11:23:49]RAPDU: 90 00 [11:23:49]wFMCommunicate OK [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 0D 03 02 [11:23:49]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 0B 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 0B 00 F1 01 00 EA B0 69 47 89 84 DB 5E 90 00 FE [11:23:49]RAPDU: EA B0 69 47 89 84 DB 5E 90 00 [11:23:49]wFMCommunicate OK [11:23:49]SAM_PROTO_SignData done [11:23:49]FM_MakeSignedData done [11:23:49]CreateOFDProtocolMessage [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 11 00 00 [11:23:49]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 17 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C2 [11:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:23:49]wFMCommunicate OK [11:23:49]CreateOFDProtocolMessage done [11:23:49]OFDSenderStorePacket 201889 [11:23:49]StoreOFDPacket docnum=201889 [11:23:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B FF 07 01 B1 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 B5 00 00 00 F4 03 04 00 C4 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 14 03 00 35 04 06 00 46 A3 78 99 96 36 EA B0 69 47 89 84 DB 5E [11:23:49]CheckFolder [11:23:49]dirname=/storage/ofd_packets [11:23:49]CheckFolder done [11:23:49]ProducePacketName [11:23:49]name=ofd_packets/00201889 [11:23:49]NVStorageSaveData ofd_packets/00201889 [11:23:49]File name is /storage/ofd_packets/00201889 [11:23:49]Write 301 bytes [11:23:49]NVStorageSaveData done [11:23:49]OFDSenderStorePacket done [11:23:49]KKMCreateOFDPacket done [11:23:49]NVStorageSaveData kkm_last_timestamp [11:23:49]File name is /storage/kkm_last_timestamp [11:23:49]Write 4 bytes [11:23:49]NVStorageSaveData done [11:23:49]ExternCall_PrintAddStr [11:23:49]wPrintStart [11:23:49]Write to MH i2c: 01 00 00 F3 01 F4 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: 01 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: 01 07 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [11:23:49]RasterBufferAndPrint [11:23:49]line Счет N : (1)449649 [11:23:49]line ИНН: 02508201610067 [11:23:49]line Контрольно-Кассовый Чек [11:23:49]line ПРОДАЖА [11:23:49]line ТРК (МРК, ГНК) : 51 [11:23:49]line Товар: 2710124500 [11:23:49]line Аи-95-К-3 [11:23:49]line 13.480 * 74.20 [11:23:49]line = 1000.22 [11:23:49]line НДС 12% НСП 1% [11:23:49]line > о реализуемом товаре [11:23:49]line ОКРУГЛЕНИЕ: -0.22 [11:23:49]line ИТОГО: 1000.00 [11:23:49]line Внесено: 1000.00 [11:23:49]line СДАЧА: 0.00 [11:23:49]line НСП 1% : 8.85 [11:23:49]line НДС 12% : 106.22 [11:23:49]line Наличными: 1000.00 [11:23:49]line Безнал.: 0.00 [11:23:49]line Место: АЗС № 171 "Партнер Нефть" [11:23:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:23:49]line СНО: Общий режим [11:23:49]line Чек 181 27.10.2024 11:23 [11:23:49]line Смена: 544 ФФД: 1.0 [11:23:49]line ЗНМ: 0300000109 [11:23:49]line РНМ: 0000000000091777 [11:23:50]line Версия ККМ: 001 [11:23:50]line ФМ: 0000000000871756 [11:23:50]line ФД: 201889 [11:23:50]line ФПД: 77667916944950 [11:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112348&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201889&fm=77667916944950&tin=02508201610067®Number=0000000000091777&sum=100000 [11:23:50]OFD Sender: Processing packet 201889 [packets to send 112, broken 111] [11:23:50]ProducePacketName [11:23:50]name=ofd_packets/00201889 [11:23:50]OFD Sender: To server: pG, [11:23:50]CommunicateWithHost lk.salyk.kg:30040 [11:23:50]ConnectInit lk.salyk.kg [11:23:50]written 0, free lines is 4095 [11:23:50]Connected sock=11 [11:23:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B FF 07 01 B1 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 B5 00 00 00 F4 03 04 00 C4 22 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 14 03 00 35 04 06 00 46 A3 78 99 96 36 EA B0 69 47 89 84 DB 5E [11:23:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8A C4 47 00 FE F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 14 03 00 F4 03 04 00 7E CE 1D 67 B6 04 01 00 00 1A AC 32 1F 96 EB 1C FC [11:23:50]CommunicateWithHost err = 0 [11:23:50]CheckOFDResponse [11:23:50]1017 (14) - 77093643461234 [11:23:50]1041 (16) - 0000000000871756 [11:23:50]1040 (4) - 201889 [11:23:50]1012 (4) - 27.10.2024 05:24 [11:23:50]1206 (1) - 0 [11:23:50]OFD Sender: Remove packet 201889 [11:23:50]ProducePacketName [11:23:50]name=ofd_packets/00201889 [11:23:50]NVStorageDeleteData [11:23:50]Write to MH i2c: 01 00 00 1E 02 20 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 07 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 26 0D 5A [11:23:50]RasterBufferAndPrint [11:23:50]line [11:23:50]line [11:23:50]line [11:23:50]line [11:23:50]line [11:23:50]written 0, free lines is 3386 [11:23:50]MH_Cut [11:23:50]Write to MH i2c: D1 01 00 25 02 01 F9 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: D1 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: D1 01 00 [11:23:50]MH_I2C_Read... [11:23:50]Read from MH i2c: D1 01 00 25 02 00 F8 [11:23:50]Write to MH i2c: 01 00 00 26 02 28 [11:23:50]Write i2c OK [11:23:50]MH_I2C_Read... [11:23:51]OFD Sender: No OFD packet to send [11:23:51]*** Cut start [11:23:51]*** Purtial cut [11:23:51]*** Stage 1: CUTSNS_PIN = 1 [11:23:51]Read from MH i2c: 01 [11:23:51]MH_I2C_Read... [11:23:51]*** Stop cut motor [11:23:51]*** Cut end [11:23:51]Read from MH i2c: 01 07 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [11:23:51]process_action close_receipt done [11:23:51]requested_data is exist [11:23:51]produce_requested_data [11:23:51]requested_item fm.sn is exist - process it [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 11 00 00 [11:23:51]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 17 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F8 [11:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:23:51]wFMCommunicate OK [11:23:51]requested_item fd.num is exist - process it [11:23:51]SAM_PROTO_GetFieldsCounters [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 13 00 00 [11:23:51]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [11:23:51]Write i2c OK [11:23:51]MH_I2C_Read... [11:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:51]Read from MH i2c: E2 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 62 00 [11:23:51]MH_I2C_Read... [11:23:51]Read from MH i2c: E2 62 00 28 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [11:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:51]wFMCommunicate OK [11:23:51]SAM_PROTO_GetFieldsCounters done [11:23:51]requested_item shift.num is exist - process it [11:23:51]requested_item shift.opened is exist - process it [11:23:51]req_shift_opened [11:23:51]FM_GetShiftState [11:23:51]SAM_PROTO_GetShiftState [11:23:51]wFMCommunicate request_size=4 [11:23:51]MH_SAM_APDU [11:23:51]CAPDU: 80 13 01 00 [11:23:51]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [11:23:52]Write i2c OK [11:23:52]MH_I2C_Read... [11:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:52]Read from MH i2c: E2 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 0E 00 [11:23:52]MH_I2C_Read... [11:23:52]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AA [11:23:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:23:52]wFMCommunicate OK [11:23:52]SAM_PROTO_GetShiftState done [11:23:52]FM_GetShiftState done [11:23:52]req_shift_opened done [11:23:52]requested_item shift.open_date is exist - process it [11:23:52]req_shift_open_date [11:23:52]req_shift_open_date done [11:23:52]produce_requested_data done [11:23:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201889,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:23:52]process_action_free close_receipt [11:23:52]json_value_free [11:23:52]json_value_free done [11:23:52]process_json_proto returns [11:23:52]Send response to host [11:23:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201889,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:23:52]free response buf [11:23:52]execute_script done [11:23:52]execute_script returns [11:23:52]free content buf [11:23:52]Sock 10.Close socket [11:23:52]Sock 10.Thread stoped [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:33]ConnectInit Can't connect to host [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:26]accept exits with 9 [11:25:26]New connection [11:25:26]New thread 3066498404 created [11:25:26]Thread 3066641764 joined [11:25:26]Waiting for new connection... [11:25:26] Sock 9.Parse request [11:25:26]Sock 9.Check first char [11:25:26]Sock 9.First char is OK [11:25:26]request: POST /json_proto HTTP/1.0 [11:25:26]Method: POST [11:25:26]URL: /json_proto [11:25:26]Method is POST - this is cgi request [11:25:26]url: /json_proto [11:25:26]query_string will be loaded in cgi processing [11:25:26]execute_cgi json_proto POST (null) [11:25:26]execute_cgi path=json_proto method=POST [11:25:26]POST find Content-Length [11:25:26]Host: 172.17.63.195:8080 [11:25:26]Content-Length: 682 [11:25:26]Content-Type: application/json [11:25:26] [11:25:26]POST finish read [11:25:26]Found Content-Length = 682 [11:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:25:26]execute_script... [11:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:25:26]POST & json_proto [11:25:26]process_json_proto [11:25:26]json parsed OK: [11:25:26]protocol is kg_v1.0 [11:25:26]action value=close_receipt [11:25:26]process_action close_receipt [11:25:26]cmd_close_receipt [11:25:26]MH_GetDate [11:25:26]Write to MH i2c: F0 00 00 2A 02 1B [11:25:26]Write i2c OK [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: F0 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: F0 09 00 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: F0 09 00 2A 02 00 26 23 1E 67 47 1B 1E 67 D9 [11:25:26]GetLastDocTimeStamp 1730028228 [11:25:26]current date 1730028326 [11:25:26]FM_GetShiftState [11:25:26]SAM_PROTO_GetShiftState [11:25:26]wFMCommunicate request_size=4 [11:25:26]MH_SAM_APDU [11:25:26]CAPDU: 80 13 01 00 [11:25:26]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [11:25:26]Write i2c OK [11:25:26]MH_I2C_Read... [11:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:26]Read from MH i2c: E2 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: E2 0E 00 [11:25:26]MH_I2C_Read... [11:25:26]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AC [11:25:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:25:26]wFMCommunicate OK [11:25:26]SAM_PROTO_GetShiftState done [11:25:26]FM_GetShiftState done [11:25:26]opened in 1729987312 [11:25:26]opened+sec_in_day 1730073712 [11:25:26]quantity*price = 100015 [11:25:26]sum+1 = 100017 [11:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 182 27.10.2024 11:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201890 ФПД: 262797457958736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112526&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201890&fm=262797457958736&tin=02508201610067®Number=0000000000091777&sum=100000 [11:25:27]StoreToDocumentArchive [11:25:27]shift 544 fd 201890 [11:25:27]save to /storage/0544/doc_00201890 [11:25:27]save last doc name /storage/0544/doc_00201890 to /storage/kkm_last_doc_name [11:25:27]save OK [11:25:27]Clear old archive folders... [11:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:27]tlvbuf is 011A1550 [11:25:27]SAM_PROTO_ClearQueue [11:25:27]wFMCommunicate request_size=4 [11:25:27]MH_SAM_APDU [11:25:27]CAPDU: 80 09 00 00 [11:25:27]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [11:25:27]Write i2c OK [11:25:27]MH_I2C_Read... [11:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:27]Read from MH i2c: E2 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 03 00 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [11:25:27]RAPDU: 90 00 [11:25:27]wFMCommunicate OK [11:25:27]SAM_PROTO_ClearQueue done [11:25:27]KKMCreateOFDPacket [11:25:27]OFDProtocolAddRootSTLVToBuf [11:25:27]FM_MakeSignedData [11:25:27]FM_MakeSignedData [11:25:27]SAM_PROTO_SignData [11:25:27]wFMCommunicate request_size=4 [11:25:27]MH_SAM_APDU [11:25:27]CAPDU: 80 0D 01 02 [11:25:27]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [11:25:27]Write i2c OK [11:25:27]MH_I2C_Read... [11:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:27]Read from MH i2c: E2 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 03 00 [11:25:27]MH_I2C_Read... [11:25:27]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [11:25:27]RAPDU: 90 00 [11:25:27]wFMCommunicate OK [11:25:27]wFMCommunicate request_size=255 [11:25:27]MH_SAM_APDU [11:25:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B6 00 00 00 F4 03 04 00 26 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 14 03 00 35 04 06 00 EF [11:25:27]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B6 00 00 00 F4 03 04 00 26 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 14 03 00 35 04 06 00 EF 00 00 90 [11:25:27]Write i2c OK [11:25:27]MH_I2C_Read... [11:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:28]Read from MH i2c: E2 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 03 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [11:25:28]RAPDU: 90 00 [11:25:28]wFMCommunicate OK [11:25:28]wFMCommunicate request_size=10 [11:25:28]MH_SAM_APDU [11:25:28]CAPDU: 80 0D 02 02 05 03 4D 21 27 50 [11:25:28]Write to MH i2c: E2 0D 00 3B 02 80 0D 02 02 05 00 03 4D 21 27 50 00 00 A9 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:28]Read from MH i2c: E2 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 03 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [11:25:28]RAPDU: 90 00 [11:25:28]wFMCommunicate OK [11:25:28]wFMCommunicate request_size=4 [11:25:28]MH_SAM_APDU [11:25:28]CAPDU: 80 0D 03 02 [11:25:28]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:28]Read from MH i2c: E2 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 0B 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 0B 00 3C 02 00 AA 9D 88 87 AF 8A FA C6 90 00 09 [11:25:28]RAPDU: AA 9D 88 87 AF 8A FA C6 90 00 [11:25:28]wFMCommunicate OK [11:25:28]SAM_PROTO_SignData done [11:25:28]FM_MakeSignedData done [11:25:28]CreateOFDProtocolMessage [11:25:28]wFMCommunicate request_size=4 [11:25:28]MH_SAM_APDU [11:25:28]CAPDU: 80 11 00 00 [11:25:28]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:28]Read from MH i2c: E2 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 17 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [11:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:25:28]wFMCommunicate OK [11:25:28]CreateOFDProtocolMessage done [11:25:28]OFDSenderStorePacket 201890 [11:25:28]StoreOFDPacket docnum=201890 [11:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A0 5F 07 01 7F 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 32 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 B6 00 00 00 F4 03 04 00 26 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 14 03 00 35 04 06 00 EF 03 4D 21 27 50 AA 9D 88 87 AF 8A FA C6 [11:25:28]CheckFolder [11:25:28]dirname=/storage/ofd_packets [11:25:28]CheckFolder done [11:25:28]ProducePacketName [11:25:28]name=ofd_packets/00201890 [11:25:28]NVStorageSaveData ofd_packets/00201890 [11:25:28]File name is /storage/ofd_packets/00201890 [11:25:28]Write 301 bytes [11:25:28]NVStorageSaveData done [11:25:28]OFDSenderStorePacket done [11:25:28]KKMCreateOFDPacket done [11:25:28]NVStorageSaveData kkm_last_timestamp [11:25:28]File name is /storage/kkm_last_timestamp [11:25:28]Write 4 bytes [11:25:28]NVStorageSaveData done [11:25:28]ExternCall_PrintAddStr [11:25:28]wPrintStart [11:25:28]Write to MH i2c: 01 00 00 3E 02 40 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: 01 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: 01 07 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [11:25:28]RasterBufferAndPrint [11:25:28]line Счет N : (1)449650 [11:25:28]line ИНН: 02508201610067 [11:25:28]line Контрольно-Кассовый Чек [11:25:28]line ПРОДАЖА [11:25:28]line ТРК (МРК, ГНК) : 31 [11:25:28]line Товар: 2710124130 [11:25:28]line Аи-92-К-2 [11:25:28]line 14.950 * 66.90 [11:25:28]line = 1000.16 [11:25:28]line НДС 12% НСП 1% [11:25:28]line > о реализуемом товаре [11:25:28]line ОКРУГЛЕНИЕ: -0.16 [11:25:28]line ИТОГО: 1000.00 [11:25:28]line Внесено: 1000.00 [11:25:28]line СДАЧА: 0.00 [11:25:28]line НСП 1% : 8.85 [11:25:28]line НДС 12% : 106.21 [11:25:28]line Наличными: 1000.00 [11:25:28]line Безнал.: 0.00 [11:25:28]line Место: АЗС № 171 "Партнер Нефть" [11:25:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:25:28]line СНО: Общий режим [11:25:28]line Чек 182 27.10.2024 11:25 [11:25:28]line Смена: 544 ФФД: 1.0 [11:25:28]line ЗНМ: 0300000109 [11:25:28]line РНМ: 0000000000091777 [11:25:28]line Версия ККМ: 001 [11:25:28]line ФМ: 0000000000871756 [11:25:28]line ФД: 201890 [11:25:28]line ФПД: 262797457958736 [11:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112526&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201890&fm=262797457958736&tin=02508201610067®Number=0000000000091777&sum=100000 [11:25:28]OFD Sender: Processing packet 201890 [packets to send 112, broken 111] [11:25:28]ProducePacketName [11:25:28]name=ofd_packets/00201890 [11:25:28]OFD Sender: To server: pG, [11:25:28]CommunicateWithHost lk.salyk.kg:30040 [11:25:28]ConnectInit lk.salyk.kg [11:25:28]written 0, free lines is 4095 [11:25:28]Connected sock=10 [11:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A0 5F 07 01 7F 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 32 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 B6 00 00 00 F4 03 04 00 26 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 14 03 00 35 04 06 00 EF 03 4D 21 27 50 AA 9D 88 87 AF 8A FA C6 [11:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD CE 47 00 57 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 14 03 00 F4 03 04 00 E1 CE 1D 67 B6 04 01 00 00 77 6B 64 C0 5F 6D 83 86 [11:25:28]CommunicateWithHost err = 0 [11:25:28]CheckOFDResponse [11:25:28]1017 (14) - 77093643461234 [11:25:28]1041 (16) - 0000000000871756 [11:25:28]1040 (4) - 201890 [11:25:28]1012 (4) - 27.10.2024 05:25 [11:25:28]1206 (1) - 0 [11:25:28]OFD Sender: Remove packet 201890 [11:25:28]ProducePacketName [11:25:28]name=ofd_packets/00201890 [11:25:28]NVStorageDeleteData [11:25:28]Write to MH i2c: 01 00 00 69 02 6B [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: 01 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: 01 07 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 97 0C 15 [11:25:28]RasterBufferAndPrint [11:25:28]line [11:25:28]line [11:25:28]line [11:25:28]line [11:25:28]line [11:25:28]written 0, free lines is 3229 [11:25:28]MH_Cut [11:25:28]Write to MH i2c: D1 01 00 70 02 01 44 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: D1 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: D1 01 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: D1 01 00 70 02 00 43 [11:25:28]Write to MH i2c: 01 00 00 71 02 73 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:29]OFD Sender: No OFD packet to send [11:25:29]*** Cut start [11:25:29]*** Purtial cut [11:25:29]*** Stage 1: CUTSNS_PIN = 1 [11:25:30]Read from MH i2c: 01 [11:25:30]MH_I2C_Read... [11:25:30]*** Stop cut motor [11:25:30]*** Cut end [11:25:30]Read from MH i2c: 01 07 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [11:25:30]process_action close_receipt done [11:25:30]requested_data is exist [11:25:30]produce_requested_data [11:25:30]requested_item fm.sn is exist - process it [11:25:30]wFMCommunicate request_size=4 [11:25:30]MH_SAM_APDU [11:25:30]CAPDU: 80 11 00 00 [11:25:30]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:30]Read from MH i2c: E2 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 17 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [11:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:25:30]wFMCommunicate OK [11:25:30]requested_item fd.num is exist - process it [11:25:30]SAM_PROTO_GetFieldsCounters [11:25:30]wFMCommunicate request_size=4 [11:25:30]MH_SAM_APDU [11:25:30]CAPDU: 80 13 00 00 [11:25:30]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:30]Read from MH i2c: E2 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 62 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 62 00 73 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [11:25:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:30]wFMCommunicate OK [11:25:30]SAM_PROTO_GetFieldsCounters done [11:25:30]requested_item shift.num is exist - process it [11:25:30]requested_item shift.opened is exist - process it [11:25:30]req_shift_opened [11:25:30]FM_GetShiftState [11:25:30]SAM_PROTO_GetShiftState [11:25:30]wFMCommunicate request_size=4 [11:25:30]MH_SAM_APDU [11:25:30]CAPDU: 80 13 01 00 [11:25:30]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:30]Read from MH i2c: E2 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 0E 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F5 [11:25:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:25:30]wFMCommunicate OK [11:25:30]SAM_PROTO_GetShiftState done [11:25:30]FM_GetShiftState done [11:25:30]req_shift_opened done [11:25:30]requested_item shift.open_date is exist - process it [11:25:30]req_shift_open_date [11:25:30]req_shift_open_date done [11:25:30]produce_requested_data done [11:25:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201890,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:25:30]process_action_free close_receipt [11:25:30]json_value_free [11:25:30]json_value_free done [11:25:30]process_json_proto returns [11:25:30]Send response to host [11:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201890,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:25:30]free response buf [11:25:30]execute_script done [11:25:30]execute_script returns [11:25:30]free content buf [11:25:30]Sock 9.Close socket [11:25:30]Sock 9.Thread stoped [11:25:31]accept exits with 8 [11:25:31]New connection [11:25:31]New thread 3066641764 created [11:25:31]Thread 3066498404 joined [11:25:31]Waiting for new connection... [11:25:31] Sock 8.Parse request [11:25:31]Sock 8.Check first char [11:25:31]Sock 8.First char is OK [11:25:31]request: POST /json_proto HTTP/1.0 [11:25:31]Method: POST [11:25:31]URL: /json_proto [11:25:31]Method is POST - this is cgi request [11:25:31]url: /json_proto [11:25:31]query_string will be loaded in cgi processing [11:25:31]execute_cgi json_proto POST (null) [11:25:31]execute_cgi path=json_proto method=POST [11:25:31]POST find Content-Length [11:25:31]Host: 172.17.63.195:8080 [11:25:31]Content-Length: 677 [11:25:31]Content-Type: application/json [11:25:31] [11:25:31]POST finish read [11:25:31]Found Content-Length = 677 [11:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:31]execute_script... [11:25:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:31]POST & json_proto [11:25:31]process_json_proto [11:25:31]json parsed OK: [11:25:31]protocol is kg_v1.0 [11:25:31]action value=close_receipt [11:25:31]process_action close_receipt [11:25:31]cmd_close_receipt [11:25:31]MH_GetDate [11:25:31]Write to MH i2c: F0 00 00 75 02 66 [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: F0 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: F0 09 00 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: F0 09 00 75 02 00 2C 23 1E 67 47 1B 1E 67 2A [11:25:31]GetLastDocTimeStamp 1730028326 [11:25:31]current date 1730028332 [11:25:31]FM_GetShiftState [11:25:31]SAM_PROTO_GetShiftState [11:25:31]wFMCommunicate request_size=4 [11:25:31]MH_SAM_APDU [11:25:31]CAPDU: 80 13 01 00 [11:25:31]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:31]Read from MH i2c: E2 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: E2 0E 00 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F7 [11:25:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:25:31]wFMCommunicate OK [11:25:31]SAM_PROTO_GetShiftState done [11:25:31]FM_GetShiftState done [11:25:31]opened in 1729987312 [11:25:31]opened+sec_in_day 1730073712 [11:25:31]quantity*price = 40006 [11:25:31]sum+1 = 40007 [11:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 183 27.10.2024 11:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201891 ФПД: 25713248911662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112532&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201891&fm=25713248911662&tin=02508201610067®Number=0000000000091777&sum=40000 [11:25:32]StoreToDocumentArchive [11:25:32]shift 544 fd 201891 [11:25:32]save to /storage/0544/doc_00201891 [11:25:32]save last doc name /storage/0544/doc_00201891 to /storage/kkm_last_doc_name [11:25:32]save OK [11:25:32]Clear old archive folders... [11:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:32]tlvbuf is 0121F7B0 [11:25:32]SAM_PROTO_ClearQueue [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 09 00 00 [11:25:32]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [11:25:32]RAPDU: 90 00 [11:25:32]wFMCommunicate OK [11:25:32]SAM_PROTO_ClearQueue done [11:25:32]KKMCreateOFDPacket [11:25:32]OFDProtocolAddRootSTLVToBuf [11:25:32]FM_MakeSignedData [11:25:32]FM_MakeSignedData [11:25:32]SAM_PROTO_SignData [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 0D 01 02 [11:25:32]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [11:25:32]RAPDU: 90 00 [11:25:32]wFMCommunicate OK [11:25:32]wFMCommunicate request_size=255 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 14 03 00 35 04 06 00 17 [11:25:33]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 14 03 00 35 04 06 00 17 00 00 E0 [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:33]Read from MH i2c: E2 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 03 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [11:25:33]RAPDU: 90 00 [11:25:33]wFMCommunicate OK [11:25:33]wFMCommunicate request_size=10 [11:25:33]MH_SAM_APDU [11:25:33]CAPDU: 80 0D 02 02 05 62 D5 11 41 2E [11:25:33]Write to MH i2c: E2 0D 00 86 02 80 0D 02 02 05 00 62 D5 11 41 2E 00 00 C3 [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:33]Read from MH i2c: E2 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 03 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [11:25:33]RAPDU: 90 00 [11:25:33]wFMCommunicate OK [11:25:33]wFMCommunicate request_size=4 [11:25:33]MH_SAM_APDU [11:25:33]CAPDU: 80 0D 03 02 [11:25:33]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:33]Read from MH i2c: E2 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 0B 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 0B 00 87 02 00 D6 A9 E8 9F DF 0E 91 AF 90 00 38 [11:25:33]RAPDU: D6 A9 E8 9F DF 0E 91 AF 90 00 [11:25:33]wFMCommunicate OK [11:25:33]SAM_PROTO_SignData done [11:25:33]FM_MakeSignedData done [11:25:33]CreateOFDProtocolMessage [11:25:33]wFMCommunicate request_size=4 [11:25:33]MH_SAM_APDU [11:25:33]CAPDU: 80 11 00 00 [11:25:33]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:33]Read from MH i2c: E2 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 17 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [11:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:25:33]wFMCommunicate OK [11:25:33]CreateOFDProtocolMessage done [11:25:33]OFDSenderStorePacket 201891 [11:25:33]StoreOFDPacket docnum=201891 [11:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 59 07 01 F5 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 14 03 00 35 04 06 00 17 62 D5 11 41 2E D6 A9 E8 9F DF 0E 91 AF [11:25:33]CheckFolder [11:25:33]dirname=/storage/ofd_packets [11:25:33]CheckFolder done [11:25:33]ProducePacketName [11:25:33]name=ofd_packets/00201891 [11:25:33]NVStorageSaveData ofd_packets/00201891 [11:25:33]File name is /storage/ofd_packets/00201891 [11:25:33]Write 301 bytes [11:25:33]NVStorageSaveData done [11:25:33]OFDSenderStorePacket done [11:25:33]KKMCreateOFDPacket done [11:25:33]NVStorageSaveData kkm_last_timestamp [11:25:33]File name is /storage/kkm_last_timestamp [11:25:33]Write 4 bytes [11:25:33]NVStorageSaveData done [11:25:33]ExternCall_PrintAddStr [11:25:33]wPrintStart [11:25:33]Write to MH i2c: 01 00 00 89 02 8B [11:25:33]OFD Sender: Processing packet 201891 [packets to send 112, broken 111] [11:25:33]ProducePacketName [11:25:33]name=ofd_packets/00201891 [11:25:33]OFD Sender: To server: pG, [11:25:33]CommunicateWithHost lk.salyk.kg:30040 [11:25:33]ConnectInit lk.salyk.kg [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 07 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [11:25:33]RasterBufferAndPrint [11:25:33]line Счет N : (1)449651 [11:25:33]line ИНН: 02508201610067 [11:25:33]line Контрольно-Кассовый Чек [11:25:33]line ПРОДАЖА [11:25:33]line ТРК (МРК, ГНК) : 41 [11:25:33]line Товар: 2710124130 [11:25:33]line Аи-92-К-2 [11:25:33]line 5.980 * 66.90 [11:25:33]line = 400.06 [11:25:33]line НДС 12% НСП 1% [11:25:33]line > о реализуемом товаре [11:25:33]line ОКРУГЛЕНИЕ: -0.06 [11:25:33]line ИТОГО: 400.00 [11:25:33]line Внесено: 400.00 [11:25:33]line СДАЧА: 0.00 [11:25:33]line НСП 1% : 3.54 [11:25:33]line НДС 12% : 42.48 [11:25:33]line Наличными: 400.00 [11:25:33]line Безнал.: 0.00 [11:25:33]line Место: АЗС № 171 "Партнер Нефть" [11:25:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:25:33]line СНО: Общий режим [11:25:33]line Чек 183 27.10.2024 11:25 [11:25:33]line Смена: 544 ФФД: 1.0 [11:25:33]line ЗНМ: 0300000109 [11:25:33]line РНМ: 0000000000091777 [11:25:33]line Версия ККМ: 001 [11:25:33]line ФМ: 0000000000871756 [11:25:33]line ФД: 201891 [11:25:33]line ФПД: 25713248911662 [11:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112532&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201891&fm=25713248911662&tin=02508201610067®Number=0000000000091777&sum=40000 [11:25:33]written 0, free lines is 4095 [11:25:33]Connected sock=9 [11:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 59 07 01 F5 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2C 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 14 03 00 35 04 06 00 17 62 D5 11 41 2E D6 A9 E8 9F DF 0E 91 AF [11:25:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F7 DC 47 00 36 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 14 03 00 F4 03 04 00 E6 CE 1D 67 B6 04 01 00 00 47 AD D3 9F 34 E1 BD FC [11:25:33]CommunicateWithHost err = 0 [11:25:33]CheckOFDResponse [11:25:33]1017 (14) - 77093643461234 [11:25:33]1041 (16) - 0000000000871756 [11:25:33]1040 (4) - 201891 [11:25:33]1012 (4) - 27.10.2024 05:25 [11:25:33]1206 (1) - 0 [11:25:33]OFD Sender: Remove packet 201891 [11:25:33]ProducePacketName [11:25:33]name=ofd_packets/00201891 [11:25:33]NVStorageDeleteData [11:25:33]Write to MH i2c: 01 00 00 B4 02 B6 [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 07 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 97 0C 60 [11:25:33]RasterBufferAndPrint [11:25:33]line [11:25:33]line [11:25:33]line [11:25:33]line [11:25:33]line [11:25:33]written 0, free lines is 3235 [11:25:33]MH_Cut [11:25:33]Write to MH i2c: D1 01 00 BB 02 01 8F [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: D1 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: D1 01 00 [11:25:33]MH_I2C_Read... [11:25:33]Read from MH i2c: D1 01 00 BB 02 00 8E [11:25:33]Write to MH i2c: 01 00 00 BC 02 BE [11:25:33]Write i2c OK [11:25:33]MH_I2C_Read... [11:25:34]OFD Sender: No OFD packet to send [11:25:34]*** Cut start [11:25:34]*** Purtial cut [11:25:34]*** Stage 1: CUTSNS_PIN = 1 [11:25:35]Read from MH i2c: 01 [11:25:35]MH_I2C_Read... [11:25:35]*** Stop cut motor [11:25:35]*** Cut end [11:25:35]Read from MH i2c: 01 07 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [11:25:35]process_action close_receipt done [11:25:35]requested_data is exist [11:25:35]produce_requested_data [11:25:35]requested_item fm.sn is exist - process it [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 11 00 00 [11:25:35]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 17 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8E [11:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:25:35]wFMCommunicate OK [11:25:35]requested_item fd.num is exist - process it [11:25:35]SAM_PROTO_GetFieldsCounters [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 13 00 00 [11:25:35]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 62 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [11:25:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:35]wFMCommunicate OK [11:25:35]SAM_PROTO_GetFieldsCounters done [11:25:35]requested_item shift.num is exist - process it [11:25:35]requested_item shift.opened is exist - process it [11:25:35]req_shift_opened [11:25:35]FM_GetShiftState [11:25:35]SAM_PROTO_GetShiftState [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 13 01 00 [11:25:35]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0E 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 40 [11:25:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:25:35]wFMCommunicate OK [11:25:35]SAM_PROTO_GetShiftState done [11:25:35]FM_GetShiftState done [11:25:35]req_shift_opened done [11:25:35]requested_item shift.open_date is exist - process it [11:25:35]req_shift_open_date [11:25:35]req_shift_open_date done [11:25:35]produce_requested_data done [11:25:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201891,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:25:35]process_action_free close_receipt [11:25:35]json_value_free [11:25:35]json_value_free done [11:25:35]process_json_proto returns [11:25:35]Send response to host [11:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201891,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:25:35]free response buf [11:25:35]execute_script done [11:25:35]execute_script returns [11:25:35]free content buf [11:25:35]Sock 8.Close socket [11:25:35]Sock 8.Thread stoped [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:51]accept exits with 10 [11:26:51]New connection [11:26:51]New thread 3066498404 created [11:26:51]Thread 3066641764 joined [11:26:51]Waiting for new connection... [11:26:51] Sock 10.Parse request [11:26:51]Sock 10.Check first char [11:26:51]Sock 10.First char is OK [11:26:51]request: POST /json_proto HTTP/1.0 [11:26:51]Method: POST [11:26:51]URL: /json_proto [11:26:51]Method is POST - this is cgi request [11:26:51]url: /json_proto [11:26:51]query_string will be loaded in cgi processing [11:26:51]execute_cgi json_proto POST (null) [11:26:51]execute_cgi path=json_proto method=POST [11:26:51]POST find Content-Length [11:26:51]Host: 172.17.63.195:8080 [11:26:51]Content-Length: 677 [11:26:51]Content-Type: application/json [11:26:51] [11:26:51]POST finish read [11:26:51]Found Content-Length = 677 [11:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:26:51]execute_script... [11:26: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)449652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:26:51]POST & json_proto [11:26:51]process_json_proto [11:26:51]json parsed OK: [11:26:51]protocol is kg_v1.0 [11:26:51]action value=close_receipt [11:26:51]process_action close_receipt [11:26:51]cmd_close_receipt [11:26:51]MH_GetDate [11:26:51]Write to MH i2c: F0 00 00 C0 02 B1 [11:26:51]Write i2c OK [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: F0 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: F0 09 00 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: F0 09 00 C0 02 00 7B 23 1E 67 47 1B 1E 67 C4 [11:26:51]GetLastDocTimeStamp 1730028332 [11:26:51]current date 1730028411 [11:26:51]FM_GetShiftState [11:26:51]SAM_PROTO_GetShiftState [11:26:51]wFMCommunicate request_size=4 [11:26:51]MH_SAM_APDU [11:26:51]CAPDU: 80 13 01 00 [11:26:51]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [11:26:51]Write i2c OK [11:26:51]MH_I2C_Read... [11:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:51]Read from MH i2c: E2 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: E2 0E 00 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 42 [11:26:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:26:51]wFMCommunicate OK [11:26:51]SAM_PROTO_GetShiftState done [11:26:51]FM_GetShiftState done [11:26:51]opened in 1729987312 [11:26:51]opened+sec_in_day 1730073712 [11:26:51]quantity*price = 20003 [11:26:51]sum+1 = 20004 [11:26:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 184 27.10.2024 11:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201892 ФПД: 92433152155607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112651&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201892&fm=92433152155607&tin=02508201610067®Number=0000000000091777&sum=20000 [11:26:52]StoreToDocumentArchive [11:26:52]shift 544 fd 201892 [11:26:52]save to /storage/0544/doc_00201892 [11:26:52]save last doc name /storage/0544/doc_00201892 to /storage/kkm_last_doc_name [11:26:52]save OK [11:26:52]Clear old archive folders... [11:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:52]tlvbuf is 011913A0 [11:26:52]SAM_PROTO_ClearQueue [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 09 00 00 [11:26:52]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [11:26:52]RAPDU: 90 00 [11:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_ClearQueue done [11:26:52]KKMCreateOFDPacket [11:26:52]OFDProtocolAddRootSTLVToBuf [11:26:52]FM_MakeSignedData [11:26:52]FM_MakeSignedData [11:26:52]SAM_PROTO_SignData [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 0D 01 02 [11:26:52]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [11:26:52]RAPDU: 90 00 [11:26:52]wFMCommunicate OK [11:26:52]wFMCommunicate request_size=255 [11:26:52]MH_SAM_APDU [11:26: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 32 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 B8 00 00 00 F4 03 04 00 7B 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 14 03 00 35 04 06 00 54 [11:26:52]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B8 00 00 00 F4 03 04 00 7B 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 14 03 00 35 04 06 00 54 00 00 AC [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [11:26:52]RAPDU: 90 00 [11:26:52]wFMCommunicate OK [11:26:52]wFMCommunicate request_size=10 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 0D 02 02 05 11 45 33 1F D7 [11:26:52]Write to MH i2c: E2 0D 00 D1 02 80 0D 02 02 05 00 11 45 33 1F D7 00 00 D6 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [11:26:52]RAPDU: 90 00 [11:26:52]wFMCommunicate OK [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 0D 03 02 [11:26:52]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 0B 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 0B 00 D2 02 00 F7 89 E6 C0 95 89 AD FC 90 00 3D [11:26:52]RAPDU: F7 89 E6 C0 95 89 AD FC 90 00 [11:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_SignData done [11:26:52]FM_MakeSignedData done [11:26:52]CreateOFDProtocolMessage [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 11 00 00 [11:26:52]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 17 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A4 [11:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:26:52]wFMCommunicate OK [11:26:52]CreateOFDProtocolMessage done [11:26:52]OFDSenderStorePacket 201892 [11:26:52]StoreOFDPacket docnum=201892 [11:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5B 15 07 01 DB E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B8 00 00 00 F4 03 04 00 7B 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 14 03 00 35 04 06 00 54 11 45 33 1F D7 F7 89 E6 C0 95 89 AD FC [11:26:52]CheckFolder [11:26:52]dirname=/storage/ofd_packets [11:26:52]CheckFolder done [11:26:52]ProducePacketName [11:26:52]name=ofd_packets/00201892 [11:26:52]NVStorageSaveData ofd_packets/00201892 [11:26:52]File name is /storage/ofd_packets/00201892 [11:26:52]Write 301 bytes [11:26:52]NVStorageSaveData done [11:26:52]OFDSenderStorePacket done [11:26:52]KKMCreateOFDPacket done [11:26:52]NVStorageSaveData kkm_last_timestamp [11:26:52]File name is /storage/kkm_last_timestamp [11:26:52]Write 4 bytes [11:26:52]NVStorageSaveData done [11:26:52]ExternCall_PrintAddStr [11:26:52]wPrintStart [11:26:52]Write to MH i2c: 01 00 00 D4 02 D6 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: 01 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: 01 07 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [11:26:52]RasterBufferAndPrint [11:26:52]line Счет N : (1)449652 [11:26:52]line ИНН: 02508201610067 [11:26:52]line Контрольно-Кассовый Чек [11:26:52]line ПРОДАЖА [11:26:52]line ТРК (МРК, ГНК) : 41 [11:26:52]line Товар: 2710124130 [11:26:52]line Аи-92-К-2 [11:26:52]line 2.990 * 66.90 [11:26:52]line = 200.03 [11:26:52]line НДС 12% НСП 1% [11:26:52]line > о реализуемом товаре [11:26:52]line ОКРУГЛЕНИЕ: -0.03 [11:26:52]line ИТОГО: 200.00 [11:26:52]line Внесено: 200.00 [11:26:52]line СДАЧА: 0.00 [11:26:52]line НСП 1% : 1.77 [11:26:52]line НДС 12% : 21.24 [11:26:52]line Наличными: 200.00 [11:26:52]line Безнал.: 0.00 [11:26:52]line Место: АЗС № 171 "Партнер Нефть" [11:26:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:26:52]line СНО: Общий режим [11:26:52]line Чек 184 27.10.2024 11:26 [11:26:52]line Смена: 544 ФФД: 1.0 [11:26:52]line ЗНМ: 0300000109 [11:26:52]line РНМ: 0000000000091777 [11:26:52]line Версия ККМ: 001 [11:26:52]line ФМ: 0000000000871756 [11:26:52]line ФД: 201892 [11:26:52]line ФПД: 92433152155607 [11:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112651&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201892&fm=92433152155607&tin=02508201610067®Number=0000000000091777&sum=20000 [11:26:53]OFD Sender: Processing packet 201892 [packets to send 112, broken 111] [11:26:53]ProducePacketName [11:26:53]name=ofd_packets/00201892 [11:26:53]OFD Sender: To server: pG, [11:26:53]CommunicateWithHost lk.salyk.kg:30040 [11:26:53]ConnectInit lk.salyk.kg [11:26:53]written 0, free lines is 4095 [11:26:53]Connected sock=9 [11:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5B 15 07 01 DB E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B8 00 00 00 F4 03 04 00 7B 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 14 03 00 35 04 06 00 54 11 45 33 1F D7 F7 89 E6 C0 95 89 AD FC [11:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D3 61 47 00 37 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 14 03 00 F4 03 04 00 35 CF 1D 67 B6 04 01 00 00 C3 8C 37 36 69 5C CA 70 [11:26:53]CommunicateWithHost err = 0 [11:26:53]CheckOFDResponse [11:26:53]1017 (14) - 77093643461234 [11:26:53]1041 (16) - 0000000000871756 [11:26:53]1040 (4) - 201892 [11:26:53]1012 (4) - 27.10.2024 05:27 [11:26:53]1206 (1) - 0 [11:26:53]OFD Sender: Remove packet 201892 [11:26:53]ProducePacketName [11:26:53]name=ofd_packets/00201892 [11:26:53]NVStorageDeleteData [11:26:53]Write to MH i2c: 01 00 00 FF 02 01 [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: 01 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: 01 07 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 97 0C AB [11:26:53]RasterBufferAndPrint [11:26:53]line [11:26:53]line [11:26:53]line [11:26:53]line [11:26:53]line [11:26:53]written 0, free lines is 3229 [11:26:53]MH_Cut [11:26:53]Write to MH i2c: D1 01 00 06 03 01 DB [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: D1 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: D1 01 00 [11:26:53]MH_I2C_Read... [11:26:53]Read from MH i2c: D1 01 00 06 03 00 DA [11:26:53]Write to MH i2c: 01 00 00 07 03 0A [11:26:53]Write i2c OK [11:26:53]MH_I2C_Read... [11:26:54]OFD Sender: No OFD packet to send [11:26:54]*** Cut start [11:26:54]*** Purtial cut [11:26:54]*** Stage 1: CUTSNS_PIN = 1 [11:26:54]Read from MH i2c: 01 [11:26:54]MH_I2C_Read... [11:26:54]*** Stop cut motor [11:26:54]*** Cut end [11:26:54]Read from MH i2c: 01 07 00 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [11:26:54]process_action close_receipt done [11:26:54]requested_data is exist [11:26:54]produce_requested_data [11:26:54]requested_item fm.sn is exist - process it [11:26:54]wFMCommunicate request_size=4 [11:26:54]MH_SAM_APDU [11:26:54]CAPDU: 80 11 00 00 [11:26:54]Write to MH i2c: E2 08 00 08 03 80 11 00 00 00 00 00 00 85 [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:54]Read from MH i2c: E2 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: E2 17 00 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: E2 17 00 08 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DA [11:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:26:54]wFMCommunicate OK [11:26:54]requested_item fd.num is exist - process it [11:26:54]SAM_PROTO_GetFieldsCounters [11:26:54]wFMCommunicate request_size=4 [11:26:54]MH_SAM_APDU [11:26:54]CAPDU: 80 13 00 00 [11:26:54]Write to MH i2c: E2 08 00 09 03 80 13 00 00 00 00 00 00 88 [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 62 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 62 00 09 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [11:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:55]wFMCommunicate OK [11:26:55]SAM_PROTO_GetFieldsCounters done [11:26:55]requested_item shift.num is exist - process it [11:26:55]requested_item shift.opened is exist - process it [11:26:55]req_shift_opened [11:26:55]FM_GetShiftState [11:26:55]SAM_PROTO_GetShiftState [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 13 01 00 [11:26:55]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0E 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8C [11:26:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:26:55]wFMCommunicate OK [11:26:55]SAM_PROTO_GetShiftState done [11:26:55]FM_GetShiftState done [11:26:55]req_shift_opened done [11:26:55]requested_item shift.open_date is exist - process it [11:26:55]req_shift_open_date [11:26:55]req_shift_open_date done [11:26:55]produce_requested_data done [11:26:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201892,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:26:55]process_action_free close_receipt [11:26:55]json_value_free [11:26:55]json_value_free done [11:26:55]process_json_proto returns [11:26:55]Send response to host [11:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201892,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:26:55]free response buf [11:26:55]execute_script done [11:26:55]execute_script returns [11:26:55]free content buf [11:26:55]Sock 10.Close socket [11:26:55]Sock 10.Thread stoped [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:45]accept exits with 8 [11:28:45]New connection [11:28:45]New thread 3066641764 created [11:28:45]Thread 3066498404 joined [11:28:45]Waiting for new connection... [11:28:45] Sock 8.Parse request [11:28:45]Sock 8.Check first char [11:28:45]Sock 8.First char is OK [11:28:45]request: POST /json_proto HTTP/1.0 [11:28:45]Method: POST [11:28:45]URL: /json_proto [11:28:45]Method is POST - this is cgi request [11:28:45]url: /json_proto [11:28:45]query_string will be loaded in cgi processing [11:28:45]execute_cgi json_proto POST (null) [11:28:45]execute_cgi path=json_proto method=POST [11:28:45]POST find Content-Length [11:28:45]Host: 172.17.63.195:8080 [11:28:45]Content-Length: 632 [11:28:45]Content-Type: application/json [11:28:45] [11:28:45]POST finish read [11:28:45]Found Content-Length = 632 [11:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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:28:45]execute_script... [11:28:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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:28:45]POST & json_proto [11:28:45]process_json_proto [11:28:45]json parsed OK: [11:28:45]protocol is kg_v1.0 [11:28:45]action value=close_receipt [11:28:45]process_action close_receipt [11:28:45]cmd_close_receipt [11:28:45]MH_GetDate [11:28:45]Write to MH i2c: F0 00 00 0B 03 FD [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: F0 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: F0 09 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: F0 09 00 0B 03 00 ED 23 1E 67 47 1B 1E 67 82 [11:28:45]GetLastDocTimeStamp 1730028411 [11:28:45]current date 1730028525 [11:28:45]FM_GetShiftState [11:28:45]SAM_PROTO_GetShiftState [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 13 01 00 [11:28:45]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0E 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8E [11:28:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_GetShiftState done [11:28:45]FM_GetShiftState done [11:28:45]opened in 1729987312 [11:28:45]opened+sec_in_day 1730073712 [11:28:45]quantity*price = 50000 [11:28:45]sum+1 = 50001 [11:28:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 185 27.10.2024 11:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201893 ФПД: 70751954553083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112845&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201893&fm=70751954553083&tin=02508201610067®Number=0000000000091777&sum=50000 [11:28:46]StoreToDocumentArchive [11:28:46]shift 544 fd 201893 [11:28:46]save to /storage/0544/doc_00201893 [11:28:46]save last doc name /storage/0544/doc_00201893 to /storage/kkm_last_doc_name [11:28:46]save OK [11:28:46]Clear old archive folders... [11:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:28:46]tlvbuf is 012175C0 [11:28:46]SAM_PROTO_ClearQueue [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 09 00 00 [11:28:46]Write to MH i2c: E2 08 00 19 03 80 09 00 00 00 00 00 00 8E [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [11:28:46]RAPDU: 90 00 [11:28:46]wFMCommunicate OK [11:28:46]SAM_PROTO_ClearQueue done [11:28:46]KKMCreateOFDPacket [11:28:46]OFDProtocolAddRootSTLVToBuf [11:28:46]FM_MakeSignedData [11:28:46]FM_MakeSignedData [11:28:46]SAM_PROTO_SignData [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 0D 01 02 [11:28:46]Write to MH i2c: E2 08 00 1A 03 80 0D 01 02 00 00 00 00 96 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [11:28:46]RAPDU: 90 00 [11:28:46]wFMCommunicate OK [11:28:46]wFMCommunicate request_size=255 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 ED 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 14 03 00 35 04 06 00 [11:28:46]Write to MH i2c: E2 02 01 1B 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 ED 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 14 03 00 35 04 06 00 00 00 B3 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [11:28:46]RAPDU: 90 00 [11:28:46]wFMCommunicate OK [11:28:46]wFMCommunicate request_size=11 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 0D 02 02 06 40 59 39 1E 48 FB [11:28:46]Write to MH i2c: E2 0E 00 1C 03 80 0D 02 02 06 00 40 59 39 1E 48 FB 00 00 D8 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [11:28:46]RAPDU: 90 00 [11:28:46]wFMCommunicate OK [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 0D 03 02 [11:28:46]Write to MH i2c: E2 08 00 1D 03 80 0D 03 02 00 00 00 00 9B [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 0B 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 0B 00 1D 03 00 C1 65 35 B0 A1 76 1C 6D 90 00 47 [11:28:46]RAPDU: C1 65 35 B0 A1 76 1C 6D 90 00 [11:28:46]wFMCommunicate OK [11:28:46]SAM_PROTO_SignData done [11:28:46]FM_MakeSignedData done [11:28:46]CreateOFDProtocolMessage [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 11 00 00 [11:28:46]Write to MH i2c: E2 08 00 1E 03 80 11 00 00 00 00 00 00 9B [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 1E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F0 [11:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:28:46]wFMCommunicate OK [11:28:46]CreateOFDProtocolMessage done [11:28:46]OFDSenderStorePacket 201893 [11:28:46]StoreOFDPacket docnum=201893 [11:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 33 46 08 01 7C 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 ED 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 14 03 00 35 04 06 00 40 59 39 1E 48 FB C1 65 35 B0 A1 76 1C 6D [11:28:46]CheckFolder [11:28:46]dirname=/storage/ofd_packets [11:28:46]CheckFolder done [11:28:46]ProducePacketName [11:28:46]name=ofd_packets/00201893 [11:28:46]NVStorageSaveData ofd_packets/00201893 [11:28:46]File name is /storage/ofd_packets/00201893 [11:28:46]Write 302 bytes [11:28:46]NVStorageSaveData done [11:28:46]OFDSenderStorePacket done [11:28:46]KKMCreateOFDPacket done [11:28:46]NVStorageSaveData kkm_last_timestamp [11:28:46]File name is /storage/kkm_last_timestamp [11:28:46]Write 4 bytes [11:28:46]NVStorageSaveData done [11:28:46]ExternCall_PrintAddStr [11:28:46]wPrintStart [11:28:46]Write to MH i2c: 01 00 00 1F 03 22 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 FF 0F 37 [11:28:46]RasterBufferAndPrint [11:28:46]line Счет N : (1)449653 [11:28:46]line ИНН: 02508201610067 [11:28:46]line Контрольно-Кассовый Чек [11:28:46]line ПРОДАЖА [11:28:46]line ТРК (МРК, ГНК) : 63 [11:28:46]line Товар: 2710124130 [11:28:46]line SUPER 92-К-5 [11:28:46]line 7.310 * 68.40 [11:28:46]line = 500.00 [11:28:46]line НДС 12% НСП 1% [11:28:46]line > о реализуемом товаре [11:28:46]line ИТОГО: 500.00 [11:28:46]line НСП 1% : 4.42 [11:28:46]line НДС 12% : 53.10 [11:28:46]line Наличными: 500.00 [11:28:46]line Безнал.: 0.00 [11:28:46]line Место: АЗС № 171 "Партнер Нефть" [11:28:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:28:46]line СНО: Общий режим [11:28:46]line Чек 185 27.10.2024 11:28 [11:28:46]line Смена: 544 ФФД: 1.0 [11:28:46]line ЗНМ: 0300000109 [11:28:46]line РНМ: 0000000000091777 [11:28:46]line Версия ККМ: 001 [11:28:46]line ФМ: 0000000000871756 [11:28:46]line ФД: 201893 [11:28:46]line ФПД: 70751954553083 [11:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112845&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201893&fm=70751954553083&tin=02508201610067®Number=0000000000091777&sum=50000 [11:28:47]OFD Sender: Processing packet 201893 [packets to send 112, broken 111] [11:28:47]ProducePacketName [11:28:47]name=ofd_packets/00201893 [11:28:47]OFD Sender: To server: pG, [11:28:47]CommunicateWithHost lk.salyk.kg:30040 [11:28:47]ConnectInit lk.salyk.kg [11:28:47]written 0, free lines is 4095 [11:28:47]Connected sock=10 [11:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 33 46 08 01 7C 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B9 00 00 00 F4 03 04 00 ED 23 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 14 03 00 35 04 06 00 40 59 39 1E 48 FB C1 65 35 B0 A1 76 1C 6D [11:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FD 51 47 00 A4 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 14 03 00 F4 03 04 00 A7 CF 1D 67 B6 04 01 00 00 B0 0C 1C EC 36 48 E1 54 [11:28:47]CommunicateWithHost err = 0 [11:28:47]CheckOFDResponse [11:28:47]1017 (14) - 77093643461234 [11:28:47]1041 (16) - 0000000000871756 [11:28:47]1040 (4) - 201893 [11:28:47]1012 (4) - 27.10.2024 05:29 [11:28:47]1206 (1) - 0 [11:28:47]OFD Sender: Remove packet 201893 [11:28:47]ProducePacketName [11:28:47]name=ofd_packets/00201893 [11:28:47]NVStorageDeleteData [11:28:47]Write to MH i2c: 01 00 00 47 03 4A [11:28:47]Write i2c OK [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: 01 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: 01 07 00 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 C7 0C 24 [11:28:47]RasterBufferAndPrint [11:28:47]line [11:28:47]line [11:28:47]line [11:28:47]line [11:28:47]line [11:28:47]written 0, free lines is 3274 [11:28:47]MH_Cut [11:28:47]Write to MH i2c: D1 01 00 4E 03 01 23 [11:28:47]Write i2c OK [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: D1 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: D1 01 00 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: D1 01 00 4E 03 00 22 [11:28:47]Write to MH i2c: 01 00 00 4F 03 52 [11:28:47]Write i2c OK [11:28:47]MH_I2C_Read... [11:28:48]OFD Sender: No OFD packet to send [11:28:48]*** Cut start [11:28:48]*** Purtial cut [11:28:48]*** Stage 1: CUTSNS_PIN = 1 [11:28:48]Read from MH i2c: 01 [11:28:48]MH_I2C_Read... [11:28:48]*** Stop cut motor [11:28:48]*** Cut end [11:28:48]Read from MH i2c: 01 07 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [11:28:48]process_action close_receipt done [11:28:48]requested_data is exist [11:28:48]produce_requested_data [11:28:48]requested_item fm.sn is exist - process it [11:28:48]wFMCommunicate request_size=4 [11:28:48]MH_SAM_APDU [11:28:48]CAPDU: 80 11 00 00 [11:28:48]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:48]Read from MH i2c: E2 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 17 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [11:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:28:48]wFMCommunicate OK [11:28:48]requested_item fd.num is exist - process it [11:28:48]SAM_PROTO_GetFieldsCounters [11:28:48]wFMCommunicate request_size=4 [11:28:48]MH_SAM_APDU [11:28:48]CAPDU: 80 13 00 00 [11:28:48]Write to MH i2c: E2 08 00 51 03 80 13 00 00 00 00 00 00 D0 [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 62 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 62 00 51 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [11:28:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:49]wFMCommunicate OK [11:28:49]SAM_PROTO_GetFieldsCounters done [11:28:49]requested_item shift.num is exist - process it [11:28:49]requested_item shift.opened is exist - process it [11:28:49]req_shift_opened [11:28:49]FM_GetShiftState [11:28:49]SAM_PROTO_GetShiftState [11:28:49]wFMCommunicate request_size=4 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 13 01 00 [11:28:49]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 0E 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D4 [11:28:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:28:49]wFMCommunicate OK [11:28:49]SAM_PROTO_GetShiftState done [11:28:49]FM_GetShiftState done [11:28:49]req_shift_opened done [11:28:49]requested_item shift.open_date is exist - process it [11:28:49]req_shift_open_date [11:28:49]req_shift_open_date done [11:28:49]produce_requested_data done [11:28:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201893,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:28:49]process_action_free close_receipt [11:28:49]json_value_free [11:28:49]json_value_free done [11:28:49]process_json_proto returns [11:28:49]Send response to host [11:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201893,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:28:49]free response buf [11:28:49]execute_script done [11:28:49]execute_script returns [11:28:49]free content buf [11:28:49]Sock 8.Close socket [11:28:49]Sock 8.Thread stoped [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:12]accept exits with 9 [11:29:12]New connection [11:29:12]New thread 3066498404 created [11:29:12]Thread 3066641764 joined [11:29:12]Waiting for new connection... [11:29:12] Sock 9.Parse request [11:29:12]Sock 9.Check first char [11:29:12]Sock 9.First char is OK [11:29:12]request: POST /json_proto HTTP/1.0 [11:29:12]Method: POST [11:29:12]URL: /json_proto [11:29:12]Method is POST - this is cgi request [11:29:12]url: /json_proto [11:29:12]query_string will be loaded in cgi processing [11:29:12]execute_cgi json_proto POST (null) [11:29:12]execute_cgi path=json_proto method=POST [11:29:12]POST find Content-Length [11:29:12]Host: 172.17.63.195:8080 [11:29:12]Content-Length: 675 [11:29:12]Content-Type: application/json [11:29:12] [11:29:12]POST finish read [11:29:12]Found Content-Length = 675 [11:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449654", "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" : 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" ] } } [11:29:12]execute_script... [11:29:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449654", "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" : 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" ] } } [11:29:12]POST & json_proto [11:29:12]process_json_proto [11:29:12]json parsed OK: [11:29:12]protocol is kg_v1.0 [11:29:12]action value=close_receipt [11:29:12]process_action close_receipt [11:29:12]cmd_close_receipt [11:29:12]MH_GetDate [11:29:12]Write to MH i2c: F0 00 00 53 03 45 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: F0 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: F0 09 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: F0 09 00 53 03 00 08 24 1E 67 47 1B 1E 67 E6 [11:29:12]GetLastDocTimeStamp 1730028525 [11:29:12]current date 1730028552 [11:29:12]FM_GetShiftState [11:29:12]SAM_PROTO_GetShiftState [11:29:12]wFMCommunicate request_size=4 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 13 01 00 [11:29:12]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 0E 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D6 [11:29:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:29:12]wFMCommunicate OK [11:29:12]SAM_PROTO_GetShiftState done [11:29:12]FM_GetShiftState done [11:29:12]opened in 1729987312 [11:29:12]opened+sec_in_day 1730073712 [11:29:12]quantity*price = 100000 [11:29:12]sum+1 = 100002 [11:29:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 186 27.10.2024 11:29 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201894 ФПД: 106482996404297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112912&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201894&fm=106482996404297&tin=02508201610067®Number=0000000000091777&sum=100000 [11:29:13]StoreToDocumentArchive [11:29:13]shift 544 fd 201894 [11:29:13]save to /storage/0544/doc_00201894 [11:29:13]save last doc name /storage/0544/doc_00201894 to /storage/kkm_last_doc_name [11:29:13]save OK [11:29:13]Clear old archive folders... [11:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:29:13]tlvbuf is 01190F60 [11:29:13]SAM_PROTO_ClearQueue [11:29:13]wFMCommunicate request_size=4 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 09 00 00 [11:29:13]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]SAM_PROTO_ClearQueue done [11:29:13]KKMCreateOFDPacket [11:29:13]OFDProtocolAddRootSTLVToBuf [11:29:13]FM_MakeSignedData [11:29:13]FM_MakeSignedData [11:29:13]SAM_PROTO_SignData [11:29:13]wFMCommunicate request_size=4 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 0D 01 02 [11:29:13]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]wFMCommunicate request_size=255 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 08 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 14 03 00 35 04 06 00 [11:29:13]Write to MH i2c: E2 02 01 63 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 08 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 14 03 00 35 04 06 00 00 00 91 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]wFMCommunicate request_size=11 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 0D 02 02 06 60 D8 81 2C E0 49 [11:29:13]Write to MH i2c: E2 0E 00 64 03 80 0D 02 02 06 00 60 D8 81 2C E0 49 00 00 FB [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]wFMCommunicate request_size=4 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 0D 03 02 [11:29:13]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0B 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0B 00 65 03 00 D4 69 5E 9A D9 64 18 1F 90 00 8D [11:29:14]RAPDU: D4 69 5E 9A D9 64 18 1F 90 00 [11:29:14]wFMCommunicate OK [11:29:14]SAM_PROTO_SignData done [11:29:14]FM_MakeSignedData done [11:29:14]CreateOFDProtocolMessage [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 11 00 00 [11:29:14]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 17 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [11:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:29:14]wFMCommunicate OK [11:29:14]CreateOFDProtocolMessage done [11:29:14]OFDSenderStorePacket 201894 [11:29:14]StoreOFDPacket docnum=201894 [11:29:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E2 75 08 01 DA 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 BA 00 00 00 F4 03 04 00 08 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 14 03 00 35 04 06 00 60 D8 81 2C E0 49 D4 69 5E 9A D9 64 18 1F [11:29:14]CheckFolder [11:29:14]dirname=/storage/ofd_packets [11:29:14]CheckFolder done [11:29:14]ProducePacketName [11:29:14]name=ofd_packets/00201894 [11:29:14]NVStorageSaveData ofd_packets/00201894 [11:29:14]File name is /storage/ofd_packets/00201894 [11:29:14]Write 302 bytes [11:29:14]NVStorageSaveData done [11:29:14]OFDSenderStorePacket done [11:29:14]KKMCreateOFDPacket done [11:29:14]NVStorageSaveData kkm_last_timestamp [11:29:14]File name is /storage/kkm_last_timestamp [11:29:14]Write 4 bytes [11:29:14]NVStorageSaveData done [11:29:14]ExternCall_PrintAddStr [11:29:14]wPrintStart [11:29:14]Write to MH i2c: 01 00 00 67 03 6A [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [11:29:14]RasterBufferAndPrint [11:29:14]line Счет N : (1)449654 [11:29:14]line ИНН: 02508201610067 [11:29:14]line Контрольно-Кассовый Чек [11:29:14]line ПРОДАЖА [11:29:14]line ТРК (МРК, ГНК) : 53 [11:29:14]line Товар: 2710124130 [11:29:14]line SUPER 92-К-5 [11:29:14]line 14.620 * 68.40 [11:29:14]line = 1000.01 [11:29:14]line НДС 12% НСП 1% [11:29:14]line > о реализуемом товаре [11:29:14]line ОКРУГЛЕНИЕ: -0.01 [11:29:14]line ИТОГО: 1000.00 [11:29:14]line Внесено: 1000.00 [11:29:14]line СДАЧА: 0.00 [11:29:14]line НСП 1% : 8.85 [11:29:14]line НДС 12% : 106.20 [11:29:14]line Наличными: 1000.00 [11:29:14]line Безнал.: 0.00 [11:29:14]line Место: АЗС № 171 "Партнер Нефть" [11:29:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:29:14]line СНО: Общий режим [11:29:14]line Чек 186 27.10.2024 11:29 [11:29:14]line Смена: 544 ФФД: 1.0 [11:29:14]line ЗНМ: 0300000109 [11:29:14]line РНМ: 0000000000091777 [11:29:14]line Версия ККМ: 001 [11:29:14]line ФМ: 0000000000871756 [11:29:14]line ФД: 201894 [11:29:14]line ФПД: 106482996404297 [11:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112912&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201894&fm=106482996404297&tin=02508201610067®Number=0000000000091777&sum=100000 [11:29:14]OFD Sender: Processing packet 201894 [packets to send 112, broken 111] [11:29:14]ProducePacketName [11:29:14]name=ofd_packets/00201894 [11:29:14]OFD Sender: To server: pG, [11:29:14]CommunicateWithHost lk.salyk.kg:30040 [11:29:14]ConnectInit lk.salyk.kg [11:29:14]written 0, free lines is 4095 [11:29:14]Connected sock=10 [11:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E2 75 08 01 DA 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 BA 00 00 00 F4 03 04 00 08 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 14 03 00 35 04 06 00 60 D8 81 2C E0 49 D4 69 5E 9A D9 64 18 1F [11:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 92 1A 47 00 1C 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 14 03 00 F4 03 04 00 C3 CF 1D 67 B6 04 01 00 00 94 FD F5 A8 7F 08 8F BB [11:29:14]CommunicateWithHost err = 0 [11:29:14]CheckOFDResponse [11:29:14]1017 (14) - 77093643461234 [11:29:14]1041 (16) - 0000000000871756 [11:29:14]1040 (4) - 201894 [11:29:14]1012 (4) - 27.10.2024 05:29 [11:29:14]1206 (1) - 0 [11:29:14]OFD Sender: Remove packet 201894 [11:29:14]ProducePacketName [11:29:14]name=ofd_packets/00201894 [11:29:14]NVStorageDeleteData [11:29:14]Write to MH i2c: 01 00 00 92 03 95 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 8D 0C 35 [11:29:14]RasterBufferAndPrint [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]written 0, free lines is 3217 [11:29:14]MH_Cut [11:29:14]Write to MH i2c: D1 01 00 99 03 01 6E [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 01 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 01 00 99 03 00 6D [11:29:14]Write to MH i2c: 01 00 00 9A 03 9D [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:15]OFD Sender: No OFD packet to send [11:29:15]*** Cut start [11:29:15]*** Purtial cut [11:29:15]*** Stage 1: CUTSNS_PIN = 1 [11:29:16]Read from MH i2c: 01 [11:29:16]MH_I2C_Read... [11:29:16]*** Stop cut motor [11:29:16]*** Cut end [11:29:16]Read from MH i2c: 01 07 00 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [11:29:16]process_action close_receipt done [11:29:16]requested_data is exist [11:29:16]produce_requested_data [11:29:16]requested_item fm.sn is exist - process it [11:29:16]wFMCommunicate request_size=4 [11:29:16]MH_SAM_APDU [11:29:16]CAPDU: 80 11 00 00 [11:29:16]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [11:29:16]Write i2c OK [11:29:16]MH_I2C_Read... [11:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:16]Read from MH i2c: E2 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: E2 17 00 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [11:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:29:16]wFMCommunicate OK [11:29:16]requested_item fd.num is exist - process it [11:29:16]SAM_PROTO_GetFieldsCounters [11:29:16]wFMCommunicate request_size=4 [11:29:16]MH_SAM_APDU [11:29:16]CAPDU: 80 13 00 00 [11:29:16]Write to MH i2c: E2 08 00 9C 03 80 13 00 00 00 00 00 00 1B [11:29:16]Write i2c OK [11:29:16]MH_I2C_Read... [11:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:16]Read from MH i2c: E2 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: E2 62 00 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: E2 62 00 9C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [11:29:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:16]wFMCommunicate OK [11:29:16]SAM_PROTO_GetFieldsCounters done [11:29:16]requested_item shift.num is exist - process it [11:29:16]requested_item shift.opened is exist - process it [11:29:16]req_shift_opened [11:29:16]FM_GetShiftState [11:29:16]SAM_PROTO_GetShiftState [11:29:16]wFMCommunicate request_size=4 [11:29:16]MH_SAM_APDU [11:29:16]CAPDU: 80 13 01 00 [11:29:16]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [11:29:16]Write i2c OK [11:29:16]MH_I2C_Read... [11:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:16]Read from MH i2c: E2 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: E2 0E 00 [11:29:16]MH_I2C_Read... [11:29:16]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1F [11:29:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:29:16]wFMCommunicate OK [11:29:16]SAM_PROTO_GetShiftState done [11:29:16]FM_GetShiftState done [11:29:16]req_shift_opened done [11:29:16]requested_item shift.open_date is exist - process it [11:29:16]req_shift_open_date [11:29:16]req_shift_open_date done [11:29:16]produce_requested_data done [11:29:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201894,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:29:16]process_action_free close_receipt [11:29:16]json_value_free [11:29:16]json_value_free done [11:29:16]process_json_proto returns [11:29:16]Send response to host [11:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201894,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:29:16]free response buf [11:29:16]execute_script done [11:29:16]execute_script returns [11:29:16]free content buf [11:29:16]Sock 9.Close socket [11:29:16]Sock 9.Thread stoped [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:46]accept exits with 8 [11:30:46]New connection [11:30:46]New thread 3066641764 created [11:30:46]Thread 3066498404 joined [11:30:46]Waiting for new connection... [11:30:46] Sock 8.Parse request [11:30:46]Sock 8.Check first char [11:30:46]Sock 8.First char is OK [11:30:46]request: POST /json_proto HTTP/1.0 [11:30:46]Method: POST [11:30:46]URL: /json_proto [11:30:46]Method is POST - this is cgi request [11:30:46]url: /json_proto [11:30:46]query_string will be loaded in cgi processing [11:30:46]execute_cgi json_proto POST (null) [11:30:46]execute_cgi path=json_proto method=POST [11:30:46]POST find Content-Length [11:30:46]Host: 172.17.63.195:8080 [11:30:46]Content-Length: 682 [11:30:46]Content-Type: application/json [11:30:46] [11:30:46]POST finish read [11:30:46]Found Content-Length = 682 [11:30:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:46]execute_script... [11:30:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:46]POST & json_proto [11:30:46]process_json_proto [11:30:46]json parsed OK: [11:30:46]protocol is kg_v1.0 [11:30:46]action value=close_receipt [11:30:46]process_action close_receipt [11:30:46]cmd_close_receipt [11:30:46]MH_GetDate [11:30:46]Write to MH i2c: F0 00 00 9E 03 90 [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: F0 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: F0 09 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: F0 09 00 9E 03 00 67 24 1E 67 47 1B 1E 67 90 [11:30:46]GetLastDocTimeStamp 1730028552 [11:30:46]current date 1730028647 [11:30:46]FM_GetShiftState [11:30:46]SAM_PROTO_GetShiftState [11:30:46]wFMCommunicate request_size=4 [11:30:46]MH_SAM_APDU [11:30:46]CAPDU: 80 13 01 00 [11:30:46]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:46]Read from MH i2c: E2 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 0E 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [11:30:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:30:46]wFMCommunicate OK [11:30:46]SAM_PROTO_GetShiftState done [11:30:46]FM_GetShiftState done [11:30:46]opened in 1729987312 [11:30:46]opened+sec_in_day 1730073712 [11:30:46]quantity*price = 120018 [11:30:46]sum+1 = 120020 [11:30:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 187 27.10.2024 11:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201895 ФПД: 130585344484750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113047&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201895&fm=130585344484750&tin=02508201610067®Number=0000000000091777&sum=120000 [11:30:47]StoreToDocumentArchive [11:30:47]shift 544 fd 201895 [11:30:47]save to /storage/0544/doc_00201895 [11:30:47]save last doc name /storage/0544/doc_00201895 to /storage/kkm_last_doc_name [11:30:47]save OK [11:30:47]Clear old archive folders... [11:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:47]tlvbuf is 01191910 [11:30:47]SAM_PROTO_ClearQueue [11:30:47]wFMCommunicate request_size=4 [11:30:47]MH_SAM_APDU [11:30:47]CAPDU: 80 09 00 00 [11:30:47]Write to MH i2c: E2 08 00 AC 03 80 09 00 00 00 00 00 00 21 [11:30:47]Write i2c OK [11:30:47]MH_I2C_Read... [11:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:47]Read from MH i2c: E2 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 03 00 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [11:30:47]RAPDU: 90 00 [11:30:47]wFMCommunicate OK [11:30:47]SAM_PROTO_ClearQueue done [11:30:47]KKMCreateOFDPacket [11:30:47]OFDProtocolAddRootSTLVToBuf [11:30:47]FM_MakeSignedData [11:30:47]FM_MakeSignedData [11:30:47]SAM_PROTO_SignData [11:30:47]wFMCommunicate request_size=4 [11:30:47]MH_SAM_APDU [11:30:47]CAPDU: 80 0D 01 02 [11:30:47]Write to MH i2c: E2 08 00 AD 03 80 0D 01 02 00 00 00 00 29 [11:30:47]Write i2c OK [11:30:47]MH_I2C_Read... [11:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:47]Read from MH i2c: E2 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 03 00 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [11:30:47]RAPDU: 90 00 [11:30:47]wFMCommunicate OK [11:30:47]wFMCommunicate request_size=255 [11:30:47]MH_SAM_APDU [11:30:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 67 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 14 03 00 35 04 06 00 76 [11:30:47]Write to MH i2c: E2 02 01 AE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 67 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 14 03 00 35 04 06 00 76 00 00 E5 [11:30:47]Write i2c OK [11:30:47]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 0D 02 02... 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 AE 03 00 90 00 25 [11:30:48]RAPDU: 90 00 [11:30:48]wFMCommunicate OK [11:30:48]wFMCommunicate request_size=10 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 0D 02 02 05 C4 45 12 25 8E [11:30:48]Write to MH i2c: E2 0D 00 AF 03 80 0D 02 02 05 00 C4 45 12 25 8E 00 00 04 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 0D 02 02... 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 AF 03 00 90 00 26 [11:30:48]RAPDU: 90 00 [11:30:48]wFMCommunicate OK [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 0D 03 02 [11:30:48]Write to MH i2c: E2 08 00 B0 03 80 0D 03 02 00 00 00 00 2E [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 0B 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 0B 00 B0 03 00 04 E1 AA 0B A6 00 47 91 90 00 47 [11:30:48]RAPDU: 04 E1 AA 0B A6 00 47 91 90 00 [11:30:48]wFMCommunicate OK [11:30:48]SAM_PROTO_SignData done [11:30:48]FM_MakeSignedData done [11:30:48]CreateOFDProtocolMessage [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 11 00 00 [11:30:48]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 17 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 83 [11:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:30:48]wFMCommunicate OK [11:30:48]CreateOFDProtocolMessage done [11:30:48]OFDSenderStorePacket 201895 [11:30:48]StoreOFDPacket docnum=201895 [11:30:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 92 DC 07 01 37 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 67 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 14 03 00 35 04 06 00 76 C4 45 12 25 8E 04 E1 AA 0B A6 00 47 91 [11:30:48]CheckFolder [11:30:48]dirname=/storage/ofd_packets [11:30:48]CheckFolder done [11:30:48]ProducePacketName [11:30:48]name=ofd_packets/00201895 [11:30:48]NVStorageSaveData ofd_packets/00201895 [11:30:48]File name is /storage/ofd_packets/00201895 [11:30:48]Write 301 bytes [11:30:48]NVStorageSaveData done [11:30:48]OFDSenderStorePacket done [11:30:48]KKMCreateOFDPacket done [11:30:48]NVStorageSaveData kkm_last_timestamp [11:30:48]File name is /storage/kkm_last_timestamp [11:30:48]Write 4 bytes [11:30:48]NVStorageSaveData done [11:30:48]ExternCall_PrintAddStr [11:30:48]wPrintStart [11:30:48]Write to MH i2c: 01 00 00 B2 03 B5 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: 01 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: 01 07 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [11:30:48]RasterBufferAndPrint [11:30:48]line Счет N : (1)449655 [11:30:48]line ИНН: 02508201610067 [11:30:48]line Контрольно-Кассовый Чек [11:30:48]line ПРОДАЖА [11:30:48]line ТРК (МРК, ГНК) : 41 [11:30:48]line Товар: 2710124130 [11:30:48]line Аи-92-К-2 [11:30:48]line 17.940 * 66.90 [11:30:48]line = 1200.19 [11:30:48]line НДС 12% НСП 1% [11:30:48]line > о реализуемом товаре [11:30:48]line ОКРУГЛЕНИЕ: -0.19 [11:30:48]line ИТОГО: 1200.00 [11:30:48]line Внесено: 1200.00 [11:30:48]line СДАЧА: 0.00 [11:30:48]line НСП 1% : 10.62 [11:30:48]line НДС 12% : 127.45 [11:30:48]line Наличными: 1200.00 [11:30:48]line Безнал.: 0.00 [11:30:48]line Место: АЗС № 171 "Партнер Нефть" [11:30:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:30:48]line СНО: Общий режим [11:30:48]line Чек 187 27.10.2024 11:30 [11:30:48]line Смена: 544 ФФД: 1.0 [11:30:48]line ЗНМ: 0300000109 [11:30:48]line РНМ: 0000000000091777 [11:30:48]line Версия ККМ: 001 [11:30:48]line ФМ: 0000000000871756 [11:30:48]line ФД: 201895 [11:30:48]line ФПД: 130585344484750 [11:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113047&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201895&fm=130585344484750&tin=02508201610067®Number=0000000000091777&sum=120000 [11:30:48]OFD Sender: Processing packet 201895 [packets to send 112, broken 111] [11:30:48]ProducePacketName [11:30:48]name=ofd_packets/00201895 [11:30:48]OFD Sender: To server: pG, [11:30:48]CommunicateWithHost lk.salyk.kg:30040 [11:30:48]ConnectInit lk.salyk.kg [11:30:48]written 0, free lines is 4095 [11:30:48]Connected sock=10 [11:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 92 DC 07 01 37 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 67 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 14 03 00 35 04 06 00 76 C4 45 12 25 8E 04 E1 AA 0B A6 00 47 91 [11:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E9 E6 47 00 08 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 14 03 00 F4 03 04 00 21 D0 1D 67 B6 04 01 00 00 6A DD D8 B5 3F 9F 2A D8 [11:30:49]CommunicateWithHost err = 0 [11:30:49]CheckOFDResponse [11:30:49]1017 (14) - 77093643461234 [11:30:49]1041 (16) - 0000000000871756 [11:30:49]1040 (4) - 201895 [11:30:49]1012 (4) - 27.10.2024 05:31 [11:30:49]1206 (1) - 0 [11:30:49]OFD Sender: Remove packet 201895 [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00201895 [11:30:49]NVStorageDeleteData [11:30:49]Write to MH i2c: 01 00 00 DD 03 E0 [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 DD 03 00 00 00 00 00 8D 0C 80 [11:30:49]RasterBufferAndPrint [11:30:49]line [11:30:49]line [11:30:49]line [11:30:49]line [11:30:49]line [11:30:49]written 0, free lines is 3217 [11:30:49]MH_Cut [11:30:49]Write to MH i2c: D1 01 00 E4 03 01 B9 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: D1 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: D1 01 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: D1 01 00 E4 03 00 B8 [11:30:49]Write to MH i2c: 01 00 00 E5 03 E8 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]OFD Sender: No OFD packet to send [11:30:50]*** Cut start [11:30:50]*** Purtial cut [11:30:50]*** Stage 1: CUTSNS_PIN = 1 [11:30:50]Read from MH i2c: 01 [11:30:50]MH_I2C_Read... [11:30:50]*** Stop cut motor [11:30:50]*** Cut end [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 E5 03 00 00 00 00 00 FF 0F FD [11:30:50]process_action close_receipt done [11:30:50]requested_data is exist [11:30:50]produce_requested_data [11:30:50]requested_item fm.sn is exist - process it [11:30:50]wFMCommunicate request_size=4 [11:30:50]MH_SAM_APDU [11:30:50]CAPDU: 80 11 00 00 [11:30:50]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:50]Read from MH i2c: E2 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: E2 17 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [11:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:30:50]wFMCommunicate OK [11:30:50]requested_item fd.num is exist - process it [11:30:50]SAM_PROTO_GetFieldsCounters [11:30:50]wFMCommunicate request_size=4 [11:30:50]MH_SAM_APDU [11:30:50]CAPDU: 80 13 00 00 [11:30:50]Write to MH i2c: E2 08 00 E7 03 80 13 00 00 00 00 00 00 66 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:50]Read from MH i2c: E2 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: E2 62 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: E2 62 00 E7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [11:30:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:50]wFMCommunicate OK [11:30:50]SAM_PROTO_GetFieldsCounters done [11:30:50]requested_item shift.num is exist - process it [11:30:50]requested_item shift.opened is exist - process it [11:30:50]req_shift_opened [11:30:50]FM_GetShiftState [11:30:50]SAM_PROTO_GetShiftState [11:30:50]wFMCommunicate request_size=4 [11:30:50]MH_SAM_APDU [11:30:50]CAPDU: 80 13 01 00 [11:30:50]Write to MH i2c: E2 08 00 E8 03 80 13 01 00 00 00 00 00 68 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:50]Read from MH i2c: E2 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: E2 0E 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: E2 0E 00 E8 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6A [11:30:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:30:50]wFMCommunicate OK [11:30:50]SAM_PROTO_GetShiftState done [11:30:50]FM_GetShiftState done [11:30:50]req_shift_opened done [11:30:50]requested_item shift.open_date is exist - process it [11:30:50]req_shift_open_date [11:30:50]req_shift_open_date done [11:30:50]produce_requested_data done [11:30:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201895,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:30:50]process_action_free close_receipt [11:30:50]json_value_free [11:30:50]json_value_free done [11:30:50]process_json_proto returns [11:30:50]Send response to host [11:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201895,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:30:50]free response buf [11:30:50]execute_script done [11:30:50]execute_script returns [11:30:50]free content buf [11:30:50]Sock 8.Close socket [11:30:50]Sock 8.Thread stoped [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:42]accept exits with 9 [11:32:42]New connection [11:32:42]New thread 3066498404 created [11:32:42]Thread 3066641764 joined [11:32:42]Waiting for new connection... [11:32:42] Sock 9.Parse request [11:32:42]Sock 9.Check first char [11:32:42]Sock 9.First char is OK [11:32:42]request: POST /json_proto HTTP/1.0 [11:32:42]Method: POST [11:32:42]URL: /json_proto [11:32:42]Method is POST - this is cgi request [11:32:42]url: /json_proto [11:32:42]query_string will be loaded in cgi processing [11:32:42]execute_cgi json_proto POST (null) [11:32:42]execute_cgi path=json_proto method=POST [11:32:42]POST find Content-Length [11:32:42]Host: 172.17.63.195:8080 [11:32:42]Content-Length: 677 [11:32:42]Content-Type: application/json [11:32:42] [11:32:42]POST finish read [11:32:42]Found Content-Length = 677 [11:32:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:32:42]execute_script... [11:32: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)449657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:32:42]POST & json_proto [11:32:42]process_json_proto [11:32:42]json parsed OK: [11:32:42]protocol is kg_v1.0 [11:32:42]action value=close_receipt [11:32:42]process_action close_receipt [11:32:42]cmd_close_receipt [11:32:42]MH_GetDate [11:32:42]Write to MH i2c: F0 00 00 E9 03 DB [11:32:42]Write i2c OK [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: F0 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: F0 09 00 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: F0 09 00 E9 03 00 DA 24 1E 67 47 1B 1E 67 4E [11:32:42]GetLastDocTimeStamp 1730028647 [11:32:42]current date 1730028762 [11:32:42]FM_GetShiftState [11:32:42]SAM_PROTO_GetShiftState [11:32:42]wFMCommunicate request_size=4 [11:32:42]MH_SAM_APDU [11:32:42]CAPDU: 80 13 01 00 [11:32:42]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [11:32:42]Write i2c OK [11:32:42]MH_I2C_Read... [11:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:42]Read from MH i2c: E2 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: E2 0E 00 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [11:32:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:32:42]wFMCommunicate OK [11:32:42]SAM_PROTO_GetShiftState done [11:32:42]FM_GetShiftState done [11:32:42]opened in 1729987312 [11:32:42]opened+sec_in_day 1730073712 [11:32:42]quantity*price = 20003 [11:32:42]sum+1 = 20004 [11:32:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 188 27.10.2024 11:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201896 ФПД: 267223230694164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113242&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201896&fm=267223230694164&tin=02508201610067®Number=0000000000091777&sum=20000 [11:32:43]StoreToDocumentArchive [11:32:43]shift 544 fd 201896 [11:32:43]save to /storage/0544/doc_00201896 [11:32:43]save last doc name /storage/0544/doc_00201896 to /storage/kkm_last_doc_name [11:32:43]save OK [11:32:43]Clear old archive folders... [11:32:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:43]tlvbuf is 011912A0 [11:32:43]SAM_PROTO_ClearQueue [11:32:43]wFMCommunicate request_size=4 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 09 00 00 [11:32:43]Write to MH i2c: E2 08 00 F7 03 80 09 00 00 00 00 00 00 6C [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 03 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [11:32:43]RAPDU: 90 00 [11:32:43]wFMCommunicate OK [11:32:43]SAM_PROTO_ClearQueue done [11:32:43]KKMCreateOFDPacket [11:32:43]OFDProtocolAddRootSTLVToBuf [11:32:43]FM_MakeSignedData [11:32:43]FM_MakeSignedData [11:32:43]SAM_PROTO_SignData [11:32:43]wFMCommunicate request_size=4 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 0D 01 02 [11:32:43]Write to MH i2c: E2 08 00 F8 03 80 0D 01 02 00 00 00 00 74 [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 03 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [11:32:43]RAPDU: 90 00 [11:32:43]wFMCommunicate OK [11:32:43]wFMCommunicate request_size=255 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BC 00 00 00 F4 03 04 00 DA 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 14 03 00 35 04 06 00 F3 [11:32:43]Write to MH i2c: E2 02 01 F9 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BC 00 00 00 F4 03 04 00 DA 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 14 03 00 35 04 06 00 F3 00 00 DD [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 03 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [11:32:43]RAPDU: 90 00 [11:32:43]wFMCommunicate OK [11:32:43]wFMCommunicate request_size=10 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 0D 02 02 05 09 C1 BD C3 14 [11:32:43]Write to MH i2c: E2 0D 00 FA 03 80 0D 02 02 05 00 09 C1 BD C3 14 00 00 DF [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 03 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [11:32:43]RAPDU: 90 00 [11:32:43]wFMCommunicate OK [11:32:43]wFMCommunicate request_size=4 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 0D 03 02 [11:32:43]Write to MH i2c: E2 08 00 FB 03 80 0D 03 02 00 00 00 00 79 [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 0B 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 0B 00 FB 03 00 19 3A 01 A6 9D D5 2D 1A 90 00 2D [11:32:43]RAPDU: 19 3A 01 A6 9D D5 2D 1A 90 00 [11:32:43]wFMCommunicate OK [11:32:43]SAM_PROTO_SignData done [11:32:43]FM_MakeSignedData done [11:32:43]CreateOFDProtocolMessage [11:32:43]wFMCommunicate request_size=4 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 11 00 00 [11:32:43]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 17 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [11:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:32:43]wFMCommunicate OK [11:32:43]CreateOFDProtocolMessage done [11:32:43]OFDSenderStorePacket 201896 [11:32:43]StoreOFDPacket docnum=201896 [11:32:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 74 D1 07 01 BD 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BC 00 00 00 F4 03 04 00 DA 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 14 03 00 35 04 06 00 F3 09 C1 BD C3 14 19 3A 01 A6 9D D5 2D 1A [11:32:43]CheckFolder [11:32:43]dirname=/storage/ofd_packets [11:32:43]CheckFolder done [11:32:43]ProducePacketName [11:32:43]name=ofd_packets/00201896 [11:32:43]NVStorageSaveData ofd_packets/00201896 [11:32:43]File name is /storage/ofd_packets/00201896 [11:32:43]Write 301 bytes [11:32:43]NVStorageSaveData done [11:32:43]OFDSenderStorePacket done [11:32:43]KKMCreateOFDPacket done [11:32:43]NVStorageSaveData kkm_last_timestamp [11:32:43]File name is /storage/kkm_last_timestamp [11:32:43]Write 4 bytes [11:32:43]NVStorageSaveData done [11:32:43]ExternCall_PrintAddStr [11:32:43]wPrintStart [11:32:43]Write to MH i2c: 01 00 00 FD 03 00 [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: 01 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: 01 07 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 FF 0F 15 [11:32:43]RasterBufferAndPrint [11:32:43]line Счет N : (1)449657 [11:32:43]line ИНН: 02508201610067 [11:32:43]line Контрольно-Кассовый Чек [11:32:43]line ПРОДАЖА [11:32:43]line ТРК (МРК, ГНК) : 31 [11:32:43]line Товар: 2710124130 [11:32:43]line Аи-92-К-2 [11:32:43]line 2.990 * 66.90 [11:32:43]line = 200.03 [11:32:43]line НДС 12% НСП 1% [11:32:43]line > о реализуемом товаре [11:32:43]line ОКРУГЛЕНИЕ: -0.03 [11:32:43]line ИТОГО: 200.00 [11:32:43]line Внесено: 200.00 [11:32:43]line СДАЧА: 0.00 [11:32:43]line НСП 1% : 1.77 [11:32:43]line НДС 12% : 21.24 [11:32:43]line Наличными: 200.00 [11:32:43]line Безнал.: 0.00 [11:32:43]line Место: АЗС № 171 "Партнер Нефть" [11:32:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:32:43]line СНО: Общий режим [11:32:43]line Чек 188 27.10.2024 11:32 [11:32:43]line Смена: 544 ФФД: 1.0 [11:32:43]line ЗНМ: 0300000109 [11:32:43]line РНМ: 0000000000091777 [11:32:43]line Версия ККМ: 001 [11:32:43]line ФМ: 0000000000871756 [11:32:43]line ФД: 201896 [11:32:43]line ФПД: 267223230694164 [11:32:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113242&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201896&fm=267223230694164&tin=02508201610067®Number=0000000000091777&sum=20000 [11:32:44]OFD Sender: Processing packet 201896 [packets to send 112, broken 111] [11:32:44]ProducePacketName [11:32:44]name=ofd_packets/00201896 [11:32:44]OFD Sender: To server: pG, [11:32:44]CommunicateWithHost lk.salyk.kg:30040 [11:32:44]ConnectInit lk.salyk.kg [11:32:44]written 0, free lines is 4095 [11:32:44]Connected sock=10 [11:32:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 74 D1 07 01 BD 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BC 00 00 00 F4 03 04 00 DA 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 14 03 00 35 04 06 00 F3 09 C1 BD C3 14 19 3A 01 A6 9D D5 2D 1A [11:32:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 47 69 47 00 57 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 14 03 00 F4 03 04 00 94 D0 1D 67 B6 04 01 00 00 66 88 E1 AA 16 4F 7A 59 [11:32:44]CommunicateWithHost err = 0 [11:32:44]CheckOFDResponse [11:32:44]1017 (14) - 77093643461234 [11:32:44]1041 (16) - 0000000000871756 [11:32:44]1040 (4) - 201896 [11:32:44]1012 (4) - 27.10.2024 05:33 [11:32:44]1206 (1) - 0 [11:32:44]OFD Sender: Remove packet 201896 [11:32:44]ProducePacketName [11:32:44]name=ofd_packets/00201896 [11:32:44]NVStorageDeleteData [11:32:44]Write to MH i2c: 01 00 00 28 04 2C [11:32:44]Write i2c OK [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: 01 [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: 01 07 00 [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 84 0C C3 [11:32:44]RasterBufferAndPrint [11:32:44]line [11:32:44]line [11:32:44]line [11:32:44]line [11:32:44]line [11:32:44]written 0, free lines is 3209 [11:32:44]MH_Cut [11:32:44]Write to MH i2c: D1 01 00 2F 04 01 05 [11:32:44]Write i2c OK [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: D1 [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: D1 01 00 [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: D1 01 00 2F 04 00 04 [11:32:44]Write to MH i2c: 01 00 00 30 04 34 [11:32:44]Write i2c OK [11:32:44]MH_I2C_Read... [11:32:45]OFD Sender: No OFD packet to send [11:32:45]*** Cut start [11:32:45]*** Purtial cut [11:32:45]*** CUTSNS_PIN = 0 [11:32:45]*** Stage 1: CUTSNS_PIN = 1 [11:32:47]Read from MH i2c: 01 [11:32:47]*** Stop cut motor [11:32:47]*** Cut end [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 07 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [11:32:47]process_action close_receipt done [11:32:47]requested_data is exist [11:32:47]produce_requested_data [11:32:47]requested_item fm.sn is exist - process it [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 11 00 00 [11:32:47]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 17 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [11:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:32:47]wFMCommunicate OK [11:32:47]requested_item fd.num is exist - process it [11:32:47]SAM_PROTO_GetFieldsCounters [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 13 00 00 [11:32:47]Write to MH i2c: E2 08 00 32 04 80 13 00 00 00 00 00 00 B2 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 62 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 62 00 32 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [11:32:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:47]wFMCommunicate OK [11:32:47]SAM_PROTO_GetFieldsCounters done [11:32:47]requested_item shift.num is exist - process it [11:32:47]requested_item shift.opened is exist - process it [11:32:47]req_shift_opened [11:32:47]FM_GetShiftState [11:32:47]SAM_PROTO_GetShiftState [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 13 01 00 [11:32:47]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 0E 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B6 [11:32:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:32:47]wFMCommunicate OK [11:32:47]SAM_PROTO_GetShiftState done [11:32:47]FM_GetShiftState done [11:32:47]req_shift_opened done [11:32:47]requested_item shift.open_date is exist - process it [11:32:47]req_shift_open_date [11:32:47]req_shift_open_date done [11:32:47]produce_requested_data done [11:32:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201896,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:32:47]process_action_free close_receipt [11:32:47]json_value_free [11:32:47]json_value_free done [11:32:47]process_json_proto returns [11:32:47]Send response to host [11:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201896,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:32:47]free response buf [11:32:47]execute_script done [11:32:47]execute_script returns [11:32:47]free content buf [11:32:47]Sock 9.Close socket [11:32:47]Sock 9.Thread stoped [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:15]accept exits with 8 [11:33:15]New connection [11:33:15]New thread 3066641764 created [11:33:15]Thread 3066498404 joined [11:33:15]Waiting for new connection... [11:33:15] Sock 8.Parse request [11:33:15]Sock 8.Check first char [11:33:15]Sock 8.First char is OK [11:33:15]request: POST /json_proto HTTP/1.0 [11:33:15]Method: POST [11:33:15]URL: /json_proto [11:33:15]Method is POST - this is cgi request [11:33:15]url: /json_proto [11:33:15]query_string will be loaded in cgi processing [11:33:15]execute_cgi json_proto POST (null) [11:33:15]execute_cgi path=json_proto method=POST [11:33:15]POST find Content-Length [11:33:15]Host: 172.17.63.195:8080 [11:33:15]Content-Length: 679 [11:33:15]Content-Type: application/json [11:33:15] [11:33:15]POST finish read [11:33:15]Found Content-Length = 679 [11:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:15]execute_script... [11:33:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:15]POST & json_proto [11:33:15]process_json_proto [11:33:15]json parsed OK: [11:33:15]protocol is kg_v1.0 [11:33:15]action value=close_receipt [11:33:15]process_action close_receipt [11:33:15]cmd_close_receipt [11:33:15]MH_GetDate [11:33:15]Write to MH i2c: F0 00 00 34 04 27 [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: F0 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: F0 09 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: F0 09 00 34 04 00 FB 24 1E 67 47 1B 1E 67 BB [11:33:15]GetLastDocTimeStamp 1730028762 [11:33:15]current date 1730028795 [11:33:15]FM_GetShiftState [11:33:15]SAM_PROTO_GetShiftState [11:33:15]wFMCommunicate request_size=4 [11:33:15]MH_SAM_APDU [11:33:15]CAPDU: 80 13 01 00 [11:33:15]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 0E 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [11:33:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:33:15]wFMCommunicate OK [11:33:15]SAM_PROTO_GetShiftState done [11:33:15]FM_GetShiftState done [11:33:15]opened in 1729987312 [11:33:15]opened+sec_in_day 1730073712 [11:33:15]quantity*price = 180060 [11:33:15]sum+1 = 180062 [11:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 189 27.10.2024 11:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201897 ФПД: 115308963435873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113315&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201897&fm=115308963435873&tin=02508201610067®Number=0000000000091777&sum=180000 [11:33:16]StoreToDocumentArchive [11:33:16]shift 544 fd 201897 [11:33:16]save to /storage/0544/doc_00201897 [11:33:16]save last doc name /storage/0544/doc_00201897 to /storage/kkm_last_doc_name [11:33:16]save OK [11:33:16]Clear old archive folders... [11:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:33:16]tlvbuf is 011B1EB0 [11:33:16]SAM_PROTO_ClearQueue [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 09 00 00 [11:33:16]Write to MH i2c: E2 08 00 42 04 80 09 00 00 00 00 00 00 B8 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 03 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [11:33:16]RAPDU: 90 00 [11:33:16]wFMCommunicate OK [11:33:16]SAM_PROTO_ClearQueue done [11:33:16]KKMCreateOFDPacket [11:33:16]OFDProtocolAddRootSTLVToBuf [11:33:16]FM_MakeSignedData [11:33:16]FM_MakeSignedData [11:33:16]SAM_PROTO_SignData [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 0D 01 02 [11:33:16]Write to MH i2c: E2 08 00 43 04 80 0D 01 02 00 00 00 00 C0 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 03 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [11:33:16]RAPDU: 90 00 [11:33:16]wFMCommunicate OK [11:33:16]wFMCommunicate request_size=255 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 FB 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 14 03 00 35 04 06 00 68 DF 75 CE [11:33:16]Write to MH i2c: E2 02 01 44 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 FB 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 14 03 00 35 04 06 00 68 DF 75 CE 00 00 94 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 03 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [11:33:16]RAPDU: 90 00 [11:33:16]wFMCommunicate OK [11:33:16]wFMCommunicate request_size=7 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 0D 02 02 02 15 61 [11:33:16]Write to MH i2c: E2 0A 00 45 04 80 0D 02 02 02 00 15 61 00 00 3D [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 03 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [11:33:16]RAPDU: 90 00 [11:33:16]wFMCommunicate OK [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 0D 03 02 [11:33:16]Write to MH i2c: E2 08 00 46 04 80 0D 03 02 00 00 00 00 C5 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 0B 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 0B 00 46 04 00 6D CE 16 D5 49 74 29 EC 90 00 BE [11:33:16]RAPDU: 6D CE 16 D5 49 74 29 EC 90 00 [11:33:16]wFMCommunicate OK [11:33:16]SAM_PROTO_SignData done [11:33:16]FM_MakeSignedData done [11:33:16]CreateOFDProtocolMessage [11:33:16]wFMCommunicate request_size=4 [11:33:16]MH_SAM_APDU [11:33:16]CAPDU: 80 11 00 00 [11:33:16]Write to MH i2c: E2 08 00 47 04 80 11 00 00 00 00 00 00 C5 [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:16]Read from MH i2c: E2 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 17 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: E2 17 00 47 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1A [11:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:33:16]wFMCommunicate OK [11:33:16]CreateOFDProtocolMessage done [11:33:16]OFDSenderStorePacket 201897 [11:33:16]StoreOFDPacket docnum=201897 [11:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 77 03 04 01 75 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 FB 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 14 03 00 35 04 06 00 68 DF 75 CE 15 61 6D CE 16 D5 49 74 29 EC [11:33:16]CheckFolder [11:33:16]dirname=/storage/ofd_packets [11:33:16]CheckFolder done [11:33:16]ProducePacketName [11:33:16]name=ofd_packets/00201897 [11:33:16]NVStorageSaveData ofd_packets/00201897 [11:33:16]File name is /storage/ofd_packets/00201897 [11:33:16]Write 298 bytes [11:33:16]NVStorageSaveData done [11:33:16]OFDSenderStorePacket done [11:33:16]KKMCreateOFDPacket done [11:33:16]NVStorageSaveData kkm_last_timestamp [11:33:16]File name is /storage/kkm_last_timestamp [11:33:16]Write 4 bytes [11:33:16]NVStorageSaveData done [11:33:16]ExternCall_PrintAddStr [11:33:16]wPrintStart [11:33:16]Write to MH i2c: 01 00 00 48 04 4C [11:33:16]Write i2c OK [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: 01 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: 01 07 00 [11:33:16]MH_I2C_Read... [11:33:16]Read from MH i2c: 01 07 00 48 04 00 00 00 00 00 FF 0F 61 [11:33:16]RasterBufferAndPrint [11:33:16]line Счет N : (1)449656 [11:33:16]line ИНН: 02508201610067 [11:33:16]line Контрольно-Кассовый Чек [11:33:16]line ПРОДАЖА [11:33:16]line ТРК (МРК, ГНК) : 21 [11:33:16]line Товар: 2710194210 [11:33:16]line ДТ-К-2 [11:33:16]line 23.630 * 76.20 [11:33:16]line = 1800.61 [11:33:16]line НДС 12% НСП 1% [11:33:16]line > о реализуемом товаре [11:33:16]line ОКРУГЛЕНИЕ: -0.61 [11:33:16]line ИТОГО: 1800.00 [11:33:16]line Внесено: 1800.00 [11:33:16]line СДАЧА: 0.00 [11:33:16]line НСП 1% : 15.93 [11:33:16]line НДС 12% : 191.21 [11:33:16]line Наличными: 1800.00 [11:33:16]line Безнал.: 0.00 [11:33:16]line Место: АЗС № 171 "Партнер Нефть" [11:33:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:33:16]line СНО: Общий режим [11:33:16]line Чек 189 27.10.2024 11:33 [11:33:16]line Смена: 544 ФФД: 1.0 [11:33:16]line ЗНМ: 0300000109 [11:33:16]line РНМ: 0000000000091777 [11:33:16]line Версия ККМ: 001 [11:33:16]line ФМ: 0000000000871756 [11:33:16]line ФД: 201897 [11:33:16]line ФПД: 115308963435873 [11:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113315&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201897&fm=115308963435873&tin=02508201610067®Number=0000000000091777&sum=180000 [11:33:17]OFD Sender: Processing packet 201897 [packets to send 112, broken 111] [11:33:17]ProducePacketName [11:33:17]name=ofd_packets/00201897 [11:33:17]OFD Sender: To server: pG, [11:33:17]CommunicateWithHost lk.salyk.kg:30040 [11:33:17]ConnectInit lk.salyk.kg [11:33:17]written 0, free lines is 4095 [11:33:17]Connected sock=10 [11:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 77 03 04 01 75 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 FB 24 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 14 03 00 35 04 06 00 68 DF 75 CE 15 61 6D CE 16 D5 49 74 29 EC [11:33:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F5 D1 47 00 9A E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 14 03 00 F4 03 04 00 B5 D0 1D 67 B6 04 01 00 00 E4 6C 58 C5 BC E9 6E 39 [11:33:17]CommunicateWithHost err = 0 [11:33:17]CheckOFDResponse [11:33:17]1017 (14) - 77093643461234 [11:33:17]1041 (16) - 0000000000871756 [11:33:17]1040 (4) - 201897 [11:33:17]1012 (4) - 27.10.2024 05:33 [11:33:17]1206 (1) - 0 [11:33:17]OFD Sender: Remove packet 201897 [11:33:17]ProducePacketName [11:33:17]name=ofd_packets/00201897 [11:33:17]NVStorageDeleteData [11:33:17]Write to MH i2c: 01 00 00 73 04 77 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 07 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 8A 0C 14 [11:33:17]RasterBufferAndPrint [11:33:17]line [11:33:17]line [11:33:17]line [11:33:17]line [11:33:17]line [11:33:17]written 0, free lines is 3215 [11:33:17]MH_Cut [11:33:17]Write to MH i2c: D1 01 00 7A 04 01 50 [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: D1 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: D1 01 00 [11:33:17]MH_I2C_Read... [11:33:17]Read from MH i2c: D1 01 00 7A 04 00 4F [11:33:17]Write to MH i2c: 01 00 00 7B 04 7F [11:33:17]Write i2c OK [11:33:17]MH_I2C_Read... [11:33:18]OFD Sender: No OFD packet to send [11:33:18]*** Cut start [11:33:18]*** Purtial cut [11:33:18]*** Stage 1: CUTSNS_PIN = 1 [11:33:18]Read from MH i2c: 01 [11:33:18]MH_I2C_Read... [11:33:18]*** Stop cut motor [11:33:18]*** Cut end [11:33:18]Read from MH i2c: 01 07 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [11:33:18]process_action close_receipt done [11:33:18]requested_data is exist [11:33:18]produce_requested_data [11:33:18]requested_item fm.sn is exist - process it [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 11 00 00 [11:33:18]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 17 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [11:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:33:18]wFMCommunicate OK [11:33:18]requested_item fd.num is exist - process it [11:33:18]SAM_PROTO_GetFieldsCounters [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 13 00 00 [11:33:18]Write to MH i2c: E2 08 00 7D 04 80 13 00 00 00 00 00 00 FD [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:18]Read from MH i2c: E2 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 62 00 [11:33:18]MH_I2C_Read... [11:33:18]Read from MH i2c: E2 62 00 7D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [11:33:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:18]wFMCommunicate OK [11:33:18]SAM_PROTO_GetFieldsCounters done [11:33:18]requested_item shift.num is exist - process it [11:33:18]requested_item shift.opened is exist - process it [11:33:18]req_shift_opened [11:33:18]FM_GetShiftState [11:33:18]SAM_PROTO_GetShiftState [11:33:18]wFMCommunicate request_size=4 [11:33:18]MH_SAM_APDU [11:33:18]CAPDU: 80 13 01 00 [11:33:18]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [11:33:18]Write i2c OK [11:33:18]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 0E 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 01 [11:33:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:33:19]wFMCommunicate OK [11:33:19]SAM_PROTO_GetShiftState done [11:33:19]FM_GetShiftState done [11:33:19]req_shift_opened done [11:33:19]requested_item shift.open_date is exist - process it [11:33:19]req_shift_open_date [11:33:19]req_shift_open_date done [11:33:19]produce_requested_data done [11:33:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201897,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:33:19]process_action_free close_receipt [11:33:19]json_value_free [11:33:19]json_value_free done [11:33:19]process_json_proto returns [11:33:19]Send response to host [11:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201897,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:33:19]free response buf [11:33:19]execute_script done [11:33:19]execute_script returns [11:33:19]free content buf [11:33:19]Sock 8.Close socket [11:33:19]Sock 8.Thread stoped [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:07]accept exits with 9 [11:35:07]New connection [11:35:07]New thread 3066498404 created [11:35:07]Thread 3066641764 joined [11:35:07]Waiting for new connection... [11:35:07] Sock 9.Parse request [11:35:07]Sock 9.Check first char [11:35:07]Sock 9.First char is OK [11:35:07]request: POST /json_proto HTTP/1.0 [11:35:07]Method: POST [11:35:07]URL: /json_proto [11:35:07]Method is POST - this is cgi request [11:35:07]url: /json_proto [11:35:07]query_string will be loaded in cgi processing [11:35:07]execute_cgi json_proto POST (null) [11:35:07]execute_cgi path=json_proto method=POST [11:35:07]POST find Content-Length [11:35:07]Host: 172.17.63.195:8080 [11:35:07]Content-Length: 679 [11:35:07]Content-Type: application/json [11:35:07] [11:35:07]POST finish read [11:35:07]Found Content-Length = 679 [11:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:35:07]execute_script... [11:35: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)449659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:35:07]POST & json_proto [11:35:07]process_json_proto [11:35:07]json parsed OK: [11:35:07]protocol is kg_v1.0 [11:35:07]action value=close_receipt [11:35:07]process_action close_receipt [11:35:07]cmd_close_receipt [11:35:07]MH_GetDate [11:35:07]Write to MH i2c: F0 00 00 7F 04 72 [11:35:07]Write i2c OK [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: F0 [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: F0 09 00 [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: F0 09 00 7F 04 00 6B 25 1E 67 47 1B 1E 67 77 [11:35:07]GetLastDocTimeStamp 1730028795 [11:35:07]current date 1730028907 [11:35:07]FM_GetShiftState [11:35:07]SAM_PROTO_GetShiftState [11:35:07]wFMCommunicate request_size=4 [11:35:07]MH_SAM_APDU [11:35:07]CAPDU: 80 13 01 00 [11:35:07]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [11:35:07]Write i2c OK [11:35:07]MH_I2C_Read... [11:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:07]Read from MH i2c: E2 [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: E2 0E 00 [11:35:07]MH_I2C_Read... [11:35:07]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 03 [11:35:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:35:07]wFMCommunicate OK [11:35:07]SAM_PROTO_GetShiftState done [11:35:07]FM_GetShiftState done [11:35:07]opened in 1729987312 [11:35:07]opened+sec_in_day 1730073712 [11:35:07]quantity*price = 100050 [11:35:07]sum+1 = 100052 [11:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 190 27.10.2024 11:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201898 ФПД: 146094233919025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113507&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201898&fm=146094233919025&tin=02508201610067®Number=0000000000091777&sum=100000 [11:35:08]StoreToDocumentArchive [11:35:08]shift 544 fd 201898 [11:35:08]save to /storage/0544/doc_00201898 [11:35:08]save last doc name /storage/0544/doc_00201898 to /storage/kkm_last_doc_name [11:35:08]save OK [11:35:08]Clear old archive folders... [11:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:08]tlvbuf is 011B3870 [11:35:08]SAM_PROTO_ClearQueue [11:35:08]wFMCommunicate request_size=4 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 09 00 00 [11:35:08]Write to MH i2c: E2 08 00 8D 04 80 09 00 00 00 00 00 00 03 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 03 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [11:35:08]RAPDU: 90 00 [11:35:08]wFMCommunicate OK [11:35:08]SAM_PROTO_ClearQueue done [11:35:08]KKMCreateOFDPacket [11:35:08]OFDProtocolAddRootSTLVToBuf [11:35:08]FM_MakeSignedData [11:35:08]FM_MakeSignedData [11:35:08]SAM_PROTO_SignData [11:35:08]wFMCommunicate request_size=4 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 0D 01 02 [11:35:08]Write to MH i2c: E2 08 00 8E 04 80 0D 01 02 00 00 00 00 0B [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 03 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [11:35:08]RAPDU: 90 00 [11:35:08]wFMCommunicate OK [11:35:08]wFMCommunicate request_size=255 [11:35:08]MH_SAM_APDU [11:35:08]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 32 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 BE 00 00 00 F4 03 04 00 6B 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 14 03 00 35 04 06 00 84 DF 36 EA [11:35:08]Write to MH i2c: E2 02 01 8F 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 BE 00 00 00 F4 03 04 00 6B 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 14 03 00 35 04 06 00 84 DF 36 EA 00 00 CE [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 03 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [11:35:08]RAPDU: 90 00 [11:35:08]wFMCommunicate OK [11:35:08]wFMCommunicate request_size=7 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 0D 02 02 02 9E 31 [11:35:08]Write to MH i2c: E2 0A 00 90 04 80 0D 02 02 02 00 9E 31 00 00 E1 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 03 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [11:35:08]RAPDU: 90 00 [11:35:08]wFMCommunicate OK [11:35:08]wFMCommunicate request_size=4 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 0D 03 02 [11:35:08]Write to MH i2c: E2 08 00 91 04 80 0D 03 02 00 00 00 00 10 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 0B 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 0B 00 91 04 00 E5 69 B9 EA 32 ED CC 0B 90 00 F8 [11:35:08]RAPDU: E5 69 B9 EA 32 ED CC 0B 90 00 [11:35:08]wFMCommunicate OK [11:35:08]SAM_PROTO_SignData done [11:35:08]FM_MakeSignedData done [11:35:08]CreateOFDProtocolMessage [11:35:08]wFMCommunicate request_size=4 [11:35:08]MH_SAM_APDU [11:35:08]CAPDU: 80 11 00 00 [11:35:08]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:08]Read from MH i2c: E2 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 17 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 65 [11:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:35:08]wFMCommunicate OK [11:35:08]CreateOFDProtocolMessage done [11:35:08]OFDSenderStorePacket 201898 [11:35:08]StoreOFDPacket docnum=201898 [11:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DE 3A 04 01 68 85 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 32 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 BE 00 00 00 F4 03 04 00 6B 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 14 03 00 35 04 06 00 84 DF 36 EA 9E 31 E5 69 B9 EA 32 ED CC 0B [11:35:08]CheckFolder [11:35:08]dirname=/storage/ofd_packets [11:35:08]CheckFolder done [11:35:08]ProducePacketName [11:35:08]name=ofd_packets/00201898 [11:35:08]NVStorageSaveData ofd_packets/00201898 [11:35:08]File name is /storage/ofd_packets/00201898 [11:35:08]Write 298 bytes [11:35:08]NVStorageSaveData done [11:35:08]OFDSenderStorePacket done [11:35:08]KKMCreateOFDPacket done [11:35:08]NVStorageSaveData kkm_last_timestamp [11:35:08]File name is /storage/kkm_last_timestamp [11:35:08]Write 4 bytes [11:35:08]NVStorageSaveData done [11:35:08]ExternCall_PrintAddStr [11:35:08]wPrintStart [11:35:08]Write to MH i2c: 01 00 00 93 04 97 [11:35:08]Write i2c OK [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: 01 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: 01 07 00 [11:35:08]MH_I2C_Read... [11:35:08]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 FF 0F AC [11:35:08]RasterBufferAndPrint [11:35:08]line Счет N : (1)449659 [11:35:08]line ИНН: 02508201610067 [11:35:08]line Контрольно-Кассовый Чек [11:35:08]line ПРОДАЖА [11:35:08]line ТРК (МРК, ГНК) : 11 [11:35:08]line Товар: 2710194210 [11:35:08]line ДТ-К-2 [11:35:08]line 13.130 * 76.20 [11:35:08]line = 1000.51 [11:35:08]line НДС 12% НСП 1% [11:35:08]line > о реализуемом товаре [11:35:08]line ОКРУГЛЕНИЕ: -0.51 [11:35:08]line ИТОГО: 1000.00 [11:35:08]line Внесено: 1000.00 [11:35:08]line СДАЧА: 0.00 [11:35:08]line НСП 1% : 8.85 [11:35:08]line НДС 12% : 106.25 [11:35:08]line Наличными: 1000.00 [11:35:08]line Безнал.: 0.00 [11:35:08]line Место: АЗС № 171 "Партнер Нефть" [11:35:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:35:08]line СНО: Общий режим [11:35:08]line Чек 190 27.10.2024 11:35 [11:35:08]line Смена: 544 ФФД: 1.0 [11:35:08]line ЗНМ: 0300000109 [11:35:08]line РНМ: 0000000000091777 [11:35:08]line Версия ККМ: 001 [11:35:08]line ФМ: 0000000000871756 [11:35:08]line ФД: 201898 [11:35:08]line ФПД: 146094233919025 [11:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113507&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201898&fm=146094233919025&tin=02508201610067®Number=0000000000091777&sum=100000 [11:35:09]OFD Sender: Processing packet 201898 [packets to send 112, broken 111] [11:35:09]ProducePacketName [11:35:09]name=ofd_packets/00201898 [11:35:09]OFD Sender: To server: pG, [11:35:09]CommunicateWithHost lk.salyk.kg:30040 [11:35:09]ConnectInit lk.salyk.kg [11:35:09]written 0, free lines is 4095 [11:35:09]Connected sock=11 [11:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DE 3A 04 01 68 85 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 32 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 BE 00 00 00 F4 03 04 00 6B 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 14 03 00 35 04 06 00 84 DF 36 EA 9E 31 E5 69 B9 EA 32 ED CC 0B [11:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F 5E 47 00 00 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 14 03 00 F4 03 04 00 25 D1 1D 67 B6 04 01 00 00 E2 25 70 D3 96 82 B3 0B [11:35:09]CommunicateWithHost err = 0 [11:35:09]CheckOFDResponse [11:35:09]1017 (14) - 77093643461234 [11:35:09]1041 (16) - 0000000000871756 [11:35:09]1040 (4) - 201898 [11:35:09]1012 (4) - 27.10.2024 05:35 [11:35:09]1206 (1) - 0 [11:35:09]OFD Sender: Remove packet 201898 [11:35:09]ProducePacketName [11:35:09]name=ofd_packets/00201898 [11:35:09]NVStorageDeleteData [11:35:09]Write to MH i2c: 01 00 00 BE 04 C2 [11:35:09]Write i2c OK [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: 01 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: 01 07 00 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 86 0C 5B [11:35:09]RasterBufferAndPrint [11:35:09]line [11:35:09]line [11:35:09]line [11:35:09]line [11:35:09]line [11:35:09]written 0, free lines is 3210 [11:35:09]MH_Cut [11:35:09]Write to MH i2c: D1 01 00 C5 04 01 9B [11:35:09]Write i2c OK [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: D1 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: D1 01 00 [11:35:09]MH_I2C_Read... [11:35:09]Read from MH i2c: D1 01 00 C5 04 00 9A [11:35:09]Write to MH i2c: 01 00 00 C6 04 CA [11:35:09]Write i2c OK [11:35:09]MH_I2C_Read... [11:35:10]OFD Sender: No OFD packet to send [11:35:10]*** Cut start [11:35:10]*** Purtial cut [11:35:10]*** CUTSNS_PIN = 0 [11:35:10]*** Stage 1: CUTSNS_PIN = 1 [11:35:12]Read from MH i2c: 01 [11:35:12]MH_I2C_Read... [11:35:12]*** Stop cut motor [11:35:12]*** Cut end [11:35:12]Read from MH i2c: 01 07 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [11:35:12]process_action close_receipt done [11:35:12]requested_data is exist [11:35:12]produce_requested_data [11:35:12]requested_item fm.sn is exist - process it [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 11 00 00 [11:35:12]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:12]Read from MH i2c: E2 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 17 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [11:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:35:12]wFMCommunicate OK [11:35:12]requested_item fd.num is exist - process it [11:35:12]SAM_PROTO_GetFieldsCounters [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 13 00 00 [11:35:12]Write to MH i2c: E2 08 00 C8 04 80 13 00 00 00 00 00 00 48 [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:12]Read from MH i2c: E2 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 62 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 62 00 C8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [11:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:12]wFMCommunicate OK [11:35:12]SAM_PROTO_GetFieldsCounters done [11:35:12]requested_item shift.num is exist - process it [11:35:12]requested_item shift.opened is exist - process it [11:35:12]req_shift_opened [11:35:12]FM_GetShiftState [11:35:12]SAM_PROTO_GetShiftState [11:35:12]wFMCommunicate request_size=4 [11:35:12]MH_SAM_APDU [11:35:12]CAPDU: 80 13 01 00 [11:35:12]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [11:35:12]Write i2c OK [11:35:12]MH_I2C_Read... [11:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:12]Read from MH i2c: E2 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 0E 00 [11:35:12]MH_I2C_Read... [11:35:12]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4C [11:35:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:35:12]wFMCommunicate OK [11:35:12]SAM_PROTO_GetShiftState done [11:35:12]FM_GetShiftState done [11:35:12]req_shift_opened done [11:35:12]requested_item shift.open_date is exist - process it [11:35:12]req_shift_open_date [11:35:12]req_shift_open_date done [11:35:12]produce_requested_data done [11:35:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201898,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:35:12]process_action_free close_receipt [11:35:12]json_value_free [11:35:12]json_value_free done [11:35:12]process_json_proto returns [11:35:12]Send response to host [11:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201898,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:35:12]free response buf [11:35:12]execute_script done [11:35:12]execute_script returns [11:35:12]free content buf [11:35:12]Sock 9.Close socket [11:35:12]Sock 9.Thread stoped [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:21]accept exits with 8 [11:35:21]New connection [11:35:21]New thread 3066641764 created [11:35:21]Thread 3066498404 joined [11:35:21]Waiting for new connection... [11:35:21] Sock 8.Parse request [11:35:21]Sock 8.Check first char [11:35:21]Sock 8.First char is OK [11:35:21]request: POST /json_proto HTTP/1.0 [11:35:21]Method: POST [11:35:21]URL: /json_proto [11:35:21]Method is POST - this is cgi request [11:35:21]url: /json_proto [11:35:21]query_string will be loaded in cgi processing [11:35:21]execute_cgi json_proto POST (null) [11:35:21]execute_cgi path=json_proto method=POST [11:35:21]POST find Content-Length [11:35:21]Host: 172.17.63.195:8080 [11:35:21]Content-Length: 679 [11:35:21]Content-Type: application/json [11:35:21] [11:35:21]POST finish read [11:35:21]Found Content-Length = 679 [11:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:21]execute_script... [11:35: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)449658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:21]POST & json_proto [11:35:21]process_json_proto [11:35:21]json parsed OK: [11:35:21]protocol is kg_v1.0 [11:35:21]action value=close_receipt [11:35:21]process_action close_receipt [11:35:21]cmd_close_receipt [11:35:21]MH_GetDate [11:35:21]Write to MH i2c: F0 00 00 CA 04 BD [11:35:21]Write i2c OK [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: F0 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: F0 09 00 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: F0 09 00 CA 04 00 79 25 1E 67 47 1B 1E 67 D0 [11:35:21]GetLastDocTimeStamp 1730028907 [11:35:21]current date 1730028921 [11:35:21]FM_GetShiftState [11:35:21]SAM_PROTO_GetShiftState [11:35:21]wFMCommunicate request_size=4 [11:35:21]MH_SAM_APDU [11:35:21]CAPDU: 80 13 01 00 [11:35:21]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [11:35:21]Write i2c OK [11:35:21]MH_I2C_Read... [11:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:21]Read from MH i2c: E2 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: E2 0E 00 [11:35:21]MH_I2C_Read... [11:35:21]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4E [11:35:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:35:21]wFMCommunicate OK [11:35:21]SAM_PROTO_GetShiftState done [11:35:21]FM_GetShiftState done [11:35:21]opened in 1729987312 [11:35:21]opened+sec_in_day 1730073712 [11:35:21]quantity*price = 150037 [11:35:21]sum+1 = 150039 [11:35:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 191 27.10.2024 11:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201899 ФПД: 46570155787583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113521&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201899&fm=46570155787583&tin=02508201610067®Number=0000000000091777&sum=150000 [11:35:22]StoreToDocumentArchive [11:35:22]shift 544 fd 201899 [11:35:22]save to /storage/0544/doc_00201899 [11:35:22]save last doc name /storage/0544/doc_00201899 to /storage/kkm_last_doc_name [11:35:22]save OK [11:35:22]Clear old archive folders... [11:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:22]tlvbuf is 0119C5D0 [11:35:22]SAM_PROTO_ClearQueue [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 09 00 00 [11:35:22]Write to MH i2c: E2 08 00 D8 04 80 09 00 00 00 00 00 00 4E [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [11:35:22]RAPDU: 90 00 [11:35:22]wFMCommunicate OK [11:35:22]SAM_PROTO_ClearQueue done [11:35:22]KKMCreateOFDPacket [11:35:22]OFDProtocolAddRootSTLVToBuf [11:35:22]FM_MakeSignedData [11:35:22]FM_MakeSignedData [11:35:22]SAM_PROTO_SignData [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 0D 01 02 [11:35:22]Write to MH i2c: E2 08 00 D9 04 80 0D 01 02 00 00 00 00 56 [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [11:35:22]RAPDU: 90 00 [11:35:22]wFMCommunicate OK [11:35:22]wFMCommunicate request_size=255 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 79 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 14 03 00 35 04 06 00 2A 5A F5 97 [11:35:22]Write to MH i2c: E2 02 01 DA 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 79 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 14 03 00 35 04 06 00 2A 5A F5 97 00 00 2D [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:23]Read from MH i2c: E2 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 03 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [11:35:23]RAPDU: 90 00 [11:35:23]wFMCommunicate OK [11:35:23]wFMCommunicate request_size=7 [11:35:23]MH_SAM_APDU [11:35:23]CAPDU: 80 0D 02 02 02 C5 3F [11:35:23]Write to MH i2c: E2 0A 00 DB 04 80 0D 02 02 02 00 C5 3F 00 00 61 [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:23]Read from MH i2c: E2 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 03 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [11:35:23]RAPDU: 90 00 [11:35:23]wFMCommunicate OK [11:35:23]wFMCommunicate request_size=4 [11:35:23]MH_SAM_APDU [11:35:23]CAPDU: 80 0D 03 02 [11:35:23]Write to MH i2c: E2 08 00 DC 04 80 0D 03 02 00 00 00 00 5B [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:23]Read from MH i2c: E2 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 0B 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 0B 00 DC 04 00 55 6D 71 DF C4 73 97 83 90 00 BF [11:35:23]RAPDU: 55 6D 71 DF C4 73 97 83 90 00 [11:35:23]wFMCommunicate OK [11:35:23]SAM_PROTO_SignData done [11:35:23]FM_MakeSignedData done [11:35:23]CreateOFDProtocolMessage [11:35:23]wFMCommunicate request_size=4 [11:35:23]MH_SAM_APDU [11:35:23]CAPDU: 80 11 00 00 [11:35:23]Write to MH i2c: E2 08 00 DD 04 80 11 00 00 00 00 00 00 5B [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:23]Read from MH i2c: E2 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 17 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: E2 17 00 DD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B0 [11:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:35:23]wFMCommunicate OK [11:35:23]CreateOFDProtocolMessage done [11:35:23]OFDSenderStorePacket 201899 [11:35:23]StoreOFDPacket docnum=201899 [11:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 35 1E 04 01 72 22 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 79 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 14 03 00 35 04 06 00 2A 5A F5 97 C5 3F 55 6D 71 DF C4 73 97 83 [11:35:23]CheckFolder [11:35:23]dirname=/storage/ofd_packets [11:35:23]CheckFolder done [11:35:23]ProducePacketName [11:35:23]name=ofd_packets/00201899 [11:35:23]NVStorageSaveData ofd_packets/00201899 [11:35:23]File name is /storage/ofd_packets/00201899 [11:35:23]Write 298 bytes [11:35:23]NVStorageSaveData done [11:35:23]OFDSenderStorePacket done [11:35:23]KKMCreateOFDPacket done [11:35:23]NVStorageSaveData kkm_last_timestamp [11:35:23]File name is /storage/kkm_last_timestamp [11:35:23]Write 4 bytes [11:35:23]NVStorageSaveData done [11:35:23]ExternCall_PrintAddStr [11:35:23]wPrintStart [11:35:23]Write to MH i2c: 01 00 00 DE 04 E2 [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 07 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 07 00 DE 04 00 00 00 00 00 FF 0F F7 [11:35:23]RasterBufferAndPrint [11:35:23]line Счет N : (1)449658 [11:35:23]line ИНН: 02508201610067 [11:35:23]line Контрольно-Кассовый Чек [11:35:23]line ПРОДАЖА [11:35:23]line ТРК (МРК, ГНК) : 33 [11:35:23]line Товар: 2710194210 [11:35:23]line ДТ-К-2 [11:35:23]line 19.690 * 76.20 [11:35:23]line = 1500.38 [11:35:23]line НДС 12% НСП 1% [11:35:23]line > о реализуемом товаре [11:35:23]line ОКРУГЛЕНИЕ: -0.38 [11:35:23]line ИТОГО: 1500.00 [11:35:23]line Внесено: 1500.00 [11:35:23]line СДАЧА: 0.00 [11:35:23]line НСП 1% : 13.28 [11:35:23]line НДС 12% : 159.33 [11:35:23]line Наличными: 1500.00 [11:35:23]line Безнал.: 0.00 [11:35:23]line Место: АЗС № 171 "Партнер Нефть" [11:35:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:35:23]line СНО: Общий режим [11:35:23]line Чек 191 27.10.2024 11:35 [11:35:23]line Смена: 544 ФФД: 1.0 [11:35:23]line ЗНМ: 0300000109 [11:35:23]line РНМ: 0000000000091777 [11:35:23]line Версия ККМ: 001 [11:35:23]line ФМ: 0000000000871756 [11:35:23]line ФД: 201899 [11:35:23]line ФПД: 46570155787583 [11:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113521&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201899&fm=46570155787583&tin=02508201610067®Number=0000000000091777&sum=150000 [11:35:23]OFD Sender: Processing packet 201899 [packets to send 112, broken 111] [11:35:23]ProducePacketName [11:35:23]name=ofd_packets/00201899 [11:35:23]OFD Sender: To server: pG, [11:35:23]CommunicateWithHost lk.salyk.kg:30040 [11:35:23]ConnectInit lk.salyk.kg [11:35:23]written 0, free lines is 4095 [11:35:23]Connected sock=10 [11:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 35 1E 04 01 72 22 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 79 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 14 03 00 35 04 06 00 2A 5A F5 97 C5 3F 55 6D 71 DF C4 73 97 83 [11:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B5 76 47 00 5D 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 14 03 00 F4 03 04 00 34 D1 1D 67 B6 04 01 00 00 58 FF FB DA BF 2B E7 FE [11:35:23]CommunicateWithHost err = 0 [11:35:23]CheckOFDResponse [11:35:23]1017 (14) - 77093643461234 [11:35:23]1041 (16) - 0000000000871756 [11:35:23]1040 (4) - 201899 [11:35:23]1012 (4) - 27.10.2024 05:35 [11:35:23]1206 (1) - 0 [11:35:23]OFD Sender: Remove packet 201899 [11:35:23]ProducePacketName [11:35:23]name=ofd_packets/00201899 [11:35:23]NVStorageDeleteData [11:35:23]Write to MH i2c: 01 00 00 09 05 0E [11:35:23]Write i2c OK [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 07 00 [11:35:23]MH_I2C_Read... [11:35:23]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 86 0C A7 [11:35:23]RasterBufferAndPrint [11:35:23]line [11:35:23]line [11:35:23]line [11:35:23]line [11:35:23]line [11:35:23]written 0, free lines is 3211 [11:35:24]MH_Cut [11:35:24]Write to MH i2c: D1 01 00 10 05 01 E7 [11:35:24]Write i2c OK [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: D1 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: D1 01 00 [11:35:24]MH_I2C_Read... [11:35:24]Read from MH i2c: D1 01 00 10 05 00 E6 [11:35:24]Write to MH i2c: 01 00 00 11 05 16 [11:35:24]Write i2c OK [11:35:24]MH_I2C_Read... [11:35:24]OFD Sender: No OFD packet to send [11:35:24]*** Cut start [11:35:24]*** Purtial cut [11:35:24]*** Stage 1: CUTSNS_PIN = 1 [11:35:25]Read from MH i2c: 01 [11:35:25]MH_I2C_Read... [11:35:25]*** Stop cut motor [11:35:25]*** Cut end [11:35:25]Read from MH i2c: 01 07 00 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 FF 0F 2B [11:35:25]process_action close_receipt done [11:35:25]requested_data is exist [11:35:25]produce_requested_data [11:35:25]requested_item fm.sn is exist - process it [11:35:25]wFMCommunicate request_size=4 [11:35:25]MH_SAM_APDU [11:35:25]CAPDU: 80 11 00 00 [11:35:25]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [11:35:25]Write i2c OK [11:35:25]MH_I2C_Read... [11:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:25]Read from MH i2c: E2 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: E2 17 00 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E6 [11:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:35:25]wFMCommunicate OK [11:35:25]requested_item fd.num is exist - process it [11:35:25]SAM_PROTO_GetFieldsCounters [11:35:25]wFMCommunicate request_size=4 [11:35:25]MH_SAM_APDU [11:35:25]CAPDU: 80 13 00 00 [11:35:25]Write to MH i2c: E2 08 00 13 05 80 13 00 00 00 00 00 00 94 [11:35:25]Write i2c OK [11:35:25]MH_I2C_Read... [11:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:25]Read from MH i2c: E2 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: E2 62 00 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: E2 62 00 13 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [11:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:25]wFMCommunicate OK [11:35:25]SAM_PROTO_GetFieldsCounters done [11:35:25]requested_item shift.num is exist - process it [11:35:25]requested_item shift.opened is exist - process it [11:35:25]req_shift_opened [11:35:25]FM_GetShiftState [11:35:25]SAM_PROTO_GetShiftState [11:35:25]wFMCommunicate request_size=4 [11:35:25]MH_SAM_APDU [11:35:25]CAPDU: 80 13 01 00 [11:35:25]Write to MH i2c: E2 08 00 14 05 80 13 01 00 00 00 00 00 96 [11:35:25]Write i2c OK [11:35:25]MH_I2C_Read... [11:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:25]Read from MH i2c: E2 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: E2 0E 00 [11:35:25]MH_I2C_Read... [11:35:25]Read from MH i2c: E2 0E 00 14 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 98 [11:35:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:35:25]wFMCommunicate OK [11:35:25]SAM_PROTO_GetShiftState done [11:35:25]FM_GetShiftState done [11:35:25]req_shift_opened done [11:35:25]requested_item shift.open_date is exist - process it [11:35:25]req_shift_open_date [11:35:25]req_shift_open_date done [11:35:25]produce_requested_data done [11:35:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201899,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:35:25]process_action_free close_receipt [11:35:25]json_value_free [11:35:25]json_value_free done [11:35:25]process_json_proto returns [11:35:25]Send response to host [11:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201899,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:35:25]free response buf [11:35:25]execute_script done [11:35:25]execute_script returns [11:35:25]free content buf [11:35:25]Sock 8.Close socket [11:35:25]Sock 8.Thread stoped [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:40]accept exits with 9 [11:35:40]New connection [11:35:40]New thread 3066498404 created [11:35:40]Thread 3066641764 joined [11:35:40]Waiting for new connection... [11:35:40] Sock 9.Parse request [11:35:40]Sock 9.Check first char [11:35:40]Sock 9.First char is OK [11:35:40]request: POST /json_proto HTTP/1.0 [11:35:40]Method: POST [11:35:40]URL: /json_proto [11:35:40]Method is POST - this is cgi request [11:35:40]url: /json_proto [11:35:40]query_string will be loaded in cgi processing [11:35:40]execute_cgi json_proto POST (null) [11:35:40]execute_cgi path=json_proto method=POST [11:35:40]POST find Content-Length [11:35:40]Host: 172.17.63.195:8080 [11:35:40]Content-Length: 682 [11:35:40]Content-Type: application/json [11:35:40] [11:35:40]POST finish read [11:35:40]Found Content-Length = 682 [11:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [11:35:40]execute_script... [11:35:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [11:35:40]POST & json_proto [11:35:40]process_json_proto [11:35:40]json parsed OK: [11:35:40]protocol is kg_v1.0 [11:35:40]action value=close_receipt [11:35:40]process_action close_receipt [11:35:40]cmd_close_receipt [11:35:40]MH_GetDate [11:35:40]Write to MH i2c: F0 00 00 15 05 09 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: F0 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: F0 09 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: F0 09 00 15 05 00 8D 25 1E 67 47 1B 1E 67 30 [11:35:40]GetLastDocTimeStamp 1730028921 [11:35:40]current date 1730028941 [11:35:40]FM_GetShiftState [11:35:40]SAM_PROTO_GetShiftState [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 13 01 00 [11:35:40]Write to MH i2c: E2 08 00 16 05 80 13 01 00 00 00 00 00 98 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 0E 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 0E 00 16 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9A [11:35:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:35:40]wFMCommunicate OK [11:35:40]SAM_PROTO_GetShiftState done [11:35:40]FM_GetShiftState done [11:35:40]opened in 1729987312 [11:35:40]opened+sec_in_day 1730073712 [11:35:40]quantity*price = 100021 [11:35:40]sum+1 = 100023 [11:35:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 192 27.10.2024 11:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201900 ФПД: 238832185209795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113541&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201900&fm=238832185209795&tin=02508201610067®Number=0000000000091777&sum=100000 [11:35:41]StoreToDocumentArchive [11:35:41]shift 544 fd 201900 [11:35:41]save to /storage/0544/doc_00201900 [11:35:41]save last doc name /storage/0544/doc_00201900 to /storage/kkm_last_doc_name [11:35:41]save OK [11:35:41]Clear old archive folders... [11:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:41]tlvbuf is 0119DF10 [11:35:41]SAM_PROTO_ClearQueue [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 09 00 00 [11:35:41]Write to MH i2c: E2 08 00 23 05 80 09 00 00 00 00 00 00 9A [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [11:35:41]RAPDU: 90 00 [11:35:41]wFMCommunicate OK [11:35:41]SAM_PROTO_ClearQueue done [11:35:41]KKMCreateOFDPacket [11:35:41]OFDProtocolAddRootSTLVToBuf [11:35:41]FM_MakeSignedData [11:35:41]FM_MakeSignedData [11:35:41]SAM_PROTO_SignData [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 0D 01 02 [11:35:41]Write to MH i2c: E2 08 00 24 05 80 0D 01 02 00 00 00 00 A2 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [11:35:41]RAPDU: 90 00 [11:35:41]wFMCommunicate OK [11:35:41]wFMCommunicate request_size=255 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 C0 00 00 00 F4 03 04 00 8D 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 14 03 00 35 04 06 00 D9 [11:35:41]Write to MH i2c: E2 02 01 25 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 C0 00 00 00 F4 03 04 00 8D 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 14 03 00 35 04 06 00 D9 00 00 09 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 03 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [11:35:42]RAPDU: 90 00 [11:35:42]wFMCommunicate OK [11:35:42]wFMCommunicate request_size=10 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 0D 02 02 05 37 73 8F 73 C3 [11:35:42]Write to MH i2c: E2 0D 00 26 05 80 0D 02 02 05 00 37 73 8F 73 C3 00 00 1E [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 03 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [11:35:42]RAPDU: 90 00 [11:35:42]wFMCommunicate OK [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 0D 03 02 [11:35:42]Write to MH i2c: E2 08 00 27 05 80 0D 03 02 00 00 00 00 A7 [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0B 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 0B 00 27 05 00 04 41 07 8C 55 21 39 8F 90 00 BE [11:35:42]RAPDU: 04 41 07 8C 55 21 39 8F 90 00 [11:35:42]wFMCommunicate OK [11:35:42]SAM_PROTO_SignData done [11:35:42]FM_MakeSignedData done [11:35:42]CreateOFDProtocolMessage [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 11 00 00 [11:35:42]Write to MH i2c: E2 08 00 28 05 80 11 00 00 00 00 00 00 A7 [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 17 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 17 00 28 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FC [11:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:35:42]wFMCommunicate OK [11:35:42]CreateOFDProtocolMessage done [11:35:42]OFDSenderStorePacket 201900 [11:35:42]StoreOFDPacket docnum=201900 [11:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2C 40 07 01 9D CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 C0 00 00 00 F4 03 04 00 8D 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 14 03 00 35 04 06 00 D9 37 73 8F 73 C3 04 41 07 8C 55 21 39 8F [11:35:42]CheckFolder [11:35:42]dirname=/storage/ofd_packets [11:35:42]CheckFolder done [11:35:42]ProducePacketName [11:35:42]name=ofd_packets/00201900 [11:35:42]NVStorageSaveData ofd_packets/00201900 [11:35:42]File name is /storage/ofd_packets/00201900 [11:35:42]Write 301 bytes [11:35:42]NVStorageSaveData done [11:35:42]OFDSenderStorePacket done [11:35:42]KKMCreateOFDPacket done [11:35:42]NVStorageSaveData kkm_last_timestamp [11:35:42]File name is /storage/kkm_last_timestamp [11:35:42]Write 4 bytes [11:35:42]NVStorageSaveData done [11:35:42]ExternCall_PrintAddStr [11:35:42]wPrintStart [11:35:42]Write to MH i2c: 01 00 00 29 05 2E [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 07 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: 01 07 00 29 05 00 00 00 00 00 FF 0F 43 [11:35:42]RasterBufferAndPrint [11:35:42]line Счет N : (1)449660 [11:35:42]line ИНН: 02508201610067 [11:35:42]line Контрольно-Кассовый Чек [11:35:42]line ПРОДАЖА [11:35:42]line ТРК (МРК, ГНК) : 51 [11:35:42]line Товар: 2710124500 [11:35:42]line Аи-95-К-3 [11:35:42]line 13.480 * 74.20 [11:35:42]line = 1000.22 [11:35:42]line НДС 12% НСП 1% [11:35:42]line > о реализуемом товаре [11:35:42]line ОКРУГЛЕНИЕ: -0.22 [11:35:42]line ИТОГО: 1000.00 [11:35:42]line Внесено: 1000.00 [11:35:42]line СДАЧА: 0.00 [11:35:42]line НСП 1% : 8.85 [11:35:42]line НДС 12% : 106.22 [11:35:42]line Наличными: 1000.00 [11:35:42]line Безнал.: 0.00 [11:35:42]line Место: АЗС № 171 "Партнер Нефть" [11:35:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:35:42]line СНО: Общий режим [11:35:42]line Чек 192 27.10.2024 11:35 [11:35:42]line Смена: 544 ФФД: 1.0 [11:35:42]line ЗНМ: 0300000109 [11:35:42]line РНМ: 0000000000091777 [11:35:42]line Версия ККМ: 001 [11:35:42]line ФМ: 0000000000871756 [11:35:42]line ФД: 201900 [11:35:42]line ФПД: 238832185209795 [11:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113541&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201900&fm=238832185209795&tin=02508201610067®Number=0000000000091777&sum=100000 [11:35:42]OFD Sender: Processing packet 201900 [packets to send 112, broken 111] [11:35:42]ProducePacketName [11:35:42]name=ofd_packets/00201900 [11:35:42]OFD Sender: To server: pG, [11:35:42]CommunicateWithHost lk.salyk.kg:30040 [11:35:42]ConnectInit lk.salyk.kg [11:35:42]written 0, free lines is 4095 [11:35:42]Connected sock=10 [11:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2C 40 07 01 9D CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 C0 00 00 00 F4 03 04 00 8D 25 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 14 03 00 35 04 06 00 D9 37 73 8F 73 C3 04 41 07 8C 55 21 39 8F [11:35:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 82 50 47 00 88 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 14 03 00 F4 03 04 00 47 D1 1D 67 B6 04 01 00 00 77 37 76 6C 8E 99 F6 02 [11:35:42]CommunicateWithHost err = 0 [11:35:42]CheckOFDResponse [11:35:42]1017 (14) - 77093643461234 [11:35:42]1041 (16) - 0000000000871756 [11:35:42]1040 (4) - 201900 [11:35:42]1012 (4) - 27.10.2024 05:36 [11:35:42]1206 (1) - 0 [11:35:42]OFD Sender: Remove packet 201900 [11:35:42]ProducePacketName [11:35:42]name=ofd_packets/00201900 [11:35:42]NVStorageDeleteData [11:35:43]Write to MH i2c: 01 00 00 54 05 59 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: 01 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: 01 07 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 8F 0C FB [11:35:43]RasterBufferAndPrint [11:35:43]line [11:35:43]line [11:35:43]line [11:35:43]line [11:35:43]line [11:35:43]written 0, free lines is 3219 [11:35:43]MH_Cut [11:35:43]Write to MH i2c: D1 01 00 5B 05 01 32 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: D1 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: D1 01 00 [11:35:43]MH_I2C_Read... [11:35:43]Read from MH i2c: D1 01 00 5B 05 00 31 [11:35:43]Write to MH i2c: 01 00 00 5C 05 61 [11:35:43]Write i2c OK [11:35:43]MH_I2C_Read... [11:35:43]OFD Sender: No OFD packet to send [11:35:44]*** Cut start [11:35:44]*** Purtial cut [11:35:44]*** CUTSNS_PIN = 0 [11:35:44]*** Stage 1: CUTSNS_PIN = 1 [11:35:46]Read from MH i2c: 01 [11:35:46]MH_I2C_Read... [11:35:46]*** Stop cut motor [11:35:46]*** Cut end [11:35:46]Read from MH i2c: 01 07 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [11:35:46]process_action close_receipt done [11:35:46]requested_data is exist [11:35:46]produce_requested_data [11:35:46]requested_item fm.sn is exist - process it [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 11 00 00 [11:35:46]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 17 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [11:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:35:46]wFMCommunicate OK [11:35:46]requested_item fd.num is exist - process it [11:35:46]SAM_PROTO_GetFieldsCounters [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 13 00 00 [11:35:46]Write to MH i2c: E2 08 00 5E 05 80 13 00 00 00 00 00 00 DF [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 62 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 62 00 5E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [11:35:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_GetFieldsCounters done [11:35:46]requested_item shift.num is exist - process it [11:35:46]requested_item shift.opened is exist - process it [11:35:46]req_shift_opened [11:35:46]FM_GetShiftState [11:35:46]SAM_PROTO_GetShiftState [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 13 01 00 [11:35:46]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0E 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E3 [11:35:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_GetShiftState done [11:35:46]FM_GetShiftState done [11:35:46]req_shift_opened done [11:35:46]requested_item shift.open_date is exist - process it [11:35:46]req_shift_open_date [11:35:46]req_shift_open_date done [11:35:46]produce_requested_data done [11:35:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201900,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:35:46]process_action_free close_receipt [11:35:46]json_value_free [11:35:46]json_value_free done [11:35:46]process_json_proto returns [11:35:46]Send response to host [11:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201900,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:35:46]free response buf [11:35:46]execute_script done [11:35:46]execute_script returns [11:35:46]free content buf [11:35:46]Sock 9.Close socket [11:35:46]Sock 9.Thread stoped [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:56]accept exits with 8 [11:37:56]New connection [11:37:56]New thread 3066641764 created [11:37:56]Thread 3066498404 joined [11:37:56]Waiting for new connection... [11:37:56] Sock 8.Parse request [11:37:56]Sock 8.Check first char [11:37:56]Sock 8.First char is OK [11:37:56]request: POST /json_proto HTTP/1.0 [11:37:56]Method: POST [11:37:56]URL: /json_proto [11:37:56]Method is POST - this is cgi request [11:37:56]url: /json_proto [11:37:56]query_string will be loaded in cgi processing [11:37:56]execute_cgi json_proto POST (null) [11:37:56]execute_cgi path=json_proto method=POST [11:37:56]POST find Content-Length [11:37:56]Host: 172.17.63.195:8080 [11:37:56]Content-Length: 766 [11:37:56]Content-Type: application/json [11:37:56] [11:37:56]POST finish read [11:37:56]Found Content-Length = 766 [11:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:56]execute_script... [11:37:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:56]POST & json_proto [11:37:56]process_json_proto [11:37:56]json parsed OK: [11:37:56]protocol is kg_v1.0 [11:37:56]action value=close_receipt [11:37:56]process_action close_receipt [11:37:56]cmd_close_receipt [11:37:56]MH_GetDate [11:37:56]Write to MH i2c: F0 00 00 60 05 54 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: F0 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: F0 09 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: F0 09 00 60 05 00 15 26 1E 67 47 1B 1E 67 04 [11:37:56]GetLastDocTimeStamp 1730028941 [11:37:56]current date 1730029077 [11:37:56]FM_GetShiftState [11:37:56]SAM_PROTO_GetShiftState [11:37:56]wFMCommunicate request_size=4 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 13 01 00 [11:37:56]Write to MH i2c: E2 08 00 61 05 80 13 01 00 00 00 00 00 E3 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 0E 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 0E 00 61 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E5 [11:37:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:37:56]wFMCommunicate OK [11:37:56]SAM_PROTO_GetShiftState done [11:37:56]FM_GetShiftState done [11:37:56]opened in 1729987312 [11:37:56]opened+sec_in_day 1730073712 [11:37:56]quantity*price = 50041 [11:37:56]sum+1 = 50042 [11:37:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 193 27.10.2024 11:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201901 ФПД: 195923862619823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113757&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201901&fm=195923862619823&tin=02508201610067®Number=0000000000091777&sum=50041 [11:37:57]StoreToDocumentArchive [11:37:57]shift 544 fd 201901 [11:37:57]save to /storage/0544/doc_00201901 [11:37:57]save last doc name /storage/0544/doc_00201901 to /storage/kkm_last_doc_name [11:37:57]save OK [11:37:57]Clear old archive folders... [11:37:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:57]tlvbuf is 0119D6F0 [11:37:57]SAM_PROTO_ClearQueue [11:37:57]wFMCommunicate request_size=4 [11:37:57]MH_SAM_APDU [11:37:57]CAPDU: 80 09 00 00 [11:37:57]Write to MH i2c: E2 08 00 6E 05 80 09 00 00 00 00 00 00 E5 [11:37:57]Write i2c OK [11:37:57]MH_I2C_Read... [11:37:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:57]Read from MH i2c: E2 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: E2 03 00 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [11:37:57]RAPDU: 90 00 [11:37:57]wFMCommunicate OK [11:37:57]SAM_PROTO_ClearQueue done [11:37:57]KKMCreateOFDPacket [11:37:57]OFDProtocolAddRootSTLVToBuf [11:37:57]FM_MakeSignedData [11:37:57]FM_MakeSignedData [11:37:57]SAM_PROTO_SignData [11:37:57]wFMCommunicate request_size=4 [11:37:57]MH_SAM_APDU [11:37:57]CAPDU: 80 0D 01 02 [11:37:57]Write to MH i2c: E2 08 00 6F 05 80 0D 01 02 00 00 00 00 ED [11:37:57]Write i2c OK [11:37:57]MH_I2C_Read... [11:37:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:57]Read from MH i2c: E2 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: E2 03 00 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [11:37:57]RAPDU: 90 00 [11:37:57]wFMCommunicate OK [11:37:57]wFMCommunicate request_size=255 [11:37:57]MH_SAM_APDU [11:37:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 15 26 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 14 03 00 35 04 06 00 B2 [11:37:57]Write to MH i2c: E2 02 01 70 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 15 26 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 14 03 00 35 04 06 00 B2 00 00 EC [11:37:57]Write i2c OK [11:37:57]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [11:37:58]RAPDU: 90 00 [11:37:58]wFMCommunicate OK [11:37:58]wFMCommunicate request_size=10 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 0D 02 02 05 31 14 3C 06 AF [11:37:58]Write to MH i2c: E2 0D 00 71 05 80 0D 02 02 05 00 31 14 3C 06 AF 00 00 30 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [11:37:58]RAPDU: 90 00 [11:37:58]wFMCommunicate OK [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 0D 03 02 [11:37:58]Write to MH i2c: E2 08 00 72 05 80 0D 03 02 00 00 00 00 F2 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0B 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0B 00 72 05 00 D7 CB C5 51 79 FC 58 DF 90 00 57 [11:37:58]RAPDU: D7 CB C5 51 79 FC 58 DF 90 00 [11:37:58]wFMCommunicate OK [11:37:58]SAM_PROTO_SignData done [11:37:58]FM_MakeSignedData done [11:37:58]CreateOFDProtocolMessage [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 11 00 00 [11:37:58]Write to MH i2c: E2 08 00 73 05 80 11 00 00 00 00 00 00 F2 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 17 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 17 00 73 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 47 [11:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:37:58]wFMCommunicate OK [11:37:58]CreateOFDProtocolMessage done [11:37:58]OFDSenderStorePacket 201901 [11:37:58]StoreOFDPacket docnum=201901 [11:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 30 50 07 01 88 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 15 26 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 14 03 00 35 04 06 00 B2 31 14 3C 06 AF D7 CB C5 51 79 FC 58 DF [11:37:58]CheckFolder [11:37:58]dirname=/storage/ofd_packets [11:37:58]CheckFolder done [11:37:58]ProducePacketName [11:37:58]name=ofd_packets/00201901 [11:37:58]NVStorageSaveData ofd_packets/00201901 [11:37:58]File name is /storage/ofd_packets/00201901 [11:37:58]Write 301 bytes [11:37:58]NVStorageSaveData done [11:37:58]OFDSenderStorePacket done [11:37:58]KKMCreateOFDPacket done [11:37:58]NVStorageSaveData kkm_last_timestamp [11:37:58]File name is /storage/kkm_last_timestamp [11:37:58]Write 4 bytes [11:37:58]NVStorageSaveData done [11:37:58]ExternCall_PrintAddStr [11:37:58]wPrintStart [11:37:58]Write to MH i2c: 01 00 00 74 05 79 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 FF 0F 8E [11:37:58]RasterBufferAndPrint [11:37:58]line Счет N : (1)449662 [11:37:58]line ИНН: 02508201610067 [11:37:58]line Контрольно-Кассовый Чек [11:37:58]line ПРОДАЖА [11:37:58]line ТРК (МРК, ГНК) : 41 [11:37:58]line Товар: 2710124130 [11:37:58]line Аи-92-К-2 [11:37:58]line 7.480 * 66.90 [11:37:58]line = 500.41 [11:37:58]line НДС 12% НСП 1% [11:37:58]line > о реализуемом товаре [11:37:58]line ИТОГО: 500.41 [11:37:58]line НСП 1% : 4.43 [11:37:58]line НДС 12% : 53.14 [11:37:58]line Наличными: 0.00 [11:37:58]line Безнал.: 500.41 [11:37:58]line Место: АЗС № 171 "Партнер Нефть" [11:37:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:37:58]line СНО: Общий режим [11:37:58]line Чек 193 27.10.2024 11:37 [11:37:58]line Смена: 544 ФФД: 1.0 [11:37:58]line ЗНМ: 0300000109 [11:37:58]line РНМ: 0000000000091777 [11:37:58]line Версия ККМ: 001 [11:37:58]line Платежная система: Mbank [11:37:58]line ФМ: 0000000000871756 [11:37:58]line ФД: 201901 [11:37:58]line ФПД: 195923862619823 [11:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113757&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201901&fm=195923862619823&tin=02508201610067®Number=0000000000091777&sum=50041 [11:37:58]written 0, free lines is 4095 [11:37:58]OFD Sender: Processing packet 201901 [packets to send 112, broken 111] [11:37:58]ProducePacketName [11:37:58]name=ofd_packets/00201901 [11:37:58]OFD Sender: To server: pG, [11:37:58]CommunicateWithHost lk.salyk.kg:30040 [11:37:58]ConnectInit lk.salyk.kg [11:37:58]Connected sock=11 [11:37:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 30 50 07 01 88 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 15 26 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 14 03 00 35 04 06 00 B2 31 14 3C 06 AF D7 CB C5 51 79 FC 58 DF [11:37:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9D 07 47 00 66 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 14 03 00 F4 03 04 00 CF D1 1D 67 B6 04 01 00 00 62 FF 9A 8A B9 C5 22 6E [11:37:59]CommunicateWithHost err = 0 [11:37:59]CheckOFDResponse [11:37:59]1017 (14) - 77093643461234 [11:37:59]1041 (16) - 0000000000871756 [11:37:59]1040 (4) - 201901 [11:37:59]1012 (4) - 27.10.2024 05:38 [11:37:59]1206 (1) - 0 [11:37:59]OFD Sender: Remove packet 201901 [11:37:59]ProducePacketName [11:37:59]name=ofd_packets/00201901 [11:37:59]NVStorageDeleteData [11:37:59]Write to MH i2c: 01 00 00 9D 05 A2 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 07 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 BA 0C 6F [11:37:59]RasterBufferAndPrint [11:37:59]line [11:37:59]line [11:37:59]line [11:37:59]line [11:37:59]line [11:37:59]written 0, free lines is 3262 [11:37:59]MH_Cut [11:37:59]Write to MH i2c: D1 01 00 A4 05 01 7B [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: D1 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: D1 01 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: D1 01 00 A4 05 00 7A [11:37:59]Write to MH i2c: 01 00 00 A5 05 AA [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]OFD Sender: No OFD packet to send [11:38:00]*** Cut start [11:38:00]*** Purtial cut [11:38:00]*** Stage 1: CUTSNS_PIN = 1 [11:38:00]Read from MH i2c: 01 [11:38:00]MH_I2C_Read... [11:38:00]*** Stop cut motor [11:38:00]*** Cut end [11:38:00]Read from MH i2c: 01 07 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [11:38:00]process_action close_receipt done [11:38:00]requested_data is exist [11:38:00]produce_requested_data [11:38:00]requested_item fm.sn is exist - process it [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 11 00 00 [11:38:00]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:00]Read from MH i2c: E2 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 17 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7A [11:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:38:00]wFMCommunicate OK [11:38:00]requested_item fd.num is exist - process it [11:38:00]SAM_PROTO_GetFieldsCounters [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 13 00 00 [11:38:00]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:00]Read from MH i2c: E2 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 62 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 62 00 A7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:38:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:00]wFMCommunicate OK [11:38:00]SAM_PROTO_GetFieldsCounters done [11:38:00]requested_item shift.num is exist - process it [11:38:00]requested_item shift.opened is exist - process it [11:38:00]req_shift_opened [11:38:00]FM_GetShiftState [11:38:00]SAM_PROTO_GetShiftState [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 13 01 00 [11:38:00]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:00]Read from MH i2c: E2 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 0E 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2C [11:38:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:38:00]wFMCommunicate OK [11:38:00]SAM_PROTO_GetShiftState done [11:38:00]FM_GetShiftState done [11:38:00]req_shift_opened done [11:38:00]requested_item shift.open_date is exist - process it [11:38:00]req_shift_open_date [11:38:00]req_shift_open_date done [11:38:00]produce_requested_data done [11:38:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201901,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:38:00]process_action_free close_receipt [11:38:00]json_value_free [11:38:00]json_value_free done [11:38:00]process_json_proto returns [11:38:00]Send response to host [11:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201901,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:38:00]free response buf [11:38:00]execute_script done [11:38:00]execute_script returns [11:38:00]free content buf [11:38:00]Sock 8.Close socket [11:38:00]Sock 8.Thread stoped [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:57]accept exits with 9 [11:39:57]New connection [11:39:57]New thread 3066498404 created [11:39:57]Thread 3066641764 joined [11:39:57]Waiting for new connection... [11:39:57] Sock 9.Parse request [11:39:57]Sock 9.Check first char [11:39:57]Sock 9.First char is OK [11:39:57]request: POST /json_proto HTTP/1.0 [11:39:57]Method: POST [11:39:57]URL: /json_proto [11:39:57]Method is POST - this is cgi request [11:39:57]url: /json_proto [11:39:57]query_string will be loaded in cgi processing [11:39:57]execute_cgi json_proto POST (null) [11:39:57]execute_cgi path=json_proto method=POST [11:39:57]POST find Content-Length [11:39:57]Host: 172.17.63.195:8080 [11:39:57]Content-Length: 678 [11:39:57]Content-Type: application/json [11:39:57] [11:39:57]POST finish read [11:39:57]Found Content-Length = 678 [11:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:57]execute_script... [11:39: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)449663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:57]POST & json_proto [11:39:57]process_json_proto [11:39:57]json parsed OK: [11:39:57]protocol is kg_v1.0 [11:39:57]action value=close_receipt [11:39:57]process_action close_receipt [11:39:57]cmd_close_receipt [11:39:57]MH_GetDate [11:39:57]Write to MH i2c: F0 00 00 A9 05 9D [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 09 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: F0 09 00 A9 05 00 8E 26 1E 67 47 1B 1E 67 C6 [11:39:57]GetLastDocTimeStamp 1730029077 [11:39:57]current date 1730029198 [11:39:57]FM_GetShiftState [11:39:57]SAM_PROTO_GetShiftState [11:39:57]wFMCommunicate request_size=4 [11:39:57]MH_SAM_APDU [11:39:57]CAPDU: 80 13 01 00 [11:39:57]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 0E 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2E [11:39:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:39:57]wFMCommunicate OK [11:39:57]SAM_PROTO_GetShiftState done [11:39:57]FM_GetShiftState done [11:39:57]opened in 1729987312 [11:39:57]opened+sec_in_day 1730073712 [11:39:57]quantity*price = 70044 [11:39:57]sum+1 = 70045 [11:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 194 27.10.2024 11:39 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201902 ФПД: 120945623693017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113958&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201902&fm=120945623693017&tin=02508201610067®Number=0000000000091777&sum=70000 [11:39:59]StoreToDocumentArchive [11:39:59]shift 544 fd 201902 [11:39:59]save to /storage/0544/doc_00201902 [11:39:59]save last doc name /storage/0544/doc_00201902 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=251 [11:39:59]tlvbuf is 0119E120 [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 B7 05 80 09 00 00 00 00 00 00 2E [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 B7 05 00 90 00 30 [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 B8 05 80 0D 01 02 00 00 00 00 36 [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 B8 05 00 90 00 31 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8E 26 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 14 03 00 35 04 06 00 6D [11:39:59]Write to MH i2c: E2 02 01 B9 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8E 26 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 14 03 00 35 04 06 00 6D 00 00 29 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 0D 02 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 B9 05 00 90 00 32 [11:39:59]RAPDU: 90 00 [11:39:59]wFMCommunicate OK [11:39:59]wFMCommunicate request_size=10 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 0D 02 02 05 FF D8 EF F6 D9 [11:39:59]Write to MH i2c: E2 0D 00 BA 05 80 0D 02 02 05 00 FF D8 EF F6 D9 00 00 D8 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 0D 02 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 BA 05 00 90 00 33 [11:39:59]RAPDU: 90 00 [11:39:59]wFMCommunicate OK [11:39:59]wFMCommunicate request_size=4 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 0D 03 02 [11:39:59]Write to MH i2c: E2 08 00 BB 05 80 0D 03 02 00 00 00 00 3B [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 0B 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 0B 00 BB 05 00 69 94 A2 3D 75 C1 AA FF 90 00 F7 [11:39:59]RAPDU: 69 94 A2 3D 75 C1 AA FF 90 00 [11:39:59]wFMCommunicate OK [11:39:59]SAM_PROTO_SignData done [11:39:59]FM_MakeSignedData done [11:39:59]CreateOFDProtocolMessage [11:39:59]wFMCommunicate request_size=4 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 11 00 00 [11:39:59]Write to MH i2c: E2 08 00 BC 05 80 11 00 00 00 00 00 00 3B [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 17 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 17 00 BC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [11:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:39:59]wFMCommunicate OK [11:39:59]CreateOFDProtocolMessage done [11:39:59]OFDSenderStorePacket 201902 [11:39:59]StoreOFDPacket docnum=201902 [11:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD 0E 07 01 AF 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8E 26 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 14 03 00 35 04 06 00 6D FF D8 EF F6 D9 69 94 A2 3D 75 C1 AA FF [11:39:59]CheckFolder [11:39:59]dirname=/storage/ofd_packets [11:39:59]CheckFolder done [11:39:59]ProducePacketName [11:39:59]name=ofd_packets/00201902 [11:39:59]NVStorageSaveData ofd_packets/00201902 [11:39:59]File name is /storage/ofd_packets/00201902 [11:39:59]Write 301 bytes [11:39:59]NVStorageSaveData done [11:39:59]OFDSenderStorePacket done [11:39:59]KKMCreateOFDPacket done [11:39:59]NVStorageSaveData kkm_last_timestamp [11:39:59]File name is /storage/kkm_last_timestamp [11:39:59]Write 4 bytes [11:39:59]NVStorageSaveData done [11:39:59]ExternCall_PrintAddStr [11:39:59]wPrintStart [11:39:59]Write to MH i2c: 01 00 00 BD 05 C2 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 07 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 FF 0F D7 [11:39:59]RasterBufferAndPrint [11:39:59]line Счет N : (1)449663 [11:39:59]line ИНН: 02508201610067 [11:39:59]line Контрольно-Кассовый Чек [11:39:59]line ПРОДАЖА [11:39:59]line ТРК (МРК, ГНК) : 31 [11:39:59]line Товар: 2710124130 [11:39:59]line Аи-92-К-2 [11:39:59]line 10.470 * 66.90 [11:39:59]line = 700.44 [11:39:59]line НДС 12% НСП 1% [11:39:59]line > о реализуемом товаре [11:39:59]line ОКРУГЛЕНИЕ: -0.44 [11:39:59]line ИТОГО: 700.00 [11:39:59]line Внесено: 700.00 [11:39:59]line СДАЧА: 0.00 [11:39:59]line НСП 1% : 6.20 [11:39:59]line НДС 12% : 74.38 [11:39:59]line Наличными: 700.00 [11:39:59]line Безнал.: 0.00 [11:39:59]line Место: АЗС № 171 "Партнер Нефть" [11:39:59]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:39:59]line СНО: Общий режим [11:39:59]line Чек 194 27.10.2024 11:39 [11:39:59]line Смена: 544 ФФД: 1.0 [11:39:59]line ЗНМ: 0300000109 [11:39:59]line РНМ: 0000000000091777 [11:39:59]line Версия ККМ: 001 [11:39:59]line ФМ: 0000000000871756 [11:39:59]line ФД: 201902 [11:39:59]line ФПД: 120945623693017 [11:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113958&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201902&fm=120945623693017&tin=02508201610067®Number=0000000000091777&sum=70000 [11:39:59]OFD Sender: Processing packet 201902 [packets to send 112, broken 111] [11:39:59]ProducePacketName [11:39:59]name=ofd_packets/00201902 [11:39:59]OFD Sender: To server: pG, [11:39:59]CommunicateWithHost lk.salyk.kg:30040 [11:39:59]ConnectInit lk.salyk.kg [11:39:59]written 0, free lines is 4095 [11:39:59]Connected sock=10 [11:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD 0E 07 01 AF 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 8E 26 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 14 03 00 35 04 06 00 6D FF D8 EF F6 D9 69 94 A2 3D 75 C1 AA FF [11:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5A B2 47 00 03 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 14 03 00 F4 03 04 00 48 D2 1D 67 B6 04 01 00 00 8E C8 A8 AB 04 1B DF 6D [11:40:00]CommunicateWithHost err = 0 [11:40:00]CheckOFDResponse [11:40:00]1017 (14) - 77093643461234 [11:40:00]1041 (16) - 0000000000871756 [11:40:00]1040 (4) - 201902 [11:40:00]1012 (4) - 27.10.2024 05:40 [11:40:00]1206 (1) - 0 [11:40:00]OFD Sender: Remove packet 201902 [11:40:00]ProducePacketName [11:40:00]name=ofd_packets/00201902 [11:40:00]NVStorageDeleteData [11:40:00]Write to MH i2c: 01 00 00 E8 05 ED [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 E8 05 00 00 00 00 00 84 0C 84 [11:40:00]RasterBufferAndPrint [11:40:00]line [11:40:00]line [11:40:00]line [11:40:00]line [11:40:00]line [11:40:00]written 0, free lines is 3209 [11:40:00]MH_Cut [11:40:00]Write to MH i2c: D1 01 00 EF 05 01 C6 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: D1 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: D1 01 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: D1 01 00 EF 05 00 C5 [11:40:00]Write to MH i2c: 01 00 00 F0 05 F5 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]OFD Sender: No OFD packet to send [11:40:01]*** Cut start [11:40:01]*** Purtial cut [11:40:01]*** Stage 1: CUTSNS_PIN = 1 [11:40:01]Read from MH i2c: 01 [11:40:01]MH_I2C_Read... [11:40:01]*** Stop cut motor [11:40:01]*** Cut end [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 F0 05 00 00 00 00 00 FF 0F 0A [11:40:01]process_action close_receipt done [11:40:01]requested_data is exist [11:40:01]produce_requested_data [11:40:01]requested_item fm.sn is exist - process it [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 11 00 00 [11:40:01]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 17 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C5 [11:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:40:01]wFMCommunicate OK [11:40:01]requested_item fd.num is exist - process it [11:40:01]SAM_PROTO_GetFieldsCounters [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 13 00 00 [11:40:01]Write to MH i2c: E2 08 00 F2 05 80 13 00 00 00 00 00 00 73 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 62 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 62 00 F2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [11:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetFieldsCounters done [11:40:01]requested_item shift.num is exist - process it [11:40:01]requested_item shift.opened is exist - process it [11:40:01]req_shift_opened [11:40:01]FM_GetShiftState [11:40:01]SAM_PROTO_GetShiftState [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 13 01 00 [11:40:01]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 77 [11:40:01]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetShiftState done [11:40:01]FM_GetShiftState done [11:40:01]req_shift_opened done [11:40:01]requested_item shift.open_date is exist - process it [11:40:01]req_shift_open_date [11:40:01]req_shift_open_date done [11:40:01]produce_requested_data done [11:40:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201902,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:40:01]process_action_free close_receipt [11:40:01]json_value_free [11:40:01]json_value_free done [11:40:01]process_json_proto returns [11:40:01]Send response to host [11:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201902,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:40:01]free response buf [11:40:01]execute_script done [11:40:01]execute_script returns [11:40:01]free content buf [11:40:01]Sock 9.Close socket [11:40:01]Sock 9.Thread stoped [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:04]accept exits with 8 [11:44:04]New connection [11:44:04]New thread 3066641764 created [11:44:04]Thread 3066498404 joined [11:44:04]Waiting for new connection... [11:44:04] Sock 8.Parse request [11:44:04]Sock 8.Check first char [11:44:04]Sock 8.First char is OK [11:44:04]request: POST /json_proto HTTP/1.0 [11:44:04]Method: POST [11:44:04]URL: /json_proto [11:44:04]Method is POST - this is cgi request [11:44:04]url: /json_proto [11:44:04]query_string will be loaded in cgi processing [11:44:04]execute_cgi json_proto POST (null) [11:44:04]execute_cgi path=json_proto method=POST [11:44:04]POST find Content-Length [11:44:04]Host: 172.17.63.195:8080 [11:44:04]Content-Length: 677 [11:44:04]Content-Type: application/json [11:44:04] [11:44:04]POST finish read [11:44:04]Found Content-Length = 677 [11:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:44:04]execute_script... [11:44:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:44:04]POST & json_proto [11:44:04]process_json_proto [11:44:04]json parsed OK: [11:44:04]protocol is kg_v1.0 [11:44:04]action value=close_receipt [11:44:04]process_action close_receipt [11:44:04]cmd_close_receipt [11:44:04]MH_GetDate [11:44:04]Write to MH i2c: F0 00 00 F4 05 E8 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 09 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 09 00 F4 05 00 85 27 1E 67 47 1B 1E 67 09 [11:44:04]GetLastDocTimeStamp 1730029198 [11:44:04]current date 1730029445 [11:44:04]FM_GetShiftState [11:44:04]SAM_PROTO_GetShiftState [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 13 01 00 [11:44:04]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0E 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 79 [11:44:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_GetShiftState done [11:44:05]FM_GetShiftState done [11:44:05]opened in 1729987312 [11:44:05]opened+sec_in_day 1730073712 [11:44:05]quantity*price = 50041 [11:44:05]sum+1 = 50042 [11:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 195 27.10.2024 11:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201903 ФПД: 194473477692157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114405&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201903&fm=194473477692157&tin=02508201610067®Number=0000000000091777&sum=50000 [11:44:06]StoreToDocumentArchive [11:44:06]shift 544 fd 201903 [11:44:06]save to /storage/0544/doc_00201903 [11:44:06]save last doc name /storage/0544/doc_00201903 to /storage/kkm_last_doc_name [11:44:06]save OK [11:44:06]Clear old archive folders... [11:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:06]tlvbuf is 01174E90 [11:44:06]SAM_PROTO_ClearQueue [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 09 00 00 [11:44:06]Write to MH i2c: E2 08 00 02 06 80 09 00 00 00 00 00 00 7A [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]SAM_PROTO_ClearQueue done [11:44:06]KKMCreateOFDPacket [11:44:06]OFDProtocolAddRootSTLVToBuf [11:44:06]FM_MakeSignedData [11:44:06]FM_MakeSignedData [11:44:06]SAM_PROTO_SignData [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 01 02 [11:44:06]Write to MH i2c: E2 08 00 03 06 80 0D 01 02 00 00 00 00 82 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=255 [11:44:06]MH_SAM_APDU [11:44: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 32 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 C3 00 00 00 F4 03 04 00 85 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 14 03 00 35 04 06 00 B0 [11:44:06]Write to MH i2c: E2 02 01 04 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C3 00 00 00 F4 03 04 00 85 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 14 03 00 35 04 06 00 B0 00 00 A2 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=10 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 02 02 05 DF 62 8E 5A FD [11:44:06]Write to MH i2c: E2 0D 00 05 06 80 0D 02 02 05 00 DF 62 8E 5A FD 00 00 B5 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 03 02 [11:44:06]Write to MH i2c: E2 08 00 06 06 80 0D 03 02 00 00 00 00 87 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0B 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0B 00 06 06 00 97 08 F3 D2 8F D4 9F 03 90 00 F1 [11:44:06]RAPDU: 97 08 F3 D2 8F D4 9F 03 90 00 [11:44:06]wFMCommunicate OK [11:44:06]SAM_PROTO_SignData done [11:44:06]FM_MakeSignedData done [11:44:06]CreateOFDProtocolMessage [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 11 00 00 [11:44:06]Write to MH i2c: E2 08 00 07 06 80 11 00 00 00 00 00 00 87 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 07 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DC [11:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:44:06]wFMCommunicate OK [11:44:06]CreateOFDProtocolMessage done [11:44:06]OFDSenderStorePacket 201903 [11:44:06]StoreOFDPacket docnum=201903 [11:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 10 E5 07 01 7A 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C3 00 00 00 F4 03 04 00 85 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 14 03 00 35 04 06 00 B0 DF 62 8E 5A FD 97 08 F3 D2 8F D4 9F 03 [11:44:06]CheckFolder [11:44:06]dirname=/storage/ofd_packets [11:44:06]CheckFolder done [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00201903 [11:44:06]NVStorageSaveData ofd_packets/00201903 [11:44:06]File name is /storage/ofd_packets/00201903 [11:44:06]Write 301 bytes [11:44:06]NVStorageSaveData done [11:44:06]OFDSenderStorePacket done [11:44:06]KKMCreateOFDPacket done [11:44:06]NVStorageSaveData kkm_last_timestamp [11:44:06]File name is /storage/kkm_last_timestamp [11:44:06]Write 4 bytes [11:44:06]NVStorageSaveData done [11:44:06]ExternCall_PrintAddStr [11:44:06]wPrintStart [11:44:06]Write to MH i2c: 01 00 00 08 06 0E [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 08 06 00 00 00 00 00 FF 0F 23 [11:44:06]RasterBufferAndPrint [11:44:06]line Счет N : (1)449664 [11:44:06]line ИНН: 02508201610067 [11:44:06]line Контрольно-Кассовый Чек [11:44:06]line ПРОДАЖА [11:44:06]line ТРК (МРК, ГНК) : 31 [11:44:06]line Товар: 2710124130 [11:44:06]line Аи-92-К-2 [11:44:06]line 7.480 * 66.90 [11:44:06]line = 500.41 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line ОКРУГЛЕНИЕ: -0.41 [11:44:06]line ИТОГО: 500.00 [11:44:06]line Внесено: 500.00 [11:44:06]line СДАЧА: 0.00 [11:44:06]line НСП 1% : 4.43 [11:44:06]line НДС 12% : 53.14 [11:44:06]line Наличными: 500.00 [11:44:06]line Безнал.: 0.00 [11:44:06]line Место: АЗС № 171 "Партнер Нефть" [11:44:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:44:06]line СНО: Общий режим [11:44:06]line Чек 195 27.10.2024 11:44 [11:44:06]line Смена: 544 ФФД: 1.0 [11:44:06]line ЗНМ: 0300000109 [11:44:06]line РНМ: 0000000000091777 [11:44:06]line Версия ККМ: 001 [11:44:06]line ФМ: 0000000000871756 [11:44:06]line ФД: 201903 [11:44:06]line ФПД: 194473477692157 [11:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114405&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201903&fm=194473477692157&tin=02508201610067®Number=0000000000091777&sum=50000 [11:44:07]OFD Sender: Processing packet 201903 [packets to send 112, broken 111] [11:44:07]ProducePacketName [11:44:07]name=ofd_packets/00201903 [11:44:07]OFD Sender: To server: pG, [11:44:07]CommunicateWithHost lk.salyk.kg:30040 [11:44:07]ConnectInit lk.salyk.kg [11:44:07]written 0, free lines is 4095 [11:44:07]Connected sock=10 [11:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 10 E5 07 01 7A 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C3 00 00 00 F4 03 04 00 85 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 14 03 00 35 04 06 00 B0 DF 62 8E 5A FD 97 08 F3 D2 8F D4 9F 03 [11:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BC B3 47 00 8C 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 14 03 00 F4 03 04 00 3F D3 1D 67 B6 04 01 00 00 B1 A4 29 13 43 69 DE 81 [11:44:07]CommunicateWithHost err = 0 [11:44:07]CheckOFDResponse [11:44:07]1017 (14) - 77093643461234 [11:44:07]1041 (16) - 0000000000871756 [11:44:07]1040 (4) - 201903 [11:44:07]1012 (4) - 27.10.2024 05:44 [11:44:07]1206 (1) - 0 [11:44:07]OFD Sender: Remove packet 201903 [11:44:07]ProducePacketName [11:44:07]name=ofd_packets/00201903 [11:44:07]NVStorageDeleteData [11:44:07]Write to MH i2c: 01 00 00 33 06 39 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 07 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 82 0C CE [11:44:07]RasterBufferAndPrint [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]written 0, free lines is 3206 [11:44:07]MH_Cut [11:44:07]Write to MH i2c: D1 01 00 3A 06 01 12 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 01 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 01 00 3A 06 00 11 [11:44:07]Write to MH i2c: 01 00 00 3B 06 41 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]OFD Sender: No OFD packet to send [11:44:08]*** Cut start [11:44:08]*** Purtial cut [11:44:08]*** Stage 1: CUTSNS_PIN = 1 [11:44:08]Read from MH i2c: 01 [11:44:08]MH_I2C_Read... [11:44:08]*** Stop cut motor [11:44:08]*** Cut end [11:44:08]Read from MH i2c: 01 07 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [11:44:08]process_action close_receipt done [11:44:08]requested_data is exist [11:44:08]produce_requested_data [11:44:08]requested_item fm.sn is exist - process it [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 11 00 00 [11:44:08]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 17 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 11 [11:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:44:08]wFMCommunicate OK [11:44:08]requested_item fd.num is exist - process it [11:44:08]SAM_PROTO_GetFieldsCounters [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 13 00 00 [11:44:08]Write to MH i2c: E2 08 00 3D 06 80 13 00 00 00 00 00 00 BF [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 62 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 62 00 3D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [11:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:08]wFMCommunicate OK [11:44:08]SAM_PROTO_GetFieldsCounters done [11:44:08]requested_item shift.num is exist - process it [11:44:08]requested_item shift.opened is exist - process it [11:44:08]req_shift_opened [11:44:08]FM_GetShiftState [11:44:08]SAM_PROTO_GetShiftState [11:44:08]wFMCommunicate request_size=4 [11:44:08]MH_SAM_APDU [11:44:08]CAPDU: 80 13 01 00 [11:44:08]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [11:44:08]Write i2c OK [11:44:08]MH_I2C_Read... [11:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:08]Read from MH i2c: E2 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 0E 00 [11:44:08]MH_I2C_Read... [11:44:08]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C3 [11:44:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:44:08]wFMCommunicate OK [11:44:08]SAM_PROTO_GetShiftState done [11:44:08]FM_GetShiftState done [11:44:08]req_shift_opened done [11:44:08]requested_item shift.open_date is exist - process it [11:44:08]req_shift_open_date [11:44:08]req_shift_open_date done [11:44:08]produce_requested_data done [11:44:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201903,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:44:08]process_action_free close_receipt [11:44:08]json_value_free [11:44:08]json_value_free done [11:44:08]process_json_proto returns [11:44:08]Send response to host [11:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201903,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:44:08]free response buf [11:44:08]execute_script done [11:44:08]execute_script returns [11:44:08]free content buf [11:44:08]Sock 8.Close socket [11:44:08]Sock 8.Thread stoped [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:28]accept exits with 9 [11:44:28]New connection [11:44:28]New thread 3066498404 created [11:44:28]Thread 3066641764 joined [11:44:28]Waiting for new connection... [11:44:28] Sock 9.Parse request [11:44:28]Sock 9.Check first char [11:44:28]Sock 9.First char is OK [11:44:28]request: POST /json_proto HTTP/1.0 [11:44:28]Method: POST [11:44:28]URL: /json_proto [11:44:28]Method is POST - this is cgi request [11:44:28]url: /json_proto [11:44:28]query_string will be loaded in cgi processing [11:44:28]execute_cgi json_proto POST (null) [11:44:28]execute_cgi path=json_proto method=POST [11:44:28]POST find Content-Length [11:44:28]Host: 172.17.63.195:8080 [11:44:28]Content-Length: 679 [11:44:28]Content-Type: application/json [11:44:28] [11:44:28]POST finish read [11:44:28]Found Content-Length = 679 [11:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:44:28]execute_script... [11:44:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:44:28]POST & json_proto [11:44:28]process_json_proto [11:44:28]json parsed OK: [11:44:28]protocol is kg_v1.0 [11:44:28]action value=close_receipt [11:44:28]process_action close_receipt [11:44:28]cmd_close_receipt [11:44:28]MH_GetDate [11:44:28]Write to MH i2c: F0 00 00 3F 06 34 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: F0 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: F0 09 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: F0 09 00 3F 06 00 9C 27 1E 67 47 1B 1E 67 6C [11:44:28]GetLastDocTimeStamp 1730029445 [11:44:28]current date 1730029468 [11:44:28]FM_GetShiftState [11:44:28]SAM_PROTO_GetShiftState [11:44:28]wFMCommunicate request_size=4 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 13 01 00 [11:44:28]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0E 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C5 [11:44:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:44:28]wFMCommunicate OK [11:44:28]SAM_PROTO_GetShiftState done [11:44:28]FM_GetShiftState done [11:44:28]opened in 1729987312 [11:44:28]opened+sec_in_day 1730073712 [11:44:28]quantity*price = 100050 [11:44:28]sum+1 = 100052 [11:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 196 27.10.2024 11:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201904 ФПД: 84335076267823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114428&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201904&fm=84335076267823&tin=02508201610067®Number=0000000000091777&sum=100000 [11:44:29]StoreToDocumentArchive [11:44:29]shift 544 fd 201904 [11:44:29]save to /storage/0544/doc_00201904 [11:44:29]save last doc name /storage/0544/doc_00201904 to /storage/kkm_last_doc_name [11:44:29]save OK [11:44:29]Clear old archive folders... [11:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:44:29]tlvbuf is 0122E4A0 [11:44:29]SAM_PROTO_ClearQueue [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 09 00 00 [11:44:29]Write to MH i2c: E2 08 00 4D 06 80 09 00 00 00 00 00 00 C5 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]SAM_PROTO_ClearQueue done [11:44:29]KKMCreateOFDPacket [11:44:29]OFDProtocolAddRootSTLVToBuf [11:44:29]FM_MakeSignedData [11:44:29]FM_MakeSignedData [11:44:29]SAM_PROTO_SignData [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 0D 01 02 [11:44:29]Write to MH i2c: E2 08 00 4E 06 80 0D 01 02 00 00 00 00 CD [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]wFMCommunicate request_size=255 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 C4 00 00 00 F4 03 04 00 9C 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 14 03 00 35 04 06 00 4C B3 CA 43 [11:44:29]Write to MH i2c: E2 02 01 4F 06 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 32 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 C4 00 00 00 F4 03 04 00 9C 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 14 03 00 35 04 06 00 4C B3 CA 43 00 00 58 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]wFMCommunicate request_size=7 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 0D 02 02 02 57 2F [11:44:29]Write to MH i2c: E2 0A 00 50 06 80 0D 02 02 02 00 57 2F 00 00 5A [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 0D 03 02 [11:44:29]Write to MH i2c: E2 08 00 51 06 80 0D 03 02 00 00 00 00 D2 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 0B 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 0B 00 51 06 00 0E 78 35 56 D7 63 D8 B6 90 00 AC [11:44:29]RAPDU: 0E 78 35 56 D7 63 D8 B6 90 00 [11:44:29]wFMCommunicate OK [11:44:29]SAM_PROTO_SignData done [11:44:29]FM_MakeSignedData done [11:44:29]CreateOFDProtocolMessage [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 11 00 00 [11:44:29]Write to MH i2c: E2 08 00 52 06 80 11 00 00 00 00 00 00 D2 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 17 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 17 00 52 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [11:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:44:29]wFMCommunicate OK [11:44:29]CreateOFDProtocolMessage done [11:44:29]OFDSenderStorePacket 201904 [11:44:29]StoreOFDPacket docnum=201904 [11:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FF 5C 04 01 5D 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 32 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 C4 00 00 00 F4 03 04 00 9C 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 14 03 00 35 04 06 00 4C B3 CA 43 57 2F 0E 78 35 56 D7 63 D8 B6 [11:44:29]CheckFolder [11:44:29]dirname=/storage/ofd_packets [11:44:29]CheckFolder done [11:44:29]ProducePacketName [11:44:29]name=ofd_packets/00201904 [11:44:29]NVStorageSaveData ofd_packets/00201904 [11:44:29]File name is /storage/ofd_packets/00201904 [11:44:29]Write 298 bytes [11:44:29]NVStorageSaveData done [11:44:29]OFDSenderStorePacket done [11:44:29]KKMCreateOFDPacket done [11:44:29]NVStorageSaveData kkm_last_timestamp [11:44:29]File name is /storage/kkm_last_timestamp [11:44:29]Write 4 bytes [11:44:29]NVStorageSaveData done [11:44:29]ExternCall_PrintAddStr [11:44:29]wPrintStart [11:44:29]Write to MH i2c: 01 00 00 53 06 59 [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 53 06 00 00 00 00 00 FF 0F 6E [11:44:29]RasterBufferAndPrint [11:44:29]line Счет N : (1)449665 [11:44:29]line ИНН: 02508201610067 [11:44:29]line Контрольно-Кассовый Чек [11:44:29]line ПРОДАЖА [11:44:29]line ТРК (МРК, ГНК) : 43 [11:44:29]line Товар: 2710194210 [11:44:29]line ДТ-К-2 [11:44:29]line 13.130 * 76.20 [11:44:29]line = 1000.51 [11:44:29]line НДС 12% НСП 1% [11:44:29]line > о реализуемом товаре [11:44:29]line ОКРУГЛЕНИЕ: -0.51 [11:44:29]line ИТОГО: 1000.00 [11:44:29]line Внесено: 1000.00 [11:44:29]line СДАЧА: 0.00 [11:44:29]line НСП 1% : 8.85 [11:44:29]line НДС 12% : 106.25 [11:44:29]line Наличными: 1000.00 [11:44:29]line Безнал.: 0.00 [11:44:29]line Место: АЗС № 171 "Партнер Нефть" [11:44:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:44:29]line СНО: Общий режим [11:44:29]line Чек 196 27.10.2024 11:44 [11:44:29]line Смена: 544 ФФД: 1.0 [11:44:29]line ЗНМ: 0300000109 [11:44:29]line РНМ: 0000000000091777 [11:44:29]line Версия ККМ: 001 [11:44:29]line ФМ: 0000000000871756 [11:44:29]line ФД: 201904 [11:44:29]line ФПД: 84335076267823 [11:44:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114428&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201904&fm=84335076267823&tin=02508201610067®Number=0000000000091777&sum=100000 [11:44:30]OFD Sender: Processing packet 201904 [packets to send 112, broken 111] [11:44:30]ProducePacketName [11:44:30]name=ofd_packets/00201904 [11:44:30]OFD Sender: To server: pG, [11:44:30]CommunicateWithHost lk.salyk.kg:30040 [11:44:30]ConnectInit lk.salyk.kg [11:44:30]written 0, free lines is 4095 [11:44:30]Connected sock=10 [11:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FF 5C 04 01 5D 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 32 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 C4 00 00 00 F4 03 04 00 9C 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 14 03 00 35 04 06 00 4C B3 CA 43 57 2F 0E 78 35 56 D7 63 D8 B6 [11:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 37 5E 47 00 E9 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 14 03 00 F4 03 04 00 56 D3 1D 67 B6 04 01 00 00 87 BE 59 AB 08 0B BD 87 [11:44:30]CommunicateWithHost err = 0 [11:44:30]CheckOFDResponse [11:44:30]1017 (14) - 77093643461234 [11:44:30]1041 (16) - 0000000000871756 [11:44:30]1040 (4) - 201904 [11:44:30]1012 (4) - 27.10.2024 05:44 [11:44:30]1206 (1) - 0 [11:44:30]OFD Sender: Remove packet 201904 [11:44:30]ProducePacketName [11:44:30]name=ofd_packets/00201904 [11:44:30]NVStorageDeleteData [11:44:30]Write to MH i2c: 01 00 00 7E 06 84 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 07 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 8D 0C 24 [11:44:30]RasterBufferAndPrint [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]written 0, free lines is 3217 [11:44:30]MH_Cut [11:44:30]Write to MH i2c: D1 01 00 85 06 01 5D [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 01 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 01 00 85 06 00 5C [11:44:30]Write to MH i2c: 01 00 00 86 06 8C [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:31]OFD Sender: No OFD packet to send [11:44:31]*** Cut start [11:44:31]*** Purtial cut [11:44:31]*** Stage 1: CUTSNS_PIN = 1 [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 86 06 00 00 00 00 00 FF 0F A1 [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 87 06 80 11 00 00 00 00 00 00 07 [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 17 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [11:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:44:32]wFMCommunicate OK [11:44:32]requested_item fd.num is exist - process it [11:44:32]SAM_PROTO_GetFieldsCounters [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 13 00 00 [11:44:32]Write to MH i2c: E2 08 00 88 06 80 13 00 00 00 00 00 00 0A [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 62 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 62 00 88 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [11:44:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:32]wFMCommunicate OK [11:44:32]SAM_PROTO_GetFieldsCounters done [11:44:32]requested_item shift.num is exist - process it [11:44:32]requested_item shift.opened is exist - process it [11:44:32]req_shift_opened [11:44:32]FM_GetShiftState [11:44:32]SAM_PROTO_GetShiftState [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 13 01 00 [11:44:32]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 0E 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0E [11:44:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:44:32]wFMCommunicate OK [11:44:32]SAM_PROTO_GetShiftState done [11:44:32]FM_GetShiftState done [11:44:32]req_shift_opened done [11:44:32]requested_item shift.open_date is exist - process it [11:44:32]req_shift_open_date [11:44:32]req_shift_open_date done [11:44:32]produce_requested_data done [11:44:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201904,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:44:32]process_action_free close_receipt [11:44:32]json_value_free [11:44:32]json_value_free done [11:44:32]process_json_proto returns [11:44:32]Send response to host [11:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201904,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:44:32]free response buf [11:44:32]execute_script done [11:44:32]execute_script returns [11:44:32]free content buf [11:44:32]Sock 9.Close socket [11:44:32]Sock 9.Thread stoped [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:02]accept exits with 8 [11:46:02]New connection [11:46:02]New thread 3066641764 created [11:46:02]Thread 3066498404 joined [11:46:02]Waiting for new connection... [11:46:02] Sock 8.Parse request [11:46:02]Sock 8.Check first char [11:46:02]Sock 8.First char is OK [11:46:02]request: POST /json_proto HTTP/1.0 [11:46:02]Method: POST [11:46:02]URL: /json_proto [11:46:02]Method is POST - this is cgi request [11:46:02]url: /json_proto [11:46:02]query_string will be loaded in cgi processing [11:46:02]execute_cgi json_proto POST (null) [11:46:02]execute_cgi path=json_proto method=POST [11:46:02]POST find Content-Length [11:46:02]Host: 172.17.63.195:8080 [11:46:02]Content-Length: 677 [11:46:02]Content-Type: application/json [11:46:02] [11:46:02]POST finish read [11:46:02]Found Content-Length = 677 [11:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:02]execute_script... [11:46: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)449666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:02]POST & json_proto [11:46:02]process_json_proto [11:46:02]json parsed OK: [11:46:02]protocol is kg_v1.0 [11:46:02]action value=close_receipt [11:46:02]process_action close_receipt [11:46:02]cmd_close_receipt [11:46:02]MH_GetDate [11:46:02]Write to MH i2c: F0 00 00 8A 06 7F [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: F0 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: F0 09 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: F0 09 00 8A 06 00 FA 27 1E 67 47 1B 1E 67 15 [11:46:02]GetLastDocTimeStamp 1730029468 [11:46:02]current date 1730029562 [11:46:02]FM_GetShiftState [11:46:02]SAM_PROTO_GetShiftState [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 13 01 00 [11:46:02]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:02]Read from MH i2c: E2 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 0E 00 [11:46:02]MH_I2C_Read... [11:46:02]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 10 [11:46:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:46:02]wFMCommunicate OK [11:46:02]SAM_PROTO_GetShiftState done [11:46:02]FM_GetShiftState done [11:46:02]opened in 1729987312 [11:46:02]opened+sec_in_day 1730073712 [11:46:02]quantity*price = 40006 [11:46:02]sum+1 = 40007 [11:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 197 27.10.2024 11:46 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201905 ФПД: 217376640108548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201905&fm=217376640108548&tin=02508201610067®Number=0000000000091777&sum=40000 [11:46:03]StoreToDocumentArchive [11:46:03]shift 544 fd 201905 [11:46:03]save to /storage/0544/doc_00201905 [11:46:03]save last doc name /storage/0544/doc_00201905 to /storage/kkm_last_doc_name [11:46:03]save OK [11:46:03]Clear old archive folders... [11:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:03]tlvbuf is 011750B0 [11:46:03]SAM_PROTO_ClearQueue [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 09 00 00 [11:46:03]Write to MH i2c: E2 08 00 98 06 80 09 00 00 00 00 00 00 10 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [11:46:03]RAPDU: 90 00 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_ClearQueue done [11:46:03]KKMCreateOFDPacket [11:46:03]OFDProtocolAddRootSTLVToBuf [11:46:03]FM_MakeSignedData [11:46:03]FM_MakeSignedData [11:46:03]SAM_PROTO_SignData [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 0D 01 02 [11:46:03]Write to MH i2c: E2 08 00 99 06 80 0D 01 02 00 00 00 00 18 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [11:46:03]RAPDU: 90 00 [11:46:03]wFMCommunicate OK [11:46:03]wFMCommunicate request_size=255 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 FB 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 14 03 00 35 04 06 00 C5 [11:46:03]Write to MH i2c: E2 02 01 9A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 FB 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 14 03 00 35 04 06 00 C5 00 00 96 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [11:46:04]RAPDU: 90 00 [11:46:04]wFMCommunicate OK [11:46:04]wFMCommunicate request_size=10 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 0D 02 02 05 B3 F1 6A 88 04 [11:46:04]Write to MH i2c: E2 0D 00 9B 06 80 0D 02 02 05 00 B3 F1 6A 88 04 00 00 BF [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [11:46:04]RAPDU: 90 00 [11:46:04]wFMCommunicate OK [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 0D 03 02 [11:46:04]Write to MH i2c: E2 08 00 9C 06 80 0D 03 02 00 00 00 00 1D [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0B 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0B 00 9C 06 00 45 E8 1F D9 E7 63 88 E3 90 00 F8 [11:46:04]RAPDU: 45 E8 1F D9 E7 63 88 E3 90 00 [11:46:04]wFMCommunicate OK [11:46:04]SAM_PROTO_SignData done [11:46:04]FM_MakeSignedData done [11:46:04]CreateOFDProtocolMessage [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 11 00 00 [11:46:04]Write to MH i2c: E2 08 00 9D 06 80 11 00 00 00 00 00 00 1D [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 17 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 17 00 9D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [11:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:46:04]wFMCommunicate OK [11:46:04]CreateOFDProtocolMessage done [11:46:04]OFDSenderStorePacket 201905 [11:46:04]StoreOFDPacket docnum=201905 [11:46:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3A 4D 07 01 83 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 FB 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 14 03 00 35 04 06 00 C5 B3 F1 6A 88 04 45 E8 1F D9 E7 63 88 E3 [11:46:04]CheckFolder [11:46:04]dirname=/storage/ofd_packets [11:46:04]CheckFolder done [11:46:04]ProducePacketName [11:46:04]name=ofd_packets/00201905 [11:46:04]NVStorageSaveData ofd_packets/00201905 [11:46:04]File name is /storage/ofd_packets/00201905 [11:46:04]Write 301 bytes [11:46:04]NVStorageSaveData done [11:46:04]OFDSenderStorePacket done [11:46:04]KKMCreateOFDPacket done [11:46:04]NVStorageSaveData kkm_last_timestamp [11:46:04]File name is /storage/kkm_last_timestamp [11:46:04]Write 4 bytes [11:46:04]NVStorageSaveData done [11:46:04]ExternCall_PrintAddStr [11:46:04]wPrintStart [11:46:04]Write to MH i2c: 01 00 00 9E 06 A4 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 FF 0F B9 [11:46:04]RasterBufferAndPrint [11:46:04]line Счет N : (1)449666 [11:46:04]line ИНН: 02508201610067 [11:46:04]line Контрольно-Кассовый Чек [11:46:04]line ПРОДАЖА [11:46:04]line ТРК (МРК, ГНК) : 31 [11:46:04]line Товар: 2710124130 [11:46:04]line Аи-92-К-2 [11:46:04]line 5.980 * 66.90 [11:46:04]line = 400.06 [11:46:04]line НДС 12% НСП 1% [11:46:04]line > о реализуемом товаре [11:46:04]line ОКРУГЛЕНИЕ: -0.06 [11:46:04]line ИТОГО: 400.00 [11:46:04]line Внесено: 400.00 [11:46:04]line СДАЧА: 0.00 [11:46:04]line НСП 1% : 3.54 [11:46:04]line НДС 12% : 42.48 [11:46:04]line Наличными: 400.00 [11:46:04]line Безнал.: 0.00 [11:46:04]line Место: АЗС № 171 "Партнер Нефть" [11:46:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:46:04]line СНО: Общий режим [11:46:04]line Чек 197 27.10.2024 11:46 [11:46:04]line Смена: 544 ФФД: 1.0 [11:46:04]line ЗНМ: 0300000109 [11:46:04]line РНМ: 0000000000091777 [11:46:04]line Версия ККМ: 001 [11:46:04]line ФМ: 0000000000871756 [11:46:04]line ФД: 201905 [11:46:04]line ФПД: 217376640108548 [11:46:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201905&fm=217376640108548&tin=02508201610067®Number=0000000000091777&sum=40000 [11:46:04]OFD Sender: Processing packet 201905 [packets to send 112, broken 111] [11:46:04]ProducePacketName [11:46:04]name=ofd_packets/00201905 [11:46:04]OFD Sender: To server: pG, [11:46:04]CommunicateWithHost lk.salyk.kg:30040 [11:46:04]ConnectInit lk.salyk.kg [11:46:04]written 0, free lines is 4095 [11:46:04]Connected sock=10 [11:46:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3A 4D 07 01 83 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 FB 27 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 14 03 00 35 04 06 00 C5 B3 F1 6A 88 04 45 E8 1F D9 E7 63 88 E3 [11:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 50 DE 47 00 7C 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 14 03 00 F4 03 04 00 B5 D3 1D 67 B6 04 01 00 00 A3 66 3E 37 22 18 09 AD [11:46:04]CommunicateWithHost err = 0 [11:46:04]CheckOFDResponse [11:46:04]1017 (14) - 77093643461234 [11:46:04]1041 (16) - 0000000000871756 [11:46:04]1040 (4) - 201905 [11:46:04]1012 (4) - 27.10.2024 05:46 [11:46:04]1206 (1) - 0 [11:46:04]OFD Sender: Remove packet 201905 [11:46:04]ProducePacketName [11:46:04]name=ofd_packets/00201905 [11:46:04]NVStorageDeleteData [11:46:05]Write to MH i2c: 01 00 00 C9 06 CF [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 07 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 86 0C 68 [11:46:05]RasterBufferAndPrint [11:46:05]line [11:46:05]line [11:46:05]line [11:46:05]line [11:46:05]line [11:46:05]written 0, free lines is 3211 [11:46:05]MH_Cut [11:46:05]Write to MH i2c: D1 01 00 D0 06 01 A8 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: D1 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: D1 01 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: D1 01 00 D0 06 00 A7 [11:46:05]Write to MH i2c: 01 00 00 D1 06 D7 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]OFD Sender: No OFD packet to send [11:46:05]*** Cut start [11:46:05]*** Purtial cut [11:46:05]*** Stage 1: CUTSNS_PIN = 1 [11:46:06]Read from MH i2c: 01 [11:46:06]MH_I2C_Read... [11:46:06]*** Stop cut motor [11:46:06]*** Cut end [11:46:06]Read from MH i2c: 01 07 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [11:46:06]process_action close_receipt done [11:46:06]requested_data is exist [11:46:06]produce_requested_data [11:46:06]requested_item fm.sn is exist - process it [11:46:06]wFMCommunicate request_size=4 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 11 00 00 [11:46:06]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 17 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A7 [11:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:46:06]wFMCommunicate OK [11:46:06]requested_item fd.num is exist - process it [11:46:06]SAM_PROTO_GetFieldsCounters [11:46:06]wFMCommunicate request_size=4 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 13 00 00 [11:46:06]Write to MH i2c: E2 08 00 D3 06 80 13 00 00 00 00 00 00 55 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 62 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 62 00 D3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [11:46:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:06]wFMCommunicate OK [11:46:06]SAM_PROTO_GetFieldsCounters done [11:46:06]requested_item shift.num is exist - process it [11:46:06]requested_item shift.opened is exist - process it [11:46:06]req_shift_opened [11:46:06]FM_GetShiftState [11:46:06]SAM_PROTO_GetShiftState [11:46:06]wFMCommunicate request_size=4 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 13 01 00 [11:46:06]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 0E 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 59 [11:46:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:46:06]wFMCommunicate OK [11:46:06]SAM_PROTO_GetShiftState done [11:46:06]FM_GetShiftState done [11:46:06]req_shift_opened done [11:46:06]requested_item shift.open_date is exist - process it [11:46:06]req_shift_open_date [11:46:06]req_shift_open_date done [11:46:06]produce_requested_data done [11:46:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201905,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:46:06]process_action_free close_receipt [11:46:06]json_value_free [11:46:06]json_value_free done [11:46:06]process_json_proto returns [11:46:06]Send response to host [11:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201905,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:46:06]free response buf [11:46:06]execute_script done [11:46:06]execute_script returns [11:46:06]free content buf [11:46:06]Sock 8.Close socket [11:46:06]Sock 8.Thread stoped [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:29]accept exits with 9 [11:47:29]New connection [11:47:29]New thread 3066498404 created [11:47:29]Thread 3066641764 joined [11:47:29]Waiting for new connection... [11:47:29] Sock 9.Parse request [11:47:29]Sock 9.Check first char [11:47:29]Sock 9.First char is OK [11:47:29]request: POST /json_proto HTTP/1.0 [11:47:29]Method: POST [11:47:29]URL: /json_proto [11:47:29]Method is POST - this is cgi request [11:47:29]url: /json_proto [11:47:29]query_string will be loaded in cgi processing [11:47:29]execute_cgi json_proto POST (null) [11:47:29]execute_cgi path=json_proto method=POST [11:47:29]POST find Content-Length [11:47:29]Host: 172.17.63.195:8080 [11:47:29]Content-Length: 677 [11:47:29]Content-Type: application/json [11:47:29] [11:47:29]POST finish read [11:47:29]Found Content-Length = 677 [11:47:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:29]execute_script... [11:47: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)449667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:29]POST & json_proto [11:47:29]process_json_proto [11:47:29]json parsed OK: [11:47:29]protocol is kg_v1.0 [11:47:29]action value=close_receipt [11:47:29]process_action close_receipt [11:47:29]cmd_close_receipt [11:47:29]MH_GetDate [11:47:29]Write to MH i2c: F0 00 00 D5 06 CA [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: F0 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: F0 09 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: F0 09 00 D5 06 00 52 28 1E 67 47 1B 1E 67 B9 [11:47:29]GetLastDocTimeStamp 1730029563 [11:47:29]current date 1730029650 [11:47:29]FM_GetShiftState [11:47:29]SAM_PROTO_GetShiftState [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 13 01 00 [11:47:29]Write to MH i2c: E2 08 00 D6 06 80 13 01 00 00 00 00 00 59 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 0E 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 0E 00 D6 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5B [11:47:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:47:29]wFMCommunicate OK [11:47:29]SAM_PROTO_GetShiftState done [11:47:29]FM_GetShiftState done [11:47:29]opened in 1729987312 [11:47:29]opened+sec_in_day 1730073712 [11:47:29]quantity*price = 40006 [11:47:29]sum+1 = 40007 [11:47:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 198 27.10.2024 11:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201906 ФПД: 177981513802391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114730&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201906&fm=177981513802391&tin=02508201610067®Number=0000000000091777&sum=40000 [11:47:31]StoreToDocumentArchive [11:47:31]shift 544 fd 201906 [11:47:31]save to /storage/0544/doc_00201906 [11:47:31]save last doc name /storage/0544/doc_00201906 to /storage/kkm_last_doc_name [11:47:31]save OK [11:47:31]Clear old archive folders... [11:47:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:31]tlvbuf is 012142A0 [11:47:31]SAM_PROTO_ClearQueue [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 09 00 00 [11:47:31]Write to MH i2c: E2 08 00 E3 06 80 09 00 00 00 00 00 00 5B [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [11:47:31]RAPDU: 90 00 [11:47:31]wFMCommunicate OK [11:47:31]SAM_PROTO_ClearQueue done [11:47:31]KKMCreateOFDPacket [11:47:31]OFDProtocolAddRootSTLVToBuf [11:47:31]FM_MakeSignedData [11:47:31]FM_MakeSignedData [11:47:31]SAM_PROTO_SignData [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 0D 01 02 [11:47:31]Write to MH i2c: E2 08 00 E4 06 80 0D 01 02 00 00 00 00 63 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [11:47:31]RAPDU: 90 00 [11:47:31]wFMCommunicate OK [11:47:31]wFMCommunicate request_size=255 [11:47:31]MH_SAM_APDU [11:47: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 52 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 14 03 00 35 04 06 00 A1 [11:47:31]Write to MH i2c: E2 02 01 E5 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 52 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 14 03 00 35 04 06 00 A1 00 00 17 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [11:47:31]RAPDU: 90 00 [11:47:31]wFMCommunicate OK [11:47:31]wFMCommunicate request_size=10 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 0D 02 02 05 DF 8C E8 22 97 [11:47:31]Write to MH i2c: E2 0D 00 E6 06 80 0D 02 02 05 00 DF 8C E8 22 97 00 00 7C [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [11:47:31]RAPDU: 90 00 [11:47:31]wFMCommunicate OK [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 0D 03 02 [11:47:31]Write to MH i2c: E2 08 00 E7 06 80 0D 03 02 00 00 00 00 68 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 0B 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 0B 00 E7 06 00 57 C8 5D C1 3C 14 5A A0 90 00 F0 [11:47:31]RAPDU: 57 C8 5D C1 3C 14 5A A0 90 00 [11:47:31]wFMCommunicate OK [11:47:31]SAM_PROTO_SignData done [11:47:31]FM_MakeSignedData done [11:47:31]CreateOFDProtocolMessage [11:47:31]wFMCommunicate request_size=4 [11:47:31]MH_SAM_APDU [11:47:31]CAPDU: 80 11 00 00 [11:47:31]Write to MH i2c: E2 08 00 E8 06 80 11 00 00 00 00 00 00 68 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:31]Read from MH i2c: E2 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 17 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: E2 17 00 E8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [11:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:47:31]wFMCommunicate OK [11:47:31]CreateOFDProtocolMessage done [11:47:31]OFDSenderStorePacket 201906 [11:47:31]StoreOFDPacket docnum=201906 [11:47:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 30 07 01 34 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 52 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 14 03 00 35 04 06 00 A1 DF 8C E8 22 97 57 C8 5D C1 3C 14 5A A0 [11:47:31]CheckFolder [11:47:31]dirname=/storage/ofd_packets [11:47:31]CheckFolder done [11:47:31]ProducePacketName [11:47:31]name=ofd_packets/00201906 [11:47:31]NVStorageSaveData ofd_packets/00201906 [11:47:31]File name is /storage/ofd_packets/00201906 [11:47:31]Write 301 bytes [11:47:31]NVStorageSaveData done [11:47:31]OFDSenderStorePacket done [11:47:31]KKMCreateOFDPacket done [11:47:31]NVStorageSaveData kkm_last_timestamp [11:47:31]File name is /storage/kkm_last_timestamp [11:47:31]Write 4 bytes [11:47:31]NVStorageSaveData done [11:47:31]ExternCall_PrintAddStr [11:47:31]wPrintStart [11:47:31]Write to MH i2c: 01 00 00 E9 06 EF [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 07 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [11:47:31]RasterBufferAndPrint [11:47:31]line Счет N : (1)449667 [11:47:31]line ИНН: 02508201610067 [11:47:31]line Контрольно-Кассовый Чек [11:47:31]line ПРОДАЖА [11:47:31]line ТРК (МРК, ГНК) : 52 [11:47:31]line Товар: 2710124130 [11:47:31]line Аи-92-К-2 [11:47:31]line 5.980 * 66.90 [11:47:31]line = 400.06 [11:47:31]line НДС 12% НСП 1% [11:47:31]line > о реализуемом товаре [11:47:31]line ОКРУГЛЕНИЕ: -0.06 [11:47:31]line ИТОГО: 400.00 [11:47:31]line Внесено: 400.00 [11:47:31]line СДАЧА: 0.00 [11:47:31]line НСП 1% : 3.54 [11:47:31]line НДС 12% : 42.48 [11:47:31]line Наличными: 400.00 [11:47:31]line Безнал.: 0.00 [11:47:31]line Место: АЗС № 171 "Партнер Нефть" [11:47:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:47:31]line СНО: Общий режим [11:47:31]line Чек 198 27.10.2024 11:47 [11:47:31]line Смена: 544 ФФД: 1.0 [11:47:31]line ЗНМ: 0300000109 [11:47:31]line РНМ: 0000000000091777 [11:47:31]line Версия ККМ: 001 [11:47:31]line ФМ: 0000000000871756 [11:47:31]line ФД: 201906 [11:47:31]line ФПД: 177981513802391 [11:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114730&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201906&fm=177981513802391&tin=02508201610067®Number=0000000000091777&sum=40000 [11:47:31]OFD Sender: Processing packet 201906 [packets to send 112, broken 111] [11:47:31]ProducePacketName [11:47:31]name=ofd_packets/00201906 [11:47:31]OFD Sender: To server: pG, [11:47:31]CommunicateWithHost lk.salyk.kg:30040 [11:47:31]ConnectInit lk.salyk.kg [11:47:31]written 0, free lines is 4095 [11:47:32]Connected sock=10 [11:47:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 30 07 01 34 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 52 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 14 03 00 35 04 06 00 A1 DF 8C E8 22 97 57 C8 5D C1 3C 14 5A A0 [11:47:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 05 88 47 00 4A E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 14 03 00 F4 03 04 00 0C D4 1D 67 B6 04 01 00 00 27 D7 CD 9F 7A 57 62 FC [11:47:32]CommunicateWithHost err = 0 [11:47:32]CheckOFDResponse [11:47:32]1017 (14) - 77093643461234 [11:47:32]1041 (16) - 0000000000871756 [11:47:32]1040 (4) - 201906 [11:47:32]1012 (4) - 27.10.2024 05:47 [11:47:32]1206 (1) - 0 [11:47:32]OFD Sender: Remove packet 201906 [11:47:32]ProducePacketName [11:47:32]name=ofd_packets/00201906 [11:47:32]NVStorageDeleteData [11:47:32]Write to MH i2c: 01 00 00 14 07 1B [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: 01 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: 01 07 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 87 0C B5 [11:47:32]RasterBufferAndPrint [11:47:32]line [11:47:32]line [11:47:32]line [11:47:32]line [11:47:32]line [11:47:32]written 0, free lines is 3211 [11:47:32]MH_Cut [11:47:32]Write to MH i2c: D1 01 00 1B 07 01 F4 [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: D1 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: D1 01 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: D1 01 00 1B 07 00 F3 [11:47:32]Write to MH i2c: 01 00 00 1C 07 23 [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]OFD Sender: No OFD packet to send [11:47:33]*** Cut start [11:47:33]*** Purtial cut [11:47:33]*** Stage 1: CUTSNS_PIN = 1 [11:47:33]Read from MH i2c: 01 [11:47:33]MH_I2C_Read... [11:47:33]*** Stop cut motor [11:47:33]*** Cut end [11:47:33]Read from MH i2c: 01 07 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 FF 0F 38 [11:47:33]process_action close_receipt done [11:47:33]requested_data is exist [11:47:33]produce_requested_data [11:47:33]requested_item fm.sn is exist - process it [11:47:33]wFMCommunicate request_size=4 [11:47:33]MH_SAM_APDU [11:47:33]CAPDU: 80 11 00 00 [11:47:33]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:33]Read from MH i2c: E2 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 17 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F3 [11:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:47:33]wFMCommunicate OK [11:47:33]requested_item fd.num is exist - process it [11:47:33]SAM_PROTO_GetFieldsCounters [11:47:33]wFMCommunicate request_size=4 [11:47:33]MH_SAM_APDU [11:47:33]CAPDU: 80 13 00 00 [11:47:33]Write to MH i2c: E2 08 00 1E 07 80 13 00 00 00 00 00 00 A1 [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:33]Read from MH i2c: E2 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 62 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 62 00 1E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [11:47:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:33]wFMCommunicate OK [11:47:33]SAM_PROTO_GetFieldsCounters done [11:47:33]requested_item shift.num is exist - process it [11:47:33]requested_item shift.opened is exist - process it [11:47:33]req_shift_opened [11:47:33]FM_GetShiftState [11:47:33]SAM_PROTO_GetShiftState [11:47:33]wFMCommunicate request_size=4 [11:47:33]MH_SAM_APDU [11:47:33]CAPDU: 80 13 01 00 [11:47:33]Write to MH i2c: E2 08 00 1F 07 80 13 01 00 00 00 00 00 A3 [11:47:33]Write i2c OK [11:47:33]MH_I2C_Read... [11:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:33]Read from MH i2c: E2 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 0E 00 [11:47:33]MH_I2C_Read... [11:47:33]Read from MH i2c: E2 0E 00 1F 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A5 [11:47:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:47:33]wFMCommunicate OK [11:47:33]SAM_PROTO_GetShiftState done [11:47:33]FM_GetShiftState done [11:47:33]req_shift_opened done [11:47:33]requested_item shift.open_date is exist - process it [11:47:33]req_shift_open_date [11:47:33]req_shift_open_date done [11:47:33]produce_requested_data done [11:47:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201906,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:47:33]process_action_free close_receipt [11:47:33]json_value_free [11:47:33]json_value_free done [11:47:33]process_json_proto returns [11:47:33]Send response to host [11:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201906,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:47:33]free response buf [11:47:33]execute_script done [11:47:33]execute_script returns [11:47:33]free content buf [11:47:33]Sock 9.Close socket [11:47:33]Sock 9.Thread stoped [11:47:34]accept exits with 8 [11:47:34]New connection [11:47:34]New thread 3066641764 created [11:47:34]Thread 3066498404 joined [11:47:34]Waiting for new connection... [11:47:34] Sock 8.Parse request [11:47:34]Sock 8.Check first char [11:47:34]Sock 8.First char is OK [11:47:34]request: POST /json_proto HTTP/1.0 [11:47:34]Method: POST [11:47:34]URL: /json_proto [11:47:34]Method is POST - this is cgi request [11:47:34]url: /json_proto [11:47:34]query_string will be loaded in cgi processing [11:47:34]execute_cgi json_proto POST (null) [11:47:34]execute_cgi path=json_proto method=POST [11:47:34]POST find Content-Length [11:47:34]Host: 172.17.63.195:8080 [11:47:34]Content-Length: 677 [11:47:34]Content-Type: application/json [11:47:34] [11:47:34]POST finish read [11:47:34]Found Content-Length = 677 [11:47:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:47:34]execute_script... [11:47:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:47:34]POST & json_proto [11:47:34]process_json_proto [11:47:34]json parsed OK: [11:47:34]protocol is kg_v1.0 [11:47:34]action value=close_receipt [11:47:34]process_action close_receipt [11:47:34]cmd_close_receipt [11:47:34]MH_GetDate [11:47:34]Write to MH i2c: F0 00 00 20 07 16 [11:47:34]Write i2c OK [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: F0 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: F0 09 00 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: F0 09 00 20 07 00 56 28 1E 67 47 1B 1E 67 09 [11:47:34]GetLastDocTimeStamp 1730029650 [11:47:34]current date 1730029654 [11:47:34]FM_GetShiftState [11:47:34]SAM_PROTO_GetShiftState [11:47:34]wFMCommunicate request_size=4 [11:47:34]MH_SAM_APDU [11:47:34]CAPDU: 80 13 01 00 [11:47:34]Write to MH i2c: E2 08 00 21 07 80 13 01 00 00 00 00 00 A5 [11:47:34]Write i2c OK [11:47:34]MH_I2C_Read... [11:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:34]Read from MH i2c: E2 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 0E 00 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 0E 00 21 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A7 [11:47:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:47:34]wFMCommunicate OK [11:47:34]SAM_PROTO_GetShiftState done [11:47:34]FM_GetShiftState done [11:47:34]opened in 1729987312 [11:47:34]opened+sec_in_day 1730073712 [11:47:34]quantity*price = 30038 [11:47:34]sum+1 = 30039 [11:47:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 199 27.10.2024 11:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201907 ФПД: 278392901787395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114734&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201907&fm=278392901787395&tin=02508201610067®Number=0000000000091777&sum=30000 [11:47:35]StoreToDocumentArchive [11:47:35]shift 544 fd 201907 [11:47:35]save to /storage/0544/doc_00201907 [11:47:35]save last doc name /storage/0544/doc_00201907 to /storage/kkm_last_doc_name [11:47:35]save OK [11:47:35]Clear old archive folders... [11:47:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:35]tlvbuf is 011F3310 [11:47:35]SAM_PROTO_ClearQueue [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 09 00 00 [11:47:35]Write to MH i2c: E2 08 00 2E 07 80 09 00 00 00 00 00 00 A7 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]SAM_PROTO_ClearQueue done [11:47:35]KKMCreateOFDPacket [11:47:35]OFDProtocolAddRootSTLVToBuf [11:47:35]FM_MakeSignedData [11:47:35]FM_MakeSignedData [11:47:35]SAM_PROTO_SignData [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 01 02 [11:47:35]Write to MH i2c: E2 08 00 2F 07 80 0D 01 02 00 00 00 00 AF [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]wFMCommunicate request_size=255 [11:47:35]MH_SAM_APDU [11:47: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 32 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 C7 00 00 00 F4 03 04 00 56 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 14 03 00 35 04 06 00 FD [11:47:35]Write to MH i2c: E2 02 01 30 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C7 00 00 00 F4 03 04 00 56 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 14 03 00 35 04 06 00 FD 00 00 EA [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]wFMCommunicate request_size=10 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 0D 02 02 05 32 66 04 DF 03 [11:47:36]Write to MH i2c: E2 0D 00 31 07 80 0D 02 02 05 00 32 66 04 DF 03 00 00 3A [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]wFMCommunicate request_size=4 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 0D 03 02 [11:47:36]Write to MH i2c: E2 08 00 32 07 80 0D 03 02 00 00 00 00 B4 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 0B 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 0B 00 32 07 00 37 AE D0 37 39 8A 5D 01 90 00 C2 [11:47:36]RAPDU: 37 AE D0 37 39 8A 5D 01 90 00 [11:47:36]wFMCommunicate OK [11:47:36]SAM_PROTO_SignData done [11:47:36]FM_MakeSignedData done [11:47:36]CreateOFDProtocolMessage [11:47:36]wFMCommunicate request_size=4 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 11 00 00 [11:47:36]Write to MH i2c: E2 08 00 33 07 80 11 00 00 00 00 00 00 B4 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 17 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 17 00 33 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [11:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:47:36]wFMCommunicate OK [11:47:36]CreateOFDProtocolMessage done [11:47:36]OFDSenderStorePacket 201907 [11:47:36]StoreOFDPacket docnum=201907 [11:47:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DB 5F 07 01 5F 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C7 00 00 00 F4 03 04 00 56 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 14 03 00 35 04 06 00 FD 32 66 04 DF 03 37 AE D0 37 39 8A 5D 01 [11:47:36]CheckFolder [11:47:36]dirname=/storage/ofd_packets [11:47:36]CheckFolder done [11:47:36]ProducePacketName [11:47:36]name=ofd_packets/00201907 [11:47:36]NVStorageSaveData ofd_packets/00201907 [11:47:36]File name is /storage/ofd_packets/00201907 [11:47:36]Write 301 bytes [11:47:36]NVStorageSaveData done [11:47:36]OFDSenderStorePacket done [11:47:36]KKMCreateOFDPacket done [11:47:36]NVStorageSaveData kkm_last_timestamp [11:47:36]File name is /storage/kkm_last_timestamp [11:47:36]Write 4 bytes [11:47:36]NVStorageSaveData done [11:47:36]ExternCall_PrintAddStr [11:47:36]wPrintStart [11:47:36]Write to MH i2c: 01 00 00 34 07 3B [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 [11:47:36]MH_I2C_Read... [11:47:36]OFD Sender: Processing packet 201907 [packets to send 112, broken 111] [11:47:36]ProducePacketName [11:47:36]name=ofd_packets/00201907 [11:47:36]OFD Sender: To server: pG, [11:47:36]CommunicateWithHost lk.salyk.kg:30040 [11:47:36]ConnectInit lk.salyk.kg [11:47:36]Read from MH i2c: 01 07 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 FF 0F 50 [11:47:36]RasterBufferAndPrint [11:47:36]line Счет N : (1)449668 [11:47:36]line ИНН: 02508201610067 [11:47:36]line Контрольно-Кассовый Чек [11:47:36]line ПРОДАЖА [11:47:36]line ТРК (МРК, ГНК) : 41 [11:47:36]line Товар: 2710124130 [11:47:36]line Аи-92-К-2 [11:47:36]line 4.490 * 66.90 [11:47:36]line = 300.38 [11:47:36]line НДС 12% НСП 1% [11:47:36]line > о реализуемом товаре [11:47:36]line ОКРУГЛЕНИЕ: -0.38 [11:47:36]line ИТОГО: 300.00 [11:47:36]line Внесено: 300.00 [11:47:36]line СДАЧА: 0.00 [11:47:36]line НСП 1% : 2.66 [11:47:36]line НДС 12% : 31.90 [11:47:36]line Наличными: 300.00 [11:47:36]line Безнал.: 0.00 [11:47:36]line Место: АЗС № 171 "Партнер Нефть" [11:47:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:47:36]line СНО: Общий режим [11:47:36]line Чек 199 27.10.2024 11:47 [11:47:36]line Смена: 544 ФФД: 1.0 [11:47:36]line ЗНМ: 0300000109 [11:47:36]line РНМ: 0000000000091777 [11:47:36]line Версия ККМ: 001 [11:47:36]line ФМ: 0000000000871756 [11:47:36]line ФД: 201907 [11:47:36]line ФПД: 278392901787395 [11:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114734&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201907&fm=278392901787395&tin=02508201610067®Number=0000000000091777&sum=30000 [11:47:36]written 0, free lines is 4095 [11:47:36]Write to MH i2c: 01 00 00 5F 07 66 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 97 0C 10 [11:47:36]RasterBufferAndPrint [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]written 0, free lines is 3229 [11:47:37]MH_Cut [11:47:37]Write to MH i2c: D1 01 00 66 07 01 3F [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 01 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 01 00 66 07 00 3E [11:47:37]Write to MH i2c: 01 00 00 67 07 6E [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** Cut start [11:47:37]*** Purtial cut [11:47:37]*** Stage 1: CUTSNS_PIN = 1 [11:47:38]Read from MH i2c: 01 [11:47:38]MH_I2C_Read... [11:47:38]*** Stop cut motor [11:47:38]*** Cut end [11:47:38]Read from MH i2c: 01 07 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 FF 0F 83 [11:47:38]process_action close_receipt done [11:47:38]requested_data is exist [11:47:38]produce_requested_data [11:47:38]requested_item fm.sn is exist - process it [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 11 00 00 [11:47:38]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 17 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3E [11:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:47:38]wFMCommunicate OK [11:47:38]requested_item fd.num is exist - process it [11:47:38]SAM_PROTO_GetFieldsCounters [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 13 00 00 [11:47:38]Write to MH i2c: E2 08 00 69 07 80 13 00 00 00 00 00 00 EC [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 62 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 62 00 69 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [11:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:38]wFMCommunicate OK [11:47:38]SAM_PROTO_GetFieldsCounters done [11:47:38]requested_item shift.num is exist - process it [11:47:38]requested_item shift.opened is exist - process it [11:47:38]req_shift_opened [11:47:38]FM_GetShiftState [11:47:38]SAM_PROTO_GetShiftState [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 13 01 00 [11:47:38]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0E 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F0 [11:47:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:47:38]wFMCommunicate OK [11:47:38]SAM_PROTO_GetShiftState done [11:47:38]FM_GetShiftState done [11:47:38]req_shift_opened done [11:47:38]requested_item shift.open_date is exist - process it [11:47:38]req_shift_open_date [11:47:38]req_shift_open_date done [11:47:38]produce_requested_data done [11:47:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201907,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:47:38]process_action_free close_receipt [11:47:38]json_value_free [11:47:38]json_value_free done [11:47:38]process_json_proto returns [11:47:38]Send response to host [11:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201907,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:47:38]free response buf [11:47:38]execute_script done [11:47:38]execute_script returns [11:47:38]free content buf [11:47:38]Sock 8.Close socket [11:47:38]Sock 8.Thread stoped [11:47:53]accept exits with 9 [11:47:53]New connection [11:47:53]New thread 3066498404 created [11:47:53]Thread 3066641764 joined [11:47:53]Waiting for new connection... [11:47:53] Sock 9.Parse request [11:47:53]Sock 9.Check first char [11:47:53]Sock 9.First char is OK [11:47:53]request: POST /json_proto HTTP/1.0 [11:47:53]Method: POST [11:47:53]URL: /json_proto [11:47:53]Method is POST - this is cgi request [11:47:53]url: /json_proto [11:47:53]query_string will be loaded in cgi processing [11:47:53]execute_cgi json_proto POST (null) [11:47:53]execute_cgi path=json_proto method=POST [11:47:53]POST find Content-Length [11:47:53]Host: 172.17.63.195:8080 [11:47:53]Content-Length: 677 [11:47:53]Content-Type: application/json [11:47:53] [11:47:53]POST finish read [11:47:53]Found Content-Length = 677 [11:47:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:47:53]execute_script... [11:47:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:47:53]POST & json_proto [11:47:53]process_json_proto [11:47:53]json parsed OK: [11:47:53]protocol is kg_v1.0 [11:47:53]action value=close_receipt [11:47:53]process_action close_receipt [11:47:53]cmd_close_receipt [11:47:53]MH_GetDate [11:47:53]Write to MH i2c: F0 00 00 6B 07 61 [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: F0 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: F0 09 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: F0 09 00 6B 07 00 69 28 1E 67 47 1B 1E 67 67 [11:47:53]GetLastDocTimeStamp 1730029654 [11:47:53]current date 1730029673 [11:47:53]FM_GetShiftState [11:47:53]SAM_PROTO_GetShiftState [11:47:53]wFMCommunicate request_size=4 [11:47:53]MH_SAM_APDU [11:47:53]CAPDU: 80 13 01 00 [11:47:53]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:53]Read from MH i2c: E2 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 0E 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F2 [11:47:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:47:53]wFMCommunicate OK [11:47:53]SAM_PROTO_GetShiftState done [11:47:53]FM_GetShiftState done [11:47:53]opened in 1729987312 [11:47:53]opened+sec_in_day 1730073712 [11:47:53]quantity*price = 20003 [11:47:53]sum+1 = 20004 [11:47:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 200 27.10.2024 11:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201908 ФПД: 268684265017185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114753&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201908&fm=268684265017185&tin=02508201610067®Number=0000000000091777&sum=20000 [11:47:54]StoreToDocumentArchive [11:47:54]shift 544 fd 201908 [11:47:54]save to /storage/0544/doc_00201908 [11:47:54]save last doc name /storage/0544/doc_00201908 to /storage/kkm_last_doc_name [11:47:54]save OK [11:47:54]Clear old archive folders... [11:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:54]tlvbuf is 011F41A0 [11:47:54]SAM_PROTO_ClearQueue [11:47:54]wFMCommunicate request_size=4 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 09 00 00 [11:47:54]Write to MH i2c: E2 08 00 79 07 80 09 00 00 00 00 00 00 F2 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [11:47:54]RAPDU: 90 00 [11:47:54]wFMCommunicate OK [11:47:54]SAM_PROTO_ClearQueue done [11:47:54]KKMCreateOFDPacket [11:47:54]OFDProtocolAddRootSTLVToBuf [11:47:54]FM_MakeSignedData [11:47:54]FM_MakeSignedData [11:47:54]SAM_PROTO_SignData [11:47:54]wFMCommunicate request_size=4 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 0D 01 02 [11:47:54]Write to MH i2c: E2 08 00 7A 07 80 0D 01 02 00 00 00 00 FA [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [11:47:54]RAPDU: 90 00 [11:47:54]wFMCommunicate OK [11:47:54]wFMCommunicate request_size=255 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C8 00 00 00 F4 03 04 00 69 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 14 03 00 35 04 06 00 F4 [11:47:54]Write to MH i2c: E2 02 01 7B 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C8 00 00 00 F4 03 04 00 69 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 14 03 00 35 04 06 00 F4 00 00 0F [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [11:47:54]RAPDU: 90 00 [11:47:54]wFMCommunicate OK [11:47:54]wFMCommunicate request_size=10 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 0D 02 02 05 5D EE 2C 4F 61 [11:47:54]Write to MH i2c: E2 0D 00 7C 07 80 0D 02 02 05 00 5D EE 2C 4F 61 00 00 2E [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [11:47:54]RAPDU: 90 00 [11:47:54]wFMCommunicate OK [11:47:54]wFMCommunicate request_size=4 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 0D 03 02 [11:47:54]Write to MH i2c: E2 08 00 7D 07 80 0D 03 02 00 00 00 00 FF [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 0B 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 0B 00 7D 07 00 D9 BA 6A 55 AC CC 6A 27 90 00 5B [11:47:54]RAPDU: D9 BA 6A 55 AC CC 6A 27 90 00 [11:47:54]wFMCommunicate OK [11:47:54]SAM_PROTO_SignData done [11:47:54]FM_MakeSignedData done [11:47:54]CreateOFDProtocolMessage [11:47:54]wFMCommunicate request_size=4 [11:47:54]MH_SAM_APDU [11:47:54]CAPDU: 80 11 00 00 [11:47:54]Write to MH i2c: E2 08 00 7E 07 80 11 00 00 00 00 00 00 FF [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:54]Read from MH i2c: E2 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 17 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: E2 17 00 7E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [11:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:47:54]wFMCommunicate OK [11:47:54]CreateOFDProtocolMessage done [11:47:54]OFDSenderStorePacket 201908 [11:47:54]StoreOFDPacket docnum=201908 [11:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CB F2 07 01 44 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C8 00 00 00 F4 03 04 00 69 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 14 03 00 35 04 06 00 F4 5D EE 2C 4F 61 D9 BA 6A 55 AC CC 6A 27 [11:47:54]CheckFolder [11:47:54]dirname=/storage/ofd_packets [11:47:54]CheckFolder done [11:47:54]ProducePacketName [11:47:54]name=ofd_packets/00201908 [11:47:54]NVStorageSaveData ofd_packets/00201908 [11:47:54]File name is /storage/ofd_packets/00201908 [11:47:54]Write 301 bytes [11:47:54]NVStorageSaveData done [11:47:54]OFDSenderStorePacket done [11:47:54]KKMCreateOFDPacket done [11:47:54]NVStorageSaveData kkm_last_timestamp [11:47:54]File name is /storage/kkm_last_timestamp [11:47:54]Write 4 bytes [11:47:54]NVStorageSaveData done [11:47:54]ExternCall_PrintAddStr [11:47:54]wPrintStart [11:47:54]Write to MH i2c: 01 00 00 7F 07 86 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 07 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 FF 0F 9B [11:47:54]RasterBufferAndPrint [11:47:54]line Счет N : (1)449669 [11:47:54]line ИНН: 02508201610067 [11:47:54]line Контрольно-Кассовый Чек [11:47:54]line ПРОДАЖА [11:47:54]line ТРК (МРК, ГНК) : 62 [11:47:54]line Товар: 2710124130 [11:47:54]line Аи-92-К-2 [11:47:54]line 2.990 * 66.90 [11:47:54]line = 200.03 [11:47:54]line НДС 12% НСП 1% [11:47:54]line > о реализуемом товаре [11:47:54]line ОКРУГЛЕНИЕ: -0.03 [11:47:54]line ИТОГО: 200.00 [11:47:54]line Внесено: 200.00 [11:47:54]line СДАЧА: 0.00 [11:47:54]line НСП 1% : 1.77 [11:47:54]line НДС 12% : 21.24 [11:47:54]line Наличными: 200.00 [11:47:54]line Безнал.: 0.00 [11:47:54]line Место: АЗС № 171 "Партнер Нефть" [11:47:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:47:54]line СНО: Общий режим [11:47:54]line Чек 200 27.10.2024 11:47 [11:47:54]line Смена: 544 ФФД: 1.0 [11:47:54]line ЗНМ: 0300000109 [11:47:54]line РНМ: 0000000000091777 [11:47:54]line Версия ККМ: 001 [11:47:54]line ФМ: 0000000000871756 [11:47:54]line ФД: 201908 [11:47:54]line ФПД: 268684265017185 [11:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114753&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201908&fm=268684265017185&tin=02508201610067®Number=0000000000091777&sum=20000 [11:47:54]written 0, free lines is 4095 [11:47:55]Write to MH i2c: 01 00 00 AA 07 B1 [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: 01 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: 01 07 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: 01 07 00 AA 07 00 00 00 00 00 8B 0C 4F [11:47:55]RasterBufferAndPrint [11:47:55]line [11:47:55]line [11:47:55]line [11:47:55]line [11:47:55]line [11:47:55]written 0, free lines is 3215 [11:47:55]MH_Cut [11:47:55]Write to MH i2c: D1 01 00 B1 07 01 8A [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: D1 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: D1 01 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: D1 01 00 B1 07 00 89 [11:47:55]Write to MH i2c: 01 00 00 B2 07 B9 [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:56]*** Cut start [11:47:56]*** Purtial cut [11:47:56]*** Stage 1: CUTSNS_PIN = 1 [11:47:56]Read from MH i2c: 01 [11:47:56]MH_I2C_Read... [11:47:56]*** Stop cut motor [11:47:56]*** Cut end [11:47:56]Read from MH i2c: 01 07 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: 01 07 00 B2 07 00 00 00 00 00 FF 0F CE [11:47:56]process_action close_receipt done [11:47:56]requested_data is exist [11:47:56]produce_requested_data [11:47:56]requested_item fm.sn is exist - process it [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 11 00 00 [11:47:56]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 17 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 89 [11:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:47:56]wFMCommunicate OK [11:47:56]requested_item fd.num is exist - process it [11:47:56]SAM_PROTO_GetFieldsCounters [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 13 00 00 [11:47:56]Write to MH i2c: E2 08 00 B4 07 80 13 00 00 00 00 00 00 37 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 62 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 62 00 B4 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [11:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:56]wFMCommunicate OK [11:47:56]SAM_PROTO_GetFieldsCounters done [11:47:56]requested_item shift.num is exist - process it [11:47:56]requested_item shift.opened is exist - process it [11:47:56]req_shift_opened [11:47:56]FM_GetShiftState [11:47:56]SAM_PROTO_GetShiftState [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 13 01 00 [11:47:56]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 0E 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3B [11:47:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:47:56]wFMCommunicate OK [11:47:56]SAM_PROTO_GetShiftState done [11:47:56]FM_GetShiftState done [11:47:56]req_shift_opened done [11:47:56]requested_item shift.open_date is exist - process it [11:47:56]req_shift_open_date [11:47:56]req_shift_open_date done [11:47:56]produce_requested_data done [11:47:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201908,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:47:56]process_action_free close_receipt [11:47:56]json_value_free [11:47:56]json_value_free done [11:47:56]process_json_proto returns [11:47:56]Send response to host [11:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201908,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:47:56]free response buf [11:47:56]execute_script done [11:47:56]execute_script returns [11:47:56]free content buf [11:47:56]Sock 9.Close socket [11:47:56]Sock 9.Thread stoped [11:49:22]accept exits with 8 [11:49:22]New connection [11:49:22]New thread 3066641764 created [11:49:22]Thread 3066498404 joined [11:49:22]Waiting for new connection... [11:49:22] Sock 8.Parse request [11:49:22]Sock 8.Check first char [11:49:22]Sock 8.First char is OK [11:49:22]request: POST /json_proto HTTP/1.0 [11:49:22]Method: POST [11:49:22]URL: /json_proto [11:49:22]Method is POST - this is cgi request [11:49:22]url: /json_proto [11:49:22]query_string will be loaded in cgi processing [11:49:22]execute_cgi json_proto POST (null) [11:49:22]execute_cgi path=json_proto method=POST [11:49:22]POST find Content-Length [11:49:22]Host: 172.17.63.195:8080 [11:49:22]Content-Length: 677 [11:49:22]Content-Type: application/json [11:49:22] [11:49:22]POST finish read [11:49:22]Found Content-Length = 677 [11:49:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:22]execute_script... [11:49: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)449670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:22]POST & json_proto [11:49:22]process_json_proto [11:49:22]json parsed OK: [11:49:22]protocol is kg_v1.0 [11:49:22]action value=close_receipt [11:49:22]process_action close_receipt [11:49:22]cmd_close_receipt [11:49:22]MH_GetDate [11:49:22]Write to MH i2c: F0 00 00 B6 07 AC [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: F0 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: F0 09 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: F0 09 00 B6 07 00 C2 28 1E 67 47 1B 1E 67 0B [11:49:22]GetLastDocTimeStamp 1730029673 [11:49:22]current date 1730029762 [11:49:22]FM_GetShiftState [11:49:22]SAM_PROTO_GetShiftState [11:49:22]wFMCommunicate request_size=4 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 13 01 00 [11:49:22]Write to MH i2c: E2 08 00 B7 07 80 13 01 00 00 00 00 00 3B [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 0E 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 0E 00 B7 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3D [11:49:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:49:22]wFMCommunicate OK [11:49:22]SAM_PROTO_GetShiftState done [11:49:22]FM_GetShiftState done [11:49:22]opened in 1729987312 [11:49:22]opened+sec_in_day 1730073712 [11:49:22]quantity*price = 40006 [11:49:22]sum+1 = 40007 [11:49:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 201 27.10.2024 11:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201909 ФПД: 84123265044302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114922&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201909&fm=84123265044302&tin=02508201610067®Number=0000000000091777&sum=40000 [11:49:23]StoreToDocumentArchive [11:49:23]shift 544 fd 201909 [11:49:23]save to /storage/0544/doc_00201909 [11:49:23]save last doc name /storage/0544/doc_00201909 to /storage/kkm_last_doc_name [11:49:23]save OK [11:49:23]Clear old archive folders... [11:49:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:23]tlvbuf is 011AEC00 [11:49:23]SAM_PROTO_ClearQueue [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 09 00 00 [11:49:23]Write to MH i2c: E2 08 00 C4 07 80 09 00 00 00 00 00 00 3D [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 03 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [11:49:23]RAPDU: 90 00 [11:49:23]wFMCommunicate OK [11:49:23]SAM_PROTO_ClearQueue done [11:49:23]KKMCreateOFDPacket [11:49:23]OFDProtocolAddRootSTLVToBuf [11:49:23]FM_MakeSignedData [11:49:23]FM_MakeSignedData [11:49:23]SAM_PROTO_SignData [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 0D 01 02 [11:49:23]Write to MH i2c: E2 08 00 C5 07 80 0D 01 02 00 00 00 00 45 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 03 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [11:49:23]RAPDU: 90 00 [11:49:23]wFMCommunicate OK [11:49:23]wFMCommunicate request_size=255 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 C2 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 14 03 00 35 04 06 00 4C [11:49:23]Write to MH i2c: E2 02 01 C6 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 C2 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 14 03 00 35 04 06 00 4C 00 00 1A [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 03 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [11:49:23]RAPDU: 90 00 [11:49:23]wFMCommunicate OK [11:49:23]wFMCommunicate request_size=10 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 0D 02 02 05 82 79 54 8F 4E [11:49:23]Write to MH i2c: E2 0D 00 C7 07 80 0D 02 02 05 00 82 79 54 8F 4E 00 00 7E [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 03 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [11:49:23]RAPDU: 90 00 [11:49:23]wFMCommunicate OK [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 0D 03 02 [11:49:23]Write to MH i2c: E2 08 00 C8 07 80 0D 03 02 00 00 00 00 4A [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 0B 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 0B 00 C8 07 00 28 79 54 98 71 0C D5 D7 90 00 01 [11:49:23]RAPDU: 28 79 54 98 71 0C D5 D7 90 00 [11:49:23]wFMCommunicate OK [11:49:23]SAM_PROTO_SignData done [11:49:23]FM_MakeSignedData done [11:49:23]CreateOFDProtocolMessage [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 11 00 00 [11:49:23]Write to MH i2c: E2 08 00 C9 07 80 11 00 00 00 00 00 00 4A [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 17 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 17 00 C9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [11:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:49:23]wFMCommunicate OK [11:49:23]CreateOFDProtocolMessage done [11:49:23]OFDSenderStorePacket 201909 [11:49:23]StoreOFDPacket docnum=201909 [11:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 85 20 07 01 D3 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 C2 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 14 03 00 35 04 06 00 4C 82 79 54 8F 4E 28 79 54 98 71 0C D5 D7 [11:49:23]CheckFolder [11:49:23]dirname=/storage/ofd_packets [11:49:23]CheckFolder done [11:49:23]ProducePacketName [11:49:23]name=ofd_packets/00201909 [11:49:23]NVStorageSaveData ofd_packets/00201909 [11:49:23]File name is /storage/ofd_packets/00201909 [11:49:23]Write 301 bytes [11:49:23]NVStorageSaveData done [11:49:23]OFDSenderStorePacket done [11:49:23]KKMCreateOFDPacket done [11:49:23]NVStorageSaveData kkm_last_timestamp [11:49:23]File name is /storage/kkm_last_timestamp [11:49:23]Write 4 bytes [11:49:23]NVStorageSaveData done [11:49:23]ExternCall_PrintAddStr [11:49:23]wPrintStart [11:49:23]Write to MH i2c: 01 00 00 CA 07 D1 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 07 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: 01 07 00 CA 07 00 00 00 00 00 FF 0F E6 [11:49:23]RasterBufferAndPrint [11:49:23]line Счет N : (1)449670 [11:49:23]line ИНН: 02508201610067 [11:49:23]line Контрольно-Кассовый Чек [11:49:23]line ПРОДАЖА [11:49:23]line ТРК (МРК, ГНК) : 41 [11:49:23]line Товар: 2710124130 [11:49:23]line Аи-92-К-2 [11:49:23]line 5.980 * 66.90 [11:49:23]line = 400.06 [11:49:23]line НДС 12% НСП 1% [11:49:23]line > о реализуемом товаре [11:49:23]line ОКРУГЛЕНИЕ: -0.06 [11:49:23]line ИТОГО: 400.00 [11:49:23]line Внесено: 400.00 [11:49:23]line СДАЧА: 0.00 [11:49:23]line НСП 1% : 3.54 [11:49:23]line НДС 12% : 42.48 [11:49:23]line Наличными: 400.00 [11:49:23]line Безнал.: 0.00 [11:49:23]line Место: АЗС № 171 "Партнер Нефть" [11:49:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:49:23]line СНО: Общий режим [11:49:23]line Чек 201 27.10.2024 11:49 [11:49:23]line Смена: 544 ФФД: 1.0 [11:49:23]line ЗНМ: 0300000109 [11:49:23]line РНМ: 0000000000091777 [11:49:23]line Версия ККМ: 001 [11:49:23]line ФМ: 0000000000871756 [11:49:23]line ФД: 201909 [11:49:23]line ФПД: 84123265044302 [11:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114922&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201909&fm=84123265044302&tin=02508201610067®Number=0000000000091777&sum=40000 [11:49:24]written 0, free lines is 4095 [11:49:24]Write to MH i2c: 01 00 00 F5 07 FC [11:49:24]Write i2c OK [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: 01 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: 01 07 00 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: 01 07 00 F5 07 00 00 00 00 00 8F 0C 9E [11:49:24]RasterBufferAndPrint [11:49:24]line [11:49:24]line [11:49:24]line [11:49:24]line [11:49:24]line [11:49:24]written 0, free lines is 3217 [11:49:24]MH_Cut [11:49:24]Write to MH i2c: D1 01 00 FC 07 01 D5 [11:49:24]Write i2c OK [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: D1 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: D1 01 00 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: D1 01 00 FC 07 00 D4 [11:49:24]Write to MH i2c: 01 00 00 FD 07 04 [11:49:24]Write i2c OK [11:49:24]MH_I2C_Read... [11:49:25]*** Cut start [11:49:25]*** Purtial cut [11:49:25]*** Stage 1: CUTSNS_PIN = 1 [11:49:25]Read from MH i2c: 01 [11:49:25]MH_I2C_Read... [11:49:25]*** Stop cut motor [11:49:25]*** Cut end [11:49:25]Read from MH i2c: 01 07 00 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: 01 07 00 FD 07 00 00 00 00 00 FF 0F 19 [11:49:25]process_action close_receipt done [11:49:25]requested_data is exist [11:49:25]produce_requested_data [11:49:25]requested_item fm.sn is exist - process it [11:49:25]wFMCommunicate request_size=4 [11:49:25]MH_SAM_APDU [11:49:25]CAPDU: 80 11 00 00 [11:49:25]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [11:49:25]Write i2c OK [11:49:25]MH_I2C_Read... [11:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:25]Read from MH i2c: E2 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: E2 17 00 [11:49:25]MH_I2C_Read... [11:49:25]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [11:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:49:25]wFMCommunicate OK [11:49:25]requested_item fd.num is exist - process it [11:49:25]SAM_PROTO_GetFieldsCounters [11:49:25]wFMCommunicate request_size=4 [11:49:25]MH_SAM_APDU [11:49:25]CAPDU: 80 13 00 00 [11:49:25]Write to MH i2c: E2 08 00 FF 07 80 13 00 00 00 00 00 00 82 [11:49:25]Write i2c OK [11:49:25]MH_I2C_Read... [11:49:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:26]Read from MH i2c: E2 [11:49:26]MH_I2C_Read... [11:49:26]Read from MH i2c: E2 62 00 [11:49:26]MH_I2C_Read... [11:49:26]Read from MH i2c: E2 62 00 FF 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:49:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:26]wFMCommunicate OK [11:49:26]SAM_PROTO_GetFieldsCounters done [11:49:26]requested_item shift.num is exist - process it [11:49:26]requested_item shift.opened is exist - process it [11:49:26]req_shift_opened [11:49:26]FM_GetShiftState [11:49:26]SAM_PROTO_GetShiftState [11:49:26]wFMCommunicate request_size=4 [11:49:26]MH_SAM_APDU [11:49:26]CAPDU: 80 13 01 00 [11:49:26]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [11:49:26]Write i2c OK [11:49:26]MH_I2C_Read... [11:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:26]Read from MH i2c: E2 [11:49:26]MH_I2C_Read... [11:49:26]Read from MH i2c: E2 0E 00 [11:49:26]MH_I2C_Read... [11:49:26]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 87 [11:49:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:49:26]wFMCommunicate OK [11:49:26]SAM_PROTO_GetShiftState done [11:49:26]FM_GetShiftState done [11:49:26]req_shift_opened done [11:49:26]requested_item shift.open_date is exist - process it [11:49:26]req_shift_open_date [11:49:26]req_shift_open_date done [11:49:26]produce_requested_data done [11:49:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201909,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:49:26]process_action_free close_receipt [11:49:26]json_value_free [11:49:26]json_value_free done [11:49:26]process_json_proto returns [11:49:26]Send response to host [11:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201909,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:49:26]free response buf [11:49:26]execute_script done [11:49:26]execute_script returns [11:49:26]free content buf [11:49:26]Sock 8.Close socket [11:49:26]Sock 8.Thread stoped [11:49:48]ConnectInit Can't connect to host [11:49:48]CommunicateWithHost connect error [11:49:48]CommunicateWithHost err = -1 [11:49:48]OFD Sender: Server communicate error [11:49:49]OFD Sender: Processing packet 201907 [packets to send 114, broken 111] [11:49:49]ProducePacketName [11:49:49]name=ofd_packets/00201907 [11:49:49]OFD Sender: To server: pG, [11:49:49]CommunicateWithHost lk.salyk.kg:30040 [11:49:49]ConnectInit lk.salyk.kg [11:49:49]Connected sock=8 [11:49:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DB 5F 07 01 5F 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C7 00 00 00 F4 03 04 00 56 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 14 03 00 35 04 06 00 FD 32 66 04 DF 03 37 AE D0 37 39 8A 5D 01 [11:49:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 F1 47 00 A0 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 14 03 00 F4 03 04 00 95 D4 1D 67 B6 04 01 00 00 FA B9 D5 ED 19 7D A4 B6 [11:49:49]CommunicateWithHost err = 0 [11:49:49]CheckOFDResponse [11:49:49]1017 (14) - 77093643461234 [11:49:49]1041 (16) - 0000000000871756 [11:49:49]1040 (4) - 201907 [11:49:49]1012 (4) - 27.10.2024 05:50 [11:49:49]1206 (1) - 0 [11:49:49]OFD Sender: Remove packet 201907 [11:49:49]ProducePacketName [11:49:49]name=ofd_packets/00201907 [11:49:49]NVStorageDeleteData [11:49:49]OFD Sender: Processing packet 201908 [packets to send 113, broken 111] [11:49:49]ProducePacketName [11:49:49]name=ofd_packets/00201908 [11:49:49]OFD Sender: To server: pG, [11:49:49]CommunicateWithHost lk.salyk.kg:30040 [11:49:49]ConnectInit lk.salyk.kg [11:49:50]Connected sock=10 [11:49:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CB F2 07 01 44 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C8 00 00 00 F4 03 04 00 69 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 14 03 00 35 04 06 00 F4 5D EE 2C 4F 61 D9 BA 6A 55 AC CC 6A 27 [11:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 11 D2 47 00 56 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 14 03 00 F4 03 04 00 96 D4 1D 67 B6 04 01 00 00 76 D3 A0 CB B2 4E 25 7C [11:49:50]CommunicateWithHost err = 0 [11:49:50]CheckOFDResponse [11:49:50]1017 (14) - 77093643461234 [11:49:50]1041 (16) - 0000000000871756 [11:49:50]1040 (4) - 201908 [11:49:50]1012 (4) - 27.10.2024 05:50 [11:49:50]1206 (1) - 0 [11:49:50]OFD Sender: Remove packet 201908 [11:49:50]ProducePacketName [11:49:50]name=ofd_packets/00201908 [11:49:50]NVStorageDeleteData [11:49:50]OFD Sender: Processing packet 201909 [packets to send 112, broken 111] [11:49:50]ProducePacketName [11:49:50]name=ofd_packets/00201909 [11:49:50]OFD Sender: To server: pG, [11:49:50]CommunicateWithHost lk.salyk.kg:30040 [11:49:50]ConnectInit lk.salyk.kg [11:49:50]Connected sock=8 [11:49:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 85 20 07 01 D3 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 C2 28 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 14 03 00 35 04 06 00 4C 82 79 54 8F 4E 28 79 54 98 71 0C D5 D7 [11:49:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7C BF 47 00 89 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 14 03 00 F4 03 04 00 97 D4 1D 67 B6 04 01 00 00 E6 9D E1 ED AC CD A6 B5 [11:49:51]CommunicateWithHost err = 0 [11:49:51]CheckOFDResponse [11:49:51]1017 (14) - 77093643461234 [11:49:51]1041 (16) - 0000000000871756 [11:49:51]1040 (4) - 201909 [11:49:51]1012 (4) - 27.10.2024 05:50 [11:49:51]1206 (1) - 0 [11:49:51]OFD Sender: Remove packet 201909 [11:49:51]ProducePacketName [11:49:51]name=ofd_packets/00201909 [11:49:51]NVStorageDeleteData [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:30]accept exits with 9 [11:50:30]New connection [11:50:30]New thread 3066498404 created [11:50:30]Thread 3066641764 joined [11:50:30]Waiting for new connection... [11:50:30] Sock 9.Parse request [11:50:30]Sock 9.Check first char [11:50:30]Sock 9.First char is OK [11:50:30]request: POST /json_proto HTTP/1.0 [11:50:30]Method: POST [11:50:30]URL: /json_proto [11:50:30]Method is POST - this is cgi request [11:50:30]url: /json_proto [11:50:30]query_string will be loaded in cgi processing [11:50:30]execute_cgi json_proto POST (null) [11:50:30]execute_cgi path=json_proto method=POST [11:50:30]POST find Content-Length [11:50:30]Host: 172.17.63.195:8080 [11:50:30]Content-Length: 677 [11:50:30]Content-Type: application/json [11:50:30] [11:50:30]POST finish read [11:50:30]Found Content-Length = 677 [11:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:50:30]execute_script... [11:50:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:50:30]POST & json_proto [11:50:30]process_json_proto [11:50:30]json parsed OK: [11:50:30]protocol is kg_v1.0 [11:50:30]action value=close_receipt [11:50:30]process_action close_receipt [11:50:30]cmd_close_receipt [11:50:30]MH_GetDate [11:50:30]Write to MH i2c: F0 00 00 01 08 F8 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: F0 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: F0 09 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: F0 09 00 01 08 00 06 29 1E 67 47 1B 1E 67 9C [11:50:30]GetLastDocTimeStamp 1730029762 [11:50:30]current date 1730029830 [11:50:30]FM_GetShiftState [11:50:30]SAM_PROTO_GetShiftState [11:50:30]wFMCommunicate request_size=4 [11:50:30]MH_SAM_APDU [11:50:30]CAPDU: 80 13 01 00 [11:50:30]Write to MH i2c: E2 08 00 02 08 80 13 01 00 00 00 00 00 87 [11:50:30]Write i2c OK [11:50:30]MH_I2C_Read... [11:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:30]Read from MH i2c: E2 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 0E 00 [11:50:30]MH_I2C_Read... [11:50:30]Read from MH i2c: E2 0E 00 02 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 89 [11:50:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:50:30]wFMCommunicate OK [11:50:30]SAM_PROTO_GetShiftState done [11:50:30]FM_GetShiftState done [11:50:30]opened in 1729987312 [11:50:30]opened+sec_in_day 1730073712 [11:50:30]quantity*price = 50041 [11:50:30]sum+1 = 50042 [11:50:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 202 27.10.2024 11:50 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201910 ФПД: 235571967564538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115030&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201910&fm=235571967564538&tin=02508201610067®Number=0000000000091777&sum=50000 [11:50:31]StoreToDocumentArchive [11:50:31]shift 544 fd 201910 [11:50:31]save to /storage/0544/doc_00201910 [11:50:31]save last doc name /storage/0544/doc_00201910 to /storage/kkm_last_doc_name [11:50:31]save OK [11:50:31]Clear old archive folders... [11:50:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:31]tlvbuf is 01210F40 [11:50:31]SAM_PROTO_ClearQueue [11:50:31]wFMCommunicate request_size=4 [11:50:31]MH_SAM_APDU [11:50:31]CAPDU: 80 09 00 00 [11:50:31]Write to MH i2c: E2 08 00 0F 08 80 09 00 00 00 00 00 00 89 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 03 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [11:50:31]RAPDU: 90 00 [11:50:31]wFMCommunicate OK [11:50:31]SAM_PROTO_ClearQueue done [11:50:31]KKMCreateOFDPacket [11:50:31]OFDProtocolAddRootSTLVToBuf [11:50:31]FM_MakeSignedData [11:50:31]FM_MakeSignedData [11:50:31]SAM_PROTO_SignData [11:50:31]wFMCommunicate request_size=4 [11:50:31]MH_SAM_APDU [11:50:31]CAPDU: 80 0D 01 02 [11:50:31]Write to MH i2c: E2 08 00 10 08 80 0D 01 02 00 00 00 00 91 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 03 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [11:50:31]RAPDU: 90 00 [11:50:31]wFMCommunicate OK [11:50:31]wFMCommunicate request_size=255 [11:50:31]MH_SAM_APDU [11:50: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 32 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 CA 00 00 00 F4 03 04 00 06 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 14 03 00 35 04 06 00 D6 [11:50:31]Write to MH i2c: E2 02 01 11 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CA 00 00 00 F4 03 04 00 06 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 14 03 00 35 04 06 00 D6 00 00 68 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 03 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [11:50:31]RAPDU: 90 00 [11:50:31]wFMCommunicate OK [11:50:31]wFMCommunicate request_size=10 [11:50:31]MH_SAM_APDU [11:50:31]CAPDU: 80 0D 02 02 05 40 5F 72 1A FA [11:50:31]Write to MH i2c: E2 0D 00 12 08 80 0D 02 02 05 00 40 5F 72 1A FA 00 00 C3 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 03 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [11:50:31]RAPDU: 90 00 [11:50:31]wFMCommunicate OK [11:50:31]wFMCommunicate request_size=4 [11:50:31]MH_SAM_APDU [11:50:31]CAPDU: 80 0D 03 02 [11:50:31]Write to MH i2c: E2 08 00 13 08 80 0D 03 02 00 00 00 00 96 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]OFD Sender: No OFD packet to send [11:50:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 0B 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 0B 00 13 08 00 34 A4 A6 FD 21 34 56 33 90 00 F0 [11:50:31]RAPDU: 34 A4 A6 FD 21 34 56 33 90 00 [11:50:31]wFMCommunicate OK [11:50:31]SAM_PROTO_SignData done [11:50:31]FM_MakeSignedData done [11:50:31]CreateOFDProtocolMessage [11:50:31]wFMCommunicate request_size=4 [11:50:31]MH_SAM_APDU [11:50:31]CAPDU: 80 11 00 00 [11:50:31]Write to MH i2c: E2 08 00 14 08 80 11 00 00 00 00 00 00 96 [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:31]Read from MH i2c: E2 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 17 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: E2 17 00 14 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [11:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:50:31]wFMCommunicate OK [11:50:31]CreateOFDProtocolMessage done [11:50:31]OFDSenderStorePacket 201910 [11:50:31]StoreOFDPacket docnum=201910 [11:50:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1C 29 07 01 E5 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CA 00 00 00 F4 03 04 00 06 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 14 03 00 35 04 06 00 D6 40 5F 72 1A FA 34 A4 A6 FD 21 34 56 33 [11:50:31]CheckFolder [11:50:31]dirname=/storage/ofd_packets [11:50:31]CheckFolder done [11:50:31]ProducePacketName [11:50:31]name=ofd_packets/00201910 [11:50:31]NVStorageSaveData ofd_packets/00201910 [11:50:31]File name is /storage/ofd_packets/00201910 [11:50:31]Write 301 bytes [11:50:31]NVStorageSaveData done [11:50:31]OFDSenderStorePacket done [11:50:31]KKMCreateOFDPacket done [11:50:31]NVStorageSaveData kkm_last_timestamp [11:50:31]File name is /storage/kkm_last_timestamp [11:50:31]Write 4 bytes [11:50:31]NVStorageSaveData done [11:50:31]ExternCall_PrintAddStr [11:50:31]wPrintStart [11:50:31]Write to MH i2c: 01 00 00 15 08 1D [11:50:31]Write i2c OK [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: 01 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: 01 07 00 [11:50:31]MH_I2C_Read... [11:50:31]Read from MH i2c: 01 07 00 15 08 00 00 00 00 00 FF 0F 32 [11:50:31]RasterBufferAndPrint [11:50:31]line Счет N : (1)449671 [11:50:31]line ИНН: 02508201610067 [11:50:31]line Контрольно-Кассовый Чек [11:50:31]line ПРОДАЖА [11:50:31]line ТРК (МРК, ГНК) : 41 [11:50:31]line Товар: 2710124130 [11:50:31]line Аи-92-К-2 [11:50:31]line 7.480 * 66.90 [11:50:31]line = 500.41 [11:50:31]line НДС 12% НСП 1% [11:50:31]line > о реализуемом товаре [11:50:31]line ОКРУГЛЕНИЕ: -0.41 [11:50:31]line ИТОГО: 500.00 [11:50:31]line Внесено: 500.00 [11:50:31]line СДАЧА: 0.00 [11:50:31]line НСП 1% : 4.43 [11:50:31]line НДС 12% : 53.14 [11:50:31]line Наличными: 500.00 [11:50:31]line Безнал.: 0.00 [11:50:31]line Место: АЗС № 171 "Партнер Нефть" [11:50:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:50:31]line СНО: Общий режим [11:50:31]line Чек 202 27.10.2024 11:50 [11:50:31]line Смена: 544 ФФД: 1.0 [11:50:31]line ЗНМ: 0300000109 [11:50:31]line РНМ: 0000000000091777 [11:50:31]line Версия ККМ: 001 [11:50:31]line ФМ: 0000000000871756 [11:50:31]line ФД: 201910 [11:50:31]line ФПД: 235571967564538 [11:50:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115030&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201910&fm=235571967564538&tin=02508201610067®Number=0000000000091777&sum=50000 [11:50:32]OFD Sender: Processing packet 201910 [packets to send 112, broken 111] [11:50:32]ProducePacketName [11:50:32]name=ofd_packets/00201910 [11:50:32]OFD Sender: To server: pG, [11:50:32]CommunicateWithHost lk.salyk.kg:30040 [11:50:32]ConnectInit lk.salyk.kg [11:50:32]written 0, free lines is 4095 [11:50:32]Connected sock=10 [11:50:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1C 29 07 01 E5 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CA 00 00 00 F4 03 04 00 06 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 14 03 00 35 04 06 00 D6 40 5F 72 1A FA 34 A4 A6 FD 21 34 56 33 [11:50:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 74 A6 47 00 97 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 14 03 00 F4 03 04 00 C0 D4 1D 67 B6 04 01 00 00 2F 81 79 FA 62 D1 AF 30 [11:50:32]CommunicateWithHost err = 0 [11:50:32]CheckOFDResponse [11:50:32]1017 (14) - 77093643461234 [11:50:32]1041 (16) - 0000000000871756 [11:50:32]1040 (4) - 201910 [11:50:32]1012 (4) - 27.10.2024 05:50 [11:50:32]1206 (1) - 0 [11:50:32]OFD Sender: Remove packet 201910 [11:50:32]ProducePacketName [11:50:32]name=ofd_packets/00201910 [11:50:32]NVStorageDeleteData [11:50:32]Write to MH i2c: 01 00 00 40 08 48 [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: 01 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: 01 07 00 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: 01 07 00 40 08 00 00 00 00 00 CD 0C 28 [11:50:32]RasterBufferAndPrint [11:50:32]line [11:50:32]line [11:50:32]line [11:50:32]line [11:50:32]line [11:50:32]written 0, free lines is 3283 [11:50:32]MH_Cut [11:50:32]Write to MH i2c: D1 01 00 47 08 01 21 [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: D1 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: D1 01 00 [11:50:32]MH_I2C_Read... [11:50:32]Read from MH i2c: D1 01 00 47 08 00 20 [11:50:32]Write to MH i2c: 01 00 00 48 08 50 [11:50:32]Write i2c OK [11:50:32]MH_I2C_Read... [11:50:32]OFD Sender: No OFD packet to send [11:50:33]*** Cut start [11:50:33]*** Purtial cut [11:50:33]*** Stage 1: CUTSNS_PIN = 1 [11:50:33]Read from MH i2c: 01 [11:50:33]MH_I2C_Read... [11:50:33]*** Stop cut motor [11:50:33]*** Cut end [11:50:33]Read from MH i2c: 01 07 00 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: 01 07 00 48 08 00 00 00 00 00 FF 0F 65 [11:50:33]process_action close_receipt done [11:50:33]requested_data is exist [11:50:33]produce_requested_data [11:50:33]requested_item fm.sn is exist - process it [11:50:33]wFMCommunicate request_size=4 [11:50:33]MH_SAM_APDU [11:50:33]CAPDU: 80 11 00 00 [11:50:33]Write to MH i2c: E2 08 00 49 08 80 11 00 00 00 00 00 00 CB [11:50:33]Write i2c OK [11:50:33]MH_I2C_Read... [11:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:33]Read from MH i2c: E2 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: E2 17 00 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: E2 17 00 49 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 20 [11:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:50:33]wFMCommunicate OK [11:50:33]requested_item fd.num is exist - process it [11:50:33]SAM_PROTO_GetFieldsCounters [11:50:33]wFMCommunicate request_size=4 [11:50:33]MH_SAM_APDU [11:50:33]CAPDU: 80 13 00 00 [11:50:33]Write to MH i2c: E2 08 00 4A 08 80 13 00 00 00 00 00 00 CE [11:50:33]Write i2c OK [11:50:33]MH_I2C_Read... [11:50:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:33]Read from MH i2c: E2 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: E2 62 00 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: E2 62 00 4A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [11:50:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:33]wFMCommunicate OK [11:50:33]SAM_PROTO_GetFieldsCounters done [11:50:33]requested_item shift.num is exist - process it [11:50:33]requested_item shift.opened is exist - process it [11:50:33]req_shift_opened [11:50:33]FM_GetShiftState [11:50:33]SAM_PROTO_GetShiftState [11:50:33]wFMCommunicate request_size=4 [11:50:33]MH_SAM_APDU [11:50:33]CAPDU: 80 13 01 00 [11:50:33]Write to MH i2c: E2 08 00 4B 08 80 13 01 00 00 00 00 00 D0 [11:50:33]Write i2c OK [11:50:33]MH_I2C_Read... [11:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:34]Read from MH i2c: E2 [11:50:34]MH_I2C_Read... [11:50:34]Read from MH i2c: E2 0E 00 [11:50:34]MH_I2C_Read... [11:50:34]Read from MH i2c: E2 0E 00 4B 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D2 [11:50:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:50:34]wFMCommunicate OK [11:50:34]SAM_PROTO_GetShiftState done [11:50:34]FM_GetShiftState done [11:50:34]req_shift_opened done [11:50:34]requested_item shift.open_date is exist - process it [11:50:34]req_shift_open_date [11:50:34]req_shift_open_date done [11:50:34]produce_requested_data done [11:50:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201910,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:50:34]process_action_free close_receipt [11:50:34]json_value_free [11:50:34]json_value_free done [11:50:34]process_json_proto returns [11:50:34]Send response to host [11:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201910,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:50:34]free response buf [11:50:34]execute_script done [11:50:34]execute_script returns [11:50:34]free content buf [11:50:34]Sock 9.Close socket [11:50:34]Sock 9.Thread stoped [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]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:43]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:55]accept exits with 8 [11:53:55]New connection [11:53:55]New thread 3066641764 created [11:53:55]Thread 3066498404 joined [11:53:55]Waiting for new connection... [11:53:55] Sock 8.Parse request [11:53:55]Sock 8.Check first char [11:53:55]Sock 8.First char is OK [11:53:55]request: POST /json_proto HTTP/1.0 [11:53:55]Method: POST [11:53:55]URL: /json_proto [11:53:55]Method is POST - this is cgi request [11:53:55]url: /json_proto [11:53:55]query_string will be loaded in cgi processing [11:53:55]execute_cgi json_proto POST (null) [11:53:55]execute_cgi path=json_proto method=POST [11:53:55]POST find Content-Length [11:53:55]Host: 172.17.63.195:8080 [11:53:55]Content-Length: 677 [11:53:55]Content-Type: application/json [11:53:55] [11:53:55]POST finish read [11:53:55]Found Content-Length = 677 [11:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:53:55]execute_script... [11:53:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:53:55]POST & json_proto [11:53:55]process_json_proto [11:53:55]json parsed OK: [11:53:55]protocol is kg_v1.0 [11:53:55]action value=close_receipt [11:53:55]process_action close_receipt [11:53:55]cmd_close_receipt [11:53:55]MH_GetDate [11:53:55]Write to MH i2c: F0 00 00 4C 08 43 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: F0 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: F0 09 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: F0 09 00 4C 08 00 D4 29 1E 67 47 1B 1E 67 B5 [11:53:55]GetLastDocTimeStamp 1730029830 [11:53:55]current date 1730030036 [11:53:55]FM_GetShiftState [11:53:55]SAM_PROTO_GetShiftState [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 13 01 00 [11:53:55]Write to MH i2c: E2 08 00 4D 08 80 13 01 00 00 00 00 00 D2 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 0E 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 0E 00 4D 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D4 [11:53:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:53:55]wFMCommunicate OK [11:53:55]SAM_PROTO_GetShiftState done [11:53:55]FM_GetShiftState done [11:53:55]opened in 1729987312 [11:53:55]opened+sec_in_day 1730073712 [11:53:55]quantity*price = 50041 [11:53:55]sum+1 = 50042 [11:53:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 203 27.10.2024 11:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201911 ФПД: 104922172968338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115356&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201911&fm=104922172968338&tin=02508201610067®Number=0000000000091777&sum=50000 [11:53:57]StoreToDocumentArchive [11:53:57]shift 544 fd 201911 [11:53:57]save to /storage/0544/doc_00201911 [11:53:57]save last doc name /storage/0544/doc_00201911 to /storage/kkm_last_doc_name [11:53:57]save OK [11:53:57]Clear old archive folders... [11:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:57]tlvbuf is 01197E50 [11:53:57]SAM_PROTO_ClearQueue [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 09 00 00 [11:53:57]Write to MH i2c: E2 08 00 5A 08 80 09 00 00 00 00 00 00 D4 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [11:53:57]RAPDU: 90 00 [11:53:57]wFMCommunicate OK [11:53:57]SAM_PROTO_ClearQueue done [11:53:57]KKMCreateOFDPacket [11:53:57]OFDProtocolAddRootSTLVToBuf [11:53:57]FM_MakeSignedData [11:53:57]FM_MakeSignedData [11:53:57]SAM_PROTO_SignData [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 0D 01 02 [11:53:57]Write to MH i2c: E2 08 00 5B 08 80 0D 01 02 00 00 00 00 DC [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [11:53:57]RAPDU: 90 00 [11:53:57]wFMCommunicate OK [11:53:57]wFMCommunicate request_size=255 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CB 00 00 00 F4 03 04 00 D4 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 14 03 00 35 04 06 00 5F [11:53:57]Write to MH i2c: E2 02 01 5C 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CB 00 00 00 F4 03 04 00 D4 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 14 03 00 35 04 06 00 5F 00 00 0C [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [11:53:57]RAPDU: 90 00 [11:53:57]wFMCommunicate OK [11:53:57]wFMCommunicate request_size=10 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 0D 02 02 05 6D 18 D9 4D 92 [11:53:57]Write to MH i2c: E2 0D 00 5D 08 80 0D 02 02 05 00 6D 18 D9 4D 92 00 00 26 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [11:53:57]RAPDU: 90 00 [11:53:57]wFMCommunicate OK [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 0D 03 02 [11:53:57]Write to MH i2c: E2 08 00 5E 08 80 0D 03 02 00 00 00 00 E1 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 0B 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 0B 00 5E 08 00 8E 25 D6 EC 0C 28 B6 FB 90 00 3C [11:53:57]RAPDU: 8E 25 D6 EC 0C 28 B6 FB 90 00 [11:53:57]wFMCommunicate OK [11:53:57]SAM_PROTO_SignData done [11:53:57]FM_MakeSignedData done [11:53:57]CreateOFDProtocolMessage [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 11 00 00 [11:53:57]Write to MH i2c: E2 08 00 5F 08 80 11 00 00 00 00 00 00 E1 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 5F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [11:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:53:57]wFMCommunicate OK [11:53:57]CreateOFDProtocolMessage done [11:53:57]OFDSenderStorePacket 201911 [11:53:57]StoreOFDPacket docnum=201911 [11:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8B 1E 07 01 53 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CB 00 00 00 F4 03 04 00 D4 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 14 03 00 35 04 06 00 5F 6D 18 D9 4D 92 8E 25 D6 EC 0C 28 B6 FB [11:53:57]CheckFolder [11:53:57]dirname=/storage/ofd_packets [11:53:57]CheckFolder done [11:53:57]ProducePacketName [11:53:57]name=ofd_packets/00201911 [11:53:57]NVStorageSaveData ofd_packets/00201911 [11:53:57]File name is /storage/ofd_packets/00201911 [11:53:57]Write 301 bytes [11:53:57]NVStorageSaveData done [11:53:57]OFDSenderStorePacket done [11:53:57]KKMCreateOFDPacket done [11:53:57]NVStorageSaveData kkm_last_timestamp [11:53:57]File name is /storage/kkm_last_timestamp [11:53:57]Write 4 bytes [11:53:57]NVStorageSaveData done [11:53:57]ExternCall_PrintAddStr [11:53:57]wPrintStart [11:53:57]Write to MH i2c: 01 00 00 60 08 68 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 07 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 07 00 60 08 00 00 00 00 00 FF 0F 7D [11:53:57]RasterBufferAndPrint [11:53:57]line Счет N : (1)449672 [11:53:57]line ИНН: 02508201610067 [11:53:57]line Контрольно-Кассовый Чек [11:53:57]line ПРОДАЖА [11:53:57]line ТРК (МРК, ГНК) : 41 [11:53:57]line Товар: 2710124130 [11:53:57]line Аи-92-К-2 [11:53:57]line 7.480 * 66.90 [11:53:57]line = 500.41 [11:53:57]line НДС 12% НСП 1% [11:53:57]line > о реализуемом товаре [11:53:57]line ОКРУГЛЕНИЕ: -0.41 [11:53:57]line ИТОГО: 500.00 [11:53:57]line Внесено: 500.00 [11:53:57]line СДАЧА: 0.00 [11:53:57]line НСП 1% : 4.43 [11:53:57]line НДС 12% : 53.14 [11:53:57]line Наличными: 500.00 [11:53:57]line Безнал.: 0.00 [11:53:57]line Место: АЗС № 171 "Партнер Нефть" [11:53:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:53:57]line СНО: Общий режим [11:53:57]line Чек 203 27.10.2024 11:53 [11:53:57]line Смена: 544 ФФД: 1.0 [11:53:57]line ЗНМ: 0300000109 [11:53:57]line РНМ: 0000000000091777 [11:53:57]line Версия ККМ: 001 [11:53:57]line ФМ: 0000000000871756 [11:53:57]line ФД: 201911 [11:53:57]line ФПД: 104922172968338 [11:53:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115356&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201911&fm=104922172968338&tin=02508201610067®Number=0000000000091777&sum=50000 [11:53:57]OFD Sender: Processing packet 201911 [packets to send 112, broken 111] [11:53:57]ProducePacketName [11:53:57]name=ofd_packets/00201911 [11:53:57]OFD Sender: To server: pG, [11:53:57]CommunicateWithHost lk.salyk.kg:30040 [11:53:57]ConnectInit lk.salyk.kg [11:53:57]written 0, free lines is 4095 [11:53:58]Connected sock=10 [11:53:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8B 1E 07 01 53 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CB 00 00 00 F4 03 04 00 D4 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 14 03 00 35 04 06 00 5F 6D 18 D9 4D 92 8E 25 D6 EC 0C 28 B6 FB [11:53:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CA C5 47 00 FF 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 14 03 00 F4 03 04 00 8E D5 1D 67 B6 04 01 00 00 B3 95 B9 0C F5 B1 4D E8 [11:53:58]CommunicateWithHost err = 0 [11:53:58]CheckOFDResponse [11:53:58]1017 (14) - 77093643461234 [11:53:58]1041 (16) - 0000000000871756 [11:53:58]1040 (4) - 201911 [11:53:58]1012 (4) - 27.10.2024 05:54 [11:53:58]1206 (1) - 0 [11:53:58]OFD Sender: Remove packet 201911 [11:53:58]ProducePacketName [11:53:58]name=ofd_packets/00201911 [11:53:58]NVStorageDeleteData [11:53:58]Write to MH i2c: 01 00 00 8B 08 93 [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: 01 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: 01 07 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 A6 0C 4C [11:53:58]RasterBufferAndPrint [11:53:58]line [11:53:58]line [11:53:58]line [11:53:58]line [11:53:58]line [11:53:58]written 0, free lines is 3242 [11:53:58]MH_Cut [11:53:58]Write to MH i2c: D1 01 00 92 08 01 6C [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: D1 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: D1 01 00 [11:53:58]MH_I2C_Read... [11:53:58]Read from MH i2c: D1 01 00 92 08 00 6B [11:53:58]Write to MH i2c: 01 00 00 93 08 9B [11:53:58]Write i2c OK [11:53:58]MH_I2C_Read... [11:53:58]OFD Sender: No OFD packet to send [11:53:59]*** Cut start [11:53:59]*** Purtial cut [11:53:59]*** Stage 1: CUTSNS_PIN = 1 [11:53:59]Read from MH i2c: 01 [11:53:59]MH_I2C_Read... [11:53:59]*** Stop cut motor [11:53:59]*** Cut end [11:53:59]Read from MH i2c: 01 07 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 FF 0F B0 [11:53:59]process_action close_receipt done [11:53:59]requested_data is exist [11:53:59]produce_requested_data [11:53:59]requested_item fm.sn is exist - process it [11:53:59]wFMCommunicate request_size=4 [11:53:59]MH_SAM_APDU [11:53:59]CAPDU: 80 11 00 00 [11:53:59]Write to MH i2c: E2 08 00 94 08 80 11 00 00 00 00 00 00 16 [11:53:59]Write i2c OK [11:53:59]MH_I2C_Read... [11:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:59]Read from MH i2c: E2 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 17 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 17 00 94 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6B [11:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:53:59]wFMCommunicate OK [11:53:59]requested_item fd.num is exist - process it [11:53:59]SAM_PROTO_GetFieldsCounters [11:53:59]wFMCommunicate request_size=4 [11:53:59]MH_SAM_APDU [11:53:59]CAPDU: 80 13 00 00 [11:53:59]Write to MH i2c: E2 08 00 95 08 80 13 00 00 00 00 00 00 19 [11:53:59]Write i2c OK [11:53:59]MH_I2C_Read... [11:53:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:59]Read from MH i2c: E2 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 62 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 62 00 95 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:53:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:59]wFMCommunicate OK [11:53:59]SAM_PROTO_GetFieldsCounters done [11:53:59]requested_item shift.num is exist - process it [11:53:59]requested_item shift.opened is exist - process it [11:53:59]req_shift_opened [11:53:59]FM_GetShiftState [11:53:59]SAM_PROTO_GetShiftState [11:53:59]wFMCommunicate request_size=4 [11:53:59]MH_SAM_APDU [11:53:59]CAPDU: 80 13 01 00 [11:53:59]Write to MH i2c: E2 08 00 96 08 80 13 01 00 00 00 00 00 1B [11:53:59]Write i2c OK [11:53:59]MH_I2C_Read... [11:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:59]Read from MH i2c: E2 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 0E 00 [11:53:59]MH_I2C_Read... [11:53:59]Read from MH i2c: E2 0E 00 96 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1D [11:53:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:53:59]wFMCommunicate OK [11:53:59]SAM_PROTO_GetShiftState done [11:53:59]FM_GetShiftState done [11:53:59]req_shift_opened done [11:53:59]requested_item shift.open_date is exist - process it [11:53:59]req_shift_open_date [11:53:59]req_shift_open_date done [11:53:59]produce_requested_data done [11:53:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201911,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:53:59]process_action_free close_receipt [11:53:59]json_value_free [11:53:59]json_value_free done [11:53:59]process_json_proto returns [11:53:59]Send response to host [11:53:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201911,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:53:59]free response buf [11:53:59]execute_script done [11:53:59]execute_script returns [11:53:59]free content buf [11:53:59]Sock 8.Close socket [11:53:59]Sock 8.Thread stoped [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:14]accept exits with 9 [11:54:14]New connection [11:54:14]New thread 3066498404 created [11:54:14]Thread 3066641764 joined [11:54:14]Waiting for new connection... [11:54:14] Sock 9.Parse request [11:54:14]Sock 9.Check first char [11:54:14]Sock 9.First char is OK [11:54:14]request: POST /json_proto HTTP/1.0 [11:54:14]Method: POST [11:54:14]URL: /json_proto [11:54:14]Method is POST - this is cgi request [11:54:14]url: /json_proto [11:54:14]query_string will be loaded in cgi processing [11:54:14]execute_cgi json_proto POST (null) [11:54:14]execute_cgi path=json_proto method=POST [11:54:14]POST find Content-Length [11:54:14]Host: 172.17.63.195:8080 [11:54:14]Content-Length: 674 [11:54:14]Content-Type: application/json [11:54:14] [11:54:14]POST finish read [11:54:14]Found Content-Length = 674 [11:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:54:14]execute_script... [11:54:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:54:14]POST & json_proto [11:54:14]process_json_proto [11:54:14]json parsed OK: [11:54:14]protocol is kg_v1.0 [11:54:14]action value=close_receipt [11:54:14]process_action close_receipt [11:54:14]cmd_close_receipt [11:54:14]MH_GetDate [11:54:14]Write to MH i2c: F0 00 00 97 08 8E [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: F0 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: F0 09 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: F0 09 00 97 08 00 E7 29 1E 67 47 1B 1E 67 13 [11:54:14]GetLastDocTimeStamp 1730030036 [11:54:14]current date 1730030055 [11:54:14]FM_GetShiftState [11:54:14]SAM_PROTO_GetShiftState [11:54:14]wFMCommunicate request_size=4 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 13 01 00 [11:54:14]Write to MH i2c: E2 08 00 98 08 80 13 01 00 00 00 00 00 1D [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 0E 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 0E 00 98 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1F [11:54:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:54:14]wFMCommunicate OK [11:54:14]SAM_PROTO_GetShiftState done [11:54:14]FM_GetShiftState done [11:54:14]opened in 1729987312 [11:54:14]opened+sec_in_day 1730073712 [11:54:14]quantity*price = 60045 [11:54:14]sum+1 = 60047 [11:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 204 27.10.2024 11:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201912 ФПД: 190495316181435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115415&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201912&fm=190495316181435&tin=02508201610067®Number=0000000000091777&sum=60000 [11:54:15]StoreToDocumentArchive [11:54:15]shift 544 fd 201912 [11:54:15]save to /storage/0544/doc_00201912 [11:54:15]save last doc name /storage/0544/doc_00201912 to /storage/kkm_last_doc_name [11:54:15]save OK [11:54:15]Clear old archive folders... [11:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:15]tlvbuf is 01197720 [11:54:15]SAM_PROTO_ClearQueue [11:54:15]wFMCommunicate request_size=4 [11:54:15]MH_SAM_APDU [11:54:15]CAPDU: 80 09 00 00 [11:54:15]Write to MH i2c: E2 08 00 A5 08 80 09 00 00 00 00 00 00 1F [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:15]Read from MH i2c: E2 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 03 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [11:54:15]RAPDU: 90 00 [11:54:15]wFMCommunicate OK [11:54:15]SAM_PROTO_ClearQueue done [11:54:15]KKMCreateOFDPacket [11:54:15]OFDProtocolAddRootSTLVToBuf [11:54:15]FM_MakeSignedData [11:54:15]FM_MakeSignedData [11:54:15]SAM_PROTO_SignData [11:54:15]wFMCommunicate request_size=4 [11:54:15]MH_SAM_APDU [11:54:15]CAPDU: 80 0D 01 02 [11:54:15]Write to MH i2c: E2 08 00 A6 08 80 0D 01 02 00 00 00 00 27 [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 A6 08 00 90 00 22 [11:54:16]RAPDU: 90 00 [11:54:16]wFMCommunicate OK [11:54:16]wFMCommunicate request_size=255 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 E7 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 14 03 00 35 04 06 00 AD 41 25 A7 [11:54:16]Write to MH i2c: E2 02 01 A7 08 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 E7 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 14 03 00 35 04 06 00 AD 41 25 A7 00 00 7E [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 A7 08 00 90 00 23 [11:54:16]RAPDU: 90 00 [11:54:16]wFMCommunicate OK [11:54:16]wFMCommunicate request_size=7 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 0D 02 02 02 01 BB [11:54:16]Write to MH i2c: E2 0A 00 A8 08 80 0D 02 02 02 00 01 BB 00 00 EA [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 03 00 A8 08 00 90 00 24 [11:54:16]RAPDU: 90 00 [11:54:16]wFMCommunicate OK [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 0D 03 02 [11:54:16]Write to MH i2c: E2 08 00 A9 08 80 0D 03 02 00 00 00 00 2C [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0B 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 0B 00 A9 08 00 FC 28 B9 F2 24 8B BC 5A 90 00 C1 [11:54:16]RAPDU: FC 28 B9 F2 24 8B BC 5A 90 00 [11:54:16]wFMCommunicate OK [11:54:16]SAM_PROTO_SignData done [11:54:16]FM_MakeSignedData done [11:54:16]CreateOFDProtocolMessage [11:54:16]wFMCommunicate request_size=4 [11:54:16]MH_SAM_APDU [11:54:16]CAPDU: 80 11 00 00 [11:54:16]Write to MH i2c: E2 08 00 AA 08 80 11 00 00 00 00 00 00 2C [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:16]Read from MH i2c: E2 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 17 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: E2 17 00 AA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [11:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:54:16]wFMCommunicate OK [11:54:16]CreateOFDProtocolMessage done [11:54:16]OFDSenderStorePacket 201912 [11:54:16]StoreOFDPacket docnum=201912 [11:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F0 78 04 01 F7 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 E7 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 14 03 00 35 04 06 00 AD 41 25 A7 01 BB FC 28 B9 F2 24 8B BC 5A [11:54:16]CheckFolder [11:54:16]dirname=/storage/ofd_packets [11:54:16]CheckFolder done [11:54:16]ProducePacketName [11:54:16]name=ofd_packets/00201912 [11:54:16]NVStorageSaveData ofd_packets/00201912 [11:54:16]File name is /storage/ofd_packets/00201912 [11:54:16]Write 298 bytes [11:54:16]NVStorageSaveData done [11:54:16]OFDSenderStorePacket done [11:54:16]KKMCreateOFDPacket done [11:54:16]NVStorageSaveData kkm_last_timestamp [11:54:16]File name is /storage/kkm_last_timestamp [11:54:16]Write 4 bytes [11:54:16]NVStorageSaveData done [11:54:16]ExternCall_PrintAddStr [11:54:16]wPrintStart [11:54:16]Write to MH i2c: 01 00 00 AB 08 B3 [11:54:16]Write i2c OK [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: 01 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: 01 07 00 [11:54:16]MH_I2C_Read... [11:54:16]Read from MH i2c: 01 07 00 AB 08 00 00 00 00 00 FF 0F C8 [11:54:16]RasterBufferAndPrint [11:54:16]line Счет N : (1)449673 [11:54:16]line ИНН: 02508201610067 [11:54:16]line Контрольно-Кассовый Чек [11:54:16]line ПРОДАЖА [11:54:16]line ТРК (МРК, ГНК) : 21 [11:54:16]line Товар: 2710194210 [11:54:16]line ДТ-К-2 [11:54:16]line 7.880 * 76.20 [11:54:16]line = 600.46 [11:54:16]line НДС 12% НСП 1% [11:54:16]line > о реализуемом товаре [11:54:16]line ОКРУГЛЕНИЕ: -0.46 [11:54:16]line ИТОГО: 600.00 [11:54:16]line Внесено: 600.00 [11:54:16]line СДАЧА: 0.00 [11:54:16]line НСП 1% : 5.31 [11:54:16]line НДС 12% : 63.77 [11:54:16]line Наличными: 600.00 [11:54:16]line Безнал.: 0.00 [11:54:16]line Место: АЗС № 171 "Партнер Нефть" [11:54:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:54:16]line СНО: Общий режим [11:54:16]line Чек 204 27.10.2024 11:54 [11:54:16]line Смена: 544 ФФД: 1.0 [11:54:16]line ЗНМ: 0300000109 [11:54:16]line РНМ: 0000000000091777 [11:54:16]line Версия ККМ: 001 [11:54:16]line ФМ: 0000000000871756 [11:54:16]line ФД: 201912 [11:54:16]line ФПД: 190495316181435 [11:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115415&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201912&fm=190495316181435&tin=02508201610067®Number=0000000000091777&sum=60000 [11:54:16]OFD Sender: Processing packet 201912 [packets to send 112, broken 111] [11:54:16]ProducePacketName [11:54:16]name=ofd_packets/00201912 [11:54:16]OFD Sender: To server: pG, [11:54:16]CommunicateWithHost lk.salyk.kg:30040 [11:54:16]ConnectInit lk.salyk.kg [11:54:16]written 0, free lines is 4095 [11:54:16]Connected sock=10 [11:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F0 78 04 01 F7 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 E7 29 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 14 03 00 35 04 06 00 AD 41 25 A7 01 BB FC 28 B9 F2 24 8B BC 5A [11:54:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F1 D6 47 00 AE 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 14 03 00 F4 03 04 00 A1 D5 1D 67 B6 04 01 00 00 BC A9 8A C8 07 B7 E0 FA [11:54:17]CommunicateWithHost err = 0 [11:54:17]CheckOFDResponse [11:54:17]1017 (14) - 77093643461234 [11:54:17]1041 (16) - 0000000000871756 [11:54:17]1040 (4) - 201912 [11:54:17]1012 (4) - 27.10.2024 05:54 [11:54:17]1206 (1) - 0 [11:54:17]OFD Sender: Remove packet 201912 [11:54:17]ProducePacketName [11:54:17]name=ofd_packets/00201912 [11:54:17]NVStorageDeleteData [11:54:17]Write to MH i2c: 01 00 00 D6 08 DE [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: 01 07 00 D6 08 00 00 00 00 00 91 0C 82 [11:54:17]RasterBufferAndPrint [11:54:17]line [11:54:17]line [11:54:17]line [11:54:17]line [11:54:17]line [11:54:17]written 0, free lines is 3221 [11:54:17]MH_Cut [11:54:17]Write to MH i2c: D1 01 00 DD 08 01 B7 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: D1 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: D1 01 00 [11:54:17]MH_I2C_Read... [11:54:17]Read from MH i2c: D1 01 00 DD 08 00 B6 [11:54:17]Write to MH i2c: 01 00 00 DE 08 E6 [11:54:17]Write i2c OK [11:54:17]MH_I2C_Read... [11:54:17]OFD Sender: No OFD packet to send [11:54:18]*** Cut start [11:54:18]*** Purtial cut [11:54:18]*** Stage 1: CUTSNS_PIN = 1 [11:54:18]Read from MH i2c: 01 [11:54:18]MH_I2C_Read... [11:54:18]*** Stop cut motor [11:54:18]*** Cut end [11:54:18]Read from MH i2c: 01 07 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 FF 0F FB [11:54:18]process_action close_receipt done [11:54:18]requested_data is exist [11:54:18]produce_requested_data [11:54:18]requested_item fm.sn is exist - process it [11:54:18]wFMCommunicate request_size=4 [11:54:18]MH_SAM_APDU [11:54:18]CAPDU: 80 11 00 00 [11:54:18]Write to MH i2c: E2 08 00 DF 08 80 11 00 00 00 00 00 00 61 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:18]Read from MH i2c: E2 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 17 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 17 00 DF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B6 [11:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:54:18]wFMCommunicate OK [11:54:18]requested_item fd.num is exist - process it [11:54:18]SAM_PROTO_GetFieldsCounters [11:54:18]wFMCommunicate request_size=4 [11:54:18]MH_SAM_APDU [11:54:18]CAPDU: 80 13 00 00 [11:54:18]Write to MH i2c: E2 08 00 E0 08 80 13 00 00 00 00 00 00 64 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:18]Read from MH i2c: E2 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 62 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 62 00 E0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:18]wFMCommunicate OK [11:54:18]SAM_PROTO_GetFieldsCounters done [11:54:18]requested_item shift.num is exist - process it [11:54:18]requested_item shift.opened is exist - process it [11:54:18]req_shift_opened [11:54:18]FM_GetShiftState [11:54:18]SAM_PROTO_GetShiftState [11:54:18]wFMCommunicate request_size=4 [11:54:18]MH_SAM_APDU [11:54:18]CAPDU: 80 13 01 00 [11:54:18]Write to MH i2c: E2 08 00 E1 08 80 13 01 00 00 00 00 00 66 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 [11:54:18]MH_I2C_Read... [11:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:18]Read from MH i2c: E2 0E 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 0E 00 E1 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 68 [11:54:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:54:18]wFMCommunicate OK [11:54:18]SAM_PROTO_GetShiftState done [11:54:18]FM_GetShiftState done [11:54:18]req_shift_opened done [11:54:18]requested_item shift.open_date is exist - process it [11:54:18]req_shift_open_date [11:54:18]req_shift_open_date done [11:54:18]produce_requested_data done [11:54:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201912,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:54:18]process_action_free close_receipt [11:54:18]json_value_free [11:54:18]json_value_free done [11:54:18]process_json_proto returns [11:54:18]Send response to host [11:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201912,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:54:18]free response buf [11:54:18]execute_script done [11:54:18]execute_script returns [11:54:18]free content buf [11:54:18]Sock 9.Close socket [11:54:18]Sock 9.Thread stoped [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:36]int [11:55:36]Write to MH i2c: 01 00 00 E2 08 EA [11:55:36]*** FLAG_PRN_KEY set [11:55:36]Write i2c OK [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 07 00 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 07 00 E2 08 00 08 00 00 00 FF 0F 07 [11:55:36]state=0 [11:55:36]Key pressed [11:55:36]Feed [11:55:36]Write to MH i2c: D8 00 00 E3 08 C2 [11:55:36]Write i2c OK [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: D8 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: D8 01 00 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: D8 01 00 E3 08 00 C3 [11:55:36]int [11:55:36]Write to MH i2c: 01 00 00 E4 08 EC [11:55:36]Write i2c OK [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 07 00 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 07 00 E4 08 00 48 00 00 00 3C 00 77 [11:55:36]state=2 [11:55:36]Key pressed [11:55:36]int [11:55:36]Write to MH i2c: 01 00 00 E5 08 ED [11:55:36]*** FLAG_PRN_KEY reset [11:55:36]Write i2c OK [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 07 00 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 07 00 E5 08 00 00 00 00 00 F6 0F F9 [11:55:36]state=2 [11:55:36]Stop feed [11:55:37]OFD Sender: No OFD packet to send [11:55:41]accept exits with 8 [11:55:41]New connection [11:55:41]New thread 3066641764 created [11:55:41]Thread 3066498404 joined [11:55:41]Waiting for new connection... [11:55:41] Sock 8.Parse request [11:55:41]Sock 8.Check first char [11:55:41]Sock 8.First char is OK [11:55:41]request: POST /json_proto HTTP/1.0 [11:55:41]Method: POST [11:55:41]URL: /json_proto [11:55:41]Method is POST - this is cgi request [11:55:41]url: /json_proto [11:55:41]query_string will be loaded in cgi processing [11:55:41]execute_cgi json_proto POST (null) [11:55:41]execute_cgi path=json_proto method=POST [11:55:41]POST find Content-Length [11:55:41]Host: 172.17.63.195:8080 [11:55:41]Content-Length: 677 [11:55:41]Content-Type: application/json [11:55:41] [11:55:41]POST finish read [11:55:41]Found Content-Length = 677 [11:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:55:41]execute_script... [11:55: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)449675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:55:41]POST & json_proto [11:55:41]process_json_proto [11:55:41]json parsed OK: [11:55:41]protocol is kg_v1.0 [11:55:41]action value=close_receipt [11:55:41]process_action close_receipt [11:55:41]cmd_close_receipt [11:55:41]MH_GetDate [11:55:41]Write to MH i2c: F0 00 00 E6 08 DD [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: F0 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: F0 09 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: F0 09 00 E6 08 00 3D 2A 1E 67 47 1B 1E 67 B9 [11:55:41]GetLastDocTimeStamp 1730030055 [11:55:41]current date 1730030141 [11:55:41]FM_GetShiftState [11:55:41]SAM_PROTO_GetShiftState [11:55:41]wFMCommunicate request_size=4 [11:55:41]MH_SAM_APDU [11:55:41]CAPDU: 80 13 01 00 [11:55:41]Write to MH i2c: E2 08 00 E7 08 80 13 01 00 00 00 00 00 6C [11:55:41]Write i2c OK [11:55:41]MH_I2C_Read... [11:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:41]Read from MH i2c: E2 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 0E 00 [11:55:41]MH_I2C_Read... [11:55:41]Read from MH i2c: E2 0E 00 E7 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6E [11:55:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:55:41]wFMCommunicate OK [11:55:41]SAM_PROTO_GetShiftState done [11:55:41]FM_GetShiftState done [11:55:41]opened in 1729987312 [11:55:41]opened+sec_in_day 1730073712 [11:55:41]quantity*price = 30038 [11:55:41]sum+1 = 30039 [11:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 205 27.10.2024 11:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201913 ФПД: 201929999146026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115541&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201913&fm=201929999146026&tin=02508201610067®Number=0000000000091777&sum=30000 [11:55:42]StoreToDocumentArchive [11:55:42]shift 544 fd 201913 [11:55:42]save to /storage/0544/doc_00201913 [11:55:42]save last doc name /storage/0544/doc_00201913 to /storage/kkm_last_doc_name [11:55:42]save OK [11:55:42]Clear old archive folders... [11:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:42]tlvbuf is 011AE760 [11:55:42]SAM_PROTO_ClearQueue [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 09 00 00 [11:55:42]Write to MH i2c: E2 08 00 F4 08 80 09 00 00 00 00 00 00 6E [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [11:55:42]RAPDU: 90 00 [11:55:42]wFMCommunicate OK [11:55:42]SAM_PROTO_ClearQueue done [11:55:42]KKMCreateOFDPacket [11:55:42]OFDProtocolAddRootSTLVToBuf [11:55:42]FM_MakeSignedData [11:55:42]FM_MakeSignedData [11:55:42]SAM_PROTO_SignData [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 0D 01 02 [11:55:42]Write to MH i2c: E2 08 00 F5 08 80 0D 01 02 00 00 00 00 76 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]OFD Sender: No OFD packet to send [11:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [11:55:42]RAPDU: 90 00 [11:55:42]wFMCommunicate OK [11:55:42]wFMCommunicate request_size=255 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CD 00 00 00 F4 03 04 00 3D 2A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 14 03 00 35 04 06 00 B7 [11:55:42]Write to MH i2c: E2 02 01 F6 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CD 00 00 00 F4 03 04 00 3D 2A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 14 03 00 35 04 06 00 B7 00 00 60 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [11:55:43]RAPDU: 90 00 [11:55:43]wFMCommunicate OK [11:55:43]wFMCommunicate request_size=10 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 0D 02 02 05 A7 7D DE 5C 2A [11:55:43]Write to MH i2c: E2 0D 00 F7 08 80 0D 02 02 05 00 A7 7D DE 5C 2A 00 00 0B [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [11:55:43]RAPDU: 90 00 [11:55:43]wFMCommunicate OK [11:55:43]wFMCommunicate request_size=4 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 0D 03 02 [11:55:43]Write to MH i2c: E2 08 00 F8 08 80 0D 03 02 00 00 00 00 7B [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 0B 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 0B 00 F8 08 00 E6 E1 FE 22 DA 5C 41 6C 90 00 46 [11:55:43]RAPDU: E6 E1 FE 22 DA 5C 41 6C 90 00 [11:55:43]wFMCommunicate OK [11:55:43]SAM_PROTO_SignData done [11:55:43]FM_MakeSignedData done [11:55:43]CreateOFDProtocolMessage [11:55:43]wFMCommunicate request_size=4 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 11 00 00 [11:55:43]Write to MH i2c: E2 08 00 F9 08 80 11 00 00 00 00 00 00 7B [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 17 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 17 00 F9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D0 [11:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:55:43]wFMCommunicate OK [11:55:43]CreateOFDProtocolMessage done [11:55:43]OFDSenderStorePacket 201913 [11:55:43]StoreOFDPacket docnum=201913 [11:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 61 B0 07 01 43 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CD 00 00 00 F4 03 04 00 3D 2A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 14 03 00 35 04 06 00 B7 A7 7D DE 5C 2A E6 E1 FE 22 DA 5C 41 6C [11:55:43]CheckFolder [11:55:43]dirname=/storage/ofd_packets [11:55:43]CheckFolder done [11:55:43]ProducePacketName [11:55:43]name=ofd_packets/00201913 [11:55:43]NVStorageSaveData ofd_packets/00201913 [11:55:43]File name is /storage/ofd_packets/00201913 [11:55:43]Write 301 bytes [11:55:43]NVStorageSaveData done [11:55:43]OFDSenderStorePacket done [11:55:43]KKMCreateOFDPacket done [11:55:43]NVStorageSaveData kkm_last_timestamp [11:55:43]File name is /storage/kkm_last_timestamp [11:55:43]Write 4 bytes [11:55:43]NVStorageSaveData done [11:55:43]ExternCall_PrintAddStr [11:55:43]wPrintStart [11:55:43]Write to MH i2c: 01 00 00 FA 08 02 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 07 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 07 00 FA 08 00 00 00 00 00 FF 0F 17 [11:55:43]RasterBufferAndPrint [11:55:43]line Счет N : (1)449675 [11:55:43]line ИНН: 02508201610067 [11:55:43]line Контрольно-Кассовый Чек [11:55:43]line ПРОДАЖА [11:55:43]line ТРК (МРК, ГНК) : 52 [11:55:43]line Товар: 2710124130 [11:55:43]line Аи-92-К-2 [11:55:43]line 4.490 * 66.90 [11:55:43]line = 300.38 [11:55:43]line НДС 12% НСП 1% [11:55:43]line > о реализуемом товаре [11:55:43]line ОКРУГЛЕНИЕ: -0.38 [11:55:43]line ИТОГО: 300.00 [11:55:43]line Внесено: 300.00 [11:55:43]line СДАЧА: 0.00 [11:55:43]line НСП 1% : 2.66 [11:55:43]line НДС 12% : 31.90 [11:55:43]line Наличными: 300.00 [11:55:43]line Безнал.: 0.00 [11:55:43]line Место: АЗС № 171 "Партнер Нефть" [11:55:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:55:43]line СНО: Общий режим [11:55:43]line Чек 205 27.10.2024 11:55 [11:55:43]line Смена: 544 ФФД: 1.0 [11:55:43]line ЗНМ: 0300000109 [11:55:43]line РНМ: 0000000000091777 [11:55:43]line Версия ККМ: 001 [11:55:43]line ФМ: 0000000000871756 [11:55:43]line ФД: 201913 [11:55:43]line ФПД: 201929999146026 [11:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115541&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201913&fm=201929999146026&tin=02508201610067®Number=0000000000091777&sum=30000 [11:55:43]OFD Sender: Processing packet 201913 [packets to send 112, broken 111] [11:55:43]ProducePacketName [11:55:43]name=ofd_packets/00201913 [11:55:43]OFD Sender: To server: pG, [11:55:43]CommunicateWithHost lk.salyk.kg:30040 [11:55:43]ConnectInit lk.salyk.kg [11:55:43]written 0, free lines is 4095 [11:55:43]Connected sock=10 [11:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 61 B0 07 01 43 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CD 00 00 00 F4 03 04 00 3D 2A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 14 03 00 35 04 06 00 B7 A7 7D DE 5C 2A E6 E1 FE 22 DA 5C 41 6C [11:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 78 FC 47 00 07 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 14 03 00 F4 03 04 00 F8 D5 1D 67 B6 04 01 00 00 26 C2 33 0B 97 79 E0 4A [11:55:43]CommunicateWithHost err = 0 [11:55:43]CheckOFDResponse [11:55:43]1017 (14) - 77093643461234 [11:55:43]1041 (16) - 0000000000871756 [11:55:43]1040 (4) - 201913 [11:55:43]1012 (4) - 27.10.2024 05:56 [11:55:43]1206 (1) - 0 [11:55:43]OFD Sender: Remove packet 201913 [11:55:43]ProducePacketName [11:55:43]name=ofd_packets/00201913 [11:55:43]NVStorageDeleteData [11:55:43]Write to MH i2c: 01 00 00 25 09 2E [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 07 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 91 0C D2 [11:55:43]RasterBufferAndPrint [11:55:43]line [11:55:43]line [11:55:43]line [11:55:43]line [11:55:43]line [11:55:43]written 0, free lines is 3221 [11:55:43]MH_Cut [11:55:43]Write to MH i2c: D1 01 00 2C 09 01 07 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: D1 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: D1 01 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: D1 01 00 2C 09 00 06 [11:55:43]Write to MH i2c: 01 00 00 2D 09 36 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:44]OFD Sender: No OFD packet to send [11:55:44]*** Cut start [11:55:44]*** Purtial cut [11:55:44]*** CUTSNS_PIN = 0 [11:55:45]*** Stage 1: CUTSNS_PIN = 1 [11:55:46]Read from MH i2c: 01 [11:55:46]MH_I2C_Read... [11:55:46]*** Stop cut motor [11:55:46]*** Cut end [11:55:46]Read from MH i2c: 01 07 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 07 00 2D 09 00 00 00 00 00 FF 0F 4B [11:55:46]process_action close_receipt done [11:55:46]requested_data is exist [11:55:46]produce_requested_data [11:55:46]requested_item fm.sn is exist - process it [11:55:46]wFMCommunicate request_size=4 [11:55:46]MH_SAM_APDU [11:55:46]CAPDU: 80 11 00 00 [11:55:46]Write to MH i2c: E2 08 00 2E 09 80 11 00 00 00 00 00 00 B1 [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:46]Read from MH i2c: E2 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 17 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: E2 17 00 2E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 06 [11:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:55:46]wFMCommunicate OK [11:55:46]requested_item fd.num is exist - process it [11:55:46]SAM_PROTO_GetFieldsCounters [11:55:46]wFMCommunicate request_size=4 [11:55:46]MH_SAM_APDU [11:55:46]CAPDU: 80 13 00 00 [11:55:46]Write to MH i2c: E2 08 00 2F 09 80 13 00 00 00 00 00 00 B4 [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:47]Read from MH i2c: E2 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 62 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 62 00 2F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [11:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:47]wFMCommunicate OK [11:55:47]SAM_PROTO_GetFieldsCounters done [11:55:47]requested_item shift.num is exist - process it [11:55:47]requested_item shift.opened is exist - process it [11:55:47]req_shift_opened [11:55:47]FM_GetShiftState [11:55:47]SAM_PROTO_GetShiftState [11:55:47]wFMCommunicate request_size=4 [11:55:47]MH_SAM_APDU [11:55:47]CAPDU: 80 13 01 00 [11:55:47]Write to MH i2c: E2 08 00 30 09 80 13 01 00 00 00 00 00 B6 [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:47]Read from MH i2c: E2 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 0E 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 0E 00 30 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [11:55:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:55:47]wFMCommunicate OK [11:55:47]SAM_PROTO_GetShiftState done [11:55:47]FM_GetShiftState done [11:55:47]req_shift_opened done [11:55:47]requested_item shift.open_date is exist - process it [11:55:47]req_shift_open_date [11:55:47]req_shift_open_date done [11:55:47]produce_requested_data done [11:55:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201913,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:55:47]process_action_free close_receipt [11:55:47]json_value_free [11:55:47]json_value_free done [11:55:47]process_json_proto returns [11:55:47]Send response to host [11:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201913,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:55:47]free response buf [11:55:47]execute_script done [11:55:47]execute_script returns [11:55:47]free content buf [11:55:47]Sock 8.Close socket [11:55:47]Sock 8.Thread stoped [11:55:49]OFD Sender: No OFD packet to send [11:55:51]int [11:55:51]Write to MH i2c: 01 00 00 31 09 3A [11:55:51]*** FLAG_PRN_KEY set [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 31 09 00 08 00 00 00 FF 0F 57 [11:55:51]state=0 [11:55:51]Key pressed [11:55:51]Feed [11:55:51]Write to MH i2c: D8 00 00 32 09 12 [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: D8 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: D8 01 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: D8 01 00 32 09 00 13 [11:55:51]int [11:55:51]Write to MH i2c: 01 00 00 33 09 3C [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 33 09 00 48 00 00 00 3C 00 C7 [11:55:51]state=2 [11:55:51]Key pressed [11:55:51]int [11:55:51]Write to MH i2c: 01 00 00 34 09 3D [11:55:51]*** FLAG_PRN_KEY reset [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 34 09 00 00 00 00 00 FD 0F 50 [11:55:51]state=2 [11:55:51]Stop feed [11:55:51]int [11:55:51]Write to MH i2c: 01 00 00 35 09 3E [11:55:51]*** FLAG_PRN_KEY set [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 35 09 00 08 00 00 00 FF 0F 5B [11:55:51]state=0 [11:55:51]Key pressed [11:55:51]Feed [11:55:51]Write to MH i2c: D8 00 00 36 09 16 [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: D8 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: D8 01 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: D8 01 00 36 09 00 17 [11:55:51]int [11:55:51]Write to MH i2c: 01 00 00 37 09 40 [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: 01 07 00 37 09 00 48 00 00 00 3C 00 CB [11:55:51]state=2 [11:55:51]Key pressed [11:55:51]*** FLAG_PRN_KEY reset [11:55:51]*** FLAG_PRN_KEY set [11:55:51]*** FLAG_PRN_KEY reset [11:55:54]OFD Sender: No OFD packet to send [11:55:56]Write to MH i2c: 01 00 00 38 09 41 [11:55:56]Write i2c OK [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 [11:55:56]MH_I2C_Read... [11:55:56]Read from MH i2c: 01 07 00 38 09 00 00 00 00 00 FF 0F 56 [11:55:56]state=2 [11:55:56]Stop feed [11:55:57]accept exits with 9 [11:55:57]New connection [11:55:57]New thread 3066498404 created [11:55:57]Thread 3066641764 joined [11:55:57]Waiting for new connection... [11:55:57] Sock 9.Parse request [11:55:57]Sock 9.Check first char [11:55:57]Sock 9.First char is OK [11:55:57]request: POST /json_proto HTTP/1.0 [11:55:57]Method: POST [11:55:57]URL: /json_proto [11:55:57]Method is POST - this is cgi request [11:55:57]url: /json_proto [11:55:57]query_string will be loaded in cgi processing [11:55:57]execute_cgi json_proto POST (null) [11:55:57]execute_cgi path=json_proto method=POST [11:55:57]POST find Content-Length [11:55:57]Host: 172.17.63.195:8080 [11:55:57]Content-Length: 769 [11:55:57]Content-Type: application/json [11:55:57] [11:55:57]POST finish read [11:55:57]Found Content-Length = 769 [11:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:57]execute_script... [11:55: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)449674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:57]POST & json_proto [11:55:57]process_json_proto [11:55:57]json parsed OK: [11:55:57]protocol is kg_v1.0 [11:55:57]action value=close_receipt [11:55:57]process_action close_receipt [11:55:57]cmd_close_receipt [11:55:57]MH_GetDate [11:55:57]Write to MH i2c: F0 00 00 39 09 31 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 09 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 09 00 39 09 00 4D 2A 1E 67 47 1B 1E 67 1D [11:55:57]GetLastDocTimeStamp 1730030141 [11:55:57]current date 1730030157 [11:55:57]FM_GetShiftState [11:55:57]SAM_PROTO_GetShiftState [11:55:57]wFMCommunicate request_size=4 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 13 01 00 [11:55:57]Write to MH i2c: E2 08 00 3A 09 80 13 01 00 00 00 00 00 C0 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 0E 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 0E 00 3A 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C2 [11:55:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:55:57]wFMCommunicate OK [11:55:57]SAM_PROTO_GetShiftState done [11:55:57]FM_GetShiftState done [11:55:57]opened in 1729987312 [11:55:57]opened+sec_in_day 1730073712 [11:55:57]quantity*price = 100015 [11:55:57]sum+1 = 100017 [11:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 206 27.10.2024 11:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201914 ФПД: 206332039073369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115557&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201914&fm=206332039073369&tin=02508201610067®Number=0000000000091777&sum=100016 [11:55:58]StoreToDocumentArchive [11:55:58]shift 544 fd 201914 [11:55:58]save to /storage/0544/doc_00201914 [11:55:58]save last doc name /storage/0544/doc_00201914 to /storage/kkm_last_doc_name [11:55:58]save OK [11:55:58]Clear old archive folders... [11:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:58]tlvbuf is 01227450 [11:55:58]SAM_PROTO_ClearQueue [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 09 00 00 [11:55:58]Write to MH i2c: E2 08 00 47 09 80 09 00 00 00 00 00 00 C2 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 47 09 00 90 00 C4 [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]SAM_PROTO_ClearQueue done [11:55:58]KKMCreateOFDPacket [11:55:58]OFDProtocolAddRootSTLVToBuf [11:55:58]FM_MakeSignedData [11:55:58]FM_MakeSignedData [11:55:58]SAM_PROTO_SignData [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 01 02 [11:55:58]Write to MH i2c: E2 08 00 48 09 80 0D 01 02 00 00 00 00 CA [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]wFMCommunicate request_size=255 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 00 00 00 F4 03 04 00 4D 2A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 14 03 00 35 04 06 00 BB [11:55:58]Write to MH i2c: E2 02 01 49 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 00 00 00 F4 03 04 00 4D 2A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 14 03 00 35 04 06 00 BB 00 00 F0 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 49 09 00 90 00 C6 [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]wFMCommunicate request_size=10 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 02 02 05 A8 6B E5 0E 59 [11:55:58]Write to MH i2c: E2 0D 00 4A 09 80 0D 02 02 05 00 A8 6B E5 0E 59 00 00 36 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 4A 09 00 90 00 C7 [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 03 02 [11:55:58]Write to MH i2c: E2 08 00 4B 09 80 0D 03 02 00 00 00 00 CF [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 0B 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 0B 00 4B 09 00 52 13 F7 AE CE DE 6D 81 90 00 74 [11:55:58]RAPDU: 52 13 F7 AE CE DE 6D 81 90 00 [11:55:58]wFMCommunicate OK [11:55:58]SAM_PROTO_SignData done [11:55:58]FM_MakeSignedData done [11:55:58]CreateOFDProtocolMessage [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 11 00 00 [11:55:58]Write to MH i2c: E2 08 00 4C 09 80 11 00 00 00 00 00 00 CF [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 17 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 17 00 4C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 24 [11:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:55:58]wFMCommunicate OK [11:55:58]CreateOFDProtocolMessage done [11:55:58]OFDSenderStorePacket 201914 [11:55:58]StoreOFDPacket docnum=201914 [11:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BF A2 07 01 DB 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 00 00 00 F4 03 04 00 4D 2A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 14 03 00 35 04 06 00 BB A8 6B E5 0E 59 52 13 F7 AE CE DE 6D 81 [11:55:58]CheckFolder [11:55:58]dirname=/storage/ofd_packets [11:55:58]CheckFolder done [11:55:58]ProducePacketName [11:55:58]name=ofd_packets/00201914 [11:55:58]NVStorageSaveData ofd_packets/00201914 [11:55:58]File name is /storage/ofd_packets/00201914 [11:55:58]Write 301 bytes [11:55:58]NVStorageSaveData done [11:55:58]OFDSenderStorePacket done [11:55:58]KKMCreateOFDPacket done [11:55:58]NVStorageSaveData kkm_last_timestamp [11:55:58]File name is /storage/kkm_last_timestamp [11:55:58]Write 4 bytes [11:55:58]NVStorageSaveData done [11:55:58]ExternCall_PrintAddStr [11:55:58]wPrintStart [11:55:58]Write to MH i2c: 01 00 00 4D 09 56 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 07 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 FF 0F 6B [11:55:58]RasterBufferAndPrint [11:55:58]line Счет N : (1)449674 [11:55:58]line ИНН: 02508201610067 [11:55:58]line Контрольно-Кассовый Чек [11:55:58]line ПРОДАЖА [11:55:58]line ТРК (МРК, ГНК) : 31 [11:55:58]line Товар: 2710124130 [11:55:58]line Аи-92-К-2 [11:55:58]line 14.950 * 66.90 [11:55:58]line = 1000.16 [11:55:58]line НДС 12% НСП 1% [11:55:58]line > о реализуемом товаре [11:55:58]line ИТОГО: 1000.16 [11:55:58]line НСП 1% : 8.85 [11:55:58]line НДС 12% : 106.21 [11:55:58]line Наличными: 0.00 [11:55:58]line Безнал.: 1000.16 [11:55:58]line Место: АЗС № 171 "Партнер Нефть" [11:55:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:55:58]line СНО: Общий режим [11:55:58]line Чек 206 27.10.2024 11:55 [11:55:58]line Смена: 544 ФФД: 1.0 [11:55:58]line ЗНМ: 0300000109 [11:55:58]line РНМ: 0000000000091777 [11:55:58]line Версия ККМ: 001 [11:55:58]line Платежная система: Mbank [11:55:58]line ФМ: 0000000000871756 [11:55:58]line ФД: 201914 [11:55:58]line ФПД: 206332039073369 [11:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115557&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201914&fm=206332039073369&tin=02508201610067®Number=0000000000091777&sum=100016 [11:55:58]written 0, free lines is 4095 [11:55:58]OFD Sender: Processing packet 201914 [packets to send 112, broken 111] [11:55:58]ProducePacketName [11:55:58]name=ofd_packets/00201914 [11:55:58]OFD Sender: To server: pG, [11:55:58]CommunicateWithHost lk.salyk.kg:30040 [11:55:58]ConnectInit lk.salyk.kg [11:55:59]Connected sock=10 [11:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BF A2 07 01 DB 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 00 00 00 F4 03 04 00 4D 2A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 14 03 00 35 04 06 00 BB A8 6B E5 0E 59 52 13 F7 AE CE DE 6D 81 [11:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 74 5F 47 00 6F 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 14 03 00 F4 03 04 00 07 D6 1D 67 B6 04 01 00 00 85 C5 05 95 E6 2E 5C 68 [11:55:59]CommunicateWithHost err = 0 [11:55:59]CheckOFDResponse [11:55:59]1017 (14) - 77093643461234 [11:55:59]1041 (16) - 0000000000871756 [11:55:59]1040 (4) - 201914 [11:55:59]1012 (4) - 27.10.2024 05:56 [11:55:59]1206 (1) - 0 [11:55:59]OFD Sender: Remove packet 201914 [11:55:59]ProducePacketName [11:55:59]name=ofd_packets/00201914 [11:55:59]NVStorageDeleteData [11:55:59]Write to MH i2c: 01 00 00 76 09 7F [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 07 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 07 00 76 09 00 00 00 00 00 C8 0C 5A [11:55:59]RasterBufferAndPrint [11:55:59]line [11:55:59]line [11:55:59]line [11:55:59]line [11:55:59]line [11:55:59]written 0, free lines is 3278 [11:55:59]MH_Cut [11:55:59]Write to MH i2c: D1 01 00 7D 09 01 58 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: D1 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: D1 01 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: D1 01 00 7D 09 00 57 [11:55:59]Write to MH i2c: 01 00 00 7E 09 87 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]OFD Sender: No OFD packet to send [11:56:00]*** Cut start [11:56:00]*** Purtial cut [11:56:00]*** Stage 1: CUTSNS_PIN = 1 [11:56:00]Read from MH i2c: 01 [11:56:00]MH_I2C_Read... [11:56:00]*** Stop cut motor [11:56:00]*** Cut end [11:56:00]Read from MH i2c: 01 07 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: 01 07 00 7E 09 00 00 00 00 00 FF 0F 9C [11:56:00]process_action close_receipt done [11:56:00]requested_data is exist [11:56:00]produce_requested_data [11:56:00]requested_item fm.sn is exist - process it [11:56:00]wFMCommunicate request_size=4 [11:56:00]MH_SAM_APDU [11:56:00]CAPDU: 80 11 00 00 [11:56:00]Write to MH i2c: E2 08 00 7F 09 80 11 00 00 00 00 00 00 02 [11:56:00]Write i2c OK [11:56:00]MH_I2C_Read... [11:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:00]Read from MH i2c: E2 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 17 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 17 00 7F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 57 [11:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:56:00]wFMCommunicate OK [11:56:00]requested_item fd.num is exist - process it [11:56:00]SAM_PROTO_GetFieldsCounters [11:56:00]wFMCommunicate request_size=4 [11:56:00]MH_SAM_APDU [11:56:00]CAPDU: 80 13 00 00 [11:56:00]Write to MH i2c: E2 08 00 80 09 80 13 00 00 00 00 00 00 05 [11:56:00]Write i2c OK [11:56:00]MH_I2C_Read... [11:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:00]Read from MH i2c: E2 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 62 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 62 00 80 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [11:56:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:00]wFMCommunicate OK [11:56:00]SAM_PROTO_GetFieldsCounters done [11:56:00]requested_item shift.num is exist - process it [11:56:00]requested_item shift.opened is exist - process it [11:56:00]req_shift_opened [11:56:00]FM_GetShiftState [11:56:00]SAM_PROTO_GetShiftState [11:56:00]wFMCommunicate request_size=4 [11:56:00]MH_SAM_APDU [11:56:00]CAPDU: 80 13 01 00 [11:56:00]Write to MH i2c: E2 08 00 81 09 80 13 01 00 00 00 00 00 07 [11:56:00]Write i2c OK [11:56:00]MH_I2C_Read... [11:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:00]Read from MH i2c: E2 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 0E 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: E2 0E 00 81 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 09 [11:56:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [11:56:00]wFMCommunicate OK [11:56:00]SAM_PROTO_GetShiftState done [11:56:00]FM_GetShiftState done [11:56:00]req_shift_opened done [11:56:00]requested_item shift.open_date is exist - process it [11:56:00]req_shift_open_date [11:56:00]req_shift_open_date done [11:56:00]produce_requested_data done [11:56:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201914,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [11:56:00]process_action_free close_receipt [11:56:00]json_value_free [11:56:00]json_value_free done [11:56:00]process_json_proto returns [11:56:00]Send response to host [11:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201914,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [11:56:00]free response buf [11:56:00]execute_script done [11:56:00]execute_script returns [11:56:00]free content buf [11:56:00]Sock 9.Close socket [11:56:00]Sock 9.Thread stoped [11:56:00]int [11:56:00]Write to MH i2c: 01 00 00 82 09 8B [11:56:00]*** FLAG_PRN_KEY set [11:56:00]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 82 09 00 08 00 00 00 FF 0F A8 [11:56:01]state=0 [11:56:01]Key pressed [11:56:01]Feed [11:56:01]Write to MH i2c: D8 00 00 83 09 63 [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 01 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 01 00 83 09 00 64 [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 84 09 8D [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 84 09 00 48 00 00 00 3C 00 18 [11:56:01]state=2 [11:56:01]Key pressed [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 85 09 8E [11:56:01]*** FLAG_PRN_KEY reset [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 85 09 00 00 00 00 00 F9 0F 9D [11:56:01]state=2 [11:56:01]Stop feed [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 86 09 8F [11:56:01]*** FLAG_PRN_KEY set [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 86 09 00 08 00 00 00 FF 0F AC [11:56:01]state=0 [11:56:01]Key pressed [11:56:01]Feed [11:56:01]Write to MH i2c: D8 00 00 87 09 67 [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 01 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 01 00 87 09 00 68 [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 88 09 91 [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 88 09 00 48 00 00 00 3C 00 1C [11:56:01]state=2 [11:56:01]Key pressed [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 89 09 92 [11:56:01]*** FLAG_PRN_KEY reset [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 89 09 00 00 00 00 00 F7 0F 9F [11:56:01]state=2 [11:56:01]Stop feed [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 8A 09 93 [11:56:01]*** FLAG_PRN_KEY set [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 8A 09 00 08 00 00 00 FF 0F B0 [11:56:01]state=0 [11:56:01]Key pressed [11:56:01]Feed [11:56:01]Write to MH i2c: D8 00 00 8B 09 6B [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 01 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 01 00 8B 09 00 6C [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 8C 09 95 [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 8C 09 00 48 00 00 00 3C 00 20 [11:56:01]state=2 [11:56:01]Key pressed [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 8D 09 96 [11:56:01]*** FLAG_PRN_KEY reset [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 8D 09 00 00 00 00 00 F7 0F A3 [11:56:01]state=2 [11:56:01]Stop feed [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:08]accept exits with 8 [12:02:08]New connection [12:02:08]New thread 3066641764 created [12:02:08]Thread 3066498404 joined [12:02:08]Waiting for new connection... [12:02:08] Sock 8.Parse request [12:02:08]Sock 8.Check first char [12:02:08]Sock 8.First char is OK [12:02:08]request: POST /json_proto HTTP/1.0 [12:02:08]Method: POST [12:02:08]URL: /json_proto [12:02:08]Method is POST - this is cgi request [12:02:08]url: /json_proto [12:02:08]query_string will be loaded in cgi processing [12:02:08]execute_cgi json_proto POST (null) [12:02:08]execute_cgi path=json_proto method=POST [12:02:08]POST find Content-Length [12:02:08]Host: 172.17.63.195:8080 [12:02:08]Content-Length: 674 [12:02:08]Content-Type: application/json [12:02:08] [12:02:08]POST finish read [12:02:08]Found Content-Length = 674 [12:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:08]execute_script... [12:02:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:08]POST & json_proto [12:02:08]process_json_proto [12:02:08]json parsed OK: [12:02:08]protocol is kg_v1.0 [12:02:08]action value=close_receipt [12:02:08]process_action close_receipt [12:02:08]cmd_close_receipt [12:02:08]MH_GetDate [12:02:08]Write to MH i2c: F0 00 00 8E 09 86 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: F0 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: F0 09 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: F0 09 00 8E 09 00 C0 2B 1E 67 47 1B 1E 67 E6 [12:02:08]GetLastDocTimeStamp 1730030157 [12:02:08]current date 1730030528 [12:02:08]FM_GetShiftState [12:02:08]SAM_PROTO_GetShiftState [12:02:08]wFMCommunicate request_size=4 [12:02:08]MH_SAM_APDU [12:02:08]CAPDU: 80 13 01 00 [12:02:08]Write to MH i2c: E2 08 00 8F 09 80 13 01 00 00 00 00 00 15 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:08]Read from MH i2c: E2 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: E2 0E 00 8F 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 17 [12:02:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:02:08]wFMCommunicate OK [12:02:08]SAM_PROTO_GetShiftState done [12:02:08]FM_GetShiftState done [12:02:08]opened in 1729987312 [12:02:08]opened+sec_in_day 1730073712 [12:02:08]quantity*price = 50063 [12:02:08]sum+1 = 50064 [12:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 207 27.10.2024 12:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201915 ФПД: 151900791041832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120208&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201915&fm=151900791041832&tin=02508201610067®Number=0000000000091777&sum=50000 [12:02:09]StoreToDocumentArchive [12:02:09]shift 544 fd 201915 [12:02:09]save to /storage/0544/doc_00201915 [12:02:09]save last doc name /storage/0544/doc_00201915 to /storage/kkm_last_doc_name [12:02:09]save OK [12:02:09]Clear old archive folders... [12:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:09]tlvbuf is 01211DE0 [12:02:09]SAM_PROTO_ClearQueue [12:02:09]wFMCommunicate request_size=4 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 09 00 00 [12:02:09]Write to MH i2c: E2 08 00 9C 09 80 09 00 00 00 00 00 00 17 [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:09]Read from MH i2c: E2 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 03 00 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 03 00 9C 09 00 90 00 19 [12:02:09]RAPDU: 90 00 [12:02:09]wFMCommunicate OK [12:02:09]SAM_PROTO_ClearQueue done [12:02:09]KKMCreateOFDPacket [12:02:09]OFDProtocolAddRootSTLVToBuf [12:02:09]FM_MakeSignedData [12:02:09]FM_MakeSignedData [12:02:09]SAM_PROTO_SignData [12:02:09]wFMCommunicate request_size=4 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 0D 01 02 [12:02:09]Write to MH i2c: E2 08 00 9D 09 80 0D 01 02 00 00 00 00 1F [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:09]Read from MH i2c: E2 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 03 00 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 03 00 9D 09 00 90 00 1A [12:02:09]RAPDU: 90 00 [12:02:09]wFMCommunicate OK [12:02:09]wFMCommunicate request_size=255 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C0 2B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 14 03 00 35 04 06 00 8A 27 28 B0 [12:02:09]Write to MH i2c: E2 02 01 9E 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C0 2B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 14 03 00 35 04 06 00 8A 27 28 B0 00 00 ED [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:10]Read from MH i2c: E2 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 03 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 03 00 9E 09 00 90 00 1B [12:02:10]RAPDU: 90 00 [12:02:10]wFMCommunicate OK [12:02:10]wFMCommunicate request_size=7 [12:02:10]MH_SAM_APDU [12:02:10]CAPDU: 80 0D 02 02 02 EF 28 [12:02:10]Write to MH i2c: E2 0A 00 9F 09 80 0D 02 02 02 00 EF 28 00 00 3D [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:10]Read from MH i2c: E2 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 03 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 03 00 9F 09 00 90 00 1C [12:02:10]RAPDU: 90 00 [12:02:10]wFMCommunicate OK [12:02:10]wFMCommunicate request_size=4 [12:02:10]MH_SAM_APDU [12:02:10]CAPDU: 80 0D 03 02 [12:02:10]Write to MH i2c: E2 08 00 A0 09 80 0D 03 02 00 00 00 00 24 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:10]Read from MH i2c: E2 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 0B 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 0B 00 A0 09 00 72 1A 10 1D 70 F5 AB 50 90 00 3E [12:02:10]RAPDU: 72 1A 10 1D 70 F5 AB 50 90 00 [12:02:10]wFMCommunicate OK [12:02:10]SAM_PROTO_SignData done [12:02:10]FM_MakeSignedData done [12:02:10]CreateOFDProtocolMessage [12:02:10]wFMCommunicate request_size=4 [12:02:10]MH_SAM_APDU [12:02:10]CAPDU: 80 11 00 00 [12:02:10]Write to MH i2c: E2 08 00 A1 09 80 11 00 00 00 00 00 00 24 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:10]Read from MH i2c: E2 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 17 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: E2 17 00 A1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 79 [12:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:02:10]wFMCommunicate OK [12:02:10]CreateOFDProtocolMessage done [12:02:10]OFDSenderStorePacket 201915 [12:02:10]StoreOFDPacket docnum=201915 [12:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A7 01 04 01 19 31 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C0 2B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 14 03 00 35 04 06 00 8A 27 28 B0 EF 28 72 1A 10 1D 70 F5 AB 50 [12:02:10]CheckFolder [12:02:10]dirname=/storage/ofd_packets [12:02:10]CheckFolder done [12:02:10]ProducePacketName [12:02:10]name=ofd_packets/00201915 [12:02:10]NVStorageSaveData ofd_packets/00201915 [12:02:10]File name is /storage/ofd_packets/00201915 [12:02:10]Write 298 bytes [12:02:10]NVStorageSaveData done [12:02:10]OFDSenderStorePacket done [12:02:10]KKMCreateOFDPacket done [12:02:10]NVStorageSaveData kkm_last_timestamp [12:02:10]File name is /storage/kkm_last_timestamp [12:02:10]Write 4 bytes [12:02:10]NVStorageSaveData done [12:02:10]ExternCall_PrintAddStr [12:02:10]wPrintStart [12:02:10]Write to MH i2c: 01 00 00 A2 09 AB [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 07 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 FF 0F C0 [12:02:10]RasterBufferAndPrint [12:02:10]line Счет N : (1)449677 [12:02:10]line ИНН: 02508201610067 [12:02:10]line Контрольно-Кассовый Чек [12:02:10]line ПРОДАЖА [12:02:10]line ТРК (МРК, ГНК) : 21 [12:02:10]line Товар: 2710194210 [12:02:10]line ДТ-К-2 [12:02:10]line 6.570 * 76.20 [12:02:10]line = 500.63 [12:02:10]line НДС 12% НСП 1% [12:02:10]line > о реализуемом товаре [12:02:10]line ОКРУГЛЕНИЕ: -0.63 [12:02:10]line ИТОГО: 500.00 [12:02:10]line Внесено: 500.00 [12:02:10]line СДАЧА: 0.00 [12:02:10]line НСП 1% : 4.43 [12:02:10]line НДС 12% : 53.16 [12:02:10]line Наличными: 500.00 [12:02:10]line Безнал.: 0.00 [12:02:10]line Место: АЗС № 171 "Партнер Нефть" [12:02:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:02:10]line СНО: Общий режим [12:02:10]line Чек 207 27.10.2024 12:02 [12:02:10]line Смена: 544 ФФД: 1.0 [12:02:10]line ЗНМ: 0300000109 [12:02:10]line РНМ: 0000000000091777 [12:02:10]line Версия ККМ: 001 [12:02:10]line ФМ: 0000000000871756 [12:02:10]line ФД: 201915 [12:02:10]line ФПД: 151900791041832 [12:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120208&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201915&fm=151900791041832&tin=02508201610067®Number=0000000000091777&sum=50000 [12:02:10]OFD Sender: Processing packet 201915 [packets to send 112, broken 111] [12:02:10]ProducePacketName [12:02:10]name=ofd_packets/00201915 [12:02:10]OFD Sender: To server: pG, [12:02:10]CommunicateWithHost lk.salyk.kg:30040 [12:02:10]ConnectInit lk.salyk.kg [12:02:10]written 0, free lines is 4095 [12:02:10]Connected sock=10 [12:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A7 01 04 01 19 31 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C0 2B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 14 03 00 35 04 06 00 8A 27 28 B0 EF 28 72 1A 10 1D 70 F5 AB 50 [12:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C6 59 47 00 52 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 14 03 00 F4 03 04 00 7B D7 1D 67 B6 04 01 00 00 56 79 71 DE 1A 2D 7A 17 [12:02:10]CommunicateWithHost err = 0 [12:02:10]CheckOFDResponse [12:02:10]1017 (14) - 77093643461234 [12:02:10]1041 (16) - 0000000000871756 [12:02:10]1040 (4) - 201915 [12:02:10]1012 (4) - 27.10.2024 06:02 [12:02:10]1206 (1) - 0 [12:02:10]OFD Sender: Remove packet 201915 [12:02:10]ProducePacketName [12:02:10]name=ofd_packets/00201915 [12:02:10]NVStorageDeleteData [12:02:10]Write to MH i2c: 01 00 00 CD 09 D6 [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 07 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: 01 07 00 CD 09 00 00 00 00 00 8A 0C 73 [12:02:10]RasterBufferAndPrint [12:02:10]line [12:02:10]line [12:02:10]line [12:02:10]line [12:02:10]line [12:02:10]written 0, free lines is 3215 [12:02:10]MH_Cut [12:02:10]Write to MH i2c: D1 01 00 D4 09 01 AF [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: D1 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: D1 01 00 [12:02:10]MH_I2C_Read... [12:02:10]Read from MH i2c: D1 01 00 D4 09 00 AE [12:02:10]Write to MH i2c: 01 00 00 D5 09 DE [12:02:10]Write i2c OK [12:02:10]MH_I2C_Read... [12:02:11]OFD Sender: No OFD packet to send [12:02:11]*** Cut start [12:02:11]*** Purtial cut [12:02:11]*** Stage 1: CUTSNS_PIN = 1 [12:02:12]Read from MH i2c: 01 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: 01 07 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 FF 0F F3 [12:02:12]process_action close_receipt done [12:02:12]requested_data is exist [12:02:12]produce_requested_data [12:02:12]requested_item fm.sn is exist - process it [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 11 00 00 [12:02:12]Write to MH i2c: E2 08 00 D6 09 80 11 00 00 00 00 00 00 59 [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]*** Stop cut motor [12:02:12]*** Cut end [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:12]Read from MH i2c: E2 17 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 17 00 D6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [12:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:02:12]wFMCommunicate OK [12:02:12]requested_item fd.num is exist - process it [12:02:12]SAM_PROTO_GetFieldsCounters [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 13 00 00 [12:02:12]Write to MH i2c: E2 08 00 D7 09 80 13 00 00 00 00 00 00 5C [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 62 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 62 00 D7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [12:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:12]wFMCommunicate OK [12:02:12]SAM_PROTO_GetFieldsCounters done [12:02:12]requested_item shift.num is exist - process it [12:02:12]requested_item shift.opened is exist - process it [12:02:12]req_shift_opened [12:02:12]FM_GetShiftState [12:02:12]SAM_PROTO_GetShiftState [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 13 01 00 [12:02:12]Write to MH i2c: E2 08 00 D8 09 80 13 01 00 00 00 00 00 5E [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 0E 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 0E 00 D8 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 60 [12:02:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:02:12]wFMCommunicate OK [12:02:12]SAM_PROTO_GetShiftState done [12:02:12]FM_GetShiftState done [12:02:12]req_shift_opened done [12:02:12]requested_item shift.open_date is exist - process it [12:02:12]req_shift_open_date [12:02:12]req_shift_open_date done [12:02:12]produce_requested_data done [12:02:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201915,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:02:12]process_action_free close_receipt [12:02:12]json_value_free [12:02:12]json_value_free done [12:02:12]process_json_proto returns [12:02:12]Send response to host [12:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201915,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:02:12]free response buf [12:02:12]execute_script done [12:02:12]execute_script returns [12:02:12]free content buf [12:02:12]Sock 8.Close socket [12:02:12]Sock 8.Thread stoped [12:02:12]accept exits with 9 [12:02:12]New connection [12:02:12]New thread 3066498404 created [12:02:12]Thread 3066641764 joined [12:02:12]Waiting for new connection... [12:02:12] Sock 9.Parse request [12:02:12]Sock 9.Check first char [12:02:12]Sock 9.First char is OK [12:02:12]request: POST /json_proto HTTP/1.0 [12:02:12]Method: POST [12:02:12]URL: /json_proto [12:02:12]Method is POST - this is cgi request [12:02:12]url: /json_proto [12:02:12]query_string will be loaded in cgi processing [12:02:12]execute_cgi json_proto POST (null) [12:02:12]execute_cgi path=json_proto method=POST [12:02:12]POST find Content-Length [12:02:12]Host: 172.17.63.195:8080 [12:02:12]Content-Length: 677 [12:02:12]Content-Type: application/json [12:02:12] [12:02:12]POST finish read [12:02:12]Found Content-Length = 677 [12:02:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:12]execute_script... [12:02:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:12]POST & json_proto [12:02:12]process_json_proto [12:02:12]json parsed OK: [12:02:12]protocol is kg_v1.0 [12:02:12]action value=close_receipt [12:02:12]process_action close_receipt [12:02:12]cmd_close_receipt [12:02:12]MH_GetDate [12:02:12]Write to MH i2c: F0 00 00 D9 09 D1 [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: F0 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: F0 09 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: F0 09 00 D9 09 00 C5 2B 1E 67 47 1B 1E 67 36 [12:02:12]GetLastDocTimeStamp 1730030528 [12:02:12]current date 1730030533 [12:02:12]FM_GetShiftState [12:02:12]SAM_PROTO_GetShiftState [12:02:12]wFMCommunicate request_size=4 [12:02:12]MH_SAM_APDU [12:02:12]CAPDU: 80 13 01 00 [12:02:12]Write to MH i2c: E2 08 00 DA 09 80 13 01 00 00 00 00 00 60 [12:02:12]Write i2c OK [12:02:12]MH_I2C_Read... [12:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:12]Read from MH i2c: E2 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 0E 00 [12:02:12]MH_I2C_Read... [12:02:12]Read from MH i2c: E2 0E 00 DA 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 62 [12:02:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:02:12]wFMCommunicate OK [12:02:12]SAM_PROTO_GetShiftState done [12:02:12]FM_GetShiftState done [12:02:12]opened in 1729987312 [12:02:12]opened+sec_in_day 1730073712 [12:02:12]quantity*price = 50041 [12:02:12]sum+1 = 50042 [12:02:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 208 27.10.2024 12:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201916 ФПД: 106910278533457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120213&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201916&fm=106910278533457&tin=02508201610067®Number=0000000000091777&sum=50000 [12:02:13]StoreToDocumentArchive [12:02:13]shift 544 fd 201916 [12:02:13]save to /storage/0544/doc_00201916 [12:02:13]save last doc name /storage/0544/doc_00201916 to /storage/kkm_last_doc_name [12:02:13]save OK [12:02:13]Clear old archive folders... [12:02:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:13]tlvbuf is 011F0950 [12:02:13]SAM_PROTO_ClearQueue [12:02:13]wFMCommunicate request_size=4 [12:02:13]MH_SAM_APDU [12:02:13]CAPDU: 80 09 00 00 [12:02:13]Write to MH i2c: E2 08 00 E7 09 80 09 00 00 00 00 00 00 62 [12:02:13]Write i2c OK [12:02:13]MH_I2C_Read... [12:02:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:13]Read from MH i2c: E2 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 03 00 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 03 00 E7 09 00 90 00 64 [12:02:13]RAPDU: 90 00 [12:02:13]wFMCommunicate OK [12:02:13]SAM_PROTO_ClearQueue done [12:02:13]KKMCreateOFDPacket [12:02:13]OFDProtocolAddRootSTLVToBuf [12:02:13]FM_MakeSignedData [12:02:13]FM_MakeSignedData [12:02:13]SAM_PROTO_SignData [12:02:13]wFMCommunicate request_size=4 [12:02:13]MH_SAM_APDU [12:02:13]CAPDU: 80 0D 01 02 [12:02:13]Write to MH i2c: E2 08 00 E8 09 80 0D 01 02 00 00 00 00 6A [12:02:13]Write i2c OK [12:02:13]MH_I2C_Read... [12:02:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:13]Read from MH i2c: E2 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 03 00 [12:02:13]MH_I2C_Read... [12:02:13]Read from MH i2c: E2 03 00 E8 09 00 90 00 65 [12:02:14]RAPDU: 90 00 [12:02:14]wFMCommunicate OK [12:02:14]wFMCommunicate request_size=255 [12:02:14]MH_SAM_APDU [12:02:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D0 00 00 00 F4 03 04 00 C5 2B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 14 03 00 35 04 06 00 61 [12:02:14]Write to MH i2c: E2 02 01 E9 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D0 00 00 00 F4 03 04 00 C5 2B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 14 03 00 35 04 06 00 61 00 00 99 [12:02:14]Write i2c OK [12:02:14]MH_I2C_Read... [12:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:14]Read from MH i2c: E2 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 03 00 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 03 00 E9 09 00 90 00 66 [12:02:14]RAPDU: 90 00 [12:02:14]wFMCommunicate OK [12:02:14]wFMCommunicate request_size=10 [12:02:14]MH_SAM_APDU [12:02:14]CAPDU: 80 0D 02 02 05 3B FD 2C C1 51 [12:02:14]Write to MH i2c: E2 0D 00 EA 09 80 0D 02 02 05 00 3B FD 2C C1 51 00 00 ED [12:02:14]Write i2c OK [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:14] [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 03 00 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 03 00 EA 09 00 90 00 67 [12:02:14]RAPDU: 90 00 [12:02:14]wFMCommunicate OK [12:02:14]wFMCommunicate request_size=4 [12:02:14]MH_SAM_APDU [12:02:14]CAPDU: 80 0D 03 02 [12:02:14]Write to MH i2c: E2 08 00 EB 09 80 0D 03 02 00 00 00 00 6F [12:02:14]Write i2c OK [12:02:14]MH_I2C_Read... [12:02:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:14]Read from MH i2c: E2 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 0B 00 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 0B 00 EB 09 00 7F 91 49 93 6C B4 99 5F 90 00 74 [12:02:14]RAPDU: 7F 91 49 93 6C B4 99 5F 90 00 [12:02:14]wFMCommunicate OK [12:02:14]SAM_PROTO_SignData done [12:02:14]FM_MakeSignedData done [12:02:14]CreateOFDProtocolMessage [12:02:14]wFMCommunicate request_size=4 [12:02:14]MH_SAM_APDU [12:02:14]CAPDU: 80 11 00 00 [12:02:14]Write to MH i2c: E2 08 00 EC 09 80 11 00 00 00 00 00 00 6F [12:02:14]Write i2c OK [12:02:14]MH_I2C_Read... [12:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:14]Read from MH i2c: E2 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 17 00 [12:02:14]MH_I2C_Read... [12:02:14]Read from MH i2c: E2 17 00 EC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C4 [12:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:02:14]wFMCommunicate OK [12:02:14]CreateOFDProtocolMessage done [12:02:14]OFDSenderStorePacket 201916 [12:02:14]StoreOFDPacket docnum=201916 [12:02:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3F F6 07 01 4C 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D0 00 00 00 F4 03 04 00 C5 2B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 14 03 00 35 04 06 00 61 3B FD 2C C1 51 7F 91 49 93 6C B4 99 5F [12:02:15]CheckFolder [12:02:15]dirname=/storage/ofd_packets [12:02:15]CheckFolder done [12:02:15]ProducePacketName [12:02:15]name=ofd_packets/00201916 [12:02:15]NVStorageSaveData ofd_packets/00201916 [12:02:15]File name is /storage/ofd_packets/00201916 [12:02:15]Write 301 bytes [12:02:15]NVStorageSaveData done [12:02:15]OFDSenderStorePacket done [12:02:15]KKMCreateOFDPacket done [12:02:15]NVStorageSaveData kkm_last_timestamp [12:02:15]File name is /storage/kkm_last_timestamp [12:02:15]Write 4 bytes [12:02:15]NVStorageSaveData done [12:02:15]ExternCall_PrintAddStr [12:02:15]wPrintStart [12:02:15]Write to MH i2c: 01 00 00 ED 09 F6 [12:02:15]Write i2c OK [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: 01 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: 01 07 00 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 FF 0F 0B [12:02:15]RasterBufferAndPrint [12:02:15]line Счет N : (1)449676 [12:02:15]line ИНН: 02508201610067 [12:02:15]line Контрольно-Кассовый Чек [12:02:15]line ПРОДАЖА [12:02:15]line ТРК (МРК, ГНК) : 41 [12:02:15]line Товар: 2710124130 [12:02:15]line Аи-92-К-2 [12:02:15]line 7.480 * 66.90 [12:02:15]line = 500.41 [12:02:15]line НДС 12% НСП 1% [12:02:15]line > о реализуемом товаре [12:02:15]line ОКРУГЛЕНИЕ: -0.41 [12:02:15]line ИТОГО: 500.00 [12:02:15]line Внесено: 500.00 [12:02:15]line СДАЧА: 0.00 [12:02:15]line НСП 1% : 4.43 [12:02:15]line НДС 12% : 53.14 [12:02:15]line Наличными: 500.00 [12:02:15]line Безнал.: 0.00 [12:02:15]line Место: АЗС № 171 "Партнер Нефть" [12:02:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:02:15]line СНО: Общий режим [12:02:15]line Чек 208 27.10.2024 12:02 [12:02:15]line Смена: 544 ФФД: 1.0 [12:02:15]line ЗНМ: 0300000109 [12:02:15]line РНМ: 0000000000091777 [12:02:15]line Версия ККМ: 001 [12:02:15]line ФМ: 0000000000871756 [12:02:15]line ФД: 201916 [12:02:15]line ФПД: 106910278533457 [12:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120213&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201916&fm=106910278533457&tin=02508201610067®Number=0000000000091777&sum=50000 [12:02:15]written 0, free lines is 4095 [12:02:15]OFD Sender: Processing packet 201916 [packets to send 112, broken 111] [12:02:15]ProducePacketName [12:02:15]name=ofd_packets/00201916 [12:02:15]OFD Sender: To server: pG, [12:02:15]CommunicateWithHost lk.salyk.kg:30040 [12:02:15]ConnectInit lk.salyk.kg [12:02:15]Connected sock=10 [12:02:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3F F6 07 01 4C 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D0 00 00 00 F4 03 04 00 C5 2B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 14 03 00 35 04 06 00 61 3B FD 2C C1 51 7F 91 49 93 6C B4 99 5F [12:02:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CB C7 47 00 7D 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 14 03 00 F4 03 04 00 7F D7 1D 67 B6 04 01 00 00 D5 55 E5 00 B4 22 27 04 [12:02:15]CommunicateWithHost err = 0 [12:02:15]CheckOFDResponse [12:02:15]1017 (14) - 77093643461234 [12:02:15]1041 (16) - 0000000000871756 [12:02:15]1040 (4) - 201916 [12:02:15]1012 (4) - 27.10.2024 06:02 [12:02:15]1206 (1) - 0 [12:02:15]OFD Sender: Remove packet 201916 [12:02:15]ProducePacketName [12:02:15]name=ofd_packets/00201916 [12:02:15]NVStorageDeleteData [12:02:15]Write to MH i2c: 01 00 00 18 0A 22 [12:02:15]Write i2c OK [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: 01 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: 01 07 00 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: 01 07 00 18 0A 00 00 00 00 00 98 0C CD [12:02:15]RasterBufferAndPrint [12:02:15]line [12:02:15]line [12:02:15]line [12:02:15]line [12:02:15]line [12:02:15]written 0, free lines is 3237 [12:02:15]MH_Cut [12:02:15]Write to MH i2c: D1 01 00 1F 0A 01 FB [12:02:15]Write i2c OK [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: D1 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: D1 01 00 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: D1 01 00 1F 0A 00 FA [12:02:15]Write to MH i2c: 01 00 00 20 0A 2A [12:02:15]Write i2c OK [12:02:15]MH_I2C_Read... [12:02:15]OFD Sender: No OFD packet to send [12:02:16]*** Cut start [12:02:16]*** Purtial cut [12:02:16]*** Stage 1: CUTSNS_PIN = 1 [12:02:16]Read from MH i2c: 01 [12:02:16]MH_I2C_Read... [12:02:16]*** Stop cut motor [12:02:16]*** Cut end [12:02:16]Read from MH i2c: 01 07 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 FF 0F 3F [12:02:16]process_action close_receipt done [12:02:16]requested_data is exist [12:02:16]produce_requested_data [12:02:16]requested_item fm.sn is exist - process it [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 11 00 00 [12:02:16]Write to MH i2c: E2 08 00 21 0A 80 11 00 00 00 00 00 00 A5 [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 17 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 17 00 21 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FA [12:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:02:16]wFMCommunicate OK [12:02:16]requested_item fd.num is exist - process it [12:02:16]SAM_PROTO_GetFieldsCounters [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 13 00 00 [12:02:16]Write to MH i2c: E2 08 00 22 0A 80 13 00 00 00 00 00 00 A8 [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 62 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 62 00 22 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:02:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:16]wFMCommunicate OK [12:02:16]SAM_PROTO_GetFieldsCounters done [12:02:16]requested_item shift.num is exist - process it [12:02:16]requested_item shift.opened is exist - process it [12:02:16]req_shift_opened [12:02:16]FM_GetShiftState [12:02:16]SAM_PROTO_GetShiftState [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 13 01 00 [12:02:16]Write to MH i2c: E2 08 00 23 0A 80 13 01 00 00 00 00 00 AA [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 0E 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 0E 00 23 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AC [12:02:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:02:16]wFMCommunicate OK [12:02:16]SAM_PROTO_GetShiftState done [12:02:16]FM_GetShiftState done [12:02:16]req_shift_opened done [12:02:16]requested_item shift.open_date is exist - process it [12:02:16]req_shift_open_date [12:02:16]req_shift_open_date done [12:02:16]produce_requested_data done [12:02:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201916,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:02:16]process_action_free close_receipt [12:02:16]json_value_free [12:02:16]json_value_free done [12:02:16]process_json_proto returns [12:02:16]Send response to host [12:02:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201916,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:02:16]free response buf [12:02:16]execute_script done [12:02:16]execute_script returns [12:02:16]free content buf [12:02:16]Sock 9.Close socket [12:02:16]Sock 9.Thread stoped [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:22]accept exits with 8 [12:03:22]New connection [12:03:22]New thread 3066641764 created [12:03:22]Thread 3066498404 joined [12:03:22]Waiting for new connection... [12:03:22] Sock 8.Parse request [12:03:22]Sock 8.Check first char [12:03:22]Sock 8.First char is OK [12:03:22]request: POST /json_proto HTTP/1.0 [12:03:22]Method: POST [12:03:22]URL: /json_proto [12:03:22]Method is POST - this is cgi request [12:03:22]url: /json_proto [12:03:22]query_string will be loaded in cgi processing [12:03:22]execute_cgi json_proto POST (null) [12:03:22]execute_cgi path=json_proto method=POST [12:03:22]POST find Content-Length [12:03:22]Host: 172.17.63.195:8080 [12:03:22]Content-Length: 677 [12:03:22]Content-Type: application/json [12:03:22] [12:03:22]POST finish read [12:03:22]Found Content-Length = 677 [12:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:22]execute_script... [12:03: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)449678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:22]POST & json_proto [12:03:22]process_json_proto [12:03:22]json parsed OK: [12:03:22]protocol is kg_v1.0 [12:03:22]action value=close_receipt [12:03:22]process_action close_receipt [12:03:22]cmd_close_receipt [12:03:22]MH_GetDate [12:03:22]Write to MH i2c: F0 00 00 24 0A 1D [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: F0 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: F0 09 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: F0 09 00 24 0A 00 0B 2C 1E 67 47 1B 1E 67 C9 [12:03:22]GetLastDocTimeStamp 1730030533 [12:03:22]current date 1730030603 [12:03:22]FM_GetShiftState [12:03:22]SAM_PROTO_GetShiftState [12:03:22]wFMCommunicate request_size=4 [12:03:22]MH_SAM_APDU [12:03:22]CAPDU: 80 13 01 00 [12:03:22]Write to MH i2c: E2 08 00 25 0A 80 13 01 00 00 00 00 00 AC [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:22]Read from MH i2c: E2 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 0E 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 0E 00 25 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AE [12:03:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:03:22]wFMCommunicate OK [12:03:22]SAM_PROTO_GetShiftState done [12:03:22]FM_GetShiftState done [12:03:22]opened in 1729987312 [12:03:22]opened+sec_in_day 1730073712 [12:03:22]quantity*price = 40006 [12:03:22]sum+1 = 40007 [12:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 209 27.10.2024 12:03 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201917 ФПД: 40362292474576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120323&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201917&fm=40362292474576&tin=02508201610067®Number=0000000000091777&sum=40000 [12:03:23]StoreToDocumentArchive [12:03:23]shift 544 fd 201917 [12:03:23]save to /storage/0544/doc_00201917 [12:03:23]save last doc name /storage/0544/doc_00201917 to /storage/kkm_last_doc_name [12:03:23]save OK [12:03:23]Clear old archive folders... [12:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:23]tlvbuf is 01215370 [12:03:23]SAM_PROTO_ClearQueue [12:03:23]wFMCommunicate request_size=4 [12:03:23]MH_SAM_APDU [12:03:23]CAPDU: 80 09 00 00 [12:03:23]Write to MH i2c: E2 08 00 32 0A 80 09 00 00 00 00 00 00 AE [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 03 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [12:03:24]RAPDU: 90 00 [12:03:24]wFMCommunicate OK [12:03:24]SAM_PROTO_ClearQueue done [12:03:24]KKMCreateOFDPacket [12:03:24]OFDProtocolAddRootSTLVToBuf [12:03:24]FM_MakeSignedData [12:03:24]FM_MakeSignedData [12:03:24]SAM_PROTO_SignData [12:03:24]wFMCommunicate request_size=4 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 0D 01 02 [12:03:24]Write to MH i2c: E2 08 00 33 0A 80 0D 01 02 00 00 00 00 B6 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 03 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 03 00 33 0A 00 90 00 B1 [12:03:24]RAPDU: 90 00 [12:03:24]wFMCommunicate OK [12:03:24]wFMCommunicate request_size=255 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 0B 2C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 14 03 00 35 04 06 00 24 [12:03:24]Write to MH i2c: E2 02 01 34 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 0B 2C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 14 03 00 35 04 06 00 24 00 00 C0 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 03 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 03 00 34 0A 00 90 00 B2 [12:03:24]RAPDU: 90 00 [12:03:24]wFMCommunicate OK [12:03:24]wFMCommunicate request_size=10 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 0D 02 02 05 B5 94 1A F2 D0 [12:03:24]Write to MH i2c: E2 0D 00 35 0A 80 0D 02 02 05 00 B5 94 1A F2 D0 00 00 E8 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 03 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 03 00 35 0A 00 90 00 B3 [12:03:24]RAPDU: 90 00 [12:03:24]wFMCommunicate OK [12:03:24]wFMCommunicate request_size=4 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 0D 03 02 [12:03:24]Write to MH i2c: E2 08 00 36 0A 80 0D 03 02 00 00 00 00 BB [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 0B 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 0B 00 36 0A 00 1F A5 93 19 87 0E F6 76 90 00 2D [12:03:24]RAPDU: 1F A5 93 19 87 0E F6 76 90 00 [12:03:24]wFMCommunicate OK [12:03:24]SAM_PROTO_SignData done [12:03:24]FM_MakeSignedData done [12:03:24]CreateOFDProtocolMessage [12:03:24]wFMCommunicate request_size=4 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 11 00 00 [12:03:24]Write to MH i2c: E2 08 00 37 0A 80 11 00 00 00 00 00 00 BB [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 17 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 17 00 37 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 10 [12:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:03:24]wFMCommunicate OK [12:03:24]CreateOFDProtocolMessage done [12:03:24]OFDSenderStorePacket 201917 [12:03:24]StoreOFDPacket docnum=201917 [12:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 42 81 07 01 BE C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 0B 2C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 14 03 00 35 04 06 00 24 B5 94 1A F2 D0 1F A5 93 19 87 0E F6 76 [12:03:24]CheckFolder [12:03:24]dirname=/storage/ofd_packets [12:03:24]CheckFolder done [12:03:24]ProducePacketName [12:03:24]name=ofd_packets/00201917 [12:03:24]NVStorageSaveData ofd_packets/00201917 [12:03:24]File name is /storage/ofd_packets/00201917 [12:03:24]Write 301 bytes [12:03:24]NVStorageSaveData done [12:03:24]OFDSenderStorePacket done [12:03:24]KKMCreateOFDPacket done [12:03:24]NVStorageSaveData kkm_last_timestamp [12:03:24]File name is /storage/kkm_last_timestamp [12:03:24]Write 4 bytes [12:03:24]NVStorageSaveData done [12:03:24]ExternCall_PrintAddStr [12:03:24]wPrintStart [12:03:24]Write to MH i2c: 01 00 00 38 0A 42 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: 01 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: 01 07 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 FF 0F 57 [12:03:24]RasterBufferAndPrint [12:03:24]line Счет N : (1)449678 [12:03:24]line ИНН: 02508201610067 [12:03:24]line Контрольно-Кассовый Чек [12:03:24]line ПРОДАЖА [12:03:24]line ТРК (МРК, ГНК) : 62 [12:03:24]line Товар: 2710124130 [12:03:24]line Аи-92-К-2 [12:03:24]line 5.980 * 66.90 [12:03:24]line = 400.06 [12:03:24]line НДС 12% НСП 1% [12:03:24]line > о реализуемом товаре [12:03:24]line ОКРУГЛЕНИЕ: -0.06 [12:03:24]line ИТОГО: 400.00 [12:03:24]line Внесено: 400.00 [12:03:24]line СДАЧА: 0.00 [12:03:24]line НСП 1% : 3.54 [12:03:24]line НДС 12% : 42.48 [12:03:24]line Наличными: 400.00 [12:03:24]line Безнал.: 0.00 [12:03:24]line Место: АЗС № 171 "Партнер Нефть" [12:03:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:03:24]line СНО: Общий режим [12:03:24]line Чек 209 27.10.2024 12:03 [12:03:24]line Смена: 544 ФФД: 1.0 [12:03:24]line ЗНМ: 0300000109 [12:03:24]line РНМ: 0000000000091777 [12:03:24]line Версия ККМ: 001 [12:03:24]line ФМ: 0000000000871756 [12:03:24]line ФД: 201917 [12:03:24]line ФПД: 40362292474576 [12:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120323&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201917&fm=40362292474576&tin=02508201610067®Number=0000000000091777&sum=40000 [12:03:24]OFD Sender: Processing packet 201917 [packets to send 112, broken 111] [12:03:24]ProducePacketName [12:03:24]name=ofd_packets/00201917 [12:03:24]OFD Sender: To server: pG, [12:03:24]CommunicateWithHost lk.salyk.kg:30040 [12:03:24]ConnectInit lk.salyk.kg [12:03:24]written 0, free lines is 4095 [12:03:25]Connected sock=10 [12:03:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 42 81 07 01 BE C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 0B 2C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 14 03 00 35 04 06 00 24 B5 94 1A F2 D0 1F A5 93 19 87 0E F6 76 [12:03:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 72 71 47 00 95 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 14 03 00 F4 03 04 00 C5 D7 1D 67 B6 04 01 00 00 F9 CD 27 28 88 76 2B 60 [12:03:25]CommunicateWithHost err = 0 [12:03:25]CheckOFDResponse [12:03:25]1017 (14) - 77093643461234 [12:03:25]1041 (16) - 0000000000871756 [12:03:25]1040 (4) - 201917 [12:03:25]1012 (4) - 27.10.2024 06:03 [12:03:25]1206 (1) - 0 [12:03:25]OFD Sender: Remove packet 201917 [12:03:25]ProducePacketName [12:03:25]name=ofd_packets/00201917 [12:03:25]NVStorageDeleteData [12:03:25]Write to MH i2c: 01 00 00 63 0A 6D [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: 01 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: 01 07 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: 01 07 00 63 0A 00 00 00 00 00 85 0C 05 [12:03:25]RasterBufferAndPrint [12:03:25]line [12:03:25]line [12:03:25]line [12:03:25]line [12:03:25]line [12:03:25]written 0, free lines is 3210 [12:03:25]MH_Cut [12:03:25]Write to MH i2c: D1 01 00 6A 0A 01 46 [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: D1 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: D1 01 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: D1 01 00 6A 0A 00 45 [12:03:25]Write to MH i2c: 01 00 00 6B 0A 75 [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]OFD Sender: No OFD packet to send [12:03:26]*** Cut start [12:03:26]*** Purtial cut [12:03:26]*** Stage 1: CUTSNS_PIN = 1 [12:03:26]Read from MH i2c: 01 [12:03:26]MH_I2C_Read... [12:03:26]*** Stop cut motor [12:03:26]*** Cut end [12:03:26]Read from MH i2c: 01 07 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 FF 0F 8A [12:03:26]process_action close_receipt done [12:03:26]requested_data is exist [12:03:26]produce_requested_data [12:03:26]requested_item fm.sn is exist - process it [12:03:26]wFMCommunicate request_size=4 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 11 00 00 [12:03:26]Write to MH i2c: E2 08 00 6C 0A 80 11 00 00 00 00 00 00 F0 [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 17 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 17 00 6C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 45 [12:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:03:26]wFMCommunicate OK [12:03:26]requested_item fd.num is exist - process it [12:03:26]SAM_PROTO_GetFieldsCounters [12:03:26]wFMCommunicate request_size=4 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 13 00 00 [12:03:26]Write to MH i2c: E2 08 00 6D 0A 80 13 00 00 00 00 00 00 F3 [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 62 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 62 00 6D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [12:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:26]wFMCommunicate OK [12:03:26]SAM_PROTO_GetFieldsCounters done [12:03:26]requested_item shift.num is exist - process it [12:03:26]requested_item shift.opened is exist - process it [12:03:26]req_shift_opened [12:03:26]FM_GetShiftState [12:03:26]SAM_PROTO_GetShiftState [12:03:26]wFMCommunicate request_size=4 [12:03:26]MH_SAM_APDU [12:03:26]CAPDU: 80 13 01 00 [12:03:26]Write to MH i2c: E2 08 00 6E 0A 80 13 01 00 00 00 00 00 F5 [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:26]Read from MH i2c: E2 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 0E 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: E2 0E 00 6E 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F7 [12:03:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:03:26]wFMCommunicate OK [12:03:26]SAM_PROTO_GetShiftState done [12:03:26]FM_GetShiftState done [12:03:26]req_shift_opened done [12:03:26]requested_item shift.open_date is exist - process it [12:03:26]req_shift_open_date [12:03:26]req_shift_open_date done [12:03:26]produce_requested_data done [12:03:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201917,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:03:26]process_action_free close_receipt [12:03:26]json_value_free [12:03:26]json_value_free done [12:03:26]process_json_proto returns [12:03:26]Send response to host [12:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201917,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:03:26]free response buf [12:03:26]execute_script done [12:03:26]execute_script returns [12:03:26]free content buf [12:03:26]Sock 8.Close socket [12:03:26]Sock 8.Thread stoped [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:02]accept exits with 9 [12:06:02]New connection [12:06:02]New thread 3066498404 created [12:06:02]Thread 3066641764 joined [12:06:02]Waiting for new connection... [12:06:02] Sock 9.Parse request [12:06:02]Sock 9.Check first char [12:06:02]Sock 9.First char is OK [12:06:02]request: POST /json_proto HTTP/1.0 [12:06:02]Method: POST [12:06:02]URL: /json_proto [12:06:02]Method is POST - this is cgi request [12:06:02]url: /json_proto [12:06:02]query_string will be loaded in cgi processing [12:06:02]execute_cgi json_proto POST (null) [12:06:02]execute_cgi path=json_proto method=POST [12:06:02]POST find Content-Length [12:06:02]Host: 172.17.63.195:8080 [12:06:02]Content-Length: 679 [12:06:02]Content-Type: application/json [12:06:02] [12:06:02]POST finish read [12:06:02]Found Content-Length = 679 [12:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 27.810, "sum" : 2119.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2119.00, "payments": [ { "type": 0, "sum" : 2119.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:02]execute_script... [12:06: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)449679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 27.810, "sum" : 2119.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2119.00, "payments": [ { "type": 0, "sum" : 2119.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:02]POST & json_proto [12:06:02]process_json_proto [12:06:02]json parsed OK: [12:06:02]protocol is kg_v1.0 [12:06:02]action value=close_receipt [12:06:02]process_action close_receipt [12:06:02]cmd_close_receipt [12:06:02]MH_GetDate [12:06:02]Write to MH i2c: F0 00 00 6F 0A 68 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:03]Read from MH i2c: F0 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: F0 09 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: F0 09 00 6F 0A 00 AB 2C 1E 67 47 1B 1E 67 B4 [12:06:03]GetLastDocTimeStamp 1730030603 [12:06:03]current date 1730030763 [12:06:03]FM_GetShiftState [12:06:03]SAM_PROTO_GetShiftState [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 13 01 00 [12:06:03]Write to MH i2c: E2 08 00 70 0A 80 13 01 00 00 00 00 00 F7 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0E 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0E 00 70 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F9 [12:06:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_GetShiftState done [12:06:03]FM_GetShiftState done [12:06:03]opened in 1729987312 [12:06:03]opened+sec_in_day 1730073712 [12:06:03]quantity*price = 211912 [12:06:03]sum+1 = 211913 [12:06:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2119.00 Внесено: 2300.00 СДАЧА: 181.00 НСП 1% : 18.75 НДС 12% : 225.04 Наличными: 2119.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 210 27.10.2024 12:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201918 ФПД: 21602882278439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201918&fm=21602882278439&tin=02508201610067®Number=0000000000091777&sum=211900 [12:06:04]StoreToDocumentArchive [12:06:04]shift 544 fd 201918 [12:06:04]save to /storage/0544/doc_00201918 [12:06:04]save last doc name /storage/0544/doc_00201918 to /storage/kkm_last_doc_name [12:06:04]save OK [12:06:04]Clear old archive folders... [12:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:06:04]tlvbuf is 011A12D0 [12:06:04]SAM_PROTO_ClearQueue [12:06:04]wFMCommunicate request_size=4 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 09 00 00 [12:06:04]Write to MH i2c: E2 08 00 7D 0A 80 09 00 00 00 00 00 00 F9 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [12:06:04]RAPDU: 90 00 [12:06:04]wFMCommunicate OK [12:06:04]SAM_PROTO_ClearQueue done [12:06:04]KKMCreateOFDPacket [12:06:04]OFDProtocolAddRootSTLVToBuf [12:06:04]FM_MakeSignedData [12:06:04]FM_MakeSignedData [12:06:04]SAM_PROTO_SignData [12:06:04]wFMCommunicate request_size=4 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 0D 01 02 [12:06:04]Write to MH i2c: E2 08 00 7E 0A 80 0D 01 02 00 00 00 00 01 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 7E 0A 00 90 00 FC [12:06:04]RAPDU: 90 00 [12:06:04]wFMCommunicate OK [12:06:04]wFMCommunicate request_size=255 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A2 6C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C8 3B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 3B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 57 00 00 00 00 07 04 06 00 BC 3B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AB 2C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 14 03 00 35 04 06 00 13 A5 D0 1F [12:06:04]Write to MH i2c: E2 02 01 7F 0A 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 32 FF 03 08 00 03 A2 6C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C8 3B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 3B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 57 00 00 00 00 07 04 06 00 BC 3B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AB 2C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 14 03 00 35 04 06 00 13 A5 D0 1F 00 00 B1 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 7F 0A 00 90 00 FD [12:06:04]RAPDU: 90 00 [12:06:04]wFMCommunicate OK [12:06:04]wFMCommunicate request_size=7 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 0D 02 02 02 D4 27 [12:06:04]Write to MH i2c: E2 0A 00 80 0A 80 0D 02 02 02 00 D4 27 00 00 03 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 03 00 80 0A 00 90 00 FE [12:06:04]RAPDU: 90 00 [12:06:04]wFMCommunicate OK [12:06:04]wFMCommunicate request_size=4 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 0D 03 02 [12:06:04]Write to MH i2c: E2 08 00 81 0A 80 0D 03 02 00 00 00 00 06 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 0B 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 0B 00 81 0A 00 3F 3B 00 A2 F0 BC 35 45 90 00 49 [12:06:04]RAPDU: 3F 3B 00 A2 F0 BC 35 45 90 00 [12:06:04]wFMCommunicate OK [12:06:04]SAM_PROTO_SignData done [12:06:04]FM_MakeSignedData done [12:06:04]CreateOFDProtocolMessage [12:06:04]wFMCommunicate request_size=4 [12:06:04]MH_SAM_APDU [12:06:04]CAPDU: 80 11 00 00 [12:06:04]Write to MH i2c: E2 08 00 82 0A 80 11 00 00 00 00 00 00 06 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:04]Read from MH i2c: E2 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 17 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: E2 17 00 82 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5B [12:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:06:04]wFMCommunicate OK [12:06:04]CreateOFDProtocolMessage done [12:06:04]OFDSenderStorePacket 201918 [12:06:04]StoreOFDPacket docnum=201918 [12:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F3 66 04 01 FB 2B 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 32 FF 03 08 00 03 A2 6C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C8 3B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 3B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 57 00 00 00 00 07 04 06 00 BC 3B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AB 2C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 14 03 00 35 04 06 00 13 A5 D0 1F D4 27 3F 3B 00 A2 F0 BC 35 45 [12:06:04]CheckFolder [12:06:04]dirname=/storage/ofd_packets [12:06:04]CheckFolder done [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00201918 [12:06:04]NVStorageSaveData ofd_packets/00201918 [12:06:04]File name is /storage/ofd_packets/00201918 [12:06:04]Write 298 bytes [12:06:04]NVStorageSaveData done [12:06:04]OFDSenderStorePacket done [12:06:04]KKMCreateOFDPacket done [12:06:04]NVStorageSaveData kkm_last_timestamp [12:06:04]File name is /storage/kkm_last_timestamp [12:06:04]Write 4 bytes [12:06:04]NVStorageSaveData done [12:06:04]ExternCall_PrintAddStr [12:06:04]wPrintStart [12:06:04]Write to MH i2c: 01 00 00 83 0A 8D [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 FF 0F A2 [12:06:04]RasterBufferAndPrint [12:06:04]line Счет N : (1)449679 [12:06:04]line ИНН: 02508201610067 [12:06:04]line Контрольно-Кассовый Чек [12:06:04]line ПРОДАЖА [12:06:04]line ТРК (МРК, ГНК) : 43 [12:06:04]line Товар: 2710194210 [12:06:04]line ДТ-К-2 [12:06:04]line 27.810 * 76.20 [12:06:04]line = 2119.12 [12:06:04]line НДС 12% НСП 1% [12:06:04]line > о реализуемом товаре [12:06:04]line ОКРУГЛЕНИЕ: -0.12 [12:06:04]line ИТОГО: 2119.00 [12:06:04]line Внесено: 2300.00 [12:06:04]line СДАЧА: 181.00 [12:06:04]line НСП 1% : 18.75 [12:06:04]line НДС 12% : 225.04 [12:06:04]line Наличными: 2119.00 [12:06:04]line Безнал.: 0.00 [12:06:04]line Место: АЗС № 171 "Партнер Нефть" [12:06:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:06:04]line СНО: Общий режим [12:06:04]line Чек 210 27.10.2024 12:06 [12:06:04]line Смена: 544 ФФД: 1.0 [12:06:04]line ЗНМ: 0300000109 [12:06:04]line РНМ: 0000000000091777 [12:06:04]line Версия ККМ: 001 [12:06:04]line ФМ: 0000000000871756 [12:06:04]line ФД: 201918 [12:06:04]line ФПД: 21602882278439 [12:06:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201918&fm=21602882278439&tin=02508201610067®Number=0000000000091777&sum=211900 [12:06:05]OFD Sender: Processing packet 201918 [packets to send 112, broken 111] [12:06:05]ProducePacketName [12:06:05]name=ofd_packets/00201918 [12:06:05]OFD Sender: To server: pG, [12:06:05]CommunicateWithHost lk.salyk.kg:30040 [12:06:05]ConnectInit lk.salyk.kg [12:06:05]written 0, free lines is 4095 [12:06:05]Connected sock=10 [12:06:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F3 66 04 01 FB 2B 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 32 FF 03 08 00 03 A2 6C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C8 3B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 3B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 57 00 00 00 00 07 04 06 00 BC 3B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AB 2C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 14 03 00 35 04 06 00 13 A5 D0 1F D4 27 3F 3B 00 A2 F0 BC 35 45 [12:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9C D4 47 00 00 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 14 03 00 F4 03 04 00 65 D8 1D 67 B6 04 01 00 00 3C F7 82 98 2B A0 FA C0 [12:06:05]CommunicateWithHost err = 0 [12:06:05]CheckOFDResponse [12:06:05]1017 (14) - 77093643461234 [12:06:05]1041 (16) - 0000000000871756 [12:06:05]1040 (4) - 201918 [12:06:05]1012 (4) - 27.10.2024 06:06 [12:06:05]1206 (1) - 0 [12:06:05]OFD Sender: Remove packet 201918 [12:06:05]ProducePacketName [12:06:05]name=ofd_packets/00201918 [12:06:05]NVStorageDeleteData [12:06:05]Write to MH i2c: 01 00 00 AE 0A B8 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 07 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 8F 0C 5A [12:06:05]RasterBufferAndPrint [12:06:05]line [12:06:05]line [12:06:05]line [12:06:05]line [12:06:05]line [12:06:05]written 0, free lines is 3217 [12:06:05]MH_Cut [12:06:05]Write to MH i2c: D1 01 00 B5 0A 01 91 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: D1 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: D1 01 00 [12:06:05]MH_I2C_Read... [12:06:05]Read from MH i2c: D1 01 00 B5 0A 00 90 [12:06:05]Write to MH i2c: 01 00 00 B6 0A C0 [12:06:05]Write i2c OK [12:06:05]MH_I2C_Read... [12:06:05]OFD Sender: No OFD packet to send [12:06:06]*** Cut start [12:06:06]*** Purtial cut [12:06:06]*** CUTSNS_PIN = 0 [12:06:06]*** Stage 1: CUTSNS_PIN = 1 [12:06:08]Read from MH i2c: 01 [12:06:08]MH_I2C_Read... [12:06:08]*** Stop cut motor [12:06:08]*** Cut end [12:06:08]Read from MH i2c: 01 07 00 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 FF 0F D5 [12:06:08]process_action close_receipt done [12:06:08]requested_data is exist [12:06:08]produce_requested_data [12:06:08]requested_item fm.sn is exist - process it [12:06:08]wFMCommunicate request_size=4 [12:06:08]MH_SAM_APDU [12:06:08]CAPDU: 80 11 00 00 [12:06:08]Write to MH i2c: E2 08 00 B7 0A 80 11 00 00 00 00 00 00 3B [12:06:08]Write i2c OK [12:06:08]MH_I2C_Read... [12:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:08]Read from MH i2c: E2 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 17 00 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 17 00 B7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [12:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:06:08]wFMCommunicate OK [12:06:08]requested_item fd.num is exist - process it [12:06:08]SAM_PROTO_GetFieldsCounters [12:06:08]wFMCommunicate request_size=4 [12:06:08]MH_SAM_APDU [12:06:08]CAPDU: 80 13 00 00 [12:06:08]Write to MH i2c: E2 08 00 B8 0A 80 13 00 00 00 00 00 00 3E [12:06:08]Write i2c OK [12:06:08]MH_I2C_Read... [12:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:08]Read from MH i2c: E2 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 62 00 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 62 00 B8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:06:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:08]wFMCommunicate OK [12:06:08]SAM_PROTO_GetFieldsCounters done [12:06:08]requested_item shift.num is exist - process it [12:06:08]requested_item shift.opened is exist - process it [12:06:08]req_shift_opened [12:06:08]FM_GetShiftState [12:06:08]SAM_PROTO_GetShiftState [12:06:08]wFMCommunicate request_size=4 [12:06:08]MH_SAM_APDU [12:06:08]CAPDU: 80 13 01 00 [12:06:08]Write to MH i2c: E2 08 00 B9 0A 80 13 01 00 00 00 00 00 40 [12:06:08]Write i2c OK [12:06:08]MH_I2C_Read... [12:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:08]Read from MH i2c: E2 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 0E 00 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 0E 00 B9 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 42 [12:06:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:06:08]wFMCommunicate OK [12:06:08]SAM_PROTO_GetShiftState done [12:06:08]FM_GetShiftState done [12:06:08]req_shift_opened done [12:06:08]requested_item shift.open_date is exist - process it [12:06:08]req_shift_open_date [12:06:08]req_shift_open_date done [12:06:08]produce_requested_data done [12:06:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201918,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:06:08]process_action_free close_receipt [12:06:08]json_value_free [12:06:08]json_value_free done [12:06:08]process_json_proto returns [12:06:08]Send response to host [12:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201918,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:06:08]free response buf [12:06:08]execute_script done [12:06:08]execute_script returns [12:06:08]free content buf [12:06:08]Sock 9.Close socket [12:06:08]Sock 9.Thread stoped [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]int [12:06:30]Write to MH i2c: 01 00 00 BA 0A C4 [12:06:30]*** FLAG_PRN_KEY set [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 BA 0A 00 08 00 00 00 FF 0F E1 [12:06:30]state=0 [12:06:30]Key pressed [12:06:30]Feed [12:06:30]Write to MH i2c: D8 00 00 BB 0A 9C [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: D8 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: D8 01 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: D8 01 00 BB 0A 00 9D [12:06:30]int [12:06:30]Write to MH i2c: 01 00 00 BC 0A C6 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 BC 0A 00 48 00 00 00 3C 00 51 [12:06:30]state=2 [12:06:30]Key pressed [12:06:30]int [12:06:30]Write to MH i2c: 01 00 00 BD 0A C7 [12:06:30]*** FLAG_PRN_KEY reset [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 F5 0F D2 [12:06:30]state=2 [12:06:30]Stop feed [12:06:30]int [12:06:30]Write to MH i2c: 01 00 00 BE 0A C8 [12:06:30]*** FLAG_PRN_KEY set [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 BE 0A 00 08 00 00 00 FF 0F E5 [12:06:30]state=0 [12:06:30]Key pressed [12:06:30]Feed [12:06:30]Write to MH i2c: D8 00 00 BF 0A A0 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: D8 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: D8 01 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: D8 01 00 BF 0A 00 A1 [12:06:30]int [12:06:30]Write to MH i2c: 01 00 00 C0 0A CA [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 C0 0A 00 48 00 00 00 3C 00 55 [12:06:30]state=2 [12:06:30]Key pressed [12:06:30]int [12:06:30]Write to MH i2c: 01 00 00 C1 0A CB [12:06:30]*** FLAG_PRN_KEY reset [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 F5 0F D6 [12:06:30]state=2 [12:06:30]Stop feed [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:53]accept exits with 8 [12:07:53]New connection [12:07:53]New thread 3066641764 created [12:07:53]Thread 3066498404 joined [12:07:53]Waiting for new connection... [12:07:53] Sock 8.Parse request [12:07:53]Sock 8.Check first char [12:07:53]Sock 8.First char is OK [12:07:53]request: POST /json_proto HTTP/1.0 [12:07:53]Method: POST [12:07:53]URL: /json_proto [12:07:53]Method is POST - this is cgi request [12:07:53]url: /json_proto [12:07:53]query_string will be loaded in cgi processing [12:07:53]execute_cgi json_proto POST (null) [12:07:53]execute_cgi path=json_proto method=POST [12:07:53]POST find Content-Length [12:07:53]Host: 172.17.63.195:8080 [12:07:53]Content-Length: 677 [12:07:53]Content-Type: application/json [12:07:53] [12:07:53]POST finish read [12:07:53]Found Content-Length = 677 [12:07:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:53]execute_script... [12:07:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:53]POST & json_proto [12:07:53]process_json_proto [12:07:53]json parsed OK: [12:07:53]protocol is kg_v1.0 [12:07:53]action value=close_receipt [12:07:53]process_action close_receipt [12:07:53]cmd_close_receipt [12:07:53]MH_GetDate [12:07:53]Write to MH i2c: F0 00 00 C2 0A BB [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: F0 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: F0 09 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: F0 09 00 C2 0A 00 19 2D 1E 67 47 1B 1E 67 76 [12:07:53]GetLastDocTimeStamp 1730030763 [12:07:53]current date 1730030873 [12:07:53]FM_GetShiftState [12:07:53]SAM_PROTO_GetShiftState [12:07:53]wFMCommunicate request_size=4 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 13 01 00 [12:07:53]Write to MH i2c: E2 08 00 C3 0A 80 13 01 00 00 00 00 00 4A [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 0E 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 0E 00 C3 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4C [12:07:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:07:53]wFMCommunicate OK [12:07:53]SAM_PROTO_GetShiftState done [12:07:53]FM_GetShiftState done [12:07:53]opened in 1729987312 [12:07:53]opened+sec_in_day 1730073712 [12:07:53]quantity*price = 50041 [12:07:53]sum+1 = 50042 [12:07:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 211 27.10.2024 12:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201919 ФПД: 140103954399430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120754&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201919&fm=140103954399430&tin=02508201610067®Number=0000000000091777&sum=50000 [12:07:54]StoreToDocumentArchive [12:07:54]shift 544 fd 201919 [12:07:54]save to /storage/0544/doc_00201919 [12:07:54]save last doc name /storage/0544/doc_00201919 to /storage/kkm_last_doc_name [12:07:54]save OK [12:07:54]Clear old archive folders... [12:07:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:54]tlvbuf is 011974A0 [12:07:54]SAM_PROTO_ClearQueue [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 09 00 00 [12:07:54]Write to MH i2c: E2 08 00 D0 0A 80 09 00 00 00 00 00 00 4C [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 D0 0A 00 90 00 4E [12:07:54]RAPDU: 90 00 [12:07:54]wFMCommunicate OK [12:07:54]SAM_PROTO_ClearQueue done [12:07:54]KKMCreateOFDPacket [12:07:54]OFDProtocolAddRootSTLVToBuf [12:07:54]FM_MakeSignedData [12:07:54]FM_MakeSignedData [12:07:54]SAM_PROTO_SignData [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 0D 01 02 [12:07:54]Write to MH i2c: E2 08 00 D1 0A 80 0D 01 02 00 00 00 00 54 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 03 00 D1 0A 00 90 00 4F [12:07:54]RAPDU: 90 00 [12:07:54]wFMCommunicate OK [12:07:54]wFMCommunicate request_size=255 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D3 00 00 00 F4 03 04 00 1A 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 14 03 00 35 04 06 00 7F [12:07:54]Write to MH i2c: E2 02 01 D2 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D3 00 00 00 F4 03 04 00 1A 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 14 03 00 35 04 06 00 7F 00 00 FE [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [12:07:55]RAPDU: 90 00 [12:07:55]wFMCommunicate OK [12:07:55]wFMCommunicate request_size=10 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 0D 02 02 05 6C 7E 6F 00 C6 [12:07:55]Write to MH i2c: E2 0D 00 D3 0A 80 0D 02 02 05 00 6C 7E 6F 00 C6 00 00 80 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [12:07:55]RAPDU: 90 00 [12:07:55]wFMCommunicate OK [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 0D 03 02 [12:07:55]Write to MH i2c: E2 08 00 D4 0A 80 0D 03 02 00 00 00 00 59 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0B 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0B 00 D4 0A 00 42 AB 3F F2 80 F0 1C 29 90 00 2D [12:07:55]RAPDU: 42 AB 3F F2 80 F0 1C 29 90 00 [12:07:55]wFMCommunicate OK [12:07:55]SAM_PROTO_SignData done [12:07:55]FM_MakeSignedData done [12:07:55]CreateOFDProtocolMessage [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 11 00 00 [12:07:55]Write to MH i2c: E2 08 00 D5 0A 80 11 00 00 00 00 00 00 59 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 17 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 17 00 D5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [12:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:07:55]wFMCommunicate OK [12:07:55]CreateOFDProtocolMessage done [12:07:55]OFDSenderStorePacket 201919 [12:07:55]StoreOFDPacket docnum=201919 [12:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 91 DF 07 01 55 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D3 00 00 00 F4 03 04 00 1A 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 14 03 00 35 04 06 00 7F 6C 7E 6F 00 C6 42 AB 3F F2 80 F0 1C 29 [12:07:55]CheckFolder [12:07:55]dirname=/storage/ofd_packets [12:07:55]CheckFolder done [12:07:55]ProducePacketName [12:07:55]name=ofd_packets/00201919 [12:07:55]NVStorageSaveData ofd_packets/00201919 [12:07:55]File name is /storage/ofd_packets/00201919 [12:07:55]Write 301 bytes [12:07:55]NVStorageSaveData done [12:07:55]OFDSenderStorePacket done [12:07:55]KKMCreateOFDPacket done [12:07:55]NVStorageSaveData kkm_last_timestamp [12:07:55]File name is /storage/kkm_last_timestamp [12:07:55]Write 4 bytes [12:07:55]NVStorageSaveData done [12:07:55]ExternCall_PrintAddStr [12:07:55]wPrintStart [12:07:55]Write to MH i2c: 01 00 00 D6 0A E0 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 07 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 07 00 D6 0A 00 00 00 00 00 FF 0F F5 [12:07:55]RasterBufferAndPrint [12:07:55]line Счет N : (1)449680 [12:07:55]line ИНН: 02508201610067 [12:07:55]line Контрольно-Кассовый Чек [12:07:55]line ПРОДАЖА [12:07:55]line ТРК (МРК, ГНК) : 62 [12:07:55]line Товар: 2710124130 [12:07:55]line Аи-92-К-2 [12:07:55]line 7.480 * 66.90 [12:07:55]line = 500.41 [12:07:55]line НДС 12% НСП 1% [12:07:55]line > о реализуемом товаре [12:07:55]line ОКРУГЛЕНИЕ: -0.41 [12:07:55]line ИТОГО: 500.00 [12:07:55]line Внесено: 500.00 [12:07:55]line СДАЧА: 0.00 [12:07:55]line НСП 1% : 4.43 [12:07:55]line НДС 12% : 53.14 [12:07:55]line Наличными: 500.00 [12:07:55]line Безнал.: 0.00 [12:07:55]line Место: АЗС № 171 "Партнер Нефть" [12:07:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:07:55]line СНО: Общий режим [12:07:55]line Чек 211 27.10.2024 12:07 [12:07:55]line Смена: 544 ФФД: 1.0 [12:07:55]line ЗНМ: 0300000109 [12:07:55]line РНМ: 0000000000091777 [12:07:55]line Версия ККМ: 001 [12:07:55]line ФМ: 0000000000871756 [12:07:55]line ФД: 201919 [12:07:55]line ФПД: 140103954399430 [12:07:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120754&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201919&fm=140103954399430&tin=02508201610067®Number=0000000000091777&sum=50000 [12:07:55]OFD Sender: Processing packet 201919 [packets to send 112, broken 111] [12:07:55]ProducePacketName [12:07:55]name=ofd_packets/00201919 [12:07:55]OFD Sender: To server: pG, [12:07:55]CommunicateWithHost lk.salyk.kg:30040 [12:07:55]ConnectInit lk.salyk.kg [12:07:55]written 0, free lines is 4095 [12:07:55]Connected sock=10 [12:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 91 DF 07 01 55 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D3 00 00 00 F4 03 04 00 1A 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 14 03 00 35 04 06 00 7F 6C 7E 6F 00 C6 42 AB 3F F2 80 F0 1C 29 [12:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F BC 47 00 19 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 14 03 00 F4 03 04 00 D4 D8 1D 67 B6 04 01 00 00 A7 68 1D 73 D5 49 46 39 [12:07:55]CommunicateWithHost err = 0 [12:07:55]CheckOFDResponse [12:07:55]1017 (14) - 77093643461234 [12:07:55]1041 (16) - 0000000000871756 [12:07:55]1040 (4) - 201919 [12:07:55]1012 (4) - 27.10.2024 06:08 [12:07:55]1206 (1) - 0 [12:07:55]OFD Sender: Remove packet 201919 [12:07:55]ProducePacketName [12:07:55]name=ofd_packets/00201919 [12:07:55]NVStorageDeleteData [12:07:55]Write to MH i2c: 01 00 00 01 0B 0C [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 07 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 96 0C B5 [12:07:55]RasterBufferAndPrint [12:07:55]line [12:07:55]line [12:07:55]line [12:07:55]line [12:07:55]line [12:07:55]written 0, free lines is 3227 [12:07:55]MH_Cut [12:07:55]Write to MH i2c: D1 01 00 08 0B 01 E5 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: D1 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: D1 01 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: D1 01 00 08 0B 00 E4 [12:07:55]Write to MH i2c: 01 00 00 09 0B 14 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:56]OFD Sender: No OFD packet to send [12:07:56]*** Cut start [12:07:56]*** Purtial cut [12:07:56]*** Stage 1: CUTSNS_PIN = 1 [12:07:57]Read from MH i2c: 01 [12:07:57]MH_I2C_Read... [12:07:57]*** Stop cut motor [12:07:57]*** Cut end [12:07:57]Read from MH i2c: 01 07 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 FF 0F 29 [12:07:57]process_action close_receipt done [12:07:57]requested_data is exist [12:07:57]produce_requested_data [12:07:57]requested_item fm.sn is exist - process it [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 11 00 00 [12:07:57]Write to MH i2c: E2 08 00 0A 0B 80 11 00 00 00 00 00 00 8F [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 17 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 17 00 0A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E4 [12:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:07:57]wFMCommunicate OK [12:07:57]requested_item fd.num is exist - process it [12:07:57]SAM_PROTO_GetFieldsCounters [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 13 00 00 [12:07:57]Write to MH i2c: E2 08 00 0B 0B 80 13 00 00 00 00 00 00 92 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 62 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 62 00 0B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [12:07:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_GetFieldsCounters done [12:07:57]requested_item shift.num is exist - process it [12:07:57]requested_item shift.opened is exist - process it [12:07:57]req_shift_opened [12:07:57]FM_GetShiftState [12:07:57]SAM_PROTO_GetShiftState [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 13 01 00 [12:07:57]Write to MH i2c: E2 08 00 0C 0B 80 13 01 00 00 00 00 00 94 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0E 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0E 00 0C 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 96 [12:07:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_GetShiftState done [12:07:57]FM_GetShiftState done [12:07:57]req_shift_opened done [12:07:57]requested_item shift.open_date is exist - process it [12:07:57]req_shift_open_date [12:07:57]req_shift_open_date done [12:07:57]produce_requested_data done [12:07:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201919,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:07:57]process_action_free close_receipt [12:07:57]json_value_free [12:07:57]json_value_free done [12:07:57]process_json_proto returns [12:07:57]Send response to host [12:07:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201919,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:07:57]free response buf [12:07:57]execute_script done [12:07:57]execute_script returns [12:07:57]free content buf [12:07:57]Sock 8.Close socket [12:07:57]Sock 8.Thread stoped [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:21]accept exits with 9 [12:10:21]New connection [12:10:21]New thread 3066498404 created [12:10:21]Thread 3066641764 joined [12:10:21]Waiting for new connection... [12:10:21] Sock 9.Parse request [12:10:21]Sock 9.Check first char [12:10:21]Sock 9.First char is OK [12:10:21]request: POST /json_proto HTTP/1.0 [12:10:21]Method: POST [12:10:21]URL: /json_proto [12:10:21]Method is POST - this is cgi request [12:10:21]url: /json_proto [12:10:21]query_string will be loaded in cgi processing [12:10:21]execute_cgi json_proto POST (null) [12:10:21]execute_cgi path=json_proto method=POST [12:10:21]POST find Content-Length [12:10:21]Host: 172.17.63.195:8080 [12:10:21]Content-Length: 677 [12:10:21]Content-Type: application/json [12:10:21] [12:10:21]POST finish read [12:10:21]Found Content-Length = 677 [12:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:21]execute_script... [12:10: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)449681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:21]POST & json_proto [12:10:21]process_json_proto [12:10:21]json parsed OK: [12:10:21]protocol is kg_v1.0 [12:10:21]action value=close_receipt [12:10:21]process_action close_receipt [12:10:21]cmd_close_receipt [12:10:21]MH_GetDate [12:10:21]Write to MH i2c: F0 00 00 0D 0B 07 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: F0 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: F0 09 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: F0 09 00 0D 0B 00 AE 2D 1E 67 47 1B 1E 67 57 [12:10:21]GetLastDocTimeStamp 1730030874 [12:10:21]current date 1730031022 [12:10:21]FM_GetShiftState [12:10:21]SAM_PROTO_GetShiftState [12:10:21]wFMCommunicate request_size=4 [12:10:21]MH_SAM_APDU [12:10:21]CAPDU: 80 13 01 00 [12:10:21]Write to MH i2c: E2 08 00 0E 0B 80 13 01 00 00 00 00 00 96 [12:10:21]Write i2c OK [12:10:21]MH_I2C_Read... [12:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:21]Read from MH i2c: E2 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 0E 00 [12:10:21]MH_I2C_Read... [12:10:21]Read from MH i2c: E2 0E 00 0E 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 98 [12:10:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:10:21]wFMCommunicate OK [12:10:21]SAM_PROTO_GetShiftState done [12:10:21]FM_GetShiftState done [12:10:21]opened in 1729987312 [12:10:21]opened+sec_in_day 1730073712 [12:10:21]quantity*price = 30038 [12:10:21]sum+1 = 30039 [12:10:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 212 27.10.2024 12:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201920 ФПД: 30472842977019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121022&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201920&fm=30472842977019&tin=02508201610067®Number=0000000000091777&sum=30000 [12:10:22]StoreToDocumentArchive [12:10:22]shift 544 fd 201920 [12:10:22]save to /storage/0544/doc_00201920 [12:10:22]save last doc name /storage/0544/doc_00201920 to /storage/kkm_last_doc_name [12:10:22]save OK [12:10:22]Clear old archive folders... [12:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:22]tlvbuf is 01215420 [12:10:22]SAM_PROTO_ClearQueue [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 09 00 00 [12:10:22]Write to MH i2c: E2 08 00 1B 0B 80 09 00 00 00 00 00 00 98 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 1B 0B 00 90 00 9A [12:10:22]RAPDU: 90 00 [12:10:22]wFMCommunicate OK [12:10:22]SAM_PROTO_ClearQueue done [12:10:22]KKMCreateOFDPacket [12:10:22]OFDProtocolAddRootSTLVToBuf [12:10:22]FM_MakeSignedData [12:10:22]FM_MakeSignedData [12:10:22]SAM_PROTO_SignData [12:10:22]wFMCommunicate request_size=4 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 0D 01 02 [12:10:22]Write to MH i2c: E2 08 00 1C 0B 80 0D 01 02 00 00 00 00 A0 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:22]Read from MH i2c: E2 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 [12:10:22]MH_I2C_Read... [12:10:22]Read from MH i2c: E2 03 00 1C 0B 00 90 00 9B [12:10:22]RAPDU: 90 00 [12:10:22]wFMCommunicate OK [12:10:22]wFMCommunicate request_size=255 [12:10:22]MH_SAM_APDU [12:10:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 00 00 00 F4 03 04 00 AE 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 14 03 00 35 04 06 00 1B [12:10:22]Write to MH i2c: E2 02 01 1D 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 00 00 00 F4 03 04 00 AE 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 14 03 00 35 04 06 00 1B 00 00 70 [12:10:22]Write i2c OK [12:10:22]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 03 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [12:10:23]RAPDU: 90 00 [12:10:23]wFMCommunicate OK [12:10:23]wFMCommunicate request_size=10 [12:10:23]MH_SAM_APDU [12:10:23]CAPDU: 80 0D 02 02 05 B7 02 FB 1E FB [12:10:23]Write to MH i2c: E2 0D 00 1E 0B 80 0D 02 02 05 00 B7 02 FB 1E FB 00 00 7A [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 03 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [12:10:23]RAPDU: 90 00 [12:10:23]wFMCommunicate OK [12:10:23]wFMCommunicate request_size=4 [12:10:23]MH_SAM_APDU [12:10:23]CAPDU: 80 0D 03 02 [12:10:23]Write to MH i2c: E2 08 00 1F 0B 80 0D 03 02 00 00 00 00 A5 [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 0B 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 0B 00 1F 0B 00 8E 37 15 B6 27 1E 31 12 90 00 BE [12:10:23]RAPDU: 8E 37 15 B6 27 1E 31 12 90 00 [12:10:23]wFMCommunicate OK [12:10:23]SAM_PROTO_SignData done [12:10:23]FM_MakeSignedData done [12:10:23]CreateOFDProtocolMessage [12:10:23]wFMCommunicate request_size=4 [12:10:23]MH_SAM_APDU [12:10:23]CAPDU: 80 11 00 00 [12:10:23]Write to MH i2c: E2 08 00 20 0B 80 11 00 00 00 00 00 00 A5 [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 17 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 17 00 20 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FA [12:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:10:23]wFMCommunicate OK [12:10:23]CreateOFDProtocolMessage done [12:10:23]OFDSenderStorePacket 201920 [12:10:23]StoreOFDPacket docnum=201920 [12:10:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 07 E3 07 01 B1 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 00 00 00 F4 03 04 00 AE 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 14 03 00 35 04 06 00 1B B7 02 FB 1E FB 8E 37 15 B6 27 1E 31 12 [12:10:23]CheckFolder [12:10:23]dirname=/storage/ofd_packets [12:10:23]CheckFolder done [12:10:23]ProducePacketName [12:10:23]name=ofd_packets/00201920 [12:10:23]NVStorageSaveData ofd_packets/00201920 [12:10:23]File name is /storage/ofd_packets/00201920 [12:10:23]Write 301 bytes [12:10:23]NVStorageSaveData done [12:10:23]OFDSenderStorePacket done [12:10:23]KKMCreateOFDPacket done [12:10:23]NVStorageSaveData kkm_last_timestamp [12:10:23]File name is /storage/kkm_last_timestamp [12:10:23]Write 4 bytes [12:10:23]NVStorageSaveData done [12:10:23]ExternCall_PrintAddStr [12:10:23]wPrintStart [12:10:23]Write to MH i2c: 01 00 00 21 0B 2C [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: 01 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: 01 07 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: 01 07 00 21 0B 00 00 00 00 00 FF 0F 41 [12:10:23]RasterBufferAndPrint [12:10:23]line Счет N : (1)449681 [12:10:23]line ИНН: 02508201610067 [12:10:23]line Контрольно-Кассовый Чек [12:10:23]line ПРОДАЖА [12:10:23]line ТРК (МРК, ГНК) : 41 [12:10:23]line Товар: 2710124130 [12:10:23]line Аи-92-К-2 [12:10:23]line 4.490 * 66.90 [12:10:23]line = 300.38 [12:10:23]line НДС 12% НСП 1% [12:10:23]line > о реализуемом товаре [12:10:23]line ОКРУГЛЕНИЕ: -0.38 [12:10:23]line ИТОГО: 300.00 [12:10:23]line Внесено: 300.00 [12:10:23]line СДАЧА: 0.00 [12:10:23]line НСП 1% : 2.66 [12:10:23]line НДС 12% : 31.90 [12:10:23]line Наличными: 300.00 [12:10:23]line Безнал.: 0.00 [12:10:23]line Место: АЗС № 171 "Партнер Нефть" [12:10:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:10:23]line СНО: Общий режим [12:10:23]line Чек 212 27.10.2024 12:10 [12:10:23]line Смена: 544 ФФД: 1.0 [12:10:23]line ЗНМ: 0300000109 [12:10:23]line РНМ: 0000000000091777 [12:10:23]line Версия ККМ: 001 [12:10:23]line ФМ: 0000000000871756 [12:10:23]line ФД: 201920 [12:10:23]line ФПД: 30472842977019 [12:10:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121022&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201920&fm=30472842977019&tin=02508201610067®Number=0000000000091777&sum=30000 [12:10:23]OFD Sender: Processing packet 201920 [packets to send 112, broken 111] [12:10:23]ProducePacketName [12:10:23]name=ofd_packets/00201920 [12:10:23]OFD Sender: To server: pG, [12:10:23]CommunicateWithHost lk.salyk.kg:30040 [12:10:23]ConnectInit lk.salyk.kg [12:10:23]written 0, free lines is 4095 [12:10:23]Connected sock=10 [12:10:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 07 E3 07 01 B1 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 00 00 00 F4 03 04 00 AE 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 14 03 00 35 04 06 00 1B B7 02 FB 1E FB 8E 37 15 B6 27 1E 31 12 [12:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0C E4 47 00 B2 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 14 03 00 F4 03 04 00 68 D9 1D 67 B6 04 01 00 00 D6 6D AB 0D 01 09 C9 F8 [12:10:24]CommunicateWithHost err = 0 [12:10:24]CheckOFDResponse [12:10:24]1017 (14) - 77093643461234 [12:10:24]1041 (16) - 0000000000871756 [12:10:24]1040 (4) - 201920 [12:10:24]1012 (4) - 27.10.2024 06:10 [12:10:24]1206 (1) - 0 [12:10:24]OFD Sender: Remove packet 201920 [12:10:24]ProducePacketName [12:10:24]name=ofd_packets/00201920 [12:10:24]NVStorageDeleteData [12:10:24]Write to MH i2c: 01 00 00 4C 0B 57 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 07 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 07 00 4C 0B 00 00 00 00 00 A3 0C 0D [12:10:24]RasterBufferAndPrint [12:10:24]line [12:10:24]line [12:10:24]line [12:10:24]line [12:10:24]line [12:10:24]written 0, free lines is 3241 [12:10:24]MH_Cut [12:10:24]Write to MH i2c: D1 01 00 53 0B 01 30 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: D1 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: D1 01 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: D1 01 00 53 0B 00 2F [12:10:24]Write to MH i2c: 01 00 00 54 0B 5F [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]OFD Sender: No OFD packet to send [12:10:25]*** Cut start [12:10:25]*** Purtial cut [12:10:25]*** CUTSNS_PIN = 0 [12:10:25]*** Stage 1: CUTSNS_PIN = 1 [12:10:27]Read from MH i2c: 01 [12:10:27]MH_I2C_Read... [12:10:27]*** Stop cut motor [12:10:27]*** Cut end [12:10:27]Read from MH i2c: 01 07 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 54 0B 00 00 00 00 00 FF 0F 74 [12:10:27]process_action close_receipt done [12:10:27]requested_data is exist [12:10:27]produce_requested_data [12:10:27]requested_item fm.sn is exist - process it [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 11 00 00 [12:10:27]Write to MH i2c: E2 08 00 55 0B 80 11 00 00 00 00 00 00 DA [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 17 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 17 00 55 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2F [12:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:10:27]wFMCommunicate OK [12:10:27]requested_item fd.num is exist - process it [12:10:27]SAM_PROTO_GetFieldsCounters [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 00 00 [12:10:27]Write to MH i2c: E2 08 00 56 0B 80 13 00 00 00 00 00 00 DD [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 62 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 62 00 56 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [12:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:27]wFMCommunicate OK [12:10:27]SAM_PROTO_GetFieldsCounters done [12:10:27]requested_item shift.num is exist - process it [12:10:27]requested_item shift.opened is exist - process it [12:10:27]req_shift_opened [12:10:27]FM_GetShiftState [12:10:27]SAM_PROTO_GetShiftState [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 01 00 [12:10:27]Write to MH i2c: E2 08 00 57 0B 80 13 01 00 00 00 00 00 DF [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 0E 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 0E 00 57 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E1 [12:10:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:10:27]wFMCommunicate OK [12:10:27]SAM_PROTO_GetShiftState done [12:10:27]FM_GetShiftState done [12:10:27]req_shift_opened done [12:10:27]requested_item shift.open_date is exist - process it [12:10:27]req_shift_open_date [12:10:27]req_shift_open_date done [12:10:27]produce_requested_data done [12:10:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201920,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:10:27]process_action_free close_receipt [12:10:27]json_value_free [12:10:27]json_value_free done [12:10:27]process_json_proto returns [12:10:27]Send response to host [12:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201920,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:10:27]free response buf [12:10:27]execute_script done [12:10:27]execute_script returns [12:10:27]free content buf [12:10:27]Sock 9.Close socket [12:10:27]Sock 9.Thread stoped [12:10:29]accept exits with 8 [12:10:29]New connection [12:10:29]New thread 3066641764 created [12:10:29]Thread 3066498404 joined [12:10:29]Waiting for new connection... [12:10:29] Sock 8.Parse request [12:10:29]Sock 8.Check first char [12:10:29]Sock 8.First char is OK [12:10:29]request: POST /json_proto HTTP/1.0 [12:10:29]Method: POST [12:10:29]URL: /json_proto [12:10:29]Method is POST - this is cgi request [12:10:29]url: /json_proto [12:10:29]query_string will be loaded in cgi processing [12:10:29]execute_cgi json_proto POST (null) [12:10:29]execute_cgi path=json_proto method=POST [12:10:29]POST find Content-Length [12:10:29]Host: 172.17.63.195:8080 [12:10:29]Content-Length: 677 [12:10:29]Content-Type: application/json [12:10:29] [12:10:29]POST finish read [12:10:29]Found Content-Length = 677 [12:10:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:29]execute_script... [12:10: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)449682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:29]POST & json_proto [12:10:29]process_json_proto [12:10:29]json parsed OK: [12:10:29]protocol is kg_v1.0 [12:10:29]action value=close_receipt [12:10:29]process_action close_receipt [12:10:29]cmd_close_receipt [12:10:29]MH_GetDate [12:10:29]Write to MH i2c: F0 00 00 58 0B 52 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: F0 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: F0 09 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: F0 09 00 58 0B 00 B5 2D 1E 67 47 1B 1E 67 A9 [12:10:29]GetLastDocTimeStamp 1730031022 [12:10:29]current date 1730031029 [12:10:29]FM_GetShiftState [12:10:29]SAM_PROTO_GetShiftState [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 13 01 00 [12:10:29]Write to MH i2c: E2 08 00 59 0B 80 13 01 00 00 00 00 00 E1 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0E 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0E 00 59 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E3 [12:10:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:10:29]wFMCommunicate OK [12:10:29]SAM_PROTO_GetShiftState done [12:10:29]FM_GetShiftState done [12:10:29]opened in 1729987312 [12:10:29]opened+sec_in_day 1730073712 [12:10:29]quantity*price = 50041 [12:10:29]sum+1 = 50042 [12:10:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 213 27.10.2024 12:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201921 ФПД: 217505148209879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121030&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201921&fm=217505148209879&tin=02508201610067®Number=0000000000091777&sum=50000 [12:10:30]StoreToDocumentArchive [12:10:30]shift 544 fd 201921 [12:10:30]save to /storage/0544/doc_00201921 [12:10:30]save last doc name /storage/0544/doc_00201921 to /storage/kkm_last_doc_name [12:10:30]save OK [12:10:30]Clear old archive folders... [12:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:30]tlvbuf is 01175A10 [12:10:30]SAM_PROTO_ClearQueue [12:10:30]wFMCommunicate request_size=4 [12:10:30]MH_SAM_APDU [12:10:30]CAPDU: 80 09 00 00 [12:10:30]Write to MH i2c: E2 08 00 66 0B 80 09 00 00 00 00 00 00 E3 [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:30]Read from MH i2c: E2 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 03 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 03 00 66 0B 00 90 00 E5 [12:10:30]RAPDU: 90 00 [12:10:30]wFMCommunicate OK [12:10:30]SAM_PROTO_ClearQueue done [12:10:30]KKMCreateOFDPacket [12:10:30]OFDProtocolAddRootSTLVToBuf [12:10:30]FM_MakeSignedData [12:10:30]FM_MakeSignedData [12:10:30]SAM_PROTO_SignData [12:10:30]wFMCommunicate request_size=4 [12:10:30]MH_SAM_APDU [12:10:30]CAPDU: 80 0D 01 02 [12:10:30]Write to MH i2c: E2 08 00 67 0B 80 0D 01 02 00 00 00 00 EB [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:30]Read from MH i2c: E2 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 03 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: E2 03 00 67 0B 00 90 00 E6 [12:10:30]RAPDU: 90 00 [12:10:30]wFMCommunicate OK [12:10:30]wFMCommunicate request_size=255 [12:10:30]MH_SAM_APDU [12:10:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 00 00 00 F4 03 04 00 B6 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 14 03 00 35 04 06 00 C5 [12:10:30]Write to MH i2c: E2 02 01 68 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 00 00 00 F4 03 04 00 B6 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 14 03 00 35 04 06 00 C5 00 00 7B [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:31]Read from MH i2c: E2 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 03 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [12:10:31]RAPDU: 90 00 [12:10:31]wFMCommunicate OK [12:10:31]wFMCommunicate request_size=10 [12:10:31]MH_SAM_APDU [12:10:31]CAPDU: 80 0D 02 02 05 D1 DD 18 8A D7 [12:10:31]Write to MH i2c: E2 0D 00 69 0B 80 0D 02 02 05 00 D1 DD 18 8A D7 00 00 1F [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:31]Read from MH i2c: E2 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 03 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [12:10:31]RAPDU: 90 00 [12:10:31]wFMCommunicate OK [12:10:31]wFMCommunicate request_size=4 [12:10:31]MH_SAM_APDU [12:10:31]CAPDU: 80 0D 03 02 [12:10:31]Write to MH i2c: E2 08 00 6A 0B 80 0D 03 02 00 00 00 00 F0 [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:31]Read from MH i2c: E2 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 0B 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 0B 00 6A 0B 00 D1 AA 73 94 92 55 15 54 90 00 C3 [12:10:31]RAPDU: D1 AA 73 94 92 55 15 54 90 00 [12:10:31]wFMCommunicate OK [12:10:31]SAM_PROTO_SignData done [12:10:31]FM_MakeSignedData done [12:10:31]CreateOFDProtocolMessage [12:10:31]wFMCommunicate request_size=4 [12:10:31]MH_SAM_APDU [12:10:31]CAPDU: 80 11 00 00 [12:10:31]Write to MH i2c: E2 08 00 6B 0B 80 11 00 00 00 00 00 00 F0 [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:31]Read from MH i2c: E2 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 17 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 17 00 6B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 45 [12:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:10:31]wFMCommunicate OK [12:10:31]CreateOFDProtocolMessage done [12:10:31]OFDSenderStorePacket 201921 [12:10:31]StoreOFDPacket docnum=201921 [12:10:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 94 3B 07 01 6A C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 00 00 00 F4 03 04 00 B6 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 14 03 00 35 04 06 00 C5 D1 DD 18 8A D7 D1 AA 73 94 92 55 15 54 [12:10:31]CheckFolder [12:10:31]dirname=/storage/ofd_packets [12:10:31]CheckFolder done [12:10:31]ProducePacketName [12:10:31]name=ofd_packets/00201921 [12:10:31]NVStorageSaveData ofd_packets/00201921 [12:10:31]File name is /storage/ofd_packets/00201921 [12:10:31]Write 301 bytes [12:10:31]NVStorageSaveData done [12:10:31]OFDSenderStorePacket done [12:10:31]KKMCreateOFDPacket done [12:10:31]NVStorageSaveData kkm_last_timestamp [12:10:31]File name is /storage/kkm_last_timestamp [12:10:31]Write 4 bytes [12:10:31]NVStorageSaveData done [12:10:31]ExternCall_PrintAddStr [12:10:31]wPrintStart [12:10:31]Write to MH i2c: 01 00 00 6C 0B 77 [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: 01 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: 01 07 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 FF 0F 8C [12:10:31]RasterBufferAndPrint [12:10:31]line Счет N : (1)449682 [12:10:31]line ИНН: 02508201610067 [12:10:31]line Контрольно-Кассовый Чек [12:10:31]line ПРОДАЖА [12:10:31]line ТРК (МРК, ГНК) : 62 [12:10:31]line Товар: 2710124130 [12:10:31]line Аи-92-К-2 [12:10:31]line 7.480 * 66.90 [12:10:31]line = 500.41 [12:10:31]line НДС 12% НСП 1% [12:10:31]line > о реализуемом товаре [12:10:31]line ОКРУГЛЕНИЕ: -0.41 [12:10:31]line ИТОГО: 500.00 [12:10:31]line Внесено: 500.00 [12:10:31]line СДАЧА: 0.00 [12:10:31]line НСП 1% : 4.43 [12:10:31]line НДС 12% : 53.14 [12:10:31]line Наличными: 500.00 [12:10:31]line Безнал.: 0.00 [12:10:31]line Место: АЗС № 171 "Партнер Нефть" [12:10:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:10:31]line СНО: Общий режим [12:10:31]line Чек 213 27.10.2024 12:10 [12:10:31]line Смена: 544 ФФД: 1.0 [12:10:31]line ЗНМ: 0300000109 [12:10:31]line РНМ: 0000000000091777 [12:10:31]line Версия ККМ: 001 [12:10:31]line ФМ: 0000000000871756 [12:10:31]line ФД: 201921 [12:10:31]line ФПД: 217505148209879 [12:10:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121030&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201921&fm=217505148209879&tin=02508201610067®Number=0000000000091777&sum=50000 [12:10:31]written 0, free lines is 4095 [12:10:31]OFD Sender: Processing packet 201921 [packets to send 112, broken 111] [12:10:31]ProducePacketName [12:10:31]name=ofd_packets/00201921 [12:10:31]OFD Sender: To server: pG, [12:10:31]CommunicateWithHost lk.salyk.kg:30040 [12:10:31]ConnectInit lk.salyk.kg [12:10:31]Connected sock=10 [12:10:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 94 3B 07 01 6A C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 00 00 00 F4 03 04 00 B6 2D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 14 03 00 35 04 06 00 C5 D1 DD 18 8A D7 D1 AA 73 94 92 55 15 54 [12:10:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EF 61 47 00 DB F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 14 03 00 F4 03 04 00 6F D9 1D 67 B6 04 01 00 00 F7 4C FC 58 93 09 97 5A [12:10:31]CommunicateWithHost err = 0 [12:10:31]CheckOFDResponse [12:10:31]1017 (14) - 77093643461234 [12:10:31]1041 (16) - 0000000000871756 [12:10:31]1040 (4) - 201921 [12:10:31]1012 (4) - 27.10.2024 06:10 [12:10:31]1206 (1) - 0 [12:10:31]OFD Sender: Remove packet 201921 [12:10:31]ProducePacketName [12:10:31]name=ofd_packets/00201921 [12:10:31]NVStorageDeleteData [12:10:31]Write to MH i2c: 01 00 00 97 0B A2 [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: 01 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: 01 07 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: 01 07 00 97 0B 00 00 00 00 00 8B 0C 40 [12:10:31]RasterBufferAndPrint [12:10:31]line [12:10:31]line [12:10:31]line [12:10:31]line [12:10:31]line [12:10:31]written 0, free lines is 3217 [12:10:31]MH_Cut [12:10:31]Write to MH i2c: D1 01 00 9E 0B 01 7B [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: D1 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: D1 01 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: D1 01 00 9E 0B 00 7A [12:10:31]Write to MH i2c: 01 00 00 9F 0B AA [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:32]OFD Sender: No OFD packet to send [12:10:32]*** Cut start [12:10:32]*** Purtial cut [12:10:32]*** Stage 1: CUTSNS_PIN = 1 [12:10:32]Read from MH i2c: 01 [12:10:32]MH_I2C_Read... [12:10:32]*** Stop cut motor [12:10:32]*** Cut end [12:10:32]Read from MH i2c: 01 07 00 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: 01 07 00 9F 0B 00 00 00 00 00 FF 0F BF [12:10:32]process_action close_receipt done [12:10:32]requested_data is exist [12:10:32]produce_requested_data [12:10:32]requested_item fm.sn is exist - process it [12:10:32]wFMCommunicate request_size=4 [12:10:32]MH_SAM_APDU [12:10:32]CAPDU: 80 11 00 00 [12:10:32]Write to MH i2c: E2 08 00 A0 0B 80 11 00 00 00 00 00 00 25 [12:10:32]Write i2c OK [12:10:32]MH_I2C_Read... [12:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:32]Read from MH i2c: E2 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: E2 17 00 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: E2 17 00 A0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7A [12:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:10:32]wFMCommunicate OK [12:10:32]requested_item fd.num is exist - process it [12:10:32]SAM_PROTO_GetFieldsCounters [12:10:32]wFMCommunicate request_size=4 [12:10:32]MH_SAM_APDU [12:10:32]CAPDU: 80 13 00 00 [12:10:32]Write to MH i2c: E2 08 00 A1 0B 80 13 00 00 00 00 00 00 28 [12:10:32]Write i2c OK [12:10:32]MH_I2C_Read... [12:10:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:33]Read from MH i2c: E2 [12:10:33]MH_I2C_Read... [12:10:33]Read from MH i2c: E2 62 00 [12:10:33]MH_I2C_Read... [12:10:33]Read from MH i2c: E2 62 00 A1 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [12:10:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:33]wFMCommunicate OK [12:10:33]SAM_PROTO_GetFieldsCounters done [12:10:33]requested_item shift.num is exist - process it [12:10:33]requested_item shift.opened is exist - process it [12:10:33]req_shift_opened [12:10:33]FM_GetShiftState [12:10:33]SAM_PROTO_GetShiftState [12:10:33]wFMCommunicate request_size=4 [12:10:33]MH_SAM_APDU [12:10:33]CAPDU: 80 13 01 00 [12:10:33]Write to MH i2c: E2 08 00 A2 0B 80 13 01 00 00 00 00 00 2A [12:10:33]Write i2c OK [12:10:33]MH_I2C_Read... [12:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:33]Read from MH i2c: E2 [12:10:33]MH_I2C_Read... [12:10:33]Read from MH i2c: E2 0E 00 [12:10:33]MH_I2C_Read... [12:10:33]Read from MH i2c: E2 0E 00 A2 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2C [12:10:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:10:33]wFMCommunicate OK [12:10:33]SAM_PROTO_GetShiftState done [12:10:33]FM_GetShiftState done [12:10:33]req_shift_opened done [12:10:33]requested_item shift.open_date is exist - process it [12:10:33]req_shift_open_date [12:10:33]req_shift_open_date done [12:10:33]produce_requested_data done [12:10:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201921,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:10:33]process_action_free close_receipt [12:10:33]json_value_free [12:10:33]json_value_free done [12:10:33]process_json_proto returns [12:10:33]Send response to host [12:10:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201921,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:10:33]free response buf [12:10:33]execute_script done [12:10:33]execute_script returns [12:10:33]free content buf [12:10:33]Sock 8.Close socket [12:10:33]Sock 8.Thread stoped [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:43]accept exits with 9 [12:11:43]New connection [12:11:43]New thread 3066498404 created [12:11:43]Thread 3066641764 joined [12:11:43]Waiting for new connection... [12:11:43] Sock 9.Parse request [12:11:43]Sock 9.Check first char [12:11:43]Sock 9.First char is OK [12:11:43]request: POST /json_proto HTTP/1.0 [12:11:43]Method: POST [12:11:43]URL: /json_proto [12:11:43]Method is POST - this is cgi request [12:11:43]url: /json_proto [12:11:43]query_string will be loaded in cgi processing [12:11:43]execute_cgi json_proto POST (null) [12:11:43]execute_cgi path=json_proto method=POST [12:11:43]POST find Content-Length [12:11:43]Host: 172.17.63.195:8080 [12:11:43]Content-Length: 677 [12:11:43]Content-Type: application/json [12:11:43] [12:11:43]POST finish read [12:11:43]Found Content-Length = 677 [12:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:43]execute_script... [12:11:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:43]POST & json_proto [12:11:43]process_json_proto [12:11:43]json parsed OK: [12:11:43]protocol is kg_v1.0 [12:11:43]action value=close_receipt [12:11:43]process_action close_receipt [12:11:43]cmd_close_receipt [12:11:43]MH_GetDate [12:11:43]Write to MH i2c: F0 00 00 A3 0B 9D [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: F0 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: F0 09 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: F0 09 00 A3 0B 00 00 2E 1E 67 47 1B 1E 67 40 [12:11:43]GetLastDocTimeStamp 1730031030 [12:11:43]current date 1730031104 [12:11:43]FM_GetShiftState [12:11:43]SAM_PROTO_GetShiftState [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 13 01 00 [12:11:43]Write to MH i2c: E2 08 00 A4 0B 80 13 01 00 00 00 00 00 2C [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 A4 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2E [12:11:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:11:44]wFMCommunicate OK [12:11:44]SAM_PROTO_GetShiftState done [12:11:44]FM_GetShiftState done [12:11:44]opened in 1729987312 [12:11:44]opened+sec_in_day 1730073712 [12:11:44]quantity*price = 40006 [12:11:44]sum+1 = 40007 [12:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 214 27.10.2024 12:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201922 ФПД: 75541621954101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201922&fm=75541621954101&tin=02508201610067®Number=0000000000091777&sum=40000 [12:11:45]StoreToDocumentArchive [12:11:45]shift 544 fd 201922 [12:11:45]save to /storage/0544/doc_00201922 [12:11:45]save last doc name /storage/0544/doc_00201922 to /storage/kkm_last_doc_name [12:11:45]save OK [12:11:45]Clear old archive folders... [12:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:45]tlvbuf is 011B14B0 [12:11:45]SAM_PROTO_ClearQueue [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 09 00 00 [12:11:45]Write to MH i2c: E2 08 00 B1 0B 80 09 00 00 00 00 00 00 2E [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 B1 0B 00 90 00 30 [12:11:45]RAPDU: 90 00 [12:11:45]wFMCommunicate OK [12:11:45]SAM_PROTO_ClearQueue done [12:11:45]KKMCreateOFDPacket [12:11:45]OFDProtocolAddRootSTLVToBuf [12:11:45]FM_MakeSignedData [12:11:45]FM_MakeSignedData [12:11:45]SAM_PROTO_SignData [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 0D 01 02 [12:11:45]Write to MH i2c: E2 08 00 B2 0B 80 0D 01 02 00 00 00 00 36 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 B2 0B 00 90 00 31 [12:11:45]RAPDU: 90 00 [12:11:45]wFMCommunicate OK [12:11:45]wFMCommunicate request_size=255 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 00 2E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 14 03 00 35 04 06 00 44 [12:11:45]Write to MH i2c: E2 02 01 B3 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 00 2E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 14 03 00 35 04 06 00 44 00 00 61 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 B3 0B 00 90 00 32 [12:11:45]RAPDU: 90 00 [12:11:45]wFMCommunicate OK [12:11:45]wFMCommunicate request_size=10 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 0D 02 02 05 B4 67 8A D6 35 [12:11:45]Write to MH i2c: E2 0D 00 B4 0B 80 0D 02 02 05 00 B4 67 8A D6 35 00 00 F3 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 B4 0B 00 90 00 33 [12:11:45]RAPDU: 90 00 [12:11:45]wFMCommunicate OK [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 0D 03 02 [12:11:45]Write to MH i2c: E2 08 00 B5 0B 80 0D 03 02 00 00 00 00 3B [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 0B 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 0B 00 B5 0B 00 AD C5 1E 44 C5 6A A5 B0 90 00 94 [12:11:45]RAPDU: AD C5 1E 44 C5 6A A5 B0 90 00 [12:11:45]wFMCommunicate OK [12:11:45]SAM_PROTO_SignData done [12:11:45]FM_MakeSignedData done [12:11:45]CreateOFDProtocolMessage [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 11 00 00 [12:11:45]Write to MH i2c: E2 08 00 B6 0B 80 11 00 00 00 00 00 00 3B [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 17 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 17 00 B6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [12:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:11:45]wFMCommunicate OK [12:11:45]CreateOFDProtocolMessage done [12:11:45]OFDSenderStorePacket 201922 [12:11:45]StoreOFDPacket docnum=201922 [12:11:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DA 0B 07 01 7A 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 00 2E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 14 03 00 35 04 06 00 44 B4 67 8A D6 35 AD C5 1E 44 C5 6A A5 B0 [12:11:45]CheckFolder [12:11:45]dirname=/storage/ofd_packets [12:11:45]CheckFolder done [12:11:45]ProducePacketName [12:11:45]name=ofd_packets/00201922 [12:11:45]NVStorageSaveData ofd_packets/00201922 [12:11:45]File name is /storage/ofd_packets/00201922 [12:11:45]Write 301 bytes [12:11:45]NVStorageSaveData done [12:11:45]OFDSenderStorePacket done [12:11:45]KKMCreateOFDPacket done [12:11:45]NVStorageSaveData kkm_last_timestamp [12:11:45]File name is /storage/kkm_last_timestamp [12:11:45]Write 4 bytes [12:11:45]NVStorageSaveData done [12:11:45]ExternCall_PrintAddStr [12:11:45]wPrintStart [12:11:45]Write to MH i2c: 01 00 00 B7 0B C2 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: 01 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: 01 07 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: 01 07 00 B7 0B 00 00 00 00 00 FF 0F D7 [12:11:45]RasterBufferAndPrint [12:11:45]line Счет N : (1)449683 [12:11:45]line ИНН: 02508201610067 [12:11:45]line Контрольно-Кассовый Чек [12:11:45]line ПРОДАЖА [12:11:45]line ТРК (МРК, ГНК) : 41 [12:11:45]line Товар: 2710124130 [12:11:45]line Аи-92-К-2 [12:11:45]line 5.980 * 66.90 [12:11:45]line = 400.06 [12:11:45]line НДС 12% НСП 1% [12:11:45]line > о реализуемом товаре [12:11:45]line ОКРУГЛЕНИЕ: -0.06 [12:11:45]line ИТОГО: 400.00 [12:11:45]line Внесено: 400.00 [12:11:45]line СДАЧА: 0.00 [12:11:45]line НСП 1% : 3.54 [12:11:45]line НДС 12% : 42.48 [12:11:45]line Наличными: 400.00 [12:11:45]line Безнал.: 0.00 [12:11:45]line Место: АЗС № 171 "Партнер Нефть" [12:11:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:11:45]line СНО: Общий режим [12:11:45]line Чек 214 27.10.2024 12:11 [12:11:45]line Смена: 544 ФФД: 1.0 [12:11:45]line ЗНМ: 0300000109 [12:11:45]line РНМ: 0000000000091777 [12:11:45]line Версия ККМ: 001 [12:11:45]line ФМ: 0000000000871756 [12:11:45]line ФД: 201922 [12:11:45]line ФПД: 75541621954101 [12:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201922&fm=75541621954101&tin=02508201610067®Number=0000000000091777&sum=40000 [12:11:46]OFD Sender: Processing packet 201922 [packets to send 112, broken 111] [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00201922 [12:11:46]OFD Sender: To server: pG, [12:11:46]CommunicateWithHost lk.salyk.kg:30040 [12:11:46]ConnectInit lk.salyk.kg [12:11:46]written 0, free lines is 4095 [12:11:46]Connected sock=10 [12:11:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DA 0B 07 01 7A 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 00 2E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 14 03 00 35 04 06 00 44 B4 67 8A D6 35 AD C5 1E 44 C5 6A A5 B0 [12:11:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 18 33 47 00 C6 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 14 03 00 F4 03 04 00 BA D9 1D 67 B6 04 01 00 00 C0 65 2E 09 84 3C 71 D6 [12:11:46]CommunicateWithHost err = 0 [12:11:46]CheckOFDResponse [12:11:46]1017 (14) - 77093643461234 [12:11:46]1041 (16) - 0000000000871756 [12:11:46]1040 (4) - 201922 [12:11:46]1012 (4) - 27.10.2024 06:12 [12:11:46]1206 (1) - 0 [12:11:46]OFD Sender: Remove packet 201922 [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00201922 [12:11:46]NVStorageDeleteData [12:11:46]Write to MH i2c: 01 00 00 E2 0B ED [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 E2 0B 00 00 00 00 00 8F 0C 8F [12:11:46]RasterBufferAndPrint [12:11:46]line [12:11:46]line [12:11:46]line [12:11:46]line [12:11:46]line [12:11:46]written 0, free lines is 3219 [12:11:46]MH_Cut [12:11:46]Write to MH i2c: D1 01 00 E9 0B 01 C6 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: D1 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: D1 01 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: D1 01 00 E9 0B 00 C5 [12:11:46]Write to MH i2c: 01 00 00 EA 0B F5 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]OFD Sender: No OFD packet to send [12:11:47]*** Cut start [12:11:47]*** Purtial cut [12:11:47]*** CUTSNS_PIN = 0 [12:11:47]*** Stage 1: CUTSNS_PIN = 1 [12:11:49]Read from MH i2c: 01 [12:11:49]MH_I2C_Read... [12:11:49]*** Stop cut motor [12:11:49]*** Cut end [12:11:49]Read from MH i2c: 01 07 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 07 00 EA 0B 00 00 00 00 00 FF 0F 0A [12:11:49]process_action close_receipt done [12:11:49]requested_data is exist [12:11:49]produce_requested_data [12:11:49]requested_item fm.sn is exist - process it [12:11:49]wFMCommunicate request_size=4 [12:11:49]MH_SAM_APDU [12:11:49]CAPDU: 80 11 00 00 [12:11:49]Write to MH i2c: E2 08 00 EB 0B 80 11 00 00 00 00 00 00 70 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:49]Read from MH i2c: E2 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 17 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 17 00 EB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C5 [12:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:11:49]wFMCommunicate OK [12:11:49]requested_item fd.num is exist - process it [12:11:49]SAM_PROTO_GetFieldsCounters [12:11:49]wFMCommunicate request_size=4 [12:11:49]MH_SAM_APDU [12:11:49]CAPDU: 80 13 00 00 [12:11:49]Write to MH i2c: E2 08 00 EC 0B 80 13 00 00 00 00 00 00 73 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:49]Read from MH i2c: E2 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 62 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 62 00 EC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [12:11:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:49]wFMCommunicate OK [12:11:49]SAM_PROTO_GetFieldsCounters done [12:11:49]requested_item shift.num is exist - process it [12:11:49]requested_item shift.opened is exist - process it [12:11:49]req_shift_opened [12:11:49]FM_GetShiftState [12:11:49]SAM_PROTO_GetShiftState [12:11:49]wFMCommunicate request_size=4 [12:11:49]MH_SAM_APDU [12:11:49]CAPDU: 80 13 01 00 [12:11:49]Write to MH i2c: E2 08 00 ED 0B 80 13 01 00 00 00 00 00 75 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:49]Read from MH i2c: E2 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 0E 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 0E 00 ED 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 77 [12:11:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:11:49]wFMCommunicate OK [12:11:49]SAM_PROTO_GetShiftState done [12:11:49]FM_GetShiftState done [12:11:49]req_shift_opened done [12:11:49]requested_item shift.open_date is exist - process it [12:11:49]req_shift_open_date [12:11:49]req_shift_open_date done [12:11:49]produce_requested_data done [12:11:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201922,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:11:49]process_action_free close_receipt [12:11:49]json_value_free [12:11:49]json_value_free done [12:11:49]process_json_proto returns [12:11:49]Send response to host [12:11:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201922,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:11:49]free response buf [12:11:49]execute_script done [12:11:49]execute_script returns [12:11:49]free content buf [12:11:49]Sock 9.Close socket [12:11:49]Sock 9.Thread stoped [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:08]accept exits with 8 [12:20:08]New connection [12:20:08]New thread 3066641764 created [12:20:08]Thread 3066498404 joined [12:20:08]Waiting for new connection... [12:20:08] Sock 8.Parse request [12:20:08]Sock 8.Check first char [12:20:08]Sock 8.First char is OK [12:20:08]request: POST /json_proto HTTP/1.0 [12:20:08]Method: POST [12:20:08]URL: /json_proto [12:20:08]Method is POST - this is cgi request [12:20:08]url: /json_proto [12:20:08]query_string will be loaded in cgi processing [12:20:08]execute_cgi json_proto POST (null) [12:20:08]execute_cgi path=json_proto method=POST [12:20:08]POST find Content-Length [12:20:08]Host: 172.17.63.195:8080 [12:20:08]Content-Length: 674 [12:20:08]Content-Type: application/json [12:20:08] [12:20:08]POST finish read [12:20:08]Found Content-Length = 674 [12:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:08]execute_script... [12:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:08]POST & json_proto [12:20:08]process_json_proto [12:20:08]json parsed OK: [12:20:08]protocol is kg_v1.0 [12:20:08]action value=close_receipt [12:20:08]process_action close_receipt [12:20:08]cmd_close_receipt [12:20:08]MH_GetDate [12:20:08]Write to MH i2c: F0 00 00 EE 0B E8 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: F0 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: F0 09 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: F0 09 00 EE 0B 00 F8 2F 1E 67 47 1B 1E 67 84 [12:20:08]GetLastDocTimeStamp 1730031104 [12:20:08]current date 1730031608 [12:20:08]FM_GetShiftState [12:20:08]SAM_PROTO_GetShiftState [12:20:08]wFMCommunicate request_size=4 [12:20:08]MH_SAM_APDU [12:20:08]CAPDU: 80 13 01 00 [12:20:08]Write to MH i2c: E2 08 00 EF 0B 80 13 01 00 00 00 00 00 77 [12:20:08]Write i2c OK [12:20:08]MH_I2C_Read... [12:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:08]Read from MH i2c: E2 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0E 00 [12:20:08]MH_I2C_Read... [12:20:08]Read from MH i2c: E2 0E 00 EF 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 79 [12:20:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:20:08]wFMCommunicate OK [12:20:08]SAM_PROTO_GetShiftState done [12:20:08]FM_GetShiftState done [12:20:08]opened in 1729987312 [12:20:08]opened+sec_in_day 1730073712 [12:20:08]quantity*price = 40005 [12:20:08]sum+1 = 40006 [12:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 215 27.10.2024 12:20 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201923 ФПД: 102317803980290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122008&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201923&fm=102317803980290&tin=02508201610067®Number=0000000000091777&sum=40000 [12:20:09]StoreToDocumentArchive [12:20:09]shift 544 fd 201923 [12:20:09]save to /storage/0544/doc_00201923 [12:20:09]save last doc name /storage/0544/doc_00201923 to /storage/kkm_last_doc_name [12:20:09]save OK [12:20:09]Clear old archive folders... [12:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:09]tlvbuf is 011939F0 [12:20:09]SAM_PROTO_ClearQueue [12:20:09]wFMCommunicate request_size=4 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 09 00 00 [12:20:09]Write to MH i2c: E2 08 00 FC 0B 80 09 00 00 00 00 00 00 79 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 FC 0B 00 90 00 7B [12:20:09]RAPDU: 90 00 [12:20:09]wFMCommunicate OK [12:20:09]SAM_PROTO_ClearQueue done [12:20:09]KKMCreateOFDPacket [12:20:09]OFDProtocolAddRootSTLVToBuf [12:20:09]FM_MakeSignedData [12:20:09]FM_MakeSignedData [12:20:09]SAM_PROTO_SignData [12:20:09]wFMCommunicate request_size=4 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 0D 01 02 [12:20:09]Write to MH i2c: E2 08 00 FD 0B 80 0D 01 02 00 00 00 00 81 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 FD 0B 00 90 00 7C [12:20:09]RAPDU: 90 00 [12:20:09]wFMCommunicate OK [12:20:09]wFMCommunicate request_size=255 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 F8 2F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 14 03 00 35 04 06 00 5D 0E B8 5C [12:20:09]Write to MH i2c: E2 02 01 FE 0B 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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 F8 2F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 14 03 00 35 04 06 00 5D 0E B8 5C 00 00 FC [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:09]Read from MH i2c: E2 03 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [12:20:09]RAPDU: 90 00 [12:20:09]wFMCommunicate OK [12:20:09]wFMCommunicate request_size=7 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 0D 02 02 02 46 02 [12:20:09]Write to MH i2c: E2 0A 00 FF 0B 80 0D 02 02 02 00 46 02 00 00 D0 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [12:20:09]RAPDU: 90 00 [12:20:09]wFMCommunicate OK [12:20:09]wFMCommunicate request_size=4 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 0D 03 02 [12:20:09]Write to MH i2c: E2 08 00 00 0C 80 0D 03 02 00 00 00 00 87 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 0B 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 0B 00 00 0C 00 1B 0B EC 1E BA E3 50 BF 90 00 64 [12:20:09]RAPDU: 1B 0B EC 1E BA E3 50 BF 90 00 [12:20:09]wFMCommunicate OK [12:20:09]SAM_PROTO_SignData done [12:20:09]FM_MakeSignedData done [12:20:09]CreateOFDProtocolMessage [12:20:09]wFMCommunicate request_size=4 [12:20:09]MH_SAM_APDU [12:20:09]CAPDU: 80 11 00 00 [12:20:09]Write to MH i2c: E2 08 00 01 0C 80 11 00 00 00 00 00 00 87 [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:09]Read from MH i2c: E2 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 17 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: E2 17 00 01 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DC [12:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:20:09]wFMCommunicate OK [12:20:09]CreateOFDProtocolMessage done [12:20:09]OFDSenderStorePacket 201923 [12:20:09]StoreOFDPacket docnum=201923 [12:20:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8D B2 04 01 B6 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 F8 2F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 14 03 00 35 04 06 00 5D 0E B8 5C 46 02 1B 0B EC 1E BA E3 50 BF [12:20:09]CheckFolder [12:20:09]dirname=/storage/ofd_packets [12:20:09]CheckFolder done [12:20:09]ProducePacketName [12:20:09]name=ofd_packets/00201923 [12:20:09]NVStorageSaveData ofd_packets/00201923 [12:20:09]File name is /storage/ofd_packets/00201923 [12:20:09]Write 298 bytes [12:20:09]NVStorageSaveData done [12:20:09]OFDSenderStorePacket done [12:20:09]KKMCreateOFDPacket done [12:20:09]NVStorageSaveData kkm_last_timestamp [12:20:09]File name is /storage/kkm_last_timestamp [12:20:09]Write 4 bytes [12:20:09]NVStorageSaveData done [12:20:09]ExternCall_PrintAddStr [12:20:09]wPrintStart [12:20:09]Write to MH i2c: 01 00 00 02 0C 0E [12:20:09]Write i2c OK [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 07 00 [12:20:09]MH_I2C_Read... [12:20:09]Read from MH i2c: 01 07 00 02 0C 00 00 00 00 00 FF 0F 23 [12:20:09]RasterBufferAndPrint [12:20:09]line Счет N : (1)449684 [12:20:09]line ИНН: 02508201610067 [12:20:09]line Контрольно-Кассовый Чек [12:20:09]line ПРОДАЖА [12:20:09]line ТРК (МРК, ГНК) : 21 [12:20:09]line Товар: 2710194210 [12:20:09]line ДТ-К-2 [12:20:09]line 5.250 * 76.20 [12:20:09]line = 400.05 [12:20:09]line НДС 12% НСП 1% [12:20:09]line > о реализуемом товаре [12:20:09]line ОКРУГЛЕНИЕ: -0.05 [12:20:09]line ИТОГО: 400.00 [12:20:09]line Внесено: 400.00 [12:20:09]line СДАЧА: 0.00 [12:20:09]line НСП 1% : 3.54 [12:20:09]line НДС 12% : 42.48 [12:20:09]line Наличными: 400.00 [12:20:09]line Безнал.: 0.00 [12:20:09]line Место: АЗС № 171 "Партнер Нефть" [12:20:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:20:09]line СНО: Общий режим [12:20:09]line Чек 215 27.10.2024 12:20 [12:20:09]line Смена: 544 ФФД: 1.0 [12:20:09]line ЗНМ: 0300000109 [12:20:09]line РНМ: 0000000000091777 [12:20:09]line Версия ККМ: 001 [12:20:09]line ФМ: 0000000000871756 [12:20:09]line ФД: 201923 [12:20:09]line ФПД: 102317803980290 [12:20:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122008&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201923&fm=102317803980290&tin=02508201610067®Number=0000000000091777&sum=40000 [12:20:10]written 0, free lines is 4095 [12:20:10]OFD Sender: Processing packet 201923 [packets to send 112, broken 111] [12:20:10]ProducePacketName [12:20:10]name=ofd_packets/00201923 [12:20:10]OFD Sender: To server: pG, [12:20:10]CommunicateWithHost lk.salyk.kg:30040 [12:20:10]ConnectInit lk.salyk.kg [12:20:10]Connected sock=10 [12:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8D B2 04 01 B6 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 F8 2F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 14 03 00 35 04 06 00 5D 0E B8 5C 46 02 1B 0B EC 1E BA E3 50 BF [12:20:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 04 54 47 00 E0 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 14 03 00 F4 03 04 00 B2 DB 1D 67 B6 04 01 00 00 5C 44 DB 24 F6 38 3F 2A [12:20:10]CommunicateWithHost err = 0 [12:20:10]CheckOFDResponse [12:20:10]1017 (14) - 77093643461234 [12:20:10]1041 (16) - 0000000000871756 [12:20:10]1040 (4) - 201923 [12:20:10]1012 (4) - 27.10.2024 06:20 [12:20:10]1206 (1) - 0 [12:20:10]OFD Sender: Remove packet 201923 [12:20:10]ProducePacketName [12:20:10]name=ofd_packets/00201923 [12:20:10]NVStorageDeleteData [12:20:10]Write to MH i2c: 01 00 00 2D 0C 39 [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 07 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 80 0C CC [12:20:10]RasterBufferAndPrint [12:20:10]line [12:20:10]line [12:20:10]line [12:20:10]line [12:20:10]line [12:20:10]written 0, free lines is 3205 [12:20:10]MH_Cut [12:20:10]Write to MH i2c: D1 01 00 34 0C 01 12 [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: D1 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: D1 01 00 [12:20:10]MH_I2C_Read... [12:20:10]Read from MH i2c: D1 01 00 34 0C 00 11 [12:20:10]Write to MH i2c: 01 00 00 35 0C 41 [12:20:10]Write i2c OK [12:20:10]MH_I2C_Read... [12:20:11]OFD Sender: No OFD packet to send [12:20:11]*** Cut start [12:20:11]*** Purtial cut [12:20:11]*** Stage 1: CUTSNS_PIN = 1 [12:20:11]Read from MH i2c: 01 [12:20:11]MH_I2C_Read... [12:20:11]*** Stop cut motor [12:20:11]*** Cut end [12:20:11]Read from MH i2c: 01 07 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: 01 07 00 35 0C 00 00 00 00 00 FF 0F 56 [12:20:11]process_action close_receipt done [12:20:11]requested_data is exist [12:20:11]produce_requested_data [12:20:11]requested_item fm.sn is exist - process it [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 11 00 00 [12:20:11]Write to MH i2c: E2 08 00 36 0C 80 11 00 00 00 00 00 00 BC [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:11]Read from MH i2c: E2 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 17 00 [12:20:11]MH_I2C_Read... [12:20:11]Read from MH i2c: E2 17 00 36 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 11 [12:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:20:11]wFMCommunicate OK [12:20:11]requested_item fd.num is exist - process it [12:20:11]SAM_PROTO_GetFieldsCounters [12:20:11]wFMCommunicate request_size=4 [12:20:11]MH_SAM_APDU [12:20:11]CAPDU: 80 13 00 00 [12:20:11]Write to MH i2c: E2 08 00 37 0C 80 13 00 00 00 00 00 00 BF [12:20:11]Write i2c OK [12:20:11]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 62 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 62 00 37 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:20:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:12]wFMCommunicate OK [12:20:12]SAM_PROTO_GetFieldsCounters done [12:20:12]requested_item shift.num is exist - process it [12:20:12]requested_item shift.opened is exist - process it [12:20:12]req_shift_opened [12:20:12]FM_GetShiftState [12:20:12]SAM_PROTO_GetShiftState [12:20:12]wFMCommunicate request_size=4 [12:20:12]MH_SAM_APDU [12:20:12]CAPDU: 80 13 01 00 [12:20:12]Write to MH i2c: E2 08 00 38 0C 80 13 01 00 00 00 00 00 C1 [12:20:12]Write i2c OK [12:20:12]MH_I2C_Read... [12:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:12]Read from MH i2c: E2 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 0E 00 [12:20:12]MH_I2C_Read... [12:20:12]Read from MH i2c: E2 0E 00 38 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C3 [12:20:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:20:12]wFMCommunicate OK [12:20:12]SAM_PROTO_GetShiftState done [12:20:12]FM_GetShiftState done [12:20:12]req_shift_opened done [12:20:12]requested_item shift.open_date is exist - process it [12:20:12]req_shift_open_date [12:20:12]req_shift_open_date done [12:20:12]produce_requested_data done [12:20:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201923,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:20:12]process_action_free close_receipt [12:20:12]json_value_free [12:20:12]json_value_free done [12:20:12]process_json_proto returns [12:20:12]Send response to host [12:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201923,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:20:12]free response buf [12:20:12]execute_script done [12:20:12]execute_script returns [12:20:12]free content buf [12:20:12]Sock 8.Close socket [12:20:12]Sock 8.Thread stoped [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:45]accept exits with 9 [12:25:45]New connection [12:25:45]New thread 3066498404 created [12:25:45]Thread 3066641764 joined [12:25:45]Waiting for new connection... [12:25:45] Sock 9.Parse request [12:25:45]Sock 9.Check first char [12:25:45]Sock 9.First char is OK [12:25:45]request: POST /json_proto HTTP/1.0 [12:25:45]Method: POST [12:25:45]URL: /json_proto [12:25:45]Method is POST - this is cgi request [12:25:45]url: /json_proto [12:25:45]query_string will be loaded in cgi processing [12:25:45]execute_cgi json_proto POST (null) [12:25:45]execute_cgi path=json_proto method=POST [12:25:45]POST find Content-Length [12:25:45]Host: 172.17.63.195:8080 [12:25:45]Content-Length: 682 [12:25:45]Content-Type: application/json [12:25:45] [12:25:45]POST finish read [12:25:45]Found Content-Length = 682 [12:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:25:45]execute_script... [12:25:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:25:45]POST & json_proto [12:25:45]process_json_proto [12:25:45]json parsed OK: [12:25:45]protocol is kg_v1.0 [12:25:45]action value=close_receipt [12:25:45]process_action close_receipt [12:25:45]cmd_close_receipt [12:25:45]MH_GetDate [12:25:45]Write to MH i2c: F0 00 00 39 0C 34 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: F0 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: F0 09 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: F0 09 00 39 0C 00 49 31 1E 67 47 1B 1E 67 23 [12:25:45]GetLastDocTimeStamp 1730031608 [12:25:45]current date 1730031945 [12:25:45]FM_GetShiftState [12:25:45]SAM_PROTO_GetShiftState [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 13 01 00 [12:25:45]Write to MH i2c: E2 08 00 3A 0C 80 13 01 00 00 00 00 00 C3 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 0E 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 0E 00 3A 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C5 [12:25:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:25:45]wFMCommunicate OK [12:25:45]SAM_PROTO_GetShiftState done [12:25:45]FM_GetShiftState done [12:25:45]opened in 1729987312 [12:25:45]opened+sec_in_day 1730073712 [12:25:45]quantity*price = 100015 [12:25:45]sum+1 = 100017 [12:25:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 216 27.10.2024 12:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201924 ФПД: 276133063246461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122545&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201924&fm=276133063246461&tin=02508201610067®Number=0000000000091777&sum=100000 [12:25:46]StoreToDocumentArchive [12:25:46]shift 544 fd 201924 [12:25:46]save to /storage/0544/doc_00201924 [12:25:46]save last doc name /storage/0544/doc_00201924 to /storage/kkm_last_doc_name [12:25:46]save OK [12:25:46]Clear old archive folders... [12:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:46]tlvbuf is 011A05B0 [12:25:46]SAM_PROTO_ClearQueue [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 09 00 00 [12:25:46]Write to MH i2c: E2 08 00 47 0C 80 09 00 00 00 00 00 00 C5 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 47 0C 00 90 00 C7 [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]SAM_PROTO_ClearQueue done [12:25:46]KKMCreateOFDPacket [12:25:46]OFDProtocolAddRootSTLVToBuf [12:25:46]FM_MakeSignedData [12:25:46]FM_MakeSignedData [12:25:46]SAM_PROTO_SignData [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 01 02 [12:25:46]Write to MH i2c: E2 08 00 48 0C 80 0D 01 02 00 00 00 00 CD [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]OFD Sender: No OFD packet to send [12:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 48 0C 00 90 00 C8 [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]wFMCommunicate request_size=255 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D8 00 00 00 F4 03 04 00 49 31 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 14 03 00 35 04 06 00 FB [12:25:46]Write to MH i2c: E2 02 01 49 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D8 00 00 00 F4 03 04 00 49 31 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 14 03 00 35 04 06 00 FB 00 00 2A [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]wFMCommunicate request_size=10 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 02 02 05 24 3D 25 42 7D [12:25:46]Write to MH i2c: E2 0D 00 4A 0C 80 0D 02 02 05 00 24 3D 25 42 7D 00 00 1F [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [12:25:46]RAPDU: 90 00 [12:25:46]wFMCommunicate OK [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 0D 03 02 [12:25:46]Write to MH i2c: E2 08 00 4B 0C 80 0D 03 02 00 00 00 00 D2 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 0B 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 0B 00 4B 0C 00 C0 11 B4 A0 F7 AF 0E E8 90 00 94 [12:25:46]RAPDU: C0 11 B4 A0 F7 AF 0E E8 90 00 [12:25:46]wFMCommunicate OK [12:25:46]SAM_PROTO_SignData done [12:25:46]FM_MakeSignedData done [12:25:46]CreateOFDProtocolMessage [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 11 00 00 [12:25:46]Write to MH i2c: E2 08 00 4C 0C 80 11 00 00 00 00 00 00 D2 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 17 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 17 00 4C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [12:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:25:46]wFMCommunicate OK [12:25:46]CreateOFDProtocolMessage done [12:25:46]OFDSenderStorePacket 201924 [12:25:46]StoreOFDPacket docnum=201924 [12:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 59 D1 07 01 0D 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D8 00 00 00 F4 03 04 00 49 31 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 14 03 00 35 04 06 00 FB 24 3D 25 42 7D C0 11 B4 A0 F7 AF 0E E8 [12:25:46]CheckFolder [12:25:46]dirname=/storage/ofd_packets [12:25:46]CheckFolder done [12:25:46]ProducePacketName [12:25:46]name=ofd_packets/00201924 [12:25:46]NVStorageSaveData ofd_packets/00201924 [12:25:46]File name is /storage/ofd_packets/00201924 [12:25:46]Write 301 bytes [12:25:46]NVStorageSaveData done [12:25:46]OFDSenderStorePacket done [12:25:46]KKMCreateOFDPacket done [12:25:46]NVStorageSaveData kkm_last_timestamp [12:25:46]File name is /storage/kkm_last_timestamp [12:25:46]Write 4 bytes [12:25:46]NVStorageSaveData done [12:25:46]ExternCall_PrintAddStr [12:25:46]wPrintStart [12:25:46]Write to MH i2c: 01 00 00 4D 0C 59 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 4D 0C 00 00 00 00 00 FF 0F 6E [12:25:46]RasterBufferAndPrint [12:25:46]line Счет N : (1)449686 [12:25:46]line ИНН: 02508201610067 [12:25:46]line Контрольно-Кассовый Чек [12:25:46]line ПРОДАЖА [12:25:46]line ТРК (МРК, ГНК) : 41 [12:25:46]line Товар: 2710124130 [12:25:46]line Аи-92-К-2 [12:25:46]line 14.950 * 66.90 [12:25:46]line = 1000.16 [12:25:46]line НДС 12% НСП 1% [12:25:46]line > о реализуемом товаре [12:25:46]line ОКРУГЛЕНИЕ: -0.16 [12:25:46]line ИТОГО: 1000.00 [12:25:46]line Внесено: 1000.00 [12:25:46]line СДАЧА: 0.00 [12:25:46]line НСП 1% : 8.85 [12:25:46]line НДС 12% : 106.21 [12:25:46]line Наличными: 1000.00 [12:25:46]line Безнал.: 0.00 [12:25:46]line Место: АЗС № 171 "Партнер Нефть" [12:25:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:25:46]line СНО: Общий режим [12:25:46]line Чек 216 27.10.2024 12:25 [12:25:46]line Смена: 544 ФФД: 1.0 [12:25:46]line ЗНМ: 0300000109 [12:25:46]line РНМ: 0000000000091777 [12:25:46]line Версия ККМ: 001 [12:25:46]line ФМ: 0000000000871756 [12:25:46]line ФД: 201924 [12:25:46]line ФПД: 276133063246461 [12:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122545&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201924&fm=276133063246461&tin=02508201610067®Number=0000000000091777&sum=100000 [12:25:47]OFD Sender: Processing packet 201924 [packets to send 112, broken 111] [12:25:47]ProducePacketName [12:25:47]name=ofd_packets/00201924 [12:25:47]OFD Sender: To server: pG, [12:25:47]CommunicateWithHost lk.salyk.kg:30040 [12:25:47]ConnectInit lk.salyk.kg [12:25:47]written 0, free lines is 4095 [12:25:47]Connected sock=10 [12:25:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 59 D1 07 01 0D 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D8 00 00 00 F4 03 04 00 49 31 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 14 03 00 35 04 06 00 FB 24 3D 25 42 7D C0 11 B4 A0 F7 AF 0E E8 [12:25:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DB 53 47 00 C1 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 14 03 00 F4 03 04 00 03 DD 1D 67 B6 04 01 00 00 D5 73 FB F8 6A 65 43 FF [12:25:47]CommunicateWithHost err = 0 [12:25:47]CheckOFDResponse [12:25:47]1017 (14) - 77093643461234 [12:25:47]1041 (16) - 0000000000871756 [12:25:47]1040 (4) - 201924 [12:25:47]1012 (4) - 27.10.2024 06:26 [12:25:47]1206 (1) - 0 [12:25:47]OFD Sender: Remove packet 201924 [12:25:47]ProducePacketName [12:25:47]name=ofd_packets/00201924 [12:25:47]NVStorageDeleteData [12:25:47]Write to MH i2c: 01 00 00 78 0C 84 [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 07 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 07 00 78 0C 00 00 00 00 00 89 0C 20 [12:25:47]RasterBufferAndPrint [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]line [12:25:47]written 0, free lines is 3213 [12:25:47]MH_Cut [12:25:47]Write to MH i2c: D1 01 00 7F 0C 01 5D [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 01 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: D1 01 00 7F 0C 00 5C [12:25:47]Write to MH i2c: 01 00 00 80 0C 8C [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:48]OFD Sender: No OFD packet to send [12:25:48]*** Cut start [12:25:48]*** Purtial cut [12:25:48]*** Stage 1: CUTSNS_PIN = 1 [12:25:48]Read from MH i2c: 01 [12:25:48]MH_I2C_Read... [12:25:48]*** Stop cut motor [12:25:48]*** Cut end [12:25:48]Read from MH i2c: 01 07 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 FF 0F A1 [12:25:48]process_action close_receipt done [12:25:48]requested_data is exist [12:25:48]produce_requested_data [12:25:48]requested_item fm.sn is exist - process it [12:25:48]wFMCommunicate request_size=4 [12:25:48]MH_SAM_APDU [12:25:48]CAPDU: 80 11 00 00 [12:25:48]Write to MH i2c: E2 08 00 81 0C 80 11 00 00 00 00 00 00 07 [12:25:48]Write i2c OK [12:25:48]MH_I2C_Read... [12:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:48]Read from MH i2c: E2 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 17 00 [12:25:48]MH_I2C_Read... [12:25:48]Read from MH i2c: E2 17 00 81 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [12:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:25:48]wFMCommunicate OK [12:25:48]requested_item fd.num is exist - process it [12:25:48]SAM_PROTO_GetFieldsCounters [12:25:48]wFMCommunicate request_size=4 [12:25:48]MH_SAM_APDU [12:25:48]CAPDU: 80 13 00 00 [12:25:48]Write to MH i2c: E2 08 00 82 0C 80 13 00 00 00 00 00 00 0A [12:25:48]Write i2c OK [12:25:48]MH_I2C_Read... [12:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:49]Read from MH i2c: E2 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: E2 62 00 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: E2 62 00 82 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [12:25:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:49]wFMCommunicate OK [12:25:49]SAM_PROTO_GetFieldsCounters done [12:25:49]requested_item shift.num is exist - process it [12:25:49]requested_item shift.opened is exist - process it [12:25:49]req_shift_opened [12:25:49]FM_GetShiftState [12:25:49]SAM_PROTO_GetShiftState [12:25:49]wFMCommunicate request_size=4 [12:25:49]MH_SAM_APDU [12:25:49]CAPDU: 80 13 01 00 [12:25:49]Write to MH i2c: E2 08 00 83 0C 80 13 01 00 00 00 00 00 0C [12:25:49]Write i2c OK [12:25:49]MH_I2C_Read... [12:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:49]Read from MH i2c: E2 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: E2 0E 00 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: E2 0E 00 83 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0E [12:25:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:25:49]wFMCommunicate OK [12:25:49]SAM_PROTO_GetShiftState done [12:25:49]FM_GetShiftState done [12:25:49]req_shift_opened done [12:25:49]requested_item shift.open_date is exist - process it [12:25:49]req_shift_open_date [12:25:49]req_shift_open_date done [12:25:49]produce_requested_data done [12:25:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201924,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:25:49]process_action_free close_receipt [12:25:49]json_value_free [12:25:49]json_value_free done [12:25:49]process_json_proto returns [12:25:49]Send response to host [12:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201924,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:25:49]free response buf [12:25:49]execute_script done [12:25:49]execute_script returns [12:25:49]free content buf [12:25:49]Sock 9.Close socket [12:25:49]Sock 9.Thread stoped [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:41]accept exits with 8 [12:26:41]New connection [12:26:41]New thread 3066641764 created [12:26:41]Thread 3066498404 joined [12:26:41]Waiting for new connection... [12:26:41] Sock 8.Parse request [12:26:41]Sock 8.Check first char [12:26:41]Sock 8.First char is OK [12:26:41]request: POST /json_proto HTTP/1.0 [12:26:41]Method: POST [12:26:41]URL: /json_proto [12:26:41]Method is POST - this is cgi request [12:26:41]url: /json_proto [12:26:41]query_string will be loaded in cgi processing [12:26:41]execute_cgi json_proto POST (null) [12:26:41]execute_cgi path=json_proto method=POST [12:26:41]POST find Content-Length [12:26:41]Host: 172.17.63.195:8080 [12:26:41]Content-Length: 682 [12:26:41]Content-Type: application/json [12:26:41] [12:26:41]POST finish read [12:26:41]Found Content-Length = 682 [12:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:41]execute_script... [12:26: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)449685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:41]POST & json_proto [12:26:41]process_json_proto [12:26:41]json parsed OK: [12:26:41]protocol is kg_v1.0 [12:26:41]action value=close_receipt [12:26:41]process_action close_receipt [12:26:41]cmd_close_receipt [12:26:41]MH_GetDate [12:26:41]Write to MH i2c: F0 00 00 84 0C 7F [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: F0 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: F0 09 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: F0 09 00 84 0C 00 82 31 1E 67 47 1B 1E 67 A7 [12:26:41]GetLastDocTimeStamp 1730031945 [12:26:41]current date 1730032002 [12:26:41]FM_GetShiftState [12:26:41]SAM_PROTO_GetShiftState [12:26:41]wFMCommunicate request_size=4 [12:26:41]MH_SAM_APDU [12:26:41]CAPDU: 80 13 01 00 [12:26:41]Write to MH i2c: E2 08 00 85 0C 80 13 01 00 00 00 00 00 0E [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:41]Read from MH i2c: E2 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: E2 0E 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: E2 0E 00 85 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 10 [12:26:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:26:41]wFMCommunicate OK [12:26:41]SAM_PROTO_GetShiftState done [12:26:41]FM_GetShiftState done [12:26:41]opened in 1729987312 [12:26:41]opened+sec_in_day 1730073712 [12:26:41]quantity*price = 300046 [12:26:41]sum+1 = 300048 [12:26:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 217 27.10.2024 12:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201925 ФПД: 92287137655550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122642&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201925&fm=92287137655550&tin=02508201610067®Number=0000000000091777&sum=300000 [12:26:42]StoreToDocumentArchive [12:26:42]shift 544 fd 201925 [12:26:42]save to /storage/0544/doc_00201925 [12:26:42]save last doc name /storage/0544/doc_00201925 to /storage/kkm_last_doc_name [12:26:42]save OK [12:26:42]Clear old archive folders... [12:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:42]tlvbuf is 01196AF0 [12:26:42]SAM_PROTO_ClearQueue [12:26:42]wFMCommunicate request_size=4 [12:26:42]MH_SAM_APDU [12:26:42]CAPDU: 80 09 00 00 [12:26:42]Write to MH i2c: E2 08 00 92 0C 80 09 00 00 00 00 00 00 10 [12:26:42]Write i2c OK [12:26:42]MH_I2C_Read... [12:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:42]Read from MH i2c: E2 [12:26:42]MH_I2C_Read... [12:26:42]Read from MH i2c: E2 03 00 [12:26:42]MH_I2C_Read... [12:26:42]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [12:26:42]RAPDU: 90 00 [12:26:42]wFMCommunicate OK [12:26:42]SAM_PROTO_ClearQueue done [12:26:42]KKMCreateOFDPacket [12:26:42]OFDProtocolAddRootSTLVToBuf [12:26:42]FM_MakeSignedData [12:26:42]FM_MakeSignedData [12:26:42]SAM_PROTO_SignData [12:26:42]wFMCommunicate request_size=4 [12:26:42]MH_SAM_APDU [12:26:42]CAPDU: 80 0D 01 02 [12:26:42]Write to MH i2c: E2 08 00 93 0C 80 0D 01 02 00 00 00 00 18 [12:26:42]Write i2c OK [12:26:42]MH_I2C_Read... [12:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:42]Read from MH i2c: E2 [12:26:42]MH_I2C_Read... [12:26:42]Read from MH i2c: E2 03 00 [12:26:42]MH_I2C_Read... [12:26:42]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [12:26:42]RAPDU: 90 00 [12:26:42]wFMCommunicate OK [12:26:42]wFMCommunicate request_size=255 [12:26:42]MH_SAM_APDU [12:26:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 82 31 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 14 03 00 35 04 06 00 53 [12:26:42]Write to MH i2c: E2 02 01 94 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 82 31 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 14 03 00 35 04 06 00 53 00 00 97 [12:26:42]Write i2c OK [12:26:42]MH_I2C_Read... [12:26:43]OFD Sender: No OFD packet to send [12:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 03 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [12:26:43]RAPDU: 90 00 [12:26:43]wFMCommunicate OK [12:26:43]wFMCommunicate request_size=10 [12:26:43]MH_SAM_APDU [12:26:43]CAPDU: 80 0D 02 02 05 EF 46 0E AA FE [12:26:43]Write to MH i2c: E2 0D 00 95 0C 80 0D 02 02 05 00 EF 46 0E AA FE 00 00 10 [12:26:43]Write i2c OK [12:26:43]MH_I2C_Read... [12:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 03 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 03 00 95 0C 00 90 00 15 [12:26:43]RAPDU: 90 00 [12:26:43]wFMCommunicate OK [12:26:43]wFMCommunicate request_size=4 [12:26:43]MH_SAM_APDU [12:26:43]CAPDU: 80 0D 03 02 [12:26:43]Write to MH i2c: E2 08 00 96 0C 80 0D 03 02 00 00 00 00 1D [12:26:43]Write i2c OK [12:26:43]MH_I2C_Read... [12:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 0B 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 0B 00 96 0C 00 71 77 EC 35 93 F0 69 FB 90 00 0E [12:26:43]RAPDU: 71 77 EC 35 93 F0 69 FB 90 00 [12:26:43]wFMCommunicate OK [12:26:43]SAM_PROTO_SignData done [12:26:43]FM_MakeSignedData done [12:26:43]CreateOFDProtocolMessage [12:26:43]wFMCommunicate request_size=4 [12:26:43]MH_SAM_APDU [12:26:43]CAPDU: 80 11 00 00 [12:26:43]Write to MH i2c: E2 08 00 97 0C 80 11 00 00 00 00 00 00 1D [12:26:43]Write i2c OK [12:26:43]MH_I2C_Read... [12:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 17 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 17 00 97 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [12:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:26:43]wFMCommunicate OK [12:26:43]CreateOFDProtocolMessage done [12:26:43]OFDSenderStorePacket 201925 [12:26:43]StoreOFDPacket docnum=201925 [12:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 44 A5 07 01 4F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 82 31 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 14 03 00 35 04 06 00 53 EF 46 0E AA FE 71 77 EC 35 93 F0 69 FB [12:26:43]CheckFolder [12:26:43]dirname=/storage/ofd_packets [12:26:43]CheckFolder done [12:26:43]ProducePacketName [12:26:43]name=ofd_packets/00201925 [12:26:43]NVStorageSaveData ofd_packets/00201925 [12:26:43]File name is /storage/ofd_packets/00201925 [12:26:43]Write 301 bytes [12:26:43]NVStorageSaveData done [12:26:43]OFDSenderStorePacket done [12:26:43]KKMCreateOFDPacket done [12:26:43]NVStorageSaveData kkm_last_timestamp [12:26:43]File name is /storage/kkm_last_timestamp [12:26:43]Write 4 bytes [12:26:43]NVStorageSaveData done [12:26:43]ExternCall_PrintAddStr [12:26:43]wPrintStart [12:26:43]Write to MH i2c: 01 00 00 98 0C A4 [12:26:43]Write i2c OK [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: 01 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: 01 07 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: 01 07 00 98 0C 00 00 00 00 00 FF 0F B9 [12:26:43]RasterBufferAndPrint [12:26:43]line Счет N : (1)449685 [12:26:43]line ИНН: 02508201610067 [12:26:43]line Контрольно-Кассовый Чек [12:26:43]line ПРОДАЖА [12:26:43]line ТРК (МРК, ГНК) : 31 [12:26:43]line Товар: 2710124130 [12:26:43]line Аи-92-К-2 [12:26:43]line 44.850 * 66.90 [12:26:43]line = 3000.47 [12:26:43]line НДС 12% НСП 1% [12:26:43]line > о реализуемом товаре [12:26:43]line ОКРУГЛЕНИЕ: -0.47 [12:26:43]line ИТОГО: 3000.00 [12:26:43]line Внесено: 3000.00 [12:26:43]line СДАЧА: 0.00 [12:26:43]line НСП 1% : 26.55 [12:26:43]line НДС 12% : 318.63 [12:26:43]line Наличными: 3000.00 [12:26:43]line Безнал.: 0.00 [12:26:43]line Место: АЗС № 171 "Партнер Нефть" [12:26:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:26:43]line СНО: Общий режим [12:26:43]line Чек 217 27.10.2024 12:26 [12:26:43]line Смена: 544 ФФД: 1.0 [12:26:43]line ЗНМ: 0300000109 [12:26:43]line РНМ: 0000000000091777 [12:26:43]line Версия ККМ: 001 [12:26:43]line ФМ: 0000000000871756 [12:26:43]line ФД: 201925 [12:26:43]line ФПД: 92287137655550 [12:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122642&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201925&fm=92287137655550&tin=02508201610067®Number=0000000000091777&sum=300000 [12:26:43]OFD Sender: Processing packet 201925 [packets to send 112, broken 111] [12:26:43]ProducePacketName [12:26:43]name=ofd_packets/00201925 [12:26:43]OFD Sender: To server: pG, [12:26:43]CommunicateWithHost lk.salyk.kg:30040 [12:26:43]ConnectInit lk.salyk.kg [12:26:43]written 0, free lines is 4095 [12:26:43]Connected sock=10 [12:26:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 44 A5 07 01 4F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 82 31 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 14 03 00 35 04 06 00 53 EF 46 0E AA FE 71 77 EC 35 93 F0 69 FB [12:26:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D6 7C 47 00 F1 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 14 03 00 F4 03 04 00 3C DD 1D 67 B6 04 01 00 00 ED DB 88 B9 46 64 22 96 [12:26:44]CommunicateWithHost err = 0 [12:26:44]CheckOFDResponse [12:26:44]1017 (14) - 77093643461234 [12:26:44]1041 (16) - 0000000000871756 [12:26:44]1040 (4) - 201925 [12:26:44]1012 (4) - 27.10.2024 06:27 [12:26:44]1206 (1) - 0 [12:26:44]OFD Sender: Remove packet 201925 [12:26:44]ProducePacketName [12:26:44]name=ofd_packets/00201925 [12:26:44]NVStorageDeleteData [12:26:44]Write to MH i2c: 01 00 00 C3 0C CF [12:26:44]Write i2c OK [12:26:44]MH_I2C_Read... [12:26:44]Read from MH i2c: 01 [12:26:44]MH_I2C_Read... [12:26:44]Read from MH i2c: 01 07 00 [12:26:44]MH_I2C_Read... [12:26:44]Read from MH i2c: 01 07 00 C3 0C 00 00 00 00 00 85 0C 67 [12:26:44]RasterBufferAndPrint [12:26:44]line [12:26:44]line [12:26:44]line [12:26:44]line [12:26:44]line [12:26:44]written 0, free lines is 3210 [12:26:44]MH_Cut [12:26:44]Write to MH i2c: D1 01 00 CA 0C 01 A8 [12:26:44]Write i2c OK [12:26:44]MH_I2C_Read... [12:26:44]Read from MH i2c: D1 [12:26:44]MH_I2C_Read... [12:26:44]Read from MH i2c: D1 01 00 [12:26:44]MH_I2C_Read... [12:26:44]Read from MH i2c: D1 01 00 CA 0C 00 A7 [12:26:44]Write to MH i2c: 01 00 00 CB 0C D7 [12:26:44]Write i2c OK [12:26:44]MH_I2C_Read... [12:26:44]OFD Sender: No OFD packet to send [12:26:45]*** Cut start [12:26:45]*** Purtial cut [12:26:45]*** Stage 1: CUTSNS_PIN = 1 [12:26:45]Read from MH i2c: 01 [12:26:45]MH_I2C_Read... [12:26:45]*** Stop cut motor [12:26:45]*** Cut end [12:26:45]Read from MH i2c: 01 07 00 [12:26:45]MH_I2C_Read... [12:26:45]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 FF 0F EC [12:26:45]process_action close_receipt done [12:26:45]requested_data is exist [12:26:45]produce_requested_data [12:26:45]requested_item fm.sn is exist - process it [12:26:45]wFMCommunicate request_size=4 [12:26:45]MH_SAM_APDU [12:26:45]CAPDU: 80 11 00 00 [12:26:45]Write to MH i2c: E2 08 00 CC 0C 80 11 00 00 00 00 00 00 52 [12:26:45]Write i2c OK [12:26:45]MH_I2C_Read... [12:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:45]Read from MH i2c: E2 [12:26:45]MH_I2C_Read... [12:26:45]Read from MH i2c: E2 17 00 [12:26:45]MH_I2C_Read... [12:26:45]Read from MH i2c: E2 17 00 CC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A7 [12:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:26:45]wFMCommunicate OK [12:26:45]requested_item fd.num is exist - process it [12:26:45]SAM_PROTO_GetFieldsCounters [12:26:45]wFMCommunicate request_size=4 [12:26:45]MH_SAM_APDU [12:26:45]CAPDU: 80 13 00 00 [12:26:45]Write to MH i2c: E2 08 00 CD 0C 80 13 00 00 00 00 00 00 55 [12:26:45]Write i2c OK [12:26:45]MH_I2C_Read... [12:26:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:45]Read from MH i2c: E2 [12:26:45]MH_I2C_Read... [12:26:45]Read from MH i2c: E2 62 00 [12:26:45]MH_I2C_Read... [12:26:45]Read from MH i2c: E2 62 00 CD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [12:26:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:45]wFMCommunicate OK [12:26:45]SAM_PROTO_GetFieldsCounters done [12:26:45]requested_item shift.num is exist - process it [12:26:45]requested_item shift.opened is exist - process it [12:26:45]req_shift_opened [12:26:45]FM_GetShiftState [12:26:45]SAM_PROTO_GetShiftState [12:26:45]wFMCommunicate request_size=4 [12:26:45]MH_SAM_APDU [12:26:45]CAPDU: 80 13 01 00 [12:26:45]Write to MH i2c: E2 08 00 CE 0C 80 13 01 00 00 00 00 00 57 [12:26:45]Write i2c OK [12:26:45]MH_I2C_Read... [12:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:45]Read from MH i2c: E2 [12:26:45]MH_I2C_Read... [12:26:45]Read from MH i2c: E2 0E 00 [12:26:45]MH_I2C_Read... [12:26:45]Read from MH i2c: E2 0E 00 CE 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 59 [12:26:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:26:45]wFMCommunicate OK [12:26:45]SAM_PROTO_GetShiftState done [12:26:45]FM_GetShiftState done [12:26:45]req_shift_opened done [12:26:45]requested_item shift.open_date is exist - process it [12:26:45]req_shift_open_date [12:26:45]req_shift_open_date done [12:26:45]produce_requested_data done [12:26:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201925,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:26:45]process_action_free close_receipt [12:26:45]json_value_free [12:26:45]json_value_free done [12:26:45]process_json_proto returns [12:26:45]Send response to host [12:26:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201925,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:26:45]free response buf [12:26:45]execute_script done [12:26:45]execute_script returns [12:26:45]free content buf [12:26:45]Sock 8.Close socket [12:26:45]Sock 8.Thread stoped [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send D8 0C 00 90 00 58 [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]wFMCommunicate request_size=13 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 15 02 00 08 F4 03 04 00 5E 33 1E 67 [12:34:38]Write to MH i2c: E2 10 00 D9 0C 80 15 02 00 08 00 F4 03 04 00 5E 33 1E 67 00 00 86 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 D9 0C 00 90 00 59 [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]wFMCommunicate request_size=25 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [12:34:38]Write to MH i2c: E2 1C 00 DA 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 CE [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 DA 0C 00 90 00 5A [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 15 03 00 [12:34:38]Write to MH i2c: E2 08 00 DB 0C 80 15 03 00 00 00 00 00 68 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 40 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 40 00 DB 0C 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DA 00 00 00 35 04 06 00 D5 FF BF FC 12 A0 90 00 7A [12:34:38]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DA 00 00 00 35 04 06 00 D5 FF BF FC 12 A0 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_ProcessDocument answer len = 59 [12:34:38]SAM_PROTO_ProcessDocument done [12:34:38]SetTLVBufToDocument [12:34:38]Processing tag 1209 (04B9) [12:34:38]Malloc new data [12:34:38]Processing tag 1041 (0411) [12:34:38]Processing tag 1040 (0410) [12:34:38]Malloc new data [12:34:38]Processing tag 1038 (040E) [12:34:38]Malloc new data [12:34:38]Processing tag 1042 (0412) [12:34:38]Malloc new data [12:34:38]Processing tag 1077 (0435) [12:34:38]Malloc new data [12:34:38]SetTLVBufToDocument err=0 [12:34:38]KKMLoadAndSignReceiptData store KKM data [12:34:38]KKMLoadAndSignReceiptData err=0 [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 11 00 00 [12:34:38]Write to MH i2c: E2 08 00 DC 0C 80 11 00 00 00 00 00 00 62 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 17 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 17 00 DC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [12:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:34:38]wFMCommunicate OK [12:34:38]Счет N : (1)449688 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 41 Товар: 2710124130 Аи-92-К-2 4.490 * 66.90 = 300.38 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 218 27.10.2024 12:34 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201926 ФПД: 235294414344864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123438&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201926&fm=235294414344864&tin=02508201610067®Number=0000000000091777&sum=30000 [12:34:38]StoreToDocumentArchive [12:34:38]shift 544 fd 201926 [12:34:38]save to /storage/0544/doc_00201926 [12:34:38]save last doc name /storage/0544/doc_00201926 to /storage/kkm_last_doc_name [12:34:38]save OK [12:34:38]Clear old archive folders... [12:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:38]tlvbuf is 01193BB0 [12:34:38]SAM_PROTO_ClearQueue [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 09 00 00 [12:34:38]Write to MH i2c: E2 08 00 DD 0C 80 09 00 00 00 00 00 00 5B [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 DD 0C 00 90 00 5D [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_ClearQueue done [12:34:38]KKMCreateOFDPacket [12:34:38]OFDProtocolAddRootSTLVToBuf [12:34:38]FM_MakeSignedData [12:34:38]FM_MakeSignedData [12:34:38]SAM_PROTO_SignData [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 0D 01 02 [12:34:38]Write to MH i2c: E2 08 00 DE 0C 80 0D 01 02 00 00 00 00 63 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [12:34:38]RAPDU: 90 00 [12:34:38]wFMCommunicate OK [12:34:38]wFMCommunicate request_size=255 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DA 00 00 00 F4 03 04 00 5E 33 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 14 03 00 35 04 06 00 D5 [12:34:38]Write to MH i2c: E2 02 01 DF 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DA 00 00 00 F4 03 04 00 5E 33 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 14 03 00 35 04 06 00 D5 00 00 AF [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 DF 0C 00 90 00 5F [12:34:39]RAPDU: 90 00 [12:34:39]wFMCommunicate OK [12:34:39]wFMCommunicate request_size=10 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 0D 02 02 05 FF BF FC 12 A0 [12:34:39]Write to MH i2c: E2 0D 00 E0 0C 80 0D 02 02 05 00 FF BF FC 12 A0 00 00 DC [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 03 00 E0 0C 00 90 00 60 [12:34:39]RAPDU: 90 00 [12:34:39]wFMCommunicate OK [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 0D 03 02 [12:34:39]Write to MH i2c: E2 08 00 E1 0C 80 0D 03 02 00 00 00 00 68 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 0B 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 0B 00 E1 0C 00 8C 71 41 F2 2B 5D E1 B4 90 00 B6 [12:34:39]RAPDU: 8C 71 41 F2 2B 5D E1 B4 90 00 [12:34:39]wFMCommunicate OK [12:34:39]SAM_PROTO_SignData done [12:34:39]FM_MakeSignedData done [12:34:39]CreateOFDProtocolMessage [12:34:39]wFMCommunicate request_size=4 [12:34:39]MH_SAM_APDU [12:34:39]CAPDU: 80 11 00 00 [12:34:39]Write to MH i2c: E2 08 00 E2 0C 80 11 00 00 00 00 00 00 68 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:39]Read from MH i2c: E2 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 17 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: E2 17 00 E2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [12:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:34:39]wFMCommunicate OK [12:34:39]CreateOFDProtocolMessage done [12:34:39]OFDSenderStorePacket 201926 [12:34:39]StoreOFDPacket docnum=201926 [12:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D 01 07 01 B7 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DA 00 00 00 F4 03 04 00 5E 33 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 14 03 00 35 04 06 00 D5 FF BF FC 12 A0 8C 71 41 F2 2B 5D E1 B4 [12:34:39]CheckFolder [12:34:39]dirname=/storage/ofd_packets [12:34:39]CheckFolder done [12:34:39]ProducePacketName [12:34:39]name=ofd_packets/00201926 [12:34:39]NVStorageSaveData ofd_packets/00201926 [12:34:39]File name is /storage/ofd_packets/00201926 [12:34:39]Write 301 bytes [12:34:39]NVStorageSaveData done [12:34:39]OFDSenderStorePacket done [12:34:39]KKMCreateOFDPacket done [12:34:39]NVStorageSaveData kkm_last_timestamp [12:34:39]File name is /storage/kkm_last_timestamp [12:34:39]Write 4 bytes [12:34:39]NVStorageSaveData done [12:34:39]ExternCall_PrintAddStr [12:34:39]wPrintStart [12:34:39]Write to MH i2c: 01 00 00 E3 0C EF [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 07 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 07 00 E3 0C 00 00 00 00 00 FF 0F 04 [12:34:39]RasterBufferAndPrint [12:34:39]line Счет N : (1)449688 [12:34:39]line ИНН: 02508201610067 [12:34:39]line Контрольно-Кассовый Чек [12:34:39]line ПРОДАЖА [12:34:39]line ТРК (МРК, ГНК) : 41 [12:34:39]line Товар: 2710124130 [12:34:39]line Аи-92-К-2 [12:34:39]line 4.490 * 66.90 [12:34:39]line = 300.38 [12:34:39]line НДС 12% НСП 1% [12:34:39]line > о реализуемом товаре [12:34:39]line ОКРУГЛЕНИЕ: -0.38 [12:34:39]line ИТОГО: 300.00 [12:34:39]line Внесено: 300.00 [12:34:39]line СДАЧА: 0.00 [12:34:39]line НСП 1% : 2.66 [12:34:39]line НДС 12% : 31.90 [12:34:39]line Наличными: 300.00 [12:34:39]line Безнал.: 0.00 [12:34:39]line Место: АЗС № 171 "Партнер Нефть" [12:34:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:34:39]line СНО: Общий режим [12:34:39]line Чек 218 27.10.2024 12:34 [12:34:39]line Смена: 544 ФФД: 1.0 [12:34:39]line ЗНМ: 0300000109 [12:34:39]line РНМ: 0000000000091777 [12:34:39]line Версия ККМ: 001 [12:34:39]line ФМ: 0000000000871756 [12:34:39]line ФД: 201926 [12:34:39]line ФПД: 235294414344864 [12:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123438&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201926&fm=235294414344864&tin=02508201610067®Number=0000000000091777&sum=30000 [12:34:39]OFD Sender: Processing packet 201926 [packets to send 112, broken 111] [12:34:39]ProducePacketName [12:34:39]name=ofd_packets/00201926 [12:34:39]OFD Sender: To server: pG, [12:34:39]CommunicateWithHost lk.salyk.kg:30040 [12:34:39]ConnectInit lk.salyk.kg [12:34:39]written 0, free lines is 4095 [12:34:39]Connected sock=11 [12:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D 01 07 01 B7 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DA 00 00 00 F4 03 04 00 5E 33 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 14 03 00 35 04 06 00 D5 FF BF FC 12 A0 8C 71 41 F2 2B 5D E1 B4 [12:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A8 B9 47 00 62 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 14 03 00 F4 03 04 00 18 DF 1D 67 B6 04 01 00 00 B2 AE 9C E4 C0 D3 A5 F0 [12:34:39]CommunicateWithHost err = 0 [12:34:39]CheckOFDResponse [12:34:39]1017 (14) - 77093643461234 [12:34:39]1041 (16) - 0000000000871756 [12:34:39]1040 (4) - 201926 [12:34:39]1012 (4) - 27.10.2024 06:35 [12:34:39]1206 (1) - 0 [12:34:39]OFD Sender: Remove packet 201926 [12:34:39]ProducePacketName [12:34:39]name=ofd_packets/00201926 [12:34:39]NVStorageDeleteData [12:34:39]Write to MH i2c: 01 00 00 0E 0D 1B [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 07 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: 01 07 00 0E 0D 00 00 00 00 00 8A 0C B8 [12:34:39]RasterBufferAndPrint [12:34:39]line [12:34:39]line [12:34:39]line [12:34:39]line [12:34:39]line [12:34:39]written 0, free lines is 3215 [12:34:39]MH_Cut [12:34:39]Write to MH i2c: D1 01 00 15 0D 01 F4 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: D1 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: D1 01 00 [12:34:39]MH_I2C_Read... [12:34:39]Read from MH i2c: D1 01 00 15 0D 00 F3 [12:34:39]Write to MH i2c: 01 00 00 16 0D 23 [12:34:39]Write i2c OK [12:34:39]MH_I2C_Read... [12:34:40]OFD Sender: No OFD packet to send [12:34:40]*** Cut start [12:34:40]*** Purtial cut [12:34:40]*** Stage 1: CUTSNS_PIN = 1 [12:34:41]Read from MH i2c: 01 [12:34:41]MH_I2C_Read... [12:34:41]*** Stop cut motor [12:34:41]*** Cut end [12:34:41]Read from MH i2c: 01 07 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: 01 07 00 16 0D 00 00 00 00 00 FF 0F 38 [12:34:41]process_action close_receipt done [12:34:41]requested_data is exist [12:34:41]produce_requested_data [12:34:41]requested_item fm.sn is exist - process it [12:34:41]wFMCommunicate request_size=4 [12:34:41]MH_SAM_APDU [12:34:41]CAPDU: 80 11 00 00 [12:34:41]Write to MH i2c: E2 08 00 17 0D 80 11 00 00 00 00 00 00 9E [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:41]Read from MH i2c: E2 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 17 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 17 00 17 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F3 [12:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:34:41]wFMCommunicate OK [12:34:41]requested_item fd.num is exist - process it [12:34:41]SAM_PROTO_GetFieldsCounters [12:34:41]wFMCommunicate request_size=4 [12:34:41]MH_SAM_APDU [12:34:41]CAPDU: 80 13 00 00 [12:34:41]Write to MH i2c: E2 08 00 18 0D 80 13 00 00 00 00 00 00 A1 [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:41]Read from MH i2c: E2 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 62 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 62 00 18 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [12:34:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:41]wFMCommunicate OK [12:34:41]SAM_PROTO_GetFieldsCounters done [12:34:41]requested_item shift.num is exist - process it [12:34:41]requested_item shift.opened is exist - process it [12:34:41]req_shift_opened [12:34:41]FM_GetShiftState [12:34:41]SAM_PROTO_GetShiftState [12:34:41]wFMCommunicate request_size=4 [12:34:41]MH_SAM_APDU [12:34:41]CAPDU: 80 13 01 00 [12:34:41]Write to MH i2c: E2 08 00 19 0D 80 13 01 00 00 00 00 00 A3 [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:41]Read from MH i2c: E2 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 0E 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 0E 00 19 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A5 [12:34:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:34:41]wFMCommunicate OK [12:34:41]SAM_PROTO_GetShiftState done [12:34:41]FM_GetShiftState done [12:34:41]req_shift_opened done [12:34:41]requested_item shift.open_date is exist - process it [12:34:41]req_shift_open_date [12:34:41]req_shift_open_date done [12:34:41]produce_requested_data done [12:34:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201926,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:34:41]process_action_free close_receipt [12:34:41]json_value_free [12:34:41]json_value_free done [12:34:41]process_json_proto returns [12:34:41]Send response to host [12:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201926,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:34:41]free response buf [12:34:41]execute_script done [12:34:41]execute_script returns [12:34:41]free content buf [12:34:41]Sock 9.Close socket [12:34:41]Sock 9.Thread stoped [12:34:41]accept exits with 10 [12:34:41]New connection [12:34:41]New thread 3066641764 created [12:34:41]Thread 3066498404 joined [12:34:41]Waiting for new connection... [12:34:41] Sock 10.Parse request [12:34:41]Sock 10.Check first char [12:34:41]Sock 10.First char is OK [12:34:41]request: POST /json_proto HTTP/1.0 [12:34:41]Method: POST [12:34:41]URL: /json_proto [12:34:41]Method is POST - this is cgi request [12:34:41]url: /json_proto [12:34:41]query_string will be loaded in cgi processing [12:34:41]execute_cgi json_proto POST (null) [12:34:41]execute_cgi path=json_proto method=POST [12:34:41]POST find Content-Length [12:34:41]Host: 172.17.63.195:8080 [12:34:41]Content-Length: 682 [12:34:41]Content-Type: application/json [12:34:41] [12:34:41]POST finish read [12:34:41]Found Content-Length = 682 [12:34:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:34:41]execute_script... [12:34: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)449687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:34:41]POST & json_proto [12:34:41]process_json_proto [12:34:41]json parsed OK: [12:34:41]protocol is kg_v1.0 [12:34:41]action value=close_receipt [12:34:41]process_action close_receipt [12:34:41]cmd_close_receipt [12:34:41]MH_GetDate [12:34:41]Write to MH i2c: F0 00 00 1A 0D 16 [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: F0 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: F0 09 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: F0 09 00 1A 0D 00 62 33 1E 67 47 1B 1E 67 20 [12:34:41]GetLastDocTimeStamp 1730032478 [12:34:41]current date 1730032482 [12:34:41]FM_GetShiftState [12:34:41]SAM_PROTO_GetShiftState [12:34:41]wFMCommunicate request_size=4 [12:34:41]MH_SAM_APDU [12:34:41]CAPDU: 80 13 01 00 [12:34:41]Write to MH i2c: E2 08 00 1B 0D 80 13 01 00 00 00 00 00 A5 [12:34:41]Write i2c OK [12:34:41]MH_I2C_Read... [12:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:41]Read from MH i2c: E2 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 0E 00 [12:34:41]MH_I2C_Read... [12:34:41]Read from MH i2c: E2 0E 00 1B 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A7 [12:34:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:34:41]wFMCommunicate OK [12:34:41]SAM_PROTO_GetShiftState done [12:34:41]FM_GetShiftState done [12:34:41]opened in 1729987312 [12:34:41]opened+sec_in_day 1730073712 [12:34:41]quantity*price = 100015 [12:34:41]sum+1 = 100017 [12:34:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 219 27.10.2024 12:34 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201927 ФПД: 24974371967097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123442&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201927&fm=24974371967097&tin=02508201610067®Number=0000000000091777&sum=100000 [12:34:43]StoreToDocumentArchive [12:34:43]shift 544 fd 201927 [12:34:43]save to /storage/0544/doc_00201927 [12:34:43]save last doc name /storage/0544/doc_00201927 to /storage/kkm_last_doc_name [12:34:43]save OK [12:34:43]Clear old archive folders... [12:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:43]tlvbuf is 011BDE50 [12:34:43]SAM_PROTO_ClearQueue [12:34:43]wFMCommunicate request_size=4 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 09 00 00 [12:34:43]Write to MH i2c: E2 08 00 28 0D 80 09 00 00 00 00 00 00 A7 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 03 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [12:34:43]RAPDU: 90 00 [12:34:43]wFMCommunicate OK [12:34:43]SAM_PROTO_ClearQueue done [12:34:43]KKMCreateOFDPacket [12:34:43]OFDProtocolAddRootSTLVToBuf [12:34:43]FM_MakeSignedData [12:34:43]FM_MakeSignedData [12:34:43]SAM_PROTO_SignData [12:34:43]wFMCommunicate request_size=4 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 0D 01 02 [12:34:43]Write to MH i2c: E2 08 00 29 0D 80 0D 01 02 00 00 00 00 AF [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 03 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 03 00 29 0D 00 90 00 AA [12:34:43]RAPDU: 90 00 [12:34:43]wFMCommunicate OK [12:34:43]wFMCommunicate request_size=255 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DB 00 00 00 F4 03 04 00 62 33 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 14 03 00 35 04 06 00 16 [12:34:43]Write to MH i2c: E2 02 01 2A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DB 00 00 00 F4 03 04 00 62 33 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 14 03 00 35 04 06 00 16 00 00 48 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 03 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 03 00 2A 0D 00 90 00 AB [12:34:43]RAPDU: 90 00 [12:34:43]wFMCommunicate OK [12:34:43]wFMCommunicate request_size=10 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 0D 02 02 05 B6 CC 91 D0 79 [12:34:43]Write to MH i2c: E2 0D 00 2B 0D 80 0D 02 02 05 00 B6 CC 91 D0 79 00 00 18 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 03 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [12:34:43]RAPDU: 90 00 [12:34:43]wFMCommunicate OK [12:34:43]wFMCommunicate request_size=4 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 0D 03 02 [12:34:43]Write to MH i2c: E2 08 00 2C 0D 80 0D 03 02 00 00 00 00 B4 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 0B 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 0B 00 2C 0D 00 3D DE 78 96 89 86 54 B6 90 00 F7 [12:34:43]RAPDU: 3D DE 78 96 89 86 54 B6 90 00 [12:34:43]wFMCommunicate OK [12:34:43]SAM_PROTO_SignData done [12:34:43]FM_MakeSignedData done [12:34:43]CreateOFDProtocolMessage [12:34:43]wFMCommunicate request_size=4 [12:34:43]MH_SAM_APDU [12:34:43]CAPDU: 80 11 00 00 [12:34:43]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:43]Read from MH i2c: E2 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 17 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [12:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:34:43]wFMCommunicate OK [12:34:43]CreateOFDProtocolMessage done [12:34:43]OFDSenderStorePacket 201927 [12:34:43]StoreOFDPacket docnum=201927 [12:34:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1B D4 07 01 34 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DB 00 00 00 F4 03 04 00 62 33 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 14 03 00 35 04 06 00 16 B6 CC 91 D0 79 3D DE 78 96 89 86 54 B6 [12:34:43]CheckFolder [12:34:43]dirname=/storage/ofd_packets [12:34:43]CheckFolder done [12:34:43]ProducePacketName [12:34:43]name=ofd_packets/00201927 [12:34:43]NVStorageSaveData ofd_packets/00201927 [12:34:43]File name is /storage/ofd_packets/00201927 [12:34:43]Write 301 bytes [12:34:43]NVStorageSaveData done [12:34:43]OFDSenderStorePacket done [12:34:43]KKMCreateOFDPacket done [12:34:43]NVStorageSaveData kkm_last_timestamp [12:34:43]File name is /storage/kkm_last_timestamp [12:34:43]Write 4 bytes [12:34:43]NVStorageSaveData done [12:34:43]ExternCall_PrintAddStr [12:34:43]wPrintStart [12:34:43]Write to MH i2c: 01 00 00 2E 0D 3B [12:34:43]Write i2c OK [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 07 00 [12:34:43]MH_I2C_Read... [12:34:43]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [12:34:43]RasterBufferAndPrint [12:34:43]line Счет N : (1)449687 [12:34:43]line ИНН: 02508201610067 [12:34:43]line Контрольно-Кассовый Чек [12:34:43]line ПРОДАЖА [12:34:43]line ТРК (МРК, ГНК) : 31 [12:34:43]line Товар: 2710124130 [12:34:43]line Аи-92-К-2 [12:34:43]line 14.950 * 66.90 [12:34:43]line = 1000.16 [12:34:43]line НДС 12% НСП 1% [12:34:43]line > о реализуемом товаре [12:34:43]line ОКРУГЛЕНИЕ: -0.16 [12:34:43]line ИТОГО: 1000.00 [12:34:43]line Внесено: 1000.00 [12:34:43]line СДАЧА: 0.00 [12:34:43]line НСП 1% : 8.85 [12:34:43]line НДС 12% : 106.21 [12:34:43]line Наличными: 1000.00 [12:34:43]line Безнал.: 0.00 [12:34:43]line Место: АЗС № 171 "Партнер Нефть" [12:34:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:34:43]line СНО: Общий режим [12:34:43]line Чек 219 27.10.2024 12:34 [12:34:43]line Смена: 544 ФФД: 1.0 [12:34:43]line ЗНМ: 0300000109 [12:34:43]line РНМ: 0000000000091777 [12:34:43]line Версия ККМ: 001 [12:34:43]line ФМ: 0000000000871756 [12:34:43]line ФД: 201927 [12:34:43]line ФПД: 24974371967097 [12:34:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123442&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201927&fm=24974371967097&tin=02508201610067®Number=0000000000091777&sum=100000 [12:34:43]written 0, free lines is 4095 [12:34:43]OFD Sender: Processing packet 201927 [packets to send 112, broken 111] [12:34:43]ProducePacketName [12:34:43]name=ofd_packets/00201927 [12:34:43]OFD Sender: To server: pG, [12:34:43]CommunicateWithHost lk.salyk.kg:30040 [12:34:43]ConnectInit lk.salyk.kg [12:34:43]Connected sock=11 [12:34:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1B D4 07 01 34 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DB 00 00 00 F4 03 04 00 62 33 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 14 03 00 35 04 06 00 16 B6 CC 91 D0 79 3D DE 78 96 89 86 54 B6 [12:34:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 71 12 47 00 3E 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 14 03 00 F4 03 04 00 1C DF 1D 67 B6 04 01 00 00 ED C0 6D 83 1B 37 FC 36 [12:34:44]CommunicateWithHost err = 0 [12:34:44]CheckOFDResponse [12:34:44]1017 (14) - 77093643461234 [12:34:44]1041 (16) - 0000000000871756 [12:34:44]1040 (4) - 201927 [12:34:44]1012 (4) - 27.10.2024 06:35 [12:34:44]1206 (1) - 0 [12:34:44]OFD Sender: Remove packet 201927 [12:34:44]ProducePacketName [12:34:44]name=ofd_packets/00201927 [12:34:44]NVStorageDeleteData [12:34:44]Write to MH i2c: 01 00 00 59 0D 66 [12:34:44]Write i2c OK [12:34:44]MH_I2C_Read... [12:34:44]Read from MH i2c: 01 [12:34:44]MH_I2C_Read... [12:34:44]Read from MH i2c: 01 07 00 [12:34:44]MH_I2C_Read... [12:34:44]Read from MH i2c: 01 07 00 59 0D 00 00 00 00 00 8D 0C 06 [12:34:44]RasterBufferAndPrint [12:34:44]line [12:34:44]line [12:34:44]line [12:34:44]line [12:34:44]line [12:34:44]written 0, free lines is 3224 [12:34:44]MH_Cut [12:34:44]Write to MH i2c: D1 01 00 60 0D 01 3F [12:34:44]Write i2c OK [12:34:44]MH_I2C_Read... [12:34:44]Read from MH i2c: D1 [12:34:44]MH_I2C_Read... [12:34:44]Read from MH i2c: D1 01 00 [12:34:44]MH_I2C_Read... [12:34:44]Read from MH i2c: D1 01 00 60 0D 00 3E [12:34:44]Write to MH i2c: 01 00 00 61 0D 6E [12:34:44]Write i2c OK [12:34:44]MH_I2C_Read... [12:34:44]OFD Sender: No OFD packet to send [12:34:45]*** Cut start [12:34:45]*** Purtial cut [12:34:45]*** Stage 1: CUTSNS_PIN = 1 [12:34:45]Read from MH i2c: 01 [12:34:45]MH_I2C_Read... [12:34:45]*** Stop cut motor [12:34:45]*** Cut end [12:34:45]Read from MH i2c: 01 07 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: 01 07 00 61 0D 00 00 00 00 00 FF 0F 83 [12:34:45]process_action close_receipt done [12:34:45]requested_data is exist [12:34:45]produce_requested_data [12:34:45]requested_item fm.sn is exist - process it [12:34:45]wFMCommunicate request_size=4 [12:34:45]MH_SAM_APDU [12:34:45]CAPDU: 80 11 00 00 [12:34:45]Write to MH i2c: E2 08 00 62 0D 80 11 00 00 00 00 00 00 E9 [12:34:45]Write i2c OK [12:34:45]MH_I2C_Read... [12:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:45]Read from MH i2c: E2 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 17 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 17 00 62 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3E [12:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:34:45]wFMCommunicate OK [12:34:45]requested_item fd.num is exist - process it [12:34:45]SAM_PROTO_GetFieldsCounters [12:34:45]wFMCommunicate request_size=4 [12:34:45]MH_SAM_APDU [12:34:45]CAPDU: 80 13 00 00 [12:34:45]Write to MH i2c: E2 08 00 63 0D 80 13 00 00 00 00 00 00 EC [12:34:45]Write i2c OK [12:34:45]MH_I2C_Read... [12:34:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:45]Read from MH i2c: E2 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 62 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 62 00 63 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [12:34:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:45]wFMCommunicate OK [12:34:45]SAM_PROTO_GetFieldsCounters done [12:34:45]requested_item shift.num is exist - process it [12:34:45]requested_item shift.opened is exist - process it [12:34:45]req_shift_opened [12:34:45]FM_GetShiftState [12:34:45]SAM_PROTO_GetShiftState [12:34:45]wFMCommunicate request_size=4 [12:34:45]MH_SAM_APDU [12:34:45]CAPDU: 80 13 01 00 [12:34:45]Write to MH i2c: E2 08 00 64 0D 80 13 01 00 00 00 00 00 EE [12:34:45]Write i2c OK [12:34:45]MH_I2C_Read... [12:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:45]Read from MH i2c: E2 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 0E 00 [12:34:45]MH_I2C_Read... [12:34:45]Read from MH i2c: E2 0E 00 64 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F0 [12:34:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:34:45]wFMCommunicate OK [12:34:45]SAM_PROTO_GetShiftState done [12:34:45]FM_GetShiftState done [12:34:45]req_shift_opened done [12:34:45]requested_item shift.open_date is exist - process it [12:34:45]req_shift_open_date [12:34:45]req_shift_open_date done [12:34:45]produce_requested_data done [12:34:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201927,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:34:45]process_action_free close_receipt [12:34:45]json_value_free [12:34:45]json_value_free done [12:34:45]process_json_proto returns [12:34:45]Send response to host [12:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201927,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:34:45]free response buf [12:34:45]execute_script done [12:34:45]execute_script returns [12:34:45]free content buf [12:34:45]Sock 10.Close socket [12:34:45]Sock 10.Thread stoped [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:35]accept exits with 9 [12:37:35]New connection [12:37:35]New thread 3066498404 created [12:37:35]Thread 3066641764 joined [12:37:35]Waiting for new connection... [12:37:35] Sock 9.Parse request [12:37:35]Sock 9.Check first char [12:37:35]Sock 9.First char is OK [12:37:35]request: POST /json_proto HTTP/1.0 [12:37:35]Method: POST [12:37:35]URL: /json_proto [12:37:35]Method is POST - this is cgi request [12:37:35]url: /json_proto [12:37:35]query_string will be loaded in cgi processing [12:37:35]execute_cgi json_proto POST (null) [12:37:35]execute_cgi path=json_proto method=POST [12:37:35]POST find Content-Length [12:37:35]Host: 172.17.63.195:8080 [12:37:35]Content-Length: 675 [12:37:35]Content-Type: application/json [12:37:35] [12:37:35]POST finish read [12:37:35]Found Content-Length = 675 [12:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:35]execute_script... [12:37:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:35]POST & json_proto [12:37:35]process_json_proto [12:37:35]json parsed OK: [12:37:35]protocol is kg_v1.0 [12:37:35]action value=close_receipt [12:37:35]process_action close_receipt [12:37:35]cmd_close_receipt [12:37:35]MH_GetDate [12:37:35]Write to MH i2c: F0 00 00 65 0D 61 [12:37:35]Write i2c OK [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: F0 [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: F0 09 00 [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: F0 09 00 65 0D 00 0F 34 1E 67 47 1B 1E 67 19 [12:37:35]GetLastDocTimeStamp 1730032482 [12:37:35]current date 1730032655 [12:37:35]FM_GetShiftState [12:37:35]SAM_PROTO_GetShiftState [12:37:35]wFMCommunicate request_size=4 [12:37:35]MH_SAM_APDU [12:37:35]CAPDU: 80 13 01 00 [12:37:35]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [12:37:35]Write i2c OK [12:37:35]MH_I2C_Read... [12:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:35]Read from MH i2c: E2 [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: E2 0E 00 [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: E2 0E 00 66 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F2 [12:37:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:37:35]wFMCommunicate OK [12:37:35]SAM_PROTO_GetShiftState done [12:37:35]FM_GetShiftState done [12:37:35]opened in 1729987312 [12:37:35]opened+sec_in_day 1730073712 [12:37:35]quantity*price = 80010 [12:37:35]sum+1 = 80011 [12:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 220 27.10.2024 12:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201928 ФПД: 86576390908950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123736&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201928&fm=86576390908950&tin=02508201610067®Number=0000000000091777&sum=80000 [12:37:36]StoreToDocumentArchive [12:37:36]shift 544 fd 201928 [12:37:36]save to /storage/0544/doc_00201928 [12:37:36]save last doc name /storage/0544/doc_00201928 to /storage/kkm_last_doc_name [12:37:36]save OK [12:37:36]Clear old archive folders... [12:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:37:36]tlvbuf is 01232870 [12:37:36]SAM_PROTO_ClearQueue [12:37:36]wFMCommunicate request_size=4 [12:37:36]MH_SAM_APDU [12:37:36]CAPDU: 80 09 00 00 [12:37:36]Write to MH i2c: E2 08 00 73 0D 80 09 00 00 00 00 00 00 F2 [12:37:36]Write i2c OK [12:37:36]MH_I2C_Read... [12:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:36]Read from MH i2c: E2 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 03 00 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 03 00 73 0D 00 90 00 F4 [12:37:36]RAPDU: 90 00 [12:37:36]wFMCommunicate OK [12:37:36]SAM_PROTO_ClearQueue done [12:37:36]KKMCreateOFDPacket [12:37:36]OFDProtocolAddRootSTLVToBuf [12:37:36]FM_MakeSignedData [12:37:36]FM_MakeSignedData [12:37:36]SAM_PROTO_SignData [12:37:36]wFMCommunicate request_size=4 [12:37:36]MH_SAM_APDU [12:37:36]CAPDU: 80 0D 01 02 [12:37:36]Write to MH i2c: E2 08 00 74 0D 80 0D 01 02 00 00 00 00 FA [12:37:36]Write i2c OK [12:37:36]MH_I2C_Read... [12:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:36]Read from MH i2c: E2 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 03 00 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [12:37:36]RAPDU: 90 00 [12:37:36]wFMCommunicate OK [12:37:36]wFMCommunicate request_size=255 [12:37:36]MH_SAM_APDU [12:37:36]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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 DC 00 00 00 F4 03 04 00 10 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 14 03 00 35 04 06 00 4E BD A3 06 [12:37:36]Write to MH i2c: E2 02 01 75 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 DC 00 00 00 F4 03 04 00 10 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 14 03 00 35 04 06 00 4E BD A3 06 00 00 11 [12:37:36]Write i2c OK [12:37:36]MH_I2C_Read... [12:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:36]Read from MH i2c: E2 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 03 00 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [12:37:36]RAPDU: 90 00 [12:37:36]wFMCommunicate OK [12:37:36]wFMCommunicate request_size=7 [12:37:36]MH_SAM_APDU [12:37:36]CAPDU: 80 0D 02 02 02 AC 16 [12:37:36]Write to MH i2c: E2 0A 00 76 0D 80 0D 02 02 02 00 AC 16 00 00 C3 [12:37:36]Write i2c OK [12:37:36]MH_I2C_Read... [12:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:37]Read from MH i2c: E2 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: E2 03 00 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [12:37:37]RAPDU: 90 00 [12:37:37]wFMCommunicate OK [12:37:37]wFMCommunicate request_size=4 [12:37:37]MH_SAM_APDU [12:37:37]CAPDU: 80 0D 03 02 [12:37:37]Write to MH i2c: E2 08 00 77 0D 80 0D 03 02 00 00 00 00 FF [12:37:37]Write i2c OK [12:37:37]MH_I2C_Read... [12:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:37]Read from MH i2c: E2 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: E2 0B 00 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: E2 0B 00 77 0D 00 A1 CC 0A 8A 3E 5E 19 FE 90 00 B4 [12:37:37]RAPDU: A1 CC 0A 8A 3E 5E 19 FE 90 00 [12:37:37]wFMCommunicate OK [12:37:37]SAM_PROTO_SignData done [12:37:37]FM_MakeSignedData done [12:37:37]CreateOFDProtocolMessage [12:37:37]wFMCommunicate request_size=4 [12:37:37]MH_SAM_APDU [12:37:37]CAPDU: 80 11 00 00 [12:37:37]Write to MH i2c: E2 08 00 78 0D 80 11 00 00 00 00 00 00 FF [12:37:37]Write i2c OK [12:37:37]MH_I2C_Read... [12:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:37]Read from MH i2c: E2 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: E2 17 00 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: E2 17 00 78 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [12:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:37:37]wFMCommunicate OK [12:37:37]CreateOFDProtocolMessage done [12:37:37]OFDSenderStorePacket 201928 [12:37:37]StoreOFDPacket docnum=201928 [12:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C8 FE 04 01 F1 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 DC 00 00 00 F4 03 04 00 10 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 14 03 00 35 04 06 00 4E BD A3 06 AC 16 A1 CC 0A 8A 3E 5E 19 FE [12:37:37]CheckFolder [12:37:37]dirname=/storage/ofd_packets [12:37:37]CheckFolder done [12:37:37]ProducePacketName [12:37:37]name=ofd_packets/00201928 [12:37:37]NVStorageSaveData ofd_packets/00201928 [12:37:37]File name is /storage/ofd_packets/00201928 [12:37:37]Write 298 bytes [12:37:37]NVStorageSaveData done [12:37:37]OFDSenderStorePacket done [12:37:37]KKMCreateOFDPacket done [12:37:37]NVStorageSaveData kkm_last_timestamp [12:37:37]File name is /storage/kkm_last_timestamp [12:37:37]Write 4 bytes [12:37:37]NVStorageSaveData done [12:37:37]ExternCall_PrintAddStr [12:37:37]wPrintStart [12:37:37]Write to MH i2c: 01 00 00 79 0D 86 [12:37:37]Write i2c OK [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: 01 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: 01 07 00 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 FF 0F 9B [12:37:37]RasterBufferAndPrint [12:37:37]line Счет N : (1)449689 [12:37:37]line ИНН: 02508201610067 [12:37:37]line Контрольно-Кассовый Чек [12:37:37]line ПРОДАЖА [12:37:37]line ТРК (МРК, ГНК) : 21 [12:37:37]line Товар: 2710194210 [12:37:37]line ДТ-К-2 [12:37:37]line 10.500 * 76.20 [12:37:37]line = 800.10 [12:37:37]line НДС 12% НСП 1% [12:37:37]line > о реализуемом товаре [12:37:37]line ОКРУГЛЕНИЕ: -0.10 [12:37:37]line ИТОГО: 800.00 [12:37:37]line Внесено: 800.00 [12:37:37]line СДАЧА: 0.00 [12:37:37]line НСП 1% : 7.08 [12:37:37]line НДС 12% : 84.97 [12:37:37]line Наличными: 800.00 [12:37:37]line Безнал.: 0.00 [12:37:37]line Место: АЗС № 171 "Партнер Нефть" [12:37:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:37:37]line СНО: Общий режим [12:37:37]line Чек 220 27.10.2024 12:37 [12:37:37]line Смена: 544 ФФД: 1.0 [12:37:37]line ЗНМ: 0300000109 [12:37:37]line РНМ: 0000000000091777 [12:37:37]line Версия ККМ: 001 [12:37:37]line ФМ: 0000000000871756 [12:37:37]line ФД: 201928 [12:37:37]line ФПД: 86576390908950 [12:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123736&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201928&fm=86576390908950&tin=02508201610067®Number=0000000000091777&sum=80000 [12:37:37]written 0, free lines is 4095 [12:37:37]OFD Sender: Processing packet 201928 [packets to send 112, broken 111] [12:37:37]ProducePacketName [12:37:37]name=ofd_packets/00201928 [12:37:37]OFD Sender: To server: pG, [12:37:37]CommunicateWithHost lk.salyk.kg:30040 [12:37:37]ConnectInit lk.salyk.kg [12:37:37]Connected sock=11 [12:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C8 FE 04 01 F1 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 DC 00 00 00 F4 03 04 00 10 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 14 03 00 35 04 06 00 4E BD A3 06 AC 16 A1 CC 0A 8A 3E 5E 19 FE [12:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D0 5D 47 00 81 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 14 03 00 F4 03 04 00 CA DF 1D 67 B6 04 01 00 00 E4 E6 38 11 61 6A 2F 34 [12:37:37]CommunicateWithHost err = 0 [12:37:37]CheckOFDResponse [12:37:37]1017 (14) - 77093643461234 [12:37:37]1041 (16) - 0000000000871756 [12:37:37]1040 (4) - 201928 [12:37:37]1012 (4) - 27.10.2024 06:38 [12:37:37]1206 (1) - 0 [12:37:37]OFD Sender: Remove packet 201928 [12:37:37]ProducePacketName [12:37:37]name=ofd_packets/00201928 [12:37:37]NVStorageDeleteData [12:37:37]Write to MH i2c: 01 00 00 A4 0D B1 [12:37:37]Write i2c OK [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: 01 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: 01 07 00 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: 01 07 00 A4 0D 00 00 00 00 00 A5 0C 69 [12:37:37]RasterBufferAndPrint [12:37:37]line [12:37:37]line [12:37:37]line [12:37:37]line [12:37:37]line [12:37:37]written 0, free lines is 3258 [12:37:37]MH_Cut [12:37:37]Write to MH i2c: D1 01 00 AB 0D 01 8A [12:37:37]Write i2c OK [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: D1 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: D1 01 00 [12:37:37]MH_I2C_Read... [12:37:37]Read from MH i2c: D1 01 00 AB 0D 00 89 [12:37:37]Write to MH i2c: 01 00 00 AC 0D B9 [12:37:37]Write i2c OK [12:37:37]MH_I2C_Read... [12:37:38]OFD Sender: No OFD packet to send [12:37:38]*** Cut start [12:37:38]*** Purtial cut [12:37:38]*** Stage 1: CUTSNS_PIN = 1 [12:37:38]Read from MH i2c: 01 [12:37:38]MH_I2C_Read... [12:37:38]*** Stop cut motor [12:37:38]*** Cut end [12:37:38]Read from MH i2c: 01 07 00 [12:37:38]MH_I2C_Read... [12:37:38]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0F CE [12:37:38]process_action close_receipt done [12:37:38]requested_data is exist [12:37:38]produce_requested_data [12:37:38]requested_item fm.sn is exist - process it [12:37:38]wFMCommunicate request_size=4 [12:37:38]MH_SAM_APDU [12:37:38]CAPDU: 80 11 00 00 [12:37:38]Write to MH i2c: E2 08 00 AD 0D 80 11 00 00 00 00 00 00 34 [12:37:38]Write i2c OK [12:37:38]MH_I2C_Read... [12:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:38]Read from MH i2c: E2 [12:37:38]MH_I2C_Read... [12:37:38]Read from MH i2c: E2 17 00 [12:37:38]MH_I2C_Read... [12:37:38]Read from MH i2c: E2 17 00 AD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 89 [12:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:37:38]wFMCommunicate OK [12:37:38]requested_item fd.num is exist - process it [12:37:38]SAM_PROTO_GetFieldsCounters [12:37:38]wFMCommunicate request_size=4 [12:37:38]MH_SAM_APDU [12:37:38]CAPDU: 80 13 00 00 [12:37:38]Write to MH i2c: E2 08 00 AE 0D 80 13 00 00 00 00 00 00 37 [12:37:38]Write i2c OK [12:37:38]MH_I2C_Read... [12:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:39]Read from MH i2c: E2 [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: E2 62 00 [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: E2 62 00 AE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [12:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:39]wFMCommunicate OK [12:37:39]SAM_PROTO_GetFieldsCounters done [12:37:39]requested_item shift.num is exist - process it [12:37:39]requested_item shift.opened is exist - process it [12:37:39]req_shift_opened [12:37:39]FM_GetShiftState [12:37:39]SAM_PROTO_GetShiftState [12:37:39]wFMCommunicate request_size=4 [12:37:39]MH_SAM_APDU [12:37:39]CAPDU: 80 13 01 00 [12:37:39]Write to MH i2c: E2 08 00 AF 0D 80 13 01 00 00 00 00 00 39 [12:37:39]Write i2c OK [12:37:39]MH_I2C_Read... [12:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:39]Read from MH i2c: E2 [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: E2 0E 00 [12:37:39]MH_I2C_Read... [12:37:39]Read from MH i2c: E2 0E 00 AF 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3B [12:37:39]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:37:39]wFMCommunicate OK [12:37:39]SAM_PROTO_GetShiftState done [12:37:39]FM_GetShiftState done [12:37:39]req_shift_opened done [12:37:39]requested_item shift.open_date is exist - process it [12:37:39]req_shift_open_date [12:37:39]req_shift_open_date done [12:37:39]produce_requested_data done [12:37:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201928,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:37:39]process_action_free close_receipt [12:37:39]json_value_free [12:37:39]json_value_free done [12:37:39]process_json_proto returns [12:37:39]Send response to host [12:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201928,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:37:39]free response buf [12:37:39]execute_script done [12:37:39]execute_script returns [12:37:39]free content buf [12:37:39]Sock 9.Close socket [12:37:39]Sock 9.Thread stoped [12:37:41]ConnectInit Can't connect to host [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:48]accept exits with 10 [12:37:48]New connection [12:37:48]New thread 3066641764 created [12:37:48]Thread 3066498404 joined [12:37:48]Waiting for new connection... [12:37:48] Sock 10.Parse request [12:37:48]Sock 10.Check first char [12:37:48]Sock 10.First char is OK [12:37:48]request: POST /json_proto HTTP/1.0 [12:37:48]Method: POST [12:37:48]URL: /json_proto [12:37:48]Method is POST - this is cgi request [12:37:48]url: /json_proto [12:37:48]query_string will be loaded in cgi processing [12:37:48]execute_cgi json_proto POST (null) [12:37:48]execute_cgi path=json_proto method=POST [12:37:48]POST find Content-Length [12:37:48]Host: 172.17.63.195:8080 [12:37:48]Content-Length: 677 [12:37:48]Content-Type: application/json [12:37:48] [12:37:48]POST finish read [12:37:48]Found Content-Length = 677 [12:37:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:48]execute_script... [12:37:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:48]POST & json_proto [12:37:48]process_json_proto [12:37:48]json parsed OK: [12:37:48]protocol is kg_v1.0 [12:37:48]action value=close_receipt [12:37:48]process_action close_receipt [12:37:48]cmd_close_receipt [12:37:48]MH_GetDate [12:37:48]Write to MH i2c: F0 00 00 B0 0D AC [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: F0 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: F0 09 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: F0 09 00 B0 0D 00 1D 34 1E 67 47 1B 1E 67 72 [12:37:48]GetLastDocTimeStamp 1730032656 [12:37:48]current date 1730032669 [12:37:48]FM_GetShiftState [12:37:48]SAM_PROTO_GetShiftState [12:37:48]wFMCommunicate request_size=4 [12:37:48]MH_SAM_APDU [12:37:48]CAPDU: 80 13 01 00 [12:37:48]Write to MH i2c: E2 08 00 B1 0D 80 13 01 00 00 00 00 00 3B [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:48]Read from MH i2c: E2 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 0E 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: E2 0E 00 B1 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3D [12:37:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:37:48]wFMCommunicate OK [12:37:48]SAM_PROTO_GetShiftState done [12:37:48]FM_GetShiftState done [12:37:48]opened in 1729987312 [12:37:48]opened+sec_in_day 1730073712 [12:37:48]quantity*price = 40006 [12:37:48]sum+1 = 40007 [12:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 221 27.10.2024 12:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201929 ФПД: 48177665160927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123749&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201929&fm=48177665160927&tin=02508201610067®Number=0000000000091777&sum=40000 [12:37:50]StoreToDocumentArchive [12:37:50]shift 544 fd 201929 [12:37:50]save to /storage/0544/doc_00201929 [12:37:50]save last doc name /storage/0544/doc_00201929 to /storage/kkm_last_doc_name [12:37:50]save OK [12:37:50]Clear old archive folders... [12:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:50]tlvbuf is 012212C0 [12:37:50]SAM_PROTO_ClearQueue [12:37:50]wFMCommunicate request_size=4 [12:37:50]MH_SAM_APDU [12:37:50]CAPDU: 80 09 00 00 [12:37:50]Write to MH i2c: E2 08 00 BE 0D 80 09 00 00 00 00 00 00 3D [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:50]Read from MH i2c: E2 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 03 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [12:37:50]RAPDU: 90 00 [12:37:50]wFMCommunicate OK [12:37:50]SAM_PROTO_ClearQueue done [12:37:50]KKMCreateOFDPacket [12:37:50]OFDProtocolAddRootSTLVToBuf [12:37:50]FM_MakeSignedData [12:37:50]FM_MakeSignedData [12:37:50]SAM_PROTO_SignData [12:37:50]wFMCommunicate request_size=4 [12:37:50]MH_SAM_APDU [12:37:50]CAPDU: 80 0D 01 02 [12:37:50]Write to MH i2c: E2 08 00 BF 0D 80 0D 01 02 00 00 00 00 45 [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:50]Read from MH i2c: E2 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 03 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [12:37:50]RAPDU: 90 00 [12:37:50]wFMCommunicate OK [12:37:50]wFMCommunicate request_size=255 [12:37:50]MH_SAM_APDU [12:37:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 1D 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 14 03 00 35 04 06 00 2B [12:37:50]Write to MH i2c: E2 02 01 C0 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 1D 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 14 03 00 35 04 06 00 2B 00 00 88 [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:50]Read from MH i2c: E2 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 03 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [12:37:50]RAPDU: 90 00 [12:37:50]wFMCommunicate OK [12:37:50]wFMCommunicate request_size=10 [12:37:50]MH_SAM_APDU [12:37:50]CAPDU: 80 0D 02 02 05 D1 3C 9E 36 DF [12:37:50]Write to MH i2c: E2 0D 00 C1 0D 80 0D 02 02 05 00 D1 3C 9E 36 DF 00 00 12 [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:50]Read from MH i2c: E2 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 03 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [12:37:50]RAPDU: 90 00 [12:37:50]wFMCommunicate OK [12:37:50]wFMCommunicate request_size=4 [12:37:50]MH_SAM_APDU [12:37:50]CAPDU: 80 0D 03 02 [12:37:50]Write to MH i2c: E2 08 00 C2 0D 80 0D 03 02 00 00 00 00 4A [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:50]Read from MH i2c: E2 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 0B 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 0B 00 C2 0D 00 4F AD FC E6 18 A8 5D 12 90 00 58 [12:37:50]RAPDU: 4F AD FC E6 18 A8 5D 12 90 00 [12:37:50]wFMCommunicate OK [12:37:50]SAM_PROTO_SignData done [12:37:50]FM_MakeSignedData done [12:37:50]CreateOFDProtocolMessage [12:37:50]wFMCommunicate request_size=4 [12:37:50]MH_SAM_APDU [12:37:50]CAPDU: 80 11 00 00 [12:37:50]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:50]Read from MH i2c: E2 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 17 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [12:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:37:50]wFMCommunicate OK [12:37:50]CreateOFDProtocolMessage done [12:37:50]OFDSenderStorePacket 201929 [12:37:50]StoreOFDPacket docnum=201929 [12:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC CC 07 01 FF DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 1D 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 14 03 00 35 04 06 00 2B D1 3C 9E 36 DF 4F AD FC E6 18 A8 5D 12 [12:37:50]CheckFolder [12:37:50]dirname=/storage/ofd_packets [12:37:50]CheckFolder done [12:37:50]ProducePacketName [12:37:50]name=ofd_packets/00201929 [12:37:50]NVStorageSaveData ofd_packets/00201929 [12:37:50]File name is /storage/ofd_packets/00201929 [12:37:50]Write 301 bytes [12:37:50]NVStorageSaveData done [12:37:50]OFDSenderStorePacket done [12:37:50]KKMCreateOFDPacket done [12:37:50]NVStorageSaveData kkm_last_timestamp [12:37:50]File name is /storage/kkm_last_timestamp [12:37:50]Write 4 bytes [12:37:50]NVStorageSaveData done [12:37:50]ExternCall_PrintAddStr [12:37:50]wPrintStart [12:37:50]Write to MH i2c: 01 00 00 C4 0D D1 [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: 01 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: 01 07 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [12:37:50]RasterBufferAndPrint [12:37:50]line Счет N : (1)449690 [12:37:50]line ИНН: 02508201610067 [12:37:50]line Контрольно-Кассовый Чек [12:37:50]line ПРОДАЖА [12:37:50]line ТРК (МРК, ГНК) : 41 [12:37:50]line Товар: 2710124130 [12:37:50]line Аи-92-К-2 [12:37:50]line 5.980 * 66.90 [12:37:50]line = 400.06 [12:37:50]line НДС 12% НСП 1% [12:37:50]line > о реализуемом товаре [12:37:50]line ОКРУГЛЕНИЕ: -0.06 [12:37:50]line ИТОГО: 400.00 [12:37:50]line Внесено: 400.00 [12:37:50]line СДАЧА: 0.00 [12:37:50]line НСП 1% : 3.54 [12:37:50]line НДС 12% : 42.48 [12:37:50]line Наличными: 400.00 [12:37:50]line Безнал.: 0.00 [12:37:50]line Место: АЗС № 171 "Партнер Нефть" [12:37:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:37:50]line СНО: Общий режим [12:37:50]line Чек 221 27.10.2024 12:37 [12:37:50]line Смена: 544 ФФД: 1.0 [12:37:50]line ЗНМ: 0300000109 [12:37:50]line РНМ: 0000000000091777 [12:37:50]line Версия ККМ: 001 [12:37:50]line ФМ: 0000000000871756 [12:37:50]line ФД: 201929 [12:37:50]line ФПД: 48177665160927 [12:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123749&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201929&fm=48177665160927&tin=02508201610067®Number=0000000000091777&sum=40000 [12:37:50]OFD Sender: Processing packet 201929 [packets to send 112, broken 111] [12:37:50]ProducePacketName [12:37:50]name=ofd_packets/00201929 [12:37:50]OFD Sender: To server: pG, [12:37:50]CommunicateWithHost lk.salyk.kg:30040 [12:37:50]ConnectInit lk.salyk.kg [12:37:50]written 0, free lines is 4095 [12:37:51]Connected sock=9 [12:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC CC 07 01 FF DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 1D 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 14 03 00 35 04 06 00 2B D1 3C 9E 36 DF 4F AD FC E6 18 A8 5D 12 [12:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 76 F4 47 00 26 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 14 03 00 F4 03 04 00 D7 DF 1D 67 B6 04 01 00 00 16 30 C6 B3 60 DE 33 FD [12:37:51]CommunicateWithHost err = 0 [12:37:51]CheckOFDResponse [12:37:51]1017 (14) - 77093643461234 [12:37:51]1041 (16) - 0000000000871756 [12:37:51]1040 (4) - 201929 [12:37:51]1012 (4) - 27.10.2024 06:38 [12:37:51]1206 (1) - 0 [12:37:51]OFD Sender: Remove packet 201929 [12:37:51]ProducePacketName [12:37:51]name=ofd_packets/00201929 [12:37:51]NVStorageDeleteData [12:37:51]Write to MH i2c: 01 00 00 EF 0D FC [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: 01 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: 01 07 00 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 FB 0C 0A [12:37:51]RasterBufferAndPrint [12:37:51]line [12:37:51]line [12:37:51]line [12:37:51]line [12:37:51]line [12:37:51]written 0, free lines is 3353 [12:37:51]MH_Cut [12:37:51]Write to MH i2c: D1 01 00 F6 0D 01 D5 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: D1 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: D1 01 00 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: D1 01 00 F6 0D 00 D4 [12:37:51]Write to MH i2c: 01 00 00 F7 0D 04 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]OFD Sender: No OFD packet to send [12:37:52]*** Cut start [12:37:52]*** Purtial cut [12:37:52]*** Stage 1: CUTSNS_PIN = 1 [12:37:52]Read from MH i2c: 01 [12:37:52]MH_I2C_Read... [12:37:52]*** Stop cut motor [12:37:52]*** Cut end [12:37:52]Read from MH i2c: 01 07 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 FF 0F 19 [12:37:52]process_action close_receipt done [12:37:52]requested_data is exist [12:37:52]produce_requested_data [12:37:52]requested_item fm.sn is exist - process it [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 11 00 00 [12:37:52]Write to MH i2c: E2 08 00 F8 0D 80 11 00 00 00 00 00 00 7F [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 17 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 17 00 F8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [12:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:37:52]wFMCommunicate OK [12:37:52]requested_item fd.num is exist - process it [12:37:52]SAM_PROTO_GetFieldsCounters [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 13 00 00 [12:37:52]Write to MH i2c: E2 08 00 F9 0D 80 13 00 00 00 00 00 00 82 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 62 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 62 00 F9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [12:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:52]wFMCommunicate OK [12:37:52]SAM_PROTO_GetFieldsCounters done [12:37:52]requested_item shift.num is exist - process it [12:37:52]requested_item shift.opened is exist - process it [12:37:52]req_shift_opened [12:37:52]FM_GetShiftState [12:37:52]SAM_PROTO_GetShiftState [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 13 01 00 [12:37:52]Write to MH i2c: E2 08 00 FA 0D 80 13 01 00 00 00 00 00 84 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 0E 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 0E 00 FA 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 86 [12:37:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:37:53]wFMCommunicate OK [12:37:53]SAM_PROTO_GetShiftState done [12:37:53]FM_GetShiftState done [12:37:53]req_shift_opened done [12:37:53]requested_item shift.open_date is exist - process it [12:37:53]req_shift_open_date [12:37:53]req_shift_open_date done [12:37:53]produce_requested_data done [12:37:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201929,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:37:53]process_action_free close_receipt [12:37:53]json_value_free [12:37:53]json_value_free done [12:37:53]process_json_proto returns [12:37:53]Send response to host [12:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201929,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:37:53]free response buf [12:37:53]execute_script done [12:37:53]execute_script returns [12:37:53]free content buf [12:37:53]Sock 10.Close socket [12:37:53]Sock 10.Thread stoped [12:37:56]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:36]accept exits with 8 [12:39:36]New connection [12:39:36]New thread 3066498404 created [12:39:36]Thread 3066641764 joined [12:39:36]Waiting for new connection... [12:39:36] Sock 8.Parse request [12:39:36]Sock 8.Check first char [12:39:36]Sock 8.First char is OK [12:39:36]request: POST /json_proto HTTP/1.0 [12:39:36]Method: POST [12:39:36]URL: /json_proto [12:39:36]Method is POST - this is cgi request [12:39:36]url: /json_proto [12:39:36]query_string will be loaded in cgi processing [12:39:36]execute_cgi json_proto POST (null) [12:39:36]execute_cgi path=json_proto method=POST [12:39:36]POST find Content-Length [12:39:36]Host: 172.17.63.195:8080 [12:39:36]Content-Length: 767 [12:39:36]Content-Type: application/json [12:39:36] [12:39:36]POST finish read [12:39:36]Found Content-Length = 767 [12:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:36]execute_script... [12:39:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:36]POST & json_proto [12:39:36]process_json_proto [12:39:36]json parsed OK: [12:39:36]protocol is kg_v1.0 [12:39:36]action value=close_receipt [12:39:36]process_action close_receipt [12:39:36]cmd_close_receipt [12:39:36]MH_GetDate [12:39:36]Write to MH i2c: F0 00 00 FB 0D F7 [12:39:36]Write i2c OK [12:39:36]MH_I2C_Read... [12:39:36]Read from MH i2c: F0 [12:39:36]MH_I2C_Read... [12:39:36]Read from MH i2c: F0 09 00 [12:39:36]MH_I2C_Read... [12:39:36]Read from MH i2c: F0 09 00 FB 0D 00 89 34 1E 67 47 1B 1E 67 29 [12:39:36]GetLastDocTimeStamp 1730032669 [12:39:36]current date 1730032777 [12:39:36]FM_GetShiftState [12:39:36]SAM_PROTO_GetShiftState [12:39:36]wFMCommunicate request_size=4 [12:39:36]MH_SAM_APDU [12:39:36]CAPDU: 80 13 01 00 [12:39:36]Write to MH i2c: E2 08 00 FC 0D 80 13 01 00 00 00 00 00 86 [12:39:36]Write i2c OK [12:39:36]MH_I2C_Read... [12:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:36]Read from MH i2c: E2 [12:39:36]MH_I2C_Read... [12:39:36]Read from MH i2c: E2 0E 00 [12:39:36]MH_I2C_Read... [12:39:36]Read from MH i2c: E2 0E 00 FC 0D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 88 [12:39:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:39:36]wFMCommunicate OK [12:39:36]SAM_PROTO_GetShiftState done [12:39:36]FM_GetShiftState done [12:39:36]opened in 1729987312 [12:39:36]opened+sec_in_day 1730073712 [12:39:36]quantity*price = 70044 [12:39:36]sum+1 = 70045 [12:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 222 27.10.2024 12:39 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201930 ФПД: 109063686924397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123937&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201930&fm=109063686924397&tin=02508201610067®Number=0000000000091777&sum=70044 [12:39:37]StoreToDocumentArchive [12:39:37]shift 544 fd 201930 [12:39:37]save to /storage/0544/doc_00201930 [12:39:37]save last doc name /storage/0544/doc_00201930 to /storage/kkm_last_doc_name [12:39:37]save OK [12:39:37]Clear old archive folders... [12:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:37]tlvbuf is 011949D0 [12:39:37]SAM_PROTO_ClearQueue [12:39:37]wFMCommunicate request_size=4 [12:39:37]MH_SAM_APDU [12:39:37]CAPDU: 80 09 00 00 [12:39:37]Write to MH i2c: E2 08 00 09 0E 80 09 00 00 00 00 00 00 89 [12:39:37]Write i2c OK [12:39:37]MH_I2C_Read... [12:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:37]Read from MH i2c: E2 [12:39:37]MH_I2C_Read... [12:39:37]Read from MH i2c: E2 03 00 [12:39:37]MH_I2C_Read... [12:39:37]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [12:39:37]RAPDU: 90 00 [12:39:37]wFMCommunicate OK [12:39:37]SAM_PROTO_ClearQueue done [12:39:37]KKMCreateOFDPacket [12:39:37]OFDProtocolAddRootSTLVToBuf [12:39:37]FM_MakeSignedData [12:39:37]FM_MakeSignedData [12:39:37]SAM_PROTO_SignData [12:39:37]wFMCommunicate request_size=4 [12:39:37]MH_SAM_APDU [12:39:37]CAPDU: 80 0D 01 02 [12:39:37]Write to MH i2c: E2 08 00 0A 0E 80 0D 01 02 00 00 00 00 91 [12:39:37]Write i2c OK [12:39:37]MH_I2C_Read... [12:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:37]Read from MH i2c: E2 [12:39:37]MH_I2C_Read... [12:39:37]Read from MH i2c: E2 03 00 [12:39:37]MH_I2C_Read... [12:39:37]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [12:39:37]RAPDU: 90 00 [12:39:37]wFMCommunicate OK [12:39:37]wFMCommunicate request_size=255 [12:39:37]MH_SAM_APDU [12:39:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 89 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 14 03 00 35 04 06 00 63 [12:39:37]Write to MH i2c: E2 02 01 0B 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 89 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 14 03 00 35 04 06 00 63 00 00 13 [12:39:37]Write i2c OK [12:39:37]MH_I2C_Read... [12:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:38]Read from MH i2c: E2 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 03 00 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [12:39:38]RAPDU: 90 00 [12:39:38]wFMCommunicate OK [12:39:38]wFMCommunicate request_size=10 [12:39:38]MH_SAM_APDU [12:39:38]CAPDU: 80 0D 02 02 05 31 5E 51 28 6D [12:39:38]Write to MH i2c: E2 0D 00 0C 0E 80 0D 02 02 05 00 31 5E 51 28 6D 00 00 13 [12:39:38]Write i2c OK [12:39:38]MH_I2C_Read... [12:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:38]Read from MH i2c: E2 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 03 00 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [12:39:38]RAPDU: 90 00 [12:39:38]wFMCommunicate OK [12:39:38]wFMCommunicate request_size=4 [12:39:38]MH_SAM_APDU [12:39:38]CAPDU: 80 0D 03 02 [12:39:38]Write to MH i2c: E2 08 00 0D 0E 80 0D 03 02 00 00 00 00 96 [12:39:38]Write i2c OK [12:39:38]MH_I2C_Read... [12:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:38]Read from MH i2c: E2 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 0B 00 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 0B 00 0D 0E 00 F2 32 DD 23 63 17 9B 34 90 00 04 [12:39:38]RAPDU: F2 32 DD 23 63 17 9B 34 90 00 [12:39:38]wFMCommunicate OK [12:39:38]SAM_PROTO_SignData done [12:39:38]FM_MakeSignedData done [12:39:38]CreateOFDProtocolMessage [12:39:38]wFMCommunicate request_size=4 [12:39:38]MH_SAM_APDU [12:39:38]CAPDU: 80 11 00 00 [12:39:38]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [12:39:38]Write i2c OK [12:39:38]MH_I2C_Read... [12:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:38]Read from MH i2c: E2 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 17 00 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [12:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:39:38]wFMCommunicate OK [12:39:38]CreateOFDProtocolMessage done [12:39:38]OFDSenderStorePacket 201930 [12:39:38]StoreOFDPacket docnum=201930 [12:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 23 CB 07 01 26 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 89 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 14 03 00 35 04 06 00 63 31 5E 51 28 6D F2 32 DD 23 63 17 9B 34 [12:39:38]CheckFolder [12:39:38]dirname=/storage/ofd_packets [12:39:38]CheckFolder done [12:39:38]ProducePacketName [12:39:38]name=ofd_packets/00201930 [12:39:38]NVStorageSaveData ofd_packets/00201930 [12:39:38]File name is /storage/ofd_packets/00201930 [12:39:38]Write 301 bytes [12:39:38]NVStorageSaveData done [12:39:38]OFDSenderStorePacket done [12:39:38]KKMCreateOFDPacket done [12:39:38]NVStorageSaveData kkm_last_timestamp [12:39:38]File name is /storage/kkm_last_timestamp [12:39:38]Write 4 bytes [12:39:38]NVStorageSaveData done [12:39:38]ExternCall_PrintAddStr [12:39:38]wPrintStart [12:39:38]Write to MH i2c: 01 00 00 0F 0E 1D [12:39:38]Write i2c OK [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: 01 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: 01 07 00 [12:39:38]MH_I2C_Read... [12:39:38]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [12:39:38]RasterBufferAndPrint [12:39:38]line Счет N : (1)449692 [12:39:38]line ИНН: 02508201610067 [12:39:38]line Контрольно-Кассовый Чек [12:39:38]line ПРОДАЖА [12:39:38]line ТРК (МРК, ГНК) : 62 [12:39:38]line Товар: 2710124130 [12:39:38]line Аи-92-К-2 [12:39:38]line 10.470 * 66.90 [12:39:38]line = 700.44 [12:39:38]line НДС 12% НСП 1% [12:39:38]line > о реализуемом товаре [12:39:38]line ИТОГО: 700.44 [12:39:38]line НСП 1% : 6.20 [12:39:38]line НДС 12% : 74.38 [12:39:38]line Наличными: 0.00 [12:39:38]line Безнал.: 700.44 [12:39:38]line Место: АЗС № 171 "Партнер Нефть" [12:39:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:39:38]line СНО: Общий режим [12:39:38]line Чек 222 27.10.2024 12:39 [12:39:38]line Смена: 544 ФФД: 1.0 [12:39:38]line ЗНМ: 0300000109 [12:39:38]line РНМ: 0000000000091777 [12:39:38]line Версия ККМ: 001 [12:39:38]line Платежная система: Mbank [12:39:38]line ФМ: 0000000000871756 [12:39:38]line ФД: 201930 [12:39:38]line ФПД: 109063686924397 [12:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123937&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201930&fm=109063686924397&tin=02508201610067®Number=0000000000091777&sum=70044 [12:39:38]written 0, free lines is 4095 [12:39:38]OFD Sender: Processing packet 201930 [packets to send 112, broken 111] [12:39:38]ProducePacketName [12:39:38]name=ofd_packets/00201930 [12:39:38]OFD Sender: To server: pG, [12:39:38]CommunicateWithHost lk.salyk.kg:30040 [12:39:38]ConnectInit lk.salyk.kg [12:39:38]Connected sock=10 [12:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 23 CB 07 01 26 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 89 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 14 03 00 35 04 06 00 63 31 5E 51 28 6D F2 32 DD 23 63 17 9B 34 [12:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B1 4D 47 00 3D F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 14 03 00 F4 03 04 00 43 E0 1D 67 B6 04 01 00 00 67 0E F9 8F FB A9 D0 B2 [12:39:39]CommunicateWithHost err = 0 [12:39:39]CheckOFDResponse [12:39:39]1017 (14) - 77093643461234 [12:39:39]1041 (16) - 0000000000871756 [12:39:39]1040 (4) - 201930 [12:39:39]1012 (4) - 27.10.2024 06:40 [12:39:39]1206 (1) - 0 [12:39:39]OFD Sender: Remove packet 201930 [12:39:39]ProducePacketName [12:39:39]name=ofd_packets/00201930 [12:39:39]NVStorageDeleteData [12:39:39]Write to MH i2c: 01 00 00 38 0E 46 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: 01 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: 01 07 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: 01 07 00 38 0E 00 00 00 00 00 B9 0C 12 [12:39:39]RasterBufferAndPrint [12:39:39]line [12:39:39]line [12:39:39]line [12:39:39]line [12:39:39]line [12:39:39]written 0, free lines is 3262 [12:39:39]MH_Cut [12:39:39]Write to MH i2c: D1 01 00 3F 0E 01 1F [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: D1 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: D1 01 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: D1 01 00 3F 0E 00 1E [12:39:39]Write to MH i2c: 01 00 00 40 0E 4E [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]OFD Sender: No OFD packet to send [12:39:40]*** Cut start [12:39:40]*** Purtial cut [12:39:40]*** Stage 1: CUTSNS_PIN = 1 [12:39:40]Read from MH i2c: 01 [12:39:40]MH_I2C_Read... [12:39:40]*** Stop cut motor [12:39:40]*** Cut end [12:39:40]Read from MH i2c: 01 07 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 FF 0F 63 [12:39:40]process_action close_receipt done [12:39:40]requested_data is exist [12:39:40]produce_requested_data [12:39:40]requested_item fm.sn is exist - process it [12:39:40]wFMCommunicate request_size=4 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 11 00 00 [12:39:40]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 17 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1E [12:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:39:40]wFMCommunicate OK [12:39:40]requested_item fd.num is exist - process it [12:39:40]SAM_PROTO_GetFieldsCounters [12:39:40]wFMCommunicate request_size=4 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 13 00 00 [12:39:40]Write to MH i2c: E2 08 00 42 0E 80 13 00 00 00 00 00 00 CC [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 62 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 62 00 42 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [12:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:40]wFMCommunicate OK [12:39:40]SAM_PROTO_GetFieldsCounters done [12:39:40]requested_item shift.num is exist - process it [12:39:40]requested_item shift.opened is exist - process it [12:39:40]req_shift_opened [12:39:40]FM_GetShiftState [12:39:40]SAM_PROTO_GetShiftState [12:39:40]wFMCommunicate request_size=4 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 13 01 00 [12:39:40]Write to MH i2c: E2 08 00 43 0E 80 13 01 00 00 00 00 00 CE [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 0E 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 0E 00 43 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D0 [12:39:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:39:40]wFMCommunicate OK [12:39:40]SAM_PROTO_GetShiftState done [12:39:40]FM_GetShiftState done [12:39:40]req_shift_opened done [12:39:40]requested_item shift.open_date is exist - process it [12:39:40]req_shift_open_date [12:39:40]req_shift_open_date done [12:39:40]produce_requested_data done [12:39:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201930,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:39:40]process_action_free close_receipt [12:39:40]json_value_free [12:39:40]json_value_free done [12:39:40]process_json_proto returns [12:39:40]Send response to host [12:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201930,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:39:40]free response buf [12:39:40]execute_script done [12:39:40]execute_script returns [12:39:40]free content buf [12:39:40]Sock 8.Close socket [12:39:40]Sock 8.Thread stoped [12:39:42]accept exits with 9 [12:39:42]New connection [12:39:42]New thread 3066641764 created [12:39:42]Thread 3066498404 joined [12:39:42]Waiting for new connection... [12:39:42] Sock 9.Parse request [12:39:42]Sock 9.Check first char [12:39:42]Sock 9.First char is OK [12:39:42]request: POST /json_proto HTTP/1.0 [12:39:42]Method: POST [12:39:42]URL: /json_proto [12:39:42]Method is POST - this is cgi request [12:39:42]url: /json_proto [12:39:42]query_string will be loaded in cgi processing [12:39:42]execute_cgi json_proto POST (null) [12:39:42]execute_cgi path=json_proto method=POST [12:39:42]POST find Content-Length [12:39:42]Host: 172.17.63.195:8080 [12:39:42]Content-Length: 679 [12:39:42]Content-Type: application/json [12:39:42] [12:39:42]POST finish read [12:39:42]Found Content-Length = 679 [12:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:39:42]execute_script... [12:39: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)449693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:39:42]POST & json_proto [12:39:42]process_json_proto [12:39:42]json parsed OK: [12:39:42]protocol is kg_v1.0 [12:39:42]action value=close_receipt [12:39:42]process_action close_receipt [12:39:42]cmd_close_receipt [12:39:42]MH_GetDate [12:39:42]Write to MH i2c: F0 00 00 44 0E 41 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: F0 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: F0 09 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: F0 09 00 44 0E 00 8E 34 1E 67 47 1B 1E 67 78 [12:39:42]GetLastDocTimeStamp 1730032777 [12:39:42]current date 1730032782 [12:39:42]FM_GetShiftState [12:39:42]SAM_PROTO_GetShiftState [12:39:42]wFMCommunicate request_size=4 [12:39:42]MH_SAM_APDU [12:39:42]CAPDU: 80 13 01 00 [12:39:42]Write to MH i2c: E2 08 00 45 0E 80 13 01 00 00 00 00 00 D0 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 [12:39:42]MH_I2C_Read... [12:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:42]Read from MH i2c: E2 0E 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 0E 00 45 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D2 [12:39:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:39:42]wFMCommunicate OK [12:39:42]SAM_PROTO_GetShiftState done [12:39:42]FM_GetShiftState done [12:39:42]opened in 1729987312 [12:39:42]opened+sec_in_day 1730073712 [12:39:42]quantity*price = 100050 [12:39:42]sum+1 = 100052 [12:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 223 27.10.2024 12:39 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201931 ФПД: 181403850142597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123943&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201931&fm=181403850142597&tin=02508201610067®Number=0000000000091777&sum=100000 [12:39:43]StoreToDocumentArchive [12:39:43]shift 544 fd 201931 [12:39:43]save to /storage/0544/doc_00201931 [12:39:43]save last doc name /storage/0544/doc_00201931 to /storage/kkm_last_doc_name [12:39:43]save OK [12:39:43]Clear old archive folders... [12:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:39:43]tlvbuf is 011F6B20 [12:39:43]SAM_PROTO_ClearQueue [12:39:43]wFMCommunicate request_size=4 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 09 00 00 [12:39:43]Write to MH i2c: E2 08 00 52 0E 80 09 00 00 00 00 00 00 D2 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:43]Read from MH i2c: E2 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [12:39:43]RAPDU: 90 00 [12:39:43]wFMCommunicate OK [12:39:43]SAM_PROTO_ClearQueue done [12:39:43]KKMCreateOFDPacket [12:39:43]OFDProtocolAddRootSTLVToBuf [12:39:43]FM_MakeSignedData [12:39:43]FM_MakeSignedData [12:39:43]SAM_PROTO_SignData [12:39:43]wFMCommunicate request_size=4 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 0D 01 02 [12:39:43]Write to MH i2c: E2 08 00 53 0E 80 0D 01 02 00 00 00 00 DA [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:43]Read from MH i2c: E2 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [12:39:43]RAPDU: 90 00 [12:39:43]wFMCommunicate OK [12:39:43]wFMCommunicate request_size=255 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 DF 00 00 00 F4 03 04 00 8F 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 14 03 00 35 04 06 00 A4 FC 60 0C [12:39:43]Write to MH i2c: E2 02 01 54 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 DF 00 00 00 F4 03 04 00 8F 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 14 03 00 35 04 06 00 A4 FC 60 0C 00 00 9B [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:43]Read from MH i2c: E2 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [12:39:43]RAPDU: 90 00 [12:39:43]wFMCommunicate OK [12:39:43]wFMCommunicate request_size=7 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 0D 02 02 02 73 85 [12:39:43]Write to MH i2c: E2 0A 00 55 0E 80 0D 02 02 02 00 73 85 00 00 D9 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:43]Read from MH i2c: E2 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [12:39:43]RAPDU: 90 00 [12:39:43]wFMCommunicate OK [12:39:43]wFMCommunicate request_size=4 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 0D 03 02 [12:39:43]Write to MH i2c: E2 08 00 56 0E 80 0D 03 02 00 00 00 00 DF [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:43]Read from MH i2c: E2 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 0B 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 0B 00 56 0E 00 2D 2C 76 E1 1D 07 E2 F0 90 00 86 [12:39:43]RAPDU: 2D 2C 76 E1 1D 07 E2 F0 90 00 [12:39:43]wFMCommunicate OK [12:39:43]SAM_PROTO_SignData done [12:39:43]FM_MakeSignedData done [12:39:43]CreateOFDProtocolMessage [12:39:43]wFMCommunicate request_size=4 [12:39:43]MH_SAM_APDU [12:39:43]CAPDU: 80 11 00 00 [12:39:43]Write to MH i2c: E2 08 00 57 0E 80 11 00 00 00 00 00 00 DF [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:43]Read from MH i2c: E2 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 17 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: E2 17 00 57 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [12:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:39:43]wFMCommunicate OK [12:39:43]CreateOFDProtocolMessage done [12:39:43]OFDSenderStorePacket 201931 [12:39:43]StoreOFDPacket docnum=201931 [12:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D2 39 04 01 6A 61 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 32 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 DF 00 00 00 F4 03 04 00 8F 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 14 03 00 35 04 06 00 A4 FC 60 0C 73 85 2D 2C 76 E1 1D 07 E2 F0 [12:39:43]CheckFolder [12:39:43]dirname=/storage/ofd_packets [12:39:43]CheckFolder done [12:39:43]ProducePacketName [12:39:43]name=ofd_packets/00201931 [12:39:43]NVStorageSaveData ofd_packets/00201931 [12:39:43]File name is /storage/ofd_packets/00201931 [12:39:43]Write 298 bytes [12:39:43]NVStorageSaveData done [12:39:43]OFDSenderStorePacket done [12:39:43]KKMCreateOFDPacket done [12:39:43]NVStorageSaveData kkm_last_timestamp [12:39:43]File name is /storage/kkm_last_timestamp [12:39:43]Write 4 bytes [12:39:43]NVStorageSaveData done [12:39:43]ExternCall_PrintAddStr [12:39:43]wPrintStart [12:39:43]Write to MH i2c: 01 00 00 58 0E 66 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [12:39:43]RasterBufferAndPrint [12:39:43]line Счет N : (1)449693 [12:39:43]line ИНН: 02508201610067 [12:39:43]line Контрольно-Кассовый Чек [12:39:43]line ПРОДАЖА [12:39:43]line ТРК (МРК, ГНК) : 11 [12:39:43]line Товар: 2710194210 [12:39:43]line ДТ-К-2 [12:39:43]line 13.130 * 76.20 [12:39:43]line = 1000.51 [12:39:43]line НДС 12% НСП 1% [12:39:43]line > о реализуемом товаре [12:39:43]line ОКРУГЛЕНИЕ: -0.51 [12:39:43]line ИТОГО: 1000.00 [12:39:43]line Внесено: 1000.00 [12:39:43]line СДАЧА: 0.00 [12:39:43]line НСП 1% : 8.85 [12:39:43]line НДС 12% : 106.25 [12:39:43]line Наличными: 1000.00 [12:39:43]line Безнал.: 0.00 [12:39:43]line Место: АЗС № 171 "Партнер Нефть" [12:39:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:39:44]line СНО: Общий режим [12:39:44]line Чек 223 27.10.2024 12:39 [12:39:44]line Смена: 544 ФФД: 1.0 [12:39:44]line ЗНМ: 0300000109 [12:39:44]line РНМ: 0000000000091777 [12:39:44]line Версия ККМ: 001 [12:39:44]line ФМ: 0000000000871756 [12:39:44]line ФД: 201931 [12:39:44]line ФПД: 181403850142597 [12:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123943&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201931&fm=181403850142597&tin=02508201610067®Number=0000000000091777&sum=100000 [12:39:44]OFD Sender: Processing packet 201931 [packets to send 112, broken 111] [12:39:44]ProducePacketName [12:39:44]name=ofd_packets/00201931 [12:39:44]OFD Sender: To server: pG, [12:39:44]CommunicateWithHost lk.salyk.kg:30040 [12:39:44]ConnectInit lk.salyk.kg [12:39:44]written 0, free lines is 4095 [12:39:44]Connected sock=8 [12:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D2 39 04 01 6A 61 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 32 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 DF 00 00 00 F4 03 04 00 8F 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 14 03 00 35 04 06 00 A4 FC 60 0C 73 85 2D 2C 76 E1 1D 07 E2 F0 [12:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 60 A0 47 00 24 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 14 03 00 F4 03 04 00 48 E0 1D 67 B6 04 01 00 00 E5 34 8C 68 AC AB CA C1 [12:39:44]CommunicateWithHost err = 0 [12:39:44]CheckOFDResponse [12:39:44]1017 (14) - 77093643461234 [12:39:44]1041 (16) - 0000000000871756 [12:39:44]1040 (4) - 201931 [12:39:44]1012 (4) - 27.10.2024 06:40 [12:39:44]1206 (1) - 0 [12:39:44]OFD Sender: Remove packet 201931 [12:39:44]ProducePacketName [12:39:44]name=ofd_packets/00201931 [12:39:44]NVStorageDeleteData [12:39:44]Write to MH i2c: 01 00 00 83 0E 91 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 83 0E 00 00 00 00 00 8A 0C 2E [12:39:44]RasterBufferAndPrint [12:39:44]line [12:39:44]line [12:39:44]line [12:39:44]line [12:39:44]line [12:39:44]written 0, free lines is 3217 [12:39:44]MH_Cut [12:39:44]Write to MH i2c: D1 01 00 8A 0E 01 6A [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D1 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D1 01 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D1 01 00 8A 0E 00 69 [12:39:44]Write to MH i2c: 01 00 00 8B 0E 99 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:45]OFD Sender: No OFD packet to send [12:39:45]*** Cut start [12:39:45]*** Purtial cut [12:39:45]*** Stage 1: CUTSNS_PIN = 1 [12:39:45]Read from MH i2c: 01 [12:39:45]MH_I2C_Read... [12:39:45]*** Stop cut motor [12:39:45]*** Cut end [12:39:45]Read from MH i2c: 01 07 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 07 00 8B 0E 00 00 00 00 00 FF 0F AE [12:39:45]process_action close_receipt done [12:39:45]requested_data is exist [12:39:45]produce_requested_data [12:39:45]requested_item fm.sn is exist - process it [12:39:45]wFMCommunicate request_size=4 [12:39:45]MH_SAM_APDU [12:39:45]CAPDU: 80 11 00 00 [12:39:45]Write to MH i2c: E2 08 00 8C 0E 80 11 00 00 00 00 00 00 14 [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:45]Read from MH i2c: E2 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: E2 17 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: E2 17 00 8C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 69 [12:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:39:45]wFMCommunicate OK [12:39:45]requested_item fd.num is exist - process it [12:39:45]SAM_PROTO_GetFieldsCounters [12:39:45]wFMCommunicate request_size=4 [12:39:45]MH_SAM_APDU [12:39:45]CAPDU: 80 13 00 00 [12:39:45]Write to MH i2c: E2 08 00 8D 0E 80 13 00 00 00 00 00 00 17 [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 62 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 62 00 8D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [12:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:46]wFMCommunicate OK [12:39:46]SAM_PROTO_GetFieldsCounters done [12:39:46]requested_item shift.num is exist - process it [12:39:46]requested_item shift.opened is exist - process it [12:39:46]req_shift_opened [12:39:46]FM_GetShiftState [12:39:46]SAM_PROTO_GetShiftState [12:39:46]wFMCommunicate request_size=4 [12:39:46]MH_SAM_APDU [12:39:46]CAPDU: 80 13 01 00 [12:39:46]Write to MH i2c: E2 08 00 8E 0E 80 13 01 00 00 00 00 00 19 [12:39:46]Write i2c OK [12:39:46]MH_I2C_Read... [12:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:46]Read from MH i2c: E2 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 0E 00 [12:39:46]MH_I2C_Read... [12:39:46]Read from MH i2c: E2 0E 00 8E 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1B [12:39:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:39:46]wFMCommunicate OK [12:39:46]SAM_PROTO_GetShiftState done [12:39:46]FM_GetShiftState done [12:39:46]req_shift_opened done [12:39:46]requested_item shift.open_date is exist - process it [12:39:46]req_shift_open_date [12:39:46]req_shift_open_date done [12:39:46]produce_requested_data done [12:39:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201931,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:39:46]process_action_free close_receipt [12:39:46]json_value_free [12:39:46]json_value_free done [12:39:46]process_json_proto returns [12:39:46]Send response to host [12:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201931,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:39:46]free response buf [12:39:46]execute_script done [12:39:46]execute_script returns [12:39:46]free content buf [12:39:46]Sock 9.Close socket [12:39:46]Sock 9.Thread stoped [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:39:59]accept exits with 10 [12:39:59]New connection [12:39:59]New thread 3066498404 created [12:39:59]Thread 3066641764 joined [12:39:59]Waiting for new connection... [12:39:59] Sock 10.Parse request [12:39:59]Sock 10.Check first char [12:39:59]Sock 10.First char is OK [12:39:59]request: POST /json_proto HTTP/1.0 [12:39:59]Method: POST [12:39:59]URL: /json_proto [12:39:59]Method is POST - this is cgi request [12:39:59]url: /json_proto [12:39:59]query_string will be loaded in cgi processing [12:39:59]execute_cgi json_proto POST (null) [12:39:59]execute_cgi path=json_proto method=POST [12:39:59]POST find Content-Length [12:39:59]Host: 172.17.63.195:8080 [12:39:59]Content-Length: 679 [12:39:59]Content-Type: application/json [12:39:59] [12:39:59]POST finish read [12:39:59]Found Content-Length = 679 [12:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 33.860, "sum" : 2580.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2580.00, "total" : 2580.00, "payments": [ { "type": 0, "sum" : 2580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:59]execute_script... [12:39:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 33.860, "sum" : 2580.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2580.00, "total" : 2580.00, "payments": [ { "type": 0, "sum" : 2580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:59]POST & json_proto [12:39:59]process_json_proto [12:39:59]json parsed OK: [12:39:59]protocol is kg_v1.0 [12:39:59]action value=close_receipt [12:39:59]process_action close_receipt [12:39:59]cmd_close_receipt [12:39:59]MH_GetDate [12:39:59]Write to MH i2c: F0 00 00 8F 0E 8C [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: F0 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: F0 09 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: F0 09 00 8F 0E 00 9F 34 1E 67 47 1B 1E 67 D4 [12:39:59]GetLastDocTimeStamp 1730032783 [12:39:59]current date 1730032799 [12:39:59]FM_GetShiftState [12:39:59]SAM_PROTO_GetShiftState [12:39:59]wFMCommunicate request_size=4 [12:39:59]MH_SAM_APDU [12:39:59]CAPDU: 80 13 01 00 [12:39:59]Write to MH i2c: E2 08 00 90 0E 80 13 01 00 00 00 00 00 1B [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:59]Read from MH i2c: E2 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: E2 0E 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: E2 0E 00 90 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1D [12:39:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:39:59]wFMCommunicate OK [12:39:59]SAM_PROTO_GetShiftState done [12:39:59]FM_GetShiftState done [12:39:59]opened in 1729987312 [12:39:59]opened+sec_in_day 1730073712 [12:39:59]quantity*price = 258013 [12:39:59]sum+1 = 258014 [12:39:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2580.00 Внесено: 2580.00 СДАЧА: 0.00 НСП 1% : 22.83 НДС 12% : 274.00 Наличными: 2580.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 224 27.10.2024 12:40 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201932 ФПД: 268617349679493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124000&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201932&fm=268617349679493&tin=02508201610067®Number=0000000000091777&sum=258000 [12:40:00]StoreToDocumentArchive [12:40:00]shift 544 fd 201932 [12:40:00]save to /storage/0544/doc_00201932 [12:40:00]save last doc name /storage/0544/doc_00201932 to /storage/kkm_last_doc_name [12:40:00]save OK [12:40:00]Clear old archive folders... [12:40:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:40:00]tlvbuf is 011ADFA0 [12:40:00]SAM_PROTO_ClearQueue [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 09 00 00 [12:40:00]Write to MH i2c: E2 08 00 9D 0E 80 09 00 00 00 00 00 00 1D [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [12:40:00]RAPDU: 90 00 [12:40:00]wFMCommunicate OK [12:40:00]SAM_PROTO_ClearQueue done [12:40:00]KKMCreateOFDPacket [12:40:00]OFDProtocolAddRootSTLVToBuf [12:40:00]FM_MakeSignedData [12:40:00]FM_MakeSignedData [12:40:00]SAM_PROTO_SignData [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 0D 01 02 [12:40:00]Write to MH i2c: E2 08 00 9E 0E 80 0D 01 02 00 00 00 00 25 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [12:40:00]RAPDU: 90 00 [12:40:00]wFMCommunicate OK [12:40:00]wFMCommunicate request_size=255 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 44 84 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DD EF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 EF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 6B 00 00 00 00 07 04 06 00 D0 EF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 A0 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 14 03 00 35 04 06 00 F4 4E 59 B5 [12:40:00]Write to MH i2c: E2 02 01 9F 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 44 84 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DD EF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 EF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 6B 00 00 00 00 07 04 06 00 D0 EF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 A0 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 14 03 00 35 04 06 00 F4 4E 59 B5 00 00 77 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 9F 0E 00 90 00 21 [12:40:00]RAPDU: 90 00 [12:40:00]wFMCommunicate OK [12:40:00]wFMCommunicate request_size=7 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 0D 02 02 02 49 85 [12:40:00]Write to MH i2c: E2 0A 00 A0 0E 80 0D 02 02 02 00 49 85 00 00 FA [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 A0 0E 00 90 00 22 [12:40:00]RAPDU: 90 00 [12:40:00]wFMCommunicate OK [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 0D 03 02 [12:40:00]Write to MH i2c: E2 08 00 A1 0E 80 0D 03 02 00 00 00 00 2A [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:01]Read from MH i2c: E2 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0B 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0B 00 A1 0E 00 77 04 79 86 B5 71 EA 2E 90 00 E3 [12:40:01]RAPDU: 77 04 79 86 B5 71 EA 2E 90 00 [12:40:01]wFMCommunicate OK [12:40:01]SAM_PROTO_SignData done [12:40:01]FM_MakeSignedData done [12:40:01]CreateOFDProtocolMessage [12:40:01]wFMCommunicate request_size=4 [12:40:01]MH_SAM_APDU [12:40:01]CAPDU: 80 11 00 00 [12:40:01]Write to MH i2c: E2 08 00 A2 0E 80 11 00 00 00 00 00 00 2A [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:01]Read from MH i2c: E2 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 17 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 17 00 A2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [12:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:40:01]wFMCommunicate OK [12:40:01]CreateOFDProtocolMessage done [12:40:01]OFDSenderStorePacket 201932 [12:40:01]StoreOFDPacket docnum=201932 [12:40:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 45 94 04 01 D3 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 32 FF 03 08 00 03 44 84 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DD EF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 EF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 6B 00 00 00 00 07 04 06 00 D0 EF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 A0 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 14 03 00 35 04 06 00 F4 4E 59 B5 49 85 77 04 79 86 B5 71 EA 2E [12:40:01]CheckFolder [12:40:01]dirname=/storage/ofd_packets [12:40:01]CheckFolder done [12:40:01]ProducePacketName [12:40:01]name=ofd_packets/00201932 [12:40:01]NVStorageSaveData ofd_packets/00201932 [12:40:01]File name is /storage/ofd_packets/00201932 [12:40:01]Write 298 bytes [12:40:01]NVStorageSaveData done [12:40:01]OFDSenderStorePacket done [12:40:01]KKMCreateOFDPacket done [12:40:01]NVStorageSaveData kkm_last_timestamp [12:40:01]File name is /storage/kkm_last_timestamp [12:40:01]Write 4 bytes [12:40:01]NVStorageSaveData done [12:40:01]ExternCall_PrintAddStr [12:40:01]wPrintStart [12:40:01]Write to MH i2c: 01 00 00 A3 0E B1 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 07 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 07 00 A3 0E 00 00 00 00 00 FF 0F C6 [12:40:01]RasterBufferAndPrint [12:40:01]line Счет N : (1)449691 [12:40:01]line ИНН: 02508201610067 [12:40:01]line Контрольно-Кассовый Чек [12:40:01]line ПРОДАЖА [12:40:01]line ТРК (МРК, ГНК) : 33 [12:40:01]line Товар: 2710194210 [12:40:01]line ДТ-К-2 [12:40:01]line 33.860 * 76.20 [12:40:01]line = 2580.13 [12:40:01]line НДС 12% НСП 1% [12:40:01]line > о реализуемом товаре [12:40:01]line ОКРУГЛЕНИЕ: -0.13 [12:40:01]line ИТОГО: 2580.00 [12:40:01]line Внесено: 2580.00 [12:40:01]line СДАЧА: 0.00 [12:40:01]line НСП 1% : 22.83 [12:40:01]line НДС 12% : 274.00 [12:40:01]line Наличными: 2580.00 [12:40:01]line Безнал.: 0.00 [12:40:01]line Место: АЗС № 171 "Партнер Нефть" [12:40:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:40:01]line СНО: Общий режим [12:40:01]line Чек 224 27.10.2024 12:40 [12:40:01]line Смена: 544 ФФД: 1.0 [12:40:01]line ЗНМ: 0300000109 [12:40:01]line РНМ: 0000000000091777 [12:40:01]line Версия ККМ: 001 [12:40:01]line ФМ: 0000000000871756 [12:40:01]line ФД: 201932 [12:40:01]line ФПД: 268617349679493 [12:40:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124000&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201932&fm=268617349679493&tin=02508201610067®Number=0000000000091777&sum=258000 [12:40:01]written 0, free lines is 4095 [12:40:01]OFD Sender: Processing packet 201932 [packets to send 112, broken 111] [12:40:01]ProducePacketName [12:40:01]name=ofd_packets/00201932 [12:40:01]OFD Sender: To server: pG, [12:40:01]CommunicateWithHost lk.salyk.kg:30040 [12:40:01]ConnectInit lk.salyk.kg [12:40:01]Connected sock=9 [12:40:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 45 94 04 01 D3 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 32 FF 03 08 00 03 44 84 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DD EF 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 EF 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 6B 00 00 00 00 07 04 06 00 D0 EF 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 A0 34 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 14 03 00 35 04 06 00 F4 4E 59 B5 49 85 77 04 79 86 B5 71 EA 2E [12:40:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5B 61 47 00 65 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 14 03 00 F4 03 04 00 59 E0 1D 67 B6 04 01 00 00 83 07 95 F3 E5 7B 3B 46 [12:40:01]CommunicateWithHost err = 0 [12:40:01]CheckOFDResponse [12:40:01]1017 (14) - 77093643461234 [12:40:01]1041 (16) - 0000000000871756 [12:40:01]1040 (4) - 201932 [12:40:01]1012 (4) - 27.10.2024 06:40 [12:40:01]1206 (1) - 0 [12:40:01]OFD Sender: Remove packet 201932 [12:40:01]ProducePacketName [12:40:01]name=ofd_packets/00201932 [12:40:01]NVStorageDeleteData [12:40:01]Write to MH i2c: 01 00 00 CE 0E DC [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 07 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 07 00 CE 0E 00 00 00 00 00 97 0C 86 [12:40:01]RasterBufferAndPrint [12:40:01]line [12:40:01]line [12:40:01]line [12:40:01]line [12:40:01]line [12:40:01]written 0, free lines is 3234 [12:40:01]MH_Cut [12:40:01]Write to MH i2c: D1 01 00 D5 0E 01 B5 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: D1 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: D1 01 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: D1 01 00 D5 0E 00 B4 [12:40:01]Write to MH i2c: 01 00 00 D6 0E E4 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]OFD Sender: No OFD packet to send [12:40:02]*** Cut start [12:40:02]*** Purtial cut [12:40:02]*** Stage 1: CUTSNS_PIN = 1 [12:40:02]Read from MH i2c: 01 [12:40:02]MH_I2C_Read... [12:40:02]*** Stop cut motor [12:40:02]*** Cut end [12:40:02]Read from MH i2c: 01 07 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: 01 07 00 D6 0E 00 00 00 00 00 FF 0F F9 [12:40:02]process_action close_receipt done [12:40:02]requested_data is exist [12:40:02]produce_requested_data [12:40:02]requested_item fm.sn is exist - process it [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 11 00 00 [12:40:02]Write to MH i2c: E2 08 00 D7 0E 80 11 00 00 00 00 00 00 5F [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 17 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 17 00 D7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B4 [12:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:40:02]wFMCommunicate OK [12:40:02]requested_item fd.num is exist - process it [12:40:02]SAM_PROTO_GetFieldsCounters [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 13 00 00 [12:40:02]Write to MH i2c: E2 08 00 D8 0E 80 13 00 00 00 00 00 00 62 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 62 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 62 00 D8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [12:40:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:02]wFMCommunicate OK [12:40:02]SAM_PROTO_GetFieldsCounters done [12:40:02]requested_item shift.num is exist - process it [12:40:02]requested_item shift.opened is exist - process it [12:40:02]req_shift_opened [12:40:02]FM_GetShiftState [12:40:02]SAM_PROTO_GetShiftState [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 13 01 00 [12:40:02]Write to MH i2c: E2 08 00 D9 0E 80 13 01 00 00 00 00 00 64 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:03]Read from MH i2c: E2 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 0E 00 [12:40:03]MH_I2C_Read... [12:40:03]Read from MH i2c: E2 0E 00 D9 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 66 [12:40:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:40:03]wFMCommunicate OK [12:40:03]SAM_PROTO_GetShiftState done [12:40:03]FM_GetShiftState done [12:40:03]req_shift_opened done [12:40:03]requested_item shift.open_date is exist - process it [12:40:03]req_shift_open_date [12:40:03]req_shift_open_date done [12:40:03]produce_requested_data done [12:40:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201932,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:40:03]process_action_free close_receipt [12:40:03]json_value_free [12:40:03]json_value_free done [12:40:03]process_json_proto returns [12:40:03]Send response to host [12:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201932,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:40:03]free response buf [12:40:03]execute_script done [12:40:03]execute_script returns [12:40:03]free content buf [12:40:03]Sock 10.Close socket [12:40:03]Sock 10.Thread stoped [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:34]accept exits with 8 [12:43:34]New connection [12:43:34]New thread 3066641764 created [12:43:34]Thread 3066498404 joined [12:43:34]Waiting for new connection... [12:43:34] Sock 8.Parse request [12:43:34]Sock 8.Check first char [12:43:34]Sock 8.First char is OK [12:43:34]request: POST /json_proto HTTP/1.0 [12:43:34]Method: POST [12:43:34]URL: /json_proto [12:43:34]Method is POST - this is cgi request [12:43:34]url: /json_proto [12:43:34]query_string will be loaded in cgi processing [12:43:34]execute_cgi json_proto POST (null) [12:43:34]execute_cgi path=json_proto method=POST [12:43:34]POST find Content-Length [12:43:34]Host: 172.17.63.195:8080 [12:43:34]Content-Length: 679 [12:43:34]Content-Type: application/json [12:43:34] [12:43:34]POST finish read [12:43:34]Found Content-Length = 679 [12:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:34]execute_script... [12:43:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:34]POST & json_proto [12:43:34]process_json_proto [12:43:34]json parsed OK: [12:43:34]protocol is kg_v1.0 [12:43:34]action value=close_receipt [12:43:34]process_action close_receipt [12:43:34]cmd_close_receipt [12:43:34]MH_GetDate [12:43:34]Write to MH i2c: F0 00 00 DA 0E D7 [12:43:34]Write i2c OK [12:43:34]MH_I2C_Read... [12:43:34]Read from MH i2c: F0 [12:43:34]MH_I2C_Read... [12:43:34]Read from MH i2c: F0 09 00 [12:43:34]MH_I2C_Read... [12:43:34]Read from MH i2c: F0 09 00 DA 0E 00 77 35 1E 67 47 1B 1E 67 F8 [12:43:34]GetLastDocTimeStamp 1730032800 [12:43:34]current date 1730033015 [12:43:34]FM_GetShiftState [12:43:34]SAM_PROTO_GetShiftState [12:43:34]wFMCommunicate request_size=4 [12:43:34]MH_SAM_APDU [12:43:34]CAPDU: 80 13 01 00 [12:43:34]Write to MH i2c: E2 08 00 DB 0E 80 13 01 00 00 00 00 00 66 [12:43:34]Write i2c OK [12:43:34]MH_I2C_Read... [12:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:34]Read from MH i2c: E2 [12:43:34]MH_I2C_Read... [12:43:34]Read from MH i2c: E2 0E 00 [12:43:34]MH_I2C_Read... [12:43:34]Read from MH i2c: E2 0E 00 DB 0E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 68 [12:43:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:43:34]wFMCommunicate OK [12:43:34]SAM_PROTO_GetShiftState done [12:43:34]FM_GetShiftState done [12:43:34]opened in 1729987312 [12:43:34]opened+sec_in_day 1730073712 [12:43:34]quantity*price = 200025 [12:43:34]sum+1 = 200026 [12:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 225 27.10.2024 12:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201933 ФПД: 9805409925596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124335&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201933&fm=9805409925596&tin=02508201610067®Number=0000000000091777&sum=200000 [12:43:35]StoreToDocumentArchive [12:43:35]shift 544 fd 201933 [12:43:35]save to /storage/0544/doc_00201933 [12:43:35]save last doc name /storage/0544/doc_00201933 to /storage/kkm_last_doc_name [12:43:35]save OK [12:43:35]Clear old archive folders... [12:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:43:35]tlvbuf is 0122E300 [12:43:35]SAM_PROTO_ClearQueue [12:43:35]wFMCommunicate request_size=4 [12:43:35]MH_SAM_APDU [12:43:35]CAPDU: 80 09 00 00 [12:43:35]Write to MH i2c: E2 08 00 E8 0E 80 09 00 00 00 00 00 00 68 [12:43:35]Write i2c OK [12:43:35]MH_I2C_Read... [12:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:35]Read from MH i2c: E2 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 03 00 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 03 00 E8 0E 00 90 00 6A [12:43:35]RAPDU: 90 00 [12:43:35]wFMCommunicate OK [12:43:35]SAM_PROTO_ClearQueue done [12:43:35]KKMCreateOFDPacket [12:43:35]OFDProtocolAddRootSTLVToBuf [12:43:35]FM_MakeSignedData [12:43:35]FM_MakeSignedData [12:43:35]SAM_PROTO_SignData [12:43:35]wFMCommunicate request_size=4 [12:43:35]MH_SAM_APDU [12:43:35]CAPDU: 80 0D 01 02 [12:43:35]Write to MH i2c: E2 08 00 E9 0E 80 0D 01 02 00 00 00 00 70 [12:43:35]Write i2c OK [12:43:35]MH_I2C_Read... [12:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:35]Read from MH i2c: E2 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 03 00 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 03 00 E9 0E 00 90 00 6B [12:43:35]RAPDU: 90 00 [12:43:35]wFMCommunicate OK [12:43:35]wFMCommunicate request_size=255 [12:43:35]MH_SAM_APDU [12:43:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 77 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 14 03 00 35 04 06 00 08 EA FF F9 [12:43:35]Write to MH i2c: E2 02 01 EA 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 77 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 14 03 00 35 04 06 00 08 EA FF F9 00 00 EA [12:43:35]Write i2c OK [12:43:35]MH_I2C_Read... [12:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:35]Read from MH i2c: E2 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 03 00 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 03 00 EA 0E 00 90 00 6C [12:43:35]RAPDU: 90 00 [12:43:35]wFMCommunicate OK [12:43:35]wFMCommunicate request_size=7 [12:43:35]MH_SAM_APDU [12:43:35]CAPDU: 80 0D 02 02 02 B9 DC [12:43:35]Write to MH i2c: E2 0A 00 EB 0E 80 0D 02 02 02 00 B9 DC 00 00 0C [12:43:35]Write i2c OK [12:43:35]MH_I2C_Read... [12:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:35]Read from MH i2c: E2 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 03 00 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 03 00 EB 0E 00 90 00 6D [12:43:35]RAPDU: 90 00 [12:43:35]wFMCommunicate OK [12:43:35]wFMCommunicate request_size=4 [12:43:35]MH_SAM_APDU [12:43:35]CAPDU: 80 0D 03 02 [12:43:35]Write to MH i2c: E2 08 00 EC 0E 80 0D 03 02 00 00 00 00 75 [12:43:35]Write i2c OK [12:43:35]MH_I2C_Read... [12:43:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:35]Read from MH i2c: E2 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 0B 00 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 0B 00 EC 0E 00 4B 6A 17 24 46 FF 44 56 90 00 45 [12:43:35]RAPDU: 4B 6A 17 24 46 FF 44 56 90 00 [12:43:35]wFMCommunicate OK [12:43:35]SAM_PROTO_SignData done [12:43:35]FM_MakeSignedData done [12:43:35]CreateOFDProtocolMessage [12:43:35]wFMCommunicate request_size=4 [12:43:35]MH_SAM_APDU [12:43:35]CAPDU: 80 11 00 00 [12:43:35]Write to MH i2c: E2 08 00 ED 0E 80 11 00 00 00 00 00 00 75 [12:43:35]Write i2c OK [12:43:35]MH_I2C_Read... [12:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:36]Read from MH i2c: E2 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: E2 17 00 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: E2 17 00 ED 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [12:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:43:36]wFMCommunicate OK [12:43:36]CreateOFDProtocolMessage done [12:43:36]OFDSenderStorePacket 201933 [12:43:36]StoreOFDPacket docnum=201933 [12:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2E D8 04 01 1B F7 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 77 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 14 03 00 35 04 06 00 08 EA FF F9 B9 DC 4B 6A 17 24 46 FF 44 56 [12:43:36]CheckFolder [12:43:36]dirname=/storage/ofd_packets [12:43:36]CheckFolder done [12:43:36]ProducePacketName [12:43:36]name=ofd_packets/00201933 [12:43:36]NVStorageSaveData ofd_packets/00201933 [12:43:36]File name is /storage/ofd_packets/00201933 [12:43:36]Write 298 bytes [12:43:36]NVStorageSaveData done [12:43:36]OFDSenderStorePacket done [12:43:36]KKMCreateOFDPacket done [12:43:36]NVStorageSaveData kkm_last_timestamp [12:43:36]File name is /storage/kkm_last_timestamp [12:43:36]Write 4 bytes [12:43:36]NVStorageSaveData done [12:43:36]ExternCall_PrintAddStr [12:43:36]wPrintStart [12:43:36]Write to MH i2c: 01 00 00 EE 0E FC [12:43:36]Write i2c OK [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: 01 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: 01 07 00 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 FF 0F 11 [12:43:36]RasterBufferAndPrint [12:43:36]line Счет N : (1)449694 [12:43:36]line ИНН: 02508201610067 [12:43:36]line Контрольно-Кассовый Чек [12:43:36]line ПРОДАЖА [12:43:36]line ТРК (МРК, ГНК) : 21 [12:43:36]line Товар: 2710194210 [12:43:36]line ДТ-К-2 [12:43:36]line 26.250 * 76.20 [12:43:36]line = 2000.25 [12:43:36]line НДС 12% НСП 1% [12:43:36]line > о реализуемом товаре [12:43:36]line ОКРУГЛЕНИЕ: -0.25 [12:43:36]line ИТОГО: 2000.00 [12:43:36]line Внесено: 2000.00 [12:43:36]line СДАЧА: 0.00 [12:43:36]line НСП 1% : 17.70 [12:43:36]line НДС 12% : 212.42 [12:43:36]line Наличными: 2000.00 [12:43:36]line Безнал.: 0.00 [12:43:36]line Место: АЗС № 171 "Партнер Нефть" [12:43:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:43:36]line СНО: Общий режим [12:43:36]line Чек 225 27.10.2024 12:43 [12:43:36]line Смена: 544 ФФД: 1.0 [12:43:36]line ЗНМ: 0300000109 [12:43:36]line РНМ: 0000000000091777 [12:43:36]line Версия ККМ: 001 [12:43:36]line ФМ: 0000000000871756 [12:43:36]line ФД: 201933 [12:43:36]line ФПД: 9805409925596 [12:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124335&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201933&fm=9805409925596&tin=02508201610067®Number=0000000000091777&sum=200000 [12:43:36]OFD Sender: Processing packet 201933 [packets to send 112, broken 111] [12:43:36]ProducePacketName [12:43:36]name=ofd_packets/00201933 [12:43:36]OFD Sender: To server: pG, [12:43:36]CommunicateWithHost lk.salyk.kg:30040 [12:43:36]ConnectInit lk.salyk.kg [12:43:36]written 0, free lines is 4095 [12:43:36]Connected sock=10 [12:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2E D8 04 01 1B F7 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 77 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 14 03 00 35 04 06 00 08 EA FF F9 B9 DC 4B 6A 17 24 46 FF 44 56 [12:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 32 A2 47 00 A7 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 14 03 00 F4 03 04 00 31 E1 1D 67 B6 04 01 00 00 F5 81 91 3F 27 35 C0 BF [12:43:36]CommunicateWithHost err = 0 [12:43:36]CheckOFDResponse [12:43:36]1017 (14) - 77093643461234 [12:43:36]1041 (16) - 0000000000871756 [12:43:36]1040 (4) - 201933 [12:43:36]1012 (4) - 27.10.2024 06:44 [12:43:36]1206 (1) - 0 [12:43:36]OFD Sender: Remove packet 201933 [12:43:36]ProducePacketName [12:43:36]name=ofd_packets/00201933 [12:43:36]NVStorageDeleteData [12:43:36]Write to MH i2c: 01 00 00 19 0F 28 [12:43:36]Write i2c OK [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: 01 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: 01 07 00 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: 01 07 00 19 0F 00 00 00 00 00 84 0C BF [12:43:36]RasterBufferAndPrint [12:43:36]line [12:43:36]line [12:43:36]line [12:43:36]line [12:43:36]line [12:43:36]written 0, free lines is 3207 [12:43:36]MH_Cut [12:43:36]Write to MH i2c: D1 01 00 20 0F 01 01 [12:43:36]Write i2c OK [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: D1 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: D1 01 00 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: D1 01 00 20 0F 00 00 [12:43:36]Write to MH i2c: 01 00 00 21 0F 30 [12:43:36]Write i2c OK [12:43:36]MH_I2C_Read... [12:43:37]OFD Sender: No OFD packet to send [12:43:37]*** Cut start [12:43:37]*** Purtial cut [12:43:37]*** Stage 1: CUTSNS_PIN = 1 [12:43:37]Read from MH i2c: 01 [12:43:38]MH_I2C_Read... [12:43:38]*** Stop cut motor [12:43:38]*** Cut end [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 21 0F 00 00 00 00 00 FF 0F 45 [12:43:38]process_action close_receipt done [12:43:38]requested_data is exist [12:43:38]produce_requested_data [12:43:38]requested_item fm.sn is exist - process it [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 22 0F 80 11 00 00 00 00 00 00 AB [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 22 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [12:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:43:38]wFMCommunicate OK [12:43:38]requested_item fd.num is exist - process it [12:43:38]SAM_PROTO_GetFieldsCounters [12:43:38]wFMCommunicate request_size=4 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 13 00 00 [12:43:38]Write to MH i2c: E2 08 00 23 0F 80 13 00 00 00 00 00 00 AE [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 62 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 62 00 23 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [12:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:38]wFMCommunicate OK [12:43:38]SAM_PROTO_GetFieldsCounters done [12:43:38]requested_item shift.num is exist - process it [12:43:38]requested_item shift.opened is exist - process it [12:43:38]req_shift_opened [12:43:38]FM_GetShiftState [12:43:38]SAM_PROTO_GetShiftState [12:43:38]wFMCommunicate request_size=4 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 13 01 00 [12:43:38]Write to MH i2c: E2 08 00 24 0F 80 13 01 00 00 00 00 00 B0 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 0E 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 0E 00 24 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B2 [12:43:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:43:38]wFMCommunicate OK [12:43:38]SAM_PROTO_GetShiftState done [12:43:38]FM_GetShiftState done [12:43:38]req_shift_opened done [12:43:38]requested_item shift.open_date is exist - process it [12:43:38]req_shift_open_date [12:43:38]req_shift_open_date done [12:43:38]produce_requested_data done [12:43:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201933,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:43:38]process_action_free close_receipt [12:43:38]json_value_free [12:43:38]json_value_free done [12:43:38]process_json_proto returns [12:43:38]Send response to host [12:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201933,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:43:38]free response buf [12:43:38]execute_script done [12:43:38]execute_script returns [12:43:38]free content buf [12:43:38]Sock 8.Close socket [12:43:38]Sock 8.Thread stoped [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:03]accept exits with 9 [12:44:03]New connection [12:44:03]New thread 3066498404 created [12:44:03]Thread 3066641764 joined [12:44:03]Waiting for new connection... [12:44:03] Sock 9.Parse request [12:44:03]Sock 9.Check first char [12:44:03]Sock 9.First char is OK [12:44:03]request: POST /json_proto HTTP/1.0 [12:44:03]Method: POST [12:44:03]URL: /json_proto [12:44:03]Method is POST - this is cgi request [12:44:03]url: /json_proto [12:44:03]query_string will be loaded in cgi processing [12:44:03]execute_cgi json_proto POST (null) [12:44:03]execute_cgi path=json_proto method=POST [12:44:03]POST find Content-Length [12:44:03]Host: 172.17.63.195:8080 [12:44:03]Content-Length: 675 [12:44:03]Content-Type: application/json [12:44:03] [12:44:03]POST finish read [12:44:03]Found Content-Length = 675 [12:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:03]execute_script... [12:44: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)449695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:03]POST & json_proto [12:44:03]process_json_proto [12:44:03]json parsed OK: [12:44:03]protocol is kg_v1.0 [12:44:03]action value=close_receipt [12:44:03]process_action close_receipt [12:44:03]cmd_close_receipt [12:44:03]MH_GetDate [12:44:03]Write to MH i2c: F0 00 00 25 0F 23 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: F0 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: F0 09 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: F0 09 00 25 0F 00 93 35 1E 67 47 1B 1E 67 60 [12:44:03]GetLastDocTimeStamp 1730033015 [12:44:03]current date 1730033043 [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 26 0F 80 13 01 00 00 00 00 00 B2 [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 26 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B4 [12:44:03]RAPDU: 09 00 01 F0 82 1D 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]opened in 1729987312 [12:44:03]opened+sec_in_day 1730073712 [12:44:03]quantity*price = 80010 [12:44:03]sum+1 = 80011 [12:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 226 27.10.2024 12:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201934 ФПД: 23218951596272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201934&fm=23218951596272&tin=02508201610067®Number=0000000000091777&sum=80000 [12:44:04]StoreToDocumentArchive [12:44:04]shift 544 fd 201934 [12:44:04]save to /storage/0544/doc_00201934 [12:44:04]save last doc name /storage/0544/doc_00201934 to /storage/kkm_last_doc_name [12:44:04]save OK [12:44:04]Clear old archive folders... [12:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:44:04]tlvbuf is 011A1130 [12:44:04]SAM_PROTO_ClearQueue [12:44:04]wFMCommunicate request_size=4 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 09 00 00 [12:44:04]Write to MH i2c: E2 08 00 33 0F 80 09 00 00 00 00 00 00 B4 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 33 0F 00 90 00 B6 [12:44:04]RAPDU: 90 00 [12:44:04]wFMCommunicate OK [12:44:04]SAM_PROTO_ClearQueue done [12:44:04]KKMCreateOFDPacket [12:44:04]OFDProtocolAddRootSTLVToBuf [12:44:04]FM_MakeSignedData [12:44:04]FM_MakeSignedData [12:44:04]SAM_PROTO_SignData [12:44:04]wFMCommunicate request_size=4 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 0D 01 02 [12:44:04]Write to MH i2c: E2 08 00 34 0F 80 0D 01 02 00 00 00 00 BC [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 34 0F 00 90 00 B7 [12:44:04]RAPDU: 90 00 [12:44:04]wFMCommunicate OK [12:44:04]wFMCommunicate request_size=255 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 E2 00 00 00 F4 03 04 00 93 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 14 03 00 35 04 06 00 15 1E 15 5C [12:44:04]Write to MH i2c: E2 02 01 35 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 E2 00 00 00 F4 03 04 00 93 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 14 03 00 35 04 06 00 15 1E 15 5C 00 00 53 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 35 0F 00 90 00 B8 [12:44:04]RAPDU: 90 00 [12:44:04]wFMCommunicate OK [12:44:04]wFMCommunicate request_size=7 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 0D 02 02 02 A8 F0 [12:44:04]Write to MH i2c: E2 0A 00 36 0F 80 0D 02 02 02 00 A8 F0 00 00 5B [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 03 00 36 0F 00 90 00 B9 [12:44:04]RAPDU: 90 00 [12:44:04]wFMCommunicate OK [12:44:04]wFMCommunicate request_size=4 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 0D 03 02 [12:44:04]Write to MH i2c: E2 08 00 37 0F 80 0D 03 02 00 00 00 00 C1 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 0B 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 0B 00 37 0F 00 C7 0D 89 28 D1 49 8C 74 90 00 61 [12:44:04]RAPDU: C7 0D 89 28 D1 49 8C 74 90 00 [12:44:04]wFMCommunicate OK [12:44:04]SAM_PROTO_SignData done [12:44:04]FM_MakeSignedData done [12:44:04]CreateOFDProtocolMessage [12:44:04]wFMCommunicate request_size=4 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 11 00 00 [12:44:04]Write to MH i2c: E2 08 00 38 0F 80 11 00 00 00 00 00 00 C1 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 17 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 17 00 38 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [12:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:44:04]wFMCommunicate OK [12:44:04]CreateOFDProtocolMessage done [12:44:04]OFDSenderStorePacket 201934 [12:44:04]StoreOFDPacket docnum=201934 [12:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 03 47 04 01 FF CF 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 E2 00 00 00 F4 03 04 00 93 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 14 03 00 35 04 06 00 15 1E 15 5C A8 F0 C7 0D 89 28 D1 49 8C 74 [12:44:04]CheckFolder [12:44:04]dirname=/storage/ofd_packets [12:44:04]CheckFolder done [12:44:04]ProducePacketName [12:44:04]name=ofd_packets/00201934 [12:44:04]NVStorageSaveData ofd_packets/00201934 [12:44:04]File name is /storage/ofd_packets/00201934 [12:44:04]Write 298 bytes [12:44:04]NVStorageSaveData done [12:44:04]OFDSenderStorePacket done [12:44:04]KKMCreateOFDPacket done [12:44:04]NVStorageSaveData kkm_last_timestamp [12:44:04]File name is /storage/kkm_last_timestamp [12:44:04]Write 4 bytes [12:44:04]NVStorageSaveData done [12:44:04]ExternCall_PrintAddStr [12:44:04]wPrintStart [12:44:04]Write to MH i2c: 01 00 00 39 0F 48 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 FF 0F 5D [12:44:04]RasterBufferAndPrint [12:44:04]line Счет N : (1)449695 [12:44:04]line ИНН: 02508201610067 [12:44:04]line Контрольно-Кассовый Чек [12:44:04]line ПРОДАЖА [12:44:04]line ТРК (МРК, ГНК) : 43 [12:44:04]line Товар: 2710194210 [12:44:04]line ДТ-К-2 [12:44:04]line 10.500 * 76.20 [12:44:04]line = 800.10 [12:44:04]line НДС 12% НСП 1% [12:44:04]line > о реализуемом товаре [12:44:04]line ОКРУГЛЕНИЕ: -0.10 [12:44:04]line ИТОГО: 800.00 [12:44:04]line Внесено: 800.00 [12:44:04]line СДАЧА: 0.00 [12:44:04]line НСП 1% : 7.08 [12:44:04]line НДС 12% : 84.97 [12:44:04]line Наличными: 800.00 [12:44:04]line Безнал.: 0.00 [12:44:04]line Место: АЗС № 171 "Партнер Нефть" [12:44:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:44:04]line СНО: Общий режим [12:44:04]line Чек 226 27.10.2024 12:44 [12:44:04]line Смена: 544 ФФД: 1.0 [12:44:04]line ЗНМ: 0300000109 [12:44:04]line РНМ: 0000000000091777 [12:44:04]line Версия ККМ: 001 [12:44:04]line ФМ: 0000000000871756 [12:44:04]line ФД: 201934 [12:44:04]line ФПД: 23218951596272 [12:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201934&fm=23218951596272&tin=02508201610067®Number=0000000000091777&sum=80000 [12:44:05]OFD Sender: Processing packet 201934 [packets to send 112, broken 111] [12:44:05]ProducePacketName [12:44:05]name=ofd_packets/00201934 [12:44:05]OFD Sender: To server: pG, [12:44:05]CommunicateWithHost lk.salyk.kg:30040 [12:44:05]ConnectInit lk.salyk.kg [12:44:05]written 0, free lines is 4095 [12:44:05]Connected sock=10 [12:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 03 47 04 01 FF CF 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 E2 00 00 00 F4 03 04 00 93 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 14 03 00 35 04 06 00 15 1E 15 5C A8 F0 C7 0D 89 28 D1 49 8C 74 [12:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 69 65 47 00 D6 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 14 03 00 F4 03 04 00 4D E1 1D 67 B6 04 01 00 00 AA 95 70 93 80 F5 EC 49 [12:44:05]CommunicateWithHost err = 0 [12:44:05]CheckOFDResponse [12:44:05]1017 (14) - 77093643461234 [12:44:05]1041 (16) - 0000000000871756 [12:44:05]1040 (4) - 201934 [12:44:05]1012 (4) - 27.10.2024 06:44 [12:44:05]1206 (1) - 0 [12:44:05]OFD Sender: Remove packet 201934 [12:44:05]ProducePacketName [12:44:05]name=ofd_packets/00201934 [12:44:05]NVStorageDeleteData [12:44:05]Write to MH i2c: 01 00 00 64 0F 73 [12:44:05]Write i2c OK [12:44:05]MH_I2C_Read... [12:44:05]Read from MH i2c: 01 [12:44:05]MH_I2C_Read... [12:44:05]Read from MH i2c: 01 07 00 [12:44:05]MH_I2C_Read... [12:44:05]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 8D 0C 13 [12:44:05]RasterBufferAndPrint [12:44:05]line [12:44:05]line [12:44:05]line [12:44:05]line [12:44:05]line [12:44:05]written 0, free lines is 3218 [12:44:05]MH_Cut [12:44:05]Write to MH i2c: D1 01 00 6B 0F 01 4C [12:44:05]Write i2c OK [12:44:05]MH_I2C_Read... [12:44:05]Read from MH i2c: D1 [12:44:05]MH_I2C_Read... [12:44:05]Read from MH i2c: D1 01 00 [12:44:05]MH_I2C_Read... [12:44:05]Read from MH i2c: D1 01 00 6B 0F 00 4B [12:44:05]Write to MH i2c: 01 00 00 6C 0F 7B [12:44:05]Write i2c OK [12:44:05]MH_I2C_Read... [12:44:05]OFD Sender: No OFD packet to send [12:44:06]*** Cut start [12:44:06]*** Purtial cut [12:44:06]*** Stage 1: CUTSNS_PIN = 1 [12:44:06]Read from MH i2c: 01 [12:44:06]MH_I2C_Read... [12:44:06]*** Stop cut motor [12:44:06]*** Cut end [12:44:06]Read from MH i2c: 01 07 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 FF 0F 90 [12:44:06]process_action close_receipt done [12:44:06]requested_data is exist [12:44:06]produce_requested_data [12:44:06]requested_item fm.sn is exist - process it [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 11 00 00 [12:44:06]Write to MH i2c: E2 08 00 6D 0F 80 11 00 00 00 00 00 00 F6 [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 17 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 17 00 6D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [12:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:44:06]wFMCommunicate OK [12:44:06]requested_item fd.num is exist - process it [12:44:06]SAM_PROTO_GetFieldsCounters [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 13 00 00 [12:44:06]Write to MH i2c: E2 08 00 6E 0F 80 13 00 00 00 00 00 00 F9 [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 62 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 62 00 6E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [12:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:06]wFMCommunicate OK [12:44:06]SAM_PROTO_GetFieldsCounters done [12:44:06]requested_item shift.num is exist - process it [12:44:06]requested_item shift.opened is exist - process it [12:44:06]req_shift_opened [12:44:06]FM_GetShiftState [12:44:06]SAM_PROTO_GetShiftState [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 13 01 00 [12:44:06]Write to MH i2c: E2 08 00 6F 0F 80 13 01 00 00 00 00 00 FB [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:07]Read from MH i2c: E2 [12:44:07]MH_I2C_Read... [12:44:07]Read from MH i2c: E2 0E 00 [12:44:07]MH_I2C_Read... [12:44:07]Read from MH i2c: E2 0E 00 6F 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FD [12:44:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:44:07]wFMCommunicate OK [12:44:07]SAM_PROTO_GetShiftState done [12:44:07]FM_GetShiftState done [12:44:07]req_shift_opened done [12:44:07]requested_item shift.open_date is exist - process it [12:44:07]req_shift_open_date [12:44:07]req_shift_open_date done [12:44:07]produce_requested_data done [12:44:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201934,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:44:07]process_action_free close_receipt [12:44:07]json_value_free [12:44:07]json_value_free done [12:44:07]process_json_proto returns [12:44:07]Send response to host [12:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201934,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:44:07]free response buf [12:44:07]execute_script done [12:44:07]execute_script returns [12:44:07]free content buf [12:44:07]Sock 9.Close socket [12:44:07]Sock 9.Thread stoped [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:43]accept exits with 8 [12:44:43]New connection [12:44:43]New thread 3066641764 created [12:44:43]Thread 3066498404 joined [12:44:43]Waiting for new connection... [12:44:43] Sock 8.Parse request [12:44:43]Sock 8.Check first char [12:44:43]Sock 8.First char is OK [12:44:43]request: POST /json_proto HTTP/1.0 [12:44:43]Method: POST [12:44:43]URL: /json_proto [12:44:43]Method is POST - this is cgi request [12:44:43]url: /json_proto [12:44:43]query_string will be loaded in cgi processing [12:44:43]execute_cgi json_proto POST (null) [12:44:43]execute_cgi path=json_proto method=POST [12:44:43]POST find Content-Length [12:44:43]Host: 172.17.63.195:8080 [12:44:43]Content-Length: 766 [12:44:43]Content-Type: application/json [12:44:43] [12:44:43]POST finish read [12:44:43]Found Content-Length = 766 [12:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:43]execute_script... [12:44:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:43]POST & json_proto [12:44:43]process_json_proto [12:44:43]json parsed OK: [12:44:43]protocol is kg_v1.0 [12:44:43]action value=close_receipt [12:44:43]process_action close_receipt [12:44:43]cmd_close_receipt [12:44:43]MH_GetDate [12:44:43]Write to MH i2c: F0 00 00 70 0F 6E [12:44:43]Write i2c OK [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: F0 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: F0 09 00 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: F0 09 00 70 0F 00 BC 35 1E 67 47 1B 1E 67 D4 [12:44:43]GetLastDocTimeStamp 1730033043 [12:44:43]current date 1730033084 [12:44:43]FM_GetShiftState [12:44:43]SAM_PROTO_GetShiftState [12:44:43]wFMCommunicate request_size=4 [12:44:43]MH_SAM_APDU [12:44:43]CAPDU: 80 13 01 00 [12:44:43]Write to MH i2c: E2 08 00 71 0F 80 13 01 00 00 00 00 00 FD [12:44:43]Write i2c OK [12:44:43]MH_I2C_Read... [12:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:43]Read from MH i2c: E2 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: E2 0E 00 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: E2 0E 00 71 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FF [12:44:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:44:43]wFMCommunicate OK [12:44:43]SAM_PROTO_GetShiftState done [12:44:43]FM_GetShiftState done [12:44:43]opened in 1729987312 [12:44:43]opened+sec_in_day 1730073712 [12:44:43]quantity*price = 40006 [12:44:43]sum+1 = 40007 [12:44:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 227 27.10.2024 12:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201935 ФПД: 142952788934927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124444&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201935&fm=142952788934927&tin=02508201610067®Number=0000000000091777&sum=40006 [12:44:44]StoreToDocumentArchive [12:44:44]shift 544 fd 201935 [12:44:44]save to /storage/0544/doc_00201935 [12:44:44]save last doc name /storage/0544/doc_00201935 to /storage/kkm_last_doc_name [12:44:44]save OK [12:44:44]Clear old archive folders... [12:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:44]tlvbuf is 0120B6C0 [12:44:44]SAM_PROTO_ClearQueue [12:44:44]wFMCommunicate request_size=4 [12:44:44]MH_SAM_APDU [12:44:44]CAPDU: 80 09 00 00 [12:44:44]Write to MH i2c: E2 08 00 7E 0F 80 09 00 00 00 00 00 00 FF [12:44:44]Write i2c OK [12:44:44]MH_I2C_Read... [12:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:44]Read from MH i2c: E2 [12:44:44]MH_I2C_Read... [12:44:44]Read from MH i2c: E2 03 00 [12:44:44]MH_I2C_Read... [12:44:44]Read from MH i2c: E2 03 00 7E 0F 00 90 00 01 [12:44:44]RAPDU: 90 00 [12:44:44]wFMCommunicate OK [12:44:44]SAM_PROTO_ClearQueue done [12:44:44]KKMCreateOFDPacket [12:44:44]OFDProtocolAddRootSTLVToBuf [12:44:44]FM_MakeSignedData [12:44:44]FM_MakeSignedData [12:44:44]SAM_PROTO_SignData [12:44:44]wFMCommunicate request_size=4 [12:44:44]MH_SAM_APDU [12:44:44]CAPDU: 80 0D 01 02 [12:44:44]Write to MH i2c: E2 08 00 7F 0F 80 0D 01 02 00 00 00 00 07 [12:44:44]Write i2c OK [12:44:44]MH_I2C_Read... [12:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:44]Read from MH i2c: E2 [12:44:44]MH_I2C_Read... [12:44:44]Read from MH i2c: E2 03 00 [12:44:44]MH_I2C_Read... [12:44:44]Read from MH i2c: E2 03 00 7F 0F 00 90 00 02 [12:44:44]RAPDU: 90 00 [12:44:44]wFMCommunicate OK [12:44:44]wFMCommunicate request_size=255 [12:44:44]MH_SAM_APDU [12:44:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 BC 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 14 03 00 35 04 06 00 82 [12:44:44]Write to MH i2c: E2 02 01 80 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 BC 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 14 03 00 35 04 06 00 82 00 00 59 [12:44:44]Write i2c OK [12:44:44]MH_I2C_Read... [12:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:44]Read from MH i2c: E2 [12:44:44]MH_I2C_Read... [12:44:44]Read from MH i2c: E2 03 00 [12:44:44]MH_I2C_Read... [12:44:44]Read from MH i2c: E2 03 00 80 0F 00 90 00 03 [12:44:44]RAPDU: 90 00 [12:44:44]wFMCommunicate OK [12:44:44]wFMCommunicate request_size=10 [12:44:44]MH_SAM_APDU [12:44:44]CAPDU: 80 0D 02 02 05 03 CA 34 41 0F [12:44:44]Write to MH i2c: E2 0D 00 81 0F 80 0D 02 02 05 00 03 CA 34 41 0F 00 00 65 [12:44:44]Write i2c OK [12:44:44]MH_I2C_Read... [12:44:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:45]Read from MH i2c: E2 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: E2 03 00 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: E2 03 00 81 0F 00 90 00 04 [12:44:45]RAPDU: 90 00 [12:44:45]wFMCommunicate OK [12:44:45]wFMCommunicate request_size=4 [12:44:45]MH_SAM_APDU [12:44:45]CAPDU: 80 0D 03 02 [12:44:45]Write to MH i2c: E2 08 00 82 0F 80 0D 03 02 00 00 00 00 0C [12:44:45]Write i2c OK [12:44:45]MH_I2C_Read... [12:44:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:45]Read from MH i2c: E2 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: E2 0B 00 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: E2 0B 00 82 0F 00 BA 66 27 32 0A CF C4 75 90 00 98 [12:44:45]RAPDU: BA 66 27 32 0A CF C4 75 90 00 [12:44:45]wFMCommunicate OK [12:44:45]SAM_PROTO_SignData done [12:44:45]FM_MakeSignedData done [12:44:45]CreateOFDProtocolMessage [12:44:45]wFMCommunicate request_size=4 [12:44:45]MH_SAM_APDU [12:44:45]CAPDU: 80 11 00 00 [12:44:45]Write to MH i2c: E2 08 00 83 0F 80 11 00 00 00 00 00 00 0C [12:44:45]Write i2c OK [12:44:45]MH_I2C_Read... [12:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:45]Read from MH i2c: E2 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: E2 17 00 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: E2 17 00 83 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [12:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:44:45]wFMCommunicate OK [12:44:45]CreateOFDProtocolMessage done [12:44:45]OFDSenderStorePacket 201935 [12:44:45]StoreOFDPacket docnum=201935 [12:44:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B4 99 07 01 7A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 BC 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 14 03 00 35 04 06 00 82 03 CA 34 41 0F BA 66 27 32 0A CF C4 75 [12:44:45]CheckFolder [12:44:45]dirname=/storage/ofd_packets [12:44:45]CheckFolder done [12:44:45]ProducePacketName [12:44:45]name=ofd_packets/00201935 [12:44:45]NVStorageSaveData ofd_packets/00201935 [12:44:45]File name is /storage/ofd_packets/00201935 [12:44:45]Write 301 bytes [12:44:45]NVStorageSaveData done [12:44:45]OFDSenderStorePacket done [12:44:45]KKMCreateOFDPacket done [12:44:45]NVStorageSaveData kkm_last_timestamp [12:44:45]File name is /storage/kkm_last_timestamp [12:44:45]Write 4 bytes [12:44:45]NVStorageSaveData done [12:44:45]ExternCall_PrintAddStr [12:44:45]wPrintStart [12:44:45]Write to MH i2c: 01 00 00 84 0F 93 [12:44:45]Write i2c OK [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: 01 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: 01 07 00 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [12:44:45]RasterBufferAndPrint [12:44:45]line Счет N : (1)449696 [12:44:45]line ИНН: 02508201610067 [12:44:45]line Контрольно-Кассовый Чек [12:44:45]line ПРОДАЖА [12:44:45]line ТРК (МРК, ГНК) : 52 [12:44:45]line Товар: 2710124130 [12:44:45]line Аи-92-К-2 [12:44:45]line 5.980 * 66.90 [12:44:45]line = 400.06 [12:44:45]line НДС 12% НСП 1% [12:44:45]line > о реализуемом товаре [12:44:45]line ИТОГО: 400.06 [12:44:45]line НСП 1% : 3.54 [12:44:45]line НДС 12% : 42.48 [12:44:45]line Наличными: 0.00 [12:44:45]line Безнал.: 400.06 [12:44:45]line Место: АЗС № 171 "Партнер Нефть" [12:44:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:44:45]line СНО: Общий режим [12:44:45]line Чек 227 27.10.2024 12:44 [12:44:45]line Смена: 544 ФФД: 1.0 [12:44:45]line ЗНМ: 0300000109 [12:44:45]line РНМ: 0000000000091777 [12:44:45]line Версия ККМ: 001 [12:44:45]line Платежная система: Mbank [12:44:45]line ФМ: 0000000000871756 [12:44:45]line ФД: 201935 [12:44:45]line ФПД: 142952788934927 [12:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124444&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201935&fm=142952788934927&tin=02508201610067®Number=0000000000091777&sum=40006 [12:44:45]OFD Sender: Processing packet 201935 [packets to send 112, broken 111] [12:44:45]ProducePacketName [12:44:45]name=ofd_packets/00201935 [12:44:45]OFD Sender: To server: pG, [12:44:45]CommunicateWithHost lk.salyk.kg:30040 [12:44:45]ConnectInit lk.salyk.kg [12:44:45]written 0, free lines is 4095 [12:44:45]Connected sock=10 [12:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B4 99 07 01 7A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 BC 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 14 03 00 35 04 06 00 82 03 CA 34 41 0F BA 66 27 32 0A CF C4 75 [12:44:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 25 32 47 00 7F BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 14 03 00 F4 03 04 00 76 E1 1D 67 B6 04 01 00 00 46 AD 93 A7 57 97 6B 54 [12:44:45]CommunicateWithHost err = 0 [12:44:45]CheckOFDResponse [12:44:45]1017 (14) - 77093643461234 [12:44:45]1041 (16) - 0000000000871756 [12:44:45]1040 (4) - 201935 [12:44:45]1012 (4) - 27.10.2024 06:45 [12:44:45]1206 (1) - 0 [12:44:45]OFD Sender: Remove packet 201935 [12:44:45]ProducePacketName [12:44:45]name=ofd_packets/00201935 [12:44:45]NVStorageDeleteData [12:44:45]Write to MH i2c: 01 00 00 AD 0F BC [12:44:45]Write i2c OK [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: 01 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: 01 07 00 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: 01 07 00 AD 0F 00 00 00 00 00 B5 0C 84 [12:44:45]RasterBufferAndPrint [12:44:45]line [12:44:45]line [12:44:45]line [12:44:45]line [12:44:45]line [12:44:45]written 0, free lines is 3256 [12:44:45]MH_Cut [12:44:45]Write to MH i2c: D1 01 00 B4 0F 01 95 [12:44:45]Write i2c OK [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: D1 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: D1 01 00 [12:44:45]MH_I2C_Read... [12:44:45]Read from MH i2c: D1 01 00 B4 0F 00 94 [12:44:45]Write to MH i2c: 01 00 00 B5 0F C4 [12:44:45]Write i2c OK [12:44:45]MH_I2C_Read... [12:44:46]OFD Sender: No OFD packet to send [12:44:46]*** Cut start [12:44:46]*** Purtial cut [12:44:46]*** CUTSNS_PIN = 0 [12:44:47]*** Stage 1: CUTSNS_PIN = 1 [12:44:48]Read from MH i2c: 01 [12:44:48]MH_I2C_Read... [12:44:48]*** Stop cut motor [12:44:48]*** Cut end [12:44:48]Read from MH i2c: 01 07 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: 01 07 00 B5 0F 00 00 00 00 00 FF 0F D9 [12:44:48]process_action close_receipt done [12:44:48]requested_data is exist [12:44:48]produce_requested_data [12:44:48]requested_item fm.sn is exist - process it [12:44:48]wFMCommunicate request_size=4 [12:44:48]MH_SAM_APDU [12:44:48]CAPDU: 80 11 00 00 [12:44:48]Write to MH i2c: E2 08 00 B6 0F 80 11 00 00 00 00 00 00 3F [12:44:48]Write i2c OK [12:44:48]MH_I2C_Read... [12:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:48]Read from MH i2c: E2 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 17 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 17 00 B6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 94 [12:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:44:48]wFMCommunicate OK [12:44:48]requested_item fd.num is exist - process it [12:44:48]SAM_PROTO_GetFieldsCounters [12:44:48]wFMCommunicate request_size=4 [12:44:48]MH_SAM_APDU [12:44:48]CAPDU: 80 13 00 00 [12:44:48]Write to MH i2c: E2 08 00 B7 0F 80 13 00 00 00 00 00 00 42 [12:44:48]Write i2c OK [12:44:48]MH_I2C_Read... [12:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:49]Read from MH i2c: E2 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 62 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 62 00 B7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [12:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:49]wFMCommunicate OK [12:44:49]SAM_PROTO_GetFieldsCounters done [12:44:49]requested_item shift.num is exist - process it [12:44:49]requested_item shift.opened is exist - process it [12:44:49]req_shift_opened [12:44:49]FM_GetShiftState [12:44:49]SAM_PROTO_GetShiftState [12:44:49]wFMCommunicate request_size=4 [12:44:49]MH_SAM_APDU [12:44:49]CAPDU: 80 13 01 00 [12:44:49]Write to MH i2c: E2 08 00 B8 0F 80 13 01 00 00 00 00 00 44 [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:49]Read from MH i2c: E2 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 0E 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 0E 00 B8 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 46 [12:44:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:44:49]wFMCommunicate OK [12:44:49]SAM_PROTO_GetShiftState done [12:44:49]FM_GetShiftState done [12:44:49]req_shift_opened done [12:44:49]requested_item shift.open_date is exist - process it [12:44:49]req_shift_open_date [12:44:49]req_shift_open_date done [12:44:49]produce_requested_data done [12:44:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201935,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:44:49]process_action_free close_receipt [12:44:49]json_value_free [12:44:49]json_value_free done [12:44:49]process_json_proto returns [12:44:49]Send response to host [12:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201935,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:44:49]free response buf [12:44:49]execute_script done [12:44:49]execute_script returns [12:44:49]free content buf [12:44:49]Sock 8.Close socket [12:44:49]Sock 8.Thread stoped [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:03]accept exits with 9 [12:45:03]New connection [12:45:03]New thread 3066498404 created [12:45:03]Thread 3066641764 joined [12:45:03]Waiting for new connection... [12:45:03] Sock 9.Parse request [12:45:03]Sock 9.Check first char [12:45:03]Sock 9.First char is OK [12:45:03]request: POST /json_proto HTTP/1.0 [12:45:03]Method: POST [12:45:03]URL: /json_proto [12:45:03]Method is POST - this is cgi request [12:45:03]url: /json_proto [12:45:03]query_string will be loaded in cgi processing [12:45:03]execute_cgi json_proto POST (null) [12:45:03]execute_cgi path=json_proto method=POST [12:45:03]POST find Content-Length [12:45:03]Host: 172.17.63.195:8080 [12:45:03]Content-Length: 677 [12:45:03]Content-Type: application/json [12:45:03] [12:45:03]POST finish read [12:45:03]Found Content-Length = 677 [12:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:03]execute_script... [12:45: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)449697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:03]POST & json_proto [12:45:03]process_json_proto [12:45:03]json parsed OK: [12:45:03]protocol is kg_v1.0 [12:45:03]action value=close_receipt [12:45:03]process_action close_receipt [12:45:03]cmd_close_receipt [12:45:03]MH_GetDate [12:45:03]Write to MH i2c: F0 00 00 B9 0F B7 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 09 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: F0 09 00 B9 0F 00 D0 35 1E 67 47 1B 1E 67 31 [12:45:03]GetLastDocTimeStamp 1730033084 [12:45:03]current date 1730033104 [12:45:03]FM_GetShiftState [12:45:03]SAM_PROTO_GetShiftState [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 13 01 00 [12:45:03]Write to MH i2c: E2 08 00 BA 0F 80 13 01 00 00 00 00 00 46 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0E 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0E 00 BA 0F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 48 [12:45:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_GetShiftState done [12:45:03]FM_GetShiftState done [12:45:03]opened in 1729987312 [12:45:03]opened+sec_in_day 1730073712 [12:45:03]quantity*price = 30038 [12:45:03]sum+1 = 30039 [12:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 228 27.10.2024 12:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201936 ФПД: 157240944391813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124504&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201936&fm=157240944391813&tin=02508201610067®Number=0000000000091777&sum=30000 [12:45:04]StoreToDocumentArchive [12:45:04]shift 544 fd 201936 [12:45:04]save to /storage/0544/doc_00201936 [12:45:04]save last doc name /storage/0544/doc_00201936 to /storage/kkm_last_doc_name [12:45:04]save OK [12:45:04]Clear old archive folders... [12:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:04]tlvbuf is 011AE120 [12:45:04]SAM_PROTO_ClearQueue [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 09 00 00 [12:45:04]Write to MH i2c: E2 08 00 C7 0F 80 09 00 00 00 00 00 00 48 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 C7 0F 00 90 00 4A [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]SAM_PROTO_ClearQueue done [12:45:04]KKMCreateOFDPacket [12:45:04]OFDProtocolAddRootSTLVToBuf [12:45:04]FM_MakeSignedData [12:45:04]FM_MakeSignedData [12:45:04]SAM_PROTO_SignData [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 01 02 [12:45:04]Write to MH i2c: E2 08 00 C8 0F 80 0D 01 02 00 00 00 00 50 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 C8 0F 00 90 00 4B [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=255 [12:45:04]MH_SAM_APDU [12:45: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 32 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 E4 00 00 00 F4 03 04 00 D0 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 14 03 00 35 04 06 00 8F [12:45:04]Write to MH i2c: E2 02 01 C9 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E4 00 00 00 F4 03 04 00 D0 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 14 03 00 35 04 06 00 8F 00 00 DE [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 C9 0F 00 90 00 4C [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=10 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 02 02 05 02 82 A2 76 85 [12:45:04]Write to MH i2c: E2 0D 00 CA 0F 80 0D 02 02 05 00 02 82 A2 76 85 00 00 7E [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:04]Read from MH i2c: E2 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 [12:45:04]MH_I2C_Read... [12:45:04]Read from MH i2c: E2 03 00 CA 0F 00 90 00 4D [12:45:04]RAPDU: 90 00 [12:45:04]wFMCommunicate OK [12:45:04]wFMCommunicate request_size=4 [12:45:04]MH_SAM_APDU [12:45:04]CAPDU: 80 0D 03 02 [12:45:04]Write to MH i2c: E2 08 00 CB 0F 80 0D 03 02 00 00 00 00 55 [12:45:04]Write i2c OK [12:45:04]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 0B 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 0B 00 CB 0F 00 BD 75 4E 81 20 DB B1 51 90 00 54 [12:45:05]RAPDU: BD 75 4E 81 20 DB B1 51 90 00 [12:45:05]wFMCommunicate OK [12:45:05]SAM_PROTO_SignData done [12:45:05]FM_MakeSignedData done [12:45:05]CreateOFDProtocolMessage [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 11 00 00 [12:45:05]Write to MH i2c: E2 08 00 CC 0F 80 11 00 00 00 00 00 00 55 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 CC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AA [12:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:45:05]wFMCommunicate OK [12:45:05]CreateOFDProtocolMessage done [12:45:05]OFDSenderStorePacket 201936 [12:45:05]StoreOFDPacket docnum=201936 [12:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 52 85 07 01 A9 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E4 00 00 00 F4 03 04 00 D0 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 14 03 00 35 04 06 00 8F 02 82 A2 76 85 BD 75 4E 81 20 DB B1 51 [12:45:05]CheckFolder [12:45:05]dirname=/storage/ofd_packets [12:45:05]CheckFolder done [12:45:05]ProducePacketName [12:45:05]name=ofd_packets/00201936 [12:45:05]NVStorageSaveData ofd_packets/00201936 [12:45:05]File name is /storage/ofd_packets/00201936 [12:45:05]Write 301 bytes [12:45:05]NVStorageSaveData done [12:45:05]OFDSenderStorePacket done [12:45:05]KKMCreateOFDPacket done [12:45:05]NVStorageSaveData kkm_last_timestamp [12:45:05]File name is /storage/kkm_last_timestamp [12:45:05]Write 4 bytes [12:45:05]NVStorageSaveData done [12:45:05]ExternCall_PrintAddStr [12:45:05]wPrintStart [12:45:05]Write to MH i2c: 01 00 00 CD 0F DC [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 CD 0F 00 00 00 00 00 FF 0F F1 [12:45:05]RasterBufferAndPrint [12:45:05]line Счет N : (1)449697 [12:45:05]line ИНН: 02508201610067 [12:45:05]line Контрольно-Кассовый Чек [12:45:05]line ПРОДАЖА [12:45:05]line ТРК (МРК, ГНК) : 62 [12:45:05]line Товар: 2710124130 [12:45:05]line Аи-92-К-2 [12:45:05]line 4.490 * 66.90 [12:45:05]line = 300.38 [12:45:05]line НДС 12% НСП 1% [12:45:05]line > о реализуемом товаре [12:45:05]line ОКРУГЛЕНИЕ: -0.38 [12:45:05]line ИТОГО: 300.00 [12:45:05]line Внесено: 300.00 [12:45:05]line СДАЧА: 0.00 [12:45:05]line НСП 1% : 2.66 [12:45:05]line НДС 12% : 31.90 [12:45:05]line Наличными: 300.00 [12:45:05]line Безнал.: 0.00 [12:45:05]line Место: АЗС № 171 "Партнер Нефть" [12:45:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:45:05]line СНО: Общий режим [12:45:05]line Чек 228 27.10.2024 12:45 [12:45:05]line Смена: 544 ФФД: 1.0 [12:45:05]line ЗНМ: 0300000109 [12:45:05]line РНМ: 0000000000091777 [12:45:05]line Версия ККМ: 001 [12:45:05]line ФМ: 0000000000871756 [12:45:05]line ФД: 201936 [12:45:05]line ФПД: 157240944391813 [12:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124504&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201936&fm=157240944391813&tin=02508201610067®Number=0000000000091777&sum=30000 [12:45:05]OFD Sender: Processing packet 201936 [packets to send 112, broken 111] [12:45:05]ProducePacketName [12:45:05]name=ofd_packets/00201936 [12:45:05]OFD Sender: To server: pG, [12:45:05]CommunicateWithHost lk.salyk.kg:30040 [12:45:05]ConnectInit lk.salyk.kg [12:45:05]written 0, free lines is 4095 [12:45:05]Connected sock=11 [12:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 52 85 07 01 A9 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E4 00 00 00 F4 03 04 00 D0 35 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 14 03 00 35 04 06 00 8F 02 82 A2 76 85 BD 75 4E 81 20 DB B1 51 [12:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 00 BE 47 00 01 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 14 03 00 F4 03 04 00 8A E1 1D 67 B6 04 01 00 00 01 84 7D 51 1D 10 DC 86 [12:45:05]CommunicateWithHost err = 0 [12:45:05]CheckOFDResponse [12:45:05]1017 (14) - 77093643461234 [12:45:05]1041 (16) - 0000000000871756 [12:45:05]1040 (4) - 201936 [12:45:05]1012 (4) - 27.10.2024 06:45 [12:45:05]1206 (1) - 0 [12:45:05]OFD Sender: Remove packet 201936 [12:45:05]ProducePacketName [12:45:05]name=ofd_packets/00201936 [12:45:05]NVStorageDeleteData [12:45:05]Write to MH i2c: 01 00 00 F8 0F 07 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 F8 0F 00 00 00 00 00 88 0C A2 [12:45:05]RasterBufferAndPrint [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]line [12:45:05]written 0, free lines is 3211 [12:45:05]MH_Cut [12:45:05]Write to MH i2c: D1 01 00 FF 0F 01 E0 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 01 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: D1 01 00 FF 0F 00 DF [12:45:05]Write to MH i2c: 01 00 00 00 10 10 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:06]OFD Sender: No OFD packet to send [12:45:06]*** Cut start [12:45:06]*** Purtial cut [12:45:06]*** Stage 1: CUTSNS_PIN = 1 [12:45:07]Read from MH i2c: 01 [12:45:07]MH_I2C_Read... [12:45:07]*** Stop cut motor [12:45:07]*** Cut end [12:45:07]Read from MH i2c: 01 07 00 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: 01 07 00 00 10 00 00 00 00 00 FF 0F 25 [12:45:07]process_action close_receipt done [12:45:07]requested_data is exist [12:45:07]produce_requested_data [12:45:07]requested_item fm.sn is exist - process it [12:45:07]wFMCommunicate request_size=4 [12:45:07]MH_SAM_APDU [12:45:07]CAPDU: 80 11 00 00 [12:45:07]Write to MH i2c: E2 08 00 01 10 80 11 00 00 00 00 00 00 8B [12:45:07]Write i2c OK [12:45:07]MH_I2C_Read... [12:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:07]Read from MH i2c: E2 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 17 00 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 17 00 01 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E0 [12:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:45:07]wFMCommunicate OK [12:45:07]requested_item fd.num is exist - process it [12:45:07]SAM_PROTO_GetFieldsCounters [12:45:07]wFMCommunicate request_size=4 [12:45:07]MH_SAM_APDU [12:45:07]CAPDU: 80 13 00 00 [12:45:07]Write to MH i2c: E2 08 00 02 10 80 13 00 00 00 00 00 00 8E [12:45:07]Write i2c OK [12:45:07]MH_I2C_Read... [12:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:07]Read from MH i2c: E2 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 62 00 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 62 00 02 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [12:45:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:07]wFMCommunicate OK [12:45:07]SAM_PROTO_GetFieldsCounters done [12:45:07]requested_item shift.num is exist - process it [12:45:07]requested_item shift.opened is exist - process it [12:45:07]req_shift_opened [12:45:07]FM_GetShiftState [12:45:07]SAM_PROTO_GetShiftState [12:45:07]wFMCommunicate request_size=4 [12:45:07]MH_SAM_APDU [12:45:07]CAPDU: 80 13 01 00 [12:45:07]Write to MH i2c: E2 08 00 03 10 80 13 01 00 00 00 00 00 90 [12:45:07]Write i2c OK [12:45:07]MH_I2C_Read... [12:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:07]Read from MH i2c: E2 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 0E 00 [12:45:07]MH_I2C_Read... [12:45:07]Read from MH i2c: E2 0E 00 03 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 92 [12:45:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:45:07]wFMCommunicate OK [12:45:07]SAM_PROTO_GetShiftState done [12:45:07]FM_GetShiftState done [12:45:07]req_shift_opened done [12:45:07]requested_item shift.open_date is exist - process it [12:45:07]req_shift_open_date [12:45:07]req_shift_open_date done [12:45:07]produce_requested_data done [12:45:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201936,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:45:07]process_action_free close_receipt [12:45:07]json_value_free [12:45:07]json_value_free done [12:45:07]process_json_proto returns [12:45:07]Send response to host [12:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201936,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:45:07]free response buf [12:45:07]execute_script done [12:45:07]execute_script returns [12:45:07]free content buf [12:45:07]Sock 9.Close socket [12:45:07]Sock 9.Thread stoped [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:09]accept exits with 8 [12:47:09]New connection [12:47:09]New thread 3066641764 created [12:47:09]Thread 3066498404 joined [12:47:09]Waiting for new connection... [12:47:09] Sock 8.Parse request [12:47:09]Sock 8.Check first char [12:47:09]Sock 8.First char is OK [12:47:09]request: POST /json_proto HTTP/1.0 [12:47:09]Method: POST [12:47:09]URL: /json_proto [12:47:09]Method is POST - this is cgi request [12:47:09]url: /json_proto [12:47:09]query_string will be loaded in cgi processing [12:47:09]execute_cgi json_proto POST (null) [12:47:09]execute_cgi path=json_proto method=POST [12:47:09]POST find Content-Length [12:47:09]Host: 172.17.63.195:8080 [12:47:09]Content-Length: 679 [12:47:09]Content-Type: application/json [12:47:09] [12:47:09]POST finish read [12:47:09]Found Content-Length = 679 [12:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:09]execute_script... [12:47:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:09]POST & json_proto [12:47:09]process_json_proto [12:47:09]json parsed OK: [12:47:09]protocol is kg_v1.0 [12:47:09]action value=close_receipt [12:47:09]process_action close_receipt [12:47:09]cmd_close_receipt [12:47:09]MH_GetDate [12:47:09]Write to MH i2c: F0 00 00 04 10 03 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: F0 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: F0 09 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: F0 09 00 04 10 00 4D 36 1E 67 47 1B 1E 67 FB [12:47:09]GetLastDocTimeStamp 1730033104 [12:47:09]current date 1730033229 [12:47:09]FM_GetShiftState [12:47:09]SAM_PROTO_GetShiftState [12:47:09]wFMCommunicate request_size=4 [12:47:09]MH_SAM_APDU [12:47:09]CAPDU: 80 13 01 00 [12:47:09]Write to MH i2c: E2 08 00 05 10 80 13 01 00 00 00 00 00 92 [12:47:09]Write i2c OK [12:47:09]MH_I2C_Read... [12:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:09]Read from MH i2c: E2 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: E2 0E 00 [12:47:09]MH_I2C_Read... [12:47:09]Read from MH i2c: E2 0E 00 05 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 94 [12:47:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:47:09]wFMCommunicate OK [12:47:09]SAM_PROTO_GetShiftState done [12:47:09]FM_GetShiftState done [12:47:09]opened in 1729987312 [12:47:09]opened+sec_in_day 1730073712 [12:47:09]quantity*price = 200025 [12:47:09]sum+1 = 200026 [12:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 229 27.10.2024 12:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201937 ФПД: 201940383066366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124709&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201937&fm=201940383066366&tin=02508201610067®Number=0000000000091777&sum=200000 [12:47:10]StoreToDocumentArchive [12:47:10]shift 544 fd 201937 [12:47:10]save to /storage/0544/doc_00201937 [12:47:10]save last doc name /storage/0544/doc_00201937 to /storage/kkm_last_doc_name [12:47:10]save OK [12:47:10]Clear old archive folders... [12:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:47:10]tlvbuf is 01196E30 [12:47:10]SAM_PROTO_ClearQueue [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 09 00 00 [12:47:10]Write to MH i2c: E2 08 00 12 10 80 09 00 00 00 00 00 00 94 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 12 10 00 90 00 96 [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]SAM_PROTO_ClearQueue done [12:47:10]KKMCreateOFDPacket [12:47:10]OFDProtocolAddRootSTLVToBuf [12:47:10]FM_MakeSignedData [12:47:10]FM_MakeSignedData [12:47:10]SAM_PROTO_SignData [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 01 02 [12:47:10]Write to MH i2c: E2 08 00 13 10 80 0D 01 02 00 00 00 00 9C [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 13 10 00 90 00 97 [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]wFMCommunicate request_size=255 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4D 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 14 03 00 35 04 06 00 B7 A9 E8 CC [12:47:10]Write to MH i2c: E2 02 01 14 10 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4D 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 14 03 00 35 04 06 00 B7 A9 E8 CC 00 00 1F [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 14 10 00 90 00 98 [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]wFMCommunicate request_size=7 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 02 02 02 68 FE [12:47:10]Write to MH i2c: E2 0A 00 15 10 80 0D 02 02 02 00 68 FE 00 00 09 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 15 10 00 90 00 99 [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 03 02 [12:47:10]Write to MH i2c: E2 08 00 16 10 80 0D 03 02 00 00 00 00 A1 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 0B 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 0B 00 16 10 00 1C 16 51 CD AB 2A 9B 7B 90 00 DD [12:47:10]RAPDU: 1C 16 51 CD AB 2A 9B 7B 90 00 [12:47:10]wFMCommunicate OK [12:47:10]SAM_PROTO_SignData done [12:47:10]FM_MakeSignedData done [12:47:10]CreateOFDProtocolMessage [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 11 00 00 [12:47:10]Write to MH i2c: E2 08 00 17 10 80 11 00 00 00 00 00 00 A1 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 17 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 17 00 17 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F6 [12:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:47:10]wFMCommunicate OK [12:47:10]CreateOFDProtocolMessage done [12:47:10]OFDSenderStorePacket 201937 [12:47:10]StoreOFDPacket docnum=201937 [12:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0E 86 04 01 BD 07 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4D 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 14 03 00 35 04 06 00 B7 A9 E8 CC 68 FE 1C 16 51 CD AB 2A 9B 7B [12:47:10]CheckFolder [12:47:10]dirname=/storage/ofd_packets [12:47:10]CheckFolder done [12:47:10]ProducePacketName [12:47:10]name=ofd_packets/00201937 [12:47:10]NVStorageSaveData ofd_packets/00201937 [12:47:10]File name is /storage/ofd_packets/00201937 [12:47:10]Write 298 bytes [12:47:10]NVStorageSaveData done [12:47:10]OFDSenderStorePacket done [12:47:10]KKMCreateOFDPacket done [12:47:10]NVStorageSaveData kkm_last_timestamp [12:47:10]File name is /storage/kkm_last_timestamp [12:47:10]Write 4 bytes [12:47:10]NVStorageSaveData done [12:47:10]ExternCall_PrintAddStr [12:47:10]wPrintStart [12:47:10]Write to MH i2c: 01 00 00 18 10 28 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: 01 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: 01 07 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: 01 07 00 18 10 00 00 00 00 00 FF 0F 3D [12:47:10]RasterBufferAndPrint [12:47:10]line Счет N : (1)449698 [12:47:10]line ИНН: 02508201610067 [12:47:10]line Контрольно-Кассовый Чек [12:47:10]line ПРОДАЖА [12:47:10]line ТРК (МРК, ГНК) : 33 [12:47:10]line Товар: 2710194210 [12:47:10]line ДТ-К-2 [12:47:10]line 26.250 * 76.20 [12:47:10]line = 2000.25 [12:47:10]line НДС 12% НСП 1% [12:47:10]line > о реализуемом товаре [12:47:10]line ОКРУГЛЕНИЕ: -0.25 [12:47:10]line ИТОГО: 2000.00 [12:47:10]line Внесено: 2000.00 [12:47:10]line СДАЧА: 0.00 [12:47:10]line НСП 1% : 17.70 [12:47:10]line НДС 12% : 212.42 [12:47:10]line Наличными: 2000.00 [12:47:10]line Безнал.: 0.00 [12:47:10]line Место: АЗС № 171 "Партнер Нефть" [12:47:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:47:10]line СНО: Общий режим [12:47:10]line Чек 229 27.10.2024 12:47 [12:47:10]line Смена: 544 ФФД: 1.0 [12:47:10]line ЗНМ: 0300000109 [12:47:10]line РНМ: 0000000000091777 [12:47:10]line Версия ККМ: 001 [12:47:10]line ФМ: 0000000000871756 [12:47:10]line ФД: 201937 [12:47:10]line ФПД: 201940383066366 [12:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124709&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201937&fm=201940383066366&tin=02508201610067®Number=0000000000091777&sum=200000 [12:47:11]OFD Sender: Processing packet 201937 [packets to send 112, broken 111] [12:47:11]ProducePacketName [12:47:11]name=ofd_packets/00201937 [12:47:11]OFD Sender: To server: pG, [12:47:11]CommunicateWithHost lk.salyk.kg:30040 [12:47:11]ConnectInit lk.salyk.kg [12:47:11]written 0, free lines is 4095 [12:47:11]Connected sock=10 [12:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0E 86 04 01 BD 07 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4D 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 14 03 00 35 04 06 00 B7 A9 E8 CC 68 FE 1C 16 51 CD AB 2A 9B 7B [12:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A4 5E 47 00 93 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 14 03 00 F4 03 04 00 07 E2 1D 67 B6 04 01 00 00 29 F2 5A 6C 7F 12 08 EB [12:47:11]CommunicateWithHost err = 0 [12:47:11]CheckOFDResponse [12:47:11]1017 (14) - 77093643461234 [12:47:11]1041 (16) - 0000000000871756 [12:47:11]1040 (4) - 201937 [12:47:11]1012 (4) - 27.10.2024 06:47 [12:47:11]1206 (1) - 0 [12:47:11]OFD Sender: Remove packet 201937 [12:47:11]ProducePacketName [12:47:11]name=ofd_packets/00201937 [12:47:11]NVStorageDeleteData [12:47:11]Write to MH i2c: 01 00 00 43 10 53 [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 43 10 00 00 00 00 00 8C 0C F2 [12:47:11]RasterBufferAndPrint [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]written 0, free lines is 3216 [12:47:11]MH_Cut [12:47:11]Write to MH i2c: D1 01 00 4A 10 01 2C [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: D1 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: D1 01 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: D1 01 00 4A 10 00 2B [12:47:11]Write to MH i2c: 01 00 00 4B 10 5B [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:12]OFD Sender: No OFD packet to send [12:47:12]*** Cut start [12:47:12]*** Purtial cut [12:47:12]*** Stage 1: CUTSNS_PIN = 1 [12:47:12]Read from MH i2c: 01 [12:47:12]MH_I2C_Read... [12:47:12]*** Stop cut motor [12:47:12]*** Cut end [12:47:12]Read from MH i2c: 01 07 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: 01 07 00 4B 10 00 00 00 00 00 FF 0F 70 [12:47:12]process_action close_receipt done [12:47:12]requested_data is exist [12:47:12]produce_requested_data [12:47:12]requested_item fm.sn is exist - process it [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 11 00 00 [12:47:12]Write to MH i2c: E2 08 00 4C 10 80 11 00 00 00 00 00 00 D6 [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 17 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 17 00 4C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2B [12:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:47:12]wFMCommunicate OK [12:47:12]requested_item fd.num is exist - process it [12:47:12]SAM_PROTO_GetFieldsCounters [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 13 00 00 [12:47:12]Write to MH i2c: E2 08 00 4D 10 80 13 00 00 00 00 00 00 D9 [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:13]Read from MH i2c: E2 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: E2 62 00 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: E2 62 00 4D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [12:47:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:13]wFMCommunicate OK [12:47:13]SAM_PROTO_GetFieldsCounters done [12:47:13]requested_item shift.num is exist - process it [12:47:13]requested_item shift.opened is exist - process it [12:47:13]req_shift_opened [12:47:13]FM_GetShiftState [12:47:13]SAM_PROTO_GetShiftState [12:47:13]wFMCommunicate request_size=4 [12:47:13]MH_SAM_APDU [12:47:13]CAPDU: 80 13 01 00 [12:47:13]Write to MH i2c: E2 08 00 4E 10 80 13 01 00 00 00 00 00 DB [12:47:13]Write i2c OK [12:47:13]MH_I2C_Read... [12:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:13]Read from MH i2c: E2 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: E2 0E 00 [12:47:13]MH_I2C_Read... [12:47:13]Read from MH i2c: E2 0E 00 4E 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DD [12:47:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:47:13]wFMCommunicate OK [12:47:13]SAM_PROTO_GetShiftState done [12:47:13]FM_GetShiftState done [12:47:13]req_shift_opened done [12:47:13]requested_item shift.open_date is exist - process it [12:47:13]req_shift_open_date [12:47:13]req_shift_open_date done [12:47:13]produce_requested_data done [12:47:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201937,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:47:13]process_action_free close_receipt [12:47:13]json_value_free [12:47:13]json_value_free done [12:47:13]process_json_proto returns [12:47:13]Send response to host [12:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201937,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:47:13]free response buf [12:47:13]execute_script done [12:47:13]execute_script returns [12:47:13]free content buf [12:47:13]Sock 8.Close socket [12:47:13]Sock 8.Thread stoped [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:31]accept exits with 9 [12:47:31]New connection [12:47:31]New thread 3066498404 created [12:47:31]Thread 3066641764 joined [12:47:31]Waiting for new connection... [12:47:31] Sock 9.Parse request [12:47:31]Sock 9.Check first char [12:47:31]Sock 9.First char is OK [12:47:31]request: POST /json_proto HTTP/1.0 [12:47:31]Method: POST [12:47:31]URL: /json_proto [12:47:31]Method is POST - this is cgi request [12:47:31]url: /json_proto [12:47:31]query_string will be loaded in cgi processing [12:47:31]execute_cgi json_proto POST (null) [12:47:31]execute_cgi path=json_proto method=POST [12:47:31]POST find Content-Length [12:47:31]Host: 172.17.63.195:8080 [12:47:31]Content-Length: 682 [12:47:31]Content-Type: application/json [12:47:31] [12:47:31]POST finish read [12:47:31]Found Content-Length = 682 [12:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [12:47:31]execute_script... [12:47:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [12:47:31]POST & json_proto [12:47:31]process_json_proto [12:47:31]json parsed OK: [12:47:31]protocol is kg_v1.0 [12:47:31]action value=close_receipt [12:47:31]process_action close_receipt [12:47:31]cmd_close_receipt [12:47:31]MH_GetDate [12:47:31]Write to MH i2c: F0 00 00 4F 10 4E [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: F0 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: F0 09 00 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: F0 09 00 4F 10 00 63 36 1E 67 47 1B 1E 67 5C [12:47:31]GetLastDocTimeStamp 1730033229 [12:47:31]current date 1730033251 [12:47:31]FM_GetShiftState [12:47:31]SAM_PROTO_GetShiftState [12:47:31]wFMCommunicate request_size=4 [12:47:31]MH_SAM_APDU [12:47:31]CAPDU: 80 13 01 00 [12:47:31]Write to MH i2c: E2 08 00 50 10 80 13 01 00 00 00 00 00 DD [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:31]Read from MH i2c: E2 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: E2 0E 00 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: E2 0E 00 50 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DF [12:47:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:47:31]wFMCommunicate OK [12:47:31]SAM_PROTO_GetShiftState done [12:47:31]FM_GetShiftState done [12:47:31]opened in 1729987312 [12:47:31]opened+sec_in_day 1730073712 [12:47:31]quantity*price = 100021 [12:47:31]sum+1 = 100023 [12:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 230 27.10.2024 12:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201938 ФПД: 110919030127919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124731&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201938&fm=110919030127919&tin=02508201610067®Number=0000000000091777&sum=100000 [12:47:32]StoreToDocumentArchive [12:47:32]shift 544 fd 201938 [12:47:32]save to /storage/0544/doc_00201938 [12:47:32]save last doc name /storage/0544/doc_00201938 to /storage/kkm_last_doc_name [12:47:32]save OK [12:47:32]Clear old archive folders... [12:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:32]tlvbuf is 011939F0 [12:47:32]SAM_PROTO_ClearQueue [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 09 00 00 [12:47:32]Write to MH i2c: E2 08 00 5D 10 80 09 00 00 00 00 00 00 DF [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 03 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 03 00 5D 10 00 90 00 E1 [12:47:32]RAPDU: 90 00 [12:47:32]wFMCommunicate OK [12:47:32]SAM_PROTO_ClearQueue done [12:47:32]KKMCreateOFDPacket [12:47:32]OFDProtocolAddRootSTLVToBuf [12:47:32]FM_MakeSignedData [12:47:32]FM_MakeSignedData [12:47:32]SAM_PROTO_SignData [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 0D 01 02 [12:47:32]Write to MH i2c: E2 08 00 5E 10 80 0D 01 02 00 00 00 00 E7 [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 03 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 03 00 5E 10 00 90 00 E2 [12:47:32]RAPDU: 90 00 [12:47:32]wFMCommunicate OK [12:47:32]wFMCommunicate request_size=255 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E6 00 00 00 F4 03 04 00 63 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 14 03 00 35 04 06 00 64 [12:47:32]Write to MH i2c: E2 02 01 5F 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E6 00 00 00 F4 03 04 00 63 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 14 03 00 35 04 06 00 64 00 00 0C [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 03 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [12:47:32]RAPDU: 90 00 [12:47:32]wFMCommunicate OK [12:47:32]wFMCommunicate request_size=10 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 0D 02 02 05 E1 59 63 BD 2F [12:47:32]Write to MH i2c: E2 0D 00 60 10 80 0D 02 02 05 00 E1 59 63 BD 2F 00 00 7D [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 03 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 03 00 60 10 00 90 00 E4 [12:47:32]RAPDU: 90 00 [12:47:32]wFMCommunicate OK [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 0D 03 02 [12:47:32]Write to MH i2c: E2 08 00 61 10 80 0D 03 02 00 00 00 00 EC [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 0B 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 0B 00 61 10 00 3E D8 E5 0F 80 09 F8 54 90 00 CC [12:47:32]RAPDU: 3E D8 E5 0F 80 09 F8 54 90 00 [12:47:32]wFMCommunicate OK [12:47:32]SAM_PROTO_SignData done [12:47:32]FM_MakeSignedData done [12:47:32]CreateOFDProtocolMessage [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 11 00 00 [12:47:32]Write to MH i2c: E2 08 00 62 10 80 11 00 00 00 00 00 00 EC [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 17 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 17 00 62 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 41 [12:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:47:32]wFMCommunicate OK [12:47:32]CreateOFDProtocolMessage done [12:47:32]OFDSenderStorePacket 201938 [12:47:32]StoreOFDPacket docnum=201938 [12:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 9C 07 01 A9 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E6 00 00 00 F4 03 04 00 63 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 14 03 00 35 04 06 00 64 E1 59 63 BD 2F 3E D8 E5 0F 80 09 F8 54 [12:47:32]CheckFolder [12:47:32]dirname=/storage/ofd_packets [12:47:32]CheckFolder done [12:47:32]ProducePacketName [12:47:32]name=ofd_packets/00201938 [12:47:32]NVStorageSaveData ofd_packets/00201938 [12:47:32]File name is /storage/ofd_packets/00201938 [12:47:32]Write 301 bytes [12:47:32]NVStorageSaveData done [12:47:32]OFDSenderStorePacket done [12:47:32]KKMCreateOFDPacket done [12:47:32]NVStorageSaveData kkm_last_timestamp [12:47:32]File name is /storage/kkm_last_timestamp [12:47:32]Write 4 bytes [12:47:32]NVStorageSaveData done [12:47:32]ExternCall_PrintAddStr [12:47:32]wPrintStart [12:47:32]Write to MH i2c: 01 00 00 63 10 73 [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: 01 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: 01 07 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 FF 0F 88 [12:47:32]RasterBufferAndPrint [12:47:32]line Счет N : (1)449699 [12:47:32]line ИНН: 02508201610067 [12:47:32]line Контрольно-Кассовый Чек [12:47:32]line ПРОДАЖА [12:47:32]line ТРК (МРК, ГНК) : 51 [12:47:32]line Товар: 2710124500 [12:47:32]line Аи-95-К-3 [12:47:32]line 13.480 * 74.20 [12:47:32]line = 1000.22 [12:47:32]line НДС 12% НСП 1% [12:47:32]line > о реализуемом товаре [12:47:32]line ОКРУГЛЕНИЕ: -0.22 [12:47:32]line ИТОГО: 1000.00 [12:47:32]line Внесено: 1000.00 [12:47:32]line СДАЧА: 0.00 [12:47:32]line НСП 1% : 8.85 [12:47:32]line НДС 12% : 106.22 [12:47:32]line Наличными: 1000.00 [12:47:32]line Безнал.: 0.00 [12:47:32]line Место: АЗС № 171 "Партнер Нефть" [12:47:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:47:32]line СНО: Общий режим [12:47:32]line Чек 230 27.10.2024 12:47 [12:47:32]line Смена: 544 ФФД: 1.0 [12:47:32]line ЗНМ: 0300000109 [12:47:32]line РНМ: 0000000000091777 [12:47:32]line Версия ККМ: 001 [12:47:32]line ФМ: 0000000000871756 [12:47:32]line ФД: 201938 [12:47:32]line ФПД: 110919030127919 [12:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124731&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201938&fm=110919030127919&tin=02508201610067®Number=0000000000091777&sum=100000 [12:47:33]OFD Sender: Processing packet 201938 [packets to send 112, broken 111] [12:47:33]ProducePacketName [12:47:33]name=ofd_packets/00201938 [12:47:33]OFD Sender: To server: pG, [12:47:33]CommunicateWithHost lk.salyk.kg:30040 [12:47:33]ConnectInit lk.salyk.kg [12:47:33]written 0, free lines is 4095 [12:47:33]Connected sock=10 [12:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 9C 07 01 A9 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 E6 00 00 00 F4 03 04 00 63 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 14 03 00 35 04 06 00 64 E1 59 63 BD 2F 3E D8 E5 0F 80 09 F8 54 [12:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5A ED 47 00 58 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 14 03 00 F4 03 04 00 1E E2 1D 67 B6 04 01 00 00 B7 06 A5 8E CB EE 68 9B [12:47:33]CommunicateWithHost err = 0 [12:47:33]CheckOFDResponse [12:47:33]1017 (14) - 77093643461234 [12:47:33]1041 (16) - 0000000000871756 [12:47:33]1040 (4) - 201938 [12:47:33]1012 (4) - 27.10.2024 06:47 [12:47:33]1206 (1) - 0 [12:47:33]OFD Sender: Remove packet 201938 [12:47:33]ProducePacketName [12:47:33]name=ofd_packets/00201938 [12:47:33]NVStorageDeleteData [12:47:33]Write to MH i2c: 01 00 00 8E 10 9E [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 07 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 07 00 8E 10 00 00 00 00 00 91 0C 42 [12:47:33]RasterBufferAndPrint [12:47:33]line [12:47:33]line [12:47:33]line [12:47:33]line [12:47:33]line [12:47:33]written 0, free lines is 3222 [12:47:33]MH_Cut [12:47:33]Write to MH i2c: D1 01 00 95 10 01 77 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: D1 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: D1 01 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: D1 01 00 95 10 00 76 [12:47:33]Write to MH i2c: 01 00 00 96 10 A6 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:34]OFD Sender: No OFD packet to send [12:47:34]*** Cut start [12:47:34]*** Purtial cut [12:47:34]*** Stage 1: CUTSNS_PIN = 1 [12:47:34]Read from MH i2c: 01 [12:47:34]MH_I2C_Read... [12:47:34]*** Stop cut motor [12:47:34]*** Cut end [12:47:34]Read from MH i2c: 01 07 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: 01 07 00 96 10 00 00 00 00 00 FF 0F BB [12:47:34]process_action close_receipt done [12:47:34]requested_data is exist [12:47:34]produce_requested_data [12:47:34]requested_item fm.sn is exist - process it [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 11 00 00 [12:47:34]Write to MH i2c: E2 08 00 97 10 80 11 00 00 00 00 00 00 21 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 17 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 17 00 97 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [12:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:47:34]wFMCommunicate OK [12:47:34]requested_item fd.num is exist - process it [12:47:34]SAM_PROTO_GetFieldsCounters [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 13 00 00 [12:47:34]Write to MH i2c: E2 08 00 98 10 80 13 00 00 00 00 00 00 24 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 62 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 62 00 98 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [12:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:35]wFMCommunicate OK [12:47:35]SAM_PROTO_GetFieldsCounters done [12:47:35]requested_item shift.num is exist - process it [12:47:35]requested_item shift.opened is exist - process it [12:47:35]req_shift_opened [12:47:35]FM_GetShiftState [12:47:35]SAM_PROTO_GetShiftState [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 13 01 00 [12:47:35]Write to MH i2c: E2 08 00 99 10 80 13 01 00 00 00 00 00 26 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0E 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0E 00 99 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 28 [12:47:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:47:35]wFMCommunicate OK [12:47:35]SAM_PROTO_GetShiftState done [12:47:35]FM_GetShiftState done [12:47:35]req_shift_opened done [12:47:35]requested_item shift.open_date is exist - process it [12:47:35]req_shift_open_date [12:47:35]req_shift_open_date done [12:47:35]produce_requested_data done [12:47:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201938,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:47:35]process_action_free close_receipt [12:47:35]json_value_free [12:47:35]json_value_free done [12:47:35]process_json_proto returns [12:47:35]Send response to host [12:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201938,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:47:35]free response buf [12:47:35]execute_script done [12:47:35]execute_script returns [12:47:35]free content buf [12:47:35]Sock 9.Close socket [12:47:35]Sock 9.Thread stoped [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:55]accept exits with 8 [12:48:55]New connection [12:48:55]New thread 3066641764 created [12:48:55]Thread 3066498404 joined [12:48:55]Waiting for new connection... [12:48:55] Sock 8.Parse request [12:48:55]Sock 8.Check first char [12:48:55]Sock 8.First char is OK [12:48:55]request: POST /json_proto HTTP/1.0 [12:48:55]Method: POST [12:48:55]URL: /json_proto [12:48:55]Method is POST - this is cgi request [12:48:55]url: /json_proto [12:48:55]query_string will be loaded in cgi processing [12:48:55]execute_cgi json_proto POST (null) [12:48:55]execute_cgi path=json_proto method=POST [12:48:55]POST find Content-Length [12:48:55]Host: 172.17.63.195:8080 [12:48:55]Content-Length: 679 [12:48:55]Content-Type: application/json [12:48:55] [12:48:55]POST finish read [12:48:55]Found Content-Length = 679 [12:48:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:55]execute_script... [12:48:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:55]POST & json_proto [12:48:55]process_json_proto [12:48:55]json parsed OK: [12:48:55]protocol is kg_v1.0 [12:48:55]action value=close_receipt [12:48:55]process_action close_receipt [12:48:55]cmd_close_receipt [12:48:55]MH_GetDate [12:48:55]Write to MH i2c: F0 00 00 9A 10 99 [12:48:55]Write i2c OK [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: F0 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: F0 09 00 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: F0 09 00 9A 10 00 B8 36 1E 67 47 1B 1E 67 FC [12:48:55]GetLastDocTimeStamp 1730033251 [12:48:55]current date 1730033336 [12:48:55]FM_GetShiftState [12:48:55]SAM_PROTO_GetShiftState [12:48:55]wFMCommunicate request_size=4 [12:48:55]MH_SAM_APDU [12:48:55]CAPDU: 80 13 01 00 [12:48:55]Write to MH i2c: E2 08 00 9B 10 80 13 01 00 00 00 00 00 28 [12:48:55]Write i2c OK [12:48:55]MH_I2C_Read... [12:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:55]Read from MH i2c: E2 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 0E 00 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 0E 00 9B 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2A [12:48:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:48:55]wFMCommunicate OK [12:48:55]SAM_PROTO_GetShiftState done [12:48:55]FM_GetShiftState done [12:48:55]opened in 1729987312 [12:48:55]opened+sec_in_day 1730073712 [12:48:55]quantity*price = 350062 [12:48:55]sum+1 = 350064 [12:48:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 231 27.10.2024 12:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201939 ФПД: 3742838775868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124856&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201939&fm=3742838775868&tin=02508201610067®Number=0000000000091777&sum=350000 [12:48:56]StoreToDocumentArchive [12:48:56]shift 544 fd 201939 [12:48:56]save to /storage/0544/doc_00201939 [12:48:56]save last doc name /storage/0544/doc_00201939 to /storage/kkm_last_doc_name [12:48:56]save OK [12:48:56]Clear old archive folders... [12:48:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:56]tlvbuf is 011F3050 [12:48:56]SAM_PROTO_ClearQueue [12:48:56]wFMCommunicate request_size=4 [12:48:56]MH_SAM_APDU [12:48:56]CAPDU: 80 09 00 00 [12:48:56]Write to MH i2c: E2 08 00 A8 10 80 09 00 00 00 00 00 00 2A [12:48:56]Write i2c OK [12:48:56]MH_I2C_Read... [12:48:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:56]Read from MH i2c: E2 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 03 00 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 03 00 A8 10 00 90 00 2C [12:48:56]RAPDU: 90 00 [12:48:56]wFMCommunicate OK [12:48:56]SAM_PROTO_ClearQueue done [12:48:56]KKMCreateOFDPacket [12:48:56]OFDProtocolAddRootSTLVToBuf [12:48:56]FM_MakeSignedData [12:48:56]FM_MakeSignedData [12:48:56]SAM_PROTO_SignData [12:48:56]wFMCommunicate request_size=4 [12:48:56]MH_SAM_APDU [12:48:56]CAPDU: 80 0D 01 02 [12:48:56]Write to MH i2c: E2 08 00 A9 10 80 0D 01 02 00 00 00 00 32 [12:48:56]Write i2c OK [12:48:56]MH_I2C_Read... [12:48:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:56]Read from MH i2c: E2 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 03 00 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 03 00 A9 10 00 90 00 2D [12:48:56]RAPDU: 90 00 [12:48:56]wFMCommunicate OK [12:48:56]wFMCommunicate request_size=255 [12:48:56]MH_SAM_APDU [12:48:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B8 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 14 03 00 35 04 06 00 03 67 72 93 [12:48:56]Write to MH i2c: E2 02 01 AA 10 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 32 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B8 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 14 03 00 35 04 06 00 03 67 72 93 00 00 42 [12:48:56]Write i2c OK [12:48:56]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 AA 10 00 90 00 2E [12:48:57]RAPDU: 90 00 [12:48:57]wFMCommunicate OK [12:48:57]wFMCommunicate request_size=7 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 0D 02 02 02 60 3C [12:48:57]Write to MH i2c: E2 0A 00 AB 10 80 0D 02 02 02 00 60 3C 00 00 D5 [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 AB 10 00 90 00 2F [12:48:57]RAPDU: 90 00 [12:48:57]wFMCommunicate OK [12:48:57]wFMCommunicate request_size=4 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 0D 03 02 [12:48:57]Write to MH i2c: E2 08 00 AC 10 80 0D 03 02 00 00 00 00 37 [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 0B 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 0B 00 AC 10 00 74 08 8B 25 5E 99 19 7D 90 00 F1 [12:48:57]RAPDU: 74 08 8B 25 5E 99 19 7D 90 00 [12:48:57]wFMCommunicate OK [12:48:57]SAM_PROTO_SignData done [12:48:57]FM_MakeSignedData done [12:48:57]CreateOFDProtocolMessage [12:48:57]wFMCommunicate request_size=4 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 11 00 00 [12:48:57]Write to MH i2c: E2 08 00 AD 10 80 11 00 00 00 00 00 00 37 [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 17 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 17 00 AD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8C [12:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:48:57]wFMCommunicate OK [12:48:57]CreateOFDProtocolMessage done [12:48:57]OFDSenderStorePacket 201939 [12:48:57]StoreOFDPacket docnum=201939 [12:48:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E3 9D 04 01 C1 AE 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 32 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B8 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 14 03 00 35 04 06 00 03 67 72 93 60 3C 74 08 8B 25 5E 99 19 7D [12:48:57]CheckFolder [12:48:57]dirname=/storage/ofd_packets [12:48:57]CheckFolder done [12:48:57]ProducePacketName [12:48:57]name=ofd_packets/00201939 [12:48:57]NVStorageSaveData ofd_packets/00201939 [12:48:57]File name is /storage/ofd_packets/00201939 [12:48:57]Write 298 bytes [12:48:57]NVStorageSaveData done [12:48:57]OFDSenderStorePacket done [12:48:57]KKMCreateOFDPacket done [12:48:57]NVStorageSaveData kkm_last_timestamp [12:48:57]File name is /storage/kkm_last_timestamp [12:48:57]Write 4 bytes [12:48:57]NVStorageSaveData done [12:48:57]ExternCall_PrintAddStr [12:48:57]wPrintStart [12:48:57]Write to MH i2c: 01 00 00 AE 10 BE [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: 01 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: 01 07 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 FF 0F D3 [12:48:57]RasterBufferAndPrint [12:48:57]line Счет N : (1)449700 [12:48:57]line ИНН: 02508201610067 [12:48:57]line Контрольно-Кассовый Чек [12:48:57]line ПРОДАЖА [12:48:57]line ТРК (МРК, ГНК) : 21 [12:48:57]line Товар: 2710194210 [12:48:57]line ДТ-К-2 [12:48:57]line 45.940 * 76.20 [12:48:57]line = 3500.63 [12:48:57]line НДС 12% НСП 1% [12:48:57]line > о реализуемом товаре [12:48:57]line ОКРУГЛЕНИЕ: -0.63 [12:48:57]line ИТОГО: 3500.00 [12:48:57]line Внесено: 3500.00 [12:48:57]line СДАЧА: 0.00 [12:48:57]line НСП 1% : 30.98 [12:48:57]line НДС 12% : 371.75 [12:48:57]line Наличными: 3500.00 [12:48:57]line Безнал.: 0.00 [12:48:57]line Место: АЗС № 171 "Партнер Нефть" [12:48:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:48:57]line СНО: Общий режим [12:48:57]line Чек 231 27.10.2024 12:48 [12:48:57]line Смена: 544 ФФД: 1.0 [12:48:57]line ЗНМ: 0300000109 [12:48:57]line РНМ: 0000000000091777 [12:48:57]line Версия ККМ: 001 [12:48:57]line ФМ: 0000000000871756 [12:48:57]line ФД: 201939 [12:48:57]line ФПД: 3742838775868 [12:48:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124856&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201939&fm=3742838775868&tin=02508201610067®Number=0000000000091777&sum=350000 [12:48:57]OFD Sender: Processing packet 201939 [packets to send 112, broken 111] [12:48:57]ProducePacketName [12:48:57]name=ofd_packets/00201939 [12:48:57]OFD Sender: To server: pG, [12:48:57]CommunicateWithHost lk.salyk.kg:30040 [12:48:57]ConnectInit lk.salyk.kg [12:48:57]written 0, free lines is 4095 [12:48:57]Connected sock=10 [12:48:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E3 9D 04 01 C1 AE 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 32 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 B8 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 14 03 00 35 04 06 00 03 67 72 93 60 3C 74 08 8B 25 5E 99 19 7D [12:48:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 20 BA 47 00 82 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 14 03 00 F4 03 04 00 72 E2 1D 67 B6 04 01 00 00 16 4E 71 D0 5A F2 EF FF [12:48:57]CommunicateWithHost err = 0 [12:48:57]CheckOFDResponse [12:48:57]1017 (14) - 77093643461234 [12:48:57]1041 (16) - 0000000000871756 [12:48:57]1040 (4) - 201939 [12:48:57]1012 (4) - 27.10.2024 06:49 [12:48:57]1206 (1) - 0 [12:48:57]OFD Sender: Remove packet 201939 [12:48:57]ProducePacketName [12:48:57]name=ofd_packets/00201939 [12:48:57]NVStorageDeleteData [12:48:58]Write to MH i2c: 01 00 00 D9 10 E9 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 07 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 07 00 D9 10 00 00 00 00 00 8C 0C 88 [12:48:58]RasterBufferAndPrint [12:48:58]line [12:48:58]line [12:48:58]line [12:48:58]line [12:48:58]line [12:48:58]written 0, free lines is 3216 [12:48:58]MH_Cut [12:48:58]Write to MH i2c: D1 01 00 E0 10 01 C2 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: D1 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: D1 01 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: D1 01 00 E0 10 00 C1 [12:48:58]Write to MH i2c: 01 00 00 E1 10 F1 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]OFD Sender: No OFD packet to send [12:48:59]*** Cut start [12:48:59]*** Purtial cut [12:48:59]*** Stage 1: CUTSNS_PIN = 1 [12:48:59]Read from MH i2c: 01 [12:48:59]MH_I2C_Read... [12:48:59]*** Stop cut motor [12:48:59]*** Cut end [12:48:59]Read from MH i2c: 01 07 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 FF 0F 06 [12:48:59]process_action close_receipt done [12:48:59]requested_data is exist [12:48:59]produce_requested_data [12:48:59]requested_item fm.sn is exist - process it [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 11 00 00 [12:48:59]Write to MH i2c: E2 08 00 E2 10 80 11 00 00 00 00 00 00 6C [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:59]Read from MH i2c: E2 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 17 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 17 00 E2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [12:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:48:59]wFMCommunicate OK [12:48:59]requested_item fd.num is exist - process it [12:48:59]SAM_PROTO_GetFieldsCounters [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 13 00 00 [12:48:59]Write to MH i2c: E2 08 00 E3 10 80 13 00 00 00 00 00 00 6F [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:59]Read from MH i2c: E2 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 62 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 62 00 E3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [12:48:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:59]wFMCommunicate OK [12:48:59]SAM_PROTO_GetFieldsCounters done [12:48:59]requested_item shift.num is exist - process it [12:48:59]requested_item shift.opened is exist - process it [12:48:59]req_shift_opened [12:48:59]FM_GetShiftState [12:48:59]SAM_PROTO_GetShiftState [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 13 01 00 [12:48:59]Write to MH i2c: E2 08 00 E4 10 80 13 01 00 00 00 00 00 71 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:59]Read from MH i2c: E2 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 0E 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 0E 00 E4 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 73 [12:48:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:48:59]wFMCommunicate OK [12:48:59]SAM_PROTO_GetShiftState done [12:48:59]FM_GetShiftState done [12:48:59]req_shift_opened done [12:48:59]requested_item shift.open_date is exist - process it [12:48:59]req_shift_open_date [12:48:59]req_shift_open_date done [12:48:59]produce_requested_data done [12:48:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201939,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:48:59]process_action_free close_receipt [12:48:59]json_value_free [12:48:59]json_value_free done [12:48:59]process_json_proto returns [12:48:59]Send response to host [12:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201939,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:48:59]free response buf [12:48:59]execute_script done [12:48:59]execute_script returns [12:48:59]free content buf [12:48:59]Sock 8.Close socket [12:48:59]Sock 8.Thread stoped [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:18]accept exits with 9 [12:49:18]New connection [12:49:18]New thread 3066498404 created [12:49:18]Thread 3066641764 joined [12:49:18]Waiting for new connection... [12:49:18] Sock 9.Parse request [12:49:18]Sock 9.Check first char [12:49:18]Sock 9.First char is OK [12:49:18]request: POST /json_proto HTTP/1.0 [12:49:18]Method: POST [12:49:18]URL: /json_proto [12:49:18]Method is POST - this is cgi request [12:49:18]url: /json_proto [12:49:18]query_string will be loaded in cgi processing [12:49:18]execute_cgi json_proto POST (null) [12:49:18]execute_cgi path=json_proto method=POST [12:49:18]POST find Content-Length [12:49:18]Host: 172.17.63.195:8080 [12:49:18]Content-Length: 819 [12:49:18]Content-Type: application/json [12:49:18] [12:49:18]POST finish read [12:49:18]Found Content-Length = 819 [12:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:18]execute_script... [12:49: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)449701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:18]POST & json_proto [12:49:18]process_json_proto [12:49:18]json parsed OK: [12:49:18]protocol is kg_v1.0 [12:49:18]action value=close_receipt [12:49:18]process_action close_receipt [12:49:18]cmd_close_receipt [12:49:18]MH_GetDate [12:49:18]Write to MH i2c: F0 00 00 E5 10 E4 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: F0 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: F0 09 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: F0 09 00 E5 10 00 CF 36 1E 67 47 1B 1E 67 5E [12:49:18]GetLastDocTimeStamp 1730033336 [12:49:18]current date 1730033359 [12:49:18]FM_GetShiftState [12:49:18]SAM_PROTO_GetShiftState [12:49:18]wFMCommunicate request_size=4 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 13 01 00 [12:49:18]Write to MH i2c: E2 08 00 E6 10 80 13 01 00 00 00 00 00 73 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 0E 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 0E 00 E6 10 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 75 [12:49:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:49:18]wFMCommunicate OK [12:49:18]SAM_PROTO_GetShiftState done [12:49:18]FM_GetShiftState done [12:49:18]opened in 1729987312 [12:49:18]opened+sec_in_day 1730073712 [12:49:18]quantity*price = 100015 [12:49:18]sum+1 = 100017 [12:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 232 27.10.2024 12:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201940 ФПД: 104248717368603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124919&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201940&fm=104248717368603&tin=02508201610067®Number=0000000000091777&sum=100016 [12:49:19]StoreToDocumentArchive [12:49:19]shift 544 fd 201940 [12:49:19]save to /storage/0544/doc_00201940 [12:49:19]save last doc name /storage/0544/doc_00201940 to /storage/kkm_last_doc_name [12:49:19]save OK [12:49:19]Clear old archive folders... [12:49:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:19]tlvbuf is 011F3B30 [12:49:19]SAM_PROTO_ClearQueue [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 09 00 00 [12:49:19]Write to MH i2c: E2 08 00 F3 10 80 09 00 00 00 00 00 00 75 [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 03 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 03 00 F3 10 00 90 00 77 [12:49:19]RAPDU: 90 00 [12:49:19]wFMCommunicate OK [12:49:19]SAM_PROTO_ClearQueue done [12:49:19]KKMCreateOFDPacket [12:49:19]OFDProtocolAddRootSTLVToBuf [12:49:19]FM_MakeSignedData [12:49:19]FM_MakeSignedData [12:49:19]SAM_PROTO_SignData [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 0D 01 02 [12:49:19]Write to MH i2c: E2 08 00 F4 10 80 0D 01 02 00 00 00 00 7D [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 03 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 03 00 F4 10 00 90 00 78 [12:49:19]RAPDU: 90 00 [12:49:19]wFMCommunicate OK [12:49:19]wFMCommunicate request_size=255 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E8 00 00 00 F4 03 04 00 CF 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 14 03 00 35 04 06 00 5E [12:49:19]Write to MH i2c: E2 02 01 F5 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E8 00 00 00 F4 03 04 00 CF 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 14 03 00 35 04 06 00 5E 00 00 08 [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:20]*** iso7816_exchange 80 0D 02 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 F5 10 00 90 00 79 [12:49:20]RAPDU: 90 00 [12:49:20]wFMCommunicate OK [12:49:20]wFMCommunicate request_size=10 [12:49:20]MH_SAM_APDU [12:49:20]CAPDU: 80 0D 02 02 05 D0 4B C4 5D 1B [12:49:20]Write to MH i2c: E2 0D 00 F6 10 80 0D 02 02 05 00 D0 4B C4 5D 1B 00 00 E1 [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:20]*** iso7816_exchange 80 0D 02 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 F6 10 00 90 00 7A [12:49:20]RAPDU: 90 00 [12:49:20]wFMCommunicate OK [12:49:20]wFMCommunicate request_size=4 [12:49:20]MH_SAM_APDU [12:49:20]CAPDU: 80 0D 03 02 [12:49:20]Write to MH i2c: E2 08 00 F7 10 80 0D 03 02 00 00 00 00 82 [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:20]Read from MH i2c: E2 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 0B 00 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 0B 00 F7 10 00 A6 C7 0C A8 CD 5D AB 97 90 00 10 [12:49:20]RAPDU: A6 C7 0C A8 CD 5D AB 97 90 00 [12:49:20]wFMCommunicate OK [12:49:20]SAM_PROTO_SignData done [12:49:20]FM_MakeSignedData done [12:49:20]CreateOFDProtocolMessage [12:49:20]wFMCommunicate request_size=4 [12:49:20]MH_SAM_APDU [12:49:20]CAPDU: 80 11 00 00 [12:49:20]Write to MH i2c: E2 08 00 F8 10 80 11 00 00 00 00 00 00 82 [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:20]Read from MH i2c: E2 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 17 00 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 17 00 F8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D7 [12:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:49:20]wFMCommunicate OK [12:49:20]CreateOFDProtocolMessage done [12:49:20]OFDSenderStorePacket 201940 [12:49:20]StoreOFDPacket docnum=201940 [12:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 17 07 01 34 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E8 00 00 00 F4 03 04 00 CF 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 14 03 00 35 04 06 00 5E D0 4B C4 5D 1B A6 C7 0C A8 CD 5D AB 97 [12:49:20]CheckFolder [12:49:20]dirname=/storage/ofd_packets [12:49:20]CheckFolder done [12:49:20]ProducePacketName [12:49:20]name=ofd_packets/00201940 [12:49:20]NVStorageSaveData ofd_packets/00201940 [12:49:20]File name is /storage/ofd_packets/00201940 [12:49:20]Write 301 bytes [12:49:20]NVStorageSaveData done [12:49:20]OFDSenderStorePacket done [12:49:20]KKMCreateOFDPacket done [12:49:20]NVStorageSaveData kkm_last_timestamp [12:49:20]File name is /storage/kkm_last_timestamp [12:49:20]Write 4 bytes [12:49:20]NVStorageSaveData done [12:49:20]ExternCall_PrintAddStr [12:49:20]wPrintStart [12:49:20]Write to MH i2c: 01 00 00 F9 10 09 [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: 01 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: 01 07 00 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 FF 0F 1E [12:49:20]RasterBufferAndPrint [12:49:20]line Счет N : (1)449701 [12:49:20]line ИНН: 02508201610067 [12:49:20]line Контрольно-Кассовый Чек [12:49:20]line ПРОДАЖА [12:49:20]line ТРК (МРК, ГНК) : 31 [12:49:20]line Товар: 2710124130 [12:49:20]line Аи-92-К-2 [12:49:20]line 14.950 * 66.90 [12:49:20]line = 1000.16 [12:49:20]line НДС 12% НСП 1% [12:49:20]line > о реализуемом товаре [12:49:20]line ИТОГО: 1000.16 [12:49:20]line НСП 1% : 8.85 [12:49:20]line НДС 12% : 106.21 [12:49:20]line Наличными: 0.00 [12:49:20]line Безнал.: 1000.16 [12:49:20]line Место: АЗС № 171 "Партнер Нефть" [12:49:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:49:20]line СНО: Общий режим [12:49:20]line Чек 232 27.10.2024 12:49 [12:49:20]line Смена: 544 ФФД: 1.0 [12:49:20]line ЗНМ: 0300000109 [12:49:20]line РНМ: 0000000000091777 [12:49:20]line Версия ККМ: 001 [12:49:20]line Платежная система: Бакай Банк [12:49:20]line ФМ: 0000000000871756 [12:49:20]line ФД: 201940 [12:49:20]line ФПД: 104248717368603 [12:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124919&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201940&fm=104248717368603&tin=02508201610067®Number=0000000000091777&sum=100016 [12:49:20]written 0, free lines is 4095 [12:49:20]OFD Sender: Processing packet 201940 [packets to send 112, broken 111] [12:49:20]ProducePacketName [12:49:20]name=ofd_packets/00201940 [12:49:20]OFD Sender: To server: pG, [12:49:20]CommunicateWithHost lk.salyk.kg:30040 [12:49:20]ConnectInit lk.salyk.kg [12:49:20]Connected sock=10 [12:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 17 07 01 34 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E8 00 00 00 F4 03 04 00 CF 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 14 03 00 35 04 06 00 5E D0 4B C4 5D 1B A6 C7 0C A8 CD 5D AB 97 [12:49:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 15 07 47 00 34 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 14 03 00 F4 03 04 00 89 E2 1D 67 B6 04 01 00 00 AE DA 68 6C 54 21 E0 02 [12:49:20]CommunicateWithHost err = 0 [12:49:20]CheckOFDResponse [12:49:20]1017 (14) - 77093643461234 [12:49:20]1041 (16) - 0000000000871756 [12:49:20]1040 (4) - 201940 [12:49:20]1012 (4) - 27.10.2024 06:49 [12:49:20]1206 (1) - 0 [12:49:20]OFD Sender: Remove packet 201940 [12:49:20]ProducePacketName [12:49:20]name=ofd_packets/00201940 [12:49:20]NVStorageDeleteData [12:49:20]Write to MH i2c: 01 00 00 23 11 34 [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: 01 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: 01 07 00 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: 01 07 00 23 11 00 00 00 00 00 9C 0C E3 [12:49:20]RasterBufferAndPrint [12:49:20]line [12:49:20]line [12:49:20]line [12:49:20]line [12:49:20]line [12:49:20]written 0, free lines is 3232 [12:49:21]MH_Cut [12:49:21]Write to MH i2c: D1 01 00 2A 11 01 0D [12:49:21]Write i2c OK [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: D1 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: D1 01 00 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: D1 01 00 2A 11 00 0C [12:49:21]Write to MH i2c: 01 00 00 2B 11 3C [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]*** Cut start [12:49:21]*** Purtial cut [12:49:21]*** Stage 1: CUTSNS_PIN = 1 [12:49:22]Read from MH i2c: 01 [12:49:22]MH_I2C_Read... [12:49:22]*** Stop cut motor [12:49:22]*** Cut end [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 2B 11 00 00 00 00 00 FF 0F 51 [12:49:22]process_action close_receipt done [12:49:22]requested_data is exist [12:49:22]produce_requested_data [12:49:22]requested_item fm.sn is exist - process it [12:49:22]wFMCommunicate request_size=4 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 11 00 00 [12:49:22]Write to MH i2c: E2 08 00 2C 11 80 11 00 00 00 00 00 00 B7 [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 17 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 17 00 2C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0C [12:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:49:22]wFMCommunicate OK [12:49:22]requested_item fd.num is exist - process it [12:49:22]SAM_PROTO_GetFieldsCounters [12:49:22]wFMCommunicate request_size=4 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 13 00 00 [12:49:22]Write to MH i2c: E2 08 00 2D 11 80 13 00 00 00 00 00 00 BA [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 62 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 62 00 2D 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [12:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:22]wFMCommunicate OK [12:49:22]SAM_PROTO_GetFieldsCounters done [12:49:22]requested_item shift.num is exist - process it [12:49:22]requested_item shift.opened is exist - process it [12:49:22]req_shift_opened [12:49:22]FM_GetShiftState [12:49:22]SAM_PROTO_GetShiftState [12:49:22]wFMCommunicate request_size=4 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 13 01 00 [12:49:22]Write to MH i2c: E2 08 00 2E 11 80 13 01 00 00 00 00 00 BC [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 0E 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 0E 00 2E 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BE [12:49:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:49:22]wFMCommunicate OK [12:49:22]SAM_PROTO_GetShiftState done [12:49:22]FM_GetShiftState done [12:49:22]req_shift_opened done [12:49:22]requested_item shift.open_date is exist - process it [12:49:22]req_shift_open_date [12:49:22]req_shift_open_date done [12:49:22]produce_requested_data done [12:49:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201940,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:49:22]process_action_free close_receipt [12:49:22]json_value_free [12:49:22]json_value_free done [12:49:22]process_json_proto returns [12:49:22]Send response to host [12:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201940,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:49:22]free response buf [12:49:22]execute_script done [12:49:22]execute_script returns [12:49:22]free content buf [12:49:22]Sock 9.Close socket [12:49:22]Sock 9.Thread stoped [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:53]accept exits with 8 [12:49:53]New connection [12:49:53]New thread 3066641764 created [12:49:53]Thread 3066498404 joined [12:49:53]Waiting for new connection... [12:49:53] Sock 8.Parse request [12:49:53]Sock 8.Check first char [12:49:53]Sock 8.First char is OK [12:49:53]request: POST /json_proto HTTP/1.0 [12:49:53]Method: POST [12:49:53]URL: /json_proto [12:49:53]Method is POST - this is cgi request [12:49:53]url: /json_proto [12:49:53]query_string will be loaded in cgi processing [12:49:53]execute_cgi json_proto POST (null) [12:49:53]execute_cgi path=json_proto method=POST [12:49:53]POST find Content-Length [12:49:53]Host: 172.17.63.195:8080 [12:49:53]Content-Length: 679 [12:49:53]Content-Type: application/json [12:49:53] [12:49:53]POST finish read [12:49:53]Found Content-Length = 679 [12:49:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:49:53]execute_script... [12:49:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:49:53]POST & json_proto [12:49:53]process_json_proto [12:49:53]json parsed OK: [12:49:53]protocol is kg_v1.0 [12:49:53]action value=close_receipt [12:49:53]process_action close_receipt [12:49:53]cmd_close_receipt [12:49:53]MH_GetDate [12:49:53]Write to MH i2c: F0 00 00 2F 11 2F [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: F0 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: F0 09 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: F0 09 00 2F 11 00 F2 36 1E 67 47 1B 1E 67 CC [12:49:53]GetLastDocTimeStamp 1730033359 [12:49:53]current date 1730033394 [12:49:53]FM_GetShiftState [12:49:53]SAM_PROTO_GetShiftState [12:49:53]wFMCommunicate request_size=4 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 13 01 00 [12:49:53]Write to MH i2c: E2 08 00 30 11 80 13 01 00 00 00 00 00 BE [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 0E 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 0E 00 30 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C0 [12:49:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:49:53]wFMCommunicate OK [12:49:53]SAM_PROTO_GetShiftState done [12:49:53]FM_GetShiftState done [12:49:53]opened in 1729987312 [12:49:53]opened+sec_in_day 1730073712 [12:49:53]quantity*price = 100050 [12:49:53]sum+1 = 100052 [12:49:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 233 27.10.2024 12:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201941 ФПД: 175718960890408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124954&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201941&fm=175718960890408&tin=02508201610067®Number=0000000000091777&sum=100000 [12:49:54]StoreToDocumentArchive [12:49:54]shift 544 fd 201941 [12:49:54]save to /storage/0544/doc_00201941 [12:49:54]save last doc name /storage/0544/doc_00201941 to /storage/kkm_last_doc_name [12:49:54]save OK [12:49:54]Clear old archive folders... [12:49:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:49:54]tlvbuf is 0119E160 [12:49:54]SAM_PROTO_ClearQueue [12:49:54]wFMCommunicate request_size=4 [12:49:54]MH_SAM_APDU [12:49:54]CAPDU: 80 09 00 00 [12:49:54]Write to MH i2c: E2 08 00 3D 11 80 09 00 00 00 00 00 00 C0 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:54]Read from MH i2c: E2 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 03 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 03 00 3D 11 00 90 00 C2 [12:49:54]RAPDU: 90 00 [12:49:54]wFMCommunicate OK [12:49:54]SAM_PROTO_ClearQueue done [12:49:54]KKMCreateOFDPacket [12:49:54]OFDProtocolAddRootSTLVToBuf [12:49:54]FM_MakeSignedData [12:49:54]FM_MakeSignedData [12:49:54]SAM_PROTO_SignData [12:49:54]wFMCommunicate request_size=4 [12:49:54]MH_SAM_APDU [12:49:54]CAPDU: 80 0D 01 02 [12:49:54]Write to MH i2c: E2 08 00 3E 11 80 0D 01 02 00 00 00 00 C8 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:54]Read from MH i2c: E2 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 03 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 03 00 3E 11 00 90 00 C3 [12:49:54]RAPDU: 90 00 [12:49:54]wFMCommunicate OK [12:49:54]wFMCommunicate request_size=255 [12:49:54]MH_SAM_APDU [12:49:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E9 00 00 00 F4 03 04 00 F2 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 14 03 00 35 04 06 00 9F D0 C2 3E [12:49:54]Write to MH i2c: E2 02 01 3F 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E9 00 00 00 F4 03 04 00 F2 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 14 03 00 35 04 06 00 9F D0 C2 3E 00 00 65 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:55]Read from MH i2c: E2 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 03 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [12:49:55]RAPDU: 90 00 [12:49:55]wFMCommunicate OK [12:49:55]wFMCommunicate request_size=7 [12:49:55]MH_SAM_APDU [12:49:55]CAPDU: 80 0D 02 02 02 82 28 [12:49:55]Write to MH i2c: E2 0A 00 40 11 80 0D 02 02 02 00 82 28 00 00 79 [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:55]Read from MH i2c: E2 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 03 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [12:49:55]RAPDU: 90 00 [12:49:55]wFMCommunicate OK [12:49:55]wFMCommunicate request_size=4 [12:49:55]MH_SAM_APDU [12:49:55]CAPDU: 80 0D 03 02 [12:49:55]Write to MH i2c: E2 08 00 41 11 80 0D 03 02 00 00 00 00 CD [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:55]Read from MH i2c: E2 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 0B 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 0B 00 41 11 00 CB 3E 06 6D D5 7C BB 98 90 00 EE [12:49:55]RAPDU: CB 3E 06 6D D5 7C BB 98 90 00 [12:49:55]wFMCommunicate OK [12:49:55]SAM_PROTO_SignData done [12:49:55]FM_MakeSignedData done [12:49:55]CreateOFDProtocolMessage [12:49:55]wFMCommunicate request_size=4 [12:49:55]MH_SAM_APDU [12:49:55]CAPDU: 80 11 00 00 [12:49:55]Write to MH i2c: E2 08 00 42 11 80 11 00 00 00 00 00 00 CD [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:55]Read from MH i2c: E2 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 17 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: E2 17 00 42 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [12:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:49:55]wFMCommunicate OK [12:49:55]CreateOFDProtocolMessage done [12:49:55]OFDSenderStorePacket 201941 [12:49:55]StoreOFDPacket docnum=201941 [12:49:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 98 3B 04 01 57 DE 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 32 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 E9 00 00 00 F4 03 04 00 F2 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 14 03 00 35 04 06 00 9F D0 C2 3E 82 28 CB 3E 06 6D D5 7C BB 98 [12:49:55]CheckFolder [12:49:55]dirname=/storage/ofd_packets [12:49:55]CheckFolder done [12:49:55]ProducePacketName [12:49:55]name=ofd_packets/00201941 [12:49:55]NVStorageSaveData ofd_packets/00201941 [12:49:55]File name is /storage/ofd_packets/00201941 [12:49:55]Write 298 bytes [12:49:55]NVStorageSaveData done [12:49:55]OFDSenderStorePacket done [12:49:55]KKMCreateOFDPacket done [12:49:55]NVStorageSaveData kkm_last_timestamp [12:49:55]File name is /storage/kkm_last_timestamp [12:49:55]Write 4 bytes [12:49:55]NVStorageSaveData done [12:49:55]ExternCall_PrintAddStr [12:49:55]wPrintStart [12:49:55]Write to MH i2c: 01 00 00 43 11 54 [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 07 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 FF 0F 69 [12:49:55]RasterBufferAndPrint [12:49:55]line Счет N : (1)449702 [12:49:55]line ИНН: 02508201610067 [12:49:55]line Контрольно-Кассовый Чек [12:49:55]line ПРОДАЖА [12:49:55]line ТРК (МРК, ГНК) : 43 [12:49:55]line Товар: 2710194210 [12:49:55]line ДТ-К-2 [12:49:55]line 13.130 * 76.20 [12:49:55]line = 1000.51 [12:49:55]line НДС 12% НСП 1% [12:49:55]line > о реализуемом товаре [12:49:55]line ОКРУГЛЕНИЕ: -0.51 [12:49:55]line ИТОГО: 1000.00 [12:49:55]line Внесено: 1000.00 [12:49:55]line СДАЧА: 0.00 [12:49:55]line НСП 1% : 8.85 [12:49:55]line НДС 12% : 106.25 [12:49:55]line Наличными: 1000.00 [12:49:55]line Безнал.: 0.00 [12:49:55]line Место: АЗС № 171 "Партнер Нефть" [12:49:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:49:55]line СНО: Общий режим [12:49:55]line Чек 233 27.10.2024 12:49 [12:49:55]line Смена: 544 ФФД: 1.0 [12:49:55]line ЗНМ: 0300000109 [12:49:55]line РНМ: 0000000000091777 [12:49:55]line Версия ККМ: 001 [12:49:55]line ФМ: 0000000000871756 [12:49:55]line ФД: 201941 [12:49:55]line ФПД: 175718960890408 [12:49:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124954&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201941&fm=175718960890408&tin=02508201610067®Number=0000000000091777&sum=100000 [12:49:55]OFD Sender: Processing packet 201941 [packets to send 112, broken 111] [12:49:55]ProducePacketName [12:49:55]name=ofd_packets/00201941 [12:49:55]OFD Sender: To server: pG, [12:49:55]CommunicateWithHost lk.salyk.kg:30040 [12:49:55]ConnectInit lk.salyk.kg [12:49:55]written 0, free lines is 4095 [12:49:55]Connected sock=10 [12:49:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 98 3B 04 01 57 DE 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 32 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 E9 00 00 00 F4 03 04 00 F2 36 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 14 03 00 35 04 06 00 9F D0 C2 3E 82 28 CB 3E 06 6D D5 7C BB 98 [12:49:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A1 91 47 00 66 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 14 03 00 F4 03 04 00 AC E2 1D 67 B6 04 01 00 00 D7 35 46 BD F1 15 F0 3D [12:49:55]CommunicateWithHost err = 0 [12:49:55]CheckOFDResponse [12:49:55]1017 (14) - 77093643461234 [12:49:55]1041 (16) - 0000000000871756 [12:49:55]1040 (4) - 201941 [12:49:55]1012 (4) - 27.10.2024 06:50 [12:49:55]1206 (1) - 0 [12:49:55]OFD Sender: Remove packet 201941 [12:49:55]ProducePacketName [12:49:55]name=ofd_packets/00201941 [12:49:55]NVStorageDeleteData [12:49:56]Write to MH i2c: 01 00 00 6E 11 7F [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 07 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 07 00 6E 11 00 00 00 00 00 8F 0C 21 [12:49:56]RasterBufferAndPrint [12:49:56]line [12:49:56]line [12:49:56]line [12:49:56]line [12:49:56]line [12:49:56]written 0, free lines is 3220 [12:49:56]MH_Cut [12:49:56]Write to MH i2c: D1 01 00 75 11 01 58 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: D1 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: D1 01 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: D1 01 00 75 11 00 57 [12:49:56]Write to MH i2c: 01 00 00 76 11 87 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]OFD Sender: No OFD packet to send [12:49:57]*** Cut start [12:49:57]*** Purtial cut [12:49:57]*** Stage 1: CUTSNS_PIN = 1 [12:49:57]Read from MH i2c: 01 [12:49:57]MH_I2C_Read... [12:49:57]*** Stop cut motor [12:49:57]*** Cut end [12:49:57]Read from MH i2c: 01 07 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 07 00 76 11 00 00 00 00 00 FF 0F 9C [12:49:57]process_action close_receipt done [12:49:57]requested_data is exist [12:49:57]produce_requested_data [12:49:57]requested_item fm.sn is exist - process it [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 11 00 00 [12:49:57]Write to MH i2c: E2 08 00 77 11 80 11 00 00 00 00 00 00 02 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 17 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 17 00 77 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 57 [12:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:49:57]wFMCommunicate OK [12:49:57]requested_item fd.num is exist - process it [12:49:57]SAM_PROTO_GetFieldsCounters [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 13 00 00 [12:49:57]Write to MH i2c: E2 08 00 78 11 80 13 00 00 00 00 00 00 05 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 62 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 62 00 78 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [12:49:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:57]wFMCommunicate OK [12:49:57]SAM_PROTO_GetFieldsCounters done [12:49:57]requested_item shift.num is exist - process it [12:49:57]requested_item shift.opened is exist - process it [12:49:57]req_shift_opened [12:49:57]FM_GetShiftState [12:49:57]SAM_PROTO_GetShiftState [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 13 01 00 [12:49:57]Write to MH i2c: E2 08 00 79 11 80 13 01 00 00 00 00 00 07 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 0E 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 0E 00 79 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 09 [12:49:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:49:57]wFMCommunicate OK [12:49:57]SAM_PROTO_GetShiftState done [12:49:57]FM_GetShiftState done [12:49:57]req_shift_opened done [12:49:57]requested_item shift.open_date is exist - process it [12:49:57]req_shift_open_date [12:49:57]req_shift_open_date done [12:49:57]produce_requested_data done [12:49:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201941,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:49:57]process_action_free close_receipt [12:49:57]json_value_free [12:49:57]json_value_free done [12:49:57]process_json_proto returns [12:49:57]Send response to host [12:49:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201941,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:49:57]free response buf [12:49:57]execute_script done [12:49:57]execute_script returns [12:49:57]free content buf [12:49:57]Sock 8.Close socket [12:49:57]Sock 8.Thread stoped [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:30]accept exits with 9 [12:54:30]New connection [12:54:30]New thread 3066498404 created [12:54:30]Thread 3066641764 joined [12:54:30]Waiting for new connection... [12:54:30] Sock 9.Parse request [12:54:30]Sock 9.Check first char [12:54:30]Sock 9.First char is OK [12:54:30]request: POST /json_proto HTTP/1.0 [12:54:30]Method: POST [12:54:30]URL: /json_proto [12:54:30]Method is POST - this is cgi request [12:54:30]url: /json_proto [12:54:30]query_string will be loaded in cgi processing [12:54:30]execute_cgi json_proto POST (null) [12:54:30]execute_cgi path=json_proto method=POST [12:54:30]POST find Content-Length [12:54:30]Host: 172.17.63.195:8080 [12:54:30]Content-Length: 677 [12:54:30]Content-Type: application/json [12:54:30] [12:54:30]POST finish read [12:54:30]Found Content-Length = 677 [12:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:30]execute_script... [12:54: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)449703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:30]POST & json_proto [12:54:30]process_json_proto [12:54:30]json parsed OK: [12:54:30]protocol is kg_v1.0 [12:54:30]action value=close_receipt [12:54:30]process_action close_receipt [12:54:30]cmd_close_receipt [12:54:30]MH_GetDate [12:54:30]Write to MH i2c: F0 00 00 7A 11 7A [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: F0 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: F0 09 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: F0 09 00 7A 11 00 06 38 1E 67 47 1B 1E 67 2D [12:54:30]GetLastDocTimeStamp 1730033394 [12:54:30]current date 1730033670 [12:54:30]FM_GetShiftState [12:54:30]SAM_PROTO_GetShiftState [12:54:30]wFMCommunicate request_size=4 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 13 01 00 [12:54:30]Write to MH i2c: E2 08 00 7B 11 80 13 01 00 00 00 00 00 09 [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 0E 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 0E 00 7B 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0B [12:54:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:54:30]wFMCommunicate OK [12:54:30]SAM_PROTO_GetShiftState done [12:54:30]FM_GetShiftState done [12:54:30]opened in 1729987312 [12:54:30]opened+sec_in_day 1730073712 [12:54:30]quantity*price = 50041 [12:54:30]sum+1 = 50042 [12:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 234 27.10.2024 12:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201942 ФПД: 248789570040308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125430&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201942&fm=248789570040308&tin=02508201610067®Number=0000000000091777&sum=50000 [12:54:31]StoreToDocumentArchive [12:54:31]shift 544 fd 201942 [12:54:31]save to /storage/0544/doc_00201942 [12:54:31]save last doc name /storage/0544/doc_00201942 to /storage/kkm_last_doc_name [12:54:31]save OK [12:54:31]Clear old archive folders... [12:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:31]tlvbuf is 01174FC0 [12:54:31]SAM_PROTO_ClearQueue [12:54:31]wFMCommunicate request_size=4 [12:54:31]MH_SAM_APDU [12:54:31]CAPDU: 80 09 00 00 [12:54:31]Write to MH i2c: E2 08 00 88 11 80 09 00 00 00 00 00 00 0B [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 88 11 00 90 00 0D [12:54:31]RAPDU: 90 00 [12:54:31]wFMCommunicate OK [12:54:31]SAM_PROTO_ClearQueue done [12:54:31]KKMCreateOFDPacket [12:54:31]OFDProtocolAddRootSTLVToBuf [12:54:31]FM_MakeSignedData [12:54:31]FM_MakeSignedData [12:54:31]SAM_PROTO_SignData [12:54:31]wFMCommunicate request_size=4 [12:54:31]MH_SAM_APDU [12:54:31]CAPDU: 80 0D 01 02 [12:54:31]Write to MH i2c: E2 08 00 89 11 80 0D 01 02 00 00 00 00 13 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [12:54:31]RAPDU: 90 00 [12:54:31]wFMCommunicate OK [12:54:31]wFMCommunicate request_size=255 [12:54:31]MH_SAM_APDU [12:54: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 32 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 EA 00 00 00 F4 03 04 00 06 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 14 03 00 35 04 06 00 E2 [12:54:31]Write to MH i2c: E2 02 01 8A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 06 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 14 03 00 35 04 06 00 E2 00 00 45 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [12:54:31]RAPDU: 90 00 [12:54:31]wFMCommunicate OK [12:54:31]wFMCommunicate request_size=10 [12:54:31]MH_SAM_APDU [12:54:31]CAPDU: 80 0D 02 02 05 45 D5 F2 31 F4 [12:54:31]Write to MH i2c: E2 0D 00 8B 11 80 0D 02 02 05 00 45 D5 F2 31 F4 00 00 51 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [12:54:31]RAPDU: 90 00 [12:54:31]wFMCommunicate OK [12:54:31]wFMCommunicate request_size=4 [12:54:31]MH_SAM_APDU [12:54:31]CAPDU: 80 0D 03 02 [12:54:31]Write to MH i2c: E2 08 00 8C 11 80 0D 03 02 00 00 00 00 18 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 0B 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 0B 00 8C 11 00 4D 73 EF C2 F3 9B A8 29 90 00 E9 [12:54:31]RAPDU: 4D 73 EF C2 F3 9B A8 29 90 00 [12:54:31]wFMCommunicate OK [12:54:31]SAM_PROTO_SignData done [12:54:31]FM_MakeSignedData done [12:54:31]CreateOFDProtocolMessage [12:54:31]wFMCommunicate request_size=4 [12:54:31]MH_SAM_APDU [12:54:31]CAPDU: 80 11 00 00 [12:54:31]Write to MH i2c: E2 08 00 8D 11 80 11 00 00 00 00 00 00 18 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]OFD Sender: No OFD packet to send [12:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:31]Read from MH i2c: E2 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 17 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: E2 17 00 8D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [12:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:54:31]wFMCommunicate OK [12:54:31]CreateOFDProtocolMessage done [12:54:31]OFDSenderStorePacket 201942 [12:54:31]StoreOFDPacket docnum=201942 [12:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E5 07 07 01 6A AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 06 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 14 03 00 35 04 06 00 E2 45 D5 F2 31 F4 4D 73 EF C2 F3 9B A8 29 [12:54:31]CheckFolder [12:54:31]dirname=/storage/ofd_packets [12:54:31]CheckFolder done [12:54:31]ProducePacketName [12:54:31]name=ofd_packets/00201942 [12:54:31]NVStorageSaveData ofd_packets/00201942 [12:54:31]File name is /storage/ofd_packets/00201942 [12:54:31]Write 301 bytes [12:54:31]NVStorageSaveData done [12:54:31]OFDSenderStorePacket done [12:54:31]KKMCreateOFDPacket done [12:54:31]NVStorageSaveData kkm_last_timestamp [12:54:31]File name is /storage/kkm_last_timestamp [12:54:31]Write 4 bytes [12:54:31]NVStorageSaveData done [12:54:31]ExternCall_PrintAddStr [12:54:31]wPrintStart [12:54:31]Write to MH i2c: 01 00 00 8E 11 9F [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 07 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 FF 0F B4 [12:54:31]RasterBufferAndPrint [12:54:31]line Счет N : (1)449703 [12:54:31]line ИНН: 02508201610067 [12:54:31]line Контрольно-Кассовый Чек [12:54:31]line ПРОДАЖА [12:54:31]line ТРК (МРК, ГНК) : 31 [12:54:31]line Товар: 2710124130 [12:54:31]line Аи-92-К-2 [12:54:31]line 7.480 * 66.90 [12:54:31]line = 500.41 [12:54:31]line НДС 12% НСП 1% [12:54:31]line > о реализуемом товаре [12:54:31]line ОКРУГЛЕНИЕ: -0.41 [12:54:31]line ИТОГО: 500.00 [12:54:31]line Внесено: 500.00 [12:54:31]line СДАЧА: 0.00 [12:54:31]line НСП 1% : 4.43 [12:54:31]line НДС 12% : 53.14 [12:54:31]line Наличными: 500.00 [12:54:31]line Безнал.: 0.00 [12:54:31]line Место: АЗС № 171 "Партнер Нефть" [12:54:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:54:31]line СНО: Общий режим [12:54:31]line Чек 234 27.10.2024 12:54 [12:54:31]line Смена: 544 ФФД: 1.0 [12:54:31]line ЗНМ: 0300000109 [12:54:31]line РНМ: 0000000000091777 [12:54:31]line Версия ККМ: 001 [12:54:31]line ФМ: 0000000000871756 [12:54:31]line ФД: 201942 [12:54:31]line ФПД: 248789570040308 [12:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125430&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201942&fm=248789570040308&tin=02508201610067®Number=0000000000091777&sum=50000 [12:54:32]OFD Sender: Processing packet 201942 [packets to send 112, broken 111] [12:54:32]ProducePacketName [12:54:32]name=ofd_packets/00201942 [12:54:32]OFD Sender: To server: pG, [12:54:32]CommunicateWithHost lk.salyk.kg:30040 [12:54:32]ConnectInit lk.salyk.kg [12:54:32]written 0, free lines is 4095 [12:54:32]Connected sock=10 [12:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E5 07 07 01 6A AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 06 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 14 03 00 35 04 06 00 E2 45 D5 F2 31 F4 4D 73 EF C2 F3 9B A8 29 [12:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DA E0 47 00 1A C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 14 03 00 F4 03 04 00 C0 E3 1D 67 B6 04 01 00 00 BE D1 2C 9B DF 9F DF 84 [12:54:32]CommunicateWithHost err = 0 [12:54:32]CheckOFDResponse [12:54:32]1017 (14) - 77093643461234 [12:54:32]1041 (16) - 0000000000871756 [12:54:32]1040 (4) - 201942 [12:54:32]1012 (4) - 27.10.2024 06:54 [12:54:32]1206 (1) - 0 [12:54:32]OFD Sender: Remove packet 201942 [12:54:32]ProducePacketName [12:54:32]name=ofd_packets/00201942 [12:54:32]NVStorageDeleteData [12:54:32]Write to MH i2c: 01 00 00 B9 11 CA [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 07 00 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 07 00 B9 11 00 00 00 00 00 84 0C 61 [12:54:32]RasterBufferAndPrint [12:54:32]line [12:54:32]line [12:54:32]line [12:54:32]line [12:54:32]line [12:54:32]written 0, free lines is 3208 [12:54:32]MH_Cut [12:54:32]Write to MH i2c: D1 01 00 C0 11 01 A3 [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: D1 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: D1 01 00 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: D1 01 00 C0 11 00 A2 [12:54:32]Write to MH i2c: 01 00 00 C1 11 D2 [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:33]OFD Sender: No OFD packet to send [12:54:33]*** Cut start [12:54:33]*** Purtial cut [12:54:33]*** Stage 1: CUTSNS_PIN = 1 [12:54:33]Read from MH i2c: 01 [12:54:33]MH_I2C_Read... [12:54:33]*** Stop cut motor [12:54:33]*** Cut end [12:54:33]Read from MH i2c: 01 07 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: 01 07 00 C1 11 00 00 00 00 00 FF 0F E7 [12:54:33]process_action close_receipt done [12:54:33]requested_data is exist [12:54:33]produce_requested_data [12:54:33]requested_item fm.sn is exist - process it [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 11 00 00 [12:54:33]Write to MH i2c: E2 08 00 C2 11 80 11 00 00 00 00 00 00 4D [12:54:33]Write i2c OK [12:54:33]MH_I2C_Read... [12:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:33]Read from MH i2c: E2 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 17 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 17 00 C2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A2 [12:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:54:33]wFMCommunicate OK [12:54:33]requested_item fd.num is exist - process it [12:54:33]SAM_PROTO_GetFieldsCounters [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 13 00 00 [12:54:33]Write to MH i2c: E2 08 00 C3 11 80 13 00 00 00 00 00 00 50 [12:54:33]Write i2c OK [12:54:33]MH_I2C_Read... [12:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:33]Read from MH i2c: E2 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 62 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 62 00 C3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [12:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:34]wFMCommunicate OK [12:54:34]SAM_PROTO_GetFieldsCounters done [12:54:34]requested_item shift.num is exist - process it [12:54:34]requested_item shift.opened is exist - process it [12:54:34]req_shift_opened [12:54:34]FM_GetShiftState [12:54:34]SAM_PROTO_GetShiftState [12:54:34]wFMCommunicate request_size=4 [12:54:34]MH_SAM_APDU [12:54:34]CAPDU: 80 13 01 00 [12:54:34]Write to MH i2c: E2 08 00 C4 11 80 13 01 00 00 00 00 00 52 [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 0E 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 0E 00 C4 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 54 [12:54:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:54:34]wFMCommunicate OK [12:54:34]SAM_PROTO_GetShiftState done [12:54:34]FM_GetShiftState done [12:54:34]req_shift_opened done [12:54:34]requested_item shift.open_date is exist - process it [12:54:34]req_shift_open_date [12:54:34]req_shift_open_date done [12:54:34]produce_requested_data done [12:54:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201942,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:54:34]process_action_free close_receipt [12:54:34]json_value_free [12:54:34]json_value_free done [12:54:34]process_json_proto returns [12:54:34]Send response to host [12:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201942,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:54:34]free response buf [12:54:34]execute_script done [12:54:34]execute_script returns [12:54:34]free content buf [12:54:34]Sock 9.Close socket [12:54:34]Sock 9.Thread stoped [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:45]accept exits with 8 [12:57:45]New connection [12:57:45]New thread 3066641764 created [12:57:45]Thread 3066498404 joined [12:57:45]Waiting for new connection... [12:57:45] Sock 8.Parse request [12:57:45]Sock 8.Check first char [12:57:45]Sock 8.First char is OK [12:57:45]request: POST /json_proto HTTP/1.0 [12:57:45]Method: POST [12:57:45]URL: /json_proto [12:57:45]Method is POST - this is cgi request [12:57:45]url: /json_proto [12:57:45]query_string will be loaded in cgi processing [12:57:45]execute_cgi json_proto POST (null) [12:57:45]execute_cgi path=json_proto method=POST [12:57:45]POST find Content-Length [12:57:45]Host: 172.17.63.195:8080 [12:57:45]Content-Length: 677 [12:57:45]Content-Type: application/json [12:57:45] [12:57:45]POST finish read [12:57:45]Found Content-Length = 677 [12:57:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:45]execute_script... [12:57:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:45]POST & json_proto [12:57:45]process_json_proto [12:57:45]json parsed OK: [12:57:45]protocol is kg_v1.0 [12:57:45]action value=close_receipt [12:57:45]process_action close_receipt [12:57:45]cmd_close_receipt [12:57:45]MH_GetDate [12:57:45]Write to MH i2c: F0 00 00 C5 11 C5 [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: F0 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: F0 09 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: F0 09 00 C5 11 00 CA 38 1E 67 47 1B 1E 67 3C [12:57:45]GetLastDocTimeStamp 1730033670 [12:57:45]current date 1730033866 [12:57:45]FM_GetShiftState [12:57:45]SAM_PROTO_GetShiftState [12:57:45]wFMCommunicate request_size=4 [12:57:45]MH_SAM_APDU [12:57:45]CAPDU: 80 13 01 00 [12:57:45]Write to MH i2c: E2 08 00 C6 11 80 13 01 00 00 00 00 00 54 [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:45]Read from MH i2c: E2 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 0E 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 0E 00 C6 11 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 56 [12:57:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:57:45]wFMCommunicate OK [12:57:45]SAM_PROTO_GetShiftState done [12:57:45]FM_GetShiftState done [12:57:45]opened in 1729987312 [12:57:45]opened+sec_in_day 1730073712 [12:57:45]quantity*price = 50041 [12:57:45]sum+1 = 50042 [12:57:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 235 27.10.2024 12:57 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201943 ФПД: 121657168261302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125746&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201943&fm=121657168261302&tin=02508201610067®Number=0000000000091777&sum=50000 [12:57:46]StoreToDocumentArchive [12:57:46]shift 544 fd 201943 [12:57:46]save to /storage/0544/doc_00201943 [12:57:46]save last doc name /storage/0544/doc_00201943 to /storage/kkm_last_doc_name [12:57:46]save OK [12:57:46]Clear old archive folders... [12:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:46]tlvbuf is B6E756C0 [12:57:46]SAM_PROTO_ClearQueue [12:57:46]wFMCommunicate request_size=4 [12:57:46]MH_SAM_APDU [12:57:46]CAPDU: 80 09 00 00 [12:57:46]Write to MH i2c: E2 08 00 D3 11 80 09 00 00 00 00 00 00 56 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 03 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 03 00 D3 11 00 90 00 58 [12:57:46]RAPDU: 90 00 [12:57:46]wFMCommunicate OK [12:57:46]SAM_PROTO_ClearQueue done [12:57:46]KKMCreateOFDPacket [12:57:46]OFDProtocolAddRootSTLVToBuf [12:57:46]FM_MakeSignedData [12:57:46]FM_MakeSignedData [12:57:46]SAM_PROTO_SignData [12:57:46]wFMCommunicate request_size=4 [12:57:46]MH_SAM_APDU [12:57:46]CAPDU: 80 0D 01 02 [12:57:46]Write to MH i2c: E2 08 00 D4 11 80 0D 01 02 00 00 00 00 5E [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 03 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 03 00 D4 11 00 90 00 59 [12:57:46]RAPDU: 90 00 [12:57:46]wFMCommunicate OK [12:57:46]wFMCommunicate request_size=255 [12:57:46]MH_SAM_APDU [12:57: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 32 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 EB 00 00 00 F4 03 04 00 CA 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 14 03 00 35 04 06 00 6E [12:57:46]Write to MH i2c: E2 02 01 D5 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EB 00 00 00 F4 03 04 00 CA 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 14 03 00 35 04 06 00 6E 00 00 E2 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 D5 11 00 90 00 5A [12:57:47]RAPDU: 90 00 [12:57:47]wFMCommunicate OK [12:57:47]wFMCommunicate request_size=10 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 0D 02 02 05 A5 84 4C 70 B6 [12:57:47]Write to MH i2c: E2 0D 00 D6 11 80 0D 02 02 05 00 A5 84 4C 70 B6 00 00 06 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 D6 11 00 90 00 5B [12:57:47]RAPDU: 90 00 [12:57:47]wFMCommunicate OK [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 0D 03 02 [12:57:47]Write to MH i2c: E2 08 00 D7 11 80 0D 03 02 00 00 00 00 63 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 0B 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 0B 00 D7 11 00 88 B7 26 C3 08 F0 CF E1 90 00 34 [12:57:47]RAPDU: 88 B7 26 C3 08 F0 CF E1 90 00 [12:57:47]wFMCommunicate OK [12:57:47]SAM_PROTO_SignData done [12:57:47]FM_MakeSignedData done [12:57:47]CreateOFDProtocolMessage [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 11 00 00 [12:57:47]Write to MH i2c: E2 08 00 D8 11 80 11 00 00 00 00 00 00 63 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 17 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 17 00 D8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [12:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:57:47]wFMCommunicate OK [12:57:47]CreateOFDProtocolMessage done [12:57:47]OFDSenderStorePacket 201943 [12:57:47]StoreOFDPacket docnum=201943 [12:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 30 B7 07 01 2D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EB 00 00 00 F4 03 04 00 CA 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 14 03 00 35 04 06 00 6E A5 84 4C 70 B6 88 B7 26 C3 08 F0 CF E1 [12:57:47]CheckFolder [12:57:47]dirname=/storage/ofd_packets [12:57:47]CheckFolder done [12:57:47]ProducePacketName [12:57:47]name=ofd_packets/00201943 [12:57:47]NVStorageSaveData ofd_packets/00201943 [12:57:47]File name is /storage/ofd_packets/00201943 [12:57:47]Write 301 bytes [12:57:47]NVStorageSaveData done [12:57:47]OFDSenderStorePacket done [12:57:47]KKMCreateOFDPacket done [12:57:47]NVStorageSaveData kkm_last_timestamp [12:57:47]File name is /storage/kkm_last_timestamp [12:57:47]Write 4 bytes [12:57:47]NVStorageSaveData done [12:57:47]ExternCall_PrintAddStr [12:57:47]wPrintStart [12:57:47]Write to MH i2c: 01 00 00 D9 11 EA [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: 01 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: 01 07 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 FF 0F FF [12:57:47]RasterBufferAndPrint [12:57:47]line Счет N : (1)449704 [12:57:47]line ИНН: 02508201610067 [12:57:47]line Контрольно-Кассовый Чек [12:57:47]line ПРОДАЖА [12:57:47]line ТРК (МРК, ГНК) : 62 [12:57:47]line Товар: 2710124130 [12:57:47]line Аи-92-К-2 [12:57:47]line 7.480 * 66.90 [12:57:47]line = 500.41 [12:57:47]line НДС 12% НСП 1% [12:57:47]line > о реализуемом товаре [12:57:47]line ОКРУГЛЕНИЕ: -0.41 [12:57:47]line ИТОГО: 500.00 [12:57:47]line Внесено: 500.00 [12:57:47]line СДАЧА: 0.00 [12:57:47]line НСП 1% : 4.43 [12:57:47]line НДС 12% : 53.14 [12:57:47]line Наличными: 500.00 [12:57:47]line Безнал.: 0.00 [12:57:47]line Место: АЗС № 171 "Партнер Нефть" [12:57:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:57:47]line СНО: Общий режим [12:57:47]line Чек 235 27.10.2024 12:57 [12:57:47]line Смена: 544 ФФД: 1.0 [12:57:47]line ЗНМ: 0300000109 [12:57:47]line РНМ: 0000000000091777 [12:57:47]line Версия ККМ: 001 [12:57:47]line ФМ: 0000000000871756 [12:57:47]line ФД: 201943 [12:57:47]line ФПД: 121657168261302 [12:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125746&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201943&fm=121657168261302&tin=02508201610067®Number=0000000000091777&sum=50000 [12:57:47]OFD Sender: Processing packet 201943 [packets to send 112, broken 111] [12:57:47]ProducePacketName [12:57:47]name=ofd_packets/00201943 [12:57:47]OFD Sender: To server: pG, [12:57:47]CommunicateWithHost lk.salyk.kg:30040 [12:57:47]ConnectInit lk.salyk.kg [12:57:47]written 0, free lines is 4095 [12:57:47]Connected sock=10 [12:57:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 30 B7 07 01 2D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EB 00 00 00 F4 03 04 00 CA 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 14 03 00 35 04 06 00 6E A5 84 4C 70 B6 88 B7 26 C3 08 F0 CF E1 [12:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 54 85 47 00 A1 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 14 03 00 F4 03 04 00 84 E4 1D 67 B6 04 01 00 00 CE 6F 04 11 B5 88 2F 78 [12:57:47]CommunicateWithHost err = 0 [12:57:47]CheckOFDResponse [12:57:47]1017 (14) - 77093643461234 [12:57:47]1041 (16) - 0000000000871756 [12:57:47]1040 (4) - 201943 [12:57:47]1012 (4) - 27.10.2024 06:58 [12:57:47]1206 (1) - 0 [12:57:47]OFD Sender: Remove packet 201943 [12:57:47]ProducePacketName [12:57:47]name=ofd_packets/00201943 [12:57:47]NVStorageDeleteData [12:57:48]Write to MH i2c: 01 00 00 04 12 16 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 04 12 00 00 00 00 00 85 0C AE [12:57:48]RasterBufferAndPrint [12:57:48]line [12:57:48]line [12:57:48]line [12:57:48]line [12:57:48]line [12:57:48]written 0, free lines is 3211 [12:57:48]MH_Cut [12:57:48]Write to MH i2c: D1 01 00 0B 12 01 EF [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: D1 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: D1 01 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: D1 01 00 0B 12 00 EE [12:57:48]Write to MH i2c: 01 00 00 0C 12 1E [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]OFD Sender: No OFD packet to send [12:57:49]*** Cut start [12:57:49]*** Purtial cut [12:57:49]*** CUTSNS_PIN = 0 [12:57:49]*** Stage 1: CUTSNS_PIN = 1 [12:57:51]Read from MH i2c: 01 [12:57:51]MH_I2C_Read... [12:57:51]*** Stop cut motor [12:57:51]*** Cut end [12:57:51]Read from MH i2c: 01 07 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: 01 07 00 0C 12 00 00 00 00 00 FF 0F 33 [12:57:51]process_action close_receipt done [12:57:51]requested_data is exist [12:57:51]produce_requested_data [12:57:51]requested_item fm.sn is exist - process it [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 0D 12 80 11 00 00 00 00 00 00 99 [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 17 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 17 00 0D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EE [12:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:57:51]wFMCommunicate OK [12:57:51]requested_item fd.num is exist - process it [12:57:51]SAM_PROTO_GetFieldsCounters [12:57:51]wFMCommunicate request_size=4 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 13 00 00 [12:57:51]Write to MH i2c: E2 08 00 0E 12 80 13 00 00 00 00 00 00 9C [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 62 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 62 00 0E 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [12:57:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:51]wFMCommunicate OK [12:57:51]SAM_PROTO_GetFieldsCounters done [12:57:51]requested_item shift.num is exist - process it [12:57:51]requested_item shift.opened is exist - process it [12:57:51]req_shift_opened [12:57:51]FM_GetShiftState [12:57:51]SAM_PROTO_GetShiftState [12:57:51]wFMCommunicate request_size=4 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 13 01 00 [12:57:51]Write to MH i2c: E2 08 00 0F 12 80 13 01 00 00 00 00 00 9E [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 0E 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 0E 00 0F 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A0 [12:57:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:57:51]wFMCommunicate OK [12:57:51]SAM_PROTO_GetShiftState done [12:57:51]FM_GetShiftState done [12:57:51]req_shift_opened done [12:57:51]requested_item shift.open_date is exist - process it [12:57:51]req_shift_open_date [12:57:51]req_shift_open_date done [12:57:51]produce_requested_data done [12:57:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201943,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:57:51]process_action_free close_receipt [12:57:51]json_value_free [12:57:51]json_value_free done [12:57:51]process_json_proto returns [12:57:51]Send response to host [12:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201943,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:57:51]free response buf [12:57:51]execute_script done [12:57:51]execute_script returns [12:57:51]free content buf [12:57:51]Sock 8.Close socket [12:57:51]Sock 8.Thread stoped [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:25]accept exits with 9 [12:58:25]New connection [12:58:25]New thread 3066498404 created [12:58:25]Thread 3066641764 joined [12:58:25]Waiting for new connection... [12:58:25] Sock 9.Parse request [12:58:25]Sock 9.Check first char [12:58:25]Sock 9.First char is OK [12:58:25]request: POST /json_proto HTTP/1.0 [12:58:25]Method: POST [12:58:25]URL: /json_proto [12:58:25]Method is POST - this is cgi request [12:58:25]url: /json_proto [12:58:25]query_string will be loaded in cgi processing [12:58:25]execute_cgi json_proto POST (null) [12:58:25]execute_cgi path=json_proto method=POST [12:58:25]POST find Content-Length [12:58:25]Host: 172.17.63.195:8080 [12:58:25]Content-Length: 679 [12:58:25]Content-Type: application/json [12:58:25] [12:58:25]POST finish read [12:58:25]Found Content-Length = 679 [12:58:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:58:25]execute_script... [12:58: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)449705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [12:58:25]POST & json_proto [12:58:25]process_json_proto [12:58:25]json parsed OK: [12:58:25]protocol is kg_v1.0 [12:58:25]action value=close_receipt [12:58:25]process_action close_receipt [12:58:25]cmd_close_receipt [12:58:25]MH_GetDate [12:58:25]Write to MH i2c: F0 00 00 10 12 11 [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: F0 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: F0 09 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: F0 09 00 10 12 00 F2 38 1E 67 47 1B 1E 67 B0 [12:58:25]GetLastDocTimeStamp 1730033866 [12:58:25]current date 1730033906 [12:58:25]FM_GetShiftState [12:58:25]SAM_PROTO_GetShiftState [12:58:25]wFMCommunicate request_size=4 [12:58:25]MH_SAM_APDU [12:58:25]CAPDU: 80 13 01 00 [12:58:25]Write to MH i2c: E2 08 00 11 12 80 13 01 00 00 00 00 00 A0 [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:25]Read from MH i2c: E2 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 0E 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 0E 00 11 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A2 [12:58:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:58:25]wFMCommunicate OK [12:58:25]SAM_PROTO_GetShiftState done [12:58:25]FM_GetShiftState done [12:58:25]opened in 1729987312 [12:58:25]opened+sec_in_day 1730073712 [12:58:25]quantity*price = 100050 [12:58:25]sum+1 = 100052 [12:58:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 236 27.10.2024 12:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201944 ФПД: 29251858121411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201944&fm=29251858121411&tin=02508201610067®Number=0000000000091777&sum=100000 [12:58:26]StoreToDocumentArchive [12:58:26]shift 544 fd 201944 [12:58:26]save to /storage/0544/doc_00201944 [12:58:26]save last doc name /storage/0544/doc_00201944 to /storage/kkm_last_doc_name [12:58:26]save OK [12:58:26]Clear old archive folders... [12:58:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:58:26]tlvbuf is B6E8EBE0 [12:58:26]SAM_PROTO_ClearQueue [12:58:26]wFMCommunicate request_size=4 [12:58:26]MH_SAM_APDU [12:58:26]CAPDU: 80 09 00 00 [12:58:26]Write to MH i2c: E2 08 00 1E 12 80 09 00 00 00 00 00 00 A2 [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:26]Read from MH i2c: E2 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 03 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 03 00 1E 12 00 90 00 A4 [12:58:26]RAPDU: 90 00 [12:58:26]wFMCommunicate OK [12:58:26]SAM_PROTO_ClearQueue done [12:58:26]KKMCreateOFDPacket [12:58:26]OFDProtocolAddRootSTLVToBuf [12:58:26]FM_MakeSignedData [12:58:26]FM_MakeSignedData [12:58:26]SAM_PROTO_SignData [12:58:26]wFMCommunicate request_size=4 [12:58:26]MH_SAM_APDU [12:58:26]CAPDU: 80 0D 01 02 [12:58:26]Write to MH i2c: E2 08 00 1F 12 80 0D 01 02 00 00 00 00 AA [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:26]Read from MH i2c: E2 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 03 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 03 00 1F 12 00 90 00 A5 [12:58:26]RAPDU: 90 00 [12:58:26]wFMCommunicate OK [12:58:26]wFMCommunicate request_size=255 [12:58:26]MH_SAM_APDU [12:58:26]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 32 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 EC 00 00 00 F4 03 04 00 F2 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 14 03 00 35 04 06 00 1A 9A BA 9C [12:58:26]Write to MH i2c: E2 02 01 20 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 EC 00 00 00 F4 03 04 00 F2 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 14 03 00 35 04 06 00 1A 9A BA 9C 00 00 EA [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:26]Read from MH i2c: E2 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 03 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 03 00 20 12 00 90 00 A6 [12:58:26]RAPDU: 90 00 [12:58:26]wFMCommunicate OK [12:58:26]wFMCommunicate request_size=7 [12:58:26]MH_SAM_APDU [12:58:26]CAPDU: 80 0D 02 02 02 C2 C3 [12:58:26]Write to MH i2c: E2 0A 00 21 12 80 0D 02 02 02 00 C2 C3 00 00 36 [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:26]Read from MH i2c: E2 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 03 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [12:58:26]RAPDU: 90 00 [12:58:26]wFMCommunicate OK [12:58:26]wFMCommunicate request_size=4 [12:58:26]MH_SAM_APDU [12:58:26]CAPDU: 80 0D 03 02 [12:58:26]Write to MH i2c: E2 08 00 22 12 80 0D 03 02 00 00 00 00 AF [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:26]Read from MH i2c: E2 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 0B 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 0B 00 22 12 00 5B 41 ED C5 0E D5 94 C2 90 00 37 [12:58:26]RAPDU: 5B 41 ED C5 0E D5 94 C2 90 00 [12:58:26]wFMCommunicate OK [12:58:26]SAM_PROTO_SignData done [12:58:26]FM_MakeSignedData done [12:58:26]CreateOFDProtocolMessage [12:58:26]wFMCommunicate request_size=4 [12:58:26]MH_SAM_APDU [12:58:26]CAPDU: 80 11 00 00 [12:58:26]Write to MH i2c: E2 08 00 23 12 80 11 00 00 00 00 00 00 AF [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:26]Read from MH i2c: E2 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 17 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: E2 17 00 23 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [12:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:58:26]wFMCommunicate OK [12:58:26]CreateOFDProtocolMessage done [12:58:26]OFDSenderStorePacket 201944 [12:58:26]StoreOFDPacket docnum=201944 [12:58:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 EC BC 04 01 E9 1F 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 32 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 EC 00 00 00 F4 03 04 00 F2 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 14 03 00 35 04 06 00 1A 9A BA 9C C2 C3 5B 41 ED C5 0E D5 94 C2 [12:58:26]CheckFolder [12:58:26]dirname=/storage/ofd_packets [12:58:26]CheckFolder done [12:58:26]ProducePacketName [12:58:26]name=ofd_packets/00201944 [12:58:26]NVStorageSaveData ofd_packets/00201944 [12:58:26]File name is /storage/ofd_packets/00201944 [12:58:26]Write 298 bytes [12:58:26]NVStorageSaveData done [12:58:26]OFDSenderStorePacket done [12:58:26]KKMCreateOFDPacket done [12:58:26]NVStorageSaveData kkm_last_timestamp [12:58:26]File name is /storage/kkm_last_timestamp [12:58:26]Write 4 bytes [12:58:26]NVStorageSaveData done [12:58:26]ExternCall_PrintAddStr [12:58:26]wPrintStart [12:58:26]Write to MH i2c: 01 00 00 24 12 36 [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: 01 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: 01 07 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: 01 07 00 24 12 00 00 00 00 00 FF 0F 4B [12:58:26]RasterBufferAndPrint [12:58:26]line Счет N : (1)449705 [12:58:26]line ИНН: 02508201610067 [12:58:26]line Контрольно-Кассовый Чек [12:58:26]line ПРОДАЖА [12:58:26]line ТРК (МРК, ГНК) : 43 [12:58:26]line Товар: 2710194210 [12:58:26]line ДТ-К-2 [12:58:26]line 13.130 * 76.20 [12:58:26]line = 1000.51 [12:58:26]line НДС 12% НСП 1% [12:58:26]line > о реализуемом товаре [12:58:26]line ОКРУГЛЕНИЕ: -0.51 [12:58:26]line ИТОГО: 1000.00 [12:58:26]line Внесено: 1000.00 [12:58:26]line СДАЧА: 0.00 [12:58:26]line НСП 1% : 8.85 [12:58:26]line НДС 12% : 106.25 [12:58:26]line Наличными: 1000.00 [12:58:26]line Безнал.: 0.00 [12:58:26]line Место: АЗС № 171 "Партнер Нефть" [12:58:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:58:26]line СНО: Общий режим [12:58:26]line Чек 236 27.10.2024 12:58 [12:58:26]line Смена: 544 ФФД: 1.0 [12:58:26]line ЗНМ: 0300000109 [12:58:26]line РНМ: 0000000000091777 [12:58:26]line Версия ККМ: 001 [12:58:26]line ФМ: 0000000000871756 [12:58:26]line ФД: 201944 [12:58:27]line ФПД: 29251858121411 [12:58:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201944&fm=29251858121411&tin=02508201610067®Number=0000000000091777&sum=100000 [12:58:27]OFD Sender: Processing packet 201944 [packets to send 112, broken 111] [12:58:27]ProducePacketName [12:58:27]name=ofd_packets/00201944 [12:58:27]OFD Sender: To server: pG, [12:58:27]CommunicateWithHost lk.salyk.kg:30040 [12:58:27]ConnectInit lk.salyk.kg [12:58:27]written 0, free lines is 4095 [12:58:27]Connected sock=10 [12:58:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 EC BC 04 01 E9 1F 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 32 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 EC 00 00 00 F4 03 04 00 F2 38 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 14 03 00 35 04 06 00 1A 9A BA 9C C2 C3 5B 41 ED C5 0E D5 94 C2 [12:58:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 84 5A 47 00 10 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 14 03 00 F4 03 04 00 AC E4 1D 67 B6 04 01 00 00 E0 23 30 91 C9 FA 76 F7 [12:58:27]CommunicateWithHost err = 0 [12:58:27]CheckOFDResponse [12:58:27]1017 (14) - 77093643461234 [12:58:27]1041 (16) - 0000000000871756 [12:58:27]1040 (4) - 201944 [12:58:27]1012 (4) - 27.10.2024 06:58 [12:58:27]1206 (1) - 0 [12:58:27]OFD Sender: Remove packet 201944 [12:58:27]ProducePacketName [12:58:27]name=ofd_packets/00201944 [12:58:27]NVStorageDeleteData [12:58:27]Write to MH i2c: 01 00 00 4F 12 61 [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: 01 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: 01 07 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: 01 07 00 4F 12 00 00 00 00 00 91 0C 05 [12:58:27]RasterBufferAndPrint [12:58:27]line [12:58:27]line [12:58:27]line [12:58:27]line [12:58:27]line [12:58:27]written 0, free lines is 3221 [12:58:27]MH_Cut [12:58:27]Write to MH i2c: D1 01 00 56 12 01 3A [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: D1 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: D1 01 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: D1 01 00 56 12 00 39 [12:58:27]Write to MH i2c: 01 00 00 57 12 69 [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:28]OFD Sender: No OFD packet to send [12:58:28]*** Cut start [12:58:28]*** Purtial cut [12:58:28]*** Stage 1: CUTSNS_PIN = 1 [12:58:28]Read from MH i2c: 01 [12:58:28]MH_I2C_Read... [12:58:28]*** Stop cut motor [12:58:28]*** Cut end [12:58:28]Read from MH i2c: 01 07 00 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: 01 07 00 57 12 00 00 00 00 00 FF 0F 7E [12:58:28]process_action close_receipt done [12:58:28]requested_data is exist [12:58:28]produce_requested_data [12:58:28]requested_item fm.sn is exist - process it [12:58:28]wFMCommunicate request_size=4 [12:58:28]MH_SAM_APDU [12:58:28]CAPDU: 80 11 00 00 [12:58:28]Write to MH i2c: E2 08 00 58 12 80 11 00 00 00 00 00 00 E4 [12:58:28]Write i2c OK [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 [12:58:28]MH_I2C_Read... [12:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:28]Read from MH i2c: E2 17 00 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 17 00 58 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 39 [12:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:58:28]wFMCommunicate OK [12:58:28]requested_item fd.num is exist - process it [12:58:28]SAM_PROTO_GetFieldsCounters [12:58:28]wFMCommunicate request_size=4 [12:58:28]MH_SAM_APDU [12:58:28]CAPDU: 80 13 00 00 [12:58:28]Write to MH i2c: E2 08 00 59 12 80 13 00 00 00 00 00 00 E7 [12:58:28]Write i2c OK [12:58:28]MH_I2C_Read... [12:58:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 62 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 62 00 59 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:58:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:29]wFMCommunicate OK [12:58:29]SAM_PROTO_GetFieldsCounters done [12:58:29]requested_item shift.num is exist - process it [12:58:29]requested_item shift.opened is exist - process it [12:58:29]req_shift_opened [12:58:29]FM_GetShiftState [12:58:29]SAM_PROTO_GetShiftState [12:58:29]wFMCommunicate request_size=4 [12:58:29]MH_SAM_APDU [12:58:29]CAPDU: 80 13 01 00 [12:58:29]Write to MH i2c: E2 08 00 5A 12 80 13 01 00 00 00 00 00 E9 [12:58:29]Write i2c OK [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 [12:58:29]MH_I2C_Read... [12:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:29]Read from MH i2c: E2 0E 00 [12:58:29]MH_I2C_Read... [12:58:29]Read from MH i2c: E2 0E 00 5A 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 EB [12:58:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [12:58:29]wFMCommunicate OK [12:58:29]SAM_PROTO_GetShiftState done [12:58:29]FM_GetShiftState done [12:58:29]req_shift_opened done [12:58:29]requested_item shift.open_date is exist - process it [12:58:29]req_shift_open_date [12:58:29]req_shift_open_date done [12:58:29]produce_requested_data done [12:58:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201944,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [12:58:29]process_action_free close_receipt [12:58:29]json_value_free [12:58:29]json_value_free done [12:58:29]process_json_proto returns [12:58:29]Send response to host [12:58:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201944,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [12:58:29]free response buf [12:58:29]execute_script done [12:58:29]execute_script returns [12:58:29]free content buf [12:58:29]Sock 9.Close socket [12:58:29]Sock 9.Thread stoped [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:03]accept exits with 8 [13:00:03]New connection [13:00:03]New thread 3066641764 created [13:00:03]Thread 3066498404 joined [13:00:03]Waiting for new connection... [13:00:03] Sock 8.Parse request [13:00:03]Sock 8.Check first char [13:00:03]Sock 8.First char is OK [13:00:03]request: POST /json_proto HTTP/1.0 [13:00:03]Method: POST [13:00:03]URL: /json_proto [13:00:03]Method is POST - this is cgi request [13:00:03]url: /json_proto [13:00:03]query_string will be loaded in cgi processing [13:00:03]execute_cgi json_proto POST (null) [13:00:03]execute_cgi path=json_proto method=POST [13:00:03]POST find Content-Length [13:00:03]Host: 172.17.63.195:8080 [13:00:03]Content-Length: 677 [13:00:03]Content-Type: application/json [13:00:03] [13:00:03]POST finish read [13:00:03]Found Content-Length = 677 [13:00:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:03]execute_script... [13:00: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)449706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:03]POST & json_proto [13:00:03]process_json_proto [13:00:03]json parsed OK: [13:00:03]protocol is kg_v1.0 [13:00:03]action value=close_receipt [13:00:03]process_action close_receipt [13:00:03]cmd_close_receipt [13:00:03]MH_GetDate [13:00:03]Write to MH i2c: F0 00 00 5B 12 5C [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: F0 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: F0 09 00 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: F0 09 00 5B 12 00 54 39 1E 67 47 1B 1E 67 5E [13:00:03]GetLastDocTimeStamp 1730033906 [13:00:03]current date 1730034004 [13:00:03]FM_GetShiftState [13:00:03]SAM_PROTO_GetShiftState [13:00:03]wFMCommunicate request_size=4 [13:00:03]MH_SAM_APDU [13:00:03]CAPDU: 80 13 01 00 [13:00:03]Write to MH i2c: E2 08 00 5C 12 80 13 01 00 00 00 00 00 EB [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:04]Read from MH i2c: E2 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 0E 00 [13:00:04]MH_I2C_Read... [13:00:04]Read from MH i2c: E2 0E 00 5C 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 ED [13:00:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:00:04]wFMCommunicate OK [13:00:04]SAM_PROTO_GetShiftState done [13:00:04]FM_GetShiftState done [13:00:04]opened in 1729987312 [13:00:04]opened+sec_in_day 1730073712 [13:00:04]quantity*price = 50041 [13:00:04]sum+1 = 50042 [13:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 237 27.10.2024 13:00 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201945 ФПД: 52928597197255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130004&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201945&fm=52928597197255&tin=02508201610067®Number=0000000000091777&sum=50000 [13:00:05]StoreToDocumentArchive [13:00:05]shift 544 fd 201945 [13:00:05]save to /storage/0544/doc_00201945 [13:00:05]save last doc name /storage/0544/doc_00201945 to /storage/kkm_last_doc_name [13:00:05]save OK [13:00:05]Clear old archive folders... [13:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:05]tlvbuf is 0119DC00 [13:00:05]SAM_PROTO_ClearQueue [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 09 00 00 [13:00:05]Write to MH i2c: E2 08 00 69 12 80 09 00 00 00 00 00 00 ED [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 69 12 00 90 00 EF [13:00:05]RAPDU: 90 00 [13:00:05]wFMCommunicate OK [13:00:05]SAM_PROTO_ClearQueue done [13:00:05]KKMCreateOFDPacket [13:00:05]OFDProtocolAddRootSTLVToBuf [13:00:05]FM_MakeSignedData [13:00:05]FM_MakeSignedData [13:00:05]SAM_PROTO_SignData [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 0D 01 02 [13:00:05]Write to MH i2c: E2 08 00 6A 12 80 0D 01 02 00 00 00 00 F5 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 6A 12 00 90 00 F0 [13:00:05]RAPDU: 90 00 [13:00:05]wFMCommunicate OK [13:00:05]wFMCommunicate request_size=255 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 ED 00 00 00 F4 03 04 00 54 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 14 03 00 35 04 06 00 30 [13:00:05]Write to MH i2c: E2 02 01 6B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 ED 00 00 00 F4 03 04 00 54 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 14 03 00 35 04 06 00 30 00 00 CA [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 6B 12 00 90 00 F1 [13:00:05]RAPDU: 90 00 [13:00:05]wFMCommunicate OK [13:00:05]wFMCommunicate request_size=10 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 0D 02 02 05 23 66 3C 01 C7 [13:00:05]Write to MH i2c: E2 0D 00 6C 12 80 0D 02 02 05 00 23 66 3C 01 C7 00 00 8F [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 03 00 6C 12 00 90 00 F2 [13:00:05]RAPDU: 90 00 [13:00:05]wFMCommunicate OK [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 0D 03 02 [13:00:05]Write to MH i2c: E2 08 00 6D 12 80 0D 03 02 00 00 00 00 FA [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0B 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0B 00 6D 12 00 5A ED 4A D4 D4 F2 CF 90 90 00 85 [13:00:05]RAPDU: 5A ED 4A D4 D4 F2 CF 90 90 00 [13:00:05]wFMCommunicate OK [13:00:05]SAM_PROTO_SignData done [13:00:05]FM_MakeSignedData done [13:00:05]CreateOFDProtocolMessage [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 11 00 00 [13:00:05]Write to MH i2c: E2 08 00 6E 12 80 11 00 00 00 00 00 00 FA [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 17 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 17 00 6E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [13:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:00:05]wFMCommunicate OK [13:00:05]CreateOFDProtocolMessage done [13:00:05]OFDSenderStorePacket 201945 [13:00:05]StoreOFDPacket docnum=201945 [13:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C3 53 07 01 F9 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 ED 00 00 00 F4 03 04 00 54 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 14 03 00 35 04 06 00 30 23 66 3C 01 C7 5A ED 4A D4 D4 F2 CF 90 [13:00:05]CheckFolder [13:00:05]dirname=/storage/ofd_packets [13:00:05]CheckFolder done [13:00:05]ProducePacketName [13:00:05]name=ofd_packets/00201945 [13:00:05]NVStorageSaveData ofd_packets/00201945 [13:00:05]File name is /storage/ofd_packets/00201945 [13:00:05]Write 301 bytes [13:00:05]NVStorageSaveData done [13:00:05]OFDSenderStorePacket done [13:00:05]KKMCreateOFDPacket done [13:00:05]NVStorageSaveData kkm_last_timestamp [13:00:05]File name is /storage/kkm_last_timestamp [13:00:05]Write 4 bytes [13:00:05]NVStorageSaveData done [13:00:05]ExternCall_PrintAddStr [13:00:05]wPrintStart [13:00:05]Write to MH i2c: 01 00 00 6F 12 81 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: 01 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: 01 07 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: 01 07 00 6F 12 00 00 00 00 00 FF 0F 96 [13:00:05]RasterBufferAndPrint [13:00:05]line Счет N : (1)449706 [13:00:05]line ИНН: 02508201610067 [13:00:05]line Контрольно-Кассовый Чек [13:00:05]line ПРОДАЖА [13:00:05]line ТРК (МРК, ГНК) : 62 [13:00:05]line Товар: 2710124130 [13:00:05]line Аи-92-К-2 [13:00:05]line 7.480 * 66.90 [13:00:05]line = 500.41 [13:00:05]line НДС 12% НСП 1% [13:00:05]line > о реализуемом товаре [13:00:05]line ОКРУГЛЕНИЕ: -0.41 [13:00:05]line ИТОГО: 500.00 [13:00:05]line Внесено: 500.00 [13:00:05]line СДАЧА: 0.00 [13:00:05]line НСП 1% : 4.43 [13:00:05]line НДС 12% : 53.14 [13:00:05]line Наличными: 500.00 [13:00:05]line Безнал.: 0.00 [13:00:05]line Место: АЗС № 171 "Партнер Нефть" [13:00:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:00:05]line СНО: Общий режим [13:00:05]line Чек 237 27.10.2024 13:00 [13:00:05]line Смена: 544 ФФД: 1.0 [13:00:05]line ЗНМ: 0300000109 [13:00:05]line РНМ: 0000000000091777 [13:00:05]line Версия ККМ: 001 [13:00:05]line ФМ: 0000000000871756 [13:00:05]line ФД: 201945 [13:00:05]line ФПД: 52928597197255 [13:00:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130004&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201945&fm=52928597197255&tin=02508201610067®Number=0000000000091777&sum=50000 [13:00:06]OFD Sender: Processing packet 201945 [packets to send 112, broken 111] [13:00:06]ProducePacketName [13:00:06]name=ofd_packets/00201945 [13:00:06]OFD Sender: To server: pG, [13:00:06]CommunicateWithHost lk.salyk.kg:30040 [13:00:06]ConnectInit lk.salyk.kg [13:00:06]written 0, free lines is 4095 [13:00:06]Connected sock=10 [13:00:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C3 53 07 01 F9 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 ED 00 00 00 F4 03 04 00 54 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 14 03 00 35 04 06 00 30 23 66 3C 01 C7 5A ED 4A D4 D4 F2 CF 90 [13:00:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C9 F5 47 00 37 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 14 03 00 F4 03 04 00 0E E5 1D 67 B6 04 01 00 00 9D 1F 8C 02 87 87 F7 E0 [13:00:06]CommunicateWithHost err = 0 [13:00:06]CheckOFDResponse [13:00:06]1017 (14) - 77093643461234 [13:00:06]1041 (16) - 0000000000871756 [13:00:06]1040 (4) - 201945 [13:00:06]1012 (4) - 27.10.2024 07:00 [13:00:06]1206 (1) - 0 [13:00:06]OFD Sender: Remove packet 201945 [13:00:06]ProducePacketName [13:00:06]name=ofd_packets/00201945 [13:00:06]NVStorageDeleteData [13:00:06]Write to MH i2c: 01 00 00 9A 12 AC [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 07 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: 01 07 00 9A 12 00 00 00 00 00 83 0C 42 [13:00:06]RasterBufferAndPrint [13:00:06]line [13:00:06]line [13:00:06]line [13:00:06]line [13:00:06]line [13:00:06]written 0, free lines is 3208 [13:00:06]MH_Cut [13:00:06]Write to MH i2c: D1 01 00 A1 12 01 85 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: D1 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: D1 01 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: D1 01 00 A1 12 00 84 [13:00:06]Write to MH i2c: 01 00 00 A2 12 B4 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]OFD Sender: No OFD packet to send [13:00:07]*** Cut start [13:00:07]*** Purtial cut [13:00:07]*** CUTSNS_PIN = 0 [13:00:07]*** Stage 1: CUTSNS_PIN = 1 [13:00:09]Read from MH i2c: 01 [13:00:09]MH_I2C_Read... [13:00:09]*** Stop cut motor [13:00:09]*** Cut end [13:00:09]Read from MH i2c: 01 07 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: 01 07 00 A2 12 00 00 00 00 00 FF 0F C9 [13:00:09]process_action close_receipt done [13:00:09]requested_data is exist [13:00:09]produce_requested_data [13:00:09]requested_item fm.sn is exist - process it [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 11 00 00 [13:00:09]Write to MH i2c: E2 08 00 A3 12 80 11 00 00 00 00 00 00 2F [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 17 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 17 00 A3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [13:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:00:09]wFMCommunicate OK [13:00:09]requested_item fd.num is exist - process it [13:00:09]SAM_PROTO_GetFieldsCounters [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 13 00 00 [13:00:09]Write to MH i2c: E2 08 00 A4 12 80 13 00 00 00 00 00 00 32 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 62 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 62 00 A4 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [13:00:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:09]wFMCommunicate OK [13:00:09]SAM_PROTO_GetFieldsCounters done [13:00:09]requested_item shift.num is exist - process it [13:00:09]requested_item shift.opened is exist - process it [13:00:09]req_shift_opened [13:00:09]FM_GetShiftState [13:00:09]SAM_PROTO_GetShiftState [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 13 01 00 [13:00:09]Write to MH i2c: E2 08 00 A5 12 80 13 01 00 00 00 00 00 34 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 0E 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 0E 00 A5 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 36 [13:00:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:00:09]wFMCommunicate OK [13:00:09]SAM_PROTO_GetShiftState done [13:00:09]FM_GetShiftState done [13:00:09]req_shift_opened done [13:00:09]requested_item shift.open_date is exist - process it [13:00:09]req_shift_open_date [13:00:09]req_shift_open_date done [13:00:09]produce_requested_data done [13:00:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201945,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:00:09]process_action_free close_receipt [13:00:09]json_value_free [13:00:09]json_value_free done [13:00:09]process_json_proto returns [13:00:09]Send response to host [13:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201945,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:00:09]free response buf [13:00:09]execute_script done [13:00:09]execute_script returns [13:00:09]free content buf [13:00:09]Sock 8.Close socket [13:00:09]Sock 8.Thread stoped [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:31]accept exits with 9 [13:00:31]New connection [13:00:31]New thread 3066498404 created [13:00:31]Thread 3066641764 joined [13:00:31]Waiting for new connection... [13:00:31] Sock 9.Parse request [13:00:31]Sock 9.Check first char [13:00:31]Sock 9.First char is OK [13:00:31]request: POST /json_proto HTTP/1.0 [13:00:31]Method: POST [13:00:31]URL: /json_proto [13:00:31]Method is POST - this is cgi request [13:00:31]url: /json_proto [13:00:31]query_string will be loaded in cgi processing [13:00:31]execute_cgi json_proto POST (null) [13:00:31]execute_cgi path=json_proto method=POST [13:00:31]POST find Content-Length [13:00:31]Host: 172.17.63.195:8080 [13:00:31]Content-Length: 674 [13:00:31]Content-Type: application/json [13:00:31] [13:00:31]POST finish read [13:00:31]Found Content-Length = 674 [13:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:31]execute_script... [13:00:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:31]POST & json_proto [13:00:31]process_json_proto [13:00:31]json parsed OK: [13:00:31]protocol is kg_v1.0 [13:00:31]action value=close_receipt [13:00:31]process_action close_receipt [13:00:31]cmd_close_receipt [13:00:31]MH_GetDate [13:00:31]Write to MH i2c: F0 00 00 A6 12 A7 [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: F0 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: F0 09 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: F0 09 00 A6 12 00 70 39 1E 67 47 1B 1E 67 C5 [13:00:31]GetLastDocTimeStamp 1730034004 [13:00:31]current date 1730034032 [13:00:31]FM_GetShiftState [13:00:31]SAM_PROTO_GetShiftState [13:00:31]wFMCommunicate request_size=4 [13:00:31]MH_SAM_APDU [13:00:31]CAPDU: 80 13 01 00 [13:00:31]Write to MH i2c: E2 08 00 A7 12 80 13 01 00 00 00 00 00 36 [13:00:31]Write i2c OK [13:00:31]MH_I2C_Read... [13:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:31]Read from MH i2c: E2 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 0E 00 [13:00:31]MH_I2C_Read... [13:00:31]Read from MH i2c: E2 0E 00 A7 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 38 [13:00:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:00:31]wFMCommunicate OK [13:00:31]SAM_PROTO_GetShiftState done [13:00:31]FM_GetShiftState done [13:00:31]opened in 1729987312 [13:00:31]opened+sec_in_day 1730073712 [13:00:31]quantity*price = 50063 [13:00:31]sum+1 = 50064 [13:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 238 27.10.2024 13:00 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201946 ФПД: 69798172220571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130032&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201946&fm=69798172220571&tin=02508201610067®Number=0000000000091777&sum=50000 [13:00:33]StoreToDocumentArchive [13:00:33]shift 544 fd 201946 [13:00:33]save to /storage/0544/doc_00201946 [13:00:33]save last doc name /storage/0544/doc_00201946 to /storage/kkm_last_doc_name [13:00:33]save OK [13:00:33]Clear old archive folders... [13:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:00:33]tlvbuf is 01199E80 [13:00:33]SAM_PROTO_ClearQueue [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 09 00 00 [13:00:33]Write to MH i2c: E2 08 00 B4 12 80 09 00 00 00 00 00 00 38 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 B4 12 00 90 00 3A [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]SAM_PROTO_ClearQueue done [13:00:33]KKMCreateOFDPacket [13:00:33]OFDProtocolAddRootSTLVToBuf [13:00:33]FM_MakeSignedData [13:00:33]FM_MakeSignedData [13:00:33]SAM_PROTO_SignData [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 0D 01 02 [13:00:33]Write to MH i2c: E2 08 00 B5 12 80 0D 01 02 00 00 00 00 40 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 B5 12 00 90 00 3B [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]wFMCommunicate request_size=255 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 70 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 14 03 00 35 04 06 00 3F 7B 27 42 [13:00:33]Write to MH i2c: E2 02 01 B6 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 70 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 14 03 00 35 04 06 00 3F 7B 27 42 00 00 A4 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 B6 12 00 90 00 3C [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]wFMCommunicate request_size=7 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 0D 02 02 02 DC 9B [13:00:33]Write to MH i2c: E2 0A 00 B7 12 80 0D 02 02 02 00 DC 9B 00 00 BE [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 B7 12 00 90 00 3D [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 0D 03 02 [13:00:33]Write to MH i2c: E2 08 00 B8 12 80 0D 03 02 00 00 00 00 45 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 0B 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 0B 00 B8 12 00 6F 45 C3 0D AA FE DE 91 90 00 E1 [13:00:33]RAPDU: 6F 45 C3 0D AA FE DE 91 90 00 [13:00:33]wFMCommunicate OK [13:00:33]SAM_PROTO_SignData done [13:00:33]FM_MakeSignedData done [13:00:33]CreateOFDProtocolMessage [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 11 00 00 [13:00:33]Write to MH i2c: E2 08 00 B9 12 80 11 00 00 00 00 00 00 45 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 17 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 17 00 B9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [13:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:00:33]wFMCommunicate OK [13:00:33]CreateOFDProtocolMessage done [13:00:33]OFDSenderStorePacket 201946 [13:00:33]StoreOFDPacket docnum=201946 [13:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 42 AF 04 01 C5 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 70 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 14 03 00 35 04 06 00 3F 7B 27 42 DC 9B 6F 45 C3 0D AA FE DE 91 [13:00:33]CheckFolder [13:00:33]dirname=/storage/ofd_packets [13:00:33]CheckFolder done [13:00:33]ProducePacketName [13:00:33]name=ofd_packets/00201946 [13:00:33]NVStorageSaveData ofd_packets/00201946 [13:00:33]File name is /storage/ofd_packets/00201946 [13:00:33]Write 298 bytes [13:00:33]NVStorageSaveData done [13:00:33]OFDSenderStorePacket done [13:00:33]KKMCreateOFDPacket done [13:00:33]NVStorageSaveData kkm_last_timestamp [13:00:33]File name is /storage/kkm_last_timestamp [13:00:33]Write 4 bytes [13:00:33]NVStorageSaveData done [13:00:33]ExternCall_PrintAddStr [13:00:33]wPrintStart [13:00:33]Write to MH i2c: 01 00 00 BA 12 CC [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: 01 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: 01 07 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: 01 07 00 BA 12 00 00 00 00 00 FF 0F E1 [13:00:33]RasterBufferAndPrint [13:00:33]line Счет N : (1)449707 [13:00:33]line ИНН: 02508201610067 [13:00:33]line Контрольно-Кассовый Чек [13:00:33]line ПРОДАЖА [13:00:33]line ТРК (МРК, ГНК) : 43 [13:00:33]line Товар: 2710194210 [13:00:33]line ДТ-К-2 [13:00:33]line 6.570 * 76.20 [13:00:33]line = 500.63 [13:00:33]line НДС 12% НСП 1% [13:00:33]line > о реализуемом товаре [13:00:33]line ОКРУГЛЕНИЕ: -0.63 [13:00:33]line ИТОГО: 500.00 [13:00:33]line Внесено: 500.00 [13:00:33]line СДАЧА: 0.00 [13:00:33]line НСП 1% : 4.43 [13:00:33]line НДС 12% : 53.16 [13:00:33]line Наличными: 500.00 [13:00:33]line Безнал.: 0.00 [13:00:33]line Место: АЗС № 171 "Партнер Нефть" [13:00:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:00:33]line СНО: Общий режим [13:00:33]line Чек 238 27.10.2024 13:00 [13:00:33]line Смена: 544 ФФД: 1.0 [13:00:33]line ЗНМ: 0300000109 [13:00:33]line РНМ: 0000000000091777 [13:00:33]line Версия ККМ: 001 [13:00:33]line ФМ: 0000000000871756 [13:00:33]line ФД: 201946 [13:00:33]line ФПД: 69798172220571 [13:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130032&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201946&fm=69798172220571&tin=02508201610067®Number=0000000000091777&sum=50000 [13:00:33]OFD Sender: Processing packet 201946 [packets to send 112, broken 111] [13:00:33]ProducePacketName [13:00:33]name=ofd_packets/00201946 [13:00:33]OFD Sender: To server: pG, [13:00:33]CommunicateWithHost lk.salyk.kg:30040 [13:00:33]ConnectInit lk.salyk.kg [13:00:33]written 0, free lines is 4095 [13:00:34]Connected sock=10 [13:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 42 AF 04 01 C5 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 70 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 14 03 00 35 04 06 00 3F 7B 27 42 DC 9B 6F 45 C3 0D AA FE DE 91 [13:00:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C 8E 47 00 41 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 14 03 00 F4 03 04 00 2A E5 1D 67 B6 04 01 00 00 6B 81 A5 34 89 DD 5C 57 [13:00:34]CommunicateWithHost err = 0 [13:00:34]CheckOFDResponse [13:00:34]1017 (14) - 77093643461234 [13:00:34]1041 (16) - 0000000000871756 [13:00:34]1040 (4) - 201946 [13:00:34]1012 (4) - 27.10.2024 07:00 [13:00:34]1206 (1) - 0 [13:00:34]OFD Sender: Remove packet 201946 [13:00:34]ProducePacketName [13:00:34]name=ofd_packets/00201946 [13:00:34]NVStorageDeleteData [13:00:34]Write to MH i2c: 01 00 00 E5 12 F7 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 E5 12 00 00 00 00 00 8A 0C 94 [13:00:34]RasterBufferAndPrint [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]written 0, free lines is 3213 [13:00:34]MH_Cut [13:00:34]Write to MH i2c: D1 01 00 EC 12 01 D0 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 01 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 01 00 EC 12 00 CF [13:00:34]Write to MH i2c: 01 00 00 ED 12 FF [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]OFD Sender: No OFD packet to send [13:00:35]*** Cut start [13:00:35]*** Purtial cut [13:00:35]*** Stage 1: CUTSNS_PIN = 1 [13:00:35]Read from MH i2c: 01 [13:00:35]MH_I2C_Read... [13:00:35]*** Stop cut motor [13:00:35]*** Cut end [13:00:35]Read from MH i2c: 01 07 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: 01 07 00 ED 12 00 00 00 00 00 FF 0F 14 [13:00:35]process_action close_receipt done [13:00:35]requested_data is exist [13:00:35]produce_requested_data [13:00:35]requested_item fm.sn is exist - process it [13:00:35]wFMCommunicate request_size=4 [13:00:35]MH_SAM_APDU [13:00:35]CAPDU: 80 11 00 00 [13:00:35]Write to MH i2c: E2 08 00 EE 12 80 11 00 00 00 00 00 00 7A [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:35]Read from MH i2c: E2 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 17 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 17 00 EE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CF [13:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:00:35]wFMCommunicate OK [13:00:35]requested_item fd.num is exist - process it [13:00:35]SAM_PROTO_GetFieldsCounters [13:00:35]wFMCommunicate request_size=4 [13:00:35]MH_SAM_APDU [13:00:35]CAPDU: 80 13 00 00 [13:00:35]Write to MH i2c: E2 08 00 EF 12 80 13 00 00 00 00 00 00 7D [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:35]Read from MH i2c: E2 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 62 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 62 00 EF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [13:00:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:35]wFMCommunicate OK [13:00:35]SAM_PROTO_GetFieldsCounters done [13:00:35]requested_item shift.num is exist - process it [13:00:35]requested_item shift.opened is exist - process it [13:00:35]req_shift_opened [13:00:35]FM_GetShiftState [13:00:35]SAM_PROTO_GetShiftState [13:00:35]wFMCommunicate request_size=4 [13:00:35]MH_SAM_APDU [13:00:35]CAPDU: 80 13 01 00 [13:00:35]Write to MH i2c: E2 08 00 F0 12 80 13 01 00 00 00 00 00 7F [13:00:35]Write i2c OK [13:00:35]MH_I2C_Read... [13:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:35]Read from MH i2c: E2 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 0E 00 [13:00:35]MH_I2C_Read... [13:00:35]Read from MH i2c: E2 0E 00 F0 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 81 [13:00:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:00:35]wFMCommunicate OK [13:00:35]SAM_PROTO_GetShiftState done [13:00:35]FM_GetShiftState done [13:00:35]req_shift_opened done [13:00:35]requested_item shift.open_date is exist - process it [13:00:35]req_shift_open_date [13:00:35]req_shift_open_date done [13:00:35]produce_requested_data done [13:00:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201946,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:00:35]process_action_free close_receipt [13:00:35]json_value_free [13:00:35]json_value_free done [13:00:35]process_json_proto returns [13:00:35]Send response to host [13:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201946,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:00:35]free response buf [13:00:35]execute_script done [13:00:35]execute_script returns [13:00:35]free content buf [13:00:35]Sock 9.Close socket [13:00:35]Sock 9.Thread stoped [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:31]accept exits with 8 [13:01:31]New connection [13:01:31]New thread 3066641764 created [13:01:31]Thread 3066498404 joined [13:01:31]Waiting for new connection... [13:01:31] Sock 8.Parse request [13:01:31]Sock 8.Check first char [13:01:31]Sock 8.First char is OK [13:01:31]request: POST /json_proto HTTP/1.0 [13:01:31]Method: POST [13:01:31]URL: /json_proto [13:01:31]Method is POST - this is cgi request [13:01:31]url: /json_proto [13:01:31]query_string will be loaded in cgi processing [13:01:31]execute_cgi json_proto POST (null) [13:01:31]execute_cgi path=json_proto method=POST [13:01:31]POST find Content-Length [13:01:31]Host: 172.17.63.195:8080 [13:01:31]Content-Length: 677 [13:01:31]Content-Type: application/json [13:01:31] [13:01:31]POST finish read [13:01:31]Found Content-Length = 677 [13:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:31]execute_script... [13:01:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:31]POST & json_proto [13:01:31]process_json_proto [13:01:31]json parsed OK: [13:01:31]protocol is kg_v1.0 [13:01:31]action value=close_receipt [13:01:31]process_action close_receipt [13:01:31]cmd_close_receipt [13:01:31]MH_GetDate [13:01:31]Write to MH i2c: F0 00 00 F1 12 F2 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: F0 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: F0 09 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: F0 09 00 F1 12 00 AB 39 1E 67 47 1B 1E 67 4B [13:01:31]GetLastDocTimeStamp 1730034032 [13:01:31]current date 1730034091 [13:01:31]FM_GetShiftState [13:01:31]SAM_PROTO_GetShiftState [13:01:31]wFMCommunicate request_size=4 [13:01:31]MH_SAM_APDU [13:01:31]CAPDU: 80 13 01 00 [13:01:31]Write to MH i2c: E2 08 00 F2 12 80 13 01 00 00 00 00 00 81 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:31]Read from MH i2c: E2 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: E2 0E 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: E2 0E 00 F2 12 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 83 [13:01:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:01:31]wFMCommunicate OK [13:01:31]SAM_PROTO_GetShiftState done [13:01:31]FM_GetShiftState done [13:01:31]opened in 1729987312 [13:01:31]opened+sec_in_day 1730073712 [13:01:31]quantity*price = 30038 [13:01:31]sum+1 = 30039 [13:01:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 239 27.10.2024 13:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201947 ФПД: 151952318012650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130131&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201947&fm=151952318012650&tin=02508201610067®Number=0000000000091777&sum=30000 [13:01:32]StoreToDocumentArchive [13:01:32]shift 544 fd 201947 [13:01:32]save to /storage/0544/doc_00201947 [13:01:32]save last doc name /storage/0544/doc_00201947 to /storage/kkm_last_doc_name [13:01:32]save OK [13:01:32]Clear old archive folders... [13:01:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:32]tlvbuf is B6F0CDA0 [13:01:32]SAM_PROTO_ClearQueue [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 09 00 00 [13:01:32]Write to MH i2c: E2 08 00 FF 12 80 09 00 00 00 00 00 00 83 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 FF 12 00 90 00 85 [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]SAM_PROTO_ClearQueue done [13:01:32]KKMCreateOFDPacket [13:01:32]OFDProtocolAddRootSTLVToBuf [13:01:32]FM_MakeSignedData [13:01:32]FM_MakeSignedData [13:01:32]SAM_PROTO_SignData [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 01 02 [13:01:32]Write to MH i2c: E2 08 00 00 13 80 0D 01 02 00 00 00 00 8C [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 00 13 00 90 00 87 [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]wFMCommunicate request_size=255 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 AB 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 14 03 00 35 04 06 00 8A [13:01:32]Write to MH i2c: E2 02 01 01 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 AB 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 14 03 00 35 04 06 00 8A 00 00 0A [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 01 13 00 90 00 88 [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]wFMCommunicate request_size=10 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 02 02 05 33 27 F0 1C EA [13:01:32]Write to MH i2c: E2 0D 00 02 13 80 0D 02 02 05 00 33 27 F0 1C EA 00 00 E9 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 02 13 00 90 00 89 [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 03 02 [13:01:32]Write to MH i2c: E2 08 00 03 13 80 0D 03 02 00 00 00 00 91 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 0B 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 0B 00 03 13 00 E2 30 25 89 43 A8 84 35 90 00 F6 [13:01:32]RAPDU: E2 30 25 89 43 A8 84 35 90 00 [13:01:32]wFMCommunicate OK [13:01:32]SAM_PROTO_SignData done [13:01:32]FM_MakeSignedData done [13:01:32]CreateOFDProtocolMessage [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 11 00 00 [13:01:32]Write to MH i2c: E2 08 00 04 13 80 11 00 00 00 00 00 00 91 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 17 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 17 00 04 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E6 [13:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:01:32]wFMCommunicate OK [13:01:32]CreateOFDProtocolMessage done [13:01:32]OFDSenderStorePacket 201947 [13:01:32]StoreOFDPacket docnum=201947 [13:01:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2F 43 07 01 78 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 AB 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 14 03 00 35 04 06 00 8A 33 27 F0 1C EA E2 30 25 89 43 A8 84 35 [13:01:32]CheckFolder [13:01:32]dirname=/storage/ofd_packets [13:01:32]CheckFolder done [13:01:32]ProducePacketName [13:01:32]name=ofd_packets/00201947 [13:01:32]NVStorageSaveData ofd_packets/00201947 [13:01:32]File name is /storage/ofd_packets/00201947 [13:01:32]Write 301 bytes [13:01:32]NVStorageSaveData done [13:01:32]OFDSenderStorePacket done [13:01:32]KKMCreateOFDPacket done [13:01:32]NVStorageSaveData kkm_last_timestamp [13:01:32]File name is /storage/kkm_last_timestamp [13:01:32]Write 4 bytes [13:01:32]NVStorageSaveData done [13:01:32]ExternCall_PrintAddStr [13:01:32]wPrintStart [13:01:32]Write to MH i2c: 01 00 00 05 13 18 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 05 13 00 00 00 00 00 FF 0F 2D [13:01:32]RasterBufferAndPrint [13:01:32]line Счет N : (1)449708 [13:01:32]line ИНН: 02508201610067 [13:01:32]line Контрольно-Кассовый Чек [13:01:32]line ПРОДАЖА [13:01:32]line ТРК (МРК, ГНК) : 31 [13:01:32]line Товар: 2710124130 [13:01:32]line Аи-92-К-2 [13:01:32]line 4.490 * 66.90 [13:01:32]line = 300.38 [13:01:32]line НДС 12% НСП 1% [13:01:32]line > о реализуемом товаре [13:01:32]line ОКРУГЛЕНИЕ: -0.38 [13:01:32]line ИТОГО: 300.00 [13:01:32]line Внесено: 300.00 [13:01:32]line СДАЧА: 0.00 [13:01:32]line НСП 1% : 2.66 [13:01:32]line НДС 12% : 31.90 [13:01:32]line Наличными: 300.00 [13:01:32]line Безнал.: 0.00 [13:01:32]line Место: АЗС № 171 "Партнер Нефть" [13:01:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:01:32]line СНО: Общий режим [13:01:32]line Чек 239 27.10.2024 13:01 [13:01:32]line Смена: 544 ФФД: 1.0 [13:01:32]line ЗНМ: 0300000109 [13:01:32]line РНМ: 0000000000091777 [13:01:32]line Версия ККМ: 001 [13:01:32]line ФМ: 0000000000871756 [13:01:32]line ФД: 201947 [13:01:32]line ФПД: 151952318012650 [13:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130131&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201947&fm=151952318012650&tin=02508201610067®Number=0000000000091777&sum=30000 [13:01:33]OFD Sender: Processing packet 201947 [packets to send 112, broken 111] [13:01:33]ProducePacketName [13:01:33]name=ofd_packets/00201947 [13:01:33]OFD Sender: To server: pG, [13:01:33]CommunicateWithHost lk.salyk.kg:30040 [13:01:33]ConnectInit lk.salyk.kg [13:01:33]written 0, free lines is 4095 [13:01:33]Connected sock=10 [13:01:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2F 43 07 01 78 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 AB 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 14 03 00 35 04 06 00 8A 33 27 F0 1C EA E2 30 25 89 43 A8 84 35 [13:01:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F9 BB 47 00 66 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 14 03 00 F4 03 04 00 65 E5 1D 67 B6 04 01 00 00 70 4F C1 5D CC 48 CF 84 [13:01:33]CommunicateWithHost err = 0 [13:01:33]CheckOFDResponse [13:01:33]1017 (14) - 77093643461234 [13:01:33]1041 (16) - 0000000000871756 [13:01:33]1040 (4) - 201947 [13:01:33]1012 (4) - 27.10.2024 07:01 [13:01:33]1206 (1) - 0 [13:01:33]OFD Sender: Remove packet 201947 [13:01:33]ProducePacketName [13:01:33]name=ofd_packets/00201947 [13:01:33]NVStorageDeleteData [13:01:33]Write to MH i2c: 01 00 00 30 13 43 [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 07 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 07 00 30 13 00 00 00 00 00 8C 0C E2 [13:01:33]RasterBufferAndPrint [13:01:33]line [13:01:33]line [13:01:33]line [13:01:33]line [13:01:33]line [13:01:33]written 0, free lines is 3215 [13:01:33]MH_Cut [13:01:33]Write to MH i2c: D1 01 00 37 13 01 1C [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: D1 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: D1 01 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: D1 01 00 37 13 00 1B [13:01:33]Write to MH i2c: 01 00 00 38 13 4B [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:34]OFD Sender: No OFD packet to send [13:01:34]*** Cut start [13:01:34]*** Purtial cut [13:01:34]*** Stage 1: CUTSNS_PIN = 1 [13:01:34]Read from MH i2c: 01 [13:01:34]MH_I2C_Read... [13:01:34]*** Stop cut motor [13:01:34]*** Cut end [13:01:34]Read from MH i2c: 01 07 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: 01 07 00 38 13 00 00 00 00 00 FF 0F 60 [13:01:34]process_action close_receipt done [13:01:34]requested_data is exist [13:01:34]produce_requested_data [13:01:34]requested_item fm.sn is exist - process it [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 11 00 00 [13:01:34]Write to MH i2c: E2 08 00 39 13 80 11 00 00 00 00 00 00 C6 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 17 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 17 00 39 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [13:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:01:34]wFMCommunicate OK [13:01:34]requested_item fd.num is exist - process it [13:01:34]SAM_PROTO_GetFieldsCounters [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 13 00 00 [13:01:34]Write to MH i2c: E2 08 00 3A 13 80 13 00 00 00 00 00 00 C9 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:34]Read from MH i2c: E2 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 62 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: E2 62 00 3A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [13:01:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:35]wFMCommunicate OK [13:01:35]SAM_PROTO_GetFieldsCounters done [13:01:35]requested_item shift.num is exist - process it [13:01:35]requested_item shift.opened is exist - process it [13:01:35]req_shift_opened [13:01:35]FM_GetShiftState [13:01:35]SAM_PROTO_GetShiftState [13:01:35]wFMCommunicate request_size=4 [13:01:35]MH_SAM_APDU [13:01:35]CAPDU: 80 13 01 00 [13:01:35]Write to MH i2c: E2 08 00 3B 13 80 13 01 00 00 00 00 00 CB [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:35]Read from MH i2c: E2 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 0E 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 0E 00 3B 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CD [13:01:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:01:35]wFMCommunicate OK [13:01:35]SAM_PROTO_GetShiftState done [13:01:35]FM_GetShiftState done [13:01:35]req_shift_opened done [13:01:35]requested_item shift.open_date is exist - process it [13:01:35]req_shift_open_date [13:01:35]req_shift_open_date done [13:01:35]produce_requested_data done [13:01:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201947,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:01:35]process_action_free close_receipt [13:01:35]json_value_free [13:01:35]json_value_free done [13:01:35]process_json_proto returns [13:01:35]Send response to host [13:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201947,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:01:35]free response buf [13:01:35]execute_script done [13:01:35]execute_script returns [13:01:35]free content buf [13:01:35]Sock 8.Close socket [13:01:35]Sock 8.Thread stoped [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:21]accept exits with 9 [13:02:21]New connection [13:02:21]New thread 3066498404 created [13:02:21]Thread 3066641764 joined [13:02:21]Waiting for new connection... [13:02:21] Sock 9.Parse request [13:02:21]Sock 9.Check first char [13:02:21]Sock 9.First char is OK [13:02:21]request: POST /json_proto HTTP/1.0 [13:02:21]Method: POST [13:02:21]URL: /json_proto [13:02:21]Method is POST - this is cgi request [13:02:21]url: /json_proto [13:02:21]query_string will be loaded in cgi processing [13:02:21]execute_cgi json_proto POST (null) [13:02:21]execute_cgi path=json_proto method=POST [13:02:21]POST find Content-Length [13:02:21]Host: 172.17.63.195:8080 [13:02:21]Content-Length: 766 [13:02:21]Content-Type: application/json [13:02:21] [13:02:21]POST finish read [13:02:21]Found Content-Length = 766 [13:02:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:21]execute_script... [13:02: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)449709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:21]POST & json_proto [13:02:21]process_json_proto [13:02:21]json parsed OK: [13:02:21]protocol is kg_v1.0 [13:02:21]action value=close_receipt [13:02:21]process_action close_receipt [13:02:21]cmd_close_receipt [13:02:21]MH_GetDate [13:02:21]Write to MH i2c: F0 00 00 3C 13 3E [13:02:21]Write i2c OK [13:02:21]MH_I2C_Read... [13:02:21]Read from MH i2c: F0 [13:02:21]MH_I2C_Read... [13:02:21]Read from MH i2c: F0 09 00 [13:02:21]MH_I2C_Read... [13:02:21]Read from MH i2c: F0 09 00 3C 13 00 DD 39 1E 67 47 1B 1E 67 C9 [13:02:21]GetLastDocTimeStamp 1730034091 [13:02:21]current date 1730034141 [13:02:21]FM_GetShiftState [13:02:21]SAM_PROTO_GetShiftState [13:02:21]wFMCommunicate request_size=4 [13:02:21]MH_SAM_APDU [13:02:21]CAPDU: 80 13 01 00 [13:02:21]Write to MH i2c: E2 08 00 3D 13 80 13 01 00 00 00 00 00 CD [13:02:21]Write i2c OK [13:02:21]MH_I2C_Read... [13:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:21]Read from MH i2c: E2 [13:02:21]MH_I2C_Read... [13:02:21]Read from MH i2c: E2 0E 00 [13:02:21]MH_I2C_Read... [13:02:21]Read from MH i2c: E2 0E 00 3D 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CF [13:02:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:02:21]wFMCommunicate OK [13:02:21]SAM_PROTO_GetShiftState done [13:02:21]FM_GetShiftState done [13:02:21]opened in 1729987312 [13:02:21]opened+sec_in_day 1730073712 [13:02:21]quantity*price = 20003 [13:02:21]sum+1 = 20004 [13:02:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 240 27.10.2024 13:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201948 ФПД: 203543809290039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130221&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201948&fm=203543809290039&tin=02508201610067®Number=0000000000091777&sum=20003 [13:02:22]StoreToDocumentArchive [13:02:22]shift 544 fd 201948 [13:02:22]save to /storage/0544/doc_00201948 [13:02:22]save last doc name /storage/0544/doc_00201948 to /storage/kkm_last_doc_name [13:02:22]save OK [13:02:22]Clear old archive folders... [13:02:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:22]tlvbuf is 01193E10 [13:02:22]SAM_PROTO_ClearQueue [13:02:22]wFMCommunicate request_size=4 [13:02:22]MH_SAM_APDU [13:02:22]CAPDU: 80 09 00 00 [13:02:22]Write to MH i2c: E2 08 00 4A 13 80 09 00 00 00 00 00 00 CF [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:22]Read from MH i2c: E2 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 03 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 03 00 4A 13 00 90 00 D1 [13:02:22]RAPDU: 90 00 [13:02:22]wFMCommunicate OK [13:02:22]SAM_PROTO_ClearQueue done [13:02:22]KKMCreateOFDPacket [13:02:22]OFDProtocolAddRootSTLVToBuf [13:02:22]FM_MakeSignedData [13:02:22]FM_MakeSignedData [13:02:22]SAM_PROTO_SignData [13:02:22]wFMCommunicate request_size=4 [13:02:22]MH_SAM_APDU [13:02:22]CAPDU: 80 0D 01 02 [13:02:22]Write to MH i2c: E2 08 00 4B 13 80 0D 01 02 00 00 00 00 D7 [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:22]Read from MH i2c: E2 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 03 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 03 00 4B 13 00 90 00 D2 [13:02:22]RAPDU: 90 00 [13:02:22]wFMCommunicate OK [13:02:22]wFMCommunicate request_size=255 [13:02:22]MH_SAM_APDU [13:02:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 DD 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 14 03 00 35 04 06 00 B9 [13:02:22]Write to MH i2c: E2 02 01 4C 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 DD 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 14 03 00 35 04 06 00 B9 00 00 8C [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:22]Read from MH i2c: E2 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 03 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 03 00 4C 13 00 90 00 D3 [13:02:22]RAPDU: 90 00 [13:02:22]wFMCommunicate OK [13:02:22]wFMCommunicate request_size=10 [13:02:22]MH_SAM_APDU [13:02:22]CAPDU: 80 0D 02 02 05 1F 3C 72 EF 37 [13:02:22]Write to MH i2c: E2 0D 00 4D 13 80 0D 02 02 05 00 1F 3C 72 EF 37 00 00 D7 [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:22]Read from MH i2c: E2 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 03 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 03 00 4D 13 00 90 00 D4 [13:02:22]RAPDU: 90 00 [13:02:22]wFMCommunicate OK [13:02:22]wFMCommunicate request_size=4 [13:02:22]MH_SAM_APDU [13:02:22]CAPDU: 80 0D 03 02 [13:02:22]Write to MH i2c: E2 08 00 4E 13 80 0D 03 02 00 00 00 00 DC [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:22]Read from MH i2c: E2 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 0B 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 0B 00 4E 13 00 00 39 5C 28 C3 80 3E EB 90 00 06 [13:02:22]RAPDU: 00 39 5C 28 C3 80 3E EB 90 00 [13:02:22]wFMCommunicate OK [13:02:22]SAM_PROTO_SignData done [13:02:22]FM_MakeSignedData done [13:02:22]CreateOFDProtocolMessage [13:02:22]wFMCommunicate request_size=4 [13:02:22]MH_SAM_APDU [13:02:22]CAPDU: 80 11 00 00 [13:02:22]Write to MH i2c: E2 08 00 4F 13 80 11 00 00 00 00 00 00 DC [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:22]Read from MH i2c: E2 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 17 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 17 00 4F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [13:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:02:22]wFMCommunicate OK [13:02:22]CreateOFDProtocolMessage done [13:02:22]OFDSenderStorePacket 201948 [13:02:22]StoreOFDPacket docnum=201948 [13:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B2 22 07 01 4E FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 DD 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 14 03 00 35 04 06 00 B9 1F 3C 72 EF 37 00 39 5C 28 C3 80 3E EB [13:02:22]CheckFolder [13:02:22]dirname=/storage/ofd_packets [13:02:22]CheckFolder done [13:02:22]ProducePacketName [13:02:22]name=ofd_packets/00201948 [13:02:22]NVStorageSaveData ofd_packets/00201948 [13:02:22]File name is /storage/ofd_packets/00201948 [13:02:22]Write 301 bytes [13:02:22]NVStorageSaveData done [13:02:22]OFDSenderStorePacket done [13:02:22]KKMCreateOFDPacket done [13:02:22]NVStorageSaveData kkm_last_timestamp [13:02:22]File name is /storage/kkm_last_timestamp [13:02:22]Write 4 bytes [13:02:22]NVStorageSaveData done [13:02:22]ExternCall_PrintAddStr [13:02:22]wPrintStart [13:02:22]Write to MH i2c: 01 00 00 50 13 63 [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: 01 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: 01 07 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: 01 07 00 50 13 00 00 00 00 00 FF 0F 78 [13:02:22]RasterBufferAndPrint [13:02:22]line Счет N : (1)449709 [13:02:22]line ИНН: 02508201610067 [13:02:22]line Контрольно-Кассовый Чек [13:02:22]line ПРОДАЖА [13:02:22]line ТРК (МРК, ГНК) : 31 [13:02:22]line Товар: 2710124130 [13:02:22]line Аи-92-К-2 [13:02:22]line 2.990 * 66.90 [13:02:22]line = 200.03 [13:02:22]line НДС 12% НСП 1% [13:02:22]line > о реализуемом товаре [13:02:22]line ИТОГО: 200.03 [13:02:22]line НСП 1% : 1.77 [13:02:22]line НДС 12% : 21.24 [13:02:22]line Наличными: 0.00 [13:02:22]line Безнал.: 200.03 [13:02:22]line Место: АЗС № 171 "Партнер Нефть" [13:02:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:02:22]line СНО: Общий режим [13:02:22]line Чек 240 27.10.2024 13:02 [13:02:22]line Смена: 544 ФФД: 1.0 [13:02:22]line ЗНМ: 0300000109 [13:02:22]line РНМ: 0000000000091777 [13:02:22]line Версия ККМ: 001 [13:02:22]line Платежная система: Mbank [13:02:22]line ФМ: 0000000000871756 [13:02:22]line ФД: 201948 [13:02:22]line ФПД: 203543809290039 [13:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130221&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201948&fm=203543809290039&tin=02508201610067®Number=0000000000091777&sum=20003 [13:02:23]written 0, free lines is 4095 [13:02:23]OFD Sender: Processing packet 201948 [packets to send 112, broken 111] [13:02:23]ProducePacketName [13:02:23]name=ofd_packets/00201948 [13:02:23]OFD Sender: To server: pG, [13:02:23]CommunicateWithHost lk.salyk.kg:30040 [13:02:23]ConnectInit lk.salyk.kg [13:02:23]Connected sock=10 [13:02:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B2 22 07 01 4E FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 DD 39 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 14 03 00 35 04 06 00 B9 1F 3C 72 EF 37 00 39 5C 28 C3 80 3E EB [13:02:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E0 FD 47 00 B7 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 14 03 00 F4 03 04 00 97 E5 1D 67 B6 04 01 00 00 18 14 33 C2 BD 3F 9A D0 [13:02:23]CommunicateWithHost err = 0 [13:02:23]CheckOFDResponse [13:02:23]1017 (14) - 77093643461234 [13:02:23]1041 (16) - 0000000000871756 [13:02:23]1040 (4) - 201948 [13:02:23]1012 (4) - 27.10.2024 07:02 [13:02:23]1206 (1) - 0 [13:02:23]OFD Sender: Remove packet 201948 [13:02:23]ProducePacketName [13:02:23]name=ofd_packets/00201948 [13:02:23]NVStorageDeleteData [13:02:23]Write to MH i2c: 01 00 00 79 13 8C [13:02:23]Write i2c OK [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: 01 [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: 01 07 00 [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: 01 07 00 79 13 00 00 00 00 00 B6 0C 55 [13:02:23]RasterBufferAndPrint [13:02:23]line [13:02:23]line [13:02:23]line [13:02:23]line [13:02:23]line [13:02:23]written 0, free lines is 3258 [13:02:23]MH_Cut [13:02:23]Write to MH i2c: D1 01 00 80 13 01 65 [13:02:23]Write i2c OK [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: D1 [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: D1 01 00 [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: D1 01 00 80 13 00 64 [13:02:23]Write to MH i2c: 01 00 00 81 13 94 [13:02:23]Write i2c OK [13:02:23]MH_I2C_Read... [13:02:23]OFD Sender: No OFD packet to send [13:02:24]*** Cut start [13:02:24]*** Purtial cut [13:02:24]*** Stage 1: CUTSNS_PIN = 1 [13:02:24]Read from MH i2c: 01 [13:02:24]MH_I2C_Read... [13:02:24]*** Stop cut motor [13:02:24]*** Cut end [13:02:24]Read from MH i2c: 01 07 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [13:02:24]process_action close_receipt done [13:02:24]requested_data is exist [13:02:24]produce_requested_data [13:02:24]requested_item fm.sn is exist - process it [13:02:24]wFMCommunicate request_size=4 [13:02:24]MH_SAM_APDU [13:02:24]CAPDU: 80 11 00 00 [13:02:24]Write to MH i2c: E2 08 00 82 13 80 11 00 00 00 00 00 00 0F [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:24]Read from MH i2c: E2 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 17 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 17 00 82 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 64 [13:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:02:24]wFMCommunicate OK [13:02:24]requested_item fd.num is exist - process it [13:02:24]SAM_PROTO_GetFieldsCounters [13:02:24]wFMCommunicate request_size=4 [13:02:24]MH_SAM_APDU [13:02:24]CAPDU: 80 13 00 00 [13:02:24]Write to MH i2c: E2 08 00 83 13 80 13 00 00 00 00 00 00 12 [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:24]Read from MH i2c: E2 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 62 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 62 00 83 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [13:02:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:24]wFMCommunicate OK [13:02:24]SAM_PROTO_GetFieldsCounters done [13:02:24]requested_item shift.num is exist - process it [13:02:24]requested_item shift.opened is exist - process it [13:02:24]req_shift_opened [13:02:24]FM_GetShiftState [13:02:24]SAM_PROTO_GetShiftState [13:02:24]wFMCommunicate request_size=4 [13:02:24]MH_SAM_APDU [13:02:24]CAPDU: 80 13 01 00 [13:02:24]Write to MH i2c: E2 08 00 84 13 80 13 01 00 00 00 00 00 14 [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:24]Read from MH i2c: E2 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 0E 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 0E 00 84 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 16 [13:02:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:02:24]wFMCommunicate OK [13:02:24]SAM_PROTO_GetShiftState done [13:02:24]FM_GetShiftState done [13:02:24]req_shift_opened done [13:02:24]requested_item shift.open_date is exist - process it [13:02:24]req_shift_open_date [13:02:24]req_shift_open_date done [13:02:24]produce_requested_data done [13:02:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201948,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:02:24]process_action_free close_receipt [13:02:24]json_value_free [13:02:24]json_value_free done [13:02:24]process_json_proto returns [13:02:24]Send response to host [13:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201948,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:02:24]free response buf [13:02:24]execute_script done [13:02:24]execute_script returns [13:02:24]free content buf [13:02:24]Sock 9.Close socket [13:02:24]Sock 9.Thread stoped [13:02:28]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:01]accept exits with 8 [13:04:01]New connection [13:04:01]New thread 3066641764 created [13:04:01]Thread 3066498404 joined [13:04:01]Waiting for new connection... [13:04:01] Sock 8.Parse request [13:04:01]Sock 8.Check first char [13:04:01]Sock 8.First char is OK [13:04:01]request: POST /json_proto HTTP/1.0 [13:04:01]Method: POST [13:04:01]URL: /json_proto [13:04:01]Method is POST - this is cgi request [13:04:01]url: /json_proto [13:04:01]query_string will be loaded in cgi processing [13:04:01]execute_cgi json_proto POST (null) [13:04:01]execute_cgi path=json_proto method=POST [13:04:01]POST find Content-Length [13:04:01]Host: 172.17.63.195:8080 [13:04:01]Content-Length: 679 [13:04:01]Content-Type: application/json [13:04:01] [13:04:01]POST finish read [13:04:01]Found Content-Length = 679 [13:04:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:04:01]execute_script... [13:04:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:04:01]POST & json_proto [13:04:01]process_json_proto [13:04:01]json parsed OK: [13:04:01]protocol is kg_v1.0 [13:04:01]action value=close_receipt [13:04:01]process_action close_receipt [13:04:01]cmd_close_receipt [13:04:01]MH_GetDate [13:04:01]Write to MH i2c: F0 00 00 85 13 87 [13:04:01]Write i2c OK [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: F0 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: F0 09 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: F0 09 00 85 13 00 42 3A 1E 67 47 1B 1E 67 78 [13:04:01]GetLastDocTimeStamp 1730034141 [13:04:01]current date 1730034242 [13:04:01]FM_GetShiftState [13:04:01]SAM_PROTO_GetShiftState [13:04:01]wFMCommunicate request_size=4 [13:04:01]MH_SAM_APDU [13:04:01]CAPDU: 80 13 01 00 [13:04:01]Write to MH i2c: E2 08 00 86 13 80 13 01 00 00 00 00 00 16 [13:04:01]Write i2c OK [13:04:01]MH_I2C_Read... [13:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:01]Read from MH i2c: E2 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 0E 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 0E 00 86 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 18 [13:04:01]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:04:01]wFMCommunicate OK [13:04:01]SAM_PROTO_GetShiftState done [13:04:01]FM_GetShiftState done [13:04:01]opened in 1729987312 [13:04:01]opened+sec_in_day 1730073712 [13:04:01]quantity*price = 100050 [13:04:01]sum+1 = 100052 [13:04:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 241 27.10.2024 13:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201949 ФПД: 89698874560732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130402&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201949&fm=89698874560732&tin=02508201610067®Number=0000000000091777&sum=100000 [13:04:03]StoreToDocumentArchive [13:04:03]shift 544 fd 201949 [13:04:03]save to /storage/0544/doc_00201949 [13:04:03]save last doc name /storage/0544/doc_00201949 to /storage/kkm_last_doc_name [13:04:03]save OK [13:04:03]Clear old archive folders... [13:04:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:04:03]tlvbuf is B6E755C0 [13:04:03]SAM_PROTO_ClearQueue [13:04:03]wFMCommunicate request_size=4 [13:04:03]MH_SAM_APDU [13:04:03]CAPDU: 80 09 00 00 [13:04:03]Write to MH i2c: E2 08 00 93 13 80 09 00 00 00 00 00 00 18 [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:03]Read from MH i2c: E2 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 03 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 03 00 93 13 00 90 00 1A [13:04:03]RAPDU: 90 00 [13:04:03]wFMCommunicate OK [13:04:03]SAM_PROTO_ClearQueue done [13:04:03]KKMCreateOFDPacket [13:04:03]OFDProtocolAddRootSTLVToBuf [13:04:03]FM_MakeSignedData [13:04:03]FM_MakeSignedData [13:04:03]SAM_PROTO_SignData [13:04:03]wFMCommunicate request_size=4 [13:04:03]MH_SAM_APDU [13:04:03]CAPDU: 80 0D 01 02 [13:04:03]Write to MH i2c: E2 08 00 94 13 80 0D 01 02 00 00 00 00 20 [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:03]Read from MH i2c: E2 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 03 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 03 00 94 13 00 90 00 1B [13:04:03]RAPDU: 90 00 [13:04:03]wFMCommunicate OK [13:04:03]wFMCommunicate request_size=255 [13:04:03]MH_SAM_APDU [13:04:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 F1 00 00 00 F4 03 04 00 42 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 14 03 00 35 04 06 00 51 94 A5 8E [13:04:03]Write to MH i2c: E2 02 01 95 13 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 32 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 F1 00 00 00 F4 03 04 00 42 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 14 03 00 35 04 06 00 51 94 A5 8E 00 00 CA [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:03]Read from MH i2c: E2 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 03 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 03 00 95 13 00 90 00 1C [13:04:03]RAPDU: 90 00 [13:04:03]wFMCommunicate OK [13:04:03]wFMCommunicate request_size=7 [13:04:03]MH_SAM_APDU [13:04:03]CAPDU: 80 0D 02 02 02 10 DC [13:04:03]Write to MH i2c: E2 0A 00 96 13 80 0D 02 02 02 00 10 DC 00 00 13 [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:03]Read from MH i2c: E2 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 03 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [13:04:03]RAPDU: 90 00 [13:04:03]wFMCommunicate OK [13:04:03]wFMCommunicate request_size=4 [13:04:03]MH_SAM_APDU [13:04:03]CAPDU: 80 0D 03 02 [13:04:03]Write to MH i2c: E2 08 00 97 13 80 0D 03 02 00 00 00 00 25 [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:03]Read from MH i2c: E2 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 0B 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 0B 00 97 13 00 1F 7A 1F FF 4A 59 49 9E 90 00 67 [13:04:03]RAPDU: 1F 7A 1F FF 4A 59 49 9E 90 00 [13:04:03]wFMCommunicate OK [13:04:03]SAM_PROTO_SignData done [13:04:03]FM_MakeSignedData done [13:04:03]CreateOFDProtocolMessage [13:04:03]wFMCommunicate request_size=4 [13:04:03]MH_SAM_APDU [13:04:03]CAPDU: 80 11 00 00 [13:04:03]Write to MH i2c: E2 08 00 98 13 80 11 00 00 00 00 00 00 25 [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:03]Read from MH i2c: E2 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 17 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: E2 17 00 98 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7A [13:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:04:03]wFMCommunicate OK [13:04:03]CreateOFDProtocolMessage done [13:04:03]OFDSenderStorePacket 201949 [13:04:03]StoreOFDPacket docnum=201949 [13:04:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 65 8B 04 01 9D F2 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 32 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 F1 00 00 00 F4 03 04 00 42 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 14 03 00 35 04 06 00 51 94 A5 8E 10 DC 1F 7A 1F FF 4A 59 49 9E [13:04:03]CheckFolder [13:04:03]dirname=/storage/ofd_packets [13:04:03]CheckFolder done [13:04:03]ProducePacketName [13:04:03]name=ofd_packets/00201949 [13:04:03]NVStorageSaveData ofd_packets/00201949 [13:04:03]File name is /storage/ofd_packets/00201949 [13:04:03]Write 298 bytes [13:04:03]NVStorageSaveData done [13:04:03]OFDSenderStorePacket done [13:04:03]KKMCreateOFDPacket done [13:04:03]NVStorageSaveData kkm_last_timestamp [13:04:03]File name is /storage/kkm_last_timestamp [13:04:03]Write 4 bytes [13:04:03]NVStorageSaveData done [13:04:03]ExternCall_PrintAddStr [13:04:03]wPrintStart [13:04:03]Write to MH i2c: 01 00 00 99 13 AC [13:04:03]Write i2c OK [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: 01 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: 01 07 00 [13:04:03]MH_I2C_Read... [13:04:03]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 FF 0F C1 [13:04:03]RasterBufferAndPrint [13:04:03]line Счет N : (1)449710 [13:04:03]line ИНН: 02508201610067 [13:04:03]line Контрольно-Кассовый Чек [13:04:03]line ПРОДАЖА [13:04:03]line ТРК (МРК, ГНК) : 21 [13:04:03]line Товар: 2710194210 [13:04:03]line ДТ-К-2 [13:04:03]line 13.130 * 76.20 [13:04:03]line = 1000.51 [13:04:03]line НДС 12% НСП 1% [13:04:03]line > о реализуемом товаре [13:04:03]line ОКРУГЛЕНИЕ: -0.51 [13:04:03]line ИТОГО: 1000.00 [13:04:03]line Внесено: 1000.00 [13:04:03]line СДАЧА: 0.00 [13:04:03]line НСП 1% : 8.85 [13:04:03]line НДС 12% : 106.25 [13:04:03]line Наличными: 1000.00 [13:04:03]line Безнал.: 0.00 [13:04:03]line Место: АЗС № 171 "Партнер Нефть" [13:04:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:04:03]line СНО: Общий режим [13:04:03]line Чек 241 27.10.2024 13:04 [13:04:03]line Смена: 544 ФФД: 1.0 [13:04:03]line ЗНМ: 0300000109 [13:04:03]line РНМ: 0000000000091777 [13:04:03]line Версия ККМ: 001 [13:04:03]line ФМ: 0000000000871756 [13:04:03]line ФД: 201949 [13:04:03]line ФПД: 89698874560732 [13:04:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130402&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201949&fm=89698874560732&tin=02508201610067®Number=0000000000091777&sum=100000 [13:04:03]OFD Sender: Processing packet 201949 [packets to send 112, broken 111] [13:04:03]ProducePacketName [13:04:03]name=ofd_packets/00201949 [13:04:03]OFD Sender: To server: pG, [13:04:03]CommunicateWithHost lk.salyk.kg:30040 [13:04:03]ConnectInit lk.salyk.kg [13:04:03]written 0, free lines is 4095 [13:04:04]Connected sock=10 [13:04:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 65 8B 04 01 9D F2 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 32 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 F1 00 00 00 F4 03 04 00 42 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 14 03 00 35 04 06 00 51 94 A5 8E 10 DC 1F 7A 1F FF 4A 59 49 9E [13:04:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 71 D8 47 00 5E 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 14 03 00 F4 03 04 00 FC E5 1D 67 B6 04 01 00 00 A1 A2 7D 81 51 C7 FE F6 [13:04:04]CommunicateWithHost err = 0 [13:04:04]CheckOFDResponse [13:04:04]1017 (14) - 77093643461234 [13:04:04]1041 (16) - 0000000000871756 [13:04:04]1040 (4) - 201949 [13:04:04]1012 (4) - 27.10.2024 07:04 [13:04:04]1206 (1) - 0 [13:04:04]OFD Sender: Remove packet 201949 [13:04:04]ProducePacketName [13:04:04]name=ofd_packets/00201949 [13:04:04]NVStorageDeleteData [13:04:04]Write to MH i2c: 01 00 00 C4 13 D7 [13:04:04]Write i2c OK [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: 01 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: 01 07 00 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: 01 07 00 C4 13 00 00 00 00 00 89 0C 73 [13:04:04]RasterBufferAndPrint [13:04:04]line [13:04:04]line [13:04:04]line [13:04:04]line [13:04:04]line [13:04:04]written 0, free lines is 3213 [13:04:04]MH_Cut [13:04:04]Write to MH i2c: D1 01 00 CB 13 01 B0 [13:04:04]Write i2c OK [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: D1 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: D1 01 00 [13:04:04]MH_I2C_Read... [13:04:04]Read from MH i2c: D1 01 00 CB 13 00 AF [13:04:04]Write to MH i2c: 01 00 00 CC 13 DF [13:04:04]Write i2c OK [13:04:04]MH_I2C_Read... [13:04:04]OFD Sender: No OFD packet to send [13:04:05]*** Cut start [13:04:05]*** Purtial cut [13:04:05]*** Stage 1: CUTSNS_PIN = 1 [13:04:05]Read from MH i2c: 01 [13:04:05]MH_I2C_Read... [13:04:05]*** Stop cut motor [13:04:05]*** Cut end [13:04:05]Read from MH i2c: 01 07 00 [13:04:05]MH_I2C_Read... [13:04:05]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 FF 0F F4 [13:04:05]process_action close_receipt done [13:04:05]requested_data is exist [13:04:05]produce_requested_data [13:04:05]requested_item fm.sn is exist - process it [13:04:05]wFMCommunicate request_size=4 [13:04:05]MH_SAM_APDU [13:04:05]CAPDU: 80 11 00 00 [13:04:05]Write to MH i2c: E2 08 00 CD 13 80 11 00 00 00 00 00 00 5A [13:04:05]Write i2c OK [13:04:05]MH_I2C_Read... [13:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:05]Read from MH i2c: E2 [13:04:05]MH_I2C_Read... [13:04:05]Read from MH i2c: E2 17 00 [13:04:05]MH_I2C_Read... [13:04:05]Read from MH i2c: E2 17 00 CD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AF [13:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:04:05]wFMCommunicate OK [13:04:05]requested_item fd.num is exist - process it [13:04:05]SAM_PROTO_GetFieldsCounters [13:04:05]wFMCommunicate request_size=4 [13:04:05]MH_SAM_APDU [13:04:05]CAPDU: 80 13 00 00 [13:04:05]Write to MH i2c: E2 08 00 CE 13 80 13 00 00 00 00 00 00 5D [13:04:05]Write i2c OK [13:04:05]MH_I2C_Read... [13:04:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:05]Read from MH i2c: E2 [13:04:05]MH_I2C_Read... [13:04:05]Read from MH i2c: E2 62 00 [13:04:05]MH_I2C_Read... [13:04:05]Read from MH i2c: E2 62 00 CE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [13:04:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:05]wFMCommunicate OK [13:04:05]SAM_PROTO_GetFieldsCounters done [13:04:05]requested_item shift.num is exist - process it [13:04:05]requested_item shift.opened is exist - process it [13:04:05]req_shift_opened [13:04:05]FM_GetShiftState [13:04:05]SAM_PROTO_GetShiftState [13:04:05]wFMCommunicate request_size=4 [13:04:05]MH_SAM_APDU [13:04:05]CAPDU: 80 13 01 00 [13:04:05]Write to MH i2c: E2 08 00 CF 13 80 13 01 00 00 00 00 00 5F [13:04:05]Write i2c OK [13:04:05]MH_I2C_Read... [13:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:05]Read from MH i2c: E2 [13:04:05]MH_I2C_Read... [13:04:05]Read from MH i2c: E2 0E 00 [13:04:05]MH_I2C_Read... [13:04:05]Read from MH i2c: E2 0E 00 CF 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 61 [13:04:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:04:05]wFMCommunicate OK [13:04:05]SAM_PROTO_GetShiftState done [13:04:05]FM_GetShiftState done [13:04:05]req_shift_opened done [13:04:05]requested_item shift.open_date is exist - process it [13:04:05]req_shift_open_date [13:04:05]req_shift_open_date done [13:04:05]produce_requested_data done [13:04:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201949,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:04:05]process_action_free close_receipt [13:04:05]json_value_free [13:04:05]json_value_free done [13:04:05]process_json_proto returns [13:04:05]Send response to host [13:04:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201949,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:04:05]free response buf [13:04:05]execute_script done [13:04:05]execute_script returns [13:04:05]free content buf [13:04:05]Sock 8.Close socket [13:04:05]Sock 8.Thread stoped [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:32]accept exits with 9 [13:04:32]New connection [13:04:32]New thread 3066498404 created [13:04:32]Thread 3066641764 joined [13:04:32]Waiting for new connection... [13:04:32] Sock 9.Parse request [13:04:32]Sock 9.Check first char [13:04:32]Sock 9.First char is OK [13:04:32]request: POST /json_proto HTTP/1.0 [13:04:32]Method: POST [13:04:32]URL: /json_proto [13:04:32]Method is POST - this is cgi request [13:04:32]url: /json_proto [13:04:32]query_string will be loaded in cgi processing [13:04:32]execute_cgi json_proto POST (null) [13:04:32]execute_cgi path=json_proto method=POST [13:04:32]POST find Content-Length [13:04:32]Host: 172.17.63.195:8080 [13:04:32]Content-Length: 670 [13:04:32]Content-Type: application/json [13:04:32] [13:04:32]POST finish read [13:04:32]Found Content-Length = 670 [13:04:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:32]execute_script... [13:04:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:32]POST & json_proto [13:04:32]process_json_proto [13:04:32]json parsed OK: [13:04:32]protocol is kg_v1.0 [13:04:32]action value=close_receipt [13:04:32]process_action close_receipt [13:04:32]cmd_close_receipt [13:04:32]MH_GetDate [13:04:32]Write to MH i2c: F0 00 00 D0 13 D2 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: F0 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: F0 09 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: F0 09 00 D0 13 00 60 3A 1E 67 47 1B 1E 67 E1 [13:04:32]GetLastDocTimeStamp 1730034242 [13:04:32]current date 1730034272 [13:04:32]FM_GetShiftState [13:04:32]SAM_PROTO_GetShiftState [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 13 01 00 [13:04:32]Write to MH i2c: E2 08 00 D1 13 80 13 01 00 00 00 00 00 61 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 0E 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 0E 00 D1 13 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 63 [13:04:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:04:32]wFMCommunicate OK [13:04:32]SAM_PROTO_GetShiftState done [13:04:32]FM_GetShiftState done [13:04:32]opened in 1729987312 [13:04:32]opened+sec_in_day 1730073712 [13:04:32]quantity*price = 60055 [13:04:32]sum+1 = 60056 [13:04:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 242 27.10.2024 13:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201950 ФПД: 123409528372238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130432&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201950&fm=123409528372238&tin=02508201610067®Number=0000000000091777&sum=60000 [13:04:33]StoreToDocumentArchive [13:04:33]shift 544 fd 201950 [13:04:33]save to /storage/0544/doc_00201950 [13:04:33]save last doc name /storage/0544/doc_00201950 to /storage/kkm_last_doc_name [13:04:33]save OK [13:04:33]Clear old archive folders... [13:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:04:33]tlvbuf is B6F0C3A0 [13:04:33]SAM_PROTO_ClearQueue [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 09 00 00 [13:04:33]Write to MH i2c: E2 08 00 DE 13 80 09 00 00 00 00 00 00 63 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]SAM_PROTO_ClearQueue done [13:04:33]KKMCreateOFDPacket [13:04:33]OFDProtocolAddRootSTLVToBuf [13:04:33]FM_MakeSignedData [13:04:33]FM_MakeSignedData [13:04:33]SAM_PROTO_SignData [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 01 02 [13:04:33]Write to MH i2c: E2 08 00 DF 13 80 0D 01 02 00 00 00 00 6B [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 DF 13 00 90 00 66 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=255 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 60 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 14 03 00 35 04 06 00 [13:04:33]Write to MH i2c: E2 02 01 E0 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 60 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 14 03 00 35 04 06 00 00 00 AD [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 E0 13 00 90 00 67 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=11 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 02 02 06 70 3D 85 19 BC 0E [13:04:33]Write to MH i2c: E2 0E 00 E1 13 80 0D 02 02 06 00 70 3D 85 19 BC 0E 00 00 8F [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 E1 13 00 90 00 68 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 03 02 [13:04:33]Write to MH i2c: E2 08 00 E2 13 80 0D 03 02 00 00 00 00 70 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 0B 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 0B 00 E2 13 00 C3 62 9B 9D 50 D0 9D 20 90 00 AB [13:04:33]RAPDU: C3 62 9B 9D 50 D0 9D 20 90 00 [13:04:33]wFMCommunicate OK [13:04:33]SAM_PROTO_SignData done [13:04:33]FM_MakeSignedData done [13:04:33]CreateOFDProtocolMessage [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 11 00 00 [13:04:33]Write to MH i2c: E2 08 00 E3 13 80 11 00 00 00 00 00 00 70 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 E3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C5 [13:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:04:33]wFMCommunicate OK [13:04:33]CreateOFDProtocolMessage done [13:04:33]OFDSenderStorePacket 201950 [13:04:33]StoreOFDPacket docnum=201950 [13:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 4B 52 08 01 DE 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 60 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 14 03 00 35 04 06 00 70 3D 85 19 BC 0E C3 62 9B 9D 50 D0 9D 20 [13:04:33]CheckFolder [13:04:33]dirname=/storage/ofd_packets [13:04:33]CheckFolder done [13:04:33]ProducePacketName [13:04:33]name=ofd_packets/00201950 [13:04:33]NVStorageSaveData ofd_packets/00201950 [13:04:33]File name is /storage/ofd_packets/00201950 [13:04:33]Write 302 bytes [13:04:33]NVStorageSaveData done [13:04:33]OFDSenderStorePacket done [13:04:33]KKMCreateOFDPacket done [13:04:33]NVStorageSaveData kkm_last_timestamp [13:04:33]File name is /storage/kkm_last_timestamp [13:04:33]Write 4 bytes [13:04:33]NVStorageSaveData done [13:04:33]ExternCall_PrintAddStr [13:04:33]wPrintStart [13:04:33]Write to MH i2c: 01 00 00 E4 13 F7 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 07 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 FF 0F 0C [13:04:33]RasterBufferAndPrint [13:04:33]line Счет N : (1)449712 [13:04:33]line ИНН: 02508201610067 [13:04:33]line Контрольно-Кассовый Чек [13:04:33]line ПРОДАЖА [13:04:33]line ТРК (МРК, ГНК) : 63 [13:04:33]line Товар: 2710124130 [13:04:33]line SUPER 92-К-5 [13:04:33]line 8.780 * 68.40 [13:04:33]line = 600.55 [13:04:33]line НДС 12% НСП 1% [13:04:33]line > о реализуемом товаре [13:04:33]line ОКРУГЛЕНИЕ: -0.55 [13:04:33]line ИТОГО: 600.00 [13:04:33]line Внесено: 600.00 [13:04:33]line СДАЧА: 0.00 [13:04:33]line НСП 1% : 5.31 [13:04:33]line НДС 12% : 63.77 [13:04:33]line Наличными: 600.00 [13:04:33]line Безнал.: 0.00 [13:04:33]line Место: АЗС № 171 "Партнер Нефть" [13:04:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:04:33]line СНО: Общий режим [13:04:33]line Чек 242 27.10.2024 13:04 [13:04:33]line Смена: 544 ФФД: 1.0 [13:04:33]line ЗНМ: 0300000109 [13:04:33]line РНМ: 0000000000091777 [13:04:33]line Версия ККМ: 001 [13:04:33]line ФМ: 0000000000871756 [13:04:33]line ФД: 201950 [13:04:33]line ФПД: 123409528372238 [13:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130432&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201950&fm=123409528372238&tin=02508201610067®Number=0000000000091777&sum=60000 [13:04:34]OFD Sender: Processing packet 201950 [packets to send 112, broken 111] [13:04:34]ProducePacketName [13:04:34]name=ofd_packets/00201950 [13:04:34]OFD Sender: To server: pG, [13:04:34]CommunicateWithHost lk.salyk.kg:30040 [13:04:34]ConnectInit lk.salyk.kg [13:04:34]written 0, free lines is 4095 [13:04:34]Connected sock=10 [13:04:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 4B 52 08 01 DE 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 60 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 14 03 00 35 04 06 00 70 3D 85 19 BC 0E C3 62 9B 9D 50 D0 9D 20 [13:04:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 51 5E 47 00 1C 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 14 03 00 F4 03 04 00 1A E6 1D 67 B6 04 01 00 00 3A D1 C4 F2 62 10 76 4F [13:04:34]CommunicateWithHost err = 0 [13:04:34]CheckOFDResponse [13:04:34]1017 (14) - 77093643461234 [13:04:34]1041 (16) - 0000000000871756 [13:04:34]1040 (4) - 201950 [13:04:34]1012 (4) - 27.10.2024 07:04 [13:04:34]1206 (1) - 0 [13:04:34]OFD Sender: Remove packet 201950 [13:04:34]ProducePacketName [13:04:34]name=ofd_packets/00201950 [13:04:34]NVStorageDeleteData [13:04:34]Write to MH i2c: 01 00 00 0F 14 23 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 07 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 07 00 0F 14 00 00 00 00 00 89 0C BF [13:04:34]RasterBufferAndPrint [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]written 0, free lines is 3213 [13:04:34]MH_Cut [13:04:34]Write to MH i2c: D1 01 00 16 14 01 FC [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 01 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 01 00 16 14 00 FB [13:04:34]Write to MH i2c: 01 00 00 17 14 2B [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:35]OFD Sender: No OFD packet to send [13:04:35]*** Cut start [13:04:35]*** Purtial cut [13:04:35]*** Stage 1: CUTSNS_PIN = 1 [13:04:35]Read from MH i2c: 01 [13:04:35]MH_I2C_Read... [13:04:35]*** Stop cut motor [13:04:35]*** Cut end [13:04:35]Read from MH i2c: 01 07 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: 01 07 00 17 14 00 00 00 00 00 FF 0F 40 [13:04:35]process_action close_receipt done [13:04:35]requested_data is exist [13:04:35]produce_requested_data [13:04:35]requested_item fm.sn is exist - process it [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 11 00 00 [13:04:35]Write to MH i2c: E2 08 00 18 14 80 11 00 00 00 00 00 00 A6 [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:35]Read from MH i2c: E2 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 17 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 17 00 18 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FB [13:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:04:35]wFMCommunicate OK [13:04:35]requested_item fd.num is exist - process it [13:04:35]SAM_PROTO_GetFieldsCounters [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 13 00 00 [13:04:35]Write to MH i2c: E2 08 00 19 14 80 13 00 00 00 00 00 00 A9 [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:35]Read from MH i2c: E2 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 62 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 62 00 19 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [13:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:35]wFMCommunicate OK [13:04:35]SAM_PROTO_GetFieldsCounters done [13:04:35]requested_item shift.num is exist - process it [13:04:35]requested_item shift.opened is exist - process it [13:04:35]req_shift_opened [13:04:35]FM_GetShiftState [13:04:35]SAM_PROTO_GetShiftState [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 13 01 00 [13:04:35]Write to MH i2c: E2 08 00 1A 14 80 13 01 00 00 00 00 00 AB [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:36]Read from MH i2c: E2 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 0E 00 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 0E 00 1A 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AD [13:04:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:04:36]wFMCommunicate OK [13:04:36]SAM_PROTO_GetShiftState done [13:04:36]FM_GetShiftState done [13:04:36]req_shift_opened done [13:04:36]requested_item shift.open_date is exist - process it [13:04:36]req_shift_open_date [13:04:36]req_shift_open_date done [13:04:36]produce_requested_data done [13:04:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201950,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:04:36]process_action_free close_receipt [13:04:36]json_value_free [13:04:36]json_value_free done [13:04:36]process_json_proto returns [13:04:36]Send response to host [13:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201950,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:04:36]free response buf [13:04:36]execute_script done [13:04:36]execute_script returns [13:04:36]free content buf [13:04:36]Sock 9.Close socket [13:04:36]Sock 9.Thread stoped [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]accept exits with 8 [13:05:00]New connection [13:05:00]New thread 3066641764 created [13:05:00]Thread 3066498404 joined [13:05:00]Waiting for new connection... [13:05:00]OFD Sender: No OFD packet to send [13:05:00] Sock 8.Parse request [13:05:00]Sock 8.Check first char [13:05:00]Sock 8.First char is OK [13:05:00]request: POST /json_proto HTTP/1.0 [13:05:00]Method: POST [13:05:00]URL: /json_proto [13:05:00]Method is POST - this is cgi request [13:05:00]url: /json_proto [13:05:00]query_string will be loaded in cgi processing [13:05:00]execute_cgi json_proto POST (null) [13:05:00]execute_cgi path=json_proto method=POST [13:05:00]POST find Content-Length [13:05:00]Host: 172.17.63.195:8080 [13:05:00]Content-Length: 675 [13:05:00]Content-Type: application/json [13:05:00] [13:05:00]POST finish read [13:05:00]Found Content-Length = 675 [13:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:00]execute_script... [13:05:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:00]POST & json_proto [13:05:00]process_json_proto [13:05:00]json parsed OK: [13:05:00]protocol is kg_v1.0 [13:05:00]action value=close_receipt [13:05:00]process_action close_receipt [13:05:00]cmd_close_receipt [13:05:00]MH_GetDate [13:05:00]Write to MH i2c: F0 00 00 1B 14 1E [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: F0 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: F0 09 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: F0 09 00 1B 14 00 7C 3A 1E 67 47 1B 1E 67 49 [13:05:00]GetLastDocTimeStamp 1730034272 [13:05:00]current date 1730034300 [13:05:00]FM_GetShiftState [13:05:00]SAM_PROTO_GetShiftState [13:05:00]wFMCommunicate request_size=4 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 13 01 00 [13:05:00]Write to MH i2c: E2 08 00 1C 14 80 13 01 00 00 00 00 00 AD [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0E 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0E 00 1C 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AF [13:05:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:05:00]wFMCommunicate OK [13:05:00]SAM_PROTO_GetShiftState done [13:05:00]FM_GetShiftState done [13:05:00]opened in 1729987312 [13:05:00]opened+sec_in_day 1730073712 [13:05:00]quantity*price = 80010 [13:05:00]sum+1 = 80011 [13:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 243 27.10.2024 13:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201951 ФПД: 212855365836381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130500&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201951&fm=212855365836381&tin=02508201610067®Number=0000000000091777&sum=80000 [13:05:01]StoreToDocumentArchive [13:05:01]shift 544 fd 201951 [13:05:01]save to /storage/0544/doc_00201951 [13:05:01]save last doc name /storage/0544/doc_00201951 to /storage/kkm_last_doc_name [13:05:01]save OK [13:05:01]Clear old archive folders... [13:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:05:01]tlvbuf is 0119DE70 [13:05:01]SAM_PROTO_ClearQueue [13:05:01]wFMCommunicate request_size=4 [13:05:01]MH_SAM_APDU [13:05:01]CAPDU: 80 09 00 00 [13:05:01]Write to MH i2c: E2 08 00 29 14 80 09 00 00 00 00 00 00 AF [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:01]Read from MH i2c: E2 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 03 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 03 00 29 14 00 90 00 B1 [13:05:01]RAPDU: 90 00 [13:05:01]wFMCommunicate OK [13:05:01]SAM_PROTO_ClearQueue done [13:05:01]KKMCreateOFDPacket [13:05:01]OFDProtocolAddRootSTLVToBuf [13:05:01]FM_MakeSignedData [13:05:01]FM_MakeSignedData [13:05:01]SAM_PROTO_SignData [13:05:01]wFMCommunicate request_size=4 [13:05:01]MH_SAM_APDU [13:05:01]CAPDU: 80 0D 01 02 [13:05:01]Write to MH i2c: E2 08 00 2A 14 80 0D 01 02 00 00 00 00 B7 [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:01]Read from MH i2c: E2 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 03 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 03 00 2A 14 00 90 00 B2 [13:05:01]RAPDU: 90 00 [13:05:01]wFMCommunicate OK [13:05:01]wFMCommunicate request_size=255 [13:05:01]MH_SAM_APDU [13:05:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 F3 00 00 00 F4 03 04 00 7C 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 14 03 00 35 04 06 00 C1 97 40 78 [13:05:01]Write to MH i2c: E2 02 01 2B 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 F3 00 00 00 F4 03 04 00 7C 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 14 03 00 35 04 06 00 C1 97 40 78 00 00 CA [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:01]Read from MH i2c: E2 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 03 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 03 00 2B 14 00 90 00 B3 [13:05:01]RAPDU: 90 00 [13:05:01]wFMCommunicate OK [13:05:01]wFMCommunicate request_size=7 [13:05:01]MH_SAM_APDU [13:05:01]CAPDU: 80 0D 02 02 02 1E 5D [13:05:01]Write to MH i2c: E2 0A 00 2C 14 80 0D 02 02 02 00 1E 5D 00 00 39 [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:01]Read from MH i2c: E2 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 03 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [13:05:01]RAPDU: 90 00 [13:05:01]wFMCommunicate OK [13:05:01]wFMCommunicate request_size=4 [13:05:01]MH_SAM_APDU [13:05:01]CAPDU: 80 0D 03 02 [13:05:01]Write to MH i2c: E2 08 00 2D 14 80 0D 03 02 00 00 00 00 BC [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:01]Read from MH i2c: E2 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 0B 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 0B 00 2D 14 00 6C 71 B0 DC E8 96 44 8F 90 00 77 [13:05:01]RAPDU: 6C 71 B0 DC E8 96 44 8F 90 00 [13:05:01]wFMCommunicate OK [13:05:01]SAM_PROTO_SignData done [13:05:01]FM_MakeSignedData done [13:05:01]CreateOFDProtocolMessage [13:05:01]wFMCommunicate request_size=4 [13:05:01]MH_SAM_APDU [13:05:01]CAPDU: 80 11 00 00 [13:05:01]Write to MH i2c: E2 08 00 2E 14 80 11 00 00 00 00 00 00 BC [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:01]Read from MH i2c: E2 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 17 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: E2 17 00 2E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 11 [13:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:05:01]wFMCommunicate OK [13:05:01]CreateOFDProtocolMessage done [13:05:01]OFDSenderStorePacket 201951 [13:05:01]StoreOFDPacket docnum=201951 [13:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E3 A7 04 01 58 F2 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 F3 00 00 00 F4 03 04 00 7C 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 14 03 00 35 04 06 00 C1 97 40 78 1E 5D 6C 71 B0 DC E8 96 44 8F [13:05:01]CheckFolder [13:05:01]dirname=/storage/ofd_packets [13:05:01]CheckFolder done [13:05:01]ProducePacketName [13:05:01]name=ofd_packets/00201951 [13:05:01]NVStorageSaveData ofd_packets/00201951 [13:05:01]File name is /storage/ofd_packets/00201951 [13:05:01]Write 298 bytes [13:05:01]NVStorageSaveData done [13:05:01]OFDSenderStorePacket done [13:05:01]KKMCreateOFDPacket done [13:05:01]NVStorageSaveData kkm_last_timestamp [13:05:01]File name is /storage/kkm_last_timestamp [13:05:01]Write 4 bytes [13:05:01]NVStorageSaveData done [13:05:01]ExternCall_PrintAddStr [13:05:01]wPrintStart [13:05:01]Write to MH i2c: 01 00 00 2F 14 43 [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: 01 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: 01 07 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [13:05:01]RasterBufferAndPrint [13:05:01]line Счет N : (1)449711 [13:05:01]line ИНН: 02508201610067 [13:05:01]line Контрольно-Кассовый Чек [13:05:01]line ПРОДАЖА [13:05:01]line ТРК (МРК, ГНК) : 43 [13:05:01]line Товар: 2710194210 [13:05:01]line ДТ-К-2 [13:05:01]line 10.500 * 76.20 [13:05:01]line = 800.10 [13:05:01]line НДС 12% НСП 1% [13:05:01]line > о реализуемом товаре [13:05:01]line ОКРУГЛЕНИЕ: -0.10 [13:05:01]line ИТОГО: 800.00 [13:05:01]line Внесено: 800.00 [13:05:01]line СДАЧА: 0.00 [13:05:01]line НСП 1% : 7.08 [13:05:01]line НДС 12% : 84.97 [13:05:01]line Наличными: 800.00 [13:05:01]line Безнал.: 0.00 [13:05:01]line Место: АЗС № 171 "Партнер Нефть" [13:05:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:05:01]line СНО: Общий режим [13:05:01]line Чек 243 27.10.2024 13:05 [13:05:01]line Смена: 544 ФФД: 1.0 [13:05:01]line ЗНМ: 0300000109 [13:05:01]line РНМ: 0000000000091777 [13:05:01]line Версия ККМ: 001 [13:05:01]line ФМ: 0000000000871756 [13:05:01]line ФД: 201951 [13:05:01]line ФПД: 212855365836381 [13:05:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130500&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201951&fm=212855365836381&tin=02508201610067®Number=0000000000091777&sum=80000 [13:05:02]OFD Sender: Processing packet 201951 [packets to send 112, broken 111] [13:05:02]ProducePacketName [13:05:02]name=ofd_packets/00201951 [13:05:02]OFD Sender: To server: pG, [13:05:02]CommunicateWithHost lk.salyk.kg:30040 [13:05:02]ConnectInit lk.salyk.kg [13:05:02]written 0, free lines is 4095 [13:05:02]Connected sock=10 [13:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E3 A7 04 01 58 F2 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 F3 00 00 00 F4 03 04 00 7C 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 14 03 00 35 04 06 00 C1 97 40 78 1E 5D 6C 71 B0 DC E8 96 44 8F [13:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D5 34 47 00 B2 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 14 03 00 F4 03 04 00 36 E6 1D 67 B6 04 01 00 00 64 02 65 C3 C3 12 2A D8 [13:05:02]CommunicateWithHost err = 0 [13:05:02]CheckOFDResponse [13:05:02]1017 (14) - 77093643461234 [13:05:02]1041 (16) - 0000000000871756 [13:05:02]1040 (4) - 201951 [13:05:02]1012 (4) - 27.10.2024 07:05 [13:05:02]1206 (1) - 0 [13:05:02]OFD Sender: Remove packet 201951 [13:05:02]ProducePacketName [13:05:02]name=ofd_packets/00201951 [13:05:02]NVStorageDeleteData [13:05:02]Write to MH i2c: 01 00 00 5A 14 6E [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: 01 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: 01 07 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: 01 07 00 5A 14 00 00 00 00 00 91 0C 12 [13:05:02]RasterBufferAndPrint [13:05:02]line [13:05:02]line [13:05:02]line [13:05:02]line [13:05:02]line [13:05:02]written 0, free lines is 3221 [13:05:02]MH_Cut [13:05:02]Write to MH i2c: D1 01 00 61 14 01 47 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: D1 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: D1 01 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: D1 01 00 61 14 00 46 [13:05:02]Write to MH i2c: 01 00 00 62 14 76 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]OFD Sender: No OFD packet to send [13:05:03]*** Cut start [13:05:03]*** Purtial cut [13:05:03]*** Stage 1: CUTSNS_PIN = 1 [13:05:03]Read from MH i2c: 01 [13:05:03]MH_I2C_Read... [13:05:03]*** Stop cut motor [13:05:03]*** Cut end [13:05:03]Read from MH i2c: 01 07 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 FF 0F 8B [13:05:03]process_action close_receipt done [13:05:03]requested_data is exist [13:05:03]produce_requested_data [13:05:03]requested_item fm.sn is exist - process it [13:05:03]wFMCommunicate request_size=4 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 11 00 00 [13:05:03]Write to MH i2c: E2 08 00 63 14 80 11 00 00 00 00 00 00 F1 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 17 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 17 00 63 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 46 [13:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:05:03]wFMCommunicate OK [13:05:03]requested_item fd.num is exist - process it [13:05:03]SAM_PROTO_GetFieldsCounters [13:05:03]wFMCommunicate request_size=4 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 13 00 00 [13:05:03]Write to MH i2c: E2 08 00 64 14 80 13 00 00 00 00 00 00 F4 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 62 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 62 00 64 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [13:05:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:03]wFMCommunicate OK [13:05:03]SAM_PROTO_GetFieldsCounters done [13:05:03]requested_item shift.num is exist - process it [13:05:03]requested_item shift.opened is exist - process it [13:05:03]req_shift_opened [13:05:03]FM_GetShiftState [13:05:03]SAM_PROTO_GetShiftState [13:05:03]wFMCommunicate request_size=4 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 13 01 00 [13:05:03]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 0E 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F8 [13:05:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:05:03]wFMCommunicate OK [13:05:03]SAM_PROTO_GetShiftState done [13:05:03]FM_GetShiftState done [13:05:03]req_shift_opened done [13:05:03]requested_item shift.open_date is exist - process it [13:05:03]req_shift_open_date [13:05:03]req_shift_open_date done [13:05:03]produce_requested_data done [13:05:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201951,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:05:03]process_action_free close_receipt [13:05:03]json_value_free [13:05:03]json_value_free done [13:05:03]process_json_proto returns [13:05:03]Send response to host [13:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201951,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:05:03]free response buf [13:05:03]execute_script done [13:05:03]execute_script returns [13:05:03]free content buf [13:05:03]Sock 8.Close socket [13:05:03]Sock 8.Thread stoped [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:34]accept exits with 9 [13:05:34]New connection [13:05:34]New thread 3066498404 created [13:05:34]Thread 3066641764 joined [13:05:34]Waiting for new connection... [13:05:34] Sock 9.Parse request [13:05:34]Sock 9.Check first char [13:05:34]Sock 9.First char is OK [13:05:34]request: POST /json_proto HTTP/1.0 [13:05:34]Method: POST [13:05:34]URL: /json_proto [13:05:34]Method is POST - this is cgi request [13:05:34]url: /json_proto [13:05:34]query_string will be loaded in cgi processing [13:05:34]execute_cgi json_proto POST (null) [13:05:34]execute_cgi path=json_proto method=POST [13:05:34]POST find Content-Length [13:05:34]Host: 172.17.63.195:8080 [13:05:34]Content-Length: 774 [13:05:34]Content-Type: application/json [13:05:34] [13:05:34]POST finish read [13:05:34]Found Content-Length = 774 [13:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Balance.KG", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:34]execute_script... [13:05:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Balance.KG", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:34]POST & json_proto [13:05:34]process_json_proto [13:05:34]json parsed OK: [13:05:34]protocol is kg_v1.0 [13:05:34]action value=close_receipt [13:05:34]process_action close_receipt [13:05:34]cmd_close_receipt [13:05:34]MH_GetDate [13:05:34]Write to MH i2c: F0 00 00 66 14 69 [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: F0 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: F0 09 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: F0 09 00 66 14 00 9F 3A 1E 67 47 1B 1E 67 B7 [13:05:34]GetLastDocTimeStamp 1730034300 [13:05:34]current date 1730034335 [13:05:34]FM_GetShiftState [13:05:34]SAM_PROTO_GetShiftState [13:05:34]wFMCommunicate request_size=4 [13:05:34]MH_SAM_APDU [13:05:34]CAPDU: 80 13 01 00 [13:05:34]Write to MH i2c: E2 08 00 67 14 80 13 01 00 00 00 00 00 F8 [13:05:34]Write i2c OK [13:05:34]MH_I2C_Read... [13:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:34]Read from MH i2c: E2 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 0E 00 [13:05:34]MH_I2C_Read... [13:05:34]Read from MH i2c: E2 0E 00 67 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FA [13:05:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:05:34]wFMCommunicate OK [13:05:34]SAM_PROTO_GetShiftState done [13:05:34]FM_GetShiftState done [13:05:34]opened in 1729987312 [13:05:34]opened+sec_in_day 1730073712 [13:05:34]quantity*price = 100015 [13:05:34]sum+1 = 100017 [13:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 244 27.10.2024 13:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Balance.KG ФМ: 0000000000871756 ФД: 201952 ФПД: 184269878941064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130535&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201952&fm=184269878941064&tin=02508201610067®Number=0000000000091777&sum=100016 [13:05:35]StoreToDocumentArchive [13:05:35]shift 544 fd 201952 [13:05:35]save to /storage/0544/doc_00201952 [13:05:35]save last doc name /storage/0544/doc_00201952 to /storage/kkm_last_doc_name [13:05:35]save OK [13:05:35]Clear old archive folders... [13:05:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:35]tlvbuf is 01219300 [13:05:35]SAM_PROTO_ClearQueue [13:05:35]wFMCommunicate request_size=4 [13:05:35]MH_SAM_APDU [13:05:35]CAPDU: 80 09 00 00 [13:05:35]Write to MH i2c: E2 08 00 74 14 80 09 00 00 00 00 00 00 FA [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:35]Read from MH i2c: E2 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: E2 03 00 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: E2 03 00 74 14 00 90 00 FC [13:05:35]RAPDU: 90 00 [13:05:35]wFMCommunicate OK [13:05:35]SAM_PROTO_ClearQueue done [13:05:35]KKMCreateOFDPacket [13:05:35]OFDProtocolAddRootSTLVToBuf [13:05:35]FM_MakeSignedData [13:05:35]FM_MakeSignedData [13:05:35]SAM_PROTO_SignData [13:05:35]wFMCommunicate request_size=4 [13:05:35]MH_SAM_APDU [13:05:35]CAPDU: 80 0D 01 02 [13:05:35]Write to MH i2c: E2 08 00 75 14 80 0D 01 02 00 00 00 00 02 [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:35]Read from MH i2c: E2 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: E2 03 00 [13:05:35]MH_I2C_Read... [13:05:35]Read from MH i2c: E2 03 00 75 14 00 90 00 FD [13:05:35]RAPDU: 90 00 [13:05:35]wFMCommunicate OK [13:05:35]wFMCommunicate request_size=255 [13:05:35]MH_SAM_APDU [13:05:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F4 00 00 00 F4 03 04 00 9F 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 14 03 00 35 04 06 00 A7 [13:05:35]Write to MH i2c: E2 02 01 76 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F4 00 00 00 F4 03 04 00 9F 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 14 03 00 35 04 06 00 A7 00 00 C2 [13:05:35]Write i2c OK [13:05:35]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 76 14 00 90 00 FE [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]wFMCommunicate request_size=10 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 02 02 05 97 AC AD 55 88 [13:05:36]Write to MH i2c: E2 0D 00 77 14 80 0D 02 02 05 00 97 AC AD 55 88 00 00 DC [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [13:05:36]RAPDU: 90 00 [13:05:36]wFMCommunicate OK [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 0D 03 02 [13:05:36]Write to MH i2c: E2 08 00 78 14 80 0D 03 02 00 00 00 00 07 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 0B 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 0B 00 78 14 00 26 3D D8 61 A1 64 03 AE 90 00 5A [13:05:36]RAPDU: 26 3D D8 61 A1 64 03 AE 90 00 [13:05:36]wFMCommunicate OK [13:05:36]SAM_PROTO_SignData done [13:05:36]FM_MakeSignedData done [13:05:36]CreateOFDProtocolMessage [13:05:36]wFMCommunicate request_size=4 [13:05:36]MH_SAM_APDU [13:05:36]CAPDU: 80 11 00 00 [13:05:36]Write to MH i2c: E2 08 00 79 14 80 11 00 00 00 00 00 00 07 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:36]Read from MH i2c: E2 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 17 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: E2 17 00 79 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [13:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:05:36]wFMCommunicate OK [13:05:36]CreateOFDProtocolMessage done [13:05:36]OFDSenderStorePacket 201952 [13:05:36]StoreOFDPacket docnum=201952 [13:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 C0 07 01 E9 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F4 00 00 00 F4 03 04 00 9F 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 14 03 00 35 04 06 00 A7 97 AC AD 55 88 26 3D D8 61 A1 64 03 AE [13:05:36]CheckFolder [13:05:36]dirname=/storage/ofd_packets [13:05:36]CheckFolder done [13:05:36]ProducePacketName [13:05:36]name=ofd_packets/00201952 [13:05:36]NVStorageSaveData ofd_packets/00201952 [13:05:36]File name is /storage/ofd_packets/00201952 [13:05:36]Write 301 bytes [13:05:36]NVStorageSaveData done [13:05:36]OFDSenderStorePacket done [13:05:36]KKMCreateOFDPacket done [13:05:36]NVStorageSaveData kkm_last_timestamp [13:05:36]File name is /storage/kkm_last_timestamp [13:05:36]Write 4 bytes [13:05:36]NVStorageSaveData done [13:05:36]ExternCall_PrintAddStr [13:05:36]wPrintStart [13:05:36]Write to MH i2c: 01 00 00 7A 14 8E [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 07 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 FF 0F A3 [13:05:36]RasterBufferAndPrint [13:05:36]line Счет N : (1)449713 [13:05:36]line ИНН: 02508201610067 [13:05:36]line Контрольно-Кассовый Чек [13:05:36]line ПРОДАЖА [13:05:36]line ТРК (МРК, ГНК) : 52 [13:05:36]line Товар: 2710124130 [13:05:36]line Аи-92-К-2 [13:05:36]line 14.950 * 66.90 [13:05:36]line = 1000.16 [13:05:36]line НДС 12% НСП 1% [13:05:36]line > о реализуемом товаре [13:05:36]line ИТОГО: 1000.16 [13:05:36]line НСП 1% : 8.85 [13:05:36]line НДС 12% : 106.21 [13:05:36]line Наличными: 0.00 [13:05:36]line Безнал.: 1000.16 [13:05:36]line Место: АЗС № 171 "Партнер Нефть" [13:05:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:05:36]line СНО: Общий режим [13:05:36]line Чек 244 27.10.2024 13:05 [13:05:36]line Смена: 544 ФФД: 1.0 [13:05:36]line ЗНМ: 0300000109 [13:05:36]line РНМ: 0000000000091777 [13:05:36]line Версия ККМ: 001 [13:05:36]line Платежная система: Balance.KG [13:05:36]line ФМ: 0000000000871756 [13:05:36]line ФД: 201952 [13:05:36]line ФПД: 184269878941064 [13:05:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130535&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201952&fm=184269878941064&tin=02508201610067®Number=0000000000091777&sum=100016 [13:05:36]OFD Sender: Processing packet 201952 [packets to send 112, broken 111] [13:05:36]ProducePacketName [13:05:36]name=ofd_packets/00201952 [13:05:36]OFD Sender: To server: pG, [13:05:36]CommunicateWithHost lk.salyk.kg:30040 [13:05:36]ConnectInit lk.salyk.kg [13:05:36]written 0, free lines is 4095 [13:05:36]Connected sock=10 [13:05:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 C0 07 01 E9 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F4 00 00 00 F4 03 04 00 9F 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 14 03 00 35 04 06 00 A7 97 AC AD 55 88 26 3D D8 61 A1 64 03 AE [13:05:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 76 16 47 00 3F 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 14 03 00 F4 03 04 00 59 E6 1D 67 B6 04 01 00 00 C6 91 F5 3C BC 52 87 FC [13:05:36]CommunicateWithHost err = 0 [13:05:36]CheckOFDResponse [13:05:36]1017 (14) - 77093643461234 [13:05:36]1041 (16) - 0000000000871756 [13:05:36]1040 (4) - 201952 [13:05:36]1012 (4) - 27.10.2024 07:06 [13:05:36]1206 (1) - 0 [13:05:36]OFD Sender: Remove packet 201952 [13:05:36]ProducePacketName [13:05:36]name=ofd_packets/00201952 [13:05:36]NVStorageDeleteData [13:05:36]Write to MH i2c: 01 00 00 A4 14 B8 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 07 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: 01 07 00 A4 14 00 00 00 00 00 A0 0C 6B [13:05:36]RasterBufferAndPrint [13:05:36]line [13:05:36]line [13:05:36]line [13:05:36]line [13:05:36]line [13:05:36]written 0, free lines is 3237 [13:05:36]MH_Cut [13:05:36]Write to MH i2c: D1 01 00 AB 14 01 91 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: D1 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: D1 01 00 [13:05:36]MH_I2C_Read... [13:05:36]Read from MH i2c: D1 01 00 AB 14 00 90 [13:05:36]Write to MH i2c: 01 00 00 AC 14 C0 [13:05:36]Write i2c OK [13:05:36]MH_I2C_Read... [13:05:37]OFD Sender: No OFD packet to send [13:05:37]*** Cut start [13:05:37]*** Purtial cut [13:05:37]*** Stage 1: CUTSNS_PIN = 1 [13:05:38]Read from MH i2c: 01 [13:05:38]MH_I2C_Read... [13:05:38]*** Stop cut motor [13:05:38]*** Cut end [13:05:38]Read from MH i2c: 01 07 00 [13:05:38]MH_I2C_Read... [13:05:38]Read from MH i2c: 01 07 00 AC 14 00 00 00 00 00 FF 0F D5 [13:05:38]process_action close_receipt done [13:05:38]requested_data is exist [13:05:38]produce_requested_data [13:05:38]requested_item fm.sn is exist - process it [13:05:38]wFMCommunicate request_size=4 [13:05:38]MH_SAM_APDU [13:05:38]CAPDU: 80 11 00 00 [13:05:38]Write to MH i2c: E2 08 00 AD 14 80 11 00 00 00 00 00 00 3B [13:05:38]Write i2c OK [13:05:38]MH_I2C_Read... [13:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:38]Read from MH i2c: E2 [13:05:38]MH_I2C_Read... [13:05:38]Read from MH i2c: E2 17 00 [13:05:38]MH_I2C_Read... [13:05:38]Read from MH i2c: E2 17 00 AD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [13:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:05:38]wFMCommunicate OK [13:05:38]requested_item fd.num is exist - process it [13:05:38]SAM_PROTO_GetFieldsCounters [13:05:38]wFMCommunicate request_size=4 [13:05:38]MH_SAM_APDU [13:05:38]CAPDU: 80 13 00 00 [13:05:38]Write to MH i2c: E2 08 00 AE 14 80 13 00 00 00 00 00 00 3E [13:05:38]Write i2c OK [13:05:38]MH_I2C_Read... [13:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:38]Read from MH i2c: E2 [13:05:38]MH_I2C_Read... [13:05:38]Read from MH i2c: E2 62 00 [13:05:38]MH_I2C_Read... [13:05:38]Read from MH i2c: E2 62 00 AE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [13:05:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:38]wFMCommunicate OK [13:05:38]SAM_PROTO_GetFieldsCounters done [13:05:38]requested_item shift.num is exist - process it [13:05:38]requested_item shift.opened is exist - process it [13:05:38]req_shift_opened [13:05:38]FM_GetShiftState [13:05:38]SAM_PROTO_GetShiftState [13:05:38]wFMCommunicate request_size=4 [13:05:38]MH_SAM_APDU [13:05:38]CAPDU: 80 13 01 00 [13:05:38]Write to MH i2c: E2 08 00 AF 14 80 13 01 00 00 00 00 00 40 [13:05:38]Write i2c OK [13:05:38]MH_I2C_Read... [13:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:38]Read from MH i2c: E2 [13:05:38]MH_I2C_Read... [13:05:38]Read from MH i2c: E2 0E 00 [13:05:38]MH_I2C_Read... [13:05:38]Read from MH i2c: E2 0E 00 AF 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 42 [13:05:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:05:38]wFMCommunicate OK [13:05:38]SAM_PROTO_GetShiftState done [13:05:38]FM_GetShiftState done [13:05:38]req_shift_opened done [13:05:38]requested_item shift.open_date is exist - process it [13:05:38]req_shift_open_date [13:05:38]req_shift_open_date done [13:05:38]produce_requested_data done [13:05:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201952,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:05:38]process_action_free close_receipt [13:05:38]json_value_free [13:05:38]json_value_free done [13:05:38]process_json_proto returns [13:05:38]Send response to host [13:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201952,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:05:38]free response buf [13:05:38]execute_script done [13:05:38]execute_script returns [13:05:38]free content buf [13:05:38]Sock 9.Close socket [13:05:38]Sock 9.Thread stoped [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:41]accept exits with 8 [13:06:41]New connection [13:06:41]New thread 3066641764 created [13:06:41]Thread 3066498404 joined [13:06:41]Waiting for new connection... [13:06:41] Sock 8.Parse request [13:06:41]Sock 8.Check first char [13:06:41]Sock 8.First char is OK [13:06:41]request: POST /json_proto HTTP/1.0 [13:06:41]Method: POST [13:06:41]URL: /json_proto [13:06:41]Method is POST - this is cgi request [13:06:41]url: /json_proto [13:06:41]query_string will be loaded in cgi processing [13:06:41]execute_cgi json_proto POST (null) [13:06:41]execute_cgi path=json_proto method=POST [13:06:41]POST find Content-Length [13:06:41]Host: 172.17.63.195:8080 [13:06:41]Content-Length: 674 [13:06:41]Content-Type: application/json [13:06:41] [13:06:41]POST finish read [13:06:41]Found Content-Length = 674 [13:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:41]execute_script... [13:06: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)449715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:41]POST & json_proto [13:06:41]process_json_proto [13:06:41]json parsed OK: [13:06:41]protocol is kg_v1.0 [13:06:41]action value=close_receipt [13:06:41]process_action close_receipt [13:06:41]cmd_close_receipt [13:06:41]MH_GetDate [13:06:41]Write to MH i2c: F0 00 00 B0 14 B3 [13:06:41]Write i2c OK [13:06:41]MH_I2C_Read... [13:06:41]Read from MH i2c: F0 [13:06:41]MH_I2C_Read... [13:06:41]Read from MH i2c: F0 09 00 [13:06:41]MH_I2C_Read... [13:06:41]Read from MH i2c: F0 09 00 B0 14 00 E1 3A 1E 67 47 1B 1E 67 43 [13:06:41]GetLastDocTimeStamp 1730034335 [13:06:41]current date 1730034401 [13:06:41]FM_GetShiftState [13:06:41]SAM_PROTO_GetShiftState [13:06:41]wFMCommunicate request_size=4 [13:06:41]MH_SAM_APDU [13:06:41]CAPDU: 80 13 01 00 [13:06:41]Write to MH i2c: E2 08 00 B1 14 80 13 01 00 00 00 00 00 42 [13:06:41]Write i2c OK [13:06:41]MH_I2C_Read... [13:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:41]Read from MH i2c: E2 [13:06:41]MH_I2C_Read... [13:06:41]Read from MH i2c: E2 0E 00 [13:06:41]MH_I2C_Read... [13:06:41]Read from MH i2c: E2 0E 00 B1 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 44 [13:06:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:06:41]wFMCommunicate OK [13:06:41]SAM_PROTO_GetShiftState done [13:06:41]FM_GetShiftState done [13:06:41]opened in 1729987312 [13:06:41]opened+sec_in_day 1730073712 [13:06:41]quantity*price = 50063 [13:06:41]sum+1 = 50064 [13:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 245 27.10.2024 13:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201953 ФПД: 216888142621765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130641&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201953&fm=216888142621765&tin=02508201610067®Number=0000000000091777&sum=50000 [13:06:42]StoreToDocumentArchive [13:06:42]shift 544 fd 201953 [13:06:42]save to /storage/0544/doc_00201953 [13:06:42]save last doc name /storage/0544/doc_00201953 to /storage/kkm_last_doc_name [13:06:42]save OK [13:06:42]Clear old archive folders... [13:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:06:42]tlvbuf is 0119E3F0 [13:06:42]SAM_PROTO_ClearQueue [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 09 00 00 [13:06:42]Write to MH i2c: E2 08 00 BE 14 80 09 00 00 00 00 00 00 44 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 BE 14 00 90 00 46 [13:06:42]RAPDU: 90 00 [13:06:42]wFMCommunicate OK [13:06:42]SAM_PROTO_ClearQueue done [13:06:42]KKMCreateOFDPacket [13:06:42]OFDProtocolAddRootSTLVToBuf [13:06:42]FM_MakeSignedData [13:06:42]FM_MakeSignedData [13:06:42]SAM_PROTO_SignData [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 0D 01 02 [13:06:42]Write to MH i2c: E2 08 00 BF 14 80 0D 01 02 00 00 00 00 4C [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 BF 14 00 90 00 47 [13:06:42]RAPDU: 90 00 [13:06:42]wFMCommunicate OK [13:06:42]wFMCommunicate request_size=255 [13:06:42]MH_SAM_APDU [13:06: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 E1 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 14 03 00 35 04 06 00 C5 42 34 B2 [13:06:42]Write to MH i2c: E2 02 01 C0 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 E1 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 14 03 00 35 04 06 00 C5 42 34 B2 00 00 FA [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]OFD Sender: No OFD packet to send [13:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 C0 14 00 90 00 48 [13:06:42]RAPDU: 90 00 [13:06:42]wFMCommunicate OK [13:06:42]wFMCommunicate request_size=7 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 0D 02 02 02 6C 45 [13:06:42]Write to MH i2c: E2 0A 00 C1 14 80 0D 02 02 02 00 6C 45 00 00 04 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 03 00 C1 14 00 90 00 49 [13:06:42]RAPDU: 90 00 [13:06:42]wFMCommunicate OK [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 0D 03 02 [13:06:42]Write to MH i2c: E2 08 00 C2 14 80 0D 03 02 00 00 00 00 51 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 0B 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 0B 00 C2 14 00 D6 FF EB 0A 4D A7 1C A7 90 00 D3 [13:06:42]RAPDU: D6 FF EB 0A 4D A7 1C A7 90 00 [13:06:42]wFMCommunicate OK [13:06:42]SAM_PROTO_SignData done [13:06:42]FM_MakeSignedData done [13:06:42]CreateOFDProtocolMessage [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 11 00 00 [13:06:42]Write to MH i2c: E2 08 00 C3 14 80 11 00 00 00 00 00 00 51 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 17 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 17 00 C3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A6 [13:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:06:42]wFMCommunicate OK [13:06:42]CreateOFDProtocolMessage done [13:06:42]OFDSenderStorePacket 201953 [13:06:42]StoreOFDPacket docnum=201953 [13:06:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 77 03 04 01 B0 12 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 E1 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 14 03 00 35 04 06 00 C5 42 34 B2 6C 45 D6 FF EB 0A 4D A7 1C A7 [13:06:42]CheckFolder [13:06:42]dirname=/storage/ofd_packets [13:06:42]CheckFolder done [13:06:42]ProducePacketName [13:06:42]name=ofd_packets/00201953 [13:06:42]NVStorageSaveData ofd_packets/00201953 [13:06:42]File name is /storage/ofd_packets/00201953 [13:06:42]Write 298 bytes [13:06:42]NVStorageSaveData done [13:06:42]OFDSenderStorePacket done [13:06:42]KKMCreateOFDPacket done [13:06:42]NVStorageSaveData kkm_last_timestamp [13:06:42]File name is /storage/kkm_last_timestamp [13:06:42]Write 4 bytes [13:06:42]NVStorageSaveData done [13:06:42]ExternCall_PrintAddStr [13:06:42]wPrintStart [13:06:42]Write to MH i2c: 01 00 00 C4 14 D8 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 07 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: 01 07 00 C4 14 00 00 00 00 00 FF 0F ED [13:06:42]RasterBufferAndPrint [13:06:42]line Счет N : (1)449715 [13:06:42]line ИНН: 02508201610067 [13:06:42]line Контрольно-Кассовый Чек [13:06:42]line ПРОДАЖА [13:06:42]line ТРК (МРК, ГНК) : 21 [13:06:42]line Товар: 2710194210 [13:06:42]line ДТ-К-2 [13:06:42]line 6.570 * 76.20 [13:06:42]line = 500.63 [13:06:42]line НДС 12% НСП 1% [13:06:42]line > о реализуемом товаре [13:06:42]line ОКРУГЛЕНИЕ: -0.63 [13:06:42]line ИТОГО: 500.00 [13:06:42]line Внесено: 500.00 [13:06:42]line СДАЧА: 0.00 [13:06:42]line НСП 1% : 4.43 [13:06:42]line НДС 12% : 53.16 [13:06:42]line Наличными: 500.00 [13:06:42]line Безнал.: 0.00 [13:06:42]line Место: АЗС № 171 "Партнер Нефть" [13:06:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:06:42]line СНО: Общий режим [13:06:42]line Чек 245 27.10.2024 13:06 [13:06:42]line Смена: 544 ФФД: 1.0 [13:06:42]line ЗНМ: 0300000109 [13:06:42]line РНМ: 0000000000091777 [13:06:42]line Версия ККМ: 001 [13:06:42]line ФМ: 0000000000871756 [13:06:42]line ФД: 201953 [13:06:42]line ФПД: 216888142621765 [13:06:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130641&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201953&fm=216888142621765&tin=02508201610067®Number=0000000000091777&sum=50000 [13:06:43]OFD Sender: Processing packet 201953 [packets to send 112, broken 111] [13:06:43]ProducePacketName [13:06:43]name=ofd_packets/00201953 [13:06:43]OFD Sender: To server: pG, [13:06:43]CommunicateWithHost lk.salyk.kg:30040 [13:06:43]ConnectInit lk.salyk.kg [13:06:43]written 0, free lines is 4095 [13:06:43]Connected sock=10 [13:06:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 77 03 04 01 B0 12 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 E1 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 14 03 00 35 04 06 00 C5 42 34 B2 6C 45 D6 FF EB 0A 4D A7 1C A7 [13:06:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 5B 47 00 7D 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 14 03 00 F4 03 04 00 9B E6 1D 67 B6 04 01 00 00 73 B9 A4 51 5D 88 CE D5 [13:06:43]CommunicateWithHost err = 0 [13:06:43]CheckOFDResponse [13:06:43]1017 (14) - 77093643461234 [13:06:43]1041 (16) - 0000000000871756 [13:06:43]1040 (4) - 201953 [13:06:43]1012 (4) - 27.10.2024 07:07 [13:06:43]1206 (1) - 0 [13:06:43]OFD Sender: Remove packet 201953 [13:06:43]ProducePacketName [13:06:43]name=ofd_packets/00201953 [13:06:43]NVStorageDeleteData [13:06:43]Write to MH i2c: 01 00 00 EF 14 03 [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: 01 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: 01 07 00 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: 01 07 00 EF 14 00 00 00 00 00 8C 0C A2 [13:06:43]RasterBufferAndPrint [13:06:43]line [13:06:43]line [13:06:43]line [13:06:43]line [13:06:43]line [13:06:43]written 0, free lines is 3216 [13:06:43]MH_Cut [13:06:43]Write to MH i2c: D1 01 00 F6 14 01 DC [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: D1 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: D1 01 00 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: D1 01 00 F6 14 00 DB [13:06:43]Write to MH i2c: 01 00 00 F7 14 0B [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]OFD Sender: No OFD packet to send [13:06:44]*** Cut start [13:06:44]*** Purtial cut [13:06:44]*** Stage 1: CUTSNS_PIN = 1 [13:06:44]Read from MH i2c: 01 [13:06:44]MH_I2C_Read... [13:06:44]*** Stop cut motor [13:06:44]*** Cut end [13:06:44]Read from MH i2c: 01 07 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 07 00 F7 14 00 00 00 00 00 FF 0F 20 [13:06:44]process_action close_receipt done [13:06:44]requested_data is exist [13:06:44]produce_requested_data [13:06:44]requested_item fm.sn is exist - process it [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 11 00 00 [13:06:44]Write to MH i2c: E2 08 00 F8 14 80 11 00 00 00 00 00 00 86 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 17 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 17 00 F8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DB [13:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:06:44]wFMCommunicate OK [13:06:44]requested_item fd.num is exist - process it [13:06:44]SAM_PROTO_GetFieldsCounters [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 13 00 00 [13:06:44]Write to MH i2c: E2 08 00 F9 14 80 13 00 00 00 00 00 00 89 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 62 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 62 00 F9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [13:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:44]wFMCommunicate OK [13:06:44]SAM_PROTO_GetFieldsCounters done [13:06:44]requested_item shift.num is exist - process it [13:06:44]requested_item shift.opened is exist - process it [13:06:44]req_shift_opened [13:06:44]FM_GetShiftState [13:06:44]SAM_PROTO_GetShiftState [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 13 01 00 [13:06:44]Write to MH i2c: E2 08 00 FA 14 80 13 01 00 00 00 00 00 8B [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 0E 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 0E 00 FA 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8D [13:06:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:06:44]wFMCommunicate OK [13:06:44]SAM_PROTO_GetShiftState done [13:06:44]FM_GetShiftState done [13:06:44]req_shift_opened done [13:06:44]requested_item shift.open_date is exist - process it [13:06:44]req_shift_open_date [13:06:44]req_shift_open_date done [13:06:44]produce_requested_data done [13:06:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201953,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:06:44]process_action_free close_receipt [13:06:44]json_value_free [13:06:44]json_value_free done [13:06:44]process_json_proto returns [13:06:44]Send response to host [13:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201953,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:06:44]free response buf [13:06:44]execute_script done [13:06:44]execute_script returns [13:06:44]free content buf [13:06:44]Sock 8.Close socket [13:06:44]Sock 8.Thread stoped [13:06:48]accept exits with 9 [13:06:48]New connection [13:06:48]New thread 3066498404 created [13:06:48]Thread 3066641764 joined [13:06:48]Waiting for new connection... [13:06:48] Sock 9.Parse request [13:06:48]Sock 9.Check first char [13:06:48]Sock 9.First char is OK [13:06:48]request: POST /json_proto HTTP/1.0 [13:06:48]Method: POST [13:06:48]URL: /json_proto [13:06:48]Method is POST - this is cgi request [13:06:48]url: /json_proto [13:06:48]query_string will be loaded in cgi processing [13:06:48]execute_cgi json_proto POST (null) [13:06:48]execute_cgi path=json_proto method=POST [13:06:48]POST find Content-Length [13:06:48]Host: 172.17.63.195:8080 [13:06:48]Content-Length: 677 [13:06:48]Content-Type: application/json [13:06:48] [13:06:48]POST finish read [13:06:48]Found Content-Length = 677 [13:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:48]execute_script... [13:06:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:48]POST & json_proto [13:06:48]process_json_proto [13:06:48]json parsed OK: [13:06:48]protocol is kg_v1.0 [13:06:48]action value=close_receipt [13:06:48]process_action close_receipt [13:06:48]cmd_close_receipt [13:06:48]MH_GetDate [13:06:48]Write to MH i2c: F0 00 00 FB 14 FE [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: F0 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: F0 09 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: F0 09 00 FB 14 00 E8 3A 1E 67 47 1B 1E 67 95 [13:06:48]GetLastDocTimeStamp 1730034401 [13:06:48]current date 1730034408 [13:06:48]FM_GetShiftState [13:06:48]SAM_PROTO_GetShiftState [13:06:48]wFMCommunicate request_size=4 [13:06:48]MH_SAM_APDU [13:06:48]CAPDU: 80 13 01 00 [13:06:48]Write to MH i2c: E2 08 00 FC 14 80 13 01 00 00 00 00 00 8D [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:48]Read from MH i2c: E2 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 0E 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 0E 00 FC 14 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8F [13:06:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:06:48]wFMCommunicate OK [13:06:48]SAM_PROTO_GetShiftState done [13:06:48]FM_GetShiftState done [13:06:48]opened in 1729987312 [13:06:48]opened+sec_in_day 1730073712 [13:06:48]quantity*price = 20003 [13:06:48]sum+1 = 20004 [13:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 246 27.10.2024 13:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201954 ФПД: 280758144811659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130648&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201954&fm=280758144811659&tin=02508201610067®Number=0000000000091777&sum=20000 [13:06:49]StoreToDocumentArchive [13:06:49]shift 544 fd 201954 [13:06:49]save to /storage/0544/doc_00201954 [13:06:49]save last doc name /storage/0544/doc_00201954 to /storage/kkm_last_doc_name [13:06:49]save OK [13:06:49]Clear old archive folders... [13:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:49]tlvbuf is 011AEB70 [13:06:49]SAM_PROTO_ClearQueue [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 09 00 00 [13:06:49]Write to MH i2c: E2 08 00 09 15 80 09 00 00 00 00 00 00 90 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 09 15 00 90 00 92 [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]SAM_PROTO_ClearQueue done [13:06:49]KKMCreateOFDPacket [13:06:49]OFDProtocolAddRootSTLVToBuf [13:06:49]FM_MakeSignedData [13:06:49]FM_MakeSignedData [13:06:49]SAM_PROTO_SignData [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 0D 01 02 [13:06:49]Write to MH i2c: E2 08 00 0A 15 80 0D 01 02 00 00 00 00 98 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 0A 15 00 90 00 93 [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]wFMCommunicate request_size=255 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F6 00 00 00 F4 03 04 00 E8 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 14 03 00 35 04 06 00 FF [13:06:49]Write to MH i2c: E2 02 01 0B 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F6 00 00 00 F4 03 04 00 E8 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 14 03 00 35 04 06 00 FF 00 00 A5 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 0B 15 00 90 00 94 [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]wFMCommunicate request_size=10 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 0D 02 02 05 59 19 7D 42 8B [13:06:49]Write to MH i2c: E2 0D 00 0C 15 80 0D 02 02 05 00 59 19 7D 42 8B 00 00 61 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 03 00 0C 15 00 90 00 95 [13:06:49]RAPDU: 90 00 [13:06:49]wFMCommunicate OK [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 0D 03 02 [13:06:49]Write to MH i2c: E2 08 00 0D 15 80 0D 03 02 00 00 00 00 9D [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 0B 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 0B 00 0D 15 00 9B 48 D8 EE 76 C5 1C 1E 90 00 BC [13:06:49]RAPDU: 9B 48 D8 EE 76 C5 1C 1E 90 00 [13:06:49]wFMCommunicate OK [13:06:49]SAM_PROTO_SignData done [13:06:49]FM_MakeSignedData done [13:06:49]CreateOFDProtocolMessage [13:06:49]wFMCommunicate request_size=4 [13:06:49]MH_SAM_APDU [13:06:49]CAPDU: 80 11 00 00 [13:06:49]Write to MH i2c: E2 08 00 0E 15 80 11 00 00 00 00 00 00 9D [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:49]Read from MH i2c: E2 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 17 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: E2 17 00 0E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [13:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:06:49]wFMCommunicate OK [13:06:49]CreateOFDProtocolMessage done [13:06:49]OFDSenderStorePacket 201954 [13:06:49]StoreOFDPacket docnum=201954 [13:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D0 67 07 01 67 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F6 00 00 00 F4 03 04 00 E8 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 14 03 00 35 04 06 00 FF 59 19 7D 42 8B 9B 48 D8 EE 76 C5 1C 1E [13:06:49]CheckFolder [13:06:49]dirname=/storage/ofd_packets [13:06:49]CheckFolder done [13:06:49]ProducePacketName [13:06:49]name=ofd_packets/00201954 [13:06:49]NVStorageSaveData ofd_packets/00201954 [13:06:49]File name is /storage/ofd_packets/00201954 [13:06:49]Write 301 bytes [13:06:49]NVStorageSaveData done [13:06:49]OFDSenderStorePacket done [13:06:49]KKMCreateOFDPacket done [13:06:49]NVStorageSaveData kkm_last_timestamp [13:06:49]File name is /storage/kkm_last_timestamp [13:06:49]Write 4 bytes [13:06:49]NVStorageSaveData done [13:06:49]ExternCall_PrintAddStr [13:06:49]wPrintStart [13:06:49]Write to MH i2c: 01 00 00 0F 15 24 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 0F 15 00 00 00 00 00 FF 0F 39 [13:06:49]RasterBufferAndPrint [13:06:49]line Счет N : (1)449714 [13:06:50]line ИНН: 02508201610067 [13:06:50]line Контрольно-Кассовый Чек [13:06:50]line ПРОДАЖА [13:06:50]line ТРК (МРК, ГНК) : 52 [13:06:50]line Товар: 2710124130 [13:06:50]line Аи-92-К-2 [13:06:50]line 2.990 * 66.90 [13:06:50]line = 200.03 [13:06:50]line НДС 12% НСП 1% [13:06:50]line > о реализуемом товаре [13:06:50]line ОКРУГЛЕНИЕ: -0.03 [13:06:50]line ИТОГО: 200.00 [13:06:50]line Внесено: 200.00 [13:06:50]line СДАЧА: 0.00 [13:06:50]line НСП 1% : 1.77 [13:06:50]line НДС 12% : 21.24 [13:06:50]line Наличными: 200.00 [13:06:50]line Безнал.: 0.00 [13:06:50]line Место: АЗС № 171 "Партнер Нефть" [13:06:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:06:50]line СНО: Общий режим [13:06:50]line Чек 246 27.10.2024 13:06 [13:06:50]line Смена: 544 ФФД: 1.0 [13:06:50]line ЗНМ: 0300000109 [13:06:50]line РНМ: 0000000000091777 [13:06:50]line Версия ККМ: 001 [13:06:50]line ФМ: 0000000000871756 [13:06:50]line ФД: 201954 [13:06:50]line ФПД: 280758144811659 [13:06:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130648&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201954&fm=280758144811659&tin=02508201610067®Number=0000000000091777&sum=20000 [13:06:50]written 0, free lines is 4095 [13:06:50]OFD Sender: Processing packet 201954 [packets to send 112, broken 111] [13:06:50]ProducePacketName [13:06:50]name=ofd_packets/00201954 [13:06:50]OFD Sender: To server: pG, [13:06:50]CommunicateWithHost lk.salyk.kg:30040 [13:06:50]ConnectInit lk.salyk.kg [13:06:50]Connected sock=10 [13:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D0 67 07 01 67 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F6 00 00 00 F4 03 04 00 E8 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 14 03 00 35 04 06 00 FF 59 19 7D 42 8B 9B 48 D8 EE 76 C5 1C 1E [13:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5A F5 47 00 4D A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 14 03 00 F4 03 04 00 A2 E6 1D 67 B6 04 01 00 00 EE E1 04 1B FC 8A 59 5B [13:06:50]CommunicateWithHost err = 0 [13:06:50]CheckOFDResponse [13:06:50]1017 (14) - 77093643461234 [13:06:50]1041 (16) - 0000000000871756 [13:06:50]1040 (4) - 201954 [13:06:50]1012 (4) - 27.10.2024 07:07 [13:06:50]1206 (1) - 0 [13:06:50]OFD Sender: Remove packet 201954 [13:06:50]ProducePacketName [13:06:50]name=ofd_packets/00201954 [13:06:50]NVStorageDeleteData [13:06:50]Write to MH i2c: 01 00 00 3A 15 4F [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 07 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 07 00 3A 15 00 00 00 00 00 8A 0C EC [13:06:50]RasterBufferAndPrint [13:06:50]line [13:06:50]line [13:06:50]line [13:06:50]line [13:06:50]line [13:06:50]written 0, free lines is 3216 [13:06:50]MH_Cut [13:06:50]Write to MH i2c: D1 01 00 41 15 01 28 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: D1 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: D1 01 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: D1 01 00 41 15 00 27 [13:06:50]Write to MH i2c: 01 00 00 42 15 57 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]OFD Sender: No OFD packet to send [13:06:51]*** Cut start [13:06:51]*** Purtial cut [13:06:51]*** Stage 1: CUTSNS_PIN = 1 [13:06:51]Read from MH i2c: 01 [13:06:51]MH_I2C_Read... [13:06:51]*** Stop cut motor [13:06:51]*** Cut end [13:06:51]Read from MH i2c: 01 07 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 42 15 00 00 00 00 00 FF 0F 6C [13:06:51]process_action close_receipt done [13:06:51]requested_data is exist [13:06:51]produce_requested_data [13:06:51]requested_item fm.sn is exist - process it [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 11 00 00 [13:06:51]Write to MH i2c: E2 08 00 43 15 80 11 00 00 00 00 00 00 D2 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 43 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [13:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:06:51]wFMCommunicate OK [13:06:51]requested_item fd.num is exist - process it [13:06:51]SAM_PROTO_GetFieldsCounters [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 13 00 00 [13:06:51]Write to MH i2c: E2 08 00 44 15 80 13 00 00 00 00 00 00 D5 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 62 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 62 00 44 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [13:06:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_GetFieldsCounters done [13:06:51]requested_item shift.num is exist - process it [13:06:51]requested_item shift.opened is exist - process it [13:06:51]req_shift_opened [13:06:51]FM_GetShiftState [13:06:51]SAM_PROTO_GetShiftState [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 13 01 00 [13:06:51]Write to MH i2c: E2 08 00 45 15 80 13 01 00 00 00 00 00 D7 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0E 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0E 00 45 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D9 [13:06:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_GetShiftState done [13:06:51]FM_GetShiftState done [13:06:51]req_shift_opened done [13:06:51]requested_item shift.open_date is exist - process it [13:06:51]req_shift_open_date [13:06:51]req_shift_open_date done [13:06:51]produce_requested_data done [13:06:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201954,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:06:51]process_action_free close_receipt [13:06:51]json_value_free [13:06:51]json_value_free done [13:06:51]process_json_proto returns [13:06:51]Send response to host [13:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201954,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:06:51]free response buf [13:06:51]execute_script done [13:06:51]execute_script returns [13:06:51]free content buf [13:06:51]Sock 9.Close socket [13:06:51]Sock 9.Thread stoped [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:02]accept exits with 8 [13:07:02]New connection [13:07:02]New thread 3066641764 created [13:07:02]Thread 3066498404 joined [13:07:02]Waiting for new connection... [13:07:02] Sock 8.Parse request [13:07:02]Sock 8.Check first char [13:07:02]Sock 8.First char is OK [13:07:02]request: POST /json_proto HTTP/1.0 [13:07:02]Method: POST [13:07:02]URL: /json_proto [13:07:02]Method is POST - this is cgi request [13:07:02]url: /json_proto [13:07:02]query_string will be loaded in cgi processing [13:07:02]execute_cgi json_proto POST (null) [13:07:02]execute_cgi path=json_proto method=POST [13:07:02]POST find Content-Length [13:07:02]Host: 172.17.63.195:8080 [13:07:02]Content-Length: 677 [13:07:02]Content-Type: application/json [13:07:02] [13:07:02]POST finish read [13:07:02]Found Content-Length = 677 [13:07:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:02]execute_script... [13:07: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)449716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:02]POST & json_proto [13:07:02]process_json_proto [13:07:02]json parsed OK: [13:07:02]protocol is kg_v1.0 [13:07:02]action value=close_receipt [13:07:02]process_action close_receipt [13:07:02]cmd_close_receipt [13:07:02]MH_GetDate [13:07:02]Write to MH i2c: F0 00 00 46 15 4A [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: F0 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: F0 09 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: F0 09 00 46 15 00 F7 3A 1E 67 47 1B 1E 67 F0 [13:07:02]GetLastDocTimeStamp 1730034408 [13:07:02]current date 1730034423 [13:07:02]FM_GetShiftState [13:07:02]SAM_PROTO_GetShiftState [13:07:02]wFMCommunicate request_size=4 [13:07:02]MH_SAM_APDU [13:07:02]CAPDU: 80 13 01 00 [13:07:02]Write to MH i2c: E2 08 00 47 15 80 13 01 00 00 00 00 00 D9 [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:02]Read from MH i2c: E2 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 0E 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 0E 00 47 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DB [13:07:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:07:02]wFMCommunicate OK [13:07:02]SAM_PROTO_GetShiftState done [13:07:02]FM_GetShiftState done [13:07:02]opened in 1729987312 [13:07:02]opened+sec_in_day 1730073712 [13:07:02]quantity*price = 50010 [13:07:02]sum+1 = 50012 [13:07:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 247 27.10.2024 13:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201955 ФПД: 15558372389204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130703&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201955&fm=15558372389204&tin=02508201610067®Number=0000000000091777&sum=50000 [13:07:03]StoreToDocumentArchive [13:07:03]shift 544 fd 201955 [13:07:03]save to /storage/0544/doc_00201955 [13:07:03]save last doc name /storage/0544/doc_00201955 to /storage/kkm_last_doc_name [13:07:03]save OK [13:07:03]Clear old archive folders... [13:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:03]tlvbuf is 0123D4C0 [13:07:03]SAM_PROTO_ClearQueue [13:07:03]wFMCommunicate request_size=4 [13:07:03]MH_SAM_APDU [13:07:03]CAPDU: 80 09 00 00 [13:07:03]Write to MH i2c: E2 08 00 54 15 80 09 00 00 00 00 00 00 DB [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:03]Read from MH i2c: E2 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 03 00 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 03 00 54 15 00 90 00 DD [13:07:03]RAPDU: 90 00 [13:07:03]wFMCommunicate OK [13:07:03]SAM_PROTO_ClearQueue done [13:07:03]KKMCreateOFDPacket [13:07:03]OFDProtocolAddRootSTLVToBuf [13:07:03]FM_MakeSignedData [13:07:03]FM_MakeSignedData [13:07:03]SAM_PROTO_SignData [13:07:03]wFMCommunicate request_size=4 [13:07:03]MH_SAM_APDU [13:07:03]CAPDU: 80 0D 01 02 [13:07:03]Write to MH i2c: E2 08 00 55 15 80 0D 01 02 00 00 00 00 E3 [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:03]Read from MH i2c: E2 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 03 00 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 03 00 55 15 00 90 00 DE [13:07:03]RAPDU: 90 00 [13:07:03]wFMCommunicate OK [13:07:03]wFMCommunicate request_size=255 [13:07:03]MH_SAM_APDU [13:07:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F7 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 14 03 00 35 04 06 00 0E [13:07:03]Write to MH i2c: E2 02 01 56 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F7 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 14 03 00 35 04 06 00 0E 00 00 27 [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:03]Read from MH i2c: E2 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 03 00 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 03 00 56 15 00 90 00 DF [13:07:03]RAPDU: 90 00 [13:07:03]wFMCommunicate OK [13:07:03]wFMCommunicate request_size=10 [13:07:03]MH_SAM_APDU [13:07:03]CAPDU: 80 0D 02 02 05 26 77 42 71 54 [13:07:03]Write to MH i2c: E2 0D 00 57 15 80 0D 02 02 05 00 26 77 42 71 54 00 00 94 [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:03]Read from MH i2c: E2 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 03 00 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: E2 03 00 57 15 00 90 00 E0 [13:07:03]RAPDU: 90 00 [13:07:03]wFMCommunicate OK [13:07:03]wFMCommunicate request_size=4 [13:07:03]MH_SAM_APDU [13:07:03]CAPDU: 80 0D 03 02 [13:07:03]Write to MH i2c: E2 08 00 58 15 80 0D 03 02 00 00 00 00 E8 [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:04]Read from MH i2c: E2 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 0B 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 0B 00 58 15 00 20 29 38 59 CA 08 CF 31 90 00 95 [13:07:04]RAPDU: 20 29 38 59 CA 08 CF 31 90 00 [13:07:04]wFMCommunicate OK [13:07:04]SAM_PROTO_SignData done [13:07:04]FM_MakeSignedData done [13:07:04]CreateOFDProtocolMessage [13:07:04]wFMCommunicate request_size=4 [13:07:04]MH_SAM_APDU [13:07:04]CAPDU: 80 11 00 00 [13:07:04]Write to MH i2c: E2 08 00 59 15 80 11 00 00 00 00 00 00 E8 [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:04]Read from MH i2c: E2 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 17 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 17 00 59 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [13:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:07:04]wFMCommunicate OK [13:07:04]CreateOFDProtocolMessage done [13:07:04]OFDSenderStorePacket 201955 [13:07:04]StoreOFDPacket docnum=201955 [13:07:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FD 7F 07 01 7F 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F7 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 14 03 00 35 04 06 00 0E 26 77 42 71 54 20 29 38 59 CA 08 CF 31 [13:07:04]CheckFolder [13:07:04]dirname=/storage/ofd_packets [13:07:04]CheckFolder done [13:07:04]ProducePacketName [13:07:04]name=ofd_packets/00201955 [13:07:04]NVStorageSaveData ofd_packets/00201955 [13:07:04]File name is /storage/ofd_packets/00201955 [13:07:04]Write 301 bytes [13:07:04]NVStorageSaveData done [13:07:04]OFDSenderStorePacket done [13:07:04]KKMCreateOFDPacket done [13:07:04]NVStorageSaveData kkm_last_timestamp [13:07:04]File name is /storage/kkm_last_timestamp [13:07:04]Write 4 bytes [13:07:04]NVStorageSaveData done [13:07:04]ExternCall_PrintAddStr [13:07:04]wPrintStart [13:07:04]Write to MH i2c: 01 00 00 5A 15 6F [13:07:04]OFD Sender: Processing packet 201955 [packets to send 112, broken 111] [13:07:04]ProducePacketName [13:07:04]name=ofd_packets/00201955 [13:07:04]OFD Sender: To server: pG, [13:07:04]CommunicateWithHost lk.salyk.kg:30040 [13:07:04]ConnectInit lk.salyk.kg [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: 01 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: 01 07 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: 01 07 00 5A 15 00 00 00 00 00 FF 0F 84 [13:07:04]RasterBufferAndPrint [13:07:04]line Счет N : (1)449716 [13:07:04]line ИНН: 02508201610067 [13:07:04]line Контрольно-Кассовый Чек [13:07:04]line ПРОДАЖА [13:07:04]line ТРК (МРК, ГНК) : 61 [13:07:04]line Товар: 2710124500 [13:07:04]line Аи-95-К-3 [13:07:04]line 6.740 * 74.20 [13:07:04]line = 500.11 [13:07:04]line НДС 12% НСП 1% [13:07:04]line > о реализуемом товаре [13:07:04]line ОКРУГЛЕНИЕ: -0.11 [13:07:04]line ИТОГО: 500.00 [13:07:04]line Внесено: 500.00 [13:07:04]line СДАЧА: 0.00 [13:07:04]line НСП 1% : 4.43 [13:07:04]line НДС 12% : 53.11 [13:07:04]line Наличными: 500.00 [13:07:04]line Безнал.: 0.00 [13:07:04]line Место: АЗС № 171 "Партнер Нефть" [13:07:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:07:04]line СНО: Общий режим [13:07:04]line Чек 247 27.10.2024 13:07 [13:07:04]line Смена: 544 ФФД: 1.0 [13:07:04]line ЗНМ: 0300000109 [13:07:04]line РНМ: 0000000000091777 [13:07:04]line Версия ККМ: 001 [13:07:04]line ФМ: 0000000000871756 [13:07:04]line ФД: 201955 [13:07:04]line ФПД: 15558372389204 [13:07:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130703&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201955&fm=15558372389204&tin=02508201610067®Number=0000000000091777&sum=50000 [13:07:04]written 0, free lines is 4095 [13:07:04]Connected sock=10 [13:07:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FD 7F 07 01 7F 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 F7 3A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 14 03 00 35 04 06 00 0E 26 77 42 71 54 20 29 38 59 CA 08 CF 31 [13:07:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6D 01 47 00 88 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 14 03 00 F4 03 04 00 B0 E6 1D 67 B6 04 01 00 00 84 23 BB 21 D6 85 06 EC [13:07:04]CommunicateWithHost err = 0 [13:07:04]CheckOFDResponse [13:07:04]1017 (14) - 77093643461234 [13:07:04]1041 (16) - 0000000000871756 [13:07:04]1040 (4) - 201955 [13:07:04]1012 (4) - 27.10.2024 07:07 [13:07:04]1206 (1) - 0 [13:07:04]OFD Sender: Remove packet 201955 [13:07:04]ProducePacketName [13:07:04]name=ofd_packets/00201955 [13:07:04]NVStorageDeleteData [13:07:04]Write to MH i2c: 01 00 00 85 15 9A [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: 01 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: 01 07 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: 01 07 00 85 15 00 00 00 00 00 87 0C 34 [13:07:04]RasterBufferAndPrint [13:07:04]line [13:07:04]line [13:07:04]line [13:07:04]line [13:07:04]line [13:07:04]written 0, free lines is 3216 [13:07:04]MH_Cut [13:07:04]Write to MH i2c: D1 01 00 8C 15 01 73 [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: D1 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: D1 01 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: D1 01 00 8C 15 00 72 [13:07:04]Write to MH i2c: 01 00 00 8D 15 A2 [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]OFD Sender: No OFD packet to send [13:07:05]*** Cut start [13:07:05]*** Purtial cut [13:07:05]*** Stage 1: CUTSNS_PIN = 1 [13:07:05]Read from MH i2c: 01 [13:07:05]MH_I2C_Read... [13:07:05]*** Stop cut motor [13:07:05]*** Cut end [13:07:05]Read from MH i2c: 01 07 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: 01 07 00 8D 15 00 00 00 00 00 FF 0F B7 [13:07:05]process_action close_receipt done [13:07:05]requested_data is exist [13:07:05]produce_requested_data [13:07:05]requested_item fm.sn is exist - process it [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 11 00 00 [13:07:05]Write to MH i2c: E2 08 00 8E 15 80 11 00 00 00 00 00 00 1D [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 17 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 17 00 8E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [13:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:07:05]wFMCommunicate OK [13:07:05]requested_item fd.num is exist - process it [13:07:05]SAM_PROTO_GetFieldsCounters [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 13 00 00 [13:07:05]Write to MH i2c: E2 08 00 8F 15 80 13 00 00 00 00 00 00 20 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 62 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 62 00 8F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [13:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:05]wFMCommunicate OK [13:07:05]SAM_PROTO_GetFieldsCounters done [13:07:05]requested_item shift.num is exist - process it [13:07:05]requested_item shift.opened is exist - process it [13:07:05]req_shift_opened [13:07:05]FM_GetShiftState [13:07:05]SAM_PROTO_GetShiftState [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 13 01 00 [13:07:05]Write to MH i2c: E2 08 00 90 15 80 13 01 00 00 00 00 00 22 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 0E 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 0E 00 90 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 24 [13:07:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:07:06]wFMCommunicate OK [13:07:06]SAM_PROTO_GetShiftState done [13:07:06]FM_GetShiftState done [13:07:06]req_shift_opened done [13:07:06]requested_item shift.open_date is exist - process it [13:07:06]req_shift_open_date [13:07:06]req_shift_open_date done [13:07:06]produce_requested_data done [13:07:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201955,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:07:06]process_action_free close_receipt [13:07:06]json_value_free [13:07:06]json_value_free done [13:07:06]process_json_proto returns [13:07:06]Send response to host [13:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201955,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:07:06]free response buf [13:07:06]execute_script done [13:07:06]execute_script returns [13:07:06]free content buf [13:07:06]Sock 8.Close socket [13:07:06]Sock 8.Thread stoped [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:42]accept exits with 9 [13:07:42]New connection [13:07:42]New thread 3066498404 created [13:07:42]Thread 3066641764 joined [13:07:42]Waiting for new connection... [13:07:42] Sock 9.Parse request [13:07:42]Sock 9.Check first char [13:07:42]Sock 9.First char is OK [13:07:42]request: POST /json_proto HTTP/1.0 [13:07:42]Method: POST [13:07:42]URL: /json_proto [13:07:42]Method is POST - this is cgi request [13:07:42]url: /json_proto [13:07:42]query_string will be loaded in cgi processing [13:07:42]execute_cgi json_proto POST (null) [13:07:42]execute_cgi path=json_proto method=POST [13:07:42]POST find Content-Length [13:07:42]Host: 172.17.63.195:8080 [13:07:42]Content-Length: 674 [13:07:42]Content-Type: application/json [13:07:42] [13:07:42]POST finish read [13:07:42]Found Content-Length = 674 [13:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:42]execute_script... [13:07:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:42]POST & json_proto [13:07:42]process_json_proto [13:07:42]json parsed OK: [13:07:42]protocol is kg_v1.0 [13:07:42]action value=close_receipt [13:07:42]process_action close_receipt [13:07:42]cmd_close_receipt [13:07:42]MH_GetDate [13:07:42]Write to MH i2c: F0 00 00 91 15 95 [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 09 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 09 00 91 15 00 1E 3B 1E 67 47 1B 1E 67 63 [13:07:42]GetLastDocTimeStamp 1730034423 [13:07:42]current date 1730034462 [13:07:42]FM_GetShiftState [13:07:42]SAM_PROTO_GetShiftState [13:07:42]wFMCommunicate request_size=4 [13:07:42]MH_SAM_APDU [13:07:42]CAPDU: 80 13 01 00 [13:07:42]Write to MH i2c: E2 08 00 92 15 80 13 01 00 00 00 00 00 24 [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:42]Read from MH i2c: E2 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 0E 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 0E 00 92 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 26 [13:07:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:07:42]wFMCommunicate OK [13:07:42]SAM_PROTO_GetShiftState done [13:07:42]FM_GetShiftState done [13:07:42]opened in 1729987312 [13:07:42]opened+sec_in_day 1730073712 [13:07:42]quantity*price = 50063 [13:07:42]sum+1 = 50064 [13:07:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 248 27.10.2024 13:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201956 ФПД: 214051643940243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130742&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201956&fm=214051643940243&tin=02508201610067®Number=0000000000091777&sum=50000 [13:07:43]StoreToDocumentArchive [13:07:43]shift 544 fd 201956 [13:07:43]save to /storage/0544/doc_00201956 [13:07:43]save last doc name /storage/0544/doc_00201956 to /storage/kkm_last_doc_name [13:07:43]save OK [13:07:43]Clear old archive folders... [13:07:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:07:43]tlvbuf is 01219040 [13:07:43]SAM_PROTO_ClearQueue [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 09 00 00 [13:07:43]Write to MH i2c: E2 08 00 9F 15 80 09 00 00 00 00 00 00 26 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 9F 15 00 90 00 28 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]SAM_PROTO_ClearQueue done [13:07:43]KKMCreateOFDPacket [13:07:43]OFDProtocolAddRootSTLVToBuf [13:07:43]FM_MakeSignedData [13:07:43]FM_MakeSignedData [13:07:43]SAM_PROTO_SignData [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 01 02 [13:07:43]Write to MH i2c: E2 08 00 A0 15 80 0D 01 02 00 00 00 00 2E [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 A0 15 00 90 00 29 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=255 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1E 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 14 03 00 35 04 06 00 C2 AD C8 33 [13:07:43]Write to MH i2c: E2 02 01 A1 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1E 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 14 03 00 35 04 06 00 C2 AD C8 33 00 00 9D [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 A1 15 00 90 00 2A [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=7 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 02 02 02 5D 93 [13:07:43]Write to MH i2c: E2 0A 00 A2 15 80 0D 02 02 02 00 5D 93 00 00 25 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 A2 15 00 90 00 2B [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 03 02 [13:07:43]Write to MH i2c: E2 08 00 A3 15 80 0D 03 02 00 00 00 00 33 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 0B 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 0B 00 A3 15 00 26 17 0C CE 4E 2E EA 6D 90 00 1E [13:07:43]RAPDU: 26 17 0C CE 4E 2E EA 6D 90 00 [13:07:43]wFMCommunicate OK [13:07:43]SAM_PROTO_SignData done [13:07:43]FM_MakeSignedData done [13:07:43]CreateOFDProtocolMessage [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 11 00 00 [13:07:43]Write to MH i2c: E2 08 00 A4 15 80 11 00 00 00 00 00 00 33 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 17 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 17 00 A4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [13:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:07:43]wFMCommunicate OK [13:07:43]CreateOFDProtocolMessage done [13:07:43]OFDSenderStorePacket 201956 [13:07:43]StoreOFDPacket docnum=201956 [13:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F4 B3 04 01 D8 4C 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1E 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 14 03 00 35 04 06 00 C2 AD C8 33 5D 93 26 17 0C CE 4E 2E EA 6D [13:07:43]CheckFolder [13:07:43]dirname=/storage/ofd_packets [13:07:43]CheckFolder done [13:07:43]ProducePacketName [13:07:43]name=ofd_packets/00201956 [13:07:43]NVStorageSaveData ofd_packets/00201956 [13:07:43]File name is /storage/ofd_packets/00201956 [13:07:43]Write 298 bytes [13:07:43]NVStorageSaveData done [13:07:43]OFDSenderStorePacket done [13:07:43]KKMCreateOFDPacket done [13:07:43]NVStorageSaveData kkm_last_timestamp [13:07:43]File name is /storage/kkm_last_timestamp [13:07:43]Write 4 bytes [13:07:43]NVStorageSaveData done [13:07:43]ExternCall_PrintAddStr [13:07:43]wPrintStart [13:07:43]Write to MH i2c: 01 00 00 A5 15 BA [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 07 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: 01 07 00 A5 15 00 00 00 00 00 FF 0F CF [13:07:43]RasterBufferAndPrint [13:07:43]line Счет N : (1)449717 [13:07:43]line ИНН: 02508201610067 [13:07:43]line Контрольно-Кассовый Чек [13:07:43]line ПРОДАЖА [13:07:43]line ТРК (МРК, ГНК) : 43 [13:07:43]line Товар: 2710194210 [13:07:43]line ДТ-К-2 [13:07:43]line 6.570 * 76.20 [13:07:43]line = 500.63 [13:07:43]line НДС 12% НСП 1% [13:07:43]line > о реализуемом товаре [13:07:43]line ОКРУГЛЕНИЕ: -0.63 [13:07:43]line ИТОГО: 500.00 [13:07:43]line Внесено: 500.00 [13:07:43]line СДАЧА: 0.00 [13:07:43]line НСП 1% : 4.43 [13:07:43]line НДС 12% : 53.16 [13:07:43]line Наличными: 500.00 [13:07:43]line Безнал.: 0.00 [13:07:43]line Место: АЗС № 171 "Партнер Нефть" [13:07:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:07:43]line СНО: Общий режим [13:07:43]line Чек 248 27.10.2024 13:07 [13:07:43]line Смена: 544 ФФД: 1.0 [13:07:43]line ЗНМ: 0300000109 [13:07:43]line РНМ: 0000000000091777 [13:07:43]line Версия ККМ: 001 [13:07:43]line ФМ: 0000000000871756 [13:07:43]line ФД: 201956 [13:07:43]line ФПД: 214051643940243 [13:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130742&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201956&fm=214051643940243&tin=02508201610067®Number=0000000000091777&sum=50000 [13:07:43]written 0, free lines is 4095 [13:07:43]OFD Sender: Processing packet 201956 [packets to send 112, broken 111] [13:07:43]ProducePacketName [13:07:43]name=ofd_packets/00201956 [13:07:43]OFD Sender: To server: pG, [13:07:43]CommunicateWithHost lk.salyk.kg:30040 [13:07:43]ConnectInit lk.salyk.kg [13:07:44]Connected sock=8 [13:07:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F4 B3 04 01 D8 4C 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1E 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 14 03 00 35 04 06 00 C2 AD C8 33 5D 93 26 17 0C CE 4E 2E EA 6D [13:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C 50 47 00 0C DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 14 03 00 F4 03 04 00 D8 E6 1D 67 B6 04 01 00 00 28 AA 70 64 69 2C 0F 54 [13:07:44]CommunicateWithHost err = 0 [13:07:44]CheckOFDResponse [13:07:44]1017 (14) - 77093643461234 [13:07:44]1041 (16) - 0000000000871756 [13:07:44]1040 (4) - 201956 [13:07:44]1012 (4) - 27.10.2024 07:08 [13:07:44]1206 (1) - 0 [13:07:44]OFD Sender: Remove packet 201956 [13:07:44]ProducePacketName [13:07:44]name=ofd_packets/00201956 [13:07:44]NVStorageDeleteData [13:07:44]Write to MH i2c: 01 00 00 D0 15 E5 [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 07 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 07 00 D0 15 00 00 00 00 00 93 0C 8B [13:07:44]RasterBufferAndPrint [13:07:44]line [13:07:44]line [13:07:44]line [13:07:44]line [13:07:44]line [13:07:44]written 0, free lines is 3225 [13:07:44]MH_Cut [13:07:44]Write to MH i2c: D1 01 00 D7 15 01 BE [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: D1 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: D1 01 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: D1 01 00 D7 15 00 BD [13:07:44]Write to MH i2c: 01 00 00 D8 15 ED [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]OFD Sender: No OFD packet to send [13:07:45]*** Cut start [13:07:45]*** Purtial cut [13:07:45]*** Stage 1: CUTSNS_PIN = 1 [13:07:45]Read from MH i2c: 01 [13:07:45]MH_I2C_Read... [13:07:45]*** Stop cut motor [13:07:45]*** Cut end [13:07:45]Read from MH i2c: 01 07 00 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: 01 07 00 D8 15 00 00 00 00 00 FF 0F 02 [13:07:45]process_action close_receipt done [13:07:45]requested_data is exist [13:07:45]produce_requested_data [13:07:45]requested_item fm.sn is exist - process it [13:07:45]wFMCommunicate request_size=4 [13:07:45]MH_SAM_APDU [13:07:45]CAPDU: 80 11 00 00 [13:07:45]Write to MH i2c: E2 08 00 D9 15 80 11 00 00 00 00 00 00 68 [13:07:45]Write i2c OK [13:07:45]MH_I2C_Read... [13:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:45]Read from MH i2c: E2 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: E2 17 00 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: E2 17 00 D9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [13:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:07:45]wFMCommunicate OK [13:07:45]requested_item fd.num is exist - process it [13:07:45]SAM_PROTO_GetFieldsCounters [13:07:45]wFMCommunicate request_size=4 [13:07:45]MH_SAM_APDU [13:07:45]CAPDU: 80 13 00 00 [13:07:45]Write to MH i2c: E2 08 00 DA 15 80 13 00 00 00 00 00 00 6B [13:07:45]Write i2c OK [13:07:45]MH_I2C_Read... [13:07:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:45]Read from MH i2c: E2 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: E2 62 00 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: E2 62 00 DA 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [13:07:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:45]wFMCommunicate OK [13:07:45]SAM_PROTO_GetFieldsCounters done [13:07:45]requested_item shift.num is exist - process it [13:07:45]requested_item shift.opened is exist - process it [13:07:45]req_shift_opened [13:07:45]FM_GetShiftState [13:07:45]SAM_PROTO_GetShiftState [13:07:45]wFMCommunicate request_size=4 [13:07:45]MH_SAM_APDU [13:07:45]CAPDU: 80 13 01 00 [13:07:45]Write to MH i2c: E2 08 00 DB 15 80 13 01 00 00 00 00 00 6D [13:07:45]Write i2c OK [13:07:45]MH_I2C_Read... [13:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:45]Read from MH i2c: E2 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: E2 0E 00 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: E2 0E 00 DB 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6F [13:07:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:07:45]wFMCommunicate OK [13:07:45]SAM_PROTO_GetShiftState done [13:07:45]FM_GetShiftState done [13:07:45]req_shift_opened done [13:07:45]requested_item shift.open_date is exist - process it [13:07:45]req_shift_open_date [13:07:45]req_shift_open_date done [13:07:45]produce_requested_data done [13:07:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201956,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:07:45]process_action_free close_receipt [13:07:45]json_value_free [13:07:45]json_value_free done [13:07:45]process_json_proto returns [13:07:45]Send response to host [13:07:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201956,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:07:45]free response buf [13:07:45]execute_script done [13:07:45]execute_script returns [13:07:45]free content buf [13:07:45]Sock 9.Close socket [13:07:45]Sock 9.Thread stoped [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:21]accept exits with 10 [13:08:21]New connection [13:08:21]New thread 3066641764 created [13:08:21]Thread 3066498404 joined [13:08:21]Waiting for new connection... [13:08:21] Sock 10.Parse request [13:08:21]Sock 10.Check first char [13:08:21]Sock 10.First char is OK [13:08:21]request: POST /json_proto HTTP/1.0 [13:08:21]Method: POST [13:08:21]URL: /json_proto [13:08:21]Method is POST - this is cgi request [13:08:21]url: /json_proto [13:08:21]query_string will be loaded in cgi processing [13:08:21]execute_cgi json_proto POST (null) [13:08:21]execute_cgi path=json_proto method=POST [13:08:21]POST find Content-Length [13:08:21]Host: 172.17.63.195:8080 [13:08:21]Content-Length: 674 [13:08:21]Content-Type: application/json [13:08:21] [13:08:21]POST finish read [13:08:21]Found Content-Length = 674 [13:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:08:21]execute_script... [13:08: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)449718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:08:21]POST & json_proto [13:08:21]process_json_proto [13:08:21]json parsed OK: [13:08:21]protocol is kg_v1.0 [13:08:21]action value=close_receipt [13:08:21]process_action close_receipt [13:08:21]cmd_close_receipt [13:08:21]MH_GetDate [13:08:21]Write to MH i2c: F0 00 00 DC 15 E0 [13:08:21]Write i2c OK [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: F0 [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: F0 09 00 [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: F0 09 00 DC 15 00 45 3B 1E 67 47 1B 1E 67 D5 [13:08:21]GetLastDocTimeStamp 1730034462 [13:08:21]current date 1730034501 [13:08:21]FM_GetShiftState [13:08:21]SAM_PROTO_GetShiftState [13:08:21]wFMCommunicate request_size=4 [13:08:21]MH_SAM_APDU [13:08:21]CAPDU: 80 13 01 00 [13:08:21]Write to MH i2c: E2 08 00 DD 15 80 13 01 00 00 00 00 00 6F [13:08:21]Write i2c OK [13:08:21]MH_I2C_Read... [13:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:21]Read from MH i2c: E2 [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: E2 0E 00 [13:08:21]MH_I2C_Read... [13:08:21]Read from MH i2c: E2 0E 00 DD 15 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 71 [13:08:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:08:21]wFMCommunicate OK [13:08:21]SAM_PROTO_GetShiftState done [13:08:21]FM_GetShiftState done [13:08:21]opened in 1729987312 [13:08:21]opened+sec_in_day 1730073712 [13:08:21]quantity*price = 70027 [13:08:21]sum+1 = 70029 [13:08:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 249 27.10.2024 13:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201957 ФПД: 63935894760673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130822&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201957&fm=63935894760673&tin=02508201610067®Number=0000000000091777&sum=70000 [13:08:22]StoreToDocumentArchive [13:08:22]shift 544 fd 201957 [13:08:22]save to /storage/0544/doc_00201957 [13:08:22]save last doc name /storage/0544/doc_00201957 to /storage/kkm_last_doc_name [13:08:22]save OK [13:08:22]Clear old archive folders... [13:08:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:22]tlvbuf is B6E75EF0 [13:08:22]SAM_PROTO_ClearQueue [13:08:22]wFMCommunicate request_size=4 [13:08:22]MH_SAM_APDU [13:08:22]CAPDU: 80 09 00 00 [13:08:22]Write to MH i2c: E2 08 00 EA 15 80 09 00 00 00 00 00 00 71 [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:22]Read from MH i2c: E2 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 03 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [13:08:22]RAPDU: 90 00 [13:08:22]wFMCommunicate OK [13:08:22]SAM_PROTO_ClearQueue done [13:08:22]KKMCreateOFDPacket [13:08:22]OFDProtocolAddRootSTLVToBuf [13:08:22]FM_MakeSignedData [13:08:22]FM_MakeSignedData [13:08:22]SAM_PROTO_SignData [13:08:22]wFMCommunicate request_size=4 [13:08:22]MH_SAM_APDU [13:08:22]CAPDU: 80 0D 01 02 [13:08:22]Write to MH i2c: E2 08 00 EB 15 80 0D 01 02 00 00 00 00 79 [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:22]Read from MH i2c: E2 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 03 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 03 00 EB 15 00 90 00 74 [13:08:22]RAPDU: 90 00 [13:08:22]wFMCommunicate OK [13:08:22]wFMCommunicate request_size=255 [13:08:22]MH_SAM_APDU [13:08: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 32 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 F9 00 00 00 F4 03 04 00 46 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 14 03 00 35 04 06 00 3A 26 3C 4B [13:08:22]Write to MH i2c: E2 02 01 EC 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 F9 00 00 00 F4 03 04 00 46 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 14 03 00 35 04 06 00 3A 26 3C 4B 00 00 03 [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:22]Read from MH i2c: E2 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 03 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 03 00 EC 15 00 90 00 75 [13:08:22]RAPDU: 90 00 [13:08:22]wFMCommunicate OK [13:08:22]wFMCommunicate request_size=7 [13:08:22]MH_SAM_APDU [13:08:22]CAPDU: 80 0D 02 02 02 AC E1 [13:08:22]Write to MH i2c: E2 0A 00 ED 15 80 0D 02 02 02 00 AC E1 00 00 0D [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:22]Read from MH i2c: E2 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 03 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [13:08:22]RAPDU: 90 00 [13:08:22]wFMCommunicate OK [13:08:22]wFMCommunicate request_size=4 [13:08:22]MH_SAM_APDU [13:08:22]CAPDU: 80 0D 03 02 [13:08:22]Write to MH i2c: E2 08 00 EE 15 80 0D 03 02 00 00 00 00 7E [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:22]Read from MH i2c: E2 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 0B 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 0B 00 EE 15 00 83 78 31 9E 74 6F 70 F5 90 00 91 [13:08:22]RAPDU: 83 78 31 9E 74 6F 70 F5 90 00 [13:08:22]wFMCommunicate OK [13:08:22]SAM_PROTO_SignData done [13:08:22]FM_MakeSignedData done [13:08:22]CreateOFDProtocolMessage [13:08:22]wFMCommunicate request_size=4 [13:08:22]MH_SAM_APDU [13:08:22]CAPDU: 80 11 00 00 [13:08:22]Write to MH i2c: E2 08 00 EF 15 80 11 00 00 00 00 00 00 7E [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:22]Read from MH i2c: E2 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 17 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 17 00 EF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [13:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:08:22]wFMCommunicate OK [13:08:22]CreateOFDProtocolMessage done [13:08:22]OFDSenderStorePacket 201957 [13:08:22]StoreOFDPacket docnum=201957 [13:08:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 57 1F 04 01 06 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 F9 00 00 00 F4 03 04 00 46 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 14 03 00 35 04 06 00 3A 26 3C 4B AC E1 83 78 31 9E 74 6F 70 F5 [13:08:22]CheckFolder [13:08:22]dirname=/storage/ofd_packets [13:08:22]CheckFolder done [13:08:22]ProducePacketName [13:08:22]name=ofd_packets/00201957 [13:08:22]NVStorageSaveData ofd_packets/00201957 [13:08:22]File name is /storage/ofd_packets/00201957 [13:08:22]Write 298 bytes [13:08:22]NVStorageSaveData done [13:08:22]OFDSenderStorePacket done [13:08:22]KKMCreateOFDPacket done [13:08:22]NVStorageSaveData kkm_last_timestamp [13:08:22]File name is /storage/kkm_last_timestamp [13:08:22]Write 4 bytes [13:08:22]NVStorageSaveData done [13:08:22]ExternCall_PrintAddStr [13:08:22]wPrintStart [13:08:22]Write to MH i2c: 01 00 00 F0 15 05 [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: 01 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: 01 07 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: 01 07 00 F0 15 00 00 00 00 00 FF 0F 1A [13:08:22]RasterBufferAndPrint [13:08:22]line Счет N : (1)449718 [13:08:22]line ИНН: 02508201610067 [13:08:22]line Контрольно-Кассовый Чек [13:08:22]line ПРОДАЖА [13:08:22]line ТРК (МРК, ГНК) : 33 [13:08:22]line Товар: 2710194210 [13:08:22]line ДТ-К-2 [13:08:22]line 9.190 * 76.20 [13:08:22]line = 700.28 [13:08:22]line НДС 12% НСП 1% [13:08:22]line > о реализуемом товаре [13:08:22]line ОКРУГЛЕНИЕ: -0.28 [13:08:22]line ИТОГО: 700.00 [13:08:22]line Внесено: 700.00 [13:08:22]line СДАЧА: 0.00 [13:08:22]line НСП 1% : 6.20 [13:08:22]line НДС 12% : 74.37 [13:08:22]line Наличными: 700.00 [13:08:22]line Безнал.: 0.00 [13:08:22]line Место: АЗС № 171 "Партнер Нефть" [13:08:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:08:22]line СНО: Общий режим [13:08:22]line Чек 249 27.10.2024 13:08 [13:08:22]line Смена: 544 ФФД: 1.0 [13:08:22]line ЗНМ: 0300000109 [13:08:22]line РНМ: 0000000000091777 [13:08:22]line Версия ККМ: 001 [13:08:22]line ФМ: 0000000000871756 [13:08:22]line ФД: 201957 [13:08:22]line ФПД: 63935894760673 [13:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130822&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201957&fm=63935894760673&tin=02508201610067®Number=0000000000091777&sum=70000 [13:08:23]OFD Sender: Processing packet 201957 [packets to send 112, broken 111] [13:08:23]ProducePacketName [13:08:23]name=ofd_packets/00201957 [13:08:23]OFD Sender: To server: pG, [13:08:23]CommunicateWithHost lk.salyk.kg:30040 [13:08:23]ConnectInit lk.salyk.kg [13:08:23]written 0, free lines is 4095 [13:08:23]Connected sock=9 [13:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 57 1F 04 01 06 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 F9 00 00 00 F4 03 04 00 46 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 14 03 00 35 04 06 00 3A 26 3C 4B AC E1 83 78 31 9E 74 6F 70 F5 [13:08:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6D 45 47 00 74 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 14 03 00 F4 03 04 00 00 E7 1D 67 B6 04 01 00 00 47 4B 3D 8F 83 86 F1 C2 [13:08:23]CommunicateWithHost err = 0 [13:08:23]CheckOFDResponse [13:08:23]1017 (14) - 77093643461234 [13:08:23]1041 (16) - 0000000000871756 [13:08:23]1040 (4) - 201957 [13:08:23]1012 (4) - 27.10.2024 07:08 [13:08:23]1206 (1) - 0 [13:08:23]OFD Sender: Remove packet 201957 [13:08:23]ProducePacketName [13:08:23]name=ofd_packets/00201957 [13:08:23]NVStorageDeleteData [13:08:23]Write to MH i2c: 01 00 00 1B 16 31 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: 01 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: 01 07 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: 01 07 00 1B 16 00 00 00 00 00 8C 0C D0 [13:08:23]RasterBufferAndPrint [13:08:23]line [13:08:23]line [13:08:23]line [13:08:23]line [13:08:23]line [13:08:23]written 0, free lines is 3217 [13:08:23]MH_Cut [13:08:23]Write to MH i2c: D1 01 00 22 16 01 0A [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: D1 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: D1 01 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: D1 01 00 22 16 00 09 [13:08:23]Write to MH i2c: 01 00 00 23 16 39 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:24]OFD Sender: No OFD packet to send [13:08:24]*** Cut start [13:08:24]*** Purtial cut [13:08:24]*** Stage 1: CUTSNS_PIN = 1 [13:08:24]Read from MH i2c: 01 [13:08:24]MH_I2C_Read... [13:08:24]*** Stop cut motor [13:08:24]*** Cut end [13:08:24]Read from MH i2c: 01 07 00 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: 01 07 00 23 16 00 00 00 00 00 FF 0F 4E [13:08:24]process_action close_receipt done [13:08:24]requested_data is exist [13:08:24]produce_requested_data [13:08:24]requested_item fm.sn is exist - process it [13:08:24]wFMCommunicate request_size=4 [13:08:24]MH_SAM_APDU [13:08:24]CAPDU: 80 11 00 00 [13:08:24]Write to MH i2c: E2 08 00 24 16 80 11 00 00 00 00 00 00 B4 [13:08:24]Write i2c OK [13:08:24]MH_I2C_Read... [13:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:24]Read from MH i2c: E2 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 17 00 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 17 00 24 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [13:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:08:24]wFMCommunicate OK [13:08:24]requested_item fd.num is exist - process it [13:08:24]SAM_PROTO_GetFieldsCounters [13:08:24]wFMCommunicate request_size=4 [13:08:24]MH_SAM_APDU [13:08:24]CAPDU: 80 13 00 00 [13:08:24]Write to MH i2c: E2 08 00 25 16 80 13 00 00 00 00 00 00 B7 [13:08:24]Write i2c OK [13:08:24]MH_I2C_Read... [13:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:25]Read from MH i2c: E2 [13:08:25]MH_I2C_Read... [13:08:25]Read from MH i2c: E2 62 00 [13:08:25]MH_I2C_Read... [13:08:25]Read from MH i2c: E2 62 00 25 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [13:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:25]wFMCommunicate OK [13:08:25]SAM_PROTO_GetFieldsCounters done [13:08:25]requested_item shift.num is exist - process it [13:08:25]requested_item shift.opened is exist - process it [13:08:25]req_shift_opened [13:08:25]FM_GetShiftState [13:08:25]SAM_PROTO_GetShiftState [13:08:25]wFMCommunicate request_size=4 [13:08:25]MH_SAM_APDU [13:08:25]CAPDU: 80 13 01 00 [13:08:25]Write to MH i2c: E2 08 00 26 16 80 13 01 00 00 00 00 00 B9 [13:08:25]Write i2c OK [13:08:25]MH_I2C_Read... [13:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:25]Read from MH i2c: E2 [13:08:25]MH_I2C_Read... [13:08:25]Read from MH i2c: E2 0E 00 [13:08:25]MH_I2C_Read... [13:08:25]Read from MH i2c: E2 0E 00 26 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BB [13:08:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:08:25]wFMCommunicate OK [13:08:25]SAM_PROTO_GetShiftState done [13:08:25]FM_GetShiftState done [13:08:25]req_shift_opened done [13:08:25]requested_item shift.open_date is exist - process it [13:08:25]req_shift_open_date [13:08:25]req_shift_open_date done [13:08:25]produce_requested_data done [13:08:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201957,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:08:25]process_action_free close_receipt [13:08:25]json_value_free [13:08:25]json_value_free done [13:08:25]process_json_proto returns [13:08:25]Send response to host [13:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201957,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:08:25]free response buf [13:08:25]execute_script done [13:08:25]execute_script returns [13:08:25]free content buf [13:08:25]Sock 10.Close socket [13:08:25]Sock 10.Thread stoped [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:20]accept exits with 8 [13:09:20]New connection [13:09:20]New thread 3066498404 created [13:09:20]Thread 3066641764 joined [13:09:20]Waiting for new connection... [13:09:20] Sock 8.Parse request [13:09:20]Sock 8.Check first char [13:09:20]Sock 8.First char is OK [13:09:20]request: POST /json_proto HTTP/1.0 [13:09:20]Method: POST [13:09:20]URL: /json_proto [13:09:20]Method is POST - this is cgi request [13:09:20]url: /json_proto [13:09:20]query_string will be loaded in cgi processing [13:09:20]execute_cgi json_proto POST (null) [13:09:20]execute_cgi path=json_proto method=POST [13:09:20]POST find Content-Length [13:09:20]Host: 172.17.63.195:8080 [13:09:20]Content-Length: 763 [13:09:20]Content-Type: application/json [13:09:20] [13:09:20]POST finish read [13:09:20]Found Content-Length = 763 [13:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:20]execute_script... [13:09: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)449719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:20]POST & json_proto [13:09:20]process_json_proto [13:09:20]json parsed OK: [13:09:20]protocol is kg_v1.0 [13:09:20]action value=close_receipt [13:09:20]process_action close_receipt [13:09:20]cmd_close_receipt [13:09:20]MH_GetDate [13:09:20]Write to MH i2c: F0 00 00 27 16 2C [13:09:20]Write i2c OK [13:09:20]MH_I2C_Read... [13:09:20]Read from MH i2c: F0 [13:09:20]MH_I2C_Read... [13:09:20]Read from MH i2c: F0 09 00 [13:09:20]MH_I2C_Read... [13:09:20]Read from MH i2c: F0 09 00 27 16 00 81 3B 1E 67 47 1B 1E 67 5D [13:09:20]GetLastDocTimeStamp 1730034502 [13:09:20]current date 1730034561 [13:09:20]FM_GetShiftState [13:09:20]SAM_PROTO_GetShiftState [13:09:20]wFMCommunicate request_size=4 [13:09:20]MH_SAM_APDU [13:09:20]CAPDU: 80 13 01 00 [13:09:20]Write to MH i2c: E2 08 00 28 16 80 13 01 00 00 00 00 00 BB [13:09:20]Write i2c OK [13:09:20]MH_I2C_Read... [13:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:20]Read from MH i2c: E2 [13:09:20]MH_I2C_Read... [13:09:20]Read from MH i2c: E2 0E 00 [13:09:20]MH_I2C_Read... [13:09:20]Read from MH i2c: E2 0E 00 28 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BD [13:09:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:09:20]wFMCommunicate OK [13:09:20]SAM_PROTO_GetShiftState done [13:09:20]FM_GetShiftState done [13:09:20]opened in 1729987312 [13:09:20]opened+sec_in_day 1730073712 [13:09:20]quantity*price = 50063 [13:09:20]sum+1 = 50064 [13:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 250 27.10.2024 13:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201958 ФПД: 50768245181207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130921&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201958&fm=50768245181207&tin=02508201610067®Number=0000000000091777&sum=50063 [13:09:21]StoreToDocumentArchive [13:09:21]shift 544 fd 201958 [13:09:21]save to /storage/0544/doc_00201958 [13:09:21]save last doc name /storage/0544/doc_00201958 to /storage/kkm_last_doc_name [13:09:21]save OK [13:09:21]Clear old archive folders... [13:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:09:21]tlvbuf is 01193CC0 [13:09:21]SAM_PROTO_ClearQueue [13:09:21]wFMCommunicate request_size=4 [13:09:21]MH_SAM_APDU [13:09:21]CAPDU: 80 09 00 00 [13:09:21]Write to MH i2c: E2 08 00 35 16 80 09 00 00 00 00 00 00 BD [13:09:21]Write i2c OK [13:09:21]MH_I2C_Read... [13:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:21]Read from MH i2c: E2 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: E2 03 00 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [13:09:21]RAPDU: 90 00 [13:09:21]wFMCommunicate OK [13:09:21]SAM_PROTO_ClearQueue done [13:09:21]KKMCreateOFDPacket [13:09:21]OFDProtocolAddRootSTLVToBuf [13:09:21]FM_MakeSignedData [13:09:21]FM_MakeSignedData [13:09:21]SAM_PROTO_SignData [13:09:21]wFMCommunicate request_size=4 [13:09:21]MH_SAM_APDU [13:09:21]CAPDU: 80 0D 01 02 [13:09:21]Write to MH i2c: E2 08 00 36 16 80 0D 01 02 00 00 00 00 C5 [13:09:21]Write i2c OK [13:09:21]MH_I2C_Read... [13:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:21]Read from MH i2c: E2 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: E2 03 00 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [13:09:21]RAPDU: 90 00 [13:09:21]wFMCommunicate OK [13:09:21]wFMCommunicate request_size=255 [13:09:21]MH_SAM_APDU [13:09: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 81 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 14 03 00 35 04 06 00 2E 2C 67 38 [13:09:21]Write to MH i2c: E2 02 01 37 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 81 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 14 03 00 35 04 06 00 2E 2C 67 38 00 00 A8 [13:09:21]Write i2c OK [13:09:21]MH_I2C_Read... [13:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:21]Read from MH i2c: E2 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: E2 03 00 [13:09:21]MH_I2C_Read... [13:09:21]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [13:09:21]RAPDU: 90 00 [13:09:21]wFMCommunicate OK [13:09:21]wFMCommunicate request_size=7 [13:09:21]MH_SAM_APDU [13:09:21]CAPDU: 80 0D 02 02 02 4B 17 [13:09:21]Write to MH i2c: E2 0A 00 38 16 80 0D 02 02 02 00 4B 17 00 00 2E [13:09:21]Write i2c OK [13:09:21]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 03 00 38 16 00 90 00 C2 [13:09:22]RAPDU: 90 00 [13:09:22]wFMCommunicate OK [13:09:22]wFMCommunicate request_size=4 [13:09:22]MH_SAM_APDU [13:09:22]CAPDU: 80 0D 03 02 [13:09:22]Write to MH i2c: E2 08 00 39 16 80 0D 03 02 00 00 00 00 CA [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 0B 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 0B 00 39 16 00 12 74 57 C1 30 83 E4 6A 90 00 6A [13:09:22]RAPDU: 12 74 57 C1 30 83 E4 6A 90 00 [13:09:22]wFMCommunicate OK [13:09:22]SAM_PROTO_SignData done [13:09:22]FM_MakeSignedData done [13:09:22]CreateOFDProtocolMessage [13:09:22]wFMCommunicate request_size=4 [13:09:22]MH_SAM_APDU [13:09:22]CAPDU: 80 11 00 00 [13:09:22]Write to MH i2c: E2 08 00 3A 16 80 11 00 00 00 00 00 00 CA [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:22]Read from MH i2c: E2 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 17 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: E2 17 00 3A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [13:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:09:22]wFMCommunicate OK [13:09:22]CreateOFDProtocolMessage done [13:09:22]OFDSenderStorePacket 201958 [13:09:22]StoreOFDPacket docnum=201958 [13:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 6E A1 04 01 56 43 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 81 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 14 03 00 35 04 06 00 2E 2C 67 38 4B 17 12 74 57 C1 30 83 E4 6A [13:09:22]CheckFolder [13:09:22]dirname=/storage/ofd_packets [13:09:22]CheckFolder done [13:09:22]ProducePacketName [13:09:22]name=ofd_packets/00201958 [13:09:22]NVStorageSaveData ofd_packets/00201958 [13:09:22]File name is /storage/ofd_packets/00201958 [13:09:22]Write 298 bytes [13:09:22]NVStorageSaveData done [13:09:22]OFDSenderStorePacket done [13:09:22]KKMCreateOFDPacket done [13:09:22]NVStorageSaveData kkm_last_timestamp [13:09:22]File name is /storage/kkm_last_timestamp [13:09:22]Write 4 bytes [13:09:22]NVStorageSaveData done [13:09:22]ExternCall_PrintAddStr [13:09:22]wPrintStart [13:09:22]Write to MH i2c: 01 00 00 3B 16 51 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 07 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 07 00 3B 16 00 00 00 00 00 FF 0F 66 [13:09:22]RasterBufferAndPrint [13:09:22]line Счет N : (1)449719 [13:09:22]line ИНН: 02508201610067 [13:09:22]line Контрольно-Кассовый Чек [13:09:22]line ПРОДАЖА [13:09:22]line ТРК (МРК, ГНК) : 21 [13:09:22]line Товар: 2710194210 [13:09:22]line ДТ-К-2 [13:09:22]line 6.570 * 76.20 [13:09:22]line = 500.63 [13:09:22]line НДС 12% НСП 1% [13:09:22]line > о реализуемом товаре [13:09:22]line ИТОГО: 500.63 [13:09:22]line НСП 1% : 4.43 [13:09:22]line НДС 12% : 53.16 [13:09:22]line Наличными: 0.00 [13:09:22]line Безнал.: 500.63 [13:09:22]line Место: АЗС № 171 "Партнер Нефть" [13:09:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:09:22]line СНО: Общий режим [13:09:22]line Чек 250 27.10.2024 13:09 [13:09:22]line Смена: 544 ФФД: 1.0 [13:09:22]line ЗНМ: 0300000109 [13:09:22]line РНМ: 0000000000091777 [13:09:22]line Версия ККМ: 001 [13:09:22]line Платежная система: Mbank [13:09:22]line ФМ: 0000000000871756 [13:09:22]line ФД: 201958 [13:09:22]line ФПД: 50768245181207 [13:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130921&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201958&fm=50768245181207&tin=02508201610067®Number=0000000000091777&sum=50063 [13:09:22]OFD Sender: Processing packet 201958 [packets to send 112, broken 111] [13:09:22]ProducePacketName [13:09:22]name=ofd_packets/00201958 [13:09:22]OFD Sender: To server: pG, [13:09:22]CommunicateWithHost lk.salyk.kg:30040 [13:09:22]ConnectInit lk.salyk.kg [13:09:22]written 0, free lines is 4095 [13:09:22]Connected sock=10 [13:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 6E A1 04 01 56 43 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 81 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 14 03 00 35 04 06 00 2E 2C 67 38 4B 17 12 74 57 C1 30 83 E4 6A [13:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF 4B 47 00 32 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 14 03 00 F4 03 04 00 3B E7 1D 67 B6 04 01 00 00 A3 5D F4 40 F6 AB 5E 3C [13:09:22]CommunicateWithHost err = 0 [13:09:22]CheckOFDResponse [13:09:22]1017 (14) - 77093643461234 [13:09:22]1041 (16) - 0000000000871756 [13:09:22]1040 (4) - 201958 [13:09:22]1012 (4) - 27.10.2024 07:09 [13:09:22]1206 (1) - 0 [13:09:22]OFD Sender: Remove packet 201958 [13:09:22]ProducePacketName [13:09:22]name=ofd_packets/00201958 [13:09:22]NVStorageDeleteData [13:09:22]Write to MH i2c: 01 00 00 64 16 7A [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 07 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: 01 07 00 64 16 00 00 00 00 00 B5 0C 42 [13:09:22]RasterBufferAndPrint [13:09:22]line [13:09:22]line [13:09:22]line [13:09:22]line [13:09:22]line [13:09:22]written 0, free lines is 3255 [13:09:22]MH_Cut [13:09:22]Write to MH i2c: D1 01 00 6B 16 01 53 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: D1 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: D1 01 00 [13:09:22]MH_I2C_Read... [13:09:22]Read from MH i2c: D1 01 00 6B 16 00 52 [13:09:22]Write to MH i2c: 01 00 00 6C 16 82 [13:09:22]Write i2c OK [13:09:22]MH_I2C_Read... [13:09:23]OFD Sender: No OFD packet to send [13:09:23]*** Cut start [13:09:23]*** Purtial cut [13:09:23]*** Stage 1: CUTSNS_PIN = 1 [13:09:24]Read from MH i2c: 01 [13:09:24]MH_I2C_Read... [13:09:24]*** Stop cut motor [13:09:24]*** Cut end [13:09:24]Read from MH i2c: 01 07 00 [13:09:24]MH_I2C_Read... [13:09:24]Read from MH i2c: 01 07 00 6C 16 00 00 00 00 00 FF 0F 97 [13:09:24]process_action close_receipt done [13:09:24]requested_data is exist [13:09:24]produce_requested_data [13:09:24]requested_item fm.sn is exist - process it [13:09:24]wFMCommunicate request_size=4 [13:09:24]MH_SAM_APDU [13:09:24]CAPDU: 80 11 00 00 [13:09:24]Write to MH i2c: E2 08 00 6D 16 80 11 00 00 00 00 00 00 FD [13:09:24]Write i2c OK [13:09:24]MH_I2C_Read... [13:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:24]Read from MH i2c: E2 [13:09:24]MH_I2C_Read... [13:09:24]Read from MH i2c: E2 17 00 [13:09:24]MH_I2C_Read... [13:09:24]Read from MH i2c: E2 17 00 6D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 52 [13:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:09:24]wFMCommunicate OK [13:09:24]requested_item fd.num is exist - process it [13:09:24]SAM_PROTO_GetFieldsCounters [13:09:24]wFMCommunicate request_size=4 [13:09:24]MH_SAM_APDU [13:09:24]CAPDU: 80 13 00 00 [13:09:24]Write to MH i2c: E2 08 00 6E 16 80 13 00 00 00 00 00 00 00 [13:09:24]Write i2c OK [13:09:24]MH_I2C_Read... [13:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:24]Read from MH i2c: E2 [13:09:24]MH_I2C_Read... [13:09:24]Read from MH i2c: E2 62 00 [13:09:24]MH_I2C_Read... [13:09:24]Read from MH i2c: E2 62 00 6E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [13:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:24]wFMCommunicate OK [13:09:24]SAM_PROTO_GetFieldsCounters done [13:09:24]requested_item shift.num is exist - process it [13:09:24]requested_item shift.opened is exist - process it [13:09:24]req_shift_opened [13:09:24]FM_GetShiftState [13:09:24]SAM_PROTO_GetShiftState [13:09:24]wFMCommunicate request_size=4 [13:09:24]MH_SAM_APDU [13:09:24]CAPDU: 80 13 01 00 [13:09:24]Write to MH i2c: E2 08 00 6F 16 80 13 01 00 00 00 00 00 02 [13:09:24]Write i2c OK [13:09:24]MH_I2C_Read... [13:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:24]Read from MH i2c: E2 [13:09:24]MH_I2C_Read... [13:09:24]Read from MH i2c: E2 0E 00 [13:09:24]MH_I2C_Read... [13:09:24]Read from MH i2c: E2 0E 00 6F 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 04 [13:09:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:09:24]wFMCommunicate OK [13:09:24]SAM_PROTO_GetShiftState done [13:09:24]FM_GetShiftState done [13:09:24]req_shift_opened done [13:09:24]requested_item shift.open_date is exist - process it [13:09:24]req_shift_open_date [13:09:24]req_shift_open_date done [13:09:24]produce_requested_data done [13:09:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201958,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:09:24]process_action_free close_receipt [13:09:24]json_value_free [13:09:24]json_value_free done [13:09:24]process_json_proto returns [13:09:24]Send response to host [13:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201958,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:09:24]free response buf [13:09:24]execute_script done [13:09:24]execute_script returns [13:09:24]free content buf [13:09:24]Sock 8.Close socket [13:09:24]Sock 8.Thread stoped [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:48]accept exits with 9 [13:09:48]New connection [13:09:48]New thread 3066641764 created [13:09:48]Thread 3066498404 joined [13:09:48]Waiting for new connection... [13:09:48] Sock 9.Parse request [13:09:48]Sock 9.Check first char [13:09:48]Sock 9.First char is OK [13:09:48]request: POST /json_proto HTTP/1.0 [13:09:48]Method: POST [13:09:48]URL: /json_proto [13:09:48]Method is POST - this is cgi request [13:09:48]url: /json_proto [13:09:48]query_string will be loaded in cgi processing [13:09:48]execute_cgi json_proto POST (null) [13:09:48]execute_cgi path=json_proto method=POST [13:09:48]POST find Content-Length [13:09:48]Host: 172.17.63.195:8080 [13:09:48]Content-Length: 677 [13:09:48]Content-Type: application/json [13:09:48] [13:09:48]POST finish read [13:09:48]Found Content-Length = 677 [13:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:48]execute_script... [13:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:48]POST & json_proto [13:09:48]process_json_proto [13:09:48]json parsed OK: [13:09:48]protocol is kg_v1.0 [13:09:48]action value=close_receipt [13:09:48]process_action close_receipt [13:09:48]cmd_close_receipt [13:09:48]MH_GetDate [13:09:48]Write to MH i2c: F0 00 00 70 16 75 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: F0 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: F0 09 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: F0 09 00 70 16 00 9D 3B 1E 67 47 1B 1E 67 C2 [13:09:48]GetLastDocTimeStamp 1730034561 [13:09:48]current date 1730034589 [13:09:48]FM_GetShiftState [13:09:48]SAM_PROTO_GetShiftState [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 13 01 00 [13:09:48]Write to MH i2c: E2 08 00 71 16 80 13 01 00 00 00 00 00 04 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 0E 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 0E 00 71 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 06 [13:09:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:09:48]wFMCommunicate OK [13:09:48]SAM_PROTO_GetShiftState done [13:09:48]FM_GetShiftState done [13:09:48]opened in 1729987312 [13:09:48]opened+sec_in_day 1730073712 [13:09:48]quantity*price = 50041 [13:09:48]sum+1 = 50042 [13:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 251 27.10.2024 13:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201959 ФПД: 240888713562125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130949&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201959&fm=240888713562125&tin=02508201610067®Number=0000000000091777&sum=50000 [13:09:49]StoreToDocumentArchive [13:09:49]shift 544 fd 201959 [13:09:49]save to /storage/0544/doc_00201959 [13:09:49]save last doc name /storage/0544/doc_00201959 to /storage/kkm_last_doc_name [13:09:49]save OK [13:09:49]Clear old archive folders... [13:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:49]tlvbuf is B6D5C5D0 [13:09:49]SAM_PROTO_ClearQueue [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 09 00 00 [13:09:49]Write to MH i2c: E2 08 00 7E 16 80 09 00 00 00 00 00 00 06 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 7E 16 00 90 00 08 [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]SAM_PROTO_ClearQueue done [13:09:49]KKMCreateOFDPacket [13:09:49]OFDProtocolAddRootSTLVToBuf [13:09:49]FM_MakeSignedData [13:09:49]FM_MakeSignedData [13:09:49]SAM_PROTO_SignData [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 01 02 [13:09:49]Write to MH i2c: E2 08 00 7F 16 80 0D 01 02 00 00 00 00 0E [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]wFMCommunicate request_size=255 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FB 00 00 00 F4 03 04 00 9D 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 14 03 00 35 04 06 00 DB [13:09:49]Write to MH i2c: E2 02 01 80 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 32 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 FB 00 00 00 F4 03 04 00 9D 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 14 03 00 35 04 06 00 DB 00 00 F5 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [13:09:50]RAPDU: 90 00 [13:09:50]wFMCommunicate OK [13:09:50]wFMCommunicate request_size=10 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 0D 02 02 05 16 46 33 C8 0D [13:09:50]Write to MH i2c: E2 0D 00 81 16 80 0D 02 02 05 00 16 46 33 C8 0D 00 00 7F [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [13:09:50]RAPDU: 90 00 [13:09:50]wFMCommunicate OK [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 0D 03 02 [13:09:50]Write to MH i2c: E2 08 00 82 16 80 0D 03 02 00 00 00 00 13 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 0B 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 0B 00 82 16 00 8E C7 25 80 02 DE DC 1D 90 00 E7 [13:09:50]RAPDU: 8E C7 25 80 02 DE DC 1D 90 00 [13:09:50]wFMCommunicate OK [13:09:50]SAM_PROTO_SignData done [13:09:50]FM_MakeSignedData done [13:09:50]CreateOFDProtocolMessage [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 11 00 00 [13:09:50]Write to MH i2c: E2 08 00 83 16 80 11 00 00 00 00 00 00 13 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 17 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 17 00 83 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [13:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:09:50]wFMCommunicate OK [13:09:50]CreateOFDProtocolMessage done [13:09:50]OFDSenderStorePacket 201959 [13:09:50]StoreOFDPacket docnum=201959 [13:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9E 32 07 01 9D 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FB 00 00 00 F4 03 04 00 9D 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 14 03 00 35 04 06 00 DB 16 46 33 C8 0D 8E C7 25 80 02 DE DC 1D [13:09:50]CheckFolder [13:09:50]dirname=/storage/ofd_packets [13:09:50]CheckFolder done [13:09:50]ProducePacketName [13:09:50]name=ofd_packets/00201959 [13:09:50]NVStorageSaveData ofd_packets/00201959 [13:09:50]File name is /storage/ofd_packets/00201959 [13:09:50]Write 301 bytes [13:09:50]NVStorageSaveData done [13:09:50]OFDSenderStorePacket done [13:09:50]KKMCreateOFDPacket done [13:09:50]NVStorageSaveData kkm_last_timestamp [13:09:50]File name is /storage/kkm_last_timestamp [13:09:50]Write 4 bytes [13:09:50]NVStorageSaveData done [13:09:50]ExternCall_PrintAddStr [13:09:50]wPrintStart [13:09:50]Write to MH i2c: 01 00 00 84 16 9A [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 84 16 00 00 00 00 00 FF 0F AF [13:09:50]RasterBufferAndPrint [13:09:50]line Счет N : (1)449720 [13:09:50]line ИНН: 02508201610067 [13:09:50]line Контрольно-Кассовый Чек [13:09:50]line ПРОДАЖА [13:09:50]line ТРК (МРК, ГНК) : 41 [13:09:50]line Товар: 2710124130 [13:09:50]line Аи-92-К-2 [13:09:50]line 7.480 * 66.90 [13:09:50]line = 500.41 [13:09:50]line НДС 12% НСП 1% [13:09:50]line > о реализуемом товаре [13:09:50]line ОКРУГЛЕНИЕ: -0.41 [13:09:50]line ИТОГО: 500.00 [13:09:50]line Внесено: 500.00 [13:09:50]line СДАЧА: 0.00 [13:09:50]line НСП 1% : 4.43 [13:09:50]line НДС 12% : 53.14 [13:09:50]line Наличными: 500.00 [13:09:50]line Безнал.: 0.00 [13:09:50]line Место: АЗС № 171 "Партнер Нефть" [13:09:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:09:50]line СНО: Общий режим [13:09:50]line Чек 251 27.10.2024 13:09 [13:09:50]line Смена: 544 ФФД: 1.0 [13:09:50]line ЗНМ: 0300000109 [13:09:50]line РНМ: 0000000000091777 [13:09:50]line Версия ККМ: 001 [13:09:50]line ФМ: 0000000000871756 [13:09:50]line ФД: 201959 [13:09:50]line ФПД: 240888713562125 [13:09:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130949&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201959&fm=240888713562125&tin=02508201610067®Number=0000000000091777&sum=50000 [13:09:50]written 0, free lines is 4095 [13:09:50]OFD Sender: Processing packet 201959 [packets to send 112, broken 111] [13:09:50]ProducePacketName [13:09:50]name=ofd_packets/00201959 [13:09:50]OFD Sender: To server: pG, [13:09:50]CommunicateWithHost lk.salyk.kg:30040 [13:09:50]ConnectInit lk.salyk.kg [13:09:50]Connected sock=10 [13:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9E 32 07 01 9D 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FB 00 00 00 F4 03 04 00 9D 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 14 03 00 35 04 06 00 DB 16 46 33 C8 0D 8E C7 25 80 02 DE DC 1D [13:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 11 9A 47 00 F7 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 14 03 00 F4 03 04 00 57 E7 1D 67 B6 04 01 00 00 78 33 66 3D 49 4C D2 F4 [13:09:50]CommunicateWithHost err = 0 [13:09:50]CheckOFDResponse [13:09:50]1017 (14) - 77093643461234 [13:09:50]1041 (16) - 0000000000871756 [13:09:50]1040 (4) - 201959 [13:09:50]1012 (4) - 27.10.2024 07:10 [13:09:50]1206 (1) - 0 [13:09:50]OFD Sender: Remove packet 201959 [13:09:50]ProducePacketName [13:09:50]name=ofd_packets/00201959 [13:09:50]NVStorageDeleteData [13:09:50]Write to MH i2c: 01 00 00 AF 16 C5 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 AF 16 00 00 00 00 00 96 0C 6E [13:09:50]RasterBufferAndPrint [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]written 0, free lines is 3226 [13:09:50]MH_Cut [13:09:50]Write to MH i2c: D1 01 00 B6 16 01 9E [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: D1 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: D1 01 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: D1 01 00 B6 16 00 9D [13:09:50]Write to MH i2c: 01 00 00 B7 16 CD [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:51]OFD Sender: No OFD packet to send [13:09:51]*** Cut start [13:09:51]*** Purtial cut [13:09:51]*** Stage 1: CUTSNS_PIN = 1 [13:09:51]Read from MH i2c: 01 [13:09:51]MH_I2C_Read... [13:09:51]*** Stop cut motor [13:09:51]*** Cut end [13:09:51]Read from MH i2c: 01 07 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 07 00 B7 16 00 00 00 00 00 FF 0F E2 [13:09:51]process_action close_receipt done [13:09:51]requested_data is exist [13:09:51]produce_requested_data [13:09:51]requested_item fm.sn is exist - process it [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 11 00 00 [13:09:51]Write to MH i2c: E2 08 00 B8 16 80 11 00 00 00 00 00 00 48 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 17 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 17 00 B8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9D [13:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:09:51]wFMCommunicate OK [13:09:51]requested_item fd.num is exist - process it [13:09:51]SAM_PROTO_GetFieldsCounters [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 13 00 00 [13:09:51]Write to MH i2c: E2 08 00 B9 16 80 13 00 00 00 00 00 00 4B [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:52]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 62 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 62 00 B9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [13:09:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:52]wFMCommunicate OK [13:09:52]SAM_PROTO_GetFieldsCounters done [13:09:52]requested_item shift.num is exist - process it [13:09:52]requested_item shift.opened is exist - process it [13:09:52]req_shift_opened [13:09:52]FM_GetShiftState [13:09:52]SAM_PROTO_GetShiftState [13:09:52]wFMCommunicate request_size=4 [13:09:52]MH_SAM_APDU [13:09:52]CAPDU: 80 13 01 00 [13:09:52]Write to MH i2c: E2 08 00 BA 16 80 13 01 00 00 00 00 00 4D [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:52]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 0E 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 0E 00 BA 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4F [13:09:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:09:52]wFMCommunicate OK [13:09:52]SAM_PROTO_GetShiftState done [13:09:52]FM_GetShiftState done [13:09:52]req_shift_opened done [13:09:52]requested_item shift.open_date is exist - process it [13:09:52]req_shift_open_date [13:09:52]req_shift_open_date done [13:09:52]produce_requested_data done [13:09:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201959,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:09:52]process_action_free close_receipt [13:09:52]json_value_free [13:09:52]json_value_free done [13:09:52]process_json_proto returns [13:09:52]Send response to host [13:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201959,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:09:52]free response buf [13:09:52]execute_script done [13:09:52]execute_script returns [13:09:52]free content buf [13:09:52]Sock 9.Close socket [13:09:52]Sock 9.Thread stoped [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:08]accept exits with 8 [13:10:08]New connection [13:10:08]New thread 3066498404 created [13:10:08]Thread 3066641764 joined [13:10:08]Waiting for new connection... [13:10:08] Sock 8.Parse request [13:10:08]Sock 8.Check first char [13:10:08]Sock 8.First char is OK [13:10:08]request: POST /json_proto HTTP/1.0 [13:10:08]Method: POST [13:10:08]URL: /json_proto [13:10:08]Method is POST - this is cgi request [13:10:08]url: /json_proto [13:10:08]query_string will be loaded in cgi processing [13:10:08]execute_cgi json_proto POST (null) [13:10:08]execute_cgi path=json_proto method=POST [13:10:08]POST find Content-Length [13:10:08]Host: 172.17.63.195:8080 [13:10:08]Content-Length: 677 [13:10:08]Content-Type: application/json [13:10:08] [13:10:08]POST finish read [13:10:08]Found Content-Length = 677 [13:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:08]execute_script... [13:10:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:08]POST & json_proto [13:10:08]process_json_proto [13:10:08]json parsed OK: [13:10:08]protocol is kg_v1.0 [13:10:08]action value=close_receipt [13:10:08]process_action close_receipt [13:10:08]cmd_close_receipt [13:10:08]MH_GetDate [13:10:08]Write to MH i2c: F0 00 00 BB 16 C0 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: F0 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: F0 09 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: F0 09 00 BB 16 00 B1 3B 1E 67 47 1B 1E 67 21 [13:10:08]GetLastDocTimeStamp 1730034589 [13:10:08]current date 1730034609 [13:10:08]FM_GetShiftState [13:10:08]SAM_PROTO_GetShiftState [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 13 01 00 [13:10:08]Write to MH i2c: E2 08 00 BC 16 80 13 01 00 00 00 00 00 4F [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0E 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0E 00 BC 16 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 51 [13:10:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:10:08]wFMCommunicate OK [13:10:08]SAM_PROTO_GetShiftState done [13:10:08]FM_GetShiftState done [13:10:08]opened in 1729987312 [13:10:08]opened+sec_in_day 1730073712 [13:10:08]quantity*price = 50041 [13:10:08]sum+1 = 50042 [13:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 252 27.10.2024 13:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201960 ФПД: 262239289479786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131009&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201960&fm=262239289479786&tin=02508201610067®Number=0000000000091777&sum=50000 [13:10:09]StoreToDocumentArchive [13:10:09]shift 544 fd 201960 [13:10:09]save to /storage/0544/doc_00201960 [13:10:09]save last doc name /storage/0544/doc_00201960 to /storage/kkm_last_doc_name [13:10:09]save OK [13:10:09]Clear old archive folders... [13:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:09]tlvbuf is B6E8EA60 [13:10:09]SAM_PROTO_ClearQueue [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 09 00 00 [13:10:09]Write to MH i2c: E2 08 00 C9 16 80 09 00 00 00 00 00 00 51 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 C9 16 00 90 00 53 [13:10:09]RAPDU: 90 00 [13:10:09]wFMCommunicate OK [13:10:09]SAM_PROTO_ClearQueue done [13:10:09]KKMCreateOFDPacket [13:10:09]OFDProtocolAddRootSTLVToBuf [13:10:09]FM_MakeSignedData [13:10:09]FM_MakeSignedData [13:10:09]SAM_PROTO_SignData [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 0D 01 02 [13:10:09]Write to MH i2c: E2 08 00 CA 16 80 0D 01 02 00 00 00 00 59 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [13:10:09]RAPDU: 90 00 [13:10:09]wFMCommunicate OK [13:10:09]wFMCommunicate request_size=255 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FC 00 00 00 F4 03 04 00 B1 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 14 03 00 35 04 06 00 EE [13:10:09]Write to MH i2c: E2 02 01 CB 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 32 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 FC 00 00 00 F4 03 04 00 B1 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 14 03 00 35 04 06 00 EE 00 00 69 [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [13:10:09]RAPDU: 90 00 [13:10:09]wFMCommunicate OK [13:10:09]wFMCommunicate request_size=10 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 0D 02 02 05 81 57 B2 12 6A [13:10:09]Write to MH i2c: E2 0D 00 CC 16 80 0D 02 02 05 00 81 57 B2 12 6A 00 00 6C [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [13:10:09]RAPDU: 90 00 [13:10:09]wFMCommunicate OK [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 0D 03 02 [13:10:09]Write to MH i2c: E2 08 00 CD 16 80 0D 03 02 00 00 00 00 5E [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:09]Read from MH i2c: E2 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 0B 00 [13:10:09]MH_I2C_Read... [13:10:09]Read from MH i2c: E2 0B 00 CD 16 00 46 C8 E1 EB 5A 27 7F 56 90 00 8F [13:10:09]RAPDU: 46 C8 E1 EB 5A 27 7F 56 90 00 [13:10:09]wFMCommunicate OK [13:10:09]SAM_PROTO_SignData done [13:10:09]FM_MakeSignedData done [13:10:09]CreateOFDProtocolMessage [13:10:09]wFMCommunicate request_size=4 [13:10:09]MH_SAM_APDU [13:10:09]CAPDU: 80 11 00 00 [13:10:09]Write to MH i2c: E2 08 00 CE 16 80 11 00 00 00 00 00 00 5E [13:10:09]Write i2c OK [13:10:09]MH_I2C_Read... [13:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:10]Read from MH i2c: E2 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: E2 17 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: E2 17 00 CE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B3 [13:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:10:10]wFMCommunicate OK [13:10:10]CreateOFDProtocolMessage done [13:10:10]OFDSenderStorePacket 201960 [13:10:10]StoreOFDPacket docnum=201960 [13:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EC B5 07 01 2D C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FC 00 00 00 F4 03 04 00 B1 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 14 03 00 35 04 06 00 EE 81 57 B2 12 6A 46 C8 E1 EB 5A 27 7F 56 [13:10:10]CheckFolder [13:10:10]dirname=/storage/ofd_packets [13:10:10]CheckFolder done [13:10:10]ProducePacketName [13:10:10]name=ofd_packets/00201960 [13:10:10]NVStorageSaveData ofd_packets/00201960 [13:10:10]File name is /storage/ofd_packets/00201960 [13:10:10]Write 301 bytes [13:10:10]NVStorageSaveData done [13:10:10]OFDSenderStorePacket done [13:10:10]KKMCreateOFDPacket done [13:10:10]NVStorageSaveData kkm_last_timestamp [13:10:10]File name is /storage/kkm_last_timestamp [13:10:10]Write 4 bytes [13:10:10]NVStorageSaveData done [13:10:10]ExternCall_PrintAddStr [13:10:10]wPrintStart [13:10:10]Write to MH i2c: 01 00 00 CF 16 E5 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 CF 16 00 00 00 00 00 FF 0F FA [13:10:10]RasterBufferAndPrint [13:10:10]line Счет N : (1)449721 [13:10:10]line ИНН: 02508201610067 [13:10:10]line Контрольно-Кассовый Чек [13:10:10]line ПРОДАЖА [13:10:10]line ТРК (МРК, ГНК) : 62 [13:10:10]line Товар: 2710124130 [13:10:10]line Аи-92-К-2 [13:10:10]line 7.480 * 66.90 [13:10:10]line = 500.41 [13:10:10]line НДС 12% НСП 1% [13:10:10]line > о реализуемом товаре [13:10:10]line ОКРУГЛЕНИЕ: -0.41 [13:10:10]line ИТОГО: 500.00 [13:10:10]line Внесено: 500.00 [13:10:10]line СДАЧА: 0.00 [13:10:10]line НСП 1% : 4.43 [13:10:10]line НДС 12% : 53.14 [13:10:10]line Наличными: 500.00 [13:10:10]line Безнал.: 0.00 [13:10:10]line Место: АЗС № 171 "Партнер Нефть" [13:10:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:10:10]line СНО: Общий режим [13:10:10]line Чек 252 27.10.2024 13:10 [13:10:10]line Смена: 544 ФФД: 1.0 [13:10:10]line ЗНМ: 0300000109 [13:10:10]line РНМ: 0000000000091777 [13:10:10]line Версия ККМ: 001 [13:10:10]line ФМ: 0000000000871756 [13:10:10]line ФД: 201960 [13:10:10]line ФПД: 262239289479786 [13:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131009&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201960&fm=262239289479786&tin=02508201610067®Number=0000000000091777&sum=50000 [13:10:10]OFD Sender: Processing packet 201960 [packets to send 112, broken 111] [13:10:10]ProducePacketName [13:10:10]name=ofd_packets/00201960 [13:10:10]OFD Sender: To server: pG, [13:10:10]CommunicateWithHost lk.salyk.kg:30040 [13:10:10]ConnectInit lk.salyk.kg [13:10:10]written 0, free lines is 4095 [13:10:10]Write to MH i2c: 01 00 00 FA 16 10 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 FA 16 00 00 00 00 00 8A 0C AD [13:10:10]RasterBufferAndPrint [13:10:10]line [13:10:10]line [13:10:10]line [13:10:10]line [13:10:10]line [13:10:10]written 0, free lines is 3213 [13:10:10]MH_Cut [13:10:10]Write to MH i2c: D1 01 00 01 17 01 EA [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D1 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D1 01 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D1 01 00 01 17 00 E9 [13:10:10]Write to MH i2c: 01 00 00 02 17 19 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:11]*** Cut start [13:10:11]*** Purtial cut [13:10:11]*** Stage 1: CUTSNS_PIN = 1 [13:10:11]Read from MH i2c: 01 [13:10:11]MH_I2C_Read... [13:10:11]*** Stop cut motor [13:10:11]*** Cut end [13:10:11]Read from MH i2c: 01 07 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 02 17 00 00 00 00 00 FF 0F 2E [13:10:11]process_action close_receipt done [13:10:11]requested_data is exist [13:10:11]produce_requested_data [13:10:11]requested_item fm.sn is exist - process it [13:10:11]wFMCommunicate request_size=4 [13:10:11]MH_SAM_APDU [13:10:11]CAPDU: 80 11 00 00 [13:10:11]Write to MH i2c: E2 08 00 03 17 80 11 00 00 00 00 00 00 94 [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:12]Read from MH i2c: E2 [13:10:12]MH_I2C_Read... [13:10:12]Read from MH i2c: E2 17 00 [13:10:12]MH_I2C_Read... [13:10:12]Read from MH i2c: E2 17 00 03 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [13:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:10:12]wFMCommunicate OK [13:10:12]requested_item fd.num is exist - process it [13:10:12]SAM_PROTO_GetFieldsCounters [13:10:12]wFMCommunicate request_size=4 [13:10:12]MH_SAM_APDU [13:10:12]CAPDU: 80 13 00 00 [13:10:12]Write to MH i2c: E2 08 00 04 17 80 13 00 00 00 00 00 00 97 [13:10:12]Write i2c OK [13:10:12]MH_I2C_Read... [13:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:12]Read from MH i2c: E2 [13:10:12]MH_I2C_Read... [13:10:12]Read from MH i2c: E2 62 00 [13:10:12]MH_I2C_Read... [13:10:12]Read from MH i2c: E2 62 00 04 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [13:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:12]wFMCommunicate OK [13:10:12]SAM_PROTO_GetFieldsCounters done [13:10:12]requested_item shift.num is exist - process it [13:10:12]requested_item shift.opened is exist - process it [13:10:12]req_shift_opened [13:10:12]FM_GetShiftState [13:10:12]SAM_PROTO_GetShiftState [13:10:12]wFMCommunicate request_size=4 [13:10:12]MH_SAM_APDU [13:10:12]CAPDU: 80 13 01 00 [13:10:12]Write to MH i2c: E2 08 00 05 17 80 13 01 00 00 00 00 00 99 [13:10:12]Write i2c OK [13:10:12]MH_I2C_Read... [13:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:12]Read from MH i2c: E2 [13:10:12]MH_I2C_Read... [13:10:12]Read from MH i2c: E2 0E 00 [13:10:12]MH_I2C_Read... [13:10:12]Read from MH i2c: E2 0E 00 05 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9B [13:10:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:10:12]wFMCommunicate OK [13:10:12]SAM_PROTO_GetShiftState done [13:10:12]FM_GetShiftState done [13:10:12]req_shift_opened done [13:10:12]requested_item shift.open_date is exist - process it [13:10:12]req_shift_open_date [13:10:12]req_shift_open_date done [13:10:12]produce_requested_data done [13:10:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201960,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:10:12]process_action_free close_receipt [13:10:12]json_value_free [13:10:12]json_value_free done [13:10:12]process_json_proto returns [13:10:12]Send response to host [13:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201960,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:10:12]free response buf [13:10:12]execute_script done [13:10:12]execute_script returns [13:10:12]free content buf [13:10:12]Sock 8.Close socket [13:10:12]Sock 8.Thread stoped [13:10:22]accept exits with 9 [13:10:22]New connection [13:10:22]New thread 3066641764 created [13:10:22]Thread 3066498404 joined [13:10:22]Waiting for new connection... [13:10:22] Sock 9.Parse request [13:10:22]Sock 9.Check first char [13:10:22]Sock 9.First char is OK [13:10:22]request: POST /json_proto HTTP/1.0 [13:10:22]Method: POST [13:10:22]URL: /json_proto [13:10:22]Method is POST - this is cgi request [13:10:22]url: /json_proto [13:10:22]query_string will be loaded in cgi processing [13:10:22]execute_cgi json_proto POST (null) [13:10:22]execute_cgi path=json_proto method=POST [13:10:22]POST find Content-Length [13:10:22]Host: 172.17.63.195:8080 [13:10:22]Content-Length: 679 [13:10:22]Content-Type: application/json [13:10:22] [13:10:22]POST finish read [13:10:22]Found Content-Length = 679 [13:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:10:22]execute_script... [13:10: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)449722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:10:22]POST & json_proto [13:10:22]process_json_proto [13:10:22]json parsed OK: [13:10:22]protocol is kg_v1.0 [13:10:22]action value=close_receipt [13:10:22]process_action close_receipt [13:10:22]cmd_close_receipt [13:10:22]MH_GetDate [13:10:22]Write to MH i2c: F0 00 00 06 17 0C [13:10:22]Write i2c OK [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: F0 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: F0 09 00 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: F0 09 00 06 17 00 BF 3B 1E 67 47 1B 1E 67 7B [13:10:22]GetLastDocTimeStamp 1730034609 [13:10:22]current date 1730034623 [13:10:22]FM_GetShiftState [13:10:22]SAM_PROTO_GetShiftState [13:10:22]wFMCommunicate request_size=4 [13:10:22]MH_SAM_APDU [13:10:22]CAPDU: 80 13 01 00 [13:10:22]Write to MH i2c: E2 08 00 07 17 80 13 01 00 00 00 00 00 9B [13:10:22]Write i2c OK [13:10:22]MH_I2C_Read... [13:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:22]Read from MH i2c: E2 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 0E 00 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 0E 00 07 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [13:10:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:10:22]wFMCommunicate OK [13:10:22]SAM_PROTO_GetShiftState done [13:10:22]FM_GetShiftState done [13:10:22]opened in 1729987312 [13:10:22]opened+sec_in_day 1730073712 [13:10:22]quantity*price = 100050 [13:10:22]sum+1 = 100052 [13:10:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 253 27.10.2024 13:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201961 ФПД: 242711863009134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131023&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201961&fm=242711863009134&tin=02508201610067®Number=0000000000091777&sum=100000 [13:10:23]StoreToDocumentArchive [13:10:23]shift 544 fd 201961 [13:10:23]save to /storage/0544/doc_00201961 [13:10:23]save last doc name /storage/0544/doc_00201961 to /storage/kkm_last_doc_name [13:10:23]save OK [13:10:23]Clear old archive folders... [13:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:10:23]tlvbuf is 0119D910 [13:10:23]SAM_PROTO_ClearQueue [13:10:23]wFMCommunicate request_size=4 [13:10:23]MH_SAM_APDU [13:10:23]CAPDU: 80 09 00 00 [13:10:23]Write to MH i2c: E2 08 00 14 17 80 09 00 00 00 00 00 00 9D [13:10:23]Write i2c OK [13:10:23]MH_I2C_Read... [13:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:23]Read from MH i2c: E2 [13:10:23]MH_I2C_Read... [13:10:23]Read from MH i2c: E2 03 00 [13:10:23]MH_I2C_Read... [13:10:23]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [13:10:23]RAPDU: 90 00 [13:10:23]wFMCommunicate OK [13:10:23]SAM_PROTO_ClearQueue done [13:10:23]KKMCreateOFDPacket [13:10:23]OFDProtocolAddRootSTLVToBuf [13:10:23]FM_MakeSignedData [13:10:23]FM_MakeSignedData [13:10:23]SAM_PROTO_SignData [13:10:23]wFMCommunicate request_size=4 [13:10:23]MH_SAM_APDU [13:10:23]CAPDU: 80 0D 01 02 [13:10:23]Write to MH i2c: E2 08 00 15 17 80 0D 01 02 00 00 00 00 A5 [13:10:23]Write i2c OK [13:10:23]MH_I2C_Read... [13:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:23]Read from MH i2c: E2 [13:10:23]MH_I2C_Read... [13:10:23]Read from MH i2c: E2 03 00 [13:10:23]MH_I2C_Read... [13:10:23]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [13:10:23]RAPDU: 90 00 [13:10:23]wFMCommunicate OK [13:10:23]wFMCommunicate request_size=255 [13:10:23]MH_SAM_APDU [13:10: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 32 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 FD 00 00 00 F4 03 04 00 BF 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 14 03 00 35 04 06 00 DC BE C2 60 [13:10:23]Write to MH i2c: E2 02 01 16 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 32 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 FD 00 00 00 F4 03 04 00 BF 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 14 03 00 35 04 06 00 DC BE C2 60 00 00 89 [13:10:23]Write i2c OK [13:10:23]MH_I2C_Read... [13:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:24]Read from MH i2c: E2 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: E2 03 00 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [13:10:24]RAPDU: 90 00 [13:10:24]wFMCommunicate OK [13:10:24]wFMCommunicate request_size=7 [13:10:24]MH_SAM_APDU [13:10:24]CAPDU: 80 0D 02 02 02 9F 6E [13:10:24]Write to MH i2c: E2 0A 00 17 17 80 0D 02 02 02 00 9F 6E 00 00 B9 [13:10:24]Write i2c OK [13:10:24]MH_I2C_Read... [13:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:24]Read from MH i2c: E2 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: E2 03 00 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [13:10:24]RAPDU: 90 00 [13:10:24]wFMCommunicate OK [13:10:24]wFMCommunicate request_size=4 [13:10:24]MH_SAM_APDU [13:10:24]CAPDU: 80 0D 03 02 [13:10:24]Write to MH i2c: E2 08 00 18 17 80 0D 03 02 00 00 00 00 AA [13:10:24]Write i2c OK [13:10:24]MH_I2C_Read... [13:10:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:24]Read from MH i2c: E2 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: E2 0B 00 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: E2 0B 00 18 17 00 3A ED E2 0D 96 8A 63 0A 90 00 4E [13:10:24]RAPDU: 3A ED E2 0D 96 8A 63 0A 90 00 [13:10:24]wFMCommunicate OK [13:10:24]SAM_PROTO_SignData done [13:10:24]FM_MakeSignedData done [13:10:24]CreateOFDProtocolMessage [13:10:24]wFMCommunicate request_size=4 [13:10:24]MH_SAM_APDU [13:10:24]CAPDU: 80 11 00 00 [13:10:24]Write to MH i2c: E2 08 00 19 17 80 11 00 00 00 00 00 00 AA [13:10:24]Write i2c OK [13:10:24]MH_I2C_Read... [13:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:24]Read from MH i2c: E2 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: E2 17 00 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: E2 17 00 19 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [13:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:10:24]wFMCommunicate OK [13:10:24]CreateOFDProtocolMessage done [13:10:24]OFDSenderStorePacket 201961 [13:10:24]StoreOFDPacket docnum=201961 [13:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 BE E4 04 01 A8 C4 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 32 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 FD 00 00 00 F4 03 04 00 BF 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 14 03 00 35 04 06 00 DC BE C2 60 9F 6E 3A ED E2 0D 96 8A 63 0A [13:10:24]CheckFolder [13:10:24]dirname=/storage/ofd_packets [13:10:24]CheckFolder done [13:10:24]ProducePacketName [13:10:24]name=ofd_packets/00201961 [13:10:24]NVStorageSaveData ofd_packets/00201961 [13:10:24]File name is /storage/ofd_packets/00201961 [13:10:24]Write 298 bytes [13:10:24]NVStorageSaveData done [13:10:24]OFDSenderStorePacket done [13:10:24]KKMCreateOFDPacket done [13:10:24]NVStorageSaveData kkm_last_timestamp [13:10:24]File name is /storage/kkm_last_timestamp [13:10:24]Write 4 bytes [13:10:24]NVStorageSaveData done [13:10:24]ExternCall_PrintAddStr [13:10:24]wPrintStart [13:10:24]Write to MH i2c: 01 00 00 1A 17 31 [13:10:24]Write i2c OK [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: 01 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: 01 07 00 [13:10:24]MH_I2C_Read... [13:10:24]Read from MH i2c: 01 07 00 1A 17 00 00 00 00 00 FF 0F 46 [13:10:24]RasterBufferAndPrint [13:10:24]line Счет N : (1)449722 [13:10:24]line ИНН: 02508201610067 [13:10:24]line Контрольно-Кассовый Чек [13:10:24]line ПРОДАЖА [13:10:24]line ТРК (МРК, ГНК) : 11 [13:10:24]line Товар: 2710194210 [13:10:24]line ДТ-К-2 [13:10:24]line 13.130 * 76.20 [13:10:24]line = 1000.51 [13:10:24]line НДС 12% НСП 1% [13:10:24]line > о реализуемом товаре [13:10:24]line ОКРУГЛЕНИЕ: -0.51 [13:10:24]line ИТОГО: 1000.00 [13:10:24]line Внесено: 1000.00 [13:10:24]line СДАЧА: 0.00 [13:10:24]line НСП 1% : 8.85 [13:10:24]line НДС 12% : 106.25 [13:10:24]line Наличными: 1000.00 [13:10:24]line Безнал.: 0.00 [13:10:24]line Место: АЗС № 171 "Партнер Нефть" [13:10:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:10:24]line СНО: Общий режим [13:10:24]line Чек 253 27.10.2024 13:10 [13:10:24]line Смена: 544 ФФД: 1.0 [13:10:24]line ЗНМ: 0300000109 [13:10:24]line РНМ: 0000000000091777 [13:10:24]line Версия ККМ: 001 [13:10:24]line ФМ: 0000000000871756 [13:10:24]line ФД: 201961 [13:10:24]line ФПД: 242711863009134 [13:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131023&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201961&fm=242711863009134&tin=02508201610067®Number=0000000000091777&sum=100000 [13:10:24]written 0, free lines is 4095 [13:10:25]Write to MH i2c: 01 00 00 45 17 5C [13:10:25]Write i2c OK [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: 01 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: 01 07 00 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: 01 07 00 45 17 00 00 00 00 00 84 0C F3 [13:10:25]RasterBufferAndPrint [13:10:25]line [13:10:25]line [13:10:25]line [13:10:25]line [13:10:25]line [13:10:25]written 0, free lines is 3209 [13:10:25]MH_Cut [13:10:25]Write to MH i2c: D1 01 00 4C 17 01 35 [13:10:25]Write i2c OK [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: D1 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: D1 01 00 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: D1 01 00 4C 17 00 34 [13:10:25]Write to MH i2c: 01 00 00 4D 17 64 [13:10:25]Write i2c OK [13:10:25]MH_I2C_Read... [13:10:25]*** Cut start [13:10:25]*** Purtial cut [13:10:25]*** Stage 1: CUTSNS_PIN = 1 [13:10:26]Read from MH i2c: 01 [13:10:26]MH_I2C_Read... [13:10:26]*** Stop cut motor [13:10:26]*** Cut end [13:10:26]Read from MH i2c: 01 07 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: 01 07 00 4D 17 00 00 00 00 00 FF 0F 79 [13:10:26]process_action close_receipt done [13:10:26]requested_data is exist [13:10:26]produce_requested_data [13:10:26]requested_item fm.sn is exist - process it [13:10:26]wFMCommunicate request_size=4 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 11 00 00 [13:10:26]Write to MH i2c: E2 08 00 4E 17 80 11 00 00 00 00 00 00 DF [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 17 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 17 00 4E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [13:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:10:26]wFMCommunicate OK [13:10:26]requested_item fd.num is exist - process it [13:10:26]SAM_PROTO_GetFieldsCounters [13:10:26]wFMCommunicate request_size=4 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 13 00 00 [13:10:26]Write to MH i2c: E2 08 00 4F 17 80 13 00 00 00 00 00 00 E2 [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 62 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 62 00 4F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [13:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:26]wFMCommunicate OK [13:10:26]SAM_PROTO_GetFieldsCounters done [13:10:26]requested_item shift.num is exist - process it [13:10:26]requested_item shift.opened is exist - process it [13:10:26]req_shift_opened [13:10:26]FM_GetShiftState [13:10:26]SAM_PROTO_GetShiftState [13:10:26]wFMCommunicate request_size=4 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 13 01 00 [13:10:26]Write to MH i2c: E2 08 00 50 17 80 13 01 00 00 00 00 00 E4 [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 0E 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 0E 00 50 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E6 [13:10:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:10:26]wFMCommunicate OK [13:10:26]SAM_PROTO_GetShiftState done [13:10:26]FM_GetShiftState done [13:10:26]req_shift_opened done [13:10:26]requested_item shift.open_date is exist - process it [13:10:26]req_shift_open_date [13:10:26]req_shift_open_date done [13:10:26]produce_requested_data done [13:10:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201961,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:10:26]process_action_free close_receipt [13:10:26]json_value_free [13:10:26]json_value_free done [13:10:26]process_json_proto returns [13:10:26]Send response to host [13:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201961,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:10:26]free response buf [13:10:26]execute_script done [13:10:26]execute_script returns [13:10:26]free content buf [13:10:26]Sock 9.Close socket [13:10:26]Sock 9.Thread stoped [13:12:15]accept exits with 8 [13:12:15]New connection [13:12:15]New thread 3066498404 created [13:12:15]Thread 3066641764 joined [13:12:15]Waiting for new connection... [13:12:15] Sock 8.Parse request [13:12:15]Sock 8.Check first char [13:12:15]Sock 8.First char is OK [13:12:15]request: POST /json_proto HTTP/1.0 [13:12:15]Method: POST [13:12:15]URL: /json_proto [13:12:15]Method is POST - this is cgi request [13:12:15]url: /json_proto [13:12:15]query_string will be loaded in cgi processing [13:12:15]execute_cgi json_proto POST (null) [13:12:15]execute_cgi path=json_proto method=POST [13:12:15]POST find Content-Length [13:12:15]Host: 172.17.63.195:8080 [13:12:15]Content-Length: 682 [13:12:15]Content-Type: application/json [13:12:15] [13:12:15]POST finish read [13:12:15]Found Content-Length = 682 [13:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:15]execute_script... [13:12:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:15]POST & json_proto [13:12:15]process_json_proto [13:12:15]json parsed OK: [13:12:15]protocol is kg_v1.0 [13:12:15]action value=close_receipt [13:12:15]process_action close_receipt [13:12:15]cmd_close_receipt [13:12:15]MH_GetDate [13:12:15]Write to MH i2c: F0 00 00 51 17 57 [13:12:15]Write i2c OK [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 09 00 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 09 00 51 17 00 30 3C 1E 67 47 1B 1E 67 38 [13:12:15]GetLastDocTimeStamp 1730034623 [13:12:15]current date 1730034736 [13:12:15]FM_GetShiftState [13:12:15]SAM_PROTO_GetShiftState [13:12:15]wFMCommunicate request_size=4 [13:12:15]MH_SAM_APDU [13:12:15]CAPDU: 80 13 01 00 [13:12:15]Write to MH i2c: E2 08 00 52 17 80 13 01 00 00 00 00 00 E6 [13:12:15]Write i2c OK [13:12:15]MH_I2C_Read... [13:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:15]Read from MH i2c: E2 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: E2 0E 00 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: E2 0E 00 52 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E8 [13:12:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:12:15]wFMCommunicate OK [13:12:15]SAM_PROTO_GetShiftState done [13:12:15]FM_GetShiftState done [13:12:15]opened in 1729987312 [13:12:15]opened+sec_in_day 1730073712 [13:12:15]quantity*price = 160049 [13:12:15]sum+1 = 160050 [13:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 254 27.10.2024 13:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201962 ФПД: 225709240827041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131216&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201962&fm=225709240827041&tin=02508201610067®Number=0000000000091777&sum=160000 [13:12:16]StoreToDocumentArchive [13:12:16]shift 544 fd 201962 [13:12:16]save to /storage/0544/doc_00201962 [13:12:16]save last doc name /storage/0544/doc_00201962 to /storage/kkm_last_doc_name [13:12:16]save OK [13:12:16]Clear old archive folders... [13:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:16]tlvbuf is 012197B0 [13:12:16]SAM_PROTO_ClearQueue [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 09 00 00 [13:12:16]Write to MH i2c: E2 08 00 5F 17 80 09 00 00 00 00 00 00 E8 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]SAM_PROTO_ClearQueue done [13:12:16]KKMCreateOFDPacket [13:12:16]OFDProtocolAddRootSTLVToBuf [13:12:16]FM_MakeSignedData [13:12:16]FM_MakeSignedData [13:12:16]SAM_PROTO_SignData [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 01 02 [13:12:16]Write to MH i2c: E2 08 00 60 17 80 0D 01 02 00 00 00 00 F0 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]wFMCommunicate request_size=255 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 30 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 14 03 00 35 04 06 00 CD [13:12:16]Write to MH i2c: E2 02 01 61 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 30 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 14 03 00 35 04 06 00 CD 00 00 4E [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]wFMCommunicate request_size=10 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 02 02 05 48 07 1F 3C A1 [13:12:16]Write to MH i2c: E2 0D 00 62 17 80 0D 02 02 05 00 48 07 1F 3C A1 00 00 48 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 03 02 [13:12:16]Write to MH i2c: E2 08 00 63 17 80 0D 03 02 00 00 00 00 F5 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 0B 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 0B 00 63 17 00 37 B8 43 49 06 3B C8 81 90 00 FB [13:12:16]RAPDU: 37 B8 43 49 06 3B C8 81 90 00 [13:12:16]wFMCommunicate OK [13:12:16]SAM_PROTO_SignData done [13:12:16]FM_MakeSignedData done [13:12:16]CreateOFDProtocolMessage [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 11 00 00 [13:12:16]Write to MH i2c: E2 08 00 64 17 80 11 00 00 00 00 00 00 F5 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:17]Read from MH i2c: E2 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 17 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 17 00 64 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [13:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:12:17]wFMCommunicate OK [13:12:17]CreateOFDProtocolMessage done [13:12:17]OFDSenderStorePacket 201962 [13:12:17]StoreOFDPacket docnum=201962 [13:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1B DE 07 01 DB 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 30 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 14 03 00 35 04 06 00 CD 48 07 1F 3C A1 37 B8 43 49 06 3B C8 81 [13:12:17]CheckFolder [13:12:17]dirname=/storage/ofd_packets [13:12:17]CheckFolder done [13:12:17]ProducePacketName [13:12:17]name=ofd_packets/00201962 [13:12:17]NVStorageSaveData ofd_packets/00201962 [13:12:17]File name is /storage/ofd_packets/00201962 [13:12:17]Write 301 bytes [13:12:17]NVStorageSaveData done [13:12:17]OFDSenderStorePacket done [13:12:17]KKMCreateOFDPacket done [13:12:17]NVStorageSaveData kkm_last_timestamp [13:12:17]File name is /storage/kkm_last_timestamp [13:12:17]Write 4 bytes [13:12:17]NVStorageSaveData done [13:12:17]ExternCall_PrintAddStr [13:12:17]wPrintStart [13:12:17]Write to MH i2c: 01 00 00 65 17 7C [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 65 17 00 00 00 00 00 FF 0F 91 [13:12:17]RasterBufferAndPrint [13:12:17]line Счет N : (1)449723 [13:12:17]line ИНН: 02508201610067 [13:12:17]line Контрольно-Кассовый Чек [13:12:17]line ПРОДАЖА [13:12:17]line ТРК (МРК, ГНК) : 51 [13:12:17]line Товар: 2710124500 [13:12:17]line Аи-95-К-3 [13:12:17]line 21.570 * 74.20 [13:12:17]line = 1600.49 [13:12:17]line НДС 12% НСП 1% [13:12:17]line > о реализуемом товаре [13:12:17]line ОКРУГЛЕНИЕ: -0.49 [13:12:17]line ИТОГО: 1600.00 [13:12:17]line Внесено: 1600.00 [13:12:17]line СДАЧА: 0.00 [13:12:17]line НСП 1% : 14.16 [13:12:17]line НДС 12% : 169.96 [13:12:17]line Наличными: 1600.00 [13:12:17]line Безнал.: 0.00 [13:12:17]line Место: АЗС № 171 "Партнер Нефть" [13:12:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:12:17]line СНО: Общий режим [13:12:17]line Чек 254 27.10.2024 13:12 [13:12:17]line Смена: 544 ФФД: 1.0 [13:12:17]line ЗНМ: 0300000109 [13:12:17]line РНМ: 0000000000091777 [13:12:17]line Версия ККМ: 001 [13:12:17]line ФМ: 0000000000871756 [13:12:17]line ФД: 201962 [13:12:17]line ФПД: 225709240827041 [13:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131216&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201962&fm=225709240827041&tin=02508201610067®Number=0000000000091777&sum=160000 [13:12:17]written 0, free lines is 4095 [13:12:17]Write to MH i2c: 01 00 00 90 17 A7 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 90 17 00 00 00 00 00 8C 0C 46 [13:12:17]RasterBufferAndPrint [13:12:17]line [13:12:17]line [13:12:17]line [13:12:17]line [13:12:17]line [13:12:17]written 0, free lines is 3215 [13:12:17]MH_Cut [13:12:17]Write to MH i2c: D1 01 00 97 17 01 80 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: D1 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: D1 01 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: D1 01 00 97 17 00 7F [13:12:17]Write to MH i2c: 01 00 00 98 17 AF [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:18]*** Cut start [13:12:18]*** Purtial cut [13:12:18]*** Stage 1: CUTSNS_PIN = 1 [13:12:18]Read from MH i2c: 01 [13:12:18]MH_I2C_Read... [13:12:18]*** Stop cut motor [13:12:18]*** Cut end [13:12:18]Read from MH i2c: 01 07 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: 01 07 00 98 17 00 00 00 00 00 FF 0F C4 [13:12:18]process_action close_receipt done [13:12:18]requested_data is exist [13:12:18]produce_requested_data [13:12:18]requested_item fm.sn is exist - process it [13:12:18]wFMCommunicate request_size=4 [13:12:18]MH_SAM_APDU [13:12:18]CAPDU: 80 11 00 00 [13:12:18]Write to MH i2c: E2 08 00 99 17 80 11 00 00 00 00 00 00 2A [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 17 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 17 00 99 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [13:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:12:19]wFMCommunicate OK [13:12:19]requested_item fd.num is exist - process it [13:12:19]SAM_PROTO_GetFieldsCounters [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 00 00 [13:12:19]Write to MH i2c: E2 08 00 9A 17 80 13 00 00 00 00 00 00 2D [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 62 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 62 00 9A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [13:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetFieldsCounters done [13:12:19]requested_item shift.num is exist - process it [13:12:19]requested_item shift.opened is exist - process it [13:12:19]req_shift_opened [13:12:19]FM_GetShiftState [13:12:19]SAM_PROTO_GetShiftState [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 01 00 [13:12:19]Write to MH i2c: E2 08 00 9B 17 80 13 01 00 00 00 00 00 2F [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 9B 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [13:12:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetShiftState done [13:12:19]FM_GetShiftState done [13:12:19]req_shift_opened done [13:12:19]requested_item shift.open_date is exist - process it [13:12:19]req_shift_open_date [13:12:19]req_shift_open_date done [13:12:19]produce_requested_data done [13:12:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201962,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:12:19]process_action_free close_receipt [13:12:19]json_value_free [13:12:19]json_value_free done [13:12:19]process_json_proto returns [13:12:19]Send response to host [13:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201962,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:12:19]free response buf [13:12:19]execute_script done [13:12:19]execute_script returns [13:12:19]free content buf [13:12:19]Sock 8.Close socket [13:12:19]Sock 8.Thread stoped [13:12:20]ConnectInit Can't connect to host [13:12:20]CommunicateWithHost connect error [13:12:20]CommunicateWithHost err = -1 [13:12:20]OFD Sender: Server communicate error [13:12:20]OFD Sender: Processing packet 201960 [packets to send 114, broken 111] [13:12:20]ProducePacketName [13:12:20]name=ofd_packets/00201960 [13:12:20]OFD Sender: To server: pG, [13:12:20]CommunicateWithHost lk.salyk.kg:30040 [13:12:20]ConnectInit lk.salyk.kg [13:12:20]Connected sock=8 [13:12:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EC B5 07 01 2D C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FC 00 00 00 F4 03 04 00 B1 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 14 03 00 35 04 06 00 EE 81 57 B2 12 6A 46 C8 E1 EB 5A 27 7F 56 [13:12:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 63 84 47 00 A4 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 30 38 37 31 37 35 36 10 04 04 00 E8 14 03 00 F4 03 04 00 EC E7 1D 67 B6 04 01 00 00 BA 88 C3 F8 B8 6F 72 67 [13:12:20]CommunicateWithHost err = 0 [13:12:20]CheckOFDResponse [13:12:20]1017 (14) - 77093643461234 [13:12:20]1041 (16) - 0000000000871756 [13:12:20]1040 (4) - 201960 [13:12:20]1012 (4) - 27.10.2024 07:12 [13:12:20]1206 (1) - 0 [13:12:20]OFD Sender: Remove packet 201960 [13:12:20]ProducePacketName [13:12:20]name=ofd_packets/00201960 [13:12:20]NVStorageDeleteData [13:12:20]OFD Sender: Processing packet 201961 [packets to send 113, broken 111] [13:12:20]ProducePacketName [13:12:20]name=ofd_packets/00201961 [13:12:20]OFD Sender: To server: pG, [13:12:20]CommunicateWithHost lk.salyk.kg:30040 [13:12:20]ConnectInit lk.salyk.kg [13:12:21]Connected sock=8 [13:12:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 BE E4 04 01 A8 C4 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 32 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 FD 00 00 00 F4 03 04 00 BF 3B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 14 03 00 35 04 06 00 DC BE C2 60 9F 6E 3A ED E2 0D 96 8A 63 0A [13:12:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4C 67 47 00 72 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 14 03 00 F4 03 04 00 ED E7 1D 67 B6 04 01 00 00 04 EF 88 F7 95 C0 3F C1 [13:12:21]CommunicateWithHost err = 0 [13:12:21]CheckOFDResponse [13:12:21]1017 (14) - 77093643461234 [13:12:21]1041 (16) - 0000000000871756 [13:12:21]1040 (4) - 201961 [13:12:21]1012 (4) - 27.10.2024 07:12 [13:12:21]1206 (1) - 0 [13:12:21]OFD Sender: Remove packet 201961 [13:12:21]ProducePacketName [13:12:21]name=ofd_packets/00201961 [13:12:21]NVStorageDeleteData [13:12:21]OFD Sender: Processing packet 201962 [packets to send 112, broken 111] [13:12:21]ProducePacketName [13:12:21]name=ofd_packets/00201962 [13:12:21]OFD Sender: To server: pG, [13:12:21]CommunicateWithHost lk.salyk.kg:30040 [13:12:21]ConnectInit lk.salyk.kg [13:12:21]Connected sock=8 [13:12:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1B DE 07 01 DB 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 30 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 14 03 00 35 04 06 00 CD 48 07 1F 3C A1 37 B8 43 49 06 3B C8 81 [13:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 70 7F 47 00 A8 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 14 03 00 F4 03 04 00 EE E7 1D 67 B6 04 01 00 00 B3 0A CC 52 06 0E 57 F7 [13:12:22]CommunicateWithHost err = 0 [13:12:22]CheckOFDResponse [13:12:22]1017 (14) - 77093643461234 [13:12:22]1041 (16) - 0000000000871756 [13:12:22]1040 (4) - 201962 [13:12:22]1012 (4) - 27.10.2024 07:12 [13:12:22]1206 (1) - 0 [13:12:22]OFD Sender: Remove packet 201962 [13:12:22]ProducePacketName [13:12:22]name=ofd_packets/00201962 [13:12:22]NVStorageDeleteData [13:12:22]accept exits with 9 [13:12:22]New connection [13:12:22]New thread 3066641764 created [13:12:22]Thread 3066498404 joined [13:12:22]Waiting for new connection... [13:12:22] Sock 9.Parse request [13:12:22]Sock 9.Check first char [13:12:22]Sock 9.First char is OK [13:12:22]request: POST /json_proto HTTP/1.0 [13:12:22]Method: POST [13:12:22]URL: /json_proto [13:12:22]Method is POST - this is cgi request [13:12:22]url: /json_proto [13:12:22]query_string will be loaded in cgi processing [13:12:22]execute_cgi json_proto POST (null) [13:12:22]execute_cgi path=json_proto method=POST [13:12:22]POST find Content-Length [13:12:22]Host: 172.17.63.195:8080 [13:12:22]Content-Length: 679 [13:12:22]Content-Type: application/json [13:12:22] [13:12:22]POST finish read [13:12:22]Found Content-Length = 679 [13:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:12:22]execute_script... [13:12:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:12:22]POST & json_proto [13:12:22]process_json_proto [13:12:22]json parsed OK: [13:12:22]protocol is kg_v1.0 [13:12:22]action value=close_receipt [13:12:22]process_action close_receipt [13:12:22]cmd_close_receipt [13:12:22]MH_GetDate [13:12:22]Write to MH i2c: F0 00 00 9C 17 A2 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: F0 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: F0 09 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: F0 09 00 9C 17 00 37 3C 1E 67 47 1B 1E 67 8A [13:12:22]GetLastDocTimeStamp 1730034736 [13:12:22]current date 1730034743 [13:12:22]FM_GetShiftState [13:12:22]SAM_PROTO_GetShiftState [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 13 01 00 [13:12:22]Write to MH i2c: E2 08 00 9D 17 80 13 01 00 00 00 00 00 31 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 0E 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 0E 00 9D 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 33 [13:12:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:12:22]wFMCommunicate OK [13:12:22]SAM_PROTO_GetShiftState done [13:12:22]FM_GetShiftState done [13:12:22]opened in 1729987312 [13:12:22]opened+sec_in_day 1730073712 [13:12:22]quantity*price = 100050 [13:12:22]sum+1 = 100052 [13:12:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 255 27.10.2024 13:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201963 ФПД: 71503596413104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131223&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201963&fm=71503596413104&tin=02508201610067®Number=0000000000091777&sum=100000 [13:12:23]StoreToDocumentArchive [13:12:23]shift 544 fd 201963 [13:12:23]save to /storage/0544/doc_00201963 [13:12:23]save last doc name /storage/0544/doc_00201963 to /storage/kkm_last_doc_name [13:12:23]save OK [13:12:23]Clear old archive folders... [13:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:12:23]tlvbuf is 0119D890 [13:12:23]SAM_PROTO_ClearQueue [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 09 00 00 [13:12:23]Write to MH i2c: E2 08 00 AA 17 80 09 00 00 00 00 00 00 33 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 03 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [13:12:23]RAPDU: 90 00 [13:12:23]wFMCommunicate OK [13:12:23]SAM_PROTO_ClearQueue done [13:12:23]KKMCreateOFDPacket [13:12:23]OFDProtocolAddRootSTLVToBuf [13:12:23]FM_MakeSignedData [13:12:23]FM_MakeSignedData [13:12:23]SAM_PROTO_SignData [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 0D 01 02 [13:12:23]Write to MH i2c: E2 08 00 AB 17 80 0D 01 02 00 00 00 00 3B [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 03 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [13:12:23]RAPDU: 90 00 [13:12:23]wFMCommunicate OK [13:12:23]wFMCommunicate request_size=255 [13:12:23]MH_SAM_APDU [13:12: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 32 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 FF 00 00 00 F4 03 04 00 37 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 14 03 00 35 04 06 00 41 08 3A 76 [13:12:23]Write to MH i2c: E2 02 01 AC 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 32 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 FF 00 00 00 F4 03 04 00 37 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 14 03 00 35 04 06 00 41 08 3A 76 00 00 D9 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 03 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [13:12:23]RAPDU: 90 00 [13:12:23]wFMCommunicate OK [13:12:23]wFMCommunicate request_size=7 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 0D 02 02 02 E0 B0 [13:12:23]Write to MH i2c: E2 0A 00 AD 17 80 0D 02 02 02 00 E0 B0 00 00 D2 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 03 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [13:12:23]RAPDU: 90 00 [13:12:23]wFMCommunicate OK [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 0D 03 02 [13:12:23]Write to MH i2c: E2 08 00 AE 17 80 0D 03 02 00 00 00 00 40 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 0B 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 0B 00 AE 17 00 FF 32 71 BD F0 0B F9 D4 90 00 68 [13:12:24]RAPDU: FF 32 71 BD F0 0B F9 D4 90 00 [13:12:24]wFMCommunicate OK [13:12:24]SAM_PROTO_SignData done [13:12:24]FM_MakeSignedData done [13:12:24]CreateOFDProtocolMessage [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 11 00 00 [13:12:24]Write to MH i2c: E2 08 00 AF 17 80 11 00 00 00 00 00 00 40 [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 17 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 17 00 AF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [13:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:12:24]wFMCommunicate OK [13:12:24]CreateOFDProtocolMessage done [13:12:24]OFDSenderStorePacket 201963 [13:12:24]StoreOFDPacket docnum=201963 [13:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 6F C9 04 01 0A 8B 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 32 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 FF 00 00 00 F4 03 04 00 37 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 14 03 00 35 04 06 00 41 08 3A 76 E0 B0 FF 32 71 BD F0 0B F9 D4 [13:12:24]CheckFolder [13:12:24]dirname=/storage/ofd_packets [13:12:24]CheckFolder done [13:12:24]ProducePacketName [13:12:24]name=ofd_packets/00201963 [13:12:24]NVStorageSaveData ofd_packets/00201963 [13:12:24]File name is /storage/ofd_packets/00201963 [13:12:24]Write 298 bytes [13:12:24]NVStorageSaveData done [13:12:24]OFDSenderStorePacket done [13:12:24]KKMCreateOFDPacket done [13:12:24]NVStorageSaveData kkm_last_timestamp [13:12:24]File name is /storage/kkm_last_timestamp [13:12:24]Write 4 bytes [13:12:24]NVStorageSaveData done [13:12:24]ExternCall_PrintAddStr [13:12:24]wPrintStart [13:12:24]Write to MH i2c: 01 00 00 B0 17 C7 [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 07 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 07 00 B0 17 00 00 00 00 00 FF 0F DC [13:12:24]RasterBufferAndPrint [13:12:24]line Счет N : (1)449724 [13:12:24]line ИНН: 02508201610067 [13:12:24]line Контрольно-Кассовый Чек [13:12:24]line ПРОДАЖА [13:12:24]line ТРК (МРК, ГНК) : 43 [13:12:24]line Товар: 2710194210 [13:12:24]line ДТ-К-2 [13:12:24]line 13.130 * 76.20 [13:12:24]line = 1000.51 [13:12:24]line НДС 12% НСП 1% [13:12:24]line > о реализуемом товаре [13:12:24]line ОКРУГЛЕНИЕ: -0.51 [13:12:24]line ИТОГО: 1000.00 [13:12:24]line Внесено: 1000.00 [13:12:24]line СДАЧА: 0.00 [13:12:24]line НСП 1% : 8.85 [13:12:24]line НДС 12% : 106.25 [13:12:24]line Наличными: 1000.00 [13:12:24]line Безнал.: 0.00 [13:12:24]line Место: АЗС № 171 "Партнер Нефть" [13:12:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:12:24]line СНО: Общий режим [13:12:24]line Чек 255 27.10.2024 13:12 [13:12:24]line Смена: 544 ФФД: 1.0 [13:12:24]line ЗНМ: 0300000109 [13:12:24]line РНМ: 0000000000091777 [13:12:24]line Версия ККМ: 001 [13:12:24]line ФМ: 0000000000871756 [13:12:24]line ФД: 201963 [13:12:24]line ФПД: 71503596413104 [13:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131223&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201963&fm=71503596413104&tin=02508201610067®Number=0000000000091777&sum=100000 [13:12:24]written 0, free lines is 4095 [13:12:24]OFD Sender: Processing packet 201963 [packets to send 112, broken 111] [13:12:24]ProducePacketName [13:12:24]name=ofd_packets/00201963 [13:12:24]OFD Sender: To server: pG, [13:12:24]CommunicateWithHost lk.salyk.kg:30040 [13:12:24]ConnectInit lk.salyk.kg [13:12:24]Connected sock=10 [13:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 6F C9 04 01 0A 8B 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 32 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 FF 00 00 00 F4 03 04 00 37 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 14 03 00 35 04 06 00 41 08 3A 76 E0 B0 FF 32 71 BD F0 0B F9 D4 [13:12:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 99 A9 47 00 3D 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 14 03 00 F4 03 04 00 F0 E7 1D 67 B6 04 01 00 00 03 8E EB B1 EA E2 F3 21 [13:12:24]CommunicateWithHost err = 0 [13:12:24]CheckOFDResponse [13:12:24]1017 (14) - 77093643461234 [13:12:24]1041 (16) - 0000000000871756 [13:12:24]1040 (4) - 201963 [13:12:24]1012 (4) - 27.10.2024 07:12 [13:12:24]1206 (1) - 0 [13:12:24]OFD Sender: Remove packet 201963 [13:12:24]ProducePacketName [13:12:24]name=ofd_packets/00201963 [13:12:24]NVStorageDeleteData [13:12:24]Write to MH i2c: 01 00 00 DB 17 F2 [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 07 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 07 00 DB 17 00 00 00 00 00 A0 0C A5 [13:12:24]RasterBufferAndPrint [13:12:24]line [13:12:24]line [13:12:24]line [13:12:24]line [13:12:24]line [13:12:24]written 0, free lines is 3242 [13:12:24]MH_Cut [13:12:24]Write to MH i2c: D1 01 00 E2 17 01 CB [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: D1 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: D1 01 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: D1 01 00 E2 17 00 CA [13:12:24]Write to MH i2c: 01 00 00 E3 17 FA [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:25]OFD Sender: No OFD packet to send [13:12:25]*** Cut start [13:12:25]*** Purtial cut [13:12:25]*** Stage 1: CUTSNS_PIN = 1 [13:12:25]Read from MH i2c: 01 [13:12:25]MH_I2C_Read... [13:12:25]*** Stop cut motor [13:12:25]*** Cut end [13:12:25]Read from MH i2c: 01 07 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 FF 0F 0F [13:12:25]process_action close_receipt done [13:12:25]requested_data is exist [13:12:25]produce_requested_data [13:12:25]requested_item fm.sn is exist - process it [13:12:25]wFMCommunicate request_size=4 [13:12:25]MH_SAM_APDU [13:12:25]CAPDU: 80 11 00 00 [13:12:25]Write to MH i2c: E2 08 00 E4 17 80 11 00 00 00 00 00 00 75 [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:25]Read from MH i2c: E2 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 17 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 17 00 E4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [13:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:12:25]wFMCommunicate OK [13:12:25]requested_item fd.num is exist - process it [13:12:25]SAM_PROTO_GetFieldsCounters [13:12:25]wFMCommunicate request_size=4 [13:12:25]MH_SAM_APDU [13:12:25]CAPDU: 80 13 00 00 [13:12:25]Write to MH i2c: E2 08 00 E5 17 80 13 00 00 00 00 00 00 78 [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:25]Read from MH i2c: E2 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 62 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 62 00 E5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:12:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:25]wFMCommunicate OK [13:12:25]SAM_PROTO_GetFieldsCounters done [13:12:25]requested_item shift.num is exist - process it [13:12:25]requested_item shift.opened is exist - process it [13:12:25]req_shift_opened [13:12:25]FM_GetShiftState [13:12:25]SAM_PROTO_GetShiftState [13:12:25]wFMCommunicate request_size=4 [13:12:25]MH_SAM_APDU [13:12:25]CAPDU: 80 13 01 00 [13:12:25]Write to MH i2c: E2 08 00 E6 17 80 13 01 00 00 00 00 00 7A [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:26]Read from MH i2c: E2 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 0E 00 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 0E 00 E6 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7C [13:12:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:12:26]wFMCommunicate OK [13:12:26]SAM_PROTO_GetShiftState done [13:12:26]FM_GetShiftState done [13:12:26]req_shift_opened done [13:12:26]requested_item shift.open_date is exist - process it [13:12:26]req_shift_open_date [13:12:26]req_shift_open_date done [13:12:26]produce_requested_data done [13:12:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201963,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:12:26]process_action_free close_receipt [13:12:26]json_value_free [13:12:26]json_value_free done [13:12:26]process_json_proto returns [13:12:26]Send response to host [13:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201963,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:12:26]free response buf [13:12:26]execute_script done [13:12:26]execute_script returns [13:12:26]free content buf [13:12:26]Sock 9.Close socket [13:12:26]Sock 9.Thread stoped [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:40]accept exits with 8 [13:12:40]New connection [13:12:40]New thread 3066498404 created [13:12:40]Thread 3066641764 joined [13:12:40]Waiting for new connection... [13:12:40] Sock 8.Parse request [13:12:40]Sock 8.Check first char [13:12:40]Sock 8.First char is OK [13:12:40]request: POST /json_proto HTTP/1.0 [13:12:40]Method: POST [13:12:40]URL: /json_proto [13:12:40]Method is POST - this is cgi request [13:12:40]url: /json_proto [13:12:40]query_string will be loaded in cgi processing [13:12:40]execute_cgi json_proto POST (null) [13:12:40]execute_cgi path=json_proto method=POST [13:12:40]POST find Content-Length [13:12:40]Host: 172.17.63.195:8080 [13:12:40]Content-Length: 677 [13:12:40]Content-Type: application/json [13:12:40] [13:12:40]POST finish read [13:12:40]Found Content-Length = 677 [13:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:40]execute_script... [13:12: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)449726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:40]POST & json_proto [13:12:40]process_json_proto [13:12:40]json parsed OK: [13:12:40]protocol is kg_v1.0 [13:12:40]action value=close_receipt [13:12:40]process_action close_receipt [13:12:40]cmd_close_receipt [13:12:40]MH_GetDate [13:12:40]Write to MH i2c: F0 00 00 E7 17 ED [13:12:40]Write i2c OK [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: F0 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: F0 09 00 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: F0 09 00 E7 17 00 49 3C 1E 67 47 1B 1E 67 E7 [13:12:40]GetLastDocTimeStamp 1730034743 [13:12:40]current date 1730034761 [13:12:40]FM_GetShiftState [13:12:40]SAM_PROTO_GetShiftState [13:12:40]wFMCommunicate request_size=4 [13:12:40]MH_SAM_APDU [13:12:40]CAPDU: 80 13 01 00 [13:12:40]Write to MH i2c: E2 08 00 E8 17 80 13 01 00 00 00 00 00 7C [13:12:40]Write i2c OK [13:12:40]MH_I2C_Read... [13:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:40]Read from MH i2c: E2 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: E2 0E 00 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: E2 0E 00 E8 17 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7E [13:12:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:12:40]wFMCommunicate OK [13:12:40]SAM_PROTO_GetShiftState done [13:12:40]FM_GetShiftState done [13:12:40]opened in 1729987312 [13:12:40]opened+sec_in_day 1730073712 [13:12:40]quantity*price = 50041 [13:12:40]sum+1 = 50042 [13:12:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 256 27.10.2024 13:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201964 ФПД: 274065825481187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131241&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201964&fm=274065825481187&tin=02508201610067®Number=0000000000091777&sum=50000 [13:12:41]StoreToDocumentArchive [13:12:41]shift 544 fd 201964 [13:12:41]save to /storage/0544/doc_00201964 [13:12:41]save last doc name /storage/0544/doc_00201964 to /storage/kkm_last_doc_name [13:12:41]save OK [13:12:41]Clear old archive folders... [13:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:41]tlvbuf is 0122A4A0 [13:12:41]SAM_PROTO_ClearQueue [13:12:41]wFMCommunicate request_size=4 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 09 00 00 [13:12:41]Write to MH i2c: E2 08 00 F5 17 80 09 00 00 00 00 00 00 7E [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 03 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 03 00 F5 17 00 90 00 80 [13:12:41]RAPDU: 90 00 [13:12:41]wFMCommunicate OK [13:12:41]SAM_PROTO_ClearQueue done [13:12:41]KKMCreateOFDPacket [13:12:41]OFDProtocolAddRootSTLVToBuf [13:12:41]FM_MakeSignedData [13:12:41]FM_MakeSignedData [13:12:41]SAM_PROTO_SignData [13:12:41]wFMCommunicate request_size=4 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 0D 01 02 [13:12:41]Write to MH i2c: E2 08 00 F6 17 80 0D 01 02 00 00 00 00 86 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 03 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [13:12:41]RAPDU: 90 00 [13:12:41]wFMCommunicate OK [13:12:41]wFMCommunicate request_size=255 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 00 01 00 00 F4 03 04 00 49 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 14 03 00 35 04 06 00 F9 [13:12:41]Write to MH i2c: E2 02 01 F7 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 00 01 00 00 F4 03 04 00 49 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 14 03 00 35 04 06 00 F9 00 00 43 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 03 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [13:12:41]RAPDU: 90 00 [13:12:41]wFMCommunicate OK [13:12:41]wFMCommunicate request_size=10 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 0D 02 02 05 42 EC 2C 41 E3 [13:12:41]Write to MH i2c: E2 0D 00 F8 17 80 0D 02 02 05 00 42 EC 2C 41 E3 00 00 11 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 03 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [13:12:41]RAPDU: 90 00 [13:12:41]wFMCommunicate OK [13:12:41]wFMCommunicate request_size=4 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 0D 03 02 [13:12:41]Write to MH i2c: E2 08 00 F9 17 80 0D 03 02 00 00 00 00 8B [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 0B 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 0B 00 F9 17 00 FA 58 74 9D 78 62 4B FF 90 00 13 [13:12:41]RAPDU: FA 58 74 9D 78 62 4B FF 90 00 [13:12:42]wFMCommunicate OK [13:12:42]SAM_PROTO_SignData done [13:12:42]FM_MakeSignedData done [13:12:42]CreateOFDProtocolMessage [13:12:42]wFMCommunicate request_size=4 [13:12:42]MH_SAM_APDU [13:12:42]CAPDU: 80 11 00 00 [13:12:42]Write to MH i2c: E2 08 00 FA 17 80 11 00 00 00 00 00 00 8B [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 [13:12:42]MH_I2C_Read... [13:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:42]Read from MH i2c: E2 17 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 17 00 FA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E0 [13:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:12:42]wFMCommunicate OK [13:12:42]CreateOFDProtocolMessage done [13:12:42]OFDSenderStorePacket 201964 [13:12:42]StoreOFDPacket docnum=201964 [13:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4D CF 07 01 12 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 00 01 00 00 F4 03 04 00 49 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 14 03 00 35 04 06 00 F9 42 EC 2C 41 E3 FA 58 74 9D 78 62 4B FF [13:12:42]CheckFolder [13:12:42]dirname=/storage/ofd_packets [13:12:42]CheckFolder done [13:12:42]ProducePacketName [13:12:42]name=ofd_packets/00201964 [13:12:42]NVStorageSaveData ofd_packets/00201964 [13:12:42]File name is /storage/ofd_packets/00201964 [13:12:42]Write 301 bytes [13:12:42]NVStorageSaveData done [13:12:42]OFDSenderStorePacket done [13:12:42]KKMCreateOFDPacket done [13:12:42]NVStorageSaveData kkm_last_timestamp [13:12:42]File name is /storage/kkm_last_timestamp [13:12:42]Write 4 bytes [13:12:42]NVStorageSaveData done [13:12:42]ExternCall_PrintAddStr [13:12:42]wPrintStart [13:12:42]Write to MH i2c: 01 00 00 FB 17 12 [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: 01 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: 01 07 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: 01 07 00 FB 17 00 00 00 00 00 FF 0F 27 [13:12:42]RasterBufferAndPrint [13:12:42]line Счет N : (1)449726 [13:12:42]line ИНН: 02508201610067 [13:12:42]line Контрольно-Кассовый Чек [13:12:42]line ПРОДАЖА [13:12:42]line ТРК (МРК, ГНК) : 31 [13:12:42]line Товар: 2710124130 [13:12:42]line Аи-92-К-2 [13:12:42]line 7.480 * 66.90 [13:12:42]line = 500.41 [13:12:42]line НДС 12% НСП 1% [13:12:42]line > о реализуемом товаре [13:12:42]line ОКРУГЛЕНИЕ: -0.41 [13:12:42]line ИТОГО: 500.00 [13:12:42]line Внесено: 500.00 [13:12:42]line СДАЧА: 0.00 [13:12:42]line НСП 1% : 4.43 [13:12:42]line НДС 12% : 53.14 [13:12:42]line Наличными: 500.00 [13:12:42]line Безнал.: 0.00 [13:12:42]line Место: АЗС № 171 "Партнер Нефть" [13:12:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:12:42]line СНО: Общий режим [13:12:42]line Чек 256 27.10.2024 13:12 [13:12:42]line Смена: 544 ФФД: 1.0 [13:12:42]line ЗНМ: 0300000109 [13:12:42]line РНМ: 0000000000091777 [13:12:42]line Версия ККМ: 001 [13:12:42]line ФМ: 0000000000871756 [13:12:42]line ФД: 201964 [13:12:42]line ФПД: 274065825481187 [13:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131241&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201964&fm=274065825481187&tin=02508201610067®Number=0000000000091777&sum=50000 [13:12:42]written 0, free lines is 4095 [13:12:42]OFD Sender: Processing packet 201964 [packets to send 112, broken 111] [13:12:42]ProducePacketName [13:12:42]name=ofd_packets/00201964 [13:12:42]OFD Sender: To server: pG, [13:12:42]CommunicateWithHost lk.salyk.kg:30040 [13:12:42]ConnectInit lk.salyk.kg [13:12:42]Connected sock=10 [13:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4D CF 07 01 12 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 00 01 00 00 F4 03 04 00 49 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 14 03 00 35 04 06 00 F9 42 EC 2C 41 E3 FA 58 74 9D 78 62 4B FF [13:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2A 1F 47 00 69 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 14 03 00 F4 03 04 00 02 E8 1D 67 B6 04 01 00 00 B4 CE 0D 5B 8C 0C 85 1C [13:12:42]CommunicateWithHost err = 0 [13:12:42]CheckOFDResponse [13:12:42]1017 (14) - 77093643461234 [13:12:42]1041 (16) - 0000000000871756 [13:12:42]1040 (4) - 201964 [13:12:42]1012 (4) - 27.10.2024 07:13 [13:12:42]1206 (1) - 0 [13:12:42]OFD Sender: Remove packet 201964 [13:12:42]ProducePacketName [13:12:42]name=ofd_packets/00201964 [13:12:42]NVStorageDeleteData [13:12:42]Write to MH i2c: 01 00 00 26 18 3E [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: 01 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: 01 07 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: 01 07 00 26 18 00 00 00 00 00 AC 0C FD [13:12:42]RasterBufferAndPrint [13:12:42]line [13:12:42]line [13:12:42]line [13:12:42]line [13:12:42]line [13:12:42]written 0, free lines is 3255 [13:12:42]MH_Cut [13:12:42]Write to MH i2c: D1 01 00 2D 18 01 17 [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: D1 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: D1 01 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: D1 01 00 2D 18 00 16 [13:12:42]Write to MH i2c: 01 00 00 2E 18 46 [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]OFD Sender: No OFD packet to send [13:12:43]*** Cut start [13:12:43]*** Purtial cut [13:12:43]*** Stage 1: CUTSNS_PIN = 1 [13:12:43]Read from MH i2c: 01 [13:12:43]MH_I2C_Read... [13:12:43]*** Stop cut motor [13:12:43]*** Cut end [13:12:43]Read from MH i2c: 01 07 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 FF 0F 5B [13:12:43]process_action close_receipt done [13:12:43]requested_data is exist [13:12:43]produce_requested_data [13:12:43]requested_item fm.sn is exist - process it [13:12:43]wFMCommunicate request_size=4 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 11 00 00 [13:12:43]Write to MH i2c: E2 08 00 2F 18 80 11 00 00 00 00 00 00 C1 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 17 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 17 00 2F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [13:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:12:43]wFMCommunicate OK [13:12:43]requested_item fd.num is exist - process it [13:12:43]SAM_PROTO_GetFieldsCounters [13:12:43]wFMCommunicate request_size=4 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 13 00 00 [13:12:43]Write to MH i2c: E2 08 00 30 18 80 13 00 00 00 00 00 00 C4 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 62 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 62 00 30 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [13:12:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:43]wFMCommunicate OK [13:12:43]SAM_PROTO_GetFieldsCounters done [13:12:43]requested_item shift.num is exist - process it [13:12:43]requested_item shift.opened is exist - process it [13:12:43]req_shift_opened [13:12:43]FM_GetShiftState [13:12:43]SAM_PROTO_GetShiftState [13:12:43]wFMCommunicate request_size=4 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 13 01 00 [13:12:43]Write to MH i2c: E2 08 00 31 18 80 13 01 00 00 00 00 00 C6 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 0E 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 0E 00 31 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C8 [13:12:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:12:43]wFMCommunicate OK [13:12:43]SAM_PROTO_GetShiftState done [13:12:43]FM_GetShiftState done [13:12:43]req_shift_opened done [13:12:43]requested_item shift.open_date is exist - process it [13:12:43]req_shift_open_date [13:12:43]req_shift_open_date done [13:12:43]produce_requested_data done [13:12:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201964,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:12:43]process_action_free close_receipt [13:12:43]json_value_free [13:12:43]json_value_free done [13:12:43]process_json_proto returns [13:12:43]Send response to host [13:12:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201964,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:12:43]free response buf [13:12:43]execute_script done [13:12:43]execute_script returns [13:12:43]free content buf [13:12:43]Sock 8.Close socket [13:12:43]Sock 8.Thread stoped [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:53]accept exits with 9 [13:12:53]New connection [13:12:53]New thread 3066641764 created [13:12:53]Thread 3066498404 joined [13:12:53]Waiting for new connection... [13:12:53] Sock 9.Parse request [13:12:53]Sock 9.Check first char [13:12:53]Sock 9.First char is OK [13:12:53]request: POST /json_proto HTTP/1.0 [13:12:53]Method: POST [13:12:53]URL: /json_proto [13:12:53]Method is POST - this is cgi request [13:12:53]url: /json_proto [13:12:53]query_string will be loaded in cgi processing [13:12:53]execute_cgi json_proto POST (null) [13:12:53]execute_cgi path=json_proto method=POST [13:12:53]POST find Content-Length [13:12:53]Host: 172.17.63.195:8080 [13:12:53]Content-Length: 682 [13:12:53]Content-Type: application/json [13:12:53] [13:12:53]POST finish read [13:12:53]Found Content-Length = 682 [13:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:53]execute_script... [13:12:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:53]POST & json_proto [13:12:53]process_json_proto [13:12:53]json parsed OK: [13:12:53]protocol is kg_v1.0 [13:12:53]action value=close_receipt [13:12:53]process_action close_receipt [13:12:53]cmd_close_receipt [13:12:53]MH_GetDate [13:12:53]Write to MH i2c: F0 00 00 32 18 39 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 09 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: F0 09 00 32 18 00 56 3C 1E 67 47 1B 1E 67 40 [13:12:53]GetLastDocTimeStamp 1730034761 [13:12:53]current date 1730034774 [13:12:53]FM_GetShiftState [13:12:53]SAM_PROTO_GetShiftState [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 01 00 [13:12:53]Write to MH i2c: E2 08 00 33 18 80 13 01 00 00 00 00 00 C8 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 33 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CA [13:12:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetShiftState done [13:12:53]FM_GetShiftState done [13:12:53]opened in 1729987312 [13:12:53]opened+sec_in_day 1730073712 [13:12:53]quantity*price = 100015 [13:12:53]sum+1 = 100017 [13:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 257 27.10.2024 13:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201965 ФПД: 237721340318083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131254&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201965&fm=237721340318083&tin=02508201610067®Number=0000000000091777&sum=100000 [13:12:54]StoreToDocumentArchive [13:12:54]shift 544 fd 201965 [13:12:54]save to /storage/0544/doc_00201965 [13:12:54]save last doc name /storage/0544/doc_00201965 to /storage/kkm_last_doc_name [13:12:54]save OK [13:12:54]Clear old archive folders... [13:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:54]tlvbuf is 011FC4E0 [13:12:54]SAM_PROTO_ClearQueue [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 09 00 00 [13:12:54]Write to MH i2c: E2 08 00 40 18 80 09 00 00 00 00 00 00 CA [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 40 18 00 90 00 CC [13:12:54]RAPDU: 90 00 [13:12:54]wFMCommunicate OK [13:12:54]SAM_PROTO_ClearQueue done [13:12:54]KKMCreateOFDPacket [13:12:54]OFDProtocolAddRootSTLVToBuf [13:12:54]FM_MakeSignedData [13:12:54]FM_MakeSignedData [13:12:54]SAM_PROTO_SignData [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 0D 01 02 [13:12:54]Write to MH i2c: E2 08 00 41 18 80 0D 01 02 00 00 00 00 D2 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [13:12:54]RAPDU: 90 00 [13:12:54]wFMCommunicate OK [13:12:54]wFMCommunicate request_size=255 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 01 00 00 F4 03 04 00 56 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 14 03 00 35 04 06 00 D8 [13:12:54]Write to MH i2c: E2 02 01 42 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 01 00 00 F4 03 04 00 56 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 14 03 00 35 04 06 00 D8 00 00 77 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [13:12:55]RAPDU: 90 00 [13:12:55]wFMCommunicate OK [13:12:55]wFMCommunicate request_size=10 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 0D 02 02 05 34 D0 0B 91 83 [13:12:55]Write to MH i2c: E2 0D 00 43 18 80 0D 02 02 05 00 34 D0 0B 91 83 00 00 02 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [13:12:55]RAPDU: 90 00 [13:12:55]wFMCommunicate OK [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 0D 03 02 [13:12:55]Write to MH i2c: E2 08 00 44 18 80 0D 03 02 00 00 00 00 D7 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0B 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0B 00 44 18 00 E4 37 05 6C AF BC 28 1E 90 00 15 [13:12:55]RAPDU: E4 37 05 6C AF BC 28 1E 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_SignData done [13:12:55]FM_MakeSignedData done [13:12:55]CreateOFDProtocolMessage [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 11 00 00 [13:12:55]Write to MH i2c: E2 08 00 45 18 80 11 00 00 00 00 00 00 D7 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 17 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 17 00 45 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [13:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:12:55]wFMCommunicate OK [13:12:55]CreateOFDProtocolMessage done [13:12:55]OFDSenderStorePacket 201965 [13:12:55]StoreOFDPacket docnum=201965 [13:12:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CF 84 07 01 D0 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 01 00 00 F4 03 04 00 56 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 14 03 00 35 04 06 00 D8 34 D0 0B 91 83 E4 37 05 6C AF BC 28 1E [13:12:55]CheckFolder [13:12:55]dirname=/storage/ofd_packets [13:12:55]CheckFolder done [13:12:55]ProducePacketName [13:12:55]name=ofd_packets/00201965 [13:12:55]NVStorageSaveData ofd_packets/00201965 [13:12:55]File name is /storage/ofd_packets/00201965 [13:12:55]Write 301 bytes [13:12:55]NVStorageSaveData done [13:12:55]OFDSenderStorePacket done [13:12:55]KKMCreateOFDPacket done [13:12:55]NVStorageSaveData kkm_last_timestamp [13:12:55]File name is /storage/kkm_last_timestamp [13:12:55]Write 4 bytes [13:12:55]NVStorageSaveData done [13:12:55]ExternCall_PrintAddStr [13:12:55]wPrintStart [13:12:55]Write to MH i2c: 01 00 00 46 18 5E [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 FF 0F 73 [13:12:55]RasterBufferAndPrint [13:12:55]line Счет N : (1)449725 [13:12:55]line ИНН: 02508201610067 [13:12:55]line Контрольно-Кассовый Чек [13:12:55]line ПРОДАЖА [13:12:55]line ТРК (МРК, ГНК) : 62 [13:12:55]line Товар: 2710124130 [13:12:55]line Аи-92-К-2 [13:12:55]line 14.950 * 66.90 [13:12:55]line = 1000.16 [13:12:55]line НДС 12% НСП 1% [13:12:55]line > о реализуемом товаре [13:12:55]line ОКРУГЛЕНИЕ: -0.16 [13:12:55]line ИТОГО: 1000.00 [13:12:55]line Внесено: 1000.00 [13:12:55]line СДАЧА: 0.00 [13:12:55]line НСП 1% : 8.85 [13:12:55]line НДС 12% : 106.21 [13:12:55]line Наличными: 1000.00 [13:12:55]line Безнал.: 0.00 [13:12:55]line Место: АЗС № 171 "Партнер Нефть" [13:12:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:12:55]line СНО: Общий режим [13:12:55]line Чек 257 27.10.2024 13:12 [13:12:55]line Смена: 544 ФФД: 1.0 [13:12:55]line ЗНМ: 0300000109 [13:12:55]line РНМ: 0000000000091777 [13:12:55]line Версия ККМ: 001 [13:12:55]line ФМ: 0000000000871756 [13:12:55]line ФД: 201965 [13:12:55]line ФПД: 237721340318083 [13:12:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131254&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201965&fm=237721340318083&tin=02508201610067®Number=0000000000091777&sum=100000 [13:12:55]written 0, free lines is 4095 [13:12:55]OFD Sender: Processing packet 201965 [packets to send 112, broken 111] [13:12:55]ProducePacketName [13:12:55]name=ofd_packets/00201965 [13:12:55]OFD Sender: To server: pG, [13:12:55]CommunicateWithHost lk.salyk.kg:30040 [13:12:55]ConnectInit lk.salyk.kg [13:12:55]Connected sock=10 [13:12:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CF 84 07 01 D0 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 01 00 00 F4 03 04 00 56 3C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 14 03 00 35 04 06 00 D8 34 D0 0B 91 83 E4 37 05 6C AF BC 28 1E [13:12:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B3 86 47 00 C9 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 14 03 00 F4 03 04 00 10 E8 1D 67 B6 04 01 00 00 E7 33 C6 CD 50 4D 07 AE [13:12:55]CommunicateWithHost err = 0 [13:12:55]CheckOFDResponse [13:12:55]1017 (14) - 77093643461234 [13:12:55]1041 (16) - 0000000000871756 [13:12:55]1040 (4) - 201965 [13:12:55]1012 (4) - 27.10.2024 07:13 [13:12:55]1206 (1) - 0 [13:12:55]OFD Sender: Remove packet 201965 [13:12:55]ProducePacketName [13:12:55]name=ofd_packets/00201965 [13:12:55]NVStorageDeleteData [13:12:55]Write to MH i2c: 01 00 00 71 18 89 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: 01 07 00 71 18 00 00 00 00 00 9B 0C 37 [13:12:55]RasterBufferAndPrint [13:12:55]line [13:12:55]line [13:12:55]line [13:12:55]line [13:12:55]line [13:12:55]written 0, free lines is 3238 [13:12:55]MH_Cut [13:12:55]Write to MH i2c: D1 01 00 78 18 01 62 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: D1 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: D1 01 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: D1 01 00 78 18 00 61 [13:12:55]Write to MH i2c: 01 00 00 79 18 91 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:56]OFD Sender: No OFD packet to send [13:12:56]*** Cut start [13:12:56]*** Purtial cut [13:12:56]*** Stage 1: CUTSNS_PIN = 1 [13:12:56]Read from MH i2c: 01 [13:12:56]MH_I2C_Read... [13:12:56]*** Stop cut motor [13:12:56]*** Cut end [13:12:56]Read from MH i2c: 01 07 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 07 00 79 18 00 00 00 00 00 FF 0F A6 [13:12:56]process_action close_receipt done [13:12:56]requested_data is exist [13:12:56]produce_requested_data [13:12:56]requested_item fm.sn is exist - process it [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 11 00 00 [13:12:56]Write to MH i2c: E2 08 00 7A 18 80 11 00 00 00 00 00 00 0C [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 17 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 17 00 7A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [13:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:12:56]wFMCommunicate OK [13:12:56]requested_item fd.num is exist - process it [13:12:56]SAM_PROTO_GetFieldsCounters [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 13 00 00 [13:12:56]Write to MH i2c: E2 08 00 7B 18 80 13 00 00 00 00 00 00 0F [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:57]Read from MH i2c: E2 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 62 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 62 00 7B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 ED 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [13:12:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 ED 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:57]wFMCommunicate OK [13:12:57]SAM_PROTO_GetFieldsCounters done [13:12:57]requested_item shift.num is exist - process it [13:12:57]requested_item shift.opened is exist - process it [13:12:57]req_shift_opened [13:12:57]FM_GetShiftState [13:12:57]SAM_PROTO_GetShiftState [13:12:57]wFMCommunicate request_size=4 [13:12:57]MH_SAM_APDU [13:12:57]CAPDU: 80 13 01 00 [13:12:57]Write to MH i2c: E2 08 00 7C 18 80 13 01 00 00 00 00 00 11 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:57]Read from MH i2c: E2 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 0E 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 0E 00 7C 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 13 [13:12:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:12:57]wFMCommunicate OK [13:12:57]SAM_PROTO_GetShiftState done [13:12:57]FM_GetShiftState done [13:12:57]req_shift_opened done [13:12:57]requested_item shift.open_date is exist - process it [13:12:57]req_shift_open_date [13:12:57]req_shift_open_date done [13:12:57]produce_requested_data done [13:12:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201965,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:12:57]process_action_free close_receipt [13:12:57]json_value_free [13:12:57]json_value_free done [13:12:57]process_json_proto returns [13:12:57]Send response to host [13:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201965,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:12:57]free response buf [13:12:57]execute_script done [13:12:57]execute_script returns [13:12:57]free content buf [13:12:57]Sock 9.Close socket [13:12:57]Sock 9.Thread stoped [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:34]int [13:13:34]Write to MH i2c: 01 00 00 7D 18 95 [13:13:34]*** FLAG_PRN_KEY set [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 07 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 07 00 7D 18 00 08 00 00 00 FF 0F B2 [13:13:34]state=0 [13:13:34]Key pressed [13:13:34]Feed [13:13:34]Write to MH i2c: D8 00 00 7E 18 6D [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D8 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D8 01 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D8 01 00 7E 18 00 6E [13:13:34]int [13:13:34]Write to MH i2c: 01 00 00 7F 18 97 [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 07 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 07 00 7F 18 00 48 00 00 00 3C 00 22 [13:13:34]state=2 [13:13:34]Key pressed [13:13:34]int [13:13:34]Write to MH i2c: 01 00 00 80 18 98 [13:13:34]*** FLAG_PRN_KEY reset [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 07 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: 01 07 00 80 18 00 00 00 00 00 F6 0F A4 [13:13:34]state=2 [13:13:34]Stop feed [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:51]accept exits with 8 [13:18:51]New connection [13:18:51]New thread 3066498404 created [13:18:51]Thread 3066641764 joined [13:18:51]Waiting for new connection... [13:18:51] Sock 8.Parse request [13:18:51]Sock 8.Check first char [13:18:51]Sock 8.First char is OK [13:18:51]request: POST /json_proto HTTP/1.0 [13:18:51]Method: POST [13:18:51]URL: /json_proto [13:18:51]Method is POST - this is cgi request [13:18:51]url: /json_proto [13:18:51]query_string will be loaded in cgi processing [13:18:51]execute_cgi json_proto POST (null) [13:18:51]execute_cgi path=json_proto method=POST [13:18:51]POST find Content-Length [13:18:51]Host: 172.17.63.195:8080 [13:18:51]Content-Length: 674 [13:18:51]Content-Type: application/json [13:18:51] [13:18:51]POST finish read [13:18:51]Found Content-Length = 674 [13:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:18:51]execute_script... [13:18:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:18:51]POST & json_proto [13:18:51]process_json_proto [13:18:51]json parsed OK: [13:18:51]protocol is kg_v1.0 [13:18:51]action value=close_receipt [13:18:51]process_action close_receipt [13:18:51]cmd_close_receipt [13:18:51]MH_GetDate [13:18:51]Write to MH i2c: F0 00 00 81 18 88 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: F0 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: F0 09 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: F0 09 00 81 18 00 BC 3D 1E 67 47 1B 1E 67 F6 [13:18:51]GetLastDocTimeStamp 1730034774 [13:18:51]current date 1730035132 [13:18:51]FM_GetShiftState [13:18:51]SAM_PROTO_GetShiftState [13:18:51]wFMCommunicate request_size=4 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 13 01 00 [13:18:51]Write to MH i2c: E2 08 00 82 18 80 13 01 00 00 00 00 00 17 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:51]Read from MH i2c: E2 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 0E 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 0E 00 82 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 19 [13:18:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:18:51]wFMCommunicate OK [13:18:51]SAM_PROTO_GetShiftState done [13:18:51]FM_GetShiftState done [13:18:51]opened in 1729987312 [13:18:51]opened+sec_in_day 1730073712 [13:18:51]quantity*price = 70027 [13:18:51]sum+1 = 70029 [13:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 258 27.10.2024 13:18 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201966 ФПД: 264103119997530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131852&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201966&fm=264103119997530&tin=02508201610067®Number=0000000000091777&sum=70000 [13:18:52]StoreToDocumentArchive [13:18:52]shift 544 fd 201966 [13:18:52]save to /storage/0544/doc_00201966 [13:18:52]save last doc name /storage/0544/doc_00201966 to /storage/kkm_last_doc_name [13:18:52]save OK [13:18:52]Clear old archive folders... [13:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:18:52]tlvbuf is B6E5C200 [13:18:52]SAM_PROTO_ClearQueue [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 09 00 00 [13:18:52]Write to MH i2c: E2 08 00 8F 18 80 09 00 00 00 00 00 00 19 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 8F 18 00 90 00 1B [13:18:52]RAPDU: 90 00 [13:18:52]wFMCommunicate OK [13:18:52]SAM_PROTO_ClearQueue done [13:18:52]KKMCreateOFDPacket [13:18:52]OFDProtocolAddRootSTLVToBuf [13:18:52]FM_MakeSignedData [13:18:52]FM_MakeSignedData [13:18:52]SAM_PROTO_SignData [13:18:52]wFMCommunicate request_size=4 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 0D 01 02 [13:18:52]Write to MH i2c: E2 08 00 90 18 80 0D 01 02 00 00 00 00 21 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 03 00 90 18 00 90 00 1C [13:18:52]RAPDU: 90 00 [13:18:52]wFMCommunicate OK [13:18:52]wFMCommunicate request_size=255 [13:18:52]MH_SAM_APDU [13:18:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 02 01 00 00 F4 03 04 00 BC 3D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 14 03 00 35 04 06 00 F0 33 4C A6 [13:18:52]Write to MH i2c: E2 02 01 91 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 32 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 02 01 00 00 F4 03 04 00 BC 3D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 14 03 00 35 04 06 00 F0 33 4C A6 00 00 64 [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:53]Read from MH i2c: E2 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 03 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 03 00 91 18 00 90 00 1D [13:18:53]RAPDU: 90 00 [13:18:53]wFMCommunicate OK [13:18:53]wFMCommunicate request_size=7 [13:18:53]MH_SAM_APDU [13:18:53]CAPDU: 80 0D 02 02 02 CA 5A [13:18:53]Write to MH i2c: E2 0A 00 92 18 80 0D 02 02 02 00 CA 5A 00 00 4C [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:53]Read from MH i2c: E2 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 03 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 03 00 92 18 00 90 00 1E [13:18:53]RAPDU: 90 00 [13:18:53]wFMCommunicate OK [13:18:53]wFMCommunicate request_size=4 [13:18:53]MH_SAM_APDU [13:18:53]CAPDU: 80 0D 03 02 [13:18:53]Write to MH i2c: E2 08 00 93 18 80 0D 03 02 00 00 00 00 26 [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:53]Read from MH i2c: E2 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 0B 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 0B 00 93 18 00 77 7D 49 7F 8C 0A 48 BF 90 00 80 [13:18:53]RAPDU: 77 7D 49 7F 8C 0A 48 BF 90 00 [13:18:53]wFMCommunicate OK [13:18:53]SAM_PROTO_SignData done [13:18:53]FM_MakeSignedData done [13:18:53]CreateOFDProtocolMessage [13:18:53]wFMCommunicate request_size=4 [13:18:53]MH_SAM_APDU [13:18:53]CAPDU: 80 11 00 00 [13:18:53]Write to MH i2c: E2 08 00 94 18 80 11 00 00 00 00 00 00 26 [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:53]Read from MH i2c: E2 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 17 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: E2 17 00 94 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7B [13:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:18:53]wFMCommunicate OK [13:18:53]CreateOFDProtocolMessage done [13:18:53]OFDSenderStorePacket 201966 [13:18:53]StoreOFDPacket docnum=201966 [13:18:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9F BB 04 01 39 8E 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 32 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 02 01 00 00 F4 03 04 00 BC 3D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 14 03 00 35 04 06 00 F0 33 4C A6 CA 5A 77 7D 49 7F 8C 0A 48 BF [13:18:53]CheckFolder [13:18:53]dirname=/storage/ofd_packets [13:18:53]CheckFolder done [13:18:53]ProducePacketName [13:18:53]name=ofd_packets/00201966 [13:18:53]NVStorageSaveData ofd_packets/00201966 [13:18:53]File name is /storage/ofd_packets/00201966 [13:18:53]Write 298 bytes [13:18:53]NVStorageSaveData done [13:18:53]OFDSenderStorePacket done [13:18:53]KKMCreateOFDPacket done [13:18:53]NVStorageSaveData kkm_last_timestamp [13:18:53]File name is /storage/kkm_last_timestamp [13:18:53]Write 4 bytes [13:18:53]NVStorageSaveData done [13:18:53]ExternCall_PrintAddStr [13:18:53]wPrintStart [13:18:53]Write to MH i2c: 01 00 00 95 18 AD [13:18:53]Write i2c OK [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: 01 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: 01 07 00 [13:18:53]MH_I2C_Read... [13:18:53]Read from MH i2c: 01 07 00 95 18 00 00 00 00 00 FF 0F C2 [13:18:53]RasterBufferAndPrint [13:18:53]line Счет N : (1)449728 [13:18:53]line ИНН: 02508201610067 [13:18:53]line Контрольно-Кассовый Чек [13:18:53]line ПРОДАЖА [13:18:53]line ТРК (МРК, ГНК) : 21 [13:18:53]line Товар: 2710194210 [13:18:53]line ДТ-К-2 [13:18:53]line 9.190 * 76.20 [13:18:53]line = 700.28 [13:18:53]line НДС 12% НСП 1% [13:18:53]line > о реализуемом товаре [13:18:53]line ОКРУГЛЕНИЕ: -0.28 [13:18:53]line ИТОГО: 700.00 [13:18:53]line Внесено: 700.00 [13:18:53]line СДАЧА: 0.00 [13:18:53]line НСП 1% : 6.20 [13:18:53]line НДС 12% : 74.37 [13:18:53]line Наличными: 700.00 [13:18:53]line Безнал.: 0.00 [13:18:53]line Место: АЗС № 171 "Партнер Нефть" [13:18:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:18:53]line СНО: Общий режим [13:18:53]line Чек 258 27.10.2024 13:18 [13:18:53]line Смена: 544 ФФД: 1.0 [13:18:53]line ЗНМ: 0300000109 [13:18:53]line РНМ: 0000000000091777 [13:18:53]line Версия ККМ: 001 [13:18:53]line ФМ: 0000000000871756 [13:18:53]line ФД: 201966 [13:18:53]line ФПД: 264103119997530 [13:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T131852&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201966&fm=264103119997530&tin=02508201610067®Number=0000000000091777&sum=70000 [13:18:53]OFD Sender: Processing packet 201966 [packets to send 112, broken 111] [13:18:53]ProducePacketName [13:18:53]name=ofd_packets/00201966 [13:18:53]OFD Sender: To server: pG, [13:18:53]CommunicateWithHost lk.salyk.kg:30040 [13:18:53]ConnectInit lk.salyk.kg [13:18:53]written 0, free lines is 4095 [13:18:53]Connected sock=10 [13:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9F BB 04 01 39 8E 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 32 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 02 01 00 00 F4 03 04 00 BC 3D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 14 03 00 35 04 06 00 F0 33 4C A6 CA 5A 77 7D 49 7F 8C 0A 48 BF [13:18:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6B 70 47 00 29 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 14 03 00 F4 03 04 00 76 E9 1D 67 B6 04 01 00 00 29 0C B1 72 52 3B 18 63 [13:18:53]CommunicateWithHost err = 0 [13:18:53]CheckOFDResponse [13:18:53]1017 (14) - 77093643461234 [13:18:53]1041 (16) - 0000000000871756 [13:18:53]1040 (4) - 201966 [13:18:53]1012 (4) - 27.10.2024 07:19 [13:18:53]1206 (1) - 0 [13:18:53]OFD Sender: Remove packet 201966 [13:18:53]ProducePacketName [13:18:53]name=ofd_packets/00201966 [13:18:53]NVStorageDeleteData [13:18:54]Write to MH i2c: 01 00 00 C0 18 D8 [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: 01 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: 01 07 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: 01 07 00 C0 18 00 00 00 00 00 88 0C 73 [13:18:54]RasterBufferAndPrint [13:18:54]line [13:18:54]line [13:18:54]line [13:18:54]line [13:18:54]line [13:18:54]written 0, free lines is 3212 [13:18:54]MH_Cut [13:18:54]Write to MH i2c: D1 01 00 C7 18 01 B1 [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: D1 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: D1 01 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: D1 01 00 C7 18 00 B0 [13:18:54]Write to MH i2c: 01 00 00 C8 18 E0 [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]OFD Sender: No OFD packet to send [13:18:54]*** Cut start [13:18:54]*** Purtial cut [13:18:54]*** Stage 1: CUTSNS_PIN = 1 [13:18:55]Read from MH i2c: 01 [13:18:55]MH_I2C_Read... [13:18:55]*** Stop cut motor [13:18:55]*** Cut end [13:18:55]Read from MH i2c: 01 07 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: 01 07 00 C8 18 00 00 00 00 00 FF 0F F5 [13:18:55]process_action close_receipt done [13:18:55]requested_data is exist [13:18:55]produce_requested_data [13:18:55]requested_item fm.sn is exist - process it [13:18:55]wFMCommunicate request_size=4 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 11 00 00 [13:18:55]Write to MH i2c: E2 08 00 C9 18 80 11 00 00 00 00 00 00 5B [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 17 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 17 00 C9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B0 [13:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:18:55]wFMCommunicate OK [13:18:55]requested_item fd.num is exist - process it [13:18:55]SAM_PROTO_GetFieldsCounters [13:18:55]wFMCommunicate request_size=4 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 13 00 00 [13:18:55]Write to MH i2c: E2 08 00 CA 18 80 13 00 00 00 00 00 00 5E [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 62 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 62 00 CA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [13:18:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:55]wFMCommunicate OK [13:18:55]SAM_PROTO_GetFieldsCounters done [13:18:55]requested_item shift.num is exist - process it [13:18:55]requested_item shift.opened is exist - process it [13:18:55]req_shift_opened [13:18:55]FM_GetShiftState [13:18:55]SAM_PROTO_GetShiftState [13:18:55]wFMCommunicate request_size=4 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 13 01 00 [13:18:55]Write to MH i2c: E2 08 00 CB 18 80 13 01 00 00 00 00 00 60 [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 0E 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 0E 00 CB 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 62 [13:18:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:18:55]wFMCommunicate OK [13:18:55]SAM_PROTO_GetShiftState done [13:18:55]FM_GetShiftState done [13:18:55]req_shift_opened done [13:18:55]requested_item shift.open_date is exist - process it [13:18:55]req_shift_open_date [13:18:55]req_shift_open_date done [13:18:55]produce_requested_data done [13:18:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201966,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:18:55]process_action_free close_receipt [13:18:55]json_value_free [13:18:55]json_value_free done [13:18:55]process_json_proto returns [13:18:55]Send response to host [13:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201966,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:18:55]free response buf [13:18:55]execute_script done [13:18:55]execute_script returns [13:18:55]free content buf [13:18:55]Sock 8.Close socket [13:18:55]Sock 8.Thread stoped [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:43]accept exits with 9 [13:21:43]New connection [13:21:43]New thread 3066641764 created [13:21:43]Thread 3066498404 joined [13:21:43]Waiting for new connection... [13:21:43] Sock 9.Parse request [13:21:43]Sock 9.Check first char [13:21:43]Sock 9.First char is OK [13:21:43]request: POST /json_proto HTTP/1.0 [13:21:43]Method: POST [13:21:43]URL: /json_proto [13:21:43]Method is POST - this is cgi request [13:21:43]url: /json_proto [13:21:43]query_string will be loaded in cgi processing [13:21:43]execute_cgi json_proto POST (null) [13:21:43]execute_cgi path=json_proto method=POST [13:21:43]POST find Content-Length [13:21:43]Host: 172.17.63.195:8080 [13:21:43]Content-Length: 677 [13:21:43]Content-Type: application/json [13:21:43] [13:21:43]POST finish read [13:21:43]Found Content-Length = 677 [13:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:43]execute_script... [13:21:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:43]POST & json_proto [13:21:43]process_json_proto [13:21:43]json parsed OK: [13:21:43]protocol is kg_v1.0 [13:21:43]action value=close_receipt [13:21:43]process_action close_receipt [13:21:43]cmd_close_receipt [13:21:43]MH_GetDate [13:21:43]Write to MH i2c: F0 00 00 CC 18 D3 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: F0 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: F0 09 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: F0 09 00 CC 18 00 68 3E 1E 67 47 1B 1E 67 EE [13:21:43]GetLastDocTimeStamp 1730035132 [13:21:43]current date 1730035304 [13:21:43]FM_GetShiftState [13:21:43]SAM_PROTO_GetShiftState [13:21:43]wFMCommunicate request_size=4 [13:21:43]MH_SAM_APDU [13:21:43]CAPDU: 80 13 01 00 [13:21:43]Write to MH i2c: E2 08 00 CD 18 80 13 01 00 00 00 00 00 62 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 0E 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 0E 00 CD 18 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 64 [13:21:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:21:43]wFMCommunicate OK [13:21:43]SAM_PROTO_GetShiftState done [13:21:43]FM_GetShiftState done [13:21:43]opened in 1729987312 [13:21:43]opened+sec_in_day 1730073712 [13:21:43]quantity*price = 30038 [13:21:43]sum+1 = 30039 [13:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 259 27.10.2024 13:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201967 ФПД: 145943552569068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201967&fm=145943552569068&tin=02508201610067®Number=0000000000091777&sum=30000 [13:21:45]StoreToDocumentArchive [13:21:45]shift 544 fd 201967 [13:21:45]save to /storage/0544/doc_00201967 [13:21:45]save last doc name /storage/0544/doc_00201967 to /storage/kkm_last_doc_name [13:21:45]save OK [13:21:45]Clear old archive folders... [13:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:45]tlvbuf is B6F0CAC0 [13:21:45]SAM_PROTO_ClearQueue [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 09 00 00 [13:21:45]Write to MH i2c: E2 08 00 DA 18 80 09 00 00 00 00 00 00 64 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 DA 18 00 90 00 66 [13:21:45]RAPDU: 90 00 [13:21:45]wFMCommunicate OK [13:21:45]SAM_PROTO_ClearQueue done [13:21:45]KKMCreateOFDPacket [13:21:45]OFDProtocolAddRootSTLVToBuf [13:21:45]FM_MakeSignedData [13:21:45]FM_MakeSignedData [13:21:45]SAM_PROTO_SignData [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 0D 01 02 [13:21:45]Write to MH i2c: E2 08 00 DB 18 80 0D 01 02 00 00 00 00 6C [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 DB 18 00 90 00 67 [13:21:45]RAPDU: 90 00 [13:21:45]wFMCommunicate OK [13:21:45]wFMCommunicate request_size=255 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 03 01 00 00 F4 03 04 00 68 3E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 14 03 00 35 04 06 00 84 [13:21:45]Write to MH i2c: E2 02 01 DC 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 03 01 00 00 F4 03 04 00 68 3E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 14 03 00 35 04 06 00 84 00 00 CF [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 DC 18 00 90 00 68 [13:21:45]RAPDU: 90 00 [13:21:45]wFMCommunicate OK [13:21:45]wFMCommunicate request_size=10 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 0D 02 02 05 BC 21 9B AE EC [13:21:45]Write to MH i2c: E2 0D 00 DD 18 80 0D 02 02 05 00 BC 21 9B AE EC 00 00 8B [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 DD 18 00 90 00 69 [13:21:45]RAPDU: 90 00 [13:21:45]wFMCommunicate OK [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 0D 03 02 [13:21:45]Write to MH i2c: E2 08 00 DE 18 80 0D 03 02 00 00 00 00 71 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 0B 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 0B 00 DE 18 00 E1 D6 70 45 48 7D CA FE 90 00 6B [13:21:45]RAPDU: E1 D6 70 45 48 7D CA FE 90 00 [13:21:45]wFMCommunicate OK [13:21:45]SAM_PROTO_SignData done [13:21:45]FM_MakeSignedData done [13:21:45]CreateOFDProtocolMessage [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 11 00 00 [13:21:45]Write to MH i2c: E2 08 00 DF 18 80 11 00 00 00 00 00 00 71 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 17 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 17 00 DF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C6 [13:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:21:45]wFMCommunicate OK [13:21:45]CreateOFDProtocolMessage done [13:21:45]OFDSenderStorePacket 201967 [13:21:45]StoreOFDPacket docnum=201967 [13:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0E AE 07 01 7C F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 03 01 00 00 F4 03 04 00 68 3E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 14 03 00 35 04 06 00 84 BC 21 9B AE EC E1 D6 70 45 48 7D CA FE [13:21:45]CheckFolder [13:21:45]dirname=/storage/ofd_packets [13:21:45]CheckFolder done [13:21:45]ProducePacketName [13:21:45]name=ofd_packets/00201967 [13:21:45]NVStorageSaveData ofd_packets/00201967 [13:21:45]File name is /storage/ofd_packets/00201967 [13:21:45]Write 301 bytes [13:21:45]NVStorageSaveData done [13:21:45]OFDSenderStorePacket done [13:21:45]KKMCreateOFDPacket done [13:21:45]NVStorageSaveData kkm_last_timestamp [13:21:45]File name is /storage/kkm_last_timestamp [13:21:45]Write 4 bytes [13:21:45]NVStorageSaveData done [13:21:45]ExternCall_PrintAddStr [13:21:45]wPrintStart [13:21:45]Write to MH i2c: 01 00 00 E0 18 F8 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: 01 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: 01 07 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: 01 07 00 E0 18 00 00 00 00 00 FF 0F 0D [13:21:45]RasterBufferAndPrint [13:21:45]line Счет N : (1)449730 [13:21:45]line ИНН: 02508201610067 [13:21:45]line Контрольно-Кассовый Чек [13:21:45]line ПРОДАЖА [13:21:45]line ТРК (МРК, ГНК) : 41 [13:21:45]line Товар: 2710124130 [13:21:45]line Аи-92-К-2 [13:21:45]line 4.490 * 66.90 [13:21:45]line = 300.38 [13:21:45]line НДС 12% НСП 1% [13:21:45]line > о реализуемом товаре [13:21:45]line ОКРУГЛЕНИЕ: -0.38 [13:21:45]line ИТОГО: 300.00 [13:21:45]line Внесено: 300.00 [13:21:45]line СДАЧА: 0.00 [13:21:45]line НСП 1% : 2.66 [13:21:45]line НДС 12% : 31.90 [13:21:45]line Наличными: 300.00 [13:21:45]line Безнал.: 0.00 [13:21:45]line Место: АЗС № 171 "Партнер Нефть" [13:21:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:21:45]line СНО: Общий режим [13:21:45]line Чек 259 27.10.2024 13:21 [13:21:45]line Смена: 544 ФФД: 1.0 [13:21:45]line ЗНМ: 0300000109 [13:21:45]line РНМ: 0000000000091777 [13:21:45]line Версия ККМ: 001 [13:21:45]line ФМ: 0000000000871756 [13:21:45]line ФД: 201967 [13:21:45]line ФПД: 145943552569068 [13:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201967&fm=145943552569068&tin=02508201610067®Number=0000000000091777&sum=30000 [13:21:45]OFD Sender: Processing packet 201967 [packets to send 112, broken 111] [13:21:45]ProducePacketName [13:21:45]name=ofd_packets/00201967 [13:21:45]OFD Sender: To server: pG, [13:21:45]CommunicateWithHost lk.salyk.kg:30040 [13:21:45]ConnectInit lk.salyk.kg [13:21:45]written 0, free lines is 4095 [13:21:46]Connected sock=10 [13:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0E AE 07 01 7C F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 03 01 00 00 F4 03 04 00 68 3E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 14 03 00 35 04 06 00 84 BC 21 9B AE EC E1 D6 70 45 48 7D CA FE [13:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BC 25 47 00 43 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 14 03 00 F4 03 04 00 22 EA 1D 67 B6 04 01 00 00 1D 55 8A AC 93 A8 80 A4 [13:21:46]CommunicateWithHost err = 0 [13:21:46]CheckOFDResponse [13:21:46]1017 (14) - 77093643461234 [13:21:46]1041 (16) - 0000000000871756 [13:21:46]1040 (4) - 201967 [13:21:46]1012 (4) - 27.10.2024 07:22 [13:21:46]1206 (1) - 0 [13:21:46]OFD Sender: Remove packet 201967 [13:21:46]ProducePacketName [13:21:46]name=ofd_packets/00201967 [13:21:46]NVStorageDeleteData [13:21:46]Write to MH i2c: 01 00 00 0B 19 24 [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: 01 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: 01 07 00 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: 01 07 00 0B 19 00 00 00 00 00 96 0C CD [13:21:46]RasterBufferAndPrint [13:21:46]line [13:21:46]line [13:21:46]line [13:21:46]line [13:21:46]line [13:21:46]written 0, free lines is 3227 [13:21:46]MH_Cut [13:21:46]Write to MH i2c: D1 01 00 12 19 01 FD [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: D1 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: D1 01 00 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: D1 01 00 12 19 00 FC [13:21:46]Write to MH i2c: 01 00 00 13 19 2C [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:46]OFD Sender: No OFD packet to send [13:21:47]*** Cut start [13:21:47]*** Purtial cut [13:21:47]*** Stage 1: CUTSNS_PIN = 1 [13:21:47]Read from MH i2c: 01 [13:21:47]MH_I2C_Read... [13:21:47]*** Stop cut motor [13:21:47]*** Cut end [13:21:47]Read from MH i2c: 01 07 00 [13:21:47]MH_I2C_Read... [13:21:47]Read from MH i2c: 01 07 00 13 19 00 00 00 00 00 FF 0F 41 [13:21:47]process_action close_receipt done [13:21:47]requested_data is exist [13:21:47]produce_requested_data [13:21:47]requested_item fm.sn is exist - process it [13:21:47]wFMCommunicate request_size=4 [13:21:47]MH_SAM_APDU [13:21:47]CAPDU: 80 11 00 00 [13:21:47]Write to MH i2c: E2 08 00 14 19 80 11 00 00 00 00 00 00 A7 [13:21:47]Write i2c OK [13:21:47]MH_I2C_Read... [13:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:47]Read from MH i2c: E2 [13:21:47]MH_I2C_Read... [13:21:47]Read from MH i2c: E2 17 00 [13:21:47]MH_I2C_Read... [13:21:47]Read from MH i2c: E2 17 00 14 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FC [13:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:21:47]wFMCommunicate OK [13:21:47]requested_item fd.num is exist - process it [13:21:47]SAM_PROTO_GetFieldsCounters [13:21:47]wFMCommunicate request_size=4 [13:21:47]MH_SAM_APDU [13:21:47]CAPDU: 80 13 00 00 [13:21:47]Write to MH i2c: E2 08 00 15 19 80 13 00 00 00 00 00 00 AA [13:21:47]Write i2c OK [13:21:47]MH_I2C_Read... [13:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:47]Read from MH i2c: E2 [13:21:47]MH_I2C_Read... [13:21:47]Read from MH i2c: E2 62 00 [13:21:47]MH_I2C_Read... [13:21:47]Read from MH i2c: E2 62 00 15 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:21:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:47]wFMCommunicate OK [13:21:47]SAM_PROTO_GetFieldsCounters done [13:21:47]requested_item shift.num is exist - process it [13:21:47]requested_item shift.opened is exist - process it [13:21:47]req_shift_opened [13:21:47]FM_GetShiftState [13:21:47]SAM_PROTO_GetShiftState [13:21:47]wFMCommunicate request_size=4 [13:21:47]MH_SAM_APDU [13:21:47]CAPDU: 80 13 01 00 [13:21:47]Write to MH i2c: E2 08 00 16 19 80 13 01 00 00 00 00 00 AC [13:21:47]Write i2c OK [13:21:47]MH_I2C_Read... [13:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:47]Read from MH i2c: E2 [13:21:47]MH_I2C_Read... [13:21:47]Read from MH i2c: E2 0E 00 [13:21:47]MH_I2C_Read... [13:21:47]Read from MH i2c: E2 0E 00 16 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AE [13:21:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:21:47]wFMCommunicate OK [13:21:47]SAM_PROTO_GetShiftState done [13:21:47]FM_GetShiftState done [13:21:47]req_shift_opened done [13:21:47]requested_item shift.open_date is exist - process it [13:21:47]req_shift_open_date [13:21:47]req_shift_open_date done [13:21:47]produce_requested_data done [13:21:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201967,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:21:47]process_action_free close_receipt [13:21:47]json_value_free [13:21:47]json_value_free done [13:21:47]process_json_proto returns [13:21:47]Send response to host [13:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201967,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:21:47]free response buf [13:21:47]execute_script done [13:21:47]execute_script returns [13:21:47]free content buf [13:21:47]Sock 9.Close socket [13:21:47]Sock 9.Thread stoped [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:48]accept exits with 8 [13:23:48]New connection [13:23:48]New thread 3066498404 created [13:23:48]Thread 3066641764 joined [13:23:48]Waiting for new connection... [13:23:48] Sock 8.Parse request [13:23:48]Sock 8.Check first char [13:23:48]Sock 8.First char is OK [13:23:48]request: POST /json_proto HTTP/1.0 [13:23:48]Method: POST [13:23:48]URL: /json_proto [13:23:48]Method is POST - this is cgi request [13:23:48]url: /json_proto [13:23:48]query_string will be loaded in cgi processing [13:23:48]execute_cgi json_proto POST (null) [13:23:48]execute_cgi path=json_proto method=POST [13:23:48]POST find Content-Length [13:23:48]Host: 172.17.63.195:8080 [13:23:48]Content-Length: 674 [13:23:48]Content-Type: application/json [13:23:48] [13:23:48]POST finish read [13:23:48]Found Content-Length = 674 [13:23:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:48]execute_script... [13:23:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:48]POST & json_proto [13:23:48]process_json_proto [13:23:48]json parsed OK: [13:23:48]protocol is kg_v1.0 [13:23:48]action value=close_receipt [13:23:48]process_action close_receipt [13:23:48]cmd_close_receipt [13:23:48]MH_GetDate [13:23:48]Write to MH i2c: F0 00 00 17 19 1F [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: F0 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: F0 09 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: F0 09 00 17 19 00 E5 3E 1E 67 47 1B 1E 67 B7 [13:23:48]GetLastDocTimeStamp 1730035304 [13:23:48]current date 1730035429 [13:23:48]FM_GetShiftState [13:23:48]SAM_PROTO_GetShiftState [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 13 01 00 [13:23:48]Write to MH i2c: E2 08 00 18 19 80 13 01 00 00 00 00 00 AE [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0E 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0E 00 18 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B0 [13:23:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:23:48]wFMCommunicate OK [13:23:48]SAM_PROTO_GetShiftState done [13:23:48]FM_GetShiftState done [13:23:48]opened in 1729987312 [13:23:48]opened+sec_in_day 1730073712 [13:23:48]quantity*price = 50063 [13:23:48]sum+1 = 50064 [13:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 260 27.10.2024 13:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201968 ФПД: 122732305441600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132349&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201968&fm=122732305441600&tin=02508201610067®Number=0000000000091777&sum=50000 [13:23:49]StoreToDocumentArchive [13:23:49]shift 544 fd 201968 [13:23:49]save to /storage/0544/doc_00201968 [13:23:49]save last doc name /storage/0544/doc_00201968 to /storage/kkm_last_doc_name [13:23:49]save OK [13:23:49]Clear old archive folders... [13:23:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:23:49]tlvbuf is B6E5C380 [13:23:49]SAM_PROTO_ClearQueue [13:23:49]wFMCommunicate request_size=4 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 09 00 00 [13:23:49]Write to MH i2c: E2 08 00 25 19 80 09 00 00 00 00 00 00 B0 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 25 19 00 90 00 B2 [13:23:49]RAPDU: 90 00 [13:23:49]wFMCommunicate OK [13:23:49]SAM_PROTO_ClearQueue done [13:23:49]KKMCreateOFDPacket [13:23:49]OFDProtocolAddRootSTLVToBuf [13:23:49]FM_MakeSignedData [13:23:49]FM_MakeSignedData [13:23:49]SAM_PROTO_SignData [13:23:49]wFMCommunicate request_size=4 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 0D 01 02 [13:23:49]Write to MH i2c: E2 08 00 26 19 80 0D 01 02 00 00 00 00 B8 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 26 19 00 90 00 B3 [13:23:49]RAPDU: 90 00 [13:23:49]wFMCommunicate OK [13:23:49]wFMCommunicate request_size=255 [13:23:49]MH_SAM_APDU [13:23:49]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 3E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 14 03 00 35 04 06 00 6F 9F D7 77 [13:23:49]Write to MH i2c: E2 02 01 27 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 3E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 14 03 00 35 04 06 00 6F 9F D7 77 00 00 FC [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 03 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [13:23:50]RAPDU: 90 00 [13:23:50]wFMCommunicate OK [13:23:50]wFMCommunicate request_size=7 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 0D 02 02 02 E3 40 [13:23:50]Write to MH i2c: E2 0A 00 28 19 80 0D 02 02 02 00 E3 40 00 00 E2 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 03 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 03 00 28 19 00 90 00 B5 [13:23:50]RAPDU: 90 00 [13:23:50]wFMCommunicate OK [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 0D 03 02 [13:23:50]Write to MH i2c: E2 08 00 29 19 80 0D 03 02 00 00 00 00 BD [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0B 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0B 00 29 19 00 8C 0A 5D CC 85 2C 25 63 90 00 B6 [13:23:50]RAPDU: 8C 0A 5D CC 85 2C 25 63 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_SignData done [13:23:50]FM_MakeSignedData done [13:23:50]CreateOFDProtocolMessage [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 11 00 00 [13:23:50]Write to MH i2c: E2 08 00 2A 19 80 11 00 00 00 00 00 00 BD [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 2A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 12 [13:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:23:50]wFMCommunicate OK [13:23:50]CreateOFDProtocolMessage done [13:23:50]OFDSenderStorePacket 201968 [13:23:50]StoreOFDPacket docnum=201968 [13:23:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0E 68 04 01 CB 2C 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 3E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 14 03 00 35 04 06 00 6F 9F D7 77 E3 40 8C 0A 5D CC 85 2C 25 63 [13:23:50]CheckFolder [13:23:50]dirname=/storage/ofd_packets [13:23:50]CheckFolder done [13:23:50]ProducePacketName [13:23:50]name=ofd_packets/00201968 [13:23:50]NVStorageSaveData ofd_packets/00201968 [13:23:50]File name is /storage/ofd_packets/00201968 [13:23:50]Write 298 bytes [13:23:50]NVStorageSaveData done [13:23:50]OFDSenderStorePacket done [13:23:50]KKMCreateOFDPacket done [13:23:50]NVStorageSaveData kkm_last_timestamp [13:23:50]File name is /storage/kkm_last_timestamp [13:23:50]Write 4 bytes [13:23:50]NVStorageSaveData done [13:23:50]ExternCall_PrintAddStr [13:23:50]wPrintStart [13:23:50]Write to MH i2c: 01 00 00 2B 19 44 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 2B 19 00 00 00 00 00 FF 0F 59 [13:23:50]RasterBufferAndPrint [13:23:50]line Счет N : (1)449731 [13:23:50]line ИНН: 02508201610067 [13:23:50]line Контрольно-Кассовый Чек [13:23:50]line ПРОДАЖА [13:23:50]line ТРК (МРК, ГНК) : 33 [13:23:50]line Товар: 2710194210 [13:23:50]line ДТ-К-2 [13:23:50]line 6.570 * 76.20 [13:23:50]line = 500.63 [13:23:50]line НДС 12% НСП 1% [13:23:50]line > о реализуемом товаре [13:23:50]line ОКРУГЛЕНИЕ: -0.63 [13:23:50]line ИТОГО: 500.00 [13:23:50]line Внесено: 500.00 [13:23:50]line СДАЧА: 0.00 [13:23:50]line НСП 1% : 4.43 [13:23:50]line НДС 12% : 53.16 [13:23:50]line Наличными: 500.00 [13:23:50]line Безнал.: 0.00 [13:23:50]line Место: АЗС № 171 "Партнер Нефть" [13:23:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:23:50]line СНО: Общий режим [13:23:50]line Чек 260 27.10.2024 13:23 [13:23:50]line Смена: 544 ФФД: 1.0 [13:23:50]line ЗНМ: 0300000109 [13:23:50]line РНМ: 0000000000091777 [13:23:50]line Версия ККМ: 001 [13:23:50]line ФМ: 0000000000871756 [13:23:50]line ФД: 201968 [13:23:50]line ФПД: 122732305441600 [13:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132349&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201968&fm=122732305441600&tin=02508201610067®Number=0000000000091777&sum=50000 [13:23:50]written 0, free lines is 4095 [13:23:50]OFD Sender: Processing packet 201968 [packets to send 112, broken 111] [13:23:50]ProducePacketName [13:23:50]name=ofd_packets/00201968 [13:23:50]OFD Sender: To server: pG, [13:23:50]CommunicateWithHost lk.salyk.kg:30040 [13:23:50]ConnectInit lk.salyk.kg [13:23:50]Connected sock=10 [13:23:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0E 68 04 01 CB 2C 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 3E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 14 03 00 35 04 06 00 6F 9F D7 77 E3 40 8C 0A 5D CC 85 2C 25 63 [13:23:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C8 D0 47 00 00 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 14 03 00 F4 03 04 00 9F EA 1D 67 B6 04 01 00 00 E5 92 58 20 CD EF CE EF [13:23:50]CommunicateWithHost err = 0 [13:23:50]CheckOFDResponse [13:23:50]1017 (14) - 77093643461234 [13:23:50]1041 (16) - 0000000000871756 [13:23:50]1040 (4) - 201968 [13:23:50]1012 (4) - 27.10.2024 07:24 [13:23:50]1206 (1) - 0 [13:23:50]OFD Sender: Remove packet 201968 [13:23:50]ProducePacketName [13:23:50]name=ofd_packets/00201968 [13:23:50]NVStorageDeleteData [13:23:50]Write to MH i2c: 01 00 00 56 19 6F [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 56 19 00 00 00 00 00 97 0C 19 [13:23:50]RasterBufferAndPrint [13:23:50]line [13:23:50]line [13:23:50]line [13:23:50]line [13:23:50]line [13:23:50]written 0, free lines is 3230 [13:23:50]MH_Cut [13:23:50]Write to MH i2c: D1 01 00 5D 19 01 48 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: D1 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: D1 01 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: D1 01 00 5D 19 00 47 [13:23:50]Write to MH i2c: 01 00 00 5E 19 77 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:51]OFD Sender: No OFD packet to send [13:23:51]*** Cut start [13:23:51]*** Purtial cut [13:23:51]*** Stage 1: CUTSNS_PIN = 1 [13:23:51]Read from MH i2c: 01 [13:23:51]MH_I2C_Read... [13:23:51]*** Stop cut motor [13:23:51]*** Cut end [13:23:51]Read from MH i2c: 01 07 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: 01 07 00 5E 19 00 00 00 00 00 FF 0F 8C [13:23:51]process_action close_receipt done [13:23:51]requested_data is exist [13:23:51]produce_requested_data [13:23:51]requested_item fm.sn is exist - process it [13:23:51]wFMCommunicate request_size=4 [13:23:51]MH_SAM_APDU [13:23:51]CAPDU: 80 11 00 00 [13:23:51]Write to MH i2c: E2 08 00 5F 19 80 11 00 00 00 00 00 00 F2 [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:51]Read from MH i2c: E2 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 17 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 17 00 5F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 47 [13:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:23:51]wFMCommunicate OK [13:23:51]requested_item fd.num is exist - process it [13:23:51]SAM_PROTO_GetFieldsCounters [13:23:51]wFMCommunicate request_size=4 [13:23:51]MH_SAM_APDU [13:23:51]CAPDU: 80 13 00 00 [13:23:51]Write to MH i2c: E2 08 00 60 19 80 13 00 00 00 00 00 00 F5 [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:51]Read from MH i2c: E2 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 62 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 62 00 60 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [13:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F0 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:52]wFMCommunicate OK [13:23:52]SAM_PROTO_GetFieldsCounters done [13:23:52]requested_item shift.num is exist - process it [13:23:52]requested_item shift.opened is exist - process it [13:23:52]req_shift_opened [13:23:52]FM_GetShiftState [13:23:52]SAM_PROTO_GetShiftState [13:23:52]wFMCommunicate request_size=4 [13:23:52]MH_SAM_APDU [13:23:52]CAPDU: 80 13 01 00 [13:23:52]Write to MH i2c: E2 08 00 61 19 80 13 01 00 00 00 00 00 F7 [13:23:52]Write i2c OK [13:23:52]MH_I2C_Read... [13:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:52]Read from MH i2c: E2 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 0E 00 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 0E 00 61 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F9 [13:23:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:23:52]wFMCommunicate OK [13:23:52]SAM_PROTO_GetShiftState done [13:23:52]FM_GetShiftState done [13:23:52]req_shift_opened done [13:23:52]requested_item shift.open_date is exist - process it [13:23:52]req_shift_open_date [13:23:52]req_shift_open_date done [13:23:52]produce_requested_data done [13:23:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201968,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:23:52]process_action_free close_receipt [13:23:52]json_value_free [13:23:52]json_value_free done [13:23:52]process_json_proto returns [13:23:52]Send response to host [13:23:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201968,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:23:52]free response buf [13:23:52]execute_script done [13:23:52]execute_script returns [13:23:52]free content buf [13:23:52]Sock 8.Close socket [13:23:52]Sock 8.Thread stoped [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:08]accept exits with 9 [13:25:08]New connection [13:25:08]New thread 3066641764 created [13:25:08]Thread 3066498404 joined [13:25:08]Waiting for new connection... [13:25:08] Sock 9.Parse request [13:25:08]Sock 9.Check first char [13:25:08]Sock 9.First char is OK [13:25:08]request: POST /json_proto HTTP/1.0 [13:25:08]Method: POST [13:25:08]URL: /json_proto [13:25:08]Method is POST - this is cgi request [13:25:08]url: /json_proto [13:25:08]query_string will be loaded in cgi processing [13:25:08]execute_cgi json_proto POST (null) [13:25:08]execute_cgi path=json_proto method=POST [13:25:08]POST find Content-Length [13:25:08]Host: 172.17.63.195:8080 [13:25:08]Content-Length: 677 [13:25:08]Content-Type: application/json [13:25:08] [13:25:08]POST finish read [13:25:08]Found Content-Length = 677 [13:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:08]execute_script... [13:25:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:08]POST & json_proto [13:25:08]process_json_proto [13:25:08]json parsed OK: [13:25:08]protocol is kg_v1.0 [13:25:08]action value=close_receipt [13:25:08]process_action close_receipt [13:25:08]cmd_close_receipt [13:25:08]MH_GetDate [13:25:08]Write to MH i2c: F0 00 00 62 19 6A [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: F0 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: F0 09 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: F0 09 00 62 19 00 35 3F 1E 67 47 1B 1E 67 53 [13:25:08]GetLastDocTimeStamp 1730035429 [13:25:08]current date 1730035509 [13:25:08]FM_GetShiftState [13:25:08]SAM_PROTO_GetShiftState [13:25:08]wFMCommunicate request_size=4 [13:25:08]MH_SAM_APDU [13:25:08]CAPDU: 80 13 01 00 [13:25:08]Write to MH i2c: E2 08 00 63 19 80 13 01 00 00 00 00 00 F9 [13:25:08]Write i2c OK [13:25:08]MH_I2C_Read... [13:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:08]Read from MH i2c: E2 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 0E 00 [13:25:08]MH_I2C_Read... [13:25:08]Read from MH i2c: E2 0E 00 63 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FB [13:25:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:25:08]wFMCommunicate OK [13:25:08]SAM_PROTO_GetShiftState done [13:25:08]FM_GetShiftState done [13:25:08]opened in 1729987312 [13:25:08]opened+sec_in_day 1730073712 [13:25:08]quantity*price = 20003 [13:25:08]sum+1 = 20004 [13:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 261 27.10.2024 13:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201969 ФПД: 97612296755670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132509&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201969&fm=97612296755670&tin=02508201610067®Number=0000000000091777&sum=20000 [13:25:10]StoreToDocumentArchive [13:25:10]shift 544 fd 201969 [13:25:10]save to /storage/0544/doc_00201969 [13:25:10]save last doc name /storage/0544/doc_00201969 to /storage/kkm_last_doc_name [13:25:10]save OK [13:25:10]Clear old archive folders... [13:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:10]tlvbuf is 011CA470 [13:25:10]SAM_PROTO_ClearQueue [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 09 00 00 [13:25:10]Write to MH i2c: E2 08 00 70 19 80 09 00 00 00 00 00 00 FB [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_ClearQueue done [13:25:10]KKMCreateOFDPacket [13:25:10]OFDProtocolAddRootSTLVToBuf [13:25:10]FM_MakeSignedData [13:25:10]FM_MakeSignedData [13:25:10]SAM_PROTO_SignData [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 01 02 [13:25:10]Write to MH i2c: E2 08 00 71 19 80 0D 01 02 00 00 00 00 03 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 71 19 00 90 00 FE [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=255 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 05 01 00 00 F4 03 04 00 35 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 14 03 00 35 04 06 00 58 [13:25:10]Write to MH i2c: E2 02 01 72 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 32 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 05 01 00 00 F4 03 04 00 35 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 14 03 00 35 04 06 00 58 00 00 DA [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=10 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 05 C7 22 46 19 D6 [13:25:10]Write to MH i2c: E2 0D 00 73 19 80 0D 02 02 05 00 C7 22 46 19 D6 00 00 2E [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 73 19 00 90 00 00 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 03 02 [13:25:10]Write to MH i2c: E2 08 00 74 19 80 0D 03 02 00 00 00 00 08 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 0B 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 0B 00 74 19 00 33 19 CE 7C 9E DD 99 0C 90 00 BF [13:25:10]RAPDU: 33 19 CE 7C 9E DD 99 0C 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_SignData done [13:25:10]FM_MakeSignedData done [13:25:10]CreateOFDProtocolMessage [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 11 00 00 [13:25:10]Write to MH i2c: E2 08 00 75 19 80 11 00 00 00 00 00 00 08 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 75 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5D [13:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:10]wFMCommunicate OK [13:25:10]CreateOFDProtocolMessage done [13:25:10]OFDSenderStorePacket 201969 [13:25:10]StoreOFDPacket docnum=201969 [13:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E3 08 07 01 5F AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 05 01 00 00 F4 03 04 00 35 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 14 03 00 35 04 06 00 58 C7 22 46 19 D6 33 19 CE 7C 9E DD 99 0C [13:25:10]CheckFolder [13:25:10]dirname=/storage/ofd_packets [13:25:10]CheckFolder done [13:25:10]ProducePacketName [13:25:10]name=ofd_packets/00201969 [13:25:10]NVStorageSaveData ofd_packets/00201969 [13:25:10]File name is /storage/ofd_packets/00201969 [13:25:10]Write 301 bytes [13:25:10]NVStorageSaveData done [13:25:10]OFDSenderStorePacket done [13:25:10]KKMCreateOFDPacket done [13:25:10]NVStorageSaveData kkm_last_timestamp [13:25:10]File name is /storage/kkm_last_timestamp [13:25:10]Write 4 bytes [13:25:10]NVStorageSaveData done [13:25:10]ExternCall_PrintAddStr [13:25:10]wPrintStart [13:25:10]Write to MH i2c: 01 00 00 76 19 8F [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 76 19 00 00 00 00 00 FF 0F A4 [13:25:10]RasterBufferAndPrint [13:25:10]line Счет N : (1)449732 [13:25:10]line ИНН: 02508201610067 [13:25:10]line Контрольно-Кассовый Чек [13:25:10]line ПРОДАЖА [13:25:10]line ТРК (МРК, ГНК) : 62 [13:25:10]line Товар: 2710124130 [13:25:10]line Аи-92-К-2 [13:25:10]line 2.990 * 66.90 [13:25:10]line = 200.03 [13:25:10]line НДС 12% НСП 1% [13:25:10]line > о реализуемом товаре [13:25:10]line ОКРУГЛЕНИЕ: -0.03 [13:25:10]line ИТОГО: 200.00 [13:25:10]line Внесено: 200.00 [13:25:10]line СДАЧА: 0.00 [13:25:10]line НСП 1% : 1.77 [13:25:10]line НДС 12% : 21.24 [13:25:10]line Наличными: 200.00 [13:25:10]line Безнал.: 0.00 [13:25:10]line Место: АЗС № 171 "Партнер Нефть" [13:25:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:25:10]line СНО: Общий режим [13:25:10]line Чек 261 27.10.2024 13:25 [13:25:10]line Смена: 544 ФФД: 1.0 [13:25:10]line ЗНМ: 0300000109 [13:25:10]line РНМ: 0000000000091777 [13:25:10]line Версия ККМ: 001 [13:25:10]line ФМ: 0000000000871756 [13:25:10]line ФД: 201969 [13:25:10]line ФПД: 97612296755670 [13:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132509&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201969&fm=97612296755670&tin=02508201610067®Number=0000000000091777&sum=20000 [13:25:10]OFD Sender: Processing packet 201969 [packets to send 112, broken 111] [13:25:10]ProducePacketName [13:25:10]name=ofd_packets/00201969 [13:25:10]OFD Sender: To server: pG, [13:25:10]CommunicateWithHost lk.salyk.kg:30040 [13:25:10]ConnectInit lk.salyk.kg [13:25:10]written 0, free lines is 4095 [13:25:11]Connected sock=11 [13:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E3 08 07 01 5F AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 05 01 00 00 F4 03 04 00 35 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 14 03 00 35 04 06 00 58 C7 22 46 19 D6 33 19 CE 7C 9E DD 99 0C [13:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C1 15 47 00 D1 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 14 03 00 F4 03 04 00 EF EA 1D 67 B6 04 01 00 00 2E FA E9 59 05 32 06 21 [13:25:11]CommunicateWithHost err = 0 [13:25:11]CheckOFDResponse [13:25:11]1017 (14) - 77093643461234 [13:25:11]1041 (16) - 0000000000871756 [13:25:11]1040 (4) - 201969 [13:25:11]1012 (4) - 27.10.2024 07:25 [13:25:11]1206 (1) - 0 [13:25:11]OFD Sender: Remove packet 201969 [13:25:11]ProducePacketName [13:25:11]name=ofd_packets/00201969 [13:25:11]NVStorageDeleteData [13:25:11]Write to MH i2c: 01 00 00 A1 19 BA [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 A1 19 00 00 00 00 00 8F 0C 5C [13:25:11]RasterBufferAndPrint [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]written 0, free lines is 3218 [13:25:11]MH_Cut [13:25:11]Write to MH i2c: D1 01 00 A8 19 01 93 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 A8 19 00 92 [13:25:11]Write to MH i2c: 01 00 00 A9 19 C2 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]OFD Sender: No OFD packet to send [13:25:12]*** Cut start [13:25:12]*** Purtial cut [13:25:12]*** Stage 1: CUTSNS_PIN = 1 [13:25:12]Read from MH i2c: 01 [13:25:12]MH_I2C_Read... [13:25:12]*** Stop cut motor [13:25:12]*** Cut end [13:25:12]Read from MH i2c: 01 07 00 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: 01 07 00 A9 19 00 00 00 00 00 FF 0F D7 [13:25:12]process_action close_receipt done [13:25:12]requested_data is exist [13:25:12]produce_requested_data [13:25:12]requested_item fm.sn is exist - process it [13:25:12]wFMCommunicate request_size=4 [13:25:12]MH_SAM_APDU [13:25:12]CAPDU: 80 11 00 00 [13:25:12]Write to MH i2c: E2 08 00 AA 19 80 11 00 00 00 00 00 00 3D [13:25:12]Write i2c OK [13:25:12]MH_I2C_Read... [13:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:12]Read from MH i2c: E2 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: E2 17 00 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: E2 17 00 AA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 92 [13:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:12]wFMCommunicate OK [13:25:12]requested_item fd.num is exist - process it [13:25:12]SAM_PROTO_GetFieldsCounters [13:25:12]wFMCommunicate request_size=4 [13:25:12]MH_SAM_APDU [13:25:12]CAPDU: 80 13 00 00 [13:25:12]Write to MH i2c: E2 08 00 AB 19 80 13 00 00 00 00 00 00 40 [13:25:12]Write i2c OK [13:25:12]MH_I2C_Read... [13:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:12]Read from MH i2c: E2 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: E2 62 00 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: E2 62 00 AB 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [13:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F1 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:12]wFMCommunicate OK [13:25:12]SAM_PROTO_GetFieldsCounters done [13:25:12]requested_item shift.num is exist - process it [13:25:12]requested_item shift.opened is exist - process it [13:25:12]req_shift_opened [13:25:12]FM_GetShiftState [13:25:12]SAM_PROTO_GetShiftState [13:25:12]wFMCommunicate request_size=4 [13:25:12]MH_SAM_APDU [13:25:12]CAPDU: 80 13 01 00 [13:25:12]Write to MH i2c: E2 08 00 AC 19 80 13 01 00 00 00 00 00 42 [13:25:12]Write i2c OK [13:25:12]MH_I2C_Read... [13:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:12]Read from MH i2c: E2 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: E2 0E 00 [13:25:12]MH_I2C_Read... [13:25:12]Read from MH i2c: E2 0E 00 AC 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 44 [13:25:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:25:12]wFMCommunicate OK [13:25:12]SAM_PROTO_GetShiftState done [13:25:12]FM_GetShiftState done [13:25:12]req_shift_opened done [13:25:12]requested_item shift.open_date is exist - process it [13:25:12]req_shift_open_date [13:25:12]req_shift_open_date done [13:25:12]produce_requested_data done [13:25:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201969,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:25:12]process_action_free close_receipt [13:25:12]json_value_free [13:25:12]json_value_free done [13:25:12]process_json_proto returns [13:25:12]Send response to host [13:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201969,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:25:12]free response buf [13:25:12]execute_script done [13:25:12]execute_script returns [13:25:12]free content buf [13:25:12]Sock 9.Close socket [13:25:12]Sock 9.Thread stoped [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:43]accept exits with 10 [13:25:43]New connection [13:25:43]New thread 3066498404 created [13:25:43]Thread 3066641764 joined [13:25:43]Waiting for new connection... [13:25:43] Sock 10.Parse request [13:25:43]Sock 10.Check first char [13:25:43]Sock 10.First char is OK [13:25:43]request: POST /json_proto HTTP/1.0 [13:25:43]Method: POST [13:25:43]URL: /json_proto [13:25:43]Method is POST - this is cgi request [13:25:43]url: /json_proto [13:25:43]query_string will be loaded in cgi processing [13:25:43]execute_cgi json_proto POST (null) [13:25:43]execute_cgi path=json_proto method=POST [13:25:43]POST find Content-Length [13:25:43]Host: 172.17.63.195:8080 [13:25:43]Content-Length: 679 [13:25:43]Content-Type: application/json [13:25:43] [13:25:43]POST finish read [13:25:43]Found Content-Length = 679 [13:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:25:43]execute_script... [13:25:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:25:43]POST & json_proto [13:25:43]process_json_proto [13:25:43]json parsed OK: [13:25:43]protocol is kg_v1.0 [13:25:43]action value=close_receipt [13:25:43]process_action close_receipt [13:25:43]cmd_close_receipt [13:25:43]MH_GetDate [13:25:43]Write to MH i2c: F0 00 00 AD 19 B5 [13:25:43]Write i2c OK [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: F0 [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: F0 09 00 [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: F0 09 00 AD 19 00 58 3F 1E 67 47 1B 1E 67 C1 [13:25:43]GetLastDocTimeStamp 1730035509 [13:25:43]current date 1730035544 [13:25:43]FM_GetShiftState [13:25:43]SAM_PROTO_GetShiftState [13:25:43]wFMCommunicate request_size=4 [13:25:43]MH_SAM_APDU [13:25:43]CAPDU: 80 13 01 00 [13:25:43]Write to MH i2c: E2 08 00 AE 19 80 13 01 00 00 00 00 00 44 [13:25:43]Write i2c OK [13:25:43]MH_I2C_Read... [13:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:43]Read from MH i2c: E2 [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: E2 0E 00 [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: E2 0E 00 AE 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 46 [13:25:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:25:43]wFMCommunicate OK [13:25:43]SAM_PROTO_GetShiftState done [13:25:43]FM_GetShiftState done [13:25:43]opened in 1729987312 [13:25:43]opened+sec_in_day 1730073712 [13:25:43]quantity*price = 100050 [13:25:43]sum+1 = 100052 [13:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 262 27.10.2024 13:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201970 ФПД: 189213969758075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132544&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201970&fm=189213969758075&tin=02508201610067®Number=0000000000091777&sum=100000 [13:25:44]StoreToDocumentArchive [13:25:44]shift 544 fd 201970 [13:25:44]save to /storage/0544/doc_00201970 [13:25:44]save last doc name /storage/0544/doc_00201970 to /storage/kkm_last_doc_name [13:25:44]save OK [13:25:44]Clear old archive folders... [13:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:25:44]tlvbuf is B6F0C940 [13:25:44]SAM_PROTO_ClearQueue [13:25:44]wFMCommunicate request_size=4 [13:25:44]MH_SAM_APDU [13:25:44]CAPDU: 80 09 00 00 [13:25:44]Write to MH i2c: E2 08 00 BB 19 80 09 00 00 00 00 00 00 46 [13:25:44]Write i2c OK [13:25:44]MH_I2C_Read... [13:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:44]Read from MH i2c: E2 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: E2 03 00 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: E2 03 00 BB 19 00 90 00 48 [13:25:44]RAPDU: 90 00 [13:25:44]wFMCommunicate OK [13:25:44]SAM_PROTO_ClearQueue done [13:25:44]KKMCreateOFDPacket [13:25:44]OFDProtocolAddRootSTLVToBuf [13:25:44]FM_MakeSignedData [13:25:44]FM_MakeSignedData [13:25:44]SAM_PROTO_SignData [13:25:44]wFMCommunicate request_size=4 [13:25:44]MH_SAM_APDU [13:25:44]CAPDU: 80 0D 01 02 [13:25:44]Write to MH i2c: E2 08 00 BC 19 80 0D 01 02 00 00 00 00 4E [13:25:44]Write i2c OK [13:25:44]MH_I2C_Read... [13:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:44]Read from MH i2c: E2 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: E2 03 00 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [13:25:44]RAPDU: 90 00 [13:25:44]wFMCommunicate OK [13:25:44]wFMCommunicate request_size=255 [13:25:44]MH_SAM_APDU [13:25:44]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 32 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 06 01 00 00 F4 03 04 00 58 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 14 03 00 35 04 06 00 AC 16 CF 74 [13:25:44]Write to MH i2c: E2 02 01 BD 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 06 01 00 00 F4 03 04 00 58 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 14 03 00 35 04 06 00 AC 16 CF 74 00 00 2B [13:25:44]Write i2c OK [13:25:44]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]wFMCommunicate request_size=7 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 02 02 02 37 7B [13:25:45]Write to MH i2c: E2 0A 00 BE 19 80 0D 02 02 02 00 37 7B 00 00 07 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 BE 19 00 90 00 4B [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 03 02 [13:25:45]Write to MH i2c: E2 08 00 BF 19 80 0D 03 02 00 00 00 00 53 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 0B 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 0B 00 BF 19 00 A6 5D 67 0B E8 51 50 FA 90 00 4C [13:25:45]RAPDU: A6 5D 67 0B E8 51 50 FA 90 00 [13:25:45]wFMCommunicate OK [13:25:45]SAM_PROTO_SignData done [13:25:45]FM_MakeSignedData done [13:25:45]CreateOFDProtocolMessage [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 11 00 00 [13:25:45]Write to MH i2c: E2 08 00 C0 19 80 11 00 00 00 00 00 00 53 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 17 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 17 00 C0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A8 [13:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:45]wFMCommunicate OK [13:25:45]CreateOFDProtocolMessage done [13:25:45]OFDSenderStorePacket 201970 [13:25:45]StoreOFDPacket docnum=201970 [13:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 33 4E 04 01 C0 47 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 32 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 06 01 00 00 F4 03 04 00 58 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 14 03 00 35 04 06 00 AC 16 CF 74 37 7B A6 5D 67 0B E8 51 50 FA [13:25:45]CheckFolder [13:25:45]dirname=/storage/ofd_packets [13:25:45]CheckFolder done [13:25:45]ProducePacketName [13:25:45]name=ofd_packets/00201970 [13:25:45]NVStorageSaveData ofd_packets/00201970 [13:25:45]File name is /storage/ofd_packets/00201970 [13:25:45]Write 298 bytes [13:25:45]NVStorageSaveData done [13:25:45]OFDSenderStorePacket done [13:25:45]KKMCreateOFDPacket done [13:25:45]NVStorageSaveData kkm_last_timestamp [13:25:45]File name is /storage/kkm_last_timestamp [13:25:45]Write 4 bytes [13:25:45]NVStorageSaveData done [13:25:45]ExternCall_PrintAddStr [13:25:45]wPrintStart [13:25:45]Write to MH i2c: 01 00 00 C1 19 DA [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: 01 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: 01 07 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: 01 07 00 C1 19 00 00 00 00 00 FF 0F EF [13:25:45]RasterBufferAndPrint [13:25:45]line Счет N : (1)449733 [13:25:45]line ИНН: 02508201610067 [13:25:45]line Контрольно-Кассовый Чек [13:25:45]line ПРОДАЖА [13:25:45]line ТРК (МРК, ГНК) : 21 [13:25:45]line Товар: 2710194210 [13:25:45]line ДТ-К-2 [13:25:45]line 13.130 * 76.20 [13:25:45]line = 1000.51 [13:25:45]line НДС 12% НСП 1% [13:25:45]line > о реализуемом товаре [13:25:45]line ОКРУГЛЕНИЕ: -0.51 [13:25:45]line ИТОГО: 1000.00 [13:25:45]line Внесено: 1000.00 [13:25:45]line СДАЧА: 0.00 [13:25:45]line НСП 1% : 8.85 [13:25:45]line НДС 12% : 106.25 [13:25:45]line Наличными: 1000.00 [13:25:45]line Безнал.: 0.00 [13:25:45]line Место: АЗС № 171 "Партнер Нефть" [13:25:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:25:45]line СНО: Общий режим [13:25:45]line Чек 262 27.10.2024 13:25 [13:25:45]line Смена: 544 ФФД: 1.0 [13:25:45]line ЗНМ: 0300000109 [13:25:45]line РНМ: 0000000000091777 [13:25:45]line Версия ККМ: 001 [13:25:45]line ФМ: 0000000000871756 [13:25:45]line ФД: 201970 [13:25:45]line ФПД: 189213969758075 [13:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132544&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201970&fm=189213969758075&tin=02508201610067®Number=0000000000091777&sum=100000 [13:25:45]OFD Sender: Processing packet 201970 [packets to send 112, broken 111] [13:25:45]ProducePacketName [13:25:45]name=ofd_packets/00201970 [13:25:45]OFD Sender: To server: pG, [13:25:45]CommunicateWithHost lk.salyk.kg:30040 [13:25:45]ConnectInit lk.salyk.kg [13:25:45]written 0, free lines is 4095 [13:25:45]Connected sock=11 [13:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 33 4E 04 01 C0 47 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 32 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 06 01 00 00 F4 03 04 00 58 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 14 03 00 35 04 06 00 AC 16 CF 74 37 7B A6 5D 67 0B E8 51 50 FA [13:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 36 EE 47 00 A3 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 30 38 37 31 37 35 36 10 04 04 00 F2 14 03 00 F4 03 04 00 12 EB 1D 67 B6 04 01 00 00 3F 44 7E 52 C4 93 55 C1 [13:25:46]CommunicateWithHost err = 0 [13:25:46]CheckOFDResponse [13:25:46]1017 (14) - 77093643461234 [13:25:46]1041 (16) - 0000000000871756 [13:25:46]1040 (4) - 201970 [13:25:46]1012 (4) - 27.10.2024 07:26 [13:25:46]1206 (1) - 0 [13:25:46]OFD Sender: Remove packet 201970 [13:25:46]ProducePacketName [13:25:46]name=ofd_packets/00201970 [13:25:46]NVStorageDeleteData [13:25:46]Write to MH i2c: 01 00 00 EC 19 05 [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 EC 19 00 00 00 00 00 97 0C AF [13:25:46]RasterBufferAndPrint [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]written 0, free lines is 3238 [13:25:46]MH_Cut [13:25:46]Write to MH i2c: D1 01 00 F3 19 01 DE [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 01 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 01 00 F3 19 00 DD [13:25:46]Write to MH i2c: 01 00 00 F4 19 0D [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]OFD Sender: No OFD packet to send [13:25:47]*** Cut start [13:25:47]*** Purtial cut [13:25:47]*** Stage 1: CUTSNS_PIN = 1 [13:25:47]Read from MH i2c: 01 [13:25:47]MH_I2C_Read... [13:25:47]*** Stop cut motor [13:25:47]*** Cut end [13:25:47]Read from MH i2c: 01 07 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 FF 0F 22 [13:25:47]process_action close_receipt done [13:25:47]requested_data is exist [13:25:47]produce_requested_data [13:25:47]requested_item fm.sn is exist - process it [13:25:47]wFMCommunicate request_size=4 [13:25:47]MH_SAM_APDU [13:25:47]CAPDU: 80 11 00 00 [13:25:47]Write to MH i2c: E2 08 00 F5 19 80 11 00 00 00 00 00 00 88 [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:47]Read from MH i2c: E2 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 17 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 17 00 F5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [13:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:47]wFMCommunicate OK [13:25:47]requested_item fd.num is exist - process it [13:25:47]SAM_PROTO_GetFieldsCounters [13:25:47]wFMCommunicate request_size=4 [13:25:47]MH_SAM_APDU [13:25:47]CAPDU: 80 13 00 00 [13:25:47]Write to MH i2c: E2 08 00 F6 19 80 13 00 00 00 00 00 00 8B [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:47]Read from MH i2c: E2 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 62 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 62 00 F6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [13:25:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F2 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:47]wFMCommunicate OK [13:25:47]SAM_PROTO_GetFieldsCounters done [13:25:47]requested_item shift.num is exist - process it [13:25:47]requested_item shift.opened is exist - process it [13:25:47]req_shift_opened [13:25:47]FM_GetShiftState [13:25:47]SAM_PROTO_GetShiftState [13:25:47]wFMCommunicate request_size=4 [13:25:47]MH_SAM_APDU [13:25:47]CAPDU: 80 13 01 00 [13:25:47]Write to MH i2c: E2 08 00 F7 19 80 13 01 00 00 00 00 00 8D [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:47]Read from MH i2c: E2 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 0E 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 0E 00 F7 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8F [13:25:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:25:47]wFMCommunicate OK [13:25:47]SAM_PROTO_GetShiftState done [13:25:47]FM_GetShiftState done [13:25:47]req_shift_opened done [13:25:47]requested_item shift.open_date is exist - process it [13:25:47]req_shift_open_date [13:25:47]req_shift_open_date done [13:25:47]produce_requested_data done [13:25:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201970,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:25:47]process_action_free close_receipt [13:25:47]json_value_free [13:25:47]json_value_free done [13:25:47]process_json_proto returns [13:25:47]Send response to host [13:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201970,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:25:47]free response buf [13:25:47]execute_script done [13:25:47]execute_script returns [13:25:47]free content buf [13:25:47]Sock 10.Close socket [13:25:47]Sock 10.Thread stoped [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:29]accept exits with 9 [13:26:29]New connection [13:26:29]New thread 3066641764 created [13:26:29]Thread 3066498404 joined [13:26:29]Waiting for new connection... [13:26:29] Sock 9.Parse request [13:26:29]Sock 9.Check first char [13:26:29]Sock 9.First char is OK [13:26:29]request: POST /json_proto HTTP/1.0 [13:26:29]Method: POST [13:26:29]URL: /json_proto [13:26:29]Method is POST - this is cgi request [13:26:29]url: /json_proto [13:26:29]query_string will be loaded in cgi processing [13:26:29]execute_cgi json_proto POST (null) [13:26:29]execute_cgi path=json_proto method=POST [13:26:29]POST find Content-Length [13:26:29]Host: 172.17.63.195:8080 [13:26:29]Content-Length: 670 [13:26:29]Content-Type: application/json [13:26:29] [13:26:29]POST finish read [13:26:29]Found Content-Length = 670 [13:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:29]execute_script... [13: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)449735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:29]POST & json_proto [13:26:29]process_json_proto [13:26:29]json parsed OK: [13:26:29]protocol is kg_v1.0 [13:26:29]action value=close_receipt [13:26:29]process_action close_receipt [13:26:29]cmd_close_receipt [13:26:29]MH_GetDate [13:26:29]Write to MH i2c: F0 00 00 F8 19 00 [13:26:29]Write i2c OK [13:26:29]MH_I2C_Read... [13:26:29]Read from MH i2c: F0 [13:26:29]MH_I2C_Read... [13:26:29]Read from MH i2c: F0 09 00 [13:26:29]MH_I2C_Read... [13:26:29]Read from MH i2c: F0 09 00 F8 19 00 86 3F 1E 67 47 1B 1E 67 3A [13:26:29]GetLastDocTimeStamp 1730035544 [13:26:29]current date 1730035590 [13:26:29]FM_GetShiftState [13:26:29]SAM_PROTO_GetShiftState [13:26:29]wFMCommunicate request_size=4 [13:26:29]MH_SAM_APDU [13:26:29]CAPDU: 80 13 01 00 [13:26:29]Write to MH i2c: E2 08 00 F9 19 80 13 01 00 00 00 00 00 8F [13:26:29]Write i2c OK [13:26:29]MH_I2C_Read... [13:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:30]Read from MH i2c: E2 [13:26:30]MH_I2C_Read... [13:26:30]Read from MH i2c: E2 0E 00 [13:26:30]MH_I2C_Read... [13:26:30]Read from MH i2c: E2 0E 00 F9 19 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 91 [13:26:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:26:30]wFMCommunicate OK [13:26:30]SAM_PROTO_GetShiftState done [13:26:30]FM_GetShiftState done [13:26:30]opened in 1729987312 [13:26:30]opened+sec_in_day 1730073712 [13:26:30]quantity*price = 60055 [13:26:30]sum+1 = 60056 [13:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 263 27.10.2024 13:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201971 ФПД: 55021392300372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132630&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201971&fm=55021392300372&tin=02508201610067®Number=0000000000091777&sum=60000 [13:26:31]StoreToDocumentArchive [13:26:31]shift 544 fd 201971 [13:26:31]save to /storage/0544/doc_00201971 [13:26:31]save last doc name /storage/0544/doc_00201971 to /storage/kkm_last_doc_name [13:26:31]save OK [13:26:31]Clear old archive folders... [13:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:26:31]tlvbuf is 01280C20 [13:26:31]SAM_PROTO_ClearQueue [13:26:31]wFMCommunicate request_size=4 [13:26:31]MH_SAM_APDU [13:26:31]CAPDU: 80 09 00 00 [13:26:31]Write to MH i2c: E2 08 00 06 1A 80 09 00 00 00 00 00 00 92 [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:31]Read from MH i2c: E2 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 03 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [13:26:31]RAPDU: 90 00 [13:26:31]wFMCommunicate OK [13:26:31]SAM_PROTO_ClearQueue done [13:26:31]KKMCreateOFDPacket [13:26:31]OFDProtocolAddRootSTLVToBuf [13:26:31]FM_MakeSignedData [13:26:31]FM_MakeSignedData [13:26:31]SAM_PROTO_SignData [13:26:31]wFMCommunicate request_size=4 [13:26:31]MH_SAM_APDU [13:26:31]CAPDU: 80 0D 01 02 [13:26:31]Write to MH i2c: E2 08 00 07 1A 80 0D 01 02 00 00 00 00 9A [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:31]Read from MH i2c: E2 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 03 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [13:26:31]RAPDU: 90 00 [13:26:31]wFMCommunicate OK [13:26:31]wFMCommunicate request_size=255 [13:26:31]MH_SAM_APDU [13:26:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 86 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 14 03 00 35 04 06 00 [13:26:31]Write to MH i2c: E2 02 01 08 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 86 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 14 03 00 35 04 06 00 00 00 32 [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]OFD Sender: No OFD packet to send [13:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:31]Read from MH i2c: E2 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 03 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [13:26:31]RAPDU: 90 00 [13:26:31]wFMCommunicate OK [13:26:31]wFMCommunicate request_size=11 [13:26:31]MH_SAM_APDU [13:26:31]CAPDU: 80 0D 02 02 06 32 0A AA 8B 09 54 [13:26:31]Write to MH i2c: E2 0E 00 09 1A 80 0D 02 02 06 00 32 0A AA 8B 09 54 00 00 77 [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:31]Read from MH i2c: E2 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 03 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 03 00 09 1A 00 90 00 97 [13:26:31]RAPDU: 90 00 [13:26:31]wFMCommunicate OK [13:26:31]wFMCommunicate request_size=4 [13:26:31]MH_SAM_APDU [13:26:31]CAPDU: 80 0D 03 02 [13:26:31]Write to MH i2c: E2 08 00 0A 1A 80 0D 03 02 00 00 00 00 9F [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:31]Read from MH i2c: E2 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 0B 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 0B 00 0A 1A 00 4F 0F 01 6B DB 49 2B E8 90 00 A1 [13:26:31]RAPDU: 4F 0F 01 6B DB 49 2B E8 90 00 [13:26:31]wFMCommunicate OK [13:26:31]SAM_PROTO_SignData done [13:26:31]FM_MakeSignedData done [13:26:31]CreateOFDProtocolMessage [13:26:31]wFMCommunicate request_size=4 [13:26:31]MH_SAM_APDU [13:26:31]CAPDU: 80 11 00 00 [13:26:31]Write to MH i2c: E2 08 00 0B 1A 80 11 00 00 00 00 00 00 9F [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:31]Read from MH i2c: E2 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 17 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 17 00 0B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [13:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:26:31]wFMCommunicate OK [13:26:31]CreateOFDProtocolMessage done [13:26:31]OFDSenderStorePacket 201971 [13:26:31]StoreOFDPacket docnum=201971 [13:26:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 ED 5D 08 01 73 DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 86 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 14 03 00 35 04 06 00 32 0A AA 8B 09 54 4F 0F 01 6B DB 49 2B E8 [13:26:31]CheckFolder [13:26:31]dirname=/storage/ofd_packets [13:26:31]CheckFolder done [13:26:31]ProducePacketName [13:26:31]name=ofd_packets/00201971 [13:26:31]NVStorageSaveData ofd_packets/00201971 [13:26:31]File name is /storage/ofd_packets/00201971 [13:26:31]Write 302 bytes [13:26:31]NVStorageSaveData done [13:26:31]OFDSenderStorePacket done [13:26:31]KKMCreateOFDPacket done [13:26:31]NVStorageSaveData kkm_last_timestamp [13:26:31]File name is /storage/kkm_last_timestamp [13:26:31]Write 4 bytes [13:26:31]NVStorageSaveData done [13:26:31]ExternCall_PrintAddStr [13:26:31]wPrintStart [13:26:31]Write to MH i2c: 01 00 00 0C 1A 26 [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: 01 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: 01 07 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: 01 07 00 0C 1A 00 00 00 00 00 FF 0F 3B [13:26:31]RasterBufferAndPrint [13:26:31]line Счет N : (1)449735 [13:26:31]line ИНН: 02508201610067 [13:26:31]line Контрольно-Кассовый Чек [13:26:31]line ПРОДАЖА [13:26:31]line ТРК (МРК, ГНК) : 42 [13:26:31]line Товар: 2710124130 [13:26:31]line SUPER 92-К-5 [13:26:31]line 8.780 * 68.40 [13:26:31]line = 600.55 [13:26:31]line НДС 12% НСП 1% [13:26:31]line > о реализуемом товаре [13:26:31]line ОКРУГЛЕНИЕ: -0.55 [13:26:31]line ИТОГО: 600.00 [13:26:31]line Внесено: 600.00 [13:26:31]line СДАЧА: 0.00 [13:26:31]line НСП 1% : 5.31 [13:26:31]line НДС 12% : 63.77 [13:26:31]line Наличными: 600.00 [13:26:31]line Безнал.: 0.00 [13:26:31]line Место: АЗС № 171 "Партнер Нефть" [13:26:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:26:31]line СНО: Общий режим [13:26:31]line Чек 263 27.10.2024 13:26 [13:26:31]line Смена: 544 ФФД: 1.0 [13:26:31]line ЗНМ: 0300000109 [13:26:31]line РНМ: 0000000000091777 [13:26:31]line Версия ККМ: 001 [13:26:31]line ФМ: 0000000000871756 [13:26:31]line ФД: 201971 [13:26:31]line ФПД: 55021392300372 [13:26:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132630&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201971&fm=55021392300372&tin=02508201610067®Number=0000000000091777&sum=60000 [13:26:31]written 0, free lines is 4095 [13:26:32]OFD Sender: Processing packet 201971 [packets to send 112, broken 111] [13:26:32]ProducePacketName [13:26:32]name=ofd_packets/00201971 [13:26:32]OFD Sender: To server: pG, [13:26:32]CommunicateWithHost lk.salyk.kg:30040 [13:26:32]ConnectInit lk.salyk.kg [13:26:32]Connected sock=11 [13:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 ED 5D 08 01 73 DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 86 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 14 03 00 35 04 06 00 32 0A AA 8B 09 54 4F 0F 01 6B DB 49 2B E8 [13:26:32]Write to MH i2c: 01 00 00 37 1A 51 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: 01 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: 01 07 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: 01 07 00 37 1A 00 00 00 00 00 A0 0C 04 [13:26:32]RasterBufferAndPrint [13:26:32]line [13:26:32]line [13:26:32]line [13:26:32]line [13:26:32]line [13:26:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DB 03 47 00 75 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 14 03 00 F4 03 written 0, free lines is 3281 [13:26:32]04 00 40 EB 1D 67 B6 04 01 00 00 48 F9 44 4B 99 CB 97 E6 [13:26:32]CommunicateWithHost err = 0 [13:26:32]CheckOFDResponse [13:26:32]1017 (14) - 77093643461234 [13:26:32]1041 (16) - 0000000000871756 [13:26:32]1040 (4) - 201971 [13:26:32]1012 (4) - 27.10.2024 07:26 [13:26:32]1206 (1) - 0 [13:26:32]MH_Cut [13:26:32]OFD Sender: Remove packet 201971 [13:26:32]Write to MH i2c: ProducePacketName [13:26:32]D1 name=ofd_packets/00201971 [13:26:32]01 NVStorageDeleteData [13:26:32]00 3E 1A 01 2A [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: D1 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: D1 01 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: D1 01 00 3E 1A 00 29 [13:26:32]Write to MH i2c: 01 00 00 3F 1A 59 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:33]OFD Sender: No OFD packet to send [13:26:33]*** Cut start [13:26:33]*** Purtial cut [13:26:33]*** Stage 1: CUTSNS_PIN = 1 [13:26:33]Read from MH i2c: 01 [13:26:33]MH_I2C_Read... [13:26:33]*** Stop cut motor [13:26:33]*** Cut end [13:26:33]Read from MH i2c: 01 07 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 07 00 3F 1A 00 00 00 00 00 FF 0F 6E [13:26:33]process_action close_receipt done [13:26:33]requested_data is exist [13:26:33]produce_requested_data [13:26:33]requested_item fm.sn is exist - process it [13:26:33]wFMCommunicate request_size=4 [13:26:33]MH_SAM_APDU [13:26:33]CAPDU: 80 11 00 00 [13:26:33]Write to MH i2c: E2 08 00 40 1A 80 11 00 00 00 00 00 00 D4 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:33]Read from MH i2c: E2 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 17 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 17 00 40 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 29 [13:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:26:33]wFMCommunicate OK [13:26:33]requested_item fd.num is exist - process it [13:26:33]SAM_PROTO_GetFieldsCounters [13:26:33]wFMCommunicate request_size=4 [13:26:33]MH_SAM_APDU [13:26:33]CAPDU: 80 13 00 00 [13:26:33]Write to MH i2c: E2 08 00 41 1A 80 13 00 00 00 00 00 00 D7 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:33]Read from MH i2c: E2 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 62 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 62 00 41 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [13:26:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F3 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:33]wFMCommunicate OK [13:26:33]SAM_PROTO_GetFieldsCounters done [13:26:33]requested_item shift.num is exist - process it [13:26:33]requested_item shift.opened is exist - process it [13:26:33]req_shift_opened [13:26:33]FM_GetShiftState [13:26:33]SAM_PROTO_GetShiftState [13:26:33]wFMCommunicate request_size=4 [13:26:33]MH_SAM_APDU [13:26:33]CAPDU: 80 13 01 00 [13:26:33]Write to MH i2c: E2 08 00 42 1A 80 13 01 00 00 00 00 00 D9 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:33]Read from MH i2c: E2 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 0E 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 0E 00 42 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DB [13:26:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:26:34]wFMCommunicate OK [13:26:34]SAM_PROTO_GetShiftState done [13:26:34]FM_GetShiftState done [13:26:34]req_shift_opened done [13:26:34]requested_item shift.open_date is exist - process it [13:26:34]req_shift_open_date [13:26:34]req_shift_open_date done [13:26:34]produce_requested_data done [13:26:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201971,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:26:34]process_action_free close_receipt [13:26:34]json_value_free [13:26:34]json_value_free done [13:26:34]process_json_proto returns [13:26:34]Send response to host [13:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201971,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:26:34]free response buf [13:26:34]execute_script done [13:26:34]execute_script returns [13:26:34]free content buf [13:26:34]Sock 9.Close socket [13:26:34]Sock 9.Thread stoped [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:16]ConnectInit Can't connect to host [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:03]accept exits with 10 [13:28:03]New connection [13:28:03]New thread 3066498404 created [13:28:03]Thread 3066641764 joined [13:28:03]Waiting for new connection... [13:28:03] Sock 10.Parse request [13:28:03]Sock 10.Check first char [13:28:03]Sock 10.First char is OK [13:28:03]request: POST /json_proto HTTP/1.0 [13:28:03]Method: POST [13:28:03]URL: /json_proto [13:28:03]Method is POST - this is cgi request [13:28:03]url: /json_proto [13:28:03]query_string will be loaded in cgi processing [13:28:03]execute_cgi json_proto POST (null) [13:28:03]execute_cgi path=json_proto method=POST [13:28:03]POST find Content-Length [13:28:03]Host: 172.17.63.195:8080 [13:28:03]Content-Length: 677 [13:28:03]Content-Type: application/json [13:28:03] [13:28:03]POST finish read [13:28:03]Found Content-Length = 677 [13:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:03]execute_script... [13:28: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)449737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 3.370, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:03]POST & json_proto [13:28:03]process_json_proto [13:28:03]json parsed OK: [13:28:03]protocol is kg_v1.0 [13:28:03]action value=close_receipt [13:28:03]process_action close_receipt [13:28:03]cmd_close_receipt [13:28:03]MH_GetDate [13:28:03]Write to MH i2c: F0 00 00 43 1A 4C [13:28:03]Write i2c OK [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: F0 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: F0 09 00 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: F0 09 00 43 1A 00 E4 3F 1E 67 47 1B 1E 67 E4 [13:28:03]GetLastDocTimeStamp 1730035590 [13:28:03]current date 1730035684 [13:28:03]FM_GetShiftState [13:28:03]SAM_PROTO_GetShiftState [13:28:03]wFMCommunicate request_size=4 [13:28:03]MH_SAM_APDU [13:28:03]CAPDU: 80 13 01 00 [13:28:03]Write to MH i2c: E2 08 00 44 1A 80 13 01 00 00 00 00 00 DB [13:28:03]Write i2c OK [13:28:03]MH_I2C_Read... [13:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:03]Read from MH i2c: E2 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: E2 0E 00 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: E2 0E 00 44 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DD [13:28:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:28:03]wFMCommunicate OK [13:28:03]SAM_PROTO_GetShiftState done [13:28:03]FM_GetShiftState done [13:28:03]opened in 1729987312 [13:28:03]opened+sec_in_day 1730073712 [13:28:03]quantity*price = 25005 [13:28:03]sum+1 = 25006 [13:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 264 27.10.2024 13:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201972 ФПД: 117663593833451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132804&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201972&fm=117663593833451&tin=02508201610067®Number=0000000000091777&sum=25000 [13:28:04]StoreToDocumentArchive [13:28:04]shift 544 fd 201972 [13:28:04]save to /storage/0544/doc_00201972 [13:28:04]save last doc name /storage/0544/doc_00201972 to /storage/kkm_last_doc_name [13:28:04]save OK [13:28:04]Clear old archive folders... [13:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:04]tlvbuf is 0128DE70 [13:28:04]SAM_PROTO_ClearQueue [13:28:04]wFMCommunicate request_size=4 [13:28:04]MH_SAM_APDU [13:28:04]CAPDU: 80 09 00 00 [13:28:04]Write to MH i2c: E2 08 00 51 1A 80 09 00 00 00 00 00 00 DD [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:04]Read from MH i2c: E2 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 03 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [13:28:04]RAPDU: 90 00 [13:28:04]wFMCommunicate OK [13:28:04]SAM_PROTO_ClearQueue done [13:28:04]KKMCreateOFDPacket [13:28:04]OFDProtocolAddRootSTLVToBuf [13:28:04]FM_MakeSignedData [13:28:04]FM_MakeSignedData [13:28:04]SAM_PROTO_SignData [13:28:04]wFMCommunicate request_size=4 [13:28:04]MH_SAM_APDU [13:28:04]CAPDU: 80 0D 01 02 [13:28:04]Write to MH i2c: E2 08 00 52 1A 80 0D 01 02 00 00 00 00 E5 [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:04]Read from MH i2c: E2 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 03 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 03 00 52 1A 00 90 00 E0 [13:28:04]RAPDU: 90 00 [13:28:04]wFMCommunicate OK [13:28:04]wFMCommunicate request_size=255 [13:28:04]MH_SAM_APDU [13:28: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 E4 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 14 03 00 35 04 06 00 6B [13:28:04]Write to MH i2c: E2 02 01 53 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 E4 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 14 03 00 35 04 06 00 6B 00 00 F7 [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:04]Read from MH i2c: E2 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 03 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 03 00 53 1A 00 90 00 E1 [13:28:04]RAPDU: 90 00 [13:28:04]wFMCommunicate OK [13:28:04]wFMCommunicate request_size=10 [13:28:04]MH_SAM_APDU [13:28:04]CAPDU: 80 0D 02 02 05 03 B0 B6 A3 EB [13:28:04]Write to MH i2c: E2 0D 00 54 1A 80 0D 02 02 05 00 03 B0 B6 A3 EB 00 00 E9 [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:04]Read from MH i2c: E2 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 03 00 [13:28:04]MH_I2C_Read... [13:28:04]Read from MH i2c: E2 03 00 54 1A 00 90 00 E2 [13:28:04]RAPDU: 90 00 [13:28:04]wFMCommunicate OK [13:28:04]wFMCommunicate request_size=4 [13:28:04]MH_SAM_APDU [13:28:04]CAPDU: 80 0D 03 02 [13:28:04]Write to MH i2c: E2 08 00 55 1A 80 0D 03 02 00 00 00 00 EA [13:28:04]Write i2c OK [13:28:04]MH_I2C_Read... [13:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:05]Read from MH i2c: E2 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 0B 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 0B 00 55 1A 00 06 5C 91 9B 8D CF 30 34 90 00 39 [13:28:05]RAPDU: 06 5C 91 9B 8D CF 30 34 90 00 [13:28:05]wFMCommunicate OK [13:28:05]SAM_PROTO_SignData done [13:28:05]FM_MakeSignedData done [13:28:05]CreateOFDProtocolMessage [13:28:05]wFMCommunicate request_size=4 [13:28:05]MH_SAM_APDU [13:28:05]CAPDU: 80 11 00 00 [13:28:05]Write to MH i2c: E2 08 00 56 1A 80 11 00 00 00 00 00 00 EA [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:05]Read from MH i2c: E2 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 17 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: E2 17 00 56 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [13:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:28:05]wFMCommunicate OK [13:28:05]CreateOFDProtocolMessage done [13:28:05]OFDSenderStorePacket 201972 [13:28:05]StoreOFDPacket docnum=201972 [13:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D B3 07 01 8A 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 E4 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 14 03 00 35 04 06 00 6B 03 B0 B6 A3 EB 06 5C 91 9B 8D CF 30 34 [13:28:05]CheckFolder [13:28:05]dirname=/storage/ofd_packets [13:28:05]CheckFolder done [13:28:05]ProducePacketName [13:28:05]name=ofd_packets/00201972 [13:28:05]NVStorageSaveData ofd_packets/00201972 [13:28:05]File name is /storage/ofd_packets/00201972 [13:28:05]Write 301 bytes [13:28:05]NVStorageSaveData done [13:28:05]OFDSenderStorePacket done [13:28:05]KKMCreateOFDPacket done [13:28:05]NVStorageSaveData kkm_last_timestamp [13:28:05]File name is /storage/kkm_last_timestamp [13:28:05]Write 4 bytes [13:28:05]NVStorageSaveData done [13:28:05]ExternCall_PrintAddStr [13:28:05]wPrintStart [13:28:05]Write to MH i2c: 01 00 00 57 1A 71 [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 07 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 07 00 57 1A 00 00 00 00 00 FF 0F 86 [13:28:05]RasterBufferAndPrint [13:28:05]line Счет N : (1)449737 [13:28:05]line ИНН: 02508201610067 [13:28:05]line Контрольно-Кассовый Чек [13:28:05]line ПРОДАЖА [13:28:05]line ТРК (МРК, ГНК) : 51 [13:28:05]line Товар: 2710124500 [13:28:05]line Аи-95-К-3 [13:28:05]line 3.370 * 74.20 [13:28:05]line = 250.05 [13:28:05]line НДС 12% НСП 1% [13:28:05]line > о реализуемом товаре [13:28:05]line ОКРУГЛЕНИЕ: -0.05 [13:28:05]line ИТОГО: 250.00 [13:28:05]line Внесено: 250.00 [13:28:05]line СДАЧА: 0.00 [13:28:05]line НСП 1% : 2.21 [13:28:05]line НДС 12% : 26.55 [13:28:05]line Наличными: 250.00 [13:28:05]line Безнал.: 0.00 [13:28:05]line Место: АЗС № 171 "Партнер Нефть" [13:28:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:28:05]line СНО: Общий режим [13:28:05]line Чек 264 27.10.2024 13:28 [13:28:05]line Смена: 544 ФФД: 1.0 [13:28:05]line ЗНМ: 0300000109 [13:28:05]line РНМ: 0000000000091777 [13:28:05]line Версия ККМ: 001 [13:28:05]line ФМ: 0000000000871756 [13:28:05]line ФД: 201972 [13:28:05]line ФПД: 117663593833451 [13:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132804&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201972&fm=117663593833451&tin=02508201610067®Number=0000000000091777&sum=25000 [13:28:05]OFD Sender: Processing packet 201972 [packets to send 112, broken 111] [13:28:05]ProducePacketName [13:28:05]name=ofd_packets/00201972 [13:28:05]OFD Sender: To server: pG, [13:28:05]CommunicateWithHost lk.salyk.kg:30040 [13:28:05]ConnectInit lk.salyk.kg [13:28:05]written 0, free lines is 4095 [13:28:05]Connected sock=9 [13:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D B3 07 01 8A 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2A 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 E4 3F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 14 03 00 35 04 06 00 6B 03 B0 B6 A3 EB 06 5C 91 9B 8D CF 30 34 [13:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B7 00 47 00 AD 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 14 03 00 F4 03 04 00 9E EB 1D 67 B6 04 01 00 00 4C 1A 6A 6D 2E 5F 44 C7 [13:28:05]CommunicateWithHost err = 0 [13:28:05]CheckOFDResponse [13:28:05]1017 (14) - 77093643461234 [13:28:05]1041 (16) - 0000000000871756 [13:28:05]1040 (4) - 201972 [13:28:05]1012 (4) - 27.10.2024 07:28 [13:28:05]1206 (1) - 0 [13:28:05]OFD Sender: Remove packet 201972 [13:28:05]ProducePacketName [13:28:05]name=ofd_packets/00201972 [13:28:05]NVStorageDeleteData [13:28:05]Write to MH i2c: 01 00 00 82 1A 9C [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 07 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: 01 07 00 82 1A 00 00 00 00 00 93 0C 42 [13:28:05]RasterBufferAndPrint [13:28:05]line [13:28:05]line [13:28:05]line [13:28:05]line [13:28:05]line [13:28:05]written 0, free lines is 3224 [13:28:05]MH_Cut [13:28:05]Write to MH i2c: D1 01 00 89 1A 01 75 [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: D1 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: D1 01 00 [13:28:05]MH_I2C_Read... [13:28:05]Read from MH i2c: D1 01 00 89 1A 00 74 [13:28:05]Write to MH i2c: 01 00 00 8A 1A A4 [13:28:05]Write i2c OK [13:28:05]MH_I2C_Read... [13:28:06]OFD Sender: No OFD packet to send [13:28:06]*** Cut start [13:28:06]*** Purtial cut [13:28:06]*** CUTSNS_PIN = 0 [13:28:06]*** Stage 1: CUTSNS_PIN = 1 [13:28:08]Read from MH i2c: 01 [13:28:08]MH_I2C_Read... [13:28:08]*** Stop cut motor [13:28:08]*** Cut end [13:28:08]Read from MH i2c: 01 07 00 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: 01 07 00 8A 1A 00 00 00 00 00 FF 0F B9 [13:28:08]process_action close_receipt done [13:28:08]requested_data is exist [13:28:08]produce_requested_data [13:28:08]requested_item fm.sn is exist - process it [13:28:08]wFMCommunicate request_size=4 [13:28:08]MH_SAM_APDU [13:28:08]CAPDU: 80 11 00 00 [13:28:08]Write to MH i2c: E2 08 00 8B 1A 80 11 00 00 00 00 00 00 1F [13:28:08]Write i2c OK [13:28:08]MH_I2C_Read... [13:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:08]Read from MH i2c: E2 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 17 00 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 17 00 8B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 74 [13:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:28:08]wFMCommunicate OK [13:28:08]requested_item fd.num is exist - process it [13:28:08]SAM_PROTO_GetFieldsCounters [13:28:08]wFMCommunicate request_size=4 [13:28:08]MH_SAM_APDU [13:28:08]CAPDU: 80 13 00 00 [13:28:08]Write to MH i2c: E2 08 00 8C 1A 80 13 00 00 00 00 00 00 22 [13:28:08]Write i2c OK [13:28:08]MH_I2C_Read... [13:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:09]Read from MH i2c: E2 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 62 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 62 00 8C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [13:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F4 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:09]wFMCommunicate OK [13:28:09]SAM_PROTO_GetFieldsCounters done [13:28:09]requested_item shift.num is exist - process it [13:28:09]requested_item shift.opened is exist - process it [13:28:09]req_shift_opened [13:28:09]FM_GetShiftState [13:28:09]SAM_PROTO_GetShiftState [13:28:09]wFMCommunicate request_size=4 [13:28:09]MH_SAM_APDU [13:28:09]CAPDU: 80 13 01 00 [13:28:09]Write to MH i2c: E2 08 00 8D 1A 80 13 01 00 00 00 00 00 24 [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:09]Read from MH i2c: E2 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 0E 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 0E 00 8D 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 26 [13:28:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:28:09]wFMCommunicate OK [13:28:09]SAM_PROTO_GetShiftState done [13:28:09]FM_GetShiftState done [13:28:09]req_shift_opened done [13:28:09]requested_item shift.open_date is exist - process it [13:28:09]req_shift_open_date [13:28:09]req_shift_open_date done [13:28:09]produce_requested_data done [13:28:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201972,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:28:09]process_action_free close_receipt [13:28:09]json_value_free [13:28:09]json_value_free done [13:28:09]process_json_proto returns [13:28:09]Send response to host [13:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201972,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:28:09]free response buf [13:28:09]execute_script done [13:28:09]execute_script returns [13:28:09]free content buf [13:28:09]Sock 10.Close socket [13:28:09]Sock 10.Thread stoped [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:21]accept exits with 8 [13:29:21]New connection [13:29:21]New thread 3066641764 created [13:29:21]Thread 3066498404 joined [13:29:21]Waiting for new connection... [13:29:21] Sock 8.Parse request [13:29:21]Sock 8.Check first char [13:29:21]Sock 8.First char is OK [13:29:21]request: POST /json_proto HTTP/1.0 [13:29:21]Method: POST [13:29:21]URL: /json_proto [13:29:21]Method is POST - this is cgi request [13:29:21]url: /json_proto [13:29:21]query_string will be loaded in cgi processing [13:29:21]execute_cgi json_proto POST (null) [13:29:21]execute_cgi path=json_proto method=POST [13:29:21]POST find Content-Length [13:29:21]Host: 172.17.63.195:8080 [13:29:21]Content-Length: 632 [13:29:21]Content-Type: application/json [13:29:21] [13:29:21]POST finish read [13:29:21]Found Content-Length = 632 [13:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [13:29:21]execute_script... [13:29:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [13:29:21]POST & json_proto [13:29:21]process_json_proto [13:29:21]json parsed OK: [13:29:21]protocol is kg_v1.0 [13:29:21]action value=close_receipt [13:29:21]process_action close_receipt [13:29:21]cmd_close_receipt [13:29:21]MH_GetDate [13:29:21]Write to MH i2c: F0 00 00 8E 1A 97 [13:29:21]Write i2c OK [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: F0 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: F0 09 00 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: F0 09 00 8E 1A 00 32 40 1E 67 47 1B 1E 67 7E [13:29:21]GetLastDocTimeStamp 1730035684 [13:29:21]current date 1730035762 [13:29:21]FM_GetShiftState [13:29:21]SAM_PROTO_GetShiftState [13:29:21]wFMCommunicate request_size=4 [13:29:21]MH_SAM_APDU [13:29:21]CAPDU: 80 13 01 00 [13:29:21]Write to MH i2c: E2 08 00 8F 1A 80 13 01 00 00 00 00 00 26 [13:29:21]Write i2c OK [13:29:21]MH_I2C_Read... [13:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:21]Read from MH i2c: E2 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: E2 0E 00 [13:29:21]MH_I2C_Read... [13:29:21]Read from MH i2c: E2 0E 00 8F 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 28 [13:29:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:29:21]wFMCommunicate OK [13:29:21]SAM_PROTO_GetShiftState done [13:29:21]FM_GetShiftState done [13:29:21]opened in 1729987312 [13:29:21]opened+sec_in_day 1730073712 [13:29:21]quantity*price = 50000 [13:29:21]sum+1 = 50001 [13:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 265 27.10.2024 13:29 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201973 ФПД: 216981165690488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132922&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201973&fm=216981165690488&tin=02508201610067®Number=0000000000091777&sum=50000 [13:29:22]StoreToDocumentArchive [13:29:22]shift 544 fd 201973 [13:29:22]save to /storage/0544/doc_00201973 [13:29:22]save last doc name /storage/0544/doc_00201973 to /storage/kkm_last_doc_name [13:29:22]save OK [13:29:22]Clear old archive folders... [13:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:29:22]tlvbuf is B6F091D0 [13:29:22]SAM_PROTO_ClearQueue [13:29:22]wFMCommunicate request_size=4 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 09 00 00 [13:29:22]Write to MH i2c: E2 08 00 9C 1A 80 09 00 00 00 00 00 00 28 [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 9C 1A 00 90 00 2A [13:29:22]RAPDU: 90 00 [13:29:22]wFMCommunicate OK [13:29:22]SAM_PROTO_ClearQueue done [13:29:22]KKMCreateOFDPacket [13:29:22]OFDProtocolAddRootSTLVToBuf [13:29:22]FM_MakeSignedData [13:29:22]FM_MakeSignedData [13:29:22]SAM_PROTO_SignData [13:29:22]wFMCommunicate request_size=4 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 0D 01 02 [13:29:22]Write to MH i2c: E2 08 00 9D 1A 80 0D 01 02 00 00 00 00 30 [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:22]Read from MH i2c: E2 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 [13:29:22]MH_I2C_Read... [13:29:22]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [13:29:22]RAPDU: 90 00 [13:29:22]wFMCommunicate OK [13:29:22]wFMCommunicate request_size=255 [13:29:22]MH_SAM_APDU [13:29:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 09 01 00 00 F4 03 04 00 32 40 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 14 03 00 35 04 06 00 [13:29:22]Write to MH i2c: E2 02 01 9E 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 20 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 09 01 00 00 F4 03 04 00 32 40 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 14 03 00 35 04 06 00 00 00 50 [13:29:22]Write i2c OK [13:29:22]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 03 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [13:29:23]RAPDU: 90 00 [13:29:23]wFMCommunicate OK [13:29:23]wFMCommunicate request_size=11 [13:29:23]MH_SAM_APDU [13:29:23]CAPDU: 80 0D 02 02 06 C5 57 DD 4D CE 78 [13:29:23]Write to MH i2c: E2 0E 00 9F 1A 80 0D 02 02 06 00 C5 57 DD 4D CE 78 00 00 CB [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 03 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 03 00 9F 1A 00 90 00 2D [13:29:23]RAPDU: 90 00 [13:29:23]wFMCommunicate OK [13:29:23]wFMCommunicate request_size=4 [13:29:23]MH_SAM_APDU [13:29:23]CAPDU: 80 0D 03 02 [13:29:23]Write to MH i2c: E2 08 00 A0 1A 80 0D 03 02 00 00 00 00 35 [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 0B 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 0B 00 A0 1A 00 A1 42 A1 62 51 4D 76 F8 90 00 28 [13:29:23]RAPDU: A1 42 A1 62 51 4D 76 F8 90 00 [13:29:23]wFMCommunicate OK [13:29:23]SAM_PROTO_SignData done [13:29:23]FM_MakeSignedData done [13:29:23]CreateOFDProtocolMessage [13:29:23]wFMCommunicate request_size=4 [13:29:23]MH_SAM_APDU [13:29:23]CAPDU: 80 11 00 00 [13:29:23]Write to MH i2c: E2 08 00 A1 1A 80 11 00 00 00 00 00 00 35 [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:23]Read from MH i2c: E2 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 17 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: E2 17 00 A1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8A [13:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:29:23]wFMCommunicate OK [13:29:23]CreateOFDProtocolMessage done [13:29:23]OFDSenderStorePacket 201973 [13:29:23]StoreOFDPacket docnum=201973 [13:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 DB 70 08 01 97 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 09 01 00 00 F4 03 04 00 32 40 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 14 03 00 35 04 06 00 C5 57 DD 4D CE 78 A1 42 A1 62 51 4D 76 F8 [13:29:23]CheckFolder [13:29:23]dirname=/storage/ofd_packets [13:29:23]CheckFolder done [13:29:23]ProducePacketName [13:29:23]name=ofd_packets/00201973 [13:29:23]NVStorageSaveData ofd_packets/00201973 [13:29:23]File name is /storage/ofd_packets/00201973 [13:29:23]Write 302 bytes [13:29:23]NVStorageSaveData done [13:29:23]OFDSenderStorePacket done [13:29:23]KKMCreateOFDPacket done [13:29:23]NVStorageSaveData kkm_last_timestamp [13:29:23]File name is /storage/kkm_last_timestamp [13:29:23]Write 4 bytes [13:29:23]NVStorageSaveData done [13:29:23]ExternCall_PrintAddStr [13:29:23]wPrintStart [13:29:23]Write to MH i2c: 01 00 00 A2 1A BC [13:29:23]OFD Sender: Processing packet 201973 [packets to send 112, broken 111] [13:29:23]ProducePacketName [13:29:23]name=ofd_packets/00201973 [13:29:23]OFD Sender: To server: pG, [13:29:23]CommunicateWithHost lk.salyk.kg:30040 [13:29:23]ConnectInit lk.salyk.kg [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 A2 1A 00 00 00 00 00 FF 0F D1 [13:29:23]RasterBufferAndPrint [13:29:23]line Счет N : (1)449738 [13:29:23]line ИНН: 02508201610067 [13:29:23]line Контрольно-Кассовый Чек [13:29:23]line ПРОДАЖА [13:29:23]line ТРК (МРК, ГНК) : 32 [13:29:23]line Товар: 2710124130 [13:29:23]line SUPER 92-К-5 [13:29:23]line 7.310 * 68.40 [13:29:23]line = 500.00 [13:29:23]line НДС 12% НСП 1% [13:29:23]line > о реализуемом товаре [13:29:23]line ИТОГО: 500.00 [13:29:23]line НСП 1% : 4.42 [13:29:23]line НДС 12% : 53.10 [13:29:23]line Наличными: 500.00 [13:29:23]line Безнал.: 0.00 [13:29:23]line Место: АЗС № 171 "Партнер Нефть" [13:29:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:29:23]line СНО: Общий режим [13:29:23]line Чек 265 27.10.2024 13:29 [13:29:23]line Смена: 544 ФФД: 1.0 [13:29:23]line ЗНМ: 0300000109 [13:29:23]line РНМ: 0000000000091777 [13:29:23]line Версия ККМ: 001 [13:29:23]line ФМ: 0000000000871756 [13:29:23]line ФД: 201973 [13:29:23]line ФПД: 216981165690488 [13:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132922&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201973&fm=216981165690488&tin=02508201610067®Number=0000000000091777&sum=50000 [13:29:23]Connected sock=10 [13:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 DB 70 08 01 97 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 09 01 00 00 F4 03 04 00 32 40 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 14 03 00 35 04 06 00 C5 57 DD 4D CE 78 A1 42 A1 62 51 4D 76 F8 [13:29:23]written 0, free lines is 4095 [13:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 30 F3 47 00 E2 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 14 03 00 F4 03 04 00 EC EB 1D 67 B6 04 01 00 00 B1 E9 EB CF 6C 18 BD 70 [13:29:23]CommunicateWithHost err = 0 [13:29:23]CheckOFDResponse [13:29:23]1017 (14) - 77093643461234 [13:29:23]1041 (16) - 0000000000871756 [13:29:23]1040 (4) - 201973 [13:29:23]1012 (4) - 27.10.2024 07:29 [13:29:23]1206 (1) - 0 [13:29:23]OFD Sender: Remove packet 201973 [13:29:23]ProducePacketName [13:29:23]name=ofd_packets/00201973 [13:29:23]NVStorageDeleteData [13:29:23]Write to MH i2c: 01 00 00 CA 1A E4 [13:29:23]Write i2c OK [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 [13:29:23]MH_I2C_Read... [13:29:23]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 D3 0C CA [13:29:23]RasterBufferAndPrint [13:29:23]line [13:29:23]line [13:29:23]line [13:29:23]line [13:29:23]line [13:29:23]written 0, free lines is 3286 [13:29:24]MH_Cut [13:29:24]Write to MH i2c: D1 01 00 D1 1A 01 BD [13:29:24]Write i2c OK [13:29:24]MH_I2C_Read... [13:29:24]Read from MH i2c: D1 [13:29:24]MH_I2C_Read... [13:29:24]Read from MH i2c: D1 01 00 [13:29:24]MH_I2C_Read... [13:29:24]Read from MH i2c: D1 01 00 D1 1A 00 BC [13:29:24]Write to MH i2c: 01 00 00 D2 1A EC [13:29:24]Write i2c OK [13:29:24]MH_I2C_Read... [13:29:24]OFD Sender: No OFD packet to send [13:29:24]*** Cut start [13:29:24]*** Purtial cut [13:29:24]*** Stage 1: CUTSNS_PIN = 1 [13:29:25]Read from MH i2c: 01 [13:29:25]MH_I2C_Read... [13:29:25]*** Stop cut motor [13:29:25]*** Cut end [13:29:25]Read from MH i2c: 01 07 00 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: 01 07 00 D2 1A 00 00 00 00 00 FF 0F 01 [13:29:25]process_action close_receipt done [13:29:25]requested_data is exist [13:29:25]produce_requested_data [13:29:25]requested_item fm.sn is exist - process it [13:29:25]wFMCommunicate request_size=4 [13:29:25]MH_SAM_APDU [13:29:25]CAPDU: 80 11 00 00 [13:29:25]Write to MH i2c: E2 08 00 D3 1A 80 11 00 00 00 00 00 00 67 [13:29:25]Write i2c OK [13:29:25]MH_I2C_Read... [13:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:25]Read from MH i2c: E2 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 17 00 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 17 00 D3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BC [13:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:29:25]wFMCommunicate OK [13:29:25]requested_item fd.num is exist - process it [13:29:25]SAM_PROTO_GetFieldsCounters [13:29:25]wFMCommunicate request_size=4 [13:29:25]MH_SAM_APDU [13:29:25]CAPDU: 80 13 00 00 [13:29:25]Write to MH i2c: E2 08 00 D4 1A 80 13 00 00 00 00 00 00 6A [13:29:25]Write i2c OK [13:29:25]MH_I2C_Read... [13:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:25]Read from MH i2c: E2 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 62 00 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 62 00 D4 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [13:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F5 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:25]wFMCommunicate OK [13:29:25]SAM_PROTO_GetFieldsCounters done [13:29:25]requested_item shift.num is exist - process it [13:29:25]requested_item shift.opened is exist - process it [13:29:25]req_shift_opened [13:29:25]FM_GetShiftState [13:29:25]SAM_PROTO_GetShiftState [13:29:25]wFMCommunicate request_size=4 [13:29:25]MH_SAM_APDU [13:29:25]CAPDU: 80 13 01 00 [13:29:25]Write to MH i2c: E2 08 00 D5 1A 80 13 01 00 00 00 00 00 6C [13:29:25]Write i2c OK [13:29:25]MH_I2C_Read... [13:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:25]Read from MH i2c: E2 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 0E 00 [13:29:25]MH_I2C_Read... [13:29:25]Read from MH i2c: E2 0E 00 D5 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6E [13:29:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:29:25]wFMCommunicate OK [13:29:25]SAM_PROTO_GetShiftState done [13:29:25]FM_GetShiftState done [13:29:25]req_shift_opened done [13:29:25]requested_item shift.open_date is exist - process it [13:29:25]req_shift_open_date [13:29:25]req_shift_open_date done [13:29:25]produce_requested_data done [13:29:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201973,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:29:25]process_action_free close_receipt [13:29:25]json_value_free [13:29:25]json_value_free done [13:29:25]process_json_proto returns [13:29:25]Send response to host [13:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201973,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:29:25]free response buf [13:29:25]execute_script done [13:29:25]execute_script returns [13:29:25]free content buf [13:29:25]Sock 8.Close socket [13:29:25]Sock 8.Thread stoped [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:41]accept exits with 9 [13:34:41]New connection [13:34:41]New thread 3066498404 created [13:34:41]Thread 3066641764 joined [13:34:41]Waiting for new connection... [13:34:41] Sock 9.Parse request [13:34:41]Sock 9.Check first char [13:34:41]Sock 9.First char is OK [13:34:41]request: POST /json_proto HTTP/1.0 [13:34:41]Method: POST [13:34:41]URL: /json_proto [13:34:41]Method is POST - this is cgi request [13:34:41]url: /json_proto [13:34:41]query_string will be loaded in cgi processing [13:34:41]execute_cgi json_proto POST (null) [13:34:41]execute_cgi path=json_proto method=POST [13:34:41]POST find Content-Length [13:34:41]Host: 172.17.63.195:8080 [13:34:41]Content-Length: 678 [13:34:41]Content-Type: application/json [13:34:41] [13:34:41]POST finish read [13:34:41]Found Content-Length = 678 [13:34:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:41]execute_script... [13:34: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)449739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:41]POST & json_proto [13:34:41]process_json_proto [13:34:41]json parsed OK: [13:34:41]protocol is kg_v1.0 [13:34:41]action value=close_receipt [13:34:41]process_action close_receipt [13:34:41]cmd_close_receipt [13:34:41]MH_GetDate [13:34:41]Write to MH i2c: F0 00 00 D6 1A DF [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: F0 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: F0 09 00 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: F0 09 00 D6 1A 00 71 41 1E 67 47 1B 1E 67 06 [13:34:41]GetLastDocTimeStamp 1730035762 [13:34:41]current date 1730036081 [13:34:41]FM_GetShiftState [13:34:41]SAM_PROTO_GetShiftState [13:34:41]wFMCommunicate request_size=4 [13:34:41]MH_SAM_APDU [13:34:41]CAPDU: 80 13 01 00 [13:34:41]Write to MH i2c: E2 08 00 D7 1A 80 13 01 00 00 00 00 00 6E [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:41]Read from MH i2c: E2 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: E2 0E 00 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: E2 0E 00 D7 1A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 70 [13:34:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:34:41]wFMCommunicate OK [13:34:41]SAM_PROTO_GetShiftState done [13:34:41]FM_GetShiftState done [13:34:41]opened in 1729987312 [13:34:41]opened+sec_in_day 1730073712 [13:34:41]quantity*price = 90047 [13:34:41]sum+1 = 90048 [13:34:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 266 27.10.2024 13:34 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201974 ФПД: 199666904413662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201974&fm=199666904413662&tin=02508201610067®Number=0000000000091777&sum=90000 [13:34:42]StoreToDocumentArchive [13:34:42]shift 544 fd 201974 [13:34:42]save to /storage/0544/doc_00201974 [13:34:42]save last doc name /storage/0544/doc_00201974 to /storage/kkm_last_doc_name [13:34:42]save OK [13:34:42]Clear old archive folders... [13:34:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:42]tlvbuf is 01199E50 [13:34:42]SAM_PROTO_ClearQueue [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 09 00 00 [13:34:42]Write to MH i2c: E2 08 00 E4 1A 80 09 00 00 00 00 00 00 70 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [13:34:42]RAPDU: 90 00 [13:34:42]wFMCommunicate OK [13:34:42]SAM_PROTO_ClearQueue done [13:34:42]KKMCreateOFDPacket [13:34:42]OFDProtocolAddRootSTLVToBuf [13:34:42]FM_MakeSignedData [13:34:42]FM_MakeSignedData [13:34:42]SAM_PROTO_SignData [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 0D 01 02 [13:34:42]Write to MH i2c: E2 08 00 E5 1A 80 0D 01 02 00 00 00 00 78 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [13:34:42]RAPDU: 90 00 [13:34:42]wFMCommunicate OK [13:34:42]wFMCommunicate request_size=255 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 71 41 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 14 03 00 35 04 06 00 B5 [13:34:42]Write to MH i2c: E2 02 01 E6 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 71 41 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 14 03 00 35 04 06 00 B5 00 00 4F [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [13:34:42]RAPDU: 90 00 [13:34:42]wFMCommunicate OK [13:34:42]wFMCommunicate request_size=10 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 0D 02 02 05 98 92 E9 35 DE [13:34:42]Write to MH i2c: E2 0D 00 E7 1A 80 0D 02 02 05 00 98 92 E9 35 DE 00 00 AB [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [13:34:42]RAPDU: 90 00 [13:34:42]wFMCommunicate OK [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 0D 03 02 [13:34:42]Write to MH i2c: E2 08 00 E8 1A 80 0D 03 02 00 00 00 00 7D [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 0B 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 0B 00 E8 1A 00 2B 62 37 C3 0F CA B6 B0 90 00 44 [13:34:42]RAPDU: 2B 62 37 C3 0F CA B6 B0 90 00 [13:34:42]wFMCommunicate OK [13:34:42]SAM_PROTO_SignData done [13:34:42]FM_MakeSignedData done [13:34:42]CreateOFDProtocolMessage [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 11 00 00 [13:34:42]Write to MH i2c: E2 08 00 E9 1A 80 11 00 00 00 00 00 00 7D [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 17 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 17 00 E9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D2 [13:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:34:42]wFMCommunicate OK [13:34:42]CreateOFDProtocolMessage done [13:34:42]OFDSenderStorePacket 201974 [13:34:42]StoreOFDPacket docnum=201974 [13:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 63 33 07 01 CD EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 71 41 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 14 03 00 35 04 06 00 B5 98 92 E9 35 DE 2B 62 37 C3 0F CA B6 B0 [13:34:42]CheckFolder [13:34:42]dirname=/storage/ofd_packets [13:34:42]CheckFolder done [13:34:42]ProducePacketName [13:34:42]name=ofd_packets/00201974 [13:34:42]NVStorageSaveData ofd_packets/00201974 [13:34:42]File name is /storage/ofd_packets/00201974 [13:34:42]Write 301 bytes [13:34:42]NVStorageSaveData done [13:34:42]OFDSenderStorePacket done [13:34:42]KKMCreateOFDPacket done [13:34:42]NVStorageSaveData kkm_last_timestamp [13:34:42]File name is /storage/kkm_last_timestamp [13:34:42]Write 4 bytes [13:34:42]NVStorageSaveData done [13:34:42]ExternCall_PrintAddStr [13:34:42]wPrintStart [13:34:42]Write to MH i2c: 01 00 00 EA 1A 04 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: 01 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: 01 07 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: 01 07 00 EA 1A 00 00 00 00 00 FF 0F 19 [13:34:42]RasterBufferAndPrint [13:34:42]line Счет N : (1)449739 [13:34:42]line ИНН: 02508201610067 [13:34:42]line Контрольно-Кассовый Чек [13:34:42]line ПРОДАЖА [13:34:42]line ТРК (МРК, ГНК) : 41 [13:34:42]line Товар: 2710124130 [13:34:42]line Аи-92-К-2 [13:34:42]line 13.460 * 66.90 [13:34:42]line = 900.47 [13:34:42]line НДС 12% НСП 1% [13:34:42]line > о реализуемом товаре [13:34:42]line ОКРУГЛЕНИЕ: -0.47 [13:34:42]line ИТОГО: 900.00 [13:34:42]line Внесено: 900.00 [13:34:42]line СДАЧА: 0.00 [13:34:42]line НСП 1% : 7.97 [13:34:42]line НДС 12% : 95.62 [13:34:42]line Наличными: 900.00 [13:34:42]line Безнал.: 0.00 [13:34:42]line Место: АЗС № 171 "Партнер Нефть" [13:34:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:34:42]line СНО: Общий режим [13:34:42]line Чек 266 27.10.2024 13:34 [13:34:42]line Смена: 544 ФФД: 1.0 [13:34:42]line ЗНМ: 0300000109 [13:34:42]line РНМ: 0000000000091777 [13:34:42]line Версия ККМ: 001 [13:34:42]line ФМ: 0000000000871756 [13:34:43]line ФД: 201974 [13:34:43]line ФПД: 199666904413662 [13:34:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201974&fm=199666904413662&tin=02508201610067®Number=0000000000091777&sum=90000 [13:34:43]OFD Sender: Processing packet 201974 [packets to send 112, broken 111] [13:34:43]ProducePacketName [13:34:43]name=ofd_packets/00201974 [13:34:43]OFD Sender: To server: pG, [13:34:43]CommunicateWithHost lk.salyk.kg:30040 [13:34:43]ConnectInit lk.salyk.kg [13:34:43]written 0, free lines is 4095 [13:34:43]Connected sock=10 [13:34:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 63 33 07 01 CD EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 71 41 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 14 03 00 35 04 06 00 B5 98 92 E9 35 DE 2B 62 37 C3 0F CA B6 B0 [13:34:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 63 CC 47 00 26 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 14 03 00 F4 03 04 00 2B ED 1D 67 B6 04 01 00 00 A9 2E 35 70 C5 FA 6E F2 [13:34:43]CommunicateWithHost err = 0 [13:34:43]CheckOFDResponse [13:34:43]1017 (14) - 77093643461234 [13:34:43]1041 (16) - 0000000000871756 [13:34:43]1040 (4) - 201974 [13:34:43]1012 (4) - 27.10.2024 07:35 [13:34:43]1206 (1) - 0 [13:34:43]OFD Sender: Remove packet 201974 [13:34:43]ProducePacketName [13:34:43]name=ofd_packets/00201974 [13:34:43]NVStorageDeleteData [13:34:43]Write to MH i2c: 01 00 00 15 1B 30 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 07 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 07 00 15 1B 00 00 00 00 00 AC 0C EF [13:34:43]RasterBufferAndPrint [13:34:43]line [13:34:43]line [13:34:43]line [13:34:43]line [13:34:43]line [13:34:43]written 0, free lines is 3249 [13:34:43]MH_Cut [13:34:43]Write to MH i2c: D1 01 00 1C 1B 01 09 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: D1 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: D1 01 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: D1 01 00 1C 1B 00 08 [13:34:43]Write to MH i2c: 01 00 00 1D 1B 38 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]OFD Sender: No OFD packet to send [13:34:44]*** Cut start [13:34:44]*** Purtial cut [13:34:44]*** CUTSNS_PIN = 0 [13:34:44]*** Stage 1: CUTSNS_PIN = 1 [13:34:46]Read from MH i2c: 01 [13:34:46]MH_I2C_Read... [13:34:46]*** Stop cut motor [13:34:46]*** Cut end [13:34:46]Read from MH i2c: 01 07 00 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 FF 0F 4D [13:34:46]process_action close_receipt done [13:34:46]requested_data is exist [13:34:46]produce_requested_data [13:34:46]requested_item fm.sn is exist - process it [13:34:46]wFMCommunicate request_size=4 [13:34:46]MH_SAM_APDU [13:34:46]CAPDU: 80 11 00 00 [13:34:46]Write to MH i2c: E2 08 00 1E 1B 80 11 00 00 00 00 00 00 B3 [13:34:46]Write i2c OK [13:34:46]MH_I2C_Read... [13:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:46]Read from MH i2c: E2 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 17 00 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 17 00 1E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 08 [13:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:34:46]wFMCommunicate OK [13:34:46]requested_item fd.num is exist - process it [13:34:46]SAM_PROTO_GetFieldsCounters [13:34:46]wFMCommunicate request_size=4 [13:34:46]MH_SAM_APDU [13:34:46]CAPDU: 80 13 00 00 [13:34:46]Write to MH i2c: E2 08 00 1F 1B 80 13 00 00 00 00 00 00 B6 [13:34:46]Write i2c OK [13:34:46]MH_I2C_Read... [13:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:46]Read from MH i2c: E2 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 62 00 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 62 00 1F 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [13:34:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F6 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:46]wFMCommunicate OK [13:34:46]SAM_PROTO_GetFieldsCounters done [13:34:46]requested_item shift.num is exist - process it [13:34:46]requested_item shift.opened is exist - process it [13:34:46]req_shift_opened [13:34:46]FM_GetShiftState [13:34:46]SAM_PROTO_GetShiftState [13:34:46]wFMCommunicate request_size=4 [13:34:46]MH_SAM_APDU [13:34:46]CAPDU: 80 13 01 00 [13:34:46]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [13:34:46]Write i2c OK [13:34:46]MH_I2C_Read... [13:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:46]Read from MH i2c: E2 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 0E 00 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BA [13:34:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:34:46]wFMCommunicate OK [13:34:46]SAM_PROTO_GetShiftState done [13:34:46]FM_GetShiftState done [13:34:46]req_shift_opened done [13:34:46]requested_item shift.open_date is exist - process it [13:34:46]req_shift_open_date [13:34:46]req_shift_open_date done [13:34:46]produce_requested_data done [13:34:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201974,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:34:46]process_action_free close_receipt [13:34:46]json_value_free [13:34:46]json_value_free done [13:34:46]process_json_proto returns [13:34:46]Send response to host [13:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201974,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:34:46]free response buf [13:34:46]execute_script done [13:34:46]execute_script returns [13:34:46]free content buf [13:34:46]Sock 9.Close socket [13:34:46]Sock 9.Thread stoped [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]accept exits with 8 [13:35:58]New connection [13:35:58]New thread 3066641764 created [13:35:58]Thread 3066498404 joined [13:35:58]Waiting for new connection... [13:35:58] Sock 8.Parse request [13:35:58]Sock 8.Check first char [13:35:58]Sock 8.First char is OK [13:35:58]request: POST /json_proto HTTP/1.0 [13:35:58]Method: POST [13:35:58]URL: /json_proto [13:35:58]Method is POST - this is cgi request [13:35:58]url: /json_proto [13:35:58]query_string will be loaded in cgi processing [13:35:58]execute_cgi json_proto POST (null) [13:35:58]execute_cgi path=json_proto method=POST [13:35:58]POST find Content-Length [13:35:58]Host: 172.17.63.195:8080 [13:35:58]Content-Length: 679 [13:35:58]Content-Type: application/json [13:35:58] [13:35:58]POST finish read [13:35:58]Found Content-Length = 679 [13:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:35:58]execute_script... [13:35: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)449740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:35:58]POST & json_proto [13:35:58]process_json_proto [13:35:58]json parsed OK: [13:35:58]protocol is kg_v1.0 [13:35:58]action value=close_receipt [13:35:58]process_action close_receipt [13:35:58]cmd_close_receipt [13:35:58]MH_GetDate [13:35:58]Write to MH i2c: F0 00 00 21 1B 2B [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: F0 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: F0 09 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: F0 09 00 21 1B 00 BF 41 1E 67 47 1B 1E 67 A0 [13:35:58]GetLastDocTimeStamp 1730036081 [13:35:58]current date 1730036159 [13:35:58]FM_GetShiftState [13:35:58]SAM_PROTO_GetShiftState [13:35:58]wFMCommunicate request_size=4 [13:35:58]MH_SAM_APDU [13:35:58]CAPDU: 80 13 01 00 [13:35:58]Write to MH i2c: E2 08 00 22 1B 80 13 01 00 00 00 00 00 BA [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:59]OFD Sender: No OFD packet to send [13:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:59]Read from MH i2c: E2 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 0E 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 0E 00 22 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BC [13:35:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:35:59]wFMCommunicate OK [13:35:59]SAM_PROTO_GetShiftState done [13:35:59]FM_GetShiftState done [13:35:59]opened in 1729987312 [13:35:59]opened+sec_in_day 1730073712 [13:35:59]quantity*price = 100050 [13:35:59]sum+1 = 100052 [13:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 267 27.10.2024 13:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201975 ФПД: 63043943488877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133559&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201975&fm=63043943488877&tin=02508201610067®Number=0000000000091777&sum=100000 [13:36:00]StoreToDocumentArchive [13:36:00]shift 544 fd 201975 [13:36:00]save to /storage/0544/doc_00201975 [13:36:00]save last doc name /storage/0544/doc_00201975 to /storage/kkm_last_doc_name [13:36:00]save OK [13:36:00]Clear old archive folders... [13:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:36:00]tlvbuf is 01208CE0 [13:36:00]SAM_PROTO_ClearQueue [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 09 00 00 [13:36:00]Write to MH i2c: E2 08 00 2F 1B 80 09 00 00 00 00 00 00 BC [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]SAM_PROTO_ClearQueue done [13:36:00]KKMCreateOFDPacket [13:36:00]OFDProtocolAddRootSTLVToBuf [13:36:00]FM_MakeSignedData [13:36:00]FM_MakeSignedData [13:36:00]SAM_PROTO_SignData [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 01 02 [13:36:00]Write to MH i2c: E2 08 00 30 1B 80 0D 01 02 00 00 00 00 C4 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]wFMCommunicate request_size=255 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 0B 01 00 00 F4 03 04 00 BF 41 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 14 03 00 35 04 06 00 39 56 8F DB [13:36:00]Write to MH i2c: E2 02 01 31 1B 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 32 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 0B 01 00 00 F4 03 04 00 BF 41 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 14 03 00 35 04 06 00 39 56 8F DB 00 00 08 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]wFMCommunicate request_size=7 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 02 02 02 5D 6D [13:36:00]Write to MH i2c: E2 0A 00 32 1B 80 0D 02 02 02 00 5D 6D 00 00 95 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 03 02 [13:36:00]Write to MH i2c: E2 08 00 33 1B 80 0D 03 02 00 00 00 00 C9 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 0B 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 0B 00 33 1B 00 35 CF B5 0D 97 5E 86 26 90 00 31 [13:36:00]RAPDU: 35 CF B5 0D 97 5E 86 26 90 00 [13:36:00]wFMCommunicate OK [13:36:00]SAM_PROTO_SignData done [13:36:00]FM_MakeSignedData done [13:36:00]CreateOFDProtocolMessage [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 11 00 00 [13:36:00]Write to MH i2c: E2 08 00 34 1B 80 11 00 00 00 00 00 00 C9 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 17 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 17 00 34 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1E [13:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:36:00]wFMCommunicate OK [13:36:00]CreateOFDProtocolMessage done [13:36:00]OFDSenderStorePacket 201975 [13:36:00]StoreOFDPacket docnum=201975 [13:36:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 96 B1 04 01 17 74 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 32 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 0B 01 00 00 F4 03 04 00 BF 41 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 14 03 00 35 04 06 00 39 56 8F DB 5D 6D 35 CF B5 0D 97 5E 86 26 [13:36:00]CheckFolder [13:36:00]dirname=/storage/ofd_packets [13:36:00]CheckFolder done [13:36:00]ProducePacketName [13:36:00]name=ofd_packets/00201975 [13:36:00]NVStorageSaveData ofd_packets/00201975 [13:36:00]File name is /storage/ofd_packets/00201975 [13:36:00]Write 298 bytes [13:36:00]NVStorageSaveData done [13:36:00]OFDSenderStorePacket done [13:36:00]KKMCreateOFDPacket done [13:36:00]NVStorageSaveData kkm_last_timestamp [13:36:00]File name is /storage/kkm_last_timestamp [13:36:00]Write 4 bytes [13:36:00]NVStorageSaveData done [13:36:00]ExternCall_PrintAddStr [13:36:00]wPrintStart [13:36:00]Write to MH i2c: 01 00 00 35 1B 50 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: 01 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: 01 07 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 FF 0F 65 [13:36:00]RasterBufferAndPrint [13:36:00]line Счет N : (1)449740 [13:36:00]line ИНН: 02508201610067 [13:36:00]line Контрольно-Кассовый Чек [13:36:00]line ПРОДАЖА [13:36:00]line ТРК (МРК, ГНК) : 11 [13:36:00]line Товар: 2710194210 [13:36:00]line ДТ-К-2 [13:36:00]line 13.130 * 76.20 [13:36:00]line = 1000.51 [13:36:00]line НДС 12% НСП 1% [13:36:00]line > о реализуемом товаре [13:36:00]line ОКРУГЛЕНИЕ: -0.51 [13:36:00]line ИТОГО: 1000.00 [13:36:00]line Внесено: 1000.00 [13:36:00]line СДАЧА: 0.00 [13:36:00]line НСП 1% : 8.85 [13:36:00]line НДС 12% : 106.25 [13:36:00]line Наличными: 1000.00 [13:36:00]line Безнал.: 0.00 [13:36:00]line Место: АЗС № 171 "Партнер Нефть" [13:36:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:36:00]line СНО: Общий режим [13:36:00]line Чек 267 27.10.2024 13:35 [13:36:00]line Смена: 544 ФФД: 1.0 [13:36:00]line ЗНМ: 0300000109 [13:36:00]line РНМ: 0000000000091777 [13:36:00]line Версия ККМ: 001 [13:36:00]line ФМ: 0000000000871756 [13:36:00]line ФД: 201975 [13:36:00]line ФПД: 63043943488877 [13:36:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T133559&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201975&fm=63043943488877&tin=02508201610067®Number=0000000000091777&sum=100000 [13:36:01]written 0, free lines is 4095 [13:36:01]OFD Sender: Processing packet 201975 [packets to send 112, broken 111] [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00201975 [13:36:01]OFD Sender: To server: pG, [13:36:01]CommunicateWithHost lk.salyk.kg:30040 [13:36:01]ConnectInit lk.salyk.kg [13:36:01]Connected sock=10 [13:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 96 B1 04 01 17 74 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 32 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 0B 01 00 00 F4 03 04 00 BF 41 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 14 03 00 35 04 06 00 39 56 8F DB 5D 6D 35 CF B5 0D 97 5E 86 26 [13:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EA 0B 47 00 1C EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 14 03 00 F4 03 04 00 79 ED 1D 67 B6 04 01 00 00 AE 0D F1 C0 07 C4 4D 84 [13:36:01]CommunicateWithHost err = 0 [13:36:01]CheckOFDResponse [13:36:01]1017 (14) - 77093643461234 [13:36:01]1041 (16) - 0000000000871756 [13:36:01]1040 (4) - 201975 [13:36:01]1012 (4) - 27.10.2024 07:36 [13:36:01]1206 (1) - 0 [13:36:01]OFD Sender: Remove packet 201975 [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00201975 [13:36:01]NVStorageDeleteData [13:36:01]Write to MH i2c: 01 00 00 60 1B 7B [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 60 1B 00 00 00 00 00 8F 0C 1D [13:36:01]RasterBufferAndPrint [13:36:01]line [13:36:01]line [13:36:01]line [13:36:01]line [13:36:01]line [13:36:01]written 0, free lines is 3219 [13:36:01]MH_Cut [13:36:01]Write to MH i2c: D1 01 00 67 1B 01 54 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: D1 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: D1 01 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: D1 01 00 67 1B 00 53 [13:36:01]Write to MH i2c: 01 00 00 68 1B 83 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]OFD Sender: No OFD packet to send [13:36:02]*** Cut start [13:36:02]*** Purtial cut [13:36:02]*** Stage 1: CUTSNS_PIN = 1 [13:36:02]Read from MH i2c: 01 [13:36:02]MH_I2C_Read... [13:36:02]*** Stop cut motor [13:36:02]*** Cut end [13:36:02]Read from MH i2c: 01 07 00 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: 01 07 00 68 1B 00 00 00 00 00 FF 0F 98 [13:36:02]process_action close_receipt done [13:36:02]requested_data is exist [13:36:02]produce_requested_data [13:36:02]requested_item fm.sn is exist - process it [13:36:02]wFMCommunicate request_size=4 [13:36:02]MH_SAM_APDU [13:36:02]CAPDU: 80 11 00 00 [13:36:02]Write to MH i2c: E2 08 00 69 1B 80 11 00 00 00 00 00 00 FE [13:36:02]Write i2c OK [13:36:02]MH_I2C_Read... [13:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:02]Read from MH i2c: E2 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: E2 17 00 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: E2 17 00 69 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 53 [13:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:36:02]wFMCommunicate OK [13:36:02]requested_item fd.num is exist - process it [13:36:02]SAM_PROTO_GetFieldsCounters [13:36:02]wFMCommunicate request_size=4 [13:36:02]MH_SAM_APDU [13:36:02]CAPDU: 80 13 00 00 [13:36:02]Write to MH i2c: E2 08 00 6A 1B 80 13 00 00 00 00 00 00 01 [13:36:02]Write i2c OK [13:36:02]MH_I2C_Read... [13:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:02]Read from MH i2c: E2 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: E2 62 00 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: E2 62 00 6A 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [13:36:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F7 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:02]wFMCommunicate OK [13:36:02]SAM_PROTO_GetFieldsCounters done [13:36:02]requested_item shift.num is exist - process it [13:36:02]requested_item shift.opened is exist - process it [13:36:02]req_shift_opened [13:36:02]FM_GetShiftState [13:36:02]SAM_PROTO_GetShiftState [13:36:02]wFMCommunicate request_size=4 [13:36:02]MH_SAM_APDU [13:36:02]CAPDU: 80 13 01 00 [13:36:02]Write to MH i2c: E2 08 00 6B 1B 80 13 01 00 00 00 00 00 03 [13:36:02]Write i2c OK [13:36:02]MH_I2C_Read... [13:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:02]Read from MH i2c: E2 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: E2 0E 00 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: E2 0E 00 6B 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 05 [13:36:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:36:02]wFMCommunicate OK [13:36:02]SAM_PROTO_GetShiftState done [13:36:02]FM_GetShiftState done [13:36:02]req_shift_opened done [13:36:02]requested_item shift.open_date is exist - process it [13:36:02]req_shift_open_date [13:36:02]req_shift_open_date done [13:36:02]produce_requested_data done [13:36:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201975,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:36:02]process_action_free close_receipt [13:36:02]json_value_free [13:36:02]json_value_free done [13:36:02]process_json_proto returns [13:36:02]Send response to host [13:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201975,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:36:02]free response buf [13:36:02]execute_script done [13:36:02]execute_script returns [13:36:02]free content buf [13:36:02]Sock 8.Close socket [13:36:02]Sock 8.Thread stoped [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:18]accept exits with 9 [13:41:18]New connection [13:41:18]New thread 3066498404 created [13:41:18]Thread 3066641764 joined [13:41:18]Waiting for new connection... [13:41:18] Sock 9.Parse request [13:41:18]Sock 9.Check first char [13:41:18]Sock 9.First char is OK [13:41:18]request: POST /json_proto HTTP/1.0 [13:41:18]Method: POST [13:41:18]URL: /json_proto [13:41:18]Method is POST - this is cgi request [13:41:18]url: /json_proto [13:41:18]query_string will be loaded in cgi processing [13:41:18]execute_cgi json_proto POST (null) [13:41:18]execute_cgi path=json_proto method=POST [13:41:18]POST find Content-Length [13:41:18]Host: 172.17.63.195:8080 [13:41:18]Content-Length: 674 [13:41:18]Content-Type: application/json [13:41:18] [13:41:18]POST finish read [13:41:18]Found Content-Length = 674 [13:41:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:18]execute_script... [13:41: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)449741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:18]POST & json_proto [13:41:18]process_json_proto [13:41:18]json parsed OK: [13:41:18]protocol is kg_v1.0 [13:41:18]action value=close_receipt [13:41:18]process_action close_receipt [13:41:18]cmd_close_receipt [13:41:18]MH_GetDate [13:41:18]Write to MH i2c: F0 00 00 6C 1B 76 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: F0 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: F0 09 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: F0 09 00 6C 1B 00 FF 42 1E 67 47 1B 1E 67 2C [13:41:18]GetLastDocTimeStamp 1730036159 [13:41:18]current date 1730036479 [13:41:18]FM_GetShiftState [13:41:18]SAM_PROTO_GetShiftState [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 13 01 00 [13:41:18]Write to MH i2c: E2 08 00 6D 1B 80 13 01 00 00 00 00 00 05 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 0E 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 0E 00 6D 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 07 [13:41:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:41:18]wFMCommunicate OK [13:41:18]SAM_PROTO_GetShiftState done [13:41:18]FM_GetShiftState done [13:41:18]opened in 1729987312 [13:41:18]opened+sec_in_day 1730073712 [13:41:18]quantity*price = 50063 [13:41:18]sum+1 = 50064 [13:41:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 268 27.10.2024 13:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201976 ФПД: 237319405810604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134119&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201976&fm=237319405810604&tin=02508201610067®Number=0000000000091777&sum=50000 [13:41:19]StoreToDocumentArchive [13:41:19]shift 544 fd 201976 [13:41:19]save to /storage/0544/doc_00201976 [13:41:19]save last doc name /storage/0544/doc_00201976 to /storage/kkm_last_doc_name [13:41:19]save OK [13:41:19]Clear old archive folders... [13:41:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:19]tlvbuf is 011CA7F0 [13:41:19]SAM_PROTO_ClearQueue [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 09 00 00 [13:41:19]Write to MH i2c: E2 08 00 7A 1B 80 09 00 00 00 00 00 00 07 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 03 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [13:41:19]RAPDU: 90 00 [13:41:19]wFMCommunicate OK [13:41:19]SAM_PROTO_ClearQueue done [13:41:19]KKMCreateOFDPacket [13:41:19]OFDProtocolAddRootSTLVToBuf [13:41:19]FM_MakeSignedData [13:41:19]FM_MakeSignedData [13:41:19]SAM_PROTO_SignData [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 0D 01 02 [13:41:19]Write to MH i2c: E2 08 00 7B 1B 80 0D 01 02 00 00 00 00 0F [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 03 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [13:41:19]RAPDU: 90 00 [13:41:19]wFMCommunicate OK [13:41:19]wFMCommunicate request_size=255 [13:41:19]MH_SAM_APDU [13:41: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 FF 42 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 14 03 00 35 04 06 00 D7 D7 3A E1 [13:41:19]Write to MH i2c: E2 02 01 7C 1B 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 FF 42 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 14 03 00 35 04 06 00 D7 D7 3A E1 00 00 EE [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:20]Read from MH i2c: E2 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 03 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [13:41:20]RAPDU: 90 00 [13:41:20]wFMCommunicate OK [13:41:20]wFMCommunicate request_size=7 [13:41:20]MH_SAM_APDU [13:41:20]CAPDU: 80 0D 02 02 02 B3 AC [13:41:20]Write to MH i2c: E2 0A 00 7D 1B 80 0D 02 02 02 00 B3 AC 00 00 75 [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:20]Read from MH i2c: E2 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 03 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [13:41:20]RAPDU: 90 00 [13:41:20]wFMCommunicate OK [13:41:20]wFMCommunicate request_size=4 [13:41:20]MH_SAM_APDU [13:41:20]CAPDU: 80 0D 03 02 [13:41:20]Write to MH i2c: E2 08 00 7E 1B 80 0D 03 02 00 00 00 00 14 [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:20]Read from MH i2c: E2 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 0B 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 0B 00 7E 1B 00 C9 EC 12 9A 62 46 C7 EB 90 00 D0 [13:41:20]RAPDU: C9 EC 12 9A 62 46 C7 EB 90 00 [13:41:20]wFMCommunicate OK [13:41:20]SAM_PROTO_SignData done [13:41:20]FM_MakeSignedData done [13:41:20]CreateOFDProtocolMessage [13:41:20]wFMCommunicate request_size=4 [13:41:20]MH_SAM_APDU [13:41:20]CAPDU: 80 11 00 00 [13:41:20]Write to MH i2c: E2 08 00 7F 1B 80 11 00 00 00 00 00 00 14 [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:20]Read from MH i2c: E2 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 17 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: E2 17 00 7F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 69 [13:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:41:20]wFMCommunicate OK [13:41:20]CreateOFDProtocolMessage done [13:41:20]OFDSenderStorePacket 201976 [13:41:20]StoreOFDPacket docnum=201976 [13:41:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 1C 32 04 01 73 6D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 FF 42 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 14 03 00 35 04 06 00 D7 D7 3A E1 B3 AC C9 EC 12 9A 62 46 C7 EB [13:41:20]CheckFolder [13:41:20]dirname=/storage/ofd_packets [13:41:20]CheckFolder done [13:41:20]ProducePacketName [13:41:20]name=ofd_packets/00201976 [13:41:20]NVStorageSaveData ofd_packets/00201976 [13:41:20]File name is /storage/ofd_packets/00201976 [13:41:20]Write 298 bytes [13:41:20]NVStorageSaveData done [13:41:20]OFDSenderStorePacket done [13:41:20]KKMCreateOFDPacket done [13:41:20]NVStorageSaveData kkm_last_timestamp [13:41:20]File name is /storage/kkm_last_timestamp [13:41:20]Write 4 bytes [13:41:20]NVStorageSaveData done [13:41:20]ExternCall_PrintAddStr [13:41:20]wPrintStart [13:41:20]Write to MH i2c: 01 00 00 80 1B 9B [13:41:20]Write i2c OK [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: 01 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: 01 07 00 [13:41:20]MH_I2C_Read... [13:41:20]Read from MH i2c: 01 07 00 80 1B 00 00 00 00 00 FF 0F B0 [13:41:20]RasterBufferAndPrint [13:41:20]line Счет N : (1)449741 [13:41:20]line ИНН: 02508201610067 [13:41:20]line Контрольно-Кассовый Чек [13:41:20]line ПРОДАЖА [13:41:20]line ТРК (МРК, ГНК) : 43 [13:41:20]line Товар: 2710194210 [13:41:20]line ДТ-К-2 [13:41:20]line 6.570 * 76.20 [13:41:20]line = 500.63 [13:41:20]line НДС 12% НСП 1% [13:41:20]line > о реализуемом товаре [13:41:20]line ОКРУГЛЕНИЕ: -0.63 [13:41:20]line ИТОГО: 500.00 [13:41:20]line Внесено: 500.00 [13:41:20]line СДАЧА: 0.00 [13:41:20]line НСП 1% : 4.43 [13:41:20]line НДС 12% : 53.16 [13:41:20]line Наличными: 500.00 [13:41:20]line Безнал.: 0.00 [13:41:20]line Место: АЗС № 171 "Партнер Нефть" [13:41:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:41:20]line СНО: Общий режим [13:41:20]line Чек 268 27.10.2024 13:41 [13:41:20]line Смена: 544 ФФД: 1.0 [13:41:20]line ЗНМ: 0300000109 [13:41:20]line РНМ: 0000000000091777 [13:41:20]line Версия ККМ: 001 [13:41:20]line ФМ: 0000000000871756 [13:41:20]line ФД: 201976 [13:41:20]line ФПД: 237319405810604 [13:41:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134119&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201976&fm=237319405810604&tin=02508201610067®Number=0000000000091777&sum=50000 [13:41:20]OFD Sender: Processing packet 201976 [packets to send 112, broken 111] [13:41:20]ProducePacketName [13:41:20]name=ofd_packets/00201976 [13:41:20]OFD Sender: To server: pG, [13:41:20]CommunicateWithHost lk.salyk.kg:30040 [13:41:20]ConnectInit lk.salyk.kg [13:41:20]written 0, free lines is 4095 [13:41:20]Connected sock=10 [13:41:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 1C 32 04 01 73 6D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 FF 42 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 14 03 00 35 04 06 00 D7 D7 3A E1 B3 AC C9 EC 12 9A 62 46 C7 EB [13:41:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D7 90 47 00 71 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 14 03 00 F4 03 04 00 B9 EE 1D 67 B6 04 01 00 00 22 D9 A5 04 75 6D 73 77 [13:41:20]CommunicateWithHost err = 0 [13:41:20]CheckOFDResponse [13:41:20]1017 (14) - 77093643461234 [13:41:20]1041 (16) - 0000000000871756 [13:41:20]1040 (4) - 201976 [13:41:20]1012 (4) - 27.10.2024 07:41 [13:41:20]1206 (1) - 0 [13:41:20]OFD Sender: Remove packet 201976 [13:41:20]ProducePacketName [13:41:20]name=ofd_packets/00201976 [13:41:20]NVStorageDeleteData [13:41:21]Write to MH i2c: 01 00 00 AB 1B C6 [13:41:21]Write i2c OK [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: 01 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: 01 07 00 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: 01 07 00 AB 1B 00 00 00 00 00 94 0C 6D [13:41:21]RasterBufferAndPrint [13:41:21]line [13:41:21]line [13:41:21]line [13:41:21]line [13:41:21]line [13:41:21]written 0, free lines is 3224 [13:41:21]MH_Cut [13:41:21]Write to MH i2c: D1 01 00 B2 1B 01 9F [13:41:21]Write i2c OK [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: D1 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: D1 01 00 [13:41:21]MH_I2C_Read... [13:41:21]Read from MH i2c: D1 01 00 B2 1B 00 9E [13:41:21]Write to MH i2c: 01 00 00 B3 1B CE [13:41:21]Write i2c OK [13:41:21]MH_I2C_Read... [13:41:21]OFD Sender: No OFD packet to send [13:41:21]*** Cut start [13:41:21]*** Purtial cut [13:41:21]*** Stage 1: CUTSNS_PIN = 1 [13:41:22]Read from MH i2c: 01 [13:41:22]MH_I2C_Read... [13:41:22]*** Stop cut motor [13:41:22]*** Cut end [13:41:22]Read from MH i2c: 01 07 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: 01 07 00 B3 1B 00 00 00 00 00 FF 0F E3 [13:41:22]process_action close_receipt done [13:41:22]requested_data is exist [13:41:22]produce_requested_data [13:41:22]requested_item fm.sn is exist - process it [13:41:22]wFMCommunicate request_size=4 [13:41:22]MH_SAM_APDU [13:41:22]CAPDU: 80 11 00 00 [13:41:22]Write to MH i2c: E2 08 00 B4 1B 80 11 00 00 00 00 00 00 49 [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:22]Read from MH i2c: E2 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 17 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 17 00 B4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9E [13:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:41:22]wFMCommunicate OK [13:41:22]requested_item fd.num is exist - process it [13:41:22]SAM_PROTO_GetFieldsCounters [13:41:22]wFMCommunicate request_size=4 [13:41:22]MH_SAM_APDU [13:41:22]CAPDU: 80 13 00 00 [13:41:22]Write to MH i2c: E2 08 00 B5 1B 80 13 00 00 00 00 00 00 4C [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:22]Read from MH i2c: E2 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 62 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 62 00 B5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [13:41:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F8 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:22]wFMCommunicate OK [13:41:22]SAM_PROTO_GetFieldsCounters done [13:41:22]requested_item shift.num is exist - process it [13:41:22]requested_item shift.opened is exist - process it [13:41:22]req_shift_opened [13:41:22]FM_GetShiftState [13:41:22]SAM_PROTO_GetShiftState [13:41:22]wFMCommunicate request_size=4 [13:41:22]MH_SAM_APDU [13:41:22]CAPDU: 80 13 01 00 [13:41:22]Write to MH i2c: E2 08 00 B6 1B 80 13 01 00 00 00 00 00 4E [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:22]Read from MH i2c: E2 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 0E 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 0E 00 B6 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 50 [13:41:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:41:22]wFMCommunicate OK [13:41:22]SAM_PROTO_GetShiftState done [13:41:22]FM_GetShiftState done [13:41:22]req_shift_opened done [13:41:22]requested_item shift.open_date is exist - process it [13:41:22]req_shift_open_date [13:41:22]req_shift_open_date done [13:41:22]produce_requested_data done [13:41:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201976,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:41:22]process_action_free close_receipt [13:41:22]json_value_free [13:41:22]json_value_free done [13:41:22]process_json_proto returns [13:41:22]Send response to host [13:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201976,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:41:22]free response buf [13:41:22]execute_script done [13:41:22]execute_script returns [13:41:22]free content buf [13:41:22]Sock 9.Close socket [13:41:22]Sock 9.Thread stoped [13:41:22]accept exits with 8 [13:41:22]New connection [13:41:22]New thread 3066641764 created [13:41:22]Thread 3066498404 joined [13:41:22]Waiting for new connection... [13:41:22] Sock 8.Parse request [13:41:22]Sock 8.Check first char [13:41:22]Sock 8.First char is OK [13:41:22]request: POST /json_proto HTTP/1.0 [13:41:22]Method: POST [13:41:22]URL: /json_proto [13:41:22]Method is POST - this is cgi request [13:41:22]url: /json_proto [13:41:22]query_string will be loaded in cgi processing [13:41:22]execute_cgi json_proto POST (null) [13:41:22]execute_cgi path=json_proto method=POST [13:41:22]POST find Content-Length [13:41:22]Host: 172.17.63.195:8080 [13:41:22]Content-Length: 679 [13:41:22]Content-Type: application/json [13:41:22] [13:41:22]POST finish read [13:41:22]Found Content-Length = 679 [13:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:41:22]execute_script... [13:41: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)449742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:41:22]POST & json_proto [13:41:22]process_json_proto [13:41:22]json parsed OK: [13:41:22]protocol is kg_v1.0 [13:41:22]action value=close_receipt [13:41:22]process_action close_receipt [13:41:22]cmd_close_receipt [13:41:22]MH_GetDate [13:41:22]Write to MH i2c: F0 00 00 B7 1B C1 [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: F0 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: F0 09 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: F0 09 00 B7 1B 00 03 43 1E 67 47 1B 1E 67 7C [13:41:22]GetLastDocTimeStamp 1730036479 [13:41:22]current date 1730036483 [13:41:22]FM_GetShiftState [13:41:22]SAM_PROTO_GetShiftState [13:41:22]wFMCommunicate request_size=4 [13:41:22]MH_SAM_APDU [13:41:22]CAPDU: 80 13 01 00 [13:41:22]Write to MH i2c: E2 08 00 B8 1B 80 13 01 00 00 00 00 00 50 [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:22]Read from MH i2c: E2 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 0E 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: E2 0E 00 B8 1B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 52 [13:41:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:41:22]wFMCommunicate OK [13:41:22]SAM_PROTO_GetShiftState done [13:41:22]FM_GetShiftState done [13:41:22]opened in 1729987312 [13:41:22]opened+sec_in_day 1730073712 [13:41:22]quantity*price = 100050 [13:41:22]sum+1 = 100052 [13:41:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 269 27.10.2024 13:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201977 ФПД: 151495114454536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134123&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201977&fm=151495114454536&tin=02508201610067®Number=0000000000091777&sum=100000 [13:41:24]StoreToDocumentArchive [13:41:24]shift 544 fd 201977 [13:41:24]save to /storage/0544/doc_00201977 [13:41:24]save last doc name /storage/0544/doc_00201977 to /storage/kkm_last_doc_name [13:41:24]save OK [13:41:24]Clear old archive folders... [13:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:24]tlvbuf is 011D1600 [13:41:24]SAM_PROTO_ClearQueue [13:41:24]wFMCommunicate request_size=4 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 09 00 00 [13:41:24]Write to MH i2c: E2 08 00 C5 1B 80 09 00 00 00 00 00 00 52 [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [13:41:24]RAPDU: 90 00 [13:41:24]wFMCommunicate OK [13:41:24]SAM_PROTO_ClearQueue done [13:41:24]KKMCreateOFDPacket [13:41:24]OFDProtocolAddRootSTLVToBuf [13:41:24]FM_MakeSignedData [13:41:24]FM_MakeSignedData [13:41:24]SAM_PROTO_SignData [13:41:24]wFMCommunicate request_size=4 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 0D 01 02 [13:41:24]Write to MH i2c: E2 08 00 C6 1B 80 0D 01 02 00 00 00 00 5A [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [13:41:24]RAPDU: 90 00 [13:41:24]wFMCommunicate OK [13:41:24]wFMCommunicate request_size=255 [13:41:24]MH_SAM_APDU [13:41:24]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 32 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 0D 01 00 00 F4 03 04 00 03 43 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 14 03 00 35 04 06 00 89 C8 B4 7B [13:41:24]Write to MH i2c: E2 02 01 C7 1B 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 32 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 0D 01 00 00 F4 03 04 00 03 43 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 14 03 00 35 04 06 00 89 C8 B4 7B 00 00 6F [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [13:41:24]RAPDU: 90 00 [13:41:24]wFMCommunicate OK [13:41:24]wFMCommunicate request_size=7 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 0D 02 02 02 76 08 [13:41:24]Write to MH i2c: E2 0A 00 C8 1B 80 0D 02 02 02 00 76 08 00 00 DF [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 03 00 C8 1B 00 90 00 57 [13:41:24]RAPDU: 90 00 [13:41:24]wFMCommunicate OK [13:41:24]wFMCommunicate request_size=4 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 0D 03 02 [13:41:24]Write to MH i2c: E2 08 00 C9 1B 80 0D 03 02 00 00 00 00 5F [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 0B 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 0B 00 C9 1B 00 59 69 74 F2 1C 33 93 8F 90 00 F9 [13:41:24]RAPDU: 59 69 74 F2 1C 33 93 8F 90 00 [13:41:24]wFMCommunicate OK [13:41:24]SAM_PROTO_SignData done [13:41:24]FM_MakeSignedData done [13:41:24]CreateOFDProtocolMessage [13:41:24]wFMCommunicate request_size=4 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 11 00 00 [13:41:24]Write to MH i2c: E2 08 00 CA 1B 80 11 00 00 00 00 00 00 5F [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 17 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 17 00 CA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B4 [13:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:41:24]wFMCommunicate OK [13:41:24]CreateOFDProtocolMessage done [13:41:24]OFDSenderStorePacket 201977 [13:41:24]StoreOFDPacket docnum=201977 [13:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 10 0E 04 01 AF 68 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 32 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 0D 01 00 00 F4 03 04 00 03 43 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 14 03 00 35 04 06 00 89 C8 B4 7B 76 08 59 69 74 F2 1C 33 93 8F [13:41:24]CheckFolder [13:41:24]dirname=/storage/ofd_packets [13:41:24]CheckFolder done [13:41:24]ProducePacketName [13:41:24]name=ofd_packets/00201977 [13:41:24]NVStorageSaveData ofd_packets/00201977 [13:41:24]File name is /storage/ofd_packets/00201977 [13:41:24]Write 298 bytes [13:41:24]NVStorageSaveData done [13:41:24]OFDSenderStorePacket done [13:41:24]KKMCreateOFDPacket done [13:41:24]NVStorageSaveData kkm_last_timestamp [13:41:24]File name is /storage/kkm_last_timestamp [13:41:24]Write 4 bytes [13:41:24]NVStorageSaveData done [13:41:24]ExternCall_PrintAddStr [13:41:24]wPrintStart [13:41:24]Write to MH i2c: 01 00 00 CB 1B E6 [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 07 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 07 00 CB 1B 00 00 00 00 00 FF 0F FB [13:41:24]RasterBufferAndPrint [13:41:24]line Счет N : (1)449742 [13:41:24]line ИНН: 02508201610067 [13:41:24]line Контрольно-Кассовый Чек [13:41:24]line ПРОДАЖА [13:41:24]line ТРК (МРК, ГНК) : 21 [13:41:24]line Товар: 2710194210 [13:41:24]line ДТ-К-2 [13:41:24]line 13.130 * 76.20 [13:41:24]line = 1000.51 [13:41:24]line НДС 12% НСП 1% [13:41:24]line > о реализуемом товаре [13:41:24]line ОКРУГЛЕНИЕ: -0.51 [13:41:24]line ИТОГО: 1000.00 [13:41:24]line Внесено: 1000.00 [13:41:24]line СДАЧА: 0.00 [13:41:24]line НСП 1% : 8.85 [13:41:24]line НДС 12% : 106.25 [13:41:24]line Наличными: 1000.00 [13:41:24]line Безнал.: 0.00 [13:41:24]line Место: АЗС № 171 "Партнер Нефть" [13:41:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:41:25]line СНО: Общий режим [13:41:25]line Чек 269 27.10.2024 13:41 [13:41:25]line Смена: 544 ФФД: 1.0 [13:41:25]line ЗНМ: 0300000109 [13:41:25]line РНМ: 0000000000091777 [13:41:25]line Версия ККМ: 001 [13:41:25]line ФМ: 0000000000871756 [13:41:25]line ФД: 201977 [13:41:25]line ФПД: 151495114454536 [13:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134123&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201977&fm=151495114454536&tin=02508201610067®Number=0000000000091777&sum=100000 [13:41:25]OFD Sender: Processing packet 201977 [packets to send 112, broken 111] [13:41:25]ProducePacketName [13:41:25]name=ofd_packets/00201977 [13:41:25]OFD Sender: To server: pG, [13:41:25]CommunicateWithHost lk.salyk.kg:30040 [13:41:25]ConnectInit lk.salyk.kg [13:41:25]written 0, free lines is 4095 [13:41:25]Connected sock=11 [13:41:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 10 0E 04 01 AF 68 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 32 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 0D 01 00 00 F4 03 04 00 03 43 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 14 03 00 35 04 06 00 89 C8 B4 7B 76 08 59 69 74 F2 1C 33 93 8F [13:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C2 61 47 00 E5 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 14 03 00 F4 03 04 00 BE EE 1D 67 B6 04 01 00 00 13 9C CF C0 5B B0 65 5F [13:41:25]CommunicateWithHost err = 0 [13:41:25]CheckOFDResponse [13:41:25]1017 (14) - 77093643461234 [13:41:25]1041 (16) - 0000000000871756 [13:41:25]1040 (4) - 201977 [13:41:25]1012 (4) - 27.10.2024 07:41 [13:41:25]1206 (1) - 0 [13:41:25]OFD Sender: Remove packet 201977 [13:41:25]ProducePacketName [13:41:25]name=ofd_packets/00201977 [13:41:25]NVStorageDeleteData [13:41:25]Write to MH i2c: 01 00 00 F6 1B 11 [13:41:25]Write i2c OK [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: 01 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: 01 07 00 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: 01 07 00 F6 1B 00 00 00 00 00 91 0C B5 [13:41:25]RasterBufferAndPrint [13:41:25]line [13:41:25]line [13:41:25]line [13:41:25]line [13:41:25]line [13:41:25]written 0, free lines is 3224 [13:41:25]MH_Cut [13:41:25]Write to MH i2c: D1 01 00 FD 1B 01 EA [13:41:25]Write i2c OK [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: D1 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: D1 01 00 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: D1 01 00 FD 1B 00 E9 [13:41:25]Write to MH i2c: 01 00 00 FE 1B 19 [13:41:25]Write i2c OK [13:41:25]MH_I2C_Read... [13:41:26]OFD Sender: No OFD packet to send [13:41:26]*** Cut start [13:41:26]*** Purtial cut [13:41:26]*** Stage 1: CUTSNS_PIN = 1 [13:41:26]Read from MH i2c: 01 [13:41:26]MH_I2C_Read... [13:41:26]*** Stop cut motor [13:41:26]*** Cut end [13:41:26]Read from MH i2c: 01 07 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 FE 1B 00 00 00 00 00 FF 0F 2E [13:41:26]process_action close_receipt done [13:41:26]requested_data is exist [13:41:26]produce_requested_data [13:41:26]requested_item fm.sn is exist - process it [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 11 00 00 [13:41:26]Write to MH i2c: E2 08 00 FF 1B 80 11 00 00 00 00 00 00 94 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 17 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 17 00 FF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [13:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:41:26]wFMCommunicate OK [13:41:26]requested_item fd.num is exist - process it [13:41:26]SAM_PROTO_GetFieldsCounters [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 13 00 00 [13:41:26]Write to MH i2c: E2 08 00 00 1C 80 13 00 00 00 00 00 00 98 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:27]Read from MH i2c: E2 [13:41:27]MH_I2C_Read... [13:41:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:27]Read from MH i2c: E2 62 00 [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: E2 62 00 00 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [13:41:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F9 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:27]wFMCommunicate OK [13:41:27]SAM_PROTO_GetFieldsCounters done [13:41:27]requested_item shift.num is exist - process it [13:41:27]requested_item shift.opened is exist - process it [13:41:27]req_shift_opened [13:41:27]FM_GetShiftState [13:41:27]SAM_PROTO_GetShiftState [13:41:27]wFMCommunicate request_size=4 [13:41:27]MH_SAM_APDU [13:41:27]CAPDU: 80 13 01 00 [13:41:27]Write to MH i2c: E2 08 00 01 1C 80 13 01 00 00 00 00 00 9A [13:41:27]Write i2c OK [13:41:27]MH_I2C_Read... [13:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:27]Read from MH i2c: E2 [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: E2 0E 00 [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: E2 0E 00 01 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9C [13:41:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:41:27]wFMCommunicate OK [13:41:27]SAM_PROTO_GetShiftState done [13:41:27]FM_GetShiftState done [13:41:27]req_shift_opened done [13:41:27]requested_item shift.open_date is exist - process it [13:41:27]req_shift_open_date [13:41:27]req_shift_open_date done [13:41:27]produce_requested_data done [13:41:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201977,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:41:27]process_action_free close_receipt [13:41:27]json_value_free [13:41:27]json_value_free done [13:41:27]process_json_proto returns [13:41:27]Send response to host [13:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201977,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:41:27]free response buf [13:41:27]execute_script done [13:41:27]execute_script returns [13:41:27]free content buf [13:41:27]Sock 8.Close socket [13:41:27]Sock 8.Thread stoped [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:40]accept exits with 9 [13:43:40]New connection [13:43:40]New thread 3066498404 created [13:43:40]Thread 3066641764 joined [13:43:40]Waiting for new connection... [13:43:40] Sock 9.Parse request [13:43:40]Sock 9.Check first char [13:43:40]Sock 9.First char is OK [13:43:40]request: POST /json_proto HTTP/1.0 [13:43:40]Method: POST [13:43:40]URL: /json_proto [13:43:40]Method is POST - this is cgi request [13:43:40]url: /json_proto [13:43:40]query_string will be loaded in cgi processing [13:43:40]execute_cgi json_proto POST (null) [13:43:40]execute_cgi path=json_proto method=POST [13:43:40]POST find Content-Length [13:43:40]Host: 172.17.63.195:8080 [13:43:40]Content-Length: 674 [13:43:40]Content-Type: application/json [13:43:40] [13:43:40]POST finish read [13:43:40]Found Content-Length = 674 [13:43:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:40]execute_script... [13:43: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)449743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:40]POST & json_proto [13:43:40]process_json_proto [13:43:40]json parsed OK: [13:43:40]protocol is kg_v1.0 [13:43:40]action value=close_receipt [13:43:40]process_action close_receipt [13:43:40]cmd_close_receipt [13:43:40]MH_GetDate [13:43:40]Write to MH i2c: F0 00 00 02 1C 0D [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 09 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 09 00 02 1C 00 8D 43 1E 67 47 1B 1E 67 52 [13:43:40]GetLastDocTimeStamp 1730036483 [13:43:40]current date 1730036621 [13:43:40]FM_GetShiftState [13:43:40]SAM_PROTO_GetShiftState [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 13 01 00 [13:43:40]Write to MH i2c: E2 08 00 03 1C 80 13 01 00 00 00 00 00 9C [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 0E 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 0E 00 03 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9E [13:43:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:43:40]wFMCommunicate OK [13:43:40]SAM_PROTO_GetShiftState done [13:43:40]FM_GetShiftState done [13:43:40]opened in 1729987312 [13:43:40]opened+sec_in_day 1730073712 [13:43:40]quantity*price = 50063 [13:43:40]sum+1 = 50064 [13:43:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 270 27.10.2024 13:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201978 ФПД: 22934645045808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134341&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201978&fm=22934645045808&tin=02508201610067®Number=0000000000091777&sum=50000 [13:43:41]StoreToDocumentArchive [13:43:41]shift 544 fd 201978 [13:43:41]save to /storage/0544/doc_00201978 [13:43:41]save last doc name /storage/0544/doc_00201978 to /storage/kkm_last_doc_name [13:43:41]save OK [13:43:41]Clear old archive folders... [13:43:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:41]tlvbuf is 0118F790 [13:43:41]SAM_PROTO_ClearQueue [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 09 00 00 [13:43:41]Write to MH i2c: E2 08 00 10 1C 80 09 00 00 00 00 00 00 9E [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [13:43:41]RAPDU: 90 00 [13:43:41]wFMCommunicate OK [13:43:41]SAM_PROTO_ClearQueue done [13:43:41]KKMCreateOFDPacket [13:43:41]OFDProtocolAddRootSTLVToBuf [13:43:41]FM_MakeSignedData [13:43:41]FM_MakeSignedData [13:43:41]SAM_PROTO_SignData [13:43:41]wFMCommunicate request_size=4 [13:43:41]MH_SAM_APDU [13:43:41]CAPDU: 80 0D 01 02 [13:43:41]Write to MH i2c: E2 08 00 11 1C 80 0D 01 02 00 00 00 00 A6 [13:43:41]Write i2c OK [13:43:41]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]wFMCommunicate request_size=255 [13:43:42]MH_SAM_APDU [13:43: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 8D 43 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 14 03 00 35 04 06 00 14 DB E3 5E [13:43:42]Write to MH i2c: E2 02 01 12 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 8D 43 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 14 03 00 35 04 06 00 14 DB E3 5E 00 00 7F [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]wFMCommunicate request_size=7 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 0D 02 02 02 FA 30 [13:43:42]Write to MH i2c: E2 0A 00 13 1C 80 0D 02 02 02 00 FA 30 00 00 D7 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 13 1C 00 90 00 A3 [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 0D 03 02 [13:43:42]Write to MH i2c: E2 08 00 14 1C 80 0D 03 02 00 00 00 00 AB [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0B 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0B 00 14 1C 00 82 D2 62 67 74 B1 E5 10 90 00 E3 [13:43:42]RAPDU: 82 D2 62 67 74 B1 E5 10 90 00 [13:43:42]wFMCommunicate OK [13:43:42]SAM_PROTO_SignData done [13:43:42]FM_MakeSignedData done [13:43:42]CreateOFDProtocolMessage [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 11 00 00 [13:43:42]Write to MH i2c: E2 08 00 15 1C 80 11 00 00 00 00 00 00 AB [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 17 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 17 00 15 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [13:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:43:42]wFMCommunicate OK [13:43:42]CreateOFDProtocolMessage done [13:43:42]OFDSenderStorePacket 201978 [13:43:42]StoreOFDPacket docnum=201978 [13:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FC D1 04 01 AA 7E 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 8D 43 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 14 03 00 35 04 06 00 14 DB E3 5E FA 30 82 D2 62 67 74 B1 E5 10 [13:43:42]CheckFolder [13:43:42]dirname=/storage/ofd_packets [13:43:42]CheckFolder done [13:43:42]ProducePacketName [13:43:42]name=ofd_packets/00201978 [13:43:42]NVStorageSaveData ofd_packets/00201978 [13:43:42]File name is /storage/ofd_packets/00201978 [13:43:42]Write 298 bytes [13:43:42]NVStorageSaveData done [13:43:42]OFDSenderStorePacket done [13:43:42]KKMCreateOFDPacket done [13:43:42]NVStorageSaveData kkm_last_timestamp [13:43:42]File name is /storage/kkm_last_timestamp [13:43:42]Write 4 bytes [13:43:42]NVStorageSaveData done [13:43:42]ExternCall_PrintAddStr [13:43:42]wPrintStart [13:43:42]Write to MH i2c: 01 00 00 16 1C 32 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 16 1C 00 00 00 00 00 FF 0F 47 [13:43:42]RasterBufferAndPrint [13:43:42]line Счет N : (1)449743 [13:43:42]line ИНН: 02508201610067 [13:43:42]line Контрольно-Кассовый Чек [13:43:42]line ПРОДАЖА [13:43:42]line ТРК (МРК, ГНК) : 21 [13:43:42]line Товар: 2710194210 [13:43:42]line ДТ-К-2 [13:43:42]line 6.570 * 76.20 [13:43:42]line = 500.63 [13:43:42]line НДС 12% НСП 1% [13:43:42]line > о реализуемом товаре [13:43:42]line ОКРУГЛЕНИЕ: -0.63 [13:43:42]line ИТОГО: 500.00 [13:43:42]line Внесено: 500.00 [13:43:42]line СДАЧА: 0.00 [13:43:42]line НСП 1% : 4.43 [13:43:42]line НДС 12% : 53.16 [13:43:42]line Наличными: 500.00 [13:43:42]line Безнал.: 0.00 [13:43:42]line Место: АЗС № 171 "Партнер Нефть" [13:43:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:43:42]line СНО: Общий режим [13:43:42]line Чек 270 27.10.2024 13:43 [13:43:42]line Смена: 544 ФФД: 1.0 [13:43:42]line ЗНМ: 0300000109 [13:43:42]line РНМ: 0000000000091777 [13:43:42]line Версия ККМ: 001 [13:43:42]line ФМ: 0000000000871756 [13:43:42]line ФД: 201978 [13:43:42]line ФПД: 22934645045808 [13:43:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134341&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201978&fm=22934645045808&tin=02508201610067®Number=0000000000091777&sum=50000 [13:43:42]written 0, free lines is 4095 [13:43:42]OFD Sender: Processing packet 201978 [packets to send 112, broken 111] [13:43:42]ProducePacketName [13:43:42]name=ofd_packets/00201978 [13:43:42]OFD Sender: To server: pG, [13:43:42]CommunicateWithHost lk.salyk.kg:30040 [13:43:42]ConnectInit lk.salyk.kg [13:43:42]Connected sock=10 [13:43:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FC D1 04 01 AA 7E 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 8D 43 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 14 03 00 35 04 06 00 14 DB E3 5E FA 30 82 D2 62 67 74 B1 E5 10 [13:43:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 99 53 47 00 77 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 14 03 00 F4 03 04 00 47 EF 1D 67 B6 04 01 00 00 0A 6E A1 B5 3C 02 A0 EE [13:43:42]CommunicateWithHost err = 0 [13:43:42]CheckOFDResponse [13:43:42]1017 (14) - 77093643461234 [13:43:42]1041 (16) - 0000000000871756 [13:43:42]1040 (4) - 201978 [13:43:42]1012 (4) - 27.10.2024 07:44 [13:43:42]1206 (1) - 0 [13:43:42]OFD Sender: Remove packet 201978 [13:43:42]ProducePacketName [13:43:42]name=ofd_packets/00201978 [13:43:42]NVStorageDeleteData [13:43:42]Write to MH i2c: 01 00 00 41 1C 5D [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 41 1C 00 00 00 00 00 91 0C 01 [13:43:42]RasterBufferAndPrint [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]written 0, free lines is 3221 [13:43:42]MH_Cut [13:43:42]Write to MH i2c: D1 01 00 48 1C 01 36 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 01 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 01 00 48 1C 00 35 [13:43:42]Write to MH i2c: 01 00 00 49 1C 65 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:43]OFD Sender: No OFD packet to send [13:43:43]*** Cut start [13:43:43]*** Purtial cut [13:43:43]*** Stage 1: CUTSNS_PIN = 1 [13:43:44]Read from MH i2c: 01 [13:43:44]*** Stop cut motor [13:43:44]*** Cut end [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 49 1C 00 00 00 00 00 FF 0F 7A [13:43:44]process_action close_receipt done [13:43:44]requested_data is exist [13:43:44]produce_requested_data [13:43:44]requested_item fm.sn is exist - process it [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 11 00 00 [13:43:44]Write to MH i2c: E2 08 00 4A 1C 80 11 00 00 00 00 00 00 E0 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 4A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [13:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:43:44]wFMCommunicate OK [13:43:44]requested_item fd.num is exist - process it [13:43:44]SAM_PROTO_GetFieldsCounters [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 13 00 00 [13:43:44]Write to MH i2c: E2 08 00 4B 1C 80 13 00 00 00 00 00 00 E3 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 62 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 62 00 4B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [13:43:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FA 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:44]wFMCommunicate OK [13:43:44]SAM_PROTO_GetFieldsCounters done [13:43:44]requested_item shift.num is exist - process it [13:43:44]requested_item shift.opened is exist - process it [13:43:44]req_shift_opened [13:43:44]FM_GetShiftState [13:43:44]SAM_PROTO_GetShiftState [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 13 01 00 [13:43:44]Write to MH i2c: E2 08 00 4C 1C 80 13 01 00 00 00 00 00 E5 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 0E 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 0E 00 4C 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E7 [13:43:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:43:44]wFMCommunicate OK [13:43:44]SAM_PROTO_GetShiftState done [13:43:44]FM_GetShiftState done [13:43:44]req_shift_opened done [13:43:44]requested_item shift.open_date is exist - process it [13:43:44]req_shift_open_date [13:43:44]req_shift_open_date done [13:43:44]produce_requested_data done [13:43:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201978,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:43:44]process_action_free close_receipt [13:43:44]json_value_free [13:43:44]json_value_free done [13:43:44]process_json_proto returns [13:43:44]Send response to host [13:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201978,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:43:44]free response buf [13:43:44]execute_script done [13:43:44]execute_script returns [13:43:44]free content buf [13:43:44]Sock 9.Close socket [13:43:44]Sock 9.Thread stoped [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:52]accept exits with 8 [13:45:52]New connection [13:45:52]New thread 3066641764 created [13:45:52]Thread 3066498404 joined [13:45:52]Waiting for new connection... [13:45:52] Sock 8.Parse request [13:45:52]Sock 8.Check first char [13:45:52]Sock 8.First char is OK [13:45:52]request: POST /json_proto HTTP/1.0 [13:45:52]Method: POST [13:45:52]URL: /json_proto [13:45:52]Method is POST - this is cgi request [13:45:52]url: /json_proto [13:45:52]query_string will be loaded in cgi processing [13:45:52]execute_cgi json_proto POST (null) [13:45:52]execute_cgi path=json_proto method=POST [13:45:52]POST find Content-Length [13:45:52]Host: 172.17.63.195:8080 [13:45:52]Content-Length: 679 [13:45:52]Content-Type: application/json [13:45:52] [13:45:52]POST finish read [13:45:52]Found Content-Length = 679 [13:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:45:52]execute_script... [13:45:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [13:45:52]POST & json_proto [13:45:52]process_json_proto [13:45:52]json parsed OK: [13:45:52]protocol is kg_v1.0 [13:45:52]action value=close_receipt [13:45:52]process_action close_receipt [13:45:52]cmd_close_receipt [13:45:52]MH_GetDate [13:45:52]Write to MH i2c: F0 00 00 4D 1C 58 [13:45:52]Write i2c OK [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: F0 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: F0 09 00 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: F0 09 00 4D 1C 00 11 44 1E 67 47 1B 1E 67 22 [13:45:52]GetLastDocTimeStamp 1730036621 [13:45:52]current date 1730036753 [13:45:52]FM_GetShiftState [13:45:52]SAM_PROTO_GetShiftState [13:45:52]wFMCommunicate request_size=4 [13:45:52]MH_SAM_APDU [13:45:52]CAPDU: 80 13 01 00 [13:45:52]Write to MH i2c: E2 08 00 4E 1C 80 13 01 00 00 00 00 00 E7 [13:45:52]Write i2c OK [13:45:52]MH_I2C_Read... [13:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:52]Read from MH i2c: E2 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: E2 0E 00 [13:45:52]MH_I2C_Read... [13:45:52]Read from MH i2c: E2 0E 00 4E 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E9 [13:45:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:45:52]wFMCommunicate OK [13:45:52]SAM_PROTO_GetShiftState done [13:45:52]FM_GetShiftState done [13:45:52]opened in 1729987312 [13:45:52]opened+sec_in_day 1730073712 [13:45:52]quantity*price = 100050 [13:45:52]sum+1 = 100052 [13:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 271 27.10.2024 13:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201979 ФПД: 62264344687309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134553&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201979&fm=62264344687309&tin=02508201610067®Number=0000000000091777&sum=100000 [13:45:53]StoreToDocumentArchive [13:45:53]shift 544 fd 201979 [13:45:53]save to /storage/0544/doc_00201979 [13:45:53]save last doc name /storage/0544/doc_00201979 to /storage/kkm_last_doc_name [13:45:53]save OK [13:45:53]Clear old archive folders... [13:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:45:53]tlvbuf is 0123B280 [13:45:53]SAM_PROTO_ClearQueue [13:45:53]wFMCommunicate request_size=4 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 09 00 00 [13:45:53]Write to MH i2c: E2 08 00 5B 1C 80 09 00 00 00 00 00 00 E9 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:53]OFD Sender: No OFD packet to send [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [13:45:53]RAPDU: 90 00 [13:45:53]wFMCommunicate OK [13:45:53]SAM_PROTO_ClearQueue done [13:45:53]KKMCreateOFDPacket [13:45:53]OFDProtocolAddRootSTLVToBuf [13:45:53]FM_MakeSignedData [13:45:53]FM_MakeSignedData [13:45:53]SAM_PROTO_SignData [13:45:53]wFMCommunicate request_size=4 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 0D 01 02 [13:45:53]Write to MH i2c: E2 08 00 5C 1C 80 0D 01 02 00 00 00 00 F1 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [13:45:53]RAPDU: 90 00 [13:45:53]wFMCommunicate OK [13:45:53]wFMCommunicate request_size=255 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 0F 01 00 00 F4 03 04 00 11 44 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 14 03 00 35 04 06 00 38 A1 0C 25 [13:45:53]Write to MH i2c: E2 02 01 5D 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 32 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 0F 01 00 00 F4 03 04 00 11 44 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 14 03 00 35 04 06 00 38 A1 0C 25 00 00 A3 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [13:45:53]RAPDU: 90 00 [13:45:53]wFMCommunicate OK [13:45:53]wFMCommunicate request_size=7 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 0D 02 02 02 B2 CD [13:45:53]Write to MH i2c: E2 0A 00 5E 1C 80 0D 02 02 02 00 B2 CD 00 00 77 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 5E 1C 00 90 00 EE [13:45:53]RAPDU: 90 00 [13:45:53]wFMCommunicate OK [13:45:53]wFMCommunicate request_size=4 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 0D 03 02 [13:45:53]Write to MH i2c: E2 08 00 5F 1C 80 0D 03 02 00 00 00 00 F6 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:53]Read from MH i2c: E2 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 0B 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 0B 00 5F 1C 00 90 D2 A0 1C 31 C7 89 21 90 00 B7 [13:45:54]RAPDU: 90 D2 A0 1C 31 C7 89 21 90 00 [13:45:54]wFMCommunicate OK [13:45:54]SAM_PROTO_SignData done [13:45:54]FM_MakeSignedData done [13:45:54]CreateOFDProtocolMessage [13:45:54]wFMCommunicate request_size=4 [13:45:54]MH_SAM_APDU [13:45:54]CAPDU: 80 11 00 00 [13:45:54]Write to MH i2c: E2 08 00 60 1C 80 11 00 00 00 00 00 00 F6 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:54]Read from MH i2c: E2 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 17 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: E2 17 00 60 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [13:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:45:54]wFMCommunicate OK [13:45:54]CreateOFDProtocolMessage done [13:45:54]OFDSenderStorePacket 201979 [13:45:54]StoreOFDPacket docnum=201979 [13:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 7E 8B 04 01 01 C3 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 32 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 0F 01 00 00 F4 03 04 00 11 44 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 14 03 00 35 04 06 00 38 A1 0C 25 B2 CD 90 D2 A0 1C 31 C7 89 21 [13:45:54]CheckFolder [13:45:54]dirname=/storage/ofd_packets [13:45:54]CheckFolder done [13:45:54]ProducePacketName [13:45:54]name=ofd_packets/00201979 [13:45:54]NVStorageSaveData ofd_packets/00201979 [13:45:54]File name is /storage/ofd_packets/00201979 [13:45:54]Write 298 bytes [13:45:54]NVStorageSaveData done [13:45:54]OFDSenderStorePacket done [13:45:54]KKMCreateOFDPacket done [13:45:54]NVStorageSaveData kkm_last_timestamp [13:45:54]File name is /storage/kkm_last_timestamp [13:45:54]Write 4 bytes [13:45:54]NVStorageSaveData done [13:45:54]ExternCall_PrintAddStr [13:45:54]wPrintStart [13:45:54]Write to MH i2c: 01 00 00 61 1C 7D [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 07 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 07 00 61 1C 00 00 00 00 00 FF 0F 92 [13:45:54]RasterBufferAndPrint [13:45:54]line Счет N : (1)449744 [13:45:54]line ИНН: 02508201610067 [13:45:54]line Контрольно-Кассовый Чек [13:45:54]line ПРОДАЖА [13:45:54]line ТРК (МРК, ГНК) : 43 [13:45:54]line Товар: 2710194210 [13:45:54]line ДТ-К-2 [13:45:54]line 13.130 * 76.20 [13:45:54]line = 1000.51 [13:45:54]line НДС 12% НСП 1% [13:45:54]line > о реализуемом товаре [13:45:54]line ОКРУГЛЕНИЕ: -0.51 [13:45:54]line ИТОГО: 1000.00 [13:45:54]line Внесено: 1000.00 [13:45:54]line СДАЧА: 0.00 [13:45:54]line НСП 1% : 8.85 [13:45:54]line НДС 12% : 106.25 [13:45:54]line Наличными: 1000.00 [13:45:54]line Безнал.: 0.00 [13:45:54]line Место: АЗС № 171 "Партнер Нефть" [13:45:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:45:54]line СНО: Общий режим [13:45:54]line Чек 271 27.10.2024 13:45 [13:45:54]line Смена: 544 ФФД: 1.0 [13:45:54]line ЗНМ: 0300000109 [13:45:54]line РНМ: 0000000000091777 [13:45:54]line Версия ККМ: 001 [13:45:54]line ФМ: 0000000000871756 [13:45:54]line ФД: 201979 [13:45:54]line ФПД: 62264344687309 [13:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134553&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201979&fm=62264344687309&tin=02508201610067®Number=0000000000091777&sum=100000 [13:45:54]OFD Sender: Processing packet 201979 [packets to send 112, broken 111] [13:45:54]ProducePacketName [13:45:54]name=ofd_packets/00201979 [13:45:54]OFD Sender: To server: pG, [13:45:54]CommunicateWithHost lk.salyk.kg:30040 [13:45:54]ConnectInit lk.salyk.kg [13:45:54]written 0, free lines is 4095 [13:45:54]Connected sock=10 [13:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 7E 8B 04 01 01 C3 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 32 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 0F 01 00 00 F4 03 04 00 11 44 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 14 03 00 35 04 06 00 38 A1 0C 25 B2 CD 90 D2 A0 1C 31 C7 89 21 [13:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 45 0B 47 00 EF 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 14 03 00 F4 03 04 00 CB EF 1D 67 B6 04 01 00 00 95 D2 0C 41 49 08 B7 D7 [13:45:54]CommunicateWithHost err = 0 [13:45:54]CheckOFDResponse [13:45:54]1017 (14) - 77093643461234 [13:45:54]1041 (16) - 0000000000871756 [13:45:54]1040 (4) - 201979 [13:45:54]1012 (4) - 27.10.2024 07:46 [13:45:54]1206 (1) - 0 [13:45:54]OFD Sender: Remove packet 201979 [13:45:54]ProducePacketName [13:45:54]name=ofd_packets/00201979 [13:45:54]NVStorageDeleteData [13:45:54]Write to MH i2c: 01 00 00 8C 1C A8 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 07 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 07 00 8C 1C 00 00 00 00 00 97 0C 52 [13:45:54]RasterBufferAndPrint [13:45:54]line [13:45:54]line [13:45:54]line [13:45:54]line [13:45:54]line [13:45:54]written 0, free lines is 3229 [13:45:54]MH_Cut [13:45:54]Write to MH i2c: D1 01 00 93 1C 01 81 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: D1 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: D1 01 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: D1 01 00 93 1C 00 80 [13:45:54]Write to MH i2c: 01 00 00 94 1C B0 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:55]OFD Sender: No OFD packet to send [13:45:55]*** Cut start [13:45:55]*** Purtial cut [13:45:55]*** CUTSNS_PIN = 0 [13:45:55]*** Stage 1: CUTSNS_PIN = 1 [13:45:57]Read from MH i2c: 01 [13:45:57]MH_I2C_Read... [13:45:57]*** Stop cut motor [13:45:57]*** Cut end [13:45:57]Read from MH i2c: 01 07 00 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: 01 07 00 94 1C 00 00 00 00 00 FF 0F C5 [13:45:57]process_action close_receipt done [13:45:57]requested_data is exist [13:45:57]produce_requested_data [13:45:57]requested_item fm.sn is exist - process it [13:45:57]wFMCommunicate request_size=4 [13:45:57]MH_SAM_APDU [13:45:57]CAPDU: 80 11 00 00 [13:45:57]Write to MH i2c: E2 08 00 95 1C 80 11 00 00 00 00 00 00 2B [13:45:57]Write i2c OK [13:45:57]MH_I2C_Read... [13:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:57]Read from MH i2c: E2 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 17 00 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 17 00 95 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 80 [13:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:45:57]wFMCommunicate OK [13:45:57]requested_item fd.num is exist - process it [13:45:57]SAM_PROTO_GetFieldsCounters [13:45:57]wFMCommunicate request_size=4 [13:45:57]MH_SAM_APDU [13:45:57]CAPDU: 80 13 00 00 [13:45:57]Write to MH i2c: E2 08 00 96 1C 80 13 00 00 00 00 00 00 2E [13:45:57]Write i2c OK [13:45:57]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 62 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 62 00 96 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [13:45:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FB 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:58]wFMCommunicate OK [13:45:58]SAM_PROTO_GetFieldsCounters done [13:45:58]requested_item shift.num is exist - process it [13:45:58]requested_item shift.opened is exist - process it [13:45:58]req_shift_opened [13:45:58]FM_GetShiftState [13:45:58]SAM_PROTO_GetShiftState [13:45:58]wFMCommunicate request_size=4 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 13 01 00 [13:45:58]Write to MH i2c: E2 08 00 97 1C 80 13 01 00 00 00 00 00 30 [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 0E 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 0E 00 97 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 32 [13:45:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:45:58]wFMCommunicate OK [13:45:58]SAM_PROTO_GetShiftState done [13:45:58]FM_GetShiftState done [13:45:58]req_shift_opened done [13:45:58]requested_item shift.open_date is exist - process it [13:45:58]req_shift_open_date [13:45:58]req_shift_open_date done [13:45:58]produce_requested_data done [13:45:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201979,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:45:58]process_action_free close_receipt [13:45:58]json_value_free [13:45:58]json_value_free done [13:45:58]process_json_proto returns [13:45:58]Send response to host [13:45:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201979,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:45:58]free response buf [13:45:58]execute_script done [13:45:58]execute_script returns [13:45:58]free content buf [13:45:58]Sock 8.Close socket [13:45:58]Sock 8.Thread stoped [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:17]accept exits with 9 [13:49:17]New connection [13:49:17]New thread 3066498404 created [13:49:17]Thread 3066641764 joined [13:49:17]Waiting for new connection... [13:49:17] Sock 9.Parse request [13:49:17]Sock 9.Check first char [13:49:17]Sock 9.First char is OK [13:49:17]request: POST /json_proto HTTP/1.0 [13:49:17]Method: POST [13:49:17]URL: /json_proto [13:49:17]Method is POST - this is cgi request [13:49:17]url: /json_proto [13:49:17]query_string will be loaded in cgi processing [13:49:17]execute_cgi json_proto POST (null) [13:49:17]execute_cgi path=json_proto method=POST [13:49:17]POST find Content-Length [13:49:17]Host: 172.17.63.195:8080 [13:49:17]Content-Length: 675 [13:49:17]Content-Type: application/json [13:49:17] [13:49:17]POST finish read [13:49:17]Found Content-Length = 675 [13:49:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449745", "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" : 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" ] } } [13:49:17]execute_script... [13:49: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)449745", "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" : 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" ] } } [13:49:17]POST & json_proto [13:49:17]process_json_proto [13:49:17]json parsed OK: [13:49:17]protocol is kg_v1.0 [13:49:17]action value=close_receipt [13:49:17]process_action close_receipt [13:49:17]cmd_close_receipt [13:49:17]MH_GetDate [13:49:17]Write to MH i2c: F0 00 00 98 1C A3 [13:49:17]Write i2c OK [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: F0 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: F0 09 00 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: F0 09 00 98 1C 00 DE 44 1E 67 47 1B 1E 67 3A [13:49:17]GetLastDocTimeStamp 1730036753 [13:49:17]current date 1730036958 [13:49:17]FM_GetShiftState [13:49:17]SAM_PROTO_GetShiftState [13:49:17]wFMCommunicate request_size=4 [13:49:17]MH_SAM_APDU [13:49:17]CAPDU: 80 13 01 00 [13:49:17]Write to MH i2c: E2 08 00 99 1C 80 13 01 00 00 00 00 00 32 [13:49:17]Write i2c OK [13:49:17]MH_I2C_Read... [13:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:17]Read from MH i2c: E2 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 0E 00 [13:49:17]MH_I2C_Read... [13:49:17]Read from MH i2c: E2 0E 00 99 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 34 [13:49:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:49:17]wFMCommunicate OK [13:49:17]SAM_PROTO_GetShiftState done [13:49:17]FM_GetShiftState done [13:49:17]opened in 1729987312 [13:49:17]opened+sec_in_day 1730073712 [13:49:17]quantity*price = 100000 [13:49:17]sum+1 = 100002 [13:49:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 272 27.10.2024 13:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201980 ФПД: 194351105426503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134918&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201980&fm=194351105426503&tin=02508201610067®Number=0000000000091777&sum=100000 [13:49:18]StoreToDocumentArchive [13:49:18]shift 544 fd 201980 [13:49:18]save to /storage/0544/doc_00201980 [13:49:18]save last doc name /storage/0544/doc_00201980 to /storage/kkm_last_doc_name [13:49:18]save OK [13:49:18]Clear old archive folders... [13:49:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:49:18]tlvbuf is 012222A0 [13:49:18]SAM_PROTO_ClearQueue [13:49:18]wFMCommunicate request_size=4 [13:49:18]MH_SAM_APDU [13:49:18]CAPDU: 80 09 00 00 [13:49:18]Write to MH i2c: E2 08 00 A6 1C 80 09 00 00 00 00 00 00 34 [13:49:18]Write i2c OK [13:49:18]MH_I2C_Read... [13:49:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:18]Read from MH i2c: E2 [13:49:18]MH_I2C_Read... [13:49:18]Read from MH i2c: E2 03 00 [13:49:18]MH_I2C_Read... [13:49:18]Read from MH i2c: E2 03 00 A6 1C 00 90 00 36 [13:49:18]RAPDU: 90 00 [13:49:18]wFMCommunicate OK [13:49:18]SAM_PROTO_ClearQueue done [13:49:18]KKMCreateOFDPacket [13:49:18]OFDProtocolAddRootSTLVToBuf [13:49:18]FM_MakeSignedData [13:49:18]FM_MakeSignedData [13:49:18]SAM_PROTO_SignData [13:49:18]wFMCommunicate request_size=4 [13:49:18]MH_SAM_APDU [13:49:18]CAPDU: 80 0D 01 02 [13:49:18]Write to MH i2c: E2 08 00 A7 1C 80 0D 01 02 00 00 00 00 3C [13:49:18]Write i2c OK [13:49:18]MH_I2C_Read... [13:49:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:18]Read from MH i2c: E2 [13:49:18]MH_I2C_Read... [13:49:18]Read from MH i2c: E2 03 00 [13:49:18]MH_I2C_Read... [13:49:18]Read from MH i2c: E2 03 00 A7 1C 00 90 00 37 [13:49:18]RAPDU: 90 00 [13:49:18]wFMCommunicate OK [13:49:18]wFMCommunicate request_size=255 [13:49:18]MH_SAM_APDU [13:49:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 DE 44 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 14 03 00 35 04 06 00 [13:49:18]Write to MH i2c: E2 02 01 A8 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 DE 44 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 14 03 00 35 04 06 00 00 00 92 [13:49:18]Write i2c OK [13:49:18]MH_I2C_Read... [13:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:19]Read from MH i2c: E2 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: E2 03 00 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: E2 03 00 A8 1C 00 90 00 38 [13:49:19]RAPDU: 90 00 [13:49:19]wFMCommunicate OK [13:49:19]wFMCommunicate request_size=11 [13:49:19]MH_SAM_APDU [13:49:19]CAPDU: 80 0D 02 02 06 B0 C2 E4 99 C4 47 [13:49:19]Write to MH i2c: E2 0E 00 A9 1C 80 0D 02 02 06 00 B0 C2 E4 99 C4 47 00 00 45 [13:49:19]Write i2c OK [13:49:19]MH_I2C_Read... [13:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:19]Read from MH i2c: E2 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: E2 03 00 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: E2 03 00 A9 1C 00 90 00 39 [13:49:19]RAPDU: 90 00 [13:49:19]wFMCommunicate OK [13:49:19]wFMCommunicate request_size=4 [13:49:19]MH_SAM_APDU [13:49:19]CAPDU: 80 0D 03 02 [13:49:19]Write to MH i2c: E2 08 00 AA 1C 80 0D 03 02 00 00 00 00 41 [13:49:19]Write i2c OK [13:49:19]MH_I2C_Read... [13:49:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:19]Read from MH i2c: E2 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: E2 0B 00 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: E2 0B 00 AA 1C 00 01 6F 2E B7 A6 2B 12 96 90 00 10 [13:49:19]RAPDU: 01 6F 2E B7 A6 2B 12 96 90 00 [13:49:19]wFMCommunicate OK [13:49:19]SAM_PROTO_SignData done [13:49:19]FM_MakeSignedData done [13:49:19]CreateOFDProtocolMessage [13:49:19]wFMCommunicate request_size=4 [13:49:19]MH_SAM_APDU [13:49:19]CAPDU: 80 11 00 00 [13:49:19]Write to MH i2c: E2 08 00 AB 1C 80 11 00 00 00 00 00 00 41 [13:49:19]Write i2c OK [13:49:19]MH_I2C_Read... [13:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:19]Read from MH i2c: E2 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: E2 17 00 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: E2 17 00 AB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 96 [13:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:49:19]wFMCommunicate OK [13:49:19]CreateOFDProtocolMessage done [13:49:19]OFDSenderStorePacket 201980 [13:49:19]StoreOFDPacket docnum=201980 [13:49:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E9 55 08 01 A1 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 DE 44 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 14 03 00 35 04 06 00 B0 C2 E4 99 C4 47 01 6F 2E B7 A6 2B 12 96 [13:49:19]CheckFolder [13:49:19]dirname=/storage/ofd_packets [13:49:19]CheckFolder done [13:49:19]ProducePacketName [13:49:19]name=ofd_packets/00201980 [13:49:19]NVStorageSaveData ofd_packets/00201980 [13:49:19]File name is /storage/ofd_packets/00201980 [13:49:19]Write 302 bytes [13:49:19]NVStorageSaveData done [13:49:19]OFDSenderStorePacket done [13:49:19]KKMCreateOFDPacket done [13:49:19]NVStorageSaveData kkm_last_timestamp [13:49:19]File name is /storage/kkm_last_timestamp [13:49:19]Write 4 bytes [13:49:19]NVStorageSaveData done [13:49:19]ExternCall_PrintAddStr [13:49:19]wPrintStart [13:49:19]Write to MH i2c: 01 00 00 AC 1C C8 [13:49:19]Write i2c OK [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: 01 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: 01 07 00 [13:49:19]MH_I2C_Read... [13:49:19]Read from MH i2c: 01 07 00 AC 1C 00 00 00 00 00 FF 0F DD [13:49:19]RasterBufferAndPrint [13:49:19]line Счет N : (1)449745 [13:49:19]line ИНН: 02508201610067 [13:49:19]line Контрольно-Кассовый Чек [13:49:19]line ПРОДАЖА [13:49:19]line ТРК (МРК, ГНК) : 53 [13:49:19]line Товар: 2710124130 [13:49:19]line SUPER 92-К-5 [13:49:19]line 14.620 * 68.40 [13:49:19]line = 1000.01 [13:49:19]line НДС 12% НСП 1% [13:49:19]line > о реализуемом товаре [13:49:19]line ОКРУГЛЕНИЕ: -0.01 [13:49:19]line ИТОГО: 1000.00 [13:49:19]line Внесено: 1000.00 [13:49:19]line СДАЧА: 0.00 [13:49:19]line НСП 1% : 8.85 [13:49:19]line НДС 12% : 106.20 [13:49:19]line Наличными: 1000.00 [13:49:19]line Безнал.: 0.00 [13:49:19]line Место: АЗС № 171 "Партнер Нефть" [13:49:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:49:19]line СНО: Общий режим [13:49:19]line Чек 272 27.10.2024 13:49 [13:49:19]line Смена: 544 ФФД: 1.0 [13:49:19]line ЗНМ: 0300000109 [13:49:19]line РНМ: 0000000000091777 [13:49:19]line Версия ККМ: 001 [13:49:19]line ФМ: 0000000000871756 [13:49:19]line ФД: 201980 [13:49:19]line ФПД: 194351105426503 [13:49:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134918&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201980&fm=194351105426503&tin=02508201610067®Number=0000000000091777&sum=100000 [13:49:19]OFD Sender: Processing packet 201980 [packets to send 112, broken 111] [13:49:19]ProducePacketName [13:49:19]name=ofd_packets/00201980 [13:49:19]OFD Sender: To server: pG, [13:49:19]CommunicateWithHost lk.salyk.kg:30040 [13:49:19]ConnectInit lk.salyk.kg [13:49:19]written 0, free lines is 4095 [13:49:19]Connected sock=10 [13:49:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E9 55 08 01 A1 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 10 01 00 00 F4 03 04 00 DE 44 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 14 03 00 35 04 06 00 B0 C2 E4 99 C4 47 01 6F 2E B7 A6 2B 12 96 [13:49:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 29 F2 47 00 5E CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 14 03 00 F4 03 04 00 98 F0 1D 67 B6 04 01 00 00 EF 58 97 FA 02 80 EB 78 [13:49:19]CommunicateWithHost err = 0 [13:49:19]CheckOFDResponse [13:49:19]1017 (14) - 77093643461234 [13:49:19]1041 (16) - 0000000000871756 [13:49:19]1040 (4) - 201980 [13:49:19]1012 (4) - 27.10.2024 07:49 [13:49:19]1206 (1) - 0 [13:49:19]OFD Sender: Remove packet 201980 [13:49:19]ProducePacketName [13:49:19]name=ofd_packets/00201980 [13:49:19]NVStorageDeleteData [13:49:20]Write to MH i2c: 01 00 00 D7 1C F3 [13:49:20]Write i2c OK [13:49:20]MH_I2C_Read... [13:49:20]Read from MH i2c: 01 [13:49:20]MH_I2C_Read... [13:49:20]Read from MH i2c: 01 07 00 [13:49:20]MH_I2C_Read... [13:49:20]Read from MH i2c: 01 07 00 D7 1C 00 00 00 00 00 97 0C 9D [13:49:20]RasterBufferAndPrint [13:49:20]line [13:49:20]line [13:49:20]line [13:49:20]line [13:49:20]line [13:49:20]written 0, free lines is 3229 [13:49:20]MH_Cut [13:49:20]Write to MH i2c: D1 01 00 DE 1C 01 CC [13:49:20]Write i2c OK [13:49:20]MH_I2C_Read... [13:49:20]Read from MH i2c: D1 [13:49:20]MH_I2C_Read... [13:49:20]Read from MH i2c: D1 01 00 [13:49:20]MH_I2C_Read... [13:49:20]Read from MH i2c: D1 01 00 DE 1C 00 CB [13:49:20]Write to MH i2c: 01 00 00 DF 1C FB [13:49:20]Write i2c OK [13:49:20]MH_I2C_Read... [13:49:20]OFD Sender: No OFD packet to send [13:49:20]*** Cut start [13:49:20]*** Purtial cut [13:49:20]*** Stage 1: CUTSNS_PIN = 1 [13:49:21]Read from MH i2c: 01 [13:49:21]MH_I2C_Read... [13:49:21]*** Stop cut motor [13:49:21]*** Cut end [13:49:21]Read from MH i2c: 01 07 00 [13:49:21]MH_I2C_Read... [13:49:21]Read from MH i2c: 01 07 00 DF 1C 00 00 00 00 00 FF 0F 10 [13:49:21]process_action close_receipt done [13:49:21]requested_data is exist [13:49:21]produce_requested_data [13:49:21]requested_item fm.sn is exist - process it [13:49:21]wFMCommunicate request_size=4 [13:49:21]MH_SAM_APDU [13:49:21]CAPDU: 80 11 00 00 [13:49:21]Write to MH i2c: E2 08 00 E0 1C 80 11 00 00 00 00 00 00 76 [13:49:21]Write i2c OK [13:49:21]MH_I2C_Read... [13:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:21]Read from MH i2c: E2 [13:49:21]MH_I2C_Read... [13:49:21]Read from MH i2c: E2 17 00 [13:49:21]MH_I2C_Read... [13:49:21]Read from MH i2c: E2 17 00 E0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CB [13:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:49:21]wFMCommunicate OK [13:49:21]requested_item fd.num is exist - process it [13:49:21]SAM_PROTO_GetFieldsCounters [13:49:21]wFMCommunicate request_size=4 [13:49:21]MH_SAM_APDU [13:49:21]CAPDU: 80 13 00 00 [13:49:21]Write to MH i2c: E2 08 00 E1 1C 80 13 00 00 00 00 00 00 79 [13:49:21]Write i2c OK [13:49:21]MH_I2C_Read... [13:49:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:21]Read from MH i2c: E2 [13:49:21]MH_I2C_Read... [13:49:21]Read from MH i2c: E2 62 00 [13:49:21]MH_I2C_Read... [13:49:21]Read from MH i2c: E2 62 00 E1 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [13:49:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FC 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:21]wFMCommunicate OK [13:49:21]SAM_PROTO_GetFieldsCounters done [13:49:21]requested_item shift.num is exist - process it [13:49:21]requested_item shift.opened is exist - process it [13:49:21]req_shift_opened [13:49:21]FM_GetShiftState [13:49:21]SAM_PROTO_GetShiftState [13:49:21]wFMCommunicate request_size=4 [13:49:21]MH_SAM_APDU [13:49:21]CAPDU: 80 13 01 00 [13:49:21]Write to MH i2c: E2 08 00 E2 1C 80 13 01 00 00 00 00 00 7B [13:49:21]Write i2c OK [13:49:21]MH_I2C_Read... [13:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:21]Read from MH i2c: E2 [13:49:21]MH_I2C_Read... [13:49:21]Read from MH i2c: E2 0E 00 [13:49:21]MH_I2C_Read... [13:49:21]Read from MH i2c: E2 0E 00 E2 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7D [13:49:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:49:21]wFMCommunicate OK [13:49:21]SAM_PROTO_GetShiftState done [13:49:21]FM_GetShiftState done [13:49:21]req_shift_opened done [13:49:21]requested_item shift.open_date is exist - process it [13:49:21]req_shift_open_date [13:49:21]req_shift_open_date done [13:49:21]produce_requested_data done [13:49:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201980,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:49:21]process_action_free close_receipt [13:49:21]json_value_free [13:49:21]json_value_free done [13:49:21]process_json_proto returns [13:49:21]Send response to host [13:49:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201980,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:49:21]free response buf [13:49:21]execute_script done [13:49:21]execute_script returns [13:49:21]free content buf [13:49:21]Sock 9.Close socket [13:49:21]Sock 9.Thread stoped [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:52]accept exits with 8 [13:53:52]New connection [13:53:52]New thread 3066641764 created [13:53:52]Thread 3066498404 joined [13:53:52]Waiting for new connection... [13:53:52] Sock 8.Parse request [13:53:52]Sock 8.Check first char [13:53:52]Sock 8.First char is OK [13:53:52]request: POST /json_proto HTTP/1.0 [13:53:52]Method: POST [13:53:52]URL: /json_proto [13:53:52]Method is POST - this is cgi request [13:53:52]url: /json_proto [13:53:52]query_string will be loaded in cgi processing [13:53:52]execute_cgi json_proto POST (null) [13:53:52]execute_cgi path=json_proto method=POST [13:53:52]POST find Content-Length [13:53:52]Host: 172.17.63.195:8080 [13:53:52]Content-Length: 675 [13:53:52]Content-Type: application/json [13:53:52] [13:53:52]POST finish read [13:53:52]Found Content-Length = 675 [13:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:52]execute_script... [13:53:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:52]POST & json_proto [13:53:52]process_json_proto [13:53:52]json parsed OK: [13:53:52]protocol is kg_v1.0 [13:53:52]action value=close_receipt [13:53:52]process_action close_receipt [13:53:52]cmd_close_receipt [13:53:52]MH_GetDate [13:53:52]Write to MH i2c: F0 00 00 E3 1C EE [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: F0 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: F0 09 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: F0 09 00 E3 1C 00 F1 45 1E 67 47 1B 1E 67 99 [13:53:52]GetLastDocTimeStamp 1730036958 [13:53:52]current date 1730037233 [13:53:52]FM_GetShiftState [13:53:52]SAM_PROTO_GetShiftState [13:53:52]wFMCommunicate request_size=4 [13:53:52]MH_SAM_APDU [13:53:52]CAPDU: 80 13 01 00 [13:53:52]Write to MH i2c: E2 08 00 E4 1C 80 13 01 00 00 00 00 00 7D [13:53:52]Write i2c OK [13:53:52]MH_I2C_Read... [13:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:52]Read from MH i2c: E2 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: E2 0E 00 [13:53:52]MH_I2C_Read... [13:53:52]Read from MH i2c: E2 0E 00 E4 1C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7F [13:53:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:53:52]wFMCommunicate OK [13:53:52]SAM_PROTO_GetShiftState done [13:53:52]FM_GetShiftState done [13:53:52]opened in 1729987312 [13:53:52]opened+sec_in_day 1730073712 [13:53:52]quantity*price = 80010 [13:53:52]sum+1 = 80011 [13:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 273 27.10.2024 13:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201981 ФПД: 258887580006079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135353&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201981&fm=258887580006079&tin=02508201610067®Number=0000000000091777&sum=80000 [13:53:53]StoreToDocumentArchive [13:53:53]shift 544 fd 201981 [13:53:53]save to /storage/0544/doc_00201981 [13:53:53]save last doc name /storage/0544/doc_00201981 to /storage/kkm_last_doc_name [13:53:53]save OK [13:53:53]Clear old archive folders... [13:53:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:53]tlvbuf is 01232680 [13:53:53]SAM_PROTO_ClearQueue [13:53:53]wFMCommunicate request_size=4 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 09 00 00 [13:53:53]Write to MH i2c: E2 08 00 F1 1C 80 09 00 00 00 00 00 00 7F [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 03 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 03 00 F1 1C 00 90 00 81 [13:53:53]RAPDU: 90 00 [13:53:53]wFMCommunicate OK [13:53:53]SAM_PROTO_ClearQueue done [13:53:53]KKMCreateOFDPacket [13:53:53]OFDProtocolAddRootSTLVToBuf [13:53:53]FM_MakeSignedData [13:53:53]FM_MakeSignedData [13:53:53]SAM_PROTO_SignData [13:53:53]wFMCommunicate request_size=4 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 0D 01 02 [13:53:53]Write to MH i2c: E2 08 00 F2 1C 80 0D 01 02 00 00 00 00 87 [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 03 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [13:53:53]RAPDU: 90 00 [13:53:53]wFMCommunicate OK [13:53:53]wFMCommunicate request_size=255 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 11 01 00 00 F4 03 04 00 F1 45 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 14 03 00 35 04 06 00 EB 74 F6 3E [13:53:53]Write to MH i2c: E2 02 01 F3 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 11 01 00 00 F4 03 04 00 F1 45 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 14 03 00 35 04 06 00 EB 74 F6 3E 00 00 DA [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 03 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [13:53:53]RAPDU: 90 00 [13:53:53]wFMCommunicate OK [13:53:53]wFMCommunicate request_size=7 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 0D 02 02 02 36 BF [13:53:53]Write to MH i2c: E2 0A 00 F4 1C 80 0D 02 02 02 00 36 BF 00 00 83 [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 03 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 03 00 F4 1C 00 90 00 84 [13:53:53]RAPDU: 90 00 [13:53:53]wFMCommunicate OK [13:53:53]wFMCommunicate request_size=4 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 0D 03 02 [13:53:53]Write to MH i2c: E2 08 00 F5 1C 80 0D 03 02 00 00 00 00 8C [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 0B 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 0B 00 F5 1C 00 2D 32 3F 2F 94 43 9B 65 90 00 31 [13:53:53]RAPDU: 2D 32 3F 2F 94 43 9B 65 90 00 [13:53:53]wFMCommunicate OK [13:53:53]SAM_PROTO_SignData done [13:53:53]FM_MakeSignedData done [13:53:53]CreateOFDProtocolMessage [13:53:53]wFMCommunicate request_size=4 [13:53:53]MH_SAM_APDU [13:53:53]CAPDU: 80 11 00 00 [13:53:53]Write to MH i2c: E2 08 00 F6 1C 80 11 00 00 00 00 00 00 8C [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:53]Read from MH i2c: E2 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 17 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: E2 17 00 F6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [13:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:53:53]wFMCommunicate OK [13:53:53]CreateOFDProtocolMessage done [13:53:53]OFDSenderStorePacket 201981 [13:53:53]StoreOFDPacket docnum=201981 [13:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 45 A8 04 01 F5 FA 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 11 01 00 00 F4 03 04 00 F1 45 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 14 03 00 35 04 06 00 EB 74 F6 3E 36 BF 2D 32 3F 2F 94 43 9B 65 [13:53:53]CheckFolder [13:53:53]dirname=/storage/ofd_packets [13:53:53]CheckFolder done [13:53:53]ProducePacketName [13:53:53]name=ofd_packets/00201981 [13:53:53]NVStorageSaveData ofd_packets/00201981 [13:53:53]File name is /storage/ofd_packets/00201981 [13:53:53]Write 298 bytes [13:53:53]NVStorageSaveData done [13:53:53]OFDSenderStorePacket done [13:53:53]KKMCreateOFDPacket done [13:53:53]NVStorageSaveData kkm_last_timestamp [13:53:53]File name is /storage/kkm_last_timestamp [13:53:53]Write 4 bytes [13:53:53]NVStorageSaveData done [13:53:53]ExternCall_PrintAddStr [13:53:53]wPrintStart [13:53:53]Write to MH i2c: 01 00 00 F7 1C 13 [13:53:53]Write i2c OK [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: 01 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: 01 07 00 [13:53:53]MH_I2C_Read... [13:53:53]Read from MH i2c: 01 07 00 F7 1C 00 00 00 00 00 FF 0F 28 [13:53:53]RasterBufferAndPrint [13:53:53]line Счет N : (1)449746 [13:53:53]line ИНН: 02508201610067 [13:53:53]line Контрольно-Кассовый Чек [13:53:53]line ПРОДАЖА [13:53:53]line ТРК (МРК, ГНК) : 33 [13:53:53]line Товар: 2710194210 [13:53:53]line ДТ-К-2 [13:53:53]line 10.500 * 76.20 [13:53:53]line = 800.10 [13:53:53]line НДС 12% НСП 1% [13:53:53]line > о реализуемом товаре [13:53:53]line ОКРУГЛЕНИЕ: -0.10 [13:53:53]line ИТОГО: 800.00 [13:53:53]line Внесено: 800.00 [13:53:53]line СДАЧА: 0.00 [13:53:53]line НСП 1% : 7.08 [13:53:53]line НДС 12% : 84.97 [13:53:53]line Наличными: 800.00 [13:53:53]line Безнал.: 0.00 [13:53:53]line Место: АЗС № 171 "Партнер Нефть" [13:53:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:53:53]line СНО: Общий режим [13:53:53]line Чек 273 27.10.2024 13:53 [13:53:53]line Смена: 544 ФФД: 1.0 [13:53:53]line ЗНМ: 0300000109 [13:53:53]line РНМ: 0000000000091777 [13:53:53]line Версия ККМ: 001 [13:53:53]line ФМ: 0000000000871756 [13:53:53]line ФД: 201981 [13:53:54]line ФПД: 258887580006079 [13:53:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135353&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201981&fm=258887580006079&tin=02508201610067®Number=0000000000091777&sum=80000 [13:53:54]OFD Sender: Processing packet 201981 [packets to send 112, broken 111] [13:53:54]ProducePacketName [13:53:54]name=ofd_packets/00201981 [13:53:54]OFD Sender: To server: pG, [13:53:54]CommunicateWithHost lk.salyk.kg:30040 [13:53:54]ConnectInit lk.salyk.kg [13:53:54]written 0, free lines is 4095 [13:53:54]Connected sock=10 [13:53:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 45 A8 04 01 F5 FA 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 11 01 00 00 F4 03 04 00 F1 45 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 14 03 00 35 04 06 00 EB 74 F6 3E 36 BF 2D 32 3F 2F 94 43 9B 65 [13:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D8 F9 47 00 FE A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 14 03 00 F4 03 04 00 AB F1 1D 67 B6 04 01 00 00 A5 EF A0 39 6E 91 72 54 [13:53:54]CommunicateWithHost err = 0 [13:53:54]CheckOFDResponse [13:53:54]1017 (14) - 77093643461234 [13:53:54]1041 (16) - 0000000000871756 [13:53:54]1040 (4) - 201981 [13:53:54]1012 (4) - 27.10.2024 07:54 [13:53:54]1206 (1) - 0 [13:53:54]OFD Sender: Remove packet 201981 [13:53:54]ProducePacketName [13:53:54]name=ofd_packets/00201981 [13:53:54]NVStorageDeleteData [13:53:54]Write to MH i2c: 01 00 00 22 1D 3F [13:53:54]Write i2c OK [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: 01 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: 01 07 00 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 8D 0C DF [13:53:54]RasterBufferAndPrint [13:53:54]line [13:53:54]line [13:53:54]line [13:53:54]line [13:53:54]line [13:53:54]written 0, free lines is 3218 [13:53:54]MH_Cut [13:53:54]Write to MH i2c: D1 01 00 29 1D 01 18 [13:53:54]Write i2c OK [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: D1 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: D1 01 00 [13:53:54]MH_I2C_Read... [13:53:54]Read from MH i2c: D1 01 00 29 1D 00 17 [13:53:54]Write to MH i2c: 01 00 00 2A 1D 47 [13:53:54]Write i2c OK [13:53:54]MH_I2C_Read... [13:53:54]OFD Sender: No OFD packet to send [13:53:55]*** Cut start [13:53:55]*** Purtial cut [13:53:55]*** Stage 1: CUTSNS_PIN = 1 [13:53:55]Read from MH i2c: 01 [13:53:55]MH_I2C_Read... [13:53:55]*** Stop cut motor [13:53:55]*** Cut end [13:53:55]Read from MH i2c: 01 07 00 [13:53:55]MH_I2C_Read... [13:53:55]Read from MH i2c: 01 07 00 2A 1D 00 00 00 00 00 FF 0F 5C [13:53:55]process_action close_receipt done [13:53:55]requested_data is exist [13:53:55]produce_requested_data [13:53:55]requested_item fm.sn is exist - process it [13:53:55]wFMCommunicate request_size=4 [13:53:55]MH_SAM_APDU [13:53:55]CAPDU: 80 11 00 00 [13:53:55]Write to MH i2c: E2 08 00 2B 1D 80 11 00 00 00 00 00 00 C2 [13:53:55]Write i2c OK [13:53:55]MH_I2C_Read... [13:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:55]Read from MH i2c: E2 [13:53:55]MH_I2C_Read... [13:53:55]Read from MH i2c: E2 17 00 [13:53:55]MH_I2C_Read... [13:53:55]Read from MH i2c: E2 17 00 2B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 17 [13:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:53:55]wFMCommunicate OK [13:53:55]requested_item fd.num is exist - process it [13:53:55]SAM_PROTO_GetFieldsCounters [13:53:55]wFMCommunicate request_size=4 [13:53:55]MH_SAM_APDU [13:53:55]CAPDU: 80 13 00 00 [13:53:55]Write to MH i2c: E2 08 00 2C 1D 80 13 00 00 00 00 00 00 C5 [13:53:55]Write i2c OK [13:53:55]MH_I2C_Read... [13:53:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:55]Read from MH i2c: E2 [13:53:55]MH_I2C_Read... [13:53:55]Read from MH i2c: E2 62 00 [13:53:55]MH_I2C_Read... [13:53:55]Read from MH i2c: E2 62 00 2C 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [13:53:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FD 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:55]wFMCommunicate OK [13:53:55]SAM_PROTO_GetFieldsCounters done [13:53:55]requested_item shift.num is exist - process it [13:53:55]requested_item shift.opened is exist - process it [13:53:55]req_shift_opened [13:53:55]FM_GetShiftState [13:53:55]SAM_PROTO_GetShiftState [13:53:55]wFMCommunicate request_size=4 [13:53:55]MH_SAM_APDU [13:53:55]CAPDU: 80 13 01 00 [13:53:55]Write to MH i2c: E2 08 00 2D 1D 80 13 01 00 00 00 00 00 C7 [13:53:55]Write i2c OK [13:53:55]MH_I2C_Read... [13:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:56]Read from MH i2c: E2 [13:53:56]MH_I2C_Read... [13:53:56]Read from MH i2c: E2 0E 00 [13:53:56]MH_I2C_Read... [13:53:56]Read from MH i2c: E2 0E 00 2D 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C9 [13:53:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:53:56]wFMCommunicate OK [13:53:56]SAM_PROTO_GetShiftState done [13:53:56]FM_GetShiftState done [13:53:56]req_shift_opened done [13:53:56]requested_item shift.open_date is exist - process it [13:53:56]req_shift_open_date [13:53:56]req_shift_open_date done [13:53:56]produce_requested_data done [13:53:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201981,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:53:56]process_action_free close_receipt [13:53:56]json_value_free [13:53:56]json_value_free done [13:53:56]process_json_proto returns [13:53:56]Send response to host [13:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201981,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:53:56]free response buf [13:53:56]execute_script done [13:53:56]execute_script returns [13:53:56]free content buf [13:53:56]Sock 8.Close socket [13:53:56]Sock 8.Thread stoped [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:29]accept exits with 9 [13:54:29]New connection [13:54:29]New thread 3066498404 created [13:54:29]Thread 3066641764 joined [13:54:29]Waiting for new connection... [13:54:29] Sock 9.Parse request [13:54:29]Sock 9.Check first char [13:54:29]Sock 9.First char is OK [13:54:29]request: POST /json_proto HTTP/1.0 [13:54:29]Method: POST [13:54:29]URL: /json_proto [13:54:29]Method is POST - this is cgi request [13:54:29]url: /json_proto [13:54:29]query_string will be loaded in cgi processing [13:54:29]execute_cgi json_proto POST (null) [13:54:29]execute_cgi path=json_proto method=POST [13:54:29]POST find Content-Length [13:54:29]Host: 172.17.63.195:8080 [13:54:29]Content-Length: 674 [13:54:29]Content-Type: application/json [13:54:29] [13:54:29]POST finish read [13:54:29]Found Content-Length = 674 [13:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:29]execute_script... [13:54: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)449747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:29]POST & json_proto [13:54:29]process_json_proto [13:54:29]json parsed OK: [13:54:29]protocol is kg_v1.0 [13:54:29]action value=close_receipt [13:54:29]process_action close_receipt [13:54:29]cmd_close_receipt [13:54:29]MH_GetDate [13:54:29]Write to MH i2c: F0 00 00 2E 1D 3A [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 09 00 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 09 00 2E 1D 00 16 46 1E 67 47 1B 1E 67 0B [13:54:29]GetLastDocTimeStamp 1730037233 [13:54:29]current date 1730037270 [13:54:29]FM_GetShiftState [13:54:29]SAM_PROTO_GetShiftState [13:54:29]wFMCommunicate request_size=4 [13:54:29]MH_SAM_APDU [13:54:29]CAPDU: 80 13 01 00 [13:54:29]Write to MH i2c: E2 08 00 2F 1D 80 13 01 00 00 00 00 00 C9 [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:29]Read from MH i2c: E2 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 0E 00 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 0E 00 2F 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CB [13:54:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:54:29]wFMCommunicate OK [13:54:29]SAM_PROTO_GetShiftState done [13:54:29]FM_GetShiftState done [13:54:29]opened in 1729987312 [13:54:29]opened+sec_in_day 1730073712 [13:54:29]quantity*price = 40005 [13:54:29]sum+1 = 40006 [13:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 274 27.10.2024 13:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201982 ФПД: 38306627615898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135430&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201982&fm=38306627615898&tin=02508201610067®Number=0000000000091777&sum=40000 [13:54:31]StoreToDocumentArchive [13:54:31]shift 544 fd 201982 [13:54:31]save to /storage/0544/doc_00201982 [13:54:31]save last doc name /storage/0544/doc_00201982 to /storage/kkm_last_doc_name [13:54:31]save OK [13:54:31]Clear old archive folders... [13:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:54:31]tlvbuf is 0123B630 [13:54:31]SAM_PROTO_ClearQueue [13:54:31]wFMCommunicate request_size=4 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 09 00 00 [13:54:31]Write to MH i2c: E2 08 00 3C 1D 80 09 00 00 00 00 00 00 CB [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [13:54:31]RAPDU: 90 00 [13:54:31]wFMCommunicate OK [13:54:31]SAM_PROTO_ClearQueue done [13:54:31]KKMCreateOFDPacket [13:54:31]OFDProtocolAddRootSTLVToBuf [13:54:31]FM_MakeSignedData [13:54:31]FM_MakeSignedData [13:54:31]SAM_PROTO_SignData [13:54:31]wFMCommunicate request_size=4 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 0D 01 02 [13:54:31]Write to MH i2c: E2 08 00 3D 1D 80 0D 01 02 00 00 00 00 D3 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 3D 1D 00 90 00 CE [13:54:31]RAPDU: 90 00 [13:54:31]wFMCommunicate OK [13:54:31]wFMCommunicate request_size=255 [13:54:31]MH_SAM_APDU [13:54: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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 16 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 14 03 00 35 04 06 00 22 D6 F4 EE [13:54:31]Write to MH i2c: E2 02 01 3E 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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 16 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 14 03 00 35 04 06 00 22 D6 F4 EE 00 00 55 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [13:54:31]RAPDU: 90 00 [13:54:31]wFMCommunicate OK [13:54:31]wFMCommunicate request_size=7 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 0D 02 02 02 7C 9A [13:54:31]Write to MH i2c: E2 0A 00 3F 1D 80 0D 02 02 02 00 7C 9A 00 00 F0 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 3F 1D 00 90 00 D0 [13:54:31]RAPDU: 90 00 [13:54:31]wFMCommunicate OK [13:54:31]wFMCommunicate request_size=4 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 0D 03 02 [13:54:31]Write to MH i2c: E2 08 00 40 1D 80 0D 03 02 00 00 00 00 D8 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 0B 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 0B 00 40 1D 00 76 1D 3B A4 64 26 87 ED 90 00 49 [13:54:31]RAPDU: 76 1D 3B A4 64 26 87 ED 90 00 [13:54:31]wFMCommunicate OK [13:54:31]SAM_PROTO_SignData done [13:54:31]FM_MakeSignedData done [13:54:31]CreateOFDProtocolMessage [13:54:31]wFMCommunicate request_size=4 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 11 00 00 [13:54:31]Write to MH i2c: E2 08 00 41 1D 80 11 00 00 00 00 00 00 D8 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 17 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 17 00 41 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2D [13:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:54:31]wFMCommunicate OK [13:54:31]CreateOFDProtocolMessage done [13:54:31]OFDSenderStorePacket 201982 [13:54:31]StoreOFDPacket docnum=201982 [13:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0A F6 04 01 EA 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 16 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 14 03 00 35 04 06 00 22 D6 F4 EE 7C 9A 76 1D 3B A4 64 26 87 ED [13:54:31]CheckFolder [13:54:31]dirname=/storage/ofd_packets [13:54:31]CheckFolder done [13:54:31]ProducePacketName [13:54:31]name=ofd_packets/00201982 [13:54:31]NVStorageSaveData ofd_packets/00201982 [13:54:31]File name is /storage/ofd_packets/00201982 [13:54:31]Write 298 bytes [13:54:31]NVStorageSaveData done [13:54:31]OFDSenderStorePacket done [13:54:31]KKMCreateOFDPacket done [13:54:31]NVStorageSaveData kkm_last_timestamp [13:54:31]File name is /storage/kkm_last_timestamp [13:54:31]Write 4 bytes [13:54:31]NVStorageSaveData done [13:54:31]ExternCall_PrintAddStr [13:54:31]wPrintStart [13:54:31]Write to MH i2c: 01 00 00 42 1D 5F [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 07 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 07 00 42 1D 00 00 00 00 00 FF 0F 74 [13:54:31]RasterBufferAndPrint [13:54:31]line Счет N : (1)449747 [13:54:31]line ИНН: 02508201610067 [13:54:31]line Контрольно-Кассовый Чек [13:54:31]line ПРОДАЖА [13:54:31]line ТРК (МРК, ГНК) : 43 [13:54:31]line Товар: 2710194210 [13:54:31]line ДТ-К-2 [13:54:31]line 5.250 * 76.20 [13:54:31]line = 400.05 [13:54:31]line НДС 12% НСП 1% [13:54:31]line > о реализуемом товаре [13:54:31]line ОКРУГЛЕНИЕ: -0.05 [13:54:31]line ИТОГО: 400.00 [13:54:31]line Внесено: 400.00 [13:54:31]line СДАЧА: 0.00 [13:54:31]line НСП 1% : 3.54 [13:54:31]line НДС 12% : 42.48 [13:54:31]line Наличными: 400.00 [13:54:31]line Безнал.: 0.00 [13:54:31]line Место: АЗС № 171 "Партнер Нефть" [13:54:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:54:31]line СНО: Общий режим [13:54:31]line Чек 274 27.10.2024 13:54 [13:54:31]line Смена: 544 ФФД: 1.0 [13:54:31]line ЗНМ: 0300000109 [13:54:31]line РНМ: 0000000000091777 [13:54:31]line Версия ККМ: 001 [13:54:31]line ФМ: 0000000000871756 [13:54:31]line ФД: 201982 [13:54:31]line ФПД: 38306627615898 [13:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135430&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201982&fm=38306627615898&tin=02508201610067®Number=0000000000091777&sum=40000 [13:54:31]OFD Sender: Processing packet 201982 [packets to send 112, broken 111] [13:54:31]ProducePacketName [13:54:31]name=ofd_packets/00201982 [13:54:31]OFD Sender: To server: pG, [13:54:31]CommunicateWithHost lk.salyk.kg:30040 [13:54:31]ConnectInit lk.salyk.kg [13:54:31]written 0, free lines is 4095 [13:54:32]Connected sock=8 [13:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0A F6 04 01 EA 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 16 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 14 03 00 35 04 06 00 22 D6 F4 EE 7C 9A 76 1D 3B A4 64 26 87 ED [13:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F0 12 47 00 57 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 14 03 00 F4 03 04 00 D0 F1 1D 67 B6 04 01 00 00 E7 A1 63 4F F1 99 1D 33 [13:54:32]CommunicateWithHost err = 0 [13:54:32]CheckOFDResponse [13:54:32]1017 (14) - 77093643461234 [13:54:32]1041 (16) - 0000000000871756 [13:54:32]1040 (4) - 201982 [13:54:32]1012 (4) - 27.10.2024 07:54 [13:54:32]1206 (1) - 0 [13:54:32]OFD Sender: Remove packet 201982 [13:54:32]ProducePacketName [13:54:32]name=ofd_packets/00201982 [13:54:32]NVStorageDeleteData [13:54:32]Write to MH i2c: 01 00 00 6D 1D 8A [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 07 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 99 0C 36 [13:54:32]RasterBufferAndPrint [13:54:32]line [13:54:32]line [13:54:32]line [13:54:32]line [13:54:32]line [13:54:32]written 0, free lines is 3231 [13:54:32]MH_Cut [13:54:32]Write to MH i2c: D1 01 00 74 1D 01 63 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: D1 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: D1 01 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: D1 01 00 74 1D 00 62 [13:54:32]Write to MH i2c: 01 00 00 75 1D 92 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]OFD Sender: No OFD packet to send [13:54:33]*** Cut start [13:54:33]*** Purtial cut [13:54:33]*** Stage 1: CUTSNS_PIN = 1 [13:54:33]Read from MH i2c: 01 [13:54:33]MH_I2C_Read... [13:54:33]*** Stop cut motor [13:54:33]*** Cut end [13:54:33]Read from MH i2c: 01 07 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 FF 0F A7 [13:54:33]process_action close_receipt done [13:54:33]requested_data is exist [13:54:33]produce_requested_data [13:54:33]requested_item fm.sn is exist - process it [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 11 00 00 [13:54:33]Write to MH i2c: E2 08 00 76 1D 80 11 00 00 00 00 00 00 0D [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 17 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 17 00 76 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 62 [13:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:54:33]wFMCommunicate OK [13:54:33]requested_item fd.num is exist - process it [13:54:33]SAM_PROTO_GetFieldsCounters [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 13 00 00 [13:54:33]Write to MH i2c: E2 08 00 77 1D 80 13 00 00 00 00 00 00 10 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 62 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 62 00 77 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [13:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FE 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_GetFieldsCounters done [13:54:33]requested_item shift.num is exist - process it [13:54:33]requested_item shift.opened is exist - process it [13:54:33]req_shift_opened [13:54:33]FM_GetShiftState [13:54:33]SAM_PROTO_GetShiftState [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 13 01 00 [13:54:33]Write to MH i2c: E2 08 00 78 1D 80 13 01 00 00 00 00 00 12 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0E 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0E 00 78 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 14 [13:54:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_GetShiftState done [13:54:33]FM_GetShiftState done [13:54:33]req_shift_opened done [13:54:33]requested_item shift.open_date is exist - process it [13:54:33]req_shift_open_date [13:54:33]req_shift_open_date done [13:54:33]produce_requested_data done [13:54:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201982,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:54:33]process_action_free close_receipt [13:54:33]json_value_free [13:54:33]json_value_free done [13:54:33]process_json_proto returns [13:54:33]Send response to host [13:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201982,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:54:33]free response buf [13:54:33]execute_script done [13:54:33]execute_script returns [13:54:33]free content buf [13:54:33]Sock 9.Close socket [13:54:33]Sock 9.Thread stoped [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]accept exits with 10 [13:54:52]New connection [13:54:52]New thread 3066641764 created [13:54:52]Thread 3066498404 joined [13:54:52]Waiting for new connection... [13:54:52] Sock 10.Parse request [13:54:52]Sock 10.Check first char [13:54:52]Sock 10.First char is OK [13:54:52]request: POST /json_proto HTTP/1.0 [13:54:52]Method: POST [13:54:52]URL: /json_proto [13:54:52]Method is POST - this is cgi request [13:54:52]url: /json_proto [13:54:52]query_string will be loaded in cgi processing [13:54:52]execute_cgi json_proto POST (null) [13:54:52]execute_cgi path=json_proto method=POST [13:54:52]POST find Content-Length [13:54:52]Host: 172.17.63.195:8080 [13:54:52]Content-Length: 677 [13:54:52]Content-Type: application/json [13:54:52] [13:54:52]POST finish read [13:54:52]Found Content-Length = 677 [13:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:52]execute_script... [13:54:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:52]POST & json_proto [13:54:52]process_json_proto [13:54:52]json parsed OK: [13:54:52]protocol is kg_v1.0 [13:54:52]action value=close_receipt [13:54:52]process_action close_receipt [13:54:52]cmd_close_receipt [13:54:52]MH_GetDate [13:54:52]Write to MH i2c: F0 00 00 79 1D 85 [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: F0 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: F0 09 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: F0 09 00 79 1D 00 2D 46 1E 67 47 1B 1E 67 6D [13:54:52]GetLastDocTimeStamp 1730037270 [13:54:52]current date 1730037293 [13:54:52]FM_GetShiftState [13:54:52]SAM_PROTO_GetShiftState [13:54:52]wFMCommunicate request_size=4 [13:54:52]MH_SAM_APDU [13:54:52]CAPDU: 80 13 01 00 [13:54:52]Write to MH i2c: E2 08 00 7A 1D 80 13 01 00 00 00 00 00 14 [13:54:52]Write i2c OK [13:54:52]MH_I2C_Read... [13:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:52]Read from MH i2c: E2 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 0E 00 [13:54:52]MH_I2C_Read... [13:54:52]Read from MH i2c: E2 0E 00 7A 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 16 [13:54:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:54:52]wFMCommunicate OK [13:54:52]SAM_PROTO_GetShiftState done [13:54:52]FM_GetShiftState done [13:54:52]opened in 1729987312 [13:54:52]opened+sec_in_day 1730073712 [13:54:52]quantity*price = 30038 [13:54:52]sum+1 = 30039 [13:54:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 275 27.10.2024 13:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201983 ФПД: 105358327195523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135453&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201983&fm=105358327195523&tin=02508201610067®Number=0000000000091777&sum=30000 [13:54:53]StoreToDocumentArchive [13:54:53]shift 544 fd 201983 [13:54:53]save to /storage/0544/doc_00201983 [13:54:53]save last doc name /storage/0544/doc_00201983 to /storage/kkm_last_doc_name [13:54:53]save OK [13:54:53]Clear old archive folders... [13:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:53]tlvbuf is B6E8ECD0 [13:54:53]SAM_PROTO_ClearQueue [13:54:53]wFMCommunicate request_size=4 [13:54:53]MH_SAM_APDU [13:54:53]CAPDU: 80 09 00 00 [13:54:53]Write to MH i2c: E2 08 00 87 1D 80 09 00 00 00 00 00 00 16 [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:53]Read from MH i2c: E2 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 03 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 03 00 87 1D 00 90 00 18 [13:54:53]RAPDU: 90 00 [13:54:53]wFMCommunicate OK [13:54:53]SAM_PROTO_ClearQueue done [13:54:53]KKMCreateOFDPacket [13:54:53]OFDProtocolAddRootSTLVToBuf [13:54:53]FM_MakeSignedData [13:54:53]FM_MakeSignedData [13:54:53]SAM_PROTO_SignData [13:54:53]wFMCommunicate request_size=4 [13:54:53]MH_SAM_APDU [13:54:53]CAPDU: 80 0D 01 02 [13:54:53]Write to MH i2c: E2 08 00 88 1D 80 0D 01 02 00 00 00 00 1E [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:53]Read from MH i2c: E2 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 03 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [13:54:53]RAPDU: 90 00 [13:54:53]wFMCommunicate OK [13:54:53]wFMCommunicate request_size=255 [13:54:53]MH_SAM_APDU [13:54:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 13 01 00 00 F4 03 04 00 2D 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 14 03 00 35 04 06 00 5F [13:54:53]Write to MH i2c: E2 02 01 89 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 32 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 13 01 00 00 F4 03 04 00 2D 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 14 03 00 35 04 06 00 5F 00 00 49 [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:53]Read from MH i2c: E2 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 03 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 03 00 89 1D 00 90 00 1A [13:54:53]RAPDU: 90 00 [13:54:53]wFMCommunicate OK [13:54:53]wFMCommunicate request_size=10 [13:54:53]MH_SAM_APDU [13:54:53]CAPDU: 80 0D 02 02 05 D2 A5 AA A7 83 [13:54:53]Write to MH i2c: E2 0D 00 8A 1D 80 0D 02 02 05 00 D2 A5 AA A7 83 00 00 76 [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:53]Read from MH i2c: E2 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 03 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 03 00 8A 1D 00 90 00 1B [13:54:53]RAPDU: 90 00 [13:54:53]wFMCommunicate OK [13:54:53]wFMCommunicate request_size=4 [13:54:53]MH_SAM_APDU [13:54:53]CAPDU: 80 0D 03 02 [13:54:53]Write to MH i2c: E2 08 00 8B 1D 80 0D 03 02 00 00 00 00 23 [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:53]Read from MH i2c: E2 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 0B 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 0B 00 8B 1D 00 83 9F C2 C6 84 39 63 2E 90 00 1C [13:54:53]RAPDU: 83 9F C2 C6 84 39 63 2E 90 00 [13:54:53]wFMCommunicate OK [13:54:53]SAM_PROTO_SignData done [13:54:53]FM_MakeSignedData done [13:54:53]CreateOFDProtocolMessage [13:54:53]wFMCommunicate request_size=4 [13:54:53]MH_SAM_APDU [13:54:53]CAPDU: 80 11 00 00 [13:54:53]Write to MH i2c: E2 08 00 8C 1D 80 11 00 00 00 00 00 00 23 [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:53]Read from MH i2c: E2 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 17 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: E2 17 00 8C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 78 [13:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:54:53]wFMCommunicate OK [13:54:53]CreateOFDProtocolMessage done [13:54:53]OFDSenderStorePacket 201983 [13:54:53]StoreOFDPacket docnum=201983 [13:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F1 AE 07 01 6A 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 13 01 00 00 F4 03 04 00 2D 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 14 03 00 35 04 06 00 5F D2 A5 AA A7 83 83 9F C2 C6 84 39 63 2E [13:54:53]CheckFolder [13:54:53]dirname=/storage/ofd_packets [13:54:53]CheckFolder done [13:54:53]ProducePacketName [13:54:53]name=ofd_packets/00201983 [13:54:53]NVStorageSaveData ofd_packets/00201983 [13:54:53]File name is /storage/ofd_packets/00201983 [13:54:53]Write 301 bytes [13:54:53]NVStorageSaveData done [13:54:53]OFDSenderStorePacket done [13:54:53]KKMCreateOFDPacket done [13:54:53]NVStorageSaveData kkm_last_timestamp [13:54:53]File name is /storage/kkm_last_timestamp [13:54:53]Write 4 bytes [13:54:53]NVStorageSaveData done [13:54:53]ExternCall_PrintAddStr [13:54:53]wPrintStart [13:54:53]Write to MH i2c: 01 00 00 8D 1D AA [13:54:53]Write i2c OK [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: 01 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: 01 07 00 [13:54:53]MH_I2C_Read... [13:54:53]Read from MH i2c: 01 07 00 8D 1D 00 00 00 00 00 FF 0F BF [13:54:53]RasterBufferAndPrint [13:54:53]line Счет N : (1)449748 [13:54:53]line ИНН: 02508201610067 [13:54:53]line Контрольно-Кассовый Чек [13:54:53]line ПРОДАЖА [13:54:53]line ТРК (МРК, ГНК) : 62 [13:54:53]line Товар: 2710124130 [13:54:53]line Аи-92-К-2 [13:54:53]line 4.490 * 66.90 [13:54:53]line = 300.38 [13:54:53]line НДС 12% НСП 1% [13:54:53]line > о реализуемом товаре [13:54:53]line ОКРУГЛЕНИЕ: -0.38 [13:54:53]line ИТОГО: 300.00 [13:54:53]line Внесено: 300.00 [13:54:53]line СДАЧА: 0.00 [13:54:53]line НСП 1% : 2.66 [13:54:53]line НДС 12% : 31.90 [13:54:53]line Наличными: 300.00 [13:54:53]line Безнал.: 0.00 [13:54:53]line Место: АЗС № 171 "Партнер Нефть" [13:54:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:54:53]line СНО: Общий режим [13:54:53]line Чек 275 27.10.2024 13:54 [13:54:53]line Смена: 544 ФФД: 1.0 [13:54:53]line ЗНМ: 0300000109 [13:54:53]line РНМ: 0000000000091777 [13:54:53]line Версия ККМ: 001 [13:54:53]line ФМ: 0000000000871756 [13:54:53]line ФД: 201983 [13:54:53]line ФПД: 105358327195523 [13:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135453&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201983&fm=105358327195523&tin=02508201610067®Number=0000000000091777&sum=30000 [13:54:54]OFD Sender: Processing packet 201983 [packets to send 112, broken 111] [13:54:54]ProducePacketName [13:54:54]name=ofd_packets/00201983 [13:54:54]OFD Sender: To server: pG, [13:54:54]CommunicateWithHost lk.salyk.kg:30040 [13:54:54]ConnectInit lk.salyk.kg [13:54:54]written 0, free lines is 4095 [13:54:54]Connected sock=9 [13:54:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F1 AE 07 01 6A 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 13 01 00 00 F4 03 04 00 2D 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 14 03 00 35 04 06 00 5F D2 A5 AA A7 83 83 9F C2 C6 84 39 63 2E [13:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 79 68 47 00 2F 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 14 03 00 F4 03 04 00 E7 F1 1D 67 B6 04 01 00 00 00 45 37 2D D3 89 1D 39 [13:54:54]CommunicateWithHost err = 0 [13:54:54]CheckOFDResponse [13:54:54]1017 (14) - 77093643461234 [13:54:54]1041 (16) - 0000000000871756 [13:54:54]1040 (4) - 201983 [13:54:54]1012 (4) - 27.10.2024 07:55 [13:54:54]1206 (1) - 0 [13:54:54]OFD Sender: Remove packet 201983 [13:54:54]ProducePacketName [13:54:54]name=ofd_packets/00201983 [13:54:54]NVStorageDeleteData [13:54:54]Write to MH i2c: 01 00 00 B8 1D D5 [13:54:54]Write i2c OK [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: 01 [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: 01 07 00 [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: 01 07 00 B8 1D 00 00 00 00 00 95 0C 7D [13:54:54]RasterBufferAndPrint [13:54:54]line [13:54:54]line [13:54:54]line [13:54:54]line [13:54:54]line [13:54:54]written 0, free lines is 3226 [13:54:54]MH_Cut [13:54:54]Write to MH i2c: D1 01 00 BF 1D 01 AE [13:54:54]Write i2c OK [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: D1 [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: D1 01 00 [13:54:54]MH_I2C_Read... [13:54:54]Read from MH i2c: D1 01 00 BF 1D 00 AD [13:54:54]Write to MH i2c: 01 00 00 C0 1D DD [13:54:54]Write i2c OK [13:54:54]MH_I2C_Read... [13:54:55]OFD Sender: No OFD packet to send [13:54:55]*** Cut start [13:54:55]*** Purtial cut [13:54:55]*** Stage 1: CUTSNS_PIN = 1 [13:54:55]Read from MH i2c: 01 [13:54:55]MH_I2C_Read... [13:54:55]*** Stop cut motor [13:54:55]*** Cut end [13:54:55]Read from MH i2c: 01 07 00 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: 01 07 00 C0 1D 00 00 00 00 00 FF 0F F2 [13:54:55]process_action close_receipt done [13:54:55]requested_data is exist [13:54:55]produce_requested_data [13:54:55]requested_item fm.sn is exist - process it [13:54:55]wFMCommunicate request_size=4 [13:54:55]MH_SAM_APDU [13:54:55]CAPDU: 80 11 00 00 [13:54:55]Write to MH i2c: E2 08 00 C1 1D 80 11 00 00 00 00 00 00 58 [13:54:55]Write i2c OK [13:54:55]MH_I2C_Read... [13:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:55]Read from MH i2c: E2 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 17 00 [13:54:55]MH_I2C_Read... [13:54:55]Read from MH i2c: E2 17 00 C1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AD [13:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:54:55]wFMCommunicate OK [13:54:55]requested_item fd.num is exist - process it [13:54:55]SAM_PROTO_GetFieldsCounters [13:54:55]wFMCommunicate request_size=4 [13:54:55]MH_SAM_APDU [13:54:55]CAPDU: 80 13 00 00 [13:54:55]Write to MH i2c: E2 08 00 C2 1D 80 13 00 00 00 00 00 00 5B [13:54:55]Write i2c OK [13:54:55]MH_I2C_Read... [13:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:56]Read from MH i2c: E2 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 62 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 62 00 C2 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [13:54:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FF 14 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:56]wFMCommunicate OK [13:54:56]SAM_PROTO_GetFieldsCounters done [13:54:56]requested_item shift.num is exist - process it [13:54:56]requested_item shift.opened is exist - process it [13:54:56]req_shift_opened [13:54:56]FM_GetShiftState [13:54:56]SAM_PROTO_GetShiftState [13:54:56]wFMCommunicate request_size=4 [13:54:56]MH_SAM_APDU [13:54:56]CAPDU: 80 13 01 00 [13:54:56]Write to MH i2c: E2 08 00 C3 1D 80 13 01 00 00 00 00 00 5D [13:54:56]Write i2c OK [13:54:56]MH_I2C_Read... [13:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:56]Read from MH i2c: E2 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 0E 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 0E 00 C3 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5F [13:54:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:54:56]wFMCommunicate OK [13:54:56]SAM_PROTO_GetShiftState done [13:54:56]FM_GetShiftState done [13:54:56]req_shift_opened done [13:54:56]requested_item shift.open_date is exist - process it [13:54:56]req_shift_open_date [13:54:56]req_shift_open_date done [13:54:56]produce_requested_data done [13:54:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201983,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:54:56]process_action_free close_receipt [13:54:56]json_value_free [13:54:56]json_value_free done [13:54:56]process_json_proto returns [13:54:56]Send response to host [13:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201983,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:54:56]free response buf [13:54:56]execute_script done [13:54:56]execute_script returns [13:54:56]free content buf [13:54:56]Sock 10.Close socket [13:54:56]Sock 10.Thread stoped [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:43]accept exits with 8 [13:55:43]New connection [13:55:43]New thread 3066498404 created [13:55:43]Thread 3066641764 joined [13:55:43]Waiting for new connection... [13:55:43] Sock 8.Parse request [13:55:43]Sock 8.Check first char [13:55:43]Sock 8.First char is OK [13:55:43]request: POST /json_proto HTTP/1.0 [13:55:43]Method: POST [13:55:43]URL: /json_proto [13:55:43]Method is POST - this is cgi request [13:55:43]url: /json_proto [13:55:43]query_string will be loaded in cgi processing [13:55:43]execute_cgi json_proto POST (null) [13:55:43]execute_cgi path=json_proto method=POST [13:55:43]POST find Content-Length [13:55:43]Host: 172.17.63.195:8080 [13:55:43]Content-Length: 677 [13:55:43]Content-Type: application/json [13:55:43] [13:55:43]POST finish read [13:55:43]Found Content-Length = 677 [13:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:43]execute_script... [13:55:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:43]POST & json_proto [13:55:43]process_json_proto [13:55:43]json parsed OK: [13:55:43]protocol is kg_v1.0 [13:55:43]action value=close_receipt [13:55:43]process_action close_receipt [13:55:43]cmd_close_receipt [13:55:43]MH_GetDate [13:55:43]Write to MH i2c: F0 00 00 C4 1D D0 [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: F0 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: F0 09 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: F0 09 00 C4 1D 00 60 46 1E 67 47 1B 1E 67 EB [13:55:43]GetLastDocTimeStamp 1730037293 [13:55:43]current date 1730037344 [13:55:43]FM_GetShiftState [13:55:43]SAM_PROTO_GetShiftState [13:55:43]wFMCommunicate request_size=4 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 13 01 00 [13:55:43]Write to MH i2c: E2 08 00 C5 1D 80 13 01 00 00 00 00 00 5F [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 0E 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 0E 00 C5 1D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 61 [13:55:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:55:43]wFMCommunicate OK [13:55:43]SAM_PROTO_GetShiftState done [13:55:43]FM_GetShiftState done [13:55:43]opened in 1729987312 [13:55:43]opened+sec_in_day 1730073712 [13:55:43]quantity*price = 30038 [13:55:43]sum+1 = 30039 [13:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 276 27.10.2024 13:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201984 ФПД: 167154519554477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135544&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201984&fm=167154519554477&tin=02508201610067®Number=0000000000091777&sum=30000 [13:55:44]StoreToDocumentArchive [13:55:44]shift 544 fd 201984 [13:55:44]save to /storage/0544/doc_00201984 [13:55:44]save last doc name /storage/0544/doc_00201984 to /storage/kkm_last_doc_name [13:55:44]save OK [13:55:44]Clear old archive folders... [13:55:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:44]tlvbuf is B6F0C230 [13:55:44]SAM_PROTO_ClearQueue [13:55:44]wFMCommunicate request_size=4 [13:55:44]MH_SAM_APDU [13:55:44]CAPDU: 80 09 00 00 [13:55:44]Write to MH i2c: E2 08 00 D2 1D 80 09 00 00 00 00 00 00 61 [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:44]Read from MH i2c: E2 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 03 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 03 00 D2 1D 00 90 00 63 [13:55:44]RAPDU: 90 00 [13:55:44]wFMCommunicate OK [13:55:44]SAM_PROTO_ClearQueue done [13:55:44]KKMCreateOFDPacket [13:55:44]OFDProtocolAddRootSTLVToBuf [13:55:44]FM_MakeSignedData [13:55:44]FM_MakeSignedData [13:55:44]SAM_PROTO_SignData [13:55:44]wFMCommunicate request_size=4 [13:55:44]MH_SAM_APDU [13:55:44]CAPDU: 80 0D 01 02 [13:55:44]Write to MH i2c: E2 08 00 D3 1D 80 0D 01 02 00 00 00 00 69 [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:44]Read from MH i2c: E2 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 03 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 03 00 D3 1D 00 90 00 64 [13:55:44]RAPDU: 90 00 [13:55:44]wFMCommunicate OK [13:55:44]wFMCommunicate request_size=255 [13:55:44]MH_SAM_APDU [13:55:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 01 00 00 F4 03 04 00 60 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 15 03 00 35 04 06 00 98 [13:55:44]Write to MH i2c: E2 02 01 D4 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 32 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 14 01 00 00 F4 03 04 00 60 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 15 03 00 35 04 06 00 98 00 00 03 [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:44]Read from MH i2c: E2 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 03 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 03 00 D4 1D 00 90 00 65 [13:55:44]RAPDU: 90 00 [13:55:44]wFMCommunicate OK [13:55:44]wFMCommunicate request_size=10 [13:55:44]MH_SAM_APDU [13:55:44]CAPDU: 80 0D 02 02 05 06 B1 C2 B9 AD [13:55:44]Write to MH i2c: E2 0D 00 D5 1D 80 0D 02 02 05 00 06 B1 C2 B9 AD 00 00 55 [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:44]Read from MH i2c: E2 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 03 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 03 00 D5 1D 00 90 00 66 [13:55:44]RAPDU: 90 00 [13:55:44]wFMCommunicate OK [13:55:44]wFMCommunicate request_size=4 [13:55:44]MH_SAM_APDU [13:55:44]CAPDU: 80 0D 03 02 [13:55:44]Write to MH i2c: E2 08 00 D6 1D 80 0D 03 02 00 00 00 00 6E [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:44]Read from MH i2c: E2 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 0B 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 0B 00 D6 1D 00 B1 B5 1F 5B 97 AA EF 98 90 00 17 [13:55:44]RAPDU: B1 B5 1F 5B 97 AA EF 98 90 00 [13:55:44]wFMCommunicate OK [13:55:44]SAM_PROTO_SignData done [13:55:44]FM_MakeSignedData done [13:55:44]CreateOFDProtocolMessage [13:55:44]wFMCommunicate request_size=4 [13:55:44]MH_SAM_APDU [13:55:44]CAPDU: 80 11 00 00 [13:55:44]Write to MH i2c: E2 08 00 D7 1D 80 11 00 00 00 00 00 00 6E [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:44]Read from MH i2c: E2 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 17 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: E2 17 00 D7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C3 [13:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:55:44]wFMCommunicate OK [13:55:44]CreateOFDProtocolMessage done [13:55:44]OFDSenderStorePacket 201984 [13:55:44]StoreOFDPacket docnum=201984 [13:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 13 BF 07 01 D4 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 01 00 00 F4 03 04 00 60 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 15 03 00 35 04 06 00 98 06 B1 C2 B9 AD B1 B5 1F 5B 97 AA EF 98 [13:55:44]CheckFolder [13:55:44]dirname=/storage/ofd_packets [13:55:44]CheckFolder done [13:55:44]ProducePacketName [13:55:44]name=ofd_packets/00201984 [13:55:44]NVStorageSaveData ofd_packets/00201984 [13:55:44]File name is /storage/ofd_packets/00201984 [13:55:44]Write 301 bytes [13:55:44]NVStorageSaveData done [13:55:44]OFDSenderStorePacket done [13:55:44]KKMCreateOFDPacket done [13:55:44]NVStorageSaveData kkm_last_timestamp [13:55:44]File name is /storage/kkm_last_timestamp [13:55:44]Write 4 bytes [13:55:44]NVStorageSaveData done [13:55:44]ExternCall_PrintAddStr [13:55:44]wPrintStart [13:55:44]Write to MH i2c: 01 00 00 D8 1D F5 [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: 01 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: 01 07 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: 01 07 00 D8 1D 00 00 00 00 00 FF 0F 0A [13:55:44]RasterBufferAndPrint [13:55:44]line Счет N : (1)449749 [13:55:44]line ИНН: 02508201610067 [13:55:44]line Контрольно-Кассовый Чек [13:55:44]line ПРОДАЖА [13:55:44]line ТРК (МРК, ГНК) : 41 [13:55:44]line Товар: 2710124130 [13:55:44]line Аи-92-К-2 [13:55:44]line 4.490 * 66.90 [13:55:44]line = 300.38 [13:55:44]line НДС 12% НСП 1% [13:55:44]line > о реализуемом товаре [13:55:44]line ОКРУГЛЕНИЕ: -0.38 [13:55:44]line ИТОГО: 300.00 [13:55:44]line Внесено: 300.00 [13:55:44]line СДАЧА: 0.00 [13:55:44]line НСП 1% : 2.66 [13:55:44]line НДС 12% : 31.90 [13:55:44]line Наличными: 300.00 [13:55:44]line Безнал.: 0.00 [13:55:44]line Место: АЗС № 171 "Партнер Нефть" [13:55:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:55:44]line СНО: Общий режим [13:55:44]line Чек 276 27.10.2024 13:55 [13:55:44]line Смена: 544 ФФД: 1.0 [13:55:44]line ЗНМ: 0300000109 [13:55:44]line РНМ: 0000000000091777 [13:55:44]line Версия ККМ: 001 [13:55:44]line ФМ: 0000000000871756 [13:55:44]line ФД: 201984 [13:55:44]line ФПД: 167154519554477 [13:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135544&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201984&fm=167154519554477&tin=02508201610067®Number=0000000000091777&sum=30000 [13:55:45]OFD Sender: Processing packet 201984 [packets to send 112, broken 111] [13:55:45]ProducePacketName [13:55:45]name=ofd_packets/00201984 [13:55:45]OFD Sender: To server: pG, [13:55:45]CommunicateWithHost lk.salyk.kg:30040 [13:55:45]ConnectInit lk.salyk.kg [13:55:45]written 0, free lines is 4095 [13:55:45]Connected sock=10 [13:55:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 13 BF 07 01 D4 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 14 01 00 00 F4 03 04 00 60 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 15 03 00 35 04 06 00 98 06 B1 C2 B9 AD B1 B5 1F 5B 97 AA EF 98 [13:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F9 E4 47 00 3D CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 15 03 00 F4 03 04 00 1A F2 1D 67 B6 04 01 00 00 E7 29 25 9F B8 F9 E5 EA [13:55:45]CommunicateWithHost err = 0 [13:55:45]CheckOFDResponse [13:55:45]1017 (14) - 77093643461234 [13:55:45]1041 (16) - 0000000000871756 [13:55:45]1040 (4) - 201984 [13:55:45]1012 (4) - 27.10.2024 07:56 [13:55:45]1206 (1) - 0 [13:55:45]OFD Sender: Remove packet 201984 [13:55:45]ProducePacketName [13:55:45]name=ofd_packets/00201984 [13:55:45]NVStorageDeleteData [13:55:45]Write to MH i2c: 01 00 00 03 1E 21 [13:55:45]Write i2c OK [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: 01 [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: 01 07 00 [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: 01 07 00 03 1E 00 00 00 00 00 97 0C CB [13:55:45]RasterBufferAndPrint [13:55:45]line [13:55:45]line [13:55:45]line [13:55:45]line [13:55:45]line [13:55:45]written 0, free lines is 3227 [13:55:45]MH_Cut [13:55:45]Write to MH i2c: D1 01 00 0A 1E 01 FA [13:55:45]Write i2c OK [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: D1 [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: D1 01 00 [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: D1 01 00 0A 1E 00 F9 [13:55:45]Write to MH i2c: 01 00 00 0B 1E 29 [13:55:45]Write i2c OK [13:55:45]MH_I2C_Read... [13:55:46]OFD Sender: No OFD packet to send [13:55:46]*** Cut start [13:55:46]*** Purtial cut [13:55:46]*** Stage 1: CUTSNS_PIN = 1 [13:55:46]Read from MH i2c: 01 [13:55:46]MH_I2C_Read... [13:55:46]*** Stop cut motor [13:55:46]*** Cut end [13:55:46]Read from MH i2c: 01 07 00 [13:55:46]MH_I2C_Read... [13:55:46]Read from MH i2c: 01 07 00 0B 1E 00 00 00 00 00 FF 0F 3E [13:55:46]process_action close_receipt done [13:55:46]requested_data is exist [13:55:46]produce_requested_data [13:55:46]requested_item fm.sn is exist - process it [13:55:46]wFMCommunicate request_size=4 [13:55:46]MH_SAM_APDU [13:55:46]CAPDU: 80 11 00 00 [13:55:46]Write to MH i2c: E2 08 00 0C 1E 80 11 00 00 00 00 00 00 A4 [13:55:46]Write i2c OK [13:55:46]MH_I2C_Read... [13:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:46]Read from MH i2c: E2 [13:55:46]MH_I2C_Read... [13:55:46]Read from MH i2c: E2 17 00 [13:55:46]MH_I2C_Read... [13:55:46]Read from MH i2c: E2 17 00 0C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F9 [13:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:55:46]wFMCommunicate OK [13:55:46]requested_item fd.num is exist - process it [13:55:46]SAM_PROTO_GetFieldsCounters [13:55:46]wFMCommunicate request_size=4 [13:55:46]MH_SAM_APDU [13:55:46]CAPDU: 80 13 00 00 [13:55:46]Write to MH i2c: E2 08 00 0D 1E 80 13 00 00 00 00 00 00 A7 [13:55:46]Write i2c OK [13:55:46]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 62 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 62 00 0D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 00 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [13:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 00 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:47]wFMCommunicate OK [13:55:47]SAM_PROTO_GetFieldsCounters done [13:55:47]requested_item shift.num is exist - process it [13:55:47]requested_item shift.opened is exist - process it [13:55:47]req_shift_opened [13:55:47]FM_GetShiftState [13:55:47]SAM_PROTO_GetShiftState [13:55:47]wFMCommunicate request_size=4 [13:55:47]MH_SAM_APDU [13:55:47]CAPDU: 80 13 01 00 [13:55:47]Write to MH i2c: E2 08 00 0E 1E 80 13 01 00 00 00 00 00 A9 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 0E 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 0E 00 0E 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AB [13:55:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:55:47]wFMCommunicate OK [13:55:47]SAM_PROTO_GetShiftState done [13:55:47]FM_GetShiftState done [13:55:47]req_shift_opened done [13:55:47]requested_item shift.open_date is exist - process it [13:55:47]req_shift_open_date [13:55:47]req_shift_open_date done [13:55:47]produce_requested_data done [13:55:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201984,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:55:47]process_action_free close_receipt [13:55:47]json_value_free [13:55:47]json_value_free done [13:55:47]process_json_proto returns [13:55:47]Send response to host [13:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201984,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:55:47]free response buf [13:55:47]execute_script done [13:55:47]execute_script returns [13:55:47]free content buf [13:55:47]Sock 8.Close socket [13:55:47]Sock 8.Thread stoped [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:00]accept exits with 9 [13:56:00]New connection [13:56:00]New thread 3066641764 created [13:56:00]Thread 3066498404 joined [13:56:00]Waiting for new connection... [13:56:00] Sock 9.Parse request [13:56:00]Sock 9.Check first char [13:56:00]Sock 9.First char is OK [13:56:00]request: POST /json_proto HTTP/1.0 [13:56:00]Method: POST [13:56:00]URL: /json_proto [13:56:00]Method is POST - this is cgi request [13:56:00]url: /json_proto [13:56:00]query_string will be loaded in cgi processing [13:56:00]execute_cgi json_proto POST (null) [13:56:00]execute_cgi path=json_proto method=POST [13:56:00]POST find Content-Length [13:56:00]Host: 172.17.63.195:8080 [13:56:00]Content-Length: 678 [13:56:00]Content-Type: application/json [13:56:00] [13:56:00]POST finish read [13:56:00]Found Content-Length = 678 [13:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:00]execute_script... [13:56:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:00]POST & json_proto [13:56:00]process_json_proto [13:56:00]json parsed OK: [13:56:00]protocol is kg_v1.0 [13:56:00]action value=close_receipt [13:56:00]process_action close_receipt [13:56:00]cmd_close_receipt [13:56:00]MH_GetDate [13:56:00]Write to MH i2c: F0 00 00 0F 1E 1C [13:56:00]Write i2c OK [13:56:00]MH_I2C_Read... [13:56:00]Read from MH i2c: F0 [13:56:00]MH_I2C_Read... [13:56:00]Read from MH i2c: F0 09 00 [13:56:00]MH_I2C_Read... [13:56:00]Read from MH i2c: F0 09 00 0F 1E 00 71 46 1E 67 47 1B 1E 67 48 [13:56:00]GetLastDocTimeStamp 1730037344 [13:56:00]current date 1730037361 [13:56:00]FM_GetShiftState [13:56:00]SAM_PROTO_GetShiftState [13:56:00]wFMCommunicate request_size=4 [13:56:00]MH_SAM_APDU [13:56:00]CAPDU: 80 13 01 00 [13:56:00]Write to MH i2c: E2 08 00 10 1E 80 13 01 00 00 00 00 00 AB [13:56:00]Write i2c OK [13:56:00]MH_I2C_Read... [13:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:00]Read from MH i2c: E2 [13:56:00]MH_I2C_Read... [13:56:00]Read from MH i2c: E2 0E 00 [13:56:00]MH_I2C_Read... [13:56:00]Read from MH i2c: E2 0E 00 10 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AD [13:56:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:56:00]wFMCommunicate OK [13:56:00]SAM_PROTO_GetShiftState done [13:56:00]FM_GetShiftState done [13:56:00]opened in 1729987312 [13:56:00]opened+sec_in_day 1730073712 [13:56:00]quantity*price = 70044 [13:56:00]sum+1 = 70045 [13:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 277 27.10.2024 13:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201985 ФПД: 134680826028782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135601&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201985&fm=134680826028782&tin=02508201610067®Number=0000000000091777&sum=70000 [13:56:01]StoreToDocumentArchive [13:56:01]shift 544 fd 201985 [13:56:01]save to /storage/0544/doc_00201985 [13:56:01]save last doc name /storage/0544/doc_00201985 to /storage/kkm_last_doc_name [13:56:01]save OK [13:56:01]Clear old archive folders... [13:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:01]tlvbuf is 01244E10 [13:56:01]SAM_PROTO_ClearQueue [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 09 00 00 [13:56:01]Write to MH i2c: E2 08 00 1D 1E 80 09 00 00 00 00 00 00 AD [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 03 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 03 00 1D 1E 00 90 00 AF [13:56:01]RAPDU: 90 00 [13:56:01]wFMCommunicate OK [13:56:01]SAM_PROTO_ClearQueue done [13:56:01]KKMCreateOFDPacket [13:56:01]OFDProtocolAddRootSTLVToBuf [13:56:01]FM_MakeSignedData [13:56:01]FM_MakeSignedData [13:56:01]SAM_PROTO_SignData [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 0D 01 02 [13:56:01]Write to MH i2c: E2 08 00 1E 1E 80 0D 01 02 00 00 00 00 B5 [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 03 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [13:56:01]RAPDU: 90 00 [13:56:01]wFMCommunicate OK [13:56:01]wFMCommunicate request_size=255 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 71 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 15 03 00 35 04 06 00 7A [13:56:01]Write to MH i2c: E2 02 01 1F 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 71 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 15 03 00 35 04 06 00 7A 00 00 60 [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:02]Read from MH i2c: E2 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: E2 03 00 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [13:56:02]RAPDU: 90 00 [13:56:02]wFMCommunicate OK [13:56:02]wFMCommunicate request_size=10 [13:56:02]MH_SAM_APDU [13:56:02]CAPDU: 80 0D 02 02 05 7D D2 CB 22 EE [13:56:02]Write to MH i2c: E2 0D 00 20 1E 80 0D 02 02 05 00 7D D2 CB 22 EE 00 00 EC [13:56:02]Write i2c OK [13:56:02]MH_I2C_Read... [13:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:02]Read from MH i2c: E2 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: E2 03 00 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: E2 03 00 20 1E 00 90 00 B2 [13:56:02]RAPDU: 90 00 [13:56:02]wFMCommunicate OK [13:56:02]wFMCommunicate request_size=4 [13:56:02]MH_SAM_APDU [13:56:02]CAPDU: 80 0D 03 02 [13:56:02]Write to MH i2c: E2 08 00 21 1E 80 0D 03 02 00 00 00 00 BA [13:56:02]Write i2c OK [13:56:02]MH_I2C_Read... [13:56:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:02]Read from MH i2c: E2 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: E2 0B 00 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: E2 0B 00 21 1E 00 95 47 12 B6 B8 86 03 18 90 00 B8 [13:56:02]RAPDU: 95 47 12 B6 B8 86 03 18 90 00 [13:56:02]wFMCommunicate OK [13:56:02]SAM_PROTO_SignData done [13:56:02]FM_MakeSignedData done [13:56:02]CreateOFDProtocolMessage [13:56:02]wFMCommunicate request_size=4 [13:56:02]MH_SAM_APDU [13:56:02]CAPDU: 80 11 00 00 [13:56:02]Write to MH i2c: E2 08 00 22 1E 80 11 00 00 00 00 00 00 BA [13:56:02]Write i2c OK [13:56:02]MH_I2C_Read... [13:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:02]Read from MH i2c: E2 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: E2 17 00 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: E2 17 00 22 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0F [13:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:56:02]wFMCommunicate OK [13:56:02]CreateOFDProtocolMessage done [13:56:02]OFDSenderStorePacket 201985 [13:56:02]StoreOFDPacket docnum=201985 [13:56:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 CF 07 01 24 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 71 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 15 03 00 35 04 06 00 7A 7D D2 CB 22 EE 95 47 12 B6 B8 86 03 18 [13:56:02]CheckFolder [13:56:02]dirname=/storage/ofd_packets [13:56:02]CheckFolder done [13:56:02]ProducePacketName [13:56:02]name=ofd_packets/00201985 [13:56:02]NVStorageSaveData ofd_packets/00201985 [13:56:02]File name is /storage/ofd_packets/00201985 [13:56:02]Write 301 bytes [13:56:02]NVStorageSaveData done [13:56:02]OFDSenderStorePacket done [13:56:02]KKMCreateOFDPacket done [13:56:02]NVStorageSaveData kkm_last_timestamp [13:56:02]File name is /storage/kkm_last_timestamp [13:56:02]Write 4 bytes [13:56:02]NVStorageSaveData done [13:56:02]ExternCall_PrintAddStr [13:56:02]wPrintStart [13:56:02]Write to MH i2c: 01 00 00 23 1E 41 [13:56:02]Write i2c OK [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: 01 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: 01 07 00 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: 01 07 00 23 1E 00 00 00 00 00 FF 0F 56 [13:56:02]RasterBufferAndPrint [13:56:02]line Счет N : (1)449750 [13:56:02]line ИНН: 02508201610067 [13:56:02]line Контрольно-Кассовый Чек [13:56:02]line ПРОДАЖА [13:56:02]line ТРК (МРК, ГНК) : 52 [13:56:02]line Товар: 2710124130 [13:56:02]line Аи-92-К-2 [13:56:02]line 10.470 * 66.90 [13:56:02]line = 700.44 [13:56:02]line НДС 12% НСП 1% [13:56:02]line > о реализуемом товаре [13:56:02]line ОКРУГЛЕНИЕ: -0.44 [13:56:02]line ИТОГО: 700.00 [13:56:02]line Внесено: 700.00 [13:56:02]line СДАЧА: 0.00 [13:56:02]line НСП 1% : 6.20 [13:56:02]line НДС 12% : 74.38 [13:56:02]line Наличными: 700.00 [13:56:02]line Безнал.: 0.00 [13:56:02]line Место: АЗС № 171 "Партнер Нефть" [13:56:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:56:02]line СНО: Общий режим [13:56:02]line Чек 277 27.10.2024 13:56 [13:56:02]line Смена: 544 ФФД: 1.0 [13:56:02]line ЗНМ: 0300000109 [13:56:02]line РНМ: 0000000000091777 [13:56:02]line Версия ККМ: 001 [13:56:02]line ФМ: 0000000000871756 [13:56:02]line ФД: 201985 [13:56:02]line ФПД: 134680826028782 [13:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135601&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201985&fm=134680826028782&tin=02508201610067®Number=0000000000091777&sum=70000 [13:56:02]OFD Sender: Processing packet 201985 [packets to send 112, broken 111] [13:56:02]ProducePacketName [13:56:02]name=ofd_packets/00201985 [13:56:02]OFD Sender: To server: pG, [13:56:02]CommunicateWithHost lk.salyk.kg:30040 [13:56:02]ConnectInit lk.salyk.kg [13:56:02]written 0, free lines is 4095 [13:56:02]Connected sock=10 [13:56:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 CF 07 01 24 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 71 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 15 03 00 35 04 06 00 7A 7D D2 CB 22 EE 95 47 12 B6 B8 86 03 18 [13:56:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 46 DA 47 00 8C C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 15 03 00 F4 03 04 00 2B F2 1D 67 B6 04 01 00 00 EE C4 1E 1B 60 C3 3F DD [13:56:02]CommunicateWithHost err = 0 [13:56:02]CheckOFDResponse [13:56:02]1017 (14) - 77093643461234 [13:56:02]1041 (16) - 0000000000871756 [13:56:02]1040 (4) - 201985 [13:56:02]1012 (4) - 27.10.2024 07:56 [13:56:02]1206 (1) - 0 [13:56:02]OFD Sender: Remove packet 201985 [13:56:02]ProducePacketName [13:56:02]name=ofd_packets/00201985 [13:56:02]NVStorageDeleteData [13:56:02]Write to MH i2c: 01 00 00 4E 1E 6C [13:56:02]Write i2c OK [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: 01 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: 01 07 00 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: 01 07 00 4E 1E 00 00 00 00 00 90 0C 0F [13:56:02]RasterBufferAndPrint [13:56:02]line [13:56:02]line [13:56:02]line [13:56:02]line [13:56:02]line [13:56:02]written 0, free lines is 3220 [13:56:02]MH_Cut [13:56:02]Write to MH i2c: D1 01 00 55 1E 01 45 [13:56:02]Write i2c OK [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: D1 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: D1 01 00 [13:56:02]MH_I2C_Read... [13:56:02]Read from MH i2c: D1 01 00 55 1E 00 44 [13:56:02]Write to MH i2c: 01 00 00 56 1E 74 [13:56:02]Write i2c OK [13:56:02]MH_I2C_Read... [13:56:03]OFD Sender: No OFD packet to send [13:56:03]*** Cut start [13:56:03]*** Purtial cut [13:56:03]*** Stage 1: CUTSNS_PIN = 1 [13:56:04]Read from MH i2c: 01 [13:56:04]MH_I2C_Read... [13:56:04]*** Stop cut motor [13:56:04]*** Cut end [13:56:04]Read from MH i2c: 01 07 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: 01 07 00 56 1E 00 00 00 00 00 FF 0F 89 [13:56:04]process_action close_receipt done [13:56:04]requested_data is exist [13:56:04]produce_requested_data [13:56:04]requested_item fm.sn is exist - process it [13:56:04]wFMCommunicate request_size=4 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 11 00 00 [13:56:04]Write to MH i2c: E2 08 00 57 1E 80 11 00 00 00 00 00 00 EF [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 17 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 17 00 57 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 44 [13:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:56:04]wFMCommunicate OK [13:56:04]requested_item fd.num is exist - process it [13:56:04]SAM_PROTO_GetFieldsCounters [13:56:04]wFMCommunicate request_size=4 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 13 00 00 [13:56:04]Write to MH i2c: E2 08 00 58 1E 80 13 00 00 00 00 00 00 F2 [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 62 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 62 00 58 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 01 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [13:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 01 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:04]wFMCommunicate OK [13:56:04]SAM_PROTO_GetFieldsCounters done [13:56:04]requested_item shift.num is exist - process it [13:56:04]requested_item shift.opened is exist - process it [13:56:04]req_shift_opened [13:56:04]FM_GetShiftState [13:56:04]SAM_PROTO_GetShiftState [13:56:04]wFMCommunicate request_size=4 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 13 01 00 [13:56:04]Write to MH i2c: E2 08 00 59 1E 80 13 01 00 00 00 00 00 F4 [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 0E 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 0E 00 59 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F6 [13:56:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:56:04]wFMCommunicate OK [13:56:04]SAM_PROTO_GetShiftState done [13:56:04]FM_GetShiftState done [13:56:04]req_shift_opened done [13:56:04]requested_item shift.open_date is exist - process it [13:56:04]req_shift_open_date [13:56:04]req_shift_open_date done [13:56:04]produce_requested_data done [13:56:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201985,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:56:04]process_action_free close_receipt [13:56:04]json_value_free [13:56:04]json_value_free done [13:56:04]process_json_proto returns [13:56:04]Send response to host [13:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201985,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:56:04]free response buf [13:56:04]execute_script done [13:56:04]execute_script returns [13:56:04]free content buf [13:56:04]Sock 9.Close socket [13:56:04]Sock 9.Thread stoped [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:20]accept exits with 8 [13:56:20]New connection [13:56:20]New thread 3066498404 created [13:56:20]Thread 3066641764 joined [13:56:20]Waiting for new connection... [13:56:20] Sock 8.Parse request [13:56:20]Sock 8.Check first char [13:56:20]Sock 8.First char is OK [13:56:20]request: POST /json_proto HTTP/1.0 [13:56:20]Method: POST [13:56:20]URL: /json_proto [13:56:20]Method is POST - this is cgi request [13:56:20]url: /json_proto [13:56:20]query_string will be loaded in cgi processing [13:56:20]execute_cgi json_proto POST (null) [13:56:20]execute_cgi path=json_proto method=POST [13:56:20]POST find Content-Length [13:56:20]Host: 172.17.63.195:8080 [13:56:20]Content-Length: 677 [13:56:20]Content-Type: application/json [13:56:20] [13:56:20]POST finish read [13:56:20]Found Content-Length = 677 [13:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:20]execute_script... [13:56: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)449751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:20]POST & json_proto [13:56:20]process_json_proto [13:56:20]json parsed OK: [13:56:20]protocol is kg_v1.0 [13:56:20]action value=close_receipt [13:56:20]process_action close_receipt [13:56:20]cmd_close_receipt [13:56:20]MH_GetDate [13:56:20]Write to MH i2c: F0 00 00 5A 1E 67 [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: F0 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: F0 09 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: F0 09 00 5A 1E 00 85 46 1E 67 47 1B 1E 67 A7 [13:56:20]GetLastDocTimeStamp 1730037361 [13:56:20]current date 1730037381 [13:56:20]FM_GetShiftState [13:56:20]SAM_PROTO_GetShiftState [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 13 01 00 [13:56:20]Write to MH i2c: E2 08 00 5B 1E 80 13 01 00 00 00 00 00 F6 [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0E 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0E 00 5B 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F8 [13:56:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:56:20]wFMCommunicate OK [13:56:20]SAM_PROTO_GetShiftState done [13:56:20]FM_GetShiftState done [13:56:20]opened in 1729987312 [13:56:20]opened+sec_in_day 1730073712 [13:56:20]quantity*price = 40006 [13:56:20]sum+1 = 40007 [13:56:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 278 27.10.2024 13:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201986 ФПД: 63044388142121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135621&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201986&fm=63044388142121&tin=02508201610067®Number=0000000000091777&sum=40000 [13:56:21]StoreToDocumentArchive [13:56:21]shift 544 fd 201986 [13:56:21]save to /storage/0544/doc_00201986 [13:56:21]save last doc name /storage/0544/doc_00201986 to /storage/kkm_last_doc_name [13:56:21]save OK [13:56:21]Clear old archive folders... [13:56:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:21]tlvbuf is B6E8E920 [13:56:21]SAM_PROTO_ClearQueue [13:56:21]wFMCommunicate request_size=4 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 09 00 00 [13:56:21]Write to MH i2c: E2 08 00 68 1E 80 09 00 00 00 00 00 00 F8 [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:21]Read from MH i2c: E2 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [13:56:21]RAPDU: 90 00 [13:56:21]wFMCommunicate OK [13:56:21]SAM_PROTO_ClearQueue done [13:56:21]KKMCreateOFDPacket [13:56:21]OFDProtocolAddRootSTLVToBuf [13:56:21]FM_MakeSignedData [13:56:21]FM_MakeSignedData [13:56:21]SAM_PROTO_SignData [13:56:21]wFMCommunicate request_size=4 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 0D 01 02 [13:56:21]Write to MH i2c: E2 08 00 69 1E 80 0D 01 02 00 00 00 00 00 [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:21]Read from MH i2c: E2 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [13:56:21]RAPDU: 90 00 [13:56:21]wFMCommunicate OK [13:56:21]wFMCommunicate request_size=255 [13:56:21]MH_SAM_APDU [13:56:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 85 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 15 03 00 35 04 06 00 39 [13:56:21]Write to MH i2c: E2 02 01 6A 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 85 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 15 03 00 35 04 06 00 39 00 00 3F [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:22]Read from MH i2c: E2 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 03 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [13:56:22]RAPDU: 90 00 [13:56:22]wFMCommunicate OK [13:56:22]wFMCommunicate request_size=10 [13:56:22]MH_SAM_APDU [13:56:22]CAPDU: 80 0D 02 02 05 56 AA 5C 3C 29 [13:56:22]Write to MH i2c: E2 0D 00 6B 1E 80 0D 02 02 05 00 56 AA 5C 3C 29 00 00 CE [13:56:22]Write i2c OK [13:56:22]MH_I2C_Read... [13:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:22]Read from MH i2c: E2 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 03 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [13:56:22]RAPDU: 90 00 [13:56:22]wFMCommunicate OK [13:56:22]wFMCommunicate request_size=4 [13:56:22]MH_SAM_APDU [13:56:22]CAPDU: 80 0D 03 02 [13:56:22]Write to MH i2c: E2 08 00 6C 1E 80 0D 03 02 00 00 00 00 05 [13:56:22]Write i2c OK [13:56:22]MH_I2C_Read... [13:56:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:22]Read from MH i2c: E2 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 0B 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 0B 00 6C 1E 00 B8 92 7F 18 71 83 54 99 90 00 C8 [13:56:22]RAPDU: B8 92 7F 18 71 83 54 99 90 00 [13:56:22]wFMCommunicate OK [13:56:22]SAM_PROTO_SignData done [13:56:22]FM_MakeSignedData done [13:56:22]CreateOFDProtocolMessage [13:56:22]wFMCommunicate request_size=4 [13:56:22]MH_SAM_APDU [13:56:22]CAPDU: 80 11 00 00 [13:56:22]Write to MH i2c: E2 08 00 6D 1E 80 11 00 00 00 00 00 00 05 [13:56:22]Write i2c OK [13:56:22]MH_I2C_Read... [13:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:22]Read from MH i2c: E2 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 17 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: E2 17 00 6D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5A [13:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:56:22]wFMCommunicate OK [13:56:22]CreateOFDProtocolMessage done [13:56:22]OFDSenderStorePacket 201986 [13:56:22]StoreOFDPacket docnum=201986 [13:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 92 64 07 01 62 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 85 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 15 03 00 35 04 06 00 39 56 AA 5C 3C 29 B8 92 7F 18 71 83 54 99 [13:56:22]CheckFolder [13:56:22]dirname=/storage/ofd_packets [13:56:22]CheckFolder done [13:56:22]ProducePacketName [13:56:22]name=ofd_packets/00201986 [13:56:22]NVStorageSaveData ofd_packets/00201986 [13:56:22]File name is /storage/ofd_packets/00201986 [13:56:22]Write 301 bytes [13:56:22]NVStorageSaveData done [13:56:22]OFDSenderStorePacket done [13:56:22]KKMCreateOFDPacket done [13:56:22]NVStorageSaveData kkm_last_timestamp [13:56:22]File name is /storage/kkm_last_timestamp [13:56:22]Write 4 bytes [13:56:22]NVStorageSaveData done [13:56:22]ExternCall_PrintAddStr [13:56:22]wPrintStart [13:56:22]Write to MH i2c: 01 00 00 6E 1E 8C [13:56:22]Write i2c OK [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 07 00 [13:56:22]MH_I2C_Read... [13:56:22]Read from MH i2c: 01 07 00 6E 1E 00 00 00 00 00 FF 0F A1 [13:56:22]RasterBufferAndPrint [13:56:22]line Счет N : (1)449751 [13:56:22]line ИНН: 02508201610067 [13:56:22]line Контрольно-Кассовый Чек [13:56:22]line ПРОДАЖА [13:56:22]line ТРК (МРК, ГНК) : 62 [13:56:22]line Товар: 2710124130 [13:56:22]line Аи-92-К-2 [13:56:22]line 5.980 * 66.90 [13:56:22]line = 400.06 [13:56:22]line НДС 12% НСП 1% [13:56:22]line > о реализуемом товаре [13:56:22]line ОКРУГЛЕНИЕ: -0.06 [13:56:22]line ИТОГО: 400.00 [13:56:22]line Внесено: 400.00 [13:56:22]line СДАЧА: 0.00 [13:56:22]line НСП 1% : 3.54 [13:56:22]line НДС 12% : 42.48 [13:56:22]line Наличными: 400.00 [13:56:22]line Безнал.: 0.00 [13:56:22]line Место: АЗС № 171 "Партнер Нефть" [13:56:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:56:22]line СНО: Общий режим [13:56:22]line Чек 278 27.10.2024 13:56 [13:56:22]line Смена: 544 ФФД: 1.0 [13:56:22]line ЗНМ: 0300000109 [13:56:22]line РНМ: 0000000000091777 [13:56:22]line Версия ККМ: 001 [13:56:22]line ФМ: 0000000000871756 [13:56:22]line ФД: 201986 [13:56:22]line ФПД: 63044388142121 [13:56:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135621&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201986&fm=63044388142121&tin=02508201610067®Number=0000000000091777&sum=40000 [13:56:22]OFD Sender: Processing packet 201986 [packets to send 112, broken 111] [13:56:22]ProducePacketName [13:56:22]name=ofd_packets/00201986 [13:56:22]OFD Sender: To server: pG, [13:56:22]CommunicateWithHost lk.salyk.kg:30040 [13:56:22]ConnectInit lk.salyk.kg [13:56:22]written 0, free lines is 4095 [13:56:22]Connected sock=10 [13:56:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 92 64 07 01 62 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 85 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 15 03 00 35 04 06 00 39 56 AA 5C 3C 29 B8 92 7F 18 71 83 54 99 [13:56:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D4 F3 47 00 BF FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 15 03 00 F4 03 04 00 3F F2 1D 67 B6 04 01 00 00 12 E3 13 49 C8 9B 1F FF [13:56:23]CommunicateWithHost err = 0 [13:56:23]CheckOFDResponse [13:56:23]1017 (14) - 77093643461234 [13:56:23]1041 (16) - 0000000000871756 [13:56:23]1040 (4) - 201986 [13:56:23]1012 (4) - 27.10.2024 07:56 [13:56:23]1206 (1) - 0 [13:56:23]OFD Sender: Remove packet 201986 [13:56:23]ProducePacketName [13:56:23]name=ofd_packets/00201986 [13:56:23]NVStorageDeleteData [13:56:23]Write to MH i2c: 01 00 00 99 1E B7 [13:56:23]Write i2c OK [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: 01 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: 01 07 00 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: 01 07 00 99 1E 00 00 00 00 00 91 0C 5B [13:56:23]RasterBufferAndPrint [13:56:23]line [13:56:23]line [13:56:23]line [13:56:23]line [13:56:23]line [13:56:23]written 0, free lines is 3222 [13:56:23]MH_Cut [13:56:23]Write to MH i2c: D1 01 00 A0 1E 01 90 [13:56:23]Write i2c OK [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: D1 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: D1 01 00 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: D1 01 00 A0 1E 00 8F [13:56:23]Write to MH i2c: 01 00 00 A1 1E BF [13:56:23]Write i2c OK [13:56:23]MH_I2C_Read... [13:56:23]OFD Sender: No OFD packet to send [13:56:24]*** Cut start [13:56:24]*** Purtial cut [13:56:24]*** Stage 1: CUTSNS_PIN = 1 [13:56:24]Read from MH i2c: 01 [13:56:24]MH_I2C_Read... [13:56:24]*** Stop cut motor [13:56:24]*** Cut end [13:56:24]Read from MH i2c: 01 07 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: 01 07 00 A1 1E 00 00 00 00 00 FF 0F D4 [13:56:24]process_action close_receipt done [13:56:24]requested_data is exist [13:56:24]produce_requested_data [13:56:24]requested_item fm.sn is exist - process it [13:56:24]wFMCommunicate request_size=4 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 11 00 00 [13:56:24]Write to MH i2c: E2 08 00 A2 1E 80 11 00 00 00 00 00 00 3A [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:24]Read from MH i2c: E2 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 17 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 17 00 A2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8F [13:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:56:24]wFMCommunicate OK [13:56:24]requested_item fd.num is exist - process it [13:56:24]SAM_PROTO_GetFieldsCounters [13:56:24]wFMCommunicate request_size=4 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 13 00 00 [13:56:24]Write to MH i2c: E2 08 00 A3 1E 80 13 00 00 00 00 00 00 3D [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:24]Read from MH i2c: E2 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 62 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 62 00 A3 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 02 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [13:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 02 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:24]wFMCommunicate OK [13:56:24]SAM_PROTO_GetFieldsCounters done [13:56:24]requested_item shift.num is exist - process it [13:56:24]requested_item shift.opened is exist - process it [13:56:24]req_shift_opened [13:56:24]FM_GetShiftState [13:56:24]SAM_PROTO_GetShiftState [13:56:24]wFMCommunicate request_size=4 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 13 01 00 [13:56:24]Write to MH i2c: E2 08 00 A4 1E 80 13 01 00 00 00 00 00 3F [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:24]Read from MH i2c: E2 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 0E 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 0E 00 A4 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 41 [13:56:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:56:24]wFMCommunicate OK [13:56:24]SAM_PROTO_GetShiftState done [13:56:24]FM_GetShiftState done [13:56:24]req_shift_opened done [13:56:24]requested_item shift.open_date is exist - process it [13:56:24]req_shift_open_date [13:56:24]req_shift_open_date done [13:56:24]produce_requested_data done [13:56:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201986,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:56:24]process_action_free close_receipt [13:56:24]json_value_free [13:56:24]json_value_free done [13:56:24]process_json_proto returns [13:56:24]Send response to host [13:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201986,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:56:24]free response buf [13:56:24]execute_script done [13:56:24]execute_script returns [13:56:24]free content buf [13:56:24]Sock 8.Close socket [13:56:24]Sock 8.Thread stoped [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:01]accept exits with 9 [13:58:01]New connection [13:58:01]New thread 3066641764 created [13:58:01]Thread 3066498404 joined [13:58:01]Waiting for new connection... [13:58:01] Sock 9.Parse request [13:58:01]Sock 9.Check first char [13:58:01]Sock 9.First char is OK [13:58:01]request: POST /json_proto HTTP/1.0 [13:58:01]Method: POST [13:58:01]URL: /json_proto [13:58:01]Method is POST - this is cgi request [13:58:01]url: /json_proto [13:58:01]query_string will be loaded in cgi processing [13:58:01]execute_cgi json_proto POST (null) [13:58:01]execute_cgi path=json_proto method=POST [13:58:01]POST find Content-Length [13:58:01]Host: 172.17.63.195:8080 [13:58:01]Content-Length: 677 [13:58:01]Content-Type: application/json [13:58:01] [13:58:01]POST finish read [13:58:01]Found Content-Length = 677 [13:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:58:01]execute_script... [13:58: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)449752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:58:01]POST & json_proto [13:58:01]process_json_proto [13:58:01]json parsed OK: [13:58:01]protocol is kg_v1.0 [13:58:01]action value=close_receipt [13:58:01]process_action close_receipt [13:58:01]cmd_close_receipt [13:58:01]MH_GetDate [13:58:01]Write to MH i2c: F0 00 00 A5 1E B2 [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: F0 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: F0 09 00 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: F0 09 00 A5 1E 00 EA 46 1E 67 47 1B 1E 67 57 [13:58:01]GetLastDocTimeStamp 1730037381 [13:58:01]current date 1730037482 [13:58:01]FM_GetShiftState [13:58:01]SAM_PROTO_GetShiftState [13:58:01]wFMCommunicate request_size=4 [13:58:01]MH_SAM_APDU [13:58:01]CAPDU: 80 13 01 00 [13:58:01]Write to MH i2c: E2 08 00 A6 1E 80 13 01 00 00 00 00 00 41 [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:01]Read from MH i2c: E2 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: E2 0E 00 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: E2 0E 00 A6 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 43 [13:58:01]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:58:01]wFMCommunicate OK [13:58:01]SAM_PROTO_GetShiftState done [13:58:01]FM_GetShiftState done [13:58:01]opened in 1729987312 [13:58:01]opened+sec_in_day 1730073712 [13:58:01]quantity*price = 60009 [13:58:01]sum+1 = 60010 [13:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 279 27.10.2024 13:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201987 ФПД: 81111558763249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135802&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201987&fm=81111558763249&tin=02508201610067®Number=0000000000091777&sum=60000 [13:58:02]StoreToDocumentArchive [13:58:02]shift 544 fd 201987 [13:58:02]save to /storage/0544/doc_00201987 [13:58:02]save last doc name /storage/0544/doc_00201987 to /storage/kkm_last_doc_name [13:58:02]save OK [13:58:02]Clear old archive folders... [13:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:02]tlvbuf is 012322E0 [13:58:02]SAM_PROTO_ClearQueue [13:58:02]wFMCommunicate request_size=4 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 09 00 00 [13:58:02]Write to MH i2c: E2 08 00 B3 1E 80 09 00 00 00 00 00 00 43 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [13:58:02]RAPDU: 90 00 [13:58:02]wFMCommunicate OK [13:58:02]SAM_PROTO_ClearQueue done [13:58:02]KKMCreateOFDPacket [13:58:02]OFDProtocolAddRootSTLVToBuf [13:58:02]FM_MakeSignedData [13:58:02]FM_MakeSignedData [13:58:02]SAM_PROTO_SignData [13:58:02]wFMCommunicate request_size=4 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 0D 01 02 [13:58:02]Write to MH i2c: E2 08 00 B4 1E 80 0D 01 02 00 00 00 00 4B [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [13:58:02]RAPDU: 90 00 [13:58:02]wFMCommunicate OK [13:58:02]wFMCommunicate request_size=255 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 01 00 00 F4 03 04 00 EA 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 15 03 00 35 04 06 00 49 [13:58:02]Write to MH i2c: E2 02 01 B5 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 32 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 17 01 00 00 F4 03 04 00 EA 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 15 03 00 35 04 06 00 49 00 00 0F [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [13:58:02]RAPDU: 90 00 [13:58:02]wFMCommunicate OK [13:58:02]wFMCommunicate request_size=10 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 0D 02 02 05 C5 41 A5 B2 F1 [13:58:02]Write to MH i2c: E2 0D 00 B6 1E 80 0D 02 02 05 00 C5 41 A5 B2 F1 00 00 A6 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 B6 1E 00 90 00 48 [13:58:02]RAPDU: 90 00 [13:58:02]wFMCommunicate OK [13:58:02]wFMCommunicate request_size=4 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 0D 03 02 [13:58:02]Write to MH i2c: E2 08 00 B7 1E 80 0D 03 02 00 00 00 00 50 [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:03]Read from MH i2c: E2 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 0B 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 0B 00 B7 1E 00 AB 0C 08 63 85 E6 DC 4D 90 00 07 [13:58:03]RAPDU: AB 0C 08 63 85 E6 DC 4D 90 00 [13:58:03]wFMCommunicate OK [13:58:03]SAM_PROTO_SignData done [13:58:03]FM_MakeSignedData done [13:58:03]CreateOFDProtocolMessage [13:58:03]wFMCommunicate request_size=4 [13:58:03]MH_SAM_APDU [13:58:03]CAPDU: 80 11 00 00 [13:58:03]Write to MH i2c: E2 08 00 B8 1E 80 11 00 00 00 00 00 00 50 [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:03]Read from MH i2c: E2 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 17 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: E2 17 00 B8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A5 [13:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:58:03]wFMCommunicate OK [13:58:03]CreateOFDProtocolMessage done [13:58:03]OFDSenderStorePacket 201987 [13:58:03]StoreOFDPacket docnum=201987 [13:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 68 6E 07 01 1F 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 01 00 00 F4 03 04 00 EA 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 15 03 00 35 04 06 00 49 C5 41 A5 B2 F1 AB 0C 08 63 85 E6 DC 4D [13:58:03]CheckFolder [13:58:03]dirname=/storage/ofd_packets [13:58:03]CheckFolder done [13:58:03]ProducePacketName [13:58:03]name=ofd_packets/00201987 [13:58:03]NVStorageSaveData ofd_packets/00201987 [13:58:03]File name is /storage/ofd_packets/00201987 [13:58:03]Write 301 bytes [13:58:03]NVStorageSaveData done [13:58:03]OFDSenderStorePacket done [13:58:03]KKMCreateOFDPacket done [13:58:03]NVStorageSaveData kkm_last_timestamp [13:58:03]File name is /storage/kkm_last_timestamp [13:58:03]Write 4 bytes [13:58:03]NVStorageSaveData done [13:58:03]ExternCall_PrintAddStr [13:58:03]wPrintStart [13:58:03]Write to MH i2c: 01 00 00 B9 1E D7 [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 B9 1E 00 00 00 00 00 FF 0F EC [13:58:03]RasterBufferAndPrint [13:58:03]line Счет N : (1)449752 [13:58:03]line ИНН: 02508201610067 [13:58:03]line Контрольно-Кассовый Чек [13:58:03]line ПРОДАЖА [13:58:03]line ТРК (МРК, ГНК) : 52 [13:58:03]line Товар: 2710124130 [13:58:03]line Аи-92-К-2 [13:58:03]line 8.970 * 66.90 [13:58:03]line = 600.09 [13:58:03]line НДС 12% НСП 1% [13:58:03]line > о реализуемом товаре [13:58:03]line ОКРУГЛЕНИЕ: -0.09 [13:58:03]line ИТОГО: 600.00 [13:58:03]line Внесено: 600.00 [13:58:03]line СДАЧА: 0.00 [13:58:03]line НСП 1% : 5.31 [13:58:03]line НДС 12% : 63.73 [13:58:03]line Наличными: 600.00 [13:58:03]line Безнал.: 0.00 [13:58:03]line Место: АЗС № 171 "Партнер Нефть" [13:58:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:58:03]line СНО: Общий режим [13:58:03]line Чек 279 27.10.2024 13:58 [13:58:03]line Смена: 544 ФФД: 1.0 [13:58:03]line ЗНМ: 0300000109 [13:58:03]line РНМ: 0000000000091777 [13:58:03]line Версия ККМ: 001 [13:58:03]line ФМ: 0000000000871756 [13:58:03]line ФД: 201987 [13:58:03]line ФПД: 81111558763249 [13:58:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135802&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201987&fm=81111558763249&tin=02508201610067®Number=0000000000091777&sum=60000 [13:58:03]OFD Sender: Processing packet 201987 [packets to send 112, broken 111] [13:58:03]ProducePacketName [13:58:03]name=ofd_packets/00201987 [13:58:03]OFD Sender: To server: pG, [13:58:03]CommunicateWithHost lk.salyk.kg:30040 [13:58:03]ConnectInit lk.salyk.kg [13:58:03]written 0, free lines is 4095 [13:58:03]Connected sock=10 [13:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 68 6E 07 01 1F 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 17 01 00 00 F4 03 04 00 EA 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 15 03 00 35 04 06 00 49 C5 41 A5 B2 F1 AB 0C 08 63 85 E6 DC 4D [13:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 41 F9 47 00 5D 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 15 03 00 F4 03 04 00 A4 F2 1D 67 B6 04 01 00 00 7B 0B 28 58 1C 6E 24 F3 [13:58:03]CommunicateWithHost err = 0 [13:58:03]CheckOFDResponse [13:58:03]1017 (14) - 77093643461234 [13:58:03]1041 (16) - 0000000000871756 [13:58:03]1040 (4) - 201987 [13:58:03]1012 (4) - 27.10.2024 07:58 [13:58:03]1206 (1) - 0 [13:58:03]OFD Sender: Remove packet 201987 [13:58:03]ProducePacketName [13:58:03]name=ofd_packets/00201987 [13:58:03]NVStorageDeleteData [13:58:03]Write to MH i2c: 01 00 00 E4 1E 02 [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 E4 1E 00 00 00 00 00 92 0C A7 [13:58:03]RasterBufferAndPrint [13:58:03]line [13:58:03]line [13:58:03]line [13:58:03]line [13:58:03]line [13:58:03]written 0, free lines is 3222 [13:58:03]MH_Cut [13:58:03]Write to MH i2c: D1 01 00 EB 1E 01 DB [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: D1 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: D1 01 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: D1 01 00 EB 1E 00 DA [13:58:03]Write to MH i2c: 01 00 00 EC 1E 0A [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:04]OFD Sender: No OFD packet to send [13:58:04]*** Cut start [13:58:04]*** Purtial cut [13:58:04]*** Stage 1: CUTSNS_PIN = 1 [13:58:05]Read from MH i2c: 01 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: 01 07 00 [13:58:05]MH_I2C_Read... [13:58:05]*** Stop cut motor [13:58:05]*** Cut end [13:58:05]Read from MH i2c: 01 07 00 EC 1E 00 00 00 00 00 FF 0F 1F [13:58:05]process_action close_receipt done [13:58:05]requested_data is exist [13:58:05]produce_requested_data [13:58:05]requested_item fm.sn is exist - process it [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 11 00 00 [13:58:05]Write to MH i2c: E2 08 00 ED 1E 80 11 00 00 00 00 00 00 85 [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 [13:58:05]MH_I2C_Read... [13:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:05]Read from MH i2c: E2 17 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 17 00 ED 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DA [13:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:58:05]wFMCommunicate OK [13:58:05]requested_item fd.num is exist - process it [13:58:05]SAM_PROTO_GetFieldsCounters [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 13 00 00 [13:58:05]Write to MH i2c: E2 08 00 EE 1E 80 13 00 00 00 00 00 00 88 [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:05]Read from MH i2c: E2 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 62 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 62 00 EE 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 03 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [13:58:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 03 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:05]wFMCommunicate OK [13:58:05]SAM_PROTO_GetFieldsCounters done [13:58:05]requested_item shift.num is exist - process it [13:58:05]requested_item shift.opened is exist - process it [13:58:05]req_shift_opened [13:58:05]FM_GetShiftState [13:58:05]SAM_PROTO_GetShiftState [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 13 01 00 [13:58:05]Write to MH i2c: E2 08 00 EF 1E 80 13 01 00 00 00 00 00 8A [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:05]Read from MH i2c: E2 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 0E 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 0E 00 EF 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8C [13:58:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:58:05]wFMCommunicate OK [13:58:05]SAM_PROTO_GetShiftState done [13:58:05]FM_GetShiftState done [13:58:05]req_shift_opened done [13:58:05]requested_item shift.open_date is exist - process it [13:58:05]req_shift_open_date [13:58:05]req_shift_open_date done [13:58:05]produce_requested_data done [13:58:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201987,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:58:05]process_action_free close_receipt [13:58:05]json_value_free [13:58:05]json_value_free done [13:58:05]process_json_proto returns [13:58:05]Send response to host [13:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201987,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:58:05]free response buf [13:58:05]execute_script done [13:58:05]execute_script returns [13:58:05]free content buf [13:58:05]Sock 9.Close socket [13:58:05]Sock 9.Thread stoped [13:58:09]OFD Sender: No OFD packet to send [13:58:12]accept exits with 8 [13:58:12]New connection [13:58:12]New thread 3066498404 created [13:58:12]Thread 3066641764 joined [13:58:12]Waiting for new connection... [13:58:12] Sock 8.Parse request [13:58:12]Sock 8.Check first char [13:58:12]Sock 8.First char is OK [13:58:12]request: POST /json_proto HTTP/1.0 [13:58:12]Method: POST [13:58:12]URL: /json_proto [13:58:12]Method is POST - this is cgi request [13:58:12]url: /json_proto [13:58:12]query_string will be loaded in cgi processing [13:58:12]execute_cgi json_proto POST (null) [13:58:12]execute_cgi path=json_proto method=POST [13:58:12]POST find Content-Length [13:58:12]Host: 172.17.63.195:8080 [13:58:12]Content-Length: 682 [13:58:12]Content-Type: application/json [13:58:12] [13:58:12]POST finish read [13:58:12]Found Content-Length = 682 [13:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [13:58:12]execute_script... [13:58:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [13:58:12]POST & json_proto [13:58:12]process_json_proto [13:58:12]json parsed OK: [13:58:12]protocol is kg_v1.0 [13:58:12]action value=close_receipt [13:58:12]process_action close_receipt [13:58:12]cmd_close_receipt [13:58:12]MH_GetDate [13:58:12]Write to MH i2c: F0 00 00 F0 1E FD [13:58:12]Write i2c OK [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: F0 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: F0 09 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: F0 09 00 F0 1E 00 F5 46 1E 67 47 1B 1E 67 AD [13:58:12]GetLastDocTimeStamp 1730037482 [13:58:12]current date 1730037493 [13:58:12]FM_GetShiftState [13:58:12]SAM_PROTO_GetShiftState [13:58:12]wFMCommunicate request_size=4 [13:58:12]MH_SAM_APDU [13:58:12]CAPDU: 80 13 01 00 [13:58:12]Write to MH i2c: E2 08 00 F1 1E 80 13 01 00 00 00 00 00 8C [13:58:12]Write i2c OK [13:58:12]MH_I2C_Read... [13:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:12]Read from MH i2c: E2 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 0E 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 0E 00 F1 1E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8E [13:58:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:58:12]wFMCommunicate OK [13:58:12]SAM_PROTO_GetShiftState done [13:58:12]FM_GetShiftState done [13:58:12]opened in 1729987312 [13:58:12]opened+sec_in_day 1730073712 [13:58:12]quantity*price = 100021 [13:58:12]sum+1 = 100023 [13:58:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 280 27.10.2024 13:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201988 ФПД: 253083271815835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135813&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201988&fm=253083271815835&tin=02508201610067®Number=0000000000091777&sum=100000 [13:58:13]StoreToDocumentArchive [13:58:13]shift 544 fd 201988 [13:58:13]save to /storage/0544/doc_00201988 [13:58:13]save last doc name /storage/0544/doc_00201988 to /storage/kkm_last_doc_name [13:58:13]save OK [13:58:13]Clear old archive folders... [13:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:13]tlvbuf is 0123AB60 [13:58:13]SAM_PROTO_ClearQueue [13:58:13]wFMCommunicate request_size=4 [13:58:13]MH_SAM_APDU [13:58:13]CAPDU: 80 09 00 00 [13:58:13]Write to MH i2c: E2 08 00 FE 1E 80 09 00 00 00 00 00 00 8E [13:58:13]Write i2c OK [13:58:13]MH_I2C_Read... [13:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:13]Read from MH i2c: E2 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 03 00 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 03 00 FE 1E 00 90 00 90 [13:58:13]RAPDU: 90 00 [13:58:13]wFMCommunicate OK [13:58:13]SAM_PROTO_ClearQueue done [13:58:13]KKMCreateOFDPacket [13:58:13]OFDProtocolAddRootSTLVToBuf [13:58:13]FM_MakeSignedData [13:58:13]FM_MakeSignedData [13:58:13]SAM_PROTO_SignData [13:58:13]wFMCommunicate request_size=4 [13:58:13]MH_SAM_APDU [13:58:13]CAPDU: 80 0D 01 02 [13:58:13]Write to MH i2c: E2 08 00 FF 1E 80 0D 01 02 00 00 00 00 96 [13:58:13]Write i2c OK [13:58:13]MH_I2C_Read... [13:58:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:13]Read from MH i2c: E2 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 03 00 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 03 00 FF 1E 00 90 00 91 [13:58:13]RAPDU: 90 00 [13:58:13]wFMCommunicate OK [13:58:13]wFMCommunicate request_size=255 [13:58:13]MH_SAM_APDU [13:58:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 18 01 00 00 F4 03 04 00 F5 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 15 03 00 35 04 06 00 E6 [13:58:13]Write to MH i2c: E2 02 01 00 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 18 01 00 00 F4 03 04 00 F5 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 15 03 00 35 04 06 00 E6 00 00 46 [13:58:13]Write i2c OK [13:58:13]MH_I2C_Read... [13:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:13]Read from MH i2c: E2 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 03 00 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [13:58:13]RAPDU: 90 00 [13:58:13]wFMCommunicate OK [13:58:13]wFMCommunicate request_size=10 [13:58:13]MH_SAM_APDU [13:58:13]CAPDU: 80 0D 02 02 05 2D 8A 83 E2 9B [13:58:13]Write to MH i2c: E2 0D 00 01 1F 80 0D 02 02 05 00 2D 8A 83 E2 9B 00 00 5B [13:58:13]Write i2c OK [13:58:13]MH_I2C_Read... [13:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:13]Read from MH i2c: E2 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 03 00 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 03 00 01 1F 00 90 00 94 [13:58:13]RAPDU: 90 00 [13:58:13]wFMCommunicate OK [13:58:13]wFMCommunicate request_size=4 [13:58:13]MH_SAM_APDU [13:58:13]CAPDU: 80 0D 03 02 [13:58:13]Write to MH i2c: E2 08 00 02 1F 80 0D 03 02 00 00 00 00 9C [13:58:13]Write i2c OK [13:58:13]MH_I2C_Read... [13:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:13]Read from MH i2c: E2 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 0B 00 [13:58:13]MH_I2C_Read... [13:58:13]Read from MH i2c: E2 0B 00 02 1F 00 22 EA CA A8 24 0D 60 FA 90 00 A6 [13:58:13]RAPDU: 22 EA CA A8 24 0D 60 FA 90 00 [13:58:13]wFMCommunicate OK [13:58:13]SAM_PROTO_SignData done [13:58:13]FM_MakeSignedData done [13:58:13]CreateOFDProtocolMessage [13:58:13]wFMCommunicate request_size=4 [13:58:13]MH_SAM_APDU [13:58:13]CAPDU: 80 11 00 00 [13:58:13]Write to MH i2c: E2 08 00 03 1F 80 11 00 00 00 00 00 00 9C [13:58:13]Write i2c OK [13:58:13]MH_I2C_Read... [13:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:14]Read from MH i2c: E2 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: E2 17 00 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: E2 17 00 03 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F1 [13:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:58:14]wFMCommunicate OK [13:58:14]CreateOFDProtocolMessage done [13:58:14]OFDSenderStorePacket 201988 [13:58:14]StoreOFDPacket docnum=201988 [13:58:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 EF 07 01 29 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 18 01 00 00 F4 03 04 00 F5 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 15 03 00 35 04 06 00 E6 2D 8A 83 E2 9B 22 EA CA A8 24 0D 60 FA [13:58:14]CheckFolder [13:58:14]dirname=/storage/ofd_packets [13:58:14]CheckFolder done [13:58:14]ProducePacketName [13:58:14]name=ofd_packets/00201988 [13:58:14]NVStorageSaveData ofd_packets/00201988 [13:58:14]File name is /storage/ofd_packets/00201988 [13:58:14]Write 301 bytes [13:58:14]NVStorageSaveData done [13:58:14]OFDSenderStorePacket done [13:58:14]KKMCreateOFDPacket done [13:58:14]NVStorageSaveData kkm_last_timestamp [13:58:14]File name is /storage/kkm_last_timestamp [13:58:14]Write 4 bytes [13:58:14]NVStorageSaveData done [13:58:14]ExternCall_PrintAddStr [13:58:14]wPrintStart [13:58:14]Write to MH i2c: 01 00 00 04 1F 23 [13:58:14]Write i2c OK [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: 01 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: 01 07 00 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: 01 07 00 04 1F 00 00 00 00 00 FF 0F 38 [13:58:14]RasterBufferAndPrint [13:58:14]line Счет N : (1)449753 [13:58:14]line ИНН: 02508201610067 [13:58:14]line Контрольно-Кассовый Чек [13:58:14]line ПРОДАЖА [13:58:14]line ТРК (МРК, ГНК) : 61 [13:58:14]line Товар: 2710124500 [13:58:14]line Аи-95-К-3 [13:58:14]line 13.480 * 74.20 [13:58:14]line = 1000.22 [13:58:14]line НДС 12% НСП 1% [13:58:14]line > о реализуемом товаре [13:58:14]line ОКРУГЛЕНИЕ: -0.22 [13:58:14]line ИТОГО: 1000.00 [13:58:14]line Внесено: 1000.00 [13:58:14]line СДАЧА: 0.00 [13:58:14]line НСП 1% : 8.85 [13:58:14]line НДС 12% : 106.22 [13:58:14]line Наличными: 1000.00 [13:58:14]line Безнал.: 0.00 [13:58:14]line Место: АЗС № 171 "Партнер Нефть" [13:58:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:58:14]line СНО: Общий режим [13:58:14]line Чек 280 27.10.2024 13:58 [13:58:14]line Смена: 544 ФФД: 1.0 [13:58:14]line ЗНМ: 0300000109 [13:58:14]line РНМ: 0000000000091777 [13:58:14]line Версия ККМ: 001 [13:58:14]line ФМ: 0000000000871756 [13:58:14]line ФД: 201988 [13:58:14]line ФПД: 253083271815835 [13:58:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135813&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201988&fm=253083271815835&tin=02508201610067®Number=0000000000091777&sum=100000 [13:58:14]written 0, free lines is 4095 [13:58:14]OFD Sender: Processing packet 201988 [packets to send 112, broken 111] [13:58:14]ProducePacketName [13:58:14]name=ofd_packets/00201988 [13:58:14]OFD Sender: To server: pG, [13:58:14]CommunicateWithHost lk.salyk.kg:30040 [13:58:14]ConnectInit lk.salyk.kg [13:58:14]Connected sock=10 [13:58:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 EF 07 01 29 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 18 01 00 00 F4 03 04 00 F5 46 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 15 03 00 35 04 06 00 E6 2D 8A 83 E2 9B 22 EA CA A8 24 0D 60 FA [13:58:14]Write to MH i2c: 01 00 00 2F 1F 4E [13:58:14]Write i2c OK [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: 01 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: 01 07 00 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: 01 07 00 2F 1F 00 00 00 00 00 A2 0C 03 [13:58:14]RasterBufferAndPrint [13:58:14]line [13:58:14]line [13:58:14]line [13:58:14]line [13:58:14]line [13:58:14]written 0, free lines is 3241 [13:58:14]MH_Cut [13:58:14]Write to MH i2c: D1 01 00 36 1F 01 27 [13:58:14]Write i2c OK [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: D1 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: D1 01 00 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: D1 01 00 36 1F 00 26 [13:58:14]Write to MH i2c: 01 00 00 37 1F 56 [13:58:14]Write i2c OK [13:58:14]MH_I2C_Read... [13:58:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3D A4 47 00 59 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 15 03 00 F4 03 04 00 AF F2 1D 67 B6 04 01 00 00 1F 2E 2B 0B 02 13 29 F0 [13:58:14]CommunicateWithHost err = 0 [13:58:14]CheckOFDResponse [13:58:14]1017 (14) - 77093643461234 [13:58:14]1041 (16) - 0000000000871756 [13:58:14]1040 (4) - 201988 [13:58:14]1012 (4) - 27.10.2024 07:58 [13:58:14]1206 (1) - 0 [13:58:14]OFD Sender: Remove packet 201988 [13:58:14]ProducePacketName [13:58:14]name=ofd_packets/00201988 [13:58:14]NVStorageDeleteData [13:58:15]OFD Sender: No OFD packet to send [13:58:15]*** Cut start [13:58:15]*** Purtial cut [13:58:15]*** Stage 1: CUTSNS_PIN = 1 [13:58:15]Read from MH i2c: 01 [13:58:15]MH_I2C_Read... [13:58:15]*** Stop cut motor [13:58:15]*** Cut end [13:58:15]Read from MH i2c: 01 07 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: 01 07 00 37 1F 00 00 00 00 00 FF 0F 6B [13:58:15]process_action close_receipt done [13:58:15]requested_data is exist [13:58:15]produce_requested_data [13:58:15]requested_item fm.sn is exist - process it [13:58:15]wFMCommunicate request_size=4 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 11 00 00 [13:58:15]Write to MH i2c: E2 08 00 38 1F 80 11 00 00 00 00 00 00 D1 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 17 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 17 00 38 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 26 [13:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:58:15]wFMCommunicate OK [13:58:15]requested_item fd.num is exist - process it [13:58:15]SAM_PROTO_GetFieldsCounters [13:58:15]wFMCommunicate request_size=4 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 13 00 00 [13:58:15]Write to MH i2c: E2 08 00 39 1F 80 13 00 00 00 00 00 00 D4 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 62 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 62 00 39 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 04 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [13:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 04 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:15]wFMCommunicate OK [13:58:15]SAM_PROTO_GetFieldsCounters done [13:58:15]requested_item shift.num is exist - process it [13:58:15]requested_item shift.opened is exist - process it [13:58:15]req_shift_opened [13:58:15]FM_GetShiftState [13:58:15]SAM_PROTO_GetShiftState [13:58:15]wFMCommunicate request_size=4 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 13 01 00 [13:58:15]Write to MH i2c: E2 08 00 3A 1F 80 13 01 00 00 00 00 00 D6 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 0E 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 0E 00 3A 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [13:58:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [13:58:15]wFMCommunicate OK [13:58:15]SAM_PROTO_GetShiftState done [13:58:15]FM_GetShiftState done [13:58:15]req_shift_opened done [13:58:15]requested_item shift.open_date is exist - process it [13:58:15]req_shift_open_date [13:58:15]req_shift_open_date done [13:58:15]produce_requested_data done [13:58:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201988,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [13:58:15]process_action_free close_receipt [13:58:15]json_value_free [13:58:15]json_value_free done [13:58:15]process_json_proto returns [13:58:15]Send response to host [13:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201988,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [13:58:15]free response buf [13:58:15]execute_script done [13:58:15]execute_script returns [13:58:15]free content buf [13:58:15]Sock 8.Close socket [13:58:15]Sock 8.Thread stoped [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]accept exits with 9 [14:07:15]New connection [14:07:15]New thread 3066641764 created [14:07:15]Thread 3066498404 joined [14:07:15]Waiting for new connection... [14:07:15] Sock 9.Parse request [14:07:15]Sock 9.Check first char [14:07:15]Sock 9.First char is OK [14:07:15]request: POST /json_proto HTTP/1.0 [14:07:15]Method: POST [14:07:15]URL: /json_proto [14:07:15]Method is POST - this is cgi request [14:07:15]url: /json_proto [14:07:15]query_string will be loaded in cgi processing [14:07:15]execute_cgi json_proto POST (null) [14:07:15]execute_cgi path=json_proto method=POST [14:07:15]POST find Content-Length [14:07:15]Host: 172.17.63.195:8080 [14:07:15]Content-Length: 682 [14:07:15]Content-Type: application/json [14:07:15] [14:07:15]POST finish read [14:07:15]Found Content-Length = 682 [14:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:07:15]execute_script... [14:07:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:07:15]POST & json_proto [14:07:15]process_json_proto [14:07:15]json parsed OK: [14:07:15]protocol is kg_v1.0 [14:07:15]action value=close_receipt [14:07:15]process_action close_receipt [14:07:15]cmd_close_receipt [14:07:15]MH_GetDate [14:07:15]Write to MH i2c: F0 00 00 3B 1F 49 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: F0 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: F0 09 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: F0 09 00 3B 1F 00 14 49 1E 67 47 1B 1E 67 1B [14:07:15]GetLastDocTimeStamp 1730037493 [14:07:15]current date 1730038036 [14:07:15]FM_GetShiftState [14:07:15]SAM_PROTO_GetShiftState [14:07:15]wFMCommunicate request_size=4 [14:07:15]MH_SAM_APDU [14:07:15]CAPDU: 80 13 01 00 [14:07:15]Write to MH i2c: E2 08 00 3C 1F 80 13 01 00 00 00 00 00 D8 [14:07:15]Write i2c OK [14:07:15]MH_I2C_Read... [14:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:15]Read from MH i2c: E2 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 0E 00 [14:07:15]MH_I2C_Read... [14:07:15]Read from MH i2c: E2 0E 00 3C 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DA [14:07:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:07:15]wFMCommunicate OK [14:07:15]SAM_PROTO_GetShiftState done [14:07:15]FM_GetShiftState done [14:07:15]opened in 1729987312 [14:07:15]opened+sec_in_day 1730073712 [14:07:15]quantity*price = 100015 [14:07:15]sum+1 = 100017 [14:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 281 27.10.2024 14:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201989 ФПД: 7704620956904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140716&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201989&fm=7704620956904&tin=02508201610067®Number=0000000000091777&sum=100000 [14:07:16]StoreToDocumentArchive [14:07:16]shift 544 fd 201989 [14:07:16]save to /storage/0544/doc_00201989 [14:07:16]save last doc name /storage/0544/doc_00201989 to /storage/kkm_last_doc_name [14:07:16]save OK [14:07:16]Clear old archive folders... [14:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:16]tlvbuf is 0118F1F0 [14:07:16]SAM_PROTO_ClearQueue [14:07:16]wFMCommunicate request_size=4 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 09 00 00 [14:07:16]Write to MH i2c: E2 08 00 49 1F 80 09 00 00 00 00 00 00 DA [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 03 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 03 00 49 1F 00 90 00 DC [14:07:16]RAPDU: 90 00 [14:07:16]wFMCommunicate OK [14:07:16]SAM_PROTO_ClearQueue done [14:07:16]KKMCreateOFDPacket [14:07:16]OFDProtocolAddRootSTLVToBuf [14:07:16]FM_MakeSignedData [14:07:16]FM_MakeSignedData [14:07:16]SAM_PROTO_SignData [14:07:16]wFMCommunicate request_size=4 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 0D 01 02 [14:07:16]Write to MH i2c: E2 08 00 4A 1F 80 0D 01 02 00 00 00 00 E2 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 03 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [14:07:16]RAPDU: 90 00 [14:07:16]wFMCommunicate OK [14:07:16]wFMCommunicate request_size=255 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 01 00 00 F4 03 04 00 14 49 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 15 03 00 35 04 06 00 07 [14:07:16]Write to MH i2c: E2 02 01 4B 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 01 00 00 F4 03 04 00 14 49 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 15 03 00 35 04 06 00 07 00 00 B2 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 03 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [14:07:16]RAPDU: 90 00 [14:07:16]wFMCommunicate OK [14:07:16]wFMCommunicate request_size=10 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 0D 02 02 05 01 DF 31 FC E8 [14:07:16]Write to MH i2c: E2 0D 00 4C 1F 80 0D 02 02 05 00 01 DF 31 FC E8 00 00 E4 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 03 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 03 00 4C 1F 00 90 00 DF [14:07:16]RAPDU: 90 00 [14:07:16]wFMCommunicate OK [14:07:16]wFMCommunicate request_size=4 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 0D 03 02 [14:07:16]Write to MH i2c: E2 08 00 4D 1F 80 0D 03 02 00 00 00 00 E7 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 0B 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 0B 00 4D 1F 00 01 4E 36 48 D3 5D 29 4F 90 00 5D [14:07:16]RAPDU: 01 4E 36 48 D3 5D 29 4F 90 00 [14:07:16]wFMCommunicate OK [14:07:16]SAM_PROTO_SignData done [14:07:16]FM_MakeSignedData done [14:07:16]CreateOFDProtocolMessage [14:07:16]wFMCommunicate request_size=4 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 11 00 00 [14:07:16]Write to MH i2c: E2 08 00 4E 1F 80 11 00 00 00 00 00 00 E7 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 17 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 17 00 4E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3C [14:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:07:16]wFMCommunicate OK [14:07:16]CreateOFDProtocolMessage done [14:07:16]OFDSenderStorePacket 201989 [14:07:16]StoreOFDPacket docnum=201989 [14:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 78 DB 07 01 2B BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 01 00 00 F4 03 04 00 14 49 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 15 03 00 35 04 06 00 07 01 DF 31 FC E8 01 4E 36 48 D3 5D 29 4F [14:07:16]CheckFolder [14:07:16]dirname=/storage/ofd_packets [14:07:16]CheckFolder done [14:07:16]ProducePacketName [14:07:16]name=ofd_packets/00201989 [14:07:16]NVStorageSaveData ofd_packets/00201989 [14:07:16]File name is /storage/ofd_packets/00201989 [14:07:16]Write 301 bytes [14:07:16]NVStorageSaveData done [14:07:16]OFDSenderStorePacket done [14:07:16]KKMCreateOFDPacket done [14:07:16]NVStorageSaveData kkm_last_timestamp [14:07:16]File name is /storage/kkm_last_timestamp [14:07:16]Write 4 bytes [14:07:16]NVStorageSaveData done [14:07:16]ExternCall_PrintAddStr [14:07:16]wPrintStart [14:07:16]Write to MH i2c: 01 00 00 4F 1F 6E [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: 01 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: 01 07 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: 01 07 00 4F 1F 00 00 00 00 00 FF 0F 83 [14:07:16]RasterBufferAndPrint [14:07:16]line Счет N : (1)449754 [14:07:16]line ИНН: 02508201610067 [14:07:16]line Контрольно-Кассовый Чек [14:07:16]line ПРОДАЖА [14:07:16]line ТРК (МРК, ГНК) : 31 [14:07:16]line Товар: 2710124130 [14:07:16]line Аи-92-К-2 [14:07:16]line 14.950 * 66.90 [14:07:16]line = 1000.16 [14:07:16]line НДС 12% НСП 1% [14:07:16]line > о реализуемом товаре [14:07:16]line ОКРУГЛЕНИЕ: -0.16 [14:07:16]line ИТОГО: 1000.00 [14:07:16]line Внесено: 1000.00 [14:07:16]line СДАЧА: 0.00 [14:07:16]line НСП 1% : 8.85 [14:07:16]line НДС 12% : 106.21 [14:07:16]line Наличными: 1000.00 [14:07:16]line Безнал.: 0.00 [14:07:16]line Место: АЗС № 171 "Партнер Нефть" [14:07:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:07:16]line СНО: Общий режим [14:07:16]line Чек 281 27.10.2024 14:07 [14:07:16]line Смена: 544 ФФД: 1.0 [14:07:16]line ЗНМ: 0300000109 [14:07:16]line РНМ: 0000000000091777 [14:07:16]line Версия ККМ: 001 [14:07:16]line ФМ: 0000000000871756 [14:07:16]line ФД: 201989 [14:07:16]line ФПД: 7704620956904 [14:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140716&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201989&fm=7704620956904&tin=02508201610067®Number=0000000000091777&sum=100000 [14:07:17]OFD Sender: Processing packet 201989 [packets to send 112, broken 111] [14:07:17]ProducePacketName [14:07:17]name=ofd_packets/00201989 [14:07:17]OFD Sender: To server: pG, [14:07:17]CommunicateWithHost lk.salyk.kg:30040 [14:07:17]ConnectInit lk.salyk.kg [14:07:17]written 0, free lines is 4095 [14:07:17]Connected sock=10 [14:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 78 DB 07 01 2B BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 19 01 00 00 F4 03 04 00 14 49 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 15 03 00 35 04 06 00 07 01 DF 31 FC E8 01 4E 36 48 D3 5D 29 4F [14:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C 5F 47 00 A5 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 15 03 00 F4 03 04 00 CE F4 1D 67 B6 04 01 00 00 8E FA 6B 77 84 50 83 57 [14:07:17]CommunicateWithHost err = 0 [14:07:17]CheckOFDResponse [14:07:17]1017 (14) - 77093643461234 [14:07:17]1041 (16) - 0000000000871756 [14:07:17]1040 (4) - 201989 [14:07:17]1012 (4) - 27.10.2024 08:07 [14:07:17]1206 (1) - 0 [14:07:17]OFD Sender: Remove packet 201989 [14:07:17]ProducePacketName [14:07:17]name=ofd_packets/00201989 [14:07:17]NVStorageDeleteData [14:07:17]Write to MH i2c: 01 00 00 7A 1F 99 [14:07:17]Write i2c OK [14:07:17]MH_I2C_Read... [14:07:17]Read from MH i2c: 01 [14:07:17]MH_I2C_Read... [14:07:17]Read from MH i2c: 01 07 00 [14:07:17]MH_I2C_Read... [14:07:17]Read from MH i2c: 01 07 00 7A 1F 00 00 00 00 00 82 0C 2E [14:07:17]RasterBufferAndPrint [14:07:17]line [14:07:17]line [14:07:17]line [14:07:17]line [14:07:17]line [14:07:17]written 0, free lines is 3207 [14:07:17]MH_Cut [14:07:17]Write to MH i2c: D1 01 00 81 1F 01 72 [14:07:17]Write i2c OK [14:07:17]MH_I2C_Read... [14:07:17]Read from MH i2c: D1 [14:07:17]MH_I2C_Read... [14:07:17]Read from MH i2c: D1 01 00 [14:07:17]MH_I2C_Read... [14:07:17]Read from MH i2c: D1 01 00 81 1F 00 71 [14:07:17]Write to MH i2c: 01 00 00 82 1F A1 [14:07:17]Write i2c OK [14:07:17]MH_I2C_Read... [14:07:17]OFD Sender: No OFD packet to send [14:07:18]*** Cut start [14:07:18]*** Purtial cut [14:07:18]*** Stage 1: CUTSNS_PIN = 1 [14:07:18]Read from MH i2c: 01 [14:07:18]MH_I2C_Read... [14:07:18]*** Stop cut motor [14:07:18]*** Cut end [14:07:18]Read from MH i2c: 01 07 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 82 1F 00 00 00 00 00 FF 0F B6 [14:07:18]process_action close_receipt done [14:07:18]requested_data is exist [14:07:18]produce_requested_data [14:07:18]requested_item fm.sn is exist - process it [14:07:18]wFMCommunicate request_size=4 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 11 00 00 [14:07:18]Write to MH i2c: E2 08 00 83 1F 80 11 00 00 00 00 00 00 1C [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:18]Read from MH i2c: E2 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 17 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 17 00 83 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 71 [14:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:07:18]wFMCommunicate OK [14:07:18]requested_item fd.num is exist - process it [14:07:18]SAM_PROTO_GetFieldsCounters [14:07:18]wFMCommunicate request_size=4 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 13 00 00 [14:07:18]Write to MH i2c: E2 08 00 84 1F 80 13 00 00 00 00 00 00 1F [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:18]Read from MH i2c: E2 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 62 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 62 00 84 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 05 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [14:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 05 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:18]wFMCommunicate OK [14:07:18]SAM_PROTO_GetFieldsCounters done [14:07:18]requested_item shift.num is exist - process it [14:07:18]requested_item shift.opened is exist - process it [14:07:18]req_shift_opened [14:07:18]FM_GetShiftState [14:07:18]SAM_PROTO_GetShiftState [14:07:18]wFMCommunicate request_size=4 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 13 01 00 [14:07:18]Write to MH i2c: E2 08 00 85 1F 80 13 01 00 00 00 00 00 21 [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:19]Read from MH i2c: E2 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: E2 0E 00 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: E2 0E 00 85 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 23 [14:07:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:07:19]wFMCommunicate OK [14:07:19]SAM_PROTO_GetShiftState done [14:07:19]FM_GetShiftState done [14:07:19]req_shift_opened done [14:07:19]requested_item shift.open_date is exist - process it [14:07:19]req_shift_open_date [14:07:19]req_shift_open_date done [14:07:19]produce_requested_data done [14:07:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201989,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:07:19]process_action_free close_receipt [14:07:19]json_value_free [14:07:19]json_value_free done [14:07:19]process_json_proto returns [14:07:19]Send response to host [14:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201989,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:07:19]free response buf [14:07:19]execute_script done [14:07:19]execute_script returns [14:07:19]free content buf [14:07:19]Sock 9.Close socket [14:07:19]Sock 9.Thread stoped [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:51]accept exits with 8 [14:10:51]New connection [14:10:51]New thread 3066498404 created [14:10:51]Thread 3066641764 joined [14:10:51]Waiting for new connection... [14:10:51] Sock 8.Parse request [14:10:51]Sock 8.Check first char [14:10:51]Sock 8.First char is OK [14:10:51]request: POST /json_proto HTTP/1.0 [14:10:51]Method: POST [14:10:51]URL: /json_proto [14:10:51]Method is POST - this is cgi request [14:10:51]url: /json_proto [14:10:51]query_string will be loaded in cgi processing [14:10:51]execute_cgi json_proto POST (null) [14:10:51]execute_cgi path=json_proto method=POST [14:10:51]POST find Content-Length [14:10:51]Host: 172.17.63.195:8080 [14:10:51]Content-Length: 677 [14:10:51]Content-Type: application/json [14:10:51] [14:10:51]POST finish read [14:10:51]Found Content-Length = 677 [14:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:51]execute_script... [14:10: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)449756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:51]POST & json_proto [14:10:51]process_json_proto [14:10:51]json parsed OK: [14:10:51]protocol is kg_v1.0 [14:10:51]action value=close_receipt [14:10:51]process_action close_receipt [14:10:51]cmd_close_receipt [14:10:51]MH_GetDate [14:10:51]Write to MH i2c: F0 00 00 86 1F 94 [14:10:51]Write i2c OK [14:10:51]MH_I2C_Read... [14:10:51]Read from MH i2c: F0 [14:10:51]MH_I2C_Read... [14:10:51]Read from MH i2c: F0 09 00 [14:10:51]MH_I2C_Read... [14:10:51]Read from MH i2c: F0 09 00 86 1F 00 EC 49 1E 67 47 1B 1E 67 3E [14:10:51]GetLastDocTimeStamp 1730038036 [14:10:51]current date 1730038252 [14:10:51]FM_GetShiftState [14:10:51]SAM_PROTO_GetShiftState [14:10:51]wFMCommunicate request_size=4 [14:10:51]MH_SAM_APDU [14:10:51]CAPDU: 80 13 01 00 [14:10:51]Write to MH i2c: E2 08 00 87 1F 80 13 01 00 00 00 00 00 23 [14:10:51]Write i2c OK [14:10:51]MH_I2C_Read... [14:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:51]Read from MH i2c: E2 [14:10:51]MH_I2C_Read... [14:10:51]Read from MH i2c: E2 0E 00 [14:10:51]MH_I2C_Read... [14:10:51]Read from MH i2c: E2 0E 00 87 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 25 [14:10:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:10:51]wFMCommunicate OK [14:10:51]SAM_PROTO_GetShiftState done [14:10:51]FM_GetShiftState done [14:10:51]opened in 1729987312 [14:10:51]opened+sec_in_day 1730073712 [14:10:51]quantity*price = 50041 [14:10:51]sum+1 = 50042 [14:10:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 282 27.10.2024 14:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201990 ФПД: 35828842424482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141052&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201990&fm=35828842424482&tin=02508201610067®Number=0000000000091777&sum=50000 [14:10:52]StoreToDocumentArchive [14:10:52]shift 544 fd 201990 [14:10:52]save to /storage/0544/doc_00201990 [14:10:52]save last doc name /storage/0544/doc_00201990 to /storage/kkm_last_doc_name [14:10:52]save OK [14:10:52]Clear old archive folders... [14:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:52]tlvbuf is B6F0C230 [14:10:52]SAM_PROTO_ClearQueue [14:10:52]wFMCommunicate request_size=4 [14:10:52]MH_SAM_APDU [14:10:52]CAPDU: 80 09 00 00 [14:10:52]Write to MH i2c: E2 08 00 94 1F 80 09 00 00 00 00 00 00 25 [14:10:52]Write i2c OK [14:10:52]MH_I2C_Read... [14:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:53]Read from MH i2c: E2 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 03 00 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 03 00 94 1F 00 90 00 27 [14:10:53]RAPDU: 90 00 [14:10:53]wFMCommunicate OK [14:10:53]SAM_PROTO_ClearQueue done [14:10:53]KKMCreateOFDPacket [14:10:53]OFDProtocolAddRootSTLVToBuf [14:10:53]FM_MakeSignedData [14:10:53]FM_MakeSignedData [14:10:53]SAM_PROTO_SignData [14:10:53]wFMCommunicate request_size=4 [14:10:53]MH_SAM_APDU [14:10:53]CAPDU: 80 0D 01 02 [14:10:53]Write to MH i2c: E2 08 00 95 1F 80 0D 01 02 00 00 00 00 2D [14:10:53]Write i2c OK [14:10:53]MH_I2C_Read... [14:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:53]Read from MH i2c: E2 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 03 00 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 03 00 95 1F 00 90 00 28 [14:10:53]RAPDU: 90 00 [14:10:53]wFMCommunicate OK [14:10:53]wFMCommunicate request_size=255 [14:10:53]MH_SAM_APDU [14:10:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1A 01 00 00 F4 03 04 00 EC 49 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 15 03 00 35 04 06 00 20 [14:10:53]Write to MH i2c: E2 02 01 96 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1A 01 00 00 F4 03 04 00 EC 49 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 15 03 00 35 04 06 00 20 00 00 F6 [14:10:53]Write i2c OK [14:10:53]MH_I2C_Read... [14:10:53]OFD Sender: No OFD packet to send [14:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:53]Read from MH i2c: E2 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 03 00 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 03 00 96 1F 00 90 00 29 [14:10:53]RAPDU: 90 00 [14:10:53]wFMCommunicate OK [14:10:53]wFMCommunicate request_size=10 [14:10:53]MH_SAM_APDU [14:10:53]CAPDU: 80 0D 02 02 05 96 0D 6C E8 A2 [14:10:53]Write to MH i2c: E2 0D 00 97 1F 80 0D 02 02 05 00 96 0D 6C E8 A2 00 00 D3 [14:10:53]Write i2c OK [14:10:53]MH_I2C_Read... [14:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:53]Read from MH i2c: E2 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 03 00 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 03 00 97 1F 00 90 00 2A [14:10:53]RAPDU: 90 00 [14:10:53]wFMCommunicate OK [14:10:53]wFMCommunicate request_size=4 [14:10:53]MH_SAM_APDU [14:10:53]CAPDU: 80 0D 03 02 [14:10:53]Write to MH i2c: E2 08 00 98 1F 80 0D 03 02 00 00 00 00 32 [14:10:53]Write i2c OK [14:10:53]MH_I2C_Read... [14:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:53]Read from MH i2c: E2 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 0B 00 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 0B 00 98 1F 00 FD E7 D6 92 49 B2 C9 40 90 00 83 [14:10:53]RAPDU: FD E7 D6 92 49 B2 C9 40 90 00 [14:10:53]wFMCommunicate OK [14:10:53]SAM_PROTO_SignData done [14:10:53]FM_MakeSignedData done [14:10:53]CreateOFDProtocolMessage [14:10:53]wFMCommunicate request_size=4 [14:10:53]MH_SAM_APDU [14:10:53]CAPDU: 80 11 00 00 [14:10:53]Write to MH i2c: E2 08 00 99 1F 80 11 00 00 00 00 00 00 32 [14:10:53]Write i2c OK [14:10:53]MH_I2C_Read... [14:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:53]Read from MH i2c: E2 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 17 00 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: E2 17 00 99 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 87 [14:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:10:53]wFMCommunicate OK [14:10:53]CreateOFDProtocolMessage done [14:10:53]OFDSenderStorePacket 201990 [14:10:53]StoreOFDPacket docnum=201990 [14:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D8 B1 07 01 77 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1A 01 00 00 F4 03 04 00 EC 49 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 15 03 00 35 04 06 00 20 96 0D 6C E8 A2 FD E7 D6 92 49 B2 C9 40 [14:10:53]CheckFolder [14:10:53]dirname=/storage/ofd_packets [14:10:53]CheckFolder done [14:10:53]ProducePacketName [14:10:53]name=ofd_packets/00201990 [14:10:53]NVStorageSaveData ofd_packets/00201990 [14:10:53]File name is /storage/ofd_packets/00201990 [14:10:53]Write 301 bytes [14:10:53]NVStorageSaveData done [14:10:53]OFDSenderStorePacket done [14:10:53]KKMCreateOFDPacket done [14:10:53]NVStorageSaveData kkm_last_timestamp [14:10:53]File name is /storage/kkm_last_timestamp [14:10:53]Write 4 bytes [14:10:53]NVStorageSaveData done [14:10:53]ExternCall_PrintAddStr [14:10:53]wPrintStart [14:10:53]Write to MH i2c: 01 00 00 9A 1F B9 [14:10:53]Write i2c OK [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: 01 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: 01 07 00 [14:10:53]MH_I2C_Read... [14:10:53]Read from MH i2c: 01 07 00 9A 1F 00 00 00 00 00 FF 0F CE [14:10:53]RasterBufferAndPrint [14:10:53]line Счет N : (1)449756 [14:10:53]line ИНН: 02508201610067 [14:10:53]line Контрольно-Кассовый Чек [14:10:53]line ПРОДАЖА [14:10:53]line ТРК (МРК, ГНК) : 52 [14:10:53]line Товар: 2710124130 [14:10:53]line Аи-92-К-2 [14:10:53]line 7.480 * 66.90 [14:10:53]line = 500.41 [14:10:53]line НДС 12% НСП 1% [14:10:53]line > о реализуемом товаре [14:10:53]line ОКРУГЛЕНИЕ: -0.41 [14:10:53]line ИТОГО: 500.00 [14:10:53]line Внесено: 500.00 [14:10:53]line СДАЧА: 0.00 [14:10:53]line НСП 1% : 4.43 [14:10:53]line НДС 12% : 53.14 [14:10:53]line Наличными: 500.00 [14:10:53]line Безнал.: 0.00 [14:10:53]line Место: АЗС № 171 "Партнер Нефть" [14:10:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:10:53]line СНО: Общий режим [14:10:53]line Чек 282 27.10.2024 14:10 [14:10:53]line Смена: 544 ФФД: 1.0 [14:10:53]line ЗНМ: 0300000109 [14:10:53]line РНМ: 0000000000091777 [14:10:53]line Версия ККМ: 001 [14:10:53]line ФМ: 0000000000871756 [14:10:53]line ФД: 201990 [14:10:53]line ФПД: 35828842424482 [14:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141052&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201990&fm=35828842424482&tin=02508201610067®Number=0000000000091777&sum=50000 [14:10:53]OFD Sender: Processing packet 201990 [packets to send 112, broken 111] [14:10:53]ProducePacketName [14:10:53]name=ofd_packets/00201990 [14:10:53]OFD Sender: To server: pG, [14:10:53]CommunicateWithHost lk.salyk.kg:30040 [14:10:53]ConnectInit lk.salyk.kg [14:10:53]written 0, free lines is 4095 [14:10:53]Connected sock=10 [14:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D8 B1 07 01 77 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1A 01 00 00 F4 03 04 00 EC 49 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 15 03 00 35 04 06 00 20 96 0D 6C E8 A2 FD E7 D6 92 49 B2 C9 40 [14:10:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A5 CA 47 00 98 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 15 03 00 F4 03 04 00 A6 F5 1D 67 B6 04 01 00 00 1E 0E D5 88 81 5B F7 47 [14:10:54]CommunicateWithHost err = 0 [14:10:54]CheckOFDResponse [14:10:54]1017 (14) - 77093643461234 [14:10:54]1041 (16) - 0000000000871756 [14:10:54]1040 (4) - 201990 [14:10:54]1012 (4) - 27.10.2024 08:11 [14:10:54]1206 (1) - 0 [14:10:54]OFD Sender: Remove packet 201990 [14:10:54]ProducePacketName [14:10:54]name=ofd_packets/00201990 [14:10:54]NVStorageDeleteData [14:10:54]Write to MH i2c: 01 00 00 C5 1F E4 [14:10:54]Write i2c OK [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: 01 [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: 01 07 00 [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: 01 07 00 C5 1F 00 00 00 00 00 86 0C 7D [14:10:54]RasterBufferAndPrint [14:10:54]line [14:10:54]line [14:10:54]line [14:10:54]line [14:10:54]line [14:10:54]written 0, free lines is 3211 [14:10:54]MH_Cut [14:10:54]Write to MH i2c: D1 01 00 CC 1F 01 BD [14:10:54]Write i2c OK [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: D1 [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: D1 01 00 [14:10:54]MH_I2C_Read... [14:10:54]Read from MH i2c: D1 01 00 CC 1F 00 BC [14:10:54]Write to MH i2c: 01 00 00 CD 1F EC [14:10:54]Write i2c OK [14:10:54]MH_I2C_Read... [14:10:54]OFD Sender: No OFD packet to send [14:10:55]*** Cut start [14:10:55]*** Purtial cut [14:10:55]*** Stage 1: CUTSNS_PIN = 1 [14:10:55]Read from MH i2c: 01 [14:10:55]MH_I2C_Read... [14:10:55]*** Stop cut motor [14:10:55]Read from MH i2c: 01 07 00 [14:10:55]MH_I2C_Read... [14:10:55]*** Cut end [14:10:55]Read from MH i2c: 01 07 00 CD 1F 00 00 00 00 00 FF 0F 01 [14:10:55]process_action close_receipt done [14:10:55]requested_data is exist [14:10:55]produce_requested_data [14:10:55]requested_item fm.sn is exist - process it [14:10:55]wFMCommunicate request_size=4 [14:10:55]MH_SAM_APDU [14:10:55]CAPDU: 80 11 00 00 [14:10:55]Write to MH i2c: E2 08 00 CE 1F 80 11 00 00 00 00 00 00 67 [14:10:55]Write i2c OK [14:10:55]MH_I2C_Read... [14:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:55]Read from MH i2c: E2 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 17 00 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 17 00 CE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BC [14:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:10:55]wFMCommunicate OK [14:10:55]requested_item fd.num is exist - process it [14:10:55]SAM_PROTO_GetFieldsCounters [14:10:55]wFMCommunicate request_size=4 [14:10:55]MH_SAM_APDU [14:10:55]CAPDU: 80 13 00 00 [14:10:55]Write to MH i2c: E2 08 00 CF 1F 80 13 00 00 00 00 00 00 6A [14:10:55]Write i2c OK [14:10:55]MH_I2C_Read... [14:10:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:55]Read from MH i2c: E2 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 62 00 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 62 00 CF 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 06 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [14:10:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 06 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:55]wFMCommunicate OK [14:10:55]SAM_PROTO_GetFieldsCounters done [14:10:55]requested_item shift.num is exist - process it [14:10:55]requested_item shift.opened is exist - process it [14:10:55]req_shift_opened [14:10:55]FM_GetShiftState [14:10:55]SAM_PROTO_GetShiftState [14:10:55]wFMCommunicate request_size=4 [14:10:55]MH_SAM_APDU [14:10:55]CAPDU: 80 13 01 00 [14:10:55]Write to MH i2c: E2 08 00 D0 1F 80 13 01 00 00 00 00 00 6C [14:10:55]Write i2c OK [14:10:55]MH_I2C_Read... [14:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:55]Read from MH i2c: E2 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 0E 00 [14:10:55]MH_I2C_Read... [14:10:55]Read from MH i2c: E2 0E 00 D0 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6E [14:10:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:10:55]wFMCommunicate OK [14:10:55]SAM_PROTO_GetShiftState done [14:10:55]FM_GetShiftState done [14:10:55]req_shift_opened done [14:10:55]requested_item shift.open_date is exist - process it [14:10:55]req_shift_open_date [14:10:55]req_shift_open_date done [14:10:55]produce_requested_data done [14:10:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201990,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:10:55]process_action_free close_receipt [14:10:55]json_value_free [14:10:55]json_value_free done [14:10:55]process_json_proto returns [14:10:55]Send response to host [14:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201990,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:10:55]free response buf [14:10:55]execute_script done [14:10:55]execute_script returns [14:10:55]free content buf [14:10:55]Sock 8.Close socket [14:10:55]Sock 8.Thread stoped [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:22]accept exits with 9 [14:11:22]New connection [14:11:22]New thread 3066641764 created [14:11:22]Thread 3066498404 joined [14:11:22]Waiting for new connection... [14:11:22] Sock 9.Parse request [14:11:22]Sock 9.Check first char [14:11:22]Sock 9.First char is OK [14:11:22]request: POST /json_proto HTTP/1.0 [14:11:22]Method: POST [14:11:22]URL: /json_proto [14:11:22]Method is POST - this is cgi request [14:11:22]url: /json_proto [14:11:22]query_string will be loaded in cgi processing [14:11:22]execute_cgi json_proto POST (null) [14:11:22]execute_cgi path=json_proto method=POST [14:11:22]POST find Content-Length [14:11:22]Host: 172.17.63.195:8080 [14:11:22]Content-Length: 679 [14:11:22]Content-Type: application/json [14:11:22] [14:11:22]POST finish read [14:11:22]Found Content-Length = 679 [14:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:22]execute_script... [14:11: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)449755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:22]POST & json_proto [14:11:22]process_json_proto [14:11:22]json parsed OK: [14:11:22]protocol is kg_v1.0 [14:11:22]action value=close_receipt [14:11:22]process_action close_receipt [14:11:22]cmd_close_receipt [14:11:22]MH_GetDate [14:11:22]Write to MH i2c: F0 00 00 D1 1F DF [14:11:22]Write i2c OK [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: F0 [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: F0 09 00 [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: F0 09 00 D1 1F 00 0B 4A 1E 67 47 1B 1E 67 A9 [14:11:22]GetLastDocTimeStamp 1730038252 [14:11:22]current date 1730038283 [14:11:22]FM_GetShiftState [14:11:22]SAM_PROTO_GetShiftState [14:11:22]wFMCommunicate request_size=4 [14:11:22]MH_SAM_APDU [14:11:22]CAPDU: 80 13 01 00 [14:11:22]Write to MH i2c: E2 08 00 D2 1F 80 13 01 00 00 00 00 00 6E [14:11:22]Write i2c OK [14:11:22]MH_I2C_Read... [14:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:22]Read from MH i2c: E2 [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: E2 0E 00 [14:11:22]MH_I2C_Read... [14:11:22]Read from MH i2c: E2 0E 00 D2 1F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 70 [14:11:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:11:22]wFMCommunicate OK [14:11:22]SAM_PROTO_GetShiftState done [14:11:22]FM_GetShiftState done [14:11:22]opened in 1729987312 [14:11:22]opened+sec_in_day 1730073712 [14:11:22]quantity*price = 200025 [14:11:22]sum+1 = 200026 [14:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 283 27.10.2024 14:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201991 ФПД: 56343703412923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141123&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201991&fm=56343703412923&tin=02508201610067®Number=0000000000091777&sum=200000 [14:11:23]StoreToDocumentArchive [14:11:23]shift 544 fd 201991 [14:11:23]save to /storage/0544/doc_00201991 [14:11:23]save last doc name /storage/0544/doc_00201991 to /storage/kkm_last_doc_name [14:11:23]save OK [14:11:23]Clear old archive folders... [14:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:23]tlvbuf is B6F0C290 [14:11:23]SAM_PROTO_ClearQueue [14:11:23]wFMCommunicate request_size=4 [14:11:23]MH_SAM_APDU [14:11:23]CAPDU: 80 09 00 00 [14:11:23]Write to MH i2c: E2 08 00 DF 1F 80 09 00 00 00 00 00 00 70 [14:11:23]Write i2c OK [14:11:23]MH_I2C_Read... [14:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:23]Read from MH i2c: E2 [14:11:23]MH_I2C_Read... [14:11:23]Read from MH i2c: E2 03 00 [14:11:23]MH_I2C_Read... [14:11:23]Read from MH i2c: E2 03 00 DF 1F 00 90 00 72 [14:11:23]RAPDU: 90 00 [14:11:23]wFMCommunicate OK [14:11:23]SAM_PROTO_ClearQueue done [14:11:23]KKMCreateOFDPacket [14:11:23]OFDProtocolAddRootSTLVToBuf [14:11:23]FM_MakeSignedData [14:11:23]FM_MakeSignedData [14:11:23]SAM_PROTO_SignData [14:11:23]wFMCommunicate request_size=4 [14:11:23]MH_SAM_APDU [14:11:23]CAPDU: 80 0D 01 02 [14:11:23]Write to MH i2c: E2 08 00 E0 1F 80 0D 01 02 00 00 00 00 78 [14:11:23]Write i2c OK [14:11:23]MH_I2C_Read... [14:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:23]Read from MH i2c: E2 [14:11:23]MH_I2C_Read... [14:11:23]Read from MH i2c: E2 03 00 [14:11:23]MH_I2C_Read... [14:11:23]Read from MH i2c: E2 03 00 E0 1F 00 90 00 73 [14:11:23]RAPDU: 90 00 [14:11:23]wFMCommunicate OK [14:11:23]wFMCommunicate request_size=255 [14:11:23]MH_SAM_APDU [14:11: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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 0B 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 15 03 00 35 04 06 00 33 3E 8A 6D [14:11:23]Write to MH i2c: E2 02 01 E1 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 0B 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 15 03 00 35 04 06 00 33 3E 8A 6D 00 00 8F [14:11:23]Write i2c OK [14:11:23]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 03 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 03 00 E1 1F 00 90 00 74 [14:11:24]RAPDU: 90 00 [14:11:24]wFMCommunicate OK [14:11:24]wFMCommunicate request_size=7 [14:11:24]MH_SAM_APDU [14:11:24]CAPDU: 80 0D 02 02 02 60 BB [14:11:24]Write to MH i2c: E2 0A 00 E2 1F 80 0D 02 02 02 00 60 BB 00 00 9A [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 03 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 03 00 E2 1F 00 90 00 75 [14:11:24]RAPDU: 90 00 [14:11:24]wFMCommunicate OK [14:11:24]wFMCommunicate request_size=4 [14:11:24]MH_SAM_APDU [14:11:24]CAPDU: 80 0D 03 02 [14:11:24]Write to MH i2c: E2 08 00 E3 1F 80 0D 03 02 00 00 00 00 7D [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 0B 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 0B 00 E3 1F 00 79 C6 B9 D7 46 97 DC CB 90 00 D1 [14:11:24]RAPDU: 79 C6 B9 D7 46 97 DC CB 90 00 [14:11:24]wFMCommunicate OK [14:11:24]SAM_PROTO_SignData done [14:11:24]FM_MakeSignedData done [14:11:24]CreateOFDProtocolMessage [14:11:24]wFMCommunicate request_size=4 [14:11:24]MH_SAM_APDU [14:11:24]CAPDU: 80 11 00 00 [14:11:24]Write to MH i2c: E2 08 00 E4 1F 80 11 00 00 00 00 00 00 7D [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:24]Read from MH i2c: E2 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 17 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: E2 17 00 E4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D2 [14:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:11:24]wFMCommunicate OK [14:11:24]CreateOFDProtocolMessage done [14:11:24]OFDSenderStorePacket 201991 [14:11:24]StoreOFDPacket docnum=201991 [14:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E7 2D 04 01 9F 38 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 0B 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 15 03 00 35 04 06 00 33 3E 8A 6D 60 BB 79 C6 B9 D7 46 97 DC CB [14:11:24]CheckFolder [14:11:24]dirname=/storage/ofd_packets [14:11:24]CheckFolder done [14:11:24]ProducePacketName [14:11:24]name=ofd_packets/00201991 [14:11:24]NVStorageSaveData ofd_packets/00201991 [14:11:24]File name is /storage/ofd_packets/00201991 [14:11:24]Write 298 bytes [14:11:24]NVStorageSaveData done [14:11:24]OFDSenderStorePacket done [14:11:24]KKMCreateOFDPacket done [14:11:24]NVStorageSaveData kkm_last_timestamp [14:11:24]File name is /storage/kkm_last_timestamp [14:11:24]Write 4 bytes [14:11:24]NVStorageSaveData done [14:11:24]ExternCall_PrintAddStr [14:11:24]wPrintStart [14:11:24]Write to MH i2c: 01 00 00 E5 1F 04 [14:11:24]Write i2c OK [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: 01 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: 01 07 00 [14:11:24]MH_I2C_Read... [14:11:24]Read from MH i2c: 01 07 00 E5 1F 00 00 00 00 00 FF 0F 19 [14:11:24]RasterBufferAndPrint [14:11:24]line Счет N : (1)449755 [14:11:24]line ИНН: 02508201610067 [14:11:24]line Контрольно-Кассовый Чек [14:11:24]line ПРОДАЖА [14:11:24]line ТРК (МРК, ГНК) : 33 [14:11:24]line Товар: 2710194210 [14:11:24]line ДТ-К-2 [14:11:24]line 26.250 * 76.20 [14:11:24]line = 2000.25 [14:11:24]line НДС 12% НСП 1% [14:11:24]line > о реализуемом товаре [14:11:24]line ОКРУГЛЕНИЕ: -0.25 [14:11:24]line ИТОГО: 2000.00 [14:11:24]line Внесено: 2000.00 [14:11:24]line СДАЧА: 0.00 [14:11:24]line НСП 1% : 17.70 [14:11:24]line НДС 12% : 212.42 [14:11:24]line Наличными: 2000.00 [14:11:24]line Безнал.: 0.00 [14:11:24]line Место: АЗС № 171 "Партнер Нефть" [14:11:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:11:24]line СНО: Общий режим [14:11:24]line Чек 283 27.10.2024 14:11 [14:11:24]line Смена: 544 ФФД: 1.0 [14:11:24]line ЗНМ: 0300000109 [14:11:24]line РНМ: 0000000000091777 [14:11:24]line Версия ККМ: 001 [14:11:24]line ФМ: 0000000000871756 [14:11:24]line ФД: 201991 [14:11:24]line ФПД: 56343703412923 [14:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141123&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201991&fm=56343703412923&tin=02508201610067®Number=0000000000091777&sum=200000 [14:11:24]OFD Sender: Processing packet 201991 [packets to send 112, broken 111] [14:11:24]ProducePacketName [14:11:24]name=ofd_packets/00201991 [14:11:24]OFD Sender: To server: pG, [14:11:24]CommunicateWithHost lk.salyk.kg:30040 [14:11:24]ConnectInit lk.salyk.kg [14:11:24]written 0, free lines is 4095 [14:11:24]Connected sock=8 [14:11:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E7 2D 04 01 9F 38 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 0B 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 15 03 00 35 04 06 00 33 3E 8A 6D 60 BB 79 C6 B9 D7 46 97 DC CB [14:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AD 79 47 00 5B 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 15 03 00 F4 03 04 00 C5 F5 1D 67 B6 04 01 00 00 97 E5 CB EE 89 EB C3 47 [14:11:25]CommunicateWithHost err = 0 [14:11:25]CheckOFDResponse [14:11:25]1017 (14) - 77093643461234 [14:11:25]1041 (16) - 0000000000871756 [14:11:25]1040 (4) - 201991 [14:11:25]1012 (4) - 27.10.2024 08:11 [14:11:25]1206 (1) - 0 [14:11:25]OFD Sender: Remove packet 201991 [14:11:25]ProducePacketName [14:11:25]name=ofd_packets/00201991 [14:11:25]NVStorageDeleteData [14:11:25]Write to MH i2c: 01 00 00 10 20 30 [14:11:25]Write i2c OK [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: 01 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: 01 07 00 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: 01 07 00 10 20 00 00 00 00 00 85 0C C8 [14:11:25]RasterBufferAndPrint [14:11:25]line [14:11:25]line [14:11:25]line [14:11:25]line [14:11:25]line [14:11:25]written 0, free lines is 3210 [14:11:25]MH_Cut [14:11:25]Write to MH i2c: D1 01 00 17 20 01 09 [14:11:25]Write i2c OK [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: D1 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: D1 01 00 [14:11:25]MH_I2C_Read... [14:11:25]Read from MH i2c: D1 01 00 17 20 00 08 [14:11:25]Write to MH i2c: 01 00 00 18 20 38 [14:11:25]Write i2c OK [14:11:25]MH_I2C_Read... [14:11:25]OFD Sender: No OFD packet to send [14:11:26]*** Cut start [14:11:26]*** Purtial cut [14:11:26]*** Stage 1: CUTSNS_PIN = 1 [14:11:26]Read from MH i2c: 01 [14:11:26]MH_I2C_Read... [14:11:26]*** Stop cut motor [14:11:26]*** Cut end [14:11:26]Read from MH i2c: 01 07 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: 01 07 00 18 20 00 00 00 00 00 FF 0F 4D [14:11:26]process_action close_receipt done [14:11:26]requested_data is exist [14:11:26]produce_requested_data [14:11:26]requested_item fm.sn is exist - process it [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 11 00 00 [14:11:26]Write to MH i2c: E2 08 00 19 20 80 11 00 00 00 00 00 00 B3 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 17 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 17 00 19 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 08 [14:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:11:26]wFMCommunicate OK [14:11:26]requested_item fd.num is exist - process it [14:11:26]SAM_PROTO_GetFieldsCounters [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 13 00 00 [14:11:26]Write to MH i2c: E2 08 00 1A 20 80 13 00 00 00 00 00 00 B6 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 62 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 62 00 1A 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 07 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [14:11:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 07 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:26]wFMCommunicate OK [14:11:26]SAM_PROTO_GetFieldsCounters done [14:11:26]requested_item shift.num is exist - process it [14:11:26]requested_item shift.opened is exist - process it [14:11:26]req_shift_opened [14:11:26]FM_GetShiftState [14:11:26]SAM_PROTO_GetShiftState [14:11:26]wFMCommunicate request_size=4 [14:11:26]MH_SAM_APDU [14:11:26]CAPDU: 80 13 01 00 [14:11:26]Write to MH i2c: E2 08 00 1B 20 80 13 01 00 00 00 00 00 B8 [14:11:26]Write i2c OK [14:11:26]MH_I2C_Read... [14:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:26]Read from MH i2c: E2 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 0E 00 [14:11:26]MH_I2C_Read... [14:11:26]Read from MH i2c: E2 0E 00 1B 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BA [14:11:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:11:26]wFMCommunicate OK [14:11:26]SAM_PROTO_GetShiftState done [14:11:26]FM_GetShiftState done [14:11:26]req_shift_opened done [14:11:26]requested_item shift.open_date is exist - process it [14:11:26]req_shift_open_date [14:11:26]req_shift_open_date done [14:11:26]produce_requested_data done [14:11:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201991,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:11:26]process_action_free close_receipt [14:11:26]json_value_free [14:11:26]json_value_free done [14:11:26]process_json_proto returns [14:11:26]Send response to host [14:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201991,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:11:26]free response buf [14:11:26]execute_script done [14:11:26]execute_script returns [14:11:26]free content buf [14:11:26]Sock 9.Close socket [14:11:26]Sock 9.Thread stoped [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]accept exits with 10 [14:14:40]New connection [14:14:40]New thread 3066498404 created [14:14:40]Thread 3066641764 joined [14:14:40]Waiting for new connection... [14:14:40] Sock 10.Parse request [14:14:40]Sock 10.Check first char [14:14:40]Sock 10.First char is OK [14:14:40]request: POST /json_proto HTTP/1.0 [14:14:40]Method: POST [14:14:40]URL: /json_proto [14:14:40]Method is POST - this is cgi request [14:14:40]url: /json_proto [14:14:40]query_string will be loaded in cgi processing [14:14:40]execute_cgi json_proto POST (null) [14:14:40]execute_cgi path=json_proto method=POST [14:14:40]POST find Content-Length [14:14:40]Host: 172.17.63.195:8080 [14:14:40]Content-Length: 679 [14:14:40]Content-Type: application/json [14:14:40] [14:14:40]POST finish read [14:14:40]Found Content-Length = 679 [14:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:14:40]execute_script... [14:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:14:40]POST & json_proto [14:14:40]process_json_proto [14:14:40]json parsed OK: [14:14:40]protocol is kg_v1.0 [14:14:40]action value=close_receipt [14:14:40]process_action close_receipt [14:14:40]cmd_close_receipt [14:14:40]MH_GetDate [14:14:40]Write to MH i2c: F0 00 00 1C 20 2B [14:14:40]Write i2c OK [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: F0 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: F0 09 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: F0 09 00 1C 20 00 D1 4A 1E 67 47 1B 1E 67 BB [14:14:40]GetLastDocTimeStamp 1730038283 [14:14:40]current date 1730038481 [14:14:40]FM_GetShiftState [14:14:40]SAM_PROTO_GetShiftState [14:14:40]wFMCommunicate request_size=4 [14:14:40]MH_SAM_APDU [14:14:40]CAPDU: 80 13 01 00 [14:14:40]Write to MH i2c: E2 08 00 1D 20 80 13 01 00 00 00 00 00 BA [14:14:40]Write i2c OK [14:14:40]MH_I2C_Read... [14:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:40]Read from MH i2c: E2 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 0E 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 0E 00 1D 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BC [14:14:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:14:40]wFMCommunicate OK [14:14:40]SAM_PROTO_GetShiftState done [14:14:40]FM_GetShiftState done [14:14:40]opened in 1729987312 [14:14:40]opened+sec_in_day 1730073712 [14:14:40]quantity*price = 100050 [14:14:40]sum+1 = 100052 [14:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 284 27.10.2024 14:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201992 ФПД: 45560563733401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201992&fm=45560563733401&tin=02508201610067®Number=0000000000091777&sum=100000 [14:14:41]StoreToDocumentArchive [14:14:41]shift 544 fd 201992 [14:14:41]save to /storage/0544/doc_00201992 [14:14:41]save last doc name /storage/0544/doc_00201992 to /storage/kkm_last_doc_name [14:14:41]save OK [14:14:41]Clear old archive folders... [14:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:14:41]tlvbuf is 0118EF30 [14:14:41]SAM_PROTO_ClearQueue [14:14:41]wFMCommunicate request_size=4 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 09 00 00 [14:14:41]Write to MH i2c: E2 08 00 2A 20 80 09 00 00 00 00 00 00 BC [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 2A 20 00 90 00 BE [14:14:41]RAPDU: 90 00 [14:14:41]wFMCommunicate OK [14:14:41]SAM_PROTO_ClearQueue done [14:14:41]KKMCreateOFDPacket [14:14:41]OFDProtocolAddRootSTLVToBuf [14:14:41]FM_MakeSignedData [14:14:41]FM_MakeSignedData [14:14:41]SAM_PROTO_SignData [14:14:41]wFMCommunicate request_size=4 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 0D 01 02 [14:14:41]Write to MH i2c: E2 08 00 2B 20 80 0D 01 02 00 00 00 00 C4 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 2B 20 00 90 00 BF [14:14:41]RAPDU: 90 00 [14:14:41]wFMCommunicate OK [14:14:41]wFMCommunicate request_size=255 [14:14:41]MH_SAM_APDU [14:14:41]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 32 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 1C 01 00 00 F4 03 04 00 D1 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 15 03 00 35 04 06 00 29 6F E5 37 [14:14:41]Write to MH i2c: E2 02 01 2C 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 1C 01 00 00 F4 03 04 00 D1 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 15 03 00 35 04 06 00 29 6F E5 37 00 00 01 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 2C 20 00 90 00 C0 [14:14:41]RAPDU: 90 00 [14:14:41]wFMCommunicate OK [14:14:41]wFMCommunicate request_size=7 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 0D 02 02 02 93 99 [14:14:41]Write to MH i2c: E2 0A 00 2D 20 80 0D 02 02 02 00 93 99 00 00 F7 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 2D 20 00 90 00 C1 [14:14:41]RAPDU: 90 00 [14:14:41]wFMCommunicate OK [14:14:41]wFMCommunicate request_size=4 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 0D 03 02 [14:14:41]Write to MH i2c: E2 08 00 2E 20 80 0D 03 02 00 00 00 00 C9 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 0B 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 0B 00 2E 20 00 44 6D 01 79 8D 6F 1C EE 90 00 FB [14:14:41]RAPDU: 44 6D 01 79 8D 6F 1C EE 90 00 [14:14:41]wFMCommunicate OK [14:14:41]SAM_PROTO_SignData done [14:14:41]FM_MakeSignedData done [14:14:41]CreateOFDProtocolMessage [14:14:41]wFMCommunicate request_size=4 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 11 00 00 [14:14:41]Write to MH i2c: E2 08 00 2F 20 80 11 00 00 00 00 00 00 C9 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 17 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 17 00 2F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1E [14:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:14:41]wFMCommunicate OK [14:14:41]CreateOFDProtocolMessage done [14:14:41]OFDSenderStorePacket 201992 [14:14:41]StoreOFDPacket docnum=201992 [14:14:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3B 6D 04 01 5A C8 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 32 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 1C 01 00 00 F4 03 04 00 D1 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 15 03 00 35 04 06 00 29 6F E5 37 93 99 44 6D 01 79 8D 6F 1C EE [14:14:41]CheckFolder [14:14:41]dirname=/storage/ofd_packets [14:14:41]CheckFolder done [14:14:41]ProducePacketName [14:14:41]name=ofd_packets/00201992 [14:14:41]NVStorageSaveData ofd_packets/00201992 [14:14:41]File name is /storage/ofd_packets/00201992 [14:14:41]Write 298 bytes [14:14:41]NVStorageSaveData done [14:14:41]OFDSenderStorePacket done [14:14:41]KKMCreateOFDPacket done [14:14:41]NVStorageSaveData kkm_last_timestamp [14:14:41]File name is /storage/kkm_last_timestamp [14:14:41]Write 4 bytes [14:14:41]NVStorageSaveData done [14:14:41]ExternCall_PrintAddStr [14:14:41]wPrintStart [14:14:41]Write to MH i2c: 01 00 00 30 20 50 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 07 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 07 00 30 20 00 00 00 00 00 FF 0F 65 [14:14:41]RasterBufferAndPrint [14:14:41]line Счет N : (1)449757 [14:14:41]line ИНН: 02508201610067 [14:14:41]line Контрольно-Кассовый Чек [14:14:41]line ПРОДАЖА [14:14:41]line ТРК (МРК, ГНК) : 33 [14:14:41]line Товар: 2710194210 [14:14:41]line ДТ-К-2 [14:14:41]line 13.130 * 76.20 [14:14:41]line = 1000.51 [14:14:41]line НДС 12% НСП 1% [14:14:41]line > о реализуемом товаре [14:14:41]line ОКРУГЛЕНИЕ: -0.51 [14:14:41]line ИТОГО: 1000.00 [14:14:41]line Внесено: 1000.00 [14:14:41]line СДАЧА: 0.00 [14:14:41]line НСП 1% : 8.85 [14:14:41]line НДС 12% : 106.25 [14:14:41]line Наличными: 1000.00 [14:14:41]line Безнал.: 0.00 [14:14:41]line Место: АЗС № 171 "Партнер Нефть" [14:14:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:14:41]line СНО: Общий режим [14:14:41]line Чек 284 27.10.2024 14:14 [14:14:41]line Смена: 544 ФФД: 1.0 [14:14:41]line ЗНМ: 0300000109 [14:14:41]line РНМ: 0000000000091777 [14:14:41]line Версия ККМ: 001 [14:14:41]line ФМ: 0000000000871756 [14:14:41]line ФД: 201992 [14:14:41]line ФПД: 45560563733401 [14:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201992&fm=45560563733401&tin=02508201610067®Number=0000000000091777&sum=100000 [14:14:42]OFD Sender: Processing packet 201992 [packets to send 112, broken 111] [14:14:42]ProducePacketName [14:14:42]name=ofd_packets/00201992 [14:14:42]OFD Sender: To server: pG, [14:14:42]CommunicateWithHost lk.salyk.kg:30040 [14:14:42]ConnectInit lk.salyk.kg [14:14:42]written 0, free lines is 4095 [14:14:42]Connected sock=9 [14:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3B 6D 04 01 5A C8 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 32 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 1C 01 00 00 F4 03 04 00 D1 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 15 03 00 35 04 06 00 29 6F E5 37 93 99 44 6D 01 79 8D 6F 1C EE [14:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B2 2E 47 00 96 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 15 03 00 F4 03 04 00 8A F6 1D 67 B6 04 01 00 00 24 F0 B9 18 92 A4 1D 01 [14:14:42]CommunicateWithHost err = 0 [14:14:42]CheckOFDResponse [14:14:42]1017 (14) - 77093643461234 [14:14:42]1041 (16) - 0000000000871756 [14:14:42]1040 (4) - 201992 [14:14:42]1012 (4) - 27.10.2024 08:15 [14:14:42]1206 (1) - 0 [14:14:42]OFD Sender: Remove packet 201992 [14:14:42]ProducePacketName [14:14:42]name=ofd_packets/00201992 [14:14:42]NVStorageDeleteData [14:14:42]Write to MH i2c: 01 00 00 5B 20 7B [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: 01 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: 01 07 00 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: 01 07 00 5B 20 00 00 00 00 00 86 0C 14 [14:14:42]RasterBufferAndPrint [14:14:42]line [14:14:42]line [14:14:42]line [14:14:42]line [14:14:42]line [14:14:42]written 0, free lines is 3211 [14:14:42]MH_Cut [14:14:42]Write to MH i2c: D1 01 00 62 20 01 54 [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: D1 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: D1 01 00 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: D1 01 00 62 20 00 53 [14:14:42]Write to MH i2c: 01 00 00 63 20 83 [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:42]OFD Sender: No OFD packet to send [14:14:43]*** Cut start [14:14:43]*** Purtial cut [14:14:43]*** Stage 1: CUTSNS_PIN = 1 [14:14:43]Read from MH i2c: 01 [14:14:43]MH_I2C_Read... [14:14:43]*** Stop cut motor [14:14:43]*** Cut end [14:14:43]Read from MH i2c: 01 07 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: 01 07 00 63 20 00 00 00 00 00 FF 0F 98 [14:14:43]process_action close_receipt done [14:14:43]requested_data is exist [14:14:43]produce_requested_data [14:14:43]requested_item fm.sn is exist - process it [14:14:43]wFMCommunicate request_size=4 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 11 00 00 [14:14:43]Write to MH i2c: E2 08 00 64 20 80 11 00 00 00 00 00 00 FE [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 17 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 17 00 64 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 53 [14:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:14:43]wFMCommunicate OK [14:14:43]requested_item fd.num is exist - process it [14:14:43]SAM_PROTO_GetFieldsCounters [14:14:43]wFMCommunicate request_size=4 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 13 00 00 [14:14:43]Write to MH i2c: E2 08 00 65 20 80 13 00 00 00 00 00 00 01 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 62 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 62 00 65 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 08 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [14:14:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 08 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:43]wFMCommunicate OK [14:14:43]SAM_PROTO_GetFieldsCounters done [14:14:43]requested_item shift.num is exist - process it [14:14:43]requested_item shift.opened is exist - process it [14:14:43]req_shift_opened [14:14:43]FM_GetShiftState [14:14:43]SAM_PROTO_GetShiftState [14:14:43]wFMCommunicate request_size=4 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 13 01 00 [14:14:43]Write to MH i2c: E2 08 00 66 20 80 13 01 00 00 00 00 00 03 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 0E 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 0E 00 66 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 05 [14:14:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:14:43]wFMCommunicate OK [14:14:43]SAM_PROTO_GetShiftState done [14:14:43]FM_GetShiftState done [14:14:43]req_shift_opened done [14:14:43]requested_item shift.open_date is exist - process it [14:14:43]req_shift_open_date [14:14:43]req_shift_open_date done [14:14:43]produce_requested_data done [14:14:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201992,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:14:43]process_action_free close_receipt [14:14:43]json_value_free [14:14:43]json_value_free done [14:14:43]process_json_proto returns [14:14:43]Send response to host [14:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201992,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:14:43]free response buf [14:14:43]execute_script done [14:14:43]execute_script returns [14:14:43]free content buf [14:14:43]Sock 10.Close socket [14:14:43]Sock 10.Thread stoped [14:14:46]accept exits with 8 [14:14:46]New connection [14:14:46]New thread 3066641764 created [14:14:46]Thread 3066498404 joined [14:14:46]Waiting for new connection... [14:14:46] Sock 8.Parse request [14:14:46]Sock 8.Check first char [14:14:46]Sock 8.First char is OK [14:14:46]request: POST /json_proto HTTP/1.0 [14:14:46]Method: POST [14:14:46]URL: /json_proto [14:14:46]Method is POST - this is cgi request [14:14:46]url: /json_proto [14:14:46]query_string will be loaded in cgi processing [14:14:46]execute_cgi json_proto POST (null) [14:14:46]execute_cgi path=json_proto method=POST [14:14:46]POST find Content-Length [14:14:46]Host: 172.17.63.195:8080 [14:14:46]Content-Length: 677 [14:14:46]Content-Type: application/json [14:14:46] [14:14:46]POST finish read [14:14:46]Found Content-Length = 677 [14:14:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.670, "sum" : 580.02, "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" ] } } [14:14:46]execute_script... [14:14:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.670, "sum" : 580.02, "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" ] } } [14:14:46]POST & json_proto [14:14:46]process_json_proto [14:14:46]json parsed OK: [14:14:46]protocol is kg_v1.0 [14:14:46]action value=close_receipt [14:14:46]process_action close_receipt [14:14:46]cmd_close_receipt [14:14:46]MH_GetDate [14:14:46]Write to MH i2c: F0 00 00 67 20 76 [14:14:46]Write i2c OK [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: F0 [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: F0 09 00 [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: F0 09 00 67 20 00 D7 4A 1E 67 47 1B 1E 67 0C [14:14:46]GetLastDocTimeStamp 1730038481 [14:14:46]current date 1730038487 [14:14:46]FM_GetShiftState [14:14:46]SAM_PROTO_GetShiftState [14:14:46]wFMCommunicate request_size=4 [14:14:46]MH_SAM_APDU [14:14:46]CAPDU: 80 13 01 00 [14:14:46]Write to MH i2c: E2 08 00 68 20 80 13 01 00 00 00 00 00 05 [14:14:46]Write i2c OK [14:14:46]MH_I2C_Read... [14:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:46]Read from MH i2c: E2 [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: E2 0E 00 [14:14:46]MH_I2C_Read... [14:14:46]Read from MH i2c: E2 0E 00 68 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 07 [14:14:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:14:46]wFMCommunicate OK [14:14:46]SAM_PROTO_GetShiftState done [14:14:46]FM_GetShiftState done [14:14:46]opened in 1729987312 [14:14:46]opened+sec_in_day 1730073712 [14:14:46]quantity*price = 58002 [14:14:46]sum+1 = 58003 [14:14:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 580.00 Внесено: 580.00 СДАЧА: 0.00 НСП 1% : 5.13 НДС 12% : 61.59 Наличными: 580.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 285 27.10.2024 14:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201993 ФПД: 84962584348546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141447&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201993&fm=84962584348546&tin=02508201610067®Number=0000000000091777&sum=58000 [14:14:48]StoreToDocumentArchive [14:14:48]shift 544 fd 201993 [14:14:48]save to /storage/0544/doc_00201993 [14:14:48]save last doc name /storage/0544/doc_00201993 to /storage/kkm_last_doc_name [14:14:48]save OK [14:14:48]Clear old archive folders... [14:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:48]tlvbuf is 012AAA50 [14:14:48]SAM_PROTO_ClearQueue [14:14:48]wFMCommunicate request_size=4 [14:14:48]MH_SAM_APDU [14:14:48]CAPDU: 80 09 00 00 [14:14:48]Write to MH i2c: E2 08 00 75 20 80 09 00 00 00 00 00 00 07 [14:14:48]Write i2c OK [14:14:48]MH_I2C_Read... [14:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:48]Read from MH i2c: E2 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 03 00 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 03 00 75 20 00 90 00 09 [14:14:48]RAPDU: 90 00 [14:14:48]wFMCommunicate OK [14:14:48]SAM_PROTO_ClearQueue done [14:14:48]KKMCreateOFDPacket [14:14:48]OFDProtocolAddRootSTLVToBuf [14:14:48]FM_MakeSignedData [14:14:48]FM_MakeSignedData [14:14:48]SAM_PROTO_SignData [14:14:48]wFMCommunicate request_size=4 [14:14:48]MH_SAM_APDU [14:14:48]CAPDU: 80 0D 01 02 [14:14:48]Write to MH i2c: E2 08 00 76 20 80 0D 01 02 00 00 00 00 0F [14:14:48]Write i2c OK [14:14:48]MH_I2C_Read... [14:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:48]Read from MH i2c: E2 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 03 00 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 03 00 76 20 00 90 00 0A [14:14:48]RAPDU: 90 00 [14:14:48]wFMCommunicate OK [14:14:48]wFMCommunicate request_size=255 [14:14:48]MH_SAM_APDU [14:14:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 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 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 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 1D 01 00 00 F4 03 04 00 D7 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 15 03 00 35 04 06 00 4D [14:14:48]Write to MH i2c: E2 02 01 77 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 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 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 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 1D 01 00 00 F4 03 04 00 D7 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 15 03 00 35 04 06 00 4D 00 00 2F [14:14:48]Write i2c OK [14:14:48]MH_I2C_Read... [14:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:48]Read from MH i2c: E2 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 03 00 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 03 00 77 20 00 90 00 0B [14:14:48]RAPDU: 90 00 [14:14:48]wFMCommunicate OK [14:14:48]wFMCommunicate request_size=10 [14:14:48]MH_SAM_APDU [14:14:48]CAPDU: 80 0D 02 02 05 45 E4 A8 C7 82 [14:14:48]Write to MH i2c: E2 0D 00 78 20 80 0D 02 02 05 00 45 E4 A8 C7 82 00 00 36 [14:14:48]Write i2c OK [14:14:48]MH_I2C_Read... [14:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:48]Read from MH i2c: E2 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 03 00 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [14:14:48]RAPDU: 90 00 [14:14:48]wFMCommunicate OK [14:14:48]wFMCommunicate request_size=4 [14:14:48]MH_SAM_APDU [14:14:48]CAPDU: 80 0D 03 02 [14:14:48]Write to MH i2c: E2 08 00 79 20 80 0D 03 02 00 00 00 00 14 [14:14:48]Write i2c OK [14:14:48]MH_I2C_Read... [14:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:48]Read from MH i2c: E2 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 0B 00 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 0B 00 79 20 00 43 07 AB 55 57 13 57 68 90 00 88 [14:14:48]RAPDU: 43 07 AB 55 57 13 57 68 90 00 [14:14:48]wFMCommunicate OK [14:14:48]SAM_PROTO_SignData done [14:14:48]FM_MakeSignedData done [14:14:48]CreateOFDProtocolMessage [14:14:48]wFMCommunicate request_size=4 [14:14:48]MH_SAM_APDU [14:14:48]CAPDU: 80 11 00 00 [14:14:48]Write to MH i2c: E2 08 00 7A 20 80 11 00 00 00 00 00 00 14 [14:14:48]Write i2c OK [14:14:48]MH_I2C_Read... [14:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:48]Read from MH i2c: E2 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 17 00 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: E2 17 00 7A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 69 [14:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:14:48]wFMCommunicate OK [14:14:48]CreateOFDProtocolMessage done [14:14:48]OFDSenderStorePacket 201993 [14:14:48]StoreOFDPacket docnum=201993 [14:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 64 F8 07 01 D5 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 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 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 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 1D 01 00 00 F4 03 04 00 D7 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 15 03 00 35 04 06 00 4D 45 E4 A8 C7 82 43 07 AB 55 57 13 57 68 [14:14:48]CheckFolder [14:14:48]dirname=/storage/ofd_packets [14:14:48]CheckFolder done [14:14:48]ProducePacketName [14:14:48]name=ofd_packets/00201993 [14:14:48]NVStorageSaveData ofd_packets/00201993 [14:14:48]File name is /storage/ofd_packets/00201993 [14:14:48]Write 301 bytes [14:14:48]NVStorageSaveData done [14:14:48]OFDSenderStorePacket done [14:14:48]KKMCreateOFDPacket done [14:14:48]NVStorageSaveData kkm_last_timestamp [14:14:48]File name is /storage/kkm_last_timestamp [14:14:48]Write 4 bytes [14:14:48]NVStorageSaveData done [14:14:48]ExternCall_PrintAddStr [14:14:48]wPrintStart [14:14:48]Write to MH i2c: 01 00 00 7B 20 9B [14:14:48]Write i2c OK [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: 01 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: 01 07 00 [14:14:48]MH_I2C_Read... [14:14:48]Read from MH i2c: 01 07 00 7B 20 00 00 00 00 00 FF 0F B0 [14:14:48]RasterBufferAndPrint [14:14:48]line Счет N : (1)449758 [14:14:48]line ИНН: 02508201610067 [14:14:48]line Контрольно-Кассовый Чек [14:14:48]line ПРОДАЖА [14:14:48]line ТРК (МРК, ГНК) : 62 [14:14:48]line Товар: 2710124130 [14:14:48]line Аи-92-К-2 [14:14:48]line 8.670 * 66.90 [14:14:48]line = 580.02 [14:14:48]line НДС 12% НСП 1% [14:14:48]line > о реализуемом товаре [14:14:48]line ОКРУГЛЕНИЕ: -0.02 [14:14:48]line ИТОГО: 580.00 [14:14:48]line Внесено: 580.00 [14:14:48]line СДАЧА: 0.00 [14:14:48]line НСП 1% : 5.13 [14:14:48]line НДС 12% : 61.59 [14:14:48]line Наличными: 580.00 [14:14:48]line Безнал.: 0.00 [14:14:48]line Место: АЗС № 171 "Партнер Нефть" [14:14:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:14:48]line СНО: Общий режим [14:14:48]line Чек 285 27.10.2024 14:14 [14:14:48]line Смена: 544 ФФД: 1.0 [14:14:48]line ЗНМ: 0300000109 [14:14:48]line РНМ: 0000000000091777 [14:14:48]line Версия ККМ: 001 [14:14:48]line ФМ: 0000000000871756 [14:14:48]line ФД: 201993 [14:14:48]line ФПД: 84962584348546 [14:14:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141447&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201993&fm=84962584348546&tin=02508201610067®Number=0000000000091777&sum=58000 [14:14:48]written 0, free lines is 4095 [14:14:48]OFD Sender: Processing packet 201993 [packets to send 112, broken 111] [14:14:48]ProducePacketName [14:14:48]name=ofd_packets/00201993 [14:14:48]OFD Sender: To server: pG, [14:14:48]CommunicateWithHost lk.salyk.kg:30040 [14:14:48]ConnectInit lk.salyk.kg [14:14:48]Connected sock=10 [14:14:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 64 F8 07 01 D5 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 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 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 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 1D 01 00 00 F4 03 04 00 D7 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 15 03 00 35 04 06 00 4D 45 E4 A8 C7 82 43 07 AB 55 57 13 57 68 [14:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F5 96 47 00 B1 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 15 03 00 F4 03 04 00 91 F6 1D 67 B6 04 01 00 00 16 3F 2E AE F8 62 1A 62 [14:14:49]CommunicateWithHost err = 0 [14:14:49]CheckOFDResponse [14:14:49]1017 (14) - 77093643461234 [14:14:49]1041 (16) - 0000000000871756 [14:14:49]1040 (4) - 201993 [14:14:49]1012 (4) - 27.10.2024 08:15 [14:14:49]1206 (1) - 0 [14:14:49]OFD Sender: Remove packet 201993 [14:14:49]ProducePacketName [14:14:49]name=ofd_packets/00201993 [14:14:49]NVStorageDeleteData [14:14:49]Write to MH i2c: 01 00 00 A6 20 C6 [14:14:49]Write i2c OK [14:14:49]MH_I2C_Read... [14:14:49]Read from MH i2c: 01 [14:14:49]MH_I2C_Read... [14:14:49]Read from MH i2c: 01 07 00 [14:14:49]MH_I2C_Read... [14:14:49]Read from MH i2c: 01 07 00 A6 20 00 00 00 00 00 9B 0C 74 [14:14:49]RasterBufferAndPrint [14:14:49]line [14:14:49]line [14:14:49]line [14:14:49]line [14:14:49]line [14:14:49]written 0, free lines is 3239 [14:14:49]MH_Cut [14:14:49]Write to MH i2c: D1 01 00 AD 20 01 9F [14:14:49]Write i2c OK [14:14:49]MH_I2C_Read... [14:14:49]Read from MH i2c: D1 [14:14:49]MH_I2C_Read... [14:14:49]Read from MH i2c: D1 01 00 [14:14:49]MH_I2C_Read... [14:14:49]Read from MH i2c: D1 01 00 AD 20 00 9E [14:14:49]Write to MH i2c: 01 00 00 AE 20 CE [14:14:49]Write i2c OK [14:14:49]MH_I2C_Read... [14:14:49]OFD Sender: No OFD packet to send [14:14:49]*** Cut start [14:14:49]*** Purtial cut [14:14:49]*** Stage 1: CUTSNS_PIN = 1 [14:14:50]Read from MH i2c: 01 [14:14:50]MH_I2C_Read... [14:14:50]*** Stop cut motor [14:14:50]*** Cut end [14:14:50]Read from MH i2c: 01 07 00 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: 01 07 00 AE 20 00 00 00 00 00 FF 0F E3 [14:14:50]process_action close_receipt done [14:14:50]requested_data is exist [14:14:50]produce_requested_data [14:14:50]requested_item fm.sn is exist - process it [14:14:50]wFMCommunicate request_size=4 [14:14:50]MH_SAM_APDU [14:14:50]CAPDU: 80 11 00 00 [14:14:50]Write to MH i2c: E2 08 00 AF 20 80 11 00 00 00 00 00 00 49 [14:14:50]Write i2c OK [14:14:50]MH_I2C_Read... [14:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:50]Read from MH i2c: E2 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: E2 17 00 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: E2 17 00 AF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9E [14:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:14:50]wFMCommunicate OK [14:14:50]requested_item fd.num is exist - process it [14:14:50]SAM_PROTO_GetFieldsCounters [14:14:50]wFMCommunicate request_size=4 [14:14:50]MH_SAM_APDU [14:14:50]CAPDU: 80 13 00 00 [14:14:50]Write to MH i2c: E2 08 00 B0 20 80 13 00 00 00 00 00 00 4C [14:14:50]Write i2c OK [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: E2 [14:14:50]MH_I2C_Read... [14:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:50]Read from MH i2c: E2 62 00 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: E2 62 00 B0 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 09 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [14:14:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 09 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:50]wFMCommunicate OK [14:14:50]SAM_PROTO_GetFieldsCounters done [14:14:50]requested_item shift.num is exist - process it [14:14:50]requested_item shift.opened is exist - process it [14:14:50]req_shift_opened [14:14:50]FM_GetShiftState [14:14:50]SAM_PROTO_GetShiftState [14:14:50]wFMCommunicate request_size=4 [14:14:50]MH_SAM_APDU [14:14:50]CAPDU: 80 13 01 00 [14:14:50]Write to MH i2c: E2 08 00 B1 20 80 13 01 00 00 00 00 00 4E [14:14:50]Write i2c OK [14:14:50]MH_I2C_Read... [14:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:50]Read from MH i2c: E2 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: E2 0E 00 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: E2 0E 00 B1 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 50 [14:14:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:14:50]wFMCommunicate OK [14:14:50]SAM_PROTO_GetShiftState done [14:14:50]FM_GetShiftState done [14:14:50]req_shift_opened done [14:14:50]requested_item shift.open_date is exist - process it [14:14:50]req_shift_open_date [14:14:50]req_shift_open_date done [14:14:50]produce_requested_data done [14:14:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201993,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:14:50]process_action_free close_receipt [14:14:50]json_value_free [14:14:50]json_value_free done [14:14:50]process_json_proto returns [14:14:50]Send response to host [14:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201993,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:14:50]free response buf [14:14:50]execute_script done [14:14:50]execute_script returns [14:14:50]free content buf [14:14:50]Sock 8.Close socket [14:14:50]Sock 8.Thread stoped [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:05]accept exits with 9 [14:15:05]New connection [14:15:05]New thread 3066498404 created [14:15:05]Thread 3066641764 joined [14:15:05]Waiting for new connection... [14:15:05] Sock 9.Parse request [14:15:05]Sock 9.Check first char [14:15:05]Sock 9.First char is OK [14:15:05]request: POST /json_proto HTTP/1.0 [14:15:05]Method: POST [14:15:05]URL: /json_proto [14:15:05]Method is POST - this is cgi request [14:15:05]url: /json_proto [14:15:05]query_string will be loaded in cgi processing [14:15:05]execute_cgi json_proto POST (null) [14:15:05]execute_cgi path=json_proto method=POST [14:15:05]POST find Content-Length [14:15:05]Host: 172.17.63.195:8080 [14:15:05]Content-Length: 679 [14:15:05]Content-Type: application/json [14:15:05] [14:15:05]POST finish read [14:15:05]Found Content-Length = 679 [14:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:15:05]execute_script... [14:15:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:15:05]POST & json_proto [14:15:05]process_json_proto [14:15:05]json parsed OK: [14:15:05]protocol is kg_v1.0 [14:15:05]action value=close_receipt [14:15:05]process_action close_receipt [14:15:05]cmd_close_receipt [14:15:05]MH_GetDate [14:15:05]Write to MH i2c: F0 00 00 B2 20 C1 [14:15:05]Write i2c OK [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: F0 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: F0 09 00 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: F0 09 00 B2 20 00 EA 4A 1E 67 47 1B 1E 67 6A [14:15:05]GetLastDocTimeStamp 1730038487 [14:15:05]current date 1730038506 [14:15:05]FM_GetShiftState [14:15:05]SAM_PROTO_GetShiftState [14:15:05]wFMCommunicate request_size=4 [14:15:05]MH_SAM_APDU [14:15:05]CAPDU: 80 13 01 00 [14:15:05]Write to MH i2c: E2 08 00 B3 20 80 13 01 00 00 00 00 00 50 [14:15:05]Write i2c OK [14:15:05]MH_I2C_Read... [14:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:05]Read from MH i2c: E2 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: E2 0E 00 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: E2 0E 00 B3 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 52 [14:15:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:15:05]wFMCommunicate OK [14:15:05]SAM_PROTO_GetShiftState done [14:15:05]FM_GetShiftState done [14:15:05]opened in 1729987312 [14:15:05]opened+sec_in_day 1730073712 [14:15:05]quantity*price = 100050 [14:15:05]sum+1 = 100052 [14:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 286 27.10.2024 14:15 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201994 ФПД: 235463992435168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141506&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201994&fm=235463992435168&tin=02508201610067®Number=0000000000091777&sum=100000 [14:15:07]StoreToDocumentArchive [14:15:07]shift 544 fd 201994 [14:15:07]save to /storage/0544/doc_00201994 [14:15:07]save last doc name /storage/0544/doc_00201994 to /storage/kkm_last_doc_name [14:15:07]save OK [14:15:07]Clear old archive folders... [14:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:15:07]tlvbuf is B6E5C470 [14:15:07]SAM_PROTO_ClearQueue [14:15:07]wFMCommunicate request_size=4 [14:15:07]MH_SAM_APDU [14:15:07]CAPDU: 80 09 00 00 [14:15:07]Write to MH i2c: E2 08 00 C0 20 80 09 00 00 00 00 00 00 52 [14:15:07]Write i2c OK [14:15:07]MH_I2C_Read... [14:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:07]Read from MH i2c: E2 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 03 00 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 03 00 C0 20 00 90 00 54 [14:15:07]RAPDU: 90 00 [14:15:07]wFMCommunicate OK [14:15:07]SAM_PROTO_ClearQueue done [14:15:07]KKMCreateOFDPacket [14:15:07]OFDProtocolAddRootSTLVToBuf [14:15:07]FM_MakeSignedData [14:15:07]FM_MakeSignedData [14:15:07]SAM_PROTO_SignData [14:15:07]wFMCommunicate request_size=4 [14:15:07]MH_SAM_APDU [14:15:07]CAPDU: 80 0D 01 02 [14:15:07]Write to MH i2c: E2 08 00 C1 20 80 0D 01 02 00 00 00 00 5A [14:15:07]Write i2c OK [14:15:07]MH_I2C_Read... [14:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:07]Read from MH i2c: E2 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 03 00 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 03 00 C1 20 00 90 00 55 [14:15:07]RAPDU: 90 00 [14:15:07]wFMCommunicate OK [14:15:07]wFMCommunicate request_size=255 [14:15:07]MH_SAM_APDU [14:15:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 1E 01 00 00 F4 03 04 00 EA 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 15 03 00 35 04 06 00 D6 27 3B A0 [14:15:07]Write to MH i2c: E2 02 01 C2 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 1E 01 00 00 F4 03 04 00 EA 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 15 03 00 35 04 06 00 D6 27 3B A0 00 00 D8 [14:15:07]Write i2c OK [14:15:07]MH_I2C_Read... [14:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:07]Read from MH i2c: E2 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 03 00 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [14:15:07]RAPDU: 90 00 [14:15:07]wFMCommunicate OK [14:15:07]wFMCommunicate request_size=7 [14:15:07]MH_SAM_APDU [14:15:07]CAPDU: 80 0D 02 02 02 61 E0 [14:15:07]Write to MH i2c: E2 0A 00 C3 20 80 0D 02 02 02 00 61 E0 00 00 A2 [14:15:07]Write i2c OK [14:15:07]MH_I2C_Read... [14:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:07]Read from MH i2c: E2 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 03 00 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [14:15:07]RAPDU: 90 00 [14:15:07]wFMCommunicate OK [14:15:07]wFMCommunicate request_size=4 [14:15:07]MH_SAM_APDU [14:15:07]CAPDU: 80 0D 03 02 [14:15:07]Write to MH i2c: E2 08 00 C4 20 80 0D 03 02 00 00 00 00 5F [14:15:07]Write i2c OK [14:15:07]MH_I2C_Read... [14:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:07]Read from MH i2c: E2 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 0B 00 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 0B 00 C4 20 00 53 8F 91 6F F9 7C AA 9E 90 00 FF [14:15:07]RAPDU: 53 8F 91 6F F9 7C AA 9E 90 00 [14:15:07]wFMCommunicate OK [14:15:07]SAM_PROTO_SignData done [14:15:07]FM_MakeSignedData done [14:15:07]CreateOFDProtocolMessage [14:15:07]wFMCommunicate request_size=4 [14:15:07]MH_SAM_APDU [14:15:07]CAPDU: 80 11 00 00 [14:15:07]Write to MH i2c: E2 08 00 C5 20 80 11 00 00 00 00 00 00 5F [14:15:07]Write i2c OK [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 [14:15:07]MH_I2C_Read... [14:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:07]Read from MH i2c: E2 17 00 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: E2 17 00 C5 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B4 [14:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:15:07]wFMCommunicate OK [14:15:07]CreateOFDProtocolMessage done [14:15:07]OFDSenderStorePacket 201994 [14:15:07]StoreOFDPacket docnum=201994 [14:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FB 6D 04 01 E2 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 1E 01 00 00 F4 03 04 00 EA 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 15 03 00 35 04 06 00 D6 27 3B A0 61 E0 53 8F 91 6F F9 7C AA 9E [14:15:07]CheckFolder [14:15:07]dirname=/storage/ofd_packets [14:15:07]CheckFolder done [14:15:07]ProducePacketName [14:15:07]name=ofd_packets/00201994 [14:15:07]NVStorageSaveData ofd_packets/00201994 [14:15:07]File name is /storage/ofd_packets/00201994 [14:15:07]Write 298 bytes [14:15:07]NVStorageSaveData done [14:15:07]OFDSenderStorePacket done [14:15:07]KKMCreateOFDPacket done [14:15:07]NVStorageSaveData kkm_last_timestamp [14:15:07]File name is /storage/kkm_last_timestamp [14:15:07]Write 4 bytes [14:15:07]NVStorageSaveData done [14:15:07]ExternCall_PrintAddStr [14:15:07]wPrintStart [14:15:07]Write to MH i2c: 01 00 00 C6 20 E6 [14:15:07]Write i2c OK [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: 01 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: 01 07 00 [14:15:07]MH_I2C_Read... [14:15:07]Read from MH i2c: 01 07 00 C6 20 00 00 00 00 00 FF 0F FB [14:15:07]RasterBufferAndPrint [14:15:07]line Счет N : (1)449759 [14:15:07]line ИНН: 02508201610067 [14:15:07]line Контрольно-Кассовый Чек [14:15:07]line ПРОДАЖА [14:15:07]line ТРК (МРК, ГНК) : 43 [14:15:07]line Товар: 2710194210 [14:15:07]line ДТ-К-2 [14:15:07]line 13.130 * 76.20 [14:15:07]line = 1000.51 [14:15:07]line НДС 12% НСП 1% [14:15:07]line > о реализуемом товаре [14:15:07]line ОКРУГЛЕНИЕ: -0.51 [14:15:07]line ИТОГО: 1000.00 [14:15:07]line Внесено: 1000.00 [14:15:07]line СДАЧА: 0.00 [14:15:07]line НСП 1% : 8.85 [14:15:07]line НДС 12% : 106.25 [14:15:07]line Наличными: 1000.00 [14:15:07]line Безнал.: 0.00 [14:15:07]line Место: АЗС № 171 "Партнер Нефть" [14:15:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:15:07]line СНО: Общий режим [14:15:07]line Чек 286 27.10.2024 14:15 [14:15:07]line Смена: 544 ФФД: 1.0 [14:15:07]line ЗНМ: 0300000109 [14:15:07]line РНМ: 0000000000091777 [14:15:07]line Версия ККМ: 001 [14:15:07]line ФМ: 0000000000871756 [14:15:07]line ФД: 201994 [14:15:07]line ФПД: 235463992435168 [14:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141506&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201994&fm=235463992435168&tin=02508201610067®Number=0000000000091777&sum=100000 [14:15:07]written 0, free lines is 4095 [14:15:07]OFD Sender: Processing packet 201994 [packets to send 112, broken 111] [14:15:07]ProducePacketName [14:15:07]name=ofd_packets/00201994 [14:15:07]OFD Sender: To server: pG, [14:15:07]CommunicateWithHost lk.salyk.kg:30040 [14:15:07]ConnectInit lk.salyk.kg [14:15:07]Connected sock=10 [14:15:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FB 6D 04 01 E2 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 1E 01 00 00 F4 03 04 00 EA 4A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 15 03 00 35 04 06 00 D6 27 3B A0 61 E0 53 8F 91 6F F9 7C AA 9E [14:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF 99 47 00 22 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 15 03 00 F4 03 04 00 A4 F6 1D 67 B6 04 01 00 00 29 D0 6A 3B 51 05 F8 99 [14:15:08]CommunicateWithHost err = 0 [14:15:08]CheckOFDResponse [14:15:08]1017 (14) - 77093643461234 [14:15:08]1041 (16) - 0000000000871756 [14:15:08]1040 (4) - 201994 [14:15:08]1012 (4) - 27.10.2024 08:15 [14:15:08]1206 (1) - 0 [14:15:08]OFD Sender: Remove packet 201994 [14:15:08]ProducePacketName [14:15:08]name=ofd_packets/00201994 [14:15:08]NVStorageDeleteData [14:15:08]Write to MH i2c: 01 00 00 F1 20 11 [14:15:08]Write i2c OK [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: 01 [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: 01 07 00 [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: 01 07 00 F1 20 00 00 00 00 00 8D 0C B1 [14:15:08]RasterBufferAndPrint [14:15:08]line [14:15:08]line [14:15:08]line [14:15:08]line [14:15:08]line [14:15:08]written 0, free lines is 3219 [14:15:08]MH_Cut [14:15:08]Write to MH i2c: D1 01 00 F8 20 01 EA [14:15:08]Write i2c OK [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: D1 [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: D1 01 00 [14:15:08]MH_I2C_Read... [14:15:08]Read from MH i2c: D1 01 00 F8 20 00 E9 [14:15:08]Write to MH i2c: 01 00 00 F9 20 19 [14:15:08]Write i2c OK [14:15:08]MH_I2C_Read... [14:15:08]OFD Sender: No OFD packet to send [14:15:09]*** Cut start [14:15:09]*** Purtial cut [14:15:09]*** Stage 1: CUTSNS_PIN = 1 [14:15:09]Read from MH i2c: 01 [14:15:09]MH_I2C_Read... [14:15:09]*** Stop cut motor [14:15:09]*** Cut end [14:15:09]Read from MH i2c: 01 07 00 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: 01 07 00 F9 20 00 00 00 00 00 FF 0F 2E [14:15:09]process_action close_receipt done [14:15:09]requested_data is exist [14:15:09]produce_requested_data [14:15:09]requested_item fm.sn is exist - process it [14:15:09]wFMCommunicate request_size=4 [14:15:09]MH_SAM_APDU [14:15:09]CAPDU: 80 11 00 00 [14:15:09]Write to MH i2c: E2 08 00 FA 20 80 11 00 00 00 00 00 00 94 [14:15:09]Write i2c OK [14:15:09]MH_I2C_Read... [14:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:09]Read from MH i2c: E2 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 17 00 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 17 00 FA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [14:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:15:09]wFMCommunicate OK [14:15:09]requested_item fd.num is exist - process it [14:15:09]SAM_PROTO_GetFieldsCounters [14:15:09]wFMCommunicate request_size=4 [14:15:09]MH_SAM_APDU [14:15:09]CAPDU: 80 13 00 00 [14:15:09]Write to MH i2c: E2 08 00 FB 20 80 13 00 00 00 00 00 00 97 [14:15:09]Write i2c OK [14:15:09]MH_I2C_Read... [14:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:09]Read from MH i2c: E2 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 62 00 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 62 00 FB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [14:15:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:09]wFMCommunicate OK [14:15:09]SAM_PROTO_GetFieldsCounters done [14:15:09]requested_item shift.num is exist - process it [14:15:09]requested_item shift.opened is exist - process it [14:15:09]req_shift_opened [14:15:09]FM_GetShiftState [14:15:09]SAM_PROTO_GetShiftState [14:15:09]wFMCommunicate request_size=4 [14:15:09]MH_SAM_APDU [14:15:09]CAPDU: 80 13 01 00 [14:15:09]Write to MH i2c: E2 08 00 FC 20 80 13 01 00 00 00 00 00 99 [14:15:09]Write i2c OK [14:15:09]MH_I2C_Read... [14:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:09]Read from MH i2c: E2 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 0E 00 [14:15:09]MH_I2C_Read... [14:15:09]Read from MH i2c: E2 0E 00 FC 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9B [14:15:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:15:09]wFMCommunicate OK [14:15:09]SAM_PROTO_GetShiftState done [14:15:09]FM_GetShiftState done [14:15:09]req_shift_opened done [14:15:09]requested_item shift.open_date is exist - process it [14:15:09]req_shift_open_date [14:15:09]req_shift_open_date done [14:15:09]produce_requested_data done [14:15:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201994,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:15:09]process_action_free close_receipt [14:15:09]json_value_free [14:15:09]json_value_free done [14:15:09]process_json_proto returns [14:15:09]Send response to host [14:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201994,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:15:09]free response buf [14:15:09]execute_script done [14:15:09]execute_script returns [14:15:09]free content buf [14:15:09]Sock 9.Close socket [14:15:09]Sock 9.Thread stoped [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:00]accept exits with 8 [14:16:00]New connection [14:16:00]New thread 3066641764 created [14:16:00]Thread 3066498404 joined [14:16:00]Waiting for new connection... [14:16:00] Sock 8.Parse request [14:16:00]Sock 8.Check first char [14:16:00]Sock 8.First char is OK [14:16:00]request: POST /json_proto HTTP/1.0 [14:16:00]Method: POST [14:16:00]URL: /json_proto [14:16:00]Method is POST - this is cgi request [14:16:00]url: /json_proto [14:16:00]query_string will be loaded in cgi processing [14:16:00]execute_cgi json_proto POST (null) [14:16:00]execute_cgi path=json_proto method=POST [14:16:00]POST find Content-Length [14:16:00]Host: 172.17.63.195:8080 [14:16:00]Content-Length: 677 [14:16:00]Content-Type: application/json [14:16:00] [14:16:00]POST finish read [14:16:00]Found Content-Length = 677 [14:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:00]execute_script... [14:16:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:00]POST & json_proto [14:16:00]process_json_proto [14:16:00]json parsed OK: [14:16:00]protocol is kg_v1.0 [14:16:00]action value=close_receipt [14:16:00]process_action close_receipt [14:16:00]cmd_close_receipt [14:16:00]MH_GetDate [14:16:00]Write to MH i2c: F0 00 00 FD 20 0C [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: F0 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: F0 09 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: F0 09 00 FD 20 00 21 4B 1E 67 47 1B 1E 67 ED [14:16:00]GetLastDocTimeStamp 1730038506 [14:16:00]current date 1730038561 [14:16:00]FM_GetShiftState [14:16:00]SAM_PROTO_GetShiftState [14:16:00]wFMCommunicate request_size=4 [14:16:00]MH_SAM_APDU [14:16:00]CAPDU: 80 13 01 00 [14:16:00]Write to MH i2c: E2 08 00 FE 20 80 13 01 00 00 00 00 00 9B [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:00]Read from MH i2c: E2 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 0E 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 0E 00 FE 20 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [14:16:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:16:00]wFMCommunicate OK [14:16:00]SAM_PROTO_GetShiftState done [14:16:00]FM_GetShiftState done [14:16:00]opened in 1729987312 [14:16:00]opened+sec_in_day 1730073712 [14:16:00]quantity*price = 50041 [14:16:00]sum+1 = 50042 [14:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 287 27.10.2024 14:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201995 ФПД: 218648520910840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141601&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201995&fm=218648520910840&tin=02508201610067®Number=0000000000091777&sum=50000 [14:16:02]StoreToDocumentArchive [14:16:02]shift 544 fd 201995 [14:16:02]save to /storage/0544/doc_00201995 [14:16:02]save last doc name /storage/0544/doc_00201995 to /storage/kkm_last_doc_name [14:16:02]save OK [14:16:02]Clear old archive folders... [14:16:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:02]tlvbuf is 01219430 [14:16:02]SAM_PROTO_ClearQueue [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 09 00 00 [14:16:02]Write to MH i2c: E2 08 00 0B 21 80 09 00 00 00 00 00 00 9E [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 0B 21 00 90 00 A0 [14:16:02]RAPDU: 90 00 [14:16:02]wFMCommunicate OK [14:16:02]SAM_PROTO_ClearQueue done [14:16:02]KKMCreateOFDPacket [14:16:02]OFDProtocolAddRootSTLVToBuf [14:16:02]FM_MakeSignedData [14:16:02]FM_MakeSignedData [14:16:02]SAM_PROTO_SignData [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 0D 01 02 [14:16:02]Write to MH i2c: E2 08 00 0C 21 80 0D 01 02 00 00 00 00 A6 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [14:16:02]RAPDU: 90 00 [14:16:02]wFMCommunicate OK [14:16:02]wFMCommunicate request_size=255 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 01 00 00 F4 03 04 00 21 4B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 15 03 00 35 04 06 00 C6 [14:16:02]Write to MH i2c: E2 02 01 0D 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 01 00 00 F4 03 04 00 21 4B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 15 03 00 35 04 06 00 C6 00 00 56 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [14:16:02]RAPDU: 90 00 [14:16:02]wFMCommunicate OK [14:16:02]wFMCommunicate request_size=10 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 0D 02 02 05 DC 13 6B 67 F8 [14:16:02]Write to MH i2c: E2 0D 00 0E 21 80 0D 02 02 05 00 DC 13 6B 67 F8 00 00 6C [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [14:16:02]RAPDU: 90 00 [14:16:02]wFMCommunicate OK [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 0D 03 02 [14:16:02]Write to MH i2c: E2 08 00 0F 21 80 0D 03 02 00 00 00 00 AB [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0B 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0B 00 0F 21 00 9C CE 43 A4 02 68 5E 85 90 00 4A [14:16:02]RAPDU: 9C CE 43 A4 02 68 5E 85 90 00 [14:16:02]wFMCommunicate OK [14:16:02]SAM_PROTO_SignData done [14:16:02]FM_MakeSignedData done [14:16:02]CreateOFDProtocolMessage [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 11 00 00 [14:16:02]Write to MH i2c: E2 08 00 10 21 80 11 00 00 00 00 00 00 AB [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 17 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 17 00 10 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [14:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:16:02]wFMCommunicate OK [14:16:02]CreateOFDProtocolMessage done [14:16:02]OFDSenderStorePacket 201995 [14:16:02]StoreOFDPacket docnum=201995 [14:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 11 07 01 20 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 01 00 00 F4 03 04 00 21 4B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 15 03 00 35 04 06 00 C6 DC 13 6B 67 F8 9C CE 43 A4 02 68 5E 85 [14:16:02]CheckFolder [14:16:02]dirname=/storage/ofd_packets [14:16:02]CheckFolder done [14:16:02]ProducePacketName [14:16:02]name=ofd_packets/00201995 [14:16:02]NVStorageSaveData ofd_packets/00201995 [14:16:02]File name is /storage/ofd_packets/00201995 [14:16:02]Write 301 bytes [14:16:02]NVStorageSaveData done [14:16:02]OFDSenderStorePacket done [14:16:02]KKMCreateOFDPacket done [14:16:02]NVStorageSaveData kkm_last_timestamp [14:16:02]File name is /storage/kkm_last_timestamp [14:16:02]Write 4 bytes [14:16:02]NVStorageSaveData done [14:16:02]ExternCall_PrintAddStr [14:16:02]wPrintStart [14:16:02]Write to MH i2c: 01 00 00 11 21 32 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 07 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 07 00 11 21 00 00 00 00 00 FF 0F 47 [14:16:02]RasterBufferAndPrint [14:16:02]line Счет N : (1)449760 [14:16:02]line ИНН: 02508201610067 [14:16:02]line Контрольно-Кассовый Чек [14:16:02]line ПРОДАЖА [14:16:02]line ТРК (МРК, ГНК) : 52 [14:16:02]line Товар: 2710124130 [14:16:02]line Аи-92-К-2 [14:16:02]line 7.480 * 66.90 [14:16:02]line = 500.41 [14:16:02]line НДС 12% НСП 1% [14:16:02]line > о реализуемом товаре [14:16:02]line ОКРУГЛЕНИЕ: -0.41 [14:16:02]line ИТОГО: 500.00 [14:16:02]line Внесено: 500.00 [14:16:02]line СДАЧА: 0.00 [14:16:02]line НСП 1% : 4.43 [14:16:02]line НДС 12% : 53.14 [14:16:02]line Наличными: 500.00 [14:16:02]line Безнал.: 0.00 [14:16:02]line Место: АЗС № 171 "Партнер Нефть" [14:16:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:16:02]line СНО: Общий режим [14:16:02]line Чек 287 27.10.2024 14:16 [14:16:02]line Смена: 544 ФФД: 1.0 [14:16:02]line ЗНМ: 0300000109 [14:16:02]line РНМ: 0000000000091777 [14:16:02]line Версия ККМ: 001 [14:16:02]line ФМ: 0000000000871756 [14:16:02]line ФД: 201995 [14:16:02]line ФПД: 218648520910840 [14:16:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141601&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201995&fm=218648520910840&tin=02508201610067®Number=0000000000091777&sum=50000 [14:16:02]OFD Sender: Processing packet 201995 [packets to send 112, broken 111] [14:16:02]ProducePacketName [14:16:02]name=ofd_packets/00201995 [14:16:02]OFD Sender: To server: pG, [14:16:02]CommunicateWithHost lk.salyk.kg:30040 [14:16:02]ConnectInit lk.salyk.kg [14:16:02]written 0, free lines is 4095 [14:16:03]Connected sock=10 [14:16:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 11 07 01 20 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 01 00 00 F4 03 04 00 21 4B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 15 03 00 35 04 06 00 C6 DC 13 6B 67 F8 9C CE 43 A4 02 68 5E 85 [14:16:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F5 D1 47 00 9A E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 15 03 00 F4 03 04 00 DB F6 1D 67 B6 04 01 00 00 43 00 09 75 80 7B 4F FC [14:16:03]CommunicateWithHost err = 0 [14:16:03]CheckOFDResponse [14:16:03]1017 (14) - 77093643461234 [14:16:03]1041 (16) - 0000000000871756 [14:16:03]1040 (4) - 201995 [14:16:03]1012 (4) - 27.10.2024 08:16 [14:16:03]1206 (1) - 0 [14:16:03]OFD Sender: Remove packet 201995 [14:16:03]ProducePacketName [14:16:03]name=ofd_packets/00201995 [14:16:03]NVStorageDeleteData [14:16:03]Write to MH i2c: 01 00 00 3C 21 5D [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: 01 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: 01 07 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: 01 07 00 3C 21 00 00 00 00 00 84 0C F4 [14:16:03]RasterBufferAndPrint [14:16:03]line [14:16:03]line [14:16:03]line [14:16:03]line [14:16:03]line [14:16:03]written 0, free lines is 3210 [14:16:03]MH_Cut [14:16:03]Write to MH i2c: D1 01 00 43 21 01 36 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: D1 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: D1 01 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: D1 01 00 43 21 00 35 [14:16:03]Write to MH i2c: 01 00 00 44 21 65 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]OFD Sender: No OFD packet to send [14:16:04]*** Cut start [14:16:04]*** Purtial cut [14:16:04]*** Stage 1: CUTSNS_PIN = 1 [14:16:04]Read from MH i2c: 01 [14:16:04]MH_I2C_Read... [14:16:04]*** Stop cut motor [14:16:04]*** Cut end [14:16:04]Read from MH i2c: 01 07 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 44 21 00 00 00 00 00 FF 0F 7A [14:16:04]process_action close_receipt done [14:16:04]requested_data is exist [14:16:04]produce_requested_data [14:16:04]requested_item fm.sn is exist - process it [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 11 00 00 [14:16:04]Write to MH i2c: E2 08 00 45 21 80 11 00 00 00 00 00 00 E0 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 45 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [14:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:16:04]wFMCommunicate OK [14:16:04]requested_item fd.num is exist - process it [14:16:04]SAM_PROTO_GetFieldsCounters [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 13 00 00 [14:16:04]Write to MH i2c: E2 08 00 46 21 80 13 00 00 00 00 00 00 E3 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 62 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 62 00 46 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [14:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_GetFieldsCounters done [14:16:04]requested_item shift.num is exist - process it [14:16:04]requested_item shift.opened is exist - process it [14:16:04]req_shift_opened [14:16:04]FM_GetShiftState [14:16:04]SAM_PROTO_GetShiftState [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 13 01 00 [14:16:04]Write to MH i2c: E2 08 00 47 21 80 13 01 00 00 00 00 00 E5 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0E 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0E 00 47 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E7 [14:16:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_GetShiftState done [14:16:04]FM_GetShiftState done [14:16:04]req_shift_opened done [14:16:04]requested_item shift.open_date is exist - process it [14:16:04]req_shift_open_date [14:16:04]req_shift_open_date done [14:16:04]produce_requested_data done [14:16:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201995,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:16:04]process_action_free close_receipt [14:16:04]json_value_free [14:16:04]json_value_free done [14:16:04]process_json_proto returns [14:16:04]Send response to host [14:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201995,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:16:04]free response buf [14:16:04]execute_script done [14:16:04]execute_script returns [14:16:04]free content buf [14:16:04]Sock 8.Close socket [14:16:04]Sock 8.Thread stoped [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:27]accept exits with 9 [14:19:27]New connection [14:19:27]New thread 3066498404 created [14:19:27]Thread 3066641764 joined [14:19:27]Waiting for new connection... [14:19:27] Sock 9.Parse request [14:19:27]Sock 9.Check first char [14:19:27]Sock 9.First char is OK [14:19:27]request: POST /json_proto HTTP/1.0 [14:19:27]Method: POST [14:19:27]URL: /json_proto [14:19:27]Method is POST - this is cgi request [14:19:27]url: /json_proto [14:19:27]query_string will be loaded in cgi processing [14:19:27]execute_cgi json_proto POST (null) [14:19:27]execute_cgi path=json_proto method=POST [14:19:27]POST find Content-Length [14:19:27]Host: 172.17.63.195:8080 [14:19:27]Content-Length: 677 [14:19:27]Content-Type: application/json [14:19:27] [14:19:27]POST finish read [14:19:27]Found Content-Length = 677 [14:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:27]execute_script... [14:19:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:27]POST & json_proto [14:19:27]process_json_proto [14:19:27]json parsed OK: [14:19:27]protocol is kg_v1.0 [14:19:27]action value=close_receipt [14:19:27]process_action close_receipt [14:19:27]cmd_close_receipt [14:19:27]MH_GetDate [14:19:27]Write to MH i2c: F0 00 00 48 21 58 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: F0 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: F0 09 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: F0 09 00 48 21 00 F0 4B 1E 67 47 1B 1E 67 08 [14:19:27]GetLastDocTimeStamp 1730038561 [14:19:27]current date 1730038768 [14:19:27]FM_GetShiftState [14:19:27]SAM_PROTO_GetShiftState [14:19:27]wFMCommunicate request_size=4 [14:19:27]MH_SAM_APDU [14:19:27]CAPDU: 80 13 01 00 [14:19:27]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:27]Read from MH i2c: E2 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 0E 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 0E 00 49 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E9 [14:19:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:19:27]wFMCommunicate OK [14:19:27]SAM_PROTO_GetShiftState done [14:19:27]FM_GetShiftState done [14:19:27]opened in 1729987312 [14:19:27]opened+sec_in_day 1730073712 [14:19:27]quantity*price = 20003 [14:19:27]sum+1 = 20004 [14:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 288 27.10.2024 14:19 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201996 ФПД: 143155801864872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201996&fm=143155801864872&tin=02508201610067®Number=0000000000091777&sum=20000 [14:19:29]StoreToDocumentArchive [14:19:29]shift 544 fd 201996 [14:19:29]save to /storage/0544/doc_00201996 [14:19:29]save last doc name /storage/0544/doc_00201996 to /storage/kkm_last_doc_name [14:19:29]save OK [14:19:29]Clear old archive folders... [14:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:29]tlvbuf is 0118F1F0 [14:19:29]SAM_PROTO_ClearQueue [14:19:29]wFMCommunicate request_size=4 [14:19:29]MH_SAM_APDU [14:19:29]CAPDU: 80 09 00 00 [14:19:29]Write to MH i2c: E2 08 00 56 21 80 09 00 00 00 00 00 00 E9 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:29]Read from MH i2c: E2 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 03 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [14:19:29]RAPDU: 90 00 [14:19:29]wFMCommunicate OK [14:19:29]SAM_PROTO_ClearQueue done [14:19:29]KKMCreateOFDPacket [14:19:29]OFDProtocolAddRootSTLVToBuf [14:19:29]FM_MakeSignedData [14:19:29]FM_MakeSignedData [14:19:29]SAM_PROTO_SignData [14:19:29]wFMCommunicate request_size=4 [14:19:29]MH_SAM_APDU [14:19:29]CAPDU: 80 0D 01 02 [14:19:29]Write to MH i2c: E2 08 00 57 21 80 0D 01 02 00 00 00 00 F1 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:29]Read from MH i2c: E2 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 03 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [14:19:29]RAPDU: 90 00 [14:19:29]wFMCommunicate OK [14:19:29]wFMCommunicate request_size=255 [14:19:29]MH_SAM_APDU [14:19:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 01 00 00 F4 03 04 00 F1 4B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 15 03 00 35 04 06 00 82 [14:19:29]Write to MH i2c: E2 02 01 58 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 01 00 00 F4 03 04 00 F1 4B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 15 03 00 35 04 06 00 82 00 00 F1 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:29]Read from MH i2c: E2 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 03 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [14:19:29]RAPDU: 90 00 [14:19:29]wFMCommunicate OK [14:19:29]wFMCommunicate request_size=10 [14:19:29]MH_SAM_APDU [14:19:29]CAPDU: 80 0D 02 02 05 33 0E B7 BA A8 [14:19:29]Write to MH i2c: E2 0D 00 59 21 80 0D 02 02 05 00 33 0E B7 BA A8 00 00 58 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:29]Read from MH i2c: E2 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 03 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [14:19:29]RAPDU: 90 00 [14:19:29]wFMCommunicate OK [14:19:29]wFMCommunicate request_size=4 [14:19:29]MH_SAM_APDU [14:19:29]CAPDU: 80 0D 03 02 [14:19:29]Write to MH i2c: E2 08 00 5A 21 80 0D 03 02 00 00 00 00 F6 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:29]Read from MH i2c: E2 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 0B 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 0B 00 5A 21 00 54 97 E6 05 90 0F 73 CF 90 00 AE [14:19:29]RAPDU: 54 97 E6 05 90 0F 73 CF 90 00 [14:19:29]wFMCommunicate OK [14:19:29]SAM_PROTO_SignData done [14:19:29]FM_MakeSignedData done [14:19:29]CreateOFDProtocolMessage [14:19:29]wFMCommunicate request_size=4 [14:19:29]MH_SAM_APDU [14:19:29]CAPDU: 80 11 00 00 [14:19:29]Write to MH i2c: E2 08 00 5B 21 80 11 00 00 00 00 00 00 F6 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:29]Read from MH i2c: E2 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 17 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: E2 17 00 5B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [14:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:19:29]wFMCommunicate OK [14:19:29]CreateOFDProtocolMessage done [14:19:29]OFDSenderStorePacket 201996 [14:19:29]StoreOFDPacket docnum=201996 [14:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 B5 07 01 93 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 01 00 00 F4 03 04 00 F1 4B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 15 03 00 35 04 06 00 82 33 0E B7 BA A8 54 97 E6 05 90 0F 73 CF [14:19:29]CheckFolder [14:19:29]dirname=/storage/ofd_packets [14:19:29]CheckFolder done [14:19:29]ProducePacketName [14:19:29]name=ofd_packets/00201996 [14:19:29]NVStorageSaveData ofd_packets/00201996 [14:19:29]File name is /storage/ofd_packets/00201996 [14:19:29]Write 301 bytes [14:19:29]NVStorageSaveData done [14:19:29]OFDSenderStorePacket done [14:19:29]KKMCreateOFDPacket done [14:19:29]NVStorageSaveData kkm_last_timestamp [14:19:29]File name is /storage/kkm_last_timestamp [14:19:29]Write 4 bytes [14:19:29]NVStorageSaveData done [14:19:29]ExternCall_PrintAddStr [14:19:29]wPrintStart [14:19:29]Write to MH i2c: 01 00 00 5C 21 7D [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: 01 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: 01 07 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: 01 07 00 5C 21 00 00 00 00 00 FF 0F 92 [14:19:29]RasterBufferAndPrint [14:19:29]line Счет N : (1)449761 [14:19:29]line ИНН: 02508201610067 [14:19:29]line Контрольно-Кассовый Чек [14:19:29]line ПРОДАЖА [14:19:29]line ТРК (МРК, ГНК) : 31 [14:19:29]line Товар: 2710124130 [14:19:29]line Аи-92-К-2 [14:19:29]line 2.990 * 66.90 [14:19:29]line = 200.03 [14:19:29]line НДС 12% НСП 1% [14:19:29]line > о реализуемом товаре [14:19:29]line ОКРУГЛЕНИЕ: -0.03 [14:19:29]line ИТОГО: 200.00 [14:19:29]line Внесено: 200.00 [14:19:29]line СДАЧА: 0.00 [14:19:29]line НСП 1% : 1.77 [14:19:29]line НДС 12% : 21.24 [14:19:29]line Наличными: 200.00 [14:19:29]line Безнал.: 0.00 [14:19:29]line Место: АЗС № 171 "Партнер Нефть" [14:19:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:19:29]line СНО: Общий режим [14:19:29]line Чек 288 27.10.2024 14:19 [14:19:29]line Смена: 544 ФФД: 1.0 [14:19:29]line ЗНМ: 0300000109 [14:19:29]line РНМ: 0000000000091777 [14:19:29]line Версия ККМ: 001 [14:19:29]line ФМ: 0000000000871756 [14:19:29]line ФД: 201996 [14:19:29]line ФПД: 143155801864872 [14:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T141929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201996&fm=143155801864872&tin=02508201610067®Number=0000000000091777&sum=20000 [14:19:29]OFD Sender: Processing packet 201996 [packets to send 112, broken 111] [14:19:29]ProducePacketName [14:19:29]name=ofd_packets/00201996 [14:19:29]OFD Sender: To server: pG, [14:19:29]CommunicateWithHost lk.salyk.kg:30040 [14:19:29]ConnectInit lk.salyk.kg [14:19:29]written 0, free lines is 4095 [14:19:30]Connected sock=10 [14:19:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 B5 07 01 93 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 01 00 00 F4 03 04 00 F1 4B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 15 03 00 35 04 06 00 82 33 0E B7 BA A8 54 97 E6 05 90 0F 73 CF [14:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 71 4D 47 00 46 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 15 03 00 F4 03 04 00 AA F7 1D 67 B6 04 01 00 00 2E E7 4A FA D1 D0 D6 99 [14:19:30]CommunicateWithHost err = 0 [14:19:30]CheckOFDResponse [14:19:30]1017 (14) - 77093643461234 [14:19:30]1041 (16) - 0000000000871756 [14:19:30]1040 (4) - 201996 [14:19:30]1012 (4) - 27.10.2024 08:19 [14:19:30]1206 (1) - 0 [14:19:30]OFD Sender: Remove packet 201996 [14:19:30]ProducePacketName [14:19:30]name=ofd_packets/00201996 [14:19:30]NVStorageDeleteData [14:19:30]Write to MH i2c: 01 00 00 87 21 A8 [14:19:30]Write i2c OK [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: 01 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: 01 07 00 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: 01 07 00 87 21 00 00 00 00 00 85 0C 40 [14:19:30]RasterBufferAndPrint [14:19:30]line [14:19:30]line [14:19:30]line [14:19:30]line [14:19:30]line [14:19:30]written 0, free lines is 3210 [14:19:30]MH_Cut [14:19:30]Write to MH i2c: D1 01 00 8E 21 01 81 [14:19:30]Write i2c OK [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: D1 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: D1 01 00 [14:19:30]MH_I2C_Read... [14:19:30]Read from MH i2c: D1 01 00 8E 21 00 80 [14:19:30]Write to MH i2c: 01 00 00 8F 21 B0 [14:19:30]Write i2c OK [14:19:30]MH_I2C_Read... [14:19:30]OFD Sender: No OFD packet to send [14:19:31]*** Cut start [14:19:31]*** Purtial cut [14:19:31]*** Stage 1: CUTSNS_PIN = 1 [14:19:31]Read from MH i2c: 01 [14:19:31]MH_I2C_Read... [14:19:31]*** Stop cut motor [14:19:31]*** Cut end [14:19:31]Read from MH i2c: 01 07 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: 01 07 00 8F 21 00 00 00 00 00 FF 0F C5 [14:19:31]process_action close_receipt done [14:19:31]requested_data is exist [14:19:31]produce_requested_data [14:19:31]requested_item fm.sn is exist - process it [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 11 00 00 [14:19:31]Write to MH i2c: E2 08 00 90 21 80 11 00 00 00 00 00 00 2B [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 17 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 17 00 90 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 80 [14:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:19:31]wFMCommunicate OK [14:19:31]requested_item fd.num is exist - process it [14:19:31]SAM_PROTO_GetFieldsCounters [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 13 00 00 [14:19:31]Write to MH i2c: E2 08 00 91 21 80 13 00 00 00 00 00 00 2E [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 62 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 62 00 91 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [14:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:31]wFMCommunicate OK [14:19:31]SAM_PROTO_GetFieldsCounters done [14:19:31]requested_item shift.num is exist - process it [14:19:31]requested_item shift.opened is exist - process it [14:19:31]req_shift_opened [14:19:31]FM_GetShiftState [14:19:31]SAM_PROTO_GetShiftState [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 13 01 00 [14:19:31]Write to MH i2c: E2 08 00 92 21 80 13 01 00 00 00 00 00 30 [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 0E 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 0E 00 92 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 32 [14:19:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:19:31]wFMCommunicate OK [14:19:31]SAM_PROTO_GetShiftState done [14:19:31]FM_GetShiftState done [14:19:31]req_shift_opened done [14:19:31]requested_item shift.open_date is exist - process it [14:19:31]req_shift_open_date [14:19:31]req_shift_open_date done [14:19:31]produce_requested_data done [14:19:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201996,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:19:31]process_action_free close_receipt [14:19:31]json_value_free [14:19:31]json_value_free done [14:19:31]process_json_proto returns [14:19:31]Send response to host [14:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201996,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:19:31]free response buf [14:19:31]execute_script done [14:19:31]execute_script returns [14:19:31]free content buf [14:19:31]Sock 9.Close socket [14:19:31]Sock 9.Thread stoped [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:52]accept exits with 8 [14:20:52]New connection [14:20:52]New thread 3066641764 created [14:20:52]Thread 3066498404 joined [14:20:52]Waiting for new connection... [14:20:52] Sock 8.Parse request [14:20:52]Sock 8.Check first char [14:20:52]Sock 8.First char is OK [14:20:52]request: POST /json_proto HTTP/1.0 [14:20:52]Method: POST [14:20:52]URL: /json_proto [14:20:52]Method is POST - this is cgi request [14:20:52]url: /json_proto [14:20:52]query_string will be loaded in cgi processing [14:20:52]execute_cgi json_proto POST (null) [14:20:52]execute_cgi path=json_proto method=POST [14:20:52]POST find Content-Length [14:20:52]Host: 172.17.63.195:8080 [14:20:52]Content-Length: 682 [14:20:52]Content-Type: application/json [14:20:52] [14:20:52]POST finish read [14:20:52]Found Content-Length = 682 [14:20:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:52]execute_script... [14:20:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:52]POST & json_proto [14:20:52]process_json_proto [14:20:52]json parsed OK: [14:20:52]protocol is kg_v1.0 [14:20:52]action value=close_receipt [14:20:52]process_action close_receipt [14:20:52]cmd_close_receipt [14:20:52]MH_GetDate [14:20:52]Write to MH i2c: F0 00 00 93 21 A3 [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 09 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: F0 09 00 93 21 00 45 4C 1E 67 47 1B 1E 67 A9 [14:20:52]GetLastDocTimeStamp 1730038769 [14:20:52]current date 1730038853 [14:20:52]FM_GetShiftState [14:20:52]SAM_PROTO_GetShiftState [14:20:52]wFMCommunicate request_size=4 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 13 01 00 [14:20:52]Write to MH i2c: E2 08 00 94 21 80 13 01 00 00 00 00 00 32 [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0E 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0E 00 94 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 34 [14:20:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:20:52]wFMCommunicate OK [14:20:52]SAM_PROTO_GetShiftState done [14:20:52]FM_GetShiftState done [14:20:52]opened in 1729987312 [14:20:52]opened+sec_in_day 1730073712 [14:20:52]quantity*price = 100015 [14:20:52]sum+1 = 100017 [14:20:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 289 27.10.2024 14:20 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201997 ФПД: 120689488703559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142053&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201997&fm=120689488703559&tin=02508201610067®Number=0000000000091777&sum=100000 [14:20:53]StoreToDocumentArchive [14:20:53]shift 544 fd 201997 [14:20:53]save to /storage/0544/doc_00201997 [14:20:53]save last doc name /storage/0544/doc_00201997 to /storage/kkm_last_doc_name [14:20:53]save OK [14:20:53]Clear old archive folders... [14:20:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:53]tlvbuf is 0118F050 [14:20:53]SAM_PROTO_ClearQueue [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 09 00 00 [14:20:53]Write to MH i2c: E2 08 00 A1 21 80 09 00 00 00 00 00 00 34 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [14:20:53]RAPDU: 90 00 [14:20:53]wFMCommunicate OK [14:20:53]SAM_PROTO_ClearQueue done [14:20:53]KKMCreateOFDPacket [14:20:53]OFDProtocolAddRootSTLVToBuf [14:20:53]FM_MakeSignedData [14:20:53]FM_MakeSignedData [14:20:53]SAM_PROTO_SignData [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 0D 01 02 [14:20:53]Write to MH i2c: E2 08 00 A2 21 80 0D 01 02 00 00 00 00 3C [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 A2 21 00 90 00 37 [14:20:53]RAPDU: 90 00 [14:20:53]wFMCommunicate OK [14:20:53]wFMCommunicate request_size=255 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 01 00 00 F4 03 04 00 45 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 15 03 00 35 04 06 00 6D [14:20:53]Write to MH i2c: E2 02 01 A3 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 01 00 00 F4 03 04 00 45 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 15 03 00 35 04 06 00 6D 00 00 B6 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 A3 21 00 90 00 38 [14:20:53]RAPDU: 90 00 [14:20:53]wFMCommunicate OK [14:20:53]wFMCommunicate request_size=10 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 0D 02 02 05 C4 36 1A 30 47 [14:20:53]Write to MH i2c: E2 0D 00 A4 21 80 0D 02 02 05 00 C4 36 1A 30 47 00 00 D4 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 03 00 A4 21 00 90 00 39 [14:20:53]RAPDU: 90 00 [14:20:53]wFMCommunicate OK [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 0D 03 02 [14:20:53]Write to MH i2c: E2 08 00 A5 21 80 0D 03 02 00 00 00 00 41 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 0B 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 0B 00 A5 21 00 28 93 BC 12 8B DB 64 03 90 00 98 [14:20:53]RAPDU: 28 93 BC 12 8B DB 64 03 90 00 [14:20:53]wFMCommunicate OK [14:20:53]SAM_PROTO_SignData done [14:20:53]FM_MakeSignedData done [14:20:53]CreateOFDProtocolMessage [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 11 00 00 [14:20:53]Write to MH i2c: E2 08 00 A6 21 80 11 00 00 00 00 00 00 41 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 A6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 96 [14:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:20:54]wFMCommunicate OK [14:20:54]CreateOFDProtocolMessage done [14:20:54]OFDSenderStorePacket 201997 [14:20:54]StoreOFDPacket docnum=201997 [14:20:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8B E4 07 01 FB 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 01 00 00 F4 03 04 00 45 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 15 03 00 35 04 06 00 6D C4 36 1A 30 47 28 93 BC 12 8B DB 64 03 [14:20:54]CheckFolder [14:20:54]dirname=/storage/ofd_packets [14:20:54]CheckFolder done [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00201997 [14:20:54]NVStorageSaveData ofd_packets/00201997 [14:20:54]File name is /storage/ofd_packets/00201997 [14:20:54]Write 301 bytes [14:20:54]NVStorageSaveData done [14:20:54]OFDSenderStorePacket done [14:20:54]KKMCreateOFDPacket done [14:20:54]NVStorageSaveData kkm_last_timestamp [14:20:54]File name is /storage/kkm_last_timestamp [14:20:54]Write 4 bytes [14:20:54]NVStorageSaveData done [14:20:54]ExternCall_PrintAddStr [14:20:54]wPrintStart [14:20:54]Write to MH i2c: 01 00 00 A7 21 C8 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 A7 21 00 00 00 00 00 FF 0F DD [14:20:54]RasterBufferAndPrint [14:20:54]line Счет N : (1)449762 [14:20:54]line ИНН: 02508201610067 [14:20:54]line Контрольно-Кассовый Чек [14:20:54]line ПРОДАЖА [14:20:54]line ТРК (МРК, ГНК) : 52 [14:20:54]line Товар: 2710124130 [14:20:54]line Аи-92-К-2 [14:20:54]line 14.950 * 66.90 [14:20:54]line = 1000.16 [14:20:54]line НДС 12% НСП 1% [14:20:54]line > о реализуемом товаре [14:20:54]line ОКРУГЛЕНИЕ: -0.16 [14:20:54]line ИТОГО: 1000.00 [14:20:54]line Внесено: 1000.00 [14:20:54]line СДАЧА: 0.00 [14:20:54]line НСП 1% : 8.85 [14:20:54]line НДС 12% : 106.21 [14:20:54]line Наличными: 1000.00 [14:20:54]line Безнал.: 0.00 [14:20:54]line Место: АЗС № 171 "Партнер Нефть" [14:20:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:20:54]line СНО: Общий режим [14:20:54]line Чек 289 27.10.2024 14:20 [14:20:54]line Смена: 544 ФФД: 1.0 [14:20:54]line ЗНМ: 0300000109 [14:20:54]line РНМ: 0000000000091777 [14:20:54]line Версия ККМ: 001 [14:20:54]line ФМ: 0000000000871756 [14:20:54]line ФД: 201997 [14:20:54]line ФПД: 120689488703559 [14:20:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142053&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201997&fm=120689488703559&tin=02508201610067®Number=0000000000091777&sum=100000 [14:20:54]OFD Sender: Processing packet 201997 [packets to send 112, broken 111] [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00201997 [14:20:54]OFD Sender: To server: pG, [14:20:54]CommunicateWithHost lk.salyk.kg:30040 [14:20:54]ConnectInit lk.salyk.kg [14:20:54]written 0, free lines is 4095 [14:20:54]Connected sock=10 [14:20:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8B E4 07 01 FB 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 21 01 00 00 F4 03 04 00 45 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 15 03 00 35 04 06 00 6D C4 36 1A 30 47 28 93 BC 12 8B DB 64 03 [14:20:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 73 38 47 00 61 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 15 03 00 F4 03 04 00 FF F7 1D 67 B6 04 01 00 00 11 20 CD 94 A1 41 52 DB [14:20:54]CommunicateWithHost err = 0 [14:20:54]CheckOFDResponse [14:20:54]1017 (14) - 77093643461234 [14:20:54]1041 (16) - 0000000000871756 [14:20:54]1040 (4) - 201997 [14:20:54]1012 (4) - 27.10.2024 08:21 [14:20:54]1206 (1) - 0 [14:20:54]OFD Sender: Remove packet 201997 [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00201997 [14:20:54]NVStorageDeleteData [14:20:54]Write to MH i2c: 01 00 00 D2 21 F3 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 D2 21 00 00 00 00 00 86 0C 8C [14:20:54]RasterBufferAndPrint [14:20:54]line [14:20:54]line [14:20:54]line [14:20:54]line [14:20:54]line [14:20:54]written 0, free lines is 3211 [14:20:54]MH_Cut [14:20:54]Write to MH i2c: D1 01 00 D9 21 01 CC [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: D1 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: D1 01 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: D1 01 00 D9 21 00 CB [14:20:54]Write to MH i2c: 01 00 00 DA 21 FB [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:55]OFD Sender: No OFD packet to send [14:20:55]*** Cut start [14:20:55]*** Purtial cut [14:20:55]*** Stage 1: CUTSNS_PIN = 1 [14:20:55]Read from MH i2c: 01 [14:20:55]MH_I2C_Read... [14:20:55]*** Stop cut motor [14:20:55]*** Cut end [14:20:55]Read from MH i2c: 01 07 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 FF 0F 10 [14:20:55]process_action close_receipt done [14:20:55]requested_data is exist [14:20:55]produce_requested_data [14:20:55]requested_item fm.sn is exist - process it [14:20:55]wFMCommunicate request_size=4 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 11 00 00 [14:20:55]Write to MH i2c: E2 08 00 DB 21 80 11 00 00 00 00 00 00 76 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:56]Read from MH i2c: E2 17 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 17 00 DB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CB [14:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:20:56]wFMCommunicate OK [14:20:56]requested_item fd.num is exist - process it [14:20:56]SAM_PROTO_GetFieldsCounters [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 13 00 00 [14:20:56]Write to MH i2c: E2 08 00 DC 21 80 13 00 00 00 00 00 00 79 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 62 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 62 00 DC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [14:20:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_GetFieldsCounters done [14:20:56]requested_item shift.num is exist - process it [14:20:56]requested_item shift.opened is exist - process it [14:20:56]req_shift_opened [14:20:56]FM_GetShiftState [14:20:56]SAM_PROTO_GetShiftState [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 13 01 00 [14:20:56]Write to MH i2c: E2 08 00 DD 21 80 13 01 00 00 00 00 00 7B [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0E 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0E 00 DD 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7D [14:20:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_GetShiftState done [14:20:56]FM_GetShiftState done [14:20:56]req_shift_opened done [14:20:56]requested_item shift.open_date is exist - process it [14:20:56]req_shift_open_date [14:20:56]req_shift_open_date done [14:20:56]produce_requested_data done [14:20:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201997,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:20:56]process_action_free close_receipt [14:20:56]json_value_free [14:20:56]json_value_free done [14:20:56]process_json_proto returns [14:20:56]Send response to host [14:20:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201997,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:20:56]free response buf [14:20:56]execute_script done [14:20:56]execute_script returns [14:20:56]free content buf [14:20:56]Sock 8.Close socket [14:20:56]Sock 8.Thread stoped [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:11]accept exits with 9 [14:21:11]New connection [14:21:11]New thread 3066498404 created [14:21:11]Thread 3066641764 joined [14:21:11]Waiting for new connection... [14:21:11] Sock 9.Parse request [14:21:11]Sock 9.Check first char [14:21:11]Sock 9.First char is OK [14:21:11]request: POST /json_proto HTTP/1.0 [14:21:11]Method: POST [14:21:11]URL: /json_proto [14:21:11]Method is POST - this is cgi request [14:21:11]url: /json_proto [14:21:11]query_string will be loaded in cgi processing [14:21:11]execute_cgi json_proto POST (null) [14:21:11]execute_cgi path=json_proto method=POST [14:21:11]POST find Content-Length [14:21:11]Host: 172.17.63.195:8080 [14:21:11]Content-Length: 674 [14:21:11]Content-Type: application/json [14:21:11] [14:21:11]POST finish read [14:21:11]Found Content-Length = 674 [14:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:11]execute_script... [14:21: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)449763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:11]POST & json_proto [14:21:11]process_json_proto [14:21:11]json parsed OK: [14:21:11]protocol is kg_v1.0 [14:21:11]action value=close_receipt [14:21:11]process_action close_receipt [14:21:11]cmd_close_receipt [14:21:11]MH_GetDate [14:21:11]Write to MH i2c: F0 00 00 DE 21 EE [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: F0 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: F0 09 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: F0 09 00 DE 21 00 58 4C 1E 67 47 1B 1E 67 07 [14:21:11]GetLastDocTimeStamp 1730038853 [14:21:11]current date 1730038872 [14:21:11]FM_GetShiftState [14:21:11]SAM_PROTO_GetShiftState [14:21:11]wFMCommunicate request_size=4 [14:21:11]MH_SAM_APDU [14:21:11]CAPDU: 80 13 01 00 [14:21:11]Write to MH i2c: E2 08 00 DF 21 80 13 01 00 00 00 00 00 7D [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:11]Read from MH i2c: E2 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 0E 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 0E 00 DF 21 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7F [14:21:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:21:11]wFMCommunicate OK [14:21:11]SAM_PROTO_GetShiftState done [14:21:11]FM_GetShiftState done [14:21:11]opened in 1729987312 [14:21:11]opened+sec_in_day 1730073712 [14:21:11]quantity*price = 50063 [14:21:11]sum+1 = 50064 [14:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 290 27.10.2024 14:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201998 ФПД: 223100793203229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142112&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201998&fm=223100793203229&tin=02508201610067®Number=0000000000091777&sum=50000 [14:21:12]StoreToDocumentArchive [14:21:12]shift 544 fd 201998 [14:21:12]save to /storage/0544/doc_00201998 [14:21:12]save last doc name /storage/0544/doc_00201998 to /storage/kkm_last_doc_name [14:21:12]save OK [14:21:12]Clear old archive folders... [14:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:12]tlvbuf is B6F0CC60 [14:21:12]SAM_PROTO_ClearQueue [14:21:12]wFMCommunicate request_size=4 [14:21:12]MH_SAM_APDU [14:21:12]CAPDU: 80 09 00 00 [14:21:12]Write to MH i2c: E2 08 00 EC 21 80 09 00 00 00 00 00 00 7F [14:21:12]Write i2c OK [14:21:12]MH_I2C_Read... [14:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:12]Read from MH i2c: E2 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 03 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [14:21:12]RAPDU: 90 00 [14:21:12]wFMCommunicate OK [14:21:12]SAM_PROTO_ClearQueue done [14:21:12]KKMCreateOFDPacket [14:21:12]OFDProtocolAddRootSTLVToBuf [14:21:12]FM_MakeSignedData [14:21:12]FM_MakeSignedData [14:21:12]SAM_PROTO_SignData [14:21:12]wFMCommunicate request_size=4 [14:21:12]MH_SAM_APDU [14:21:12]CAPDU: 80 0D 01 02 [14:21:12]Write to MH i2c: E2 08 00 ED 21 80 0D 01 02 00 00 00 00 87 [14:21:12]Write i2c OK [14:21:12]MH_I2C_Read... [14:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:12]Read from MH i2c: E2 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 03 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [14:21:12]RAPDU: 90 00 [14:21:12]wFMCommunicate OK [14:21:12]wFMCommunicate request_size=255 [14:21:12]MH_SAM_APDU [14:21:12]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 58 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 15 03 00 35 04 06 00 CA E8 B3 87 [14:21:12]Write to MH i2c: E2 02 01 EE 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 58 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 15 03 00 35 04 06 00 CA E8 B3 87 00 00 19 [14:21:12]Write i2c OK [14:21:12]MH_I2C_Read... [14:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:13]Read from MH i2c: E2 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 03 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 03 00 EE 21 00 90 00 83 [14:21:13]RAPDU: 90 00 [14:21:13]wFMCommunicate OK [14:21:13]wFMCommunicate request_size=7 [14:21:13]MH_SAM_APDU [14:21:13]CAPDU: 80 0D 02 02 02 2A 1D [14:21:13]Write to MH i2c: E2 0A 00 EF 21 80 0D 02 02 02 00 2A 1D 00 00 D5 [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:13]Read from MH i2c: E2 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 03 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 03 00 EF 21 00 90 00 84 [14:21:13]RAPDU: 90 00 [14:21:13]wFMCommunicate OK [14:21:13]wFMCommunicate request_size=4 [14:21:13]MH_SAM_APDU [14:21:13]CAPDU: 80 0D 03 02 [14:21:13]Write to MH i2c: E2 08 00 F0 21 80 0D 03 02 00 00 00 00 8C [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:13]Read from MH i2c: E2 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 0B 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 0B 00 F0 21 00 1C 98 C4 2B 42 16 70 8B 90 00 83 [14:21:13]RAPDU: 1C 98 C4 2B 42 16 70 8B 90 00 [14:21:13]wFMCommunicate OK [14:21:13]SAM_PROTO_SignData done [14:21:13]FM_MakeSignedData done [14:21:13]CreateOFDProtocolMessage [14:21:13]wFMCommunicate request_size=4 [14:21:13]MH_SAM_APDU [14:21:13]CAPDU: 80 11 00 00 [14:21:13]Write to MH i2c: E2 08 00 F1 21 80 11 00 00 00 00 00 00 8C [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:13]Read from MH i2c: E2 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 17 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 17 00 F1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [14:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:21:13]wFMCommunicate OK [14:21:13]CreateOFDProtocolMessage done [14:21:13]OFDSenderStorePacket 201998 [14:21:13]StoreOFDPacket docnum=201998 [14:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 34 B6 04 01 64 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 58 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 15 03 00 35 04 06 00 CA E8 B3 87 2A 1D 1C 98 C4 2B 42 16 70 8B [14:21:13]CheckFolder [14:21:13]dirname=/storage/ofd_packets [14:21:13]CheckFolder done [14:21:13]ProducePacketName [14:21:13]name=ofd_packets/00201998 [14:21:13]NVStorageSaveData ofd_packets/00201998 [14:21:13]File name is /storage/ofd_packets/00201998 [14:21:13]Write 298 bytes [14:21:13]NVStorageSaveData done [14:21:13]OFDSenderStorePacket done [14:21:13]KKMCreateOFDPacket done [14:21:13]NVStorageSaveData kkm_last_timestamp [14:21:13]File name is /storage/kkm_last_timestamp [14:21:13]Write 4 bytes [14:21:13]NVStorageSaveData done [14:21:13]ExternCall_PrintAddStr [14:21:13]wPrintStart [14:21:13]Write to MH i2c: 01 00 00 F2 21 13 [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: 01 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: 01 07 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: 01 07 00 F2 21 00 00 00 00 00 FF 0F 28 [14:21:13]RasterBufferAndPrint [14:21:13]line Счет N : (1)449763 [14:21:13]line ИНН: 02508201610067 [14:21:13]line Контрольно-Кассовый Чек [14:21:13]line ПРОДАЖА [14:21:13]line ТРК (МРК, ГНК) : 21 [14:21:13]line Товар: 2710194210 [14:21:13]line ДТ-К-2 [14:21:13]line 6.570 * 76.20 [14:21:13]line = 500.63 [14:21:13]line НДС 12% НСП 1% [14:21:13]line > о реализуемом товаре [14:21:13]line ОКРУГЛЕНИЕ: -0.63 [14:21:13]line ИТОГО: 500.00 [14:21:13]line Внесено: 500.00 [14:21:13]line СДАЧА: 0.00 [14:21:13]line НСП 1% : 4.43 [14:21:13]line НДС 12% : 53.16 [14:21:13]line Наличными: 500.00 [14:21:13]line Безнал.: 0.00 [14:21:13]line Место: АЗС № 171 "Партнер Нефть" [14:21:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:21:13]line СНО: Общий режим [14:21:13]line Чек 290 27.10.2024 14:21 [14:21:13]line Смена: 544 ФФД: 1.0 [14:21:13]line ЗНМ: 0300000109 [14:21:13]line РНМ: 0000000000091777 [14:21:13]line Версия ККМ: 001 [14:21:13]line ФМ: 0000000000871756 [14:21:13]line ФД: 201998 [14:21:13]line ФПД: 223100793203229 [14:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142112&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201998&fm=223100793203229&tin=02508201610067®Number=0000000000091777&sum=50000 [14:21:13]written 0, free lines is 4095 [14:21:13]OFD Sender: Processing packet 201998 [packets to send 112, broken 111] [14:21:13]ProducePacketName [14:21:13]name=ofd_packets/00201998 [14:21:13]OFD Sender: To server: pG, [14:21:13]CommunicateWithHost lk.salyk.kg:30040 [14:21:13]ConnectInit lk.salyk.kg [14:21:13]Connected sock=10 [14:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 34 B6 04 01 64 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 58 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 15 03 00 35 04 06 00 CA E8 B3 87 2A 1D 1C 98 C4 2B 42 16 70 8B [14:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 01 76 47 00 A5 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 30 38 37 31 37 35 36 10 04 04 00 0E 15 03 00 F4 03 04 00 12 F8 1D 67 B6 04 01 00 00 9E 94 0D 5A C1 6F 40 14 [14:21:13]CommunicateWithHost err = 0 [14:21:13]CheckOFDResponse [14:21:13]1017 (14) - 77093643461234 [14:21:13]1041 (16) - 0000000000871756 [14:21:13]1040 (4) - 201998 [14:21:13]1012 (4) - 27.10.2024 08:21 [14:21:13]1206 (1) - 0 [14:21:13]OFD Sender: Remove packet 201998 [14:21:13]ProducePacketName [14:21:13]name=ofd_packets/00201998 [14:21:13]NVStorageDeleteData [14:21:13]Write to MH i2c: 01 00 00 1D 22 3F [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: 01 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: 01 07 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: 01 07 00 1D 22 00 00 00 00 00 8C 0C DE [14:21:13]RasterBufferAndPrint [14:21:13]line [14:21:13]line [14:21:13]line [14:21:13]line [14:21:13]line [14:21:13]written 0, free lines is 3216 [14:21:13]MH_Cut [14:21:13]Write to MH i2c: D1 01 00 24 22 01 18 [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: D1 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: D1 01 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: D1 01 00 24 22 00 17 [14:21:13]Write to MH i2c: 01 00 00 25 22 47 [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:14]OFD Sender: No OFD packet to send [14:21:14]*** Cut start [14:21:14]*** Purtial cut [14:21:14]*** Stage 1: CUTSNS_PIN = 1 [14:21:14]Read from MH i2c: 01 [14:21:14]MH_I2C_Read... [14:21:14]*** Stop cut motor [14:21:15]*** Cut end [14:21:15]Read from MH i2c: 01 07 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 07 00 25 22 00 00 00 00 00 FF 0F 5C [14:21:15]process_action close_receipt done [14:21:15]requested_data is exist [14:21:15]produce_requested_data [14:21:15]requested_item fm.sn is exist - process it [14:21:15]wFMCommunicate request_size=4 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 11 00 00 [14:21:15]Write to MH i2c: E2 08 00 26 22 80 11 00 00 00 00 00 00 C2 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 17 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 17 00 26 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 17 [14:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:21:15]wFMCommunicate OK [14:21:15]requested_item fd.num is exist - process it [14:21:15]SAM_PROTO_GetFieldsCounters [14:21:15]wFMCommunicate request_size=4 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 13 00 00 [14:21:15]Write to MH i2c: E2 08 00 27 22 80 13 00 00 00 00 00 00 C5 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 62 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 62 00 27 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [14:21:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:15]wFMCommunicate OK [14:21:15]SAM_PROTO_GetFieldsCounters done [14:21:15]requested_item shift.num is exist - process it [14:21:15]requested_item shift.opened is exist - process it [14:21:15]req_shift_opened [14:21:15]FM_GetShiftState [14:21:15]SAM_PROTO_GetShiftState [14:21:15]wFMCommunicate request_size=4 [14:21:15]MH_SAM_APDU [14:21:15]CAPDU: 80 13 01 00 [14:21:15]Write to MH i2c: E2 08 00 28 22 80 13 01 00 00 00 00 00 C7 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:15]Read from MH i2c: E2 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 0E 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: E2 0E 00 28 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C9 [14:21:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:21:15]wFMCommunicate OK [14:21:15]SAM_PROTO_GetShiftState done [14:21:15]FM_GetShiftState done [14:21:15]req_shift_opened done [14:21:15]requested_item shift.open_date is exist - process it [14:21:15]req_shift_open_date [14:21:15]req_shift_open_date done [14:21:15]produce_requested_data done [14:21:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201998,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:21:15]process_action_free close_receipt [14:21:15]json_value_free [14:21:15]json_value_free done [14:21:15]process_json_proto returns [14:21:15]Send response to host [14:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201998,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:21:15]free response buf [14:21:15]execute_script done [14:21:15]execute_script returns [14:21:15]free content buf [14:21:15]Sock 9.Close socket [14:21:15]Sock 9.Thread stoped [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:11]accept exits with 8 [14:22:11]New connection [14:22:11]New thread 3066641764 created [14:22:11]Thread 3066498404 joined [14:22:11]Waiting for new connection... [14:22:11] Sock 8.Parse request [14:22:11]Sock 8.Check first char [14:22:11]Sock 8.First char is OK [14:22:11]request: POST /json_proto HTTP/1.0 [14:22:11]Method: POST [14:22:11]URL: /json_proto [14:22:11]Method is POST - this is cgi request [14:22:11]url: /json_proto [14:22:11]query_string will be loaded in cgi processing [14:22:11]execute_cgi json_proto POST (null) [14:22:11]execute_cgi path=json_proto method=POST [14:22:11]POST find Content-Length [14:22:11]Host: 172.17.63.195:8080 [14:22:11]Content-Length: 769 [14:22:11]Content-Type: application/json [14:22:11] [14:22:11]POST finish read [14:22:11]Found Content-Length = 769 [14:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:11]execute_script... [14:22: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)449764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:11]POST & json_proto [14:22:11]process_json_proto [14:22:11]json parsed OK: [14:22:11]protocol is kg_v1.0 [14:22:11]action value=close_receipt [14:22:11]process_action close_receipt [14:22:11]cmd_close_receipt [14:22:11]MH_GetDate [14:22:11]Write to MH i2c: F0 00 00 29 22 3A [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: F0 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: F0 09 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: F0 09 00 29 22 00 94 4C 1E 67 47 1B 1E 67 8F [14:22:11]GetLastDocTimeStamp 1730038872 [14:22:11]current date 1730038932 [14:22:11]FM_GetShiftState [14:22:11]SAM_PROTO_GetShiftState [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 13 01 00 [14:22:11]Write to MH i2c: E2 08 00 2A 22 80 13 01 00 00 00 00 00 C9 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 0E 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 0E 00 2A 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CB [14:22:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:22:11]wFMCommunicate OK [14:22:11]SAM_PROTO_GetShiftState done [14:22:11]FM_GetShiftState done [14:22:11]opened in 1729987312 [14:22:11]opened+sec_in_day 1730073712 [14:22:11]quantity*price = 250054 [14:22:11]sum+1 = 250055 [14:22:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.54 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.54 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 291 27.10.2024 14:22 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201999 ФПД: 201103894677968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142212&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201999&fm=201103894677968&tin=02508201610067®Number=0000000000091777&sum=250054 [14:22:12]StoreToDocumentArchive [14:22:12]shift 544 fd 201999 [14:22:12]save to /storage/0544/doc_00201999 [14:22:12]save last doc name /storage/0544/doc_00201999 to /storage/kkm_last_doc_name [14:22:12]save OK [14:22:12]Clear old archive folders... [14:22:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:12]tlvbuf is 01221FE0 [14:22:12]SAM_PROTO_ClearQueue [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 09 00 00 [14:22:12]Write to MH i2c: E2 08 00 37 22 80 09 00 00 00 00 00 00 CB [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 37 22 00 90 00 CD [14:22:12]RAPDU: 90 00 [14:22:12]wFMCommunicate OK [14:22:12]SAM_PROTO_ClearQueue done [14:22:12]KKMCreateOFDPacket [14:22:12]OFDProtocolAddRootSTLVToBuf [14:22:12]FM_MakeSignedData [14:22:12]FM_MakeSignedData [14:22:12]SAM_PROTO_SignData [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 0D 01 02 [14:22:12]Write to MH i2c: E2 08 00 38 22 80 0D 01 02 00 00 00 00 D3 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 38 22 00 90 00 CE [14:22:12]RAPDU: 90 00 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=255 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 94 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 15 03 00 35 04 06 00 B6 [14:22:12]Write to MH i2c: E2 02 01 39 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 94 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 15 03 00 35 04 06 00 B6 00 00 47 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 39 22 00 90 00 CF [14:22:12]RAPDU: 90 00 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=10 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 0D 02 02 05 E7 26 34 89 D0 [14:22:12]Write to MH i2c: E2 0D 00 3A 22 80 0D 02 02 05 00 E7 26 34 89 D0 00 00 7A [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 03 00 3A 22 00 90 00 D0 [14:22:12]RAPDU: 90 00 [14:22:12]wFMCommunicate OK [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 0D 03 02 [14:22:12]Write to MH i2c: E2 08 00 3B 22 80 0D 03 02 00 00 00 00 D8 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 0B 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 0B 00 3B 22 00 17 66 8B 63 81 E3 43 23 90 00 0E [14:22:12]RAPDU: 17 66 8B 63 81 E3 43 23 90 00 [14:22:12]wFMCommunicate OK [14:22:12]SAM_PROTO_SignData done [14:22:12]FM_MakeSignedData done [14:22:12]CreateOFDProtocolMessage [14:22:12]wFMCommunicate request_size=4 [14:22:12]MH_SAM_APDU [14:22:12]CAPDU: 80 11 00 00 [14:22:12]Write to MH i2c: E2 08 00 3C 22 80 11 00 00 00 00 00 00 D8 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:12]Read from MH i2c: E2 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 17 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: E2 17 00 3C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2D [14:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:12]wFMCommunicate OK [14:22:12]CreateOFDProtocolMessage done [14:22:12]OFDSenderStorePacket 201999 [14:22:12]StoreOFDPacket docnum=201999 [14:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1F B3 07 01 7E 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 94 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 15 03 00 35 04 06 00 B6 E7 26 34 89 D0 17 66 8B 63 81 E3 43 23 [14:22:12]CheckFolder [14:22:12]dirname=/storage/ofd_packets [14:22:12]CheckFolder done [14:22:12]ProducePacketName [14:22:12]name=ofd_packets/00201999 [14:22:12]NVStorageSaveData ofd_packets/00201999 [14:22:12]File name is /storage/ofd_packets/00201999 [14:22:12]Write 301 bytes [14:22:12]NVStorageSaveData done [14:22:12]OFDSenderStorePacket done [14:22:12]KKMCreateOFDPacket done [14:22:12]NVStorageSaveData kkm_last_timestamp [14:22:12]File name is /storage/kkm_last_timestamp [14:22:12]Write 4 bytes [14:22:12]NVStorageSaveData done [14:22:12]ExternCall_PrintAddStr [14:22:12]wPrintStart [14:22:12]Write to MH i2c: 01 00 00 3D 22 5F [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 07 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 07 00 3D 22 00 00 00 00 00 FF 0F 74 [14:22:12]RasterBufferAndPrint [14:22:12]line Счет N : (1)449764 [14:22:12]line ИНН: 02508201610067 [14:22:12]line Контрольно-Кассовый Чек [14:22:12]line ПРОДАЖА [14:22:12]line ТРК (МРК, ГНК) : 61 [14:22:12]line Товар: 2710124500 [14:22:12]line Аи-95-К-3 [14:22:12]line 33.700 * 74.20 [14:22:12]line = 2500.54 [14:22:12]line НДС 12% НСП 1% [14:22:12]line > о реализуемом товаре [14:22:12]line ИТОГО: 2500.54 [14:22:12]line НСП 1% : 22.13 [14:22:12]line НДС 12% : 265.54 [14:22:12]line Наличными: 0.00 [14:22:12]line Безнал.: 2500.54 [14:22:12]line Место: АЗС № 171 "Партнер Нефть" [14:22:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:22:12]line СНО: Общий режим [14:22:12]line Чек 291 27.10.2024 14:22 [14:22:12]line Смена: 544 ФФД: 1.0 [14:22:12]line ЗНМ: 0300000109 [14:22:12]line РНМ: 0000000000091777 [14:22:12]line Версия ККМ: 001 [14:22:12]line Платежная система: Mbank [14:22:12]line ФМ: 0000000000871756 [14:22:12]line ФД: 201999 [14:22:12]line ФПД: 201103894677968 [14:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142212&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201999&fm=201103894677968&tin=02508201610067®Number=0000000000091777&sum=250054 [14:22:13]OFD Sender: Processing packet 201999 [packets to send 112, broken 111] [14:22:13]ProducePacketName [14:22:13]name=ofd_packets/00201999 [14:22:13]OFD Sender: To server: pG, [14:22:13]CommunicateWithHost lk.salyk.kg:30040 [14:22:13]ConnectInit lk.salyk.kg [14:22:13]written 0, free lines is 4095 [14:22:13]Connected sock=10 [14:22:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1F B3 07 01 7E 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 94 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 15 03 00 35 04 06 00 B6 E7 26 34 89 D0 17 66 8B 63 81 E3 43 23 [14:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AE 25 47 00 35 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 15 03 00 F4 03 04 00 4D F8 1D 67 B6 04 01 00 00 61 07 7E FE CE AB 4E 0D [14:22:13]CommunicateWithHost err = 0 [14:22:13]CheckOFDResponse [14:22:13]1017 (14) - 77093643461234 [14:22:13]1041 (16) - 0000000000871756 [14:22:13]1040 (4) - 201999 [14:22:13]1012 (4) - 27.10.2024 08:22 [14:22:13]1206 (1) - 0 [14:22:13]OFD Sender: Remove packet 201999 [14:22:13]ProducePacketName [14:22:13]name=ofd_packets/00201999 [14:22:13]NVStorageDeleteData [14:22:13]Write to MH i2c: 01 00 00 66 22 88 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 07 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 07 00 66 22 00 00 00 00 00 B7 0C 52 [14:22:13]RasterBufferAndPrint [14:22:13]line [14:22:13]line [14:22:13]line [14:22:13]line [14:22:13]line [14:22:13]written 0, free lines is 3258 [14:22:13]MH_Cut [14:22:13]Write to MH i2c: D1 01 00 6D 22 01 61 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: D1 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: D1 01 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: D1 01 00 6D 22 00 60 [14:22:13]Write to MH i2c: 01 00 00 6E 22 90 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]OFD Sender: No OFD packet to send [14:22:14]*** Cut start [14:22:14]*** Purtial cut [14:22:14]*** Stage 1: CUTSNS_PIN = 1 [14:22:14]Read from MH i2c: 01 [14:22:14]MH_I2C_Read... [14:22:14]*** Stop cut motor [14:22:14]*** Cut end [14:22:14]Read from MH i2c: 01 07 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: 01 07 00 6E 22 00 00 00 00 00 FF 0F A5 [14:22:14]process_action close_receipt done [14:22:14]requested_data is exist [14:22:14]produce_requested_data [14:22:14]requested_item fm.sn is exist - process it [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 11 00 00 [14:22:14]Write to MH i2c: E2 08 00 6F 22 80 11 00 00 00 00 00 00 0B [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 17 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 17 00 6F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 60 [14:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:14]wFMCommunicate OK [14:22:14]requested_item fd.num is exist - process it [14:22:14]SAM_PROTO_GetFieldsCounters [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 13 00 00 [14:22:14]Write to MH i2c: E2 08 00 70 22 80 13 00 00 00 00 00 00 0E [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 62 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 62 00 70 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [14:22:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:14]wFMCommunicate OK [14:22:14]SAM_PROTO_GetFieldsCounters done [14:22:14]requested_item shift.num is exist - process it [14:22:14]requested_item shift.opened is exist - process it [14:22:14]req_shift_opened [14:22:14]FM_GetShiftState [14:22:14]SAM_PROTO_GetShiftState [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 13 01 00 [14:22:14]Write to MH i2c: E2 08 00 71 22 80 13 01 00 00 00 00 00 10 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0E 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0E 00 71 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 12 [14:22:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:22:14]wFMCommunicate OK [14:22:14]SAM_PROTO_GetShiftState done [14:22:14]FM_GetShiftState done [14:22:14]req_shift_opened done [14:22:14]requested_item shift.open_date is exist - process it [14:22:14]req_shift_open_date [14:22:14]req_shift_open_date done [14:22:14]produce_requested_data done [14:22:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201999,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:22:14]process_action_free close_receipt [14:22:14]json_value_free [14:22:14]json_value_free done [14:22:14]process_json_proto returns [14:22:14]Send response to host [14:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201999,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:22:14]free response buf [14:22:14]execute_script done [14:22:14]execute_script returns [14:22:14]free content buf [14:22:14]Sock 8.Close socket [14:22:14]Sock 8.Thread stoped [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:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:10]accept exits with 9 [14:23:10]New connection [14:23:10]New thread 3066498404 created [14:23:10]Thread 3066641764 joined [14:23:10]Waiting for new connection... [14:23:10] Sock 9.Parse request [14:23:10]Sock 9.Check first char [14:23:10]Sock 9.First char is OK [14:23:10]request: POST /json_proto HTTP/1.0 [14:23:10]Method: POST [14:23:10]URL: /json_proto [14:23:10]Method is POST - this is cgi request [14:23:10]url: /json_proto [14:23:10]query_string will be loaded in cgi processing [14:23:10]execute_cgi json_proto POST (null) [14:23:10]execute_cgi path=json_proto method=POST [14:23:10]POST find Content-Length [14:23:10]Host: 172.17.63.195:8080 [14:23:10]Content-Length: 769 [14:23:10]Content-Type: application/json [14:23:10] [14:23:10]POST finish read [14:23:10]Found Content-Length = 769 [14:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [14:23:10]execute_script... [14:23:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [14:23:10]POST & json_proto [14:23:10]process_json_proto [14:23:10]json parsed OK: [14:23:10]protocol is kg_v1.0 [14:23:10]action value=close_receipt [14:23:10]process_action close_receipt [14:23:10]cmd_close_receipt [14:23:10]MH_GetDate [14:23:10]Write to MH i2c: F0 00 00 72 22 83 [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: F0 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: F0 09 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: F0 09 00 72 22 00 CF 4C 1E 67 47 1B 1E 67 13 [14:23:10]GetLastDocTimeStamp 1730038932 [14:23:10]current date 1730038991 [14:23:10]FM_GetShiftState [14:23:10]SAM_PROTO_GetShiftState [14:23:10]wFMCommunicate request_size=4 [14:23:10]MH_SAM_APDU [14:23:10]CAPDU: 80 13 01 00 [14:23:10]Write to MH i2c: E2 08 00 73 22 80 13 01 00 00 00 00 00 12 [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:10]Read from MH i2c: E2 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 0E 00 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 0E 00 73 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 14 [14:23:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:23:10]wFMCommunicate OK [14:23:10]SAM_PROTO_GetShiftState done [14:23:10]FM_GetShiftState done [14:23:10]opened in 1729987312 [14:23:10]opened+sec_in_day 1730073712 [14:23:10]quantity*price = 100021 [14:23:10]sum+1 = 100023 [14:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 292 27.10.2024 14:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202000 ФПД: 260764313676755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142311&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202000&fm=260764313676755&tin=02508201610067®Number=0000000000091777&sum=100022 [14:23:11]StoreToDocumentArchive [14:23:11]shift 544 fd 202000 [14:23:11]save to /storage/0544/doc_00202000 [14:23:11]save last doc name /storage/0544/doc_00202000 to /storage/kkm_last_doc_name [14:23:11]save OK [14:23:11]Clear old archive folders... [14:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:11]tlvbuf is 0123AFA0 [14:23:11]SAM_PROTO_ClearQueue [14:23:11]wFMCommunicate request_size=4 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 09 00 00 [14:23:11]Write to MH i2c: E2 08 00 80 22 80 09 00 00 00 00 00 00 14 [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 80 22 00 90 00 16 [14:23:11]RAPDU: 90 00 [14:23:11]wFMCommunicate OK [14:23:11]SAM_PROTO_ClearQueue done [14:23:11]KKMCreateOFDPacket [14:23:11]OFDProtocolAddRootSTLVToBuf [14:23:11]FM_MakeSignedData [14:23:11]FM_MakeSignedData [14:23:11]SAM_PROTO_SignData [14:23:11]wFMCommunicate request_size=4 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 0D 01 02 [14:23:11]Write to MH i2c: E2 08 00 81 22 80 0D 01 02 00 00 00 00 1C [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 81 22 00 90 00 17 [14:23:11]RAPDU: 90 00 [14:23:11]wFMCommunicate OK [14:23:11]wFMCommunicate request_size=255 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 24 01 00 00 F4 03 04 00 CF 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 15 03 00 35 04 06 00 ED [14:23:11]Write to MH i2c: E2 02 01 82 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 24 01 00 00 F4 03 04 00 CF 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 15 03 00 35 04 06 00 ED 00 00 F6 [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:12]Read from MH i2c: E2 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 03 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 03 00 82 22 00 90 00 18 [14:23:12]RAPDU: 90 00 [14:23:12]wFMCommunicate OK [14:23:12]wFMCommunicate request_size=10 [14:23:12]MH_SAM_APDU [14:23:12]CAPDU: 80 0D 02 02 05 29 EC 49 6B D3 [14:23:12]Write to MH i2c: E2 0D 00 83 22 80 0D 02 02 05 00 29 EC 49 6B D3 00 00 C5 [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:12]Read from MH i2c: E2 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 03 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 03 00 83 22 00 90 00 19 [14:23:12]RAPDU: 90 00 [14:23:12]wFMCommunicate OK [14:23:12]wFMCommunicate request_size=4 [14:23:12]MH_SAM_APDU [14:23:12]CAPDU: 80 0D 03 02 [14:23:12]Write to MH i2c: E2 08 00 84 22 80 0D 03 02 00 00 00 00 21 [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:12]Read from MH i2c: E2 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 0B 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 0B 00 84 22 00 CD B0 01 53 CC 4F ED 8B 90 00 86 [14:23:12]RAPDU: CD B0 01 53 CC 4F ED 8B 90 00 [14:23:12]wFMCommunicate OK [14:23:12]SAM_PROTO_SignData done [14:23:12]FM_MakeSignedData done [14:23:12]CreateOFDProtocolMessage [14:23:12]wFMCommunicate request_size=4 [14:23:12]MH_SAM_APDU [14:23:12]CAPDU: 80 11 00 00 [14:23:12]Write to MH i2c: E2 08 00 85 22 80 11 00 00 00 00 00 00 21 [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:12]Read from MH i2c: E2 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 17 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: E2 17 00 85 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [14:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:23:12]wFMCommunicate OK [14:23:12]CreateOFDProtocolMessage done [14:23:12]OFDSenderStorePacket 202000 [14:23:12]StoreOFDPacket docnum=202000 [14:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 46 2F 07 01 30 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 24 01 00 00 F4 03 04 00 CF 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 15 03 00 35 04 06 00 ED 29 EC 49 6B D3 CD B0 01 53 CC 4F ED 8B [14:23:12]CheckFolder [14:23:12]dirname=/storage/ofd_packets [14:23:12]CheckFolder done [14:23:12]ProducePacketName [14:23:12]name=ofd_packets/00202000 [14:23:12]NVStorageSaveData ofd_packets/00202000 [14:23:12]File name is /storage/ofd_packets/00202000 [14:23:12]Write 301 bytes [14:23:12]NVStorageSaveData done [14:23:12]OFDSenderStorePacket done [14:23:12]KKMCreateOFDPacket done [14:23:12]NVStorageSaveData kkm_last_timestamp [14:23:12]File name is /storage/kkm_last_timestamp [14:23:12]Write 4 bytes [14:23:12]NVStorageSaveData done [14:23:12]ExternCall_PrintAddStr [14:23:12]wPrintStart [14:23:12]Write to MH i2c: 01 00 00 86 22 A8 [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: 01 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: 01 07 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: 01 07 00 86 22 00 00 00 00 00 FF 0F BD [14:23:12]RasterBufferAndPrint [14:23:12]line Счет N : (1)449765 [14:23:12]line ИНН: 02508201610067 [14:23:12]line Контрольно-Кассовый Чек [14:23:12]line ПРОДАЖА [14:23:12]line ТРК (МРК, ГНК) : 51 [14:23:12]line Товар: 2710124500 [14:23:12]line Аи-95-К-3 [14:23:12]line 13.480 * 74.20 [14:23:12]line = 1000.22 [14:23:12]line НДС 12% НСП 1% [14:23:12]line > о реализуемом товаре [14:23:12]line ИТОГО: 1000.22 [14:23:12]line НСП 1% : 8.85 [14:23:12]line НДС 12% : 106.22 [14:23:12]line Наличными: 0.00 [14:23:12]line Безнал.: 1000.22 [14:23:12]line Место: АЗС № 171 "Партнер Нефть" [14:23:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:23:12]line СНО: Общий режим [14:23:12]line Чек 292 27.10.2024 14:23 [14:23:12]line Смена: 544 ФФД: 1.0 [14:23:12]line ЗНМ: 0300000109 [14:23:12]line РНМ: 0000000000091777 [14:23:12]line Версия ККМ: 001 [14:23:12]line Платежная система: Mbank [14:23:12]line ФМ: 0000000000871756 [14:23:12]line ФД: 202000 [14:23:12]line ФПД: 260764313676755 [14:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142311&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202000&fm=260764313676755&tin=02508201610067®Number=0000000000091777&sum=100022 [14:23:12]written 0, free lines is 4095 [14:23:12]OFD Sender: Processing packet 202000 [packets to send 112, broken 111] [14:23:12]ProducePacketName [14:23:12]name=ofd_packets/00202000 [14:23:12]OFD Sender: To server: pG, [14:23:12]CommunicateWithHost lk.salyk.kg:30040 [14:23:12]ConnectInit lk.salyk.kg [14:23:12]Connected sock=10 [14:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 46 2F 07 01 30 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 24 01 00 00 F4 03 04 00 CF 4C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 15 03 00 35 04 06 00 ED 29 EC 49 6B D3 CD B0 01 53 CC 4F ED 8B [14:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 73 2C 47 00 29 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 15 03 00 F4 03 04 00 89 F8 1D 67 B6 04 01 00 00 2D AC 9F 65 E3 81 AD F5 [14:23:13]CommunicateWithHost err = 0 [14:23:13]CheckOFDResponse [14:23:13]1017 (14) - 77093643461234 [14:23:13]1041 (16) - 0000000000871756 [14:23:13]1040 (4) - 202000 [14:23:13]1012 (4) - 27.10.2024 08:23 [14:23:13]1206 (1) - 0 [14:23:13]OFD Sender: Remove packet 202000 [14:23:13]ProducePacketName [14:23:13]name=ofd_packets/00202000 [14:23:13]NVStorageDeleteData [14:23:13]Write to MH i2c: 01 00 00 AF 22 D1 [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: 01 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: 01 07 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: 01 07 00 AF 22 00 00 00 00 00 B7 0C 9B [14:23:13]RasterBufferAndPrint [14:23:13]line [14:23:13]line [14:23:13]line [14:23:13]line [14:23:13]line [14:23:13]written 0, free lines is 3258 [14:23:13]MH_Cut [14:23:13]Write to MH i2c: D1 01 00 B6 22 01 AA [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: D1 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: D1 01 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: D1 01 00 B6 22 00 A9 [14:23:13]Write to MH i2c: 01 00 00 B7 22 D9 [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]OFD Sender: No OFD packet to send [14:23:14]*** Cut start [14:23:14]*** Purtial cut [14:23:14]*** Stage 1: CUTSNS_PIN = 1 [14:23:14]Read from MH i2c: 01 [14:23:14]MH_I2C_Read... [14:23:14]*** Stop cut motor [14:23:14]*** Cut end [14:23:14]Read from MH i2c: 01 07 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: 01 07 00 B7 22 00 00 00 00 00 FF 0F EE [14:23:14]process_action close_receipt done [14:23:14]requested_data is exist [14:23:14]produce_requested_data [14:23:14]requested_item fm.sn is exist - process it [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 11 00 00 [14:23:14]Write to MH i2c: E2 08 00 B8 22 80 11 00 00 00 00 00 00 54 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 17 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 17 00 B8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [14:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:23:14]wFMCommunicate OK [14:23:14]requested_item fd.num is exist - process it [14:23:14]SAM_PROTO_GetFieldsCounters [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 13 00 00 [14:23:14]Write to MH i2c: E2 08 00 B9 22 80 13 00 00 00 00 00 00 57 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 62 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 62 00 B9 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 10 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [14:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 10 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:14]wFMCommunicate OK [14:23:14]SAM_PROTO_GetFieldsCounters done [14:23:14]requested_item shift.num is exist - process it [14:23:14]requested_item shift.opened is exist - process it [14:23:14]req_shift_opened [14:23:14]FM_GetShiftState [14:23:14]SAM_PROTO_GetShiftState [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 13 01 00 [14:23:14]Write to MH i2c: E2 08 00 BA 22 80 13 01 00 00 00 00 00 59 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 0E 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 0E 00 BA 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5B [14:23:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:23:14]wFMCommunicate OK [14:23:14]SAM_PROTO_GetShiftState done [14:23:14]FM_GetShiftState done [14:23:14]req_shift_opened done [14:23:14]requested_item shift.open_date is exist - process it [14:23:14]req_shift_open_date [14:23:14]req_shift_open_date done [14:23:14]produce_requested_data done [14:23:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202000,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:23:14]process_action_free close_receipt [14:23:14]json_value_free [14:23:14]json_value_free done [14:23:14]process_json_proto returns [14:23:14]Send response to host [14:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202000,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:23:14]free response buf [14:23:14]execute_script done [14:23:14]execute_script returns [14:23:14]free content buf [14:23:14]Sock 9.Close socket [14:23:14]Sock 9.Thread stoped [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [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:00]accept exits with 8 [14:24:00]New connection [14:24:00]New thread 3066641764 created [14:24:00]Thread 3066498404 joined [14:24:00]Waiting for new connection... [14:24:00] Sock 8.Parse request [14:24:00]Sock 8.Check first char [14:24:00]Sock 8.First char is OK [14:24:00]request: POST /json_proto HTTP/1.0 [14:24:00]Method: POST [14:24:00]URL: /json_proto [14:24:00]Method is POST - this is cgi request [14:24:00]url: /json_proto [14:24:00]query_string will be loaded in cgi processing [14:24:00]execute_cgi json_proto POST (null) [14:24:00]execute_cgi path=json_proto method=POST [14:24:00]POST find Content-Length [14:24:00]Host: 172.17.63.195:8080 [14:24:00]Content-Length: 682 [14:24:00]Content-Type: application/json [14:24:00] [14:24:00]POST finish read [14:24:00]Found Content-Length = 682 [14:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:00]execute_script... [14:24:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:00]POST & json_proto [14:24:00]process_json_proto [14:24:00]json parsed OK: [14:24:00]protocol is kg_v1.0 [14:24:00]action value=close_receipt [14:24:00]process_action close_receipt [14:24:00]cmd_close_receipt [14:24:00]MH_GetDate [14:24:00]Write to MH i2c: F0 00 00 BB 22 CC [14:24:00]Write i2c OK [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: F0 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: F0 09 00 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: F0 09 00 BB 22 00 01 4D 1E 67 47 1B 1E 67 8F [14:24:00]GetLastDocTimeStamp 1730038991 [14:24:00]current date 1730039041 [14:24:00]FM_GetShiftState [14:24:00]SAM_PROTO_GetShiftState [14:24:00]wFMCommunicate request_size=4 [14:24:00]MH_SAM_APDU [14:24:00]CAPDU: 80 13 01 00 [14:24:00]Write to MH i2c: E2 08 00 BC 22 80 13 01 00 00 00 00 00 5B [14:24:00]Write i2c OK [14:24:00]MH_I2C_Read... [14:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:00]Read from MH i2c: E2 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 0E 00 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 0E 00 BC 22 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5D [14:24:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:24:00]wFMCommunicate OK [14:24:00]SAM_PROTO_GetShiftState done [14:24:00]FM_GetShiftState done [14:24:00]opened in 1729987312 [14:24:00]opened+sec_in_day 1730073712 [14:24:00]quantity*price = 150032 [14:24:00]sum+1 = 150033 [14:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 293 27.10.2024 14:24 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202001 ФПД: 162440257485115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142401&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202001&fm=162440257485115&tin=02508201610067®Number=0000000000091777&sum=150000 [14:24:01]StoreToDocumentArchive [14:24:01]shift 544 fd 202001 [14:24:01]save to /storage/0544/doc_00202001 [14:24:01]save last doc name /storage/0544/doc_00202001 to /storage/kkm_last_doc_name [14:24:01]save OK [14:24:01]Clear old archive folders... [14:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:01]tlvbuf is B6D5C010 [14:24:01]SAM_PROTO_ClearQueue [14:24:01]wFMCommunicate request_size=4 [14:24:01]MH_SAM_APDU [14:24:01]CAPDU: 80 09 00 00 [14:24:01]Write to MH i2c: E2 08 00 C9 22 80 09 00 00 00 00 00 00 5D [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:01]Read from MH i2c: E2 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 03 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 03 00 C9 22 00 90 00 5F [14:24:01]RAPDU: 90 00 [14:24:01]wFMCommunicate OK [14:24:01]SAM_PROTO_ClearQueue done [14:24:01]KKMCreateOFDPacket [14:24:01]OFDProtocolAddRootSTLVToBuf [14:24:01]FM_MakeSignedData [14:24:01]FM_MakeSignedData [14:24:01]SAM_PROTO_SignData [14:24:01]wFMCommunicate request_size=4 [14:24:01]MH_SAM_APDU [14:24:01]CAPDU: 80 0D 01 02 [14:24:01]Write to MH i2c: E2 08 00 CA 22 80 0D 01 02 00 00 00 00 65 [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:01]Read from MH i2c: E2 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 03 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 03 00 CA 22 00 90 00 60 [14:24:01]RAPDU: 90 00 [14:24:01]wFMCommunicate OK [14:24:01]wFMCommunicate request_size=255 [14:24:01]MH_SAM_APDU [14:24:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 01 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 15 03 00 35 04 06 00 93 [14:24:01]Write to MH i2c: E2 02 01 CB 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 01 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 15 03 00 35 04 06 00 93 00 00 34 [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 CB 22 00 90 00 61 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=10 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 02 02 05 BD 11 D8 39 3B [14:24:02]Write to MH i2c: E2 0D 00 CC 22 80 0D 02 02 05 00 BD 11 D8 39 3B 00 00 8C [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 03 02 [14:24:02]Write to MH i2c: E2 08 00 CD 22 80 0D 03 02 00 00 00 00 6A [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 0B 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 0B 00 CD 22 00 78 30 68 93 CB 2E 63 99 90 00 03 [14:24:02]RAPDU: 78 30 68 93 CB 2E 63 99 90 00 [14:24:02]wFMCommunicate OK [14:24:02]SAM_PROTO_SignData done [14:24:02]FM_MakeSignedData done [14:24:02]CreateOFDProtocolMessage [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 11 00 00 [14:24:02]Write to MH i2c: E2 08 00 CE 22 80 11 00 00 00 00 00 00 6A [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 17 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 17 00 CE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [14:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:24:02]wFMCommunicate OK [14:24:02]CreateOFDProtocolMessage done [14:24:02]OFDSenderStorePacket 202001 [14:24:02]StoreOFDPacket docnum=202001 [14:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F8 86 07 01 4D ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 01 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 15 03 00 35 04 06 00 93 BD 11 D8 39 3B 78 30 68 93 CB 2E 63 99 [14:24:02]CheckFolder [14:24:02]dirname=/storage/ofd_packets [14:24:02]CheckFolder done [14:24:02]ProducePacketName [14:24:02]name=ofd_packets/00202001 [14:24:02]NVStorageSaveData ofd_packets/00202001 [14:24:02]File name is /storage/ofd_packets/00202001 [14:24:02]Write 301 bytes [14:24:02]NVStorageSaveData done [14:24:02]OFDSenderStorePacket done [14:24:02]KKMCreateOFDPacket done [14:24:02]NVStorageSaveData kkm_last_timestamp [14:24:02]File name is /storage/kkm_last_timestamp [14:24:02]Write 4 bytes [14:24:02]NVStorageSaveData done [14:24:02]ExternCall_PrintAddStr [14:24:02]wPrintStart [14:24:02]Write to MH i2c: 01 00 00 CF 22 F1 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 07 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 07 00 CF 22 00 00 00 00 00 FF 0F 06 [14:24:02]RasterBufferAndPrint [14:24:02]line Счет N : (1)449766 [14:24:02]line ИНН: 02508201610067 [14:24:02]line Контрольно-Кассовый Чек [14:24:02]line ПРОДАЖА [14:24:02]line ТРК (МРК, ГНК) : 51 [14:24:02]line Товар: 2710124500 [14:24:02]line Аи-95-К-3 [14:24:02]line 20.220 * 74.20 [14:24:02]line = 1500.32 [14:24:02]line НДС 12% НСП 1% [14:24:02]line > о реализуемом товаре [14:24:02]line ОКРУГЛЕНИЕ: -0.32 [14:24:02]line ИТОГО: 1500.00 [14:24:02]line Внесено: 1500.00 [14:24:02]line СДАЧА: 0.00 [14:24:02]line НСП 1% : 13.28 [14:24:02]line НДС 12% : 159.33 [14:24:02]line Наличными: 1500.00 [14:24:02]line Безнал.: 0.00 [14:24:02]line Место: АЗС № 171 "Партнер Нефть" [14:24:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:24:02]line СНО: Общий режим [14:24:02]line Чек 293 27.10.2024 14:24 [14:24:02]line Смена: 544 ФФД: 1.0 [14:24:02]line ЗНМ: 0300000109 [14:24:02]line РНМ: 0000000000091777 [14:24:02]line Версия ККМ: 001 [14:24:02]line ФМ: 0000000000871756 [14:24:02]line ФД: 202001 [14:24:02]line ФПД: 162440257485115 [14:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142401&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202001&fm=162440257485115&tin=02508201610067®Number=0000000000091777&sum=150000 [14:24:02]OFD Sender: Processing packet 202001 [packets to send 112, broken 111] [14:24:02]ProducePacketName [14:24:02]name=ofd_packets/00202001 [14:24:02]OFD Sender: To server: pG, [14:24:02]CommunicateWithHost lk.salyk.kg:30040 [14:24:02]ConnectInit lk.salyk.kg [14:24:02]written 0, free lines is 4095 [14:24:02]Connected sock=10 [14:24:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F8 86 07 01 4D ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 01 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 15 03 00 35 04 06 00 93 BD 11 D8 39 3B 78 30 68 93 CB 2E 63 99 [14:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4C A1 47 00 4F C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 15 03 00 F4 03 04 00 BB F8 1D 67 B6 04 01 00 00 7B 45 72 D8 ED 46 EA BD [14:24:03]CommunicateWithHost err = 0 [14:24:03]CheckOFDResponse [14:24:03]1017 (14) - 77093643461234 [14:24:03]1041 (16) - 0000000000871756 [14:24:03]1040 (4) - 202001 [14:24:03]1012 (4) - 27.10.2024 08:24 [14:24:03]1206 (1) - 0 [14:24:03]OFD Sender: Remove packet 202001 [14:24:03]ProducePacketName [14:24:03]name=ofd_packets/00202001 [14:24:03]NVStorageDeleteData [14:24:03]Write to MH i2c: 01 00 00 FA 22 1C [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 FA 22 00 00 00 00 00 91 0C C0 [14:24:03]RasterBufferAndPrint [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]written 0, free lines is 3221 [14:24:03]MH_Cut [14:24:03]Write to MH i2c: D1 01 00 01 23 01 F6 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 01 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 01 00 01 23 00 F5 [14:24:03]Write to MH i2c: 01 00 00 02 23 25 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]OFD Sender: No OFD packet to send [14:24:04]*** Cut start [14:24:04]*** Purtial cut [14:24:04]*** Stage 1: CUTSNS_PIN = 1 [14:24:04]Read from MH i2c: 01 [14:24:04]MH_I2C_Read... [14:24:04]*** Stop cut motor [14:24:04]*** Cut end [14:24:04]Read from MH i2c: 01 07 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 07 00 02 23 00 00 00 00 00 FF 0F 3A [14:24:04]process_action close_receipt done [14:24:04]requested_data is exist [14:24:04]produce_requested_data [14:24:04]requested_item fm.sn is exist - process it [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 11 00 00 [14:24:04]Write to MH i2c: E2 08 00 03 23 80 11 00 00 00 00 00 00 A0 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 17 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 17 00 03 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F5 [14:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:24:04]wFMCommunicate OK [14:24:04]requested_item fd.num is exist - process it [14:24:04]SAM_PROTO_GetFieldsCounters [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 13 00 00 [14:24:04]Write to MH i2c: E2 08 00 04 23 80 13 00 00 00 00 00 00 A3 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 62 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 62 00 04 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 11 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [14:24:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 11 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:04]wFMCommunicate OK [14:24:04]SAM_PROTO_GetFieldsCounters done [14:24:04]requested_item shift.num is exist - process it [14:24:04]requested_item shift.opened is exist - process it [14:24:04]req_shift_opened [14:24:04]FM_GetShiftState [14:24:04]SAM_PROTO_GetShiftState [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 13 01 00 [14:24:04]Write to MH i2c: E2 08 00 05 23 80 13 01 00 00 00 00 00 A5 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 0E 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 0E 00 05 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A7 [14:24:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:24:04]wFMCommunicate OK [14:24:04]SAM_PROTO_GetShiftState done [14:24:04]FM_GetShiftState done [14:24:04]req_shift_opened done [14:24:04]requested_item shift.open_date is exist - process it [14:24:04]req_shift_open_date [14:24:04]req_shift_open_date done [14:24:04]produce_requested_data done [14:24:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202001,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:24:04]process_action_free close_receipt [14:24:04]json_value_free [14:24:04]json_value_free done [14:24:04]process_json_proto returns [14:24:04]Send response to host [14:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202001,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:24:04]free response buf [14:24:04]execute_script done [14:24:04]execute_script returns [14:24:04]free content buf [14:24:04]Sock 8.Close socket [14:24:04]Sock 8.Thread stoped [14:24:08]OFD Sender: No OFD packet to send [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:55]accept exits with 9 [14:24:55]New connection [14:24:55]New thread 3066498404 created [14:24:55]Thread 3066641764 joined [14:24:55]Waiting for new connection... [14:24:55] Sock 9.Parse request [14:24:55]Sock 9.Check first char [14:24:55]Sock 9.First char is OK [14:24:55]request: POST /json_proto HTTP/1.0 [14:24:55]Method: POST [14:24:55]URL: /json_proto [14:24:55]Method is POST - this is cgi request [14:24:55]url: /json_proto [14:24:55]query_string will be loaded in cgi processing [14:24:55]execute_cgi json_proto POST (null) [14:24:55]execute_cgi path=json_proto method=POST [14:24:55]POST find Content-Length [14:24:55]Host: 172.17.63.195:8080 [14:24:55]Content-Length: 674 [14:24:55]Content-Type: application/json [14:24:55] [14:24:55]POST finish read [14:24:55]Found Content-Length = 674 [14:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:55]execute_script... [14:24:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:55]POST & json_proto [14:24:55]process_json_proto [14:24:55]json parsed OK: [14:24:55]protocol is kg_v1.0 [14:24:55]action value=close_receipt [14:24:55]process_action close_receipt [14:24:55]cmd_close_receipt [14:24:55]MH_GetDate [14:24:55]Write to MH i2c: F0 00 00 06 23 18 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: F0 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: F0 09 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: F0 09 00 06 23 00 38 4D 1E 67 47 1B 1E 67 12 [14:24:55]GetLastDocTimeStamp 1730039041 [14:24:55]current date 1730039096 [14:24:55]FM_GetShiftState [14:24:55]SAM_PROTO_GetShiftState [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 13 01 00 [14:24:55]Write to MH i2c: E2 08 00 07 23 80 13 01 00 00 00 00 00 A7 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 0E 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 0E 00 07 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A9 [14:24:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:24:55]wFMCommunicate OK [14:24:55]SAM_PROTO_GetShiftState done [14:24:55]FM_GetShiftState done [14:24:55]opened in 1729987312 [14:24:55]opened+sec_in_day 1730073712 [14:24:55]quantity*price = 50063 [14:24:55]sum+1 = 50064 [14:24:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 294 27.10.2024 14:24 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202002 ФПД: 148361956339626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142456&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202002&fm=148361956339626&tin=02508201610067®Number=0000000000091777&sum=50000 [14:24:56]StoreToDocumentArchive [14:24:56]shift 544 fd 202002 [14:24:56]save to /storage/0544/doc_00202002 [14:24:56]save last doc name /storage/0544/doc_00202002 to /storage/kkm_last_doc_name [14:24:56]save OK [14:24:56]Clear old archive folders... [14:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:24:56]tlvbuf is 011DB440 [14:24:56]SAM_PROTO_ClearQueue [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 09 00 00 [14:24:56]Write to MH i2c: E2 08 00 14 23 80 09 00 00 00 00 00 00 A9 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 14 23 00 90 00 AB [14:24:56]RAPDU: 90 00 [14:24:56]wFMCommunicate OK [14:24:56]SAM_PROTO_ClearQueue done [14:24:56]KKMCreateOFDPacket [14:24:56]OFDProtocolAddRootSTLVToBuf [14:24:56]FM_MakeSignedData [14:24:56]FM_MakeSignedData [14:24:56]SAM_PROTO_SignData [14:24:56]wFMCommunicate request_size=4 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 0D 01 02 [14:24:56]Write to MH i2c: E2 08 00 15 23 80 0D 01 02 00 00 00 00 B1 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:56]Read from MH i2c: E2 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: E2 03 00 15 23 00 90 00 AC [14:24:56]RAPDU: 90 00 [14:24:56]wFMCommunicate OK [14:24:56]wFMCommunicate request_size=255 [14:24:56]MH_SAM_APDU [14:24:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 38 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 15 03 00 35 04 06 00 86 EF 35 B4 [14:24:56]Write to MH i2c: E2 02 01 16 23 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 38 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 15 03 00 35 04 06 00 86 EF 35 B4 00 00 9E [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 16 23 00 90 00 AD [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=7 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 02 02 02 AF AA [14:24:57]Write to MH i2c: E2 0A 00 17 23 80 0D 02 02 02 00 AF AA 00 00 11 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 03 00 17 23 00 90 00 AE [14:24:57]RAPDU: 90 00 [14:24:57]wFMCommunicate OK [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 0D 03 02 [14:24:57]Write to MH i2c: E2 08 00 18 23 80 0D 03 02 00 00 00 00 B6 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0B 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0B 00 18 23 00 0B 3F 0E 19 DE 69 CB B0 90 00 EA [14:24:57]RAPDU: 0B 3F 0E 19 DE 69 CB B0 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_SignData done [14:24:57]FM_MakeSignedData done [14:24:57]CreateOFDProtocolMessage [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 11 00 00 [14:24:57]Write to MH i2c: E2 08 00 19 23 80 11 00 00 00 00 00 00 B6 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 17 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 17 00 19 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [14:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:24:57]wFMCommunicate OK [14:24:57]CreateOFDProtocolMessage done [14:24:57]OFDSenderStorePacket 202002 [14:24:57]StoreOFDPacket docnum=202002 [14:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9E C4 04 01 BE E2 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 38 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 15 03 00 35 04 06 00 86 EF 35 B4 AF AA 0B 3F 0E 19 DE 69 CB B0 [14:24:57]CheckFolder [14:24:57]dirname=/storage/ofd_packets [14:24:57]CheckFolder done [14:24:57]ProducePacketName [14:24:57]name=ofd_packets/00202002 [14:24:57]NVStorageSaveData ofd_packets/00202002 [14:24:57]File name is /storage/ofd_packets/00202002 [14:24:57]Write 298 bytes [14:24:57]NVStorageSaveData done [14:24:57]OFDSenderStorePacket done [14:24:57]KKMCreateOFDPacket done [14:24:57]NVStorageSaveData kkm_last_timestamp [14:24:57]File name is /storage/kkm_last_timestamp [14:24:57]Write 4 bytes [14:24:57]NVStorageSaveData done [14:24:57]ExternCall_PrintAddStr [14:24:57]wPrintStart [14:24:57]Write to MH i2c: 01 00 00 1A 23 3D [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 1A 23 00 00 00 00 00 FF 0F 52 [14:24:57]RasterBufferAndPrint [14:24:57]line Счет N : (1)449768 [14:24:57]line ИНН: 02508201610067 [14:24:57]line Контрольно-Кассовый Чек [14:24:57]line ПРОДАЖА [14:24:57]line ТРК (МРК, ГНК) : 21 [14:24:57]line Товар: 2710194210 [14:24:57]line ДТ-К-2 [14:24:57]line 6.570 * 76.20 [14:24:57]line = 500.63 [14:24:57]line НДС 12% НСП 1% [14:24:57]line > о реализуемом товаре [14:24:57]line ОКРУГЛЕНИЕ: -0.63 [14:24:57]line ИТОГО: 500.00 [14:24:57]line Внесено: 500.00 [14:24:57]line СДАЧА: 0.00 [14:24:57]line НСП 1% : 4.43 [14:24:57]line НДС 12% : 53.16 [14:24:57]line Наличными: 500.00 [14:24:57]line Безнал.: 0.00 [14:24:57]line Место: АЗС № 171 "Партнер Нефть" [14:24:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:24:57]line СНО: Общий режим [14:24:57]line Чек 294 27.10.2024 14:24 [14:24:57]line Смена: 544 ФФД: 1.0 [14:24:57]line ЗНМ: 0300000109 [14:24:57]line РНМ: 0000000000091777 [14:24:57]line Версия ККМ: 001 [14:24:57]line ФМ: 0000000000871756 [14:24:57]line ФД: 202002 [14:24:57]line ФПД: 148361956339626 [14:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142456&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202002&fm=148361956339626&tin=02508201610067®Number=0000000000091777&sum=50000 [14:24:57]OFD Sender: Processing packet 202002 [packets to send 112, broken 111] [14:24:57]ProducePacketName [14:24:57]name=ofd_packets/00202002 [14:24:57]OFD Sender: To server: pG, [14:24:57]CommunicateWithHost lk.salyk.kg:30040 [14:24:57]ConnectInit lk.salyk.kg [14:24:57]written 0, free lines is 4095 [14:24:57]Connected sock=10 [14:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9E C4 04 01 BE E2 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 38 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 15 03 00 35 04 06 00 86 EF 35 B4 AF AA 0B 3F 0E 19 DE 69 CB B0 [14:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 49 45 47 00 71 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 15 03 00 F4 03 04 00 F2 F8 1D 67 B6 04 01 00 00 66 B9 27 F3 53 17 1C 2F [14:24:58]CommunicateWithHost err = 0 [14:24:58]CheckOFDResponse [14:24:58]1017 (14) - 77093643461234 [14:24:58]1041 (16) - 0000000000871756 [14:24:58]1040 (4) - 202002 [14:24:58]1012 (4) - 27.10.2024 08:25 [14:24:58]1206 (1) - 0 [14:24:58]OFD Sender: Remove packet 202002 [14:24:58]ProducePacketName [14:24:58]name=ofd_packets/00202002 [14:24:58]NVStorageDeleteData [14:24:58]Write to MH i2c: 01 00 00 45 23 68 [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: 01 07 00 45 23 00 00 00 00 00 87 0C 02 [14:24:58]RasterBufferAndPrint [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]line [14:24:58]written 0, free lines is 3211 [14:24:58]MH_Cut [14:24:58]Write to MH i2c: D1 01 00 4C 23 01 41 [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 01 00 [14:24:58]MH_I2C_Read... [14:24:58]Read from MH i2c: D1 01 00 4C 23 00 40 [14:24:58]Write to MH i2c: 01 00 00 4D 23 70 [14:24:58]Write i2c OK [14:24:58]MH_I2C_Read... [14:24:58]OFD Sender: No OFD packet to send [14:24:59]*** Cut start [14:24:59]*** Purtial cut [14:24:59]*** Stage 1: CUTSNS_PIN = 1 [14:24:59]Read from MH i2c: 01 [14:24:59]MH_I2C_Read... [14:24:59]*** Stop cut motor [14:24:59]*** Cut end [14:24:59]Read from MH i2c: 01 07 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: 01 07 00 4D 23 00 00 00 00 00 FF 0F 85 [14:24:59]process_action close_receipt done [14:24:59]requested_data is exist [14:24:59]produce_requested_data [14:24:59]requested_item fm.sn is exist - process it [14:24:59]wFMCommunicate request_size=4 [14:24:59]MH_SAM_APDU [14:24:59]CAPDU: 80 11 00 00 [14:24:59]Write to MH i2c: E2 08 00 4E 23 80 11 00 00 00 00 00 00 EB [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:59]Read from MH i2c: E2 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 17 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 17 00 4E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 40 [14:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:24:59]wFMCommunicate OK [14:24:59]requested_item fd.num is exist - process it [14:24:59]SAM_PROTO_GetFieldsCounters [14:24:59]wFMCommunicate request_size=4 [14:24:59]MH_SAM_APDU [14:24:59]CAPDU: 80 13 00 00 [14:24:59]Write to MH i2c: E2 08 00 4F 23 80 13 00 00 00 00 00 00 EE [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:59]Read from MH i2c: E2 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 62 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 62 00 4F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 12 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [14:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 12 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:59]wFMCommunicate OK [14:24:59]SAM_PROTO_GetFieldsCounters done [14:24:59]requested_item shift.num is exist - process it [14:24:59]requested_item shift.opened is exist - process it [14:24:59]req_shift_opened [14:24:59]FM_GetShiftState [14:24:59]SAM_PROTO_GetShiftState [14:24:59]wFMCommunicate request_size=4 [14:24:59]MH_SAM_APDU [14:24:59]CAPDU: 80 13 01 00 [14:24:59]Write to MH i2c: E2 08 00 50 23 80 13 01 00 00 00 00 00 F0 [14:24:59]Write i2c OK [14:24:59]MH_I2C_Read... [14:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:59]Read from MH i2c: E2 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 0E 00 [14:24:59]MH_I2C_Read... [14:24:59]Read from MH i2c: E2 0E 00 50 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F2 [14:24:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:24:59]wFMCommunicate OK [14:24:59]SAM_PROTO_GetShiftState done [14:24:59]FM_GetShiftState done [14:24:59]req_shift_opened done [14:24:59]requested_item shift.open_date is exist - process it [14:24:59]req_shift_open_date [14:24:59]req_shift_open_date done [14:24:59]produce_requested_data done [14:24:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202002,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:24:59]process_action_free close_receipt [14:24:59]json_value_free [14:24:59]json_value_free done [14:24:59]process_json_proto returns [14:24:59]Send response to host [14:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202002,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:24:59]free response buf [14:24:59]execute_script done [14:24:59]execute_script returns [14:24:59]free content buf [14:24:59]Sock 9.Close socket [14:24:59]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:22]accept exits with 8 [14:26:22]New connection [14:26:22]New thread 3066641764 created [14:26:22]Thread 3066498404 joined [14:26:22]Waiting for new connection... [14:26:22] Sock 8.Parse request [14:26:22]Sock 8.Check first char [14:26:22]Sock 8.First char is OK [14:26:22]request: POST /json_proto HTTP/1.0 [14:26:22]Method: POST [14:26:22]URL: /json_proto [14:26:22]Method is POST - this is cgi request [14:26:22]url: /json_proto [14:26:22]query_string will be loaded in cgi processing [14:26:22]execute_cgi json_proto POST (null) [14:26:22]execute_cgi path=json_proto method=POST [14:26:22]POST find Content-Length [14:26:22]Host: 172.17.63.195:8080 [14:26:22]Content-Length: 682 [14:26:22]Content-Type: application/json [14:26:22] [14:26:22]POST finish read [14:26:22]Found Content-Length = 682 [14:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 47.840, "sum" : 3200.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:22]execute_script... [14:26: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)449767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 47.840, "sum" : 3200.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:22]POST & json_proto [14:26:22]process_json_proto [14:26:22]json parsed OK: [14:26:22]protocol is kg_v1.0 [14:26:22]action value=close_receipt [14:26:22]process_action close_receipt [14:26:22]cmd_close_receipt [14:26:22]MH_GetDate [14:26:22]Write to MH i2c: F0 00 00 51 23 63 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: F0 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: F0 09 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: F0 09 00 51 23 00 8F 4D 1E 67 47 1B 1E 67 B4 [14:26:22]GetLastDocTimeStamp 1730039096 [14:26:22]current date 1730039183 [14:26:22]FM_GetShiftState [14:26:22]SAM_PROTO_GetShiftState [14:26:22]wFMCommunicate request_size=4 [14:26:22]MH_SAM_APDU [14:26:22]CAPDU: 80 13 01 00 [14:26:22]Write to MH i2c: E2 08 00 52 23 80 13 01 00 00 00 00 00 F2 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 0E 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 0E 00 52 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F4 [14:26:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:26:22]wFMCommunicate OK [14:26:22]SAM_PROTO_GetShiftState done [14:26:22]FM_GetShiftState done [14:26:22]opened in 1729987312 [14:26:22]opened+sec_in_day 1730073712 [14:26:22]quantity*price = 320049 [14:26:22]sum+1 = 320051 [14:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 3200.00 Внесено: 3200.00 СДАЧА: 0.00 НСП 1% : 28.32 НДС 12% : 339.88 Наличными: 3200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 295 27.10.2024 14:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202003 ФПД: 31744793100527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142623&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202003&fm=31744793100527&tin=02508201610067®Number=0000000000091777&sum=320000 [14:26:23]StoreToDocumentArchive [14:26:23]shift 544 fd 202003 [14:26:23]save to /storage/0544/doc_00202003 [14:26:23]save last doc name /storage/0544/doc_00202003 to /storage/kkm_last_doc_name [14:26:23]save OK [14:26:23]Clear old archive folders... [14:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:24]tlvbuf is 01231D40 [14:26:24]SAM_PROTO_ClearQueue [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 09 00 00 [14:26:24]Write to MH i2c: E2 08 00 5F 23 80 09 00 00 00 00 00 00 F4 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 5F 23 00 90 00 F6 [14:26:24]RAPDU: 90 00 [14:26:24]wFMCommunicate OK [14:26:24]SAM_PROTO_ClearQueue done [14:26:24]KKMCreateOFDPacket [14:26:24]OFDProtocolAddRootSTLVToBuf [14:26:24]FM_MakeSignedData [14:26:24]FM_MakeSignedData [14:26:24]SAM_PROTO_SignData [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 0D 01 02 [14:26:24]Write to MH i2c: E2 08 00 60 23 80 0D 01 02 00 00 00 00 FC [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 60 23 00 90 00 F7 [14:26:24]RAPDU: 90 00 [14:26:24]wFMCommunicate OK [14:26:24]wFMCommunicate request_size=255 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E0 BA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 8F 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 15 03 00 35 04 06 00 1C [14:26:24]Write to MH i2c: E2 02 01 61 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E0 BA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 8F 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 15 03 00 35 04 06 00 1C 00 00 1A [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 61 23 00 90 00 F8 [14:26:24]RAPDU: 90 00 [14:26:24]wFMCommunicate OK [14:26:24]wFMCommunicate request_size=10 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 0D 02 02 05 DF 29 1D C0 EF [14:26:24]Write to MH i2c: E2 0D 00 62 23 80 0D 02 02 05 00 DF 29 1D C0 EF 00 00 DD [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [14:26:24]RAPDU: 90 00 [14:26:24]wFMCommunicate OK [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 0D 03 02 [14:26:24]Write to MH i2c: E2 08 00 63 23 80 0D 03 02 00 00 00 00 01 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 0B 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 0B 00 63 23 00 99 53 2B 2D 94 D8 E5 44 90 00 DB [14:26:24]RAPDU: 99 53 2B 2D 94 D8 E5 44 90 00 [14:26:24]wFMCommunicate OK [14:26:24]SAM_PROTO_SignData done [14:26:24]FM_MakeSignedData done [14:26:24]CreateOFDProtocolMessage [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 11 00 00 [14:26:24]Write to MH i2c: E2 08 00 64 23 80 11 00 00 00 00 00 00 01 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 17 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 17 00 64 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [14:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:26:24]wFMCommunicate OK [14:26:24]CreateOFDProtocolMessage done [14:26:24]OFDSenderStorePacket 202003 [14:26:24]StoreOFDPacket docnum=202003 [14:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 F5 07 01 34 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E0 BA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 8F 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 15 03 00 35 04 06 00 1C DF 29 1D C0 EF 99 53 2B 2D 94 D8 E5 44 [14:26:24]CheckFolder [14:26:24]dirname=/storage/ofd_packets [14:26:24]CheckFolder done [14:26:24]ProducePacketName [14:26:24]name=ofd_packets/00202003 [14:26:24]NVStorageSaveData ofd_packets/00202003 [14:26:24]File name is /storage/ofd_packets/00202003 [14:26:24]Write 301 bytes [14:26:24]NVStorageSaveData done [14:26:24]OFDSenderStorePacket done [14:26:24]KKMCreateOFDPacket done [14:26:24]NVStorageSaveData kkm_last_timestamp [14:26:24]File name is /storage/kkm_last_timestamp [14:26:24]Write 4 bytes [14:26:24]NVStorageSaveData done [14:26:24]ExternCall_PrintAddStr [14:26:24]wPrintStart [14:26:24]Write to MH i2c: 01 00 00 65 23 88 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: 01 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: 01 07 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: 01 07 00 65 23 00 00 00 00 00 FF 0F 9D [14:26:24]RasterBufferAndPrint [14:26:24]line Счет N : (1)449767 [14:26:24]line ИНН: 02508201610067 [14:26:24]line Контрольно-Кассовый Чек [14:26:24]line ПРОДАЖА [14:26:24]line ТРК (МРК, ГНК) : 41 [14:26:24]line Товар: 2710124130 [14:26:24]line Аи-92-К-2 [14:26:24]line 47.840 * 66.90 [14:26:24]line = 3200.50 [14:26:24]line НДС 12% НСП 1% [14:26:24]line > о реализуемом товаре [14:26:24]line ОКРУГЛЕНИЕ: -0.50 [14:26:24]line ИТОГО: 3200.00 [14:26:24]line Внесено: 3200.00 [14:26:24]line СДАЧА: 0.00 [14:26:24]line НСП 1% : 28.32 [14:26:24]line НДС 12% : 339.88 [14:26:24]line Наличными: 3200.00 [14:26:24]line Безнал.: 0.00 [14:26:24]line Место: АЗС № 171 "Партнер Нефть" [14:26:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:26:24]line СНО: Общий режим [14:26:24]line Чек 295 27.10.2024 14:26 [14:26:24]line Смена: 544 ФФД: 1.0 [14:26:24]line ЗНМ: 0300000109 [14:26:24]line РНМ: 0000000000091777 [14:26:24]line Версия ККМ: 001 [14:26:24]line ФМ: 0000000000871756 [14:26:24]line ФД: 202003 [14:26:24]line ФПД: 31744793100527 [14:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142623&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202003&fm=31744793100527&tin=02508201610067®Number=0000000000091777&sum=320000 [14:26:24]OFD Sender: Processing packet 202003 [packets to send 112, broken 111] [14:26:24]ProducePacketName [14:26:24]name=ofd_packets/00202003 [14:26:24]OFD Sender: To server: pG, [14:26:24]CommunicateWithHost lk.salyk.kg:30040 [14:26:24]ConnectInit lk.salyk.kg [14:26:24]written 0, free lines is 4095 [14:26:24]Connected sock=10 [14:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 F5 07 01 34 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E0 BA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 8F 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 15 03 00 35 04 06 00 1C DF 29 1D C0 EF 99 53 2B 2D 94 D8 E5 44 [14:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F2 38 47 00 08 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 15 03 00 F4 03 04 00 49 F9 1D 67 B6 04 01 00 00 BB A7 E4 EE 05 68 04 D7 [14:26:25]CommunicateWithHost err = 0 [14:26:25]CheckOFDResponse [14:26:25]1017 (14) - 77093643461234 [14:26:25]1041 (16) - 0000000000871756 [14:26:25]1040 (4) - 202003 [14:26:25]1012 (4) - 27.10.2024 08:26 [14:26:25]1206 (1) - 0 [14:26:25]OFD Sender: Remove packet 202003 [14:26:25]ProducePacketName [14:26:25]name=ofd_packets/00202003 [14:26:25]NVStorageDeleteData [14:26:25]Write to MH i2c: 01 00 00 90 23 B3 [14:26:25]Write i2c OK [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: 01 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: 01 07 00 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: 01 07 00 90 23 00 00 00 00 00 8F 0C 55 [14:26:25]RasterBufferAndPrint [14:26:25]line [14:26:25]line [14:26:25]line [14:26:25]line [14:26:25]line [14:26:25]written 0, free lines is 3219 [14:26:25]MH_Cut [14:26:25]Write to MH i2c: D1 01 00 97 23 01 8C [14:26:25]Write i2c OK [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: D1 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: D1 01 00 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: D1 01 00 97 23 00 8B [14:26:25]Write to MH i2c: 01 00 00 98 23 BB [14:26:25]Write i2c OK [14:26:25]MH_I2C_Read... [14:26:25]OFD Sender: No OFD packet to send [14:26:26]*** Cut start [14:26:26]*** Purtial cut [14:26:26]*** Stage 1: CUTSNS_PIN = 1 [14:26:26]Read from MH i2c: 01 [14:26:26]MH_I2C_Read... [14:26:26]*** Stop cut motor [14:26:26]*** Cut end [14:26:26]Read from MH i2c: 01 07 00 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: 01 07 00 98 23 00 00 00 00 00 FF 0F D0 [14:26:26]process_action close_receipt done [14:26:26]requested_data is exist [14:26:26]produce_requested_data [14:26:26]requested_item fm.sn is exist - process it [14:26:26]wFMCommunicate request_size=4 [14:26:26]MH_SAM_APDU [14:26:26]CAPDU: 80 11 00 00 [14:26:26]Write to MH i2c: E2 08 00 99 23 80 11 00 00 00 00 00 00 36 [14:26:26]Write i2c OK [14:26:26]MH_I2C_Read... [14:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:26]Read from MH i2c: E2 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: E2 17 00 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: E2 17 00 99 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [14:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:26:26]wFMCommunicate OK [14:26:26]requested_item fd.num is exist - process it [14:26:26]SAM_PROTO_GetFieldsCounters [14:26:26]wFMCommunicate request_size=4 [14:26:26]MH_SAM_APDU [14:26:26]CAPDU: 80 13 00 00 [14:26:26]Write to MH i2c: E2 08 00 9A 23 80 13 00 00 00 00 00 00 39 [14:26:26]Write i2c OK [14:26:26]MH_I2C_Read... [14:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:26]Read from MH i2c: E2 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: E2 62 00 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: E2 62 00 9A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 13 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [14:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 13 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:26]wFMCommunicate OK [14:26:26]SAM_PROTO_GetFieldsCounters done [14:26:26]requested_item shift.num is exist - process it [14:26:26]requested_item shift.opened is exist - process it [14:26:26]req_shift_opened [14:26:26]FM_GetShiftState [14:26:26]SAM_PROTO_GetShiftState [14:26:26]wFMCommunicate request_size=4 [14:26:26]MH_SAM_APDU [14:26:26]CAPDU: 80 13 01 00 [14:26:26]Write to MH i2c: E2 08 00 9B 23 80 13 01 00 00 00 00 00 3B [14:26:26]Write i2c OK [14:26:26]MH_I2C_Read... [14:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:26]Read from MH i2c: E2 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: E2 0E 00 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: E2 0E 00 9B 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3D [14:26:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:26:26]wFMCommunicate OK [14:26:26]SAM_PROTO_GetShiftState done [14:26:26]FM_GetShiftState done [14:26:26]req_shift_opened done [14:26:26]requested_item shift.open_date is exist - process it [14:26:26]req_shift_open_date [14:26:26]req_shift_open_date done [14:26:26]produce_requested_data done [14:26:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202003,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:26:26]process_action_free close_receipt [14:26:26]json_value_free [14:26:26]json_value_free done [14:26:26]process_json_proto returns [14:26:26]Send response to host [14:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202003,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:26:26]free response buf [14:26:26]execute_script done [14:26:26]execute_script returns [14:26:26]free content buf [14:26:26]Sock 8.Close socket [14:26:26]Sock 8.Thread stoped [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:38]accept exits with 9 [14:26:38]New connection [14:26:38]New thread 3066498404 created [14:26:38]Thread 3066641764 joined [14:26:38]Waiting for new connection... [14:26:38] Sock 9.Parse request [14:26:38]Sock 9.Check first char [14:26:38]Sock 9.First char is OK [14:26:38]request: POST /json_proto HTTP/1.0 [14:26:38]Method: POST [14:26:38]URL: /json_proto [14:26:38]Method is POST - this is cgi request [14:26:38]url: /json_proto [14:26:38]query_string will be loaded in cgi processing [14:26:38]execute_cgi json_proto POST (null) [14:26:38]execute_cgi path=json_proto method=POST [14:26:38]POST find Content-Length [14:26:38]Host: 172.17.63.195:8080 [14:26:38]Content-Length: 759 [14:26:38]Content-Type: application/json [14:26:38] [14:26:38]POST finish read [14:26:38]Found Content-Length = 759 [14:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:38]execute_script... [14:26:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:38]POST & json_proto [14:26:38]process_json_proto [14:26:38]json parsed OK: [14:26:38]protocol is kg_v1.0 [14:26:38]action value=close_receipt [14:26:38]process_action close_receipt [14:26:38]cmd_close_receipt [14:26:38]MH_GetDate [14:26:38]Write to MH i2c: F0 00 00 9C 23 AE [14:26:38]Write i2c OK [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: F0 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: F0 09 00 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: F0 09 00 9C 23 00 9F 4D 1E 67 47 1B 1E 67 0F [14:26:38]GetLastDocTimeStamp 1730039183 [14:26:38]current date 1730039199 [14:26:38]FM_GetShiftState [14:26:38]SAM_PROTO_GetShiftState [14:26:38]wFMCommunicate request_size=4 [14:26:38]MH_SAM_APDU [14:26:38]CAPDU: 80 13 01 00 [14:26:38]Write to MH i2c: E2 08 00 9D 23 80 13 01 00 00 00 00 00 3D [14:26:38]Write i2c OK [14:26:38]MH_I2C_Read... [14:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:38]Read from MH i2c: E2 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 0E 00 [14:26:38]MH_I2C_Read... [14:26:38]Read from MH i2c: E2 0E 00 9D 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3F [14:26:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:26:38]wFMCommunicate OK [14:26:38]SAM_PROTO_GetShiftState done [14:26:38]FM_GetShiftState done [14:26:38]opened in 1729987312 [14:26:38]opened+sec_in_day 1730073712 [14:26:38]quantity*price = 30027 [14:26:38]sum+1 = 30029 [14:26:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.28 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.28 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 296 27.10.2024 14:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202004 ФПД: 138243487789704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142639&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202004&fm=138243487789704&tin=02508201610067®Number=0000000000091777&sum=30028 [14:26:39]StoreToDocumentArchive [14:26:39]shift 544 fd 202004 [14:26:39]save to /storage/0544/doc_00202004 [14:26:39]save last doc name /storage/0544/doc_00202004 to /storage/kkm_last_doc_name [14:26:39]save OK [14:26:39]Clear old archive folders... [14:26:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:26:39]tlvbuf is 01208F70 [14:26:39]SAM_PROTO_ClearQueue [14:26:39]wFMCommunicate request_size=4 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 09 00 00 [14:26:39]Write to MH i2c: E2 08 00 AA 23 80 09 00 00 00 00 00 00 3F [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 03 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 03 00 AA 23 00 90 00 41 [14:26:39]RAPDU: 90 00 [14:26:39]wFMCommunicate OK [14:26:39]SAM_PROTO_ClearQueue done [14:26:39]KKMCreateOFDPacket [14:26:39]OFDProtocolAddRootSTLVToBuf [14:26:39]FM_MakeSignedData [14:26:39]FM_MakeSignedData [14:26:39]SAM_PROTO_SignData [14:26:39]wFMCommunicate request_size=4 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 0D 01 02 [14:26:39]Write to MH i2c: E2 08 00 AB 23 80 0D 01 02 00 00 00 00 47 [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 03 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 03 00 AB 23 00 90 00 42 [14:26:39]RAPDU: 90 00 [14:26:39]wFMCommunicate OK [14:26:39]wFMCommunicate request_size=255 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 9F 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 15 03 00 35 04 06 00 [14:26:39]Write to MH i2c: E2 02 01 AC 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 9F 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 15 03 00 35 04 06 00 00 00 B6 [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 03 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 03 00 AC 23 00 90 00 43 [14:26:39]RAPDU: 90 00 [14:26:39]wFMCommunicate OK [14:26:39]wFMCommunicate request_size=11 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 0D 02 02 06 7D BB 51 FB 72 88 [14:26:39]Write to MH i2c: E2 0E 00 AD 23 80 0D 02 02 06 00 7D BB 51 FB 72 88 00 00 D4 [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:39]Read from MH i2c: E2 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 03 00 [14:26:39]MH_I2C_Read... [14:26:39]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [14:26:39]RAPDU: 90 00 [14:26:39]wFMCommunicate OK [14:26:39]wFMCommunicate request_size=4 [14:26:39]MH_SAM_APDU [14:26:39]CAPDU: 80 0D 03 02 [14:26:39]Write to MH i2c: E2 08 00 AE 23 80 0D 03 02 00 00 00 00 4C [14:26:39]Write i2c OK [14:26:39]MH_I2C_Read... [14:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:40]Read from MH i2c: E2 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: E2 0B 00 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: E2 0B 00 AE 23 00 E8 A8 4D 0B 36 37 CE C2 90 00 32 [14:26:40]RAPDU: E8 A8 4D 0B 36 37 CE C2 90 00 [14:26:40]wFMCommunicate OK [14:26:40]SAM_PROTO_SignData done [14:26:40]FM_MakeSignedData done [14:26:40]CreateOFDProtocolMessage [14:26:40]wFMCommunicate request_size=4 [14:26:40]MH_SAM_APDU [14:26:40]CAPDU: 80 11 00 00 [14:26:40]Write to MH i2c: E2 08 00 AF 23 80 11 00 00 00 00 00 00 4C [14:26:40]Write i2c OK [14:26:40]MH_I2C_Read... [14:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:40]Read from MH i2c: E2 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: E2 17 00 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: E2 17 00 AF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [14:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:26:40]wFMCommunicate OK [14:26:40]CreateOFDProtocolMessage done [14:26:40]OFDSenderStorePacket 202004 [14:26:40]StoreOFDPacket docnum=202004 [14:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 1B 6E 08 01 63 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 9F 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 15 03 00 35 04 06 00 7D BB 51 FB 72 88 E8 A8 4D 0B 36 37 CE C2 [14:26:40]CheckFolder [14:26:40]dirname=/storage/ofd_packets [14:26:40]CheckFolder done [14:26:40]ProducePacketName [14:26:40]name=ofd_packets/00202004 [14:26:40]NVStorageSaveData ofd_packets/00202004 [14:26:40]File name is /storage/ofd_packets/00202004 [14:26:40]Write 302 bytes [14:26:40]NVStorageSaveData done [14:26:40]OFDSenderStorePacket done [14:26:40]KKMCreateOFDPacket done [14:26:40]NVStorageSaveData kkm_last_timestamp [14:26:40]File name is /storage/kkm_last_timestamp [14:26:40]Write 4 bytes [14:26:40]NVStorageSaveData done [14:26:40]ExternCall_PrintAddStr [14:26:40]wPrintStart [14:26:40]Write to MH i2c: 01 00 00 B0 23 D3 [14:26:40]Write i2c OK [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: 01 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: 01 07 00 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: 01 07 00 B0 23 00 00 00 00 00 FF 0F E8 [14:26:40]RasterBufferAndPrint [14:26:40]line Счет N : (1)449769 [14:26:40]line ИНН: 02508201610067 [14:26:40]line Контрольно-Кассовый Чек [14:26:40]line ПРОДАЖА [14:26:40]line ТРК (МРК, ГНК) : 32 [14:26:40]line Товар: 2710124130 [14:26:40]line SUPER 92-К-5 [14:26:40]line 4.390 * 68.40 [14:26:40]line = 300.28 [14:26:40]line НДС 12% НСП 1% [14:26:40]line > о реализуемом товаре [14:26:40]line ИТОГО: 300.28 [14:26:40]line НСП 1% : 2.66 [14:26:40]line НДС 12% : 31.89 [14:26:40]line Наличными: 0.00 [14:26:40]line Безнал.: 300.28 [14:26:40]line Место: АЗС № 171 "Партнер Нефть" [14:26:40]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:26:40]line СНО: Общий режим [14:26:40]line Чек 296 27.10.2024 14:26 [14:26:40]line Смена: 544 ФФД: 1.0 [14:26:40]line ЗНМ: 0300000109 [14:26:40]line РНМ: 0000000000091777 [14:26:40]line Версия ККМ: 001 [14:26:40]line Платежная система: Mbank [14:26:40]line ФМ: 0000000000871756 [14:26:40]line ФД: 202004 [14:26:40]line ФПД: 138243487789704 [14:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142639&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202004&fm=138243487789704&tin=02508201610067®Number=0000000000091777&sum=30028 [14:26:40]written 0, free lines is 4095 [14:26:40]OFD Sender: Processing packet 202004 [packets to send 112, broken 111] [14:26:40]ProducePacketName [14:26:40]name=ofd_packets/00202004 [14:26:40]OFD Sender: To server: pG, [14:26:40]CommunicateWithHost lk.salyk.kg:30040 [14:26:40]ConnectInit lk.salyk.kg [14:26:40]Connected sock=10 [14:26:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 1B 6E 08 01 63 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 9F 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 15 03 00 35 04 06 00 7D BB 51 FB 72 88 E8 A8 4D 0B 36 37 CE C2 [14:26:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 32 37 47 00 9C 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 15 03 00 F4 03 04 00 59 F9 1D 67 B6 04 01 00 00 C1 9F EF 0B DA 08 B2 60 [14:26:40]CommunicateWithHost err = 0 [14:26:40]CheckOFDResponse [14:26:40]1017 (14) - 77093643461234 [14:26:40]1041 (16) - 0000000000871756 [14:26:40]1040 (4) - 202004 [14:26:40]1012 (4) - 27.10.2024 08:27 [14:26:40]1206 (1) - 0 [14:26:40]OFD Sender: Remove packet 202004 [14:26:40]ProducePacketName [14:26:40]name=ofd_packets/00202004 [14:26:40]NVStorageDeleteData [14:26:40]Write to MH i2c: 01 00 00 D9 23 FC [14:26:40]Write i2c OK [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: 01 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: 01 07 00 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: 01 07 00 D9 23 00 00 00 00 00 BA 0C C9 [14:26:40]RasterBufferAndPrint [14:26:40]line [14:26:40]line [14:26:40]line [14:26:40]line [14:26:40]line [14:26:40]written 0, free lines is 3262 [14:26:40]MH_Cut [14:26:40]Write to MH i2c: D1 01 00 E0 23 01 D5 [14:26:40]Write i2c OK [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: D1 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: D1 01 00 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: D1 01 00 E0 23 00 D4 [14:26:40]Write to MH i2c: 01 00 00 E1 23 04 [14:26:40]Write i2c OK [14:26:40]MH_I2C_Read... [14:26:41]OFD Sender: No OFD packet to send [14:26:41]*** Cut start [14:26:41]*** Purtial cut [14:26:41]*** Stage 1: CUTSNS_PIN = 1 [14:26:41]Read from MH i2c: 01 [14:26:42]MH_I2C_Read... [14:26:42]*** Stop cut motor [14:26:42]*** Cut end [14:26:42]Read from MH i2c: 01 07 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: 01 07 00 E1 23 00 00 00 00 00 FF 0F 19 [14:26:42]process_action close_receipt done [14:26:42]requested_data is exist [14:26:42]produce_requested_data [14:26:42]requested_item fm.sn is exist - process it [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 11 00 00 [14:26:42]Write to MH i2c: E2 08 00 E2 23 80 11 00 00 00 00 00 00 7F [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 17 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 17 00 E2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [14:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:26:42]wFMCommunicate OK [14:26:42]requested_item fd.num is exist - process it [14:26:42]SAM_PROTO_GetFieldsCounters [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 13 00 00 [14:26:42]Write to MH i2c: E2 08 00 E3 23 80 13 00 00 00 00 00 00 82 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 62 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 62 00 E3 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 14 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [14:26:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 14 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:42]wFMCommunicate OK [14:26:42]SAM_PROTO_GetFieldsCounters done [14:26:42]requested_item shift.num is exist - process it [14:26:42]requested_item shift.opened is exist - process it [14:26:42]req_shift_opened [14:26:42]FM_GetShiftState [14:26:42]SAM_PROTO_GetShiftState [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 13 01 00 [14:26:42]Write to MH i2c: E2 08 00 E4 23 80 13 01 00 00 00 00 00 84 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 0E 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 0E 00 E4 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 86 [14:26:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:26:42]wFMCommunicate OK [14:26:42]SAM_PROTO_GetShiftState done [14:26:42]FM_GetShiftState done [14:26:42]req_shift_opened done [14:26:42]requested_item shift.open_date is exist - process it [14:26:42]req_shift_open_date [14:26:42]req_shift_open_date done [14:26:42]produce_requested_data done [14:26:42]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202004,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:26:42]process_action_free close_receipt [14:26:42]json_value_free [14:26:42]json_value_free done [14:26:42]process_json_proto returns [14:26:42]Send response to host [14:26:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202004,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:26:42]free response buf [14:26:42]execute_script done [14:26:42]execute_script returns [14:26:42]free content buf [14:26:42]Sock 9.Close socket [14:26:42]Sock 9.Thread stoped [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:44]accept exits with 8 [14:27:44]New connection [14:27:44]New thread 3066641764 created [14:27:44]Thread 3066498404 joined [14:27:44]Waiting for new connection... [14:27:44] Sock 8.Parse request [14:27:44]Sock 8.Check first char [14:27:44]Sock 8.First char is OK [14:27:44]request: POST /json_proto HTTP/1.0 [14:27:44]Method: POST [14:27:44]URL: /json_proto [14:27:44]Method is POST - this is cgi request [14:27:44]url: /json_proto [14:27:44]query_string will be loaded in cgi processing [14:27:44]execute_cgi json_proto POST (null) [14:27:44]execute_cgi path=json_proto method=POST [14:27:44]POST find Content-Length [14:27:44]Host: 172.17.63.195:8080 [14:27:44]Content-Length: 677 [14:27:44]Content-Type: application/json [14:27:44] [14:27:44]POST finish read [14:27:44]Found Content-Length = 677 [14:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:44]execute_script... [14:27: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)449770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:44]POST & json_proto [14:27:44]process_json_proto [14:27:44]json parsed OK: [14:27:44]protocol is kg_v1.0 [14:27:44]action value=close_receipt [14:27:44]process_action close_receipt [14:27:44]cmd_close_receipt [14:27:44]MH_GetDate [14:27:44]Write to MH i2c: F0 00 00 E5 23 F7 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: F0 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: F0 09 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: F0 09 00 E5 23 00 E1 4D 1E 67 47 1B 1E 67 9A [14:27:44]GetLastDocTimeStamp 1730039199 [14:27:44]current date 1730039265 [14:27:44]FM_GetShiftState [14:27:44]SAM_PROTO_GetShiftState [14:27:44]wFMCommunicate request_size=4 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 13 01 00 [14:27:44]Write to MH i2c: E2 08 00 E6 23 80 13 01 00 00 00 00 00 86 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 0E 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 0E 00 E6 23 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 88 [14:27:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:27:44]wFMCommunicate OK [14:27:44]SAM_PROTO_GetShiftState done [14:27:44]FM_GetShiftState done [14:27:44]opened in 1729987312 [14:27:44]opened+sec_in_day 1730073712 [14:27:44]quantity*price = 40006 [14:27:44]sum+1 = 40007 [14:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 297 27.10.2024 14:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202005 ФПД: 272144848525939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142745&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202005&fm=272144848525939&tin=02508201610067®Number=0000000000091777&sum=40000 [14:27:45]StoreToDocumentArchive [14:27:45]shift 544 fd 202005 [14:27:45]save to /storage/0544/doc_00202005 [14:27:45]save last doc name /storage/0544/doc_00202005 to /storage/kkm_last_doc_name [14:27:45]save OK [14:27:45]Clear old archive folders... [14:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:45]tlvbuf is B6F09510 [14:27:45]SAM_PROTO_ClearQueue [14:27:45]wFMCommunicate request_size=4 [14:27:45]MH_SAM_APDU [14:27:45]CAPDU: 80 09 00 00 [14:27:45]Write to MH i2c: E2 08 00 F3 23 80 09 00 00 00 00 00 00 88 [14:27:45]Write i2c OK [14:27:45]MH_I2C_Read... [14:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:45]Read from MH i2c: E2 [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: E2 03 00 [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: E2 03 00 F3 23 00 90 00 8A [14:27:45]RAPDU: 90 00 [14:27:45]wFMCommunicate OK [14:27:45]SAM_PROTO_ClearQueue done [14:27:45]KKMCreateOFDPacket [14:27:45]OFDProtocolAddRootSTLVToBuf [14:27:45]FM_MakeSignedData [14:27:45]FM_MakeSignedData [14:27:45]SAM_PROTO_SignData [14:27:45]wFMCommunicate request_size=4 [14:27:45]MH_SAM_APDU [14:27:45]CAPDU: 80 0D 01 02 [14:27:45]Write to MH i2c: E2 08 00 F4 23 80 0D 01 02 00 00 00 00 90 [14:27:45]Write i2c OK [14:27:45]MH_I2C_Read... [14:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:45]Read from MH i2c: E2 [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: E2 03 00 [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: E2 03 00 F4 23 00 90 00 8B [14:27:45]RAPDU: 90 00 [14:27:45]wFMCommunicate OK [14:27:45]wFMCommunicate request_size=255 [14:27:45]MH_SAM_APDU [14:27:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E1 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 15 03 00 35 04 06 00 F7 [14:27:46]Write to MH i2c: E2 02 01 F5 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E1 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 15 03 00 35 04 06 00 F7 00 00 16 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 03 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 03 00 F5 23 00 90 00 8C [14:27:46]RAPDU: 90 00 [14:27:46]wFMCommunicate OK [14:27:46]wFMCommunicate request_size=10 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 0D 02 02 05 83 A9 06 1A 73 [14:27:46]Write to MH i2c: E2 0D 00 F6 23 80 0D 02 02 05 00 83 A9 06 1A 73 00 00 5C [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 03 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 03 00 F6 23 00 90 00 8D [14:27:46]RAPDU: 90 00 [14:27:46]wFMCommunicate OK [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 0D 03 02 [14:27:46]Write to MH i2c: E2 08 00 F7 23 80 0D 03 02 00 00 00 00 95 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]OFD Sender: No OFD packet to send [14:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0B 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0B 00 F7 23 00 80 CD 6F D2 7C 1C 1C 29 90 00 01 [14:27:46]RAPDU: 80 CD 6F D2 7C 1C 1C 29 90 00 [14:27:46]wFMCommunicate OK [14:27:46]SAM_PROTO_SignData done [14:27:46]FM_MakeSignedData done [14:27:46]CreateOFDProtocolMessage [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 11 00 00 [14:27:46]Write to MH i2c: E2 08 00 F8 23 80 11 00 00 00 00 00 00 95 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 17 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 17 00 F8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [14:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:27:46]wFMCommunicate OK [14:27:46]CreateOFDProtocolMessage done [14:27:46]OFDSenderStorePacket 202005 [14:27:46]StoreOFDPacket docnum=202005 [14:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 80 D9 07 01 E1 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E1 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 15 03 00 35 04 06 00 F7 83 A9 06 1A 73 80 CD 6F D2 7C 1C 1C 29 [14:27:46]CheckFolder [14:27:46]dirname=/storage/ofd_packets [14:27:46]CheckFolder done [14:27:46]ProducePacketName [14:27:46]name=ofd_packets/00202005 [14:27:46]NVStorageSaveData ofd_packets/00202005 [14:27:46]File name is /storage/ofd_packets/00202005 [14:27:46]Write 301 bytes [14:27:46]NVStorageSaveData done [14:27:46]OFDSenderStorePacket done [14:27:46]KKMCreateOFDPacket done [14:27:46]NVStorageSaveData kkm_last_timestamp [14:27:46]File name is /storage/kkm_last_timestamp [14:27:46]Write 4 bytes [14:27:46]NVStorageSaveData done [14:27:46]ExternCall_PrintAddStr [14:27:46]wPrintStart [14:27:46]Write to MH i2c: 01 00 00 F9 23 1C [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 07 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 07 00 F9 23 00 00 00 00 00 FF 0F 31 [14:27:46]RasterBufferAndPrint [14:27:46]line Счет N : (1)449770 [14:27:46]line ИНН: 02508201610067 [14:27:46]line Контрольно-Кассовый Чек [14:27:46]line ПРОДАЖА [14:27:46]line ТРК (МРК, ГНК) : 52 [14:27:46]line Товар: 2710124130 [14:27:46]line Аи-92-К-2 [14:27:46]line 5.980 * 66.90 [14:27:46]line = 400.06 [14:27:46]line НДС 12% НСП 1% [14:27:46]line > о реализуемом товаре [14:27:46]line ОКРУГЛЕНИЕ: -0.06 [14:27:46]line ИТОГО: 400.00 [14:27:46]line Внесено: 400.00 [14:27:46]line СДАЧА: 0.00 [14:27:46]line НСП 1% : 3.54 [14:27:46]line НДС 12% : 42.48 [14:27:46]line Наличными: 400.00 [14:27:46]line Безнал.: 0.00 [14:27:46]line Место: АЗС № 171 "Партнер Нефть" [14:27:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:27:46]line СНО: Общий режим [14:27:46]line Чек 297 27.10.2024 14:27 [14:27:46]line Смена: 544 ФФД: 1.0 [14:27:46]line ЗНМ: 0300000109 [14:27:46]line РНМ: 0000000000091777 [14:27:46]line Версия ККМ: 001 [14:27:46]line ФМ: 0000000000871756 [14:27:46]line ФД: 202005 [14:27:46]line ФПД: 272144848525939 [14:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142745&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202005&fm=272144848525939&tin=02508201610067®Number=0000000000091777&sum=40000 [14:27:46]written 0, free lines is 4095 [14:27:46]OFD Sender: Processing packet 202005 [packets to send 112, broken 111] [14:27:46]ProducePacketName [14:27:46]name=ofd_packets/00202005 [14:27:46]OFD Sender: To server: pG, [14:27:46]CommunicateWithHost lk.salyk.kg:30040 [14:27:46]ConnectInit lk.salyk.kg [14:27:46]Connected sock=10 [14:27:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 80 D9 07 01 E1 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 E1 4D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 15 03 00 35 04 06 00 F7 83 A9 06 1A 73 80 CD 6F D2 7C 1C 1C 29 [14:27:46]Write to MH i2c: 01 00 00 24 24 48 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 07 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 07 00 24 24 00 00 00 00 00 90 0C EB [14:27:46]RasterBufferAndPrint [14:27:46]line [14:27:46]line [14:27:46]line [14:27:46]line [14:27:46]line [14:27:46]written 0, free lines is 3219 [14:27:46]MH_Cut [14:27:46]Write to MH i2c: D1 01 00 2B 24 01 21 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: D1 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: D1 01 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: D1 01 00 2B 24 00 20 [14:27:46]Write to MH i2c: 01 00 00 2C 24 50 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 36 A5 47 00 93 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 15 03 00 F4 03 04 00 9B F9 1D 67 B6 04 01 00 00 8F EA 59 1C 2C 82 16 62 [14:27:47]CommunicateWithHost err = 0 [14:27:47]CheckOFDResponse [14:27:47]1017 (14) - 77093643461234 [14:27:47]1041 (16) - 0000000000871756 [14:27:47]1040 (4) - 202005 [14:27:47]1012 (4) - 27.10.2024 08:28 [14:27:47]1206 (1) - 0 [14:27:47]OFD Sender: Remove packet 202005 [14:27:47]ProducePacketName [14:27:47]name=ofd_packets/00202005 [14:27:47]NVStorageDeleteData [14:27:47]OFD Sender: No OFD packet to send [14:27:47]*** Cut start [14:27:47]*** Purtial cut [14:27:47]*** Stage 1: CUTSNS_PIN = 1 [14:27:48]Read from MH i2c: 01 [14:27:48]MH_I2C_Read... [14:27:48]*** Stop cut motor [14:27:48]*** Cut end [14:27:48]Read from MH i2c: 01 07 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: 01 07 00 2C 24 00 00 00 00 00 FF 0F 65 [14:27:48]process_action close_receipt done [14:27:48]requested_data is exist [14:27:48]produce_requested_data [14:27:48]requested_item fm.sn is exist - process it [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 11 00 00 [14:27:48]Write to MH i2c: E2 08 00 2D 24 80 11 00 00 00 00 00 00 CB [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 17 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 17 00 2D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 20 [14:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:27:48]wFMCommunicate OK [14:27:48]requested_item fd.num is exist - process it [14:27:48]SAM_PROTO_GetFieldsCounters [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 13 00 00 [14:27:48]Write to MH i2c: E2 08 00 2E 24 80 13 00 00 00 00 00 00 CE [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 62 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 62 00 2E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 15 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [14:27:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 15 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:48]wFMCommunicate OK [14:27:48]SAM_PROTO_GetFieldsCounters done [14:27:48]requested_item shift.num is exist - process it [14:27:48]requested_item shift.opened is exist - process it [14:27:48]req_shift_opened [14:27:48]FM_GetShiftState [14:27:48]SAM_PROTO_GetShiftState [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 13 01 00 [14:27:48]Write to MH i2c: E2 08 00 2F 24 80 13 01 00 00 00 00 00 D0 [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 0E 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 0E 00 2F 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D2 [14:27:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:27:48]wFMCommunicate OK [14:27:48]SAM_PROTO_GetShiftState done [14:27:48]FM_GetShiftState done [14:27:48]req_shift_opened done [14:27:48]requested_item shift.open_date is exist - process it [14:27:48]req_shift_open_date [14:27:48]req_shift_open_date done [14:27:48]produce_requested_data done [14:27:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202005,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:27:48]process_action_free close_receipt [14:27:48]json_value_free [14:27:48]json_value_free done [14:27:48]process_json_proto returns [14:27:48]Send response to host [14:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202005,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:27:48]free response buf [14:27:48]execute_script done [14:27:48]execute_script returns [14:27:48]free content buf [14:27:48]Sock 8.Close socket [14:27:48]Sock 8.Thread stoped [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:29]int [14:28:29]Write to MH i2c: 01 00 00 30 24 54 [14:28:29]*** FLAG_PRN_KEY set [14:28:29]Write i2c OK [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 07 00 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 07 00 30 24 00 08 00 00 00 FF 0F 71 [14:28:29]state=0 [14:28:29]Key pressed [14:28:29]Feed [14:28:29]Write to MH i2c: D8 00 00 31 24 2C [14:28:29]Write i2c OK [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: D8 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: D8 01 00 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: D8 01 00 31 24 00 2D [14:28:29]int [14:28:29]Write to MH i2c: 01 00 00 32 24 56 [14:28:29]Write i2c OK [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 07 00 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 07 00 32 24 00 48 00 00 00 3C 00 E1 [14:28:29]state=2 [14:28:29]Key pressed [14:28:29]int [14:28:29]Write to MH i2c: 01 00 00 33 24 57 [14:28:29]*** FLAG_PRN_KEY reset [14:28:29]Write i2c OK [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 07 00 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 07 00 33 24 00 00 00 00 00 F6 0F 63 [14:28:29]state=2 [14:28:29]Stop feed [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:01]accept exits with 9 [14:30:01]New connection [14:30:01]New thread 3066498404 created [14:30:01]Thread 3066641764 joined [14:30:01]Waiting for new connection... [14:30:01] Sock 9.Parse request [14:30:01]Sock 9.Check first char [14:30:01]Sock 9.First char is OK [14:30:01]request: POST /json_proto HTTP/1.0 [14:30:01]Method: POST [14:30:01]URL: /json_proto [14:30:01]Method is POST - this is cgi request [14:30:01]url: /json_proto [14:30:01]query_string will be loaded in cgi processing [14:30:01]execute_cgi json_proto POST (null) [14:30:01]execute_cgi path=json_proto method=POST [14:30:01]POST find Content-Length [14:30:01]Host: 172.17.63.195:8080 [14:30:01]Content-Length: 679 [14:30:01]Content-Type: application/json [14:30:01] [14:30:01]POST finish read [14:30:01]Found Content-Length = 679 [14:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:01]execute_script... [14:30:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:01]POST & json_proto [14:30:01]process_json_proto [14:30:01]json parsed OK: [14:30:01]protocol is kg_v1.0 [14:30:01]action value=close_receipt [14:30:01]process_action close_receipt [14:30:01]cmd_close_receipt [14:30:01]MH_GetDate [14:30:01]Write to MH i2c: F0 00 00 34 24 47 [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: F0 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: F0 09 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: F0 09 00 34 24 00 6A 4E 1E 67 47 1B 1E 67 74 [14:30:01]GetLastDocTimeStamp 1730039265 [14:30:01]current date 1730039402 [14:30:01]FM_GetShiftState [14:30:01]SAM_PROTO_GetShiftState [14:30:01]wFMCommunicate request_size=4 [14:30:01]MH_SAM_APDU [14:30:01]CAPDU: 80 13 01 00 [14:30:01]Write to MH i2c: E2 08 00 35 24 80 13 01 00 00 00 00 00 D6 [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:01]Read from MH i2c: E2 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 0E 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: E2 0E 00 35 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [14:30:01]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:30:01]wFMCommunicate OK [14:30:01]SAM_PROTO_GetShiftState done [14:30:01]FM_GetShiftState done [14:30:01]opened in 1729987312 [14:30:01]opened+sec_in_day 1730073712 [14:30:01]quantity*price = 160020 [14:30:01]sum+1 = 160021 [14:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 298 27.10.2024 14:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202006 ФПД: 228413377020904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143002&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202006&fm=228413377020904&tin=02508201610067®Number=0000000000091777&sum=160000 [14:30:03]StoreToDocumentArchive [14:30:03]shift 544 fd 202006 [14:30:03]save to /storage/0544/doc_00202006 [14:30:03]save last doc name /storage/0544/doc_00202006 to /storage/kkm_last_doc_name [14:30:03]save OK [14:30:03]Clear old archive folders... [14:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:30:03]tlvbuf is B6D5C4E0 [14:30:03]SAM_PROTO_ClearQueue [14:30:03]wFMCommunicate request_size=4 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 09 00 00 [14:30:03]Write to MH i2c: E2 08 00 42 24 80 09 00 00 00 00 00 00 D8 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 03 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 03 00 42 24 00 90 00 DA [14:30:03]RAPDU: 90 00 [14:30:03]wFMCommunicate OK [14:30:03]SAM_PROTO_ClearQueue done [14:30:03]KKMCreateOFDPacket [14:30:03]OFDProtocolAddRootSTLVToBuf [14:30:03]FM_MakeSignedData [14:30:03]FM_MakeSignedData [14:30:03]SAM_PROTO_SignData [14:30:03]wFMCommunicate request_size=4 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 0D 01 02 [14:30:03]Write to MH i2c: E2 08 00 43 24 80 0D 01 02 00 00 00 00 E0 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 03 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 03 00 43 24 00 90 00 DB [14:30:03]RAPDU: 90 00 [14:30:03]wFMCommunicate OK [14:30:03]wFMCommunicate request_size=255 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 6A 4E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 15 03 00 35 04 06 00 CF BD A2 33 [14:30:03]Write to MH i2c: E2 02 01 44 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 6A 4E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 15 03 00 35 04 06 00 CF BD A2 33 00 00 33 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 03 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 03 00 44 24 00 90 00 DC [14:30:03]RAPDU: 90 00 [14:30:03]wFMCommunicate OK [14:30:03]wFMCommunicate request_size=7 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 0D 02 02 02 03 E8 [14:30:03]Write to MH i2c: E2 0A 00 45 24 80 0D 02 02 02 00 03 E8 00 00 D2 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 03 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 03 00 45 24 00 90 00 DD [14:30:03]RAPDU: 90 00 [14:30:03]wFMCommunicate OK [14:30:03]wFMCommunicate request_size=4 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 0D 03 02 [14:30:03]Write to MH i2c: E2 08 00 46 24 80 0D 03 02 00 00 00 00 E5 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 0B 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 0B 00 46 24 00 81 3C F8 5C 31 45 ED 8B 90 00 E5 [14:30:03]RAPDU: 81 3C F8 5C 31 45 ED 8B 90 00 [14:30:03]wFMCommunicate OK [14:30:03]SAM_PROTO_SignData done [14:30:03]FM_MakeSignedData done [14:30:03]CreateOFDProtocolMessage [14:30:03]wFMCommunicate request_size=4 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 11 00 00 [14:30:03]Write to MH i2c: E2 08 00 47 24 80 11 00 00 00 00 00 00 E5 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 17 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 17 00 47 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3A [14:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:30:03]wFMCommunicate OK [14:30:03]CreateOFDProtocolMessage done [14:30:03]OFDSenderStorePacket 202006 [14:30:03]StoreOFDPacket docnum=202006 [14:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 62 CD 04 01 06 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 6A 4E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 15 03 00 35 04 06 00 CF BD A2 33 03 E8 81 3C F8 5C 31 45 ED 8B [14:30:03]CheckFolder [14:30:03]dirname=/storage/ofd_packets [14:30:03]CheckFolder done [14:30:03]ProducePacketName [14:30:03]name=ofd_packets/00202006 [14:30:03]NVStorageSaveData ofd_packets/00202006 [14:30:03]File name is /storage/ofd_packets/00202006 [14:30:03]Write 298 bytes [14:30:03]NVStorageSaveData done [14:30:03]OFDSenderStorePacket done [14:30:03]KKMCreateOFDPacket done [14:30:03]NVStorageSaveData kkm_last_timestamp [14:30:03]File name is /storage/kkm_last_timestamp [14:30:03]Write 4 bytes [14:30:03]NVStorageSaveData done [14:30:03]ExternCall_PrintAddStr [14:30:03]wPrintStart [14:30:03]Write to MH i2c: 01 00 00 48 24 6C [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: 01 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: 01 07 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: 01 07 00 48 24 00 00 00 00 00 FF 0F 81 [14:30:03]RasterBufferAndPrint [14:30:03]line Счет N : (1)449771 [14:30:03]line ИНН: 02508201610067 [14:30:03]line Контрольно-Кассовый Чек [14:30:03]line ПРОДАЖА [14:30:03]line ТРК (МРК, ГНК) : 21 [14:30:03]line Товар: 2710194210 [14:30:03]line ДТ-К-2 [14:30:03]line 21.000 * 76.20 [14:30:03]line = 1600.20 [14:30:03]line НДС 12% НСП 1% [14:30:03]line > о реализуемом товаре [14:30:03]line ОКРУГЛЕНИЕ: -0.20 [14:30:03]line ИТОГО: 1600.00 [14:30:03]line Внесено: 1600.00 [14:30:03]line СДАЧА: 0.00 [14:30:03]line НСП 1% : 14.16 [14:30:03]line НДС 12% : 169.93 [14:30:03]line Наличными: 1600.00 [14:30:03]line Безнал.: 0.00 [14:30:03]line Место: АЗС № 171 "Партнер Нефть" [14:30:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:30:03]line СНО: Общий режим [14:30:03]line Чек 298 27.10.2024 14:30 [14:30:03]line Смена: 544 ФФД: 1.0 [14:30:03]line ЗНМ: 0300000109 [14:30:03]line РНМ: 0000000000091777 [14:30:03]line Версия ККМ: 001 [14:30:03]line ФМ: 0000000000871756 [14:30:03]line ФД: 202006 [14:30:03]line ФПД: 228413377020904 [14:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143002&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202006&fm=228413377020904&tin=02508201610067®Number=0000000000091777&sum=160000 [14:30:03]OFD Sender: Processing packet 202006 [packets to send 112, broken 111] [14:30:03]ProducePacketName [14:30:03]name=ofd_packets/00202006 [14:30:03]OFD Sender: To server: pG, [14:30:03]CommunicateWithHost lk.salyk.kg:30040 [14:30:03]ConnectInit lk.salyk.kg [14:30:03]written 0, free lines is 4095 [14:30:03]Connected sock=10 [14:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 62 CD 04 01 06 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 6A 4E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 15 03 00 35 04 06 00 CF BD A2 33 03 E8 81 3C F8 5C 31 45 ED 8B [14:30:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8F 3B 47 00 67 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 15 03 00 F4 03 04 00 24 FA 1D 67 B6 04 01 00 00 E3 74 E1 8C 4D 1A BD C3 [14:30:04]CommunicateWithHost err = 0 [14:30:04]CheckOFDResponse [14:30:04]1017 (14) - 77093643461234 [14:30:04]1041 (16) - 0000000000871756 [14:30:04]1040 (4) - 202006 [14:30:04]1012 (4) - 27.10.2024 08:30 [14:30:04]1206 (1) - 0 [14:30:04]OFD Sender: Remove packet 202006 [14:30:04]ProducePacketName [14:30:04]name=ofd_packets/00202006 [14:30:04]NVStorageDeleteData [14:30:04]Write to MH i2c: 01 00 00 73 24 97 [14:30:04]Write i2c OK [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: 01 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: 01 07 00 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: 01 07 00 73 24 00 00 00 00 00 99 0C 43 [14:30:04]RasterBufferAndPrint [14:30:04]line [14:30:04]line [14:30:04]line [14:30:04]line [14:30:04]line [14:30:04]written 0, free lines is 3230 [14:30:04]MH_Cut [14:30:04]Write to MH i2c: D1 01 00 7A 24 01 70 [14:30:04]Write i2c OK [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: D1 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: D1 01 00 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: D1 01 00 7A 24 00 6F [14:30:04]Write to MH i2c: 01 00 00 7B 24 9F [14:30:04]Write i2c OK [14:30:04]MH_I2C_Read... [14:30:04]OFD Sender: No OFD packet to send [14:30:05]*** Cut start [14:30:05]*** Purtial cut [14:30:05]*** Stage 1: CUTSNS_PIN = 1 [14:30:05]Read from MH i2c: 01 [14:30:05]MH_I2C_Read... [14:30:05]*** Stop cut motor [14:30:05]Read from MH i2c: 01 07 00 [14:30:05]MH_I2C_Read... [14:30:05]*** Cut end [14:30:05]Read from MH i2c: 01 07 00 7B 24 00 00 00 00 00 FF 0F B4 [14:30:05]process_action close_receipt done [14:30:05]requested_data is exist [14:30:05]produce_requested_data [14:30:05]requested_item fm.sn is exist - process it [14:30:05]wFMCommunicate request_size=4 [14:30:05]MH_SAM_APDU [14:30:05]CAPDU: 80 11 00 00 [14:30:05]Write to MH i2c: E2 08 00 7C 24 80 11 00 00 00 00 00 00 1A [14:30:05]Write i2c OK [14:30:05]MH_I2C_Read... [14:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:05]Read from MH i2c: E2 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 17 00 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 17 00 7C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6F [14:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:30:05]wFMCommunicate OK [14:30:05]requested_item fd.num is exist - process it [14:30:05]SAM_PROTO_GetFieldsCounters [14:30:05]wFMCommunicate request_size=4 [14:30:05]MH_SAM_APDU [14:30:05]CAPDU: 80 13 00 00 [14:30:05]Write to MH i2c: E2 08 00 7D 24 80 13 00 00 00 00 00 00 1D [14:30:05]Write i2c OK [14:30:05]MH_I2C_Read... [14:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:05]Read from MH i2c: E2 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 62 00 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 62 00 7D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 16 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [14:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 16 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:05]wFMCommunicate OK [14:30:05]SAM_PROTO_GetFieldsCounters done [14:30:05]requested_item shift.num is exist - process it [14:30:05]requested_item shift.opened is exist - process it [14:30:05]req_shift_opened [14:30:05]FM_GetShiftState [14:30:05]SAM_PROTO_GetShiftState [14:30:05]wFMCommunicate request_size=4 [14:30:05]MH_SAM_APDU [14:30:05]CAPDU: 80 13 01 00 [14:30:05]Write to MH i2c: E2 08 00 7E 24 80 13 01 00 00 00 00 00 1F [14:30:05]Write i2c OK [14:30:05]MH_I2C_Read... [14:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:05]Read from MH i2c: E2 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 0E 00 [14:30:05]MH_I2C_Read... [14:30:05]Read from MH i2c: E2 0E 00 7E 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [14:30:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:30:05]wFMCommunicate OK [14:30:05]SAM_PROTO_GetShiftState done [14:30:05]FM_GetShiftState done [14:30:05]req_shift_opened done [14:30:05]requested_item shift.open_date is exist - process it [14:30:05]req_shift_open_date [14:30:05]req_shift_open_date done [14:30:05]produce_requested_data done [14:30:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202006,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:30:05]process_action_free close_receipt [14:30:05]json_value_free [14:30:05]json_value_free done [14:30:05]process_json_proto returns [14:30:05]Send response to host [14:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202006,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:30:05]free response buf [14:30:05]execute_script done [14:30:05]execute_script returns [14:30:05]free content buf [14:30:05]Sock 9.Close socket [14:30:05]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [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:21]accept exits with 8 [14:32:21]New connection [14:32:21]New thread 3066641764 created [14:32:21]Thread 3066498404 joined [14:32:21]Waiting for new connection... [14:32:21] Sock 8.Parse request [14:32:21]Sock 8.Check first char [14:32:21]Sock 8.First char is OK [14:32:21]request: POST /json_proto HTTP/1.0 [14:32:21]Method: POST [14:32:21]URL: /json_proto [14:32:21]Method is POST - this is cgi request [14:32:21]url: /json_proto [14:32:21]query_string will be loaded in cgi processing [14:32:21]execute_cgi json_proto POST (null) [14:32:21]execute_cgi path=json_proto method=POST [14:32:21]POST find Content-Length [14:32:21]Host: 172.17.63.195:8080 [14:32:21]Content-Length: 677 [14:32:21]Content-Type: application/json [14:32:21] [14:32:21]POST finish read [14:32:21]Found Content-Length = 677 [14:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:32:21]execute_script... [14:32: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)449772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:32:21]POST & json_proto [14:32:21]process_json_proto [14:32:21]json parsed OK: [14:32:21]protocol is kg_v1.0 [14:32:21]action value=close_receipt [14:32:21]process_action close_receipt [14:32:21]cmd_close_receipt [14:32:21]MH_GetDate [14:32:21]Write to MH i2c: F0 00 00 7F 24 92 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: F0 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: F0 09 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: F0 09 00 7F 24 00 F6 4E 1E 67 47 1B 1E 67 4B [14:32:21]GetLastDocTimeStamp 1730039402 [14:32:21]current date 1730039542 [14:32:21]FM_GetShiftState [14:32:21]SAM_PROTO_GetShiftState [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 13 01 00 [14:32:21]Write to MH i2c: E2 08 00 80 24 80 13 01 00 00 00 00 00 21 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0E 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0E 00 80 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 23 [14:32:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:32:21]wFMCommunicate OK [14:32:21]SAM_PROTO_GetShiftState done [14:32:21]FM_GetShiftState done [14:32:21]opened in 1729987312 [14:32:21]opened+sec_in_day 1730073712 [14:32:21]quantity*price = 20003 [14:32:21]sum+1 = 20004 [14:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 299 27.10.2024 14:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202007 ФПД: 246515693135247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143222&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202007&fm=246515693135247&tin=02508201610067®Number=0000000000091777&sum=20000 [14:32:22]StoreToDocumentArchive [14:32:22]shift 544 fd 202007 [14:32:22]save to /storage/0544/doc_00202007 [14:32:22]save last doc name /storage/0544/doc_00202007 to /storage/kkm_last_doc_name [14:32:22]save OK [14:32:22]Clear old archive folders... [14:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:22]tlvbuf is 0120B240 [14:32:22]SAM_PROTO_ClearQueue [14:32:22]wFMCommunicate request_size=4 [14:32:22]MH_SAM_APDU [14:32:22]CAPDU: 80 09 00 00 [14:32:22]Write to MH i2c: E2 08 00 8D 24 80 09 00 00 00 00 00 00 23 [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:22]Read from MH i2c: E2 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 8D 24 00 90 00 25 [14:32:22]RAPDU: 90 00 [14:32:22]wFMCommunicate OK [14:32:22]SAM_PROTO_ClearQueue done [14:32:22]KKMCreateOFDPacket [14:32:22]OFDProtocolAddRootSTLVToBuf [14:32:22]FM_MakeSignedData [14:32:22]FM_MakeSignedData [14:32:22]SAM_PROTO_SignData [14:32:22]wFMCommunicate request_size=4 [14:32:22]MH_SAM_APDU [14:32:22]CAPDU: 80 0D 01 02 [14:32:22]Write to MH i2c: E2 08 00 8E 24 80 0D 01 02 00 00 00 00 2B [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:22]Read from MH i2c: E2 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 8E 24 00 90 00 26 [14:32:22]RAPDU: 90 00 [14:32:22]wFMCommunicate OK [14:32:22]wFMCommunicate request_size=255 [14:32:22]MH_SAM_APDU [14:32:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 01 00 00 F4 03 04 00 F6 4E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 15 03 00 35 04 06 00 E0 [14:32:22]Write to MH i2c: E2 02 01 8F 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 01 00 00 F4 03 04 00 F6 4E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 15 03 00 35 04 06 00 E0 00 00 A7 [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:22]Read from MH i2c: E2 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 8F 24 00 90 00 27 [14:32:22]RAPDU: 90 00 [14:32:22]wFMCommunicate OK [14:32:22]wFMCommunicate request_size=10 [14:32:22]MH_SAM_APDU [14:32:22]CAPDU: 80 0D 02 02 05 34 68 52 25 8F [14:32:22]Write to MH i2c: E2 0D 00 90 24 80 0D 02 02 05 00 34 68 52 25 8F 00 00 DA [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:22]Read from MH i2c: E2 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 03 00 90 24 00 90 00 28 [14:32:22]RAPDU: 90 00 [14:32:22]wFMCommunicate OK [14:32:22]wFMCommunicate request_size=4 [14:32:22]MH_SAM_APDU [14:32:22]CAPDU: 80 0D 03 02 [14:32:22]Write to MH i2c: E2 08 00 91 24 80 0D 03 02 00 00 00 00 30 [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:22]Read from MH i2c: E2 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 0B 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 0B 00 91 24 00 33 7F F3 E0 7A 14 3F FE 90 00 81 [14:32:22]RAPDU: 33 7F F3 E0 7A 14 3F FE 90 00 [14:32:22]wFMCommunicate OK [14:32:22]SAM_PROTO_SignData done [14:32:22]FM_MakeSignedData done [14:32:22]CreateOFDProtocolMessage [14:32:22]wFMCommunicate request_size=4 [14:32:22]MH_SAM_APDU [14:32:22]CAPDU: 80 11 00 00 [14:32:22]Write to MH i2c: E2 08 00 92 24 80 11 00 00 00 00 00 00 30 [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:22]Read from MH i2c: E2 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 17 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: E2 17 00 92 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 85 [14:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:32:22]wFMCommunicate OK [14:32:22]CreateOFDProtocolMessage done [14:32:22]OFDSenderStorePacket 202007 [14:32:22]StoreOFDPacket docnum=202007 [14:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 68 62 07 01 4B 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 01 00 00 F4 03 04 00 F6 4E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 15 03 00 35 04 06 00 E0 34 68 52 25 8F 33 7F F3 E0 7A 14 3F FE [14:32:22]CheckFolder [14:32:22]dirname=/storage/ofd_packets [14:32:22]CheckFolder done [14:32:22]ProducePacketName [14:32:22]name=ofd_packets/00202007 [14:32:22]NVStorageSaveData ofd_packets/00202007 [14:32:22]File name is /storage/ofd_packets/00202007 [14:32:22]Write 301 bytes [14:32:22]NVStorageSaveData done [14:32:22]OFDSenderStorePacket done [14:32:22]KKMCreateOFDPacket done [14:32:22]NVStorageSaveData kkm_last_timestamp [14:32:22]File name is /storage/kkm_last_timestamp [14:32:22]Write 4 bytes [14:32:22]NVStorageSaveData done [14:32:22]ExternCall_PrintAddStr [14:32:22]wPrintStart [14:32:22]Write to MH i2c: 01 00 00 93 24 B7 [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: 01 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: 01 07 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: 01 07 00 93 24 00 00 00 00 00 FF 0F CC [14:32:22]RasterBufferAndPrint [14:32:22]line Счет N : (1)449772 [14:32:22]line ИНН: 02508201610067 [14:32:22]line Контрольно-Кассовый Чек [14:32:22]line ПРОДАЖА [14:32:22]line ТРК (МРК, ГНК) : 52 [14:32:22]line Товар: 2710124130 [14:32:22]line Аи-92-К-2 [14:32:22]line 2.990 * 66.90 [14:32:22]line = 200.03 [14:32:22]line НДС 12% НСП 1% [14:32:22]line > о реализуемом товаре [14:32:22]line ОКРУГЛЕНИЕ: -0.03 [14:32:22]line ИТОГО: 200.00 [14:32:22]line Внесено: 200.00 [14:32:22]line СДАЧА: 0.00 [14:32:22]line НСП 1% : 1.77 [14:32:22]line НДС 12% : 21.24 [14:32:22]line Наличными: 200.00 [14:32:22]line Безнал.: 0.00 [14:32:22]line Место: АЗС № 171 "Партнер Нефть" [14:32:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:32:22]line СНО: Общий режим [14:32:22]line Чек 299 27.10.2024 14:32 [14:32:22]line Смена: 544 ФФД: 1.0 [14:32:22]line ЗНМ: 0300000109 [14:32:22]line РНМ: 0000000000091777 [14:32:22]line Версия ККМ: 001 [14:32:22]line ФМ: 0000000000871756 [14:32:22]line ФД: 202007 [14:32:22]line ФПД: 246515693135247 [14:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143222&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202007&fm=246515693135247&tin=02508201610067®Number=0000000000091777&sum=20000 [14:32:23]OFD Sender: Processing packet 202007 [packets to send 112, broken 111] [14:32:23]ProducePacketName [14:32:23]name=ofd_packets/00202007 [14:32:23]OFD Sender: To server: pG, [14:32:23]CommunicateWithHost lk.salyk.kg:30040 [14:32:23]ConnectInit lk.salyk.kg [14:32:23]written 0, free lines is 4095 [14:32:23]Connected sock=10 [14:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 68 62 07 01 4B 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2B 01 00 00 F4 03 04 00 F6 4E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 15 03 00 35 04 06 00 E0 34 68 52 25 8F 33 7F F3 E0 7A 14 3F FE [14:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C 8D 47 00 D0 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 15 03 00 F4 03 04 00 B0 FA 1D 67 B6 04 01 00 00 44 9A C3 63 AA F2 8D 4C [14:32:23]CommunicateWithHost err = 0 [14:32:23]CheckOFDResponse [14:32:23]1017 (14) - 77093643461234 [14:32:23]1041 (16) - 0000000000871756 [14:32:23]1040 (4) - 202007 [14:32:23]1012 (4) - 27.10.2024 08:32 [14:32:23]1206 (1) - 0 [14:32:23]OFD Sender: Remove packet 202007 [14:32:23]ProducePacketName [14:32:23]name=ofd_packets/00202007 [14:32:23]NVStorageDeleteData [14:32:23]Write to MH i2c: 01 00 00 BE 24 E2 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 BE 24 00 00 00 00 00 8A 0C 7F [14:32:23]RasterBufferAndPrint [14:32:23]line [14:32:23]line [14:32:23]line [14:32:23]line [14:32:23]line [14:32:23]written 0, free lines is 3212 [14:32:23]MH_Cut [14:32:23]Write to MH i2c: D1 01 00 C5 24 01 BB [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: D1 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: D1 01 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: D1 01 00 C5 24 00 BA [14:32:23]Write to MH i2c: 01 00 00 C6 24 EA [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:24]OFD Sender: No OFD packet to send [14:32:24]*** Cut start [14:32:24]*** Purtial cut [14:32:24]*** Stage 1: CUTSNS_PIN = 1 [14:32:24]Read from MH i2c: 01 [14:32:24]MH_I2C_Read... [14:32:24]*** Stop cut motor [14:32:24]*** Cut end [14:32:24]Read from MH i2c: 01 07 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: 01 07 00 C6 24 00 00 00 00 00 FF 0F FF [14:32:24]process_action close_receipt done [14:32:24]requested_data is exist [14:32:24]produce_requested_data [14:32:24]requested_item fm.sn is exist - process it [14:32:24]wFMCommunicate request_size=4 [14:32:24]MH_SAM_APDU [14:32:24]CAPDU: 80 11 00 00 [14:32:24]Write to MH i2c: E2 08 00 C7 24 80 11 00 00 00 00 00 00 65 [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:24]Read from MH i2c: E2 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: E2 17 00 [14:32:24]MH_I2C_Read... [14:32:24]Read from MH i2c: E2 17 00 C7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BA [14:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:32:24]wFMCommunicate OK [14:32:24]requested_item fd.num is exist - process it [14:32:24]SAM_PROTO_GetFieldsCounters [14:32:24]wFMCommunicate request_size=4 [14:32:24]MH_SAM_APDU [14:32:24]CAPDU: 80 13 00 00 [14:32:24]Write to MH i2c: E2 08 00 C8 24 80 13 00 00 00 00 00 00 68 [14:32:24]Write i2c OK [14:32:24]MH_I2C_Read... [14:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:25]Read from MH i2c: E2 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 62 00 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 62 00 C8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 17 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [14:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 17 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:25]wFMCommunicate OK [14:32:25]SAM_PROTO_GetFieldsCounters done [14:32:25]requested_item shift.num is exist - process it [14:32:25]requested_item shift.opened is exist - process it [14:32:25]req_shift_opened [14:32:25]FM_GetShiftState [14:32:25]SAM_PROTO_GetShiftState [14:32:25]wFMCommunicate request_size=4 [14:32:25]MH_SAM_APDU [14:32:25]CAPDU: 80 13 01 00 [14:32:25]Write to MH i2c: E2 08 00 C9 24 80 13 01 00 00 00 00 00 6A [14:32:25]Write i2c OK [14:32:25]MH_I2C_Read... [14:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:25]Read from MH i2c: E2 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 0E 00 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 0E 00 C9 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [14:32:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:32:25]wFMCommunicate OK [14:32:25]SAM_PROTO_GetShiftState done [14:32:25]FM_GetShiftState done [14:32:25]req_shift_opened done [14:32:25]requested_item shift.open_date is exist - process it [14:32:25]req_shift_open_date [14:32:25]req_shift_open_date done [14:32:25]produce_requested_data done [14:32:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202007,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:32:25]process_action_free close_receipt [14:32:25]json_value_free [14:32:25]json_value_free done [14:32:25]process_json_proto returns [14:32:25]Send response to host [14:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202007,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:32:25]free response buf [14:32:25]execute_script done [14:32:25]execute_script returns [14:32:25]free content buf [14:32:25]Sock 8.Close socket [14:32:25]Sock 8.Thread stoped [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:18]accept exits with 9 [14:35:18]New connection [14:35:18]New thread 3066498404 created [14:35:18]Thread 3066641764 joined [14:35:18]Waiting for new connection... [14:35:18] Sock 9.Parse request [14:35:18]Sock 9.Check first char [14:35:18]Sock 9.First char is OK [14:35:18]request: POST /json_proto HTTP/1.0 [14:35:18]Method: POST [14:35:18]URL: /json_proto [14:35:18]Method is POST - this is cgi request [14:35:18]url: /json_proto [14:35:18]query_string will be loaded in cgi processing [14:35:18]execute_cgi json_proto POST (null) [14:35:18]execute_cgi path=json_proto method=POST [14:35:18]POST find Content-Length [14:35:18]Host: 172.17.63.195:8080 [14:35:18]Content-Length: 677 [14:35:18]Content-Type: application/json [14:35:18] [14:35:18]POST finish read [14:35:18]Found Content-Length = 677 [14:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:18]execute_script... [14:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:18]POST & json_proto [14:35:18]process_json_proto [14:35:18]json parsed OK: [14:35:18]protocol is kg_v1.0 [14:35:18]action value=close_receipt [14:35:18]process_action close_receipt [14:35:18]cmd_close_receipt [14:35:18]MH_GetDate [14:35:18]Write to MH i2c: F0 00 00 CA 24 DD [14:35:18]Write i2c OK [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: F0 [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: F0 09 00 [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: F0 09 00 CA 24 00 A8 4F 1E 67 47 1B 1E 67 49 [14:35:18]GetLastDocTimeStamp 1730039542 [14:35:18]current date 1730039720 [14:35:18]FM_GetShiftState [14:35:18]SAM_PROTO_GetShiftState [14:35:18]wFMCommunicate request_size=4 [14:35:18]MH_SAM_APDU [14:35:18]CAPDU: 80 13 01 00 [14:35:18]Write to MH i2c: E2 08 00 CB 24 80 13 01 00 00 00 00 00 6C [14:35:18]Write i2c OK [14:35:18]MH_I2C_Read... [14:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:18]Read from MH i2c: E2 [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: E2 0E 00 [14:35:18]MH_I2C_Read... [14:35:18]Read from MH i2c: E2 0E 00 CB 24 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6E [14:35:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:35:18]wFMCommunicate OK [14:35:18]SAM_PROTO_GetShiftState done [14:35:18]FM_GetShiftState done [14:35:18]opened in 1729987312 [14:35:18]opened+sec_in_day 1730073712 [14:35:18]quantity*price = 50041 [14:35:18]sum+1 = 50042 [14:35: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 300 27.10.2024 14:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202008 ФПД: 145571260156853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143520&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202008&fm=145571260156853&tin=02508201610067®Number=0000000000091777&sum=50000 [14:35:20]StoreToDocumentArchive [14:35:20]shift 544 fd 202008 [14:35:20]save to /storage/0544/doc_00202008 [14:35:20]save last doc name /storage/0544/doc_00202008 to /storage/kkm_last_doc_name [14:35:20]save OK [14:35:20]Clear old archive folders... [14:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:20]tlvbuf is 0122A610 [14:35:20]SAM_PROTO_ClearQueue [14:35:20]wFMCommunicate request_size=4 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 09 00 00 [14:35:20]Write to MH i2c: E2 08 00 D8 24 80 09 00 00 00 00 00 00 6E [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 D8 24 00 90 00 70 [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]SAM_PROTO_ClearQueue done [14:35:20]KKMCreateOFDPacket [14:35:20]OFDProtocolAddRootSTLVToBuf [14:35:20]FM_MakeSignedData [14:35:20]FM_MakeSignedData [14:35:20]SAM_PROTO_SignData [14:35:20]wFMCommunicate request_size=4 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 0D 01 02 [14:35:20]Write to MH i2c: E2 08 00 D9 24 80 0D 01 02 00 00 00 00 76 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 D9 24 00 90 00 71 [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]wFMCommunicate request_size=255 [14:35:20]MH_SAM_APDU [14:35: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 32 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 2C 01 00 00 F4 03 04 00 A8 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 15 03 00 35 04 06 00 84 [14:35:20]Write to MH i2c: E2 02 01 DA 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 01 00 00 F4 03 04 00 A8 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 15 03 00 35 04 06 00 84 00 00 89 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 DA 24 00 90 00 72 [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]wFMCommunicate request_size=10 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 0D 02 02 05 65 73 40 4B B5 [14:35:20]Write to MH i2c: E2 0D 00 DB 24 80 0D 02 02 05 00 65 73 40 4B B5 00 00 9B [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 DB 24 00 90 00 73 [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]wFMCommunicate request_size=4 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 0D 03 02 [14:35:20]Write to MH i2c: E2 08 00 DC 24 80 0D 03 02 00 00 00 00 7B [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 0B 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 0B 00 DC 24 00 FB 9A 02 FE CA 6B BE 60 90 00 64 [14:35:20]RAPDU: FB 9A 02 FE CA 6B BE 60 90 00 [14:35:20]wFMCommunicate OK [14:35:20]SAM_PROTO_SignData done [14:35:20]FM_MakeSignedData done [14:35:20]CreateOFDProtocolMessage [14:35:20]wFMCommunicate request_size=4 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 11 00 00 [14:35:20]Write to MH i2c: E2 08 00 DD 24 80 11 00 00 00 00 00 00 7B [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 17 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 17 00 DD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D0 [14:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:20]wFMCommunicate OK [14:35:20]CreateOFDProtocolMessage done [14:35:20]OFDSenderStorePacket 202008 [14:35:20]StoreOFDPacket docnum=202008 [14:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 40 6E 07 01 AC 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 01 00 00 F4 03 04 00 A8 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 15 03 00 35 04 06 00 84 65 73 40 4B B5 FB 9A 02 FE CA 6B BE 60 [14:35:20]CheckFolder [14:35:20]dirname=/storage/ofd_packets [14:35:20]CheckFolder done [14:35:20]ProducePacketName [14:35:20]name=ofd_packets/00202008 [14:35:20]NVStorageSaveData ofd_packets/00202008 [14:35:20]File name is /storage/ofd_packets/00202008 [14:35:20]Write 301 bytes [14:35:20]NVStorageSaveData done [14:35:20]OFDSenderStorePacket done [14:35:20]KKMCreateOFDPacket done [14:35:20]NVStorageSaveData kkm_last_timestamp [14:35:20]File name is /storage/kkm_last_timestamp [14:35:20]Write 4 bytes [14:35:20]NVStorageSaveData done [14:35:20]ExternCall_PrintAddStr [14:35:20]wPrintStart [14:35:20]Write to MH i2c: 01 00 00 DE 24 02 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: 01 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: 01 07 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: 01 07 00 DE 24 00 00 00 00 00 FF 0F 17 [14:35:20]RasterBufferAndPrint [14:35:20]line Счет N : (1)449773 [14:35:20]line ИНН: 02508201610067 [14:35:20]line Контрольно-Кассовый Чек [14:35:20]line ПРОДАЖА [14:35:20]line ТРК (МРК, ГНК) : 31 [14:35:20]line Товар: 2710124130 [14:35:20]line Аи-92-К-2 [14:35:20]line 7.480 * 66.90 [14:35:20]line = 500.41 [14:35:20]line НДС 12% НСП 1% [14:35:20]line > о реализуемом товаре [14:35:20]line ОКРУГЛЕНИЕ: -0.41 [14:35:20]line ИТОГО: 500.00 [14:35:20]line Внесено: 500.00 [14:35:20]line СДАЧА: 0.00 [14:35:20]line НСП 1% : 4.43 [14:35:20]line НДС 12% : 53.14 [14:35:20]line Наличными: 500.00 [14:35:20]line Безнал.: 0.00 [14:35:20]line Место: АЗС № 171 "Партнер Нефть" [14:35:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:35:20]line СНО: Общий режим [14:35:20]line Чек 300 27.10.2024 14:35 [14:35:20]line Смена: 544 ФФД: 1.0 [14:35:20]line ЗНМ: 0300000109 [14:35:20]line РНМ: 0000000000091777 [14:35:20]line Версия ККМ: 001 [14:35:20]line ФМ: 0000000000871756 [14:35:20]line ФД: 202008 [14:35:20]line ФПД: 145571260156853 [14:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143520&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202008&fm=145571260156853&tin=02508201610067®Number=0000000000091777&sum=50000 [14:35:20]OFD Sender: Processing packet 202008 [packets to send 112, broken 111] [14:35:20]ProducePacketName [14:35:20]name=ofd_packets/00202008 [14:35:20]OFD Sender: To server: pG, [14:35:20]CommunicateWithHost lk.salyk.kg:30040 [14:35:20]ConnectInit lk.salyk.kg [14:35:20]written 0, free lines is 4095 [14:35:21]Connected sock=10 [14:35:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 40 6E 07 01 AC 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2C 01 00 00 F4 03 04 00 A8 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 15 03 00 35 04 06 00 84 65 73 40 4B B5 FB 9A 02 FE CA 6B BE 60 [14:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C2 A4 47 00 2C B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 15 03 00 F4 03 04 00 61 FB 1D 67 B6 04 01 00 00 0E A8 68 9A 80 9F 3F 20 [14:35:21]CommunicateWithHost err = 0 [14:35:21]CheckOFDResponse [14:35:21]1017 (14) - 77093643461234 [14:35:21]1041 (16) - 0000000000871756 [14:35:21]1040 (4) - 202008 [14:35:21]1012 (4) - 27.10.2024 08:35 [14:35:21]1206 (1) - 0 [14:35:21]OFD Sender: Remove packet 202008 [14:35:21]ProducePacketName [14:35:21]name=ofd_packets/00202008 [14:35:21]NVStorageDeleteData [14:35:21]Write to MH i2c: 01 00 00 09 25 2E [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 07 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 07 00 09 25 00 00 00 00 00 86 0C C7 [14:35:21]RasterBufferAndPrint [14:35:21]line [14:35:21]line [14:35:21]line [14:35:21]line [14:35:21]line [14:35:21]written 0, free lines is 3211 [14:35:21]MH_Cut [14:35:21]Write to MH i2c: D1 01 00 10 25 01 07 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: D1 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: D1 01 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: D1 01 00 10 25 00 06 [14:35:21]Write to MH i2c: 01 00 00 11 25 36 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]OFD Sender: No OFD packet to send [14:35:22]*** Cut start [14:35:22]*** Purtial cut [14:35:22]*** Stage 1: CUTSNS_PIN = 1 [14:35:22]Read from MH i2c: 01 [14:35:22]MH_I2C_Read... [14:35:22]*** Stop cut motor [14:35:22]*** Cut end [14:35:22]Read from MH i2c: 01 07 00 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: 01 07 00 11 25 00 00 00 00 00 FF 0F 4B [14:35:22]process_action close_receipt done [14:35:22]requested_data is exist [14:35:22]produce_requested_data [14:35:22]requested_item fm.sn is exist - process it [14:35:22]wFMCommunicate request_size=4 [14:35:22]MH_SAM_APDU [14:35:22]CAPDU: 80 11 00 00 [14:35:22]Write to MH i2c: E2 08 00 12 25 80 11 00 00 00 00 00 00 B1 [14:35:22]Write i2c OK [14:35:22]MH_I2C_Read... [14:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:22]Read from MH i2c: E2 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: E2 17 00 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: E2 17 00 12 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 06 [14:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:22]wFMCommunicate OK [14:35:22]requested_item fd.num is exist - process it [14:35:22]SAM_PROTO_GetFieldsCounters [14:35:22]wFMCommunicate request_size=4 [14:35:22]MH_SAM_APDU [14:35:22]CAPDU: 80 13 00 00 [14:35:22]Write to MH i2c: E2 08 00 13 25 80 13 00 00 00 00 00 00 B4 [14:35:22]Write i2c OK [14:35:22]MH_I2C_Read... [14:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:22]Read from MH i2c: E2 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: E2 62 00 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: E2 62 00 13 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 18 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [14:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 18 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:22]wFMCommunicate OK [14:35:22]SAM_PROTO_GetFieldsCounters done [14:35:22]requested_item shift.num is exist - process it [14:35:22]requested_item shift.opened is exist - process it [14:35:22]req_shift_opened [14:35:22]FM_GetShiftState [14:35:22]SAM_PROTO_GetShiftState [14:35:22]wFMCommunicate request_size=4 [14:35:22]MH_SAM_APDU [14:35:22]CAPDU: 80 13 01 00 [14:35:22]Write to MH i2c: E2 08 00 14 25 80 13 01 00 00 00 00 00 B6 [14:35:22]Write i2c OK [14:35:22]MH_I2C_Read... [14:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:22]Read from MH i2c: E2 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: E2 0E 00 [14:35:22]MH_I2C_Read... [14:35:22]Read from MH i2c: E2 0E 00 14 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [14:35:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:35:22]wFMCommunicate OK [14:35:22]SAM_PROTO_GetShiftState done [14:35:22]FM_GetShiftState done [14:35:22]req_shift_opened done [14:35:22]requested_item shift.open_date is exist - process it [14:35:22]req_shift_open_date [14:35:22]req_shift_open_date done [14:35:22]produce_requested_data done [14:35:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202008,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:35:22]process_action_free close_receipt [14:35:22]json_value_free [14:35:22]json_value_free done [14:35:22]process_json_proto returns [14:35:22]Send response to host [14:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202008,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:35:22]free response buf [14:35:22]execute_script done [14:35:22]execute_script returns [14:35:22]free content buf [14:35:22]Sock 9.Close socket [14:35:22]Sock 9.Thread stoped [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:47]accept exits with 8 [14:35:47]New connection [14:35:47]New thread 3066641764 created [14:35:47]Thread 3066498404 joined [14:35:47]Waiting for new connection... [14:35:47] Sock 8.Parse request [14:35:47]Sock 8.Check first char [14:35:47]Sock 8.First char is OK [14:35:47]request: POST /json_proto HTTP/1.0 [14:35:47]Method: POST [14:35:47]URL: /json_proto [14:35:47]Method is POST - this is cgi request [14:35:47]url: /json_proto [14:35:47]query_string will be loaded in cgi processing [14:35:47]execute_cgi json_proto POST (null) [14:35:47]execute_cgi path=json_proto method=POST [14:35:47]POST find Content-Length [14:35:47]Host: 172.17.63.195:8080 [14:35:47]Content-Length: 677 [14:35:47]Content-Type: application/json [14:35:47] [14:35:47]POST finish read [14:35:47]Found Content-Length = 677 [14:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:47]execute_script... [14:35: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)449774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:47]POST & json_proto [14:35:47]process_json_proto [14:35:47]json parsed OK: [14:35:47]protocol is kg_v1.0 [14:35:47]action value=close_receipt [14:35:47]process_action close_receipt [14:35:47]cmd_close_receipt [14:35:47]MH_GetDate [14:35:47]Write to MH i2c: F0 00 00 15 25 29 [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: F0 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: F0 09 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: F0 09 00 15 25 00 C4 4F 1E 67 47 1B 1E 67 B1 [14:35:47]GetLastDocTimeStamp 1730039720 [14:35:47]current date 1730039748 [14:35:47]FM_GetShiftState [14:35:47]SAM_PROTO_GetShiftState [14:35:47]wFMCommunicate request_size=4 [14:35:47]MH_SAM_APDU [14:35:47]CAPDU: 80 13 01 00 [14:35:47]Write to MH i2c: E2 08 00 16 25 80 13 01 00 00 00 00 00 B8 [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:47]Read from MH i2c: E2 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 0E 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 0E 00 16 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BA [14:35:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:35:47]wFMCommunicate OK [14:35:47]SAM_PROTO_GetShiftState done [14:35:47]FM_GetShiftState done [14:35:47]opened in 1729987312 [14:35:47]opened+sec_in_day 1730073712 [14:35:47]quantity*price = 31041 [14:35:47]sum+1 = 31043 [14:35:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 301 27.10.2024 14:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202009 ФПД: 274586602720208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143548&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202009&fm=274586602720208&tin=02508201610067®Number=0000000000091777&sum=31000 [14:35:48]StoreToDocumentArchive [14:35:48]shift 544 fd 202009 [14:35:48]save to /storage/0544/doc_00202009 [14:35:48]save last doc name /storage/0544/doc_00202009 to /storage/kkm_last_doc_name [14:35:48]save OK [14:35:48]Clear old archive folders... [14:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:48]tlvbuf is 0118F5F0 [14:35:48]SAM_PROTO_ClearQueue [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 09 00 00 [14:35:48]Write to MH i2c: E2 08 00 23 25 80 09 00 00 00 00 00 00 BA [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 03 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 03 00 23 25 00 90 00 BC [14:35:48]RAPDU: 90 00 [14:35:48]wFMCommunicate OK [14:35:48]SAM_PROTO_ClearQueue done [14:35:48]KKMCreateOFDPacket [14:35:48]OFDProtocolAddRootSTLVToBuf [14:35:48]FM_MakeSignedData [14:35:48]FM_MakeSignedData [14:35:48]SAM_PROTO_SignData [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 0D 01 02 [14:35:48]Write to MH i2c: E2 08 00 24 25 80 0D 01 02 00 00 00 00 C2 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 03 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 03 00 24 25 00 90 00 BD [14:35:48]RAPDU: 90 00 [14:35:48]wFMCommunicate OK [14:35:48]wFMCommunicate request_size=255 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 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 01 00 00 F4 03 04 00 C4 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 15 03 00 35 04 06 00 F9 [14:35:48]Write to MH i2c: E2 02 01 25 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 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 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 01 00 00 F4 03 04 00 C4 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 15 03 00 35 04 06 00 F9 00 00 2E [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** 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 25 25 00 90 00 BE [14:35:49]RAPDU: 90 00 [14:35:49]wFMCommunicate OK [14:35:49]wFMCommunicate request_size=10 [14:35:49]MH_SAM_APDU [14:35:49]CAPDU: 80 0D 02 02 05 BC 2C EA 4B D0 [14:35:49]Write to MH i2c: E2 0D 00 26 25 80 0D 02 02 05 00 BC 2C EA 4B D0 00 00 BC [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 26 25 00 90 00 BF [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 27 25 80 0D 03 02 00 00 00 00 C7 [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 27 25 00 3B 2C 84 17 BE 48 1F 37 90 00 26 [14:35:49]RAPDU: 3B 2C 84 17 BE 48 1F 37 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 28 25 80 11 00 00 00 00 00 00 C7 [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:49]Read from MH i2c: E2 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 17 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 17 00 28 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1C [14:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:49]wFMCommunicate OK [14:35:49]CreateOFDProtocolMessage done [14:35:49]OFDSenderStorePacket 202009 [14:35:49]StoreOFDPacket docnum=202009 [14:35:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B6 86 07 01 2F 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 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 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 01 00 00 F4 03 04 00 C4 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 15 03 00 35 04 06 00 F9 BC 2C EA 4B D0 3B 2C 84 17 BE 48 1F 37 [14:35:49]CheckFolder [14:35:49]dirname=/storage/ofd_packets [14:35:49]CheckFolder done [14:35:49]ProducePacketName [14:35:49]name=ofd_packets/00202009 [14:35:49]NVStorageSaveData ofd_packets/00202009 [14:35:49]File name is /storage/ofd_packets/00202009 [14:35:49]Write 301 bytes [14:35:49]NVStorageSaveData done [14:35:49]OFDSenderStorePacket done [14:35:49]KKMCreateOFDPacket done [14:35:49]NVStorageSaveData kkm_last_timestamp [14:35:49]File name is /storage/kkm_last_timestamp [14:35:49]Write 4 bytes [14:35:49]NVStorageSaveData done [14:35:49]ExternCall_PrintAddStr [14:35:49]wPrintStart [14:35:49]Write to MH i2c: 01 00 00 29 25 4E [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: 01 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: 01 07 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: 01 07 00 29 25 00 00 00 00 00 FF 0F 63 [14:35:49]RasterBufferAndPrint [14:35:49]line Счет N : (1)449774 [14:35:49]line ИНН: 02508201610067 [14:35:49]line Контрольно-Кассовый Чек [14:35:49]line ПРОДАЖА [14:35:49]line ТРК (МРК, ГНК) : 52 [14:35:49]line Товар: 2710124130 [14:35:49]line Аи-92-К-2 [14:35:49]line 4.640 * 66.90 [14:35:49]line = 310.42 [14:35:49]line НДС 12% НСП 1% [14:35:49]line > о реализуемом товаре [14:35:49]line ОКРУГЛЕНИЕ: -0.42 [14:35:49]line ИТОГО: 310.00 [14:35:49]line Внесено: 310.00 [14:35:49]line СДАЧА: 0.00 [14:35:49]line НСП 1% : 2.75 [14:35:49]line НДС 12% : 32.96 [14:35:49]line Наличными: 310.00 [14:35:49]line Безнал.: 0.00 [14:35:49]line Место: АЗС № 171 "Партнер Нефть" [14:35:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:35:49]line СНО: Общий режим [14:35:49]line Чек 301 27.10.2024 14:35 [14:35:49]line Смена: 544 ФФД: 1.0 [14:35:49]line ЗНМ: 0300000109 [14:35:49]line РНМ: 0000000000091777 [14:35:49]line Версия ККМ: 001 [14:35:49]line ФМ: 0000000000871756 [14:35:49]line ФД: 202009 [14:35:49]line ФПД: 274586602720208 [14:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143548&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202009&fm=274586602720208&tin=02508201610067®Number=0000000000091777&sum=31000 [14:35:49]OFD Sender: Processing packet 202009 [packets to send 112, broken 111] [14:35:49]ProducePacketName [14:35:49]name=ofd_packets/00202009 [14:35:49]OFD Sender: To server: pG, [14:35:49]CommunicateWithHost lk.salyk.kg:30040 [14:35:49]ConnectInit lk.salyk.kg [14:35:49]written 0, free lines is 4095 [14:35:49]Connected sock=10 [14:35:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B6 86 07 01 2F 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 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 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 01 00 00 F4 03 04 00 C4 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 15 03 00 35 04 06 00 F9 BC 2C EA 4B D0 3B 2C 84 17 BE 48 1F 37 [14:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6A E8 47 00 5C F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 15 03 00 F4 03 04 00 7E FB 1D 67 B6 04 01 00 00 D3 7C F1 4D C0 CE A4 56 [14:35:49]CommunicateWithHost err = 0 [14:35:49]CheckOFDResponse [14:35:49]1017 (14) - 77093643461234 [14:35:49]1041 (16) - 0000000000871756 [14:35:49]1040 (4) - 202009 [14:35:49]1012 (4) - 27.10.2024 08:36 [14:35:49]1206 (1) - 0 [14:35:49]OFD Sender: Remove packet 202009 [14:35:49]ProducePacketName [14:35:49]name=ofd_packets/00202009 [14:35:49]NVStorageDeleteData [14:35:49]Write to MH i2c: 01 00 00 54 25 79 [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: 01 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: 01 07 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: 01 07 00 54 25 00 00 00 00 00 8A 0C 16 [14:35:49]RasterBufferAndPrint [14:35:49]line [14:35:49]line [14:35:49]line [14:35:49]line [14:35:49]line [14:35:49]written 0, free lines is 3212 [14:35:49]MH_Cut [14:35:49]Write to MH i2c: D1 01 00 5B 25 01 52 [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: D1 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: D1 01 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: D1 01 00 5B 25 00 51 [14:35:49]Write to MH i2c: 01 00 00 5C 25 81 [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:50]OFD Sender: No OFD packet to send [14:35:50]*** Cut start [14:35:50]*** Purtial cut [14:35:50]*** Stage 1: CUTSNS_PIN = 1 [14:35:51]Read from MH i2c: 01 [14:35:51]MH_I2C_Read... [14:35:51]*** Stop cut motor [14:35:51]*** Cut end [14:35:51]Read from MH i2c: 01 07 00 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: 01 07 00 5C 25 00 00 00 00 00 FF 0F 96 [14:35:51]process_action close_receipt done [14:35:51]requested_data is exist [14:35:51]produce_requested_data [14:35:51]requested_item fm.sn is exist - process it [14:35:51]wFMCommunicate request_size=4 [14:35:51]MH_SAM_APDU [14:35:51]CAPDU: 80 11 00 00 [14:35:51]Write to MH i2c: E2 08 00 5D 25 80 11 00 00 00 00 00 00 FC [14:35:51]Write i2c OK [14:35:51]MH_I2C_Read... [14:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:51]Read from MH i2c: E2 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 17 00 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 17 00 5D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 51 [14:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:51]wFMCommunicate OK [14:35:51]requested_item fd.num is exist - process it [14:35:51]SAM_PROTO_GetFieldsCounters [14:35:51]wFMCommunicate request_size=4 [14:35:51]MH_SAM_APDU [14:35:51]CAPDU: 80 13 00 00 [14:35:51]Write to MH i2c: E2 08 00 5E 25 80 13 00 00 00 00 00 00 FF [14:35:51]Write i2c OK [14:35:51]MH_I2C_Read... [14:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:51]Read from MH i2c: E2 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 62 00 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 62 00 5E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 19 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [14:35:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 19 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:51]wFMCommunicate OK [14:35:51]SAM_PROTO_GetFieldsCounters done [14:35:51]requested_item shift.num is exist - process it [14:35:51]requested_item shift.opened is exist - process it [14:35:51]req_shift_opened [14:35:51]FM_GetShiftState [14:35:51]SAM_PROTO_GetShiftState [14:35:51]wFMCommunicate request_size=4 [14:35:51]MH_SAM_APDU [14:35:51]CAPDU: 80 13 01 00 [14:35:51]Write to MH i2c: E2 08 00 5F 25 80 13 01 00 00 00 00 00 01 [14:35:51]Write i2c OK [14:35:51]MH_I2C_Read... [14:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:51]Read from MH i2c: E2 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 0E 00 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 0E 00 5F 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 03 [14:35:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:35:51]wFMCommunicate OK [14:35:51]SAM_PROTO_GetShiftState done [14:35:51]FM_GetShiftState done [14:35:51]req_shift_opened done [14:35:51]requested_item shift.open_date is exist - process it [14:35:51]req_shift_open_date [14:35:51]req_shift_open_date done [14:35:51]produce_requested_data done [14:35:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202009,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:35:51]process_action_free close_receipt [14:35:51]json_value_free [14:35:51]json_value_free done [14:35:51]process_json_proto returns [14:35:51]Send response to host [14:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202009,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:35:51]free response buf [14:35:51]execute_script done [14:35:51]execute_script returns [14:35:51]free content buf [14:35:51]Sock 8.Close socket [14:35:51]Sock 8.Thread stoped [14:35:51]accept exits with 9 [14:35:51]New connection [14:35:51]New thread 3066498404 created [14:35:51]Thread 3066641764 joined [14:35:51]Waiting for new connection... [14:35:51] Sock 9.Parse request [14:35:51]Sock 9.Check first char [14:35:51]Sock 9.First char is OK [14:35:51]request: POST /json_proto HTTP/1.0 [14:35:51]Method: POST [14:35:51]URL: /json_proto [14:35:51]Method is POST - this is cgi request [14:35:51]url: /json_proto [14:35:51]query_string will be loaded in cgi processing [14:35:51]execute_cgi json_proto POST (null) [14:35:51]execute_cgi path=json_proto method=POST [14:35:51]POST find Content-Length [14:35:51]Host: 172.17.63.195:8080 [14:35:51]Content-Length: 670 [14:35:51]Content-Type: application/json [14:35:51] [14:35:51]POST finish read [14:35:51]Found Content-Length = 670 [14:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.120, "sum" : 350.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:51]execute_script... [14:35:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.120, "sum" : 350.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:51]POST & json_proto [14:35:51]process_json_proto [14:35:51]json parsed OK: [14:35:51]protocol is kg_v1.0 [14:35:51]action value=close_receipt [14:35:51]process_action close_receipt [14:35:51]cmd_close_receipt [14:35:51]MH_GetDate [14:35:51]Write to MH i2c: F0 00 00 60 25 74 [14:35:51]Write i2c OK [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: F0 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: F0 09 00 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: F0 09 00 60 25 00 C8 4F 1E 67 47 1B 1E 67 00 [14:35:51]GetLastDocTimeStamp 1730039748 [14:35:51]current date 1730039752 [14:35:51]FM_GetShiftState [14:35:51]SAM_PROTO_GetShiftState [14:35:51]wFMCommunicate request_size=4 [14:35:51]MH_SAM_APDU [14:35:51]CAPDU: 80 13 01 00 [14:35:51]Write to MH i2c: E2 08 00 61 25 80 13 01 00 00 00 00 00 03 [14:35:51]Write i2c OK [14:35:51]MH_I2C_Read... [14:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:51]Read from MH i2c: E2 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 0E 00 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 0E 00 61 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 05 [14:35:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:35:51]wFMCommunicate OK [14:35:51]SAM_PROTO_GetShiftState done [14:35:51]FM_GetShiftState done [14:35:51]opened in 1729987312 [14:35:51]opened+sec_in_day 1730073712 [14:35:51]quantity*price = 35020 [14:35:51]sum+1 = 35022 [14:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 302 27.10.2024 14:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202010 ФПД: 113259954839459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143552&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202010&fm=113259954839459&tin=02508201610067®Number=0000000000091777&sum=35000 [14:35:53]StoreToDocumentArchive [14:35:53]shift 544 fd 202010 [14:35:53]save to /storage/0544/doc_00202010 [14:35:53]save last doc name /storage/0544/doc_00202010 to /storage/kkm_last_doc_name [14:35:53]save OK [14:35:53]Clear old archive folders... [14:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:35:53]tlvbuf is 01209260 [14:35:53]SAM_PROTO_ClearQueue [14:35:53]wFMCommunicate request_size=4 [14:35:53]MH_SAM_APDU [14:35:53]CAPDU: 80 09 00 00 [14:35:53]Write to MH i2c: E2 08 00 6E 25 80 09 00 00 00 00 00 00 05 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:53]Read from MH i2c: E2 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 03 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 03 00 6E 25 00 90 00 07 [14:35:53]RAPDU: 90 00 [14:35:53]wFMCommunicate OK [14:35:53]SAM_PROTO_ClearQueue done [14:35:53]KKMCreateOFDPacket [14:35:53]OFDProtocolAddRootSTLVToBuf [14:35:53]FM_MakeSignedData [14:35:53]FM_MakeSignedData [14:35:53]SAM_PROTO_SignData [14:35:53]wFMCommunicate request_size=4 [14:35:53]MH_SAM_APDU [14:35:53]CAPDU: 80 0D 01 02 [14:35:53]Write to MH i2c: E2 08 00 6F 25 80 0D 01 02 00 00 00 00 0D [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:53]Read from MH i2c: E2 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 03 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 03 00 6F 25 00 90 00 08 [14:35:53]RAPDU: 90 00 [14:35:53]wFMCommunicate OK [14:35:53]wFMCommunicate request_size=255 [14:35:53]MH_SAM_APDU [14:35: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 C8 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 15 03 00 35 04 06 00 [14:35:53]Write to MH i2c: E2 02 01 70 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 C8 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 15 03 00 35 04 06 00 00 00 62 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:53]Read from MH i2c: E2 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 03 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 03 00 70 25 00 90 00 09 [14:35:53]RAPDU: 90 00 [14:35:53]wFMCommunicate OK [14:35:53]wFMCommunicate request_size=11 [14:35:53]MH_SAM_APDU [14:35:53]CAPDU: 80 0D 02 02 06 67 02 63 60 1F A3 [14:35:53]Write to MH i2c: E2 0E 00 71 25 80 0D 02 02 06 00 67 02 63 60 1F A3 00 00 0A [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:53]Read from MH i2c: E2 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 03 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 03 00 71 25 00 90 00 0A [14:35:53]RAPDU: 90 00 [14:35:53]wFMCommunicate OK [14:35:53]wFMCommunicate request_size=4 [14:35:53]MH_SAM_APDU [14:35:53]CAPDU: 80 0D 03 02 [14:35:53]Write to MH i2c: E2 08 00 72 25 80 0D 03 02 00 00 00 00 12 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:53]Read from MH i2c: E2 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 0B 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 0B 00 72 25 00 64 97 13 C8 9C 3A 6B DF 90 00 09 [14:35:53]RAPDU: 64 97 13 C8 9C 3A 6B DF 90 00 [14:35:53]wFMCommunicate OK [14:35:53]SAM_PROTO_SignData done [14:35:53]FM_MakeSignedData done [14:35:53]CreateOFDProtocolMessage [14:35:53]wFMCommunicate request_size=4 [14:35:53]MH_SAM_APDU [14:35:53]CAPDU: 80 11 00 00 [14:35:53]Write to MH i2c: E2 08 00 73 25 80 11 00 00 00 00 00 00 12 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:53]Read from MH i2c: E2 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 17 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 17 00 73 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 67 [14:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:53]wFMCommunicate OK [14:35:53]CreateOFDProtocolMessage done [14:35:53]OFDSenderStorePacket 202010 [14:35:53]StoreOFDPacket docnum=202010 [14:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 4A 36 08 01 E3 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 C8 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 15 03 00 35 04 06 00 67 02 63 60 1F A3 64 97 13 C8 9C 3A 6B DF [14:35:53]CheckFolder [14:35:53]dirname=/storage/ofd_packets [14:35:53]CheckFolder done [14:35:53]ProducePacketName [14:35:53]name=ofd_packets/00202010 [14:35:53]NVStorageSaveData ofd_packets/00202010 [14:35:53]File name is /storage/ofd_packets/00202010 [14:35:53]Write 302 bytes [14:35:53]NVStorageSaveData done [14:35:53]OFDSenderStorePacket done [14:35:53]KKMCreateOFDPacket done [14:35:53]NVStorageSaveData kkm_last_timestamp [14:35:53]File name is /storage/kkm_last_timestamp [14:35:53]Write 4 bytes [14:35:53]NVStorageSaveData done [14:35:53]ExternCall_PrintAddStr [14:35:53]wPrintStart [14:35:53]Write to MH i2c: 01 00 00 74 25 99 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 07 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 07 00 74 25 00 00 00 00 00 FF 0F AE [14:35:53]RasterBufferAndPrint [14:35:53]line Счет N : (1)449775 [14:35:53]line ИНН: 02508201610067 [14:35:53]line Контрольно-Кассовый Чек [14:35:53]line ПРОДАЖА [14:35:53]line ТРК (МРК, ГНК) : 42 [14:35:53]line Товар: 2710124130 [14:35:53]line SUPER 92-К-5 [14:35:53]line 5.120 * 68.40 [14:35:53]line = 350.21 [14:35:53]line НДС 12% НСП 1% [14:35:53]line > о реализуемом товаре [14:35:53]line ОКРУГЛЕНИЕ: -0.21 [14:35:53]line ИТОГО: 350.00 [14:35:53]line Внесено: 350.00 [14:35:53]line СДАЧА: 0.00 [14:35:53]line НСП 1% : 3.10 [14:35:53]line НДС 12% : 37.19 [14:35:53]line Наличными: 350.00 [14:35:53]line Безнал.: 0.00 [14:35:53]line Место: АЗС № 171 "Партнер Нефть" [14:35:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:35:53]line СНО: Общий режим [14:35:53]line Чек 302 27.10.2024 14:35 [14:35:53]line Смена: 544 ФФД: 1.0 [14:35:53]line ЗНМ: 0300000109 [14:35:53]line РНМ: 0000000000091777 [14:35:53]line Версия ККМ: 001 [14:35:53]line ФМ: 0000000000871756 [14:35:53]line ФД: 202010 [14:35:53]line ФПД: 113259954839459 [14:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143552&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202010&fm=113259954839459&tin=02508201610067®Number=0000000000091777&sum=35000 [14:35:53]OFD Sender: Processing packet 202010 [packets to send 112, broken 111] [14:35:53]ProducePacketName [14:35:53]name=ofd_packets/00202010 [14:35:54]OFD Sender: To server: pG, [14:35:54]CommunicateWithHost lk.salyk.kg:30040 [14:35:54]ConnectInit lk.salyk.kg [14:35:54]written 0, free lines is 4095 [14:35:54]Connected sock=11 [14:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 4A 36 08 01 E3 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 C8 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 15 03 00 35 04 06 00 67 02 63 60 1F A3 64 97 13 C8 9C 3A 6B DF [14:35:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0A 18 47 00 1E 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 15 03 00 F4 03 04 00 83 FB 1D 67 B6 04 01 00 00 86 0D 72 32 C1 41 07 A5 [14:35:54]CommunicateWithHost err = 0 [14:35:54]CheckOFDResponse [14:35:54]1017 (14) - 77093643461234 [14:35:54]1041 (16) - 0000000000871756 [14:35:54]1040 (4) - 202010 [14:35:54]1012 (4) - 27.10.2024 08:36 [14:35:54]1206 (1) - 0 [14:35:54]OFD Sender: Remove packet 202010 [14:35:54]ProducePacketName [14:35:54]name=ofd_packets/00202010 [14:35:54]NVStorageDeleteData [14:35:54]Write to MH i2c: 01 00 00 9F 25 C4 [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: 01 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: 01 07 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: 01 07 00 9F 25 00 00 00 00 00 99 0C 70 [14:35:54]RasterBufferAndPrint [14:35:54]line [14:35:54]line [14:35:54]line [14:35:54]line [14:35:54]line [14:35:54]written 0, free lines is 3233 [14:35:54]MH_Cut [14:35:54]Write to MH i2c: D1 01 00 A6 25 01 9D [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: D1 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: D1 01 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: D1 01 00 A6 25 00 9C [14:35:54]Write to MH i2c: 01 00 00 A7 25 CC [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]OFD Sender: No OFD packet to send [14:35:55]*** Cut start [14:35:55]*** Purtial cut [14:35:55]*** Stage 1: CUTSNS_PIN = 1 [14:35:55]Read from MH i2c: 01 [14:35:55]MH_I2C_Read... [14:35:55]*** Stop cut motor [14:35:55]*** Cut end [14:35:55]Read from MH i2c: 01 07 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: 01 07 00 A7 25 00 00 00 00 00 FF 0F E1 [14:35:55]process_action close_receipt done [14:35:55]requested_data is exist [14:35:55]produce_requested_data [14:35:55]requested_item fm.sn is exist - process it [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 11 00 00 [14:35:55]Write to MH i2c: E2 08 00 A8 25 80 11 00 00 00 00 00 00 47 [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 17 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 17 00 A8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9C [14:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:55]wFMCommunicate OK [14:35:55]requested_item fd.num is exist - process it [14:35:55]SAM_PROTO_GetFieldsCounters [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 13 00 00 [14:35:55]Write to MH i2c: E2 08 00 A9 25 80 13 00 00 00 00 00 00 4A [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 62 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 62 00 A9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [14:35:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:55]wFMCommunicate OK [14:35:55]SAM_PROTO_GetFieldsCounters done [14:35:55]requested_item shift.num is exist - process it [14:35:55]requested_item shift.opened is exist - process it [14:35:55]req_shift_opened [14:35:55]FM_GetShiftState [14:35:55]SAM_PROTO_GetShiftState [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 13 01 00 [14:35:55]Write to MH i2c: E2 08 00 AA 25 80 13 01 00 00 00 00 00 4C [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:56]Read from MH i2c: E2 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 0E 00 [14:35:56]MH_I2C_Read... [14:35:56]Read from MH i2c: E2 0E 00 AA 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4E [14:35:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:35:56]wFMCommunicate OK [14:35:56]SAM_PROTO_GetShiftState done [14:35:56]FM_GetShiftState done [14:35:56]req_shift_opened done [14:35:56]requested_item shift.open_date is exist - process it [14:35:56]req_shift_open_date [14:35:56]req_shift_open_date done [14:35:56]produce_requested_data done [14:35:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202010,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:35:56]process_action_free close_receipt [14:35:56]json_value_free [14:35:56]json_value_free done [14:35:56]process_json_proto returns [14:35:56]Send response to host [14:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202010,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:35:56]free response buf [14:35:56]execute_script done [14:35:56]execute_script returns [14:35:56]free content buf [14:35:56]Sock 9.Close socket [14:35:56]Sock 9.Thread stoped [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:13]accept exits with 8 [14:36:13]New connection [14:36:13]New thread 3066641764 created [14:36:13]Thread 3066498404 joined [14:36:13]Waiting for new connection... [14:36:13] Sock 8.Parse request [14:36:13]Sock 8.Check first char [14:36:13]Sock 8.First char is OK [14:36:13]request: POST /json_proto HTTP/1.0 [14:36:13]Method: POST [14:36:13]URL: /json_proto [14:36:13]Method is POST - this is cgi request [14:36:13]url: /json_proto [14:36:13]query_string will be loaded in cgi processing [14:36:13]execute_cgi json_proto POST (null) [14:36:13]execute_cgi path=json_proto method=POST [14:36:13]POST find Content-Length [14:36:13]Host: 172.17.63.195:8080 [14:36:13]Content-Length: 677 [14:36:13]Content-Type: application/json [14:36:13] [14:36:13]POST finish read [14:36:13]Found Content-Length = 677 [14:36:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:13]execute_script... [14:36:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:13]POST & json_proto [14:36:13]process_json_proto [14:36:13]json parsed OK: [14:36:13]protocol is kg_v1.0 [14:36:13]action value=close_receipt [14:36:13]process_action close_receipt [14:36:13]cmd_close_receipt [14:36:13]MH_GetDate [14:36:13]Write to MH i2c: F0 00 00 AB 25 BF [14:36:13]Write i2c OK [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: F0 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: F0 09 00 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: F0 09 00 AB 25 00 DE 4F 1E 67 47 1B 1E 67 61 [14:36:13]GetLastDocTimeStamp 1730039752 [14:36:13]current date 1730039774 [14:36:13]FM_GetShiftState [14:36:13]SAM_PROTO_GetShiftState [14:36:13]wFMCommunicate request_size=4 [14:36:13]MH_SAM_APDU [14:36:13]CAPDU: 80 13 01 00 [14:36:13]Write to MH i2c: E2 08 00 AC 25 80 13 01 00 00 00 00 00 4E [14:36:13]Write i2c OK [14:36:13]MH_I2C_Read... [14:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:13]Read from MH i2c: E2 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: E2 0E 00 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: E2 0E 00 AC 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 50 [14:36:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:36:13]wFMCommunicate OK [14:36:13]SAM_PROTO_GetShiftState done [14:36:13]FM_GetShiftState done [14:36:13]opened in 1729987312 [14:36:13]opened+sec_in_day 1730073712 [14:36:13]quantity*price = 27027 [14:36:13]sum+1 = 27029 [14:36:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 303 27.10.2024 14:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202011 ФПД: 190473662873004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143614&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202011&fm=190473662873004&tin=02508201610067®Number=0000000000091777&sum=27000 [14:36:14]StoreToDocumentArchive [14:36:14]shift 544 fd 202011 [14:36:14]save to /storage/0544/doc_00202011 [14:36:14]save last doc name /storage/0544/doc_00202011 to /storage/kkm_last_doc_name [14:36:14]save OK [14:36:14]Clear old archive folders... [14:36:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:14]tlvbuf is 011A1320 [14:36:14]SAM_PROTO_ClearQueue [14:36:14]wFMCommunicate request_size=4 [14:36:14]MH_SAM_APDU [14:36:14]CAPDU: 80 09 00 00 [14:36:14]Write to MH i2c: E2 08 00 B9 25 80 09 00 00 00 00 00 00 50 [14:36:14]Write i2c OK [14:36:14]MH_I2C_Read... [14:36:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:14]Read from MH i2c: E2 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 03 00 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 03 00 B9 25 00 90 00 52 [14:36:14]RAPDU: 90 00 [14:36:14]wFMCommunicate OK [14:36:14]SAM_PROTO_ClearQueue done [14:36:14]KKMCreateOFDPacket [14:36:14]OFDProtocolAddRootSTLVToBuf [14:36:14]FM_MakeSignedData [14:36:14]FM_MakeSignedData [14:36:14]SAM_PROTO_SignData [14:36:14]wFMCommunicate request_size=4 [14:36:14]MH_SAM_APDU [14:36:14]CAPDU: 80 0D 01 02 [14:36:14]Write to MH i2c: E2 08 00 BA 25 80 0D 01 02 00 00 00 00 58 [14:36:14]Write i2c OK [14:36:14]MH_I2C_Read... [14:36:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:14]Read from MH i2c: E2 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 03 00 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 03 00 BA 25 00 90 00 53 [14:36:14]RAPDU: 90 00 [14:36:14]wFMCommunicate OK [14:36:14]wFMCommunicate request_size=255 [14:36:14]MH_SAM_APDU [14:36:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 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 2F 01 00 00 F4 03 04 00 DE 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 15 03 00 35 04 06 00 AD [14:36:14]Write to MH i2c: E2 02 01 BB 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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 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 2F 01 00 00 F4 03 04 00 DE 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 15 03 00 35 04 06 00 AD 00 00 4D [14:36:14]Write i2c OK [14:36:14]MH_I2C_Read... [14:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:14]Read from MH i2c: E2 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 03 00 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 03 00 BB 25 00 90 00 54 [14:36:14]RAPDU: 90 00 [14:36:14]wFMCommunicate OK [14:36:14]wFMCommunicate request_size=10 [14:36:14]MH_SAM_APDU [14:36:14]CAPDU: 80 0D 02 02 05 3C 1B 03 BD AC [14:36:14]Write to MH i2c: E2 0D 00 BC 25 80 0D 02 02 05 00 3C 1B 03 BD AC 00 00 28 [14:36:14]Write i2c OK [14:36:14]MH_I2C_Read... [14:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:14]Read from MH i2c: E2 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 03 00 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 03 00 BC 25 00 90 00 55 [14:36:14]RAPDU: 90 00 [14:36:14]wFMCommunicate OK [14:36:14]wFMCommunicate request_size=4 [14:36:14]MH_SAM_APDU [14:36:14]CAPDU: 80 0D 03 02 [14:36:14]Write to MH i2c: E2 08 00 BD 25 80 0D 03 02 00 00 00 00 5D [14:36:14]Write i2c OK [14:36:14]MH_I2C_Read... [14:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:14]Read from MH i2c: E2 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 0B 00 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 0B 00 BD 25 00 50 29 F0 BC 07 2D 78 BE 90 00 ED [14:36:14]RAPDU: 50 29 F0 BC 07 2D 78 BE 90 00 [14:36:14]wFMCommunicate OK [14:36:14]SAM_PROTO_SignData done [14:36:14]FM_MakeSignedData done [14:36:14]CreateOFDProtocolMessage [14:36:14]wFMCommunicate request_size=4 [14:36:14]MH_SAM_APDU [14:36:14]CAPDU: 80 11 00 00 [14:36:14]Write to MH i2c: E2 08 00 BE 25 80 11 00 00 00 00 00 00 5D [14:36:14]Write i2c OK [14:36:14]MH_I2C_Read... [14:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:14]Read from MH i2c: E2 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 17 00 [14:36:14]MH_I2C_Read... [14:36:14]Read from MH i2c: E2 17 00 BE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B2 [14:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:36:14]wFMCommunicate OK [14:36:14]CreateOFDProtocolMessage done [14:36:14]OFDSenderStorePacket 202011 [14:36:14]StoreOFDPacket docnum=202011 [14:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 01 15 07 01 32 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 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 2F 01 00 00 F4 03 04 00 DE 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 15 03 00 35 04 06 00 AD 3C 1B 03 BD AC 50 29 F0 BC 07 2D 78 BE [14:36:14]CheckFolder [14:36:14]dirname=/storage/ofd_packets [14:36:14]CheckFolder done [14:36:14]ProducePacketName [14:36:14]name=ofd_packets/00202011 [14:36:14]NVStorageSaveData ofd_packets/00202011 [14:36:14]File name is /storage/ofd_packets/00202011 [14:36:14]Write 301 bytes [14:36:14]NVStorageSaveData done [14:36:14]OFDSenderStorePacket done [14:36:14]KKMCreateOFDPacket done [14:36:14]NVStorageSaveData kkm_last_timestamp [14:36:14]File name is /storage/kkm_last_timestamp [14:36:14]Write 4 bytes [14:36:14]NVStorageSaveData done [14:36:15]ExternCall_PrintAddStr [14:36:15]wPrintStart [14:36:15]Write to MH i2c: 01 00 00 BF 25 E4 [14:36:15]Write i2c OK [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 07 00 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 07 00 BF 25 00 00 00 00 00 FF 0F F9 [14:36:15]RasterBufferAndPrint [14:36:15]line Счет N : (1)449776 [14:36:15]line ИНН: 02508201610067 [14:36:15]line Контрольно-Кассовый Чек [14:36:15]line ПРОДАЖА [14:36:15]line ТРК (МРК, ГНК) : 62 [14:36:15]line Товар: 2710124130 [14:36:15]line Аи-92-К-2 [14:36:15]line 4.040 * 66.90 [14:36:15]line = 270.28 [14:36:15]line НДС 12% НСП 1% [14:36:15]line > о реализуемом товаре [14:36:15]line ОКРУГЛЕНИЕ: -0.28 [14:36:15]line ИТОГО: 270.00 [14:36:15]line Внесено: 270.00 [14:36:15]line СДАЧА: 0.00 [14:36:15]line НСП 1% : 2.39 [14:36:15]line НДС 12% : 28.70 [14:36:15]line Наличными: 270.00 [14:36:15]line Безнал.: 0.00 [14:36:15]line Место: АЗС № 171 "Партнер Нефть" [14:36:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:36:15]line СНО: Общий режим [14:36:15]line Чек 303 27.10.2024 14:36 [14:36:15]line Смена: 544 ФФД: 1.0 [14:36:15]line ЗНМ: 0300000109 [14:36:15]line РНМ: 0000000000091777 [14:36:15]line Версия ККМ: 001 [14:36:15]line ФМ: 0000000000871756 [14:36:15]line ФД: 202011 [14:36:15]line ФПД: 190473662873004 [14:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143614&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202011&fm=190473662873004&tin=02508201610067®Number=0000000000091777&sum=27000 [14:36:15]written 0, free lines is 4095 [14:36:15]OFD Sender: Processing packet 202011 [packets to send 112, broken 111] [14:36:15]ProducePacketName [14:36:15]name=ofd_packets/00202011 [14:36:15]OFD Sender: To server: pG, [14:36:15]CommunicateWithHost lk.salyk.kg:30040 [14:36:15]ConnectInit lk.salyk.kg [14:36:15]Connected sock=10 [14:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 01 15 07 01 32 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 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 2F 01 00 00 F4 03 04 00 DE 4F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 15 03 00 35 04 06 00 AD 3C 1B 03 BD AC 50 29 F0 BC 07 2D 78 BE [14:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 30 2E 47 00 78 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 15 03 00 F4 03 04 00 97 FB 1D 67 B6 04 01 00 00 6B DE B9 65 C0 6D 88 EA [14:36:15]CommunicateWithHost err = 0 [14:36:15]CheckOFDResponse [14:36:15]1017 (14) - 77093643461234 [14:36:15]1041 (16) - 0000000000871756 [14:36:15]1040 (4) - 202011 [14:36:15]1012 (4) - 27.10.2024 08:36 [14:36:15]1206 (1) - 0 [14:36:15]OFD Sender: Remove packet 202011 [14:36:15]ProducePacketName [14:36:15]name=ofd_packets/00202011 [14:36:15]NVStorageDeleteData [14:36:15]Write to MH i2c: 01 00 00 EA 25 0F [14:36:15]Write i2c OK [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 07 00 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: 01 07 00 EA 25 00 00 00 00 00 98 0C BA [14:36:15]RasterBufferAndPrint [14:36:15]line [14:36:15]line [14:36:15]line [14:36:15]line [14:36:15]line [14:36:15]written 0, free lines is 3232 [14:36:15]MH_Cut [14:36:15]Write to MH i2c: D1 01 00 F1 25 01 E8 [14:36:15]Write i2c OK [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: D1 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: D1 01 00 [14:36:15]MH_I2C_Read... [14:36:15]Read from MH i2c: D1 01 00 F1 25 00 E7 [14:36:15]Write to MH i2c: 01 00 00 F2 25 17 [14:36:15]Write i2c OK [14:36:15]MH_I2C_Read... [14:36:15]OFD Sender: No OFD packet to send [14:36:16]*** Cut start [14:36:16]*** Purtial cut [14:36:16]*** Stage 1: CUTSNS_PIN = 1 [14:36:16]Read from MH i2c: 01 [14:36:16]MH_I2C_Read... [14:36:16]*** Stop cut motor [14:36:16]*** Cut end [14:36:16]Read from MH i2c: 01 07 00 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: 01 07 00 F2 25 00 00 00 00 00 FF 0F 2C [14:36:16]process_action close_receipt done [14:36:16]requested_data is exist [14:36:16]produce_requested_data [14:36:16]requested_item fm.sn is exist - process it [14:36:16]wFMCommunicate request_size=4 [14:36:16]MH_SAM_APDU [14:36:16]CAPDU: 80 11 00 00 [14:36:16]Write to MH i2c: E2 08 00 F3 25 80 11 00 00 00 00 00 00 92 [14:36:16]Write i2c OK [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 [14:36:16]MH_I2C_Read... [14:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:16]Read from MH i2c: E2 17 00 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 17 00 F3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E7 [14:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:36:16]wFMCommunicate OK [14:36:16]requested_item fd.num is exist - process it [14:36:16]SAM_PROTO_GetFieldsCounters [14:36:16]wFMCommunicate request_size=4 [14:36:16]MH_SAM_APDU [14:36:16]CAPDU: 80 13 00 00 [14:36:16]Write to MH i2c: E2 08 00 F4 25 80 13 00 00 00 00 00 00 95 [14:36:16]Write i2c OK [14:36:16]MH_I2C_Read... [14:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:16]Read from MH i2c: E2 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 62 00 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 62 00 F4 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [14:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:16]wFMCommunicate OK [14:36:16]SAM_PROTO_GetFieldsCounters done [14:36:16]requested_item shift.num is exist - process it [14:36:16]requested_item shift.opened is exist - process it [14:36:16]req_shift_opened [14:36:16]FM_GetShiftState [14:36:16]SAM_PROTO_GetShiftState [14:36:16]wFMCommunicate request_size=4 [14:36:16]MH_SAM_APDU [14:36:16]CAPDU: 80 13 01 00 [14:36:16]Write to MH i2c: E2 08 00 F5 25 80 13 01 00 00 00 00 00 97 [14:36:16]Write i2c OK [14:36:16]MH_I2C_Read... [14:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:16]Read from MH i2c: E2 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 0E 00 [14:36:16]MH_I2C_Read... [14:36:16]Read from MH i2c: E2 0E 00 F5 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 99 [14:36:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:36:16]wFMCommunicate OK [14:36:16]SAM_PROTO_GetShiftState done [14:36:16]FM_GetShiftState done [14:36:16]req_shift_opened done [14:36:16]requested_item shift.open_date is exist - process it [14:36:16]req_shift_open_date [14:36:16]req_shift_open_date done [14:36:16]produce_requested_data done [14:36:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202011,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:36:16]process_action_free close_receipt [14:36:16]json_value_free [14:36:16]json_value_free done [14:36:16]process_json_proto returns [14:36:16]Send response to host [14:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202011,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:36:16]free response buf [14:36:16]execute_script done [14:36:16]execute_script returns [14:36:16]free content buf [14:36:16]Sock 8.Close socket [14:36:16]Sock 8.Thread stoped [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37: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:39]accept exits with 9 [14:45:39]New connection [14:45:39]New thread 3066498404 created [14:45:39]Thread 3066641764 joined [14:45:39]Waiting for new connection... [14:45:39] Sock 9.Parse request [14:45:39]Sock 9.Check first char [14:45:39]Sock 9.First char is OK [14:45:39]request: POST /json_proto HTTP/1.0 [14:45:39]Method: POST [14:45:39]URL: /json_proto [14:45:39]Method is POST - this is cgi request [14:45:39]url: /json_proto [14:45:39]query_string will be loaded in cgi processing [14:45:39]execute_cgi json_proto POST (null) [14:45:39]execute_cgi path=json_proto method=POST [14:45:39]POST find Content-Length [14:45:39]Host: 172.17.63.195:8080 [14:45:39]Content-Length: 677 [14:45:39]Content-Type: application/json [14:45:39] [14:45:39]POST finish read [14:45:39]Found Content-Length = 677 [14:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:45:39]execute_script... [14:45:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:45:39]POST & json_proto [14:45:39]process_json_proto [14:45:39]json parsed OK: [14:45:39]protocol is kg_v1.0 [14:45:39]action value=close_receipt [14:45:39]process_action close_receipt [14:45:39]cmd_close_receipt [14:45:39]MH_GetDate [14:45:39]Write to MH i2c: F0 00 00 F6 25 0A [14:45:39]Write i2c OK [14:45:39]MH_I2C_Read... [14:45:39]Read from MH i2c: F0 [14:45:39]MH_I2C_Read... [14:45:39]Read from MH i2c: F0 09 00 [14:45:39]MH_I2C_Read... [14:45:39]Read from MH i2c: F0 09 00 F6 25 00 14 52 1E 67 47 1B 1E 67 E5 [14:45:39]GetLastDocTimeStamp 1730039774 [14:45:39]current date 1730040340 [14:45:39]FM_GetShiftState [14:45:39]SAM_PROTO_GetShiftState [14:45:39]wFMCommunicate request_size=4 [14:45:39]MH_SAM_APDU [14:45:39]CAPDU: 80 13 01 00 [14:45:39]Write to MH i2c: E2 08 00 F7 25 80 13 01 00 00 00 00 00 99 [14:45:39]Write i2c OK [14:45:39]MH_I2C_Read... [14:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:39]Read from MH i2c: E2 [14:45:39]MH_I2C_Read... [14:45:39]Read from MH i2c: E2 0E 00 [14:45:39]MH_I2C_Read... [14:45:39]Read from MH i2c: E2 0E 00 F7 25 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9B [14:45:39]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:45:39]wFMCommunicate OK [14:45:39]SAM_PROTO_GetShiftState done [14:45:39]FM_GetShiftState done [14:45:39]opened in 1729987312 [14:45:39]opened+sec_in_day 1730073712 [14:45:39]quantity*price = 20003 [14:45:39]sum+1 = 20004 [14:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 304 27.10.2024 14:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202012 ФПД: 44197801864493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144540&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202012&fm=44197801864493&tin=02508201610067®Number=0000000000091777&sum=20000 [14:45:40]StoreToDocumentArchive [14:45:40]shift 544 fd 202012 [14:45:40]save to /storage/0544/doc_00202012 [14:45:40]save last doc name /storage/0544/doc_00202012 to /storage/kkm_last_doc_name [14:45:40]save OK [14:45:40]Clear old archive folders... [14:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:40]tlvbuf is 0122A580 [14:45:40]SAM_PROTO_ClearQueue [14:45:40]wFMCommunicate request_size=4 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 09 00 00 [14:45:40]Write to MH i2c: E2 08 00 04 26 80 09 00 00 00 00 00 00 9C [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 04 26 00 90 00 9E [14:45:40]RAPDU: 90 00 [14:45:40]wFMCommunicate OK [14:45:40]SAM_PROTO_ClearQueue done [14:45:40]KKMCreateOFDPacket [14:45:40]OFDProtocolAddRootSTLVToBuf [14:45:40]FM_MakeSignedData [14:45:40]FM_MakeSignedData [14:45:40]SAM_PROTO_SignData [14:45:40]wFMCommunicate request_size=4 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 0D 01 02 [14:45:40]Write to MH i2c: E2 08 00 05 26 80 0D 01 02 00 00 00 00 A4 [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:40]Read from MH i2c: E2 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 [14:45:40]MH_I2C_Read... [14:45:40]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [14:45:40]RAPDU: 90 00 [14:45:40]wFMCommunicate OK [14:45:40]wFMCommunicate request_size=255 [14:45:40]MH_SAM_APDU [14:45:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 01 00 00 F4 03 04 00 14 52 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 15 03 00 35 04 06 00 28 [14:45:40]Write to MH i2c: E2 02 01 06 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 01 00 00 F4 03 04 00 14 52 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 15 03 00 35 04 06 00 28 00 00 94 [14:45:40]Write i2c OK [14:45:40]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 06 26 00 90 00 A0 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]wFMCommunicate request_size=10 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 0D 02 02 05 32 9A 47 AD 2D [14:45:41]Write to MH i2c: E2 0D 00 07 26 80 0D 02 02 05 00 32 9A 47 AD 2D 00 00 9E [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 03 00 07 26 00 90 00 A1 [14:45:41]RAPDU: 90 00 [14:45:41]wFMCommunicate OK [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 0D 03 02 [14:45:41]Write to MH i2c: E2 08 00 08 26 80 0D 03 02 00 00 00 00 A9 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 0B 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 0B 00 08 26 00 BC 2C 7E D5 0C 6F D8 DF 90 00 17 [14:45:41]RAPDU: BC 2C 7E D5 0C 6F D8 DF 90 00 [14:45:41]wFMCommunicate OK [14:45:41]SAM_PROTO_SignData done [14:45:41]FM_MakeSignedData done [14:45:41]CreateOFDProtocolMessage [14:45:41]wFMCommunicate request_size=4 [14:45:41]MH_SAM_APDU [14:45:41]CAPDU: 80 11 00 00 [14:45:41]Write to MH i2c: E2 08 00 09 26 80 11 00 00 00 00 00 00 A9 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:41]Read from MH i2c: E2 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 17 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: E2 17 00 09 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FE [14:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:45:41]wFMCommunicate OK [14:45:41]CreateOFDProtocolMessage done [14:45:41]OFDSenderStorePacket 202012 [14:45:41]StoreOFDPacket docnum=202012 [14:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 47 1E 07 01 78 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 01 00 00 F4 03 04 00 14 52 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 15 03 00 35 04 06 00 28 32 9A 47 AD 2D BC 2C 7E D5 0C 6F D8 DF [14:45:41]CheckFolder [14:45:41]dirname=/storage/ofd_packets [14:45:41]CheckFolder done [14:45:41]ProducePacketName [14:45:41]name=ofd_packets/00202012 [14:45:41]NVStorageSaveData ofd_packets/00202012 [14:45:41]File name is /storage/ofd_packets/00202012 [14:45:41]Write 301 bytes [14:45:41]NVStorageSaveData done [14:45:41]OFDSenderStorePacket done [14:45:41]KKMCreateOFDPacket done [14:45:41]NVStorageSaveData kkm_last_timestamp [14:45:41]File name is /storage/kkm_last_timestamp [14:45:41]Write 4 bytes [14:45:41]NVStorageSaveData done [14:45:41]ExternCall_PrintAddStr [14:45:41]wPrintStart [14:45:41]Write to MH i2c: 01 00 00 0A 26 30 [14:45:41]Write i2c OK [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 07 00 [14:45:41]MH_I2C_Read... [14:45:41]Read from MH i2c: 01 07 00 0A 26 00 00 00 00 00 FF 0F 45 [14:45:41]RasterBufferAndPrint [14:45:41]line Счет N : (1)449777 [14:45:41]line ИНН: 02508201610067 [14:45:41]line Контрольно-Кассовый Чек [14:45:41]line ПРОДАЖА [14:45:41]line ТРК (МРК, ГНК) : 31 [14:45:41]line Товар: 2710124130 [14:45:41]line Аи-92-К-2 [14:45:41]line 2.990 * 66.90 [14:45:41]line = 200.03 [14:45:41]line НДС 12% НСП 1% [14:45:41]line > о реализуемом товаре [14:45:41]line ОКРУГЛЕНИЕ: -0.03 [14:45:41]line ИТОГО: 200.00 [14:45:41]line Внесено: 200.00 [14:45:41]line СДАЧА: 0.00 [14:45:41]line НСП 1% : 1.77 [14:45:41]line НДС 12% : 21.24 [14:45:41]line Наличными: 200.00 [14:45:41]line Безнал.: 0.00 [14:45:41]line Место: АЗС № 171 "Партнер Нефть" [14:45:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:45:41]line СНО: Общий режим [14:45:41]line Чек 304 27.10.2024 14:45 [14:45:41]line Смена: 544 ФФД: 1.0 [14:45:41]line ЗНМ: 0300000109 [14:45:41]line РНМ: 0000000000091777 [14:45:41]line Версия ККМ: 001 [14:45:41]line ФМ: 0000000000871756 [14:45:41]line ФД: 202012 [14:45:41]line ФПД: 44197801864493 [14:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144540&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202012&fm=44197801864493&tin=02508201610067®Number=0000000000091777&sum=20000 [14:45:41]OFD Sender: Processing packet 202012 [packets to send 112, broken 111] [14:45:41]ProducePacketName [14:45:41]name=ofd_packets/00202012 [14:45:41]OFD Sender: To server: pG, [14:45:41]CommunicateWithHost lk.salyk.kg:30040 [14:45:41]ConnectInit lk.salyk.kg [14:45:41]written 0, free lines is 4095 [14:45:41]Connected sock=10 [14:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 47 1E 07 01 78 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 01 00 00 F4 03 04 00 14 52 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 15 03 00 35 04 06 00 28 32 9A 47 AD 2D BC 2C 7E D5 0C 6F D8 DF [14:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 46 43 47 00 8F F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 15 03 00 F4 03 04 00 CE FD 1D 67 B6 04 01 00 00 89 D5 82 7A B0 45 C7 C3 [14:45:41]CommunicateWithHost err = 0 [14:45:41]CheckOFDResponse [14:45:41]1017 (14) - 77093643461234 [14:45:41]1041 (16) - 0000000000871756 [14:45:41]1040 (4) - 202012 [14:45:41]1012 (4) - 27.10.2024 08:46 [14:45:41]1206 (1) - 0 [14:45:41]OFD Sender: Remove packet 202012 [14:45:41]ProducePacketName [14:45:41]name=ofd_packets/00202012 [14:45:41]NVStorageDeleteData [14:45:42]Write to MH i2c: 01 00 00 35 26 5B [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: 01 07 00 35 26 00 00 00 00 00 82 0C F0 [14:45:42]RasterBufferAndPrint [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]line [14:45:42]written 0, free lines is 3207 [14:45:42]MH_Cut [14:45:42]Write to MH i2c: D1 01 00 3C 26 01 34 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 01 00 [14:45:42]MH_I2C_Read... [14:45:42]Read from MH i2c: D1 01 00 3C 26 00 33 [14:45:42]Write to MH i2c: 01 00 00 3D 26 63 [14:45:42]Write i2c OK [14:45:42]MH_I2C_Read... [14:45:42]OFD Sender: No OFD packet to send [14:45:43]*** Cut start [14:45:43]*** Purtial cut [14:45:43]*** Stage 1: CUTSNS_PIN = 1 [14:45:43]Read from MH i2c: 01 [14:45:43]MH_I2C_Read... [14:45:43]*** Stop cut motor [14:45:43]*** Cut end [14:45:43]Read from MH i2c: 01 07 00 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: 01 07 00 3D 26 00 00 00 00 00 FF 0F 78 [14:45:43]process_action close_receipt done [14:45:43]requested_data is exist [14:45:43]produce_requested_data [14:45:43]requested_item fm.sn is exist - process it [14:45:43]wFMCommunicate request_size=4 [14:45:43]MH_SAM_APDU [14:45:43]CAPDU: 80 11 00 00 [14:45:43]Write to MH i2c: E2 08 00 3E 26 80 11 00 00 00 00 00 00 DE [14:45:43]Write i2c OK [14:45:43]MH_I2C_Read... [14:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:43]Read from MH i2c: E2 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 17 00 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 17 00 3E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 33 [14:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:45:43]wFMCommunicate OK [14:45:43]requested_item fd.num is exist - process it [14:45:43]SAM_PROTO_GetFieldsCounters [14:45:43]wFMCommunicate request_size=4 [14:45:43]MH_SAM_APDU [14:45:43]CAPDU: 80 13 00 00 [14:45:43]Write to MH i2c: E2 08 00 3F 26 80 13 00 00 00 00 00 00 E1 [14:45:43]Write i2c OK [14:45:43]MH_I2C_Read... [14:45:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:43]Read from MH i2c: E2 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 62 00 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 62 00 3F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [14:45:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:43]wFMCommunicate OK [14:45:43]SAM_PROTO_GetFieldsCounters done [14:45:43]requested_item shift.num is exist - process it [14:45:43]requested_item shift.opened is exist - process it [14:45:43]req_shift_opened [14:45:43]FM_GetShiftState [14:45:43]SAM_PROTO_GetShiftState [14:45:43]wFMCommunicate request_size=4 [14:45:43]MH_SAM_APDU [14:45:43]CAPDU: 80 13 01 00 [14:45:43]Write to MH i2c: E2 08 00 40 26 80 13 01 00 00 00 00 00 E3 [14:45:43]Write i2c OK [14:45:43]MH_I2C_Read... [14:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:43]Read from MH i2c: E2 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 0E 00 [14:45:43]MH_I2C_Read... [14:45:43]Read from MH i2c: E2 0E 00 40 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E5 [14:45:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:45:43]wFMCommunicate OK [14:45:43]SAM_PROTO_GetShiftState done [14:45:43]FM_GetShiftState done [14:45:43]req_shift_opened done [14:45:43]requested_item shift.open_date is exist - process it [14:45:43]req_shift_open_date [14:45:43]req_shift_open_date done [14:45:43]produce_requested_data done [14:45:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202012,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:45:43]process_action_free close_receipt [14:45:43]json_value_free [14:45:43]json_value_free done [14:45:43]process_json_proto returns [14:45:43]Send response to host [14:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202012,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:45:43]free response buf [14:45:43]execute_script done [14:45:43]execute_script returns [14:45:43]free content buf [14:45:43]Sock 9.Close socket [14:45:43]Sock 9.Thread stoped [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:14]accept exits with 8 [14:51:14]New connection [14:51:14]New thread 3066641764 created [14:51:14]Thread 3066498404 joined [14:51:14]Waiting for new connection... [14:51:14] Sock 8.Parse request [14:51:14]Sock 8.Check first char [14:51:14]Sock 8.First char is OK [14:51:14]request: POST /json_proto HTTP/1.0 [14:51:14]Method: POST [14:51:14]URL: /json_proto [14:51:14]Method is POST - this is cgi request [14:51:14]url: /json_proto [14:51:14]query_string will be loaded in cgi processing [14:51:14]execute_cgi json_proto POST (null) [14:51:14]execute_cgi path=json_proto method=POST [14:51:14]POST find Content-Length [14:51:14]Host: 172.17.63.195:8080 [14:51:14]Content-Length: 675 [14:51:14]Content-Type: application/json [14:51:14] [14:51:14]POST finish read [14:51:14]Found Content-Length = 675 [14:51:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:51:14]execute_script... [14:51: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)449778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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:51:14]POST & json_proto [14:51:14]process_json_proto [14:51:14]json parsed OK: [14:51:14]protocol is kg_v1.0 [14:51:14]action value=close_receipt [14:51:14]process_action close_receipt [14:51:14]cmd_close_receipt [14:51:14]MH_GetDate [14:51:14]Write to MH i2c: F0 00 00 41 26 56 [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: F0 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: F0 09 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: F0 09 00 41 26 00 63 53 1E 67 47 1B 1E 67 81 [14:51:14]GetLastDocTimeStamp 1730040340 [14:51:14]current date 1730040675 [14:51:14]FM_GetShiftState [14:51:14]SAM_PROTO_GetShiftState [14:51:14]wFMCommunicate request_size=4 [14:51:14]MH_SAM_APDU [14:51:14]CAPDU: 80 13 01 00 [14:51:14]Write to MH i2c: E2 08 00 42 26 80 13 01 00 00 00 00 00 E5 [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:14]Read from MH i2c: E2 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 0E 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 0E 00 42 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E7 [14:51:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:51:14]wFMCommunicate OK [14:51:14]SAM_PROTO_GetShiftState done [14:51:14]FM_GetShiftState done [14:51:14]opened in 1729987312 [14:51:14]opened+sec_in_day 1730073712 [14:51:14]quantity*price = 100000 [14:51:14]sum+1 = 100002 [14:51:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 305 27.10.2024 14:51 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202013 ФПД: 34935908516282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145115&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202013&fm=34935908516282&tin=02508201610067®Number=0000000000091777&sum=100000 [14:51:15]StoreToDocumentArchive [14:51:15]shift 544 fd 202013 [14:51:15]save to /storage/0544/doc_00202013 [14:51:15]save last doc name /storage/0544/doc_00202013 to /storage/kkm_last_doc_name [14:51:15]save OK [14:51:15]Clear old archive folders... [14:51:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:51:15]tlvbuf is 011B13B0 [14:51:15]SAM_PROTO_ClearQueue [14:51:15]wFMCommunicate request_size=4 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 09 00 00 [14:51:15]Write to MH i2c: E2 08 00 4F 26 80 09 00 00 00 00 00 00 E7 [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 03 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 03 00 4F 26 00 90 00 E9 [14:51:15]RAPDU: 90 00 [14:51:15]wFMCommunicate OK [14:51:15]SAM_PROTO_ClearQueue done [14:51:15]KKMCreateOFDPacket [14:51:15]OFDProtocolAddRootSTLVToBuf [14:51:15]FM_MakeSignedData [14:51:15]FM_MakeSignedData [14:51:15]SAM_PROTO_SignData [14:51:15]wFMCommunicate request_size=4 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 0D 01 02 [14:51:15]Write to MH i2c: E2 08 00 50 26 80 0D 01 02 00 00 00 00 EF [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 03 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 03 00 50 26 00 90 00 EA [14:51:15]RAPDU: 90 00 [14:51:15]wFMCommunicate OK [14:51:15]wFMCommunicate request_size=255 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 01 00 00 F4 03 04 00 63 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 15 03 00 35 04 06 00 [14:51:15]Write to MH i2c: E2 02 01 51 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 20 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 31 01 00 00 F4 03 04 00 63 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 15 03 00 35 04 06 00 00 00 1C [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 03 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 03 00 51 26 00 90 00 EB [14:51:15]RAPDU: 90 00 [14:51:15]wFMCommunicate OK [14:51:15]wFMCommunicate request_size=11 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 0D 02 02 06 1F C6 26 6A C1 BA [14:51:15]Write to MH i2c: E2 0E 00 52 26 80 0D 02 02 06 00 1F C6 26 6A C1 BA 00 00 EE [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 03 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 03 00 52 26 00 90 00 EC [14:51:15]RAPDU: 90 00 [14:51:15]wFMCommunicate OK [14:51:15]wFMCommunicate request_size=4 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 0D 03 02 [14:51:15]Write to MH i2c: E2 08 00 53 26 80 0D 03 02 00 00 00 00 F4 [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 0B 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 0B 00 53 26 00 48 68 20 BD CD 7B AA AB 90 00 1F [14:51:15]RAPDU: 48 68 20 BD CD 7B AA AB 90 00 [14:51:15]wFMCommunicate OK [14:51:15]SAM_PROTO_SignData done [14:51:15]FM_MakeSignedData done [14:51:15]CreateOFDProtocolMessage [14:51:15]wFMCommunicate request_size=4 [14:51:15]MH_SAM_APDU [14:51:15]CAPDU: 80 11 00 00 [14:51:15]Write to MH i2c: E2 08 00 54 26 80 11 00 00 00 00 00 00 F4 [14:51:15]Write i2c OK [14:51:15]MH_I2C_Read... [14:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:15]Read from MH i2c: E2 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 17 00 [14:51:15]MH_I2C_Read... [14:51:15]Read from MH i2c: E2 17 00 54 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 49 [14:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:51:15]wFMCommunicate OK [14:51:15]CreateOFDProtocolMessage done [14:51:15]OFDSenderStorePacket 202013 [14:51:15]StoreOFDPacket docnum=202013 [14:51:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 40 66 08 01 01 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 01 00 00 F4 03 04 00 63 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 15 03 00 35 04 06 00 1F C6 26 6A C1 BA 48 68 20 BD CD 7B AA AB [14:51:15]CheckFolder [14:51:15]dirname=/storage/ofd_packets [14:51:15]CheckFolder done [14:51:15]ProducePacketName [14:51:15]name=ofd_packets/00202013 [14:51:15]NVStorageSaveData ofd_packets/00202013 [14:51:15]File name is /storage/ofd_packets/00202013 [14:51:15]Write 302 bytes [14:51:15]NVStorageSaveData done [14:51:15]OFDSenderStorePacket done [14:51:15]KKMCreateOFDPacket done [14:51:15]NVStorageSaveData kkm_last_timestamp [14:51:15]File name is /storage/kkm_last_timestamp [14:51:15]Write 4 bytes [14:51:15]NVStorageSaveData done [14:51:16]ExternCall_PrintAddStr [14:51:16]wPrintStart [14:51:16]Write to MH i2c: 01 00 00 55 26 7B [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: 01 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: 01 07 00 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: 01 07 00 55 26 00 00 00 00 00 FF 0F 90 [14:51:16]RasterBufferAndPrint [14:51:16]line Счет N : (1)449778 [14:51:16]line ИНН: 02508201610067 [14:51:16]line Контрольно-Кассовый Чек [14:51:16]line ПРОДАЖА [14:51:16]line ТРК (МРК, ГНК) : 42 [14:51:16]line Товар: 2710124130 [14:51:16]line SUPER 92-К-5 [14:51:16]line 14.620 * 68.40 [14:51:16]line = 1000.01 [14:51:16]line НДС 12% НСП 1% [14:51:16]line > о реализуемом товаре [14:51:16]line ОКРУГЛЕНИЕ: -0.01 [14:51:16]line ИТОГО: 1000.00 [14:51:16]line Внесено: 1000.00 [14:51:16]line СДАЧА: 0.00 [14:51:16]line НСП 1% : 8.85 [14:51:16]line НДС 12% : 106.20 [14:51:16]line Наличными: 1000.00 [14:51:16]line Безнал.: 0.00 [14:51:16]line Место: АЗС № 171 "Партнер Нефть" [14:51:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:51:16]line СНО: Общий режим [14:51:16]line Чек 305 27.10.2024 14:51 [14:51:16]line Смена: 544 ФФД: 1.0 [14:51:16]line ЗНМ: 0300000109 [14:51:16]line РНМ: 0000000000091777 [14:51:16]line Версия ККМ: 001 [14:51:16]line ФМ: 0000000000871756 [14:51:16]line ФД: 202013 [14:51:16]line ФПД: 34935908516282 [14:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145115&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202013&fm=34935908516282&tin=02508201610067®Number=0000000000091777&sum=100000 [14:51:16]OFD Sender: Processing packet 202013 [packets to send 112, broken 111] [14:51:16]ProducePacketName [14:51:16]name=ofd_packets/00202013 [14:51:16]OFD Sender: To server: pG, [14:51:16]CommunicateWithHost lk.salyk.kg:30040 [14:51:16]ConnectInit lk.salyk.kg [14:51:16]written 0, free lines is 4095 [14:51:16]Connected sock=10 [14:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 40 66 08 01 01 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 31 01 00 00 F4 03 04 00 63 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 15 03 00 35 04 06 00 1F C6 26 6A C1 BA 48 68 20 BD CD 7B AA AB [14:51:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4A 19 47 00 1F EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 15 03 00 F4 03 04 00 1D FF 1D 67 B6 04 01 00 00 5E 02 CC 16 CF D2 3C B8 [14:51:16]CommunicateWithHost err = 0 [14:51:16]CheckOFDResponse [14:51:16]1017 (14) - 77093643461234 [14:51:16]1041 (16) - 0000000000871756 [14:51:16]1040 (4) - 202013 [14:51:16]1012 (4) - 27.10.2024 08:51 [14:51:16]1206 (1) - 0 [14:51:16]OFD Sender: Remove packet 202013 [14:51:16]ProducePacketName [14:51:16]name=ofd_packets/00202013 [14:51:16]NVStorageDeleteData [14:51:16]Write to MH i2c: 01 00 00 80 26 A6 [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: 01 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: 01 07 00 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: 01 07 00 80 26 00 00 00 00 00 85 0C 3E [14:51:16]RasterBufferAndPrint [14:51:16]line [14:51:16]line [14:51:16]line [14:51:16]line [14:51:16]line [14:51:16]written 0, free lines is 3210 [14:51:16]MH_Cut [14:51:16]Write to MH i2c: D1 01 00 87 26 01 7F [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: D1 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: D1 01 00 [14:51:16]MH_I2C_Read... [14:51:16]Read from MH i2c: D1 01 00 87 26 00 7E [14:51:16]Write to MH i2c: 01 00 00 88 26 AE [14:51:16]Write i2c OK [14:51:16]MH_I2C_Read... [14:51:17]OFD Sender: No OFD packet to send [14:51:17]*** Cut start [14:51:17]*** Purtial cut [14:51:17]*** Stage 1: CUTSNS_PIN = 1 [14:51:17]Read from MH i2c: 01 [14:51:17]MH_I2C_Read... [14:51:17]*** Stop cut motor [14:51:17]*** Cut end [14:51:17]Read from MH i2c: 01 07 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: 01 07 00 88 26 00 00 00 00 00 FF 0F C3 [14:51:17]process_action close_receipt done [14:51:17]requested_data is exist [14:51:17]produce_requested_data [14:51:17]requested_item fm.sn is exist - process it [14:51:17]wFMCommunicate request_size=4 [14:51:17]MH_SAM_APDU [14:51:17]CAPDU: 80 11 00 00 [14:51:17]Write to MH i2c: E2 08 00 89 26 80 11 00 00 00 00 00 00 29 [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 17 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 17 00 89 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7E [14:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:51:18]wFMCommunicate OK [14:51:18]requested_item fd.num is exist - process it [14:51:18]SAM_PROTO_GetFieldsCounters [14:51:18]wFMCommunicate request_size=4 [14:51:18]MH_SAM_APDU [14:51:18]CAPDU: 80 13 00 00 [14:51:18]Write to MH i2c: E2 08 00 8A 26 80 13 00 00 00 00 00 00 2C [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 62 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 62 00 8A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:18]wFMCommunicate OK [14:51:18]SAM_PROTO_GetFieldsCounters done [14:51:18]requested_item shift.num is exist - process it [14:51:18]requested_item shift.opened is exist - process it [14:51:18]req_shift_opened [14:51:18]FM_GetShiftState [14:51:18]SAM_PROTO_GetShiftState [14:51:18]wFMCommunicate request_size=4 [14:51:18]MH_SAM_APDU [14:51:18]CAPDU: 80 13 01 00 [14:51:18]Write to MH i2c: E2 08 00 8B 26 80 13 01 00 00 00 00 00 2E [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 0E 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 0E 00 8B 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 30 [14:51:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:51:18]wFMCommunicate OK [14:51:18]SAM_PROTO_GetShiftState done [14:51:18]FM_GetShiftState done [14:51:18]req_shift_opened done [14:51:18]requested_item shift.open_date is exist - process it [14:51:18]req_shift_open_date [14:51:18]req_shift_open_date done [14:51:18]produce_requested_data done [14:51:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202013,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:51:18]process_action_free close_receipt [14:51:18]json_value_free [14:51:18]json_value_free done [14:51:18]process_json_proto returns [14:51:18]Send response to host [14:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202013,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:51:18]free response buf [14:51:18]execute_script done [14:51:18]execute_script returns [14:51:18]free content buf [14:51:18]Sock 8.Close socket [14:51:18]Sock 8.Thread stoped [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:17]accept exits with 9 [14:53:17]New connection [14:53:17]New thread 3066498404 created [14:53:17]Thread 3066641764 joined [14:53:17]Waiting for new connection... [14:53:17] Sock 9.Parse request [14:53:17]Sock 9.Check first char [14:53:17]Sock 9.First char is OK [14:53:17]request: POST /json_proto HTTP/1.0 [14:53:17]Method: POST [14:53:17]URL: /json_proto [14:53:17]Method is POST - this is cgi request [14:53:17]url: /json_proto [14:53:17]query_string will be loaded in cgi processing [14:53:17]execute_cgi json_proto POST (null) [14:53:17]execute_cgi path=json_proto method=POST [14:53:17]POST find Content-Length [14:53:17]Host: 172.17.63.195:8080 [14:53:17]Content-Length: 677 [14:53:17]Content-Type: application/json [14:53:17] [14:53:17]POST finish read [14:53:17]Found Content-Length = 677 [14:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:17]execute_script... [14:53:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:17]POST & json_proto [14:53:17]process_json_proto [14:53:17]json parsed OK: [14:53:17]protocol is kg_v1.0 [14:53:17]action value=close_receipt [14:53:17]process_action close_receipt [14:53:17]cmd_close_receipt [14:53:17]MH_GetDate [14:53:17]Write to MH i2c: F0 00 00 8C 26 A1 [14:53:17]Write i2c OK [14:53:17]MH_I2C_Read... [14:53:17]Read from MH i2c: F0 [14:53:17]MH_I2C_Read... [14:53:17]Read from MH i2c: F0 09 00 [14:53:17]MH_I2C_Read... [14:53:17]Read from MH i2c: F0 09 00 8C 26 00 DE 53 1E 67 47 1B 1E 67 47 [14:53:17]GetLastDocTimeStamp 1730040675 [14:53:17]current date 1730040798 [14:53:17]FM_GetShiftState [14:53:17]SAM_PROTO_GetShiftState [14:53:17]wFMCommunicate request_size=4 [14:53:17]MH_SAM_APDU [14:53:17]CAPDU: 80 13 01 00 [14:53:17]Write to MH i2c: E2 08 00 8D 26 80 13 01 00 00 00 00 00 30 [14:53:17]Write i2c OK [14:53:17]MH_I2C_Read... [14:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:17]Read from MH i2c: E2 [14:53:17]MH_I2C_Read... [14:53:17]Read from MH i2c: E2 0E 00 [14:53:17]MH_I2C_Read... [14:53:17]Read from MH i2c: E2 0E 00 8D 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 32 [14:53:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:53:17]wFMCommunicate OK [14:53:17]SAM_PROTO_GetShiftState done [14:53:17]FM_GetShiftState done [14:53:17]opened in 1729987312 [14:53:17]opened+sec_in_day 1730073712 [14:53:17]quantity*price = 50041 [14:53:17]sum+1 = 50042 [14:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 306 27.10.2024 14:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202014 ФПД: 87528887196815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145318&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202014&fm=87528887196815&tin=02508201610067®Number=0000000000091777&sum=50000 [14:53:18]StoreToDocumentArchive [14:53:18]shift 544 fd 202014 [14:53:18]save to /storage/0544/doc_00202014 [14:53:18]save last doc name /storage/0544/doc_00202014 to /storage/kkm_last_doc_name [14:53:18]save OK [14:53:18]Clear old archive folders... [14:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:18]tlvbuf is 0122A200 [14:53:18]SAM_PROTO_ClearQueue [14:53:18]wFMCommunicate request_size=4 [14:53:18]MH_SAM_APDU [14:53:18]CAPDU: 80 09 00 00 [14:53:18]Write to MH i2c: E2 08 00 9A 26 80 09 00 00 00 00 00 00 32 [14:53:18]Write i2c OK [14:53:18]MH_I2C_Read... [14:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:18]Read from MH i2c: E2 [14:53:18]MH_I2C_Read... [14:53:18]Read from MH i2c: E2 03 00 [14:53:18]MH_I2C_Read... [14:53:18]Read from MH i2c: E2 03 00 9A 26 00 90 00 34 [14:53:18]RAPDU: 90 00 [14:53:18]wFMCommunicate OK [14:53:18]SAM_PROTO_ClearQueue done [14:53:18]KKMCreateOFDPacket [14:53:18]OFDProtocolAddRootSTLVToBuf [14:53:18]FM_MakeSignedData [14:53:18]FM_MakeSignedData [14:53:18]SAM_PROTO_SignData [14:53:18]wFMCommunicate request_size=4 [14:53:18]MH_SAM_APDU [14:53:18]CAPDU: 80 0D 01 02 [14:53:18]Write to MH i2c: E2 08 00 9B 26 80 0D 01 02 00 00 00 00 3A [14:53:18]Write i2c OK [14:53:18]MH_I2C_Read... [14:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:18]Read from MH i2c: E2 [14:53:18]MH_I2C_Read... [14:53:18]Read from MH i2c: E2 03 00 [14:53:18]MH_I2C_Read... [14:53:18]Read from MH i2c: E2 03 00 9B 26 00 90 00 35 [14:53:18]RAPDU: 90 00 [14:53:18]wFMCommunicate OK [14:53:18]wFMCommunicate request_size=255 [14:53:18]MH_SAM_APDU [14:53:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 01 00 00 F4 03 04 00 DE 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 15 03 00 35 04 06 00 4F [14:53:18]Write to MH i2c: E2 02 01 9C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 01 00 00 F4 03 04 00 DE 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 15 03 00 35 04 06 00 4F 00 00 5E [14:53:18]Write i2c OK [14:53:18]MH_I2C_Read... [14:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:19]Read from MH i2c: E2 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 03 00 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 03 00 9C 26 00 90 00 36 [14:53:19]RAPDU: 90 00 [14:53:19]wFMCommunicate OK [14:53:19]wFMCommunicate request_size=10 [14:53:19]MH_SAM_APDU [14:53:19]CAPDU: 80 0D 02 02 05 9B 68 3A 9C 8F [14:53:19]Write to MH i2c: E2 0D 00 9D 26 80 0D 02 02 05 00 9B 68 3A 9C 8F 00 00 AF [14:53:19]Write i2c OK [14:53:19]MH_I2C_Read... [14:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:19]Read from MH i2c: E2 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 03 00 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 03 00 9D 26 00 90 00 37 [14:53:19]RAPDU: 90 00 [14:53:19]wFMCommunicate OK [14:53:19]wFMCommunicate request_size=4 [14:53:19]MH_SAM_APDU [14:53:19]CAPDU: 80 0D 03 02 [14:53:19]Write to MH i2c: E2 08 00 9E 26 80 0D 03 02 00 00 00 00 3F [14:53:19]Write i2c OK [14:53:19]MH_I2C_Read... [14:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:19]Read from MH i2c: E2 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 0B 00 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 0B 00 9E 26 00 4B 1D 2A 3C 06 07 A6 8A 90 00 4B [14:53:19]RAPDU: 4B 1D 2A 3C 06 07 A6 8A 90 00 [14:53:19]wFMCommunicate OK [14:53:19]SAM_PROTO_SignData done [14:53:19]FM_MakeSignedData done [14:53:19]CreateOFDProtocolMessage [14:53:19]wFMCommunicate request_size=4 [14:53:19]MH_SAM_APDU [14:53:19]CAPDU: 80 11 00 00 [14:53:19]Write to MH i2c: E2 08 00 9F 26 80 11 00 00 00 00 00 00 3F [14:53:19]Write i2c OK [14:53:19]MH_I2C_Read... [14:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:19]Read from MH i2c: E2 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 17 00 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: E2 17 00 9F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 94 [14:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:53:19]wFMCommunicate OK [14:53:19]CreateOFDProtocolMessage done [14:53:19]OFDSenderStorePacket 202014 [14:53:19]StoreOFDPacket docnum=202014 [14:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C2 98 07 01 19 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 01 00 00 F4 03 04 00 DE 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 15 03 00 35 04 06 00 4F 9B 68 3A 9C 8F 4B 1D 2A 3C 06 07 A6 8A [14:53:19]CheckFolder [14:53:19]dirname=/storage/ofd_packets [14:53:19]CheckFolder done [14:53:19]ProducePacketName [14:53:19]name=ofd_packets/00202014 [14:53:19]NVStorageSaveData ofd_packets/00202014 [14:53:19]File name is /storage/ofd_packets/00202014 [14:53:19]Write 301 bytes [14:53:19]NVStorageSaveData done [14:53:19]OFDSenderStorePacket done [14:53:19]KKMCreateOFDPacket done [14:53:19]NVStorageSaveData kkm_last_timestamp [14:53:19]File name is /storage/kkm_last_timestamp [14:53:19]Write 4 bytes [14:53:19]NVStorageSaveData done [14:53:19]ExternCall_PrintAddStr [14:53:19]wPrintStart [14:53:19]Write to MH i2c: 01 00 00 A0 26 C6 [14:53:19]Write i2c OK [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: 01 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: 01 07 00 [14:53:19]MH_I2C_Read... [14:53:19]Read from MH i2c: 01 07 00 A0 26 00 00 00 00 00 FF 0F DB [14:53:19]RasterBufferAndPrint [14:53:19]line Счет N : (1)449780 [14:53:19]line ИНН: 02508201610067 [14:53:19]line Контрольно-Кассовый Чек [14:53:19]line ПРОДАЖА [14:53:19]line ТРК (МРК, ГНК) : 52 [14:53:19]line Товар: 2710124130 [14:53:19]line Аи-92-К-2 [14:53:19]line 7.480 * 66.90 [14:53:19]line = 500.41 [14:53:19]line НДС 12% НСП 1% [14:53:19]line > о реализуемом товаре [14:53:19]line ОКРУГЛЕНИЕ: -0.41 [14:53:19]line ИТОГО: 500.00 [14:53:19]line Внесено: 500.00 [14:53:19]line СДАЧА: 0.00 [14:53:19]line НСП 1% : 4.43 [14:53:19]line НДС 12% : 53.14 [14:53:19]line Наличными: 500.00 [14:53:19]line Безнал.: 0.00 [14:53:19]line Место: АЗС № 171 "Партнер Нефть" [14:53:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:53:19]line СНО: Общий режим [14:53:19]line Чек 306 27.10.2024 14:53 [14:53:19]line Смена: 544 ФФД: 1.0 [14:53:19]line ЗНМ: 0300000109 [14:53:19]line РНМ: 0000000000091777 [14:53:19]line Версия ККМ: 001 [14:53:19]line ФМ: 0000000000871756 [14:53:19]line ФД: 202014 [14:53:19]line ФПД: 87528887196815 [14:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145318&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202014&fm=87528887196815&tin=02508201610067®Number=0000000000091777&sum=50000 [14:53:19]OFD Sender: Processing packet 202014 [packets to send 112, broken 111] [14:53:19]ProducePacketName [14:53:19]name=ofd_packets/00202014 [14:53:19]OFD Sender: To server: pG, [14:53:19]CommunicateWithHost lk.salyk.kg:30040 [14:53:19]ConnectInit lk.salyk.kg [14:53:19]written 0, free lines is 4095 [14:53:19]Connected sock=11 [14:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C2 98 07 01 19 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 32 01 00 00 F4 03 04 00 DE 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 15 03 00 35 04 06 00 4F 9B 68 3A 9C 8F 4B 1D 2A 3C 06 07 A6 8A [14:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 76 E3 47 00 B9 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 15 03 00 F4 03 04 00 98 FF 1D 67 B6 04 01 00 00 66 D6 08 EA D9 63 79 67 [14:53:19]CommunicateWithHost err = 0 [14:53:19]CheckOFDResponse [14:53:19]1017 (14) - 77093643461234 [14:53:19]1041 (16) - 0000000000871756 [14:53:19]1040 (4) - 202014 [14:53:19]1012 (4) - 27.10.2024 08:53 [14:53:19]1206 (1) - 0 [14:53:19]OFD Sender: Remove packet 202014 [14:53:19]ProducePacketName [14:53:19]name=ofd_packets/00202014 [14:53:19]NVStorageDeleteData [14:53:20]Write to MH i2c: 01 00 00 CB 26 F1 [14:53:20]Write i2c OK [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: 01 [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: 01 07 00 [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: 01 07 00 CB 26 00 00 00 00 00 8A 0C 8E [14:53:20]RasterBufferAndPrint [14:53:20]line [14:53:20]line [14:53:20]line [14:53:20]line [14:53:20]line [14:53:20]written 0, free lines is 3213 [14:53:20]MH_Cut [14:53:20]Write to MH i2c: D1 01 00 D2 26 01 CA [14:53:20]Write i2c OK [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: D1 [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: D1 01 00 [14:53:20]MH_I2C_Read... [14:53:20]Read from MH i2c: D1 01 00 D2 26 00 C9 [14:53:20]Write to MH i2c: 01 00 00 D3 26 F9 [14:53:20]Write i2c OK [14:53:20]MH_I2C_Read... [14:53:20]OFD Sender: No OFD packet to send [14:53:20]*** Cut start [14:53:20]*** Purtial cut [14:53:20]*** Stage 1: CUTSNS_PIN = 1 [14:53:21]Read from MH i2c: 01 [14:53:21]MH_I2C_Read... [14:53:21]*** Stop cut motor [14:53:21]*** Cut end [14:53:21]Read from MH i2c: 01 07 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: 01 07 00 D3 26 00 00 00 00 00 FF 0F 0E [14:53:21]process_action close_receipt done [14:53:21]requested_data is exist [14:53:21]produce_requested_data [14:53:21]requested_item fm.sn is exist - process it [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 11 00 00 [14:53:21]Write to MH i2c: E2 08 00 D4 26 80 11 00 00 00 00 00 00 74 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 17 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 17 00 D4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C9 [14:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:53:21]wFMCommunicate OK [14:53:21]requested_item fd.num is exist - process it [14:53:21]SAM_PROTO_GetFieldsCounters [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 13 00 00 [14:53:21]Write to MH i2c: E2 08 00 D5 26 80 13 00 00 00 00 00 00 77 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 62 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 62 00 D5 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [14:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:21]wFMCommunicate OK [14:53:21]SAM_PROTO_GetFieldsCounters done [14:53:21]requested_item shift.num is exist - process it [14:53:21]requested_item shift.opened is exist - process it [14:53:21]req_shift_opened [14:53:21]FM_GetShiftState [14:53:21]SAM_PROTO_GetShiftState [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 13 01 00 [14:53:21]Write to MH i2c: E2 08 00 D6 26 80 13 01 00 00 00 00 00 79 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 0E 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 0E 00 D6 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7B [14:53:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:53:21]wFMCommunicate OK [14:53:21]SAM_PROTO_GetShiftState done [14:53:21]FM_GetShiftState done [14:53:21]req_shift_opened done [14:53:21]requested_item shift.open_date is exist - process it [14:53:21]req_shift_open_date [14:53:21]req_shift_open_date done [14:53:21]produce_requested_data done [14:53:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202014,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:53:21]process_action_free close_receipt [14:53:21]json_value_free [14:53:21]json_value_free done [14:53:21]process_json_proto returns [14:53:21]Send response to host [14:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202014,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:53:21]free response buf [14:53:21]execute_script done [14:53:21]execute_script returns [14:53:21]free content buf [14:53:21]Sock 9.Close socket [14:53:21]Sock 9.Thread stoped [14:53:25]OFD Sender: No OFD packet to send [14:53:27]accept exits with 8 [14:53:27]New connection [14:53:27]New thread 3066641764 created [14:53:27]Thread 3066498404 joined [14:53:27]Waiting for new connection... [14:53:27] Sock 8.Parse request [14:53:27]Sock 8.Check first char [14:53:27]Sock 8.First char is OK [14:53:27]request: POST /json_proto HTTP/1.0 [14:53:27]Method: POST [14:53:27]URL: /json_proto [14:53:27]Method is POST - this is cgi request [14:53:27]url: /json_proto [14:53:27]query_string will be loaded in cgi processing [14:53:27]execute_cgi json_proto POST (null) [14:53:27]execute_cgi path=json_proto method=POST [14:53:27]POST find Content-Length [14:53:27]Host: 172.17.63.195:8080 [14:53:27]Content-Length: 679 [14:53:27]Content-Type: application/json [14:53:27] [14:53:27]POST finish read [14:53:27]Found Content-Length = 679 [14:53:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:53:27]execute_script... [14:53: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)449779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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:53:27]POST & json_proto [14:53:27]process_json_proto [14:53:27]json parsed OK: [14:53:27]protocol is kg_v1.0 [14:53:27]action value=close_receipt [14:53:27]process_action close_receipt [14:53:27]cmd_close_receipt [14:53:27]MH_GetDate [14:53:27]Write to MH i2c: F0 00 00 D7 26 EC [14:53:27]Write i2c OK [14:53:27]MH_I2C_Read... [14:53:27]Read from MH i2c: F0 [14:53:27]MH_I2C_Read... [14:53:27]Read from MH i2c: F0 09 00 [14:53:27]MH_I2C_Read... [14:53:27]Read from MH i2c: F0 09 00 D7 26 00 E8 53 1E 67 47 1B 1E 67 9C [14:53:27]GetLastDocTimeStamp 1730040798 [14:53:27]current date 1730040808 [14:53:27]FM_GetShiftState [14:53:27]SAM_PROTO_GetShiftState [14:53:27]wFMCommunicate request_size=4 [14:53:27]MH_SAM_APDU [14:53:27]CAPDU: 80 13 01 00 [14:53:27]Write to MH i2c: E2 08 00 D8 26 80 13 01 00 00 00 00 00 7B [14:53:27]Write i2c OK [14:53:27]MH_I2C_Read... [14:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:27]Read from MH i2c: E2 [14:53:27]MH_I2C_Read... [14:53:27]Read from MH i2c: E2 0E 00 [14:53:27]MH_I2C_Read... [14:53:27]Read from MH i2c: E2 0E 00 D8 26 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7D [14:53:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:53:27]wFMCommunicate OK [14:53:27]SAM_PROTO_GetShiftState done [14:53:27]FM_GetShiftState done [14:53:27]opened in 1729987312 [14:53:27]opened+sec_in_day 1730073712 [14:53:27]quantity*price = 100050 [14:53:27]sum+1 = 100052 [14:53:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 307 27.10.2024 14:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202015 ФПД: 213554925572024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145328&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202015&fm=213554925572024&tin=02508201610067®Number=0000000000091777&sum=100000 [14:53:28]StoreToDocumentArchive [14:53:28]shift 544 fd 202015 [14:53:28]save to /storage/0544/doc_00202015 [14:53:28]save last doc name /storage/0544/doc_00202015 to /storage/kkm_last_doc_name [14:53:28]save OK [14:53:28]Clear old archive folders... [14:53:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:53:28]tlvbuf is 011ADB80 [14:53:28]SAM_PROTO_ClearQueue [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 09 00 00 [14:53:28]Write to MH i2c: E2 08 00 E5 26 80 09 00 00 00 00 00 00 7D [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 E5 26 00 90 00 7F [14:53:28]RAPDU: 90 00 [14:53:28]wFMCommunicate OK [14:53:28]SAM_PROTO_ClearQueue done [14:53:28]KKMCreateOFDPacket [14:53:28]OFDProtocolAddRootSTLVToBuf [14:53:28]FM_MakeSignedData [14:53:28]FM_MakeSignedData [14:53:28]SAM_PROTO_SignData [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 0D 01 02 [14:53:28]Write to MH i2c: E2 08 00 E6 26 80 0D 01 02 00 00 00 00 85 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 E6 26 00 90 00 80 [14:53:28]RAPDU: 90 00 [14:53:28]wFMCommunicate OK [14:53:28]wFMCommunicate request_size=255 [14:53:28]MH_SAM_APDU [14:53:28]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 32 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 33 01 00 00 F4 03 04 00 E8 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 15 03 00 35 04 06 00 C2 3A 21 7A [14:53:28]Write to MH i2c: E2 02 01 E7 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 32 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 33 01 00 00 F4 03 04 00 E8 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 15 03 00 35 04 06 00 C2 3A 21 7A 00 00 F3 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 E7 26 00 90 00 81 [14:53:28]RAPDU: 90 00 [14:53:28]wFMCommunicate OK [14:53:28]wFMCommunicate request_size=7 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 0D 02 02 02 8F B8 [14:53:28]Write to MH i2c: E2 0A 00 E8 26 80 0D 02 02 02 00 8F B8 00 00 D3 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 03 00 E8 26 00 90 00 82 [14:53:28]RAPDU: 90 00 [14:53:28]wFMCommunicate OK [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 0D 03 02 [14:53:28]Write to MH i2c: E2 08 00 E9 26 80 0D 03 02 00 00 00 00 8A [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0B 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0B 00 E9 26 00 17 B3 32 63 27 58 D5 F7 90 00 35 [14:53:28]RAPDU: 17 B3 32 63 27 58 D5 F7 90 00 [14:53:28]wFMCommunicate OK [14:53:28]SAM_PROTO_SignData done [14:53:28]FM_MakeSignedData done [14:53:28]CreateOFDProtocolMessage [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 11 00 00 [14:53:28]Write to MH i2c: E2 08 00 EA 26 80 11 00 00 00 00 00 00 8A [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 17 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 17 00 EA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [14:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:53:28]wFMCommunicate OK [14:53:28]CreateOFDProtocolMessage done [14:53:28]OFDSenderStorePacket 202015 [14:53:28]StoreOFDPacket docnum=202015 [14:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DC B5 04 01 95 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 33 01 00 00 F4 03 04 00 E8 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 15 03 00 35 04 06 00 C2 3A 21 7A 8F B8 17 B3 32 63 27 58 D5 F7 [14:53:28]CheckFolder [14:53:28]dirname=/storage/ofd_packets [14:53:28]CheckFolder done [14:53:28]ProducePacketName [14:53:28]name=ofd_packets/00202015 [14:53:28]NVStorageSaveData ofd_packets/00202015 [14:53:28]File name is /storage/ofd_packets/00202015 [14:53:28]Write 298 bytes [14:53:28]NVStorageSaveData done [14:53:28]OFDSenderStorePacket done [14:53:28]KKMCreateOFDPacket done [14:53:28]NVStorageSaveData kkm_last_timestamp [14:53:28]File name is /storage/kkm_last_timestamp [14:53:28]Write 4 bytes [14:53:28]NVStorageSaveData done [14:53:28]ExternCall_PrintAddStr [14:53:28]wPrintStart [14:53:28]Write to MH i2c: 01 00 00 EB 26 11 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: 01 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: 01 07 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: 01 07 00 EB 26 00 00 00 00 00 FF 0F 26 [14:53:28]RasterBufferAndPrint [14:53:28]line Счет N : (1)449779 [14:53:28]line ИНН: 02508201610067 [14:53:28]line Контрольно-Кассовый Чек [14:53:28]line ПРОДАЖА [14:53:28]line ТРК (МРК, ГНК) : 43 [14:53:28]line Товар: 2710194210 [14:53:28]line ДТ-К-2 [14:53:28]line 13.130 * 76.20 [14:53:28]line = 1000.51 [14:53:28]line НДС 12% НСП 1% [14:53:28]line > о реализуемом товаре [14:53:28]line ОКРУГЛЕНИЕ: -0.51 [14:53:28]line ИТОГО: 1000.00 [14:53:28]line Внесено: 1000.00 [14:53:28]line СДАЧА: 0.00 [14:53:28]line НСП 1% : 8.85 [14:53:28]line НДС 12% : 106.25 [14:53:28]line Наличными: 1000.00 [14:53:28]line Безнал.: 0.00 [14:53:28]line Место: АЗС № 171 "Партнер Нефть" [14:53:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:53:28]line СНО: Общий режим [14:53:28]line Чек 307 27.10.2024 14:53 [14:53:28]line Смена: 544 ФФД: 1.0 [14:53:28]line ЗНМ: 0300000109 [14:53:28]line РНМ: 0000000000091777 [14:53:28]line Версия ККМ: 001 [14:53:28]line ФМ: 0000000000871756 [14:53:28]line ФД: 202015 [14:53:28]line ФПД: 213554925572024 [14:53:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145328&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202015&fm=213554925572024&tin=02508201610067®Number=0000000000091777&sum=100000 [14:53:28]written 0, free lines is 4095 [14:53:29]OFD Sender: Processing packet 202015 [packets to send 112, broken 111] [14:53:29]ProducePacketName [14:53:29]name=ofd_packets/00202015 [14:53:29]OFD Sender: To server: pG, [14:53:29]CommunicateWithHost lk.salyk.kg:30040 [14:53:29]ConnectInit lk.salyk.kg [14:53:29]Connected sock=10 [14:53:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DC B5 04 01 95 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 33 01 00 00 F4 03 04 00 E8 53 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 15 03 00 35 04 06 00 C2 3A 21 7A 8F B8 17 B3 32 63 27 58 D5 F7 [14:53:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E4 AA 47 00 71 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 15 03 00 F4 03 04 00 A1 FF 1D 67 B6 04 01 00 00 EA A0 74 88 63 1E 91 60 [14:53:29]CommunicateWithHost err = 0 [14:53:29]CheckOFDResponse [14:53:29]1017 (14) - 77093643461234 [14:53:29]1041 (16) - 0000000000871756 [14:53:29]1040 (4) - 202015 [14:53:29]1012 (4) - 27.10.2024 08:53 [14:53:29]1206 (1) - 0 [14:53:29]OFD Sender: Remove packet 202015 [14:53:29]ProducePacketName [14:53:29]name=ofd_packets/00202015 [14:53:29]NVStorageDeleteData [14:53:29]Write to MH i2c: 01 00 00 16 27 3D [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 07 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: 01 07 00 16 27 00 00 00 00 00 96 0C E6 [14:53:29]RasterBufferAndPrint [14:53:29]line [14:53:29]line [14:53:29]line [14:53:29]line [14:53:29]line [14:53:29]written 0, free lines is 3229 [14:53:29]MH_Cut [14:53:29]Write to MH i2c: D1 01 00 1D 27 01 16 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: D1 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: D1 01 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: D1 01 00 1D 27 00 15 [14:53:29]Write to MH i2c: 01 00 00 1E 27 45 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]OFD Sender: No OFD packet to send [14:53:30]*** Cut start [14:53:30]*** Purtial cut [14:53:30]*** Stage 1: CUTSNS_PIN = 1 [14:53:30]Read from MH i2c: 01 [14:53:30]MH_I2C_Read... [14:53:30]*** Stop cut motor [14:53:30]*** Cut end [14:53:30]Read from MH i2c: 01 07 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 07 00 1E 27 00 00 00 00 00 FF 0F 5A [14:53:30]process_action close_receipt done [14:53:30]requested_data is exist [14:53:30]produce_requested_data [14:53:30]requested_item fm.sn is exist - process it [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 11 00 00 [14:53:30]Write to MH i2c: E2 08 00 1F 27 80 11 00 00 00 00 00 00 C0 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 17 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 17 00 1F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 15 [14:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:53:30]wFMCommunicate OK [14:53:30]requested_item fd.num is exist - process it [14:53:30]SAM_PROTO_GetFieldsCounters [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 13 00 00 [14:53:30]Write to MH i2c: E2 08 00 20 27 80 13 00 00 00 00 00 00 C3 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 62 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 62 00 20 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [14:53:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:30]wFMCommunicate OK [14:53:30]SAM_PROTO_GetFieldsCounters done [14:53:30]requested_item shift.num is exist - process it [14:53:30]requested_item shift.opened is exist - process it [14:53:30]req_shift_opened [14:53:30]FM_GetShiftState [14:53:30]SAM_PROTO_GetShiftState [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 13 01 00 [14:53:30]Write to MH i2c: E2 08 00 21 27 80 13 01 00 00 00 00 00 C5 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 0E 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 0E 00 21 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C7 [14:53:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:53:30]wFMCommunicate OK [14:53:30]SAM_PROTO_GetShiftState done [14:53:30]FM_GetShiftState done [14:53:30]req_shift_opened done [14:53:30]requested_item shift.open_date is exist - process it [14:53:30]req_shift_open_date [14:53:30]req_shift_open_date done [14:53:30]produce_requested_data done [14:53:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202015,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:53:30]process_action_free close_receipt [14:53:30]json_value_free [14:53:30]json_value_free done [14:53:30]process_json_proto returns [14:53:30]Send response to host [14:53:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202015,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:53:30]free response buf [14:53:30]execute_script done [14:53:30]execute_script returns [14:53:30]free content buf [14:53:30]Sock 8.Close socket [14:53:30]Sock 8.Thread stoped [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]int [14:54:19]Write to MH i2c: 01 00 00 22 27 49 [14:54:19]*** FLAG_PRN_KEY set [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 22 27 00 08 00 00 00 FF 0F 66 [14:54:19]state=0 [14:54:19]Key pressed [14:54:19]Feed [14:54:19]Write to MH i2c: D8 00 00 23 27 21 [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: D8 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: D8 01 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: D8 01 00 23 27 00 22 [14:54:19]int [14:54:19]Write to MH i2c: 01 00 00 24 27 4B [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 24 27 00 48 00 00 00 3C 00 D6 [14:54:19]state=2 [14:54:19]Key pressed [14:54:19]int [14:54:19]Write to MH i2c: 01 00 00 25 27 4C [14:54:19]*** FLAG_PRN_KEY reset [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 25 27 00 00 00 00 00 F5 0F 57 [14:54:19]state=2 [14:54:19]Stop feed [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:50]accept exits with 9 [14:54:50]New connection [14:54:50]New thread 3066498404 created [14:54:50]Thread 3066641764 joined [14:54:50]Waiting for new connection... [14:54:50] Sock 9.Parse request [14:54:50]Sock 9.Check first char [14:54:50]Sock 9.First char is OK [14:54:50]request: POST /json_proto HTTP/1.0 [14:54:50]Method: POST [14:54:50]URL: /json_proto [14:54:50]Method is POST - this is cgi request [14:54:50]url: /json_proto [14:54:50]query_string will be loaded in cgi processing [14:54:50]execute_cgi json_proto POST (null) [14:54:50]execute_cgi path=json_proto method=POST [14:54:50]POST find Content-Length [14:54:50]Host: 172.17.63.195:8080 [14:54:50]Content-Length: 670 [14:54:50]Content-Type: application/json [14:54:50] [14:54:50]POST finish read [14:54:50]Found Content-Length = 670 [14:54:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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:54:50]execute_script... [14:54:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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:54:50]POST & json_proto [14:54:50]process_json_proto [14:54:50]json parsed OK: [14:54:50]protocol is kg_v1.0 [14:54:50]action value=close_receipt [14:54:50]process_action close_receipt [14:54:50]cmd_close_receipt [14:54:50]MH_GetDate [14:54:50]Write to MH i2c: F0 00 00 26 27 3C [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: F0 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: F0 09 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: F0 09 00 26 27 00 3B 54 1E 67 47 1B 1E 67 40 [14:54:50]GetLastDocTimeStamp 1730040808 [14:54:50]current date 1730040891 [14:54:50]FM_GetShiftState [14:54:50]SAM_PROTO_GetShiftState [14:54:50]wFMCommunicate request_size=4 [14:54:50]MH_SAM_APDU [14:54:50]CAPDU: 80 13 01 00 [14:54:50]Write to MH i2c: E2 08 00 27 27 80 13 01 00 00 00 00 00 CB [14:54:50]Write i2c OK [14:54:50]MH_I2C_Read... [14:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:50]Read from MH i2c: E2 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 0E 00 [14:54:50]MH_I2C_Read... [14:54:50]Read from MH i2c: E2 0E 00 27 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CD [14:54:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:54:50]wFMCommunicate OK [14:54:50]SAM_PROTO_GetShiftState done [14:54:50]FM_GetShiftState done [14:54:50]opened in 1729987312 [14:54:50]opened+sec_in_day 1730073712 [14:54:50]quantity*price = 30027 [14:54:50]sum+1 = 30029 [14:54:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 308 27.10.2024 14:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202016 ФПД: 50649975145010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145451&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202016&fm=50649975145010&tin=02508201610067®Number=0000000000091777&sum=30000 [14:54:50]StoreToDocumentArchive [14:54:50]shift 544 fd 202016 [14:54:50]save to /storage/0544/doc_00202016 [14:54:50]save last doc name /storage/0544/doc_00202016 to /storage/kkm_last_doc_name [14:54:50]save OK [14:54:50]Clear old archive folders... [14:54:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:54:51]tlvbuf is B6E8EB40 [14:54:51]SAM_PROTO_ClearQueue [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 09 00 00 [14:54:51]Write to MH i2c: E2 08 00 34 27 80 09 00 00 00 00 00 00 CD [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 03 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 03 00 34 27 00 90 00 CF [14:54:51]RAPDU: 90 00 [14:54:51]wFMCommunicate OK [14:54:51]SAM_PROTO_ClearQueue done [14:54:51]KKMCreateOFDPacket [14:54:51]OFDProtocolAddRootSTLVToBuf [14:54:51]FM_MakeSignedData [14:54:51]FM_MakeSignedData [14:54:51]SAM_PROTO_SignData [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 0D 01 02 [14:54:51]Write to MH i2c: E2 08 00 35 27 80 0D 01 02 00 00 00 00 D5 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 03 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 03 00 35 27 00 90 00 D0 [14:54:51]RAPDU: 90 00 [14:54:51]wFMCommunicate OK [14:54:51]wFMCommunicate request_size=255 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 34 01 00 00 F4 03 04 00 3B 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 15 03 00 35 04 06 00 [14:54:51]Write to MH i2c: E2 02 01 36 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 34 01 00 00 F4 03 04 00 3B 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 15 03 00 35 04 06 00 00 00 C7 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 03 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 03 00 36 27 00 90 00 D1 [14:54:51]RAPDU: 90 00 [14:54:51]wFMCommunicate OK [14:54:51]wFMCommunicate request_size=11 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 0D 02 02 06 2E 10 DD C6 C2 32 [14:54:51]Write to MH i2c: E2 0E 00 37 27 80 0D 02 02 06 00 2E 10 DD C6 C2 32 00 00 B9 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 03 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 03 00 37 27 00 90 00 D2 [14:54:51]RAPDU: 90 00 [14:54:51]wFMCommunicate OK [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 0D 03 02 [14:54:51]Write to MH i2c: E2 08 00 38 27 80 0D 03 02 00 00 00 00 DA [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 0B 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 0B 00 38 27 00 99 6D 39 D3 DD B8 83 9B 90 00 A0 [14:54:51]RAPDU: 99 6D 39 D3 DD B8 83 9B 90 00 [14:54:51]wFMCommunicate OK [14:54:51]SAM_PROTO_SignData done [14:54:51]FM_MakeSignedData done [14:54:51]CreateOFDProtocolMessage [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 11 00 00 [14:54:51]Write to MH i2c: E2 08 00 39 27 80 11 00 00 00 00 00 00 DA [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:51]Read from MH i2c: E2 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 17 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: E2 17 00 39 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2F [14:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:54:51]wFMCommunicate OK [14:54:51]CreateOFDProtocolMessage done [14:54:51]OFDSenderStorePacket 202016 [14:54:51]StoreOFDPacket docnum=202016 [14:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FC CD 08 01 D2 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 34 01 00 00 F4 03 04 00 3B 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 15 03 00 35 04 06 00 2E 10 DD C6 C2 32 99 6D 39 D3 DD B8 83 9B [14:54:51]CheckFolder [14:54:51]dirname=/storage/ofd_packets [14:54:51]CheckFolder done [14:54:51]ProducePacketName [14:54:51]name=ofd_packets/00202016 [14:54:51]NVStorageSaveData ofd_packets/00202016 [14:54:51]File name is /storage/ofd_packets/00202016 [14:54:51]Write 302 bytes [14:54:51]NVStorageSaveData done [14:54:51]OFDSenderStorePacket done [14:54:51]KKMCreateOFDPacket done [14:54:51]NVStorageSaveData kkm_last_timestamp [14:54:51]File name is /storage/kkm_last_timestamp [14:54:51]Write 4 bytes [14:54:51]NVStorageSaveData done [14:54:51]ExternCall_PrintAddStr [14:54:51]wPrintStart [14:54:51]Write to MH i2c: 01 00 00 3A 27 61 [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 07 00 [14:54:51]MH_I2C_Read... [14:54:51]Read from MH i2c: 01 07 00 3A 27 00 00 00 00 00 FF 0F 76 [14:54:51]RasterBufferAndPrint [14:54:51]line Счет N : (1)449782 [14:54:51]line ИНН: 02508201610067 [14:54:51]line Контрольно-Кассовый Чек [14:54:51]line ПРОДАЖА [14:54:51]line ТРК (МРК, ГНК) : 32 [14:54:51]line Товар: 2710124130 [14:54:51]line SUPER 92-К-5 [14:54:51]line 4.390 * 68.40 [14:54:51]line = 300.28 [14:54:51]line НДС 12% НСП 1% [14:54:51]line > о реализуемом товаре [14:54:51]line ОКРУГЛЕНИЕ: -0.28 [14:54:51]line ИТОГО: 300.00 [14:54:51]line Внесено: 300.00 [14:54:51]line СДАЧА: 0.00 [14:54:51]line НСП 1% : 2.66 [14:54:51]line НДС 12% : 31.89 [14:54:51]line Наличными: 300.00 [14:54:51]line Безнал.: 0.00 [14:54:51]line Место: АЗС № 171 "Партнер Нефть" [14:54:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:54:51]line СНО: Общий режим [14:54:51]line Чек 308 27.10.2024 14:54 [14:54:51]line Смена: 544 ФФД: 1.0 [14:54:51]line ЗНМ: 0300000109 [14:54:51]line РНМ: 0000000000091777 [14:54:51]line Версия ККМ: 001 [14:54:51]line ФМ: 0000000000871756 [14:54:51]line ФД: 202016 [14:54:51]line ФПД: 50649975145010 [14:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145451&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202016&fm=50649975145010&tin=02508201610067®Number=0000000000091777&sum=30000 [14:54:51]OFD Sender: Processing packet 202016 [packets to send 112, broken 111] [14:54:51]ProducePacketName [14:54:51]name=ofd_packets/00202016 [14:54:51]OFD Sender: To server: pG, [14:54:51]CommunicateWithHost lk.salyk.kg:30040 [14:54:51]ConnectInit lk.salyk.kg [14:54:51]written 0, free lines is 4095 [14:54:51]Connected sock=10 [14:54:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FC CD 08 01 D2 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 34 01 00 00 F4 03 04 00 3B 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 15 03 00 35 04 06 00 2E 10 DD C6 C2 32 99 6D 39 D3 DD B8 83 9B [14:54:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 73 E5 47 00 FB 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 15 03 00 F4 03 04 00 F4 FF 1D 67 B6 04 01 00 00 55 BF 24 4E A7 97 05 72 [14:54:52]CommunicateWithHost err = 0 [14:54:52]CheckOFDResponse [14:54:52]1017 (14) - 77093643461234 [14:54:52]1041 (16) - 0000000000871756 [14:54:52]1040 (4) - 202016 [14:54:52]1012 (4) - 27.10.2024 08:55 [14:54:52]1206 (1) - 0 [14:54:52]OFD Sender: Remove packet 202016 [14:54:52]ProducePacketName [14:54:52]name=ofd_packets/00202016 [14:54:52]NVStorageDeleteData [14:54:52]Write to MH i2c: 01 00 00 65 27 8C [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 98 0C 37 [14:54:52]RasterBufferAndPrint [14:54:52]line [14:54:52]line [14:54:52]line [14:54:52]line [14:54:52]line [14:54:52]written 0, free lines is 3229 [14:54:52]MH_Cut [14:54:52]Write to MH i2c: D1 01 00 6C 27 01 65 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: D1 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: D1 01 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: D1 01 00 6C 27 00 64 [14:54:52]Write to MH i2c: 01 00 00 6D 27 94 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]OFD Sender: No OFD packet to send [14:54:53]*** Cut start [14:54:53]*** Purtial cut [14:54:53]*** Stage 1: CUTSNS_PIN = 1 [14:54:53]Read from MH i2c: 01 [14:54:53]MH_I2C_Read... [14:54:53]*** Stop cut motor [14:54:53]*** Cut end [14:54:53]Read from MH i2c: 01 07 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: 01 07 00 6D 27 00 00 00 00 00 FF 0F A9 [14:54:53]process_action close_receipt done [14:54:53]requested_data is exist [14:54:53]produce_requested_data [14:54:53]requested_item fm.sn is exist - process it [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 11 00 00 [14:54:53]Write to MH i2c: E2 08 00 6E 27 80 11 00 00 00 00 00 00 0F [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 17 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 17 00 6E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 64 [14:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:54:53]wFMCommunicate OK [14:54:53]requested_item fd.num is exist - process it [14:54:53]SAM_PROTO_GetFieldsCounters [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 13 00 00 [14:54:53]Write to MH i2c: E2 08 00 6F 27 80 13 00 00 00 00 00 00 12 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 62 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 62 00 6F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 20 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [14:54:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 20 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:53]wFMCommunicate OK [14:54:53]SAM_PROTO_GetFieldsCounters done [14:54:53]requested_item shift.num is exist - process it [14:54:53]requested_item shift.opened is exist - process it [14:54:53]req_shift_opened [14:54:53]FM_GetShiftState [14:54:53]SAM_PROTO_GetShiftState [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 13 01 00 [14:54:53]Write to MH i2c: E2 08 00 70 27 80 13 01 00 00 00 00 00 14 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 0E 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 0E 00 70 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 16 [14:54:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:54:53]wFMCommunicate OK [14:54:53]SAM_PROTO_GetShiftState done [14:54:53]FM_GetShiftState done [14:54:53]req_shift_opened done [14:54:53]requested_item shift.open_date is exist - process it [14:54:53]req_shift_open_date [14:54:53]req_shift_open_date done [14:54:53]produce_requested_data done [14:54:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202016,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:54:53]process_action_free close_receipt [14:54:53]json_value_free [14:54:53]json_value_free done [14:54:53]process_json_proto returns [14:54:53]Send response to host [14:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202016,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:54:53]free response buf [14:54:53]execute_script done [14:54:53]execute_script returns [14:54:53]free content buf [14:54:53]Sock 9.Close socket [14:54:53]Sock 9.Thread stoped [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:02]accept exits with 8 [14:55:02]New connection [14:55:02]New thread 3066641764 created [14:55:02]Thread 3066498404 joined [14:55:02]Waiting for new connection... [14:55:02] Sock 8.Parse request [14:55:02]Sock 8.Check first char [14:55:02]Sock 8.First char is OK [14:55:02]request: POST /json_proto HTTP/1.0 [14:55:02]Method: POST [14:55:02]URL: /json_proto [14:55:02]Method is POST - this is cgi request [14:55:02]url: /json_proto [14:55:02]query_string will be loaded in cgi processing [14:55:02]execute_cgi json_proto POST (null) [14:55:02]execute_cgi path=json_proto method=POST [14:55:02]POST find Content-Length [14:55:02]Host: 172.17.63.195:8080 [14:55:02]Content-Length: 682 [14:55:02]Content-Type: application/json [14:55:02] [14:55:02]POST finish read [14:55:02]Found Content-Length = 682 [14:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:02]execute_script... [14:55: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)449781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:02]POST & json_proto [14:55:02]process_json_proto [14:55:02]json parsed OK: [14:55:02]protocol is kg_v1.0 [14:55:02]action value=close_receipt [14:55:02]process_action close_receipt [14:55:02]cmd_close_receipt [14:55:02]MH_GetDate [14:55:02]Write to MH i2c: F0 00 00 71 27 87 [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: F0 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: F0 09 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: F0 09 00 71 27 00 48 54 1E 67 47 1B 1E 67 98 [14:55:02]GetLastDocTimeStamp 1730040891 [14:55:02]current date 1730040904 [14:55:02]FM_GetShiftState [14:55:02]SAM_PROTO_GetShiftState [14:55:02]wFMCommunicate request_size=4 [14:55:02]MH_SAM_APDU [14:55:02]CAPDU: 80 13 01 00 [14:55:02]Write to MH i2c: E2 08 00 72 27 80 13 01 00 00 00 00 00 16 [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:02]Read from MH i2c: E2 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 0E 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 0E 00 72 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 18 [14:55:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:55:02]wFMCommunicate OK [14:55:02]SAM_PROTO_GetShiftState done [14:55:02]FM_GetShiftState done [14:55:02]opened in 1729987312 [14:55:02]opened+sec_in_day 1730073712 [14:55:02]quantity*price = 120018 [14:55:02]sum+1 = 120020 [14:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 309 27.10.2024 14:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202017 ФПД: 10351763752685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145504&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202017&fm=10351763752685&tin=02508201610067®Number=0000000000091777&sum=120000 [14:55:04]StoreToDocumentArchive [14:55:04]shift 544 fd 202017 [14:55:04]save to /storage/0544/doc_00202017 [14:55:04]save last doc name /storage/0544/doc_00202017 to /storage/kkm_last_doc_name [14:55:04]save OK [14:55:04]Clear old archive folders... [14:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:04]tlvbuf is 011B1560 [14:55:04]SAM_PROTO_ClearQueue [14:55:04]wFMCommunicate request_size=4 [14:55:04]MH_SAM_APDU [14:55:04]CAPDU: 80 09 00 00 [14:55:04]Write to MH i2c: E2 08 00 7F 27 80 09 00 00 00 00 00 00 18 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:04]Read from MH i2c: E2 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 03 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 03 00 7F 27 00 90 00 1A [14:55:04]RAPDU: 90 00 [14:55:04]wFMCommunicate OK [14:55:04]SAM_PROTO_ClearQueue done [14:55:04]KKMCreateOFDPacket [14:55:04]OFDProtocolAddRootSTLVToBuf [14:55:04]FM_MakeSignedData [14:55:04]FM_MakeSignedData [14:55:04]SAM_PROTO_SignData [14:55:04]wFMCommunicate request_size=4 [14:55:04]MH_SAM_APDU [14:55:04]CAPDU: 80 0D 01 02 [14:55:04]Write to MH i2c: E2 08 00 80 27 80 0D 01 02 00 00 00 00 20 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:04]Read from MH i2c: E2 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 03 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 03 00 80 27 00 90 00 1B [14:55:04]RAPDU: 90 00 [14:55:04]wFMCommunicate OK [14:55:04]wFMCommunicate request_size=255 [14:55:04]MH_SAM_APDU [14:55: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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 48 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 15 03 00 35 04 06 00 09 [14:55:04]Write to MH i2c: E2 02 01 81 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 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 48 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 15 03 00 35 04 06 00 09 00 00 76 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:04]Read from MH i2c: E2 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 03 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 03 00 81 27 00 90 00 1C [14:55:04]RAPDU: 90 00 [14:55:04]wFMCommunicate OK [14:55:04]wFMCommunicate request_size=10 [14:55:04]MH_SAM_APDU [14:55:04]CAPDU: 80 0D 02 02 05 6A 35 33 86 ED [14:55:04]Write to MH i2c: E2 0D 00 82 27 80 0D 02 02 05 00 6A 35 33 86 ED 00 00 72 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:04]Read from MH i2c: E2 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 03 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 03 00 82 27 00 90 00 1D [14:55:04]RAPDU: 90 00 [14:55:04]wFMCommunicate OK [14:55:04]wFMCommunicate request_size=4 [14:55:04]MH_SAM_APDU [14:55:04]CAPDU: 80 0D 03 02 [14:55:04]Write to MH i2c: E2 08 00 83 27 80 0D 03 02 00 00 00 00 25 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:04]Read from MH i2c: E2 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 0B 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 0B 00 83 27 00 29 C2 83 36 C3 1C 85 21 90 00 4F [14:55:04]RAPDU: 29 C2 83 36 C3 1C 85 21 90 00 [14:55:04]wFMCommunicate OK [14:55:04]SAM_PROTO_SignData done [14:55:04]FM_MakeSignedData done [14:55:04]CreateOFDProtocolMessage [14:55:04]wFMCommunicate request_size=4 [14:55:04]MH_SAM_APDU [14:55:04]CAPDU: 80 11 00 00 [14:55:04]Write to MH i2c: E2 08 00 84 27 80 11 00 00 00 00 00 00 25 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:04]Read from MH i2c: E2 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 17 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: E2 17 00 84 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7A [14:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:55:04]wFMCommunicate OK [14:55:04]CreateOFDProtocolMessage done [14:55:04]OFDSenderStorePacket 202017 [14:55:04]StoreOFDPacket docnum=202017 [14:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 21 00 07 01 BA 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 48 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 15 03 00 35 04 06 00 09 6A 35 33 86 ED 29 C2 83 36 C3 1C 85 21 [14:55:04]CheckFolder [14:55:04]dirname=/storage/ofd_packets [14:55:04]CheckFolder done [14:55:04]ProducePacketName [14:55:04]name=ofd_packets/00202017 [14:55:04]NVStorageSaveData ofd_packets/00202017 [14:55:04]File name is /storage/ofd_packets/00202017 [14:55:04]Write 301 bytes [14:55:04]NVStorageSaveData done [14:55:04]OFDSenderStorePacket done [14:55:04]KKMCreateOFDPacket done [14:55:04]NVStorageSaveData kkm_last_timestamp [14:55:04]File name is /storage/kkm_last_timestamp [14:55:04]Write 4 bytes [14:55:04]NVStorageSaveData done [14:55:04]ExternCall_PrintAddStr [14:55:04]wPrintStart [14:55:04]Write to MH i2c: 01 00 00 85 27 AC [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 07 00 [14:55:04]MH_I2C_Read... [14:55:04]Read from MH i2c: 01 07 00 85 27 00 00 00 00 00 FF 0F C1 [14:55:04]RasterBufferAndPrint [14:55:04]line Счет N : (1)449781 [14:55:04]line ИНН: 02508201610067 [14:55:04]line Контрольно-Кассовый Чек [14:55:04]line ПРОДАЖА [14:55:04]line ТРК (МРК, ГНК) : 62 [14:55:04]line Товар: 2710124130 [14:55:04]line Аи-92-К-2 [14:55:04]line 17.940 * 66.90 [14:55:04]line = 1200.19 [14:55:04]line НДС 12% НСП 1% [14:55:04]line > о реализуемом товаре [14:55:04]line ОКРУГЛЕНИЕ: -0.19 [14:55:04]line ИТОГО: 1200.00 [14:55:04]line Внесено: 1200.00 [14:55:04]line СДАЧА: 0.00 [14:55:04]line НСП 1% : 10.62 [14:55:04]line НДС 12% : 127.45 [14:55:04]line Наличными: 1200.00 [14:55:04]line Безнал.: 0.00 [14:55:04]line Место: АЗС № 171 "Партнер Нефть" [14:55:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:55:04]line СНО: Общий режим [14:55:04]line Чек 309 27.10.2024 14:55 [14:55:04]line Смена: 544 ФФД: 1.0 [14:55:04]line ЗНМ: 0300000109 [14:55:04]line РНМ: 0000000000091777 [14:55:04]line Версия ККМ: 001 [14:55:04]line ФМ: 0000000000871756 [14:55:04]line ФД: 202017 [14:55:04]line ФПД: 10351763752685 [14:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145504&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202017&fm=10351763752685&tin=02508201610067®Number=0000000000091777&sum=120000 [14:55:04]written 0, free lines is 4095 [14:55:04]OFD Sender: Processing packet 202017 [packets to send 112, broken 111] [14:55:04]ProducePacketName [14:55:04]name=ofd_packets/00202017 [14:55:04]OFD Sender: To server: pG, [14:55:04]CommunicateWithHost lk.salyk.kg:30040 [14:55:04]ConnectInit lk.salyk.kg [14:55:04]Connected sock=10 [14:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 21 00 07 01 BA 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 48 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 15 03 00 35 04 06 00 09 6A 35 33 86 ED 29 C2 83 36 C3 1C 85 21 [14:55:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8F 4C 47 00 45 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 15 03 00 F4 03 04 00 01 00 1E 67 B6 04 01 00 00 82 CC 7A 1D E5 EF 76 D1 [14:55:05]CommunicateWithHost err = 0 [14:55:05]CheckOFDResponse [14:55:05]1017 (14) - 77093643461234 [14:55:05]1041 (16) - 0000000000871756 [14:55:05]1040 (4) - 202017 [14:55:05]1012 (4) - 27.10.2024 08:55 [14:55:05]1206 (1) - 0 [14:55:05]OFD Sender: Remove packet 202017 [14:55:05]ProducePacketName [14:55:05]name=ofd_packets/00202017 [14:55:05]NVStorageDeleteData [14:55:05]Write to MH i2c: 01 00 00 B0 27 D7 [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 B0 27 00 00 00 00 00 95 0C 7F [14:55:05]RasterBufferAndPrint [14:55:05]line [14:55:05]line [14:55:05]line [14:55:05]line [14:55:05]line [14:55:05]written 0, free lines is 3228 [14:55:05]MH_Cut [14:55:05]Write to MH i2c: D1 01 00 B7 27 01 B0 [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D1 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D1 01 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D1 01 00 B7 27 00 AF [14:55:05]Write to MH i2c: 01 00 00 B8 27 DF [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]OFD Sender: No OFD packet to send [14:55:06]*** Cut start [14:55:06]*** Purtial cut [14:55:06]*** Stage 1: CUTSNS_PIN = 1 [14:55:06]Read from MH i2c: 01 [14:55:06]MH_I2C_Read... [14:55:06]*** Stop cut motor [14:55:06]*** Cut end [14:55:06]Read from MH i2c: 01 07 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 07 00 B8 27 00 00 00 00 00 FF 0F F4 [14:55:06]process_action close_receipt done [14:55:06]requested_data is exist [14:55:06]produce_requested_data [14:55:06]requested_item fm.sn is exist - process it [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 11 00 00 [14:55:06]Write to MH i2c: E2 08 00 B9 27 80 11 00 00 00 00 00 00 5A [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 17 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 17 00 B9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AF [14:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:55:06]wFMCommunicate OK [14:55:06]requested_item fd.num is exist - process it [14:55:06]SAM_PROTO_GetFieldsCounters [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 13 00 00 [14:55:06]Write to MH i2c: E2 08 00 BA 27 80 13 00 00 00 00 00 00 5D [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 62 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 62 00 BA 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 21 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [14:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 21 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:06]wFMCommunicate OK [14:55:06]SAM_PROTO_GetFieldsCounters done [14:55:06]requested_item shift.num is exist - process it [14:55:06]requested_item shift.opened is exist - process it [14:55:06]req_shift_opened [14:55:06]FM_GetShiftState [14:55:06]SAM_PROTO_GetShiftState [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 13 01 00 [14:55:06]Write to MH i2c: E2 08 00 BB 27 80 13 01 00 00 00 00 00 5F [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 0E 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 0E 00 BB 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 61 [14:55:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:55:06]wFMCommunicate OK [14:55:06]SAM_PROTO_GetShiftState done [14:55:06]FM_GetShiftState done [14:55:06]req_shift_opened done [14:55:06]requested_item shift.open_date is exist - process it [14:55:06]req_shift_open_date [14:55:06]req_shift_open_date done [14:55:06]produce_requested_data done [14:55:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202017,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:55:06]process_action_free close_receipt [14:55:06]json_value_free [14:55:06]json_value_free done [14:55:06]process_json_proto returns [14:55:06]Send response to host [14:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202017,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:55:06]free response buf [14:55:06]execute_script done [14:55:06]execute_script returns [14:55:06]free content buf [14:55:06]Sock 8.Close socket [14:55:06]Sock 8.Thread stoped [14:55:08]int [14:55:08]Write to MH i2c: 01 00 00 BC 27 E3 [14:55:08]*** FLAG_PRN_KEY set [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 BC 27 00 08 00 00 00 FF 0F 00 [14:55:08]state=0 [14:55:08]Key pressed [14:55:08]Feed [14:55:08]Write to MH i2c: D8 00 00 BD 27 BB [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: D8 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: D8 01 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: D8 01 00 BD 27 00 BC [14:55:08]int [14:55:08]Write to MH i2c: 01 00 00 BE 27 E5 [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 BE 27 00 48 00 00 00 3C 00 70 [14:55:08]state=2 [14:55:08]Key pressed [14:55:08]int [14:55:08]Write to MH i2c: 01 00 00 BF 27 E6 [14:55:08]*** FLAG_PRN_KEY reset [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 BF 27 00 00 00 00 00 F9 0F F5 [14:55:08]state=2 [14:55:08]Stop feed [14:55:08]int [14:55:08]Write to MH i2c: 01 00 00 C0 27 E7 [14:55:08]*** FLAG_PRN_KEY set [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 C0 27 00 08 00 00 00 FF 0F 04 [14:55:08]state=0 [14:55:08]Key pressed [14:55:08]Feed [14:55:08]Write to MH i2c: D8 00 00 C1 27 BF [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: D8 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: D8 01 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: D8 01 00 C1 27 00 C0 [14:55:08]int [14:55:08]Write to MH i2c: 01 00 00 C2 27 E9 [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 C2 27 00 48 00 00 00 3C 00 74 [14:55:08]state=2 [14:55:08]Key pressed [14:55:08]int [14:55:08]Write to MH i2c: 01 00 00 C3 27 EA [14:55:08]*** FLAG_PRN_KEY reset [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 C3 27 00 00 00 00 00 F7 0F F7 [14:55:08]state=2 [14:55:08]Stop feed [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:04]accept exits with 9 [14:58:04]New connection [14:58:04]New thread 3066498404 created [14:58:04]Thread 3066641764 joined [14:58:04]Waiting for new connection... [14:58:04] Sock 9.Parse request [14:58:04]Sock 9.Check first char [14:58:04]Sock 9.First char is OK [14:58:04]request: POST /json_proto HTTP/1.0 [14:58:04]Method: POST [14:58:04]URL: /json_proto [14:58:04]Method is POST - this is cgi request [14:58:04]url: /json_proto [14:58:04]query_string will be loaded in cgi processing [14:58:04]execute_cgi json_proto POST (null) [14:58:04]execute_cgi path=json_proto method=POST [14:58:04]POST find Content-Length [14:58:04]Host: 172.17.63.195:8080 [14:58:04]Content-Length: 766 [14:58:04]Content-Type: application/json [14:58:04] [14:58:04]POST finish read [14:58:04]Found Content-Length = 766 [14:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:04]execute_script... [14:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:04]POST & json_proto [14:58:04]process_json_proto [14:58:04]json parsed OK: [14:58:04]protocol is kg_v1.0 [14:58:04]action value=close_receipt [14:58:04]process_action close_receipt [14:58:04]cmd_close_receipt [14:58:04]MH_GetDate [14:58:04]Write to MH i2c: F0 00 00 C4 27 DA [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: F0 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: F0 09 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: F0 09 00 C4 27 00 FD 54 1E 67 47 1B 1E 67 A0 [14:58:04]GetLastDocTimeStamp 1730040904 [14:58:04]current date 1730041085 [14:58:04]FM_GetShiftState [14:58:04]SAM_PROTO_GetShiftState [14:58:04]wFMCommunicate request_size=4 [14:58:04]MH_SAM_APDU [14:58:04]CAPDU: 80 13 01 00 [14:58:04]Write to MH i2c: E2 08 00 C5 27 80 13 01 00 00 00 00 00 69 [14:58:04]Write i2c OK [14:58:04]MH_I2C_Read... [14:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:04]Read from MH i2c: E2 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 0E 00 [14:58:04]MH_I2C_Read... [14:58:04]Read from MH i2c: E2 0E 00 C5 27 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6B [14:58:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:58:04]wFMCommunicate OK [14:58:04]SAM_PROTO_GetShiftState done [14:58:04]FM_GetShiftState done [14:58:04]opened in 1729987312 [14:58:04]opened+sec_in_day 1730073712 [14:58:04]quantity*price = 50041 [14:58:04]sum+1 = 50042 [14:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 310 27.10.2024 14:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202018 ФПД: 179647285927157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145805&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202018&fm=179647285927157&tin=02508201610067®Number=0000000000091777&sum=50041 [14:58:05]StoreToDocumentArchive [14:58:05]shift 544 fd 202018 [14:58:05]save to /storage/0544/doc_00202018 [14:58:05]save last doc name /storage/0544/doc_00202018 to /storage/kkm_last_doc_name [14:58:05]save OK [14:58:05]Clear old archive folders... [14:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:05]tlvbuf is B6D5C530 [14:58:05]SAM_PROTO_ClearQueue [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 09 00 00 [14:58:05]Write to MH i2c: E2 08 00 D2 27 80 09 00 00 00 00 00 00 6B [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 D2 27 00 90 00 6D [14:58:05]RAPDU: 90 00 [14:58:05]wFMCommunicate OK [14:58:05]SAM_PROTO_ClearQueue done [14:58:05]KKMCreateOFDPacket [14:58:05]OFDProtocolAddRootSTLVToBuf [14:58:05]FM_MakeSignedData [14:58:05]FM_MakeSignedData [14:58:05]SAM_PROTO_SignData [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 0D 01 02 [14:58:05]Write to MH i2c: E2 08 00 D3 27 80 0D 01 02 00 00 00 00 73 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 D3 27 00 90 00 6E [14:58:05]RAPDU: 90 00 [14:58:05]wFMCommunicate OK [14:58:05]wFMCommunicate request_size=255 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FD 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 15 03 00 35 04 06 00 A3 [14:58:05]Write to MH i2c: E2 02 01 D4 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FD 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 15 03 00 35 04 06 00 A3 00 00 65 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 D4 27 00 90 00 6F [14:58:05]RAPDU: 90 00 [14:58:05]wFMCommunicate OK [14:58:05]wFMCommunicate request_size=10 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 0D 02 02 05 63 64 A9 9C F5 [14:58:05]Write to MH i2c: E2 0D 00 D5 27 80 0D 02 02 05 00 63 64 A9 9C F5 00 00 81 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [14:58:05]RAPDU: 90 00 [14:58:05]wFMCommunicate OK [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 0D 03 02 [14:58:05]Write to MH i2c: E2 08 00 D6 27 80 0D 03 02 00 00 00 00 78 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 0B 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 0B 00 D6 27 00 E1 50 94 3B 36 88 86 85 90 00 42 [14:58:05]RAPDU: E1 50 94 3B 36 88 86 85 90 00 [14:58:05]wFMCommunicate OK [14:58:05]SAM_PROTO_SignData done [14:58:05]FM_MakeSignedData done [14:58:05]CreateOFDProtocolMessage [14:58:05]wFMCommunicate request_size=4 [14:58:05]MH_SAM_APDU [14:58:05]CAPDU: 80 11 00 00 [14:58:05]Write to MH i2c: E2 08 00 D7 27 80 11 00 00 00 00 00 00 78 [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:05]Read from MH i2c: E2 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 17 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: E2 17 00 D7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CD [14:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:58:05]wFMCommunicate OK [14:58:05]CreateOFDProtocolMessage done [14:58:05]OFDSenderStorePacket 202018 [14:58:05]StoreOFDPacket docnum=202018 [14:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 57 8F 07 01 C2 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FD 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 15 03 00 35 04 06 00 A3 63 64 A9 9C F5 E1 50 94 3B 36 88 86 85 [14:58:05]CheckFolder [14:58:05]dirname=/storage/ofd_packets [14:58:05]CheckFolder done [14:58:05]ProducePacketName [14:58:05]name=ofd_packets/00202018 [14:58:05]NVStorageSaveData ofd_packets/00202018 [14:58:05]File name is /storage/ofd_packets/00202018 [14:58:05]Write 301 bytes [14:58:05]NVStorageSaveData done [14:58:05]OFDSenderStorePacket done [14:58:05]KKMCreateOFDPacket done [14:58:05]NVStorageSaveData kkm_last_timestamp [14:58:05]File name is /storage/kkm_last_timestamp [14:58:05]Write 4 bytes [14:58:05]NVStorageSaveData done [14:58:05]ExternCall_PrintAddStr [14:58:05]wPrintStart [14:58:05]Write to MH i2c: 01 00 00 D8 27 FF [14:58:05]Write i2c OK [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 07 00 [14:58:05]MH_I2C_Read... [14:58:05]Read from MH i2c: 01 07 00 D8 27 00 00 00 00 00 FF 0F 14 [14:58:05]RasterBufferAndPrint [14:58:05]line Счет N : (1)449783 [14:58:05]line ИНН: 02508201610067 [14:58:05]line Контрольно-Кассовый Чек [14:58:05]line ПРОДАЖА [14:58:05]line ТРК (МРК, ГНК) : 31 [14:58:05]line Товар: 2710124130 [14:58:05]line Аи-92-К-2 [14:58:05]line 7.480 * 66.90 [14:58:05]line = 500.41 [14:58:05]line НДС 12% НСП 1% [14:58:05]line > о реализуемом товаре [14:58:05]line ИТОГО: 500.41 [14:58:05]line НСП 1% : 4.43 [14:58:05]line НДС 12% : 53.14 [14:58:05]line Наличными: 0.00 [14:58:05]line Безнал.: 500.41 [14:58:05]line Место: АЗС № 171 "Партнер Нефть" [14:58:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:58:05]line СНО: Общий режим [14:58:05]line Чек 310 27.10.2024 14:58 [14:58:05]line Смена: 544 ФФД: 1.0 [14:58:05]line ЗНМ: 0300000109 [14:58:05]line РНМ: 0000000000091777 [14:58:05]line Версия ККМ: 001 [14:58:05]line Платежная система: Mbank [14:58:05]line ФМ: 0000000000871756 [14:58:05]line ФД: 202018 [14:58:05]line ФПД: 179647285927157 [14:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145805&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202018&fm=179647285927157&tin=02508201610067®Number=0000000000091777&sum=50041 [14:58:06]written 0, free lines is 4095 [14:58:06]OFD Sender: Processing packet 202018 [packets to send 112, broken 111] [14:58:06]ProducePacketName [14:58:06]name=ofd_packets/00202018 [14:58:06]OFD Sender: To server: pG, [14:58:06]CommunicateWithHost lk.salyk.kg:30040 [14:58:06]ConnectInit lk.salyk.kg [14:58:06]Connected sock=11 [14:58:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 57 8F 07 01 C2 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FD 54 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 15 03 00 35 04 06 00 A3 63 64 A9 9C F5 E1 50 94 3B 36 88 86 85 [14:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 77 EE 47 00 D4 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 15 03 00 F4 03 04 00 B7 00 1E 67 B6 04 01 00 00 E7 66 99 F6 BF 00 AC 8E [14:58:06]CommunicateWithHost err = 0 [14:58:06]CheckOFDResponse [14:58:06]1017 (14) - 77093643461234 [14:58:06]1041 (16) - 0000000000871756 [14:58:06]1040 (4) - 202018 [14:58:06]1012 (4) - 27.10.2024 08:58 [14:58:06]1206 (1) - 0 [14:58:06]OFD Sender: Remove packet 202018 [14:58:06]ProducePacketName [14:58:06]name=ofd_packets/00202018 [14:58:06]NVStorageDeleteData [14:58:06]Write to MH i2c: 01 00 00 01 28 29 [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: 01 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: 01 07 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: 01 07 00 01 28 00 00 00 00 00 C2 0C FE [14:58:06]RasterBufferAndPrint [14:58:06]line [14:58:06]line [14:58:06]line [14:58:06]line [14:58:06]line [14:58:06]written 0, free lines is 3271 [14:58:06]MH_Cut [14:58:06]Write to MH i2c: D1 01 00 08 28 01 02 [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: D1 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: D1 01 00 [14:58:06]MH_I2C_Read... [14:58:06]Read from MH i2c: D1 01 00 08 28 00 01 [14:58:06]Write to MH i2c: 01 00 00 09 28 31 [14:58:06]Write i2c OK [14:58:06]MH_I2C_Read... [14:58:07]OFD Sender: No OFD packet to send [14:58:07]*** Cut start [14:58:07]*** Purtial cut [14:58:07]*** Stage 1: CUTSNS_PIN = 1 [14:58:07]Read from MH i2c: 01 [14:58:07]MH_I2C_Read... [14:58:07]*** Stop cut motor [14:58:07]*** Cut end [14:58:07]Read from MH i2c: 01 07 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: 01 07 00 09 28 00 00 00 00 00 FF 0F 46 [14:58:07]process_action close_receipt done [14:58:07]requested_data is exist [14:58:07]produce_requested_data [14:58:07]requested_item fm.sn is exist - process it [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 11 00 00 [14:58:07]Write to MH i2c: E2 08 00 0A 28 80 11 00 00 00 00 00 00 AC [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 17 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 17 00 0A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 01 [14:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:58:07]wFMCommunicate OK [14:58:07]requested_item fd.num is exist - process it [14:58:07]SAM_PROTO_GetFieldsCounters [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 13 00 00 [14:58:07]Write to MH i2c: E2 08 00 0B 28 80 13 00 00 00 00 00 00 AF [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 62 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 62 00 0B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 22 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [14:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 22 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:07]wFMCommunicate OK [14:58:07]SAM_PROTO_GetFieldsCounters done [14:58:07]requested_item shift.num is exist - process it [14:58:07]requested_item shift.opened is exist - process it [14:58:07]req_shift_opened [14:58:07]FM_GetShiftState [14:58:07]SAM_PROTO_GetShiftState [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 13 01 00 [14:58:07]Write to MH i2c: E2 08 00 0C 28 80 13 01 00 00 00 00 00 B1 [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:08]Read from MH i2c: E2 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 0E 00 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 0E 00 0C 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B3 [14:58:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:58:08]wFMCommunicate OK [14:58:08]SAM_PROTO_GetShiftState done [14:58:08]FM_GetShiftState done [14:58:08]req_shift_opened done [14:58:08]requested_item shift.open_date is exist - process it [14:58:08]req_shift_open_date [14:58:08]req_shift_open_date done [14:58:08]produce_requested_data done [14:58:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202018,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:58:08]process_action_free close_receipt [14:58:08]json_value_free [14:58:08]json_value_free done [14:58:08]process_json_proto returns [14:58:08]Send response to host [14:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202018,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:58:08]free response buf [14:58:08]execute_script done [14:58:08]execute_script returns [14:58:08]free content buf [14:58:08]Sock 9.Close socket [14:58:08]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:37]accept exits with 8 [14:58:37]New connection [14:58:37]New thread 3066641764 created [14:58:37]Thread 3066498404 joined [14:58:37]Waiting for new connection... [14:58:37] Sock 8.Parse request [14:58:37]Sock 8.Check first char [14:58:37]Sock 8.First char is OK [14:58:37]request: POST /json_proto HTTP/1.0 [14:58:37]Method: POST [14:58:37]URL: /json_proto [14:58:37]Method is POST - this is cgi request [14:58:37]url: /json_proto [14:58:37]query_string will be loaded in cgi processing [14:58:37]execute_cgi json_proto POST (null) [14:58:37]execute_cgi path=json_proto method=POST [14:58:37]POST find Content-Length [14:58:37]Host: 172.17.63.195:8080 [14:58:37]Content-Length: 763 [14:58:37]Content-Type: application/json [14:58:37] [14:58:37]POST finish read [14:58:37]Found Content-Length = 763 [14:58:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:37]execute_script... [14:58:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:37]POST & json_proto [14:58:37]process_json_proto [14:58:37]json parsed OK: [14:58:37]protocol is kg_v1.0 [14:58:37]action value=close_receipt [14:58:37]process_action close_receipt [14:58:37]cmd_close_receipt [14:58:37]MH_GetDate [14:58:37]Write to MH i2c: F0 00 00 0D 28 24 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: F0 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: F0 09 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: F0 09 00 0D 28 00 1E 55 1E 67 47 1B 1E 67 0C [14:58:37]GetLastDocTimeStamp 1730041085 [14:58:37]current date 1730041118 [14:58:37]FM_GetShiftState [14:58:37]SAM_PROTO_GetShiftState [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 13 01 00 [14:58:37]Write to MH i2c: E2 08 00 0E 28 80 13 01 00 00 00 00 00 B3 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 0E 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 0E 00 0E 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B5 [14:58:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:58:37]wFMCommunicate OK [14:58:37]SAM_PROTO_GetShiftState done [14:58:37]FM_GetShiftState done [14:58:37]opened in 1729987312 [14:58:37]opened+sec_in_day 1730073712 [14:58:37]quantity*price = 50063 [14:58:37]sum+1 = 50064 [14:58:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 311 27.10.2024 14:58 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202019 ФПД: 108772828492907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145838&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202019&fm=108772828492907&tin=02508201610067®Number=0000000000091777&sum=50063 [14:58:38]StoreToDocumentArchive [14:58:38]shift 544 fd 202019 [14:58:38]save to /storage/0544/doc_00202019 [14:58:38]save last doc name /storage/0544/doc_00202019 to /storage/kkm_last_doc_name [14:58:38]save OK [14:58:38]Clear old archive folders... [14:58:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:58:38]tlvbuf is 012AA2D0 [14:58:38]SAM_PROTO_ClearQueue [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 09 00 00 [14:58:38]Write to MH i2c: E2 08 00 1B 28 80 09 00 00 00 00 00 00 B5 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 1B 28 00 90 00 B7 [14:58:38]RAPDU: 90 00 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_ClearQueue done [14:58:38]KKMCreateOFDPacket [14:58:38]OFDProtocolAddRootSTLVToBuf [14:58:38]FM_MakeSignedData [14:58:38]FM_MakeSignedData [14:58:38]SAM_PROTO_SignData [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 0D 01 02 [14:58:38]Write to MH i2c: E2 08 00 1C 28 80 0D 01 02 00 00 00 00 BD [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 1C 28 00 90 00 B8 [14:58:38]RAPDU: 90 00 [14:58:38]wFMCommunicate OK [14:58:38]wFMCommunicate request_size=255 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 1E 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 15 03 00 35 04 06 00 62 ED A5 CD [14:58:38]Write to MH i2c: E2 02 01 1D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 1E 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 15 03 00 35 04 06 00 62 ED A5 CD 00 00 9B [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 1D 28 00 90 00 B9 [14:58:38]RAPDU: 90 00 [14:58:38]wFMCommunicate OK [14:58:38]wFMCommunicate request_size=7 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 0D 02 02 02 B4 6B [14:58:38]Write to MH i2c: E2 0A 00 1E 28 80 0D 02 02 02 00 B4 6B 00 00 E3 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [14:58:38]RAPDU: 90 00 [14:58:38]wFMCommunicate OK [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 0D 03 02 [14:58:38]Write to MH i2c: E2 08 00 1F 28 80 0D 03 02 00 00 00 00 C2 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0B 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0B 00 1F 28 00 4A D4 F2 2F F4 46 46 1A 90 00 9C [14:58:38]RAPDU: 4A D4 F2 2F F4 46 46 1A 90 00 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_SignData done [14:58:38]FM_MakeSignedData done [14:58:38]CreateOFDProtocolMessage [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 11 00 00 [14:58:38]Write to MH i2c: E2 08 00 20 28 80 11 00 00 00 00 00 00 C2 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 17 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 17 00 20 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 17 [14:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:58:38]wFMCommunicate OK [14:58:38]CreateOFDProtocolMessage done [14:58:38]OFDSenderStorePacket 202019 [14:58:38]StoreOFDPacket docnum=202019 [14:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 5D 64 04 01 B3 3F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 1E 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 15 03 00 35 04 06 00 62 ED A5 CD B4 6B 4A D4 F2 2F F4 46 46 1A [14:58:38]CheckFolder [14:58:38]dirname=/storage/ofd_packets [14:58:38]CheckFolder done [14:58:38]ProducePacketName [14:58:38]name=ofd_packets/00202019 [14:58:38]NVStorageSaveData ofd_packets/00202019 [14:58:38]File name is /storage/ofd_packets/00202019 [14:58:38]Write 298 bytes [14:58:38]NVStorageSaveData done [14:58:38]OFDSenderStorePacket done [14:58:38]KKMCreateOFDPacket done [14:58:38]NVStorageSaveData kkm_last_timestamp [14:58:38]File name is /storage/kkm_last_timestamp [14:58:38]Write 4 bytes [14:58:38]NVStorageSaveData done [14:58:38]ExternCall_PrintAddStr [14:58:38]wPrintStart [14:58:38]Write to MH i2c: 01 00 00 21 28 49 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: 01 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: 01 07 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: 01 07 00 21 28 00 00 00 00 00 FF 0F 5E [14:58:38]RasterBufferAndPrint [14:58:38]line Счет N : (1)449784 [14:58:38]line ИНН: 02508201610067 [14:58:38]line Контрольно-Кассовый Чек [14:58:38]line ПРОДАЖА [14:58:38]line ТРК (МРК, ГНК) : 21 [14:58:38]line Товар: 2710194210 [14:58:38]line ДТ-К-2 [14:58:38]line 6.570 * 76.20 [14:58:38]line = 500.63 [14:58:38]line НДС 12% НСП 1% [14:58:38]line > о реализуемом товаре [14:58:38]line ИТОГО: 500.63 [14:58:38]line НСП 1% : 4.43 [14:58:38]line НДС 12% : 53.16 [14:58:38]line Наличными: 0.00 [14:58:38]line Безнал.: 500.63 [14:58:38]line Место: АЗС № 171 "Партнер Нефть" [14:58:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:58:38]line СНО: Общий режим [14:58:38]line Чек 311 27.10.2024 14:58 [14:58:38]line Смена: 544 ФФД: 1.0 [14:58:38]line ЗНМ: 0300000109 [14:58:38]line РНМ: 0000000000091777 [14:58:38]line Версия ККМ: 001 [14:58:38]line Платежная система: Mbank [14:58:38]line ФМ: 0000000000871756 [14:58:38]line ФД: 202019 [14:58:38]line ФПД: 108772828492907 [14:58:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145838&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202019&fm=108772828492907&tin=02508201610067®Number=0000000000091777&sum=50063 [14:58:39]OFD Sender: Processing packet 202019 [packets to send 112, broken 111] [14:58:39]ProducePacketName [14:58:39]name=ofd_packets/00202019 [14:58:39]OFD Sender: To server: pG, [14:58:39]CommunicateWithHost lk.salyk.kg:30040 [14:58:39]ConnectInit lk.salyk.kg [14:58:39]written 0, free lines is 4095 [14:58:39]Connected sock=10 [14:58:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 5D 64 04 01 B3 3F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 1E 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 15 03 00 35 04 06 00 62 ED A5 CD B4 6B 4A D4 F2 2F F4 46 46 1A [14:58:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 38 89 47 00 B5 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 15 03 00 F4 03 04 00 D8 00 1E 67 B6 04 01 00 00 D7 AC 3C 59 99 5D 06 41 [14:58:39]CommunicateWithHost err = 0 [14:58:39]CheckOFDResponse [14:58:39]1017 (14) - 77093643461234 [14:58:39]1041 (16) - 0000000000871756 [14:58:39]1040 (4) - 202019 [14:58:39]1012 (4) - 27.10.2024 08:59 [14:58:39]1206 (1) - 0 [14:58:39]OFD Sender: Remove packet 202019 [14:58:39]ProducePacketName [14:58:39]name=ofd_packets/00202019 [14:58:39]NVStorageDeleteData [14:58:39]Write to MH i2c: 01 00 00 4A 28 72 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 07 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 07 00 4A 28 00 00 00 00 00 BC 0C 41 [14:58:39]RasterBufferAndPrint [14:58:39]line [14:58:39]line [14:58:39]line [14:58:39]line [14:58:39]line [14:58:39]written 0, free lines is 3264 [14:58:39]MH_Cut [14:58:39]Write to MH i2c: D1 01 00 51 28 01 4B [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: D1 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: D1 01 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: D1 01 00 51 28 00 4A [14:58:39]Write to MH i2c: 01 00 00 52 28 7A [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]OFD Sender: No OFD packet to send [14:58:40]*** Cut start [14:58:40]*** Purtial cut [14:58:40]*** Stage 1: CUTSNS_PIN = 1 [14:58:40]Read from MH i2c: 01 [14:58:40]MH_I2C_Read... [14:58:40]*** Stop cut motor [14:58:40]*** Cut end [14:58:40]Read from MH i2c: 01 07 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: 01 07 00 52 28 00 00 00 00 00 FF 0F 8F [14:58:40]process_action close_receipt done [14:58:40]requested_data is exist [14:58:40]produce_requested_data [14:58:40]requested_item fm.sn is exist - process it [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 11 00 00 [14:58:40]Write to MH i2c: E2 08 00 53 28 80 11 00 00 00 00 00 00 F5 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 17 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 17 00 53 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [14:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:58:40]wFMCommunicate OK [14:58:40]requested_item fd.num is exist - process it [14:58:40]SAM_PROTO_GetFieldsCounters [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 13 00 00 [14:58:40]Write to MH i2c: E2 08 00 54 28 80 13 00 00 00 00 00 00 F8 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 62 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 62 00 54 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 23 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 23 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:40]wFMCommunicate OK [14:58:40]SAM_PROTO_GetFieldsCounters done [14:58:40]requested_item shift.num is exist - process it [14:58:40]requested_item shift.opened is exist - process it [14:58:40]req_shift_opened [14:58:40]FM_GetShiftState [14:58:40]SAM_PROTO_GetShiftState [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 13 01 00 [14:58:40]Write to MH i2c: E2 08 00 55 28 80 13 01 00 00 00 00 00 FA [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 0E 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 0E 00 55 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FC [14:58:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:58:40]wFMCommunicate OK [14:58:40]SAM_PROTO_GetShiftState done [14:58:40]FM_GetShiftState done [14:58:40]req_shift_opened done [14:58:40]requested_item shift.open_date is exist - process it [14:58:40]req_shift_open_date [14:58:40]req_shift_open_date done [14:58:40]produce_requested_data done [14:58:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202019,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:58:41]process_action_free close_receipt [14:58:41]json_value_free [14:58:41]json_value_free done [14:58:41]process_json_proto returns [14:58:41]Send response to host [14:58:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202019,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:58:41]free response buf [14:58:41]execute_script done [14:58:41]execute_script returns [14:58:41]free content buf [14:58:41]Sock 8.Close socket [14:58:41]Sock 8.Thread stoped [14:58:44]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:34]accept exits with 9 [14:59:34]New connection [14:59:34]New thread 3066498404 created [14:59:34]Thread 3066641764 joined [14:59:34]Waiting for new connection... [14:59:34] Sock 9.Parse request [14:59:34]Sock 9.Check first char [14:59:34]Sock 9.First char is OK [14:59:34]request: POST /json_proto HTTP/1.0 [14:59:34]Method: POST [14:59:34]URL: /json_proto [14:59:34]Method is POST - this is cgi request [14:59:34]url: /json_proto [14:59:34]query_string will be loaded in cgi processing [14:59:34]execute_cgi json_proto POST (null) [14:59:34]execute_cgi path=json_proto method=POST [14:59:34]POST find Content-Length [14:59:34]Host: 172.17.63.195:8080 [14:59:34]Content-Length: 677 [14:59:34]Content-Type: application/json [14:59:34] [14:59:34]POST finish read [14:59:34]Found Content-Length = 677 [14:59:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:34]execute_script... [14:59:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:34]POST & json_proto [14:59:34]process_json_proto [14:59:34]json parsed OK: [14:59:34]protocol is kg_v1.0 [14:59:34]action value=close_receipt [14:59:34]process_action close_receipt [14:59:34]cmd_close_receipt [14:59:34]MH_GetDate [14:59:34]Write to MH i2c: F0 00 00 56 28 6D [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: F0 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: F0 09 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: F0 09 00 56 28 00 58 55 1E 67 47 1B 1E 67 8F [14:59:34]GetLastDocTimeStamp 1730041118 [14:59:34]current date 1730041176 [14:59:34]FM_GetShiftState [14:59:34]SAM_PROTO_GetShiftState [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 13 01 00 [14:59:34]Write to MH i2c: E2 08 00 57 28 80 13 01 00 00 00 00 00 FC [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 57 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FE [14:59:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:59:34]wFMCommunicate OK [14:59:34]SAM_PROTO_GetShiftState done [14:59:34]FM_GetShiftState done [14:59:34]opened in 1729987312 [14:59:34]opened+sec_in_day 1730073712 [14:59:34]quantity*price = 50041 [14:59:34]sum+1 = 50042 [14:59:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 312 27.10.2024 14:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202020 ФПД: 95041314238376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145936&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202020&fm=95041314238376&tin=02508201610067®Number=0000000000091777&sum=50000 [14:59:36]StoreToDocumentArchive [14:59:36]shift 544 fd 202020 [14:59:36]save to /storage/0544/doc_00202020 [14:59:36]save last doc name /storage/0544/doc_00202020 to /storage/kkm_last_doc_name [14:59:36]save OK [14:59:36]Clear old archive folders... [14:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:36]tlvbuf is 011A7C50 [14:59:36]SAM_PROTO_ClearQueue [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 09 00 00 [14:59:36]Write to MH i2c: E2 08 00 64 28 80 09 00 00 00 00 00 00 FE [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 64 28 00 90 00 00 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_ClearQueue done [14:59:36]KKMCreateOFDPacket [14:59:36]OFDProtocolAddRootSTLVToBuf [14:59:36]FM_MakeSignedData [14:59:36]FM_MakeSignedData [14:59:36]SAM_PROTO_SignData [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 01 02 [14:59:36]Write to MH i2c: E2 08 00 65 28 80 0D 01 02 00 00 00 00 06 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 65 28 00 90 00 01 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=255 [14:59:36]MH_SAM_APDU [14:59: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 32 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 38 01 00 00 F4 03 04 00 58 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 15 03 00 35 04 06 00 56 [14:59:36]Write to MH i2c: E2 02 01 66 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 32 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 38 01 00 00 F4 03 04 00 58 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 15 03 00 35 04 06 00 56 00 00 B9 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 66 28 00 90 00 02 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=10 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 02 02 05 70 87 C6 2F A8 [14:59:36]Write to MH i2c: E2 0D 00 67 28 80 0D 02 02 05 00 70 87 C6 2F A8 00 00 A7 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 67 28 00 90 00 03 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 03 02 [14:59:36]Write to MH i2c: E2 08 00 68 28 80 0D 03 02 00 00 00 00 0B [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0B 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0B 00 68 28 00 0C 5D D0 A5 3C 77 85 FE 90 00 20 [14:59:36]RAPDU: 0C 5D D0 A5 3C 77 85 FE 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_SignData done [14:59:36]FM_MakeSignedData done [14:59:36]CreateOFDProtocolMessage [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 11 00 00 [14:59:36]Write to MH i2c: E2 08 00 69 28 80 11 00 00 00 00 00 00 0B [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 17 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 17 00 69 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 60 [14:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:59:36]wFMCommunicate OK [14:59:36]CreateOFDProtocolMessage done [14:59:36]OFDSenderStorePacket 202020 [14:59:36]StoreOFDPacket docnum=202020 [14:59:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 07 73 07 01 B9 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 01 00 00 F4 03 04 00 58 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 15 03 00 35 04 06 00 56 70 87 C6 2F A8 0C 5D D0 A5 3C 77 85 FE [14:59:36]CheckFolder [14:59:36]dirname=/storage/ofd_packets [14:59:36]CheckFolder done [14:59:36]ProducePacketName [14:59:36]name=ofd_packets/00202020 [14:59:36]NVStorageSaveData ofd_packets/00202020 [14:59:36]File name is /storage/ofd_packets/00202020 [14:59:36]Write 301 bytes [14:59:36]NVStorageSaveData done [14:59:36]OFDSenderStorePacket done [14:59:36]KKMCreateOFDPacket done [14:59:36]NVStorageSaveData kkm_last_timestamp [14:59:36]File name is /storage/kkm_last_timestamp [14:59:36]Write 4 bytes [14:59:36]NVStorageSaveData done [14:59:36]ExternCall_PrintAddStr [14:59:36]wPrintStart [14:59:36]Write to MH i2c: 01 00 00 6A 28 92 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 6A 28 00 00 00 00 00 FF 0F A7 [14:59:36]RasterBufferAndPrint [14:59:36]line Счет N : (1)449786 [14:59:36]line ИНН: 02508201610067 [14:59:36]line Контрольно-Кассовый Чек [14:59:36]line ПРОДАЖА [14:59:36]line ТРК (МРК, ГНК) : 41 [14:59:36]line Товар: 2710124130 [14:59:36]line Аи-92-К-2 [14:59:36]line 7.480 * 66.90 [14:59:36]line = 500.41 [14:59:36]line НДС 12% НСП 1% [14:59:36]line > о реализуемом товаре [14:59:36]line ОКРУГЛЕНИЕ: -0.41 [14:59:36]line ИТОГО: 500.00 [14:59:36]line Внесено: 500.00 [14:59:36]line СДАЧА: 0.00 [14:59:36]line НСП 1% : 4.43 [14:59:36]line НДС 12% : 53.14 [14:59:36]line Наличными: 500.00 [14:59:36]line Безнал.: 0.00 [14:59:36]line Место: АЗС № 171 "Партнер Нефть" [14:59:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:59:36]line СНО: Общий режим [14:59:36]line Чек 312 27.10.2024 14:59 [14:59:36]line Смена: 544 ФФД: 1.0 [14:59:36]line ЗНМ: 0300000109 [14:59:36]line РНМ: 0000000000091777 [14:59:36]line Версия ККМ: 001 [14:59:36]line ФМ: 0000000000871756 [14:59:36]line ФД: 202020 [14:59:36]line ФПД: 95041314238376 [14:59:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145936&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202020&fm=95041314238376&tin=02508201610067®Number=0000000000091777&sum=50000 [14:59:36]OFD Sender: Processing packet 202020 [packets to send 112, broken 111] [14:59:36]ProducePacketName [14:59:36]name=ofd_packets/00202020 [14:59:36]OFD Sender: To server: pG, [14:59:36]CommunicateWithHost lk.salyk.kg:30040 [14:59:36]ConnectInit lk.salyk.kg [14:59:36]written 0, free lines is 4095 [14:59:36]Connected sock=10 [14:59:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 07 73 07 01 B9 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 01 00 00 F4 03 04 00 58 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 15 03 00 35 04 06 00 56 70 87 C6 2F A8 0C 5D D0 A5 3C 77 85 FE [14:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B3 2C 47 00 14 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 15 03 00 F4 03 04 00 11 01 1E 67 B6 04 01 00 00 1B 83 06 50 EC ED D6 55 [14:59:37]CommunicateWithHost err = 0 [14:59:37]CheckOFDResponse [14:59:37]1017 (14) - 77093643461234 [14:59:37]1041 (16) - 0000000000871756 [14:59:37]1040 (4) - 202020 [14:59:37]1012 (4) - 27.10.2024 09:00 [14:59:37]1206 (1) - 0 [14:59:37]OFD Sender: Remove packet 202020 [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00202020 [14:59:37]NVStorageDeleteData [14:59:37]Write to MH i2c: 01 00 00 95 28 BD [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 95 28 00 00 00 00 00 92 0C 62 [14:59:37]RasterBufferAndPrint [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]written 0, free lines is 3222 [14:59:37]MH_Cut [14:59:37]Write to MH i2c: D1 01 00 9C 28 01 96 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 01 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 01 00 9C 28 00 95 [14:59:37]Write to MH i2c: 01 00 00 9D 28 C5 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]OFD Sender: No OFD packet to send [14:59:38]*** Cut start [14:59:38]*** Purtial cut [14:59:38]*** Stage 1: CUTSNS_PIN = 1 [14:59:38]Read from MH i2c: 01 [14:59:38]MH_I2C_Read... [14:59:38]*** Stop cut motor [14:59:38]*** Cut end [14:59:38]Read from MH i2c: 01 07 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 9D 28 00 00 00 00 00 FF 0F DA [14:59:38]process_action close_receipt done [14:59:38]requested_data is exist [14:59:38]produce_requested_data [14:59:38]requested_item fm.sn is exist - process it [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 11 00 00 [14:59:38]Write to MH i2c: E2 08 00 9E 28 80 11 00 00 00 00 00 00 40 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 17 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 17 00 9E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [14:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:59:38]wFMCommunicate OK [14:59:38]requested_item fd.num is exist - process it [14:59:38]SAM_PROTO_GetFieldsCounters [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 13 00 00 [14:59:38]Write to MH i2c: E2 08 00 9F 28 80 13 00 00 00 00 00 00 43 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 62 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 62 00 9F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 24 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [14:59:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 24 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetFieldsCounters done [14:59:38]requested_item shift.num is exist - process it [14:59:38]requested_item shift.opened is exist - process it [14:59:38]req_shift_opened [14:59:38]FM_GetShiftState [14:59:38]SAM_PROTO_GetShiftState [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 13 01 00 [14:59:38]Write to MH i2c: E2 08 00 A0 28 80 13 01 00 00 00 00 00 45 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 A0 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 47 [14:59:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetShiftState done [14:59:38]FM_GetShiftState done [14:59:38]req_shift_opened done [14:59:38]requested_item shift.open_date is exist - process it [14:59:38]req_shift_open_date [14:59:38]req_shift_open_date done [14:59:38]produce_requested_data done [14:59:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202020,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [14:59:38]process_action_free close_receipt [14:59:38]json_value_free [14:59:38]json_value_free done [14:59:38]process_json_proto returns [14:59:38]Send response to host [14:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202020,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [14:59:38]free response buf [14:59:38]execute_script done [14:59:38]execute_script returns [14:59:38]free content buf [14:59:38]Sock 9.Close socket [14:59:38]Sock 9.Thread stoped [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [14:59:57]accept exits with 8 [14:59:57]New connection [14:59:57]New thread 3066641764 created [14:59:57]Thread 3066498404 joined [14:59:57]Waiting for new connection... [14:59:57] Sock 8.Parse request [14:59:57]Sock 8.Check first char [14:59:57]Sock 8.First char is OK [14:59:57]request: POST /json_proto HTTP/1.0 [14:59:57]Method: POST [14:59:57]URL: /json_proto [14:59:57]Method is POST - this is cgi request [14:59:57]url: /json_proto [14:59:57]query_string will be loaded in cgi processing [14:59:57]execute_cgi json_proto POST (null) [14:59:57]execute_cgi path=json_proto method=POST [14:59:57]POST find Content-Length [14:59:57]Host: 172.17.63.195:8080 [14:59:57]Content-Length: 769 [14:59:57]Content-Type: application/json [14:59:57] [14:59:57]POST finish read [14:59:57]Found Content-Length = 769 [14:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:57]execute_script... [14:59: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)449787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:57]POST & json_proto [14:59:57]process_json_proto [14:59:57]json parsed OK: [14:59:57]protocol is kg_v1.0 [14:59:57]action value=close_receipt [14:59:57]process_action close_receipt [14:59:57]cmd_close_receipt [14:59:57]MH_GetDate [14:59:57]Write to MH i2c: F0 00 00 A1 28 B8 [14:59:57]Write i2c OK [14:59:57]MH_I2C_Read... [14:59:57]Read from MH i2c: F0 [14:59:57]MH_I2C_Read... [14:59:57]Read from MH i2c: F0 09 00 [14:59:57]MH_I2C_Read... [14:59:57]Read from MH i2c: F0 09 00 A1 28 00 6F 55 1E 67 47 1B 1E 67 F1 [14:59:57]GetLastDocTimeStamp 1730041176 [14:59:57]current date 1730041199 [14:59:57]FM_GetShiftState [14:59:57]SAM_PROTO_GetShiftState [14:59:57]wFMCommunicate request_size=4 [14:59:57]MH_SAM_APDU [14:59:57]CAPDU: 80 13 01 00 [14:59:57]Write to MH i2c: E2 08 00 A2 28 80 13 01 00 00 00 00 00 47 [14:59:57]Write i2c OK [14:59:57]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 0E 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 0E 00 A2 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 49 [14:59:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [14:59:58]wFMCommunicate OK [14:59:58]SAM_PROTO_GetShiftState done [14:59:58]FM_GetShiftState done [14:59:58]opened in 1729987312 [14:59:58]opened+sec_in_day 1730073712 [14:59:58]quantity*price = 100015 [14:59:58]sum+1 = 100017 [14:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 313 27.10.2024 14:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202021 ФПД: 128050702550974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145959&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202021&fm=128050702550974&tin=02508201610067®Number=0000000000091777&sum=100016 [14:59:59]StoreToDocumentArchive [14:59:59]shift 544 fd 202021 [14:59:59]save to /storage/0544/doc_00202021 [14:59:59]save last doc name /storage/0544/doc_00202021 to /storage/kkm_last_doc_name [14:59:59]save OK [14:59:59]Clear old archive folders... [14:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:59]tlvbuf is 012B1D50 [14:59:59]SAM_PROTO_ClearQueue [14:59:59]wFMCommunicate request_size=4 [14:59:59]MH_SAM_APDU [14:59:59]CAPDU: 80 09 00 00 [14:59:59]Write to MH i2c: E2 08 00 AF 28 80 09 00 00 00 00 00 00 49 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:59]Read from MH i2c: E2 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 03 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 03 00 AF 28 00 90 00 4B [14:59:59]RAPDU: 90 00 [14:59:59]wFMCommunicate OK [14:59:59]SAM_PROTO_ClearQueue done [14:59:59]KKMCreateOFDPacket [14:59:59]OFDProtocolAddRootSTLVToBuf [14:59:59]FM_MakeSignedData [14:59:59]FM_MakeSignedData [14:59:59]SAM_PROTO_SignData [14:59:59]wFMCommunicate request_size=4 [14:59:59]MH_SAM_APDU [14:59:59]CAPDU: 80 0D 01 02 [14:59:59]Write to MH i2c: E2 08 00 B0 28 80 0D 01 02 00 00 00 00 51 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:59]Read from MH i2c: E2 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 03 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 03 00 B0 28 00 90 00 4C [14:59:59]RAPDU: 90 00 [14:59:59]wFMCommunicate OK [14:59:59]wFMCommunicate request_size=255 [14:59:59]MH_SAM_APDU [14:59:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 39 01 00 00 F4 03 04 00 6F 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 15 03 00 35 04 06 00 74 [14:59:59]Write to MH i2c: E2 02 01 B1 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 32 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 39 01 00 00 F4 03 04 00 6F 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 15 03 00 35 04 06 00 74 00 00 55 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:59]Read from MH i2c: E2 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 03 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 03 00 B1 28 00 90 00 4D [14:59:59]RAPDU: 90 00 [14:59:59]wFMCommunicate OK [14:59:59]wFMCommunicate request_size=10 [14:59:59]MH_SAM_APDU [14:59:59]CAPDU: 80 0D 02 02 05 76 20 A3 87 BE [14:59:59]Write to MH i2c: E2 0D 00 B2 28 80 0D 02 02 05 00 76 20 A3 87 BE 00 00 DC [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:59]Read from MH i2c: E2 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 03 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 03 00 B2 28 00 90 00 4E [14:59:59]RAPDU: 90 00 [14:59:59]wFMCommunicate OK [14:59:59]wFMCommunicate request_size=4 [14:59:59]MH_SAM_APDU [14:59:59]CAPDU: 80 0D 03 02 [14:59:59]Write to MH i2c: E2 08 00 B3 28 80 0D 03 02 00 00 00 00 56 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:59]Read from MH i2c: E2 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 0B 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 0B 00 B3 28 00 0E 61 0A 01 67 4A D3 60 90 00 B5 [14:59:59]RAPDU: 0E 61 0A 01 67 4A D3 60 90 00 [14:59:59]wFMCommunicate OK [14:59:59]SAM_PROTO_SignData done [14:59:59]FM_MakeSignedData done [14:59:59]CreateOFDProtocolMessage [14:59:59]wFMCommunicate request_size=4 [14:59:59]MH_SAM_APDU [14:59:59]CAPDU: 80 11 00 00 [14:59:59]Write to MH i2c: E2 08 00 B4 28 80 11 00 00 00 00 00 00 56 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:59]Read from MH i2c: E2 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 17 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: E2 17 00 B4 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AB [14:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:59:59]wFMCommunicate OK [14:59:59]CreateOFDProtocolMessage done [14:59:59]OFDSenderStorePacket 202021 [14:59:59]StoreOFDPacket docnum=202021 [14:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C E9 07 01 7E E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 39 01 00 00 F4 03 04 00 6F 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 15 03 00 35 04 06 00 74 76 20 A3 87 BE 0E 61 0A 01 67 4A D3 60 [14:59:59]CheckFolder [14:59:59]dirname=/storage/ofd_packets [14:59:59]CheckFolder done [14:59:59]ProducePacketName [14:59:59]name=ofd_packets/00202021 [14:59:59]NVStorageSaveData ofd_packets/00202021 [14:59:59]File name is /storage/ofd_packets/00202021 [14:59:59]Write 301 bytes [14:59:59]NVStorageSaveData done [14:59:59]OFDSenderStorePacket done [14:59:59]KKMCreateOFDPacket done [14:59:59]NVStorageSaveData kkm_last_timestamp [14:59:59]File name is /storage/kkm_last_timestamp [14:59:59]Write 4 bytes [14:59:59]NVStorageSaveData done [14:59:59]ExternCall_PrintAddStr [14:59:59]wPrintStart [14:59:59]Write to MH i2c: 01 00 00 B5 28 DD [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 07 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 07 00 B5 28 00 00 00 00 00 FF 0F F2 [14:59:59]RasterBufferAndPrint [14:59:59]line Счет N : (1)449787 [14:59:59]line ИНН: 02508201610067 [14:59:59]line Контрольно-Кассовый Чек [14:59:59]line ПРОДАЖА [14:59:59]line ТРК (МРК, ГНК) : 52 [14:59:59]line Товар: 2710124130 [14:59:59]line Аи-92-К-2 [14:59:59]line 14.950 * 66.90 [14:59:59]line = 1000.16 [14:59:59]line НДС 12% НСП 1% [14:59:59]line > о реализуемом товаре [14:59:59]line ИТОГО: 1000.16 [14:59:59]line НСП 1% : 8.85 [14:59:59]line НДС 12% : 106.21 [14:59:59]line Наличными: 0.00 [14:59:59]line Безнал.: 1000.16 [14:59:59]line Место: АЗС № 171 "Партнер Нефть" [14:59:59]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:59:59]line СНО: Общий режим [14:59:59]line Чек 313 27.10.2024 14:59 [14:59:59]line Смена: 544 ФФД: 1.0 [14:59:59]line ЗНМ: 0300000109 [14:59:59]line РНМ: 0000000000091777 [14:59:59]line Версия ККМ: 001 [14:59:59]line Платежная система: Mbank [14:59:59]line ФМ: 0000000000871756 [14:59:59]line ФД: 202021 [14:59:59]line ФПД: 128050702550974 [14:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145959&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202021&fm=128050702550974&tin=02508201610067®Number=0000000000091777&sum=100016 [15:00:00]written 0, free lines is 4095 [15:00:00]OFD Sender: Processing packet 202021 [packets to send 112, broken 111] [15:00:00]ProducePacketName [15:00:00]name=ofd_packets/00202021 [15:00:00]OFD Sender: To server: pG, [15:00:00]CommunicateWithHost lk.salyk.kg:30040 [15:00:00]ConnectInit lk.salyk.kg [15:00:00]Connected sock=10 [15:00:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C E9 07 01 7E E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 39 01 00 00 F4 03 04 00 6F 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 15 03 00 35 04 06 00 74 76 20 A3 87 BE 0E 61 0A 01 67 4A D3 60 [15:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A7 26 47 00 9F 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 15 03 00 F4 03 04 00 28 01 1E 67 B6 04 01 00 00 6D 27 8E 2B B9 FA F3 BE [15:00:00]CommunicateWithHost err = 0 [15:00:00]CheckOFDResponse [15:00:00]1017 (14) - 77093643461234 [15:00:00]1041 (16) - 0000000000871756 [15:00:00]1040 (4) - 202021 [15:00:00]1012 (4) - 27.10.2024 09:00 [15:00:00]1206 (1) - 0 [15:00:00]OFD Sender: Remove packet 202021 [15:00:00]ProducePacketName [15:00:00]name=ofd_packets/00202021 [15:00:00]NVStorageDeleteData [15:00:00]Write to MH i2c: 01 00 00 DE 28 06 [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: 01 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: 01 07 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: 01 07 00 DE 28 00 00 00 00 00 BE 0C D7 [15:00:00]RasterBufferAndPrint [15:00:00]line [15:00:00]line [15:00:00]line [15:00:00]line [15:00:00]line [15:00:00]written 0, free lines is 3266 [15:00:00]MH_Cut [15:00:00]Write to MH i2c: D1 01 00 E5 28 01 DF [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: D1 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: D1 01 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: D1 01 00 E5 28 00 DE [15:00:00]Write to MH i2c: 01 00 00 E6 28 0E [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]OFD Sender: No OFD packet to send [15:00:01]*** Cut start [15:00:01]*** Purtial cut [15:00:01]*** Stage 1: CUTSNS_PIN = 1 [15:00:01]Read from MH i2c: 01 [15:00:01]MH_I2C_Read... [15:00:01]*** Stop cut motor [15:00:01]*** Cut end [15:00:01]Read from MH i2c: 01 07 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: 01 07 00 E6 28 00 00 00 00 00 FF 0F 23 [15:00:01]process_action close_receipt done [15:00:01]requested_data is exist [15:00:01]produce_requested_data [15:00:01]requested_item fm.sn is exist - process it [15:00:01]wFMCommunicate request_size=4 [15:00:01]MH_SAM_APDU [15:00:01]CAPDU: 80 11 00 00 [15:00:01]Write to MH i2c: E2 08 00 E7 28 80 11 00 00 00 00 00 00 89 [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:01]Read from MH i2c: E2 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 17 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 17 00 E7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DE [15:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:00:01]wFMCommunicate OK [15:00:01]requested_item fd.num is exist - process it [15:00:01]SAM_PROTO_GetFieldsCounters [15:00:01]wFMCommunicate request_size=4 [15:00:01]MH_SAM_APDU [15:00:01]CAPDU: 80 13 00 00 [15:00:01]Write to MH i2c: E2 08 00 E8 28 80 13 00 00 00 00 00 00 8C [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:01]Read from MH i2c: E2 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 62 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 62 00 E8 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 25 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [15:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 25 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:01]wFMCommunicate OK [15:00:01]SAM_PROTO_GetFieldsCounters done [15:00:01]requested_item shift.num is exist - process it [15:00:01]requested_item shift.opened is exist - process it [15:00:01]req_shift_opened [15:00:01]FM_GetShiftState [15:00:01]SAM_PROTO_GetShiftState [15:00:01]wFMCommunicate request_size=4 [15:00:01]MH_SAM_APDU [15:00:01]CAPDU: 80 13 01 00 [15:00:01]Write to MH i2c: E2 08 00 E9 28 80 13 01 00 00 00 00 00 8E [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:01]Read from MH i2c: E2 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 0E 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 0E 00 E9 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 90 [15:00:01]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:00:01]wFMCommunicate OK [15:00:01]SAM_PROTO_GetShiftState done [15:00:01]FM_GetShiftState done [15:00:01]req_shift_opened done [15:00:01]requested_item shift.open_date is exist - process it [15:00:01]req_shift_open_date [15:00:01]req_shift_open_date done [15:00:01]produce_requested_data done [15:00:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202021,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:00:01]process_action_free close_receipt [15:00:01]json_value_free [15:00:01]json_value_free done [15:00:01]process_json_proto returns [15:00:01]Send response to host [15:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202021,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:00:01]free response buf [15:00:01]execute_script done [15:00:01]execute_script returns [15:00:01]free content buf [15:00:01]Sock 8.Close socket [15:00:01]Sock 8.Thread stoped [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:32]accept exits with 9 [15:00:32]New connection [15:00:32]New thread 3066498404 created [15:00:32]Thread 3066641764 joined [15:00:32]Waiting for new connection... [15:00:32] Sock 9.Parse request [15:00:32]Sock 9.Check first char [15:00:32]Sock 9.First char is OK [15:00:32]request: POST /json_proto HTTP/1.0 [15:00:32]Method: POST [15:00:32]URL: /json_proto [15:00:32]Method is POST - this is cgi request [15:00:32]url: /json_proto [15:00:32]query_string will be loaded in cgi processing [15:00:32]execute_cgi json_proto POST (null) [15:00:32]execute_cgi path=json_proto method=POST [15:00:32]POST find Content-Length [15:00:32]Host: 172.17.63.195:8080 [15:00:32]Content-Length: 674 [15:00:32]Content-Type: application/json [15:00:32] [15:00:32]POST finish read [15:00:32]Found Content-Length = 674 [15:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.830, "sum" : 520.45, "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" ] } } [15:00:32]execute_script... [15:00:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.830, "sum" : 520.45, "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" ] } } [15:00:32]POST & json_proto [15:00:32]process_json_proto [15:00:32]json parsed OK: [15:00:32]protocol is kg_v1.0 [15:00:32]action value=close_receipt [15:00:32]process_action close_receipt [15:00:32]cmd_close_receipt [15:00:32]MH_GetDate [15:00:32]Write to MH i2c: F0 00 00 EA 28 01 [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: F0 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: F0 09 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: F0 09 00 EA 28 00 91 55 1E 67 47 1B 1E 67 5C [15:00:32]GetLastDocTimeStamp 1730041199 [15:00:32]current date 1730041233 [15:00:32]FM_GetShiftState [15:00:32]SAM_PROTO_GetShiftState [15:00:32]wFMCommunicate request_size=4 [15:00:32]MH_SAM_APDU [15:00:32]CAPDU: 80 13 01 00 [15:00:32]Write to MH i2c: E2 08 00 EB 28 80 13 01 00 00 00 00 00 90 [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:32]Read from MH i2c: E2 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 0E 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 0E 00 EB 28 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 92 [15:00:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:00:32]wFMCommunicate OK [15:00:32]SAM_PROTO_GetShiftState done [15:00:32]FM_GetShiftState done [15:00:32]opened in 1729987312 [15:00:32]opened+sec_in_day 1730073712 [15:00:32]quantity*price = 52044 [15:00:32]sum+1 = 52046 [15:00:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 314 27.10.2024 15:00 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202022 ФПД: 207644925777956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150033&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202022&fm=207644925777956&tin=02508201610067®Number=0000000000091777&sum=52000 [15:00:33]StoreToDocumentArchive [15:00:33]shift 544 fd 202022 [15:00:33]save to /storage/0544/doc_00202022 [15:00:33]save last doc name /storage/0544/doc_00202022 to /storage/kkm_last_doc_name [15:00:33]save OK [15:00:33]Clear old archive folders... [15:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:00:33]tlvbuf is B6F098D0 [15:00:33]SAM_PROTO_ClearQueue [15:00:33]wFMCommunicate request_size=4 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 09 00 00 [15:00:33]Write to MH i2c: E2 08 00 F8 28 80 09 00 00 00 00 00 00 92 [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 F8 28 00 90 00 94 [15:00:33]RAPDU: 90 00 [15:00:33]wFMCommunicate OK [15:00:33]SAM_PROTO_ClearQueue done [15:00:33]KKMCreateOFDPacket [15:00:33]OFDProtocolAddRootSTLVToBuf [15:00:33]FM_MakeSignedData [15:00:33]FM_MakeSignedData [15:00:33]SAM_PROTO_SignData [15:00:33]wFMCommunicate request_size=4 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 0D 01 02 [15:00:33]Write to MH i2c: E2 08 00 F9 28 80 0D 01 02 00 00 00 00 9A [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 F9 28 00 90 00 95 [15:00:33]RAPDU: 90 00 [15:00:33]wFMCommunicate OK [15:00:33]wFMCommunicate request_size=255 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AE 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 91 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 15 03 00 35 04 06 00 BC DA 1A 0A [15:00:33]Write to MH i2c: E2 02 01 FA 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 32 FF 03 08 00 03 AE 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 91 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 15 03 00 35 04 06 00 BC DA 1A 0A 00 00 CD [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 FA 28 00 90 00 96 [15:00:33]RAPDU: 90 00 [15:00:33]wFMCommunicate OK [15:00:33]wFMCommunicate request_size=7 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 0D 02 02 02 58 24 [15:00:33]Write to MH i2c: E2 0A 00 FB 28 80 0D 02 02 02 00 58 24 00 00 1D [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 FB 28 00 90 00 97 [15:00:33]RAPDU: 90 00 [15:00:33]wFMCommunicate OK [15:00:33]wFMCommunicate request_size=4 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 0D 03 02 [15:00:33]Write to MH i2c: E2 08 00 FC 28 80 0D 03 02 00 00 00 00 9F [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 0B 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 0B 00 FC 28 00 81 81 B8 DA F5 21 1B 3E 90 00 A3 [15:00:33]RAPDU: 81 81 B8 DA F5 21 1B 3E 90 00 [15:00:33]wFMCommunicate OK [15:00:33]SAM_PROTO_SignData done [15:00:33]FM_MakeSignedData done [15:00:33]CreateOFDProtocolMessage [15:00:33]wFMCommunicate request_size=4 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 11 00 00 [15:00:33]Write to MH i2c: E2 08 00 FD 28 80 11 00 00 00 00 00 00 9F [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 17 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 17 00 FD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [15:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:00:33]wFMCommunicate OK [15:00:33]CreateOFDProtocolMessage done [15:00:33]OFDSenderStorePacket 202022 [15:00:33]StoreOFDPacket docnum=202022 [15:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E6 02 04 01 94 54 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 32 FF 03 08 00 03 AE 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 91 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 15 03 00 35 04 06 00 BC DA 1A 0A 58 24 81 81 B8 DA F5 21 1B 3E [15:00:33]CheckFolder [15:00:33]dirname=/storage/ofd_packets [15:00:33]CheckFolder done [15:00:33]ProducePacketName [15:00:33]name=ofd_packets/00202022 [15:00:33]NVStorageSaveData ofd_packets/00202022 [15:00:33]File name is /storage/ofd_packets/00202022 [15:00:33]Write 298 bytes [15:00:33]NVStorageSaveData done [15:00:33]OFDSenderStorePacket done [15:00:33]KKMCreateOFDPacket done [15:00:33]NVStorageSaveData kkm_last_timestamp [15:00:33]File name is /storage/kkm_last_timestamp [15:00:33]Write 4 bytes [15:00:33]NVStorageSaveData done [15:00:33]ExternCall_PrintAddStr [15:00:33]wPrintStart [15:00:33]Write to MH i2c: 01 00 00 FE 28 26 [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: 01 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: 01 07 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: 01 07 00 FE 28 00 00 00 00 00 FF 0F 3B [15:00:33]RasterBufferAndPrint [15:00:33]line Счет N : (1)449788 [15:00:33]line ИНН: 02508201610067 [15:00:33]line Контрольно-Кассовый Чек [15:00:33]line ПРОДАЖА [15:00:33]line ТРК (МРК, ГНК) : 21 [15:00:33]line Товар: 2710194210 [15:00:33]line ДТ-К-2 [15:00:33]line 6.830 * 76.20 [15:00:33]line = 520.45 [15:00:33]line НДС 12% НСП 1% [15:00:33]line > о реализуемом товаре [15:00:33]line ОКРУГЛЕНИЕ: -0.45 [15:00:33]line ИТОГО: 520.00 [15:00:33]line Внесено: 520.00 [15:00:33]line СДАЧА: 0.00 [15:00:33]line НСП 1% : 4.61 [15:00:33]line НДС 12% : 55.27 [15:00:33]line Наличными: 520.00 [15:00:33]line Безнал.: 0.00 [15:00:33]line Место: АЗС № 171 "Партнер Нефть" [15:00:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:00:33]line СНО: Общий режим [15:00:33]line Чек 314 27.10.2024 15:00 [15:00:33]line Смена: 544 ФФД: 1.0 [15:00:33]line ЗНМ: 0300000109 [15:00:33]line РНМ: 0000000000091777 [15:00:33]line Версия ККМ: 001 [15:00:33]line ФМ: 0000000000871756 [15:00:33]line ФД: 202022 [15:00:33]line ФПД: 207644925777956 [15:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150033&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202022&fm=207644925777956&tin=02508201610067®Number=0000000000091777&sum=52000 [15:00:34]OFD Sender: Processing packet 202022 [packets to send 112, broken 111] [15:00:34]ProducePacketName [15:00:34]name=ofd_packets/00202022 [15:00:34]OFD Sender: To server: pG, [15:00:34]CommunicateWithHost lk.salyk.kg:30040 [15:00:34]ConnectInit lk.salyk.kg [15:00:34]written 0, free lines is 4095 [15:00:34]Write to MH i2c: 01 00 00 29 29 52 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 07 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 07 00 29 29 00 00 00 00 00 8A 0C EF [15:00:34]RasterBufferAndPrint [15:00:34]line [15:00:34]line [15:00:34]line [15:00:34]line [15:00:34]line [15:00:34]written 0, free lines is 3213 [15:00:34]MH_Cut [15:00:34]Write to MH i2c: D1 01 00 30 29 01 2B [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: D1 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: D1 01 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: D1 01 00 30 29 00 2A [15:00:34]Write to MH i2c: 01 00 00 31 29 5A [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:35]*** Cut start [15:00:35]*** Purtial cut [15:00:35]*** Stage 1: CUTSNS_PIN = 1 [15:00:35]Read from MH i2c: 01 [15:00:35]MH_I2C_Read... [15:00:35]*** Stop cut motor [15:00:35]*** Cut end [15:00:35]Read from MH i2c: 01 07 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: 01 07 00 31 29 00 00 00 00 00 FF 0F 6F [15:00:35]process_action close_receipt done [15:00:35]requested_data is exist [15:00:35]produce_requested_data [15:00:35]requested_item fm.sn is exist - process it [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 11 00 00 [15:00:35]Write to MH i2c: E2 08 00 32 29 80 11 00 00 00 00 00 00 D5 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 17 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 17 00 32 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2A [15:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:00:35]wFMCommunicate OK [15:00:35]requested_item fd.num is exist - process it [15:00:35]SAM_PROTO_GetFieldsCounters [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 13 00 00 [15:00:35]Write to MH i2c: E2 08 00 33 29 80 13 00 00 00 00 00 00 D8 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 62 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 62 00 33 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [15:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:36]wFMCommunicate OK [15:00:36]SAM_PROTO_GetFieldsCounters done [15:00:36]requested_item shift.num is exist - process it [15:00:36]requested_item shift.opened is exist - process it [15:00:36]req_shift_opened [15:00:36]FM_GetShiftState [15:00:36]SAM_PROTO_GetShiftState [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 13 01 00 [15:00:36]Write to MH i2c: E2 08 00 34 29 80 13 01 00 00 00 00 00 DA [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 0E 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 0E 00 34 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DC [15:00:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:00:36]wFMCommunicate OK [15:00:36]SAM_PROTO_GetShiftState done [15:00:36]FM_GetShiftState done [15:00:36]req_shift_opened done [15:00:36]requested_item shift.open_date is exist - process it [15:00:36]req_shift_open_date [15:00:36]req_shift_open_date done [15:00:36]produce_requested_data done [15:00:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202022,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:00:36]process_action_free close_receipt [15:00:36]json_value_free [15:00:36]json_value_free done [15:00:36]process_json_proto returns [15:00:36]Send response to host [15:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202022,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:00:36]free response buf [15:00:36]execute_script done [15:00:36]execute_script returns [15:00:36]free content buf [15:00:36]Sock 9.Close socket [15:00:36]Sock 9.Thread stoped [15:01:11]accept exits with 8 [15:01:11]New connection [15:01:11]New thread 3066641764 created [15:01:11]Thread 3066498404 joined [15:01:11]Waiting for new connection... [15:01:11] Sock 8.Parse request [15:01:11]Sock 8.Check first char [15:01:11]Sock 8.First char is OK [15:01:11]request: POST /json_proto HTTP/1.0 [15:01:11]Method: POST [15:01:11]URL: /json_proto [15:01:11]Method is POST - this is cgi request [15:01:11]url: /json_proto [15:01:11]query_string will be loaded in cgi processing [15:01:11]execute_cgi json_proto POST (null) [15:01:11]execute_cgi path=json_proto method=POST [15:01:11]POST find Content-Length [15:01:11]Host: 172.17.63.195:8080 [15:01:11]Content-Length: 677 [15:01:11]Content-Type: application/json [15:01:11] [15:01:11]POST finish read [15:01:11]Found Content-Length = 677 [15:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:11]execute_script... [15:01: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)449789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:11]POST & json_proto [15:01:11]process_json_proto [15:01:11]json parsed OK: [15:01:11]protocol is kg_v1.0 [15:01:11]action value=close_receipt [15:01:11]process_action close_receipt [15:01:11]cmd_close_receipt [15:01:11]MH_GetDate [15:01:11]Write to MH i2c: F0 00 00 35 29 4D [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: F0 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: F0 09 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: F0 09 00 35 29 00 B8 55 1E 67 47 1B 1E 67 CF [15:01:11]GetLastDocTimeStamp 1730041233 [15:01:11]current date 1730041272 [15:01:11]FM_GetShiftState [15:01:11]SAM_PROTO_GetShiftState [15:01:11]wFMCommunicate request_size=4 [15:01:11]MH_SAM_APDU [15:01:11]CAPDU: 80 13 01 00 [15:01:11]Write to MH i2c: E2 08 00 36 29 80 13 01 00 00 00 00 00 DC [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:11]Read from MH i2c: E2 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 0E 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 0E 00 36 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DE [15:01:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:01:11]wFMCommunicate OK [15:01:11]SAM_PROTO_GetShiftState done [15:01:11]FM_GetShiftState done [15:01:11]opened in 1729987312 [15:01:11]opened+sec_in_day 1730073712 [15:01:11]quantity*price = 50041 [15:01:11]sum+1 = 50042 [15:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 315 27.10.2024 15:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202023 ФПД: 107361695078570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150112&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202023&fm=107361695078570&tin=02508201610067®Number=0000000000091777&sum=50000 [15:01:12]StoreToDocumentArchive [15:01:12]shift 544 fd 202023 [15:01:12]save to /storage/0544/doc_00202023 [15:01:12]save last doc name /storage/0544/doc_00202023 to /storage/kkm_last_doc_name [15:01:12]save OK [15:01:12]Clear old archive folders... [15:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:12]tlvbuf is 0123B0D0 [15:01:12]SAM_PROTO_ClearQueue [15:01:12]wFMCommunicate request_size=4 [15:01:12]MH_SAM_APDU [15:01:12]CAPDU: 80 09 00 00 [15:01:12]Write to MH i2c: E2 08 00 43 29 80 09 00 00 00 00 00 00 DE [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:12]Read from MH i2c: E2 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 03 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 03 00 43 29 00 90 00 E0 [15:01:12]RAPDU: 90 00 [15:01:12]wFMCommunicate OK [15:01:12]SAM_PROTO_ClearQueue done [15:01:12]KKMCreateOFDPacket [15:01:12]OFDProtocolAddRootSTLVToBuf [15:01:12]FM_MakeSignedData [15:01:12]FM_MakeSignedData [15:01:12]SAM_PROTO_SignData [15:01:12]wFMCommunicate request_size=4 [15:01:12]MH_SAM_APDU [15:01:12]CAPDU: 80 0D 01 02 [15:01:12]Write to MH i2c: E2 08 00 44 29 80 0D 01 02 00 00 00 00 E6 [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:12]Read from MH i2c: E2 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 03 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 03 00 44 29 00 90 00 E1 [15:01:12]RAPDU: 90 00 [15:01:12]wFMCommunicate OK [15:01:12]wFMCommunicate request_size=255 [15:01:12]MH_SAM_APDU [15:01:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 01 00 00 F4 03 04 00 B8 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 15 03 00 35 04 06 00 61 [15:01:12]Write to MH i2c: E2 02 01 45 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 01 00 00 F4 03 04 00 B8 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 15 03 00 35 04 06 00 61 00 00 0A [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:12]Read from MH i2c: E2 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 03 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 03 00 45 29 00 90 00 E2 [15:01:12]RAPDU: 90 00 [15:01:12]wFMCommunicate OK [15:01:12]wFMCommunicate request_size=10 [15:01:12]MH_SAM_APDU [15:01:12]CAPDU: 80 0D 02 02 05 A5 17 B2 98 AA [15:01:12]Write to MH i2c: E2 0D 00 46 29 80 0D 02 02 05 00 A5 17 B2 98 AA 00 00 A3 [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:12]Read from MH i2c: E2 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 03 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 03 00 46 29 00 90 00 E3 [15:01:12]RAPDU: 90 00 [15:01:12]wFMCommunicate OK [15:01:12]wFMCommunicate request_size=4 [15:01:12]MH_SAM_APDU [15:01:12]CAPDU: 80 0D 03 02 [15:01:12]Write to MH i2c: E2 08 00 47 29 80 0D 03 02 00 00 00 00 EB [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:12]Read from MH i2c: E2 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 0B 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 0B 00 47 29 00 68 C3 A8 47 FF B4 E7 D8 90 00 78 [15:01:12]RAPDU: 68 C3 A8 47 FF B4 E7 D8 90 00 [15:01:12]wFMCommunicate OK [15:01:12]SAM_PROTO_SignData done [15:01:12]FM_MakeSignedData done [15:01:12]CreateOFDProtocolMessage [15:01:12]wFMCommunicate request_size=4 [15:01:12]MH_SAM_APDU [15:01:12]CAPDU: 80 11 00 00 [15:01:12]Write to MH i2c: E2 08 00 48 29 80 11 00 00 00 00 00 00 EB [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:12]Read from MH i2c: E2 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 17 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 17 00 48 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 40 [15:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:01:12]wFMCommunicate OK [15:01:12]CreateOFDProtocolMessage done [15:01:12]OFDSenderStorePacket 202023 [15:01:12]StoreOFDPacket docnum=202023 [15:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 10 D3 07 01 34 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 01 00 00 F4 03 04 00 B8 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 15 03 00 35 04 06 00 61 A5 17 B2 98 AA 68 C3 A8 47 FF B4 E7 D8 [15:01:12]CheckFolder [15:01:12]dirname=/storage/ofd_packets [15:01:12]CheckFolder done [15:01:12]ProducePacketName [15:01:12]name=ofd_packets/00202023 [15:01:12]NVStorageSaveData ofd_packets/00202023 [15:01:12]File name is /storage/ofd_packets/00202023 [15:01:12]Write 301 bytes [15:01:12]NVStorageSaveData done [15:01:12]OFDSenderStorePacket done [15:01:12]KKMCreateOFDPacket done [15:01:12]NVStorageSaveData kkm_last_timestamp [15:01:12]File name is /storage/kkm_last_timestamp [15:01:12]Write 4 bytes [15:01:12]NVStorageSaveData done [15:01:12]ExternCall_PrintAddStr [15:01:12]wPrintStart [15:01:12]Write to MH i2c: 01 00 00 49 29 72 [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: 01 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: 01 07 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: 01 07 00 49 29 00 00 00 00 00 FF 0F 87 [15:01:12]RasterBufferAndPrint [15:01:12]line Счет N : (1)449789 [15:01:12]line ИНН: 02508201610067 [15:01:12]line Контрольно-Кассовый Чек [15:01:12]line ПРОДАЖА [15:01:12]line ТРК (МРК, ГНК) : 62 [15:01:12]line Товар: 2710124130 [15:01:12]line Аи-92-К-2 [15:01:12]line 7.480 * 66.90 [15:01:12]line = 500.41 [15:01:12]line НДС 12% НСП 1% [15:01:12]line > о реализуемом товаре [15:01:12]line ОКРУГЛЕНИЕ: -0.41 [15:01:12]line ИТОГО: 500.00 [15:01:12]line Внесено: 500.00 [15:01:12]line СДАЧА: 0.00 [15:01:12]line НСП 1% : 4.43 [15:01:12]line НДС 12% : 53.14 [15:01:12]line Наличными: 500.00 [15:01:12]line Безнал.: 0.00 [15:01:12]line Место: АЗС № 171 "Партнер Нефть" [15:01:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:01:12]line СНО: Общий режим [15:01:12]line Чек 315 27.10.2024 15:01 [15:01:12]line Смена: 544 ФФД: 1.0 [15:01:12]line ЗНМ: 0300000109 [15:01:12]line РНМ: 0000000000091777 [15:01:12]line Версия ККМ: 001 [15:01:12]line ФМ: 0000000000871756 [15:01:12]line ФД: 202023 [15:01:12]line ФПД: 107361695078570 [15:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150112&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202023&fm=107361695078570&tin=02508201610067®Number=0000000000091777&sum=50000 [15:01:13]written 0, free lines is 4095 [15:01:13]Write to MH i2c: 01 00 00 74 29 9D [15:01:13]Write i2c OK [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: 01 [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: 01 07 00 [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: 01 07 00 74 29 00 00 00 00 00 89 0C 39 [15:01:13]RasterBufferAndPrint [15:01:13]line [15:01:13]line [15:01:13]line [15:01:13]line [15:01:13]line [15:01:13]written 0, free lines is 3213 [15:01:13]MH_Cut [15:01:13]Write to MH i2c: D1 01 00 7B 29 01 76 [15:01:13]Write i2c OK [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: D1 [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: D1 01 00 [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: D1 01 00 7B 29 00 75 [15:01:13]Write to MH i2c: 01 00 00 7C 29 A5 [15:01:13]Write i2c OK [15:01:13]MH_I2C_Read... [15:01:14]*** Cut start [15:01:14]*** Purtial cut [15:01:14]*** Stage 1: CUTSNS_PIN = 1 [15:01:14]Read from MH i2c: 01 [15:01:14]MH_I2C_Read... [15:01:14]*** Stop cut motor [15:01:14]*** Cut end [15:01:14]Read from MH i2c: 01 07 00 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: 01 07 00 7C 29 00 00 00 00 00 FF 0F BA [15:01:14]process_action close_receipt done [15:01:14]requested_data is exist [15:01:14]produce_requested_data [15:01:14]requested_item fm.sn is exist - process it [15:01:14]wFMCommunicate request_size=4 [15:01:14]MH_SAM_APDU [15:01:14]CAPDU: 80 11 00 00 [15:01:14]Write to MH i2c: E2 08 00 7D 29 80 11 00 00 00 00 00 00 20 [15:01:14]Write i2c OK [15:01:14]MH_I2C_Read... [15:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:14]Read from MH i2c: E2 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: E2 17 00 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: E2 17 00 7D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 75 [15:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:01:14]wFMCommunicate OK [15:01:14]requested_item fd.num is exist - process it [15:01:14]SAM_PROTO_GetFieldsCounters [15:01:14]wFMCommunicate request_size=4 [15:01:14]MH_SAM_APDU [15:01:14]CAPDU: 80 13 00 00 [15:01:14]Write to MH i2c: E2 08 00 7E 29 80 13 00 00 00 00 00 00 23 [15:01:14]Write i2c OK [15:01:14]MH_I2C_Read... [15:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:14]Read from MH i2c: E2 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: E2 62 00 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: E2 62 00 7E 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 27 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [15:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 27 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:14]wFMCommunicate OK [15:01:14]SAM_PROTO_GetFieldsCounters done [15:01:14]requested_item shift.num is exist - process it [15:01:14]requested_item shift.opened is exist - process it [15:01:14]req_shift_opened [15:01:14]FM_GetShiftState [15:01:14]SAM_PROTO_GetShiftState [15:01:14]wFMCommunicate request_size=4 [15:01:14]MH_SAM_APDU [15:01:14]CAPDU: 80 13 01 00 [15:01:14]Write to MH i2c: E2 08 00 7F 29 80 13 01 00 00 00 00 00 25 [15:01:14]Write i2c OK [15:01:14]MH_I2C_Read... [15:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:14]Read from MH i2c: E2 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: E2 0E 00 [15:01:14]MH_I2C_Read... [15:01:14]Read from MH i2c: E2 0E 00 7F 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 27 [15:01:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:01:14]wFMCommunicate OK [15:01:14]SAM_PROTO_GetShiftState done [15:01:14]FM_GetShiftState done [15:01:14]req_shift_opened done [15:01:14]requested_item shift.open_date is exist - process it [15:01:14]req_shift_open_date [15:01:14]req_shift_open_date done [15:01:14]produce_requested_data done [15:01:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202023,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:01:14]process_action_free close_receipt [15:01:14]json_value_free [15:01:14]json_value_free done [15:01:14]process_json_proto returns [15:01:14]Send response to host [15:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202023,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:01:14]free response buf [15:01:14]execute_script done [15:01:14]execute_script returns [15:01:14]free content buf [15:01:14]Sock 8.Close socket [15:01:14]Sock 8.Thread stoped [15:02:45]ConnectInit Can't connect to host [15:02:45]CommunicateWithHost connect error [15:02:45]CommunicateWithHost err = -1 [15:02:45]OFD Sender: Server communicate error [15:02:45]OFD Sender: Processing packet 202022 [packets to send 113, broken 111] [15:02:45]ProducePacketName [15:02:45]name=ofd_packets/00202022 [15:02:45]OFD Sender: To server: pG, [15:02:45]CommunicateWithHost lk.salyk.kg:30040 [15:02:45]ConnectInit lk.salyk.kg [15:02:45]Connected sock=8 [15:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E6 02 04 01 94 54 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 32 FF 03 08 00 03 AE 1A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 91 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 15 03 00 35 04 06 00 BC DA 1A 0A 58 24 81 81 B8 DA F5 21 1B 3E [15:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 57 20 47 00 71 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 15 03 00 F4 03 04 00 CE 01 1E 67 B6 04 01 00 00 6A 1D 0D B8 13 10 F9 CC [15:02:45]CommunicateWithHost err = 0 [15:02:45]CheckOFDResponse [15:02:45]1017 (14) - 77093643461234 [15:02:45]1041 (16) - 0000000000871756 [15:02:45]1040 (4) - 202022 [15:02:45]1012 (4) - 27.10.2024 09:03 [15:02:45]1206 (1) - 0 [15:02:45]OFD Sender: Remove packet 202022 [15:02:45]ProducePacketName [15:02:45]name=ofd_packets/00202022 [15:02:45]NVStorageDeleteData [15:02:46]OFD Sender: Processing packet 202023 [packets to send 112, broken 111] [15:02:46]ProducePacketName [15:02:46]name=ofd_packets/00202023 [15:02:46]OFD Sender: To server: pG, [15:02:46]CommunicateWithHost lk.salyk.kg:30040 [15:02:46]ConnectInit lk.salyk.kg [15:02:46]Connected sock=10 [15:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 10 D3 07 01 34 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 01 00 00 F4 03 04 00 B8 55 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 15 03 00 35 04 06 00 61 A5 17 B2 98 AA 68 C3 A8 47 FF B4 E7 D8 [15:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EB B7 47 00 4D DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 15 03 00 F4 03 04 00 CF 01 1E 67 B6 04 01 00 00 F9 9F 68 2E 73 38 F9 30 [15:02:46]CommunicateWithHost err = 0 [15:02:46]CheckOFDResponse [15:02:46]1017 (14) - 77093643461234 [15:02:46]1041 (16) - 0000000000871756 [15:02:46]1040 (4) - 202023 [15:02:46]1012 (4) - 27.10.2024 09:03 [15:02:46]1206 (1) - 0 [15:02:46]OFD Sender: Remove packet 202023 [15:02:46]ProducePacketName [15:02:46]name=ofd_packets/00202023 [15:02:46]NVStorageDeleteData [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:35]accept exits with 9 [15:05:35]New connection [15:05:35]New thread 3066498404 created [15:05:35]Thread 3066641764 joined [15:05:35]Waiting for new connection... [15:05:35] Sock 9.Parse request [15:05:35]Sock 9.Check first char [15:05:35]Sock 9.First char is OK [15:05:35]request: POST /json_proto HTTP/1.0 [15:05:35]Method: POST [15:05:35]URL: /json_proto [15:05:35]Method is POST - this is cgi request [15:05:35]url: /json_proto [15:05:35]query_string will be loaded in cgi processing [15:05:35]execute_cgi json_proto POST (null) [15:05:35]execute_cgi path=json_proto method=POST [15:05:35]POST find Content-Length [15:05:35]Host: 172.17.63.195:8080 [15:05:35]Content-Length: 769 [15:05:35]Content-Type: application/json [15:05:35] [15:05:35]POST finish read [15:05:35]Found Content-Length = 769 [15:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:35]execute_script... [15:05:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:35]POST & json_proto [15:05:35]process_json_proto [15:05:35]json parsed OK: [15:05:35]protocol is kg_v1.0 [15:05:35]action value=close_receipt [15:05:35]process_action close_receipt [15:05:35]cmd_close_receipt [15:05:35]MH_GetDate [15:05:35]Write to MH i2c: F0 00 00 80 29 98 [15:05:35]Write i2c OK [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: F0 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: F0 09 00 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: F0 09 00 80 29 00 C1 56 1E 67 47 1B 1E 67 24 [15:05:35]GetLastDocTimeStamp 1730041272 [15:05:35]current date 1730041537 [15:05:35]FM_GetShiftState [15:05:35]SAM_PROTO_GetShiftState [15:05:35]wFMCommunicate request_size=4 [15:05:35]MH_SAM_APDU [15:05:35]CAPDU: 80 13 01 00 [15:05:35]Write to MH i2c: E2 08 00 81 29 80 13 01 00 00 00 00 00 27 [15:05:35]Write i2c OK [15:05:35]MH_I2C_Read... [15:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:35]Read from MH i2c: E2 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: E2 0E 00 [15:05:35]MH_I2C_Read... [15:05:35]Read from MH i2c: E2 0E 00 81 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 29 [15:05:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:05:35]wFMCommunicate OK [15:05:35]SAM_PROTO_GetShiftState done [15:05:35]FM_GetShiftState done [15:05:35]opened in 1729987312 [15:05:35]opened+sec_in_day 1730073712 [15:05:35]quantity*price = 100015 [15:05:35]sum+1 = 100017 [15:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 316 27.10.2024 15:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202024 ФПД: 5610675323739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150537&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202024&fm=5610675323739&tin=02508201610067®Number=0000000000091777&sum=100016 [15:05:37]StoreToDocumentArchive [15:05:37]shift 544 fd 202024 [15:05:37]save to /storage/0544/doc_00202024 [15:05:37]save last doc name /storage/0544/doc_00202024 to /storage/kkm_last_doc_name [15:05:37]save OK [15:05:37]Clear old archive folders... [15:05:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:37]tlvbuf is 01208F10 [15:05:37]SAM_PROTO_ClearQueue [15:05:37]wFMCommunicate request_size=4 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 09 00 00 [15:05:37]Write to MH i2c: E2 08 00 8E 29 80 09 00 00 00 00 00 00 29 [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 03 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 03 00 8E 29 00 90 00 2B [15:05:37]RAPDU: 90 00 [15:05:37]wFMCommunicate OK [15:05:37]SAM_PROTO_ClearQueue done [15:05:37]KKMCreateOFDPacket [15:05:37]OFDProtocolAddRootSTLVToBuf [15:05:37]FM_MakeSignedData [15:05:37]FM_MakeSignedData [15:05:37]SAM_PROTO_SignData [15:05:37]wFMCommunicate request_size=4 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 0D 01 02 [15:05:37]Write to MH i2c: E2 08 00 8F 29 80 0D 01 02 00 00 00 00 31 [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 03 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 03 00 8F 29 00 90 00 2C [15:05:37]RAPDU: 90 00 [15:05:37]wFMCommunicate OK [15:05:37]wFMCommunicate request_size=255 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3C 01 00 00 F4 03 04 00 C1 56 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 15 03 00 35 04 06 00 05 [15:05:37]Write to MH i2c: E2 02 01 90 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3C 01 00 00 F4 03 04 00 C1 56 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 15 03 00 35 04 06 00 05 00 00 1F [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]OFD Sender: No OFD packet to send [15:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 03 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 03 00 90 29 00 90 00 2D [15:05:37]RAPDU: 90 00 [15:05:37]wFMCommunicate OK [15:05:37]wFMCommunicate request_size=10 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 0D 02 02 05 1A 56 4F 43 5B [15:05:37]Write to MH i2c: E2 0D 00 91 29 80 0D 02 02 05 00 1A 56 4F 43 5B 00 00 9B [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 03 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 03 00 91 29 00 90 00 2E [15:05:37]RAPDU: 90 00 [15:05:37]wFMCommunicate OK [15:05:37]wFMCommunicate request_size=4 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 0D 03 02 [15:05:37]Write to MH i2c: E2 08 00 92 29 80 0D 03 02 00 00 00 00 36 [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 0B 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 0B 00 92 29 00 7B E5 11 EF DA 27 1D 73 90 00 28 [15:05:37]RAPDU: 7B E5 11 EF DA 27 1D 73 90 00 [15:05:37]wFMCommunicate OK [15:05:37]SAM_PROTO_SignData done [15:05:37]FM_MakeSignedData done [15:05:37]CreateOFDProtocolMessage [15:05:37]wFMCommunicate request_size=4 [15:05:37]MH_SAM_APDU [15:05:37]CAPDU: 80 11 00 00 [15:05:37]Write to MH i2c: E2 08 00 93 29 80 11 00 00 00 00 00 00 36 [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:37]Read from MH i2c: E2 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 17 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: E2 17 00 93 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [15:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:05:37]wFMCommunicate OK [15:05:37]CreateOFDProtocolMessage done [15:05:37]OFDSenderStorePacket 202024 [15:05:37]StoreOFDPacket docnum=202024 [15:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8F 2C 07 01 06 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3C 01 00 00 F4 03 04 00 C1 56 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 15 03 00 35 04 06 00 05 1A 56 4F 43 5B 7B E5 11 EF DA 27 1D 73 [15:05:37]CheckFolder [15:05:37]dirname=/storage/ofd_packets [15:05:37]CheckFolder done [15:05:37]ProducePacketName [15:05:37]name=ofd_packets/00202024 [15:05:37]NVStorageSaveData ofd_packets/00202024 [15:05:37]File name is /storage/ofd_packets/00202024 [15:05:37]Write 301 bytes [15:05:37]NVStorageSaveData done [15:05:37]OFDSenderStorePacket done [15:05:37]KKMCreateOFDPacket done [15:05:37]NVStorageSaveData kkm_last_timestamp [15:05:37]File name is /storage/kkm_last_timestamp [15:05:37]Write 4 bytes [15:05:37]NVStorageSaveData done [15:05:37]ExternCall_PrintAddStr [15:05:37]wPrintStart [15:05:37]Write to MH i2c: 01 00 00 94 29 BD [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: 01 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: 01 07 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: 01 07 00 94 29 00 00 00 00 00 FF 0F D2 [15:05:37]RasterBufferAndPrint [15:05:37]line Счет N : (1)449790 [15:05:37]line ИНН: 02508201610067 [15:05:37]line Контрольно-Кассовый Чек [15:05:37]line ПРОДАЖА [15:05:37]line ТРК (МРК, ГНК) : 62 [15:05:37]line Товар: 2710124130 [15:05:37]line Аи-92-К-2 [15:05:37]line 14.950 * 66.90 [15:05:37]line = 1000.16 [15:05:37]line НДС 12% НСП 1% [15:05:37]line > о реализуемом товаре [15:05:37]line ИТОГО: 1000.16 [15:05:37]line НСП 1% : 8.85 [15:05:37]line НДС 12% : 106.21 [15:05:37]line Наличными: 0.00 [15:05:37]line Безнал.: 1000.16 [15:05:37]line Место: АЗС № 171 "Партнер Нефть" [15:05:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:05:37]line СНО: Общий режим [15:05:37]line Чек 316 27.10.2024 15:05 [15:05:37]line Смена: 544 ФФД: 1.0 [15:05:37]line ЗНМ: 0300000109 [15:05:37]line РНМ: 0000000000091777 [15:05:37]line Версия ККМ: 001 [15:05:37]line Платежная система: Mbank [15:05:37]line ФМ: 0000000000871756 [15:05:37]line ФД: 202024 [15:05:37]line ФПД: 5610675323739 [15:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150537&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202024&fm=5610675323739&tin=02508201610067®Number=0000000000091777&sum=100016 [15:05:37]OFD Sender: Processing packet 202024 [packets to send 112, broken 111] [15:05:37]ProducePacketName [15:05:37]name=ofd_packets/00202024 [15:05:37]OFD Sender: To server: pG, [15:05:37]CommunicateWithHost lk.salyk.kg:30040 [15:05:37]ConnectInit lk.salyk.kg [15:05:37]written 0, free lines is 4095 [15:05:38]Connected sock=8 [15:05:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8F 2C 07 01 06 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3C 01 00 00 F4 03 04 00 C1 56 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 15 03 00 35 04 06 00 05 1A 56 4F 43 5B 7B E5 11 EF DA 27 1D 73 [15:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AD 2A 47 00 38 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 15 03 00 F4 03 04 00 7A 02 1E 67 B6 04 01 00 00 39 67 1F C3 DF A6 C9 8B [15:05:38]CommunicateWithHost err = 0 [15:05:38]CheckOFDResponse [15:05:38]1017 (14) - 77093643461234 [15:05:38]1041 (16) - 0000000000871756 [15:05:38]1040 (4) - 202024 [15:05:38]1012 (4) - 27.10.2024 09:06 [15:05:38]1206 (1) - 0 [15:05:38]OFD Sender: Remove packet 202024 [15:05:38]ProducePacketName [15:05:38]name=ofd_packets/00202024 [15:05:38]NVStorageDeleteData [15:05:38]Write to MH i2c: 01 00 00 BD 29 E6 [15:05:38]Write i2c OK [15:05:38]MH_I2C_Read... [15:05:38]Read from MH i2c: 01 [15:05:38]MH_I2C_Read... [15:05:38]Read from MH i2c: 01 07 00 [15:05:38]MH_I2C_Read... [15:05:38]Read from MH i2c: 01 07 00 BD 29 00 00 00 00 00 B5 0C AE [15:05:38]RasterBufferAndPrint [15:05:38]line [15:05:38]line [15:05:38]line [15:05:38]line [15:05:38]line [15:05:38]written 0, free lines is 3256 [15:05:38]MH_Cut [15:05:38]Write to MH i2c: D1 01 00 C4 29 01 BF [15:05:38]Write i2c OK [15:05:38]MH_I2C_Read... [15:05:38]Read from MH i2c: D1 [15:05:38]MH_I2C_Read... [15:05:38]Read from MH i2c: D1 01 00 [15:05:38]MH_I2C_Read... [15:05:38]Read from MH i2c: D1 01 00 C4 29 00 BE [15:05:38]Write to MH i2c: 01 00 00 C5 29 EE [15:05:38]Write i2c OK [15:05:38]MH_I2C_Read... [15:05:38]OFD Sender: No OFD packet to send [15:05:39]*** Cut start [15:05:39]*** Purtial cut [15:05:39]*** Stage 1: CUTSNS_PIN = 1 [15:05:39]Read from MH i2c: 01 [15:05:39]MH_I2C_Read... [15:05:39]*** Stop cut motor [15:05:39]*** Cut end [15:05:39]Read from MH i2c: 01 07 00 [15:05:39]MH_I2C_Read... [15:05:39]Read from MH i2c: 01 07 00 C5 29 00 00 00 00 00 FF 0F 03 [15:05:39]process_action close_receipt done [15:05:39]requested_data is exist [15:05:39]produce_requested_data [15:05:39]requested_item fm.sn is exist - process it [15:05:39]wFMCommunicate request_size=4 [15:05:39]MH_SAM_APDU [15:05:39]CAPDU: 80 11 00 00 [15:05:39]Write to MH i2c: E2 08 00 C6 29 80 11 00 00 00 00 00 00 69 [15:05:39]Write i2c OK [15:05:39]MH_I2C_Read... [15:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:39]Read from MH i2c: E2 [15:05:39]MH_I2C_Read... [15:05:39]Read from MH i2c: E2 17 00 [15:05:39]MH_I2C_Read... [15:05:39]Read from MH i2c: E2 17 00 C6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BE [15:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:05:39]wFMCommunicate OK [15:05:39]requested_item fd.num is exist - process it [15:05:39]SAM_PROTO_GetFieldsCounters [15:05:39]wFMCommunicate request_size=4 [15:05:39]MH_SAM_APDU [15:05:39]CAPDU: 80 13 00 00 [15:05:39]Write to MH i2c: E2 08 00 C7 29 80 13 00 00 00 00 00 00 6C [15:05:39]Write i2c OK [15:05:39]MH_I2C_Read... [15:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:39]Read from MH i2c: E2 [15:05:39]MH_I2C_Read... [15:05:39]Read from MH i2c: E2 62 00 [15:05:39]MH_I2C_Read... [15:05:39]Read from MH i2c: E2 62 00 C7 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 28 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [15:05:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 28 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:39]wFMCommunicate OK [15:05:39]SAM_PROTO_GetFieldsCounters done [15:05:39]requested_item shift.num is exist - process it [15:05:39]requested_item shift.opened is exist - process it [15:05:39]req_shift_opened [15:05:39]FM_GetShiftState [15:05:39]SAM_PROTO_GetShiftState [15:05:39]wFMCommunicate request_size=4 [15:05:39]MH_SAM_APDU [15:05:39]CAPDU: 80 13 01 00 [15:05:39]Write to MH i2c: E2 08 00 C8 29 80 13 01 00 00 00 00 00 6E [15:05:39]Write i2c OK [15:05:39]MH_I2C_Read... [15:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:39]Read from MH i2c: E2 [15:05:39]MH_I2C_Read... [15:05:39]Read from MH i2c: E2 0E 00 [15:05:39]MH_I2C_Read... [15:05:39]Read from MH i2c: E2 0E 00 C8 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 70 [15:05:39]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:05:39]wFMCommunicate OK [15:05:39]SAM_PROTO_GetShiftState done [15:05:39]FM_GetShiftState done [15:05:39]req_shift_opened done [15:05:39]requested_item shift.open_date is exist - process it [15:05:39]req_shift_open_date [15:05:39]req_shift_open_date done [15:05:39]produce_requested_data done [15:05:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202024,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:05:39]process_action_free close_receipt [15:05:39]json_value_free [15:05:39]json_value_free done [15:05:39]process_json_proto returns [15:05:39]Send response to host [15:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202024,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:05:39]free response buf [15:05:39]execute_script done [15:05:39]execute_script returns [15:05:39]free content buf [15:05:39]Sock 9.Close socket [15:05:39]Sock 9.Thread stoped [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:06:59]accept exits with 10 [15:06:59]New connection [15:06:59]New thread 3066641764 created [15:06:59]Thread 3066498404 joined [15:06:59]Waiting for new connection... [15:06:59] Sock 10.Parse request [15:06:59]Sock 10.Check first char [15:06:59]Sock 10.First char is OK [15:06:59]request: POST /json_proto HTTP/1.0 [15:06:59]Method: POST [15:06:59]URL: /json_proto [15:06:59]Method is POST - this is cgi request [15:06:59]url: /json_proto [15:06:59]query_string will be loaded in cgi processing [15:06:59]execute_cgi json_proto POST (null) [15:06:59]execute_cgi path=json_proto method=POST [15:06:59]POST find Content-Length [15:06:59]Host: 172.17.63.195:8080 [15:06:59]Content-Length: 677 [15:06:59]Content-Type: application/json [15:06:59] [15:06:59]POST finish read [15:06:59]Found Content-Length = 677 [15:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:59]execute_script... [15:06:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:59]POST & json_proto [15:06:59]process_json_proto [15:06:59]json parsed OK: [15:06:59]protocol is kg_v1.0 [15:06:59]action value=close_receipt [15:06:59]process_action close_receipt [15:06:59]cmd_close_receipt [15:06:59]MH_GetDate [15:06:59]Write to MH i2c: F0 00 00 C9 29 E1 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: F0 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: F0 09 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: F0 09 00 C9 29 00 14 57 1E 67 47 1B 1E 67 C1 [15:06:59]GetLastDocTimeStamp 1730041537 [15:06:59]current date 1730041620 [15:06:59]FM_GetShiftState [15:06:59]SAM_PROTO_GetShiftState [15:06:59]wFMCommunicate request_size=4 [15:06:59]MH_SAM_APDU [15:06:59]CAPDU: 80 13 01 00 [15:06:59]Write to MH i2c: E2 08 00 CA 29 80 13 01 00 00 00 00 00 70 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:59]Read from MH i2c: E2 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 0E 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 0E 00 CA 29 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 72 [15:06:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:06:59]wFMCommunicate OK [15:06:59]SAM_PROTO_GetShiftState done [15:06:59]FM_GetShiftState done [15:06:59]opened in 1729987312 [15:06:59]opened+sec_in_day 1730073712 [15:06:59]quantity*price = 10035 [15:06:59]sum+1 = 10036 [15:06:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 317 27.10.2024 15:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202025 ФПД: 165274622152036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150700&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202025&fm=165274622152036&tin=02508201610067®Number=0000000000091777&sum=10000 [15:07:00]StoreToDocumentArchive [15:07:00]shift 544 fd 202025 [15:07:00]save to /storage/0544/doc_00202025 [15:07:00]save last doc name /storage/0544/doc_00202025 to /storage/kkm_last_doc_name [15:07:00]save OK [15:07:00]Clear old archive folders... [15:07:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:00]tlvbuf is B6F09760 [15:07:00]SAM_PROTO_ClearQueue [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 09 00 00 [15:07:00]Write to MH i2c: E2 08 00 D7 29 80 09 00 00 00 00 00 00 72 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 03 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 03 00 D7 29 00 90 00 74 [15:07:00]RAPDU: 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_ClearQueue done [15:07:00]KKMCreateOFDPacket [15:07:00]OFDProtocolAddRootSTLVToBuf [15:07:00]FM_MakeSignedData [15:07:00]FM_MakeSignedData [15:07:00]SAM_PROTO_SignData [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 0D 01 02 [15:07:00]Write to MH i2c: E2 08 00 D8 29 80 0D 01 02 00 00 00 00 7A [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 03 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 03 00 D8 29 00 90 00 75 [15:07:00]RAPDU: 90 00 [15:07:00]wFMCommunicate OK [15:07:00]wFMCommunicate request_size=255 [15:07:00]MH_SAM_APDU [15:07: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 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 14 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 15 03 00 35 04 06 00 96 [15:07:00]Write to MH i2c: E2 02 01 D9 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 14 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 15 03 00 35 04 06 00 96 00 00 1C [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 03 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 03 00 D9 29 00 90 00 76 [15:07:00]RAPDU: 90 00 [15:07:00]wFMCommunicate OK [15:07:00]wFMCommunicate request_size=10 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 0D 02 02 05 50 FF 24 CD 64 [15:07:00]Write to MH i2c: E2 0D 00 DA 29 80 0D 02 02 05 00 50 FF 24 CD 64 00 00 2B [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 03 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 03 00 DA 29 00 90 00 77 [15:07:00]RAPDU: 90 00 [15:07:00]wFMCommunicate OK [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 0D 03 02 [15:07:00]Write to MH i2c: E2 08 00 DB 29 80 0D 03 02 00 00 00 00 7F [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0B 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0B 00 DB 29 00 BB DE FD 09 F1 0D 5B 1A 90 00 92 [15:07:00]RAPDU: BB DE FD 09 F1 0D 5B 1A 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_SignData done [15:07:00]FM_MakeSignedData done [15:07:00]CreateOFDProtocolMessage [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 11 00 00 [15:07:00]Write to MH i2c: E2 08 00 DC 29 80 11 00 00 00 00 00 00 7F [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 DC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [15:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:07:00]wFMCommunicate OK [15:07:00]CreateOFDProtocolMessage done [15:07:00]OFDSenderStorePacket 202025 [15:07:00]StoreOFDPacket docnum=202025 [15:07:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E5 1C 07 01 5B 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 14 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 15 03 00 35 04 06 00 96 50 FF 24 CD 64 BB DE FD 09 F1 0D 5B 1A [15:07:00]CheckFolder [15:07:00]dirname=/storage/ofd_packets [15:07:00]CheckFolder done [15:07:00]ProducePacketName [15:07:00]name=ofd_packets/00202025 [15:07:00]NVStorageSaveData ofd_packets/00202025 [15:07:00]File name is /storage/ofd_packets/00202025 [15:07:00]Write 301 bytes [15:07:00]NVStorageSaveData done [15:07:00]OFDSenderStorePacket done [15:07:00]KKMCreateOFDPacket done [15:07:00]NVStorageSaveData kkm_last_timestamp [15:07:00]File name is /storage/kkm_last_timestamp [15:07:00]Write 4 bytes [15:07:00]NVStorageSaveData done [15:07:00]ExternCall_PrintAddStr [15:07:00]wPrintStart [15:07:00]Write to MH i2c: 01 00 00 DD 29 06 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 07 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 07 00 DD 29 00 00 00 00 00 FF 0F 1B [15:07:00]RasterBufferAndPrint [15:07:00]line Счет N : (1)449791 [15:07:00]line ИНН: 02508201610067 [15:07:00]line Контрольно-Кассовый Чек [15:07:00]line ПРОДАЖА [15:07:00]line ТРК (МРК, ГНК) : 41 [15:07:00]line Товар: 2710124130 [15:07:00]line Аи-92-К-2 [15:07:00]line 1.500 * 66.90 [15:07:00]line = 100.35 [15:07:00]line НДС 12% НСП 1% [15:07:00]line > о реализуемом товаре [15:07:00]line ОКРУГЛЕНИЕ: -0.35 [15:07:00]line ИТОГО: 100.00 [15:07:00]line Внесено: 100.00 [15:07:00]line СДАЧА: 0.00 [15:07:00]line НСП 1% : 0.89 [15:07:00]line НДС 12% : 10.66 [15:07:00]line Наличными: 100.00 [15:07:00]line Безнал.: 0.00 [15:07:00]line Место: АЗС № 171 "Партнер Нефть" [15:07:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:07:00]line СНО: Общий режим [15:07:00]line Чек 317 27.10.2024 15:07 [15:07:00]line Смена: 544 ФФД: 1.0 [15:07:00]line ЗНМ: 0300000109 [15:07:00]line РНМ: 0000000000091777 [15:07:00]line Версия ККМ: 001 [15:07:00]line ФМ: 0000000000871756 [15:07:00]line ФД: 202025 [15:07:00]line ФПД: 165274622152036 [15:07:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150700&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202025&fm=165274622152036&tin=02508201610067®Number=0000000000091777&sum=10000 [15:07:01]OFD Sender: Processing packet 202025 [packets to send 112, broken 111] [15:07:01]ProducePacketName [15:07:01]name=ofd_packets/00202025 [15:07:01]OFD Sender: To server: pG, [15:07:01]CommunicateWithHost lk.salyk.kg:30040 [15:07:01]ConnectInit lk.salyk.kg [15:07:01]written 0, free lines is 4095 [15:07:01]Connected sock=9 [15:07:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E5 1C 07 01 5B 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 14 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 15 03 00 35 04 06 00 96 50 FF 24 CD 64 BB DE FD 09 F1 0D 5B 1A [15:07:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D8 3C 47 00 71 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 15 03 00 F4 03 04 00 CE 02 1E 67 B6 04 01 00 00 EB 4F E4 6C 62 F7 E0 FE [15:07:01]CommunicateWithHost err = 0 [15:07:01]CheckOFDResponse [15:07:01]1017 (14) - 77093643461234 [15:07:01]1041 (16) - 0000000000871756 [15:07:01]1040 (4) - 202025 [15:07:01]1012 (4) - 27.10.2024 09:07 [15:07:01]1206 (1) - 0 [15:07:01]OFD Sender: Remove packet 202025 [15:07:01]ProducePacketName [15:07:01]name=ofd_packets/00202025 [15:07:01]NVStorageDeleteData [15:07:01]Write to MH i2c: 01 00 00 08 2A 32 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: 01 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: 01 07 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: 01 07 00 08 2A 00 00 00 00 00 8D 0C D2 [15:07:01]RasterBufferAndPrint [15:07:01]line [15:07:01]line [15:07:01]line [15:07:01]line [15:07:01]line [15:07:01]written 0, free lines is 3217 [15:07:01]MH_Cut [15:07:01]Write to MH i2c: D1 01 00 0F 2A 01 0B [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: D1 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: D1 01 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: D1 01 00 0F 2A 00 0A [15:07:01]Write to MH i2c: 01 00 00 10 2A 3A [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:02]OFD Sender: No OFD packet to send [15:07:02]*** Cut start [15:07:02]*** Purtial cut [15:07:02]*** Stage 1: CUTSNS_PIN = 1 [15:07:02]Read from MH i2c: 01 [15:07:02]MH_I2C_Read... [15:07:02]*** Stop cut motor [15:07:02]*** Cut end [15:07:02]Read from MH i2c: 01 07 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: 01 07 00 10 2A 00 00 00 00 00 FF 0F 4F [15:07:02]process_action close_receipt done [15:07:02]requested_data is exist [15:07:02]produce_requested_data [15:07:02]requested_item fm.sn is exist - process it [15:07:02]wFMCommunicate request_size=4 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 11 00 00 [15:07:02]Write to MH i2c: E2 08 00 11 2A 80 11 00 00 00 00 00 00 B5 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 17 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 17 00 11 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0A [15:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:07:02]wFMCommunicate OK [15:07:02]requested_item fd.num is exist - process it [15:07:02]SAM_PROTO_GetFieldsCounters [15:07:02]wFMCommunicate request_size=4 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 13 00 00 [15:07:02]Write to MH i2c: E2 08 00 12 2A 80 13 00 00 00 00 00 00 B8 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 62 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 62 00 12 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 29 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [15:07:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 29 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:03]wFMCommunicate OK [15:07:03]SAM_PROTO_GetFieldsCounters done [15:07:03]requested_item shift.num is exist - process it [15:07:03]requested_item shift.opened is exist - process it [15:07:03]req_shift_opened [15:07:03]FM_GetShiftState [15:07:03]SAM_PROTO_GetShiftState [15:07:03]wFMCommunicate request_size=4 [15:07:03]MH_SAM_APDU [15:07:03]CAPDU: 80 13 01 00 [15:07:03]Write to MH i2c: E2 08 00 13 2A 80 13 01 00 00 00 00 00 BA [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:03]Read from MH i2c: E2 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 0E 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: E2 0E 00 13 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BC [15:07:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:07:03]wFMCommunicate OK [15:07:03]SAM_PROTO_GetShiftState done [15:07:03]FM_GetShiftState done [15:07:03]req_shift_opened done [15:07:03]requested_item shift.open_date is exist - process it [15:07:03]req_shift_open_date [15:07:03]req_shift_open_date done [15:07:03]produce_requested_data done [15:07:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202025,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:07:03]process_action_free close_receipt [15:07:03]json_value_free [15:07:03]json_value_free done [15:07:03]process_json_proto returns [15:07:03]Send response to host [15:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202025,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:07:03]free response buf [15:07:03]execute_script done [15:07:03]execute_script returns [15:07:03]free content buf [15:07:03]Sock 10.Close socket [15:07:03]Sock 10.Thread stoped [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:16]accept exits with 8 [15:08:16]New connection [15:08:16]New thread 3066498404 created [15:08:16]Thread 3066641764 joined [15:08:16]Waiting for new connection... [15:08:16] Sock 8.Parse request [15:08:16]Sock 8.Check first char [15:08:16]Sock 8.First char is OK [15:08:16]request: POST /json_proto HTTP/1.0 [15:08:16]Method: POST [15:08:16]URL: /json_proto [15:08:16]Method is POST - this is cgi request [15:08:16]url: /json_proto [15:08:16]query_string will be loaded in cgi processing [15:08:16]execute_cgi json_proto POST (null) [15:08:16]execute_cgi path=json_proto method=POST [15:08:16]POST find Content-Length [15:08:16]Host: 172.17.63.195:8080 [15:08:16]Content-Length: 677 [15:08:16]Content-Type: application/json [15:08:16] [15:08:16]POST finish read [15:08:16]Found Content-Length = 677 [15:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:16]execute_script... [15:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:16]POST & json_proto [15:08:16]process_json_proto [15:08:16]json parsed OK: [15:08:16]protocol is kg_v1.0 [15:08:16]action value=close_receipt [15:08:16]process_action close_receipt [15:08:16]cmd_close_receipt [15:08:16]MH_GetDate [15:08:16]Write to MH i2c: F0 00 00 14 2A 2D [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: F0 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: F0 09 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: F0 09 00 14 2A 00 61 57 1E 67 47 1B 1E 67 5A [15:08:16]GetLastDocTimeStamp 1730041620 [15:08:16]current date 1730041697 [15:08:16]FM_GetShiftState [15:08:16]SAM_PROTO_GetShiftState [15:08:16]wFMCommunicate request_size=4 [15:08:16]MH_SAM_APDU [15:08:16]CAPDU: 80 13 01 00 [15:08:16]Write to MH i2c: E2 08 00 15 2A 80 13 01 00 00 00 00 00 BC [15:08:16]Write i2c OK [15:08:16]MH_I2C_Read... [15:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:16]Read from MH i2c: E2 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 0E 00 [15:08:16]MH_I2C_Read... [15:08:16]Read from MH i2c: E2 0E 00 15 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BE [15:08:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:08:16]wFMCommunicate OK [15:08:16]SAM_PROTO_GetShiftState done [15:08:16]FM_GetShiftState done [15:08:16]opened in 1729987312 [15:08:16]opened+sec_in_day 1730073712 [15:08:16]quantity*price = 20003 [15:08:16]sum+1 = 20004 [15:08:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 318 27.10.2024 15:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202026 ФПД: 126691894083035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150817&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202026&fm=126691894083035&tin=02508201610067®Number=0000000000091777&sum=20000 [15:08:17]StoreToDocumentArchive [15:08:17]shift 544 fd 202026 [15:08:17]save to /storage/0544/doc_00202026 [15:08:17]save last doc name /storage/0544/doc_00202026 to /storage/kkm_last_doc_name [15:08:17]save OK [15:08:17]Clear old archive folders... [15:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:17]tlvbuf is 011CA650 [15:08:17]SAM_PROTO_ClearQueue [15:08:17]wFMCommunicate request_size=4 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 09 00 00 [15:08:17]Write to MH i2c: E2 08 00 22 2A 80 09 00 00 00 00 00 00 BE [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 22 2A 00 90 00 C0 [15:08:17]RAPDU: 90 00 [15:08:17]wFMCommunicate OK [15:08:17]SAM_PROTO_ClearQueue done [15:08:17]KKMCreateOFDPacket [15:08:17]OFDProtocolAddRootSTLVToBuf [15:08:17]FM_MakeSignedData [15:08:17]FM_MakeSignedData [15:08:17]SAM_PROTO_SignData [15:08:17]wFMCommunicate request_size=4 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 0D 01 02 [15:08:17]Write to MH i2c: E2 08 00 23 2A 80 0D 01 02 00 00 00 00 C6 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 03 00 23 2A 00 90 00 C1 [15:08:17]RAPDU: 90 00 [15:08:17]wFMCommunicate OK [15:08:17]wFMCommunicate request_size=255 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 01 00 00 F4 03 04 00 61 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 15 03 00 35 04 06 00 73 [15:08:17]Write to MH i2c: E2 02 01 24 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 01 00 00 F4 03 04 00 61 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 15 03 00 35 04 06 00 73 00 00 6F [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 24 2A 00 90 00 C2 [15:08:18]RAPDU: 90 00 [15:08:18]wFMCommunicate OK [15:08:18]wFMCommunicate request_size=10 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 0D 02 02 05 39 C1 57 BD DB [15:08:18]Write to MH i2c: E2 0D 00 25 2A 80 0D 02 02 05 00 39 C1 57 BD DB 00 00 BC [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 03 00 25 2A 00 90 00 C3 [15:08:18]RAPDU: 90 00 [15:08:18]wFMCommunicate OK [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 0D 03 02 [15:08:18]Write to MH i2c: E2 08 00 26 2A 80 0D 03 02 00 00 00 00 CB [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 0B 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 0B 00 26 2A 00 1D 09 73 60 22 C8 08 63 90 00 1A [15:08:18]RAPDU: 1D 09 73 60 22 C8 08 63 90 00 [15:08:18]wFMCommunicate OK [15:08:18]SAM_PROTO_SignData done [15:08:18]FM_MakeSignedData done [15:08:18]CreateOFDProtocolMessage [15:08:18]wFMCommunicate request_size=4 [15:08:18]MH_SAM_APDU [15:08:18]CAPDU: 80 11 00 00 [15:08:18]Write to MH i2c: E2 08 00 27 2A 80 11 00 00 00 00 00 00 CB [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:18]Read from MH i2c: E2 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 17 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: E2 17 00 27 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 20 [15:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:08:18]wFMCommunicate OK [15:08:18]CreateOFDProtocolMessage done [15:08:18]OFDSenderStorePacket 202026 [15:08:18]StoreOFDPacket docnum=202026 [15:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 59 E7 07 01 C4 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 01 00 00 F4 03 04 00 61 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 15 03 00 35 04 06 00 73 39 C1 57 BD DB 1D 09 73 60 22 C8 08 63 [15:08:18]CheckFolder [15:08:18]dirname=/storage/ofd_packets [15:08:18]CheckFolder done [15:08:18]ProducePacketName [15:08:18]name=ofd_packets/00202026 [15:08:18]NVStorageSaveData ofd_packets/00202026 [15:08:18]File name is /storage/ofd_packets/00202026 [15:08:18]Write 301 bytes [15:08:18]NVStorageSaveData done [15:08:18]OFDSenderStorePacket done [15:08:18]KKMCreateOFDPacket done [15:08:18]NVStorageSaveData kkm_last_timestamp [15:08:18]File name is /storage/kkm_last_timestamp [15:08:18]Write 4 bytes [15:08:18]NVStorageSaveData done [15:08:18]ExternCall_PrintAddStr [15:08:18]wPrintStart [15:08:18]Write to MH i2c: 01 00 00 28 2A 52 [15:08:18]Write i2c OK [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 [15:08:18]MH_I2C_Read... [15:08:18]Read from MH i2c: 01 07 00 28 2A 00 00 00 00 00 FF 0F 67 [15:08:18]RasterBufferAndPrint [15:08:18]line Счет N : (1)449792 [15:08:18]line ИНН: 02508201610067 [15:08:18]line Контрольно-Кассовый Чек [15:08:18]line ПРОДАЖА [15:08:18]line ТРК (МРК, ГНК) : 31 [15:08:18]line Товар: 2710124130 [15:08:18]line Аи-92-К-2 [15:08:18]line 2.990 * 66.90 [15:08:18]line = 200.03 [15:08:18]line НДС 12% НСП 1% [15:08:18]line > о реализуемом товаре [15:08:18]line ОКРУГЛЕНИЕ: -0.03 [15:08:18]line ИТОГО: 200.00 [15:08:18]line Внесено: 200.00 [15:08:18]line СДАЧА: 0.00 [15:08:18]line НСП 1% : 1.77 [15:08:18]line НДС 12% : 21.24 [15:08:18]line Наличными: 200.00 [15:08:18]line Безнал.: 0.00 [15:08:18]line Место: АЗС № 171 "Партнер Нефть" [15:08:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:08:18]line СНО: Общий режим [15:08:18]line Чек 318 27.10.2024 15:08 [15:08:18]line Смена: 544 ФФД: 1.0 [15:08:18]line ЗНМ: 0300000109 [15:08:18]line РНМ: 0000000000091777 [15:08:18]line Версия ККМ: 001 [15:08:18]line ФМ: 0000000000871756 [15:08:18]line ФД: 202026 [15:08:18]line ФПД: 126691894083035 [15:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150817&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202026&fm=126691894083035&tin=02508201610067®Number=0000000000091777&sum=20000 [15:08:18]OFD Sender: Processing packet 202026 [packets to send 112, broken 111] [15:08:18]ProducePacketName [15:08:18]name=ofd_packets/00202026 [15:08:18]OFD Sender: To server: pG, [15:08:18]CommunicateWithHost lk.salyk.kg:30040 [15:08:18]ConnectInit lk.salyk.kg [15:08:18]written 0, free lines is 4095 [15:08:18]Connected sock=10 [15:08:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 59 E7 07 01 C4 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 01 00 00 F4 03 04 00 61 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 15 03 00 35 04 06 00 73 39 C1 57 BD DB 1D 09 73 60 22 C8 08 63 [15:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 52 3E 47 00 05 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 15 03 00 F4 03 04 00 1B 03 1E 67 B6 04 01 00 00 2A 90 A4 4C 39 32 1F AD [15:08:18]CommunicateWithHost err = 0 [15:08:18]CheckOFDResponse [15:08:18]1017 (14) - 77093643461234 [15:08:18]1041 (16) - 0000000000871756 [15:08:18]1040 (4) - 202026 [15:08:18]1012 (4) - 27.10.2024 09:08 [15:08:18]1206 (1) - 0 [15:08:18]OFD Sender: Remove packet 202026 [15:08:18]ProducePacketName [15:08:18]name=ofd_packets/00202026 [15:08:18]NVStorageDeleteData [15:08:19]Write to MH i2c: 01 00 00 53 2A 7D [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 07 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 07 00 53 2A 00 00 00 00 00 86 0C 16 [15:08:19]RasterBufferAndPrint [15:08:19]line [15:08:19]line [15:08:19]line [15:08:19]line [15:08:19]line [15:08:19]written 0, free lines is 3211 [15:08:19]MH_Cut [15:08:19]Write to MH i2c: D1 01 00 5A 2A 01 56 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: D1 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: D1 01 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: D1 01 00 5A 2A 00 55 [15:08:19]Write to MH i2c: 01 00 00 5B 2A 85 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]OFD Sender: No OFD packet to send [15:08:19]*** Cut start [15:08:19]*** Purtial cut [15:08:19]*** Stage 1: CUTSNS_PIN = 1 [15:08:20]Read from MH i2c: 01 [15:08:20]MH_I2C_Read... [15:08:20]*** Stop cut motor [15:08:20]*** Cut end [15:08:20]Read from MH i2c: 01 07 00 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: 01 07 00 5B 2A 00 00 00 00 00 FF 0F 9A [15:08:20]process_action close_receipt done [15:08:20]requested_data is exist [15:08:20]produce_requested_data [15:08:20]requested_item fm.sn is exist - process it [15:08:20]wFMCommunicate request_size=4 [15:08:20]MH_SAM_APDU [15:08:20]CAPDU: 80 11 00 00 [15:08:20]Write to MH i2c: E2 08 00 5C 2A 80 11 00 00 00 00 00 00 00 [15:08:20]Write i2c OK [15:08:20]MH_I2C_Read... [15:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:20]Read from MH i2c: E2 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: E2 17 00 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: E2 17 00 5C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 55 [15:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:08:20]wFMCommunicate OK [15:08:20]requested_item fd.num is exist - process it [15:08:20]SAM_PROTO_GetFieldsCounters [15:08:20]wFMCommunicate request_size=4 [15:08:20]MH_SAM_APDU [15:08:20]CAPDU: 80 13 00 00 [15:08:20]Write to MH i2c: E2 08 00 5D 2A 80 13 00 00 00 00 00 00 03 [15:08:20]Write i2c OK [15:08:20]MH_I2C_Read... [15:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:20]Read from MH i2c: E2 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: E2 62 00 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: E2 62 00 5D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [15:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:20]wFMCommunicate OK [15:08:20]SAM_PROTO_GetFieldsCounters done [15:08:20]requested_item shift.num is exist - process it [15:08:20]requested_item shift.opened is exist - process it [15:08:20]req_shift_opened [15:08:20]FM_GetShiftState [15:08:20]SAM_PROTO_GetShiftState [15:08:20]wFMCommunicate request_size=4 [15:08:20]MH_SAM_APDU [15:08:20]CAPDU: 80 13 01 00 [15:08:20]Write to MH i2c: E2 08 00 5E 2A 80 13 01 00 00 00 00 00 05 [15:08:20]Write i2c OK [15:08:20]MH_I2C_Read... [15:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:20]Read from MH i2c: E2 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: E2 0E 00 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: E2 0E 00 5E 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 07 [15:08:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:08:20]wFMCommunicate OK [15:08:20]SAM_PROTO_GetShiftState done [15:08:20]FM_GetShiftState done [15:08:20]req_shift_opened done [15:08:20]requested_item shift.open_date is exist - process it [15:08:20]req_shift_open_date [15:08:20]req_shift_open_date done [15:08:20]produce_requested_data done [15:08:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202026,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:08:20]process_action_free close_receipt [15:08:20]json_value_free [15:08:20]json_value_free done [15:08:20]process_json_proto returns [15:08:20]Send response to host [15:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202026,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:08:20]free response buf [15:08:20]execute_script done [15:08:20]execute_script returns [15:08:20]free content buf [15:08:20]Sock 8.Close socket [15:08:20]Sock 8.Thread stoped [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:05]accept exits with 9 [15:09:05]New connection [15:09:05]New thread 3066641764 created [15:09:05]Thread 3066498404 joined [15:09:05]Waiting for new connection... [15:09:05] Sock 9.Parse request [15:09:05]Sock 9.Check first char [15:09:05]Sock 9.First char is OK [15:09:05]request: POST /json_proto HTTP/1.0 [15:09:05]Method: POST [15:09:05]URL: /json_proto [15:09:05]Method is POST - this is cgi request [15:09:05]url: /json_proto [15:09:05]query_string will be loaded in cgi processing [15:09:05]execute_cgi json_proto POST (null) [15:09:05]execute_cgi path=json_proto method=POST [15:09:05]POST find Content-Length [15:09:05]Host: 172.17.63.195:8080 [15:09:05]Content-Length: 677 [15:09:05]Content-Type: application/json [15:09:05] [15:09:05]POST finish read [15:09:05]Found Content-Length = 677 [15:09:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:05]execute_script... [15:09: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)449793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:05]POST & json_proto [15:09:05]process_json_proto [15:09:05]json parsed OK: [15:09:05]protocol is kg_v1.0 [15:09:05]action value=close_receipt [15:09:05]process_action close_receipt [15:09:05]cmd_close_receipt [15:09:05]MH_GetDate [15:09:05]Write to MH i2c: F0 00 00 5F 2A 78 [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: F0 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: F0 09 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: F0 09 00 5F 2A 00 93 57 1E 67 47 1B 1E 67 D7 [15:09:05]GetLastDocTimeStamp 1730041697 [15:09:05]current date 1730041747 [15:09:05]FM_GetShiftState [15:09:05]SAM_PROTO_GetShiftState [15:09:05]wFMCommunicate request_size=4 [15:09:05]MH_SAM_APDU [15:09:05]CAPDU: 80 13 01 00 [15:09:05]Write to MH i2c: E2 08 00 60 2A 80 13 01 00 00 00 00 00 07 [15:09:05]Write i2c OK [15:09:05]MH_I2C_Read... [15:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:05]Read from MH i2c: E2 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 0E 00 [15:09:05]MH_I2C_Read... [15:09:05]Read from MH i2c: E2 0E 00 60 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 09 [15:09:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:09:05]wFMCommunicate OK [15:09:05]SAM_PROTO_GetShiftState done [15:09:05]FM_GetShiftState done [15:09:05]opened in 1729987312 [15:09:05]opened+sec_in_day 1730073712 [15:09:05]quantity*price = 50041 [15:09:05]sum+1 = 50042 [15:09:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 319 27.10.2024 15:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202027 ФПД: 195629265176699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150907&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202027&fm=195629265176699&tin=02508201610067®Number=0000000000091777&sum=50000 [15:09:07]StoreToDocumentArchive [15:09:07]shift 544 fd 202027 [15:09:07]save to /storage/0544/doc_00202027 [15:09:07]save last doc name /storage/0544/doc_00202027 to /storage/kkm_last_doc_name [15:09:07]save OK [15:09:07]Clear old archive folders... [15:09:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:07]tlvbuf is 0122A4D0 [15:09:07]SAM_PROTO_ClearQueue [15:09:07]wFMCommunicate request_size=4 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 09 00 00 [15:09:07]Write to MH i2c: E2 08 00 6D 2A 80 09 00 00 00 00 00 00 09 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 03 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 03 00 6D 2A 00 90 00 0B [15:09:07]RAPDU: 90 00 [15:09:07]wFMCommunicate OK [15:09:07]SAM_PROTO_ClearQueue done [15:09:07]KKMCreateOFDPacket [15:09:07]OFDProtocolAddRootSTLVToBuf [15:09:07]FM_MakeSignedData [15:09:07]FM_MakeSignedData [15:09:07]SAM_PROTO_SignData [15:09:07]wFMCommunicate request_size=4 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 0D 01 02 [15:09:07]Write to MH i2c: E2 08 00 6E 2A 80 0D 01 02 00 00 00 00 11 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 03 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 03 00 6E 2A 00 90 00 0C [15:09:07]RAPDU: 90 00 [15:09:07]wFMCommunicate OK [15:09:07]wFMCommunicate request_size=255 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3F 01 00 00 F4 03 04 00 93 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 15 03 00 35 04 06 00 B1 [15:09:07]Write to MH i2c: E2 02 01 6F 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3F 01 00 00 F4 03 04 00 93 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 15 03 00 35 04 06 00 B1 00 00 6A [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 03 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 03 00 6F 2A 00 90 00 0D [15:09:07]RAPDU: 90 00 [15:09:07]wFMCommunicate OK [15:09:07]wFMCommunicate request_size=10 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 0D 02 02 05 EC 7C DB C8 7B [15:09:07]Write to MH i2c: E2 0D 00 70 2A 80 0D 02 02 05 00 EC 7C DB C8 7B 00 00 A4 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 03 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 03 00 70 2A 00 90 00 0E [15:09:07]RAPDU: 90 00 [15:09:07]wFMCommunicate OK [15:09:07]wFMCommunicate request_size=4 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 0D 03 02 [15:09:07]Write to MH i2c: E2 08 00 71 2A 80 0D 03 02 00 00 00 00 16 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 0B 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 0B 00 71 2A 00 57 FE 41 28 B2 9C A6 F3 90 00 BC [15:09:07]RAPDU: 57 FE 41 28 B2 9C A6 F3 90 00 [15:09:07]wFMCommunicate OK [15:09:07]SAM_PROTO_SignData done [15:09:07]FM_MakeSignedData done [15:09:07]CreateOFDProtocolMessage [15:09:07]wFMCommunicate request_size=4 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 11 00 00 [15:09:07]Write to MH i2c: E2 08 00 72 2A 80 11 00 00 00 00 00 00 16 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 17 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 17 00 72 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6B [15:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:09:07]wFMCommunicate OK [15:09:07]CreateOFDProtocolMessage done [15:09:07]OFDSenderStorePacket 202027 [15:09:07]StoreOFDPacket docnum=202027 [15:09:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 73 9B 07 01 F4 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3F 01 00 00 F4 03 04 00 93 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 15 03 00 35 04 06 00 B1 EC 7C DB C8 7B 57 FE 41 28 B2 9C A6 F3 [15:09:07]CheckFolder [15:09:07]dirname=/storage/ofd_packets [15:09:07]CheckFolder done [15:09:07]ProducePacketName [15:09:07]name=ofd_packets/00202027 [15:09:07]NVStorageSaveData ofd_packets/00202027 [15:09:07]File name is /storage/ofd_packets/00202027 [15:09:07]Write 301 bytes [15:09:07]NVStorageSaveData done [15:09:07]OFDSenderStorePacket done [15:09:07]KKMCreateOFDPacket done [15:09:07]NVStorageSaveData kkm_last_timestamp [15:09:07]File name is /storage/kkm_last_timestamp [15:09:07]Write 4 bytes [15:09:07]NVStorageSaveData done [15:09:07]ExternCall_PrintAddStr [15:09:07]wPrintStart [15:09:07]Write to MH i2c: 01 00 00 73 2A 9D [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 07 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: 01 07 00 73 2A 00 00 00 00 00 FF 0F B2 [15:09:07]RasterBufferAndPrint [15:09:07]line Счет N : (1)449793 [15:09:07]line ИНН: 02508201610067 [15:09:07]line Контрольно-Кассовый Чек [15:09:07]line ПРОДАЖА [15:09:07]line ТРК (МРК, ГНК) : 41 [15:09:07]line Товар: 2710124130 [15:09:07]line Аи-92-К-2 [15:09:07]line 7.480 * 66.90 [15:09:07]line = 500.41 [15:09:07]line НДС 12% НСП 1% [15:09:07]line > о реализуемом товаре [15:09:07]line ОКРУГЛЕНИЕ: -0.41 [15:09:07]line ИТОГО: 500.00 [15:09:07]line Внесено: 500.00 [15:09:07]line СДАЧА: 0.00 [15:09:07]line НСП 1% : 4.43 [15:09:07]line НДС 12% : 53.14 [15:09:07]line Наличными: 500.00 [15:09:07]line Безнал.: 0.00 [15:09:07]line Место: АЗС № 171 "Партнер Нефть" [15:09:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:09:07]line СНО: Общий режим [15:09:07]line Чек 319 27.10.2024 15:09 [15:09:07]line Смена: 544 ФФД: 1.0 [15:09:07]line ЗНМ: 0300000109 [15:09:07]line РНМ: 0000000000091777 [15:09:07]line Версия ККМ: 001 [15:09:07]line ФМ: 0000000000871756 [15:09:07]line ФД: 202027 [15:09:07]line ФПД: 195629265176699 [15:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150907&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202027&fm=195629265176699&tin=02508201610067®Number=0000000000091777&sum=50000 [15:09:07]OFD Sender: Processing packet 202027 [packets to send 112, broken 111] [15:09:07]ProducePacketName [15:09:07]name=ofd_packets/00202027 [15:09:07]OFD Sender: To server: pG, [15:09:07]CommunicateWithHost lk.salyk.kg:30040 [15:09:07]ConnectInit lk.salyk.kg [15:09:07]written 0, free lines is 4095 [15:09:08]Connected sock=10 [15:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 73 9B 07 01 F4 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3F 01 00 00 F4 03 04 00 93 57 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 15 03 00 35 04 06 00 B1 EC 7C DB C8 7B 57 FE 41 28 B2 9C A6 F3 [15:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4A C8 47 00 BD 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 15 03 00 F4 03 04 00 4C 03 1E 67 B6 04 01 00 00 DD B9 8C BE 01 0E 31 34 [15:09:08]CommunicateWithHost err = 0 [15:09:08]CheckOFDResponse [15:09:08]1017 (14) - 77093643461234 [15:09:08]1041 (16) - 0000000000871756 [15:09:08]1040 (4) - 202027 [15:09:08]1012 (4) - 27.10.2024 09:09 [15:09:08]1206 (1) - 0 [15:09:08]OFD Sender: Remove packet 202027 [15:09:08]ProducePacketName [15:09:08]name=ofd_packets/00202027 [15:09:08]NVStorageDeleteData [15:09:08]Write to MH i2c: 01 00 00 9E 2A C8 [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: 01 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: 01 07 00 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: 01 07 00 9E 2A 00 00 00 00 00 8B 0C 66 [15:09:08]RasterBufferAndPrint [15:09:08]line [15:09:08]line [15:09:08]line [15:09:08]line [15:09:08]line [15:09:08]written 0, free lines is 3215 [15:09:08]MH_Cut [15:09:08]Write to MH i2c: D1 01 00 A5 2A 01 A1 [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: D1 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: D1 01 00 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: D1 01 00 A5 2A 00 A0 [15:09:08]Write to MH i2c: 01 00 00 A6 2A D0 [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:08]OFD Sender: No OFD packet to send [15:09:09]*** Cut start [15:09:09]*** Purtial cut [15:09:09]*** Stage 1: CUTSNS_PIN = 1 [15:09:09]Read from MH i2c: 01 [15:09:09]MH_I2C_Read... [15:09:09]*** Stop cut motor [15:09:09]*** Cut end [15:09:09]Read from MH i2c: 01 07 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: 01 07 00 A6 2A 00 00 00 00 00 FF 0F E5 [15:09:09]process_action close_receipt done [15:09:09]requested_data is exist [15:09:09]produce_requested_data [15:09:09]requested_item fm.sn is exist - process it [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 11 00 00 [15:09:09]Write to MH i2c: E2 08 00 A7 2A 80 11 00 00 00 00 00 00 4B [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 17 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 17 00 A7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A0 [15:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:09:09]wFMCommunicate OK [15:09:09]requested_item fd.num is exist - process it [15:09:09]SAM_PROTO_GetFieldsCounters [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 13 00 00 [15:09:09]Write to MH i2c: E2 08 00 A8 2A 80 13 00 00 00 00 00 00 4E [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 62 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 62 00 A8 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [15:09:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:09]wFMCommunicate OK [15:09:09]SAM_PROTO_GetFieldsCounters done [15:09:09]requested_item shift.num is exist - process it [15:09:09]requested_item shift.opened is exist - process it [15:09:09]req_shift_opened [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 A9 2A 80 13 01 00 00 00 00 00 50 [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 A9 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 52 [15:09:09]RAPDU: 09 00 01 F0 82 1D 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]req_shift_opened done [15:09:09]requested_item shift.open_date is exist - process it [15:09:09]req_shift_open_date [15:09:09]req_shift_open_date done [15:09:09]produce_requested_data done [15:09:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202027,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:09:09]process_action_free close_receipt [15:09:09]json_value_free [15:09:09]json_value_free done [15:09:09]process_json_proto returns [15:09:09]Send response to host [15:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202027,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:09:09]free response buf [15:09:09]execute_script done [15:09:09]execute_script returns [15:09:09]free content buf [15:09:09]Sock 9.Close socket [15:09:09]Sock 9.Thread stoped [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:54]accept exits with 8 [15:13:54]New connection [15:13:54]New thread 3066498404 created [15:13:54]Thread 3066641764 joined [15:13:54]Waiting for new connection... [15:13:54] Sock 8.Parse request [15:13:54]Sock 8.Check first char [15:13:54]Sock 8.First char is OK [15:13:54]request: POST /json_proto HTTP/1.0 [15:13:54]Method: POST [15:13:54]URL: /json_proto [15:13:54]Method is POST - this is cgi request [15:13:54]url: /json_proto [15:13:54]query_string will be loaded in cgi processing [15:13:54]execute_cgi json_proto POST (null) [15:13:54]execute_cgi path=json_proto method=POST [15:13:54]POST find Content-Length [15:13:54]Host: 172.17.63.195:8080 [15:13:54]Content-Length: 766 [15:13:54]Content-Type: application/json [15:13:54] [15:13:54]POST finish read [15:13:54]Found Content-Length = 766 [15:13:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:54]execute_script... [15:13: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)449794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:54]POST & json_proto [15:13:54]process_json_proto [15:13:54]json parsed OK: [15:13:54]protocol is kg_v1.0 [15:13:54]action value=close_receipt [15:13:54]process_action close_receipt [15:13:54]cmd_close_receipt [15:13:54]MH_GetDate [15:13:54]Write to MH i2c: F0 00 00 AA 2A C3 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: F0 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: F0 09 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: F0 09 00 AA 2A 00 B3 58 1E 67 47 1B 1E 67 43 [15:13:54]GetLastDocTimeStamp 1730041747 [15:13:54]current date 1730042035 [15:13:54]FM_GetShiftState [15:13:54]SAM_PROTO_GetShiftState [15:13:54]wFMCommunicate request_size=4 [15:13:54]MH_SAM_APDU [15:13:54]CAPDU: 80 13 01 00 [15:13:54]Write to MH i2c: E2 08 00 AB 2A 80 13 01 00 00 00 00 00 52 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 0E 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 0E 00 AB 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 54 [15:13:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:13:54]wFMCommunicate OK [15:13:54]SAM_PROTO_GetShiftState done [15:13:54]FM_GetShiftState done [15:13:54]opened in 1729987312 [15:13:54]opened+sec_in_day 1730073712 [15:13:54]quantity*price = 50041 [15:13:54]sum+1 = 50042 [15:13:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 320 27.10.2024 15:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202028 ФПД: 254708205029637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151355&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202028&fm=254708205029637&tin=02508201610067®Number=0000000000091777&sum=50041 [15:13:55]StoreToDocumentArchive [15:13:55]shift 544 fd 202028 [15:13:55]save to /storage/0544/doc_00202028 [15:13:55]save last doc name /storage/0544/doc_00202028 to /storage/kkm_last_doc_name [15:13:55]save OK [15:13:55]Clear old archive folders... [15:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:55]tlvbuf is B6F092B0 [15:13:55]SAM_PROTO_ClearQueue [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 09 00 00 [15:13:55]Write to MH i2c: E2 08 00 B8 2A 80 09 00 00 00 00 00 00 54 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 03 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 03 00 B8 2A 00 90 00 56 [15:13:55]RAPDU: 90 00 [15:13:55]wFMCommunicate OK [15:13:55]SAM_PROTO_ClearQueue done [15:13:55]KKMCreateOFDPacket [15:13:55]OFDProtocolAddRootSTLVToBuf [15:13:55]FM_MakeSignedData [15:13:55]FM_MakeSignedData [15:13:55]SAM_PROTO_SignData [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 0D 01 02 [15:13:55]Write to MH i2c: E2 08 00 B9 2A 80 0D 01 02 00 00 00 00 5C [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 03 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 03 00 B9 2A 00 90 00 57 [15:13:55]RAPDU: 90 00 [15:13:55]wFMCommunicate OK [15:13:55]wFMCommunicate request_size=255 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B3 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 15 03 00 35 04 06 00 E7 [15:13:55]Write to MH i2c: E2 02 01 BA 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B3 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 15 03 00 35 04 06 00 E7 00 00 60 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:55]Read from MH i2c: E2 03 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 03 00 BA 2A 00 90 00 58 [15:13:55]RAPDU: 90 00 [15:13:55]wFMCommunicate OK [15:13:55]wFMCommunicate request_size=10 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 0D 02 02 05 A7 E0 15 09 05 [15:13:55]Write to MH i2c: E2 0D 00 BB 2A 80 0D 02 02 05 00 A7 E0 15 09 05 00 00 13 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 03 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 03 00 BB 2A 00 90 00 59 [15:13:55]RAPDU: 90 00 [15:13:55]wFMCommunicate OK [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 0D 03 02 [15:13:55]Write to MH i2c: E2 08 00 BC 2A 80 0D 03 02 00 00 00 00 61 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 0B 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 0B 00 BC 2A 00 E5 6F 29 D1 15 6C 6D C7 90 00 65 [15:13:55]RAPDU: E5 6F 29 D1 15 6C 6D C7 90 00 [15:13:55]wFMCommunicate OK [15:13:55]SAM_PROTO_SignData done [15:13:55]FM_MakeSignedData done [15:13:55]CreateOFDProtocolMessage [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 11 00 00 [15:13:55]Write to MH i2c: E2 08 00 BD 2A 80 11 00 00 00 00 00 00 61 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 17 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 17 00 BD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B6 [15:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:13:55]wFMCommunicate OK [15:13:55]CreateOFDProtocolMessage done [15:13:55]OFDSenderStorePacket 202028 [15:13:55]StoreOFDPacket docnum=202028 [15:13:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 24 55 07 01 21 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B3 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 15 03 00 35 04 06 00 E7 A7 E0 15 09 05 E5 6F 29 D1 15 6C 6D C7 [15:13:55]CheckFolder [15:13:55]dirname=/storage/ofd_packets [15:13:55]CheckFolder done [15:13:55]ProducePacketName [15:13:55]name=ofd_packets/00202028 [15:13:55]NVStorageSaveData ofd_packets/00202028 [15:13:55]File name is /storage/ofd_packets/00202028 [15:13:55]Write 301 bytes [15:13:55]NVStorageSaveData done [15:13:55]OFDSenderStorePacket done [15:13:55]KKMCreateOFDPacket done [15:13:55]NVStorageSaveData kkm_last_timestamp [15:13:55]File name is /storage/kkm_last_timestamp [15:13:55]Write 4 bytes [15:13:55]NVStorageSaveData done [15:13:55]ExternCall_PrintAddStr [15:13:55]wPrintStart [15:13:55]Write to MH i2c: 01 00 00 BE 2A E8 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: 01 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: 01 07 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: 01 07 00 BE 2A 00 00 00 00 00 FF 0F FD [15:13:55]RasterBufferAndPrint [15:13:55]line Счет N : (1)449794 [15:13:55]line ИНН: 02508201610067 [15:13:55]line Контрольно-Кассовый Чек [15:13:55]line ПРОДАЖА [15:13:55]line ТРК (МРК, ГНК) : 41 [15:13:55]line Товар: 2710124130 [15:13:55]line Аи-92-К-2 [15:13:55]line 7.480 * 66.90 [15:13:55]line = 500.41 [15:13:55]line НДС 12% НСП 1% [15:13:55]line > о реализуемом товаре [15:13:55]line ИТОГО: 500.41 [15:13:55]line НСП 1% : 4.43 [15:13:55]line НДС 12% : 53.14 [15:13:55]line Наличными: 0.00 [15:13:55]line Безнал.: 500.41 [15:13:55]line Место: АЗС № 171 "Партнер Нефть" [15:13:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:13:55]line СНО: Общий режим [15:13:55]line Чек 320 27.10.2024 15:13 [15:13:55]line Смена: 544 ФФД: 1.0 [15:13:55]line ЗНМ: 0300000109 [15:13:55]line РНМ: 0000000000091777 [15:13:55]line Версия ККМ: 001 [15:13:55]line Платежная система: Mbank [15:13:55]line ФМ: 0000000000871756 [15:13:55]line ФД: 202028 [15:13:55]line ФПД: 254708205029637 [15:13:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151355&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202028&fm=254708205029637&tin=02508201610067®Number=0000000000091777&sum=50041 [15:13:56]OFD Sender: Processing packet 202028 [packets to send 112, broken 111] [15:13:56]ProducePacketName [15:13:56]name=ofd_packets/00202028 [15:13:56]OFD Sender: To server: pG, [15:13:56]CommunicateWithHost lk.salyk.kg:30040 [15:13:56]ConnectInit lk.salyk.kg [15:13:56]written 0, free lines is 4095 [15:13:56]Connected sock=10 [15:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 24 55 07 01 21 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B3 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 15 03 00 35 04 06 00 E7 A7 E0 15 09 05 E5 6F 29 D1 15 6C 6D C7 [15:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DD AF 47 00 6D 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 15 03 00 F4 03 04 00 6D 04 1E 67 B6 04 01 00 00 01 1F D5 C7 73 DF 0F CE [15:13:56]CommunicateWithHost err = 0 [15:13:56]CheckOFDResponse [15:13:56]1017 (14) - 77093643461234 [15:13:56]1041 (16) - 0000000000871756 [15:13:56]1040 (4) - 202028 [15:13:56]1012 (4) - 27.10.2024 09:14 [15:13:56]1206 (1) - 0 [15:13:56]OFD Sender: Remove packet 202028 [15:13:56]ProducePacketName [15:13:56]name=ofd_packets/00202028 [15:13:56]NVStorageDeleteData [15:13:56]Write to MH i2c: 01 00 00 E7 2A 11 [15:13:56]Write i2c OK [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: 01 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: 01 07 00 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: 01 07 00 E7 2A 00 00 00 00 00 BE 0C E2 [15:13:56]RasterBufferAndPrint [15:13:56]line [15:13:56]line [15:13:56]line [15:13:56]line [15:13:56]line [15:13:56]written 0, free lines is 3266 [15:13:56]MH_Cut [15:13:56]Write to MH i2c: D1 01 00 EE 2A 01 EA [15:13:56]Write i2c OK [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: D1 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: D1 01 00 [15:13:56]MH_I2C_Read... [15:13:56]Read from MH i2c: D1 01 00 EE 2A 00 E9 [15:13:56]Write to MH i2c: 01 00 00 EF 2A 19 [15:13:56]Write i2c OK [15:13:56]MH_I2C_Read... [15:13:57]OFD Sender: No OFD packet to send [15:13:57]*** Cut start [15:13:57]*** Purtial cut [15:13:57]*** Stage 1: CUTSNS_PIN = 1 [15:13:57]Read from MH i2c: 01 [15:13:57]MH_I2C_Read... [15:13:57]*** Stop cut motor [15:13:57]*** Cut end [15:13:57]Read from MH i2c: 01 07 00 [15:13:57]MH_I2C_Read... [15:13:57]Read from MH i2c: 01 07 00 EF 2A 00 00 00 00 00 FF 0F 2E [15:13:57]process_action close_receipt done [15:13:57]requested_data is exist [15:13:57]produce_requested_data [15:13:57]requested_item fm.sn is exist - process it [15:13:57]wFMCommunicate request_size=4 [15:13:57]MH_SAM_APDU [15:13:57]CAPDU: 80 11 00 00 [15:13:57]Write to MH i2c: E2 08 00 F0 2A 80 11 00 00 00 00 00 00 94 [15:13:57]Write i2c OK [15:13:57]MH_I2C_Read... [15:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:57]Read from MH i2c: E2 [15:13:57]MH_I2C_Read... [15:13:57]Read from MH i2c: E2 17 00 [15:13:57]MH_I2C_Read... [15:13:57]Read from MH i2c: E2 17 00 F0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [15:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:13:57]wFMCommunicate OK [15:13:57]requested_item fd.num is exist - process it [15:13:57]SAM_PROTO_GetFieldsCounters [15:13:57]wFMCommunicate request_size=4 [15:13:57]MH_SAM_APDU [15:13:57]CAPDU: 80 13 00 00 [15:13:57]Write to MH i2c: E2 08 00 F1 2A 80 13 00 00 00 00 00 00 97 [15:13:57]Write i2c OK [15:13:57]MH_I2C_Read... [15:13:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 62 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 62 00 F1 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [15:13:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:58]wFMCommunicate OK [15:13:58]SAM_PROTO_GetFieldsCounters done [15:13:58]requested_item shift.num is exist - process it [15:13:58]requested_item shift.opened is exist - process it [15:13:58]req_shift_opened [15:13:58]FM_GetShiftState [15:13:58]SAM_PROTO_GetShiftState [15:13:58]wFMCommunicate request_size=4 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 13 01 00 [15:13:58]Write to MH i2c: E2 08 00 F2 2A 80 13 01 00 00 00 00 00 99 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 0E 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 0E 00 F2 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9B [15:13:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:13:58]wFMCommunicate OK [15:13:58]SAM_PROTO_GetShiftState done [15:13:58]FM_GetShiftState done [15:13:58]req_shift_opened done [15:13:58]requested_item shift.open_date is exist - process it [15:13:58]req_shift_open_date [15:13:58]req_shift_open_date done [15:13:58]produce_requested_data done [15:13:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202028,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:13:58]process_action_free close_receipt [15:13:58]json_value_free [15:13:58]json_value_free done [15:13:58]process_json_proto returns [15:13:58]Send response to host [15:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202028,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:13:58]free response buf [15:13:58]execute_script done [15:13:58]execute_script returns [15:13:58]free content buf [15:13:58]Sock 8.Close socket [15:13:58]Sock 8.Thread stoped [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:16]accept exits with 9 [15:14:16]New connection [15:14:16]New thread 3066641764 created [15:14:16]Thread 3066498404 joined [15:14:16]Waiting for new connection... [15:14:16] Sock 9.Parse request [15:14:16]Sock 9.Check first char [15:14:16]Sock 9.First char is OK [15:14:16]request: POST /json_proto HTTP/1.0 [15:14:16]Method: POST [15:14:16]URL: /json_proto [15:14:16]Method is POST - this is cgi request [15:14:16]url: /json_proto [15:14:16]query_string will be loaded in cgi processing [15:14:16]execute_cgi json_proto POST (null) [15:14:16]execute_cgi path=json_proto method=POST [15:14:16]POST find Content-Length [15:14:16]Host: 172.17.63.195:8080 [15:14:16]Content-Length: 678 [15:14:16]Content-Type: application/json [15:14:16] [15:14:16]POST finish read [15:14:16]Found Content-Length = 678 [15:14:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:16]execute_script... [15:14:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:16]POST & json_proto [15:14:16]process_json_proto [15:14:16]json parsed OK: [15:14:16]protocol is kg_v1.0 [15:14:16]action value=close_receipt [15:14:16]process_action close_receipt [15:14:16]cmd_close_receipt [15:14:16]MH_GetDate [15:14:16]Write to MH i2c: F0 00 00 F3 2A 0C [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: F0 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: F0 09 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: F0 09 00 F3 2A 00 C9 58 1E 67 47 1B 1E 67 A2 [15:14:16]GetLastDocTimeStamp 1730042035 [15:14:16]current date 1730042057 [15:14:16]FM_GetShiftState [15:14:16]SAM_PROTO_GetShiftState [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 13 01 00 [15:14:16]Write to MH i2c: E2 08 00 F4 2A 80 13 01 00 00 00 00 00 9B [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0E 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0E 00 F4 2A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [15:14:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:14:16]wFMCommunicate OK [15:14:16]SAM_PROTO_GetShiftState done [15:14:16]FM_GetShiftState done [15:14:16]opened in 1729987312 [15:14:16]opened+sec_in_day 1730073712 [15:14:16]quantity*price = 70044 [15:14:16]sum+1 = 70045 [15:14:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 321 27.10.2024 15:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202029 ФПД: 74981444370995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151417&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202029&fm=74981444370995&tin=02508201610067®Number=0000000000091777&sum=70000 [15:14:17]StoreToDocumentArchive [15:14:17]shift 544 fd 202029 [15:14:17]save to /storage/0544/doc_00202029 [15:14:17]save last doc name /storage/0544/doc_00202029 to /storage/kkm_last_doc_name [15:14:17]save OK [15:14:17]Clear old archive folders... [15:14:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:17]tlvbuf is 011A83C0 [15:14:17]SAM_PROTO_ClearQueue [15:14:17]wFMCommunicate request_size=4 [15:14:17]MH_SAM_APDU [15:14:17]CAPDU: 80 09 00 00 [15:14:17]Write to MH i2c: E2 08 00 01 2B 80 09 00 00 00 00 00 00 9E [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:17]Read from MH i2c: E2 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 03 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 03 00 01 2B 00 90 00 A0 [15:14:17]RAPDU: 90 00 [15:14:17]wFMCommunicate OK [15:14:17]SAM_PROTO_ClearQueue done [15:14:17]KKMCreateOFDPacket [15:14:17]OFDProtocolAddRootSTLVToBuf [15:14:17]FM_MakeSignedData [15:14:17]FM_MakeSignedData [15:14:17]SAM_PROTO_SignData [15:14:17]wFMCommunicate request_size=4 [15:14:17]MH_SAM_APDU [15:14:17]CAPDU: 80 0D 01 02 [15:14:17]Write to MH i2c: E2 08 00 02 2B 80 0D 01 02 00 00 00 00 A6 [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:17]Read from MH i2c: E2 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 03 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 03 00 02 2B 00 90 00 A1 [15:14:17]RAPDU: 90 00 [15:14:17]wFMCommunicate OK [15:14:17]wFMCommunicate request_size=255 [15:14:17]MH_SAM_APDU [15:14:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 C9 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 15 03 00 35 04 06 00 44 [15:14:17]Write to MH i2c: E2 02 01 03 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 C9 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 15 03 00 35 04 06 00 44 00 00 DD [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 03 2B 00 90 00 A2 [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]wFMCommunicate request_size=10 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 0D 02 02 05 31 FA 5B 42 33 [15:14:18]Write to MH i2c: E2 0D 00 04 2B 80 0D 02 02 05 00 31 FA 5B 42 33 00 00 AE [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 04 2B 00 90 00 A3 [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 0D 03 02 [15:14:18]Write to MH i2c: E2 08 00 05 2B 80 0D 03 02 00 00 00 00 AB [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 0B 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 0B 00 05 2B 00 83 87 AD 50 84 6E 2B 55 90 00 25 [15:14:18]RAPDU: 83 87 AD 50 84 6E 2B 55 90 00 [15:14:18]wFMCommunicate OK [15:14:18]SAM_PROTO_SignData done [15:14:18]FM_MakeSignedData done [15:14:18]CreateOFDProtocolMessage [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 11 00 00 [15:14:18]Write to MH i2c: E2 08 00 06 2B 80 11 00 00 00 00 00 00 AB [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 17 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 17 00 06 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [15:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:14:18]wFMCommunicate OK [15:14:18]CreateOFDProtocolMessage done [15:14:18]OFDSenderStorePacket 202029 [15:14:18]StoreOFDPacket docnum=202029 [15:14:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A 05 07 01 EA DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 C9 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 15 03 00 35 04 06 00 44 31 FA 5B 42 33 83 87 AD 50 84 6E 2B 55 [15:14:18]CheckFolder [15:14:18]dirname=/storage/ofd_packets [15:14:18]CheckFolder done [15:14:18]ProducePacketName [15:14:18]name=ofd_packets/00202029 [15:14:18]NVStorageSaveData ofd_packets/00202029 [15:14:18]File name is /storage/ofd_packets/00202029 [15:14:18]Write 301 bytes [15:14:18]NVStorageSaveData done [15:14:18]OFDSenderStorePacket done [15:14:18]KKMCreateOFDPacket done [15:14:18]NVStorageSaveData kkm_last_timestamp [15:14:18]File name is /storage/kkm_last_timestamp [15:14:18]Write 4 bytes [15:14:18]NVStorageSaveData done [15:14:18]ExternCall_PrintAddStr [15:14:18]wPrintStart [15:14:18]Write to MH i2c: 01 00 00 07 2B 32 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: 01 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: 01 07 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: 01 07 00 07 2B 00 00 00 00 00 FF 0F 47 [15:14:18]RasterBufferAndPrint [15:14:18]line Счет N : (1)449795 [15:14:18]line ИНН: 02508201610067 [15:14:18]line Контрольно-Кассовый Чек [15:14:18]line ПРОДАЖА [15:14:18]line ТРК (МРК, ГНК) : 62 [15:14:18]line Товар: 2710124130 [15:14:18]line Аи-92-К-2 [15:14:18]line 10.470 * 66.90 [15:14:18]line = 700.44 [15:14:18]line НДС 12% НСП 1% [15:14:18]line > о реализуемом товаре [15:14:18]line ОКРУГЛЕНИЕ: -0.44 [15:14:18]line ИТОГО: 700.00 [15:14:18]line Внесено: 700.00 [15:14:18]line СДАЧА: 0.00 [15:14:18]line НСП 1% : 6.20 [15:14:18]line НДС 12% : 74.38 [15:14:18]line Наличными: 700.00 [15:14:18]line Безнал.: 0.00 [15:14:18]line Место: АЗС № 171 "Партнер Нефть" [15:14:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:14:18]line СНО: Общий режим [15:14:18]line Чек 321 27.10.2024 15:14 [15:14:18]line Смена: 544 ФФД: 1.0 [15:14:18]line ЗНМ: 0300000109 [15:14:18]line РНМ: 0000000000091777 [15:14:18]line Версия ККМ: 001 [15:14:18]line ФМ: 0000000000871756 [15:14:18]line ФД: 202029 [15:14:18]line ФПД: 74981444370995 [15:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151417&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202029&fm=74981444370995&tin=02508201610067®Number=0000000000091777&sum=70000 [15:14:18]OFD Sender: Processing packet 202029 [packets to send 112, broken 111] [15:14:18]ProducePacketName [15:14:18]name=ofd_packets/00202029 [15:14:18]OFD Sender: To server: pG, [15:14:18]CommunicateWithHost lk.salyk.kg:30040 [15:14:18]ConnectInit lk.salyk.kg [15:14:18]written 0, free lines is 4095 [15:14:18]Connected sock=10 [15:14:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A 05 07 01 EA DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 C9 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 15 03 00 35 04 06 00 44 31 FA 5B 42 33 83 87 AD 50 84 6E 2B 55 [15:14:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 18 28 47 00 27 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 15 03 00 F4 03 04 00 83 04 1E 67 B6 04 01 00 00 9F 75 4C EE D4 5D 5D E2 [15:14:19]CommunicateWithHost err = 0 [15:14:19]CheckOFDResponse [15:14:19]1017 (14) - 77093643461234 [15:14:19]1041 (16) - 0000000000871756 [15:14:19]1040 (4) - 202029 [15:14:19]1012 (4) - 27.10.2024 09:14 [15:14:19]1206 (1) - 0 [15:14:19]OFD Sender: Remove packet 202029 [15:14:19]ProducePacketName [15:14:19]name=ofd_packets/00202029 [15:14:19]NVStorageDeleteData [15:14:19]Write to MH i2c: 01 00 00 32 2B 5D [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 32 2B 00 00 00 00 00 84 0C F4 [15:14:19]RasterBufferAndPrint [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]written 0, free lines is 3210 [15:14:19]MH_Cut [15:14:19]Write to MH i2c: D1 01 00 39 2B 01 36 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 01 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 01 00 39 2B 00 35 [15:14:19]Write to MH i2c: 01 00 00 3A 2B 65 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]OFD Sender: No OFD packet to send [15:14:20]*** Cut start [15:14:20]*** Purtial cut [15:14:20]*** Stage 1: CUTSNS_PIN = 1 [15:14:20]Read from MH i2c: 01 [15:14:20]MH_I2C_Read... [15:14:20]*** Stop cut motor [15:14:20]*** Cut end [15:14:20]Read from MH i2c: 01 07 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: 01 07 00 3A 2B 00 00 00 00 00 FF 0F 7A [15:14:20]process_action close_receipt done [15:14:20]requested_data is exist [15:14:20]produce_requested_data [15:14:20]requested_item fm.sn is exist - process it [15:14:20]wFMCommunicate request_size=4 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 11 00 00 [15:14:20]Write to MH i2c: E2 08 00 3B 2B 80 11 00 00 00 00 00 00 E0 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 17 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 17 00 3B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [15:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:14:20]wFMCommunicate OK [15:14:20]requested_item fd.num is exist - process it [15:14:20]SAM_PROTO_GetFieldsCounters [15:14:20]wFMCommunicate request_size=4 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 13 00 00 [15:14:20]Write to MH i2c: E2 08 00 3C 2B 80 13 00 00 00 00 00 00 E3 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 62 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 62 00 3C 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [15:14:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:20]wFMCommunicate OK [15:14:20]SAM_PROTO_GetFieldsCounters done [15:14:20]requested_item shift.num is exist - process it [15:14:20]requested_item shift.opened is exist - process it [15:14:20]req_shift_opened [15:14:20]FM_GetShiftState [15:14:20]SAM_PROTO_GetShiftState [15:14:20]wFMCommunicate request_size=4 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 13 01 00 [15:14:20]Write to MH i2c: E2 08 00 3D 2B 80 13 01 00 00 00 00 00 E5 [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 0E 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 0E 00 3D 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E7 [15:14:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:14:20]wFMCommunicate OK [15:14:20]SAM_PROTO_GetShiftState done [15:14:20]FM_GetShiftState done [15:14:20]req_shift_opened done [15:14:20]requested_item shift.open_date is exist - process it [15:14:20]req_shift_open_date [15:14:20]req_shift_open_date done [15:14:20]produce_requested_data done [15:14:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202029,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:14:20]process_action_free close_receipt [15:14:20]json_value_free [15:14:20]json_value_free done [15:14:20]process_json_proto returns [15:14:20]Send response to host [15:14:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202029,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:14:20]free response buf [15:14:20]execute_script done [15:14:20]execute_script returns [15:14:20]free content buf [15:14:20]Sock 9.Close socket [15:14:20]Sock 9.Thread stoped [15:14:21]accept exits with 8 [15:14:21]New connection [15:14:21]New thread 3066498404 created [15:14:21]Thread 3066641764 joined [15:14:21]Waiting for new connection... [15:14:21] Sock 8.Parse request [15:14:21]Sock 8.Check first char [15:14:21]Sock 8.First char is OK [15:14:21]request: POST /json_proto HTTP/1.0 [15:14:21]Method: POST [15:14:21]URL: /json_proto [15:14:21]Method is POST - this is cgi request [15:14:21]url: /json_proto [15:14:21]query_string will be loaded in cgi processing [15:14:21]execute_cgi json_proto POST (null) [15:14:21]execute_cgi path=json_proto method=POST [15:14:21]POST find Content-Length [15:14:21]Host: 172.17.63.195:8080 [15:14:21]Content-Length: 766 [15:14:21]Content-Type: application/json [15:14:21] [15:14:21]POST finish read [15:14:21]Found Content-Length = 766 [15:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:21]execute_script... [15:14: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)449796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:21]POST & json_proto [15:14:21]process_json_proto [15:14:21]json parsed OK: [15:14:21]protocol is kg_v1.0 [15:14:21]action value=close_receipt [15:14:21]process_action close_receipt [15:14:21]cmd_close_receipt [15:14:21]MH_GetDate [15:14:21]Write to MH i2c: F0 00 00 3E 2B 58 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: F0 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: F0 09 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: F0 09 00 3E 2B 00 CE 58 1E 67 47 1B 1E 67 F3 [15:14:21]GetLastDocTimeStamp 1730042057 [15:14:21]current date 1730042062 [15:14:21]FM_GetShiftState [15:14:21]SAM_PROTO_GetShiftState [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 01 00 [15:14:21]Write to MH i2c: E2 08 00 3F 2B 80 13 01 00 00 00 00 00 E7 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 3F 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E9 [15:14:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetShiftState done [15:14:21]FM_GetShiftState done [15:14:21]opened in 1729987312 [15:14:21]opened+sec_in_day 1730073712 [15:14:21]quantity*price = 50041 [15:14:21]sum+1 = 50042 [15:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 322 27.10.2024 15:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202030 ФПД: 64908753559309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151422&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202030&fm=64908753559309&tin=02508201610067®Number=0000000000091777&sum=50041 [15:14:22]StoreToDocumentArchive [15:14:22]shift 544 fd 202030 [15:14:22]save to /storage/0544/doc_00202030 [15:14:22]save last doc name /storage/0544/doc_00202030 to /storage/kkm_last_doc_name [15:14:22]save OK [15:14:22]Clear old archive folders... [15:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:22]tlvbuf is 012C2510 [15:14:22]SAM_PROTO_ClearQueue [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 09 00 00 [15:14:22]Write to MH i2c: E2 08 00 4C 2B 80 09 00 00 00 00 00 00 E9 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 03 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 03 00 4C 2B 00 90 00 EB [15:14:22]RAPDU: 90 00 [15:14:22]wFMCommunicate OK [15:14:22]SAM_PROTO_ClearQueue done [15:14:22]KKMCreateOFDPacket [15:14:22]OFDProtocolAddRootSTLVToBuf [15:14:22]FM_MakeSignedData [15:14:22]FM_MakeSignedData [15:14:22]SAM_PROTO_SignData [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 0D 01 02 [15:14:22]Write to MH i2c: E2 08 00 4D 2B 80 0D 01 02 00 00 00 00 F1 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 03 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 03 00 4D 2B 00 90 00 EC [15:14:23]RAPDU: 90 00 [15:14:23]wFMCommunicate OK [15:14:23]wFMCommunicate request_size=255 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CE 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 15 03 00 35 04 06 00 3B [15:14:23]Write to MH i2c: E2 02 01 4E 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CE 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 15 03 00 35 04 06 00 3B 00 00 68 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 03 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 03 00 4E 2B 00 90 00 ED [15:14:23]RAPDU: 90 00 [15:14:23]wFMCommunicate OK [15:14:23]wFMCommunicate request_size=10 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 0D 02 02 05 08 BF 32 DF 0D [15:14:23]Write to MH i2c: E2 0D 00 4F 2B 80 0D 02 02 05 00 08 BF 32 DF 0D 00 00 E3 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 03 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 03 00 4F 2B 00 90 00 EE [15:14:23]RAPDU: 90 00 [15:14:23]wFMCommunicate OK [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 0D 03 02 [15:14:23]Write to MH i2c: E2 08 00 50 2B 80 0D 03 02 00 00 00 00 F6 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 0B 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 0B 00 50 2B 00 ED 36 F1 AB CD 91 0D 53 90 00 74 [15:14:23]RAPDU: ED 36 F1 AB CD 91 0D 53 90 00 [15:14:23]wFMCommunicate OK [15:14:23]SAM_PROTO_SignData done [15:14:23]FM_MakeSignedData done [15:14:23]CreateOFDProtocolMessage [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 11 00 00 [15:14:23]Write to MH i2c: E2 08 00 51 2B 80 11 00 00 00 00 00 00 F6 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 17 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 17 00 51 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [15:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:14:23]wFMCommunicate OK [15:14:23]CreateOFDProtocolMessage done [15:14:23]OFDSenderStorePacket 202030 [15:14:23]StoreOFDPacket docnum=202030 [15:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 62 40 07 01 FF FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CE 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 15 03 00 35 04 06 00 3B 08 BF 32 DF 0D ED 36 F1 AB CD 91 0D 53 [15:14:23]CheckFolder [15:14:23]dirname=/storage/ofd_packets [15:14:23]CheckFolder done [15:14:23]ProducePacketName [15:14:23]name=ofd_packets/00202030 [15:14:23]NVStorageSaveData ofd_packets/00202030 [15:14:23]File name is /storage/ofd_packets/00202030 [15:14:23]Write 301 bytes [15:14:23]NVStorageSaveData done [15:14:23]OFDSenderStorePacket done [15:14:23]KKMCreateOFDPacket done [15:14:23]NVStorageSaveData kkm_last_timestamp [15:14:23]File name is /storage/kkm_last_timestamp [15:14:23]Write 4 bytes [15:14:23]NVStorageSaveData done [15:14:23]ExternCall_PrintAddStr [15:14:23]wPrintStart [15:14:23]Write to MH i2c: 01 00 00 52 2B 7D [15:14:23]OFD Sender: Processing packet 202030 [packets to send 112, broken 111] [15:14:23]ProducePacketName [15:14:23]name=ofd_packets/00202030 [15:14:23]OFD Sender: To server: pG, [15:14:23]CommunicateWithHost lk.salyk.kg:30040 [15:14:23]ConnectInit lk.salyk.kg [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: 01 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: 01 07 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: 01 07 00 52 2B 00 00 00 00 00 FF 0F 92 [15:14:23]RasterBufferAndPrint [15:14:23]line Счет N : (1)449796 [15:14:23]line ИНН: 02508201610067 [15:14:23]line Контрольно-Кассовый Чек [15:14:23]line ПРОДАЖА [15:14:23]line ТРК (МРК, ГНК) : 31 [15:14:23]line Товар: 2710124130 [15:14:23]line Аи-92-К-2 [15:14:23]line 7.480 * 66.90 [15:14:23]line = 500.41 [15:14:23]line НДС 12% НСП 1% [15:14:23]line > о реализуемом товаре [15:14:23]line ИТОГО: 500.41 [15:14:23]line НСП 1% : 4.43 [15:14:23]line НДС 12% : 53.14 [15:14:23]line Наличными: 0.00 [15:14:23]line Безнал.: 500.41 [15:14:23]line Место: АЗС № 171 "Партнер Нефть" [15:14:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:14:23]line СНО: Общий режим [15:14:23]line Чек 322 27.10.2024 15:14 [15:14:23]line Смена: 544 ФФД: 1.0 [15:14:23]line ЗНМ: 0300000109 [15:14:23]line РНМ: 0000000000091777 [15:14:23]line Версия ККМ: 001 [15:14:23]line Платежная система: Mbank [15:14:23]line ФМ: 0000000000871756 [15:14:23]line ФД: 202030 [15:14:23]line ФПД: 64908753559309 [15:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151422&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202030&fm=64908753559309&tin=02508201610067®Number=0000000000091777&sum=50041 [15:14:23]Connected sock=10 [15:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 62 40 07 01 FF FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CE 58 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 written 0, free lines is 4095 [15:14:23]30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 15 03 00 35 04 06 00 3B 08 BF 32 DF 0D ED 36 F1 AB CD 91 0D 53 [15:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 06 B7 47 00 08 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 15 03 00 F4 03 04 00 88 04 1E 67 B6 04 01 00 00 2D CA CC 38 01 69 0E AD [15:14:24]CommunicateWithHost err = 0 [15:14:24]CheckOFDResponse [15:14:24]1017 (14) - 77093643461234 [15:14:24]1041 (16) - 0000000000871756 [15:14:24]1040 (4) - 202030 [15:14:24]1012 (4) - 27.10.2024 09:14 [15:14:24]1206 (1) - 0 [15:14:24]OFD Sender: Remove packet 202030 [15:14:24]ProducePacketName [15:14:24]name=ofd_packets/00202030 [15:14:24]NVStorageDeleteData [15:14:24]Write to MH i2c: 01 00 00 7B 2B A6 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 7B 2B 00 00 00 00 00 B4 0C 6D [15:14:24]RasterBufferAndPrint [15:14:24]line [15:14:24]line [15:14:24]line [15:14:24]line [15:14:24]line [15:14:24]written 0, free lines is 3262 [15:14:24]MH_Cut [15:14:24]Write to MH i2c: D1 01 00 82 2B 01 7F [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: D1 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: D1 01 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: D1 01 00 82 2B 00 7E [15:14:24]Write to MH i2c: 01 00 00 83 2B AE [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]OFD Sender: No OFD packet to send [15:14:25]*** Cut start [15:14:25]*** Purtial cut [15:14:25]*** CUTSNS_PIN = 0 [15:14:25]*** Stage 1: CUTSNS_PIN = 1 [15:14:27]Read from MH i2c: 01 [15:14:27]MH_I2C_Read... [15:14:27]*** Stop cut motor [15:14:27]*** Cut end [15:14:27]Read from MH i2c: 01 07 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: 01 07 00 83 2B 00 00 00 00 00 FF 0F C3 [15:14:27]process_action close_receipt done [15:14:27]requested_data is exist [15:14:27]produce_requested_data [15:14:27]requested_item fm.sn is exist - process it [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 11 00 00 [15:14:27]Write to MH i2c: E2 08 00 84 2B 80 11 00 00 00 00 00 00 29 [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 17 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 17 00 84 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7E [15:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:14:27]wFMCommunicate OK [15:14:27]requested_item fd.num is exist - process it [15:14:27]SAM_PROTO_GetFieldsCounters [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 13 00 00 [15:14:27]Write to MH i2c: E2 08 00 85 2B 80 13 00 00 00 00 00 00 2C [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 62 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 62 00 85 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [15:14:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:27]wFMCommunicate OK [15:14:27]SAM_PROTO_GetFieldsCounters done [15:14:27]requested_item shift.num is exist - process it [15:14:27]requested_item shift.opened is exist - process it [15:14:27]req_shift_opened [15:14:27]FM_GetShiftState [15:14:27]SAM_PROTO_GetShiftState [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 13 01 00 [15:14:27]Write to MH i2c: E2 08 00 86 2B 80 13 01 00 00 00 00 00 2E [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 0E 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 0E 00 86 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 30 [15:14:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:14:27]wFMCommunicate OK [15:14:27]SAM_PROTO_GetShiftState done [15:14:27]FM_GetShiftState done [15:14:27]req_shift_opened done [15:14:27]requested_item shift.open_date is exist - process it [15:14:27]req_shift_open_date [15:14:27]req_shift_open_date done [15:14:27]produce_requested_data done [15:14:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202030,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:14:27]process_action_free close_receipt [15:14:27]json_value_free [15:14:27]json_value_free done [15:14:27]process_json_proto returns [15:14:27]Send response to host [15:14:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202030,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:14:27]free response buf [15:14:27]execute_script done [15:14:27]execute_script returns [15:14:27]free content buf [15:14:27]Sock 8.Close socket [15:14:27]Sock 8.Thread stoped [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:58]accept exits with 9 [15:17:58]New connection [15:17:58]New thread 3066641764 created [15:17:58]Thread 3066498404 joined [15:17:58]Waiting for new connection... [15:17:58] Sock 9.Parse request [15:17:58]Sock 9.Check first char [15:17:58]Sock 9.First char is OK [15:17:58]request: POST /json_proto HTTP/1.0 [15:17:58]Method: POST [15:17:58]URL: /json_proto [15:17:58]Method is POST - this is cgi request [15:17:58]url: /json_proto [15:17:58]query_string will be loaded in cgi processing [15:17:58]execute_cgi json_proto POST (null) [15:17:58]execute_cgi path=json_proto method=POST [15:17:58]POST find Content-Length [15:17:58]Host: 172.17.63.195:8080 [15:17:58]Content-Length: 766 [15:17:58]Content-Type: application/json [15:17:58] [15:17:58]POST finish read [15:17:58]Found Content-Length = 766 [15:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [15:17:58]execute_script... [15:17: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)449797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [15:17:58]POST & json_proto [15:17:58]process_json_proto [15:17:58]json parsed OK: [15:17:58]protocol is kg_v1.0 [15:17:58]action value=close_receipt [15:17:58]process_action close_receipt [15:17:58]cmd_close_receipt [15:17:58]MH_GetDate [15:17:58]Write to MH i2c: F0 00 00 87 2B A1 [15:17:58]Write i2c OK [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: F0 [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: F0 09 00 [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: F0 09 00 87 2B 00 A8 59 1E 67 47 1B 1E 67 17 [15:17:58]GetLastDocTimeStamp 1730042062 [15:17:58]current date 1730042280 [15:17:58]FM_GetShiftState [15:17:58]SAM_PROTO_GetShiftState [15:17:58]wFMCommunicate request_size=4 [15:17:58]MH_SAM_APDU [15:17:58]CAPDU: 80 13 01 00 [15:17:58]Write to MH i2c: E2 08 00 88 2B 80 13 01 00 00 00 00 00 30 [15:17:58]Write i2c OK [15:17:58]MH_I2C_Read... [15:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:58]Read from MH i2c: E2 [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: E2 0E 00 [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: E2 0E 00 88 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 32 [15:17:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:17:58]wFMCommunicate OK [15:17:58]SAM_PROTO_GetShiftState done [15:17:58]FM_GetShiftState done [15:17:58]opened in 1729987312 [15:17:58]opened+sec_in_day 1730073712 [15:17:58]quantity*price = 100050 [15:17:58]sum+1 = 100052 [15:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 323 27.10.2024 15:18 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202031 ФПД: 28011017612033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151800&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202031&fm=28011017612033&tin=02508201610067®Number=0000000000091777&sum=100051 [15:17:59]StoreToDocumentArchive [15:17:59]shift 544 fd 202031 [15:17:59]save to /storage/0544/doc_00202031 [15:17:59]save last doc name /storage/0544/doc_00202031 to /storage/kkm_last_doc_name [15:17:59]save OK [15:17:59]Clear old archive folders... [15:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:17:59]tlvbuf is 01244880 [15:17:59]SAM_PROTO_ClearQueue [15:17:59]wFMCommunicate request_size=4 [15:17:59]MH_SAM_APDU [15:17:59]CAPDU: 80 09 00 00 [15:17:59]Write to MH i2c: E2 08 00 95 2B 80 09 00 00 00 00 00 00 32 [15:17:59]Write i2c OK [15:17:59]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 95 2B 00 90 00 34 [15:18:00]RAPDU: 90 00 [15:18:00]wFMCommunicate OK [15:18:00]SAM_PROTO_ClearQueue done [15:18:00]KKMCreateOFDPacket [15:18:00]OFDProtocolAddRootSTLVToBuf [15:18:00]FM_MakeSignedData [15:18:00]FM_MakeSignedData [15:18:00]SAM_PROTO_SignData [15:18:00]wFMCommunicate request_size=4 [15:18:00]MH_SAM_APDU [15:18:00]CAPDU: 80 0D 01 02 [15:18:00]Write to MH i2c: E2 08 00 96 2B 80 0D 01 02 00 00 00 00 3A [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 96 2B 00 90 00 35 [15:18:00]RAPDU: 90 00 [15:18:00]wFMCommunicate OK [15:18:00]wFMCommunicate request_size=255 [15:18:00]MH_SAM_APDU [15:18:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 43 01 00 00 F4 03 04 00 A8 59 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 15 03 00 35 04 06 00 19 79 D2 C1 [15:18:00]Write to MH i2c: E2 02 01 97 2B 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 32 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 43 01 00 00 F4 03 04 00 A8 59 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 15 03 00 35 04 06 00 19 79 D2 C1 00 00 82 [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 97 2B 00 90 00 36 [15:18:00]RAPDU: 90 00 [15:18:00]wFMCommunicate OK [15:18:00]wFMCommunicate request_size=7 [15:18:00]MH_SAM_APDU [15:18:00]CAPDU: 80 0D 02 02 02 2B 01 [15:18:00]Write to MH i2c: E2 0A 00 98 2B 80 0D 02 02 02 00 2B 01 00 00 6D [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 98 2B 00 90 00 37 [15:18:00]RAPDU: 90 00 [15:18:00]wFMCommunicate OK [15:18:00]wFMCommunicate request_size=4 [15:18:00]MH_SAM_APDU [15:18:00]CAPDU: 80 0D 03 02 [15:18:00]Write to MH i2c: E2 08 00 99 2B 80 0D 03 02 00 00 00 00 3F [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 0B 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 0B 00 99 2B 00 5C AD 74 1F 67 37 6C BA 90 00 A0 [15:18:00]RAPDU: 5C AD 74 1F 67 37 6C BA 90 00 [15:18:00]wFMCommunicate OK [15:18:00]SAM_PROTO_SignData done [15:18:00]FM_MakeSignedData done [15:18:00]CreateOFDProtocolMessage [15:18:00]wFMCommunicate request_size=4 [15:18:00]MH_SAM_APDU [15:18:00]CAPDU: 80 11 00 00 [15:18:00]Write to MH i2c: E2 08 00 9A 2B 80 11 00 00 00 00 00 00 3F [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 17 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 17 00 9A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 94 [15:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:18:00]wFMCommunicate OK [15:18:00]CreateOFDProtocolMessage done [15:18:00]OFDSenderStorePacket 202031 [15:18:00]StoreOFDPacket docnum=202031 [15:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 12 47 04 01 21 51 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 32 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 43 01 00 00 F4 03 04 00 A8 59 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 15 03 00 35 04 06 00 19 79 D2 C1 2B 01 5C AD 74 1F 67 37 6C BA [15:18:00]CheckFolder [15:18:00]dirname=/storage/ofd_packets [15:18:00]CheckFolder done [15:18:00]ProducePacketName [15:18:00]name=ofd_packets/00202031 [15:18:00]NVStorageSaveData ofd_packets/00202031 [15:18:00]File name is /storage/ofd_packets/00202031 [15:18:00]Write 298 bytes [15:18:00]NVStorageSaveData done [15:18:00]OFDSenderStorePacket done [15:18:00]KKMCreateOFDPacket done [15:18:00]NVStorageSaveData kkm_last_timestamp [15:18:00]File name is /storage/kkm_last_timestamp [15:18:00]Write 4 bytes [15:18:00]NVStorageSaveData done [15:18:00]ExternCall_PrintAddStr [15:18:00]wPrintStart [15:18:00]Write to MH i2c: 01 00 00 9B 2B C6 [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: 01 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: 01 07 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: 01 07 00 9B 2B 00 00 00 00 00 FF 0F DB [15:18:00]RasterBufferAndPrint [15:18:00]line Счет N : (1)449797 [15:18:00]line ИНН: 02508201610067 [15:18:00]line Контрольно-Кассовый Чек [15:18:00]line ПРОДАЖА [15:18:00]line ТРК (МРК, ГНК) : 43 [15:18:00]line Товар: 2710194210 [15:18:00]line ДТ-К-2 [15:18:00]line 13.130 * 76.20 [15:18:00]line = 1000.51 [15:18:00]line НДС 12% НСП 1% [15:18:00]line > о реализуемом товаре [15:18:00]line ИТОГО: 1000.51 [15:18:00]line НСП 1% : 8.85 [15:18:00]line НДС 12% : 106.25 [15:18:00]line Наличными: 0.00 [15:18:00]line Безнал.: 1000.51 [15:18:00]line Место: АЗС № 171 "Партнер Нефть" [15:18:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:18:00]line СНО: Общий режим [15:18:00]line Чек 323 27.10.2024 15:18 [15:18:00]line Смена: 544 ФФД: 1.0 [15:18:00]line ЗНМ: 0300000109 [15:18:00]line РНМ: 0000000000091777 [15:18:00]line Версия ККМ: 001 [15:18:00]line Платежная система: Mbank [15:18:00]line ФМ: 0000000000871756 [15:18:00]line ФД: 202031 [15:18:00]line ФПД: 28011017612033 [15:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151800&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202031&fm=28011017612033&tin=02508201610067®Number=0000000000091777&sum=100051 [15:18:00]OFD Sender: Processing packet 202031 [packets to send 112, broken 111] [15:18:00]ProducePacketName [15:18:00]name=ofd_packets/00202031 [15:18:00]OFD Sender: To server: pG, [15:18:00]CommunicateWithHost lk.salyk.kg:30040 [15:18:00]ConnectInit lk.salyk.kg [15:18:00]written 0, free lines is 4095 [15:18:00]Connected sock=10 [15:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 12 47 04 01 21 51 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 32 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 43 01 00 00 F4 03 04 00 A8 59 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 15 03 00 35 04 06 00 19 79 D2 C1 2B 01 5C AD 74 1F 67 37 6C BA [15:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 68 FE 47 00 11 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 15 03 00 F4 03 04 00 61 05 1E 67 B6 04 01 00 00 FD 26 BA E8 55 51 F9 5D [15:18:01]CommunicateWithHost err = 0 [15:18:01]CheckOFDResponse [15:18:01]1017 (14) - 77093643461234 [15:18:01]1041 (16) - 0000000000871756 [15:18:01]1040 (4) - 202031 [15:18:01]1012 (4) - 27.10.2024 09:18 [15:18:01]1206 (1) - 0 [15:18:01]OFD Sender: Remove packet 202031 [15:18:01]ProducePacketName [15:18:01]name=ofd_packets/00202031 [15:18:01]NVStorageDeleteData [15:18:01]Write to MH i2c: 01 00 00 C4 2B EF [15:18:01]Write i2c OK [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: 01 [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: 01 07 00 [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 B6 0C B8 [15:18:01]RasterBufferAndPrint [15:18:01]line [15:18:01]line [15:18:01]line [15:18:01]line [15:18:01]line [15:18:01]written 0, free lines is 3258 [15:18:01]MH_Cut [15:18:01]Write to MH i2c: D1 01 00 CB 2B 01 C8 [15:18:01]Write i2c OK [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: D1 [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: D1 01 00 [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: D1 01 00 CB 2B 00 C7 [15:18:01]Write to MH i2c: 01 00 00 CC 2B F7 [15:18:01]Write i2c OK [15:18:01]MH_I2C_Read... [15:18:01]OFD Sender: No OFD packet to send [15:18:02]*** Cut start [15:18:02]*** Purtial cut [15:18:02]*** Stage 1: CUTSNS_PIN = 1 [15:18:02]Read from MH i2c: 01 [15:18:02]MH_I2C_Read... [15:18:02]*** Stop cut motor [15:18:02]*** Cut end [15:18:02]Read from MH i2c: 01 07 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: 01 07 00 CC 2B 00 00 00 00 00 FF 0F 0C [15:18:02]process_action close_receipt done [15:18:02]requested_data is exist [15:18:02]produce_requested_data [15:18:02]requested_item fm.sn is exist - process it [15:18:02]wFMCommunicate request_size=4 [15:18:02]MH_SAM_APDU [15:18:02]CAPDU: 80 11 00 00 [15:18:02]Write to MH i2c: E2 08 00 CD 2B 80 11 00 00 00 00 00 00 72 [15:18:02]Write i2c OK [15:18:02]MH_I2C_Read... [15:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:02]Read from MH i2c: E2 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 17 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 17 00 CD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [15:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:18:02]wFMCommunicate OK [15:18:02]requested_item fd.num is exist - process it [15:18:02]SAM_PROTO_GetFieldsCounters [15:18:02]wFMCommunicate request_size=4 [15:18:02]MH_SAM_APDU [15:18:02]CAPDU: 80 13 00 00 [15:18:02]Write to MH i2c: E2 08 00 CE 2B 80 13 00 00 00 00 00 00 75 [15:18:02]Write i2c OK [15:18:02]MH_I2C_Read... [15:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:02]Read from MH i2c: E2 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 62 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 62 00 CE 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [15:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:02]wFMCommunicate OK [15:18:02]SAM_PROTO_GetFieldsCounters done [15:18:02]requested_item shift.num is exist - process it [15:18:02]requested_item shift.opened is exist - process it [15:18:02]req_shift_opened [15:18:02]FM_GetShiftState [15:18:02]SAM_PROTO_GetShiftState [15:18:02]wFMCommunicate request_size=4 [15:18:02]MH_SAM_APDU [15:18:02]CAPDU: 80 13 01 00 [15:18:02]Write to MH i2c: E2 08 00 CF 2B 80 13 01 00 00 00 00 00 77 [15:18:02]Write i2c OK [15:18:02]MH_I2C_Read... [15:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:02]Read from MH i2c: E2 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 0E 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 0E 00 CF 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 79 [15:18:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:18:02]wFMCommunicate OK [15:18:02]SAM_PROTO_GetShiftState done [15:18:02]FM_GetShiftState done [15:18:02]req_shift_opened done [15:18:02]requested_item shift.open_date is exist - process it [15:18:02]req_shift_open_date [15:18:02]req_shift_open_date done [15:18:02]produce_requested_data done [15:18:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202031,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:18:02]process_action_free close_receipt [15:18:02]json_value_free [15:18:02]json_value_free done [15:18:02]process_json_proto returns [15:18:02]Send response to host [15:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202031,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:18:02]free response buf [15:18:02]execute_script done [15:18:02]execute_script returns [15:18:02]free content buf [15:18:02]Sock 9.Close socket [15:18:02]Sock 9.Thread stoped [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 D0 2B FB [15:18:19]*** FLAG_PRN_KEY set [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 D0 2B 00 08 00 00 00 FF 0F 18 [15:18:19]state=0 [15:18:19]Key pressed [15:18:19]Feed [15:18:19]Write to MH i2c: D8 00 00 D1 2B D3 [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 01 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 01 00 D1 2B 00 D4 [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 D2 2B FD [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 D2 2B 00 48 00 00 00 3C 00 88 [15:18:19]state=2 [15:18:19]Key pressed [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 D3 2B FE [15:18:19]*** FLAG_PRN_KEY reset [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 D3 2B 00 00 00 00 00 F5 0F 09 [15:18:19]state=2 [15:18:19]Stop feed [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 D4 2B FF [15:18:19]*** FLAG_PRN_KEY set [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 D4 2B 00 08 00 00 00 FF 0F 1C [15:18:19]state=0 [15:18:19]Key pressed [15:18:19]Feed [15:18:19]Write to MH i2c: D8 00 00 D5 2B D7 [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 01 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 01 00 D5 2B 00 D8 [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 D6 2B 01 [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 D6 2B 00 48 00 00 00 3D 00 8D [15:18:19]state=2 [15:18:19]Key pressed [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 D7 2B 02 [15:18:19]*** FLAG_PRN_KEY reset [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 D7 2B 00 00 00 00 00 F5 0F 0D [15:18:19]state=2 [15:18:19]Stop feed [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 D8 2B 03 [15:18:19]*** FLAG_PRN_KEY set [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 D8 2B 00 08 00 00 00 F8 0F 19 [15:18:19]state=0 [15:18:19]Key pressed [15:18:19]Feed [15:18:19]Write to MH i2c: D8 00 00 D9 2B DB [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 01 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: D8 01 00 D9 2B 00 DC [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 DA 2B 05 [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 DA 2B 00 48 00 00 00 3C 00 90 [15:18:19]state=2 [15:18:19]Key pressed [15:18:19]int [15:18:19]Write to MH i2c: 01 00 00 DB 2B 06 [15:18:19]*** FLAG_PRN_KEY reset [15:18:19]Write i2c OK [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 [15:18:19]MH_I2C_Read... [15:18:19]Read from MH i2c: 01 07 00 DB 2B 00 00 00 00 00 F6 0F 12 [15:18:19]state=2 [15:18:19]Stop feed [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:01]accept exits with 8 [15:30:01]New connection [15:30:01]New thread 3066498404 created [15:30:01]Thread 3066641764 joined [15:30:01]Waiting for new connection... [15:30:01] Sock 8.Parse request [15:30:01]Sock 8.Check first char [15:30:01]Sock 8.First char is OK [15:30:01]request: POST /json_proto HTTP/1.0 [15:30:01]Method: POST [15:30:01]URL: /json_proto [15:30:01]Method is POST - this is cgi request [15:30:01]url: /json_proto [15:30:01]query_string will be loaded in cgi processing [15:30:01]execute_cgi json_proto POST (null) [15:30:01]execute_cgi path=json_proto method=POST [15:30:01]POST find Content-Length [15:30:01]Host: 172.17.63.195:8080 [15:30:01]Content-Length: 677 [15:30:01]Content-Type: application/json [15:30:01] [15:30:01]POST finish read [15:30:01]Found Content-Length = 677 [15:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:01]execute_script... [15:30:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:01]POST & json_proto [15:30:01]process_json_proto [15:30:01]json parsed OK: [15:30:01]protocol is kg_v1.0 [15:30:01]action value=close_receipt [15:30:01]process_action close_receipt [15:30:01]cmd_close_receipt [15:30:01]MH_GetDate [15:30:01]Write to MH i2c: F0 00 00 DC 2B F6 [15:30:01]Write i2c OK [15:30:01]MH_I2C_Read... [15:30:01]Read from MH i2c: F0 [15:30:01]MH_I2C_Read... [15:30:01]Read from MH i2c: F0 09 00 [15:30:01]MH_I2C_Read... [15:30:01]Read from MH i2c: F0 09 00 DC 2B 00 7B 5C 1E 67 47 1B 1E 67 42 [15:30:01]GetLastDocTimeStamp 1730042280 [15:30:01]current date 1730043003 [15:30:01]FM_GetShiftState [15:30:01]SAM_PROTO_GetShiftState [15:30:01]wFMCommunicate request_size=4 [15:30:01]MH_SAM_APDU [15:30:01]CAPDU: 80 13 01 00 [15:30:01]Write to MH i2c: E2 08 00 DD 2B 80 13 01 00 00 00 00 00 85 [15:30:01]Write i2c OK [15:30:01]MH_I2C_Read... [15:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:02]Read from MH i2c: E2 [15:30:02]MH_I2C_Read... [15:30:02]Read from MH i2c: E2 0E 00 [15:30:02]MH_I2C_Read... [15:30:02]Read from MH i2c: E2 0E 00 DD 2B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 87 [15:30:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:30:02]wFMCommunicate OK [15:30:02]SAM_PROTO_GetShiftState done [15:30:02]FM_GetShiftState done [15:30:02]opened in 1729987312 [15:30:02]opened+sec_in_day 1730073712 [15:30:02]quantity*price = 50041 [15:30:02]sum+1 = 50042 [15:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 324 27.10.2024 15:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202032 ФПД: 63898535248866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202032&fm=63898535248866&tin=02508201610067®Number=0000000000091777&sum=50000 [15:30:03]StoreToDocumentArchive [15:30:03]shift 544 fd 202032 [15:30:03]save to /storage/0544/doc_00202032 [15:30:03]save last doc name /storage/0544/doc_00202032 to /storage/kkm_last_doc_name [15:30:03]save OK [15:30:03]Clear old archive folders... [15:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:03]tlvbuf is 012BDC70 [15:30:03]SAM_PROTO_ClearQueue [15:30:03]wFMCommunicate request_size=4 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 09 00 00 [15:30:03]Write to MH i2c: E2 08 00 EA 2B 80 09 00 00 00 00 00 00 87 [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:03]Read from MH i2c: E2 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 EA 2B 00 90 00 89 [15:30:03]RAPDU: 90 00 [15:30:03]wFMCommunicate OK [15:30:03]SAM_PROTO_ClearQueue done [15:30:03]KKMCreateOFDPacket [15:30:03]OFDProtocolAddRootSTLVToBuf [15:30:03]FM_MakeSignedData [15:30:03]FM_MakeSignedData [15:30:03]SAM_PROTO_SignData [15:30:03]wFMCommunicate request_size=4 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 0D 01 02 [15:30:03]Write to MH i2c: E2 08 00 EB 2B 80 0D 01 02 00 00 00 00 8F [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:03]Read from MH i2c: E2 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 EB 2B 00 90 00 8A [15:30:03]RAPDU: 90 00 [15:30:03]wFMCommunicate OK [15:30:03]wFMCommunicate request_size=255 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 01 00 00 F4 03 04 00 7B 5C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 15 03 00 35 04 06 00 3A [15:30:03]Write to MH i2c: E2 02 01 EC 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 01 00 00 F4 03 04 00 7B 5C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 15 03 00 35 04 06 00 3A 00 00 68 [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:03]Read from MH i2c: E2 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 EC 2B 00 90 00 8B [15:30:03]RAPDU: 90 00 [15:30:03]wFMCommunicate OK [15:30:03]wFMCommunicate request_size=10 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 0D 02 02 05 1D 89 7E C3 E2 [15:30:03]Write to MH i2c: E2 0D 00 ED 2B 80 0D 02 02 05 00 1D 89 7E C3 E2 00 00 65 [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:03]Read from MH i2c: E2 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 ED 2B 00 90 00 8C [15:30:03]RAPDU: 90 00 [15:30:03]wFMCommunicate OK [15:30:03]wFMCommunicate request_size=4 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 0D 03 02 [15:30:03]Write to MH i2c: E2 08 00 EE 2B 80 0D 03 02 00 00 00 00 94 [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:03]Read from MH i2c: E2 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 0B 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 0B 00 EE 2B 00 30 6A 95 68 6C 80 3D A5 90 00 FA [15:30:03]RAPDU: 30 6A 95 68 6C 80 3D A5 90 00 [15:30:03]wFMCommunicate OK [15:30:03]SAM_PROTO_SignData done [15:30:03]FM_MakeSignedData done [15:30:03]CreateOFDProtocolMessage [15:30:03]wFMCommunicate request_size=4 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 11 00 00 [15:30:03]Write to MH i2c: E2 08 00 EF 2B 80 11 00 00 00 00 00 00 94 [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:03]Read from MH i2c: E2 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 17 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 17 00 EF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [15:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:30:03]wFMCommunicate OK [15:30:03]CreateOFDProtocolMessage done [15:30:03]OFDSenderStorePacket 202032 [15:30:03]StoreOFDPacket docnum=202032 [15:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BC E6 07 01 66 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 01 00 00 F4 03 04 00 7B 5C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 15 03 00 35 04 06 00 3A 1D 89 7E C3 E2 30 6A 95 68 6C 80 3D A5 [15:30:03]CheckFolder [15:30:03]dirname=/storage/ofd_packets [15:30:03]CheckFolder done [15:30:03]ProducePacketName [15:30:03]name=ofd_packets/00202032 [15:30:03]NVStorageSaveData ofd_packets/00202032 [15:30:03]File name is /storage/ofd_packets/00202032 [15:30:03]Write 301 bytes [15:30:03]NVStorageSaveData done [15:30:03]OFDSenderStorePacket done [15:30:03]KKMCreateOFDPacket done [15:30:03]NVStorageSaveData kkm_last_timestamp [15:30:03]File name is /storage/kkm_last_timestamp [15:30:03]Write 4 bytes [15:30:03]NVStorageSaveData done [15:30:03]ExternCall_PrintAddStr [15:30:03]wPrintStart [15:30:03]Write to MH i2c: 01 00 00 F0 2B 1B [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: 01 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: 01 07 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: 01 07 00 F0 2B 00 00 00 00 00 FF 0F 30 [15:30:03]RasterBufferAndPrint [15:30:03]line Счет N : (1)449798 [15:30:03]line ИНН: 02508201610067 [15:30:03]line Контрольно-Кассовый Чек [15:30:03]line ПРОДАЖА [15:30:03]line ТРК (МРК, ГНК) : 41 [15:30:03]line Товар: 2710124130 [15:30:03]line Аи-92-К-2 [15:30:03]line 7.480 * 66.90 [15:30:03]line = 500.41 [15:30:03]line НДС 12% НСП 1% [15:30:03]line > о реализуемом товаре [15:30:03]line ОКРУГЛЕНИЕ: -0.41 [15:30:03]line ИТОГО: 500.00 [15:30:03]line Внесено: 500.00 [15:30:03]line СДАЧА: 0.00 [15:30:03]line НСП 1% : 4.43 [15:30:03]line НДС 12% : 53.14 [15:30:03]line Наличными: 500.00 [15:30:03]line Безнал.: 0.00 [15:30:03]line Место: АЗС № 171 "Партнер Нефть" [15:30:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:30:03]line СНО: Общий режим [15:30:03]line Чек 324 27.10.2024 15:30 [15:30:03]line Смена: 544 ФФД: 1.0 [15:30:03]line ЗНМ: 0300000109 [15:30:03]line РНМ: 0000000000091777 [15:30:03]line Версия ККМ: 001 [15:30:03]line ФМ: 0000000000871756 [15:30:03]line ФД: 202032 [15:30:03]line ФПД: 63898535248866 [15:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202032&fm=63898535248866&tin=02508201610067®Number=0000000000091777&sum=50000 [15:30:04]OFD Sender: Processing packet 202032 [packets to send 112, broken 111] [15:30:04]ProducePacketName [15:30:04]name=ofd_packets/00202032 [15:30:04]OFD Sender: To server: pG, [15:30:04]CommunicateWithHost lk.salyk.kg:30040 [15:30:04]ConnectInit lk.salyk.kg [15:30:04]written 0, free lines is 4095 [15:30:04]Connected sock=10 [15:30:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BC E6 07 01 66 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 01 00 00 F4 03 04 00 7B 5C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 15 03 00 35 04 06 00 3A 1D 89 7E C3 E2 30 6A 95 68 6C 80 3D A5 [15:30:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 59 A5 47 00 38 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 15 03 00 F4 03 04 00 34 08 1E 67 B6 04 01 00 00 03 5E AD B9 1B 2B 87 E7 [15:30:04]CommunicateWithHost err = 0 [15:30:04]CheckOFDResponse [15:30:04]1017 (14) - 77093643461234 [15:30:04]1041 (16) - 0000000000871756 [15:30:04]1040 (4) - 202032 [15:30:04]1012 (4) - 27.10.2024 09:30 [15:30:04]1206 (1) - 0 [15:30:04]OFD Sender: Remove packet 202032 [15:30:04]ProducePacketName [15:30:04]name=ofd_packets/00202032 [15:30:04]NVStorageDeleteData [15:30:04]Write to MH i2c: 01 00 00 1B 2C 47 [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: 01 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: 01 07 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: 01 07 00 1B 2C 00 00 00 00 00 8B 0C E5 [15:30:04]RasterBufferAndPrint [15:30:04]line [15:30:04]line [15:30:04]line [15:30:04]line [15:30:04]line [15:30:04]written 0, free lines is 3215 [15:30:04]MH_Cut [15:30:04]Write to MH i2c: D1 01 00 22 2C 01 20 [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: D1 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: D1 01 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: D1 01 00 22 2C 00 1F [15:30:04]Write to MH i2c: 01 00 00 23 2C 4F [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]OFD Sender: No OFD packet to send [15:30:05]*** Cut start [15:30:05]*** Purtial cut [15:30:05]*** CUTSNS_PIN = 0 [15:30:05]*** Stage 1: CUTSNS_PIN = 1 [15:30:07]Read from MH i2c: 01 [15:30:07]MH_I2C_Read... [15:30:07]*** Stop cut motor [15:30:07]*** Cut end [15:30:07]Read from MH i2c: 01 07 00 [15:30:07]MH_I2C_Read... [15:30:07]Read from MH i2c: 01 07 00 23 2C 00 00 00 00 00 FF 0F 64 [15:30:07]process_action close_receipt done [15:30:07]requested_data is exist [15:30:07]produce_requested_data [15:30:07]requested_item fm.sn is exist - process it [15:30:07]wFMCommunicate request_size=4 [15:30:07]MH_SAM_APDU [15:30:07]CAPDU: 80 11 00 00 [15:30:07]Write to MH i2c: E2 08 00 24 2C 80 11 00 00 00 00 00 00 CA [15:30:07]Write i2c OK [15:30:07]MH_I2C_Read... [15:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:07]Read from MH i2c: E2 [15:30:07]MH_I2C_Read... [15:30:07]Read from MH i2c: E2 17 00 [15:30:07]MH_I2C_Read... [15:30:07]Read from MH i2c: E2 17 00 24 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [15:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:30:07]wFMCommunicate OK [15:30:07]requested_item fd.num is exist - process it [15:30:07]SAM_PROTO_GetFieldsCounters [15:30:07]wFMCommunicate request_size=4 [15:30:07]MH_SAM_APDU [15:30:07]CAPDU: 80 13 00 00 [15:30:07]Write to MH i2c: E2 08 00 25 2C 80 13 00 00 00 00 00 00 CD [15:30:07]Write i2c OK [15:30:07]MH_I2C_Read... [15:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:07]Read from MH i2c: E2 [15:30:07]MH_I2C_Read... [15:30:07]Read from MH i2c: E2 62 00 [15:30:07]MH_I2C_Read... [15:30:07]Read from MH i2c: E2 62 00 25 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 30 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [15:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 30 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:07]wFMCommunicate OK [15:30:07]SAM_PROTO_GetFieldsCounters done [15:30:07]requested_item shift.num is exist - process it [15:30:07]requested_item shift.opened is exist - process it [15:30:07]req_shift_opened [15:30:07]FM_GetShiftState [15:30:07]SAM_PROTO_GetShiftState [15:30:07]wFMCommunicate request_size=4 [15:30:07]MH_SAM_APDU [15:30:07]CAPDU: 80 13 01 00 [15:30:07]Write to MH i2c: E2 08 00 26 2C 80 13 01 00 00 00 00 00 CF [15:30:07]Write i2c OK [15:30:07]MH_I2C_Read... [15:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:07]Read from MH i2c: E2 [15:30:07]MH_I2C_Read... [15:30:07]Read from MH i2c: E2 0E 00 [15:30:07]MH_I2C_Read... [15:30:07]Read from MH i2c: E2 0E 00 26 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D1 [15:30:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:30:07]wFMCommunicate OK [15:30:07]SAM_PROTO_GetShiftState done [15:30:07]FM_GetShiftState done [15:30:07]req_shift_opened done [15:30:07]requested_item shift.open_date is exist - process it [15:30:07]req_shift_open_date [15:30:07]req_shift_open_date done [15:30:07]produce_requested_data done [15:30:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202032,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:30:07]process_action_free close_receipt [15:30:07]json_value_free [15:30:07]json_value_free done [15:30:07]process_json_proto returns [15:30:07]Send response to host [15:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202032,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:30:07]free response buf [15:30:07]execute_script done [15:30:07]execute_script returns [15:30:07]free content buf [15:30:07]Sock 8.Close socket [15:30:07]Sock 8.Thread stoped [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:26]accept exits with 9 [15:30:26]New connection [15:30:26]New thread 3066641764 created [15:30:26]Thread 3066498404 joined [15:30:26]Waiting for new connection... [15:30:26] Sock 9.Parse request [15:30:26]Sock 9.Check first char [15:30:26]Sock 9.First char is OK [15:30:26]request: POST /json_proto HTTP/1.0 [15:30:26]Method: POST [15:30:26]URL: /json_proto [15:30:26]Method is POST - this is cgi request [15:30:26]url: /json_proto [15:30:26]query_string will be loaded in cgi processing [15:30:26]execute_cgi json_proto POST (null) [15:30:26]execute_cgi path=json_proto method=POST [15:30:26]POST find Content-Length [15:30:26]Host: 172.17.63.195:8080 [15:30:26]Content-Length: 632 [15:30:26]Content-Type: application/json [15:30:26] [15:30:26]POST finish read [15:30:26]Found Content-Length = 632 [15:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [15:30:26]execute_script... [15:30: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)449799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [15:30:26]POST & json_proto [15:30:26]process_json_proto [15:30:26]json parsed OK: [15:30:26]protocol is kg_v1.0 [15:30:26]action value=close_receipt [15:30:26]process_action close_receipt [15:30:26]cmd_close_receipt [15:30:26]MH_GetDate [15:30:26]Write to MH i2c: F0 00 00 27 2C 42 [15:30:26]Write i2c OK [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: F0 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: F0 09 00 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: F0 09 00 27 2C 00 93 5C 1E 67 47 1B 1E 67 A6 [15:30:26]GetLastDocTimeStamp 1730043003 [15:30:26]current date 1730043027 [15:30:26]FM_GetShiftState [15:30:26]SAM_PROTO_GetShiftState [15:30:26]wFMCommunicate request_size=4 [15:30:26]MH_SAM_APDU [15:30:26]CAPDU: 80 13 01 00 [15:30:26]Write to MH i2c: E2 08 00 28 2C 80 13 01 00 00 00 00 00 D1 [15:30:26]Write i2c OK [15:30:26]MH_I2C_Read... [15:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:26]Read from MH i2c: E2 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: E2 0E 00 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: E2 0E 00 28 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D3 [15:30:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:30:26]wFMCommunicate OK [15:30:26]SAM_PROTO_GetShiftState done [15:30:26]FM_GetShiftState done [15:30:26]opened in 1729987312 [15:30:26]opened+sec_in_day 1730073712 [15:30:26]quantity*price = 50000 [15:30:26]sum+1 = 50001 [15:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 325 27.10.2024 15:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202033 ФПД: 2816674364105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153027&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202033&fm=2816674364105&tin=02508201610067®Number=0000000000091777&sum=50000 [15:30:27]StoreToDocumentArchive [15:30:27]shift 544 fd 202033 [15:30:27]save to /storage/0544/doc_00202033 [15:30:27]save last doc name /storage/0544/doc_00202033 to /storage/kkm_last_doc_name [15:30:27]save OK [15:30:27]Clear old archive folders... [15:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:30:27]tlvbuf is 01209230 [15:30:27]SAM_PROTO_ClearQueue [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 09 00 00 [15:30:27]Write to MH i2c: E2 08 00 35 2C 80 09 00 00 00 00 00 00 D3 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 35 2C 00 90 00 D5 [15:30:27]RAPDU: 90 00 [15:30:27]wFMCommunicate OK [15:30:27]SAM_PROTO_ClearQueue done [15:30:27]KKMCreateOFDPacket [15:30:27]OFDProtocolAddRootSTLVToBuf [15:30:27]FM_MakeSignedData [15:30:27]FM_MakeSignedData [15:30:27]SAM_PROTO_SignData [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 0D 01 02 [15:30:27]Write to MH i2c: E2 08 00 36 2C 80 0D 01 02 00 00 00 00 DB [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 36 2C 00 90 00 D6 [15:30:27]RAPDU: 90 00 [15:30:27]wFMCommunicate OK [15:30:27]wFMCommunicate request_size=255 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 01 00 00 F4 03 04 00 93 5C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 15 03 00 35 04 06 00 [15:30:27]Write to MH i2c: E2 02 01 37 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 01 00 00 F4 03 04 00 93 5C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 15 03 00 35 04 06 00 00 00 F1 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:27]Read from MH i2c: E2 03 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 37 2C 00 90 00 D7 [15:30:27]RAPDU: 90 00 [15:30:27]wFMCommunicate OK [15:30:27]wFMCommunicate request_size=11 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 0D 02 02 06 02 8F CE DF FA C9 [15:30:27]Write to MH i2c: E2 0E 00 38 2C 80 0D 02 02 06 00 02 8F CE DF FA C9 00 00 EB [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 03 00 38 2C 00 90 00 D8 [15:30:27]RAPDU: 90 00 [15:30:27]wFMCommunicate OK [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 0D 03 02 [15:30:27]Write to MH i2c: E2 08 00 39 2C 80 0D 03 02 00 00 00 00 E0 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 0B 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 0B 00 39 2C 00 09 E8 BA ED 45 FF 62 5A 90 00 79 [15:30:27]RAPDU: 09 E8 BA ED 45 FF 62 5A 90 00 [15:30:27]wFMCommunicate OK [15:30:27]SAM_PROTO_SignData done [15:30:27]FM_MakeSignedData done [15:30:27]CreateOFDProtocolMessage [15:30:27]wFMCommunicate request_size=4 [15:30:27]MH_SAM_APDU [15:30:27]CAPDU: 80 11 00 00 [15:30:27]Write to MH i2c: E2 08 00 3A 2C 80 11 00 00 00 00 00 00 E0 [15:30:27]Write i2c OK [15:30:27]MH_I2C_Read... [15:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:27]Read from MH i2c: E2 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 17 00 [15:30:27]MH_I2C_Read... [15:30:27]Read from MH i2c: E2 17 00 3A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [15:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:30:27]wFMCommunicate OK [15:30:27]CreateOFDProtocolMessage done [15:30:27]OFDSenderStorePacket 202033 [15:30:27]StoreOFDPacket docnum=202033 [15:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 13 5F 08 01 C3 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 01 00 00 F4 03 04 00 93 5C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 15 03 00 35 04 06 00 02 8F CE DF FA C9 09 E8 BA ED 45 FF 62 5A [15:30:27]CheckFolder [15:30:27]dirname=/storage/ofd_packets [15:30:27]CheckFolder done [15:30:27]ProducePacketName [15:30:27]name=ofd_packets/00202033 [15:30:27]NVStorageSaveData ofd_packets/00202033 [15:30:27]File name is /storage/ofd_packets/00202033 [15:30:27]Write 302 bytes [15:30:27]NVStorageSaveData done [15:30:27]OFDSenderStorePacket done [15:30:27]KKMCreateOFDPacket done [15:30:27]NVStorageSaveData kkm_last_timestamp [15:30:27]File name is /storage/kkm_last_timestamp [15:30:27]Write 4 bytes [15:30:27]NVStorageSaveData done [15:30:28]ExternCall_PrintAddStr [15:30:28]wPrintStart [15:30:28]Write to MH i2c: 01 00 00 3B 2C 67 [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 07 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 07 00 3B 2C 00 00 00 00 00 FF 0F 7C [15:30:28]RasterBufferAndPrint [15:30:28]line Счет N : (1)449799 [15:30:28]line ИНН: 02508201610067 [15:30:28]line Контрольно-Кассовый Чек [15:30:28]line ПРОДАЖА [15:30:28]line ТРК (МРК, ГНК) : 32 [15:30:28]line Товар: 2710124130 [15:30:28]line SUPER 92-К-5 [15:30:28]line 7.310 * 68.40 [15:30:28]line = 500.00 [15:30:28]line НДС 12% НСП 1% [15:30:28]line > о реализуемом товаре [15:30:28]line ИТОГО: 500.00 [15:30:28]line НСП 1% : 4.42 [15:30:28]line НДС 12% : 53.10 [15:30:28]line Наличными: 500.00 [15:30:28]line Безнал.: 0.00 [15:30:28]line Место: АЗС № 171 "Партнер Нефть" [15:30:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:30:28]line СНО: Общий режим [15:30:28]line Чек 325 27.10.2024 15:30 [15:30:28]line Смена: 544 ФФД: 1.0 [15:30:28]line ЗНМ: 0300000109 [15:30:28]line РНМ: 0000000000091777 [15:30:28]line Версия ККМ: 001 [15:30:28]line ФМ: 0000000000871756 [15:30:28]line ФД: 202033 [15:30:28]line ФПД: 2816674364105 [15:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153027&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202033&fm=2816674364105&tin=02508201610067®Number=0000000000091777&sum=50000 [15:30:28]OFD Sender: Processing packet 202033 [packets to send 112, broken 111] [15:30:28]ProducePacketName [15:30:28]name=ofd_packets/00202033 [15:30:28]OFD Sender: To server: pG, [15:30:28]CommunicateWithHost lk.salyk.kg:30040 [15:30:28]ConnectInit lk.salyk.kg [15:30:28]written 0, free lines is 4095 [15:30:28]Connected sock=10 [15:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 13 5F 08 01 C3 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 01 00 00 F4 03 04 00 93 5C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 15 03 00 35 04 06 00 02 8F CE DF FA C9 09 E8 BA ED 45 FF 62 5A [15:30:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0D 7C 47 00 81 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 15 03 00 F4 03 04 00 4D 08 1E 67 B6 04 01 00 00 30 71 F9 09 A1 0A E0 1C [15:30:28]CommunicateWithHost err = 0 [15:30:28]CheckOFDResponse [15:30:28]1017 (14) - 77093643461234 [15:30:28]1041 (16) - 0000000000871756 [15:30:28]1040 (4) - 202033 [15:30:28]1012 (4) - 27.10.2024 09:30 [15:30:28]1206 (1) - 0 [15:30:28]OFD Sender: Remove packet 202033 [15:30:28]ProducePacketName [15:30:28]name=ofd_packets/00202033 [15:30:28]NVStorageDeleteData [15:30:28]Write to MH i2c: 01 00 00 63 2C 8F [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 07 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: 01 07 00 63 2C 00 00 00 00 00 C9 0C 6B [15:30:28]RasterBufferAndPrint [15:30:28]line [15:30:28]line [15:30:28]line [15:30:28]line [15:30:28]line [15:30:28]written 0, free lines is 3276 [15:30:28]MH_Cut [15:30:28]Write to MH i2c: D1 01 00 6A 2C 01 68 [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: D1 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: D1 01 00 [15:30:28]MH_I2C_Read... [15:30:28]Read from MH i2c: D1 01 00 6A 2C 00 67 [15:30:28]Write to MH i2c: 01 00 00 6B 2C 97 [15:30:28]Write i2c OK [15:30:28]MH_I2C_Read... [15:30:29]OFD Sender: No OFD packet to send [15:30:29]*** Cut start [15:30:29]*** Purtial cut [15:30:29]*** Stage 1: CUTSNS_PIN = 1 [15:30:29]Read from MH i2c: 01 [15:30:29]MH_I2C_Read... [15:30:29]*** Stop cut motor [15:30:29]*** Cut end [15:30:29]Read from MH i2c: 01 07 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: 01 07 00 6B 2C 00 00 00 00 00 FF 0F AC [15:30:29]process_action close_receipt done [15:30:29]requested_data is exist [15:30:29]produce_requested_data [15:30:29]requested_item fm.sn is exist - process it [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 11 00 00 [15:30:29]Write to MH i2c: E2 08 00 6C 2C 80 11 00 00 00 00 00 00 12 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:29]Read from MH i2c: E2 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 17 00 [15:30:29]MH_I2C_Read... [15:30:29]Read from MH i2c: E2 17 00 6C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 67 [15:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:30:29]wFMCommunicate OK [15:30:29]requested_item fd.num is exist - process it [15:30:29]SAM_PROTO_GetFieldsCounters [15:30:29]wFMCommunicate request_size=4 [15:30:29]MH_SAM_APDU [15:30:29]CAPDU: 80 13 00 00 [15:30:29]Write to MH i2c: E2 08 00 6D 2C 80 13 00 00 00 00 00 00 15 [15:30:29]Write i2c OK [15:30:29]MH_I2C_Read... [15:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:30]Read from MH i2c: E2 [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: E2 62 00 [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: E2 62 00 6D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 31 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 31 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:30]wFMCommunicate OK [15:30:30]SAM_PROTO_GetFieldsCounters done [15:30:30]requested_item shift.num is exist - process it [15:30:30]requested_item shift.opened is exist - process it [15:30:30]req_shift_opened [15:30:30]FM_GetShiftState [15:30:30]SAM_PROTO_GetShiftState [15:30:30]wFMCommunicate request_size=4 [15:30:30]MH_SAM_APDU [15:30:30]CAPDU: 80 13 01 00 [15:30:30]Write to MH i2c: E2 08 00 6E 2C 80 13 01 00 00 00 00 00 17 [15:30:30]Write i2c OK [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: E2 [15:30:30]MH_I2C_Read... [15:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:30]Read from MH i2c: E2 0E 00 [15:30:30]MH_I2C_Read... [15:30:30]Read from MH i2c: E2 0E 00 6E 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 19 [15:30:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:30:30]wFMCommunicate OK [15:30:30]SAM_PROTO_GetShiftState done [15:30:30]FM_GetShiftState done [15:30:30]req_shift_opened done [15:30:30]requested_item shift.open_date is exist - process it [15:30:30]req_shift_open_date [15:30:30]req_shift_open_date done [15:30:30]produce_requested_data done [15:30:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202033,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:30:30]process_action_free close_receipt [15:30:30]json_value_free [15:30:30]json_value_free done [15:30:30]process_json_proto returns [15:30:30]Send response to host [15:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202033,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:30:30]free response buf [15:30:30]execute_script done [15:30:30]execute_script returns [15:30:30]free content buf [15:30:30]Sock 9.Close socket [15:30:30]Sock 9.Thread stoped [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:11]accept exits with 8 [15:37:11]New connection [15:37:11]New thread 3066498404 created [15:37:11]Thread 3066641764 joined [15:37:11]Waiting for new connection... [15:37:11] Sock 8.Parse request [15:37:11]Sock 8.Check first char [15:37:11]Sock 8.First char is OK [15:37:11]request: POST /json_proto HTTP/1.0 [15:37:11]Method: POST [15:37:11]URL: /json_proto [15:37:11]Method is POST - this is cgi request [15:37:11]url: /json_proto [15:37:11]query_string will be loaded in cgi processing [15:37:11]execute_cgi json_proto POST (null) [15:37:11]execute_cgi path=json_proto method=POST [15:37:11]POST find Content-Length [15:37:11]Host: 172.17.63.195:8080 [15:37:11]Content-Length: 816 [15:37:11]Content-Type: application/json [15:37:11] [15:37:11]POST finish read [15:37:11]Found Content-Length = 816 [15:37:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:11]execute_script... [15:37:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:11]POST & json_proto [15:37:11]process_json_proto [15:37:11]json parsed OK: [15:37:11]protocol is kg_v1.0 [15:37:11]action value=close_receipt [15:37:11]process_action close_receipt [15:37:11]cmd_close_receipt [15:37:11]MH_GetDate [15:37:11]Write to MH i2c: F0 00 00 6F 2C 8A [15:37:11]Write i2c OK [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: F0 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: F0 09 00 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: F0 09 00 6F 2C 00 28 5E 1E 67 47 1B 1E 67 85 [15:37:11]GetLastDocTimeStamp 1730043027 [15:37:11]current date 1730043432 [15:37:11]FM_GetShiftState [15:37:11]SAM_PROTO_GetShiftState [15:37:11]wFMCommunicate request_size=4 [15:37:11]MH_SAM_APDU [15:37:11]CAPDU: 80 13 01 00 [15:37:11]Write to MH i2c: E2 08 00 70 2C 80 13 01 00 00 00 00 00 19 [15:37:11]Write i2c OK [15:37:11]MH_I2C_Read... [15:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:11]Read from MH i2c: E2 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 0E 00 [15:37:11]MH_I2C_Read... [15:37:11]Read from MH i2c: E2 0E 00 70 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1B [15:37:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:37:11]wFMCommunicate OK [15:37:11]SAM_PROTO_GetShiftState done [15:37:11]FM_GetShiftState done [15:37:11]opened in 1729987312 [15:37:11]opened+sec_in_day 1730073712 [15:37:11]quantity*price = 150037 [15:37:11]sum+1 = 150039 [15:37:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 326 27.10.2024 15:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 202034 ФПД: 253459636963789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153712&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202034&fm=253459636963789&tin=02508201610067®Number=0000000000091777&sum=150038 [15:37:12]StoreToDocumentArchive [15:37:12]shift 544 fd 202034 [15:37:12]save to /storage/0544/doc_00202034 [15:37:12]save last doc name /storage/0544/doc_00202034 to /storage/kkm_last_doc_name [15:37:12]save OK [15:37:12]Clear old archive folders... [15:37:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:37:12]tlvbuf is B6F0CBF0 [15:37:12]SAM_PROTO_ClearQueue [15:37:12]wFMCommunicate request_size=4 [15:37:12]MH_SAM_APDU [15:37:12]CAPDU: 80 09 00 00 [15:37:12]Write to MH i2c: E2 08 00 7D 2C 80 09 00 00 00 00 00 00 1B [15:37:12]Write i2c OK [15:37:12]MH_I2C_Read... [15:37:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:12]Read from MH i2c: E2 [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: E2 03 00 [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: E2 03 00 7D 2C 00 90 00 1D [15:37:12]RAPDU: 90 00 [15:37:12]wFMCommunicate OK [15:37:12]SAM_PROTO_ClearQueue done [15:37:12]KKMCreateOFDPacket [15:37:12]OFDProtocolAddRootSTLVToBuf [15:37:12]FM_MakeSignedData [15:37:12]FM_MakeSignedData [15:37:12]SAM_PROTO_SignData [15:37:12]wFMCommunicate request_size=4 [15:37:12]MH_SAM_APDU [15:37:12]CAPDU: 80 0D 01 02 [15:37:12]Write to MH i2c: E2 08 00 7E 2C 80 0D 01 02 00 00 00 00 23 [15:37:12]Write i2c OK [15:37:12]MH_I2C_Read... [15:37:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:12]Read from MH i2c: E2 [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: E2 03 00 [15:37:12]MH_I2C_Read... [15:37:12]Read from MH i2c: E2 03 00 7E 2C 00 90 00 1E [15:37:12]RAPDU: 90 00 [15:37:12]wFMCommunicate OK [15:37:12]wFMCommunicate request_size=255 [15:37:12]MH_SAM_APDU [15:37:12]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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 28 5E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 15 03 00 35 04 06 00 E6 85 2B A0 [15:37:12]Write to MH i2c: E2 02 01 7F 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 28 5E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 15 03 00 35 04 06 00 E6 85 2B A0 00 00 66 [15:37:12]Write i2c OK [15:37:12]MH_I2C_Read... [15:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:13]Read from MH i2c: E2 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 7F 2C 00 90 00 1F [15:37:13]RAPDU: 90 00 [15:37:13]wFMCommunicate OK [15:37:13]wFMCommunicate request_size=7 [15:37:13]MH_SAM_APDU [15:37:13]CAPDU: 80 0D 02 02 02 49 CD [15:37:13]Write to MH i2c: E2 0A 00 80 2C 80 0D 02 02 02 00 49 CD 00 00 40 [15:37:13]Write i2c OK [15:37:13]MH_I2C_Read... [15:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:13]Read from MH i2c: E2 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 03 00 80 2C 00 90 00 20 [15:37:13]RAPDU: 90 00 [15:37:13]wFMCommunicate OK [15:37:13]wFMCommunicate request_size=4 [15:37:13]MH_SAM_APDU [15:37:13]CAPDU: 80 0D 03 02 [15:37:13]Write to MH i2c: E2 08 00 81 2C 80 0D 03 02 00 00 00 00 28 [15:37:13]Write i2c OK [15:37:13]MH_I2C_Read... [15:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:13]Read from MH i2c: E2 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 0B 00 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 0B 00 81 2C 00 F1 4C 68 C1 BD 94 21 72 90 00 73 [15:37:13]RAPDU: F1 4C 68 C1 BD 94 21 72 90 00 [15:37:13]wFMCommunicate OK [15:37:13]SAM_PROTO_SignData done [15:37:13]FM_MakeSignedData done [15:37:13]CreateOFDProtocolMessage [15:37:13]wFMCommunicate request_size=4 [15:37:13]MH_SAM_APDU [15:37:13]CAPDU: 80 11 00 00 [15:37:13]Write to MH i2c: E2 08 00 82 2C 80 11 00 00 00 00 00 00 28 [15:37:13]Write i2c OK [15:37:13]MH_I2C_Read... [15:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:13]Read from MH i2c: E2 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 17 00 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: E2 17 00 82 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7D [15:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:37:13]wFMCommunicate OK [15:37:13]CreateOFDProtocolMessage done [15:37:13]OFDSenderStorePacket 202034 [15:37:13]StoreOFDPacket docnum=202034 [15:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 83 3B 04 01 0E 20 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 28 5E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 15 03 00 35 04 06 00 E6 85 2B A0 49 CD F1 4C 68 C1 BD 94 21 72 [15:37:13]CheckFolder [15:37:13]dirname=/storage/ofd_packets [15:37:13]CheckFolder done [15:37:13]ProducePacketName [15:37:13]name=ofd_packets/00202034 [15:37:13]NVStorageSaveData ofd_packets/00202034 [15:37:13]File name is /storage/ofd_packets/00202034 [15:37:13]Write 298 bytes [15:37:13]NVStorageSaveData done [15:37:13]OFDSenderStorePacket done [15:37:13]KKMCreateOFDPacket done [15:37:13]NVStorageSaveData kkm_last_timestamp [15:37:13]File name is /storage/kkm_last_timestamp [15:37:13]Write 4 bytes [15:37:13]NVStorageSaveData done [15:37:13]ExternCall_PrintAddStr [15:37:13]wPrintStart [15:37:13]Write to MH i2c: 01 00 00 83 2C AF [15:37:13]Write i2c OK [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: 01 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: 01 07 00 [15:37:13]MH_I2C_Read... [15:37:13]Read from MH i2c: 01 07 00 83 2C 00 00 00 00 00 FF 0F C4 [15:37:13]RasterBufferAndPrint [15:37:13]line Счет N : (1)449800 [15:37:13]line ИНН: 02508201610067 [15:37:13]line Контрольно-Кассовый Чек [15:37:13]line ПРОДАЖА [15:37:13]line ТРК (МРК, ГНК) : 43 [15:37:13]line Товар: 2710194210 [15:37:13]line ДТ-К-2 [15:37:13]line 19.690 * 76.20 [15:37:13]line = 1500.38 [15:37:13]line НДС 12% НСП 1% [15:37:13]line > о реализуемом товаре [15:37:13]line ИТОГО: 1500.38 [15:37:13]line НСП 1% : 13.28 [15:37:13]line НДС 12% : 159.33 [15:37:13]line Наличными: 0.00 [15:37:13]line Безнал.: 1500.38 [15:37:13]line Место: АЗС № 171 "Партнер Нефть" [15:37:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:37:13]line СНО: Общий режим [15:37:13]line Чек 326 27.10.2024 15:37 [15:37:13]line Смена: 544 ФФД: 1.0 [15:37:13]line ЗНМ: 0300000109 [15:37:13]line РНМ: 0000000000091777 [15:37:13]line Версия ККМ: 001 [15:37:13]line Платежная система: Бакай Банк [15:37:13]line ФМ: 0000000000871756 [15:37:13]line ФД: 202034 [15:37:13]line ФПД: 253459636963789 [15:37:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153712&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202034&fm=253459636963789&tin=02508201610067®Number=0000000000091777&sum=150038 [15:37:13]OFD Sender: Processing packet 202034 [packets to send 112, broken 111] [15:37:13]ProducePacketName [15:37:13]name=ofd_packets/00202034 [15:37:13]OFD Sender: To server: pG, [15:37:13]CommunicateWithHost lk.salyk.kg:30040 [15:37:13]ConnectInit lk.salyk.kg [15:37:13]written 0, free lines is 4095 [15:37:13]Connected sock=10 [15:37:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 83 3B 04 01 0E 20 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 28 5E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 15 03 00 35 04 06 00 E6 85 2B A0 49 CD F1 4C 68 C1 BD 94 21 72 [15:37:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C 82 47 00 79 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 15 03 00 F4 03 04 00 E2 09 1E 67 B6 04 01 00 00 6F 1B C2 83 99 8C 86 16 [15:37:13]CommunicateWithHost err = 0 [15:37:13]CheckOFDResponse [15:37:13]1017 (14) - 77093643461234 [15:37:13]1041 (16) - 0000000000871756 [15:37:13]1040 (4) - 202034 [15:37:13]1012 (4) - 27.10.2024 09:37 [15:37:13]1206 (1) - 0 [15:37:13]OFD Sender: Remove packet 202034 [15:37:13]ProducePacketName [15:37:13]name=ofd_packets/00202034 [15:37:13]NVStorageDeleteData [15:37:14]Write to MH i2c: 01 00 00 AD 2C D9 [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 07 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: 01 07 00 AD 2C 00 00 00 00 00 A4 0C 90 [15:37:14]RasterBufferAndPrint [15:37:14]line [15:37:14]line [15:37:14]line [15:37:14]line [15:37:14]line [15:37:14]written 0, free lines is 3241 [15:37:14]MH_Cut [15:37:14]Write to MH i2c: D1 01 00 B4 2C 01 B2 [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: D1 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: D1 01 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: D1 01 00 B4 2C 00 B1 [15:37:14]Write to MH i2c: 01 00 00 B5 2C E1 [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]OFD Sender: No OFD packet to send [15:37:14]*** Cut start [15:37:14]*** Purtial cut [15:37:14]*** CUTSNS_PIN = 0 [15:37:15]*** Stage 1: CUTSNS_PIN = 1 [15:37:17]Read from MH i2c: 01 [15:37:17]MH_I2C_Read... [15:37:17]*** Stop cut motor [15:37:17]*** Cut end [15:37:17]Read from MH i2c: 01 07 00 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: 01 07 00 B5 2C 00 00 00 00 00 FF 0F F6 [15:37:17]process_action close_receipt done [15:37:17]requested_data is exist [15:37:17]produce_requested_data [15:37:17]requested_item fm.sn is exist - process it [15:37:17]wFMCommunicate request_size=4 [15:37:17]MH_SAM_APDU [15:37:17]CAPDU: 80 11 00 00 [15:37:17]Write to MH i2c: E2 08 00 B6 2C 80 11 00 00 00 00 00 00 5C [15:37:17]Write i2c OK [15:37:17]MH_I2C_Read... [15:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:17]Read from MH i2c: E2 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: E2 17 00 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: E2 17 00 B6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [15:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:37:17]wFMCommunicate OK [15:37:17]requested_item fd.num is exist - process it [15:37:17]SAM_PROTO_GetFieldsCounters [15:37:17]wFMCommunicate request_size=4 [15:37:17]MH_SAM_APDU [15:37:17]CAPDU: 80 13 00 00 [15:37:17]Write to MH i2c: E2 08 00 B7 2C 80 13 00 00 00 00 00 00 5F [15:37:17]Write i2c OK [15:37:17]MH_I2C_Read... [15:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:17]Read from MH i2c: E2 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: E2 62 00 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: E2 62 00 B7 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 32 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [15:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 32 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:17]wFMCommunicate OK [15:37:17]SAM_PROTO_GetFieldsCounters done [15:37:17]requested_item shift.num is exist - process it [15:37:17]requested_item shift.opened is exist - process it [15:37:17]req_shift_opened [15:37:17]FM_GetShiftState [15:37:17]SAM_PROTO_GetShiftState [15:37:17]wFMCommunicate request_size=4 [15:37:17]MH_SAM_APDU [15:37:17]CAPDU: 80 13 01 00 [15:37:17]Write to MH i2c: E2 08 00 B8 2C 80 13 01 00 00 00 00 00 61 [15:37:17]Write i2c OK [15:37:17]MH_I2C_Read... [15:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:17]Read from MH i2c: E2 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: E2 0E 00 [15:37:17]MH_I2C_Read... [15:37:17]Read from MH i2c: E2 0E 00 B8 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 63 [15:37:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:37:17]wFMCommunicate OK [15:37:17]SAM_PROTO_GetShiftState done [15:37:17]FM_GetShiftState done [15:37:17]req_shift_opened done [15:37:17]requested_item shift.open_date is exist - process it [15:37:17]req_shift_open_date [15:37:17]req_shift_open_date done [15:37:17]produce_requested_data done [15:37:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202034,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:37:17]process_action_free close_receipt [15:37:17]json_value_free [15:37:17]json_value_free done [15:37:17]process_json_proto returns [15:37:17]Send response to host [15:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202034,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:37:17]free response buf [15:37:17]execute_script done [15:37:17]execute_script returns [15:37:17]free content buf [15:37:17]Sock 8.Close socket [15:37:17]Sock 8.Thread stoped [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:56]accept exits with 9 [15:37:56]New connection [15:37:56]New thread 3066641764 created [15:37:56]Thread 3066498404 joined [15:37:56]Waiting for new connection... [15:37:56] Sock 9.Parse request [15:37:56]Sock 9.Check first char [15:37:56]Sock 9.First char is OK [15:37:56]request: POST /json_proto HTTP/1.0 [15:37:56]Method: POST [15:37:56]URL: /json_proto [15:37:56]Method is POST - this is cgi request [15:37:56]url: /json_proto [15:37:56]query_string will be loaded in cgi processing [15:37:56]execute_cgi json_proto POST (null) [15:37:56]execute_cgi path=json_proto method=POST [15:37:56]POST find Content-Length [15:37:56]Host: 172.17.63.195:8080 [15:37:56]Content-Length: 766 [15:37:56]Content-Type: application/json [15:37:56] [15:37:56]POST finish read [15:37:56]Found Content-Length = 766 [15:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [15:37:56]execute_script... [15:37:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [15:37:56]POST & json_proto [15:37:56]process_json_proto [15:37:56]json parsed OK: [15:37:56]protocol is kg_v1.0 [15:37:56]action value=close_receipt [15:37:56]process_action close_receipt [15:37:56]cmd_close_receipt [15:37:56]MH_GetDate [15:37:56]Write to MH i2c: F0 00 00 B9 2C D4 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: F0 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: F0 09 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: F0 09 00 B9 2C 00 56 5E 1E 67 47 1B 1E 67 FD [15:37:56]GetLastDocTimeStamp 1730043432 [15:37:56]current date 1730043478 [15:37:56]FM_GetShiftState [15:37:56]SAM_PROTO_GetShiftState [15:37:56]wFMCommunicate request_size=4 [15:37:56]MH_SAM_APDU [15:37:56]CAPDU: 80 13 01 00 [15:37:56]Write to MH i2c: E2 08 00 BA 2C 80 13 01 00 00 00 00 00 63 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 0E 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 0E 00 BA 2C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 65 [15:37:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:37:56]wFMCommunicate OK [15:37:56]SAM_PROTO_GetShiftState done [15:37:56]FM_GetShiftState done [15:37:56]opened in 1729987312 [15:37:56]opened+sec_in_day 1730073712 [15:37:56]quantity*price = 100050 [15:37:56]sum+1 = 100052 [15:37:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 327 27.10.2024 15:37 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202035 ФПД: 201773584048957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153758&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202035&fm=201773584048957&tin=02508201610067®Number=0000000000091777&sum=100051 [15:37:57]StoreToDocumentArchive [15:37:57]shift 544 fd 202035 [15:37:57]save to /storage/0544/doc_00202035 [15:37:57]save last doc name /storage/0544/doc_00202035 to /storage/kkm_last_doc_name [15:37:57]save OK [15:37:57]Clear old archive folders... [15:37:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:37:57]tlvbuf is 011DB140 [15:37:57]SAM_PROTO_ClearQueue [15:37:57]wFMCommunicate request_size=4 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 09 00 00 [15:37:57]Write to MH i2c: E2 08 00 C7 2C 80 09 00 00 00 00 00 00 65 [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:57]Read from MH i2c: E2 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 C7 2C 00 90 00 67 [15:37:57]RAPDU: 90 00 [15:37:57]wFMCommunicate OK [15:37:57]SAM_PROTO_ClearQueue done [15:37:57]KKMCreateOFDPacket [15:37:57]OFDProtocolAddRootSTLVToBuf [15:37:57]FM_MakeSignedData [15:37:57]FM_MakeSignedData [15:37:57]SAM_PROTO_SignData [15:37:57]wFMCommunicate request_size=4 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 0D 01 02 [15:37:57]Write to MH i2c: E2 08 00 C8 2C 80 0D 01 02 00 00 00 00 6D [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:57]Read from MH i2c: E2 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: E2 03 00 C8 2C 00 90 00 68 [15:37:57]RAPDU: 90 00 [15:37:57]wFMCommunicate OK [15:37:57]wFMCommunicate request_size=255 [15:37:57]MH_SAM_APDU [15:37:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 47 01 00 00 F4 03 04 00 56 5E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 15 03 00 35 04 06 00 B7 83 12 CD [15:37:57]Write to MH i2c: E2 02 01 C9 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 47 01 00 00 F4 03 04 00 56 5E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 15 03 00 35 04 06 00 B7 83 12 CD 00 00 64 [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 03 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 03 00 C9 2C 00 90 00 69 [15:37:58]RAPDU: 90 00 [15:37:58]wFMCommunicate OK [15:37:58]wFMCommunicate request_size=7 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 0D 02 02 02 63 3D [15:37:58]Write to MH i2c: E2 0A 00 CA 2C 80 0D 02 02 02 00 63 3D 00 00 14 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 03 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 03 00 CA 2C 00 90 00 6A [15:37:58]RAPDU: 90 00 [15:37:58]wFMCommunicate OK [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 0D 03 02 [15:37:58]Write to MH i2c: E2 08 00 CB 2C 80 0D 03 02 00 00 00 00 72 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0B 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0B 00 CB 2C 00 38 61 60 2A AF C9 90 A1 90 00 3F [15:37:58]RAPDU: 38 61 60 2A AF C9 90 A1 90 00 [15:37:58]wFMCommunicate OK [15:37:58]SAM_PROTO_SignData done [15:37:58]FM_MakeSignedData done [15:37:58]CreateOFDProtocolMessage [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 11 00 00 [15:37:58]Write to MH i2c: E2 08 00 CC 2C 80 11 00 00 00 00 00 00 72 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 17 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 17 00 CC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [15:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:37:58]wFMCommunicate OK [15:37:58]CreateOFDProtocolMessage done [15:37:58]OFDSenderStorePacket 202035 [15:37:58]StoreOFDPacket docnum=202035 [15:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D7 1B 04 01 3D 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 47 01 00 00 F4 03 04 00 56 5E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 15 03 00 35 04 06 00 B7 83 12 CD 63 3D 38 61 60 2A AF C9 90 A1 [15:37:58]CheckFolder [15:37:58]dirname=/storage/ofd_packets [15:37:58]CheckFolder done [15:37:58]ProducePacketName [15:37:58]name=ofd_packets/00202035 [15:37:58]NVStorageSaveData ofd_packets/00202035 [15:37:58]File name is /storage/ofd_packets/00202035 [15:37:58]Write 298 bytes [15:37:58]NVStorageSaveData done [15:37:58]OFDSenderStorePacket done [15:37:58]KKMCreateOFDPacket done [15:37:58]NVStorageSaveData kkm_last_timestamp [15:37:58]File name is /storage/kkm_last_timestamp [15:37:58]Write 4 bytes [15:37:58]NVStorageSaveData done [15:37:58]ExternCall_PrintAddStr [15:37:58]wPrintStart [15:37:58]Write to MH i2c: 01 00 00 CD 2C F9 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 07 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 07 00 CD 2C 00 00 00 00 00 FF 0F 0E [15:37:58]RasterBufferAndPrint [15:37:58]line Счет N : (1)449801 [15:37:58]line ИНН: 02508201610067 [15:37:58]line Контрольно-Кассовый Чек [15:37:58]line ПРОДАЖА [15:37:58]line ТРК (МРК, ГНК) : 21 [15:37:58]line Товар: 2710194210 [15:37:58]line ДТ-К-2 [15:37:58]line 13.130 * 76.20 [15:37:58]line = 1000.51 [15:37:58]line НДС 12% НСП 1% [15:37:58]line > о реализуемом товаре [15:37:58]line ИТОГО: 1000.51 [15:37:58]line НСП 1% : 8.85 [15:37:58]line НДС 12% : 106.25 [15:37:58]line Наличными: 0.00 [15:37:58]line Безнал.: 1000.51 [15:37:58]line Место: АЗС № 171 "Партнер Нефть" [15:37:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:37:58]line СНО: Общий режим [15:37:58]line Чек 327 27.10.2024 15:37 [15:37:58]line Смена: 544 ФФД: 1.0 [15:37:58]line ЗНМ: 0300000109 [15:37:58]line РНМ: 0000000000091777 [15:37:58]line Версия ККМ: 001 [15:37:58]line Платежная система: Mbank [15:37:58]line ФМ: 0000000000871756 [15:37:58]line ФД: 202035 [15:37:58]line ФПД: 201773584048957 [15:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153758&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202035&fm=201773584048957&tin=02508201610067®Number=0000000000091777&sum=100051 [15:37:58]OFD Sender: Processing packet 202035 [packets to send 112, broken 111] [15:37:58]ProducePacketName [15:37:58]name=ofd_packets/00202035 [15:37:58]OFD Sender: To server: pG, [15:37:58]CommunicateWithHost lk.salyk.kg:30040 [15:37:58]ConnectInit lk.salyk.kg [15:37:58]written 0, free lines is 4095 [15:37:58]Connected sock=10 [15:37:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D7 1B 04 01 3D 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 47 01 00 00 F4 03 04 00 56 5E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 15 03 00 35 04 06 00 B7 83 12 CD 63 3D 38 61 60 2A AF C9 90 A1 [15:37:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DA B3 47 00 1C 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 15 03 00 F4 03 04 00 0F 0A 1E 67 B6 04 01 00 00 E6 7B 99 DB CB D1 71 F1 [15:37:59]CommunicateWithHost err = 0 [15:37:59]CheckOFDResponse [15:37:59]1017 (14) - 77093643461234 [15:37:59]1041 (16) - 0000000000871756 [15:37:59]1040 (4) - 202035 [15:37:59]1012 (4) - 27.10.2024 09:38 [15:37:59]1206 (1) - 0 [15:37:59]OFD Sender: Remove packet 202035 [15:37:59]ProducePacketName [15:37:59]name=ofd_packets/00202035 [15:37:59]NVStorageDeleteData [15:37:59]Write to MH i2c: 01 00 00 F6 2C 22 [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: 01 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: 01 07 00 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: 01 07 00 F6 2C 00 00 00 00 00 B1 0C E6 [15:37:59]RasterBufferAndPrint [15:37:59]line [15:37:59]line [15:37:59]line [15:37:59]line [15:37:59]line [15:37:59]written 0, free lines is 3252 [15:37:59]MH_Cut [15:37:59]Write to MH i2c: D1 01 00 FD 2C 01 FB [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: D1 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: D1 01 00 [15:37:59]MH_I2C_Read... [15:37:59]Read from MH i2c: D1 01 00 FD 2C 00 FA [15:37:59]Write to MH i2c: 01 00 00 FE 2C 2A [15:37:59]Write i2c OK [15:37:59]MH_I2C_Read... [15:37:59]OFD Sender: No OFD packet to send [15:38:00]*** Cut start [15:38:00]*** Purtial cut [15:38:00]*** Stage 1: CUTSNS_PIN = 1 [15:38:00]Read from MH i2c: 01 [15:38:00]MH_I2C_Read... [15:38:00]*** Stop cut motor [15:38:00]*** Cut end [15:38:00]Read from MH i2c: 01 07 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: 01 07 00 FE 2C 00 00 00 00 00 FF 0F 3F [15:38:00]process_action close_receipt done [15:38:00]requested_data is exist [15:38:00]produce_requested_data [15:38:00]requested_item fm.sn is exist - process it [15:38:00]wFMCommunicate request_size=4 [15:38:00]MH_SAM_APDU [15:38:00]CAPDU: 80 11 00 00 [15:38:00]Write to MH i2c: E2 08 00 FF 2C 80 11 00 00 00 00 00 00 A5 [15:38:00]Write i2c OK [15:38:00]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 17 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 17 00 FF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FA [15:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:38:00]wFMCommunicate OK [15:38:00]requested_item fd.num is exist - process it [15:38:00]SAM_PROTO_GetFieldsCounters [15:38:00]wFMCommunicate request_size=4 [15:38:00]MH_SAM_APDU [15:38:00]CAPDU: 80 13 00 00 [15:38:00]Write to MH i2c: E2 08 00 00 2D 80 13 00 00 00 00 00 00 A9 [15:38:00]Write i2c OK [15:38:00]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 62 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 62 00 00 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 33 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [15:38:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 33 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:00]wFMCommunicate OK [15:38:00]SAM_PROTO_GetFieldsCounters done [15:38:00]requested_item shift.num is exist - process it [15:38:00]requested_item shift.opened is exist - process it [15:38:00]req_shift_opened [15:38:00]FM_GetShiftState [15:38:00]SAM_PROTO_GetShiftState [15:38:00]wFMCommunicate request_size=4 [15:38:00]MH_SAM_APDU [15:38:00]CAPDU: 80 13 01 00 [15:38:00]Write to MH i2c: E2 08 00 01 2D 80 13 01 00 00 00 00 00 AB [15:38:00]Write i2c OK [15:38:00]MH_I2C_Read... [15:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:00]Read from MH i2c: E2 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 0E 00 [15:38:00]MH_I2C_Read... [15:38:00]Read from MH i2c: E2 0E 00 01 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AD [15:38:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:38:00]wFMCommunicate OK [15:38:00]SAM_PROTO_GetShiftState done [15:38:00]FM_GetShiftState done [15:38:00]req_shift_opened done [15:38:00]requested_item shift.open_date is exist - process it [15:38:00]req_shift_open_date [15:38:00]req_shift_open_date done [15:38:00]produce_requested_data done [15:38:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202035,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:38:00]process_action_free close_receipt [15:38:00]json_value_free [15:38:00]json_value_free done [15:38:00]process_json_proto returns [15:38:00]Send response to host [15:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202035,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:38:00]free response buf [15:38:00]execute_script done [15:38:00]execute_script returns [15:38:00]free content buf [15:38:00]Sock 9.Close socket [15:38:00]Sock 9.Thread stoped [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]accept exits with 8 [15:40:59]New connection [15:40:59]New thread 3066498404 created [15:40:59]Thread 3066641764 joined [15:40:59]Waiting for new connection... [15:40:59] Sock 8.Parse request [15:40:59]Sock 8.Check first char [15:40:59]Sock 8.First char is OK [15:40:59]request: POST /json_proto HTTP/1.0 [15:40:59]Method: POST [15:40:59]URL: /json_proto [15:40:59]Method is POST - this is cgi request [15:40:59]url: /json_proto [15:40:59]query_string will be loaded in cgi processing [15:40:59]execute_cgi json_proto POST (null) [15:40:59]execute_cgi path=json_proto method=POST [15:40:59]POST find Content-Length [15:40:59]Host: 172.17.63.195:8080 [15:40:59]Content-Length: 679 [15:40:59]Content-Type: application/json [15:40:59] [15:40:59]POST finish read [15:40:59]Found Content-Length = 679 [15:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [15:40:59]execute_script... [15:40:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [15:40:59]POST & json_proto [15:40:59]process_json_proto [15:40:59]json parsed OK: [15:40:59]protocol is kg_v1.0 [15:40:59]action value=close_receipt [15:40:59]process_action close_receipt [15:40:59]cmd_close_receipt [15:40:59]MH_GetDate [15:40:59]Write to MH i2c: F0 00 00 02 2D 1E [15:40:59]Write i2c OK [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: F0 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: F0 09 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: F0 09 00 02 2D 00 0C 5F 1E 67 47 1B 1E 67 FE [15:40:59]GetLastDocTimeStamp 1730043478 [15:40:59]current date 1730043660 [15:40:59]FM_GetShiftState [15:40:59]SAM_PROTO_GetShiftState [15:40:59]wFMCommunicate request_size=4 [15:40:59]MH_SAM_APDU [15:40:59]CAPDU: 80 13 01 00 [15:40:59]Write to MH i2c: E2 08 00 03 2D 80 13 01 00 00 00 00 00 AD [15:40:59]Write i2c OK [15:40:59]MH_I2C_Read... [15:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:59]Read from MH i2c: E2 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 0E 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 0E 00 03 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AF [15:40:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:40:59]wFMCommunicate OK [15:40:59]SAM_PROTO_GetShiftState done [15:40:59]FM_GetShiftState done [15:40:59]opened in 1729987312 [15:40:59]opened+sec_in_day 1730073712 [15:40:59]quantity*price = 100050 [15:40:59]sum+1 = 100052 [15:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 328 27.10.2024 15:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202036 ФПД: 162950640626702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154100&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202036&fm=162950640626702&tin=02508201610067®Number=0000000000091777&sum=100000 [15:41:00]StoreToDocumentArchive [15:41:00]shift 544 fd 202036 [15:41:00]save to /storage/0544/doc_00202036 [15:41:00]save last doc name /storage/0544/doc_00202036 to /storage/kkm_last_doc_name [15:41:00]save OK [15:41:00]Clear old archive folders... [15:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:41:00]tlvbuf is 0118F800 [15:41:00]SAM_PROTO_ClearQueue [15:41:00]wFMCommunicate request_size=4 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 09 00 00 [15:41:00]Write to MH i2c: E2 08 00 10 2D 80 09 00 00 00 00 00 00 AF [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 10 2D 00 90 00 B1 [15:41:00]RAPDU: 90 00 [15:41:00]wFMCommunicate OK [15:41:00]SAM_PROTO_ClearQueue done [15:41:00]KKMCreateOFDPacket [15:41:00]OFDProtocolAddRootSTLVToBuf [15:41:00]FM_MakeSignedData [15:41:00]FM_MakeSignedData [15:41:00]SAM_PROTO_SignData [15:41:00]wFMCommunicate request_size=4 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 0D 01 02 [15:41:00]Write to MH i2c: E2 08 00 11 2D 80 0D 01 02 00 00 00 00 B7 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 11 2D 00 90 00 B2 [15:41:00]RAPDU: 90 00 [15:41:00]wFMCommunicate OK [15:41:00]wFMCommunicate request_size=255 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 48 01 00 00 F4 03 04 00 0C 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 15 03 00 35 04 06 00 94 33 E7 0C [15:41:00]Write to MH i2c: E2 02 01 12 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 48 01 00 00 F4 03 04 00 0C 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 15 03 00 35 04 06 00 94 33 E7 0C 00 00 A2 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 12 2D 00 90 00 B3 [15:41:00]RAPDU: 90 00 [15:41:00]wFMCommunicate OK [15:41:00]wFMCommunicate request_size=7 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 0D 02 02 02 EC 0E [15:41:00]Write to MH i2c: E2 0A 00 13 2D 80 0D 02 02 02 00 EC 0E 00 00 B8 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 13 2D 00 90 00 B4 [15:41:00]RAPDU: 90 00 [15:41:00]wFMCommunicate OK [15:41:00]wFMCommunicate request_size=4 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 0D 03 02 [15:41:00]Write to MH i2c: E2 08 00 14 2D 80 0D 03 02 00 00 00 00 BC [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 0B 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 0B 00 14 2D 00 B2 AA 0B 9B 7B 5D E2 21 90 00 9A [15:41:00]RAPDU: B2 AA 0B 9B 7B 5D E2 21 90 00 [15:41:00]wFMCommunicate OK [15:41:00]SAM_PROTO_SignData done [15:41:00]FM_MakeSignedData done [15:41:00]CreateOFDProtocolMessage [15:41:00]wFMCommunicate request_size=4 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 11 00 00 [15:41:00]Write to MH i2c: E2 08 00 15 2D 80 11 00 00 00 00 00 00 BC [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 17 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 17 00 15 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 11 [15:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:41:00]wFMCommunicate OK [15:41:00]CreateOFDProtocolMessage done [15:41:00]OFDSenderStorePacket 202036 [15:41:00]StoreOFDPacket docnum=202036 [15:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 60 6C 04 01 C7 C7 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 32 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 48 01 00 00 F4 03 04 00 0C 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 15 03 00 35 04 06 00 94 33 E7 0C EC 0E B2 AA 0B 9B 7B 5D E2 21 [15:41:00]CheckFolder [15:41:00]dirname=/storage/ofd_packets [15:41:00]CheckFolder done [15:41:00]ProducePacketName [15:41:00]name=ofd_packets/00202036 [15:41:00]NVStorageSaveData ofd_packets/00202036 [15:41:00]File name is /storage/ofd_packets/00202036 [15:41:00]Write 298 bytes [15:41:00]NVStorageSaveData done [15:41:00]OFDSenderStorePacket done [15:41:00]KKMCreateOFDPacket done [15:41:00]NVStorageSaveData kkm_last_timestamp [15:41:00]File name is /storage/kkm_last_timestamp [15:41:00]Write 4 bytes [15:41:00]NVStorageSaveData done [15:41:00]ExternCall_PrintAddStr [15:41:00]wPrintStart [15:41:00]Write to MH i2c: 01 00 00 16 2D 43 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: 01 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: 01 07 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: 01 07 00 16 2D 00 00 00 00 00 FF 0F 58 [15:41:00]RasterBufferAndPrint [15:41:00]line Счет N : (1)449803 [15:41:00]line ИНН: 02508201610067 [15:41:00]line Контрольно-Кассовый Чек [15:41:00]line ПРОДАЖА [15:41:00]line ТРК (МРК, ГНК) : 21 [15:41:00]line Товар: 2710194210 [15:41:00]line ДТ-К-2 [15:41:00]line 13.130 * 76.20 [15:41:00]line = 1000.51 [15:41:00]line НДС 12% НСП 1% [15:41:00]line > о реализуемом товаре [15:41:00]line ОКРУГЛЕНИЕ: -0.51 [15:41:00]line ИТОГО: 1000.00 [15:41:00]line Внесено: 1000.00 [15:41:00]line СДАЧА: 0.00 [15:41:00]line НСП 1% : 8.85 [15:41:00]line НДС 12% : 106.25 [15:41:00]line Наличными: 1000.00 [15:41:00]line Безнал.: 0.00 [15:41:00]line Место: АЗС № 171 "Партнер Нефть" [15:41:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:41:00]line СНО: Общий режим [15:41:00]line Чек 328 27.10.2024 15:41 [15:41:00]line Смена: 544 ФФД: 1.0 [15:41:00]line ЗНМ: 0300000109 [15:41:00]line РНМ: 0000000000091777 [15:41:00]line Версия ККМ: 001 [15:41:00]line ФМ: 0000000000871756 [15:41:00]line ФД: 202036 [15:41:00]line ФПД: 162950640626702 [15:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154100&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202036&fm=162950640626702&tin=02508201610067®Number=0000000000091777&sum=100000 [15:41:01]OFD Sender: Processing packet 202036 [packets to send 112, broken 111] [15:41:01]ProducePacketName [15:41:01]name=ofd_packets/00202036 [15:41:01]OFD Sender: To server: pG, [15:41:01]CommunicateWithHost lk.salyk.kg:30040 [15:41:01]ConnectInit lk.salyk.kg [15:41:01]written 0, free lines is 4095 [15:41:01]Connected sock=10 [15:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 60 6C 04 01 C7 C7 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 32 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 48 01 00 00 F4 03 04 00 0C 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 15 03 00 35 04 06 00 94 33 E7 0C EC 0E B2 AA 0B 9B 7B 5D E2 21 [15:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 78 C0 47 00 36 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 15 03 00 F4 03 04 00 C6 0A 1E 67 B6 04 01 00 00 BC BC ED 30 B9 4C 7E 6D [15:41:01]CommunicateWithHost err = 0 [15:41:01]CheckOFDResponse [15:41:01]1017 (14) - 77093643461234 [15:41:01]1041 (16) - 0000000000871756 [15:41:01]1040 (4) - 202036 [15:41:01]1012 (4) - 27.10.2024 09:41 [15:41:01]1206 (1) - 0 [15:41:01]OFD Sender: Remove packet 202036 [15:41:01]ProducePacketName [15:41:01]name=ofd_packets/00202036 [15:41:01]NVStorageDeleteData [15:41:01]Write to MH i2c: 01 00 00 41 2D 6E [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 07 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 07 00 41 2D 00 00 00 00 00 8C 0C 0D [15:41:01]RasterBufferAndPrint [15:41:01]line [15:41:01]line [15:41:01]line [15:41:01]line [15:41:01]line [15:41:01]written 0, free lines is 3217 [15:41:01]MH_Cut [15:41:01]Write to MH i2c: D1 01 00 48 2D 01 47 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: D1 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: D1 01 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: D1 01 00 48 2D 00 46 [15:41:01]Write to MH i2c: 01 00 00 49 2D 76 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:02]OFD Sender: No OFD packet to send [15:41:02]*** Cut start [15:41:02]*** Purtial cut [15:41:02]*** Stage 1: CUTSNS_PIN = 1 [15:41:02]Read from MH i2c: 01 [15:41:02]MH_I2C_Read... [15:41:02]*** Stop cut motor [15:41:02]*** Cut end [15:41:02]Read from MH i2c: 01 07 00 [15:41:02]MH_I2C_Read... [15:41:02]Read from MH i2c: 01 07 00 49 2D 00 00 00 00 00 FF 0F 8B [15:41:02]process_action close_receipt done [15:41:02]requested_data is exist [15:41:02]produce_requested_data [15:41:02]requested_item fm.sn is exist - process it [15:41:02]wFMCommunicate request_size=4 [15:41:02]MH_SAM_APDU [15:41:02]CAPDU: 80 11 00 00 [15:41:02]Write to MH i2c: E2 08 00 4A 2D 80 11 00 00 00 00 00 00 F1 [15:41:02]Write i2c OK [15:41:02]MH_I2C_Read... [15:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:02]Read from MH i2c: E2 [15:41:02]MH_I2C_Read... [15:41:02]Read from MH i2c: E2 17 00 [15:41:02]MH_I2C_Read... [15:41:02]Read from MH i2c: E2 17 00 4A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 46 [15:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:41:02]wFMCommunicate OK [15:41:02]requested_item fd.num is exist - process it [15:41:02]SAM_PROTO_GetFieldsCounters [15:41:02]wFMCommunicate request_size=4 [15:41:02]MH_SAM_APDU [15:41:02]CAPDU: 80 13 00 00 [15:41:02]Write to MH i2c: E2 08 00 4B 2D 80 13 00 00 00 00 00 00 F4 [15:41:02]Write i2c OK [15:41:02]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 62 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 62 00 4B 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 34 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [15:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 34 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:03]wFMCommunicate OK [15:41:03]SAM_PROTO_GetFieldsCounters done [15:41:03]requested_item shift.num is exist - process it [15:41:03]requested_item shift.opened is exist - process it [15:41:03]req_shift_opened [15:41:03]FM_GetShiftState [15:41:03]SAM_PROTO_GetShiftState [15:41:03]wFMCommunicate request_size=4 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 13 01 00 [15:41:03]Write to MH i2c: E2 08 00 4C 2D 80 13 01 00 00 00 00 00 F6 [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 0E 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 0E 00 4C 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F8 [15:41:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:41:03]wFMCommunicate OK [15:41:03]SAM_PROTO_GetShiftState done [15:41:03]FM_GetShiftState done [15:41:03]req_shift_opened done [15:41:03]requested_item shift.open_date is exist - process it [15:41:03]req_shift_open_date [15:41:03]req_shift_open_date done [15:41:03]produce_requested_data done [15:41:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202036,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:41:03]process_action_free close_receipt [15:41:03]json_value_free [15:41:03]json_value_free done [15:41:03]process_json_proto returns [15:41:03]Send response to host [15:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202036,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:41:03]free response buf [15:41:03]execute_script done [15:41:03]execute_script returns [15:41:03]free content buf [15:41:03]Sock 8.Close socket [15:41:03]Sock 8.Thread stoped [15:41:03]accept exits with 9 [15:41:03]New connection [15:41:03]New thread 3066641764 created [15:41:03]Thread 3066498404 joined [15:41:03]Waiting for new connection... [15:41:03] Sock 9.Parse request [15:41:03]Sock 9.Check first char [15:41:03]Sock 9.First char is OK [15:41:03]request: POST /json_proto HTTP/1.0 [15:41:03]Method: POST [15:41:03]URL: /json_proto [15:41:03]Method is POST - this is cgi request [15:41:03]url: /json_proto [15:41:03]query_string will be loaded in cgi processing [15:41:03]execute_cgi json_proto POST (null) [15:41:03]execute_cgi path=json_proto method=POST [15:41:03]POST find Content-Length [15:41:03]Host: 172.17.63.195:8080 [15:41:03]Content-Length: 679 [15:41:03]Content-Type: application/json [15:41:03] [15:41:03]POST finish read [15:41:03]Found Content-Length = 679 [15:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:03]execute_script... [15:41:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:03]POST & json_proto [15:41:03]process_json_proto [15:41:03]json parsed OK: [15:41:03]protocol is kg_v1.0 [15:41:03]action value=close_receipt [15:41:03]process_action close_receipt [15:41:03]cmd_close_receipt [15:41:03]MH_GetDate [15:41:03]Write to MH i2c: F0 00 00 4D 2D 69 [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: F0 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: F0 09 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: F0 09 00 4D 2D 00 10 5F 1E 67 47 1B 1E 67 4D [15:41:03]GetLastDocTimeStamp 1730043660 [15:41:03]current date 1730043664 [15:41:03]FM_GetShiftState [15:41:03]SAM_PROTO_GetShiftState [15:41:03]wFMCommunicate request_size=4 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 13 01 00 [15:41:03]Write to MH i2c: E2 08 00 4E 2D 80 13 01 00 00 00 00 00 F8 [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 0E 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 0E 00 4E 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FA [15:41:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:41:03]wFMCommunicate OK [15:41:03]SAM_PROTO_GetShiftState done [15:41:03]FM_GetShiftState done [15:41:03]opened in 1729987312 [15:41:03]opened+sec_in_day 1730073712 [15:41:03]quantity*price = 140055 [15:41:03]sum+1 = 140057 [15:41:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 329 27.10.2024 15:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202037 ФПД: 251404449004381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154104&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202037&fm=251404449004381&tin=02508201610067®Number=0000000000091777&sum=140000 [15:41:04]StoreToDocumentArchive [15:41:04]shift 544 fd 202037 [15:41:04]save to /storage/0544/doc_00202037 [15:41:04]save last doc name /storage/0544/doc_00202037 to /storage/kkm_last_doc_name [15:41:04]save OK [15:41:04]Clear old archive folders... [15:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:41:04]tlvbuf is 011A0C30 [15:41:04]SAM_PROTO_ClearQueue [15:41:04]wFMCommunicate request_size=4 [15:41:04]MH_SAM_APDU [15:41:04]CAPDU: 80 09 00 00 [15:41:04]Write to MH i2c: E2 08 00 5B 2D 80 09 00 00 00 00 00 00 FA [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:04]Read from MH i2c: E2 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 03 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 03 00 5B 2D 00 90 00 FC [15:41:04]RAPDU: 90 00 [15:41:04]wFMCommunicate OK [15:41:04]SAM_PROTO_ClearQueue done [15:41:04]KKMCreateOFDPacket [15:41:04]OFDProtocolAddRootSTLVToBuf [15:41:04]FM_MakeSignedData [15:41:04]FM_MakeSignedData [15:41:04]SAM_PROTO_SignData [15:41:04]wFMCommunicate request_size=4 [15:41:04]MH_SAM_APDU [15:41:04]CAPDU: 80 0D 01 02 [15:41:04]Write to MH i2c: E2 08 00 5C 2D 80 0D 01 02 00 00 00 00 02 [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:04]Read from MH i2c: E2 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 03 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 03 00 5C 2D 00 90 00 FD [15:41:04]RAPDU: 90 00 [15:41:04]wFMCommunicate OK [15:41:04]wFMCommunicate request_size=255 [15:41:04]MH_SAM_APDU [15:41:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 10 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 15 03 00 35 04 06 00 E4 A6 A8 E0 [15:41:04]Write to MH i2c: E2 02 01 5D 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 10 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 15 03 00 35 04 06 00 E4 A6 A8 E0 00 00 8A [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:05]Read from MH i2c: E2 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 03 00 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 03 00 5D 2D 00 90 00 FE [15:41:05]RAPDU: 90 00 [15:41:05]wFMCommunicate OK [15:41:05]wFMCommunicate request_size=7 [15:41:05]MH_SAM_APDU [15:41:05]CAPDU: 80 0D 02 02 02 BB 5D [15:41:05]Write to MH i2c: E2 0A 00 5E 2D 80 0D 02 02 02 00 BB 5D 00 00 21 [15:41:05]Write i2c OK [15:41:05]MH_I2C_Read... [15:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:05]Read from MH i2c: E2 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 03 00 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 03 00 5E 2D 00 90 00 FF [15:41:05]RAPDU: 90 00 [15:41:05]wFMCommunicate OK [15:41:05]wFMCommunicate request_size=4 [15:41:05]MH_SAM_APDU [15:41:05]CAPDU: 80 0D 03 02 [15:41:05]Write to MH i2c: E2 08 00 5F 2D 80 0D 03 02 00 00 00 00 07 [15:41:05]Write i2c OK [15:41:05]MH_I2C_Read... [15:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:05]Read from MH i2c: E2 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 0B 00 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 0B 00 5F 2D 00 28 3E 66 87 FC F0 21 62 90 00 CA [15:41:05]RAPDU: 28 3E 66 87 FC F0 21 62 90 00 [15:41:05]wFMCommunicate OK [15:41:05]SAM_PROTO_SignData done [15:41:05]FM_MakeSignedData done [15:41:05]CreateOFDProtocolMessage [15:41:05]wFMCommunicate request_size=4 [15:41:05]MH_SAM_APDU [15:41:05]CAPDU: 80 11 00 00 [15:41:05]Write to MH i2c: E2 08 00 60 2D 80 11 00 00 00 00 00 00 07 [15:41:05]Write i2c OK [15:41:05]MH_I2C_Read... [15:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:05]Read from MH i2c: E2 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 17 00 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: E2 17 00 60 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [15:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:41:05]wFMCommunicate OK [15:41:05]CreateOFDProtocolMessage done [15:41:05]OFDSenderStorePacket 202037 [15:41:05]StoreOFDPacket docnum=202037 [15:41:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3E E5 04 01 11 59 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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 10 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 15 03 00 35 04 06 00 E4 A6 A8 E0 BB 5D 28 3E 66 87 FC F0 21 62 [15:41:05]CheckFolder [15:41:05]dirname=/storage/ofd_packets [15:41:05]CheckFolder done [15:41:05]ProducePacketName [15:41:05]name=ofd_packets/00202037 [15:41:05]NVStorageSaveData ofd_packets/00202037 [15:41:05]File name is /storage/ofd_packets/00202037 [15:41:05]Write 298 bytes [15:41:05]NVStorageSaveData done [15:41:05]OFDSenderStorePacket done [15:41:05]KKMCreateOFDPacket done [15:41:05]NVStorageSaveData kkm_last_timestamp [15:41:05]File name is /storage/kkm_last_timestamp [15:41:05]Write 4 bytes [15:41:05]NVStorageSaveData done [15:41:05]ExternCall_PrintAddStr [15:41:05]wPrintStart [15:41:05]Write to MH i2c: 01 00 00 61 2D 8E [15:41:05]Write i2c OK [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: 01 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: 01 07 00 [15:41:05]MH_I2C_Read... [15:41:05]Read from MH i2c: 01 07 00 61 2D 00 00 00 00 00 FF 0F A3 [15:41:05]RasterBufferAndPrint [15:41:05]line Счет N : (1)449802 [15:41:05]line ИНН: 02508201610067 [15:41:05]line Контрольно-Кассовый Чек [15:41:05]line ПРОДАЖА [15:41:05]line ТРК (МРК, ГНК) : 33 [15:41:05]line Товар: 2710194210 [15:41:05]line ДТ-К-2 [15:41:05]line 18.380 * 76.20 [15:41:05]line = 1400.56 [15:41:05]line НДС 12% НСП 1% [15:41:05]line > о реализуемом товаре [15:41:05]line ОКРУГЛЕНИЕ: -0.56 [15:41:05]line ИТОГО: 1400.00 [15:41:05]line Внесено: 1400.00 [15:41:05]line СДАЧА: 0.00 [15:41:05]line НСП 1% : 12.39 [15:41:05]line НДС 12% : 148.73 [15:41:05]line Наличными: 1400.00 [15:41:05]line Безнал.: 0.00 [15:41:05]line Место: АЗС № 171 "Партнер Нефть" [15:41:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:41:05]line СНО: Общий режим [15:41:05]line Чек 329 27.10.2024 15:41 [15:41:05]line Смена: 544 ФФД: 1.0 [15:41:05]line ЗНМ: 0300000109 [15:41:05]line РНМ: 0000000000091777 [15:41:05]line Версия ККМ: 001 [15:41:05]line ФМ: 0000000000871756 [15:41:05]line ФД: 202037 [15:41:05]line ФПД: 251404449004381 [15:41:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154104&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202037&fm=251404449004381&tin=02508201610067®Number=0000000000091777&sum=140000 [15:41:05]OFD Sender: Processing packet 202037 [packets to send 112, broken 111] [15:41:05]ProducePacketName [15:41:05]name=ofd_packets/00202037 [15:41:05]OFD Sender: To server: pG, [15:41:05]CommunicateWithHost lk.salyk.kg:30040 [15:41:05]ConnectInit lk.salyk.kg [15:41:05]written 0, free lines is 4095 [15:41:05]Connected sock=10 [15:41:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3E E5 04 01 11 59 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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 10 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 15 03 00 35 04 06 00 E4 A6 A8 E0 BB 5D 28 3E 66 87 FC F0 21 62 [15:41:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 79 1C 47 00 F9 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 15 03 00 F4 03 04 00 CA 0A 1E 67 B6 04 01 00 00 6D 6C E3 3A B2 7E 08 91 [15:41:06]CommunicateWithHost err = 0 [15:41:06]CheckOFDResponse [15:41:06]1017 (14) - 77093643461234 [15:41:06]1041 (16) - 0000000000871756 [15:41:06]1040 (4) - 202037 [15:41:06]1012 (4) - 27.10.2024 09:41 [15:41:06]1206 (1) - 0 [15:41:06]OFD Sender: Remove packet 202037 [15:41:06]ProducePacketName [15:41:06]name=ofd_packets/00202037 [15:41:06]NVStorageDeleteData [15:41:06]Write to MH i2c: 01 00 00 8C 2D B9 [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: 01 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: 01 07 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: 01 07 00 8C 2D 00 00 00 00 00 8C 0C 58 [15:41:06]RasterBufferAndPrint [15:41:06]line [15:41:06]line [15:41:06]line [15:41:06]line [15:41:06]line [15:41:06]written 0, free lines is 3221 [15:41:06]MH_Cut [15:41:06]Write to MH i2c: D1 01 00 93 2D 01 92 [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: D1 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: D1 01 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: D1 01 00 93 2D 00 91 [15:41:06]Write to MH i2c: 01 00 00 94 2D C1 [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]OFD Sender: No OFD packet to send [15:41:07]*** Cut start [15:41:07]*** Purtial cut [15:41:07]*** Stage 1: CUTSNS_PIN = 1 [15:41:07]Read from MH i2c: 01 [15:41:07]MH_I2C_Read... [15:41:07]*** Stop cut motor [15:41:07]*** Cut end [15:41:07]Read from MH i2c: 01 07 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: 01 07 00 94 2D 00 00 00 00 00 FF 0F D6 [15:41:07]process_action close_receipt done [15:41:07]requested_data is exist [15:41:07]produce_requested_data [15:41:07]requested_item fm.sn is exist - process it [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 11 00 00 [15:41:07]Write to MH i2c: E2 08 00 95 2D 80 11 00 00 00 00 00 00 3C [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 17 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 17 00 95 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 91 [15:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:41:07]wFMCommunicate OK [15:41:07]requested_item fd.num is exist - process it [15:41:07]SAM_PROTO_GetFieldsCounters [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 13 00 00 [15:41:07]Write to MH i2c: E2 08 00 96 2D 80 13 00 00 00 00 00 00 3F [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 62 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 62 00 96 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 35 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [15:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 35 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:07]wFMCommunicate OK [15:41:07]SAM_PROTO_GetFieldsCounters done [15:41:07]requested_item shift.num is exist - process it [15:41:07]requested_item shift.opened is exist - process it [15:41:07]req_shift_opened [15:41:07]FM_GetShiftState [15:41:07]SAM_PROTO_GetShiftState [15:41:07]wFMCommunicate request_size=4 [15:41:07]MH_SAM_APDU [15:41:07]CAPDU: 80 13 01 00 [15:41:07]Write to MH i2c: E2 08 00 97 2D 80 13 01 00 00 00 00 00 41 [15:41:07]Write i2c OK [15:41:07]MH_I2C_Read... [15:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:07]Read from MH i2c: E2 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 0E 00 [15:41:07]MH_I2C_Read... [15:41:07]Read from MH i2c: E2 0E 00 97 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 43 [15:41:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:41:07]wFMCommunicate OK [15:41:07]SAM_PROTO_GetShiftState done [15:41:07]FM_GetShiftState done [15:41:07]req_shift_opened done [15:41:07]requested_item shift.open_date is exist - process it [15:41:07]req_shift_open_date [15:41:07]req_shift_open_date done [15:41:07]produce_requested_data done [15:41:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202037,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:41:07]process_action_free close_receipt [15:41:07]json_value_free [15:41:07]json_value_free done [15:41:07]process_json_proto returns [15:41:07]Send response to host [15:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202037,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:41:07]free response buf [15:41:07]execute_script done [15:41:07]execute_script returns [15:41:07]free content buf [15:41:07]Sock 9.Close socket [15:41:07]Sock 9.Thread stoped [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:27]accept exits with 8 [15:41:27]New connection [15:41:27]New thread 3066498404 created [15:41:27]Thread 3066641764 joined [15:41:27]Waiting for new connection... [15:41:27] Sock 8.Parse request [15:41:27]Sock 8.Check first char [15:41:27]Sock 8.First char is OK [15:41:27]request: POST /json_proto HTTP/1.0 [15:41:27]Method: POST [15:41:27]URL: /json_proto [15:41:27]Method is POST - this is cgi request [15:41:27]url: /json_proto [15:41:27]query_string will be loaded in cgi processing [15:41:27]execute_cgi json_proto POST (null) [15:41:27]execute_cgi path=json_proto method=POST [15:41:27]POST find Content-Length [15:41:27]Host: 172.17.63.195:8080 [15:41:27]Content-Length: 769 [15:41:27]Content-Type: application/json [15:41:27] [15:41:27]POST finish read [15:41:27]Found Content-Length = 769 [15:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:27]execute_script... [15:41: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)449804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:27]POST & json_proto [15:41:27]process_json_proto [15:41:27]json parsed OK: [15:41:27]protocol is kg_v1.0 [15:41:27]action value=close_receipt [15:41:27]process_action close_receipt [15:41:27]cmd_close_receipt [15:41:27]MH_GetDate [15:41:27]Write to MH i2c: F0 00 00 98 2D B4 [15:41:27]Write i2c OK [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: F0 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: F0 09 00 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: F0 09 00 98 2D 00 28 5F 1E 67 47 1B 1E 67 B0 [15:41:27]GetLastDocTimeStamp 1730043664 [15:41:27]current date 1730043688 [15:41:27]FM_GetShiftState [15:41:27]SAM_PROTO_GetShiftState [15:41:27]wFMCommunicate request_size=4 [15:41:27]MH_SAM_APDU [15:41:27]CAPDU: 80 13 01 00 [15:41:27]Write to MH i2c: E2 08 00 99 2D 80 13 01 00 00 00 00 00 43 [15:41:27]Write i2c OK [15:41:27]MH_I2C_Read... [15:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:27]Read from MH i2c: E2 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: E2 0E 00 [15:41:27]MH_I2C_Read... [15:41:27]Read from MH i2c: E2 0E 00 99 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 45 [15:41:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:41:27]wFMCommunicate OK [15:41:27]SAM_PROTO_GetShiftState done [15:41:27]FM_GetShiftState done [15:41:27]opened in 1729987312 [15:41:27]opened+sec_in_day 1730073712 [15:41:27]quantity*price = 100015 [15:41:27]sum+1 = 100017 [15:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 330 27.10.2024 15:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202038 ФПД: 76601297222271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202038&fm=76601297222271&tin=02508201610067®Number=0000000000091777&sum=100016 [15:41:28]StoreToDocumentArchive [15:41:28]shift 544 fd 202038 [15:41:28]save to /storage/0544/doc_00202038 [15:41:28]save last doc name /storage/0544/doc_00202038 to /storage/kkm_last_doc_name [15:41:28]save OK [15:41:28]Clear old archive folders... [15:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:28]tlvbuf is 01232730 [15:41:28]SAM_PROTO_ClearQueue [15:41:28]wFMCommunicate request_size=4 [15:41:28]MH_SAM_APDU [15:41:28]CAPDU: 80 09 00 00 [15:41:28]Write to MH i2c: E2 08 00 A6 2D 80 09 00 00 00 00 00 00 45 [15:41:28]Write i2c OK [15:41:28]MH_I2C_Read... [15:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:28]Read from MH i2c: E2 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 03 00 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 03 00 A6 2D 00 90 00 47 [15:41:28]RAPDU: 90 00 [15:41:28]wFMCommunicate OK [15:41:28]SAM_PROTO_ClearQueue done [15:41:28]KKMCreateOFDPacket [15:41:28]OFDProtocolAddRootSTLVToBuf [15:41:28]FM_MakeSignedData [15:41:28]FM_MakeSignedData [15:41:28]SAM_PROTO_SignData [15:41:28]wFMCommunicate request_size=4 [15:41:28]MH_SAM_APDU [15:41:28]CAPDU: 80 0D 01 02 [15:41:28]Write to MH i2c: E2 08 00 A7 2D 80 0D 01 02 00 00 00 00 4D [15:41:28]Write i2c OK [15:41:28]MH_I2C_Read... [15:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:28]Read from MH i2c: E2 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 03 00 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 03 00 A7 2D 00 90 00 48 [15:41:28]RAPDU: 90 00 [15:41:28]wFMCommunicate OK [15:41:28]wFMCommunicate request_size=255 [15:41:28]MH_SAM_APDU [15:41:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4A 01 00 00 F4 03 04 00 28 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 15 03 00 35 04 06 00 45 [15:41:28]Write to MH i2c: E2 02 01 A8 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4A 01 00 00 F4 03 04 00 28 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 15 03 00 35 04 06 00 45 00 00 07 [15:41:28]Write i2c OK [15:41:28]MH_I2C_Read... [15:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:28]Read from MH i2c: E2 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 03 00 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 03 00 A8 2D 00 90 00 49 [15:41:28]RAPDU: 90 00 [15:41:28]wFMCommunicate OK [15:41:28]wFMCommunicate request_size=10 [15:41:28]MH_SAM_APDU [15:41:28]CAPDU: 80 0D 02 02 05 AB 21 1C 3A 7F [15:41:28]Write to MH i2c: E2 0D 00 A9 2D 80 0D 02 02 05 00 AB 21 1C 3A 7F 00 00 FB [15:41:28]Write i2c OK [15:41:28]MH_I2C_Read... [15:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:28]Read from MH i2c: E2 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 03 00 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 03 00 A9 2D 00 90 00 4A [15:41:28]RAPDU: 90 00 [15:41:28]wFMCommunicate OK [15:41:28]wFMCommunicate request_size=4 [15:41:28]MH_SAM_APDU [15:41:28]CAPDU: 80 0D 03 02 [15:41:28]Write to MH i2c: E2 08 00 AA 2D 80 0D 03 02 00 00 00 00 52 [15:41:28]Write i2c OK [15:41:28]MH_I2C_Read... [15:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:28]Read from MH i2c: E2 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 0B 00 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 0B 00 AA 2D 00 5D 11 17 70 CB B4 40 D1 90 00 D8 [15:41:28]RAPDU: 5D 11 17 70 CB B4 40 D1 90 00 [15:41:28]wFMCommunicate OK [15:41:28]SAM_PROTO_SignData done [15:41:28]FM_MakeSignedData done [15:41:28]CreateOFDProtocolMessage [15:41:28]wFMCommunicate request_size=4 [15:41:28]MH_SAM_APDU [15:41:28]CAPDU: 80 11 00 00 [15:41:28]Write to MH i2c: E2 08 00 AB 2D 80 11 00 00 00 00 00 00 52 [15:41:28]Write i2c OK [15:41:28]MH_I2C_Read... [15:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:28]Read from MH i2c: E2 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 17 00 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: E2 17 00 AB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A7 [15:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:41:28]wFMCommunicate OK [15:41:28]CreateOFDProtocolMessage done [15:41:28]OFDSenderStorePacket 202038 [15:41:28]StoreOFDPacket docnum=202038 [15:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D3 68 07 01 51 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4A 01 00 00 F4 03 04 00 28 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 15 03 00 35 04 06 00 45 AB 21 1C 3A 7F 5D 11 17 70 CB B4 40 D1 [15:41:28]CheckFolder [15:41:28]dirname=/storage/ofd_packets [15:41:28]CheckFolder done [15:41:28]ProducePacketName [15:41:28]name=ofd_packets/00202038 [15:41:28]NVStorageSaveData ofd_packets/00202038 [15:41:28]File name is /storage/ofd_packets/00202038 [15:41:28]Write 301 bytes [15:41:28]NVStorageSaveData done [15:41:28]OFDSenderStorePacket done [15:41:28]KKMCreateOFDPacket done [15:41:28]NVStorageSaveData kkm_last_timestamp [15:41:28]File name is /storage/kkm_last_timestamp [15:41:28]Write 4 bytes [15:41:28]NVStorageSaveData done [15:41:28]ExternCall_PrintAddStr [15:41:28]wPrintStart [15:41:28]Write to MH i2c: 01 00 00 AC 2D D9 [15:41:28]Write i2c OK [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: 01 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: 01 07 00 [15:41:28]MH_I2C_Read... [15:41:28]Read from MH i2c: 01 07 00 AC 2D 00 00 00 00 00 FF 0F EE [15:41:28]RasterBufferAndPrint [15:41:28]line Счет N : (1)449804 [15:41:28]line ИНН: 02508201610067 [15:41:28]line Контрольно-Кассовый Чек [15:41:28]line ПРОДАЖА [15:41:28]line ТРК (МРК, ГНК) : 52 [15:41:28]line Товар: 2710124130 [15:41:28]line Аи-92-К-2 [15:41:28]line 14.950 * 66.90 [15:41:28]line = 1000.16 [15:41:28]line НДС 12% НСП 1% [15:41:28]line > о реализуемом товаре [15:41:28]line ИТОГО: 1000.16 [15:41:28]line НСП 1% : 8.85 [15:41:28]line НДС 12% : 106.21 [15:41:28]line Наличными: 0.00 [15:41:28]line Безнал.: 1000.16 [15:41:28]line Место: АЗС № 171 "Партнер Нефть" [15:41:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:41:28]line СНО: Общий режим [15:41:28]line Чек 330 27.10.2024 15:41 [15:41:28]line Смена: 544 ФФД: 1.0 [15:41:28]line ЗНМ: 0300000109 [15:41:28]line РНМ: 0000000000091777 [15:41:28]line Версия ККМ: 001 [15:41:28]line Платежная система: Mbank [15:41:28]line ФМ: 0000000000871756 [15:41:28]line ФД: 202038 [15:41:28]line ФПД: 76601297222271 [15:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202038&fm=76601297222271&tin=02508201610067®Number=0000000000091777&sum=100016 [15:41:28]written 0, free lines is 4095 [15:41:28]OFD Sender: Processing packet 202038 [packets to send 112, broken 111] [15:41:28]ProducePacketName [15:41:28]name=ofd_packets/00202038 [15:41:28]OFD Sender: To server: pG, [15:41:28]CommunicateWithHost lk.salyk.kg:30040 [15:41:28]ConnectInit lk.salyk.kg [15:41:28]Connected sock=10 [15:41:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D3 68 07 01 51 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4A 01 00 00 F4 03 04 00 28 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 15 03 00 35 04 06 00 45 AB 21 1C 3A 7F 5D 11 17 70 CB B4 40 D1 [15:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 88 27 47 00 35 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 15 03 00 F4 03 04 00 E1 0A 1E 67 B6 04 01 00 00 F4 7D A6 2F A6 EF 92 D4 [15:41:29]CommunicateWithHost err = 0 [15:41:29]CheckOFDResponse [15:41:29]1017 (14) - 77093643461234 [15:41:29]1041 (16) - 0000000000871756 [15:41:29]1040 (4) - 202038 [15:41:29]1012 (4) - 27.10.2024 09:41 [15:41:29]1206 (1) - 0 [15:41:29]OFD Sender: Remove packet 202038 [15:41:29]ProducePacketName [15:41:29]name=ofd_packets/00202038 [15:41:29]NVStorageDeleteData [15:41:29]Write to MH i2c: 01 00 00 D5 2D 02 [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: 01 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: 01 07 00 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: 01 07 00 D5 2D 00 00 00 00 00 BC 0C D1 [15:41:29]RasterBufferAndPrint [15:41:29]line [15:41:29]line [15:41:29]line [15:41:29]line [15:41:29]line [15:41:29]written 0, free lines is 3267 [15:41:29]MH_Cut [15:41:29]Write to MH i2c: D1 01 00 DC 2D 01 DB [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: D1 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: D1 01 00 [15:41:29]MH_I2C_Read... [15:41:29]Read from MH i2c: D1 01 00 DC 2D 00 DA [15:41:29]Write to MH i2c: 01 00 00 DD 2D 0A [15:41:29]Write i2c OK [15:41:29]MH_I2C_Read... [15:41:29]OFD Sender: No OFD packet to send [15:41:30]*** Cut start [15:41:30]*** Purtial cut [15:41:30]*** Stage 1: CUTSNS_PIN = 1 [15:41:30]Read from MH i2c: 01 [15:41:30]MH_I2C_Read... [15:41:30]*** Stop cut motor [15:41:30]*** Cut end [15:41:30]Read from MH i2c: 01 07 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: 01 07 00 DD 2D 00 00 00 00 00 FF 0F 1F [15:41:30]process_action close_receipt done [15:41:30]requested_data is exist [15:41:30]produce_requested_data [15:41:30]requested_item fm.sn is exist - process it [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 11 00 00 [15:41:30]Write to MH i2c: E2 08 00 DE 2D 80 11 00 00 00 00 00 00 85 [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 17 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 17 00 DE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DA [15:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:41:30]wFMCommunicate OK [15:41:30]requested_item fd.num is exist - process it [15:41:30]SAM_PROTO_GetFieldsCounters [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 13 00 00 [15:41:30]Write to MH i2c: E2 08 00 DF 2D 80 13 00 00 00 00 00 00 88 [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 62 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 62 00 DF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 36 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [15:41:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 36 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:30]wFMCommunicate OK [15:41:30]SAM_PROTO_GetFieldsCounters done [15:41:30]requested_item shift.num is exist - process it [15:41:30]requested_item shift.opened is exist - process it [15:41:30]req_shift_opened [15:41:30]FM_GetShiftState [15:41:30]SAM_PROTO_GetShiftState [15:41:30]wFMCommunicate request_size=4 [15:41:30]MH_SAM_APDU [15:41:30]CAPDU: 80 13 01 00 [15:41:30]Write to MH i2c: E2 08 00 E0 2D 80 13 01 00 00 00 00 00 8A [15:41:30]Write i2c OK [15:41:30]MH_I2C_Read... [15:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:30]Read from MH i2c: E2 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 0E 00 [15:41:30]MH_I2C_Read... [15:41:30]Read from MH i2c: E2 0E 00 E0 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8C [15:41:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:41:30]wFMCommunicate OK [15:41:30]SAM_PROTO_GetShiftState done [15:41:30]FM_GetShiftState done [15:41:30]req_shift_opened done [15:41:30]requested_item shift.open_date is exist - process it [15:41:30]req_shift_open_date [15:41:30]req_shift_open_date done [15:41:30]produce_requested_data done [15:41:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202038,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:41:30]process_action_free close_receipt [15:41:30]json_value_free [15:41:30]json_value_free done [15:41:30]process_json_proto returns [15:41:30]Send response to host [15:41:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202038,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:41:30]free response buf [15:41:30]execute_script done [15:41:30]execute_script returns [15:41:30]free content buf [15:41:30]Sock 8.Close socket [15:41:30]Sock 8.Thread stoped [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:48]accept exits with 9 [15:42:48]New connection [15:42:48]New thread 3066641764 created [15:42:48]Thread 3066498404 joined [15:42:48]Waiting for new connection... [15:42:48] Sock 9.Parse request [15:42:48]Sock 9.Check first char [15:42:48]Sock 9.First char is OK [15:42:48]request: POST /json_proto HTTP/1.0 [15:42:48]Method: POST [15:42:48]URL: /json_proto [15:42:48]Method is POST - this is cgi request [15:42:48]url: /json_proto [15:42:48]query_string will be loaded in cgi processing [15:42:48]execute_cgi json_proto POST (null) [15:42:48]execute_cgi path=json_proto method=POST [15:42:48]POST find Content-Length [15:42:48]Host: 172.17.63.195:8080 [15:42:48]Content-Length: 766 [15:42:48]Content-Type: application/json [15:42:48] [15:42:48]POST finish read [15:42:48]Found Content-Length = 766 [15:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:48]execute_script... [15:42:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:48]POST & json_proto [15:42:48]process_json_proto [15:42:48]json parsed OK: [15:42:48]protocol is kg_v1.0 [15:42:48]action value=close_receipt [15:42:48]process_action close_receipt [15:42:48]cmd_close_receipt [15:42:48]MH_GetDate [15:42:48]Write to MH i2c: F0 00 00 E1 2D FD [15:42:48]Write i2c OK [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: F0 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: F0 09 00 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: F0 09 00 E1 2D 00 79 5F 1E 67 47 1B 1E 67 4A [15:42:48]GetLastDocTimeStamp 1730043688 [15:42:48]current date 1730043769 [15:42:48]FM_GetShiftState [15:42:48]SAM_PROTO_GetShiftState [15:42:48]wFMCommunicate request_size=4 [15:42:48]MH_SAM_APDU [15:42:48]CAPDU: 80 13 01 00 [15:42:48]Write to MH i2c: E2 08 00 E2 2D 80 13 01 00 00 00 00 00 8C [15:42:48]Write i2c OK [15:42:48]MH_I2C_Read... [15:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:48]Read from MH i2c: E2 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 0E 00 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 0E 00 E2 2D 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8E [15:42:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:42:48]wFMCommunicate OK [15:42:48]SAM_PROTO_GetShiftState done [15:42:48]FM_GetShiftState done [15:42:48]opened in 1729987312 [15:42:48]opened+sec_in_day 1730073712 [15:42:48]quantity*price = 300075 [15:42:48]sum+1 = 300077 [15:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 331 27.10.2024 15:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202039 ФПД: 125729151553457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154250&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202039&fm=125729151553457&tin=02508201610067®Number=0000000000091777&sum=300076 [15:42:49]StoreToDocumentArchive [15:42:49]shift 544 fd 202039 [15:42:49]save to /storage/0544/doc_00202039 [15:42:49]save last doc name /storage/0544/doc_00202039 to /storage/kkm_last_doc_name [15:42:49]save OK [15:42:49]Clear old archive folders... [15:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:42:49]tlvbuf is 012AA950 [15:42:49]SAM_PROTO_ClearQueue [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 09 00 00 [15:42:49]Write to MH i2c: E2 08 00 EF 2D 80 09 00 00 00 00 00 00 8E [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 EF 2D 00 90 00 90 [15:42:49]RAPDU: 90 00 [15:42:49]wFMCommunicate OK [15:42:49]SAM_PROTO_ClearQueue done [15:42:49]KKMCreateOFDPacket [15:42:49]OFDProtocolAddRootSTLVToBuf [15:42:49]FM_MakeSignedData [15:42:49]FM_MakeSignedData [15:42:49]SAM_PROTO_SignData [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 0D 01 02 [15:42:49]Write to MH i2c: E2 08 00 F0 2D 80 0D 01 02 00 00 00 00 96 [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]OFD Sender: No OFD packet to send [15:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 03 00 F0 2D 00 90 00 91 [15:42:49]RAPDU: 90 00 [15:42:49]wFMCommunicate OK [15:42:49]wFMCommunicate request_size=255 [15:42:49]MH_SAM_APDU [15:42:49]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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 7A 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 15 03 00 35 04 06 00 72 59 99 6A [15:42:49]Write to MH i2c: E2 02 01 F1 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 7A 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 15 03 00 35 04 06 00 72 59 99 6A 00 00 DA [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 F1 2D 00 90 00 92 [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]wFMCommunicate request_size=7 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 02 02 02 8F B1 [15:42:50]Write to MH i2c: E2 0A 00 F2 2D 80 0D 02 02 02 00 8F B1 00 00 DD [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 F2 2D 00 90 00 93 [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 03 02 [15:42:50]Write to MH i2c: E2 08 00 F3 2D 80 0D 03 02 00 00 00 00 9B [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 0B 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 0B 00 F3 2D 00 6A 93 70 72 AD C3 C9 3D 90 00 F1 [15:42:50]RAPDU: 6A 93 70 72 AD C3 C9 3D 90 00 [15:42:50]wFMCommunicate OK [15:42:50]SAM_PROTO_SignData done [15:42:50]FM_MakeSignedData done [15:42:50]CreateOFDProtocolMessage [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 11 00 00 [15:42:50]Write to MH i2c: E2 08 00 F4 2D 80 11 00 00 00 00 00 00 9B [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 17 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 17 00 F4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F0 [15:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:42:50]wFMCommunicate OK [15:42:50]CreateOFDProtocolMessage done [15:42:50]OFDSenderStorePacket 202039 [15:42:50]StoreOFDPacket docnum=202039 [15:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F2 CE 04 01 6B 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 7A 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 15 03 00 35 04 06 00 72 59 99 6A 8F B1 6A 93 70 72 AD C3 C9 3D [15:42:50]CheckFolder [15:42:50]dirname=/storage/ofd_packets [15:42:50]CheckFolder done [15:42:50]ProducePacketName [15:42:50]name=ofd_packets/00202039 [15:42:50]NVStorageSaveData ofd_packets/00202039 [15:42:50]File name is /storage/ofd_packets/00202039 [15:42:50]Write 298 bytes [15:42:50]NVStorageSaveData done [15:42:50]OFDSenderStorePacket done [15:42:50]KKMCreateOFDPacket done [15:42:50]NVStorageSaveData kkm_last_timestamp [15:42:50]File name is /storage/kkm_last_timestamp [15:42:50]Write 4 bytes [15:42:50]NVStorageSaveData done [15:42:50]ExternCall_PrintAddStr [15:42:50]wPrintStart [15:42:50]Write to MH i2c: 01 00 00 F5 2D 22 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 F5 2D 00 00 00 00 00 FF 0F 37 [15:42:50]RasterBufferAndPrint [15:42:50]line Счет N : (1)449805 [15:42:50]line ИНН: 02508201610067 [15:42:50]line Контрольно-Кассовый Чек [15:42:50]line ПРОДАЖА [15:42:50]line ТРК (МРК, ГНК) : 11 [15:42:50]line Товар: 2710194210 [15:42:50]line ДТ-К-2 [15:42:50]line 39.380 * 76.20 [15:42:50]line = 3000.76 [15:42:50]line НДС 12% НСП 1% [15:42:50]line > о реализуемом товаре [15:42:50]line ИТОГО: 3000.76 [15:42:50]line НСП 1% : 26.55 [15:42:50]line НДС 12% : 318.66 [15:42:50]line Наличными: 0.00 [15:42:50]line Безнал.: 3000.76 [15:42:50]line Место: АЗС № 171 "Партнер Нефть" [15:42:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:42:50]line СНО: Общий режим [15:42:50]line Чек 331 27.10.2024 15:42 [15:42:50]line Смена: 544 ФФД: 1.0 [15:42:50]line ЗНМ: 0300000109 [15:42:50]line РНМ: 0000000000091777 [15:42:50]line Версия ККМ: 001 [15:42:50]line Платежная система: Mbank [15:42:50]line ФМ: 0000000000871756 [15:42:50]line ФД: 202039 [15:42:50]line ФПД: 125729151553457 [15:42:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154250&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202039&fm=125729151553457&tin=02508201610067®Number=0000000000091777&sum=300076 [15:42:50]OFD Sender: Processing packet 202039 [packets to send 112, broken 111] [15:42:50]ProducePacketName [15:42:50]name=ofd_packets/00202039 [15:42:50]OFD Sender: To server: pG, [15:42:50]CommunicateWithHost lk.salyk.kg:30040 [15:42:50]ConnectInit lk.salyk.kg [15:42:50]written 0, free lines is 4095 [15:42:50]Connected sock=10 [15:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F2 CE 04 01 6B 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 7A 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 15 03 00 35 04 06 00 72 59 99 6A 8F B1 6A 93 70 72 AD C3 C9 3D [15:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B8 05 47 00 C2 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 15 03 00 F4 03 04 00 33 0B 1E 67 B6 04 01 00 00 6C 86 CC D1 BE B0 9E B6 [15:42:50]CommunicateWithHost err = 0 [15:42:50]CheckOFDResponse [15:42:50]1017 (14) - 77093643461234 [15:42:50]1041 (16) - 0000000000871756 [15:42:50]1040 (4) - 202039 [15:42:50]1012 (4) - 27.10.2024 09:43 [15:42:50]1206 (1) - 0 [15:42:50]OFD Sender: Remove packet 202039 [15:42:50]ProducePacketName [15:42:50]name=ofd_packets/00202039 [15:42:50]NVStorageDeleteData [15:42:50]Write to MH i2c: 01 00 00 1E 2E 4C [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: 01 07 00 1E 2E 00 00 00 00 00 B5 0C 14 [15:42:50]RasterBufferAndPrint [15:42:50]line [15:42:50]line [15:42:50]line [15:42:50]line [15:42:50]line [15:42:50]written 0, free lines is 3257 [15:42:50]MH_Cut [15:42:50]Write to MH i2c: D1 01 00 25 2E 01 25 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: D1 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: D1 01 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: D1 01 00 25 2E 00 24 [15:42:50]Write to MH i2c: 01 00 00 26 2E 54 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:51]OFD Sender: No OFD packet to send [15:42:51]*** Cut start [15:42:51]*** Purtial cut [15:42:51]*** Stage 1: CUTSNS_PIN = 1 [15:42:51]Read from MH i2c: 01 [15:42:51]MH_I2C_Read... [15:42:51]*** Stop cut motor [15:42:52]*** Cut end [15:42:52]Read from MH i2c: 01 07 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 26 2E 00 00 00 00 00 FF 0F 69 [15:42:52]process_action close_receipt done [15:42:52]requested_data is exist [15:42:52]produce_requested_data [15:42:52]requested_item fm.sn is exist - process it [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 11 00 00 [15:42:52]Write to MH i2c: E2 08 00 27 2E 80 11 00 00 00 00 00 00 CF [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 27 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 24 [15:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:42:52]wFMCommunicate OK [15:42:52]requested_item fd.num is exist - process it [15:42:52]SAM_PROTO_GetFieldsCounters [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 13 00 00 [15:42:52]Write to MH i2c: E2 08 00 28 2E 80 13 00 00 00 00 00 00 D2 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 62 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 62 00 28 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 37 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:42:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 37 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:52]wFMCommunicate OK [15:42:52]SAM_PROTO_GetFieldsCounters done [15:42:52]requested_item shift.num is exist - process it [15:42:52]requested_item shift.opened is exist - process it [15:42:52]req_shift_opened [15:42:52]FM_GetShiftState [15:42:52]SAM_PROTO_GetShiftState [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 13 01 00 [15:42:52]Write to MH i2c: E2 08 00 29 2E 80 13 01 00 00 00 00 00 D4 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 0E 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 0E 00 29 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D6 [15:42:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:42:52]wFMCommunicate OK [15:42:52]SAM_PROTO_GetShiftState done [15:42:52]FM_GetShiftState done [15:42:52]req_shift_opened done [15:42:52]requested_item shift.open_date is exist - process it [15:42:52]req_shift_open_date [15:42:52]req_shift_open_date done [15:42:52]produce_requested_data done [15:42:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202039,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:42:52]process_action_free close_receipt [15:42:52]json_value_free [15:42:52]json_value_free done [15:42:52]process_json_proto returns [15:42:52]Send response to host [15:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202039,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:42:52]free response buf [15:42:52]execute_script done [15:42:52]execute_script returns [15:42:52]free content buf [15:42:52]Sock 9.Close socket [15:42:52]Sock 9.Thread stoped [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:10]accept exits with 8 [15:43:10]New connection [15:43:10]New thread 3066498404 created [15:43:10]Thread 3066641764 joined [15:43:10]Waiting for new connection... [15:43:10] Sock 8.Parse request [15:43:10]Sock 8.Check first char [15:43:10]Sock 8.First char is OK [15:43:10]request: POST /json_proto HTTP/1.0 [15:43:10]Method: POST [15:43:10]URL: /json_proto [15:43:10]Method is POST - this is cgi request [15:43:10]url: /json_proto [15:43:10]query_string will be loaded in cgi processing [15:43:10]execute_cgi json_proto POST (null) [15:43:10]execute_cgi path=json_proto method=POST [15:43:10]POST find Content-Length [15:43:10]Host: 172.17.63.195:8080 [15:43:10]Content-Length: 682 [15:43:10]Content-Type: application/json [15:43:10] [15:43:10]POST finish read [15:43:10]Found Content-Length = 682 [15:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:10]execute_script... [15:43: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)449806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:10]POST & json_proto [15:43:10]process_json_proto [15:43:10]json parsed OK: [15:43:10]protocol is kg_v1.0 [15:43:10]action value=close_receipt [15:43:10]process_action close_receipt [15:43:10]cmd_close_receipt [15:43:10]MH_GetDate [15:43:10]Write to MH i2c: F0 00 00 2A 2E 47 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: F0 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: F0 09 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: F0 09 00 2A 2E 00 90 5F 1E 67 47 1B 1E 67 AB [15:43:10]GetLastDocTimeStamp 1730043770 [15:43:10]current date 1730043792 [15:43:10]FM_GetShiftState [15:43:10]SAM_PROTO_GetShiftState [15:43:10]wFMCommunicate request_size=4 [15:43:10]MH_SAM_APDU [15:43:10]CAPDU: 80 13 01 00 [15:43:10]Write to MH i2c: E2 08 00 2B 2E 80 13 01 00 00 00 00 00 D6 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:10]Read from MH i2c: E2 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 0E 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 0E 00 2B 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [15:43:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:43:10]wFMCommunicate OK [15:43:10]SAM_PROTO_GetShiftState done [15:43:10]FM_GetShiftState done [15:43:10]opened in 1729987312 [15:43:10]opened+sec_in_day 1730073712 [15:43:10]quantity*price = 100015 [15:43:10]sum+1 = 100017 [15:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 332 27.10.2024 15:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202040 ФПД: 80941969601407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154312&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202040&fm=80941969601407&tin=02508201610067®Number=0000000000091777&sum=100000 [15:43:11]StoreToDocumentArchive [15:43:11]shift 544 fd 202040 [15:43:11]save to /storage/0544/doc_00202040 [15:43:11]save last doc name /storage/0544/doc_00202040 to /storage/kkm_last_doc_name [15:43:11]save OK [15:43:11]Clear old archive folders... [15:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:11]tlvbuf is B6F0C630 [15:43:11]SAM_PROTO_ClearQueue [15:43:11]wFMCommunicate request_size=4 [15:43:11]MH_SAM_APDU [15:43:11]CAPDU: 80 09 00 00 [15:43:11]Write to MH i2c: E2 08 00 38 2E 80 09 00 00 00 00 00 00 D8 [15:43:11]Write i2c OK [15:43:11]MH_I2C_Read... [15:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:11]Read from MH i2c: E2 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 03 00 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 03 00 38 2E 00 90 00 DA [15:43:11]RAPDU: 90 00 [15:43:11]wFMCommunicate OK [15:43:11]SAM_PROTO_ClearQueue done [15:43:11]KKMCreateOFDPacket [15:43:11]OFDProtocolAddRootSTLVToBuf [15:43:11]FM_MakeSignedData [15:43:11]FM_MakeSignedData [15:43:11]SAM_PROTO_SignData [15:43:11]wFMCommunicate request_size=4 [15:43:11]MH_SAM_APDU [15:43:11]CAPDU: 80 0D 01 02 [15:43:11]Write to MH i2c: E2 08 00 39 2E 80 0D 01 02 00 00 00 00 E0 [15:43:11]Write i2c OK [15:43:11]MH_I2C_Read... [15:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:11]Read from MH i2c: E2 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 03 00 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 03 00 39 2E 00 90 00 DB [15:43:11]RAPDU: 90 00 [15:43:11]wFMCommunicate OK [15:43:11]wFMCommunicate request_size=255 [15:43:11]MH_SAM_APDU [15:43:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4C 01 00 00 F4 03 04 00 90 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 15 03 00 35 04 06 00 49 [15:43:11]Write to MH i2c: E2 02 01 3A 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4C 01 00 00 F4 03 04 00 90 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 15 03 00 35 04 06 00 49 00 00 EA [15:43:11]Write i2c OK [15:43:11]MH_I2C_Read... [15:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:12]Read from MH i2c: E2 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 03 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 03 00 3A 2E 00 90 00 DC [15:43:12]RAPDU: 90 00 [15:43:12]wFMCommunicate OK [15:43:12]wFMCommunicate request_size=10 [15:43:12]MH_SAM_APDU [15:43:12]CAPDU: 80 0D 02 02 05 9D C5 58 73 7F [15:43:12]Write to MH i2c: E2 0D 00 3B 2E 80 0D 02 02 05 00 9D C5 58 73 7F 00 00 99 [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:12]Read from MH i2c: E2 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 03 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 03 00 3B 2E 00 90 00 DD [15:43:12]RAPDU: 90 00 [15:43:12]wFMCommunicate OK [15:43:12]wFMCommunicate request_size=4 [15:43:12]MH_SAM_APDU [15:43:12]CAPDU: 80 0D 03 02 [15:43:12]Write to MH i2c: E2 08 00 3C 2E 80 0D 03 02 00 00 00 00 E5 [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:12]Read from MH i2c: E2 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 0B 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 0B 00 3C 2E 00 19 82 73 5C 66 89 09 20 90 00 68 [15:43:12]RAPDU: 19 82 73 5C 66 89 09 20 90 00 [15:43:12]wFMCommunicate OK [15:43:12]SAM_PROTO_SignData done [15:43:12]FM_MakeSignedData done [15:43:12]CreateOFDProtocolMessage [15:43:12]wFMCommunicate request_size=4 [15:43:12]MH_SAM_APDU [15:43:12]CAPDU: 80 11 00 00 [15:43:12]Write to MH i2c: E2 08 00 3D 2E 80 11 00 00 00 00 00 00 E5 [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:12]Read from MH i2c: E2 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 17 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: E2 17 00 3D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3A [15:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:43:12]wFMCommunicate OK [15:43:12]CreateOFDProtocolMessage done [15:43:12]OFDSenderStorePacket 202040 [15:43:12]StoreOFDPacket docnum=202040 [15:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 50 07 01 F7 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4C 01 00 00 F4 03 04 00 90 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 15 03 00 35 04 06 00 49 9D C5 58 73 7F 19 82 73 5C 66 89 09 20 [15:43:12]CheckFolder [15:43:12]dirname=/storage/ofd_packets [15:43:12]CheckFolder done [15:43:12]ProducePacketName [15:43:12]name=ofd_packets/00202040 [15:43:12]NVStorageSaveData ofd_packets/00202040 [15:43:12]File name is /storage/ofd_packets/00202040 [15:43:12]Write 301 bytes [15:43:12]NVStorageSaveData done [15:43:12]OFDSenderStorePacket done [15:43:12]KKMCreateOFDPacket done [15:43:12]NVStorageSaveData kkm_last_timestamp [15:43:12]File name is /storage/kkm_last_timestamp [15:43:12]Write 4 bytes [15:43:12]NVStorageSaveData done [15:43:12]ExternCall_PrintAddStr [15:43:12]wPrintStart [15:43:12]Write to MH i2c: 01 00 00 3E 2E 6C [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: 01 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: 01 07 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: 01 07 00 3E 2E 00 00 00 00 00 FF 0F 81 [15:43:12]RasterBufferAndPrint [15:43:12]line Счет N : (1)449806 [15:43:12]line ИНН: 02508201610067 [15:43:12]line Контрольно-Кассовый Чек [15:43:12]line ПРОДАЖА [15:43:12]line ТРК (МРК, ГНК) : 41 [15:43:12]line Товар: 2710124130 [15:43:12]line Аи-92-К-2 [15:43:12]line 14.950 * 66.90 [15:43:12]line = 1000.16 [15:43:12]line НДС 12% НСП 1% [15:43:12]line > о реализуемом товаре [15:43:12]line ОКРУГЛЕНИЕ: -0.16 [15:43:12]line ИТОГО: 1000.00 [15:43:12]line Внесено: 1000.00 [15:43:12]line СДАЧА: 0.00 [15:43:12]line НСП 1% : 8.85 [15:43:12]line НДС 12% : 106.21 [15:43:12]line Наличными: 1000.00 [15:43:12]line Безнал.: 0.00 [15:43:12]line Место: АЗС № 171 "Партнер Нефть" [15:43:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:43:12]line СНО: Общий режим [15:43:12]line Чек 332 27.10.2024 15:43 [15:43:12]line Смена: 544 ФФД: 1.0 [15:43:12]line ЗНМ: 0300000109 [15:43:12]line РНМ: 0000000000091777 [15:43:12]line Версия ККМ: 001 [15:43:12]line ФМ: 0000000000871756 [15:43:12]line ФД: 202040 [15:43:12]line ФПД: 80941969601407 [15:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154312&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202040&fm=80941969601407&tin=02508201610067®Number=0000000000091777&sum=100000 [15:43:12]OFD Sender: Processing packet 202040 [packets to send 112, broken 111] [15:43:12]ProducePacketName [15:43:12]name=ofd_packets/00202040 [15:43:12]OFD Sender: To server: pG, [15:43:12]CommunicateWithHost lk.salyk.kg:30040 [15:43:12]ConnectInit lk.salyk.kg [15:43:12]written 0, free lines is 4095 [15:43:12]Connected sock=10 [15:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 50 07 01 F7 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4C 01 00 00 F4 03 04 00 90 5F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 15 03 00 35 04 06 00 49 9D C5 58 73 7F 19 82 73 5C 66 89 09 20 [15:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B1 A3 47 00 1C AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 15 03 00 F4 03 04 00 49 0B 1E 67 B6 04 01 00 00 88 E8 38 EE 9E 53 DF EF [15:43:13]CommunicateWithHost err = 0 [15:43:13]CheckOFDResponse [15:43:13]1017 (14) - 77093643461234 [15:43:13]1041 (16) - 0000000000871756 [15:43:13]1040 (4) - 202040 [15:43:13]1012 (4) - 27.10.2024 09:43 [15:43:13]1206 (1) - 0 [15:43:13]OFD Sender: Remove packet 202040 [15:43:13]ProducePacketName [15:43:13]name=ofd_packets/00202040 [15:43:13]NVStorageDeleteData [15:43:13]Write to MH i2c: 01 00 00 69 2E 97 [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 07 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 07 00 69 2E 00 00 00 00 00 8A 0C 34 [15:43:13]RasterBufferAndPrint [15:43:13]line [15:43:13]line [15:43:13]line [15:43:13]line [15:43:13]line [15:43:13]written 0, free lines is 3215 [15:43:13]MH_Cut [15:43:13]Write to MH i2c: D1 01 00 70 2E 01 70 [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: D1 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: D1 01 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: D1 01 00 70 2E 00 6F [15:43:13]Write to MH i2c: 01 00 00 71 2E 9F [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]OFD Sender: No OFD packet to send [15:43:14]*** Cut start [15:43:14]*** Purtial cut [15:43:14]*** Stage 1: CUTSNS_PIN = 1 [15:43:14]Read from MH i2c: 01 [15:43:14]MH_I2C_Read... [15:43:14]*** Stop cut motor [15:43:14]*** Cut end [15:43:14]Read from MH i2c: 01 07 00 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: 01 07 00 71 2E 00 00 00 00 00 FF 0F B4 [15:43:14]process_action close_receipt done [15:43:14]requested_data is exist [15:43:14]produce_requested_data [15:43:14]requested_item fm.sn is exist - process it [15:43:14]wFMCommunicate request_size=4 [15:43:14]MH_SAM_APDU [15:43:14]CAPDU: 80 11 00 00 [15:43:14]Write to MH i2c: E2 08 00 72 2E 80 11 00 00 00 00 00 00 1A [15:43:14]Write i2c OK [15:43:14]MH_I2C_Read... [15:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:14]Read from MH i2c: E2 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 17 00 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 17 00 72 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6F [15:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:43:14]wFMCommunicate OK [15:43:14]requested_item fd.num is exist - process it [15:43:14]SAM_PROTO_GetFieldsCounters [15:43:14]wFMCommunicate request_size=4 [15:43:14]MH_SAM_APDU [15:43:14]CAPDU: 80 13 00 00 [15:43:14]Write to MH i2c: E2 08 00 73 2E 80 13 00 00 00 00 00 00 1D [15:43:14]Write i2c OK [15:43:14]MH_I2C_Read... [15:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:14]Read from MH i2c: E2 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 62 00 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 62 00 73 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 38 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [15:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 38 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:14]wFMCommunicate OK [15:43:14]SAM_PROTO_GetFieldsCounters done [15:43:14]requested_item shift.num is exist - process it [15:43:14]requested_item shift.opened is exist - process it [15:43:14]req_shift_opened [15:43:14]FM_GetShiftState [15:43:14]SAM_PROTO_GetShiftState [15:43:14]wFMCommunicate request_size=4 [15:43:14]MH_SAM_APDU [15:43:14]CAPDU: 80 13 01 00 [15:43:14]Write to MH i2c: E2 08 00 74 2E 80 13 01 00 00 00 00 00 1F [15:43:14]Write i2c OK [15:43:14]MH_I2C_Read... [15:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:14]Read from MH i2c: E2 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 0E 00 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 0E 00 74 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [15:43:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:43:14]wFMCommunicate OK [15:43:14]SAM_PROTO_GetShiftState done [15:43:14]FM_GetShiftState done [15:43:14]req_shift_opened done [15:43:14]requested_item shift.open_date is exist - process it [15:43:14]req_shift_open_date [15:43:14]req_shift_open_date done [15:43:14]produce_requested_data done [15:43:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202040,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:43:14]process_action_free close_receipt [15:43:14]json_value_free [15:43:14]json_value_free done [15:43:14]process_json_proto returns [15:43:14]Send response to host [15:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202040,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:43:14]free response buf [15:43:14]execute_script done [15:43:14]execute_script returns [15:43:14]free content buf [15:43:14]Sock 8.Close socket [15:43:14]Sock 8.Thread stoped [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:22]accept exits with 9 [15:45:22]New connection [15:45:22]New thread 3066641764 created [15:45:22]Thread 3066498404 joined [15:45:22]Waiting for new connection... [15:45:22] Sock 9.Parse request [15:45:22]Sock 9.Check first char [15:45:22]Sock 9.First char is OK [15:45:22]request: POST /json_proto HTTP/1.0 [15:45:22]Method: POST [15:45:22]URL: /json_proto [15:45:22]Method is POST - this is cgi request [15:45:22]url: /json_proto [15:45:22]query_string will be loaded in cgi processing [15:45:22]execute_cgi json_proto POST (null) [15:45:22]execute_cgi path=json_proto method=POST [15:45:22]POST find Content-Length [15:45:22]Host: 172.17.63.195:8080 [15:45:22]Content-Length: 769 [15:45:22]Content-Type: application/json [15:45:22] [15:45:22]POST finish read [15:45:22]Found Content-Length = 769 [15:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:22]execute_script... [15:45: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)449807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:22]POST & json_proto [15:45:22]process_json_proto [15:45:22]json parsed OK: [15:45:22]protocol is kg_v1.0 [15:45:22]action value=close_receipt [15:45:22]process_action close_receipt [15:45:22]cmd_close_receipt [15:45:22]MH_GetDate [15:45:22]Write to MH i2c: F0 00 00 75 2E 92 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: F0 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: F0 09 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: F0 09 00 75 2E 00 13 60 1E 67 47 1B 1E 67 7A [15:45:22]GetLastDocTimeStamp 1730043792 [15:45:22]current date 1730043923 [15:45:22]FM_GetShiftState [15:45:22]SAM_PROTO_GetShiftState [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 13 01 00 [15:45:22]Write to MH i2c: E2 08 00 76 2E 80 13 01 00 00 00 00 00 21 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0E 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0E 00 76 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 23 [15:45:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:45:22]wFMCommunicate OK [15:45:22]SAM_PROTO_GetShiftState done [15:45:22]FM_GetShiftState done [15:45:22]opened in 1729987312 [15:45:22]opened+sec_in_day 1730073712 [15:45:22]quantity*price = 100015 [15:45:22]sum+1 = 100017 [15:45:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 333 27.10.2024 15:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202041 ФПД: 133522329068303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154523&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202041&fm=133522329068303&tin=02508201610067®Number=0000000000091777&sum=100016 [15:45:23]StoreToDocumentArchive [15:45:23]shift 544 fd 202041 [15:45:23]save to /storage/0544/doc_00202041 [15:45:23]save last doc name /storage/0544/doc_00202041 to /storage/kkm_last_doc_name [15:45:23]save OK [15:45:23]Clear old archive folders... [15:45:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:23]tlvbuf is 0122A030 [15:45:23]SAM_PROTO_ClearQueue [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 09 00 00 [15:45:23]Write to MH i2c: E2 08 00 83 2E 80 09 00 00 00 00 00 00 23 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 83 2E 00 90 00 25 [15:45:23]RAPDU: 90 00 [15:45:23]wFMCommunicate OK [15:45:23]SAM_PROTO_ClearQueue done [15:45:23]KKMCreateOFDPacket [15:45:23]OFDProtocolAddRootSTLVToBuf [15:45:23]FM_MakeSignedData [15:45:23]FM_MakeSignedData [15:45:23]SAM_PROTO_SignData [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 0D 01 02 [15:45:23]Write to MH i2c: E2 08 00 84 2E 80 0D 01 02 00 00 00 00 2B [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 84 2E 00 90 00 26 [15:45:23]RAPDU: 90 00 [15:45:23]wFMCommunicate OK [15:45:23]wFMCommunicate request_size=255 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 01 00 00 F4 03 04 00 13 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 15 03 00 35 04 06 00 79 [15:45:23]Write to MH i2c: E2 02 01 85 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 01 00 00 F4 03 04 00 13 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 15 03 00 35 04 06 00 79 00 00 0B [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 85 2E 00 90 00 27 [15:45:23]RAPDU: 90 00 [15:45:23]wFMCommunicate OK [15:45:23]wFMCommunicate request_size=10 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 0D 02 02 05 70 16 FE 63 0F [15:45:23]Write to MH i2c: E2 0D 00 86 2E 80 0D 02 02 05 00 70 16 FE 63 0F 00 00 2E [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 86 2E 00 90 00 28 [15:45:23]RAPDU: 90 00 [15:45:23]wFMCommunicate OK [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 0D 03 02 [15:45:23]Write to MH i2c: E2 08 00 87 2E 80 0D 03 02 00 00 00 00 30 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]OFD Sender: No OFD packet to send [15:45:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 0B 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 0B 00 87 2E 00 BA B4 72 A9 64 FF 60 B9 90 00 36 [15:45:23]RAPDU: BA B4 72 A9 64 FF 60 B9 90 00 [15:45:23]wFMCommunicate OK [15:45:23]SAM_PROTO_SignData done [15:45:23]FM_MakeSignedData done [15:45:23]CreateOFDProtocolMessage [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 11 00 00 [15:45:23]Write to MH i2c: E2 08 00 88 2E 80 11 00 00 00 00 00 00 30 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 17 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 17 00 88 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 85 [15:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:45:23]wFMCommunicate OK [15:45:23]CreateOFDProtocolMessage done [15:45:23]OFDSenderStorePacket 202041 [15:45:23]StoreOFDPacket docnum=202041 [15:45:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8D C3 07 01 93 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 01 00 00 F4 03 04 00 13 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 15 03 00 35 04 06 00 79 70 16 FE 63 0F BA B4 72 A9 64 FF 60 B9 [15:45:23]CheckFolder [15:45:23]dirname=/storage/ofd_packets [15:45:23]CheckFolder done [15:45:23]ProducePacketName [15:45:23]name=ofd_packets/00202041 [15:45:23]NVStorageSaveData ofd_packets/00202041 [15:45:23]File name is /storage/ofd_packets/00202041 [15:45:23]Write 301 bytes [15:45:23]NVStorageSaveData done [15:45:23]OFDSenderStorePacket done [15:45:23]KKMCreateOFDPacket done [15:45:23]NVStorageSaveData kkm_last_timestamp [15:45:23]File name is /storage/kkm_last_timestamp [15:45:23]Write 4 bytes [15:45:23]NVStorageSaveData done [15:45:23]ExternCall_PrintAddStr [15:45:23]wPrintStart [15:45:23]Write to MH i2c: 01 00 00 89 2E B7 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 07 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 07 00 89 2E 00 00 00 00 00 FF 0F CC [15:45:23]RasterBufferAndPrint [15:45:23]line Счет N : (1)449807 [15:45:23]line ИНН: 02508201610067 [15:45:23]line Контрольно-Кассовый Чек [15:45:23]line ПРОДАЖА [15:45:23]line ТРК (МРК, ГНК) : 62 [15:45:23]line Товар: 2710124130 [15:45:23]line Аи-92-К-2 [15:45:23]line 14.950 * 66.90 [15:45:23]line = 1000.16 [15:45:23]line НДС 12% НСП 1% [15:45:23]line > о реализуемом товаре [15:45:23]line ИТОГО: 1000.16 [15:45:23]line НСП 1% : 8.85 [15:45:23]line НДС 12% : 106.21 [15:45:23]line Наличными: 0.00 [15:45:23]line Безнал.: 1000.16 [15:45:23]line Место: АЗС № 171 "Партнер Нефть" [15:45:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:45:23]line СНО: Общий режим [15:45:23]line Чек 333 27.10.2024 15:45 [15:45:23]line Смена: 544 ФФД: 1.0 [15:45:23]line ЗНМ: 0300000109 [15:45:23]line РНМ: 0000000000091777 [15:45:23]line Версия ККМ: 001 [15:45:23]line Платежная система: Mbank [15:45:23]line ФМ: 0000000000871756 [15:45:23]line ФД: 202041 [15:45:23]line ФПД: 133522329068303 [15:45:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154523&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202041&fm=133522329068303&tin=02508201610067®Number=0000000000091777&sum=100016 [15:45:24]OFD Sender: Processing packet 202041 [packets to send 112, broken 111] [15:45:24]ProducePacketName [15:45:24]name=ofd_packets/00202041 [15:45:24]OFD Sender: To server: pG, [15:45:24]CommunicateWithHost lk.salyk.kg:30040 [15:45:24]ConnectInit lk.salyk.kg [15:45:24]written 0, free lines is 4095 [15:45:24]Connected sock=11 [15:45:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8D C3 07 01 93 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4D 01 00 00 F4 03 04 00 13 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 15 03 00 35 04 06 00 79 70 16 FE 63 0F BA B4 72 A9 64 FF 60 B9 [15:45:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 47 CC 47 00 00 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 15 03 00 F4 03 04 00 CD 0B 1E 67 B6 04 01 00 00 5C C4 5C C4 59 9E 88 5D [15:45:24]CommunicateWithHost err = 0 [15:45:24]CheckOFDResponse [15:45:24]1017 (14) - 77093643461234 [15:45:24]1041 (16) - 0000000000871756 [15:45:24]1040 (4) - 202041 [15:45:24]1012 (4) - 27.10.2024 09:45 [15:45:24]1206 (1) - 0 [15:45:24]OFD Sender: Remove packet 202041 [15:45:24]ProducePacketName [15:45:24]name=ofd_packets/00202041 [15:45:24]NVStorageDeleteData [15:45:24]Write to MH i2c: 01 00 00 B2 2E E0 [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: 01 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: 01 07 00 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: 01 07 00 B2 2E 00 00 00 00 00 B7 0C AA [15:45:24]RasterBufferAndPrint [15:45:24]line [15:45:24]line [15:45:24]line [15:45:24]line [15:45:24]line [15:45:24]written 0, free lines is 3259 [15:45:24]MH_Cut [15:45:24]Write to MH i2c: D1 01 00 B9 2E 01 B9 [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: D1 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: D1 01 00 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: D1 01 00 B9 2E 00 B8 [15:45:24]Write to MH i2c: 01 00 00 BA 2E E8 [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:24]OFD Sender: No OFD packet to send [15:45:25]*** Cut start [15:45:25]*** Purtial cut [15:45:25]*** Stage 1: CUTSNS_PIN = 1 [15:45:25]Read from MH i2c: 01 [15:45:25]MH_I2C_Read... [15:45:25]*** Stop cut motor [15:45:25]*** Cut end [15:45:25]Read from MH i2c: 01 07 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: 01 07 00 BA 2E 00 00 00 00 00 FF 0F FD [15:45:25]process_action close_receipt done [15:45:25]requested_data is exist [15:45:25]produce_requested_data [15:45:25]requested_item fm.sn is exist - process it [15:45:25]wFMCommunicate request_size=4 [15:45:25]MH_SAM_APDU [15:45:25]CAPDU: 80 11 00 00 [15:45:25]Write to MH i2c: E2 08 00 BB 2E 80 11 00 00 00 00 00 00 63 [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:25]Read from MH i2c: E2 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 17 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 17 00 BB 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [15:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:45:25]wFMCommunicate OK [15:45:25]requested_item fd.num is exist - process it [15:45:25]SAM_PROTO_GetFieldsCounters [15:45:25]wFMCommunicate request_size=4 [15:45:25]MH_SAM_APDU [15:45:25]CAPDU: 80 13 00 00 [15:45:25]Write to MH i2c: E2 08 00 BC 2E 80 13 00 00 00 00 00 00 66 [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:25]Read from MH i2c: E2 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 62 00 [15:45:25]MH_I2C_Read... [15:45:25]Read from MH i2c: E2 62 00 BC 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 39 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [15:45:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 39 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:25]wFMCommunicate OK [15:45:25]SAM_PROTO_GetFieldsCounters done [15:45:25]requested_item shift.num is exist - process it [15:45:25]requested_item shift.opened is exist - process it [15:45:25]req_shift_opened [15:45:25]FM_GetShiftState [15:45:25]SAM_PROTO_GetShiftState [15:45:25]wFMCommunicate request_size=4 [15:45:25]MH_SAM_APDU [15:45:25]CAPDU: 80 13 01 00 [15:45:25]Write to MH i2c: E2 08 00 BD 2E 80 13 01 00 00 00 00 00 68 [15:45:25]Write i2c OK [15:45:25]MH_I2C_Read... [15:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 0E 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 0E 00 BD 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6A [15:45:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:45:26]wFMCommunicate OK [15:45:26]SAM_PROTO_GetShiftState done [15:45:26]FM_GetShiftState done [15:45:26]req_shift_opened done [15:45:26]requested_item shift.open_date is exist - process it [15:45:26]req_shift_open_date [15:45:26]req_shift_open_date done [15:45:26]produce_requested_data done [15:45:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202041,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:45:26]process_action_free close_receipt [15:45:26]json_value_free [15:45:26]json_value_free done [15:45:26]process_json_proto returns [15:45:26]Send response to host [15:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202041,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:45:26]free response buf [15:45:26]execute_script done [15:45:26]execute_script returns [15:45:26]free content buf [15:45:26]Sock 9.Close socket [15:45:26]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [15:45:52]accept exits with 10 [15:45:52]New connection [15:45:52]New thread 3066498404 created [15:45:52]Thread 3066641764 joined [15:45:52]Waiting for new connection... [15:45:52] Sock 10.Parse request [15:45:52]Sock 10.Check first char [15:45:52]Sock 10.First char is OK [15:45:52]request: POST /json_proto HTTP/1.0 [15:45:52]Method: POST [15:45:52]URL: /json_proto [15:45:52]Method is POST - this is cgi request [15:45:52]url: /json_proto [15:45:52]query_string will be loaded in cgi processing [15:45:52]execute_cgi json_proto POST (null) [15:45:52]execute_cgi path=json_proto method=POST [15:45:52]POST find Content-Length [15:45:52]Host: 172.17.63.195:8080 [15:45:52]Content-Length: 677 [15:45:52]Content-Type: application/json [15:45:52] [15:45:52]POST finish read [15:45:52]Found Content-Length = 677 [15:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:52]execute_script... [15:45:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:52]POST & json_proto [15:45:52]process_json_proto [15:45:52]json parsed OK: [15:45:52]protocol is kg_v1.0 [15:45:52]action value=close_receipt [15:45:52]process_action close_receipt [15:45:52]cmd_close_receipt [15:45:52]MH_GetDate [15:45:52]Write to MH i2c: F0 00 00 BE 2E DB [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: F0 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: F0 09 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: F0 09 00 BE 2E 00 31 60 1E 67 47 1B 1E 67 E1 [15:45:52]GetLastDocTimeStamp 1730043923 [15:45:52]current date 1730043953 [15:45:52]FM_GetShiftState [15:45:52]SAM_PROTO_GetShiftState [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 13 01 00 [15:45:52]Write to MH i2c: E2 08 00 BF 2E 80 13 01 00 00 00 00 00 6A [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 0E 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 0E 00 BF 2E 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [15:45:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:45:52]wFMCommunicate OK [15:45:52]SAM_PROTO_GetShiftState done [15:45:52]FM_GetShiftState done [15:45:52]opened in 1729987312 [15:45:52]opened+sec_in_day 1730073712 [15:45:52]quantity*price = 50041 [15:45:52]sum+1 = 50042 [15:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 334 27.10.2024 15:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202042 ФПД: 203097886882354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154553&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202042&fm=203097886882354&tin=02508201610067®Number=0000000000091777&sum=50000 [15:45:53]StoreToDocumentArchive [15:45:53]shift 544 fd 202042 [15:45:53]save to /storage/0544/doc_00202042 [15:45:53]save last doc name /storage/0544/doc_00202042 to /storage/kkm_last_doc_name [15:45:53]save OK [15:45:53]Clear old archive folders... [15:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:53]tlvbuf is 0125B2E0 [15:45:53]SAM_PROTO_ClearQueue [15:45:53]wFMCommunicate request_size=4 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 09 00 00 [15:45:53]Write to MH i2c: E2 08 00 CC 2E 80 09 00 00 00 00 00 00 6C [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 03 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 03 00 CC 2E 00 90 00 6E [15:45:53]RAPDU: 90 00 [15:45:53]wFMCommunicate OK [15:45:53]SAM_PROTO_ClearQueue done [15:45:53]KKMCreateOFDPacket [15:45:53]OFDProtocolAddRootSTLVToBuf [15:45:53]FM_MakeSignedData [15:45:53]FM_MakeSignedData [15:45:53]SAM_PROTO_SignData [15:45:53]wFMCommunicate request_size=4 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 0D 01 02 [15:45:53]Write to MH i2c: E2 08 00 CD 2E 80 0D 01 02 00 00 00 00 74 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 03 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 03 00 CD 2E 00 90 00 6F [15:45:53]RAPDU: 90 00 [15:45:53]wFMCommunicate OK [15:45:53]wFMCommunicate request_size=255 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4E 01 00 00 F4 03 04 00 31 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 15 03 00 35 04 06 00 B8 [15:45:53]Write to MH i2c: E2 02 01 CE 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4E 01 00 00 F4 03 04 00 31 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 15 03 00 35 04 06 00 B8 00 00 99 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 03 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 03 00 CE 2E 00 90 00 70 [15:45:53]RAPDU: 90 00 [15:45:53]wFMCommunicate OK [15:45:53]wFMCommunicate request_size=10 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 0D 02 02 05 B7 69 66 FA 32 [15:45:53]Write to MH i2c: E2 0D 00 CF 2E 80 0D 02 02 05 00 B7 69 66 FA 32 00 00 33 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:53]Read from MH i2c: E2 03 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 03 00 CF 2E 00 90 00 71 [15:45:53]RAPDU: 90 00 [15:45:53]wFMCommunicate OK [15:45:53]wFMCommunicate request_size=4 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 0D 03 02 [15:45:53]Write to MH i2c: E2 08 00 D0 2E 80 0D 03 02 00 00 00 00 79 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 0B 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 0B 00 D0 2E 00 B6 85 22 F1 2D 01 CD 2C 90 00 EF [15:45:54]RAPDU: B6 85 22 F1 2D 01 CD 2C 90 00 [15:45:54]wFMCommunicate OK [15:45:54]SAM_PROTO_SignData done [15:45:54]FM_MakeSignedData done [15:45:54]CreateOFDProtocolMessage [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 11 00 00 [15:45:54]Write to MH i2c: E2 08 00 D1 2E 80 11 00 00 00 00 00 00 79 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 17 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 17 00 D1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [15:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:45:54]wFMCommunicate OK [15:45:54]CreateOFDProtocolMessage done [15:45:54]OFDSenderStorePacket 202042 [15:45:54]StoreOFDPacket docnum=202042 [15:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 42 09 07 01 1E 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4E 01 00 00 F4 03 04 00 31 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 15 03 00 35 04 06 00 B8 B7 69 66 FA 32 B6 85 22 F1 2D 01 CD 2C [15:45:54]CheckFolder [15:45:54]dirname=/storage/ofd_packets [15:45:54]CheckFolder done [15:45:54]ProducePacketName [15:45:54]name=ofd_packets/00202042 [15:45:54]NVStorageSaveData ofd_packets/00202042 [15:45:54]File name is /storage/ofd_packets/00202042 [15:45:54]Write 301 bytes [15:45:54]NVStorageSaveData done [15:45:54]OFDSenderStorePacket done [15:45:54]KKMCreateOFDPacket done [15:45:54]NVStorageSaveData kkm_last_timestamp [15:45:54]File name is /storage/kkm_last_timestamp [15:45:54]Write 4 bytes [15:45:54]NVStorageSaveData done [15:45:54]ExternCall_PrintAddStr [15:45:54]wPrintStart [15:45:54]Write to MH i2c: 01 00 00 D2 2E 00 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 07 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 07 00 D2 2E 00 00 00 00 00 FF 0F 15 [15:45:54]RasterBufferAndPrint [15:45:54]line Счет N : (1)449808 [15:45:54]line ИНН: 02508201610067 [15:45:54]line Контрольно-Кассовый Чек [15:45:54]line ПРОДАЖА [15:45:54]line ТРК (МРК, ГНК) : 41 [15:45:54]line Товар: 2710124130 [15:45:54]line Аи-92-К-2 [15:45:54]line 7.480 * 66.90 [15:45:54]line = 500.41 [15:45:54]line НДС 12% НСП 1% [15:45:54]line > о реализуемом товаре [15:45:54]line ОКРУГЛЕНИЕ: -0.41 [15:45:54]line ИТОГО: 500.00 [15:45:54]line Внесено: 500.00 [15:45:54]line СДАЧА: 0.00 [15:45:54]line НСП 1% : 4.43 [15:45:54]line НДС 12% : 53.14 [15:45:54]line Наличными: 500.00 [15:45:54]line Безнал.: 0.00 [15:45:54]line Место: АЗС № 171 "Партнер Нефть" [15:45:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:45:54]line СНО: Общий режим [15:45:54]line Чек 334 27.10.2024 15:45 [15:45:54]line Смена: 544 ФФД: 1.0 [15:45:54]line ЗНМ: 0300000109 [15:45:54]line РНМ: 0000000000091777 [15:45:54]line Версия ККМ: 001 [15:45:54]line ФМ: 0000000000871756 [15:45:54]line ФД: 202042 [15:45:54]line ФПД: 203097886882354 [15:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154553&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202042&fm=203097886882354&tin=02508201610067®Number=0000000000091777&sum=50000 [15:45:54]OFD Sender: Processing packet 202042 [packets to send 112, broken 111] [15:45:54]ProducePacketName [15:45:54]name=ofd_packets/00202042 [15:45:54]written 0, free lines is 4095 [15:45:54]OFD Sender: To server: pG, [15:45:54]CommunicateWithHost lk.salyk.kg:30040 [15:45:54]ConnectInit lk.salyk.kg [15:45:54]Connected sock=11 [15:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 42 09 07 01 1E 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4E 01 00 00 F4 03 04 00 31 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 15 03 00 35 04 06 00 B8 B7 69 66 FA 32 B6 85 22 F1 2D 01 CD 2C [15:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 79 4C 47 00 28 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 15 03 00 F4 03 04 00 EB 0B 1E 67 B6 04 01 00 00 2D 59 D9 11 A0 27 C5 41 [15:45:54]CommunicateWithHost err = 0 [15:45:54]CheckOFDResponse [15:45:54]1017 (14) - 77093643461234 [15:45:54]1041 (16) - 0000000000871756 [15:45:54]1040 (4) - 202042 [15:45:54]1012 (4) - 27.10.2024 09:46 [15:45:54]1206 (1) - 0 [15:45:54]OFD Sender: Remove packet 202042 [15:45:54]ProducePacketName [15:45:54]name=ofd_packets/00202042 [15:45:54]NVStorageDeleteData [15:45:54]Write to MH i2c: 01 00 00 FD 2E 2B [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 07 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 07 00 FD 2E 00 00 00 00 00 98 0C D6 [15:45:54]RasterBufferAndPrint [15:45:54]line [15:45:54]line [15:45:54]line [15:45:54]line [15:45:54]line [15:45:54]written 0, free lines is 3239 [15:45:54]MH_Cut [15:45:54]Write to MH i2c: D1 01 00 04 2F 01 05 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: D1 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: D1 01 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: D1 01 00 04 2F 00 04 [15:45:54]Write to MH i2c: 01 00 00 05 2F 34 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:55]OFD Sender: No OFD packet to send [15:45:55]*** Cut start [15:45:55]*** Purtial cut [15:45:55]*** Stage 1: CUTSNS_PIN = 1 [15:45:56]Read from MH i2c: 01 [15:45:56]MH_I2C_Read... [15:45:56]*** Stop cut motor [15:45:56]*** Cut end [15:45:56]Read from MH i2c: 01 07 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: 01 07 00 05 2F 00 00 00 00 00 FF 0F 49 [15:45:56]process_action close_receipt done [15:45:56]requested_data is exist [15:45:56]produce_requested_data [15:45:56]requested_item fm.sn is exist - process it [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 11 00 00 [15:45:56]Write to MH i2c: E2 08 00 06 2F 80 11 00 00 00 00 00 00 AF [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 17 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 17 00 06 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [15:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:45:56]wFMCommunicate OK [15:45:56]requested_item fd.num is exist - process it [15:45:56]SAM_PROTO_GetFieldsCounters [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 13 00 00 [15:45:56]Write to MH i2c: E2 08 00 07 2F 80 13 00 00 00 00 00 00 B2 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 62 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 62 00 07 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [15:45:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:56]wFMCommunicate OK [15:45:56]SAM_PROTO_GetFieldsCounters done [15:45:56]requested_item shift.num is exist - process it [15:45:56]requested_item shift.opened is exist - process it [15:45:56]req_shift_opened [15:45:56]FM_GetShiftState [15:45:56]SAM_PROTO_GetShiftState [15:45:56]wFMCommunicate request_size=4 [15:45:56]MH_SAM_APDU [15:45:56]CAPDU: 80 13 01 00 [15:45:56]Write to MH i2c: E2 08 00 08 2F 80 13 01 00 00 00 00 00 B4 [15:45:56]Write i2c OK [15:45:56]MH_I2C_Read... [15:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:56]Read from MH i2c: E2 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 0E 00 [15:45:56]MH_I2C_Read... [15:45:56]Read from MH i2c: E2 0E 00 08 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B6 [15:45:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:45:56]wFMCommunicate OK [15:45:56]SAM_PROTO_GetShiftState done [15:45:56]FM_GetShiftState done [15:45:56]req_shift_opened done [15:45:56]requested_item shift.open_date is exist - process it [15:45:56]req_shift_open_date [15:45:56]req_shift_open_date done [15:45:56]produce_requested_data done [15:45:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202042,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:45:56]process_action_free close_receipt [15:45:56]json_value_free [15:45:56]json_value_free done [15:45:56]process_json_proto returns [15:45:56]Send response to host [15:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202042,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:45:56]free response buf [15:45:56]execute_script done [15:45:56]execute_script returns [15:45:56]free content buf [15:45:56]Sock 10.Close socket [15:45:56]Sock 10.Thread stoped [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:31]ConnectInit Can't connect to host [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:02]accept exits with 9 [15:47:02]New connection [15:47:02]New thread 3066641764 created [15:47:02]Thread 3066498404 joined [15:47:02]Waiting for new connection... [15:47:02] Sock 9.Parse request [15:47:02]Sock 9.Check first char [15:47:02]Sock 9.First char is OK [15:47:02]request: POST /json_proto HTTP/1.0 [15:47:02]Method: POST [15:47:02]URL: /json_proto [15:47:02]Method is POST - this is cgi request [15:47:02]url: /json_proto [15:47:02]query_string will be loaded in cgi processing [15:47:02]execute_cgi json_proto POST (null) [15:47:02]execute_cgi path=json_proto method=POST [15:47:02]POST find Content-Length [15:47:02]Host: 172.17.63.195:8080 [15:47:02]Content-Length: 769 [15:47:02]Content-Type: application/json [15:47:02] [15:47:02]POST finish read [15:47:02]Found Content-Length = 769 [15:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [15:47:02]execute_script... [15:47: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)449809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [15:47:02]POST & json_proto [15:47:02]process_json_proto [15:47:02]json parsed OK: [15:47:02]protocol is kg_v1.0 [15:47:02]action value=close_receipt [15:47:02]process_action close_receipt [15:47:02]cmd_close_receipt [15:47:02]MH_GetDate [15:47:02]Write to MH i2c: F0 00 00 09 2F 27 [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: F0 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: F0 09 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: F0 09 00 09 2F 00 78 60 1E 67 47 1B 1E 67 74 [15:47:02]GetLastDocTimeStamp 1730043953 [15:47:02]current date 1730044024 [15:47:02]FM_GetShiftState [15:47:02]SAM_PROTO_GetShiftState [15:47:02]wFMCommunicate request_size=4 [15:47:02]MH_SAM_APDU [15:47:02]CAPDU: 80 13 01 00 [15:47:02]Write to MH i2c: E2 08 00 0A 2F 80 13 01 00 00 00 00 00 B6 [15:47:02]Write i2c OK [15:47:02]MH_I2C_Read... [15:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:02]Read from MH i2c: E2 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 0E 00 [15:47:02]MH_I2C_Read... [15:47:02]Read from MH i2c: E2 0E 00 0A 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [15:47:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:47:02]wFMCommunicate OK [15:47:02]SAM_PROTO_GetShiftState done [15:47:02]FM_GetShiftState done [15:47:02]opened in 1729987312 [15:47:02]opened+sec_in_day 1730073712 [15:47:02]quantity*price = 150032 [15:47:02]sum+1 = 150033 [15:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 335 27.10.2024 15:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202043 ФПД: 155550322145705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154704&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202043&fm=155550322145705&tin=02508201610067®Number=0000000000091777&sum=150032 [15:47:03]StoreToDocumentArchive [15:47:03]shift 544 fd 202043 [15:47:03]save to /storage/0544/doc_00202043 [15:47:03]save last doc name /storage/0544/doc_00202043 to /storage/kkm_last_doc_name [15:47:03]save OK [15:47:03]Clear old archive folders... [15:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:03]tlvbuf is B6D5C5C0 [15:47:03]SAM_PROTO_ClearQueue [15:47:03]wFMCommunicate request_size=4 [15:47:03]MH_SAM_APDU [15:47:03]CAPDU: 80 09 00 00 [15:47:03]Write to MH i2c: E2 08 00 17 2F 80 09 00 00 00 00 00 00 B8 [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:03]Read from MH i2c: E2 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 03 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 03 00 17 2F 00 90 00 BA [15:47:03]RAPDU: 90 00 [15:47:03]wFMCommunicate OK [15:47:03]SAM_PROTO_ClearQueue done [15:47:03]KKMCreateOFDPacket [15:47:03]OFDProtocolAddRootSTLVToBuf [15:47:03]FM_MakeSignedData [15:47:03]FM_MakeSignedData [15:47:03]SAM_PROTO_SignData [15:47:03]wFMCommunicate request_size=4 [15:47:03]MH_SAM_APDU [15:47:03]CAPDU: 80 0D 01 02 [15:47:03]Write to MH i2c: E2 08 00 18 2F 80 0D 01 02 00 00 00 00 C0 [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:03]Read from MH i2c: E2 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 03 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 03 00 18 2F 00 90 00 BB [15:47:03]RAPDU: 90 00 [15:47:03]wFMCommunicate OK [15:47:03]wFMCommunicate request_size=255 [15:47:03]MH_SAM_APDU [15:47:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 4F 01 00 00 F4 03 04 00 78 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 15 03 00 35 04 06 00 8D [15:47:03]Write to MH i2c: E2 02 01 19 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 4F 01 00 00 F4 03 04 00 78 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 15 03 00 35 04 06 00 8D 00 00 A9 [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 19 2F 00 90 00 BC [15:47:04]RAPDU: 90 00 [15:47:04]wFMCommunicate OK [15:47:04]wFMCommunicate request_size=10 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 0D 02 02 05 78 E1 B2 39 A9 [15:47:04]Write to MH i2c: E2 0D 00 1A 2F 80 0D 02 02 05 00 78 E1 B2 39 A9 00 00 BA [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 1A 2F 00 90 00 BD [15:47:04]RAPDU: 90 00 [15:47:04]wFMCommunicate OK [15:47:04]wFMCommunicate request_size=4 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 0D 03 02 [15:47:04]Write to MH i2c: E2 08 00 1B 2F 80 0D 03 02 00 00 00 00 C5 [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 0B 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 0B 00 1B 2F 00 4D 63 18 F8 6A 1B 47 44 90 00 96 [15:47:04]RAPDU: 4D 63 18 F8 6A 1B 47 44 90 00 [15:47:04]wFMCommunicate OK [15:47:04]SAM_PROTO_SignData done [15:47:04]FM_MakeSignedData done [15:47:04]CreateOFDProtocolMessage [15:47:04]wFMCommunicate request_size=4 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 11 00 00 [15:47:04]Write to MH i2c: E2 08 00 1C 2F 80 11 00 00 00 00 00 00 C5 [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 17 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 17 00 1C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1A [15:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:47:04]wFMCommunicate OK [15:47:04]CreateOFDProtocolMessage done [15:47:04]OFDSenderStorePacket 202043 [15:47:04]StoreOFDPacket docnum=202043 [15:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C2 97 07 01 D4 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 4F 01 00 00 F4 03 04 00 78 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 15 03 00 35 04 06 00 8D 78 E1 B2 39 A9 4D 63 18 F8 6A 1B 47 44 [15:47:04]CheckFolder [15:47:04]dirname=/storage/ofd_packets [15:47:04]CheckFolder done [15:47:04]ProducePacketName [15:47:04]name=ofd_packets/00202043 [15:47:04]NVStorageSaveData ofd_packets/00202043 [15:47:04]File name is /storage/ofd_packets/00202043 [15:47:04]Write 301 bytes [15:47:04]NVStorageSaveData done [15:47:04]OFDSenderStorePacket done [15:47:04]KKMCreateOFDPacket done [15:47:04]NVStorageSaveData kkm_last_timestamp [15:47:04]File name is /storage/kkm_last_timestamp [15:47:04]Write 4 bytes [15:47:04]NVStorageSaveData done [15:47:04]ExternCall_PrintAddStr [15:47:04]wPrintStart [15:47:04]Write to MH i2c: 01 00 00 1D 2F 4C [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 07 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 07 00 1D 2F 00 00 00 00 00 FF 0F 61 [15:47:04]RasterBufferAndPrint [15:47:04]line Счет N : (1)449809 [15:47:04]line ИНН: 02508201610067 [15:47:04]line Контрольно-Кассовый Чек [15:47:04]line ПРОДАЖА [15:47:04]line ТРК (МРК, ГНК) : 51 [15:47:04]line Товар: 2710124500 [15:47:04]line Аи-95-К-3 [15:47:04]line 20.220 * 74.20 [15:47:04]line = 1500.32 [15:47:04]line НДС 12% НСП 1% [15:47:04]line > о реализуемом товаре [15:47:04]line ИТОГО: 1500.32 [15:47:04]line НСП 1% : 13.28 [15:47:04]line НДС 12% : 159.33 [15:47:04]line Наличными: 0.00 [15:47:04]line Безнал.: 1500.32 [15:47:04]line Место: АЗС № 171 "Партнер Нефть" [15:47:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:47:04]line СНО: Общий режим [15:47:04]line Чек 335 27.10.2024 15:47 [15:47:04]line Смена: 544 ФФД: 1.0 [15:47:04]line ЗНМ: 0300000109 [15:47:04]line РНМ: 0000000000091777 [15:47:04]line Версия ККМ: 001 [15:47:04]line Платежная система: Mbank [15:47:04]line ФМ: 0000000000871756 [15:47:04]line ФД: 202043 [15:47:04]line ФПД: 155550322145705 [15:47:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154704&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202043&fm=155550322145705&tin=02508201610067®Number=0000000000091777&sum=150032 [15:47:04]written 0, free lines is 4095 [15:47:04]OFD Sender: Processing packet 202043 [packets to send 112, broken 111] [15:47:04]ProducePacketName [15:47:04]name=ofd_packets/00202043 [15:47:04]OFD Sender: To server: pG, [15:47:04]CommunicateWithHost lk.salyk.kg:30040 [15:47:04]ConnectInit lk.salyk.kg [15:47:04]Connected sock=10 [15:47:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C2 97 07 01 D4 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 4F 01 00 00 F4 03 04 00 78 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 15 03 00 35 04 06 00 8D 78 E1 B2 39 A9 4D 63 18 F8 6A 1B 47 44 [15:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 48 EE 47 00 BF 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 15 03 00 F4 03 04 00 31 0C 1E 67 B6 04 01 00 00 2A D9 B8 76 CA 91 3A 08 [15:47:04]CommunicateWithHost err = 0 [15:47:04]CheckOFDResponse [15:47:04]1017 (14) - 77093643461234 [15:47:04]1041 (16) - 0000000000871756 [15:47:04]1040 (4) - 202043 [15:47:04]1012 (4) - 27.10.2024 09:47 [15:47:04]1206 (1) - 0 [15:47:04]OFD Sender: Remove packet 202043 [15:47:04]ProducePacketName [15:47:04]name=ofd_packets/00202043 [15:47:04]NVStorageDeleteData [15:47:04]Write to MH i2c: 01 00 00 46 2F 75 [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 07 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: 01 07 00 46 2F 00 00 00 00 00 BB 0C 43 [15:47:04]RasterBufferAndPrint [15:47:04]line [15:47:04]line [15:47:04]line [15:47:04]line [15:47:04]line [15:47:04]written 0, free lines is 3264 [15:47:04]MH_Cut [15:47:04]Write to MH i2c: D1 01 00 4D 2F 01 4E [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: D1 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: D1 01 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: D1 01 00 4D 2F 00 4D [15:47:04]Write to MH i2c: 01 00 00 4E 2F 7D [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:05]OFD Sender: No OFD packet to send [15:47:05]*** Cut start [15:47:05]*** Purtial cut [15:47:05]*** Stage 1: CUTSNS_PIN = 1 [15:47:05]Read from MH i2c: 01 [15:47:05]MH_I2C_Read... [15:47:05]*** Stop cut motor [15:47:05]*** Cut end [15:47:05]Read from MH i2c: 01 07 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 4E 2F 00 00 00 00 00 FF 0F 92 [15:47:05]process_action close_receipt done [15:47:05]requested_data is exist [15:47:05]produce_requested_data [15:47:05]requested_item fm.sn is exist - process it [15:47:05]wFMCommunicate request_size=4 [15:47:05]MH_SAM_APDU [15:47:05]CAPDU: 80 11 00 00 [15:47:05]Write to MH i2c: E2 08 00 4F 2F 80 11 00 00 00 00 00 00 F8 [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 17 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 17 00 4F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4D [15:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:47:06]wFMCommunicate OK [15:47:06]requested_item fd.num is exist - process it [15:47:06]SAM_PROTO_GetFieldsCounters [15:47:06]wFMCommunicate request_size=4 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 13 00 00 [15:47:06]Write to MH i2c: E2 08 00 50 2F 80 13 00 00 00 00 00 00 FB [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 62 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 62 00 50 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [15:47:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:06]wFMCommunicate OK [15:47:06]SAM_PROTO_GetFieldsCounters done [15:47:06]requested_item shift.num is exist - process it [15:47:06]requested_item shift.opened is exist - process it [15:47:06]req_shift_opened [15:47:06]FM_GetShiftState [15:47:06]SAM_PROTO_GetShiftState [15:47:06]wFMCommunicate request_size=4 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 13 01 00 [15:47:06]Write to MH i2c: E2 08 00 51 2F 80 13 01 00 00 00 00 00 FD [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 0E 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 0E 00 51 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FF [15:47:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:47:06]wFMCommunicate OK [15:47:06]SAM_PROTO_GetShiftState done [15:47:06]FM_GetShiftState done [15:47:06]req_shift_opened done [15:47:06]requested_item shift.open_date is exist - process it [15:47:06]req_shift_open_date [15:47:06]req_shift_open_date done [15:47:06]produce_requested_data done [15:47:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202043,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:47:06]process_action_free close_receipt [15:47:06]json_value_free [15:47:06]json_value_free done [15:47:06]process_json_proto returns [15:47:06]Send response to host [15:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202043,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:47:06]free response buf [15:47:06]execute_script done [15:47:06]execute_script returns [15:47:06]free content buf [15:47:06]Sock 9.Close socket [15:47:06]Sock 9.Thread stoped [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:52]accept exits with 8 [15:48:52]New connection [15:48:52]New thread 3066498404 created [15:48:52]Thread 3066641764 joined [15:48:52]Waiting for new connection... [15:48:52] Sock 8.Parse request [15:48:52]Sock 8.Check first char [15:48:52]Sock 8.First char is OK [15:48:52]request: POST /json_proto HTTP/1.0 [15:48:52]Method: POST [15:48:52]URL: /json_proto [15:48:52]Method is POST - this is cgi request [15:48:52]url: /json_proto [15:48:52]query_string will be loaded in cgi processing [15:48:52]execute_cgi json_proto POST (null) [15:48:52]execute_cgi path=json_proto method=POST [15:48:52]POST find Content-Length [15:48:52]Host: 172.17.63.195:8080 [15:48:52]Content-Length: 677 [15:48:52]Content-Type: application/json [15:48:52] [15:48:52]POST finish read [15:48:52]Found Content-Length = 677 [15:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:52]execute_script... [15:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:52]POST & json_proto [15:48:52]process_json_proto [15:48:52]json parsed OK: [15:48:52]protocol is kg_v1.0 [15:48:52]action value=close_receipt [15:48:52]process_action close_receipt [15:48:52]cmd_close_receipt [15:48:52]MH_GetDate [15:48:52]Write to MH i2c: F0 00 00 52 2F 70 [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 09 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 09 00 52 2F 00 E6 60 1E 67 47 1B 1E 67 2B [15:48:52]GetLastDocTimeStamp 1730044024 [15:48:52]current date 1730044134 [15:48:52]FM_GetShiftState [15:48:52]SAM_PROTO_GetShiftState [15:48:52]wFMCommunicate request_size=4 [15:48:52]MH_SAM_APDU [15:48:52]CAPDU: 80 13 01 00 [15:48:52]Write to MH i2c: E2 08 00 53 2F 80 13 01 00 00 00 00 00 FF [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:52]Read from MH i2c: E2 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 0E 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 0E 00 53 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 01 [15:48:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:48:52]wFMCommunicate OK [15:48:52]SAM_PROTO_GetShiftState done [15:48:52]FM_GetShiftState done [15:48:52]opened in 1729987312 [15:48:52]opened+sec_in_day 1730073712 [15:48:52]quantity*price = 50041 [15:48:52]sum+1 = 50042 [15:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 336 27.10.2024 15:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202044 ФПД: 162698608190197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154854&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202044&fm=162698608190197&tin=02508201610067®Number=0000000000091777&sum=50000 [15:48:53]StoreToDocumentArchive [15:48:53]shift 544 fd 202044 [15:48:53]save to /storage/0544/doc_00202044 [15:48:53]save last doc name /storage/0544/doc_00202044 to /storage/kkm_last_doc_name [15:48:53]save OK [15:48:53]Clear old archive folders... [15:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:53]tlvbuf is 011CA540 [15:48:53]SAM_PROTO_ClearQueue [15:48:53]wFMCommunicate request_size=4 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 09 00 00 [15:48:53]Write to MH i2c: E2 08 00 60 2F 80 09 00 00 00 00 00 00 01 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:53]Read from MH i2c: E2 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 60 2F 00 90 00 03 [15:48:53]RAPDU: 90 00 [15:48:53]wFMCommunicate OK [15:48:53]SAM_PROTO_ClearQueue done [15:48:53]KKMCreateOFDPacket [15:48:53]OFDProtocolAddRootSTLVToBuf [15:48:53]FM_MakeSignedData [15:48:53]FM_MakeSignedData [15:48:53]SAM_PROTO_SignData [15:48:53]wFMCommunicate request_size=4 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 0D 01 02 [15:48:53]Write to MH i2c: E2 08 00 61 2F 80 0D 01 02 00 00 00 00 09 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:53]Read from MH i2c: E2 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 61 2F 00 90 00 04 [15:48:53]RAPDU: 90 00 [15:48:53]wFMCommunicate OK [15:48:53]wFMCommunicate request_size=255 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 E6 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 15 03 00 35 04 06 00 93 [15:48:53]Write to MH i2c: E2 02 01 62 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 E6 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 15 03 00 35 04 06 00 93 00 00 C2 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 62 2F 00 90 00 05 [15:48:54]RAPDU: 90 00 [15:48:54]wFMCommunicate OK [15:48:54]wFMCommunicate request_size=10 [15:48:54]MH_SAM_APDU [15:48:54]CAPDU: 80 0D 02 02 05 F9 38 BF 22 F5 [15:48:54]Write to MH i2c: E2 0D 00 63 2F 80 0D 02 02 05 00 F9 38 BF 22 F5 00 00 1D [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 63 2F 00 90 00 06 [15:48:54]RAPDU: 90 00 [15:48:54]wFMCommunicate OK [15:48:54]wFMCommunicate request_size=4 [15:48:54]MH_SAM_APDU [15:48:54]CAPDU: 80 0D 03 02 [15:48:54]Write to MH i2c: E2 08 00 64 2F 80 0D 03 02 00 00 00 00 0E [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 0B 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 0B 00 64 2F 00 29 1F B1 06 C2 67 77 F3 90 00 A1 [15:48:54]RAPDU: 29 1F B1 06 C2 67 77 F3 90 00 [15:48:54]wFMCommunicate OK [15:48:54]SAM_PROTO_SignData done [15:48:54]FM_MakeSignedData done [15:48:54]CreateOFDProtocolMessage [15:48:54]wFMCommunicate request_size=4 [15:48:54]MH_SAM_APDU [15:48:54]CAPDU: 80 11 00 00 [15:48:54]Write to MH i2c: E2 08 00 65 2F 80 11 00 00 00 00 00 00 0E [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 17 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 17 00 65 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [15:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:48:54]wFMCommunicate OK [15:48:54]CreateOFDProtocolMessage done [15:48:54]OFDSenderStorePacket 202044 [15:48:54]StoreOFDPacket docnum=202044 [15:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0A 2E 07 01 14 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 E6 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 15 03 00 35 04 06 00 93 F9 38 BF 22 F5 29 1F B1 06 C2 67 77 F3 [15:48:54]CheckFolder [15:48:54]dirname=/storage/ofd_packets [15:48:54]CheckFolder done [15:48:54]ProducePacketName [15:48:54]name=ofd_packets/00202044 [15:48:54]NVStorageSaveData ofd_packets/00202044 [15:48:54]File name is /storage/ofd_packets/00202044 [15:48:54]Write 301 bytes [15:48:54]NVStorageSaveData done [15:48:54]OFDSenderStorePacket done [15:48:54]KKMCreateOFDPacket done [15:48:54]NVStorageSaveData kkm_last_timestamp [15:48:54]File name is /storage/kkm_last_timestamp [15:48:54]Write 4 bytes [15:48:54]NVStorageSaveData done [15:48:54]ExternCall_PrintAddStr [15:48:54]wPrintStart [15:48:54]Write to MH i2c: 01 00 00 66 2F 95 [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 07 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 07 00 66 2F 00 00 00 00 00 FF 0F AA [15:48:54]RasterBufferAndPrint [15:48:54]line Счет N : (1)449810 [15:48:54]line ИНН: 02508201610067 [15:48:54]line Контрольно-Кассовый Чек [15:48:54]line ПРОДАЖА [15:48:54]line ТРК (МРК, ГНК) : 31 [15:48:54]line Товар: 2710124130 [15:48:54]line Аи-92-К-2 [15:48:54]line 7.480 * 66.90 [15:48:54]line = 500.41 [15:48:54]line НДС 12% НСП 1% [15:48:54]line > о реализуемом товаре [15:48:54]line ОКРУГЛЕНИЕ: -0.41 [15:48:54]line ИТОГО: 500.00 [15:48:54]line Внесено: 500.00 [15:48:54]line СДАЧА: 0.00 [15:48:54]line НСП 1% : 4.43 [15:48:54]line НДС 12% : 53.14 [15:48:54]line Наличными: 500.00 [15:48:54]line Безнал.: 0.00 [15:48:54]line Место: АЗС № 171 "Партнер Нефть" [15:48:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:48:54]line СНО: Общий режим [15:48:54]line Чек 336 27.10.2024 15:48 [15:48:54]line Смена: 544 ФФД: 1.0 [15:48:54]line ЗНМ: 0300000109 [15:48:54]line РНМ: 0000000000091777 [15:48:54]line Версия ККМ: 001 [15:48:54]line ФМ: 0000000000871756 [15:48:54]line ФД: 202044 [15:48:54]line ФПД: 162698608190197 [15:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154854&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202044&fm=162698608190197&tin=02508201610067®Number=0000000000091777&sum=50000 [15:48:54]OFD Sender: Processing packet 202044 [packets to send 112, broken 111] [15:48:54]ProducePacketName [15:48:54]name=ofd_packets/00202044 [15:48:54]OFD Sender: To server: pG, [15:48:54]CommunicateWithHost lk.salyk.kg:30040 [15:48:54]ConnectInit lk.salyk.kg [15:48:54]written 0, free lines is 4095 [15:48:55]Write to MH i2c: 01 00 00 91 2F C0 [15:48:55]Write i2c OK [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: 01 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: 01 07 00 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: 01 07 00 91 2F 00 00 00 00 00 84 0C 57 [15:48:55]RasterBufferAndPrint [15:48:55]line [15:48:55]line [15:48:55]line [15:48:55]line [15:48:55]line [15:48:55]written 0, free lines is 3207 [15:48:55]MH_Cut [15:48:55]Write to MH i2c: D1 01 00 98 2F 01 99 [15:48:55]Write i2c OK [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: D1 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: D1 01 00 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: D1 01 00 98 2F 00 98 [15:48:55]Write to MH i2c: 01 00 00 99 2F C8 [15:48:55]Write i2c OK [15:48:55]MH_I2C_Read... [15:48:56]*** Cut start [15:48:56]*** Purtial cut [15:48:56]*** Stage 1: CUTSNS_PIN = 1 [15:48:56]Read from MH i2c: 01 [15:48:56]MH_I2C_Read... [15:48:56]*** Stop cut motor [15:48:56]*** Cut end [15:48:56]Read from MH i2c: 01 07 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: 01 07 00 99 2F 00 00 00 00 00 FF 0F DD [15:48:56]process_action close_receipt done [15:48:56]requested_data is exist [15:48:56]produce_requested_data [15:48:56]requested_item fm.sn is exist - process it [15:48:56]wFMCommunicate request_size=4 [15:48:56]MH_SAM_APDU [15:48:56]CAPDU: 80 11 00 00 [15:48:56]Write to MH i2c: E2 08 00 9A 2F 80 11 00 00 00 00 00 00 43 [15:48:56]Write i2c OK [15:48:56]MH_I2C_Read... [15:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:56]Read from MH i2c: E2 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 17 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 17 00 9A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 98 [15:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:48:56]wFMCommunicate OK [15:48:56]requested_item fd.num is exist - process it [15:48:56]SAM_PROTO_GetFieldsCounters [15:48:56]wFMCommunicate request_size=4 [15:48:56]MH_SAM_APDU [15:48:56]CAPDU: 80 13 00 00 [15:48:56]Write to MH i2c: E2 08 00 9B 2F 80 13 00 00 00 00 00 00 46 [15:48:56]Write i2c OK [15:48:56]MH_I2C_Read... [15:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:56]Read from MH i2c: E2 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 62 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 62 00 9B 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [15:48:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:56]wFMCommunicate OK [15:48:56]SAM_PROTO_GetFieldsCounters done [15:48:56]requested_item shift.num is exist - process it [15:48:56]requested_item shift.opened is exist - process it [15:48:56]req_shift_opened [15:48:56]FM_GetShiftState [15:48:56]SAM_PROTO_GetShiftState [15:48:56]wFMCommunicate request_size=4 [15:48:56]MH_SAM_APDU [15:48:56]CAPDU: 80 13 01 00 [15:48:56]Write to MH i2c: E2 08 00 9C 2F 80 13 01 00 00 00 00 00 48 [15:48:56]Write i2c OK [15:48:56]MH_I2C_Read... [15:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:56]Read from MH i2c: E2 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 0E 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 0E 00 9C 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4A [15:48:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:48:56]wFMCommunicate OK [15:48:56]SAM_PROTO_GetShiftState done [15:48:56]FM_GetShiftState done [15:48:56]req_shift_opened done [15:48:56]requested_item shift.open_date is exist - process it [15:48:56]req_shift_open_date [15:48:56]req_shift_open_date done [15:48:56]produce_requested_data done [15:48:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202044,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:48:56]process_action_free close_receipt [15:48:56]json_value_free [15:48:56]json_value_free done [15:48:56]process_json_proto returns [15:48:56]Send response to host [15:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202044,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:48:56]free response buf [15:48:56]execute_script done [15:48:56]execute_script returns [15:48:56]free content buf [15:48:56]Sock 8.Close socket [15:48:56]Sock 8.Thread stoped [15:50:59]accept exits with 9 [15:50:59]New connection [15:50:59]New thread 3066641764 created [15:50:59]Thread 3066498404 joined [15:50:59]Waiting for new connection... [15:50:59] Sock 9.Parse request [15:50:59]Sock 9.Check first char [15:50:59]Sock 9.First char is OK [15:50:59]request: POST /json_proto HTTP/1.0 [15:50:59]Method: POST [15:50:59]URL: /json_proto [15:50:59]Method is POST - this is cgi request [15:50:59]url: /json_proto [15:50:59]query_string will be loaded in cgi processing [15:50:59]execute_cgi json_proto POST (null) [15:50:59]execute_cgi path=json_proto method=POST [15:50:59]POST find Content-Length [15:50:59]Host: 172.17.63.195:8080 [15:50:59]Content-Length: 674 [15:50:59]Content-Type: application/json [15:50:59] [15:50:59]POST finish read [15:50:59]Found Content-Length = 674 [15:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:59]execute_script... [15:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 4.600, "sum" : 350.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:59]POST & json_proto [15:50:59]process_json_proto [15:50:59]json parsed OK: [15:50:59]protocol is kg_v1.0 [15:50:59]action value=close_receipt [15:50:59]process_action close_receipt [15:50:59]cmd_close_receipt [15:50:59]MH_GetDate [15:50:59]Write to MH i2c: F0 00 00 9D 2F BB [15:50:59]Write i2c OK [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: F0 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: F0 09 00 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: F0 09 00 9D 2F 00 65 61 1E 67 47 1B 1E 67 F6 [15:50:59]GetLastDocTimeStamp 1730044134 [15:50:59]current date 1730044261 [15:50:59]FM_GetShiftState [15:50:59]SAM_PROTO_GetShiftState [15:50:59]wFMCommunicate request_size=4 [15:50:59]MH_SAM_APDU [15:50:59]CAPDU: 80 13 01 00 [15:50:59]Write to MH i2c: E2 08 00 9E 2F 80 13 01 00 00 00 00 00 4A [15:50:59]Write i2c OK [15:50:59]MH_I2C_Read... [15:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:59]Read from MH i2c: E2 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: E2 0E 00 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: E2 0E 00 9E 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4C [15:50:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:50:59]wFMCommunicate OK [15:50:59]SAM_PROTO_GetShiftState done [15:50:59]FM_GetShiftState done [15:50:59]opened in 1729987312 [15:50:59]opened+sec_in_day 1730073712 [15:50:59]quantity*price = 35052 [15:50:59]sum+1 = 35053 [15:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 337 27.10.2024 15:51 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202045 ФПД: 274301731424468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155101&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202045&fm=274301731424468&tin=02508201610067®Number=0000000000091777&sum=35000 [15:51:00]StoreToDocumentArchive [15:51:00]shift 544 fd 202045 [15:51:00]save to /storage/0544/doc_00202045 [15:51:00]save last doc name /storage/0544/doc_00202045 to /storage/kkm_last_doc_name [15:51:00]save OK [15:51:00]Clear old archive folders... [15:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:51:00]tlvbuf is 0127B780 [15:51:00]SAM_PROTO_ClearQueue [15:51:00]wFMCommunicate request_size=4 [15:51:00]MH_SAM_APDU [15:51:00]CAPDU: 80 09 00 00 [15:51:00]Write to MH i2c: E2 08 00 AB 2F 80 09 00 00 00 00 00 00 4C [15:51:00]Write i2c OK [15:51:00]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 AB 2F 00 90 00 4E [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]SAM_PROTO_ClearQueue done [15:51:01]KKMCreateOFDPacket [15:51:01]OFDProtocolAddRootSTLVToBuf [15:51:01]FM_MakeSignedData [15:51:01]FM_MakeSignedData [15:51:01]SAM_PROTO_SignData [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 01 02 [15:51:01]Write to MH i2c: E2 08 00 AC 2F 80 0D 01 02 00 00 00 00 54 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 AC 2F 00 90 00 4F [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]wFMCommunicate request_size=255 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 65 61 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 15 03 00 35 04 06 00 F9 79 D9 43 [15:51:01]Write to MH i2c: E2 02 01 AD 2F 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 32 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 65 61 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 15 03 00 35 04 06 00 F9 79 D9 43 00 00 05 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 AD 2F 00 90 00 50 [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]wFMCommunicate request_size=7 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 02 02 02 48 D4 [15:51:01]Write to MH i2c: E2 0A 00 AE 2F 80 0D 02 02 02 00 48 D4 00 00 77 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 AE 2F 00 90 00 51 [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 03 02 [15:51:01]Write to MH i2c: E2 08 00 AF 2F 80 0D 03 02 00 00 00 00 59 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 0B 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 0B 00 AF 2F 00 80 8E 12 F0 D2 1D 3E 1C 90 00 B3 [15:51:01]RAPDU: 80 8E 12 F0 D2 1D 3E 1C 90 00 [15:51:01]wFMCommunicate OK [15:51:01]SAM_PROTO_SignData done [15:51:01]FM_MakeSignedData done [15:51:01]CreateOFDProtocolMessage [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 11 00 00 [15:51:01]Write to MH i2c: E2 08 00 B0 2F 80 11 00 00 00 00 00 00 59 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 17 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 17 00 B0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [15:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:51:01]wFMCommunicate OK [15:51:01]CreateOFDProtocolMessage done [15:51:01]OFDSenderStorePacket 202045 [15:51:01]StoreOFDPacket docnum=202045 [15:51:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 CE 3D 04 01 B8 32 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 32 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 65 61 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 15 03 00 35 04 06 00 F9 79 D9 43 48 D4 80 8E 12 F0 D2 1D 3E 1C [15:51:01]CheckFolder [15:51:01]dirname=/storage/ofd_packets [15:51:01]CheckFolder done [15:51:01]ProducePacketName [15:51:01]name=ofd_packets/00202045 [15:51:01]NVStorageSaveData ofd_packets/00202045 [15:51:01]File name is /storage/ofd_packets/00202045 [15:51:01]Write 298 bytes [15:51:01]NVStorageSaveData done [15:51:01]OFDSenderStorePacket done [15:51:01]KKMCreateOFDPacket done [15:51:01]NVStorageSaveData kkm_last_timestamp [15:51:01]File name is /storage/kkm_last_timestamp [15:51:01]Write 4 bytes [15:51:01]NVStorageSaveData done [15:51:01]ExternCall_PrintAddStr [15:51:01]wPrintStart [15:51:01]Write to MH i2c: 01 00 00 B1 2F E0 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: 01 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: 01 07 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: 01 07 00 B1 2F 00 00 00 00 00 FF 0F F5 [15:51:01]RasterBufferAndPrint [15:51:01]line Счет N : (1)449811 [15:51:01]line ИНН: 02508201610067 [15:51:01]line Контрольно-Кассовый Чек [15:51:01]line ПРОДАЖА [15:51:01]line ТРК (МРК, ГНК) : 33 [15:51:01]line Товар: 2710194210 [15:51:01]line ДТ-К-2 [15:51:01]line 4.600 * 76.20 [15:51:01]line = 350.52 [15:51:01]line НДС 12% НСП 1% [15:51:01]line > о реализуемом товаре [15:51:01]line ОКРУГЛЕНИЕ: -0.52 [15:51:01]line ИТОГО: 350.00 [15:51:01]line Внесено: 350.00 [15:51:01]line СДАЧА: 0.00 [15:51:01]line НСП 1% : 3.10 [15:51:01]line НДС 12% : 37.22 [15:51:01]line Наличными: 350.00 [15:51:01]line Безнал.: 0.00 [15:51:01]line Место: АЗС № 171 "Партнер Нефть" [15:51:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:51:01]line СНО: Общий режим [15:51:01]line Чек 337 27.10.2024 15:51 [15:51:01]line Смена: 544 ФФД: 1.0 [15:51:01]line ЗНМ: 0300000109 [15:51:01]line РНМ: 0000000000091777 [15:51:01]line Версия ККМ: 001 [15:51:01]line ФМ: 0000000000871756 [15:51:01]line ФД: 202045 [15:51:01]line ФПД: 274301731424468 [15:51:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155101&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202045&fm=274301731424468&tin=02508201610067®Number=0000000000091777&sum=35000 [15:51:01]written 0, free lines is 4095 [15:51:02]Write to MH i2c: 01 00 00 DC 2F 0B [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 07 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 07 00 DC 2F 00 00 00 00 00 80 0C 9E [15:51:02]RasterBufferAndPrint [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]written 0, free lines is 3203 [15:51:02]MH_Cut [15:51:02]Write to MH i2c: D1 01 00 E3 2F 01 E4 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 01 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 01 00 E3 2F 00 E3 [15:51:02]Write to MH i2c: 01 00 00 E4 2F 13 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:03]*** Cut start [15:51:03]*** Purtial cut [15:51:03]*** Stage 1: CUTSNS_PIN = 1 [15:51:03]Read from MH i2c: 01 [15:51:03]MH_I2C_Read... [15:51:03]*** Stop cut motor [15:51:03]*** Cut end [15:51:03]Read from MH i2c: 01 07 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: 01 07 00 E4 2F 00 00 00 00 00 FF 0F 28 [15:51:03]process_action close_receipt done [15:51:03]requested_data is exist [15:51:03]produce_requested_data [15:51:03]requested_item fm.sn is exist - process it [15:51:03]wFMCommunicate request_size=4 [15:51:03]MH_SAM_APDU [15:51:03]CAPDU: 80 11 00 00 [15:51:03]Write to MH i2c: E2 08 00 E5 2F 80 11 00 00 00 00 00 00 8E [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:03]Read from MH i2c: E2 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 17 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 17 00 E5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E3 [15:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:51:03]wFMCommunicate OK [15:51:03]requested_item fd.num is exist - process it [15:51:03]SAM_PROTO_GetFieldsCounters [15:51:03]wFMCommunicate request_size=4 [15:51:03]MH_SAM_APDU [15:51:03]CAPDU: 80 13 00 00 [15:51:03]Write to MH i2c: E2 08 00 E6 2F 80 13 00 00 00 00 00 00 91 [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:03]Read from MH i2c: E2 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 62 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 62 00 E6 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [15:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:03]wFMCommunicate OK [15:51:03]SAM_PROTO_GetFieldsCounters done [15:51:03]requested_item shift.num is exist - process it [15:51:03]requested_item shift.opened is exist - process it [15:51:03]req_shift_opened [15:51:03]FM_GetShiftState [15:51:03]SAM_PROTO_GetShiftState [15:51:03]wFMCommunicate request_size=4 [15:51:03]MH_SAM_APDU [15:51:03]CAPDU: 80 13 01 00 [15:51:03]Write to MH i2c: E2 08 00 E7 2F 80 13 01 00 00 00 00 00 93 [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:03]Read from MH i2c: E2 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 0E 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 0E 00 E7 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 95 [15:51:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:51:03]wFMCommunicate OK [15:51:03]SAM_PROTO_GetShiftState done [15:51:03]FM_GetShiftState done [15:51:03]req_shift_opened done [15:51:03]requested_item shift.open_date is exist - process it [15:51:03]req_shift_open_date [15:51:03]req_shift_open_date done [15:51:03]produce_requested_data done [15:51:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202045,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:51:03]process_action_free close_receipt [15:51:03]json_value_free [15:51:03]json_value_free done [15:51:03]process_json_proto returns [15:51:03]Send response to host [15:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202045,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:51:03]free response buf [15:51:03]execute_script done [15:51:03]execute_script returns [15:51:03]free content buf [15:51:03]Sock 9.Close socket [15:51:03]Sock 9.Thread stoped [15:51:08]ConnectInit Can't connect to host [15:51:08]CommunicateWithHost connect error [15:51:08]CommunicateWithHost err = -1 [15:51:08]OFD Sender: Server communicate error [15:51:08]OFD Sender: Processing packet 202044 [packets to send 113, broken 111] [15:51:08]ProducePacketName [15:51:08]name=ofd_packets/00202044 [15:51:08]OFD Sender: To server: pG, [15:51:08]CommunicateWithHost lk.salyk.kg:30040 [15:51:08]ConnectInit lk.salyk.kg [15:51:08]Connected sock=9 [15:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0A 2E 07 01 14 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 E6 60 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 15 03 00 35 04 06 00 93 F9 38 BF 22 F5 29 1F B1 06 C2 67 77 F3 [15:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 91 2A 47 00 92 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 15 03 00 F4 03 04 00 25 0D 1E 67 B6 04 01 00 00 96 D7 6D BE 44 F6 A5 C7 [15:51:08]CommunicateWithHost err = 0 [15:51:08]CheckOFDResponse [15:51:08]1017 (14) - 77093643461234 [15:51:08]1041 (16) - 0000000000871756 [15:51:08]1040 (4) - 202044 [15:51:08]1012 (4) - 27.10.2024 09:51 [15:51:08]1206 (1) - 0 [15:51:08]OFD Sender: Remove packet 202044 [15:51:08]ProducePacketName [15:51:08]name=ofd_packets/00202044 [15:51:08]NVStorageDeleteData [15:51:09]OFD Sender: Processing packet 202045 [packets to send 112, broken 111] [15:51:09]ProducePacketName [15:51:09]name=ofd_packets/00202045 [15:51:09]OFD Sender: To server: pG, [15:51:09]CommunicateWithHost lk.salyk.kg:30040 [15:51:09]ConnectInit lk.salyk.kg [15:51:09]Connected sock=9 [15:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 CE 3D 04 01 B8 32 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 32 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EC 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 65 61 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 15 03 00 35 04 06 00 F9 79 D9 43 48 D4 80 8E 12 F0 D2 1D 3E 1C [15:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F8 08 47 00 9E C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 15 03 00 F4 03 04 00 26 0D 1E 67 B6 04 01 00 00 3E D5 F6 9E 1E EE 31 6C [15:51:09]CommunicateWithHost err = 0 [15:51:09]CheckOFDResponse [15:51:09]1017 (14) - 77093643461234 [15:51:09]1041 (16) - 0000000000871756 [15:51:09]1040 (4) - 202045 [15:51:09]1012 (4) - 27.10.2024 09:51 [15:51:09]1206 (1) - 0 [15:51:09]OFD Sender: Remove packet 202045 [15:51:09]ProducePacketName [15:51:09]name=ofd_packets/00202045 [15:51:09]NVStorageDeleteData [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:36]accept exits with 8 [15:52:36]New connection [15:52:36]New thread 3066498404 created [15:52:36]Thread 3066641764 joined [15:52:36]Waiting for new connection... [15:52:36] Sock 8.Parse request [15:52:36]Sock 8.Check first char [15:52:36]Sock 8.First char is OK [15:52:36]request: POST /json_proto HTTP/1.0 [15:52:36]Method: POST [15:52:36]URL: /json_proto [15:52:36]Method is POST - this is cgi request [15:52:36]url: /json_proto [15:52:36]query_string will be loaded in cgi processing [15:52:36]execute_cgi json_proto POST (null) [15:52:36]execute_cgi path=json_proto method=POST [15:52:36]POST find Content-Length [15:52:36]Host: 172.17.63.195:8080 [15:52:36]Content-Length: 762 [15:52:36]Content-Type: application/json [15:52:36] [15:52:36]POST finish read [15:52:36]Found Content-Length = 762 [15:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "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.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:36]execute_script... [15:52:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "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.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:36]POST & json_proto [15:52:36]process_json_proto [15:52:36]json parsed OK: [15:52:36]protocol is kg_v1.0 [15:52:36]action value=close_receipt [15:52:36]process_action close_receipt [15:52:36]cmd_close_receipt [15:52:36]MH_GetDate [15:52:36]Write to MH i2c: F0 00 00 E8 2F 06 [15:52:36]Write i2c OK [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: F0 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: F0 09 00 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: F0 09 00 E8 2F 00 C5 61 1E 67 47 1B 1E 67 A1 [15:52:36]GetLastDocTimeStamp 1730044261 [15:52:36]current date 1730044357 [15:52:36]FM_GetShiftState [15:52:36]SAM_PROTO_GetShiftState [15:52:36]wFMCommunicate request_size=4 [15:52:36]MH_SAM_APDU [15:52:36]CAPDU: 80 13 01 00 [15:52:36]Write to MH i2c: E2 08 00 E9 2F 80 13 01 00 00 00 00 00 95 [15:52:36]Write i2c OK [15:52:36]MH_I2C_Read... [15:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:36]Read from MH i2c: E2 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: E2 0E 00 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: E2 0E 00 E9 2F 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 97 [15:52:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:52:36]wFMCommunicate OK [15:52:36]SAM_PROTO_GetShiftState done [15:52:36]FM_GetShiftState done [15:52:36]opened in 1729987312 [15:52:36]opened+sec_in_day 1730073712 [15:52:36]quantity*price = 100000 [15:52:36]sum+1 = 100002 [15:52:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 338 27.10.2024 15:52 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202046 ФПД: 241538132342651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155237&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202046&fm=241538132342651&tin=02508201610067®Number=0000000000091777&sum=100001 [15:52:37]StoreToDocumentArchive [15:52:37]shift 544 fd 202046 [15:52:37]save to /storage/0544/doc_00202046 [15:52:37]save last doc name /storage/0544/doc_00202046 to /storage/kkm_last_doc_name [15:52:37]save OK [15:52:37]Clear old archive folders... [15:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:52:37]tlvbuf is B6E8E350 [15:52:37]SAM_PROTO_ClearQueue [15:52:37]wFMCommunicate request_size=4 [15:52:37]MH_SAM_APDU [15:52:37]CAPDU: 80 09 00 00 [15:52:37]Write to MH i2c: E2 08 00 F6 2F 80 09 00 00 00 00 00 00 97 [15:52:37]Write i2c OK [15:52:37]MH_I2C_Read... [15:52:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:37]Read from MH i2c: E2 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 03 00 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 03 00 F6 2F 00 90 00 99 [15:52:37]RAPDU: 90 00 [15:52:37]wFMCommunicate OK [15:52:37]SAM_PROTO_ClearQueue done [15:52:37]KKMCreateOFDPacket [15:52:37]OFDProtocolAddRootSTLVToBuf [15:52:37]FM_MakeSignedData [15:52:37]FM_MakeSignedData [15:52:37]SAM_PROTO_SignData [15:52:37]wFMCommunicate request_size=4 [15:52:37]MH_SAM_APDU [15:52:37]CAPDU: 80 0D 01 02 [15:52:37]Write to MH i2c: E2 08 00 F7 2F 80 0D 01 02 00 00 00 00 9F [15:52:37]Write i2c OK [15:52:37]MH_I2C_Read... [15:52:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:37]Read from MH i2c: E2 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 03 00 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 03 00 F7 2F 00 90 00 9A [15:52:37]RAPDU: 90 00 [15:52:37]wFMCommunicate OK [15:52:37]wFMCommunicate request_size=255 [15:52:37]MH_SAM_APDU [15:52:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 C5 61 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 15 03 00 35 04 06 00 [15:52:37]Write to MH i2c: E2 02 01 F8 2F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 C5 61 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 15 03 00 35 04 06 00 00 00 80 [15:52:37]Write i2c OK [15:52:37]MH_I2C_Read... [15:52:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:37]Read from MH i2c: E2 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 03 00 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 03 00 F8 2F 00 90 00 9B [15:52:37]RAPDU: 90 00 [15:52:37]wFMCommunicate OK [15:52:37]wFMCommunicate request_size=11 [15:52:37]MH_SAM_APDU [15:52:37]CAPDU: 80 0D 02 02 06 DB AD 7A 93 F7 7B [15:52:37]Write to MH i2c: E2 0E 00 F9 2F 80 0D 02 02 06 00 DB AD 7A 93 F7 7B 00 00 B5 [15:52:37]Write i2c OK [15:52:37]MH_I2C_Read... [15:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:38]Read from MH i2c: E2 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 03 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 03 00 F9 2F 00 90 00 9C [15:52:38]RAPDU: 90 00 [15:52:38]wFMCommunicate OK [15:52:38]wFMCommunicate request_size=4 [15:52:38]MH_SAM_APDU [15:52:38]CAPDU: 80 0D 03 02 [15:52:38]Write to MH i2c: E2 08 00 FA 2F 80 0D 03 02 00 00 00 00 A4 [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:38]Read from MH i2c: E2 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 0B 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 0B 00 FA 2F 00 67 A4 03 11 96 A0 1A 82 90 00 96 [15:52:38]RAPDU: 67 A4 03 11 96 A0 1A 82 90 00 [15:52:38]wFMCommunicate OK [15:52:38]SAM_PROTO_SignData done [15:52:38]FM_MakeSignedData done [15:52:38]CreateOFDProtocolMessage [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 FB 2F 80 11 00 00 00 00 00 00 A4 [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 FB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F9 [15:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:52:38]wFMCommunicate OK [15:52:38]CreateOFDProtocolMessage done [15:52:38]OFDSenderStorePacket 202046 [15:52:38]StoreOFDPacket docnum=202046 [15:52:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 79 FA 08 01 28 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 C5 61 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 15 03 00 35 04 06 00 DB AD 7A 93 F7 7B 67 A4 03 11 96 A0 1A 82 [15:52:38]CheckFolder [15:52:38]dirname=/storage/ofd_packets [15:52:38]CheckFolder done [15:52:38]ProducePacketName [15:52:38]name=ofd_packets/00202046 [15:52:38]NVStorageSaveData ofd_packets/00202046 [15:52:38]File name is /storage/ofd_packets/00202046 [15:52:38]Write 302 bytes [15:52:38]NVStorageSaveData done [15:52:38]OFDSenderStorePacket done [15:52:38]KKMCreateOFDPacket done [15:52:38]NVStorageSaveData kkm_last_timestamp [15:52:38]File name is /storage/kkm_last_timestamp [15:52:38]Write 4 bytes [15:52:38]NVStorageSaveData done [15:52:38]ExternCall_PrintAddStr [15:52:38]wPrintStart [15:52:38]Write to MH i2c: 01 00 00 FC 2F 2B [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: 01 [15:52:38]MH_I2C_Read... [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 FC 2F 00 00 00 00 00 FF 0F 40 [15:52:38]RasterBufferAndPrint [15:52:38]line Счет N : (1)449813 [15:52:38]line ИНН: 02508201610067 [15:52:38]line Контрольно-Кассовый Чек [15:52:38]line ПРОДАЖА [15:52:38]line ТРК (МРК, ГНК) : 42 [15:52:38]line Товар: 2710124130 [15:52:38]line SUPER 92-К-5 [15:52:38]line 14.620 * 68.40 [15:52:38]line = 1000.01 [15:52:38]line НДС 12% НСП 1% [15:52:38]line > о реализуемом товаре [15:52:38]line ИТОГО: 1000.01 [15:52:38]line НСП 1% : 8.85 [15:52:38]line НДС 12% : 106.20 [15:52:38]line Наличными: 0.00 [15:52:38]line Безнал.: 1000.01 [15:52:38]line Место: АЗС № 171 "Партнер Нефть" [15:52:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:52:38]line СНО: Общий режим [15:52:38]line Чек 338 27.10.2024 15:52 [15:52:38]line Смена: 544 ФФД: 1.0 [15:52:38]line ЗНМ: 0300000109 [15:52:38]line РНМ: 0000000000091777 [15:52:38]line Версия ККМ: 001 [15:52:38]line Платежная система: Mbank [15:52:38]line ФМ: 0000000000871756 [15:52:38]line ФД: 202046 [15:52:38]line ФПД: 241538132342651 [15:52:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155237&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202046&fm=241538132342651&tin=02508201610067®Number=0000000000091777&sum=100001 [15:52:38]written 0, free lines is 4095 [15:52:38]OFD Sender: Processing packet 202046 [packets to send 112, broken 111] [15:52:38]ProducePacketName [15:52:38]name=ofd_packets/00202046 [15:52:38]OFD Sender: To server: pG, [15:52:38]CommunicateWithHost lk.salyk.kg:30040 [15:52:38]ConnectInit lk.salyk.kg [15:52:38]Connected sock=9 [15:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 79 FA 08 01 28 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 C5 61 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 15 03 00 35 04 06 00 DB AD 7A 93 F7 7B 67 A4 03 11 96 A0 1A 82 [15:52:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E0 4C 47 00 CD 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 15 03 00 F4 03 04 00 7F 0D 1E 67 B6 04 01 00 00 97 DA 63 1D AC 57 C4 F0 [15:52:38]CommunicateWithHost err = 0 [15:52:38]CheckOFDResponse [15:52:38]1017 (14) - 77093643461234 [15:52:38]1041 (16) - 0000000000871756 [15:52:38]1040 (4) - 202046 [15:52:38]1012 (4) - 27.10.2024 09:53 [15:52:38]1206 (1) - 0 [15:52:38]OFD Sender: Remove packet 202046 [15:52:38]ProducePacketName [15:52:38]name=ofd_packets/00202046 [15:52:38]NVStorageDeleteData [15:52:38]Write to MH i2c: 01 00 00 25 30 55 [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: 01 [15:52:38]MH_I2C_Read... [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 25 30 00 00 00 00 00 B4 0C 1C [15:52:38]RasterBufferAndPrint [15:52:38]line [15:52:38]line [15:52:38]line [15:52:38]line [15:52:38]line [15:52:38]written 0, free lines is 3256 [15:52:38]MH_Cut [15:52:38]Write to MH i2c: D1 01 00 2C 30 01 2E [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: D1 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: D1 01 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: D1 01 00 2C 30 00 2D [15:52:38]Write to MH i2c: 01 00 00 2D 30 5D [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:39]OFD Sender: No OFD packet to send [15:52:39]*** Cut start [15:52:39]*** Purtial cut [15:52:39]*** Stage 1: CUTSNS_PIN = 1 [15:52:40]Read from MH i2c: 01 [15:52:40]MH_I2C_Read... [15:52:40]*** Stop cut motor [15:52:40]*** Cut end [15:52:40]Read from MH i2c: 01 07 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: 01 07 00 2D 30 00 00 00 00 00 FF 0F 72 [15:52:40]process_action close_receipt done [15:52:40]requested_data is exist [15:52:40]produce_requested_data [15:52:40]requested_item fm.sn is exist - process it [15:52:40]wFMCommunicate request_size=4 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 11 00 00 [15:52:40]Write to MH i2c: E2 08 00 2E 30 80 11 00 00 00 00 00 00 D8 [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 17 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 17 00 2E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2D [15:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:52:40]wFMCommunicate OK [15:52:40]requested_item fd.num is exist - process it [15:52:40]SAM_PROTO_GetFieldsCounters [15:52:40]wFMCommunicate request_size=4 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 13 00 00 [15:52:40]Write to MH i2c: E2 08 00 2F 30 80 13 00 00 00 00 00 00 DB [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 62 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 62 00 2F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [15:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:40]wFMCommunicate OK [15:52:40]SAM_PROTO_GetFieldsCounters done [15:52:40]requested_item shift.num is exist - process it [15:52:40]requested_item shift.opened is exist - process it [15:52:40]req_shift_opened [15:52:40]FM_GetShiftState [15:52:40]SAM_PROTO_GetShiftState [15:52:40]wFMCommunicate request_size=4 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 13 01 00 [15:52:40]Write to MH i2c: E2 08 00 30 30 80 13 01 00 00 00 00 00 DD [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 0E 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 0E 00 30 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DF [15:52:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:52:40]wFMCommunicate OK [15:52:40]SAM_PROTO_GetShiftState done [15:52:40]FM_GetShiftState done [15:52:40]req_shift_opened done [15:52:40]requested_item shift.open_date is exist - process it [15:52:40]req_shift_open_date [15:52:40]req_shift_open_date done [15:52:40]produce_requested_data done [15:52:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202046,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:52:40]process_action_free close_receipt [15:52:40]json_value_free [15:52:40]json_value_free done [15:52:40]process_json_proto returns [15:52:40]Send response to host [15:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202046,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:52:40]free response buf [15:52:40]execute_script done [15:52:40]execute_script returns [15:52:40]free content buf [15:52:40]Sock 8.Close socket [15:52:40]Sock 8.Thread stoped [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:48]int [15:53:48]Write to MH i2c: 01 00 00 31 30 61 [15:53:48]*** FLAG_PRN_KEY set [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 31 30 00 08 00 00 00 FF 0F 7E [15:53:48]state=0 [15:53:48]Key pressed [15:53:48]Feed [15:53:48]Write to MH i2c: D8 00 00 32 30 39 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D8 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D8 01 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: D8 01 00 32 30 00 3A [15:53:48]int [15:53:48]Write to MH i2c: 01 00 00 33 30 63 [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 33 30 00 48 00 00 00 3C 00 EE [15:53:48]state=2 [15:53:48]Key pressed [15:53:48]int [15:53:48]Write to MH i2c: 01 00 00 34 30 64 [15:53:48]*** FLAG_PRN_KEY reset [15:53:48]Write i2c OK [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 [15:53:48]MH_I2C_Read... [15:53:48]Read from MH i2c: 01 07 00 34 30 00 00 00 00 00 F5 0F 6F [15:53:48]state=2 [15:53:48]Stop feed [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:36]accept exits with 10 [15:54:36]New connection [15:54:36]New thread 3066641764 created [15:54:36]Thread 3066498404 joined [15:54:36]Waiting for new connection... [15:54:36] Sock 10.Parse request [15:54:36]Sock 10.Check first char [15:54:36]Sock 10.First char is OK [15:54:36]request: POST /json_proto HTTP/1.0 [15:54:36]Method: POST [15:54:36]URL: /json_proto [15:54:36]Method is POST - this is cgi request [15:54:36]url: /json_proto [15:54:36]query_string will be loaded in cgi processing [15:54:36]execute_cgi json_proto POST (null) [15:54:36]execute_cgi path=json_proto method=POST [15:54:36]POST find Content-Length [15:54:36]Host: 172.17.63.195:8080 [15:54:36]Content-Length: 674 [15:54:36]Content-Type: application/json [15:54:36] [15:54:36]POST finish read [15:54:36]Found Content-Length = 674 [15:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:36]execute_script... [15:54:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:36]POST & json_proto [15:54:36]process_json_proto [15:54:36]json parsed OK: [15:54:36]protocol is kg_v1.0 [15:54:36]action value=close_receipt [15:54:36]process_action close_receipt [15:54:36]cmd_close_receipt [15:54:36]MH_GetDate [15:54:36]Write to MH i2c: F0 00 00 35 30 54 [15:54:36]Write i2c OK [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: F0 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: F0 09 00 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: F0 09 00 35 30 00 3D 62 1E 67 47 1B 1E 67 68 [15:54:36]GetLastDocTimeStamp 1730044357 [15:54:36]current date 1730044477 [15:54:36]FM_GetShiftState [15:54:36]SAM_PROTO_GetShiftState [15:54:36]wFMCommunicate request_size=4 [15:54:36]MH_SAM_APDU [15:54:36]CAPDU: 80 13 01 00 [15:54:36]Write to MH i2c: E2 08 00 36 30 80 13 01 00 00 00 00 00 E3 [15:54:36]Write i2c OK [15:54:36]MH_I2C_Read... [15:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:36]Read from MH i2c: E2 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: E2 0E 00 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: E2 0E 00 36 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E5 [15:54:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:54:36]wFMCommunicate OK [15:54:36]SAM_PROTO_GetShiftState done [15:54:36]FM_GetShiftState done [15:54:36]opened in 1729987312 [15:54:36]opened+sec_in_day 1730073712 [15:54:36]quantity*price = 60045 [15:54:36]sum+1 = 60047 [15:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 339 27.10.2024 15:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202047 ФПД: 3979781008570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155437&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202047&fm=3979781008570&tin=02508201610067®Number=0000000000091777&sum=60000 [15:54:37]StoreToDocumentArchive [15:54:37]shift 544 fd 202047 [15:54:37]save to /storage/0544/doc_00202047 [15:54:37]save last doc name /storage/0544/doc_00202047 to /storage/kkm_last_doc_name [15:54:37]save OK [15:54:37]Clear old archive folders... [15:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:54:37]tlvbuf is 011B16C0 [15:54:37]SAM_PROTO_ClearQueue [15:54:37]wFMCommunicate request_size=4 [15:54:37]MH_SAM_APDU [15:54:37]CAPDU: 80 09 00 00 [15:54:37]Write to MH i2c: E2 08 00 43 30 80 09 00 00 00 00 00 00 E5 [15:54:37]Write i2c OK [15:54:37]MH_I2C_Read... [15:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:37]Read from MH i2c: E2 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 03 00 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 03 00 43 30 00 90 00 E7 [15:54:37]RAPDU: 90 00 [15:54:37]wFMCommunicate OK [15:54:37]SAM_PROTO_ClearQueue done [15:54:37]KKMCreateOFDPacket [15:54:37]OFDProtocolAddRootSTLVToBuf [15:54:37]FM_MakeSignedData [15:54:37]FM_MakeSignedData [15:54:37]SAM_PROTO_SignData [15:54:37]wFMCommunicate request_size=4 [15:54:37]MH_SAM_APDU [15:54:37]CAPDU: 80 0D 01 02 [15:54:37]Write to MH i2c: E2 08 00 44 30 80 0D 01 02 00 00 00 00 ED [15:54:37]Write i2c OK [15:54:37]MH_I2C_Read... [15:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:37]Read from MH i2c: E2 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 03 00 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 03 00 44 30 00 90 00 E8 [15:54:37]RAPDU: 90 00 [15:54:37]wFMCommunicate OK [15:54:37]wFMCommunicate request_size=255 [15:54:37]MH_SAM_APDU [15:54: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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 3D 62 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 15 03 00 35 04 06 00 03 9E 9D 6E [15:54:37]Write to MH i2c: E2 02 01 45 30 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 3D 62 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 15 03 00 35 04 06 00 03 9E 9D 6E 00 00 D5 [15:54:37]Write i2c OK [15:54:37]MH_I2C_Read... [15:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:37]Read from MH i2c: E2 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 03 00 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 03 00 45 30 00 90 00 E9 [15:54:37]RAPDU: 90 00 [15:54:37]wFMCommunicate OK [15:54:37]wFMCommunicate request_size=7 [15:54:37]MH_SAM_APDU [15:54:37]CAPDU: 80 0D 02 02 02 EC BA [15:54:37]Write to MH i2c: E2 0A 00 46 30 80 0D 02 02 02 00 EC BA 00 00 9A [15:54:37]Write i2c OK [15:54:37]MH_I2C_Read... [15:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:37]Read from MH i2c: E2 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 03 00 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 03 00 46 30 00 90 00 EA [15:54:37]RAPDU: 90 00 [15:54:37]wFMCommunicate OK [15:54:37]wFMCommunicate request_size=4 [15:54:37]MH_SAM_APDU [15:54:37]CAPDU: 80 0D 03 02 [15:54:37]Write to MH i2c: E2 08 00 47 30 80 0D 03 02 00 00 00 00 F2 [15:54:37]Write i2c OK [15:54:37]MH_I2C_Read... [15:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:37]Read from MH i2c: E2 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 0B 00 [15:54:37]MH_I2C_Read... [15:54:37]Read from MH i2c: E2 0B 00 47 30 00 10 EE E6 CE A7 F3 7A F1 90 00 AA [15:54:37]RAPDU: 10 EE E6 CE A7 F3 7A F1 90 00 [15:54:37]wFMCommunicate OK [15:54:37]SAM_PROTO_SignData done [15:54:37]FM_MakeSignedData done [15:54:37]CreateOFDProtocolMessage [15:54:37]wFMCommunicate request_size=4 [15:54:37]MH_SAM_APDU [15:54:37]CAPDU: 80 11 00 00 [15:54:37]Write to MH i2c: E2 08 00 48 30 80 11 00 00 00 00 00 00 F2 [15:54:37]Write i2c OK [15:54:37]MH_I2C_Read... [15:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:38]Read from MH i2c: E2 [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: E2 17 00 [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: E2 17 00 48 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 47 [15:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:54:38]wFMCommunicate OK [15:54:38]CreateOFDProtocolMessage done [15:54:38]OFDSenderStorePacket 202047 [15:54:38]StoreOFDPacket docnum=202047 [15:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0A E7 04 01 4B 5B 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 3D 62 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 15 03 00 35 04 06 00 03 9E 9D 6E EC BA 10 EE E6 CE A7 F3 7A F1 [15:54:38]CheckFolder [15:54:38]dirname=/storage/ofd_packets [15:54:38]CheckFolder done [15:54:38]ProducePacketName [15:54:38]name=ofd_packets/00202047 [15:54:38]NVStorageSaveData ofd_packets/00202047 [15:54:38]File name is /storage/ofd_packets/00202047 [15:54:38]Write 298 bytes [15:54:38]NVStorageSaveData done [15:54:38]OFDSenderStorePacket done [15:54:38]KKMCreateOFDPacket done [15:54:38]NVStorageSaveData kkm_last_timestamp [15:54:38]File name is /storage/kkm_last_timestamp [15:54:38]Write 4 bytes [15:54:38]NVStorageSaveData done [15:54:38]ExternCall_PrintAddStr [15:54:38]wPrintStart [15:54:38]Write to MH i2c: 01 00 00 49 30 79 [15:54:38]Write i2c OK [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: 01 [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: 01 07 00 [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: 01 07 00 49 30 00 00 00 00 00 FF 0F 8E [15:54:38]RasterBufferAndPrint [15:54:38]line Счет N : (1)449814 [15:54:38]line ИНН: 02508201610067 [15:54:38]line Контрольно-Кассовый Чек [15:54:38]line ПРОДАЖА [15:54:38]line ТРК (МРК, ГНК) : 33 [15:54:38]line Товар: 2710194210 [15:54:38]line ДТ-К-2 [15:54:38]line 7.880 * 76.20 [15:54:38]line = 600.46 [15:54:38]line НДС 12% НСП 1% [15:54:38]line > о реализуемом товаре [15:54:38]line ОКРУГЛЕНИЕ: -0.46 [15:54:38]line ИТОГО: 600.00 [15:54:38]line Внесено: 600.00 [15:54:38]line СДАЧА: 0.00 [15:54:38]line НСП 1% : 5.31 [15:54:38]line НДС 12% : 63.77 [15:54:38]line Наличными: 600.00 [15:54:38]line Безнал.: 0.00 [15:54:38]line Место: АЗС № 171 "Партнер Нефть" [15:54:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:54:38]line СНО: Общий режим [15:54:38]line Чек 339 27.10.2024 15:54 [15:54:38]line Смена: 544 ФФД: 1.0 [15:54:38]line ЗНМ: 0300000109 [15:54:38]line РНМ: 0000000000091777 [15:54:38]line Версия ККМ: 001 [15:54:38]line ФМ: 0000000000871756 [15:54:38]line ФД: 202047 [15:54:38]line ФПД: 3979781008570 [15:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155437&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202047&fm=3979781008570&tin=02508201610067®Number=0000000000091777&sum=60000 [15:54:38]OFD Sender: Processing packet 202047 [packets to send 112, broken 111] [15:54:38]ProducePacketName [15:54:38]name=ofd_packets/00202047 [15:54:38]OFD Sender: To server: pG, [15:54:38]CommunicateWithHost lk.salyk.kg:30040 [15:54:38]ConnectInit lk.salyk.kg [15:54:38]written 0, free lines is 4095 [15:54:38]Connected sock=11 [15:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0A E7 04 01 4B 5B 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 3D 62 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 15 03 00 35 04 06 00 03 9E 9D 6E EC BA 10 EE E6 CE A7 F3 7A F1 [15:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 34 3E 47 00 B6 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 15 03 00 F4 03 04 00 F7 0D 1E 67 B6 04 01 00 00 D3 E2 7E A2 41 37 5B 61 [15:54:38]CommunicateWithHost err = 0 [15:54:38]CheckOFDResponse [15:54:38]1017 (14) - 77093643461234 [15:54:38]1041 (16) - 0000000000871756 [15:54:38]1040 (4) - 202047 [15:54:38]1012 (4) - 27.10.2024 09:55 [15:54:38]1206 (1) - 0 [15:54:38]OFD Sender: Remove packet 202047 [15:54:38]ProducePacketName [15:54:38]name=ofd_packets/00202047 [15:54:38]NVStorageDeleteData [15:54:38]Write to MH i2c: 01 00 00 74 30 A4 [15:54:38]Write i2c OK [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: 01 [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: 01 07 00 [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: 01 07 00 74 30 00 00 00 00 00 8B 0C 42 [15:54:38]RasterBufferAndPrint [15:54:38]line [15:54:38]line [15:54:38]line [15:54:38]line [15:54:38]line [15:54:38]written 0, free lines is 3215 [15:54:38]MH_Cut [15:54:38]Write to MH i2c: D1 01 00 7B 30 01 7D [15:54:38]Write i2c OK [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: D1 [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: D1 01 00 [15:54:38]MH_I2C_Read... [15:54:38]Read from MH i2c: D1 01 00 7B 30 00 7C [15:54:38]Write to MH i2c: 01 00 00 7C 30 AC [15:54:38]Write i2c OK [15:54:38]MH_I2C_Read... [15:54:39]OFD Sender: No OFD packet to send [15:54:39]*** Cut start [15:54:39]*** Purtial cut [15:54:39]*** Stage 1: CUTSNS_PIN = 1 [15:54:39]Read from MH i2c: 01 [15:54:39]MH_I2C_Read... [15:54:39]*** Stop cut motor [15:54:39]*** Cut end [15:54:39]Read from MH i2c: 01 07 00 [15:54:39]MH_I2C_Read... [15:54:39]Read from MH i2c: 01 07 00 7C 30 00 00 00 00 00 FF 0F C1 [15:54:39]process_action close_receipt done [15:54:39]requested_data is exist [15:54:39]produce_requested_data [15:54:39]requested_item fm.sn is exist - process it [15:54:39]wFMCommunicate request_size=4 [15:54:39]MH_SAM_APDU [15:54:39]CAPDU: 80 11 00 00 [15:54:39]Write to MH i2c: E2 08 00 7D 30 80 11 00 00 00 00 00 00 27 [15:54:39]Write i2c OK [15:54:39]MH_I2C_Read... [15:54:40]Read from MH i2c: E2 [15:54:40]MH_I2C_Read... [15:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:40]Read from MH i2c: E2 17 00 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: E2 17 00 7D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [15:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:54:40]wFMCommunicate OK [15:54:40]requested_item fd.num is exist - process it [15:54:40]SAM_PROTO_GetFieldsCounters [15:54:40]wFMCommunicate request_size=4 [15:54:40]MH_SAM_APDU [15:54:40]CAPDU: 80 13 00 00 [15:54:40]Write to MH i2c: E2 08 00 7E 30 80 13 00 00 00 00 00 00 2A [15:54:40]Write i2c OK [15:54:40]MH_I2C_Read... [15:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:40]Read from MH i2c: E2 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: E2 62 00 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: E2 62 00 7E 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [15:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:40]wFMCommunicate OK [15:54:40]SAM_PROTO_GetFieldsCounters done [15:54:40]requested_item shift.num is exist - process it [15:54:40]requested_item shift.opened is exist - process it [15:54:40]req_shift_opened [15:54:40]FM_GetShiftState [15:54:40]SAM_PROTO_GetShiftState [15:54:40]wFMCommunicate request_size=4 [15:54:40]MH_SAM_APDU [15:54:40]CAPDU: 80 13 01 00 [15:54:40]Write to MH i2c: E2 08 00 7F 30 80 13 01 00 00 00 00 00 2C [15:54:40]Write i2c OK [15:54:40]MH_I2C_Read... [15:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:40]Read from MH i2c: E2 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: E2 0E 00 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: E2 0E 00 7F 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2E [15:54:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:54:40]wFMCommunicate OK [15:54:40]SAM_PROTO_GetShiftState done [15:54:40]FM_GetShiftState done [15:54:40]req_shift_opened done [15:54:40]requested_item shift.open_date is exist - process it [15:54:40]req_shift_open_date [15:54:40]req_shift_open_date done [15:54:40]produce_requested_data done [15:54:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202047,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:54:40]process_action_free close_receipt [15:54:40]json_value_free [15:54:40]json_value_free done [15:54:40]process_json_proto returns [15:54:40]Send response to host [15:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202047,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:54:40]free response buf [15:54:40]execute_script done [15:54:40]execute_script returns [15:54:40]free content buf [15:54:40]Sock 10.Close socket [15:54:40]Sock 10.Thread stoped [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 80 30 B0 [15:54:41]*** FLAG_PRN_KEY set [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 80 30 00 08 00 00 00 FF 0F CD [15:54:41]state=0 [15:54:41]Key pressed [15:54:41]Feed [15:54:41]Write to MH i2c: D8 00 00 81 30 88 [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 01 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 01 00 81 30 00 89 [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 82 30 B2 [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 82 30 00 48 00 00 00 3C 00 3D [15:54:41]state=2 [15:54:41]Key pressed [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 83 30 B3 [15:54:41]*** FLAG_PRN_KEY reset [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 83 30 00 00 00 00 00 F9 0F C2 [15:54:41]state=2 [15:54:41]Stop feed [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 84 30 B4 [15:54:41]*** FLAG_PRN_KEY set [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 84 30 00 08 00 00 00 FF 0F D1 [15:54:41]state=0 [15:54:41]Key pressed [15:54:41]Feed [15:54:41]Write to MH i2c: D8 00 00 85 30 8C [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 01 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 01 00 85 30 00 8D [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 86 30 B6 [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 86 30 00 48 00 00 00 3C 00 41 [15:54:41]state=2 [15:54:41]Key pressed [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 87 30 B7 [15:54:41]*** FLAG_PRN_KEY reset [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 87 30 00 00 00 00 00 F8 0F C5 [15:54:41]state=2 [15:54:41]Stop feed [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 88 30 B8 [15:54:41]*** FLAG_PRN_KEY set [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 88 30 00 08 00 00 00 FF 0F D5 [15:54:41]state=0 [15:54:41]Key pressed [15:54:41]Feed [15:54:41]Write to MH i2c: D8 00 00 89 30 90 [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 01 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: D8 01 00 89 30 00 91 [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 8A 30 BA [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 8A 30 00 48 00 00 00 3C 00 45 [15:54:41]state=2 [15:54:41]Key pressed [15:54:41]int [15:54:41]Write to MH i2c: 01 00 00 8B 30 BB [15:54:41]*** FLAG_PRN_KEY reset [15:54:41]Write i2c OK [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 [15:54:41]MH_I2C_Read... [15:54:41]Read from MH i2c: 01 07 00 8B 30 00 00 00 00 00 F7 0F C8 [15:54:41]state=2 [15:54:41]Stop feed [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:49]accept exits with 8 [15:56:49]New connection [15:56:49]New thread 3066498404 created [15:56:49]Thread 3066641764 joined [15:56:49]Waiting for new connection... [15:56:49] Sock 8.Parse request [15:56:49]Sock 8.Check first char [15:56:49]Sock 8.First char is OK [15:56:49]request: POST /json_proto HTTP/1.0 [15:56:49]Method: POST [15:56:49]URL: /json_proto [15:56:49]Method is POST - this is cgi request [15:56:49]url: /json_proto [15:56:49]query_string will be loaded in cgi processing [15:56:49]execute_cgi json_proto POST (null) [15:56:49]execute_cgi path=json_proto method=POST [15:56:49]POST find Content-Length [15:56:49]Host: 172.17.63.195:8080 [15:56:49]Content-Length: 675 [15:56:49]Content-Type: application/json [15:56:49] [15:56:49]POST finish read [15:56:49]Found Content-Length = 675 [15:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:49]execute_script... [15:56:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:49]POST & json_proto [15:56:49]process_json_proto [15:56:49]json parsed OK: [15:56:49]protocol is kg_v1.0 [15:56:49]action value=close_receipt [15:56:49]process_action close_receipt [15:56:49]cmd_close_receipt [15:56:49]MH_GetDate [15:56:49]Write to MH i2c: F0 00 00 8C 30 AB [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: F0 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: F0 09 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: F0 09 00 8C 30 00 C2 62 1E 67 47 1B 1E 67 44 [15:56:49]GetLastDocTimeStamp 1730044477 [15:56:49]current date 1730044610 [15:56:49]FM_GetShiftState [15:56:49]SAM_PROTO_GetShiftState [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 13 01 00 [15:56:49]Write to MH i2c: E2 08 00 8D 30 80 13 01 00 00 00 00 00 3A [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0E 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0E 00 8D 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3C [15:56:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_GetShiftState done [15:56:49]FM_GetShiftState done [15:56:49]opened in 1729987312 [15:56:49]opened+sec_in_day 1730073712 [15:56:49]quantity*price = 80010 [15:56:49]sum+1 = 80011 [15:56:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 340 27.10.2024 15:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202048 ФПД: 229796045205828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155650&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202048&fm=229796045205828&tin=02508201610067®Number=0000000000091777&sum=80000 [15:56:50]StoreToDocumentArchive [15:56:50]shift 544 fd 202048 [15:56:50]save to /storage/0544/doc_00202048 [15:56:50]save last doc name /storage/0544/doc_00202048 to /storage/kkm_last_doc_name [15:56:50]save OK [15:56:50]Clear old archive folders... [15:56:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:56:50]tlvbuf is B6E8EA90 [15:56:50]SAM_PROTO_ClearQueue [15:56:50]wFMCommunicate request_size=4 [15:56:50]MH_SAM_APDU [15:56:50]CAPDU: 80 09 00 00 [15:56:50]Write to MH i2c: E2 08 00 9A 30 80 09 00 00 00 00 00 00 3C [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:50]Read from MH i2c: E2 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: E2 03 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: E2 03 00 9A 30 00 90 00 3E [15:56:50]RAPDU: 90 00 [15:56:50]wFMCommunicate OK [15:56:50]SAM_PROTO_ClearQueue done [15:56:50]KKMCreateOFDPacket [15:56:50]OFDProtocolAddRootSTLVToBuf [15:56:50]FM_MakeSignedData [15:56:50]FM_MakeSignedData [15:56:50]SAM_PROTO_SignData [15:56:50]wFMCommunicate request_size=4 [15:56:50]MH_SAM_APDU [15:56:50]CAPDU: 80 0D 01 02 [15:56:50]Write to MH i2c: E2 08 00 9B 30 80 0D 01 02 00 00 00 00 44 [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:50]Read from MH i2c: E2 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: E2 03 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: E2 03 00 9B 30 00 90 00 3F [15:56:50]RAPDU: 90 00 [15:56:50]wFMCommunicate OK [15:56:50]wFMCommunicate request_size=255 [15:56:50]MH_SAM_APDU [15:56:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 54 01 00 00 F4 03 04 00 C2 62 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 15 03 00 35 04 06 00 D0 FF 8F A5 [15:56:50]Write to MH i2c: E2 02 01 9C 30 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 54 01 00 00 F4 03 04 00 C2 62 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 15 03 00 35 04 06 00 D0 FF 8F A5 00 00 7C [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:50]Read from MH i2c: E2 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: E2 03 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: E2 03 00 9C 30 00 90 00 40 [15:56:50]RAPDU: 90 00 [15:56:50]wFMCommunicate OK [15:56:50]wFMCommunicate request_size=7 [15:56:50]MH_SAM_APDU [15:56:50]CAPDU: 80 0D 02 02 02 31 44 [15:56:50]Write to MH i2c: E2 0A 00 9D 30 80 0D 02 02 02 00 31 44 00 00 C0 [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 03 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [15:56:51]RAPDU: 90 00 [15:56:51]wFMCommunicate OK [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 0D 03 02 [15:56:51]Write to MH i2c: E2 08 00 9E 30 80 0D 03 02 00 00 00 00 49 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 0B 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 0B 00 9E 30 00 33 85 0A 9E 7E B4 75 A6 90 00 F7 [15:56:51]RAPDU: 33 85 0A 9E 7E B4 75 A6 90 00 [15:56:51]wFMCommunicate OK [15:56:51]SAM_PROTO_SignData done [15:56:51]FM_MakeSignedData done [15:56:51]CreateOFDProtocolMessage [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 11 00 00 [15:56:51]Write to MH i2c: E2 08 00 9F 30 80 11 00 00 00 00 00 00 49 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:51]Read from MH i2c: E2 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 17 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: E2 17 00 9F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9E [15:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:56:51]wFMCommunicate OK [15:56:51]CreateOFDProtocolMessage done [15:56:51]OFDSenderStorePacket 202048 [15:56:51]StoreOFDPacket docnum=202048 [15:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E4 1B 04 01 D5 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 54 01 00 00 F4 03 04 00 C2 62 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 15 03 00 35 04 06 00 D0 FF 8F A5 31 44 33 85 0A 9E 7E B4 75 A6 [15:56:51]CheckFolder [15:56:51]dirname=/storage/ofd_packets [15:56:51]CheckFolder done [15:56:51]ProducePacketName [15:56:51]name=ofd_packets/00202048 [15:56:51]NVStorageSaveData ofd_packets/00202048 [15:56:51]File name is /storage/ofd_packets/00202048 [15:56:51]Write 298 bytes [15:56:51]NVStorageSaveData done [15:56:51]OFDSenderStorePacket done [15:56:51]KKMCreateOFDPacket done [15:56:51]NVStorageSaveData kkm_last_timestamp [15:56:51]File name is /storage/kkm_last_timestamp [15:56:51]Write 4 bytes [15:56:51]NVStorageSaveData done [15:56:51]ExternCall_PrintAddStr [15:56:51]wPrintStart [15:56:51]Write to MH i2c: 01 00 00 A0 30 D0 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: 01 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: 01 07 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: 01 07 00 A0 30 00 00 00 00 00 FF 0F E5 [15:56:51]RasterBufferAndPrint [15:56:51]line Счет N : (1)449815 [15:56:51]line ИНН: 02508201610067 [15:56:51]line Контрольно-Кассовый Чек [15:56:51]line ПРОДАЖА [15:56:51]line ТРК (МРК, ГНК) : 43 [15:56:51]line Товар: 2710194210 [15:56:51]line ДТ-К-2 [15:56:51]line 10.500 * 76.20 [15:56:51]line = 800.10 [15:56:51]line НДС 12% НСП 1% [15:56:51]line > о реализуемом товаре [15:56:51]line ОКРУГЛЕНИЕ: -0.10 [15:56:51]line ИТОГО: 800.00 [15:56:51]line Внесено: 800.00 [15:56:51]line СДАЧА: 0.00 [15:56:51]line НСП 1% : 7.08 [15:56:51]line НДС 12% : 84.97 [15:56:51]line Наличными: 800.00 [15:56:51]line Безнал.: 0.00 [15:56:51]line Место: АЗС № 171 "Партнер Нефть" [15:56:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:56:51]line СНО: Общий режим [15:56:51]line Чек 340 27.10.2024 15:56 [15:56:51]line Смена: 544 ФФД: 1.0 [15:56:51]line ЗНМ: 0300000109 [15:56:51]line РНМ: 0000000000091777 [15:56:51]line Версия ККМ: 001 [15:56:51]line ФМ: 0000000000871756 [15:56:51]line ФД: 202048 [15:56:51]line ФПД: 229796045205828 [15:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155650&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202048&fm=229796045205828&tin=02508201610067®Number=0000000000091777&sum=80000 [15:56:51]OFD Sender: Processing packet 202048 [packets to send 112, broken 111] [15:56:51]ProducePacketName [15:56:51]name=ofd_packets/00202048 [15:56:51]OFD Sender: To server: pG, [15:56:51]CommunicateWithHost lk.salyk.kg:30040 [15:56:51]ConnectInit lk.salyk.kg [15:56:51]written 0, free lines is 4095 [15:56:51]Connected sock=11 [15:56:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E4 1B 04 01 D5 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 54 01 00 00 F4 03 04 00 C2 62 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 15 03 00 35 04 06 00 D0 FF 8F A5 31 44 33 85 0A 9E 7E B4 75 A6 [15:56:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD A1 47 00 26 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 15 03 00 F4 03 04 00 7C 0E 1E 67 B6 04 01 00 00 00 7A DC 5B F8 C0 4F F6 [15:56:51]CommunicateWithHost err = 0 [15:56:51]CheckOFDResponse [15:56:51]1017 (14) - 77093643461234 [15:56:51]1041 (16) - 0000000000871756 [15:56:51]1040 (4) - 202048 [15:56:51]1012 (4) - 27.10.2024 09:57 [15:56:51]1206 (1) - 0 [15:56:51]OFD Sender: Remove packet 202048 [15:56:51]ProducePacketName [15:56:51]name=ofd_packets/00202048 [15:56:51]NVStorageDeleteData [15:56:51]Write to MH i2c: 01 00 00 CB 30 FB [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: 01 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: 01 07 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: 01 07 00 CB 30 00 00 00 00 00 8C 0C 9A [15:56:51]RasterBufferAndPrint [15:56:51]line [15:56:51]line [15:56:51]line [15:56:51]line [15:56:51]line [15:56:51]written 0, free lines is 3216 [15:56:51]MH_Cut [15:56:51]Write to MH i2c: D1 01 00 D2 30 01 D4 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: D1 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: D1 01 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: D1 01 00 D2 30 00 D3 [15:56:51]Write to MH i2c: 01 00 00 D3 30 03 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:52]OFD Sender: No OFD packet to send [15:56:52]*** Cut start [15:56:52]*** Purtial cut [15:56:52]*** Stage 1: CUTSNS_PIN = 1 [15:56:53]Read from MH i2c: 01 [15:56:53]MH_I2C_Read... [15:56:53]*** Stop cut motor [15:56:53]*** Cut end [15:56:53]Read from MH i2c: 01 07 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: 01 07 00 D3 30 00 00 00 00 00 FF 0F 18 [15:56:53]process_action close_receipt done [15:56:53]requested_data is exist [15:56:53]produce_requested_data [15:56:53]requested_item fm.sn is exist - process it [15:56:53]wFMCommunicate request_size=4 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 11 00 00 [15:56:53]Write to MH i2c: E2 08 00 D4 30 80 11 00 00 00 00 00 00 7E [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 17 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 17 00 D4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [15:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:56:53]wFMCommunicate OK [15:56:53]requested_item fd.num is exist - process it [15:56:53]SAM_PROTO_GetFieldsCounters [15:56:53]wFMCommunicate request_size=4 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 13 00 00 [15:56:53]Write to MH i2c: E2 08 00 D5 30 80 13 00 00 00 00 00 00 81 [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 62 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 62 00 D5 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 40 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [15:56:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 40 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:53]wFMCommunicate OK [15:56:53]SAM_PROTO_GetFieldsCounters done [15:56:53]requested_item shift.num is exist - process it [15:56:53]requested_item shift.opened is exist - process it [15:56:53]req_shift_opened [15:56:53]FM_GetShiftState [15:56:53]SAM_PROTO_GetShiftState [15:56:53]wFMCommunicate request_size=4 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 13 01 00 [15:56:53]Write to MH i2c: E2 08 00 D6 30 80 13 01 00 00 00 00 00 83 [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 0E 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 0E 00 D6 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 85 [15:56:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [15:56:53]wFMCommunicate OK [15:56:53]SAM_PROTO_GetShiftState done [15:56:53]FM_GetShiftState done [15:56:53]req_shift_opened done [15:56:53]requested_item shift.open_date is exist - process it [15:56:53]req_shift_open_date [15:56:53]req_shift_open_date done [15:56:53]produce_requested_data done [15:56:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202048,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [15:56:53]process_action_free close_receipt [15:56:53]json_value_free [15:56:53]json_value_free done [15:56:53]process_json_proto returns [15:56:53]Send response to host [15:56:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202048,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [15:56:53]free response buf [15:56:53]execute_script done [15:56:53]execute_script returns [15:56:53]free content buf [15:56:53]Sock 8.Close socket [15:56:53]Sock 8.Thread stoped [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57: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:16]accept exits with 9 [16:01:16]New connection [16:01:16]New thread 3066641764 created [16:01:16]Thread 3066498404 joined [16:01:16]Waiting for new connection... [16:01:16] Sock 9.Parse request [16:01:16]Sock 9.Check first char [16:01:16]Sock 9.First char is OK [16:01:16]request: POST /json_proto HTTP/1.0 [16:01:16]Method: POST [16:01:16]URL: /json_proto [16:01:16]Method is POST - this is cgi request [16:01:16]url: /json_proto [16:01:16]query_string will be loaded in cgi processing [16:01:16]execute_cgi json_proto POST (null) [16:01:16]execute_cgi path=json_proto method=POST [16:01:16]POST find Content-Length [16:01:16]Host: 172.17.63.195:8080 [16:01:16]Content-Length: 677 [16:01:16]Content-Type: application/json [16:01:16] [16:01:16]POST finish read [16:01:16]Found Content-Length = 677 [16:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:16]execute_script... [16:01:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:16]POST & json_proto [16:01:16]process_json_proto [16:01:16]json parsed OK: [16:01:16]protocol is kg_v1.0 [16:01:16]action value=close_receipt [16:01:16]process_action close_receipt [16:01:16]cmd_close_receipt [16:01:16]MH_GetDate [16:01:16]Write to MH i2c: F0 00 00 D7 30 F6 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: F0 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: F0 09 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: F0 09 00 D7 30 00 CE 63 1E 67 47 1B 1E 67 9C [16:01:16]GetLastDocTimeStamp 1730044610 [16:01:16]current date 1730044878 [16:01:16]FM_GetShiftState [16:01:16]SAM_PROTO_GetShiftState [16:01:16]wFMCommunicate request_size=4 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 13 01 00 [16:01:16]Write to MH i2c: E2 08 00 D8 30 80 13 01 00 00 00 00 00 85 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 0E 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 0E 00 D8 30 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 87 [16:01:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:01:16]wFMCommunicate OK [16:01:16]SAM_PROTO_GetShiftState done [16:01:16]FM_GetShiftState done [16:01:16]opened in 1729987312 [16:01:16]opened+sec_in_day 1730073712 [16:01:16]quantity*price = 14049 [16:01:16]sum+1 = 14050 [16:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 341 27.10.2024 16:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202049 ФПД: 143989067728863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160118&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202049&fm=143989067728863&tin=02508201610067®Number=0000000000091777&sum=14000 [16:01:17]StoreToDocumentArchive [16:01:17]shift 544 fd 202049 [16:01:17]save to /storage/0544/doc_00202049 [16:01:17]save last doc name /storage/0544/doc_00202049 to /storage/kkm_last_doc_name [16:01:17]save OK [16:01:17]Clear old archive folders... [16:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:17]tlvbuf is B6D5C7F0 [16:01:17]SAM_PROTO_ClearQueue [16:01:17]wFMCommunicate request_size=4 [16:01:17]MH_SAM_APDU [16:01:17]CAPDU: 80 09 00 00 [16:01:17]Write to MH i2c: E2 08 00 E5 30 80 09 00 00 00 00 00 00 87 [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:17]Read from MH i2c: E2 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 03 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: E2 03 00 E5 30 00 90 00 89 [16:01:17]RAPDU: 90 00 [16:01:17]wFMCommunicate OK [16:01:17]SAM_PROTO_ClearQueue done [16:01:17]KKMCreateOFDPacket [16:01:17]OFDProtocolAddRootSTLVToBuf [16:01:17]FM_MakeSignedData [16:01:17]FM_MakeSignedData [16:01:17]SAM_PROTO_SignData [16:01:17]wFMCommunicate request_size=4 [16:01:17]MH_SAM_APDU [16:01:17]CAPDU: 80 0D 01 02 [16:01:17]Write to MH i2c: E2 08 00 E6 30 80 0D 01 02 00 00 00 00 8F [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 03 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 03 00 E6 30 00 90 00 8A [16:01:18]RAPDU: 90 00 [16:01:18]wFMCommunicate OK [16:01:18]wFMCommunicate request_size=255 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 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 55 01 00 00 F4 03 04 00 CE 63 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 15 03 00 35 04 06 00 82 [16:01:18]Write to MH i2c: E2 02 01 E7 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 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 55 01 00 00 F4 03 04 00 CE 63 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 15 03 00 35 04 06 00 82 00 00 57 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 03 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 03 00 E7 30 00 90 00 8B [16:01:18]RAPDU: 90 00 [16:01:18]wFMCommunicate OK [16:01:18]wFMCommunicate request_size=10 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 0D 02 02 05 F5 11 3B C7 DF [16:01:18]Write to MH i2c: E2 0D 00 E8 30 80 0D 02 02 05 00 F5 11 3B C7 DF 00 00 83 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 03 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [16:01:18]RAPDU: 90 00 [16:01:18]wFMCommunicate OK [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 0D 03 02 [16:01:18]Write to MH i2c: E2 08 00 E9 30 80 0D 03 02 00 00 00 00 94 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 0B 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 0B 00 E9 30 00 AB 32 62 FE 87 9B EF A9 90 00 8C [16:01:18]RAPDU: AB 32 62 FE 87 9B EF A9 90 00 [16:01:18]wFMCommunicate OK [16:01:18]SAM_PROTO_SignData done [16:01:18]FM_MakeSignedData done [16:01:18]CreateOFDProtocolMessage [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 11 00 00 [16:01:18]Write to MH i2c: E2 08 00 EA 30 80 11 00 00 00 00 00 00 94 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 17 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 17 00 EA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [16:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:01:18]wFMCommunicate OK [16:01:18]CreateOFDProtocolMessage done [16:01:18]OFDSenderStorePacket 202049 [16:01:18]StoreOFDPacket docnum=202049 [16:01:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D0 2F 07 01 F2 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 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 55 01 00 00 F4 03 04 00 CE 63 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 15 03 00 35 04 06 00 82 F5 11 3B C7 DF AB 32 62 FE 87 9B EF A9 [16:01:18]CheckFolder [16:01:18]dirname=/storage/ofd_packets [16:01:18]CheckFolder done [16:01:18]ProducePacketName [16:01:18]name=ofd_packets/00202049 [16:01:18]NVStorageSaveData ofd_packets/00202049 [16:01:18]File name is /storage/ofd_packets/00202049 [16:01:18]Write 301 bytes [16:01:18]NVStorageSaveData done [16:01:18]OFDSenderStorePacket done [16:01:18]KKMCreateOFDPacket done [16:01:18]NVStorageSaveData kkm_last_timestamp [16:01:18]File name is /storage/kkm_last_timestamp [16:01:18]Write 4 bytes [16:01:18]NVStorageSaveData done [16:01:18]ExternCall_PrintAddStr [16:01:18]wPrintStart [16:01:18]Write to MH i2c: 01 00 00 EB 30 1B [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: 01 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: 01 07 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: 01 07 00 EB 30 00 00 00 00 00 FF 0F 30 [16:01:18]RasterBufferAndPrint [16:01:18]line Счет N : (1)449817 [16:01:18]line ИНН: 02508201610067 [16:01:18]line Контрольно-Кассовый Чек [16:01:18]line ПРОДАЖА [16:01:18]line ТРК (МРК, ГНК) : 41 [16:01:18]line Товар: 2710124130 [16:01:18]line Аи-92-К-2 [16:01:18]line 2.100 * 66.90 [16:01:18]line = 140.49 [16:01:18]line НДС 12% НСП 1% [16:01:18]line > о реализуемом товаре [16:01:18]line ОКРУГЛЕНИЕ: -0.49 [16:01:18]line ИТОГО: 140.00 [16:01:18]line Внесено: 140.00 [16:01:18]line СДАЧА: 0.00 [16:01:18]line НСП 1% : 1.24 [16:01:18]line НДС 12% : 14.92 [16:01:18]line Наличными: 140.00 [16:01:18]line Безнал.: 0.00 [16:01:18]line Место: АЗС № 171 "Партнер Нефть" [16:01:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:01:18]line СНО: Общий режим [16:01:18]line Чек 341 27.10.2024 16:01 [16:01:18]line Смена: 544 ФФД: 1.0 [16:01:18]line ЗНМ: 0300000109 [16:01:18]line РНМ: 0000000000091777 [16:01:18]line Версия ККМ: 001 [16:01:18]line ФМ: 0000000000871756 [16:01:18]line ФД: 202049 [16:01:18]line ФПД: 143989067728863 [16:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160118&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202049&fm=143989067728863&tin=02508201610067®Number=0000000000091777&sum=14000 [16:01:18]OFD Sender: Processing packet 202049 [packets to send 112, broken 111] [16:01:18]ProducePacketName [16:01:18]name=ofd_packets/00202049 [16:01:18]OFD Sender: To server: pG, [16:01:18]CommunicateWithHost lk.salyk.kg:30040 [16:01:18]ConnectInit lk.salyk.kg [16:01:18]written 0, free lines is 4095 [16:01:18]Connected sock=10 [16:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D0 2F 07 01 F2 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 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 55 01 00 00 F4 03 04 00 CE 63 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 15 03 00 35 04 06 00 82 F5 11 3B C7 DF AB 32 62 FE 87 9B EF A9 [16:01:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9F 4D 47 00 C2 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 15 03 00 F4 03 04 00 87 0F 1E 67 B6 04 01 00 00 C0 04 6F 33 29 06 B2 6A [16:01:19]CommunicateWithHost err = 0 [16:01:19]CheckOFDResponse [16:01:19]1017 (14) - 77093643461234 [16:01:19]1041 (16) - 0000000000871756 [16:01:19]1040 (4) - 202049 [16:01:19]1012 (4) - 27.10.2024 10:01 [16:01:19]1206 (1) - 0 [16:01:19]OFD Sender: Remove packet 202049 [16:01:19]ProducePacketName [16:01:19]name=ofd_packets/00202049 [16:01:19]NVStorageDeleteData [16:01:19]Write to MH i2c: 01 00 00 16 31 47 [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: 01 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: 01 07 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: 01 07 00 16 31 00 00 00 00 00 88 0C E2 [16:01:19]RasterBufferAndPrint [16:01:19]line [16:01:19]line [16:01:19]line [16:01:19]line [16:01:19]line [16:01:19]written 0, free lines is 3212 [16:01:19]MH_Cut [16:01:19]Write to MH i2c: D1 01 00 1D 31 01 20 [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: D1 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: D1 01 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: D1 01 00 1D 31 00 1F [16:01:19]Write to MH i2c: 01 00 00 1E 31 4F [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]OFD Sender: No OFD packet to send [16:01:20]*** Cut start [16:01:20]*** Purtial cut [16:01:20]*** Stage 1: CUTSNS_PIN = 1 [16:01:20]Read from MH i2c: 01 [16:01:20]MH_I2C_Read... [16:01:20]*** Stop cut motor [16:01:20]*** Cut end [16:01:20]Read from MH i2c: 01 07 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: 01 07 00 1E 31 00 00 00 00 00 FF 0F 64 [16:01:20]process_action close_receipt done [16:01:20]requested_data is exist [16:01:20]produce_requested_data [16:01:20]requested_item fm.sn is exist - process it [16:01:20]wFMCommunicate request_size=4 [16:01:20]MH_SAM_APDU [16:01:20]CAPDU: 80 11 00 00 [16:01:20]Write to MH i2c: E2 08 00 1F 31 80 11 00 00 00 00 00 00 CA [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:20]Read from MH i2c: E2 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 17 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 17 00 1F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [16:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:01:20]wFMCommunicate OK [16:01:20]requested_item fd.num is exist - process it [16:01:20]SAM_PROTO_GetFieldsCounters [16:01:20]wFMCommunicate request_size=4 [16:01:20]MH_SAM_APDU [16:01:20]CAPDU: 80 13 00 00 [16:01:20]Write to MH i2c: E2 08 00 20 31 80 13 00 00 00 00 00 00 CD [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:20]Read from MH i2c: E2 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 62 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 62 00 20 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 41 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [16:01:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 41 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:20]wFMCommunicate OK [16:01:20]SAM_PROTO_GetFieldsCounters done [16:01:20]requested_item shift.num is exist - process it [16:01:20]requested_item shift.opened is exist - process it [16:01:20]req_shift_opened [16:01:20]FM_GetShiftState [16:01:20]SAM_PROTO_GetShiftState [16:01:20]wFMCommunicate request_size=4 [16:01:20]MH_SAM_APDU [16:01:20]CAPDU: 80 13 01 00 [16:01:20]Write to MH i2c: E2 08 00 21 31 80 13 01 00 00 00 00 00 CF [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:20]Read from MH i2c: E2 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 0E 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: E2 0E 00 21 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D1 [16:01:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:01:20]wFMCommunicate OK [16:01:20]SAM_PROTO_GetShiftState done [16:01:20]FM_GetShiftState done [16:01:20]req_shift_opened done [16:01:20]requested_item shift.open_date is exist - process it [16:01:20]req_shift_open_date [16:01:20]req_shift_open_date done [16:01:20]produce_requested_data done [16:01:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202049,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:01:20]process_action_free close_receipt [16:01:20]json_value_free [16:01:20]json_value_free done [16:01:20]process_json_proto returns [16:01:20]Send response to host [16:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202049,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:01:20]free response buf [16:01:20]execute_script done [16:01:20]execute_script returns [16:01:20]free content buf [16:01:20]Sock 9.Close socket [16:01:20]Sock 9.Thread stoped [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:27]accept exits with 8 [16:03:27]New connection [16:03:27]New thread 3066498404 created [16:03:27]Thread 3066641764 joined [16:03:27]Waiting for new connection... [16:03:27] Sock 8.Parse request [16:03:27]Sock 8.Check first char [16:03:27]Sock 8.First char is OK [16:03:27]request: POST /json_proto HTTP/1.0 [16:03:27]Method: POST [16:03:27]URL: /json_proto [16:03:27]Method is POST - this is cgi request [16:03:27]url: /json_proto [16:03:27]query_string will be loaded in cgi processing [16:03:27]execute_cgi json_proto POST (null) [16:03:27]execute_cgi path=json_proto method=POST [16:03:27]POST find Content-Length [16:03:27]Host: 172.17.63.195:8080 [16:03:27]Content-Length: 769 [16:03:27]Content-Type: application/json [16:03:27] [16:03:27]POST finish read [16:03:27]Found Content-Length = 769 [16:03:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 10000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:27]execute_script... [16:03: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)449816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 10000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:27]POST & json_proto [16:03:27]process_json_proto [16:03:27]json parsed OK: [16:03:27]protocol is kg_v1.0 [16:03:27]action value=close_receipt [16:03:27]process_action close_receipt [16:03:27]cmd_close_receipt [16:03:27]MH_GetDate [16:03:27]Write to MH i2c: F0 00 00 22 31 42 [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: F0 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: F0 09 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: F0 09 00 22 31 00 51 64 1E 67 47 1B 1E 67 6C [16:03:27]GetLastDocTimeStamp 1730044878 [16:03:27]current date 1730045009 [16:03:27]FM_GetShiftState [16:03:27]SAM_PROTO_GetShiftState [16:03:27]wFMCommunicate request_size=4 [16:03:27]MH_SAM_APDU [16:03:27]CAPDU: 80 13 01 00 [16:03:27]Write to MH i2c: E2 08 00 23 31 80 13 01 00 00 00 00 00 D1 [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:27]Read from MH i2c: E2 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 0E 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 0E 00 23 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D3 [16:03:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:03:27]wFMCommunicate OK [16:03:27]SAM_PROTO_GetShiftState done [16:03:27]FM_GetShiftState done [16:03:27]opened in 1729987312 [16:03:27]opened+sec_in_day 1730073712 [16:03:27]quantity*price = 1000048 [16:03:27]sum+1 = 1000050 [16:03:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.49 НСП 1% : 88.50 НДС 12% : 1062.00 Наличными: 0.00 Безнал.: 10000.49 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 342 27.10.2024 16:03 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202050 ФПД: 20864433196478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160329&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202050&fm=20864433196478&tin=02508201610067®Number=0000000000091777&sum=1000049 [16:03:28]StoreToDocumentArchive [16:03:28]shift 544 fd 202050 [16:03:28]save to /storage/0544/doc_00202050 [16:03:28]save last doc name /storage/0544/doc_00202050 to /storage/kkm_last_doc_name [16:03:28]save OK [16:03:28]Clear old archive folders... [16:03:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:03:28]tlvbuf is 011B0EE0 [16:03:28]SAM_PROTO_ClearQueue [16:03:28]wFMCommunicate request_size=4 [16:03:28]MH_SAM_APDU [16:03:28]CAPDU: 80 09 00 00 [16:03:28]Write to MH i2c: E2 08 00 30 31 80 09 00 00 00 00 00 00 D3 [16:03:28]Write i2c OK [16:03:28]MH_I2C_Read... [16:03:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 30 31 00 90 00 D5 [16:03:29]RAPDU: 90 00 [16:03:29]wFMCommunicate OK [16:03:29]SAM_PROTO_ClearQueue done [16:03:29]KKMCreateOFDPacket [16:03:29]OFDProtocolAddRootSTLVToBuf [16:03:29]FM_MakeSignedData [16:03:29]FM_MakeSignedData [16:03:29]SAM_PROTO_SignData [16:03:29]wFMCommunicate request_size=4 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 0D 01 02 [16:03:29]Write to MH i2c: E2 08 00 31 31 80 0D 01 02 00 00 00 00 DB [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 31 31 00 90 00 D6 [16:03:29]RAPDU: 90 00 [16:03:29]wFMCommunicate OK [16:03:29]wFMCommunicate request_size=255 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 51 64 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 15 03 00 35 04 06 00 12 F9 E1 21 [16:03:29]Write to MH i2c: E2 02 01 32 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 51 64 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 15 03 00 35 04 06 00 12 F9 E1 21 00 00 53 [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 32 31 00 90 00 D7 [16:03:29]RAPDU: 90 00 [16:03:29]wFMCommunicate OK [16:03:29]wFMCommunicate request_size=7 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 0D 02 02 02 0D BE [16:03:29]Write to MH i2c: E2 0A 00 33 31 80 0D 02 02 02 00 0D BE 00 00 AD [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 03 00 33 31 00 90 00 D8 [16:03:29]RAPDU: 90 00 [16:03:29]wFMCommunicate OK [16:03:29]wFMCommunicate request_size=4 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 0D 03 02 [16:03:29]Write to MH i2c: E2 08 00 34 31 80 0D 03 02 00 00 00 00 E0 [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 0B 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 0B 00 34 31 00 F0 FB 10 E8 A2 97 41 B5 90 00 F3 [16:03:29]RAPDU: F0 FB 10 E8 A2 97 41 B5 90 00 [16:03:29]wFMCommunicate OK [16:03:29]SAM_PROTO_SignData done [16:03:29]FM_MakeSignedData done [16:03:29]CreateOFDProtocolMessage [16:03:29]wFMCommunicate request_size=4 [16:03:29]MH_SAM_APDU [16:03:29]CAPDU: 80 11 00 00 [16:03:29]Write to MH i2c: E2 08 00 35 31 80 11 00 00 00 00 00 00 E0 [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:29]Read from MH i2c: E2 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 17 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: E2 17 00 35 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [16:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:03:29]wFMCommunicate OK [16:03:29]CreateOFDProtocolMessage done [16:03:29]OFDSenderStorePacket 202050 [16:03:29]StoreOFDPacket docnum=202050 [16:03:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 B8 F3 04 01 4D 05 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 32 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 51 64 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 15 03 00 35 04 06 00 12 F9 E1 21 0D BE F0 FB 10 E8 A2 97 41 B5 [16:03:29]CheckFolder [16:03:29]dirname=/storage/ofd_packets [16:03:29]CheckFolder done [16:03:29]ProducePacketName [16:03:29]name=ofd_packets/00202050 [16:03:29]NVStorageSaveData ofd_packets/00202050 [16:03:29]File name is /storage/ofd_packets/00202050 [16:03:29]Write 298 bytes [16:03:29]NVStorageSaveData done [16:03:29]OFDSenderStorePacket done [16:03:29]KKMCreateOFDPacket done [16:03:29]NVStorageSaveData kkm_last_timestamp [16:03:29]File name is /storage/kkm_last_timestamp [16:03:29]Write 4 bytes [16:03:29]NVStorageSaveData done [16:03:29]ExternCall_PrintAddStr [16:03:29]wPrintStart [16:03:29]Write to MH i2c: 01 00 00 36 31 67 [16:03:29]Write i2c OK [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: 01 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: 01 07 00 [16:03:29]MH_I2C_Read... [16:03:29]Read from MH i2c: 01 07 00 36 31 00 00 00 00 00 FF 0F 7C [16:03:29]RasterBufferAndPrint [16:03:29]line Счет N : (1)449816 [16:03:29]line ИНН: 02508201610067 [16:03:29]line Контрольно-Кассовый Чек [16:03:29]line ПРОДАЖА [16:03:29]line ТРК (МРК, ГНК) : 11 [16:03:29]line Товар: 2710194210 [16:03:29]line ДТ-К-2 [16:03:29]line 131.240 * 76.20 [16:03:29]line = 10000.49 [16:03:29]line НДС 12% НСП 1% [16:03:29]line > о реализуемом товаре [16:03:29]line ИТОГО: 10000.49 [16:03:29]line НСП 1% : 88.50 [16:03:29]line НДС 12% : 1062.00 [16:03:29]line Наличными: 0.00 [16:03:29]line Безнал.: 10000.49 [16:03:29]line Место: АЗС № 171 "Партнер Нефть" [16:03:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:03:29]line СНО: Общий режим [16:03:29]line Чек 342 27.10.2024 16:03 [16:03:29]line Смена: 544 ФФД: 1.0 [16:03:29]line ЗНМ: 0300000109 [16:03:29]line РНМ: 0000000000091777 [16:03:29]line Версия ККМ: 001 [16:03:29]line Платежная система: Mbank [16:03:29]line ФМ: 0000000000871756 [16:03:29]line ФД: 202050 [16:03:29]line ФПД: 20864433196478 [16:03:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160329&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202050&fm=20864433196478&tin=02508201610067®Number=0000000000091777&sum=1000049 [16:03:29]OFD Sender: Processing packet 202050 [packets to send 112, broken 111] [16:03:29]ProducePacketName [16:03:29]name=ofd_packets/00202050 [16:03:29]OFD Sender: To server: pG, [16:03:29]CommunicateWithHost lk.salyk.kg:30040 [16:03:29]ConnectInit lk.salyk.kg [16:03:29]written 0, free lines is 4095 [16:03:29]Connected sock=10 [16:03:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 B8 F3 04 01 4D 05 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 32 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 51 64 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 15 03 00 35 04 06 00 12 F9 E1 21 0D BE F0 FB 10 E8 A2 97 41 B5 [16:03:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EB 39 47 00 97 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 15 03 00 F4 03 04 00 0A 10 1E 67 B6 04 01 00 00 0C 8F 63 97 57 C4 77 4B [16:03:30]CommunicateWithHost err = 0 [16:03:30]CheckOFDResponse [16:03:30]1017 (14) - 77093643461234 [16:03:30]1041 (16) - 0000000000871756 [16:03:30]1040 (4) - 202050 [16:03:30]1012 (4) - 27.10.2024 10:03 [16:03:30]1206 (1) - 0 [16:03:30]OFD Sender: Remove packet 202050 [16:03:30]ProducePacketName [16:03:30]name=ofd_packets/00202050 [16:03:30]NVStorageDeleteData [16:03:30]Write to MH i2c: 01 00 00 5F 31 90 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 07 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: 01 07 00 5F 31 00 00 00 00 00 B6 0C 59 [16:03:30]RasterBufferAndPrint [16:03:30]line [16:03:30]line [16:03:30]line [16:03:30]line [16:03:30]line [16:03:30]written 0, free lines is 3258 [16:03:30]MH_Cut [16:03:30]Write to MH i2c: D1 01 00 66 31 01 69 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: D1 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: D1 01 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: D1 01 00 66 31 00 68 [16:03:30]Write to MH i2c: 01 00 00 67 31 98 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]OFD Sender: No OFD packet to send [16:03:31]*** Cut start [16:03:31]*** Purtial cut [16:03:31]*** Stage 1: CUTSNS_PIN = 1 [16:03:31]Read from MH i2c: 01 [16:03:31]MH_I2C_Read... [16:03:31]*** Stop cut motor [16:03:31]*** Cut end [16:03:31]Read from MH i2c: 01 07 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 07 00 67 31 00 00 00 00 00 FF 0F AD [16:03:31]process_action close_receipt done [16:03:31]requested_data is exist [16:03:31]produce_requested_data [16:03:31]requested_item fm.sn is exist - process it [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 11 00 00 [16:03:31]Write to MH i2c: E2 08 00 68 31 80 11 00 00 00 00 00 00 13 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 17 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 17 00 68 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [16:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:03:31]wFMCommunicate OK [16:03:31]requested_item fd.num is exist - process it [16:03:31]SAM_PROTO_GetFieldsCounters [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 13 00 00 [16:03:31]Write to MH i2c: E2 08 00 69 31 80 13 00 00 00 00 00 00 16 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 62 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 62 00 69 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 42 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [16:03:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 42 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_GetFieldsCounters done [16:03:31]requested_item shift.num is exist - process it [16:03:31]requested_item shift.opened is exist - process it [16:03:31]req_shift_opened [16:03:31]FM_GetShiftState [16:03:31]SAM_PROTO_GetShiftState [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 13 01 00 [16:03:31]Write to MH i2c: E2 08 00 6A 31 80 13 01 00 00 00 00 00 18 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0E 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0E 00 6A 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1A [16:03:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_GetShiftState done [16:03:31]FM_GetShiftState done [16:03:31]req_shift_opened done [16:03:31]requested_item shift.open_date is exist - process it [16:03:31]req_shift_open_date [16:03:31]req_shift_open_date done [16:03:31]produce_requested_data done [16:03:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202050,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:03:31]process_action_free close_receipt [16:03:31]json_value_free [16:03:31]json_value_free done [16:03:31]process_json_proto returns [16:03:31]Send response to host [16:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202050,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:03:31]free response buf [16:03:31]execute_script done [16:03:31]execute_script returns [16:03:31]free content buf [16:03:31]Sock 8.Close socket [16:03:31]Sock 8.Thread stoped [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:51]accept exits with 9 [16:04:51]New connection [16:04:51]New thread 3066641764 created [16:04:51]Thread 3066498404 joined [16:04:51]Waiting for new connection... [16:04:51] Sock 9.Parse request [16:04:51]Sock 9.Check first char [16:04:51]Sock 9.First char is OK [16:04:51]request: POST /json_proto HTTP/1.0 [16:04:51]Method: POST [16:04:51]URL: /json_proto [16:04:51]Method is POST - this is cgi request [16:04:51]url: /json_proto [16:04:51]query_string will be loaded in cgi processing [16:04:51]execute_cgi json_proto POST (null) [16:04:51]execute_cgi path=json_proto method=POST [16:04:51]POST find Content-Length [16:04:51]Host: 172.17.63.195:8080 [16:04:51]Content-Length: 769 [16:04:51]Content-Type: application/json [16:04:51] [16:04:51]POST finish read [16:04:51]Found Content-Length = 769 [16:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:51]execute_script... [16:04: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)449818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:51]POST & json_proto [16:04:51]process_json_proto [16:04:51]json parsed OK: [16:04:51]protocol is kg_v1.0 [16:04:51]action value=close_receipt [16:04:51]process_action close_receipt [16:04:51]cmd_close_receipt [16:04:51]MH_GetDate [16:04:51]Write to MH i2c: F0 00 00 6B 31 8B [16:04:51]Write i2c OK [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: F0 [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: F0 09 00 [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: F0 09 00 6B 31 00 A5 64 1E 67 47 1B 1E 67 09 [16:04:51]GetLastDocTimeStamp 1730045009 [16:04:51]current date 1730045093 [16:04:51]FM_GetShiftState [16:04:51]SAM_PROTO_GetShiftState [16:04:51]wFMCommunicate request_size=4 [16:04:51]MH_SAM_APDU [16:04:51]CAPDU: 80 13 01 00 [16:04:51]Write to MH i2c: E2 08 00 6C 31 80 13 01 00 00 00 00 00 1A [16:04:51]Write i2c OK [16:04:51]MH_I2C_Read... [16:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:51]Read from MH i2c: E2 [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: E2 0E 00 [16:04:51]MH_I2C_Read... [16:04:51]Read from MH i2c: E2 0E 00 6C 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1C [16:04:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:04:51]wFMCommunicate OK [16:04:51]SAM_PROTO_GetShiftState done [16:04:51]FM_GetShiftState done [16:04:51]opened in 1729987312 [16:04:51]opened+sec_in_day 1730073712 [16:04:51]quantity*price = 100015 [16:04:51]sum+1 = 100017 [16:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 343 27.10.2024 16:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202051 ФПД: 61371218109226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160453&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202051&fm=61371218109226&tin=02508201610067®Number=0000000000091777&sum=100016 [16:04:52]StoreToDocumentArchive [16:04:52]shift 544 fd 202051 [16:04:52]save to /storage/0544/doc_00202051 [16:04:52]save last doc name /storage/0544/doc_00202051 to /storage/kkm_last_doc_name [16:04:52]save OK [16:04:52]Clear old archive folders... [16:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:52]tlvbuf is 01244890 [16:04:52]SAM_PROTO_ClearQueue [16:04:52]wFMCommunicate request_size=4 [16:04:52]MH_SAM_APDU [16:04:52]CAPDU: 80 09 00 00 [16:04:52]Write to MH i2c: E2 08 00 79 31 80 09 00 00 00 00 00 00 1C [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 03 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 03 00 79 31 00 90 00 1E [16:04:52]RAPDU: 90 00 [16:04:52]wFMCommunicate OK [16:04:52]SAM_PROTO_ClearQueue done [16:04:52]KKMCreateOFDPacket [16:04:52]OFDProtocolAddRootSTLVToBuf [16:04:52]FM_MakeSignedData [16:04:52]FM_MakeSignedData [16:04:52]SAM_PROTO_SignData [16:04:52]wFMCommunicate request_size=4 [16:04:52]MH_SAM_APDU [16:04:52]CAPDU: 80 0D 01 02 [16:04:52]Write to MH i2c: E2 08 00 7A 31 80 0D 01 02 00 00 00 00 24 [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:52]Read from MH i2c: E2 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 03 00 [16:04:52]MH_I2C_Read... [16:04:52]Read from MH i2c: E2 03 00 7A 31 00 90 00 1F [16:04:52]RAPDU: 90 00 [16:04:52]wFMCommunicate OK [16:04:52]wFMCommunicate request_size=255 [16:04:52]MH_SAM_APDU [16:04: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 32 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 57 01 00 00 F4 03 04 00 A5 64 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 15 03 00 35 04 06 00 37 [16:04:52]Write to MH i2c: E2 02 01 7B 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 57 01 00 00 F4 03 04 00 A5 64 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 15 03 00 35 04 06 00 37 00 00 6C [16:04:52]Write i2c OK [16:04:52]MH_I2C_Read... [16:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:53]Read from MH i2c: E2 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 03 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 03 00 7B 31 00 90 00 20 [16:04:53]RAPDU: 90 00 [16:04:53]wFMCommunicate OK [16:04:53]wFMCommunicate request_size=10 [16:04:53]MH_SAM_APDU [16:04:53]CAPDU: 80 0D 02 02 05 D1 19 A7 A3 2A [16:04:53]Write to MH i2c: E2 0D 00 7C 31 80 0D 02 02 05 00 D1 19 A7 A3 2A 00 00 8F [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:53]Read from MH i2c: E2 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 03 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 03 00 7C 31 00 90 00 21 [16:04:53]RAPDU: 90 00 [16:04:53]wFMCommunicate OK [16:04:53]wFMCommunicate request_size=4 [16:04:53]MH_SAM_APDU [16:04:53]CAPDU: 80 0D 03 02 [16:04:53]Write to MH i2c: E2 08 00 7D 31 80 0D 03 02 00 00 00 00 29 [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:53]Read from MH i2c: E2 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 0B 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 0B 00 7D 31 00 CD 1A C9 80 6B 79 B1 31 90 00 20 [16:04:53]RAPDU: CD 1A C9 80 6B 79 B1 31 90 00 [16:04:53]wFMCommunicate OK [16:04:53]SAM_PROTO_SignData done [16:04:53]FM_MakeSignedData done [16:04:53]CreateOFDProtocolMessage [16:04:53]wFMCommunicate request_size=4 [16:04:53]MH_SAM_APDU [16:04:53]CAPDU: 80 11 00 00 [16:04:53]Write to MH i2c: E2 08 00 7E 31 80 11 00 00 00 00 00 00 29 [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:53]Read from MH i2c: E2 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 17 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: E2 17 00 7E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7E [16:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:04:53]wFMCommunicate OK [16:04:53]CreateOFDProtocolMessage done [16:04:53]OFDSenderStorePacket 202051 [16:04:53]StoreOFDPacket docnum=202051 [16:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 60 A0 07 01 20 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 32 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 57 01 00 00 F4 03 04 00 A5 64 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 15 03 00 35 04 06 00 37 D1 19 A7 A3 2A CD 1A C9 80 6B 79 B1 31 [16:04:53]CheckFolder [16:04:53]dirname=/storage/ofd_packets [16:04:53]CheckFolder done [16:04:53]ProducePacketName [16:04:53]name=ofd_packets/00202051 [16:04:53]NVStorageSaveData ofd_packets/00202051 [16:04:53]File name is /storage/ofd_packets/00202051 [16:04:53]Write 301 bytes [16:04:53]NVStorageSaveData done [16:04:53]OFDSenderStorePacket done [16:04:53]KKMCreateOFDPacket done [16:04:53]NVStorageSaveData kkm_last_timestamp [16:04:53]File name is /storage/kkm_last_timestamp [16:04:53]Write 4 bytes [16:04:53]NVStorageSaveData done [16:04:53]ExternCall_PrintAddStr [16:04:53]wPrintStart [16:04:53]Write to MH i2c: 01 00 00 7F 31 B0 [16:04:53]Write i2c OK [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: 01 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: 01 07 00 [16:04:53]MH_I2C_Read... [16:04:53]Read from MH i2c: 01 07 00 7F 31 00 00 00 00 00 FF 0F C5 [16:04:53]RasterBufferAndPrint [16:04:53]line Счет N : (1)449818 [16:04:53]line ИНН: 02508201610067 [16:04:53]line Контрольно-Кассовый Чек [16:04:53]line ПРОДАЖА [16:04:53]line ТРК (МРК, ГНК) : 41 [16:04:53]line Товар: 2710124130 [16:04:53]line Аи-92-К-2 [16:04:53]line 14.950 * 66.90 [16:04:53]line = 1000.16 [16:04:53]line НДС 12% НСП 1% [16:04:53]line > о реализуемом товаре [16:04:53]line ИТОГО: 1000.16 [16:04:53]line НСП 1% : 8.85 [16:04:53]line НДС 12% : 106.21 [16:04:53]line Наличными: 0.00 [16:04:53]line Безнал.: 1000.16 [16:04:53]line Место: АЗС № 171 "Партнер Нефть" [16:04:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:04:53]line СНО: Общий режим [16:04:53]line Чек 343 27.10.2024 16:04 [16:04:53]line Смена: 544 ФФД: 1.0 [16:04:53]line ЗНМ: 0300000109 [16:04:53]line РНМ: 0000000000091777 [16:04:53]line Версия ККМ: 001 [16:04:53]line Платежная система: Mbank [16:04:53]line ФМ: 0000000000871756 [16:04:53]line ФД: 202051 [16:04:53]line ФПД: 61371218109226 [16:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160453&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202051&fm=61371218109226&tin=02508201610067®Number=0000000000091777&sum=100016 [16:04:53]written 0, free lines is 4095 [16:04:53]OFD Sender: Processing packet 202051 [packets to send 112, broken 111] [16:04:53]ProducePacketName [16:04:53]name=ofd_packets/00202051 [16:04:53]OFD Sender: To server: pG, [16:04:53]CommunicateWithHost lk.salyk.kg:30040 [16:04:53]ConnectInit lk.salyk.kg [16:04:53]Connected sock=10 [16:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 60 A0 07 01 20 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 32 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 57 01 00 00 F4 03 04 00 A5 64 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 15 03 00 35 04 06 00 37 D1 19 A7 A3 2A CD 1A C9 80 6B 79 B1 31 [16:04:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0A AA 47 00 D6 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 15 03 00 F4 03 04 00 5E 10 1E 67 B6 04 01 00 00 D9 0D 5B F4 C1 69 8D 70 [16:04:53]CommunicateWithHost err = 0 [16:04:53]CheckOFDResponse [16:04:53]1017 (14) - 77093643461234 [16:04:53]1041 (16) - 0000000000871756 [16:04:53]1040 (4) - 202051 [16:04:53]1012 (4) - 27.10.2024 10:05 [16:04:53]1206 (1) - 0 [16:04:53]OFD Sender: Remove packet 202051 [16:04:53]ProducePacketName [16:04:53]name=ofd_packets/00202051 [16:04:53]NVStorageDeleteData [16:04:54]Write to MH i2c: 01 00 00 A8 31 D9 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 A8 31 00 00 00 00 00 BC 0C A8 [16:04:54]RasterBufferAndPrint [16:04:54]line [16:04:54]line [16:04:54]line [16:04:54]line [16:04:54]line [16:04:54]written 0, free lines is 3264 [16:04:54]MH_Cut [16:04:54]Write to MH i2c: D1 01 00 AF 31 01 B2 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: D1 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: D1 01 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: D1 01 00 AF 31 00 B1 [16:04:54]Write to MH i2c: 01 00 00 B0 31 E1 [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]OFD Sender: No OFD packet to send [16:04:54]int [16:04:54]*** FLAG_PRN_PAP2 set [16:04:54]*** Cut start [16:04:54]*** Purtial cut [16:04:54]*** Stage 1: CUTSNS_PIN = 1 [16:04:54]Read from MH i2c: 01 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: *** Stop cut motor [16:04:54]01 07 *** Cut end [16:04:54]00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: 01 07 00 B0 31 00 02 00 00 00 FF 0F F8 [16:04:54]process_action close_receipt done [16:04:54]requested_data is exist [16:04:54]produce_requested_data [16:04:54]requested_item fm.sn is exist - process it [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 11 00 00 [16:04:54]Write to MH i2c: E2 08 00 B1 31 80 11 00 00 00 00 00 00 5C [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 17 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 17 00 B1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [16:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:04:54]wFMCommunicate OK [16:04:54]requested_item fd.num is exist - process it [16:04:54]SAM_PROTO_GetFieldsCounters [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 13 00 00 [16:04:54]Write to MH i2c: E2 08 00 B2 31 80 13 00 00 00 00 00 00 5F [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 62 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 62 00 B2 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [16:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:55]wFMCommunicate OK [16:04:55]SAM_PROTO_GetFieldsCounters done [16:04:55]requested_item shift.num is exist - process it [16:04:55]requested_item shift.opened is exist - process it [16:04:55]req_shift_opened [16:04:55]FM_GetShiftState [16:04:55]SAM_PROTO_GetShiftState [16:04:55]wFMCommunicate request_size=4 [16:04:55]MH_SAM_APDU [16:04:55]CAPDU: 80 13 01 00 [16:04:55]Write to MH i2c: 01 00 00 B3 31 E4 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 07 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 07 00 B3 31 00 02 00 00 00 FF 0F FB [16:04:55]state=0 [16:04:55]Cover opened [16:04:55]Write to MH i2c: E2 08 00 B4 31 80 13 01 00 00 00 00 00 62 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 0E 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 0E 00 B4 31 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 64 [16:04:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:04:55]wFMCommunicate OK [16:04:55]SAM_PROTO_GetShiftState done [16:04:55]FM_GetShiftState done [16:04:55]req_shift_opened done [16:04:55]requested_item shift.open_date is exist - process it [16:04:55]req_shift_open_date [16:04:55]req_shift_open_date done [16:04:55]produce_requested_data done [16:04:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202051,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:04:55]process_action_free close_receipt [16:04:55]json_value_free [16:04:55]json_value_free done [16:04:55]process_json_proto returns [16:04:55]Send response to host [16:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202051,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:04:55]free response buf [16:04:55]execute_script done [16:04:55]execute_script returns [16:04:55]free content buf [16:04:55]Sock 9.Close socket [16:04:55]Sock 9.Thread stoped [16:04:59]OFD Sender: No OFD packet to send [16:05:00]Write to MH i2c: 01 00 00 B5 31 E6 [16:05:00]Write i2c OK [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 07 00 [16:05:00]MH_I2C_Read... [16:05:00]Read from MH i2c: 01 07 00 B5 31 00 02 00 00 00 FF 0F FD [16:05:00]state=3 [16:05:00]Cover opened [16:05:04]OFD Sender: No OFD packet to send [16:05:05]Write to MH i2c: 01 00 00 B6 31 E7 [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 B6 31 00 02 00 00 00 FF 0F FE [16:05:05]state=3 [16:05:05]Cover opened [16:05:09]OFD Sender: No OFD packet to send [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:11]*** [00:00:11]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:11]*** Waiting for read because exit forced [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** 10 ms more... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** MH1903 init start (LINUX_LIGHT) [00:00:11]*** Serial: 3139303353513838 54000000005725CF (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 18836+1730026311=1730045147 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30515 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 DC 64 1E 67 47 1B 1E 67 AB [16:05:48]Current date/time: 27.10.2024 16:05 [16:05:48]FM_Init [16:05:48]wFMConnect [16:05:48]MH_SAM_On [16:05:48]Write to MH i2c: E0 00 00 08 00 E7 [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_init finished! [16:05:48]*** atr: [16:05:48]*** 0F 3B D5 18 FF 81 91 FE [16:05:48]*** 1F C3 80 73 C8 21 10 0A [16:05:48]*** 00 00 00 00 00 00 00 00 [16:05:48]*** 00 00 00 00 00 00 00 00 [16:05:48]*** 00 00 00 00 00 00 00 00 [16:05:48]*** 00 00 00 00 00 00 00 00 [16:05:48]*** 00 00 00 00 00 00 00 00 [16:05:48]*** 00 00 00 00 00 00 00 00 [16:05:48]Read from MH i2c: E0 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E0 10 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:05:48]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:05:48]wFMCommunicate request_size=10 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:05:48]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 03 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:05:48]RAPDU: 90 00 [16:05:48]wFMCommunicate OK [16:05:48]wFMCommunicate request_size=4 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 80 11 00 00 [16:05:48]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 17 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [16:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:05:48]wFMCommunicate OK [16:05:48]Detected FM SN is 0000000000871756 [16:05:48]Stored FM SN is 0000000000871756 [16:05:48]wFMCommunicate request_size=9 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 80 16 00 00 04 7E FB 00 00 [16:05:48]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 7E FB 00 00 00 00 0B [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 03 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:05:48]RAPDU: 90 00 [16:05:48]wFMCommunicate OK [16:05:48]FM PIN OK [16:05:48]wFMCommunicate request_size=8 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 80 14 04 00 03 02 00 01 [16:05:48]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 03 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:05:48]RAPDU: 90 00 [16:05:48]wFMCommunicate OK [16:05:48]wFMCommunicate request_size=13 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:05:48]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 03 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:05:48]RAPDU: 90 00 [16:05:48]wFMCommunicate OK [16:05:48]wFMCommunicate request_size=4 [16:05:48]MH_SAM_APDU [16:05:48]CAPDU: 80 11 00 00 [16:05:48]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:48]Read from MH i2c: E2 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 17 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [16:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:05:48]wFMCommunicate OK [16:05:48]DocumentArchiveInit [16:05:48]Start Httpd... [16:05:48]Httpd thread 3067719012 created [16:05:48]Write to MH i2c: 01 00 00 0F 00 0F [16:05:48]Write i2c OK [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: 01 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: 01 07 00 [16:05:48]MH_I2C_Read... [16:05:48]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:05:48]MH Int Process started [16:05:48]Allocated Socket 7 [16:05:48]Bind OK [16:05:48]Listen OK [16:05:48]httpd running on port 8080 [16:05:48]Waiting for new connection... [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:56]accept exits with 8 [16:05:56]New connection [16:05:56]New thread 3067432292 created [16:05:56] Sock 8.Parse request [16:05:56]Waiting for new connection... [16:05:56]Sock 8.Check first char [16:05:56]Sock 8.First char is OK [16:05:56]request: POST /json_proto HTTP/1.0 [16:05:56]Method: POST [16:05:56]URL: /json_proto [16:05:56]Method is POST - this is cgi request [16:05:56]url: /json_proto [16:05:56]query_string will be loaded in cgi processing [16:05:56]execute_cgi json_proto POST (null) [16:05:56]execute_cgi path=json_proto method=POST [16:05:56]POST find Content-Length [16:05:56]Host: 172.17.63.195:8080 [16:05:56]Content-Length: 215 [16:05:56]Content-Type: application/json [16:05:56] [16:05:56]POST finish read [16:05:56]Found Content-Length = 215 [16:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:56]execute_script... [16:05:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:56]POST & json_proto [16:05:56]process_json_proto [16:05:56]json parsed OK: [16:05:56]protocol is kg_v1.0 [16:05:56]action value=get_value [16:05:56]process_action get_value [16:05:56]cmd_get_value [16:05:56]process_action get_value done [16:05:56]requested_data is exist [16:05:56]produce_requested_data [16:05:56]requested_item kkm.sn is exist - process it [16:05:56]requested_item kkm.ver is exist - process it [16:05:56]requested_item fm.sn is exist - process it [16:05:56]wFMCommunicate request_size=4 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 11 00 00 [16:05:56]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:56]Read from MH i2c: E2 17 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [16:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:05:56]wFMCommunicate OK [16:05:56]requested_item fd.num is exist - process it [16:05:56]SAM_PROTO_GetFieldsCounters [16:05:56]wFMCommunicate request_size=4 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 13 00 00 [16:05:56]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 62 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [16:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:56]wFMCommunicate OK [16:05:56]SAM_PROTO_GetFieldsCounters done [16:05:56]requested_item shift.num is exist - process it [16:05:56]requested_item shift.opened is exist - process it [16:05:56]req_shift_opened [16:05:56]FM_GetShiftState [16:05:56]SAM_PROTO_GetShiftState [16:05:56]wFMCommunicate request_size=4 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 13 01 00 [16:05:56]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:56]Read from MH i2c: E2 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 0E 00 [16:05:56]MH_I2C_Read... [16:05:56]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 91 [16:05:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:05:56]wFMCommunicate OK [16:05:56]SAM_PROTO_GetShiftState done [16:05:56]FM_GetShiftState done [16:05:56]req_shift_opened done [16:05:56]requested_item shift.open_date is exist - process it [16:05:56]req_shift_open_date [16:05:56]req_shift_open_date done [16:05:56]produce_requested_data done [16:05:56]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202051,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:05:56]process_action_free get_value [16:05:56]json_value_free [16:05:56]json_value_free done [16:05:56]process_json_proto returns [16:05:56]Send response to host [16:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202051,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:05:56]free response buf [16:05:56]execute_script done [16:05:56]execute_script returns [16:05:56]free content buf [16:05:56]Sock 8.Close socket [16:05:56]Sock 8.Thread stoped [16:05:56]accept exits with 6 [16:05:56]New connection [16:05:56]New thread 3067288932 created [16:05:56]Thread 3067432292 joined [16:05:56]Waiting for new connection... [16:05:56] Sock 6.Parse request [16:05:56]Sock 6.Check first char [16:05:56]Sock 6.First char is OK [16:05:56]request: POST /json_proto HTTP/1.0 [16:05:56]Method: POST [16:05:56]URL: /json_proto [16:05:56]Method is POST - this is cgi request [16:05:56]url: /json_proto [16:05:56]query_string will be loaded in cgi processing [16:05:56]execute_cgi json_proto POST (null) [16:05:56]execute_cgi path=json_proto method=POST [16:05:56]POST find Content-Length [16:05:56]Host: 172.17.63.195:8080 [16:05:56]Content-Length: 331 [16:05:56]Content-Type: application/json [16:05:56] [16:05:56]POST finish read [16:05:56]Found Content-Length = 331 [16:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:05:56]execute_script... [16:05:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:05:56]POST & json_proto [16:05:56]process_json_proto [16:05:56]json parsed OK: [16:05:56]protocol is kg_v1.0 [16:05:56]action value=get_value [16:05:56]process_action get_value [16:05:56]cmd_get_value [16:05:56]process_action get_value done [16:05:56]requested_data is exist [16:05:56]produce_requested_data [16:05:56]requested_item fm.sale.total is exist - process it [16:05:56]SAM_PROTO_GetFMData [16:05:56]wFMCommunicate request_size=4 [16:05:56]MH_SAM_APDU [16:05:56]CAPDU: 80 13 03 00 [16:05:56]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:05:56]Write i2c OK [16:05:56]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 FD 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 03 11 03 00 69 04 A3 00 6F 04 04 00 DE 10 03 00 B1 04 05 00 91 6E 97 AE 03 70 04 05 00 A0 13 54 4F 03 72 04 04 00 F1 5A 43 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F6 69 22 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 B1 06 58 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 C3 [16:05:57]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 11 03 00 69 04 A3 00 6F 04 04 00 DE 10 03 00 B1 04 05 00 91 6E 97 AE 03 70 04 05 00 A0 13 54 4F 03 72 04 04 00 F1 5A 43 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F6 69 22 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 B1 06 58 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [16:05:57]wFMCommunicate OK [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 17 00 00 [16:05:57]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 FD 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 9B [16:05:57]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [16:05:57]wFMCommunicate OK [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 17 00 00 [16:05:57]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 FD 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [16:05:57]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [16:05:57]wFMCommunicate OK [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 17 00 00 [16:05:57]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 FD 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [16:05:57]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:05:57]wFMCommunicate OK [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 17 00 00 [16:05:57]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 E1 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [16:05:58]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:05:58]wFMCommunicate OK [16:05:58]SAM_PROTO_GetFMData done [16:05:58]requested_item fm.sale_refund.total is exist - process it [16:05:58]requested_item fm.buy.total is exist - process it [16:05:58]requested_item shift.sale.total is exist - process it [16:05:58]SAM_PROTO_GetShiftData [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 13 02 00 [16:05:58]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 FD 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 57 01 00 00 69 04 9E 00 6F 04 04 00 57 01 00 00 B1 04 04 00 A7 A1 99 01 70 04 04 00 64 62 56 01 72 04 03 00 43 3F 43 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 15 84 2B 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 48 A0 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 90 [16:05:58]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 57 01 00 00 69 04 9E 00 6F 04 04 00 57 01 00 00 B1 04 04 00 A7 A1 99 01 70 04 04 00 64 62 56 01 72 04 03 00 43 3F 43 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 15 84 2B 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 48 A0 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [16:05:58]wFMCommunicate OK [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 17 00 00 [16:05:58]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]OFD Sender: No OFD packet to send [16:05:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 FD 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 FD 00 19 00 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 B2 [16:05: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [16:05:58]wFMCommunicate OK [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 17 00 00 [16:05:58]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:59]Read from MH i2c: E2 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [16:05:59]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [16:05:59]wFMCommunicate OK [16:05:59]wFMCommunicate request_size=4 [16:05:59]MH_SAM_APDU [16:05:59]CAPDU: 80 17 00 00 [16:05:59]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:05:59]Write i2c OK [16:05:59]MH_I2C_Read... [16:05:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:05:59]Read from MH i2c: E2 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [16:05:59]RAPDU: 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 90 00 [16:05:59]wFMCommunicate OK [16:05:59]wFMCommunicate request_size=4 [16:05:59]MH_SAM_APDU [16:05:59]CAPDU: 80 17 00 00 [16:05:59]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:05:59]Write i2c OK [16:05:59]MH_I2C_Read... [16:05:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [16:05:59]Read from MH i2c: E2 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 CE 00 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [16:05:59]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:05:59]wFMCommunicate OK [16:05:59]SAM_PROTO_GetShiftData done [16:05:59]requested_item shift.sale.total_cash is exist - process it [16:05:59]requested_item shift.sale_refund.total is exist - process it [16:05:59]requested_item shift.sale_refund.total_cash is exist - process it [16:05:59]requested_item shift.buy.total is exist - process it [16:05:59]requested_item shift.buy.total_cash is exist - process it [16:05:59]produce_requested_data done [16:05:59]produce_requested_data return {"fm.sale.total":158140617.13,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":268456.07,"shift.sale.total_cash":224385.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} [16:05:59]process_action_free get_value [16:05:59]json_value_free [16:05:59]json_value_free done [16:05:59]process_json_proto returns [16:05:59]Send response to host [16:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158140617.13,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":268456.07,"shift.sale.total_cash":224385.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}}} [16:05:59]free response buf [16:05:59]execute_script done [16:05:59]execute_script returns [16:05:59]free content buf [16:05:59]Sock 6.Close socket [16:05:59]Sock 6.Thread stoped [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]accept exits with 8 [16:06:28]New connection [16:06:28]New thread 3067432292 created [16:06:28]Thread 3067288932 joined [16:06:28]Waiting for new connection... [16:06:28] Sock 8.Parse request [16:06:28]Sock 8.Check first char [16:06:28]Sock 8.First char is OK [16:06:28]request: POST /json_proto HTTP/1.0 [16:06:28]Method: POST [16:06:28]URL: /json_proto [16:06:28]Method is POST - this is cgi request [16:06:28]url: /json_proto [16:06:28]query_string will be loaded in cgi processing [16:06:28]execute_cgi json_proto POST (null) [16:06:28]execute_cgi path=json_proto method=POST [16:06:28]POST find Content-Length [16:06:28]Host: 172.17.63.195:8080 [16:06:28]Content-Length: 674 [16:06:28]Content-Type: application/json [16:06:28] [16:06:28]POST finish read [16:06:28]Found Content-Length = 674 [16:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:06:28]execute_script... [16:06:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:06:28]POST & json_proto [16:06:28]process_json_proto [16:06:28]json parsed OK: [16:06:28]protocol is kg_v1.0 [16:06:28]action value=close_receipt [16:06:28]process_action close_receipt [16:06:28]cmd_close_receipt [16:06:28]MH_GetDate [16:06:28]Write to MH i2c: F0 00 00 1D 00 0C [16:06:28]Write i2c OK [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: F0 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: F0 09 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: F0 09 00 1D 00 00 04 65 1E 67 47 1B 1E 67 EA [16:06:28]GetLastDocTimeStamp 97 [16:06:28]current date 1730045188 [16:06:28]FM_GetShiftState [16:06:28]SAM_PROTO_GetShiftState [16:06:28]wFMCommunicate request_size=4 [16:06:28]MH_SAM_APDU [16:06:28]CAPDU: 80 13 01 00 [16:06:28]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:06:28]Write i2c OK [16:06:28]MH_I2C_Read... [16:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:28]Read from MH i2c: E2 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 0E 00 [16:06:28]MH_I2C_Read... [16:06:28]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [16:06:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:06:28]wFMCommunicate OK [16:06:28]SAM_PROTO_GetShiftState done [16:06:28]FM_GetShiftState done [16:06:28]opened in 1729987312 [16:06:28]opened+sec_in_day 1730073712 [16:06:28]quantity*price = 30022 [16:06:28]sum+1 = 30024 [16:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 344 27.10.2024 16:06 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202052 ФПД: 183847068313616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160628&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202052&fm=183847068313616&tin=02508201610067®Number=0000000000091777&sum=30000 [16:06:29]StoreToDocumentArchive [16:06:29]shift 544 fd 202052 [16:06:29]save to /storage/0544/doc_00202052 [16:06:29]save last doc name /storage/0544/doc_00202052 to /storage/kkm_last_doc_name [16:06:29]save OK [16:06:29]Clear old archive folders... [16:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:06:29]tlvbuf is 01C57AA0 [16:06:29]SAM_PROTO_ClearQueue [16:06:29]wFMCommunicate request_size=4 [16:06:29]MH_SAM_APDU [16:06:29]CAPDU: 80 09 00 00 [16:06:29]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:29]Read from MH i2c: E2 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 03 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:06:29]RAPDU: 90 00 [16:06:29]wFMCommunicate OK [16:06:29]SAM_PROTO_ClearQueue done [16:06:29]KKMCreateOFDPacket [16:06:29]OFDProtocolAddRootSTLVToBuf [16:06:29]FM_MakeSignedData [16:06:29]FM_MakeSignedData [16:06:29]SAM_PROTO_SignData [16:06:29]wFMCommunicate request_size=4 [16:06:29]MH_SAM_APDU [16:06:29]CAPDU: 80 0D 01 02 [16:06:29]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:29]Read from MH i2c: E2 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 03 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:06:29]RAPDU: 90 00 [16:06:29]wFMCommunicate OK [16:06:29]wFMCommunicate request_size=255 [16:06:29]MH_SAM_APDU [16:06:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 58 01 00 00 F4 03 04 00 04 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 15 03 00 35 04 06 00 A7 35 3B 33 [16:06:29]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 58 01 00 00 F4 03 04 00 04 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 15 03 00 35 04 06 00 A7 35 3B 33 00 00 FB [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:29]Read from MH i2c: E2 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 03 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:06:29]RAPDU: 90 00 [16:06:29]wFMCommunicate OK [16:06:29]wFMCommunicate request_size=7 [16:06:29]MH_SAM_APDU [16:06:29]CAPDU: 80 0D 02 02 02 28 10 [16:06:29]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 28 10 00 00 E4 [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:29]Read from MH i2c: E2 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 03 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:06:29]RAPDU: 90 00 [16:06:29]wFMCommunicate OK [16:06:29]wFMCommunicate request_size=4 [16:06:29]MH_SAM_APDU [16:06:29]CAPDU: 80 0D 03 02 [16:06:29]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:29]Read from MH i2c: E2 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 0B 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 0B 00 2F 00 00 65 F3 AA 62 B7 30 EA 55 90 00 35 [16:06:29]RAPDU: 65 F3 AA 62 B7 30 EA 55 90 00 [16:06:29]wFMCommunicate OK [16:06:29]SAM_PROTO_SignData done [16:06:29]FM_MakeSignedData done [16:06:29]CreateOFDProtocolMessage [16:06:29]wFMCommunicate request_size=4 [16:06:29]MH_SAM_APDU [16:06:29]CAPDU: 80 11 00 00 [16:06:29]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:29]Read from MH i2c: E2 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 17 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [16:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:06:29]wFMCommunicate OK [16:06:29]CreateOFDProtocolMessage done [16:06:29]OFDSenderStorePacket 202052 [16:06:29]StoreOFDPacket docnum=202052 [16:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 26 2C 04 01 96 AB 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 32 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 58 01 00 00 F4 03 04 00 04 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 15 03 00 35 04 06 00 A7 35 3B 33 28 10 65 F3 AA 62 B7 30 EA 55 [16:06:29]CheckFolder [16:06:29]dirname=/storage/ofd_packets [16:06:29]CheckFolder done [16:06:29]ProducePacketName [16:06:29]name=ofd_packets/00202052 [16:06:29]NVStorageSaveData ofd_packets/00202052 [16:06:29]File name is /storage/ofd_packets/00202052 [16:06:29]Write 298 bytes [16:06:29]NVStorageSaveData done [16:06:29]OFDSenderStorePacket done [16:06:29]KKMCreateOFDPacket done [16:06:29]NVStorageSaveData kkm_last_timestamp [16:06:29]File name is /storage/kkm_last_timestamp [16:06:29]Write 4 bytes [16:06:29]NVStorageSaveData done [16:06:29]ExternCall_PrintAddStr [16:06:29]wPrintStart [16:06:29]Write to MH i2c: 01 00 00 31 00 31 [16:06:29]Write i2c OK [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: 01 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: 01 07 00 [16:06:29]MH_I2C_Read... [16:06:29]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:06:29]RasterBufferAndPrint [16:06:29]line Счет N : (1)449819 [16:06:29]line ИНН: 02508201610067 [16:06:29]line Контрольно-Кассовый Чек [16:06:29]line ПРОДАЖА [16:06:29]line ТРК (МРК, ГНК) : 21 [16:06:29]line Товар: 2710194210 [16:06:29]line ДТ-К-2 [16:06:29]line 3.940 * 76.20 [16:06:29]line = 300.23 [16:06:29]line НДС 12% НСП 1% [16:06:29]line > о реализуемом товаре [16:06:29]line ОКРУГЛЕНИЕ: -0.23 [16:06:29]line ИТОГО: 300.00 [16:06:29]line Внесено: 300.00 [16:06:29]line СДАЧА: 0.00 [16:06:29]line НСП 1% : 2.66 [16:06:29]line НДС 12% : 31.88 [16:06:29]line Наличными: 300.00 [16:06:29]line Безнал.: 0.00 [16:06:29]line Место: АЗС № 171 "Партнер Нефть" [16:06:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:06:29]line СНО: Общий режим [16:06:29]line Чек 344 27.10.2024 16:06 [16:06:29]line Смена: 544 ФФД: 1.0 [16:06:29]line ЗНМ: 0300000109 [16:06:29]line РНМ: 0000000000091777 [16:06:29]line Версия ККМ: 001 [16:06:29]line ФМ: 0000000000871756 [16:06:29]line ФД: 202052 [16:06:29]line ФПД: 183847068313616 [16:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160628&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202052&fm=183847068313616&tin=02508201610067®Number=0000000000091777&sum=30000 [16:06:29]written 0, free lines is 4095 [16:06:29]OFD Sender: Processing packet 202052 [packets to send 112, broken 111] [16:06:29]ProducePacketName [16:06:29]name=ofd_packets/00202052 [16:06:29]OFD Sender: To server: pG, [16:06:29]CommunicateWithHost lk.salyk.kg:30040 [16:06:29]ConnectInit lk.salyk.kg [16:06:29]Connected sock=10 [16:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 26 2C 04 01 96 AB 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 32 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 58 01 00 00 F4 03 04 00 04 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 15 03 00 35 04 06 00 A7 35 3B 33 28 10 65 F3 AA 62 B7 30 EA 55 [16:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F0 9F 47 00 5A 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 15 03 00 F4 03 04 00 BD 10 1E 67 B6 04 01 00 00 11 D1 E0 FE 51 85 62 12 [16:06:30]CommunicateWithHost err = 0 [16:06:30]CheckOFDResponse [16:06:30]1017 (14) - 77093643461234 [16:06:30]1041 (16) - 0000000000871756 [16:06:30]1040 (4) - 202052 [16:06:30]1012 (4) - 27.10.2024 10:06 [16:06:30]1206 (1) - 0 [16:06:30]OFD Sender: Remove packet 202052 [16:06:30]ProducePacketName [16:06:30]name=ofd_packets/00202052 [16:06:30]NVStorageDeleteData [16:06:30]Write to MH i2c: 01 00 00 5C 00 5C [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: 01 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: 01 07 00 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 92 0C 01 [16:06:30]RasterBufferAndPrint [16:06:30]line [16:06:30]line [16:06:30]line [16:06:30]line [16:06:30]line [16:06:30]written 0, free lines is 3223 [16:06:30]MH_Cut [16:06:30]Write to MH i2c: D1 01 00 63 00 01 35 [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: D1 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: D1 01 00 [16:06:30]MH_I2C_Read... [16:06:30]Read from MH i2c: D1 01 00 63 00 00 34 [16:06:30]Write to MH i2c: 01 00 00 64 00 64 [16:06:30]Write i2c OK [16:06:30]MH_I2C_Read... [16:06:30]OFD Sender: No OFD packet to send [16:06:31]*** Cut start [16:06:31]*** Purtial cut [16:06:31]*** Stage 1: CUTSNS_PIN = 1 [16:06:31]Read from MH i2c: 01 [16:06:31]MH_I2C_Read... [16:06:31]*** Stop cut motor [16:06:31]Read from MH i2c: 01 07 00 [16:06:31]MH_I2C_Read... [16:06:31]*** Cut end [16:06:31]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [16:06:31]process_action close_receipt done [16:06:31]requested_data is exist [16:06:31]produce_requested_data [16:06:31]requested_item fm.sn is exist - process it [16:06:31]wFMCommunicate request_size=4 [16:06:31]MH_SAM_APDU [16:06:31]CAPDU: 80 11 00 00 [16:06:31]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:31]Read from MH i2c: E2 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 17 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [16:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:06:31]wFMCommunicate OK [16:06:31]requested_item fd.num is exist - process it [16:06:31]SAM_PROTO_GetFieldsCounters [16:06:31]wFMCommunicate request_size=4 [16:06:31]MH_SAM_APDU [16:06:31]CAPDU: 80 13 00 00 [16:06:31]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:31]Read from MH i2c: E2 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 62 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 44 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:06:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 44 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:31]wFMCommunicate OK [16:06:31]SAM_PROTO_GetFieldsCounters done [16:06:31]requested_item shift.num is exist - process it [16:06:31]requested_item shift.opened is exist - process it [16:06:31]req_shift_opened [16:06:31]FM_GetShiftState [16:06:31]SAM_PROTO_GetShiftState [16:06:31]wFMCommunicate request_size=4 [16:06:31]MH_SAM_APDU [16:06:31]CAPDU: 80 13 01 00 [16:06:31]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [16:06:31]Write i2c OK [16:06:31]MH_I2C_Read... [16:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:31]Read from MH i2c: E2 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 0E 00 [16:06:31]MH_I2C_Read... [16:06:31]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E6 [16:06:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:06:31]wFMCommunicate OK [16:06:31]SAM_PROTO_GetShiftState done [16:06:31]FM_GetShiftState done [16:06:31]req_shift_opened done [16:06:31]requested_item shift.open_date is exist - process it [16:06:31]req_shift_open_date [16:06:31]req_shift_open_date done [16:06:31]produce_requested_data done [16:06:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202052,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:06:31]process_action_free close_receipt [16:06:31]json_value_free [16:06:31]json_value_free done [16:06:31]process_json_proto returns [16:06:31]Send response to host [16:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202052,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:06:31]free response buf [16:06:31]execute_script done [16:06:31]execute_script returns [16:06:31]free content buf [16:06:31]Sock 8.Close socket [16:06:31]Sock 8.Thread stoped [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:07]accept exits with 9 [16:07:07]New connection [16:07:07]New thread 3067288932 created [16:07:07]Thread 3067432292 joined [16:07:07]Waiting for new connection... [16:07:07] Sock 9.Parse request [16:07:07]Sock 9.Check first char [16:07:07]Sock 9.First char is OK [16:07:07]request: POST /json_proto HTTP/1.0 [16:07:07]Method: POST [16:07:07]URL: /json_proto [16:07:07]Method is POST - this is cgi request [16:07:07]url: /json_proto [16:07:07]query_string will be loaded in cgi processing [16:07:07]execute_cgi json_proto POST (null) [16:07:07]execute_cgi path=json_proto method=POST [16:07:07]POST find Content-Length [16:07:07]Host: 172.17.63.195:8080 [16:07:07]Content-Length: 677 [16:07:07]Content-Type: application/json [16:07:07] [16:07:07]POST finish read [16:07:07]Found Content-Length = 677 [16:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:07:07]execute_script... [16:07: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)449821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:07:07]POST & json_proto [16:07:07]process_json_proto [16:07:07]json parsed OK: [16:07:07]protocol is kg_v1.0 [16:07:07]action value=close_receipt [16:07:07]process_action close_receipt [16:07:07]cmd_close_receipt [16:07:07]MH_GetDate [16:07:07]Write to MH i2c: F0 00 00 68 00 57 [16:07:07]Write i2c OK [16:07:07]MH_I2C_Read... [16:07:07]Read from MH i2c: F0 [16:07:07]MH_I2C_Read... [16:07:07]Read from MH i2c: F0 09 00 [16:07:07]MH_I2C_Read... [16:07:07]Read from MH i2c: F0 09 00 68 00 00 2C 65 1E 67 47 1B 1E 67 5D [16:07:07]GetLastDocTimeStamp 1730045188 [16:07:07]current date 1730045228 [16:07:07]FM_GetShiftState [16:07:07]SAM_PROTO_GetShiftState [16:07:07]wFMCommunicate request_size=4 [16:07:07]MH_SAM_APDU [16:07:07]CAPDU: 80 13 01 00 [16:07:07]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [16:07:07]Write i2c OK [16:07:07]MH_I2C_Read... [16:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:07]Read from MH i2c: E2 [16:07:07]MH_I2C_Read... [16:07:07]Read from MH i2c: E2 0E 00 [16:07:08]MH_I2C_Read... [16:07:08]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E8 [16:07:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:07:08]wFMCommunicate OK [16:07:08]SAM_PROTO_GetShiftState done [16:07:08]FM_GetShiftState done [16:07:08]opened in 1729987312 [16:07:08]opened+sec_in_day 1730073712 [16:07:08]quantity*price = 20003 [16:07:08]sum+1 = 20004 [16:07:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 345 27.10.2024 16:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202053 ФПД: 108293160473099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160708&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202053&fm=108293160473099&tin=02508201610067®Number=0000000000091777&sum=20000 [16:07:09]StoreToDocumentArchive [16:07:09]shift 544 fd 202053 [16:07:09]save to /storage/0544/doc_00202053 [16:07:09]save last doc name /storage/0544/doc_00202053 to /storage/kkm_last_doc_name [16:07:09]save OK [16:07:09]Clear old archive folders... [16:07:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:09]tlvbuf is 01C4E620 [16:07:09]SAM_PROTO_ClearQueue [16:07:09]wFMCommunicate request_size=4 [16:07:09]MH_SAM_APDU [16:07:09]CAPDU: 80 09 00 00 [16:07:09]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:09]Read from MH i2c: E2 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:07:09]RAPDU: 90 00 [16:07:09]wFMCommunicate OK [16:07:09]SAM_PROTO_ClearQueue done [16:07:09]KKMCreateOFDPacket [16:07:09]OFDProtocolAddRootSTLVToBuf [16:07:09]FM_MakeSignedData [16:07:09]FM_MakeSignedData [16:07:09]SAM_PROTO_SignData [16:07:09]wFMCommunicate request_size=4 [16:07:09]MH_SAM_APDU [16:07:09]CAPDU: 80 0D 01 02 [16:07:09]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:09]Read from MH i2c: E2 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:07:09]RAPDU: 90 00 [16:07:09]wFMCommunicate OK [16:07:09]wFMCommunicate request_size=255 [16:07:09]MH_SAM_APDU [16:07:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 59 01 00 00 F4 03 04 00 2C 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 15 03 00 35 04 06 00 62 [16:07:09]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 59 01 00 00 F4 03 04 00 2C 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 15 03 00 35 04 06 00 62 00 00 97 [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:09]Read from MH i2c: E2 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:07:09]RAPDU: 90 00 [16:07:09]wFMCommunicate OK [16:07:09]wFMCommunicate request_size=10 [16:07:09]MH_SAM_APDU [16:07:09]CAPDU: 80 0D 02 02 05 7D F7 5C 92 0B [16:07:09]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 7D F7 5C 92 0B 00 00 6A [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:09]Read from MH i2c: E2 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [16:07:09]RAPDU: 90 00 [16:07:09]wFMCommunicate OK [16:07:09]wFMCommunicate request_size=4 [16:07:09]MH_SAM_APDU [16:07:09]CAPDU: 80 0D 03 02 [16:07:09]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:09]Read from MH i2c: E2 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 0B 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 0B 00 7A 00 00 E5 92 D5 C9 6C 3E 86 02 90 00 3D [16:07:09]RAPDU: E5 92 D5 C9 6C 3E 86 02 90 00 [16:07:09]wFMCommunicate OK [16:07:09]SAM_PROTO_SignData done [16:07:09]FM_MakeSignedData done [16:07:09]CreateOFDProtocolMessage [16:07:09]wFMCommunicate request_size=4 [16:07:09]MH_SAM_APDU [16:07:09]CAPDU: 80 11 00 00 [16:07:09]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:09]Read from MH i2c: E2 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 17 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [16:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:07:09]wFMCommunicate OK [16:07:09]CreateOFDProtocolMessage done [16:07:09]OFDSenderStorePacket 202053 [16:07:09]StoreOFDPacket docnum=202053 [16:07:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EB 78 07 01 8E C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 59 01 00 00 F4 03 04 00 2C 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 15 03 00 35 04 06 00 62 7D F7 5C 92 0B E5 92 D5 C9 6C 3E 86 02 [16:07:09]CheckFolder [16:07:09]dirname=/storage/ofd_packets [16:07:09]CheckFolder done [16:07:09]ProducePacketName [16:07:09]name=ofd_packets/00202053 [16:07:09]NVStorageSaveData ofd_packets/00202053 [16:07:09]File name is /storage/ofd_packets/00202053 [16:07:09]Write 301 bytes [16:07:09]NVStorageSaveData done [16:07:09]OFDSenderStorePacket done [16:07:09]KKMCreateOFDPacket done [16:07:09]NVStorageSaveData kkm_last_timestamp [16:07:09]File name is /storage/kkm_last_timestamp [16:07:09]Write 4 bytes [16:07:09]NVStorageSaveData done [16:07:09]ExternCall_PrintAddStr [16:07:09]wPrintStart [16:07:09]Write to MH i2c: 01 00 00 7C 00 7C [16:07:09]Write i2c OK [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: 01 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: 01 07 00 [16:07:09]MH_I2C_Read... [16:07:09]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [16:07:09]RasterBufferAndPrint [16:07:09]line Счет N : (1)449821 [16:07:09]line ИНН: 02508201610067 [16:07:09]line Контрольно-Кассовый Чек [16:07:09]line ПРОДАЖА [16:07:09]line ТРК (МРК, ГНК) : 41 [16:07:09]line Товар: 2710124130 [16:07:09]line Аи-92-К-2 [16:07:09]line 2.990 * 66.90 [16:07:09]line = 200.03 [16:07:09]line НДС 12% НСП 1% [16:07:09]line > о реализуемом товаре [16:07:09]line ОКРУГЛЕНИЕ: -0.03 [16:07:09]line ИТОГО: 200.00 [16:07:09]line Внесено: 200.00 [16:07:09]line СДАЧА: 0.00 [16:07:09]line НСП 1% : 1.77 [16:07:09]line НДС 12% : 21.24 [16:07:09]line Наличными: 200.00 [16:07:09]line Безнал.: 0.00 [16:07:09]line Место: АЗС № 171 "Партнер Нефть" [16:07:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:07:09]line СНО: Общий режим [16:07:09]line Чек 345 27.10.2024 16:07 [16:07:09]line Смена: 544 ФФД: 1.0 [16:07:09]line ЗНМ: 0300000109 [16:07:09]line РНМ: 0000000000091777 [16:07:09]line Версия ККМ: 001 [16:07:09]line ФМ: 0000000000871756 [16:07:09]line ФД: 202053 [16:07:09]line ФПД: 108293160473099 [16:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160708&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202053&fm=108293160473099&tin=02508201610067®Number=0000000000091777&sum=20000 [16:07:10]OFD Sender: Processing packet 202053 [packets to send 112, broken 111] [16:07:10]ProducePacketName [16:07:10]name=ofd_packets/00202053 [16:07:10]OFD Sender: To server: pG, [16:07:10]CommunicateWithHost lk.salyk.kg:30040 [16:07:10]ConnectInit lk.salyk.kg [16:07:10]written 0, free lines is 4095 [16:07:10]Connected sock=8 [16:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EB 78 07 01 8E C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 59 01 00 00 F4 03 04 00 2C 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 15 03 00 35 04 06 00 62 7D F7 5C 92 0B E5 92 D5 C9 6C 3E 86 02 [16:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 57 D6 47 00 03 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 15 03 00 F4 03 04 00 E6 10 1E 67 B6 04 01 00 00 34 7A F6 51 72 42 DA B9 [16:07:10]CommunicateWithHost err = 0 [16:07:10]CheckOFDResponse [16:07:10]1017 (14) - 77093643461234 [16:07:10]1041 (16) - 0000000000871756 [16:07:10]1040 (4) - 202053 [16:07:10]1012 (4) - 27.10.2024 10:07 [16:07:10]1206 (1) - 0 [16:07:10]OFD Sender: Remove packet 202053 [16:07:10]ProducePacketName [16:07:10]name=ofd_packets/00202053 [16:07:10]NVStorageDeleteData [16:07:10]Write to MH i2c: 01 00 00 A7 00 A7 [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: 01 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: 01 07 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 98 0C 52 [16:07:10]RasterBufferAndPrint [16:07:10]line [16:07:10]line [16:07:10]line [16:07:10]line [16:07:10]line [16:07:10]written 0, free lines is 3229 [16:07:10]MH_Cut [16:07:10]Write to MH i2c: D1 01 00 AE 00 01 80 [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: D1 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: D1 01 00 [16:07:10]MH_I2C_Read... [16:07:10]Read from MH i2c: D1 01 00 AE 00 00 7F [16:07:10]Write to MH i2c: 01 00 00 AF 00 AF [16:07:10]Write i2c OK [16:07:10]MH_I2C_Read... [16:07:10]OFD Sender: No OFD packet to send [16:07:11]*** Cut start [16:07:11]*** Purtial cut [16:07:11]*** Stage 1: CUTSNS_PIN = 1 [16:07:11]Read from MH i2c: 01 [16:07:11]MH_I2C_Read... [16:07:11]*** Stop cut motor [16:07:11]*** Cut end [16:07:11]Read from MH i2c: 01 07 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [16:07:11]process_action close_receipt done [16:07:11]requested_data is exist [16:07:11]produce_requested_data [16:07:11]requested_item fm.sn is exist - process it [16:07:11]wFMCommunicate request_size=4 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 11 00 00 [16:07:11]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 17 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [16:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:07:11]wFMCommunicate OK [16:07:11]requested_item fd.num is exist - process it [16:07:11]SAM_PROTO_GetFieldsCounters [16:07:11]wFMCommunicate request_size=4 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 13 00 00 [16:07:11]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 62 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 45 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:07:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 45 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:11]wFMCommunicate OK [16:07:11]SAM_PROTO_GetFieldsCounters done [16:07:11]requested_item shift.num is exist - process it [16:07:11]requested_item shift.opened is exist - process it [16:07:11]req_shift_opened [16:07:11]FM_GetShiftState [16:07:11]SAM_PROTO_GetShiftState [16:07:11]wFMCommunicate request_size=4 [16:07:11]MH_SAM_APDU [16:07:11]CAPDU: 80 13 01 00 [16:07:11]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [16:07:11]Write i2c OK [16:07:11]MH_I2C_Read... [16:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:11]Read from MH i2c: E2 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 0E 00 [16:07:11]MH_I2C_Read... [16:07:11]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [16:07:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:07:11]wFMCommunicate OK [16:07:11]SAM_PROTO_GetShiftState done [16:07:11]FM_GetShiftState done [16:07:11]req_shift_opened done [16:07:11]requested_item shift.open_date is exist - process it [16:07:11]req_shift_open_date [16:07:11]req_shift_open_date done [16:07:11]produce_requested_data done [16:07:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202053,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:07:11]process_action_free close_receipt [16:07:11]json_value_free [16:07:11]json_value_free done [16:07:11]process_json_proto returns [16:07:11]Send response to host [16:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202053,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:07:11]free response buf [16:07:11]execute_script done [16:07:11]execute_script returns [16:07:11]free content buf [16:07:11]Sock 9.Close socket [16:07:11]Sock 9.Thread stoped [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:21]int [16:07:21]Write to MH i2c: 01 00 00 B3 00 B3 [16:07:21]*** FLAG_PRN_KEY set [16:07:21]Write i2c OK [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 07 00 [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 07 00 B3 00 00 08 00 00 00 FF 0F D0 [16:07:21]state=0 [16:07:21]Key pressed [16:07:21]Feed [16:07:21]Write to MH i2c: D8 00 00 B4 00 8B [16:07:21]Write i2c OK [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: D8 [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: D8 01 00 [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: D8 01 00 B4 00 00 8C [16:07:21]int [16:07:21]Write to MH i2c: 01 00 00 B5 00 B5 [16:07:21]Write i2c OK [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 07 00 [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 07 00 B5 00 00 48 00 00 00 3C 00 40 [16:07:21]state=2 [16:07:21]Key pressed [16:07:21]int [16:07:21]Write to MH i2c: 01 00 00 B6 00 B6 [16:07:21]*** FLAG_PRN_KEY reset [16:07:21]Write i2c OK [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 07 00 [16:07:21]MH_I2C_Read... [16:07:21]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 F9 0F C5 [16:07:21]state=2 [16:07:21]Stop feed [16:07:22]int [16:07:22]Write to MH i2c: 01 00 00 B7 00 B7 [16:07:22]*** FLAG_PRN_KEY set [16:07:22]Write i2c OK [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 07 00 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 07 00 B7 00 00 08 00 00 00 FF 0F D4 [16:07:22]state=0 [16:07:22]Key pressed [16:07:22]Feed [16:07:22]Write to MH i2c: D8 00 00 B8 00 8F [16:07:22]Write i2c OK [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: D8 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: D8 01 00 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: D8 01 00 B8 00 00 90 [16:07:22]int [16:07:22]Write to MH i2c: 01 00 00 B9 00 B9 [16:07:22]Write i2c OK [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 07 00 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 07 00 B9 00 00 48 00 00 00 3C 00 44 [16:07:22]state=2 [16:07:22]Key pressed [16:07:22]int [16:07:22]Write to MH i2c: 01 00 00 BA 00 BA [16:07:22]*** FLAG_PRN_KEY reset [16:07:22]Write i2c OK [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 07 00 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 F6 0F C6 [16:07:22]state=2 [16:07:22]Stop feed [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:32]accept exits with 10 [16:08:32]New connection [16:08:32]New thread 3067432292 created [16:08:32]Thread 3067288932 joined [16:08:32]Waiting for new connection... [16:08:32] Sock 10.Parse request [16:08:32]Sock 10.Check first char [16:08:32]Sock 10.First char is OK [16:08:32]request: POST /json_proto HTTP/1.0 [16:08:32]Method: POST [16:08:32]URL: /json_proto [16:08:32]Method is POST - this is cgi request [16:08:32]url: /json_proto [16:08:32]query_string will be loaded in cgi processing [16:08:32]execute_cgi json_proto POST (null) [16:08:32]execute_cgi path=json_proto method=POST [16:08:32]POST find Content-Length [16:08:32]Host: 172.17.63.195:8080 [16:08:32]Content-Length: 682 [16:08:32]Content-Type: application/json [16:08:32] [16:08:32]POST finish read [16:08:32]Found Content-Length = 682 [16:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 80.870, "sum" : 6000.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:32]execute_script... [16:08:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 80.870, "sum" : 6000.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:32]POST & json_proto [16:08:32]process_json_proto [16:08:32]json parsed OK: [16:08:32]protocol is kg_v1.0 [16:08:32]action value=close_receipt [16:08:32]process_action close_receipt [16:08:32]cmd_close_receipt [16:08:32]MH_GetDate [16:08:32]Write to MH i2c: F0 00 00 BB 00 AA [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: F0 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: F0 09 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: F0 09 00 BB 00 00 80 65 1E 67 47 1B 1E 67 04 [16:08:32]GetLastDocTimeStamp 1730045228 [16:08:32]current date 1730045312 [16:08:32]FM_GetShiftState [16:08:32]SAM_PROTO_GetShiftState [16:08:32]wFMCommunicate request_size=4 [16:08:32]MH_SAM_APDU [16:08:32]CAPDU: 80 13 01 00 [16:08:32]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:32]Read from MH i2c: E2 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 0E 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3B [16:08:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:08:32]wFMCommunicate OK [16:08:32]SAM_PROTO_GetShiftState done [16:08:32]FM_GetShiftState done [16:08:32]opened in 1729987312 [16:08:32]opened+sec_in_day 1730073712 [16:08:32]quantity*price = 600055 [16:08:32]sum+1 = 600056 [16:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.23 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 346 27.10.2024 16:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202054 ФПД: 31548178981782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160832&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202054&fm=31548178981782&tin=02508201610067®Number=0000000000091777&sum=600000 [16:08:33]StoreToDocumentArchive [16:08:33]shift 544 fd 202054 [16:08:33]save to /storage/0544/doc_00202054 [16:08:33]save last doc name /storage/0544/doc_00202054 to /storage/kkm_last_doc_name [16:08:33]save OK [16:08:33]Clear old archive folders... [16:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:33]tlvbuf is 01C41DF0 [16:08:33]SAM_PROTO_ClearQueue [16:08:33]wFMCommunicate request_size=4 [16:08:33]MH_SAM_APDU [16:08:33]CAPDU: 80 09 00 00 [16:08:33]Write to MH i2c: E2 08 00 C9 00 80 09 00 00 00 00 00 00 3B [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:33]Read from MH i2c: E2 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 03 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [16:08:33]RAPDU: 90 00 [16:08:33]wFMCommunicate OK [16:08:33]SAM_PROTO_ClearQueue done [16:08:33]KKMCreateOFDPacket [16:08:33]OFDProtocolAddRootSTLVToBuf [16:08:33]FM_MakeSignedData [16:08:33]FM_MakeSignedData [16:08:33]SAM_PROTO_SignData [16:08:33]wFMCommunicate request_size=4 [16:08:33]MH_SAM_APDU [16:08:33]CAPDU: 80 0D 01 02 [16:08:33]Write to MH i2c: E2 08 00 CA 00 80 0D 01 02 00 00 00 00 43 [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:33]Read from MH i2c: E2 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 03 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [16:08:33]RAPDU: 90 00 [16:08:33]wFMCommunicate OK [16:08:33]wFMCommunicate request_size=255 [16:08:33]MH_SAM_APDU [16:08:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E6 3B 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 80 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 15 03 00 35 04 06 00 1C [16:08:33]Write to MH i2c: E2 02 01 CB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E6 3B 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 80 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 15 03 00 35 04 06 00 1C 00 00 AE [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:33]Read from MH i2c: E2 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 03 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [16:08:33]RAPDU: 90 00 [16:08:33]wFMCommunicate OK [16:08:33]wFMCommunicate request_size=10 [16:08:33]MH_SAM_APDU [16:08:33]CAPDU: 80 0D 02 02 05 B1 62 00 63 96 [16:08:33]Write to MH i2c: E2 0D 00 CC 00 80 0D 02 02 05 00 B1 62 00 63 96 00 00 5C [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:33]Read from MH i2c: E2 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 03 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [16:08:33]RAPDU: 90 00 [16:08:33]wFMCommunicate OK [16:08:33]wFMCommunicate request_size=4 [16:08:33]MH_SAM_APDU [16:08:33]CAPDU: 80 0D 03 02 [16:08:33]Write to MH i2c: E2 08 00 CD 00 80 0D 03 02 00 00 00 00 48 [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:33]Read from MH i2c: E2 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 0B 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 0B 00 CD 00 00 30 0F E3 42 5F C0 27 2E 90 00 21 [16:08:33]RAPDU: 30 0F E3 42 5F C0 27 2E 90 00 [16:08:33]wFMCommunicate OK [16:08:33]SAM_PROTO_SignData done [16:08:33]FM_MakeSignedData done [16:08:33]CreateOFDProtocolMessage [16:08:33]wFMCommunicate request_size=4 [16:08:33]MH_SAM_APDU [16:08:33]CAPDU: 80 11 00 00 [16:08:33]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:33]Read from MH i2c: E2 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 17 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9D [16:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:08:33]wFMCommunicate OK [16:08:33]CreateOFDProtocolMessage done [16:08:33]OFDSenderStorePacket 202054 [16:08:33]StoreOFDPacket docnum=202054 [16:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 5D 07 01 93 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E6 3B 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 80 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 15 03 00 35 04 06 00 1C B1 62 00 63 96 30 0F E3 42 5F C0 27 2E [16:08:33]CheckFolder [16:08:33]dirname=/storage/ofd_packets [16:08:33]CheckFolder done [16:08:33]ProducePacketName [16:08:33]name=ofd_packets/00202054 [16:08:33]NVStorageSaveData ofd_packets/00202054 [16:08:33]File name is /storage/ofd_packets/00202054 [16:08:33]Write 301 bytes [16:08:33]NVStorageSaveData done [16:08:33]OFDSenderStorePacket done [16:08:33]KKMCreateOFDPacket done [16:08:33]NVStorageSaveData kkm_last_timestamp [16:08:33]File name is /storage/kkm_last_timestamp [16:08:33]Write 4 bytes [16:08:33]NVStorageSaveData done [16:08:33]ExternCall_PrintAddStr [16:08:33]wPrintStart [16:08:33]Write to MH i2c: 01 00 00 CF 00 CF [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: 01 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: 01 07 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 FF 0F E4 [16:08:33]RasterBufferAndPrint [16:08:33]line Счет N : (1)449820 [16:08:33]line ИНН: 02508201610067 [16:08:33]line Контрольно-Кассовый Чек [16:08:33]line ПРОДАЖА [16:08:33]line ТРК (МРК, ГНК) : 61 [16:08:33]line Товар: 2710124500 [16:08:33]line Аи-95-К-3 [16:08:33]line 80.870 * 74.20 [16:08:33]line = 6000.55 [16:08:33]line НДС 12% НСП 1% [16:08:33]line > о реализуемом товаре [16:08:33]line ОКРУГЛЕНИЕ: -0.55 [16:08:33]line ИТОГО: 6000.00 [16:08:33]line Внесено: 6000.00 [16:08:33]line СДАЧА: 0.00 [16:08:33]line НСП 1% : 53.10 [16:08:33]line НДС 12% : 637.23 [16:08:33]line Наличными: 6000.00 [16:08:33]line Безнал.: 0.00 [16:08:33]line Место: АЗС № 171 "Партнер Нефть" [16:08:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:08:33]line СНО: Общий режим [16:08:33]line Чек 346 27.10.2024 16:08 [16:08:33]line Смена: 544 ФФД: 1.0 [16:08:33]line ЗНМ: 0300000109 [16:08:33]line РНМ: 0000000000091777 [16:08:33]line Версия ККМ: 001 [16:08:33]line ФМ: 0000000000871756 [16:08:33]line ФД: 202054 [16:08:33]line ФПД: 31548178981782 [16:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160832&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202054&fm=31548178981782&tin=02508201610067®Number=0000000000091777&sum=600000 [16:08:34]OFD Sender: Processing packet 202054 [packets to send 112, broken 111] [16:08:34]ProducePacketName [16:08:34]name=ofd_packets/00202054 [16:08:34]OFD Sender: To server: pG, [16:08:34]CommunicateWithHost lk.salyk.kg:30040 [16:08:34]ConnectInit lk.salyk.kg [16:08:34]written 0, free lines is 4095 [16:08:34]Connected sock=9 [16:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 5D 07 01 93 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E6 3B 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 80 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 15 03 00 35 04 06 00 1C B1 62 00 63 96 30 0F E3 42 5F C0 27 2E [16:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BA 2F 47 00 F8 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 15 03 00 F4 03 04 00 3A 11 1E 67 B6 04 01 00 00 3C 7A 60 6D 5A 8C 83 20 [16:08:34]CommunicateWithHost err = 0 [16:08:34]CheckOFDResponse [16:08:34]1017 (14) - 77093643461234 [16:08:34]1041 (16) - 0000000000871756 [16:08:34]1040 (4) - 202054 [16:08:34]1012 (4) - 27.10.2024 10:08 [16:08:34]1206 (1) - 0 [16:08:34]OFD Sender: Remove packet 202054 [16:08:34]ProducePacketName [16:08:34]name=ofd_packets/00202054 [16:08:34]NVStorageDeleteData [16:08:34]Write to MH i2c: 01 00 00 FA 00 FA [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: 01 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: 01 07 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 97 0C A4 [16:08:34]RasterBufferAndPrint [16:08:34]line [16:08:34]line [16:08:34]line [16:08:34]line [16:08:34]line [16:08:34]written 0, free lines is 3228 [16:08:34]MH_Cut [16:08:34]Write to MH i2c: D1 01 00 01 01 01 D4 [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: D1 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: D1 01 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: D1 01 00 01 01 00 D3 [16:08:34]Write to MH i2c: 01 00 00 02 01 03 [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:35]OFD Sender: No OFD packet to send [16:08:35]*** Cut start [16:08:35]*** Purtial cut [16:08:35]*** Stage 1: CUTSNS_PIN = 1 [16:08:35]Read from MH i2c: 01 [16:08:35]MH_I2C_Read... [16:08:35]*** Stop cut motor [16:08:35]*** Cut end [16:08:35]Read from MH i2c: 01 07 00 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [16:08:35]process_action close_receipt done [16:08:35]requested_data is exist [16:08:35]produce_requested_data [16:08:35]requested_item fm.sn is exist - process it [16:08:35]wFMCommunicate request_size=4 [16:08:35]MH_SAM_APDU [16:08:35]CAPDU: 80 11 00 00 [16:08:35]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [16:08:35]Write i2c OK [16:08:35]MH_I2C_Read... [16:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:35]Read from MH i2c: E2 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: E2 17 00 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [16:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:08:35]wFMCommunicate OK [16:08:35]requested_item fd.num is exist - process it [16:08:35]SAM_PROTO_GetFieldsCounters [16:08:35]wFMCommunicate request_size=4 [16:08:35]MH_SAM_APDU [16:08:35]CAPDU: 80 13 00 00 [16:08:35]Write to MH i2c: E2 08 00 04 01 80 13 00 00 00 00 00 00 81 [16:08:35]Write i2c OK [16:08:35]MH_I2C_Read... [16:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:36]Read from MH i2c: E2 [16:08:36]MH_I2C_Read... [16:08:36]Read from MH i2c: E2 62 00 [16:08:36]MH_I2C_Read... [16:08:36]Read from MH i2c: E2 62 00 04 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 46 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [16:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 46 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:36]wFMCommunicate OK [16:08:36]SAM_PROTO_GetFieldsCounters done [16:08:36]requested_item shift.num is exist - process it [16:08:36]requested_item shift.opened is exist - process it [16:08:36]req_shift_opened [16:08:36]FM_GetShiftState [16:08:36]SAM_PROTO_GetShiftState [16:08:36]wFMCommunicate request_size=4 [16:08:36]MH_SAM_APDU [16:08:36]CAPDU: 80 13 01 00 [16:08:36]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [16:08:36]Write i2c OK [16:08:36]MH_I2C_Read... [16:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:36]Read from MH i2c: E2 [16:08:36]MH_I2C_Read... [16:08:36]Read from MH i2c: E2 0E 00 [16:08:36]MH_I2C_Read... [16:08:36]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 85 [16:08:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:08:36]wFMCommunicate OK [16:08:36]SAM_PROTO_GetShiftState done [16:08:36]FM_GetShiftState done [16:08:36]req_shift_opened done [16:08:36]requested_item shift.open_date is exist - process it [16:08:36]req_shift_open_date [16:08:36]req_shift_open_date done [16:08:36]produce_requested_data done [16:08:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202054,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:08:36]process_action_free close_receipt [16:08:36]json_value_free [16:08:36]json_value_free done [16:08:36]process_json_proto returns [16:08:36]Send response to host [16:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202054,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:08:36]free response buf [16:08:36]execute_script done [16:08:36]execute_script returns [16:08:36]free content buf [16:08:36]Sock 10.Close socket [16:08:36]Sock 10.Thread stoped [16:08:40]OFD Sender: No OFD packet to send [16:08:42]accept exits with 8 [16:08:42]New connection [16:08:42]New thread 3067288932 created [16:08:42]Thread 3067432292 joined [16:08:42]Waiting for new connection... [16:08:42] Sock 8.Parse request [16:08:42]Sock 8.Check first char [16:08:42]Sock 8.First char is OK [16:08:42]request: POST /json_proto HTTP/1.0 [16:08:42]Method: POST [16:08:42]URL: /json_proto [16:08:42]Method is POST - this is cgi request [16:08:42]url: /json_proto [16:08:42]query_string will be loaded in cgi processing [16:08:42]execute_cgi json_proto POST (null) [16:08:42]execute_cgi path=json_proto method=POST [16:08:42]POST find Content-Length [16:08:42]Host: 172.17.63.195:8080 [16:08:42]Content-Length: 677 [16:08:42]Content-Type: application/json [16:08:42] [16:08:42]POST finish read [16:08:42]Found Content-Length = 677 [16:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:08:42]execute_script... [16:08: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)449822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:08:42]POST & json_proto [16:08:42]process_json_proto [16:08:42]json parsed OK: [16:08:42]protocol is kg_v1.0 [16:08:42]action value=close_receipt [16:08:42]process_action close_receipt [16:08:42]cmd_close_receipt [16:08:42]MH_GetDate [16:08:42]Write to MH i2c: F0 00 00 06 01 F6 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: F0 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: F0 09 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: F0 09 00 06 01 00 8B 65 1E 67 47 1B 1E 67 5B [16:08:42]GetLastDocTimeStamp 1730045312 [16:08:42]current date 1730045323 [16:08:42]FM_GetShiftState [16:08:42]SAM_PROTO_GetShiftState [16:08:42]wFMCommunicate request_size=4 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 13 01 00 [16:08:42]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0E 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 87 [16:08:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:08:42]wFMCommunicate OK [16:08:42]SAM_PROTO_GetShiftState done [16:08:42]FM_GetShiftState done [16:08:42]opened in 1729987312 [16:08:42]opened+sec_in_day 1730073712 [16:08:42]quantity*price = 20003 [16:08:42]sum+1 = 20004 [16:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 347 27.10.2024 16:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202055 ФПД: 142827754986965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160843&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202055&fm=142827754986965&tin=02508201610067®Number=0000000000091777&sum=20000 [16:08:44]StoreToDocumentArchive [16:08:44]shift 544 fd 202055 [16:08:44]save to /storage/0544/doc_00202055 [16:08:44]save last doc name /storage/0544/doc_00202055 to /storage/kkm_last_doc_name [16:08:44]save OK [16:08:44]Clear old archive folders... [16:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:44]tlvbuf is 01C449E0 [16:08:44]SAM_PROTO_ClearQueue [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 09 00 00 [16:08:44]Write to MH i2c: E2 08 00 14 01 80 09 00 00 00 00 00 00 87 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [16:08:44]RAPDU: 90 00 [16:08:44]wFMCommunicate OK [16:08:44]SAM_PROTO_ClearQueue done [16:08:44]KKMCreateOFDPacket [16:08:44]OFDProtocolAddRootSTLVToBuf [16:08:44]FM_MakeSignedData [16:08:44]FM_MakeSignedData [16:08:44]SAM_PROTO_SignData [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 0D 01 02 [16:08:44]Write to MH i2c: E2 08 00 15 01 80 0D 01 02 00 00 00 00 8F [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [16:08:44]RAPDU: 90 00 [16:08:44]wFMCommunicate OK [16:08:44]wFMCommunicate request_size=255 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 8B 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 15 03 00 35 04 06 00 81 [16:08:44]Write to MH i2c: E2 02 01 16 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 8B 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 15 03 00 35 04 06 00 81 00 00 B8 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [16:08:44]RAPDU: 90 00 [16:08:44]wFMCommunicate OK [16:08:44]wFMCommunicate request_size=10 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 0D 02 02 05 E6 AD 99 9D D5 [16:08:44]Write to MH i2c: E2 0D 00 17 01 80 0D 02 02 05 00 E6 AD 99 9D D5 00 00 3A [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [16:08:44]RAPDU: 90 00 [16:08:44]wFMCommunicate OK [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 0D 03 02 [16:08:44]Write to MH i2c: E2 08 00 18 01 80 0D 03 02 00 00 00 00 94 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 0B 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 0B 00 18 01 00 F7 E3 18 0E 0C 03 FC 1B 90 00 BB [16:08:44]RAPDU: F7 E3 18 0E 0C 03 FC 1B 90 00 [16:08:44]wFMCommunicate OK [16:08:44]SAM_PROTO_SignData done [16:08:44]FM_MakeSignedData done [16:08:44]CreateOFDProtocolMessage [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 11 00 00 [16:08:44]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 17 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 17 00 19 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [16:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:08:44]wFMCommunicate OK [16:08:44]CreateOFDProtocolMessage done [16:08:44]OFDSenderStorePacket 202055 [16:08:44]StoreOFDPacket docnum=202055 [16:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 44 AF 07 01 A0 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 8B 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 15 03 00 35 04 06 00 81 E6 AD 99 9D D5 F7 E3 18 0E 0C 03 FC 1B [16:08:44]CheckFolder [16:08:44]dirname=/storage/ofd_packets [16:08:44]CheckFolder done [16:08:44]ProducePacketName [16:08:44]name=ofd_packets/00202055 [16:08:44]NVStorageSaveData ofd_packets/00202055 [16:08:44]File name is /storage/ofd_packets/00202055 [16:08:44]Write 301 bytes [16:08:44]NVStorageSaveData done [16:08:44]OFDSenderStorePacket done [16:08:44]KKMCreateOFDPacket done [16:08:44]NVStorageSaveData kkm_last_timestamp [16:08:44]File name is /storage/kkm_last_timestamp [16:08:44]Write 4 bytes [16:08:44]NVStorageSaveData done [16:08:44]ExternCall_PrintAddStr [16:08:44]wPrintStart [16:08:44]Write to MH i2c: 01 00 00 1A 01 1B [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 07 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 FF 0F 30 [16:08:44]RasterBufferAndPrint [16:08:44]line Счет N : (1)449822 [16:08:44]line ИНН: 02508201610067 [16:08:44]line Контрольно-Кассовый Чек [16:08:44]line ПРОДАЖА [16:08:44]line ТРК (МРК, ГНК) : 31 [16:08:44]line Товар: 2710124130 [16:08:44]line Аи-92-К-2 [16:08:44]line 2.990 * 66.90 [16:08:44]line = 200.03 [16:08:44]line НДС 12% НСП 1% [16:08:44]line > о реализуемом товаре [16:08:44]line ОКРУГЛЕНИЕ: -0.03 [16:08:44]line ИТОГО: 200.00 [16:08:44]line Внесено: 200.00 [16:08:44]line СДАЧА: 0.00 [16:08:44]line НСП 1% : 1.77 [16:08:44]line НДС 12% : 21.24 [16:08:44]line Наличными: 200.00 [16:08:44]line Безнал.: 0.00 [16:08:44]line Место: АЗС № 171 "Партнер Нефть" [16:08:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:08:44]line СНО: Общий режим [16:08:44]line Чек 347 27.10.2024 16:08 [16:08:44]line Смена: 544 ФФД: 1.0 [16:08:44]line ЗНМ: 0300000109 [16:08:44]line РНМ: 0000000000091777 [16:08:44]line Версия ККМ: 001 [16:08:44]line ФМ: 0000000000871756 [16:08:44]line ФД: 202055 [16:08:44]line ФПД: 142827754986965 [16:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160843&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202055&fm=142827754986965&tin=02508201610067®Number=0000000000091777&sum=20000 [16:08:44]OFD Sender: Processing packet 202055 [packets to send 112, broken 111] [16:08:44]ProducePacketName [16:08:44]name=ofd_packets/00202055 [16:08:44]OFD Sender: To server: pG, [16:08:44]CommunicateWithHost lk.salyk.kg:30040 [16:08:44]ConnectInit lk.salyk.kg [16:08:44]written 0, free lines is 4095 [16:08:45]Connected sock=10 [16:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 44 AF 07 01 A0 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 8B 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 15 03 00 35 04 06 00 81 E6 AD 99 9D D5 F7 E3 18 0E 0C 03 FC 1B [16:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 74 ED 47 00 84 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 15 03 00 F4 03 04 00 44 11 1E 67 B6 04 01 00 00 FE 7C C4 0A 47 2D 88 72 [16:08:45]CommunicateWithHost err = 0 [16:08:45]CheckOFDResponse [16:08:45]1017 (14) - 77093643461234 [16:08:45]1041 (16) - 0000000000871756 [16:08:45]1040 (4) - 202055 [16:08:45]1012 (4) - 27.10.2024 10:09 [16:08:45]1206 (1) - 0 [16:08:45]OFD Sender: Remove packet 202055 [16:08:45]ProducePacketName [16:08:45]name=ofd_packets/00202055 [16:08:45]NVStorageDeleteData [16:08:45]Write to MH i2c: 01 00 00 45 01 46 [16:08:45]Write i2c OK [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: 01 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: 01 07 00 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 97 0C F0 [16:08:45]RasterBufferAndPrint [16:08:45]line [16:08:45]line [16:08:45]line [16:08:45]line [16:08:45]line [16:08:45]written 0, free lines is 3228 [16:08:45]MH_Cut [16:08:45]Write to MH i2c: D1 01 00 4C 01 01 1F [16:08:45]Write i2c OK [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: D1 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: D1 01 00 [16:08:45]MH_I2C_Read... [16:08:45]Read from MH i2c: D1 01 00 4C 01 00 1E [16:08:45]Write to MH i2c: 01 00 00 4D 01 4E [16:08:45]Write i2c OK [16:08:45]MH_I2C_Read... [16:08:45]OFD Sender: No OFD packet to send [16:08:46]*** Cut start [16:08:46]*** Purtial cut [16:08:46]*** Stage 1: CUTSNS_PIN = 1 [16:08:46]Read from MH i2c: 01 [16:08:46]MH_I2C_Read... [16:08:46]*** Stop cut motor [16:08:46]*** Cut end [16:08:46]Read from MH i2c: 01 07 00 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: 01 07 00 4D 01 00 00 00 00 00 FF 0F 63 [16:08:46]process_action close_receipt done [16:08:46]requested_data is exist [16:08:46]produce_requested_data [16:08:46]requested_item fm.sn is exist - process it [16:08:46]wFMCommunicate request_size=4 [16:08:46]MH_SAM_APDU [16:08:46]CAPDU: 80 11 00 00 [16:08:46]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [16:08:46]Write i2c OK [16:08:46]MH_I2C_Read... [16:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:46]Read from MH i2c: E2 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 17 00 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1E [16:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:08:46]wFMCommunicate OK [16:08:46]requested_item fd.num is exist - process it [16:08:46]SAM_PROTO_GetFieldsCounters [16:08:46]wFMCommunicate request_size=4 [16:08:46]MH_SAM_APDU [16:08:46]CAPDU: 80 13 00 00 [16:08:46]Write to MH i2c: E2 08 00 4F 01 80 13 00 00 00 00 00 00 CC [16:08:46]Write i2c OK [16:08:46]MH_I2C_Read... [16:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:46]Read from MH i2c: E2 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 62 00 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 62 00 4F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 47 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [16:08:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 47 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:46]wFMCommunicate OK [16:08:46]SAM_PROTO_GetFieldsCounters done [16:08:46]requested_item shift.num is exist - process it [16:08:46]requested_item shift.opened is exist - process it [16:08:46]req_shift_opened [16:08:46]FM_GetShiftState [16:08:46]SAM_PROTO_GetShiftState [16:08:46]wFMCommunicate request_size=4 [16:08:46]MH_SAM_APDU [16:08:46]CAPDU: 80 13 01 00 [16:08:46]Write to MH i2c: E2 08 00 50 01 80 13 01 00 00 00 00 00 CE [16:08:46]Write i2c OK [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:46]E2 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 0E 00 [16:08:46]MH_I2C_Read... [16:08:46]Read from MH i2c: E2 0E 00 50 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D0 [16:08:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:08:46]wFMCommunicate OK [16:08:46]SAM_PROTO_GetShiftState done [16:08:46]FM_GetShiftState done [16:08:46]req_shift_opened done [16:08:46]requested_item shift.open_date is exist - process it [16:08:46]req_shift_open_date [16:08:46]req_shift_open_date done [16:08:46]produce_requested_data done [16:08:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202055,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:08:46]process_action_free close_receipt [16:08:46]json_value_free [16:08:46]json_value_free done [16:08:46]process_json_proto returns [16:08:46]Send response to host [16:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202055,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:08:46]free response buf [16:08:46]execute_script done [16:08:46]execute_script returns [16:08:46]free content buf [16:08:46]Sock 8.Close socket [16:08:46]Sock 8.Thread stoped [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:18]int [16:09:18]Write to MH i2c: 01 00 00 51 01 52 [16:09:18]*** FLAG_PRN_KEY set [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 51 01 00 08 00 00 00 FF 0F 6F [16:09:18]state=0 [16:09:18]Key pressed [16:09:18]Feed [16:09:18]Write to MH i2c: D8 00 00 52 01 2A [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D8 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D8 01 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D8 01 00 52 01 00 2B [16:09:18]int [16:09:18]Write to MH i2c: 01 00 00 53 01 54 [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 53 01 00 48 00 00 00 3C 00 DF [16:09:18]state=2 [16:09:18]Key pressed [16:09:18]int [16:09:18]Write to MH i2c: 01 00 00 54 01 55 [16:09:18]*** FLAG_PRN_KEY reset [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 F5 0F 60 [16:09:18]state=2 [16:09:18]Stop feed [16:09:18]int [16:09:18]Write to MH i2c: 01 00 00 55 01 56 [16:09:18]*** FLAG_PRN_KEY set [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 55 01 00 08 00 00 00 FF 0F 73 [16:09:18]state=0 [16:09:18]Key pressed [16:09:18]Feed [16:09:18]Write to MH i2c: D8 00 00 56 01 2E [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D8 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D8 01 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D8 01 00 56 01 00 2F [16:09:18]int [16:09:18]Write to MH i2c: 01 00 00 57 01 58 [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 57 01 00 48 00 00 00 3C 00 E3 [16:09:18]state=2 [16:09:18]Key pressed [16:09:18]int [16:09:18]Write to MH i2c: 01 00 00 58 01 59 [16:09:18]*** FLAG_PRN_KEY reset [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 F6 0F 65 [16:09:18]state=2 [16:09:18]Stop feed [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:42]accept exits with 9 [16:09:42]New connection [16:09:42]New thread 3067432292 created [16:09:42]Thread 3067288932 joined [16:09:42]Waiting for new connection... [16:09:42] Sock 9.Parse request [16:09:42]Sock 9.Check first char [16:09:42]Sock 9.First char is OK [16:09:42]request: POST /json_proto HTTP/1.0 [16:09:42]Method: POST [16:09:42]URL: /json_proto [16:09:42]Method is POST - this is cgi request [16:09:42]url: /json_proto [16:09:42]query_string will be loaded in cgi processing [16:09:42]execute_cgi json_proto POST (null) [16:09:42]execute_cgi path=json_proto method=POST [16:09:42]POST find Content-Length [16:09:42]Host: 172.17.63.195:8080 [16:09:42]Content-Length: 674 [16:09:42]Content-Type: application/json [16:09:42] [16:09:42]POST finish read [16:09:42]Found Content-Length = 674 [16:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 8.010, "sum" : 610.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:42]execute_script... [16:09: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)449823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 8.010, "sum" : 610.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:42]POST & json_proto [16:09:42]process_json_proto [16:09:42]json parsed OK: [16:09:42]protocol is kg_v1.0 [16:09:42]action value=close_receipt [16:09:42]process_action close_receipt [16:09:42]cmd_close_receipt [16:09:42]MH_GetDate [16:09:42]Write to MH i2c: F0 00 00 59 01 49 [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: F0 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: F0 09 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: F0 09 00 59 01 00 C7 65 1E 67 47 1B 1E 67 EA [16:09:42]GetLastDocTimeStamp 1730045323 [16:09:42]current date 1730045383 [16:09:42]FM_GetShiftState [16:09:42]SAM_PROTO_GetShiftState [16:09:42]wFMCommunicate request_size=4 [16:09:42]MH_SAM_APDU [16:09:42]CAPDU: 80 13 01 00 [16:09:42]Write to MH i2c: E2 08 00 5A 01 80 13 01 00 00 00 00 00 D8 [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:42]Read from MH i2c: E2 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 0E 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 0E 00 5A 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DA [16:09:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:09:42]wFMCommunicate OK [16:09:42]SAM_PROTO_GetShiftState done [16:09:42]FM_GetShiftState done [16:09:42]opened in 1729987312 [16:09:42]opened+sec_in_day 1730073712 [16:09:42]quantity*price = 61036 [16:09:42]sum+1 = 61037 [16:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.82 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 348 27.10.2024 16:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202056 ФПД: 36354317285370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160943&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202056&fm=36354317285370&tin=02508201610067®Number=0000000000091777&sum=61000 [16:09:43]StoreToDocumentArchive [16:09:43]shift 544 fd 202056 [16:09:43]save to /storage/0544/doc_00202056 [16:09:43]save last doc name /storage/0544/doc_00202056 to /storage/kkm_last_doc_name [16:09:43]save OK [16:09:43]Clear old archive folders... [16:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:09:43]tlvbuf is 01C80F30 [16:09:43]SAM_PROTO_ClearQueue [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 09 00 00 [16:09:43]Write to MH i2c: E2 08 00 67 01 80 09 00 00 00 00 00 00 DA [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 67 01 00 90 00 DC [16:09:43]RAPDU: 90 00 [16:09:43]wFMCommunicate OK [16:09:43]SAM_PROTO_ClearQueue done [16:09:43]KKMCreateOFDPacket [16:09:43]OFDProtocolAddRootSTLVToBuf [16:09:43]FM_MakeSignedData [16:09:43]FM_MakeSignedData [16:09:43]SAM_PROTO_SignData [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 0D 01 02 [16:09:43]Write to MH i2c: E2 08 00 68 01 80 0D 01 02 00 00 00 00 E2 [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 68 01 00 90 00 DD [16:09:43]RAPDU: 90 00 [16:09:43]wFMCommunicate OK [16:09:43]wFMCommunicate request_size=255 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 1F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 19 00 00 00 00 07 04 06 00 48 EE 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 01 00 00 F4 03 04 00 C7 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 15 03 00 35 04 06 00 21 10 66 2A [16:09:43]Write to MH i2c: E2 02 01 69 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 1F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 19 00 00 00 00 07 04 06 00 48 EE 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 01 00 00 F4 03 04 00 C7 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 15 03 00 35 04 06 00 21 10 66 2A 00 00 2E [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:44]Read from MH i2c: E2 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: E2 03 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [16:09:44]RAPDU: 90 00 [16:09:44]wFMCommunicate OK [16:09:44]wFMCommunicate request_size=7 [16:09:44]MH_SAM_APDU [16:09:44]CAPDU: 80 0D 02 02 02 F7 FA [16:09:44]Write to MH i2c: E2 0A 00 6A 01 80 0D 02 02 02 00 F7 FA 00 00 DA [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:44]Read from MH i2c: E2 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: E2 03 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [16:09:44]RAPDU: 90 00 [16:09:44]wFMCommunicate OK [16:09:44]wFMCommunicate request_size=4 [16:09:44]MH_SAM_APDU [16:09:44]CAPDU: 80 0D 03 02 [16:09:44]Write to MH i2c: E2 08 00 6B 01 80 0D 03 02 00 00 00 00 E7 [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:44]Read from MH i2c: E2 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: E2 0B 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: E2 0B 00 6B 01 00 1B EF 99 85 A8 D7 45 F0 90 00 C4 [16:09:44]RAPDU: 1B EF 99 85 A8 D7 45 F0 90 00 [16:09:44]wFMCommunicate OK [16:09:44]SAM_PROTO_SignData done [16:09:44]FM_MakeSignedData done [16:09:44]CreateOFDProtocolMessage [16:09:44]wFMCommunicate request_size=4 [16:09:44]MH_SAM_APDU [16:09:44]CAPDU: 80 11 00 00 [16:09:44]Write to MH i2c: E2 08 00 6C 01 80 11 00 00 00 00 00 00 E7 [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:44]Read from MH i2c: E2 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: E2 17 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: E2 17 00 6C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3C [16:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:09:44]wFMCommunicate OK [16:09:44]CreateOFDProtocolMessage done [16:09:44]OFDSenderStorePacket 202056 [16:09:44]StoreOFDPacket docnum=202056 [16:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E4 A3 04 01 D3 5F 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 32 FF 03 08 00 03 4A 1F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 19 00 00 00 00 07 04 06 00 48 EE 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 01 00 00 F4 03 04 00 C7 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 15 03 00 35 04 06 00 21 10 66 2A F7 FA 1B EF 99 85 A8 D7 45 F0 [16:09:44]CheckFolder [16:09:44]dirname=/storage/ofd_packets [16:09:44]CheckFolder done [16:09:44]ProducePacketName [16:09:44]name=ofd_packets/00202056 [16:09:44]NVStorageSaveData ofd_packets/00202056 [16:09:44]File name is /storage/ofd_packets/00202056 [16:09:44]Write 298 bytes [16:09:44]NVStorageSaveData done [16:09:44]OFDSenderStorePacket done [16:09:44]KKMCreateOFDPacket done [16:09:44]NVStorageSaveData kkm_last_timestamp [16:09:44]File name is /storage/kkm_last_timestamp [16:09:44]Write 4 bytes [16:09:44]NVStorageSaveData done [16:09:44]ExternCall_PrintAddStr [16:09:44]wPrintStart [16:09:44]Write to MH i2c: 01 00 00 6D 01 6E [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 07 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 FF 0F 83 [16:09:44]RasterBufferAndPrint [16:09:44]line Счет N : (1)449823 [16:09:44]line ИНН: 02508201610067 [16:09:44]line Контрольно-Кассовый Чек [16:09:44]line ПРОДАЖА [16:09:44]line ТРК (МРК, ГНК) : 21 [16:09:44]line Товар: 2710194210 [16:09:44]line ДТ-К-2 [16:09:44]line 8.010 * 76.20 [16:09:44]line = 610.36 [16:09:44]line НДС 12% НСП 1% [16:09:44]line > о реализуемом товаре [16:09:44]line ОКРУГЛЕНИЕ: -0.36 [16:09:44]line ИТОГО: 610.00 [16:09:44]line Внесено: 610.00 [16:09:44]line СДАЧА: 0.00 [16:09:44]line НСП 1% : 5.40 [16:09:44]line НДС 12% : 64.82 [16:09:44]line Наличными: 610.00 [16:09:44]line Безнал.: 0.00 [16:09:44]line Место: АЗС № 171 "Партнер Нефть" [16:09:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:09:44]line СНО: Общий режим [16:09:44]line Чек 348 27.10.2024 16:09 [16:09:44]line Смена: 544 ФФД: 1.0 [16:09:44]line ЗНМ: 0300000109 [16:09:44]line РНМ: 0000000000091777 [16:09:44]line Версия ККМ: 001 [16:09:44]line ФМ: 0000000000871756 [16:09:44]line ФД: 202056 [16:09:44]line ФПД: 36354317285370 [16:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160943&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202056&fm=36354317285370&tin=02508201610067®Number=0000000000091777&sum=61000 [16:09:44]OFD Sender: Processing packet 202056 [packets to send 112, broken 111] [16:09:44]ProducePacketName [16:09:44]name=ofd_packets/00202056 [16:09:44]OFD Sender: To server: pG, [16:09:44]CommunicateWithHost lk.salyk.kg:30040 [16:09:44]ConnectInit lk.salyk.kg [16:09:44]written 0, free lines is 4095 [16:09:44]Connected sock=10 [16:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E4 A3 04 01 D3 5F 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 32 FF 03 08 00 03 4A 1F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 19 00 00 00 00 07 04 06 00 48 EE 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 01 00 00 F4 03 04 00 C7 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 15 03 00 35 04 06 00 21 10 66 2A F7 FA 1B EF 99 85 A8 D7 45 F0 [16:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 00 99 47 00 B4 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 15 03 00 F4 03 04 00 80 11 1E 67 B6 04 01 00 00 85 15 45 26 FC E4 60 9E [16:09:44]CommunicateWithHost err = 0 [16:09:44]CheckOFDResponse [16:09:44]1017 (14) - 77093643461234 [16:09:44]1041 (16) - 0000000000871756 [16:09:44]1040 (4) - 202056 [16:09:44]1012 (4) - 27.10.2024 10:10 [16:09:44]1206 (1) - 0 [16:09:44]OFD Sender: Remove packet 202056 [16:09:44]ProducePacketName [16:09:44]name=ofd_packets/00202056 [16:09:44]NVStorageDeleteData [16:09:44]Write to MH i2c: 01 00 00 98 01 99 [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 07 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 07 00 98 01 00 00 00 00 00 97 0C 43 [16:09:44]RasterBufferAndPrint [16:09:44]line [16:09:44]line [16:09:45]line [16:09:45]line [16:09:45]line [16:09:45]written 0, free lines is 3229 [16:09:45]MH_Cut [16:09:45]Write to MH i2c: D1 01 00 9F 01 01 72 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: D1 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: D1 01 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: D1 01 00 9F 01 00 71 [16:09:45]Write to MH i2c: 01 00 00 A0 01 A1 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]OFD Sender: No OFD packet to send [16:09:45]*** Cut start [16:09:45]*** Purtial cut [16:09:45]*** Stage 1: CUTSNS_PIN = 1 [16:09:46]Read from MH i2c: 01 [16:09:46]MH_I2C_Read... [16:09:46]*** Stop cut motor [16:09:46]*** Cut end [16:09:46]Read from MH i2c: 01 07 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [16:09:46]process_action close_receipt done [16:09:46]requested_data is exist [16:09:46]produce_requested_data [16:09:46]requested_item fm.sn is exist - process it [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 11 00 00 [16:09:46]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 17 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 71 [16:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:09:46]wFMCommunicate OK [16:09:46]requested_item fd.num is exist - process it [16:09:46]SAM_PROTO_GetFieldsCounters [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 13 00 00 [16:09:46]Write to MH i2c: E2 08 00 A2 01 80 13 00 00 00 00 00 00 1F [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 62 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 62 00 A2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 48 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [16:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 48 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:46]wFMCommunicate OK [16:09:46]SAM_PROTO_GetFieldsCounters done [16:09:46]requested_item shift.num is exist - process it [16:09:46]requested_item shift.opened is exist - process it [16:09:46]req_shift_opened [16:09:46]FM_GetShiftState [16:09:46]SAM_PROTO_GetShiftState [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 13 01 00 [16:09:46]Write to MH i2c: E2 08 00 A3 01 80 13 01 00 00 00 00 00 21 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:46]Read from MH i2c: E2 0E 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 0E 00 A3 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 23 [16:09:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:09:46]wFMCommunicate OK [16:09:46]SAM_PROTO_GetShiftState done [16:09:46]FM_GetShiftState done [16:09:46]req_shift_opened done [16:09:46]requested_item shift.open_date is exist - process it [16:09:46]req_shift_open_date [16:09:46]req_shift_open_date done [16:09:46]produce_requested_data done [16:09:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202056,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:09:46]process_action_free close_receipt [16:09:46]json_value_free [16:09:46]json_value_free done [16:09:46]process_json_proto returns [16:09:46]Send response to host [16:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202056,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:09:46]free response buf [16:09:46]execute_script done [16:09:46]execute_script returns [16:09:46]free content buf [16:09:46]Sock 9.Close socket [16:09:46]Sock 9.Thread stoped [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:09:56]accept exits with 8 [16:09:56]New connection [16:09:56]New thread 3067288932 created [16:09:56]Thread 3067432292 joined [16:09:56]Waiting for new connection... [16:09:56] Sock 8.Parse request [16:09:56]Sock 8.Check first char [16:09:56]Sock 8.First char is OK [16:09:56]request: POST /json_proto HTTP/1.0 [16:09:56]Method: POST [16:09:56]URL: /json_proto [16:09:56]Method is POST - this is cgi request [16:09:56]url: /json_proto [16:09:56]query_string will be loaded in cgi processing [16:09:56]execute_cgi json_proto POST (null) [16:09:56]execute_cgi path=json_proto method=POST [16:09:56]POST find Content-Length [16:09:56]Host: 172.17.63.195:8080 [16:09:56]Content-Length: 766 [16:09:56]Content-Type: application/json [16:09:56] [16:09:56]POST finish read [16:09:56]Found Content-Length = 766 [16:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:09:56]execute_script... [16:09:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:09:56]POST & json_proto [16:09:56]process_json_proto [16:09:56]json parsed OK: [16:09:56]protocol is kg_v1.0 [16:09:56]action value=close_receipt [16:09:56]process_action close_receipt [16:09:56]cmd_close_receipt [16:09:56]MH_GetDate [16:09:56]Write to MH i2c: F0 00 00 A4 01 94 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: F0 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: F0 09 00 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: F0 09 00 A4 01 00 D4 65 1E 67 47 1B 1E 67 42 [16:09:56]GetLastDocTimeStamp 1730045383 [16:09:56]current date 1730045396 [16:09:56]FM_GetShiftState [16:09:56]SAM_PROTO_GetShiftState [16:09:56]wFMCommunicate request_size=4 [16:09:56]MH_SAM_APDU [16:09:56]CAPDU: 80 13 01 00 [16:09:56]Write to MH i2c: E2 08 00 A5 01 80 13 01 00 00 00 00 00 23 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:56]Read from MH i2c: E2 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: E2 0E 00 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: E2 0E 00 A5 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 25 [16:09:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:09:56]wFMCommunicate OK [16:09:56]SAM_PROTO_GetShiftState done [16:09:56]FM_GetShiftState done [16:09:56]opened in 1729987312 [16:09:56]opened+sec_in_day 1730073712 [16:09:56]quantity*price = 100050 [16:09:56]sum+1 = 100052 [16:09:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 349 27.10.2024 16:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202057 ФПД: 171417787821902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160956&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202057&fm=171417787821902&tin=02508201610067®Number=0000000000091777&sum=100051 [16:09:57]StoreToDocumentArchive [16:09:57]shift 544 fd 202057 [16:09:57]save to /storage/0544/doc_00202057 [16:09:57]save last doc name /storage/0544/doc_00202057 to /storage/kkm_last_doc_name [16:09:57]save OK [16:09:57]Clear old archive folders... [16:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:09:57]tlvbuf is 01C678F0 [16:09:57]SAM_PROTO_ClearQueue [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 09 00 00 [16:09:57]Write to MH i2c: E2 08 00 B2 01 80 09 00 00 00 00 00 00 25 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [16:09:57]RAPDU: 90 00 [16:09:57]wFMCommunicate OK [16:09:57]SAM_PROTO_ClearQueue done [16:09:57]KKMCreateOFDPacket [16:09:57]OFDProtocolAddRootSTLVToBuf [16:09:57]FM_MakeSignedData [16:09:57]FM_MakeSignedData [16:09:57]SAM_PROTO_SignData [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 0D 01 02 [16:09:57]Write to MH i2c: E2 08 00 B3 01 80 0D 01 02 00 00 00 00 2D [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [16:09:57]RAPDU: 90 00 [16:09:57]wFMCommunicate OK [16:09:57]wFMCommunicate request_size=255 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 5D 01 00 00 F4 03 04 00 D4 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 15 03 00 35 04 06 00 9B E7 50 59 [16:09:57]Write to MH i2c: E2 02 01 B4 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 5D 01 00 00 F4 03 04 00 D4 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 15 03 00 35 04 06 00 9B E7 50 59 00 00 E7 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [16:09:57]RAPDU: 90 00 [16:09:57]wFMCommunicate OK [16:09:57]wFMCommunicate request_size=7 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 0D 02 02 02 EF 4E [16:09:57]Write to MH i2c: E2 0A 00 B5 01 80 0D 02 02 02 00 EF 4E 00 00 71 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [16:09:57]RAPDU: 90 00 [16:09:57]wFMCommunicate OK [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 0D 03 02 [16:09:57]Write to MH i2c: E2 08 00 B6 01 80 0D 03 02 00 00 00 00 32 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 0B 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 0B 00 B6 01 00 01 36 B2 8C 7C BC 31 B1 90 00 C2 [16:09:58]RAPDU: 01 36 B2 8C 7C BC 31 B1 90 00 [16:09:58]wFMCommunicate OK [16:09:58]SAM_PROTO_SignData done [16:09:58]FM_MakeSignedData done [16:09:58]CreateOFDProtocolMessage [16:09:58]wFMCommunicate request_size=4 [16:09:58]MH_SAM_APDU [16:09:58]CAPDU: 80 11 00 00 [16:09:58]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:58]Read from MH i2c: E2 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: E2 17 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 87 [16:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:09:58]wFMCommunicate OK [16:09:58]CreateOFDProtocolMessage done [16:09:58]OFDSenderStorePacket 202057 [16:09:58]StoreOFDPacket docnum=202057 [16:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 60 2D 04 01 A9 F0 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 32 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 5D 01 00 00 F4 03 04 00 D4 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 15 03 00 35 04 06 00 9B E7 50 59 EF 4E 01 36 B2 8C 7C BC 31 B1 [16:09:58]CheckFolder [16:09:58]dirname=/storage/ofd_packets [16:09:58]CheckFolder done [16:09:58]ProducePacketName [16:09:58]name=ofd_packets/00202057 [16:09:58]NVStorageSaveData ofd_packets/00202057 [16:09:58]File name is /storage/ofd_packets/00202057 [16:09:58]Write 298 bytes [16:09:58]NVStorageSaveData done [16:09:58]OFDSenderStorePacket done [16:09:58]KKMCreateOFDPacket done [16:09:58]NVStorageSaveData kkm_last_timestamp [16:09:58]File name is /storage/kkm_last_timestamp [16:09:58]Write 4 bytes [16:09:58]NVStorageSaveData done [16:09:58]ExternCall_PrintAddStr [16:09:58]wPrintStart [16:09:58]Write to MH i2c: 01 00 00 B8 01 B9 [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 07 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 FF 0F CE [16:09:58]RasterBufferAndPrint [16:09:58]line Счет N : (1)449824 [16:09:58]line ИНН: 02508201610067 [16:09:58]line Контрольно-Кассовый Чек [16:09:58]line ПРОДАЖА [16:09:58]line ТРК (МРК, ГНК) : 43 [16:09:58]line Товар: 2710194210 [16:09:58]line ДТ-К-2 [16:09:58]line 13.130 * 76.20 [16:09:58]line = 1000.51 [16:09:58]line НДС 12% НСП 1% [16:09:58]line > о реализуемом товаре [16:09:58]line ИТОГО: 1000.51 [16:09:58]line НСП 1% : 8.85 [16:09:58]line НДС 12% : 106.25 [16:09:58]line Наличными: 0.00 [16:09:58]line Безнал.: 1000.51 [16:09:58]line Место: АЗС № 171 "Партнер Нефть" [16:09:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:09:58]line СНО: Общий режим [16:09:58]line Чек 349 27.10.2024 16:09 [16:09:58]line Смена: 544 ФФД: 1.0 [16:09:58]line ЗНМ: 0300000109 [16:09:58]line РНМ: 0000000000091777 [16:09:58]line Версия ККМ: 001 [16:09:58]line Платежная система: Mbank [16:09:58]line ФМ: 0000000000871756 [16:09:58]line ФД: 202057 [16:09:58]line ФПД: 171417787821902 [16:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160956&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202057&fm=171417787821902&tin=02508201610067®Number=0000000000091777&sum=100051 [16:09:58]written 0, free lines is 4095 [16:09:58]OFD Sender: Processing packet 202057 [packets to send 112, broken 111] [16:09:58]ProducePacketName [16:09:58]name=ofd_packets/00202057 [16:09:58]OFD Sender: To server: pG, [16:09:58]CommunicateWithHost lk.salyk.kg:30040 [16:09:58]ConnectInit lk.salyk.kg [16:09:58]Connected sock=10 [16:09:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 60 2D 04 01 A9 F0 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 32 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 5D 01 00 00 F4 03 04 00 D4 65 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 15 03 00 35 04 06 00 9B E7 50 59 EF 4E 01 36 B2 8C 7C BC 31 B1 [16:09:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 59 30 47 00 03 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 15 03 00 F4 03 04 00 8E 11 1E 67 B6 04 01 00 00 56 93 F2 41 9F 82 CD AC [16:09:58]CommunicateWithHost err = 0 [16:09:58]CheckOFDResponse [16:09:58]1017 (14) - 77093643461234 [16:09:58]1041 (16) - 0000000000871756 [16:09:58]1040 (4) - 202057 [16:09:58]1012 (4) - 27.10.2024 10:10 [16:09:58]1206 (1) - 0 [16:09:58]OFD Sender: Remove packet 202057 [16:09:58]ProducePacketName [16:09:58]name=ofd_packets/00202057 [16:09:58]NVStorageDeleteData [16:09:58]Write to MH i2c: 01 00 00 E1 01 E2 [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 07 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 C2 0C B7 [16:09:58]RasterBufferAndPrint [16:09:58]line [16:09:58]line [16:09:58]line [16:09:58]line [16:09:58]line [16:09:58]written 0, free lines is 3272 [16:09:58]MH_Cut [16:09:58]Write to MH i2c: D1 01 00 E8 01 01 BB [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: D1 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: D1 01 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: D1 01 00 E8 01 00 BA [16:09:58]Write to MH i2c: 01 00 00 E9 01 EA [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]OFD Sender: No OFD packet to send [16:09:59]*** Cut start [16:09:59]*** Purtial cut [16:09:59]*** Stage 1: CUTSNS_PIN = 1 [16:09:59]Read from MH i2c: 01 [16:09:59]MH_I2C_Read... [16:09:59]*** Stop cut motor [16:09:59]*** Cut end [16:09:59]Read from MH i2c: 01 07 00 [16:09:59]MH_I2C_Read... [16:09:59]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 FF 0F FF [16:09:59]process_action close_receipt done [16:09:59]requested_data is exist [16:09:59]produce_requested_data [16:09:59]requested_item fm.sn is exist - process it [16:09:59]wFMCommunicate request_size=4 [16:09:59]MH_SAM_APDU [16:09:59]CAPDU: 80 11 00 00 [16:09:59]Write to MH i2c: E2 08 00 EA 01 80 11 00 00 00 00 00 00 65 [16:09:59]Write i2c OK [16:09:59]MH_I2C_Read... [16:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:59]Read from MH i2c: E2 [16:09:59]MH_I2C_Read... [16:09:59]Read from MH i2c: E2 17 00 [16:09:59]MH_I2C_Read... [16:09:59]Read from MH i2c: E2 17 00 EA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BA [16:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:09:59]wFMCommunicate OK [16:09:59]requested_item fd.num is exist - process it [16:09:59]SAM_PROTO_GetFieldsCounters [16:09:59]wFMCommunicate request_size=4 [16:09:59]MH_SAM_APDU [16:09:59]CAPDU: 80 13 00 00 [16:09:59]Write to MH i2c: E2 08 00 EB 01 80 13 00 00 00 00 00 00 68 [16:09:59]Write i2c OK [16:09:59]MH_I2C_Read... [16:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:59]Read from MH i2c: E2 [16:09:59]MH_I2C_Read... [16:09:59]Read from MH i2c: E2 62 00 [16:09:59]MH_I2C_Read... [16:09:59]Read from MH i2c: E2 62 00 EB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 49 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [16:09:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 49 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:59]wFMCommunicate OK [16:09:59]SAM_PROTO_GetFieldsCounters done [16:09:59]requested_item shift.num is exist - process it [16:09:59]requested_item shift.opened is exist - process it [16:09:59]req_shift_opened [16:09:59]FM_GetShiftState [16:09:59]SAM_PROTO_GetShiftState [16:09:59]wFMCommunicate request_size=4 [16:09:59]MH_SAM_APDU [16:09:59]CAPDU: 80 13 01 00 [16:09:59]Write to MH i2c: E2 08 00 EC 01 80 13 01 00 00 00 00 00 6A [16:09:59]Write i2c OK [16:09:59]MH_I2C_Read... [16:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:59]Read from MH i2c: E2 [16:09:59]MH_I2C_Read... [16:09:59]Read from MH i2c: E2 0E 00 [16:09:59]MH_I2C_Read... [16:09:59]Read from MH i2c: E2 0E 00 EC 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [16:09:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:09:59]wFMCommunicate OK [16:09:59]SAM_PROTO_GetShiftState done [16:09:59]FM_GetShiftState done [16:09:59]req_shift_opened done [16:09:59]requested_item shift.open_date is exist - process it [16:09:59]req_shift_open_date [16:09:59]req_shift_open_date done [16:09:59]produce_requested_data done [16:09:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202057,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:09:59]process_action_free close_receipt [16:09:59]json_value_free [16:09:59]json_value_free done [16:09:59]process_json_proto returns [16:09:59]Send response to host [16:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202057,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:09:59]free response buf [16:09:59]execute_script done [16:09:59]execute_script returns [16:09:59]free content buf [16:09:59]Sock 8.Close socket [16:09:59]Sock 8.Thread stoped [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:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:50]accept exits with 9 [16:10:50]New connection [16:10:50]New thread 3067432292 created [16:10:50]Thread 3067288932 joined [16:10:50]Waiting for new connection... [16:10:50] Sock 9.Parse request [16:10:50]Sock 9.Check first char [16:10:50]Sock 9.First char is OK [16:10:50]request: POST /json_proto HTTP/1.0 [16:10:50]Method: POST [16:10:50]URL: /json_proto [16:10:50]Method is POST - this is cgi request [16:10:50]url: /json_proto [16:10:50]query_string will be loaded in cgi processing [16:10:50]execute_cgi json_proto POST (null) [16:10:50]execute_cgi path=json_proto method=POST [16:10:50]POST find Content-Length [16:10:50]Host: 172.17.63.195:8080 [16:10:50]Content-Length: 677 [16:10:50]Content-Type: application/json [16:10:50] [16:10:50]POST finish read [16:10:50]Found Content-Length = 677 [16:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:50]execute_script... [16:10: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)449826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:50]POST & json_proto [16:10:50]process_json_proto [16:10:50]json parsed OK: [16:10:50]protocol is kg_v1.0 [16:10:50]action value=close_receipt [16:10:50]process_action close_receipt [16:10:50]cmd_close_receipt [16:10:50]MH_GetDate [16:10:50]Write to MH i2c: F0 00 00 ED 01 DD [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: F0 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: F0 09 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: F0 09 00 ED 01 00 0B 66 1E 67 47 1B 1E 67 C3 [16:10:50]GetLastDocTimeStamp 1730045396 [16:10:50]current date 1730045451 [16:10:50]FM_GetShiftState [16:10:50]SAM_PROTO_GetShiftState [16:10:50]wFMCommunicate request_size=4 [16:10:50]MH_SAM_APDU [16:10:50]CAPDU: 80 13 01 00 [16:10:50]Write to MH i2c: E2 08 00 EE 01 80 13 01 00 00 00 00 00 6C [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:50]Read from MH i2c: E2 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 0E 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 0E 00 EE 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6E [16:10:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:10:50]wFMCommunicate OK [16:10:50]SAM_PROTO_GetShiftState done [16:10:50]FM_GetShiftState done [16:10:50]opened in 1729987312 [16:10:50]opened+sec_in_day 1730073712 [16:10:50]quantity*price = 35055 [16:10:50]sum+1 = 35057 [16:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 350 27.10.2024 16:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202058 ФПД: 127502284918322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161051&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202058&fm=127502284918322&tin=02508201610067®Number=0000000000091777&sum=35000 [16:10:52]StoreToDocumentArchive [16:10:52]shift 544 fd 202058 [16:10:52]save to /storage/0544/doc_00202058 [16:10:52]save last doc name /storage/0544/doc_00202058 to /storage/kkm_last_doc_name [16:10:52]save OK [16:10:52]Clear old archive folders... [16:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:52]tlvbuf is 01C69210 [16:10:52]SAM_PROTO_ClearQueue [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 09 00 00 [16:10:52]Write to MH i2c: E2 08 00 FB 01 80 09 00 00 00 00 00 00 6E [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 03 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 03 00 FB 01 00 90 00 70 [16:10:52]RAPDU: 90 00 [16:10:52]wFMCommunicate OK [16:10:52]SAM_PROTO_ClearQueue done [16:10:52]KKMCreateOFDPacket [16:10:52]OFDProtocolAddRootSTLVToBuf [16:10:52]FM_MakeSignedData [16:10:52]FM_MakeSignedData [16:10:52]SAM_PROTO_SignData [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 0D 01 02 [16:10:52]Write to MH i2c: E2 08 00 FC 01 80 0D 01 02 00 00 00 00 76 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 03 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 03 00 FC 01 00 90 00 71 [16:10:52]RAPDU: 90 00 [16:10:52]wFMCommunicate OK [16:10:52]wFMCommunicate request_size=255 [16:10:52]MH_SAM_APDU [16:10: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 0B 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 15 03 00 35 04 06 00 73 [16:10:52]Write to MH i2c: E2 02 01 FD 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 0B 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 15 03 00 35 04 06 00 73 00 00 61 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 03 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [16:10:52]RAPDU: 90 00 [16:10:52]wFMCommunicate OK [16:10:52]wFMCommunicate request_size=10 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 0D 02 02 05 F6 70 66 8E 32 [16:10:52]Write to MH i2c: E2 0D 00 FE 01 80 0D 02 02 05 00 F6 70 66 8E 32 00 00 0F [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 03 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [16:10:52]RAPDU: 90 00 [16:10:52]wFMCommunicate OK [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 0D 03 02 [16:10:52]Write to MH i2c: E2 08 00 FF 01 80 0D 03 02 00 00 00 00 7B [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 0B 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 0B 00 FF 01 00 02 09 94 EC 08 0F E3 3B 90 00 3C [16:10:52]RAPDU: 02 09 94 EC 08 0F E3 3B 90 00 [16:10:52]wFMCommunicate OK [16:10:52]SAM_PROTO_SignData done [16:10:52]FM_MakeSignedData done [16:10:52]CreateOFDProtocolMessage [16:10:52]wFMCommunicate request_size=4 [16:10:52]MH_SAM_APDU [16:10:52]CAPDU: 80 11 00 00 [16:10:52]Write to MH i2c: E2 08 00 00 02 80 11 00 00 00 00 00 00 7C [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:52]Read from MH i2c: E2 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 17 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: E2 17 00 00 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D1 [16:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:10:52]wFMCommunicate OK [16:10:52]CreateOFDProtocolMessage done [16:10:52]OFDSenderStorePacket 202058 [16:10:52]StoreOFDPacket docnum=202058 [16:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 90 22 07 01 7C D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 0B 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 15 03 00 35 04 06 00 73 F6 70 66 8E 32 02 09 94 EC 08 0F E3 3B [16:10:52]CheckFolder [16:10:52]dirname=/storage/ofd_packets [16:10:52]CheckFolder done [16:10:52]ProducePacketName [16:10:52]name=ofd_packets/00202058 [16:10:52]NVStorageSaveData ofd_packets/00202058 [16:10:52]File name is /storage/ofd_packets/00202058 [16:10:52]Write 301 bytes [16:10:52]NVStorageSaveData done [16:10:52]OFDSenderStorePacket done [16:10:52]KKMCreateOFDPacket done [16:10:52]NVStorageSaveData kkm_last_timestamp [16:10:52]File name is /storage/kkm_last_timestamp [16:10:52]Write 4 bytes [16:10:52]NVStorageSaveData done [16:10:52]ExternCall_PrintAddStr [16:10:52]wPrintStart [16:10:52]Write to MH i2c: 01 00 00 01 02 03 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 07 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 FF 0F 18 [16:10:52]RasterBufferAndPrint [16:10:52]line Счет N : (1)449826 [16:10:52]line ИНН: 02508201610067 [16:10:52]line Контрольно-Кассовый Чек [16:10:52]line ПРОДАЖА [16:10:52]line ТРК (МРК, ГНК) : 62 [16:10:52]line Товар: 2710124130 [16:10:52]line Аи-92-К-2 [16:10:52]line 5.240 * 66.90 [16:10:52]line = 350.56 [16:10:52]line НДС 12% НСП 1% [16:10:52]line > о реализуемом товаре [16:10:52]line ОКРУГЛЕНИЕ: -0.56 [16:10:52]line ИТОГО: 350.00 [16:10:52]line Внесено: 350.00 [16:10:52]line СДАЧА: 0.00 [16:10:52]line НСП 1% : 3.10 [16:10:52]line НДС 12% : 37.23 [16:10:52]line Наличными: 350.00 [16:10:52]line Безнал.: 0.00 [16:10:52]line Место: АЗС № 171 "Партнер Нефть" [16:10:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:10:52]line СНО: Общий режим [16:10:52]line Чек 350 27.10.2024 16:10 [16:10:52]line Смена: 544 ФФД: 1.0 [16:10:52]line ЗНМ: 0300000109 [16:10:52]line РНМ: 0000000000091777 [16:10:52]line Версия ККМ: 001 [16:10:52]line ФМ: 0000000000871756 [16:10:52]line ФД: 202058 [16:10:52]line ФПД: 127502284918322 [16:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161051&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202058&fm=127502284918322&tin=02508201610067®Number=0000000000091777&sum=35000 [16:10:52]OFD Sender: Processing packet 202058 [packets to send 112, broken 111] [16:10:52]ProducePacketName [16:10:52]name=ofd_packets/00202058 [16:10:52]OFD Sender: To server: pG, [16:10:52]CommunicateWithHost lk.salyk.kg:30040 [16:10:52]ConnectInit lk.salyk.kg [16:10:53]written 0, free lines is 4095 [16:10:53]Connected sock=10 [16:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 90 22 07 01 7C D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 0B 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 15 03 00 35 04 06 00 73 F6 70 66 8E 32 02 09 94 EC 08 0F E3 3B [16:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 29 6B 47 00 7E 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 15 03 00 F4 03 04 00 C5 11 1E 67 B6 04 01 00 00 3E D1 DA CB 50 97 83 71 [16:10:53]CommunicateWithHost err = 0 [16:10:53]CheckOFDResponse [16:10:53]1017 (14) - 77093643461234 [16:10:53]1041 (16) - 0000000000871756 [16:10:53]1040 (4) - 202058 [16:10:53]1012 (4) - 27.10.2024 10:11 [16:10:53]1206 (1) - 0 [16:10:53]OFD Sender: Remove packet 202058 [16:10:53]ProducePacketName [16:10:53]name=ofd_packets/00202058 [16:10:53]NVStorageDeleteData [16:10:53]Write to MH i2c: 01 00 00 2C 02 2E [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: 01 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: 01 07 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 8E 0C CF [16:10:53]RasterBufferAndPrint [16:10:53]line [16:10:53]line [16:10:53]line [16:10:53]line [16:10:53]line [16:10:53]written 0, free lines is 3218 [16:10:53]MH_Cut [16:10:53]Write to MH i2c: D1 01 00 33 02 01 07 [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: D1 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: D1 01 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: D1 01 00 33 02 00 06 [16:10:53]Write to MH i2c: 01 00 00 34 02 36 [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:53]OFD Sender: No OFD packet to send [16:10:54]*** Cut start [16:10:54]*** Purtial cut [16:10:54]*** Stage 1: CUTSNS_PIN = 1 [16:10:54]Read from MH i2c: 01 [16:10:54]MH_I2C_Read... [16:10:54]*** Stop cut motor [16:10:54]*** Cut end [16:10:54]Read from MH i2c: 01 07 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 FF 0F 4B [16:10:54]process_action close_receipt done [16:10:54]requested_data is exist [16:10:54]produce_requested_data [16:10:54]requested_item fm.sn is exist - process it [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 11 00 00 [16:10:54]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 17 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 06 [16:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:10:54]wFMCommunicate OK [16:10:54]requested_item fd.num is exist - process it [16:10:54]SAM_PROTO_GetFieldsCounters [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 13 00 00 [16:10:54]Write to MH i2c: E2 08 00 36 02 80 13 00 00 00 00 00 00 B4 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 62 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 62 00 36 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [16:10:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:54]wFMCommunicate OK [16:10:54]SAM_PROTO_GetFieldsCounters done [16:10:54]requested_item shift.num is exist - process it [16:10:54]requested_item shift.opened is exist - process it [16:10:54]req_shift_opened [16:10:54]FM_GetShiftState [16:10:54]SAM_PROTO_GetShiftState [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 13 01 00 [16:10:54]Write to MH i2c: E2 08 00 37 02 80 13 01 00 00 00 00 00 B6 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 0E 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 0E 00 37 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [16:10:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:10:54]wFMCommunicate OK [16:10:54]SAM_PROTO_GetShiftState done [16:10:54]FM_GetShiftState done [16:10:54]req_shift_opened done [16:10:54]requested_item shift.open_date is exist - process it [16:10:54]req_shift_open_date [16:10:54]req_shift_open_date done [16:10:54]produce_requested_data done [16:10:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202058,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:10:54]process_action_free close_receipt [16:10:54]json_value_free [16:10:54]json_value_free done [16:10:54]process_json_proto returns [16:10:54]Send response to host [16:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202058,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:10:54]free response buf [16:10:54]execute_script done [16:10:54]execute_script returns [16:10:54]free content buf [16:10:54]Sock 9.Close socket [16:10:54]Sock 9.Thread stoped [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:04]accept exits with 8 [16:11:04]New connection [16:11:04]New thread 3067288932 created [16:11:04]Thread 3067432292 joined [16:11:04]Waiting for new connection... [16:11:04] Sock 8.Parse request [16:11:04]Sock 8.Check first char [16:11:04]Sock 8.First char is OK [16:11:04]request: POST /json_proto HTTP/1.0 [16:11:04]Method: POST [16:11:04]URL: /json_proto [16:11:04]Method is POST - this is cgi request [16:11:04]url: /json_proto [16:11:04]query_string will be loaded in cgi processing [16:11:04]execute_cgi json_proto POST (null) [16:11:04]execute_cgi path=json_proto method=POST [16:11:04]POST find Content-Length [16:11:04]Host: 172.17.63.195:8080 [16:11:04]Content-Length: 632 [16:11:04]Content-Type: application/json [16:11:04] [16:11:04]POST finish read [16:11:04]Found Content-Length = 632 [16:11:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [16:11:04]execute_script... [16:11: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)449825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "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" ] } } [16:11:04]POST & json_proto [16:11:04]process_json_proto [16:11:04]json parsed OK: [16:11:04]protocol is kg_v1.0 [16:11:04]action value=close_receipt [16:11:04]process_action close_receipt [16:11:04]cmd_close_receipt [16:11:04]MH_GetDate [16:11:04]Write to MH i2c: F0 00 00 38 02 29 [16:11:04]Write i2c OK [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: F0 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: F0 09 00 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: F0 09 00 38 02 00 19 66 1E 67 47 1B 1E 67 1D [16:11:04]GetLastDocTimeStamp 1730045451 [16:11:04]current date 1730045465 [16:11:04]FM_GetShiftState [16:11:04]SAM_PROTO_GetShiftState [16:11:04]wFMCommunicate request_size=4 [16:11:04]MH_SAM_APDU [16:11:04]CAPDU: 80 13 01 00 [16:11:04]Write to MH i2c: E2 08 00 39 02 80 13 01 00 00 00 00 00 B8 [16:11:04]Write i2c OK [16:11:04]MH_I2C_Read... [16:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:04]Read from MH i2c: E2 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: E2 0E 00 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: E2 0E 00 39 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BA [16:11:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:11:04]wFMCommunicate OK [16:11:04]SAM_PROTO_GetShiftState done [16:11:04]FM_GetShiftState done [16:11:04]opened in 1729987312 [16:11:04]opened+sec_in_day 1730073712 [16:11:04]quantity*price = 50000 [16:11:04]sum+1 = 50001 [16:11:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 351 27.10.2024 16:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202059 ФПД: 121981993214392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161105&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202059&fm=121981993214392&tin=02508201610067®Number=0000000000091777&sum=50000 [16:11:05]StoreToDocumentArchive [16:11:05]shift 544 fd 202059 [16:11:05]save to /storage/0544/doc_00202059 [16:11:05]save last doc name /storage/0544/doc_00202059 to /storage/kkm_last_doc_name [16:11:05]save OK [16:11:05]Clear old archive folders... [16:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:11:05]tlvbuf is 01C5E0A0 [16:11:05]SAM_PROTO_ClearQueue [16:11:05]wFMCommunicate request_size=4 [16:11:05]MH_SAM_APDU [16:11:05]CAPDU: 80 09 00 00 [16:11:05]Write to MH i2c: E2 08 00 46 02 80 09 00 00 00 00 00 00 BA [16:11:05]Write i2c OK [16:11:05]MH_I2C_Read... [16:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:05]Read from MH i2c: E2 [16:11:05]MH_I2C_Read... [16:11:05]Read from MH i2c: E2 03 00 [16:11:05]MH_I2C_Read... [16:11:05]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [16:11:05]RAPDU: 90 00 [16:11:05]wFMCommunicate OK [16:11:05]SAM_PROTO_ClearQueue done [16:11:05]KKMCreateOFDPacket [16:11:05]OFDProtocolAddRootSTLVToBuf [16:11:05]FM_MakeSignedData [16:11:05]FM_MakeSignedData [16:11:05]SAM_PROTO_SignData [16:11:05]wFMCommunicate request_size=4 [16:11:05]MH_SAM_APDU [16:11:05]CAPDU: 80 0D 01 02 [16:11:05]Write to MH i2c: E2 08 00 47 02 80 0D 01 02 00 00 00 00 C2 [16:11:05]Write i2c OK [16:11:05]MH_I2C_Read... [16:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:05]Read from MH i2c: E2 [16:11:05]MH_I2C_Read... [16:11:05]Read from MH i2c: E2 03 00 [16:11:05]MH_I2C_Read... [16:11:05]Read from MH i2c: E2 03 00 47 02 00 90 00 BD [16:11:05]RAPDU: 90 00 [16:11:05]wFMCommunicate OK [16:11:05]wFMCommunicate request_size=255 [16:11:05]MH_SAM_APDU [16:11:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 01 00 00 F4 03 04 00 19 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 15 03 00 35 04 06 00 [16:11:05]Write to MH i2c: E2 02 01 48 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 01 00 00 F4 03 04 00 19 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 15 03 00 35 04 06 00 00 00 9C [16:11:05]Write i2c OK [16:11:05]MH_I2C_Read... [16:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:06]Read from MH i2c: E2 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 03 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 03 00 48 02 00 90 00 BE [16:11:06]RAPDU: 90 00 [16:11:06]wFMCommunicate OK [16:11:06]wFMCommunicate request_size=11 [16:11:06]MH_SAM_APDU [16:11:06]CAPDU: 80 0D 02 02 06 6E F1 25 5F E1 B8 [16:11:06]Write to MH i2c: E2 0E 00 49 02 80 0D 02 02 06 00 6E F1 25 5F E1 B8 00 00 4D [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:06]Read from MH i2c: E2 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 03 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 03 00 49 02 00 90 00 BF [16:11:06]RAPDU: 90 00 [16:11:06]wFMCommunicate OK [16:11:06]wFMCommunicate request_size=4 [16:11:06]MH_SAM_APDU [16:11:06]CAPDU: 80 0D 03 02 [16:11:06]Write to MH i2c: E2 08 00 4A 02 80 0D 03 02 00 00 00 00 C7 [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:06]Read from MH i2c: E2 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 0B 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 0B 00 4A 02 00 EC BF E2 08 0B BE 72 92 90 00 2A [16:11:06]RAPDU: EC BF E2 08 0B BE 72 92 90 00 [16:11:06]wFMCommunicate OK [16:11:06]SAM_PROTO_SignData done [16:11:06]FM_MakeSignedData done [16:11:06]CreateOFDProtocolMessage [16:11:06]wFMCommunicate request_size=4 [16:11:06]MH_SAM_APDU [16:11:06]CAPDU: 80 11 00 00 [16:11:06]Write to MH i2c: E2 08 00 4B 02 80 11 00 00 00 00 00 00 C7 [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:06]Read from MH i2c: E2 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 17 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: E2 17 00 4B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1C [16:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:11:06]wFMCommunicate OK [16:11:06]CreateOFDProtocolMessage done [16:11:06]OFDSenderStorePacket 202059 [16:11:06]StoreOFDPacket docnum=202059 [16:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 40 B8 08 01 9C BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 01 00 00 F4 03 04 00 19 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 15 03 00 35 04 06 00 6E F1 25 5F E1 B8 EC BF E2 08 0B BE 72 92 [16:11:06]CheckFolder [16:11:06]dirname=/storage/ofd_packets [16:11:06]CheckFolder done [16:11:06]ProducePacketName [16:11:06]name=ofd_packets/00202059 [16:11:06]NVStorageSaveData ofd_packets/00202059 [16:11:06]File name is /storage/ofd_packets/00202059 [16:11:06]Write 302 bytes [16:11:06]NVStorageSaveData done [16:11:06]OFDSenderStorePacket done [16:11:06]KKMCreateOFDPacket done [16:11:06]NVStorageSaveData kkm_last_timestamp [16:11:06]File name is /storage/kkm_last_timestamp [16:11:06]Write 4 bytes [16:11:06]NVStorageSaveData done [16:11:06]ExternCall_PrintAddStr [16:11:06]wPrintStart [16:11:06]Write to MH i2c: 01 00 00 4C 02 4E [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 07 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 07 00 4C 02 00 00 00 00 00 FF 0F 63 [16:11:06]RasterBufferAndPrint [16:11:06]line Счет N : (1)449825 [16:11:06]line ИНН: 02508201610067 [16:11:06]line Контрольно-Кассовый Чек [16:11:06]line ПРОДАЖА [16:11:06]line ТРК (МРК, ГНК) : 32 [16:11:06]line Товар: 2710124130 [16:11:06]line SUPER 92-К-5 [16:11:06]line 7.310 * 68.40 [16:11:06]line = 500.00 [16:11:06]line НДС 12% НСП 1% [16:11:06]line > о реализуемом товаре [16:11:06]line ИТОГО: 500.00 [16:11:06]line НСП 1% : 4.42 [16:11:06]line НДС 12% : 53.10 [16:11:06]line Наличными: 500.00 [16:11:06]line Безнал.: 0.00 [16:11:06]line Место: АЗС № 171 "Партнер Нефть" [16:11:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:11:06]line СНО: Общий режим [16:11:06]line Чек 351 27.10.2024 16:11 [16:11:06]line Смена: 544 ФФД: 1.0 [16:11:06]line ЗНМ: 0300000109 [16:11:06]line РНМ: 0000000000091777 [16:11:06]line Версия ККМ: 001 [16:11:06]line ФМ: 0000000000871756 [16:11:06]line ФД: 202059 [16:11:06]line ФПД: 121981993214392 [16:11:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161105&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202059&fm=121981993214392&tin=02508201610067®Number=0000000000091777&sum=50000 [16:11:06]written 0, free lines is 4095 [16:11:06]OFD Sender: Processing packet 202059 [packets to send 112, broken 111] [16:11:06]ProducePacketName [16:11:06]name=ofd_packets/00202059 [16:11:06]OFD Sender: To server: pG, [16:11:06]CommunicateWithHost lk.salyk.kg:30040 [16:11:06]ConnectInit lk.salyk.kg [16:11:06]Connected sock=10 [16:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 40 B8 08 01 9C BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 01 00 00 F4 03 04 00 19 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 15 03 00 35 04 06 00 6E F1 25 5F E1 B8 EC BF E2 08 0B BE 72 92 [16:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2B FF 47 00 D1 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 15 03 00 F4 03 04 00 D2 11 1E 67 B6 04 01 00 00 DF 6B F2 29 B0 5C A9 17 [16:11:06]CommunicateWithHost err = 0 [16:11:06]CheckOFDResponse [16:11:06]1017 (14) - 77093643461234 [16:11:06]1041 (16) - 0000000000871756 [16:11:06]1040 (4) - 202059 [16:11:06]1012 (4) - 27.10.2024 10:11 [16:11:06]1206 (1) - 0 [16:11:06]OFD Sender: Remove packet 202059 [16:11:06]ProducePacketName [16:11:06]name=ofd_packets/00202059 [16:11:06]NVStorageDeleteData [16:11:06]Write to MH i2c: 01 00 00 74 02 76 [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 07 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 CD 0C 56 [16:11:06]RasterBufferAndPrint [16:11:06]line [16:11:06]line [16:11:06]line [16:11:06]line [16:11:06]line [16:11:06]written 0, free lines is 3280 [16:11:06]MH_Cut [16:11:06]Write to MH i2c: D1 01 00 7B 02 01 4F [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: D1 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: D1 01 00 [16:11:06]MH_I2C_Read... [16:11:06]Read from MH i2c: D1 01 00 7B 02 00 4E [16:11:06]Write to MH i2c: 01 00 00 7C 02 7E [16:11:06]Write i2c OK [16:11:06]MH_I2C_Read... [16:11:07]OFD Sender: No OFD packet to send [16:11:07]*** Cut start [16:11:07]*** Purtial cut [16:11:07]*** CUTSNS_PIN = 0 [16:11:07]*** Stage 1: CUTSNS_PIN = 1 [16:11:09]Read from MH i2c: 01 [16:11:09]MH_I2C_Read... [16:11:09]*** Stop cut motor [16:11:09]*** Cut end [16:11:09]Read from MH i2c: 01 07 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [16:11:09]process_action close_receipt done [16:11:09]requested_data is exist [16:11:09]produce_requested_data [16:11:09]requested_item fm.sn is exist - process it [16:11:09]wFMCommunicate request_size=4 [16:11:09]MH_SAM_APDU [16:11:09]CAPDU: 80 11 00 00 [16:11:09]Write to MH i2c: E2 08 00 7D 02 80 11 00 00 00 00 00 00 F9 [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 17 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 17 00 7D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4E [16:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:11:09]wFMCommunicate OK [16:11:09]requested_item fd.num is exist - process it [16:11:09]SAM_PROTO_GetFieldsCounters [16:11:09]wFMCommunicate request_size=4 [16:11:09]MH_SAM_APDU [16:11:09]CAPDU: 80 13 00 00 [16:11:09]Write to MH i2c: E2 08 00 7E 02 80 13 00 00 00 00 00 00 FC [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 62 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 62 00 7E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [16:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:09]wFMCommunicate OK [16:11:09]SAM_PROTO_GetFieldsCounters done [16:11:09]requested_item shift.num is exist - process it [16:11:09]requested_item shift.opened is exist - process it [16:11:09]req_shift_opened [16:11:09]FM_GetShiftState [16:11:09]SAM_PROTO_GetShiftState [16:11:09]wFMCommunicate request_size=4 [16:11:09]MH_SAM_APDU [16:11:09]CAPDU: 80 13 01 00 [16:11:09]Write to MH i2c: E2 08 00 7F 02 80 13 01 00 00 00 00 00 FE [16:11:09]Write i2c OK [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 [16:11:09]MH_I2C_Read... [16:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:09]Read from MH i2c: E2 0E 00 [16:11:09]MH_I2C_Read... [16:11:09]Read from MH i2c: E2 0E 00 7F 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 00 [16:11:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:11:09]wFMCommunicate OK [16:11:09]SAM_PROTO_GetShiftState done [16:11:09]FM_GetShiftState done [16:11:09]req_shift_opened done [16:11:09]requested_item shift.open_date is exist - process it [16:11:09]req_shift_open_date [16:11:09]req_shift_open_date done [16:11:09]produce_requested_data done [16:11:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202059,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:11:09]process_action_free close_receipt [16:11:09]json_value_free [16:11:09]json_value_free done [16:11:09]process_json_proto returns [16:11:09]Send response to host [16:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202059,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:11:09]free response buf [16:11:09]execute_script done [16:11:09]execute_script returns [16:11:09]free content buf [16:11:09]Sock 8.Close socket [16:11:09]Sock 8.Thread stoped [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:19]int [16:11:19]Write to MH i2c: 01 00 00 80 02 82 [16:11:19]*** FLAG_PRN_KEY set [16:11:19]Write i2c OK [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: 01 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: 01 07 00 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: 01 07 00 80 02 00 08 00 00 00 FF 0F 9F [16:11:19]state=0 [16:11:19]Key pressed [16:11:19]Feed [16:11:19]Write to MH i2c: D8 00 00 81 02 5A [16:11:19]Write i2c OK [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: D8 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: D8 01 00 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: D8 01 00 81 02 00 5B [16:11:19]int [16:11:19]Write to MH i2c: 01 00 00 82 02 84 [16:11:19]Write i2c OK [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: 01 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: 01 07 00 [16:11:19]MH_I2C_Read... [16:11:19]Read from MH i2c: 01 07 00 82 02 00 48 00 00 00 3C 00 0F [16:11:19]state=2 [16:11:19]Key pressed [16:11:20]int [16:11:20]Write to MH i2c: 01 00 00 83 02 85 [16:11:20]*** FLAG_PRN_KEY reset [16:11:20]Write i2c OK [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: 01 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: 01 07 00 [16:11:20]MH_I2C_Read... [16:11:20]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 F8 0F 93 [16:11:20]state=2 [16:11:20]Stop feed [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:55]accept exits with 9 [16:13:55]New connection [16:13:55]New thread 3067432292 created [16:13:55]Thread 3067288932 joined [16:13:55]Waiting for new connection... [16:13:55] Sock 9.Parse request [16:13:55]Sock 9.Check first char [16:13:55]Sock 9.First char is OK [16:13:55]request: POST /json_proto HTTP/1.0 [16:13:55]Method: POST [16:13:55]URL: /json_proto [16:13:55]Method is POST - this is cgi request [16:13:55]url: /json_proto [16:13:55]query_string will be loaded in cgi processing [16:13:55]execute_cgi json_proto POST (null) [16:13:55]execute_cgi path=json_proto method=POST [16:13:55]POST find Content-Length [16:13:55]Host: 172.17.63.195:8080 [16:13:55]Content-Length: 766 [16:13:55]Content-Type: application/json [16:13:55] [16:13:55]POST finish read [16:13:55]Found Content-Length = 766 [16:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:55]execute_script... [16:13:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:55]POST & json_proto [16:13:55]process_json_proto [16:13:55]json parsed OK: [16:13:55]protocol is kg_v1.0 [16:13:55]action value=close_receipt [16:13:55]process_action close_receipt [16:13:55]cmd_close_receipt [16:13:55]MH_GetDate [16:13:55]Write to MH i2c: F0 00 00 84 02 75 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: F0 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: F0 09 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: F0 09 00 84 02 00 C4 66 1E 67 47 1B 1E 67 14 [16:13:55]GetLastDocTimeStamp 1730045465 [16:13:55]current date 1730045636 [16:13:55]FM_GetShiftState [16:13:55]SAM_PROTO_GetShiftState [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 13 01 00 [16:13:55]Write to MH i2c: E2 08 00 85 02 80 13 01 00 00 00 00 00 04 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 0E 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 0E 00 85 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 06 [16:13:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:13:55]wFMCommunicate OK [16:13:55]SAM_PROTO_GetShiftState done [16:13:55]FM_GetShiftState done [16:13:55]opened in 1729987312 [16:13:55]opened+sec_in_day 1730073712 [16:13:55]quantity*price = 250012 [16:13:55]sum+1 = 250013 [16:13:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.12 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.12 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 352 27.10.2024 16:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202060 ФПД: 200418517842192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161356&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202060&fm=200418517842192&tin=02508201610067®Number=0000000000091777&sum=250012 [16:13:56]StoreToDocumentArchive [16:13:56]shift 544 fd 202060 [16:13:56]save to /storage/0544/doc_00202060 [16:13:56]save last doc name /storage/0544/doc_00202060 to /storage/kkm_last_doc_name [16:13:56]save OK [16:13:56]Clear old archive folders... [16:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:56]tlvbuf is 01C55BF0 [16:13:56]SAM_PROTO_ClearQueue [16:13:56]wFMCommunicate request_size=4 [16:13:56]MH_SAM_APDU [16:13:56]CAPDU: 80 09 00 00 [16:13:56]Write to MH i2c: E2 08 00 92 02 80 09 00 00 00 00 00 00 06 [16:13:56]Write i2c OK [16:13:56]MH_I2C_Read... [16:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:56]Read from MH i2c: E2 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: E2 03 00 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: E2 03 00 92 02 00 90 00 08 [16:13:56]RAPDU: 90 00 [16:13:56]wFMCommunicate OK [16:13:56]SAM_PROTO_ClearQueue done [16:13:56]KKMCreateOFDPacket [16:13:56]OFDProtocolAddRootSTLVToBuf [16:13:56]FM_MakeSignedData [16:13:56]FM_MakeSignedData [16:13:56]SAM_PROTO_SignData [16:13:56]wFMCommunicate request_size=4 [16:13:56]MH_SAM_APDU [16:13:56]CAPDU: 80 0D 01 02 [16:13:56]Write to MH i2c: E2 08 00 93 02 80 0D 01 02 00 00 00 00 0E [16:13:56]Write i2c OK [16:13:56]MH_I2C_Read... [16:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [16:13:57]RAPDU: 90 00 [16:13:57]wFMCommunicate OK [16:13:57]wFMCommunicate request_size=255 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 C4 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 15 03 00 35 04 06 00 B6 47 92 8F [16:13:57]Write to MH i2c: E2 02 01 94 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 C4 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 15 03 00 35 04 06 00 B6 47 92 8F 00 00 C5 [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [16:13:57]RAPDU: 90 00 [16:13:57]wFMCommunicate OK [16:13:57]wFMCommunicate request_size=7 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 0D 02 02 02 F9 10 [16:13:57]Write to MH i2c: E2 0A 00 95 02 80 0D 02 02 02 00 F9 10 00 00 1E [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [16:13:57]RAPDU: 90 00 [16:13:57]wFMCommunicate OK [16:13:57]wFMCommunicate request_size=4 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 0D 03 02 [16:13:57]Write to MH i2c: E2 08 00 96 02 80 0D 03 02 00 00 00 00 13 [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 0B 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 0B 00 96 02 00 C8 0D 00 A4 CA 7D 77 26 90 00 71 [16:13:57]RAPDU: C8 0D 00 A4 CA 7D 77 26 90 00 [16:13:57]wFMCommunicate OK [16:13:57]SAM_PROTO_SignData done [16:13:57]FM_MakeSignedData done [16:13:57]CreateOFDProtocolMessage [16:13:57]wFMCommunicate request_size=4 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 11 00 00 [16:13:57]Write to MH i2c: E2 08 00 97 02 80 11 00 00 00 00 00 00 13 [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 17 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 17 00 97 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [16:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:13:57]wFMCommunicate OK [16:13:57]CreateOFDProtocolMessage done [16:13:57]OFDSenderStorePacket 202060 [16:13:57]StoreOFDPacket docnum=202060 [16:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3A BB 04 01 7A A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 C4 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 15 03 00 35 04 06 00 B6 47 92 8F F9 10 C8 0D 00 A4 CA 7D 77 26 [16:13:57]CheckFolder [16:13:57]dirname=/storage/ofd_packets [16:13:57]CheckFolder done [16:13:57]ProducePacketName [16:13:57]name=ofd_packets/00202060 [16:13:57]NVStorageSaveData ofd_packets/00202060 [16:13:57]File name is /storage/ofd_packets/00202060 [16:13:57]Write 298 bytes [16:13:57]NVStorageSaveData done [16:13:57]OFDSenderStorePacket done [16:13:57]KKMCreateOFDPacket done [16:13:57]NVStorageSaveData kkm_last_timestamp [16:13:57]File name is /storage/kkm_last_timestamp [16:13:57]Write 4 bytes [16:13:57]NVStorageSaveData done [16:13:57]OFD Sender: Processing packet 202060 [packets to send 112, broken 111] [16:13:57]ProducePacketName [16:13:57]name=ofd_packets/00202060 [16:13:57]OFD Sender: To server: pG, [16:13:57]CommunicateWithHost lk.salyk.kg:30040 [16:13:57]ConnectInit lk.salyk.kg [16:13:57]ExternCall_PrintAddStr [16:13:57]wPrintStart [16:13:57]Write to MH i2c: 01 00 00 98 02 9A [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: 01 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: 01 07 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: 01 07 00 98 02 00 00 00 00 00 FF 0F AF [16:13:57]RasterBufferAndPrint [16:13:57]line Счет N : (1)449828 [16:13:57]line ИНН: 02508201610067 [16:13:57]line Контрольно-Кассовый Чек [16:13:57]line ПРОДАЖА [16:13:57]line ТРК (МРК, ГНК) : 21 [16:13:57]line Товар: 2710194210 [16:13:57]line ДТ-К-2 [16:13:57]line 32.810 * 76.20 [16:13:57]line = 2500.12 [16:13:57]line НДС 12% НСП 1% [16:13:57]line > о реализуемом товаре [16:13:57]line ИТОГО: 2500.12 [16:13:57]line НСП 1% : 22.12 [16:13:57]line НДС 12% : 265.50 [16:13:57]line Наличными: 0.00 [16:13:57]line Безнал.: 2500.12 [16:13:57]line Место: АЗС № 171 "Партнер Нефть" [16:13:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:13:57]line СНО: Общий режим [16:13:57]line Чек 352 27.10.2024 16:13 [16:13:57]line Смена: 544 ФФД: 1.0 [16:13:57]line ЗНМ: 0300000109 [16:13:57]line РНМ: 0000000000091777 [16:13:57]line Версия ККМ: 001 [16:13:57]line Платежная система: Mbank [16:13:57]line ФМ: 0000000000871756 [16:13:57]line ФД: 202060 [16:13:57]line ФПД: 200418517842192 [16:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161356&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202060&fm=200418517842192&tin=02508201610067®Number=0000000000091777&sum=250012 [16:13:57]Connected sock=11 [16:13:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3A BB 04 01 7A A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 C4 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 15 03 00 35 04 06 00 B6 47 92 8F F9 10 C8 0D 00 A4 CA 7D 77 26 [16:13:57]written 0, free lines is 4095 [16:13:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 51 1A 47 00 85 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 15 03 00 F4 03 04 00 7D 12 1E 67 B6 04 01 00 00 FD 7E DE BC 7E DA 44 91 [16:13:57]CommunicateWithHost err = 0 [16:13:57]CheckOFDResponse [16:13:57]1017 (14) - 77093643461234 [16:13:57]1041 (16) - 0000000000871756 [16:13:57]1040 (4) - 202060 [16:13:57]1012 (4) - 27.10.2024 10:14 [16:13:57]1206 (1) - 0 [16:13:57]OFD Sender: Remove packet 202060 [16:13:57]ProducePacketName [16:13:57]name=ofd_packets/00202060 [16:13:57]NVStorageDeleteData [16:13:58]Write to MH i2c: 01 00 00 C1 02 C3 [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: 01 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: 01 07 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: 01 07 00 C1 02 00 00 00 00 00 BE 0C 94 [16:13:58]RasterBufferAndPrint [16:13:58]line [16:13:58]line [16:13:58]line [16:13:58]line [16:13:58]line [16:13:58]written 0, free lines is 3265 [16:13:58]MH_Cut [16:13:58]Write to MH i2c: D1 01 00 C8 02 01 9C [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: D1 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: D1 01 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: D1 01 00 C8 02 00 9B [16:13:58]Write to MH i2c: 01 00 00 C9 02 CB [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]OFD Sender: No OFD packet to send [16:13:59]*** Cut start [16:13:59]*** Purtial cut [16:13:59]*** Stage 1: CUTSNS_PIN = 1 [16:13:59]Read from MH i2c: 01 [16:13:59]MH_I2C_Read... [16:13:59]*** Stop cut motor [16:13:59]*** Cut end [16:13:59]Read from MH i2c: 01 07 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [16:13:59]process_action close_receipt done [16:13:59]requested_data is exist [16:13:59]produce_requested_data [16:13:59]requested_item fm.sn is exist - process it [16:13:59]wFMCommunicate request_size=4 [16:13:59]MH_SAM_APDU [16:13:59]CAPDU: 80 11 00 00 [16:13:59]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [16:13:59]Write i2c OK [16:13:59]MH_I2C_Read... [16:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:59]Read from MH i2c: E2 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 17 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9B [16:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:13:59]wFMCommunicate OK [16:13:59]requested_item fd.num is exist - process it [16:13:59]SAM_PROTO_GetFieldsCounters [16:13:59]wFMCommunicate request_size=4 [16:13:59]MH_SAM_APDU [16:13:59]CAPDU: 80 13 00 00 [16:13:59]Write to MH i2c: E2 08 00 CB 02 80 13 00 00 00 00 00 00 49 [16:13:59]Write i2c OK [16:13:59]MH_I2C_Read... [16:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:59]Read from MH i2c: E2 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 62 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 62 00 CB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:13:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:59]wFMCommunicate OK [16:13:59]SAM_PROTO_GetFieldsCounters done [16:13:59]requested_item shift.num is exist - process it [16:13:59]requested_item shift.opened is exist - process it [16:13:59]req_shift_opened [16:13:59]FM_GetShiftState [16:13:59]SAM_PROTO_GetShiftState [16:13:59]wFMCommunicate request_size=4 [16:13:59]MH_SAM_APDU [16:13:59]CAPDU: 80 13 01 00 [16:13:59]Write to MH i2c: E2 08 00 CC 02 80 13 01 00 00 00 00 00 4B [16:13:59]Write i2c OK [16:13:59]MH_I2C_Read... [16:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:59]Read from MH i2c: E2 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 0E 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 0E 00 CC 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4D [16:13:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:13:59]wFMCommunicate OK [16:13:59]SAM_PROTO_GetShiftState done [16:13:59]FM_GetShiftState done [16:13:59]req_shift_opened done [16:13:59]requested_item shift.open_date is exist - process it [16:13:59]req_shift_open_date [16:13:59]req_shift_open_date done [16:13:59]produce_requested_data done [16:13:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202060,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:13:59]process_action_free close_receipt [16:13:59]json_value_free [16:13:59]json_value_free done [16:13:59]process_json_proto returns [16:13:59]Send response to host [16:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202060,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:13:59]free response buf [16:13:59]execute_script done [16:13:59]execute_script returns [16:13:59]free content buf [16:13:59]Sock 9.Close socket [16:13:59]Sock 9.Thread stoped [16:14:03]OFD Sender: No OFD packet to send [16:14:07]accept exits with 8 [16:14:07]New connection [16:14:07]New thread 3067288932 created [16:14:07]Thread 3067432292 joined [16:14:07]Waiting for new connection... [16:14:07] Sock 8.Parse request [16:14:07]Sock 8.Check first char [16:14:07]Sock 8.First char is OK [16:14:07]request: POST /json_proto HTTP/1.0 [16:14:07]Method: POST [16:14:07]URL: /json_proto [16:14:07]Method is POST - this is cgi request [16:14:07]url: /json_proto [16:14:07]query_string will be loaded in cgi processing [16:14:07]execute_cgi json_proto POST (null) [16:14:07]execute_cgi path=json_proto method=POST [16:14:07]POST find Content-Length [16:14:07]Host: 172.17.63.195:8080 [16:14:07]Content-Length: 766 [16:14:07]Content-Type: application/json [16:14:07] [16:14:07]POST finish read [16:14:07]Found Content-Length = 766 [16:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:14:07]execute_script... [16:14: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)449827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:14:07]POST & json_proto [16:14:07]process_json_proto [16:14:07]json parsed OK: [16:14:07]protocol is kg_v1.0 [16:14:07]action value=close_receipt [16:14:07]process_action close_receipt [16:14:07]cmd_close_receipt [16:14:07]MH_GetDate [16:14:07]Write to MH i2c: F0 00 00 CD 02 BE [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: F0 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: F0 09 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: F0 09 00 CD 02 00 CF 66 1E 67 47 1B 1E 67 68 [16:14:07]GetLastDocTimeStamp 1730045636 [16:14:07]current date 1730045647 [16:14:07]FM_GetShiftState [16:14:07]SAM_PROTO_GetShiftState [16:14:07]wFMCommunicate request_size=4 [16:14:07]MH_SAM_APDU [16:14:07]CAPDU: 80 13 01 00 [16:14:07]Write to MH i2c: E2 08 00 CE 02 80 13 01 00 00 00 00 00 4D [16:14:07]Write i2c OK [16:14:07]MH_I2C_Read... [16:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:07]Read from MH i2c: E2 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 0E 00 [16:14:07]MH_I2C_Read... [16:14:07]Read from MH i2c: E2 0E 00 CE 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4F [16:14:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:14:07]wFMCommunicate OK [16:14:07]SAM_PROTO_GetShiftState done [16:14:07]FM_GetShiftState done [16:14:07]opened in 1729987312 [16:14:07]opened+sec_in_day 1730073712 [16:14:07]quantity*price = 100050 [16:14:07]sum+1 = 100052 [16:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 353 27.10.2024 16:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202061 ФПД: 121405612332923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161407&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202061&fm=121405612332923&tin=02508201610067®Number=0000000000091777&sum=100051 [16:14:08]StoreToDocumentArchive [16:14:08]shift 544 fd 202061 [16:14:08]save to /storage/0544/doc_00202061 [16:14:08]save last doc name /storage/0544/doc_00202061 to /storage/kkm_last_doc_name [16:14:08]save OK [16:14:08]Clear old archive folders... [16:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:14:08]tlvbuf is 01C7AE60 [16:14:08]SAM_PROTO_ClearQueue [16:14:08]wFMCommunicate request_size=4 [16:14:08]MH_SAM_APDU [16:14:08]CAPDU: 80 09 00 00 [16:14:08]Write to MH i2c: E2 08 00 DB 02 80 09 00 00 00 00 00 00 4F [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]OFD Sender: No OFD packet to send [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:08]Read from MH i2c: E2 03 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [16:14:08]RAPDU: 90 00 [16:14:08]wFMCommunicate OK [16:14:08]SAM_PROTO_ClearQueue done [16:14:08]KKMCreateOFDPacket [16:14:08]OFDProtocolAddRootSTLVToBuf [16:14:08]FM_MakeSignedData [16:14:08]FM_MakeSignedData [16:14:08]SAM_PROTO_SignData [16:14:08]wFMCommunicate request_size=4 [16:14:08]MH_SAM_APDU [16:14:08]CAPDU: 80 0D 01 02 [16:14:08]Write to MH i2c: E2 08 00 DC 02 80 0D 01 02 00 00 00 00 57 [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 03 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 03 00 DC 02 00 90 00 52 [16:14:08]RAPDU: 90 00 [16:14:08]wFMCommunicate OK [16:14:08]wFMCommunicate request_size=255 [16:14:08]MH_SAM_APDU [16:14:08]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 32 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 61 01 00 00 F4 03 04 00 CF 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 15 03 00 35 04 06 00 6E 6A F2 65 [16:14:08]Write to MH i2c: E2 02 01 DD 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 61 01 00 00 F4 03 04 00 CF 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 15 03 00 35 04 06 00 6E 6A F2 65 00 00 19 [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 03 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [16:14:08]RAPDU: 90 00 [16:14:08]wFMCommunicate OK [16:14:08]wFMCommunicate request_size=7 [16:14:08]MH_SAM_APDU [16:14:08]CAPDU: 80 0D 02 02 02 97 7B [16:14:08]Write to MH i2c: E2 0A 00 DE 02 80 0D 02 02 02 00 97 7B 00 00 70 [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 03 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [16:14:08]RAPDU: 90 00 [16:14:08]wFMCommunicate OK [16:14:08]wFMCommunicate request_size=4 [16:14:08]MH_SAM_APDU [16:14:08]CAPDU: 80 0D 03 02 [16:14:08]Write to MH i2c: E2 08 00 DF 02 80 0D 03 02 00 00 00 00 5C [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 0B 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 0B 00 DF 02 00 97 1C 89 A9 48 94 86 CF 90 00 73 [16:14:08]RAPDU: 97 1C 89 A9 48 94 86 CF 90 00 [16:14:08]wFMCommunicate OK [16:14:08]SAM_PROTO_SignData done [16:14:08]FM_MakeSignedData done [16:14:08]CreateOFDProtocolMessage [16:14:08]wFMCommunicate request_size=4 [16:14:08]MH_SAM_APDU [16:14:08]CAPDU: 80 11 00 00 [16:14:08]Write to MH i2c: E2 08 00 E0 02 80 11 00 00 00 00 00 00 5C [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:08]Read from MH i2c: E2 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 17 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: E2 17 00 E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [16:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:14:08]wFMCommunicate OK [16:14:08]CreateOFDProtocolMessage done [16:14:08]OFDSenderStorePacket 202061 [16:14:08]StoreOFDPacket docnum=202061 [16:14:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F8 8F 04 01 C1 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 61 01 00 00 F4 03 04 00 CF 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 15 03 00 35 04 06 00 6E 6A F2 65 97 7B 97 1C 89 A9 48 94 86 CF [16:14:08]CheckFolder [16:14:08]dirname=/storage/ofd_packets [16:14:08]CheckFolder done [16:14:08]ProducePacketName [16:14:08]name=ofd_packets/00202061 [16:14:08]NVStorageSaveData ofd_packets/00202061 [16:14:08]File name is /storage/ofd_packets/00202061 [16:14:08]Write 298 bytes [16:14:08]NVStorageSaveData done [16:14:08]OFDSenderStorePacket done [16:14:08]KKMCreateOFDPacket done [16:14:08]NVStorageSaveData kkm_last_timestamp [16:14:08]File name is /storage/kkm_last_timestamp [16:14:08]Write 4 bytes [16:14:08]NVStorageSaveData done [16:14:08]ExternCall_PrintAddStr [16:14:08]wPrintStart [16:14:08]Write to MH i2c: 01 00 00 E1 02 E3 [16:14:08]Write i2c OK [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: 01 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: 01 07 00 [16:14:08]MH_I2C_Read... [16:14:08]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 FF 0F F8 [16:14:08]RasterBufferAndPrint [16:14:08]line Счет N : (1)449827 [16:14:08]line ИНН: 02508201610067 [16:14:08]line Контрольно-Кассовый Чек [16:14:08]line ПРОДАЖА [16:14:08]line ТРК (МРК, ГНК) : 33 [16:14:08]line Товар: 2710194210 [16:14:08]line ДТ-К-2 [16:14:08]line 13.130 * 76.20 [16:14:08]line = 1000.51 [16:14:08]line НДС 12% НСП 1% [16:14:08]line > о реализуемом товаре [16:14:08]line ИТОГО: 1000.51 [16:14:08]line НСП 1% : 8.85 [16:14:08]line НДС 12% : 106.25 [16:14:08]line Наличными: 0.00 [16:14:08]line Безнал.: 1000.51 [16:14:08]line Место: АЗС № 171 "Партнер Нефть" [16:14:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:14:08]line СНО: Общий режим [16:14:08]line Чек 353 27.10.2024 16:14 [16:14:08]line Смена: 544 ФФД: 1.0 [16:14:08]line ЗНМ: 0300000109 [16:14:08]line РНМ: 0000000000091777 [16:14:08]line Версия ККМ: 001 [16:14:08]line Платежная система: Mbank [16:14:08]line ФМ: 0000000000871756 [16:14:08]line ФД: 202061 [16:14:08]line ФПД: 121405612332923 [16:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161407&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202061&fm=121405612332923&tin=02508201610067®Number=0000000000091777&sum=100051 [16:14:09]OFD Sender: Processing packet 202061 [packets to send 112, broken 111] [16:14:09]ProducePacketName [16:14:09]name=ofd_packets/00202061 [16:14:09]OFD Sender: To server: pG, [16:14:09]CommunicateWithHost lk.salyk.kg:30040 [16:14:09]ConnectInit lk.salyk.kg [16:14:09]written 0, free lines is 4095 [16:14:09]Connected sock=10 [16:14:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F8 8F 04 01 C1 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 61 01 00 00 F4 03 04 00 CF 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 15 03 00 35 04 06 00 6E 6A F2 65 97 7B 97 1C 89 A9 48 94 86 CF [16:14:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A7 7A 47 00 13 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 15 03 00 F4 03 04 00 89 12 1E 67 B6 04 01 00 00 6E E1 7A 69 C7 93 44 BB [16:14:09]CommunicateWithHost err = 0 [16:14:09]CheckOFDResponse [16:14:09]1017 (14) - 77093643461234 [16:14:09]1041 (16) - 0000000000871756 [16:14:09]1040 (4) - 202061 [16:14:09]1012 (4) - 27.10.2024 10:14 [16:14:09]1206 (1) - 0 [16:14:09]OFD Sender: Remove packet 202061 [16:14:09]ProducePacketName [16:14:09]name=ofd_packets/00202061 [16:14:09]NVStorageDeleteData [16:14:09]Write to MH i2c: 01 00 00 0A 03 0D [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: 01 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: 01 07 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 C0 0C E0 [16:14:09]RasterBufferAndPrint [16:14:09]line [16:14:09]line [16:14:09]line [16:14:09]line [16:14:09]line [16:14:09]written 0, free lines is 3271 [16:14:09]MH_Cut [16:14:09]Write to MH i2c: D1 01 00 11 03 01 E6 [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: D1 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: D1 01 00 [16:14:09]MH_I2C_Read... [16:14:09]Read from MH i2c: D1 01 00 11 03 00 E5 [16:14:09]Write to MH i2c: 01 00 00 12 03 15 [16:14:09]Write i2c OK [16:14:09]MH_I2C_Read... [16:14:10]OFD Sender: No OFD packet to send [16:14:10]*** Cut start [16:14:10]*** Purtial cut [16:14:10]*** CUTSNS_PIN = 0 [16:14:10]*** Stage 1: CUTSNS_PIN = 1 [16:14:12]Read from MH i2c: 01 [16:14:12]MH_I2C_Read... [16:14:12]*** Stop cut motor [16:14:12]*** Cut end [16:14:12]Read from MH i2c: 01 07 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 FF 0F 2A [16:14:12]process_action close_receipt done [16:14:12]requested_data is exist [16:14:12]produce_requested_data [16:14:12]requested_item fm.sn is exist - process it [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 11 00 00 [16:14:12]Write to MH i2c: E2 08 00 13 03 80 11 00 00 00 00 00 00 90 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 17 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 17 00 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E5 [16:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:14:12]wFMCommunicate OK [16:14:12]requested_item fd.num is exist - process it [16:14:12]SAM_PROTO_GetFieldsCounters [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 13 00 00 [16:14:12]Write to MH i2c: E2 08 00 14 03 80 13 00 00 00 00 00 00 93 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 62 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 62 00 14 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [16:14:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:12]wFMCommunicate OK [16:14:12]SAM_PROTO_GetFieldsCounters done [16:14:12]requested_item shift.num is exist - process it [16:14:12]requested_item shift.opened is exist - process it [16:14:12]req_shift_opened [16:14:12]FM_GetShiftState [16:14:12]SAM_PROTO_GetShiftState [16:14:12]wFMCommunicate request_size=4 [16:14:12]MH_SAM_APDU [16:14:12]CAPDU: 80 13 01 00 [16:14:12]Write to MH i2c: E2 08 00 15 03 80 13 01 00 00 00 00 00 95 [16:14:12]Write i2c OK [16:14:12]MH_I2C_Read... [16:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:12]Read from MH i2c: E2 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 0E 00 [16:14:12]MH_I2C_Read... [16:14:12]Read from MH i2c: E2 0E 00 15 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 97 [16:14:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:14:12]wFMCommunicate OK [16:14:12]SAM_PROTO_GetShiftState done [16:14:12]FM_GetShiftState done [16:14:12]req_shift_opened done [16:14:12]requested_item shift.open_date is exist - process it [16:14:12]req_shift_open_date [16:14:12]req_shift_open_date done [16:14:12]produce_requested_data done [16:14:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202061,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:14:12]process_action_free close_receipt [16:14:12]json_value_free [16:14:12]json_value_free done [16:14:12]process_json_proto returns [16:14:12]Send response to host [16:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202061,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:14:12]free response buf [16:14:12]execute_script done [16:14:12]execute_script returns [16:14:12]free content buf [16:14:12]Sock 8.Close socket [16:14:12]Sock 8.Thread stoped [16:14:13]accept exits with 9 [16:14:13]New connection [16:14:13]New thread 3067432292 created [16:14:13]Thread 3067288932 joined [16:14:13]Waiting for new connection... [16:14:13] Sock 9.Parse request [16:14:13]Sock 9.Check first char [16:14:13]Sock 9.First char is OK [16:14:13]request: POST /json_proto HTTP/1.0 [16:14:13]Method: POST [16:14:13]URL: /json_proto [16:14:13]Method is POST - this is cgi request [16:14:13]url: /json_proto [16:14:13]query_string will be loaded in cgi processing [16:14:13]execute_cgi json_proto POST (null) [16:14:13]execute_cgi path=json_proto method=POST [16:14:13]POST find Content-Length [16:14:13]Host: 172.17.63.195:8080 [16:14:13]Content-Length: 677 [16:14:13]Content-Type: application/json [16:14:13] [16:14:13]POST finish read [16:14:13]Found Content-Length = 677 [16:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:13]execute_script... [16:14:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:13]POST & json_proto [16:14:13]process_json_proto [16:14:13]json parsed OK: [16:14:13]protocol is kg_v1.0 [16:14:13]action value=close_receipt [16:14:13]process_action close_receipt [16:14:13]cmd_close_receipt [16:14:13]MH_GetDate [16:14:13]Write to MH i2c: F0 00 00 16 03 08 [16:14:13]Write i2c OK [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: F0 [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: F0 09 00 [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: F0 09 00 16 03 00 D5 66 1E 67 47 1B 1E 67 B8 [16:14:13]GetLastDocTimeStamp 1730045647 [16:14:13]current date 1730045653 [16:14:13]FM_GetShiftState [16:14:13]SAM_PROTO_GetShiftState [16:14:13]wFMCommunicate request_size=4 [16:14:13]MH_SAM_APDU [16:14:13]CAPDU: 80 13 01 00 [16:14:13]Write to MH i2c: E2 08 00 17 03 80 13 01 00 00 00 00 00 97 [16:14:13]Write i2c OK [16:14:13]MH_I2C_Read... [16:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:13]Read from MH i2c: E2 [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: E2 0E 00 [16:14:13]MH_I2C_Read... [16:14:13]Read from MH i2c: E2 0E 00 17 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 99 [16:14:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:14:13]wFMCommunicate OK [16:14:13]SAM_PROTO_GetShiftState done [16:14:13]FM_GetShiftState done [16:14:13]opened in 1729987312 [16:14:13]opened+sec_in_day 1730073712 [16:14:13]quantity*price = 50041 [16:14:13]sum+1 = 50042 [16:14:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 354 27.10.2024 16:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202062 ФПД: 64980488066499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161413&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202062&fm=64980488066499&tin=02508201610067®Number=0000000000091777&sum=50000 [16:14:14]StoreToDocumentArchive [16:14:14]shift 544 fd 202062 [16:14:14]save to /storage/0544/doc_00202062 [16:14:14]save last doc name /storage/0544/doc_00202062 to /storage/kkm_last_doc_name [16:14:14]save OK [16:14:14]Clear old archive folders... [16:14:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:14]tlvbuf is 01C7A6F0 [16:14:14]SAM_PROTO_ClearQueue [16:14:14]wFMCommunicate request_size=4 [16:14:14]MH_SAM_APDU [16:14:14]CAPDU: 80 09 00 00 [16:14:14]Write to MH i2c: E2 08 00 24 03 80 09 00 00 00 00 00 00 99 [16:14:14]Write i2c OK [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 [16:14:14]MH_I2C_Read... [16:14:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:14]Read from MH i2c: E2 03 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 03 00 24 03 00 90 00 9B [16:14:14]RAPDU: 90 00 [16:14:14]wFMCommunicate OK [16:14:14]SAM_PROTO_ClearQueue done [16:14:14]KKMCreateOFDPacket [16:14:14]OFDProtocolAddRootSTLVToBuf [16:14:14]FM_MakeSignedData [16:14:14]FM_MakeSignedData [16:14:14]SAM_PROTO_SignData [16:14:14]wFMCommunicate request_size=4 [16:14:14]MH_SAM_APDU [16:14:14]CAPDU: 80 0D 01 02 [16:14:14]Write to MH i2c: E2 08 00 25 03 80 0D 01 02 00 00 00 00 A1 [16:14:14]Write i2c OK [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 [16:14:14]MH_I2C_Read... [16:14:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:14]Read from MH i2c: E2 03 00 [16:14:14]MH_I2C_Read... [16:14:14]Read from MH i2c: E2 03 00 25 03 00 90 00 9C [16:14:14]RAPDU: 90 00 [16:14:14]wFMCommunicate OK [16:14:14]wFMCommunicate request_size=255 [16:14:14]MH_SAM_APDU [16:14:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 62 01 00 00 F4 03 04 00 D5 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 15 03 00 35 04 06 00 3B [16:14:14]Write to MH i2c: E2 02 01 26 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 62 01 00 00 F4 03 04 00 D5 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 15 03 00 35 04 06 00 3B 00 00 1B [16:14:14]Write i2c OK [16:14:14]MH_I2C_Read... [16:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:15]Read from MH i2c: E2 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 03 00 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [16:14:15]RAPDU: 90 00 [16:14:15]wFMCommunicate OK [16:14:15]wFMCommunicate request_size=10 [16:14:15]MH_SAM_APDU [16:14:15]CAPDU: 80 0D 02 02 05 19 72 E8 95 C3 [16:14:15]Write to MH i2c: E2 0D 00 27 03 80 0D 02 02 05 00 19 72 E8 95 C3 00 00 79 [16:14:15]Write i2c OK [16:14:15]MH_I2C_Read... [16:14:15]OFD Sender: No OFD packet to send [16:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:15]Read from MH i2c: E2 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 03 00 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 03 00 27 03 00 90 00 9E [16:14:15]RAPDU: 90 00 [16:14:15]wFMCommunicate OK [16:14:15]wFMCommunicate request_size=4 [16:14:15]MH_SAM_APDU [16:14:15]CAPDU: 80 0D 03 02 [16:14:15]Write to MH i2c: E2 08 00 28 03 80 0D 03 02 00 00 00 00 A6 [16:14:15]Write i2c OK [16:14:15]MH_I2C_Read... [16:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:15]Read from MH i2c: E2 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 0B 00 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 0B 00 28 03 00 B5 27 9C B9 83 B2 1B 83 90 00 AB [16:14:15]RAPDU: B5 27 9C B9 83 B2 1B 83 90 00 [16:14:15]wFMCommunicate OK [16:14:15]SAM_PROTO_SignData done [16:14:15]FM_MakeSignedData done [16:14:15]CreateOFDProtocolMessage [16:14:15]wFMCommunicate request_size=4 [16:14:15]MH_SAM_APDU [16:14:15]CAPDU: 80 11 00 00 [16:14:15]Write to MH i2c: E2 08 00 29 03 80 11 00 00 00 00 00 00 A6 [16:14:15]Write i2c OK [16:14:15]MH_I2C_Read... [16:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:15]Read from MH i2c: E2 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 17 00 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: E2 17 00 29 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FB [16:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:14:15]wFMCommunicate OK [16:14:15]CreateOFDProtocolMessage done [16:14:15]OFDSenderStorePacket 202062 [16:14:15]StoreOFDPacket docnum=202062 [16:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2C 15 07 01 05 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 62 01 00 00 F4 03 04 00 D5 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 15 03 00 35 04 06 00 3B 19 72 E8 95 C3 B5 27 9C B9 83 B2 1B 83 [16:14:15]CheckFolder [16:14:15]dirname=/storage/ofd_packets [16:14:15]CheckFolder done [16:14:15]ProducePacketName [16:14:15]name=ofd_packets/00202062 [16:14:15]NVStorageSaveData ofd_packets/00202062 [16:14:15]File name is /storage/ofd_packets/00202062 [16:14:15]Write 301 bytes [16:14:15]NVStorageSaveData done [16:14:15]OFDSenderStorePacket done [16:14:15]KKMCreateOFDPacket done [16:14:15]NVStorageSaveData kkm_last_timestamp [16:14:15]File name is /storage/kkm_last_timestamp [16:14:15]Write 4 bytes [16:14:15]NVStorageSaveData done [16:14:15]ExternCall_PrintAddStr [16:14:15]wPrintStart [16:14:15]Write to MH i2c: 01 00 00 2A 03 2D [16:14:15]Write i2c OK [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: 01 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: 01 07 00 [16:14:15]MH_I2C_Read... [16:14:15]Read from MH i2c: 01 07 00 2A 03 00 00 00 00 00 FF 0F 42 [16:14:15]RasterBufferAndPrint [16:14:15]line Счет N : (1)449829 [16:14:15]line ИНН: 02508201610067 [16:14:15]line Контрольно-Кассовый Чек [16:14:15]line ПРОДАЖА [16:14:15]line ТРК (МРК, ГНК) : 52 [16:14:15]line Товар: 2710124130 [16:14:15]line Аи-92-К-2 [16:14:15]line 7.480 * 66.90 [16:14:15]line = 500.41 [16:14:15]line НДС 12% НСП 1% [16:14:15]line > о реализуемом товаре [16:14:15]line ОКРУГЛЕНИЕ: -0.41 [16:14:15]line ИТОГО: 500.00 [16:14:15]line Внесено: 500.00 [16:14:15]line СДАЧА: 0.00 [16:14:15]line НСП 1% : 4.43 [16:14:15]line НДС 12% : 53.14 [16:14:15]line Наличными: 500.00 [16:14:15]line Безнал.: 0.00 [16:14:15]line Место: АЗС № 171 "Партнер Нефть" [16:14:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:14:15]line СНО: Общий режим [16:14:15]line Чек 354 27.10.2024 16:14 [16:14:15]line Смена: 544 ФФД: 1.0 [16:14:15]line ЗНМ: 0300000109 [16:14:15]line РНМ: 0000000000091777 [16:14:15]line Версия ККМ: 001 [16:14:15]line ФМ: 0000000000871756 [16:14:15]line ФД: 202062 [16:14:15]line ФПД: 64980488066499 [16:14:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161413&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202062&fm=64980488066499&tin=02508201610067®Number=0000000000091777&sum=50000 [16:14:15]OFD Sender: Processing packet 202062 [packets to send 112, broken 111] [16:14:15]ProducePacketName [16:14:15]name=ofd_packets/00202062 [16:14:15]written 0, free lines is 4095 [16:14:15]OFD Sender: To server: pG, [16:14:15]CommunicateWithHost lk.salyk.kg:30040 [16:14:15]ConnectInit lk.salyk.kg [16:14:15]Connected sock=10 [16:14:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2C 15 07 01 05 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 62 01 00 00 F4 03 04 00 D5 66 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 15 03 00 35 04 06 00 3B 19 72 E8 95 C3 B5 27 9C B9 83 B2 1B 83 [16:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 73 8A 47 00 A9 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 15 03 00 F4 03 04 00 8F 12 1E 67 B6 04 01 00 00 D2 70 BF 7B BC 70 54 65 [16:14:16]CommunicateWithHost err = 0 [16:14:16]CheckOFDResponse [16:14:16]1017 (14) - 77093643461234 [16:14:16]1041 (16) - 0000000000871756 [16:14:16]1040 (4) - 202062 [16:14:16]1012 (4) - 27.10.2024 10:14 [16:14:16]1206 (1) - 0 [16:14:16]OFD Sender: Remove packet 202062 [16:14:16]ProducePacketName [16:14:16]name=ofd_packets/00202062 [16:14:16]NVStorageDeleteData [16:14:16]Write to MH i2c: 01 00 00 55 03 58 [16:14:16]Write i2c OK [16:14:16]MH_I2C_Read... [16:14:16]Read from MH i2c: 01 [16:14:16]MH_I2C_Read... [16:14:16]Read from MH i2c: 01 07 00 [16:14:16]MH_I2C_Read... [16:14:16]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 92 0C FD [16:14:16]RasterBufferAndPrint [16:14:16]line [16:14:16]line [16:14:16]line [16:14:16]line [16:14:16]line [16:14:16]written 0, free lines is 3229 [16:14:16]MH_Cut [16:14:16]Write to MH i2c: D1 01 00 5C 03 01 31 [16:14:16]Write i2c OK [16:14:16]MH_I2C_Read... [16:14:16]Read from MH i2c: D1 [16:14:16]MH_I2C_Read... [16:14:16]Read from MH i2c: D1 01 00 [16:14:16]MH_I2C_Read... [16:14:16]Read from MH i2c: D1 01 00 5C 03 00 30 [16:14:16]Write to MH i2c: 01 00 00 5D 03 60 [16:14:16]Write i2c OK [16:14:16]MH_I2C_Read... [16:14:16]OFD Sender: No OFD packet to send [16:14:17]*** Cut start [16:14:17]*** Purtial cut [16:14:17]*** Stage 1: CUTSNS_PIN = 1 [16:14:17]Read from MH i2c: 01 [16:14:17]MH_I2C_Read... [16:14:17]*** Stop cut motor [16:14:17]*** Cut end [16:14:17]Read from MH i2c: 01 07 00 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 FF 0F 75 [16:14:17]process_action close_receipt done [16:14:17]requested_data is exist [16:14:17]produce_requested_data [16:14:17]requested_item fm.sn is exist - process it [16:14:17]wFMCommunicate request_size=4 [16:14:17]MH_SAM_APDU [16:14:17]CAPDU: 80 11 00 00 [16:14:17]Write to MH i2c: E2 08 00 5E 03 80 11 00 00 00 00 00 00 DB [16:14:17]Write i2c OK [16:14:17]MH_I2C_Read... [16:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:17]Read from MH i2c: E2 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 17 00 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 17 00 5E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 30 [16:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:14:17]wFMCommunicate OK [16:14:17]requested_item fd.num is exist - process it [16:14:17]SAM_PROTO_GetFieldsCounters [16:14:17]wFMCommunicate request_size=4 [16:14:17]MH_SAM_APDU [16:14:17]CAPDU: 80 13 00 00 [16:14:17]Write to MH i2c: E2 08 00 5F 03 80 13 00 00 00 00 00 00 DE [16:14:17]Write i2c OK [16:14:17]MH_I2C_Read... [16:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:17]Read from MH i2c: E2 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 62 00 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 62 00 5F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [16:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:17]wFMCommunicate OK [16:14:17]SAM_PROTO_GetFieldsCounters done [16:14:17]requested_item shift.num is exist - process it [16:14:17]requested_item shift.opened is exist - process it [16:14:17]req_shift_opened [16:14:17]FM_GetShiftState [16:14:17]SAM_PROTO_GetShiftState [16:14:17]wFMCommunicate request_size=4 [16:14:17]MH_SAM_APDU [16:14:17]CAPDU: 80 13 01 00 [16:14:17]Write to MH i2c: E2 08 00 60 03 80 13 01 00 00 00 00 00 E0 [16:14:17]Write i2c OK [16:14:17]MH_I2C_Read... [16:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:17]Read from MH i2c: E2 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 0E 00 [16:14:17]MH_I2C_Read... [16:14:17]Read from MH i2c: E2 0E 00 60 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E2 [16:14:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:14:17]wFMCommunicate OK [16:14:17]SAM_PROTO_GetShiftState done [16:14:17]FM_GetShiftState done [16:14:17]req_shift_opened done [16:14:17]requested_item shift.open_date is exist - process it [16:14:17]req_shift_open_date [16:14:17]req_shift_open_date done [16:14:17]produce_requested_data done [16:14:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202062,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:14:17]process_action_free close_receipt [16:14:17]json_value_free [16:14:17]json_value_free done [16:14:17]process_json_proto returns [16:14:17]Send response to host [16:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202062,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:14:17]free response buf [16:14:17]execute_script done [16:14:17]execute_script returns [16:14:17]free content buf [16:14:17]Sock 9.Close socket [16:14:17]Sock 9.Thread stoped [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:33]accept exits with 8 [16:16:33]New connection [16:16:33]New thread 3067288932 created [16:16:33]Thread 3067432292 joined [16:16:33]Waiting for new connection... [16:16:33] Sock 8.Parse request [16:16:33]Sock 8.Check first char [16:16:33]Sock 8.First char is OK [16:16:33]request: POST /json_proto HTTP/1.0 [16:16:33]Method: POST [16:16:33]URL: /json_proto [16:16:33]Method is POST - this is cgi request [16:16:33]url: /json_proto [16:16:33]query_string will be loaded in cgi processing [16:16:33]execute_cgi json_proto POST (null) [16:16:33]execute_cgi path=json_proto method=POST [16:16:33]POST find Content-Length [16:16:33]Host: 172.17.63.195:8080 [16:16:33]Content-Length: 766 [16:16:33]Content-Type: application/json [16:16:33] [16:16:33]POST finish read [16:16:33]Found Content-Length = 766 [16:16:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:33]execute_script... [16:16: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)449831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:33]POST & json_proto [16:16:33]process_json_proto [16:16:33]json parsed OK: [16:16:33]protocol is kg_v1.0 [16:16:33]action value=close_receipt [16:16:33]process_action close_receipt [16:16:33]cmd_close_receipt [16:16:33]MH_GetDate [16:16:33]Write to MH i2c: F0 00 00 61 03 53 [16:16:33]Write i2c OK [16:16:33]MH_I2C_Read... [16:16:33]Read from MH i2c: F0 [16:16:33]MH_I2C_Read... [16:16:33]Read from MH i2c: F0 09 00 [16:16:33]MH_I2C_Read... [16:16:33]Read from MH i2c: F0 09 00 61 03 00 61 67 1E 67 47 1B 1E 67 90 [16:16:33]GetLastDocTimeStamp 1730045653 [16:16:33]current date 1730045793 [16:16:33]FM_GetShiftState [16:16:33]SAM_PROTO_GetShiftState [16:16:33]wFMCommunicate request_size=4 [16:16:33]MH_SAM_APDU [16:16:33]CAPDU: 80 13 01 00 [16:16:33]Write to MH i2c: E2 08 00 62 03 80 13 01 00 00 00 00 00 E2 [16:16:33]Write i2c OK [16:16:33]MH_I2C_Read... [16:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:33]Read from MH i2c: E2 [16:16:33]MH_I2C_Read... [16:16:33]Read from MH i2c: E2 0E 00 [16:16:33]MH_I2C_Read... [16:16:33]Read from MH i2c: E2 0E 00 62 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E4 [16:16:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:16:33]wFMCommunicate OK [16:16:33]SAM_PROTO_GetShiftState done [16:16:33]FM_GetShiftState done [16:16:33]opened in 1729987312 [16:16:33]opened+sec_in_day 1730073712 [16:16:33]quantity*price = 20003 [16:16:33]sum+1 = 20004 [16:16:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 355 27.10.2024 16:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202063 ФПД: 27129969341861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161634&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202063&fm=27129969341861&tin=02508201610067®Number=0000000000091777&sum=20003 [16:16:34]StoreToDocumentArchive [16:16:34]shift 544 fd 202063 [16:16:34]save to /storage/0544/doc_00202063 [16:16:34]save last doc name /storage/0544/doc_00202063 to /storage/kkm_last_doc_name [16:16:34]save OK [16:16:34]Clear old archive folders... [16:16:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:34]tlvbuf is 01C7C9F0 [16:16:34]SAM_PROTO_ClearQueue [16:16:34]wFMCommunicate request_size=4 [16:16:34]MH_SAM_APDU [16:16:34]CAPDU: 80 09 00 00 [16:16:34]Write to MH i2c: E2 08 00 6F 03 80 09 00 00 00 00 00 00 E4 [16:16:34]Write i2c OK [16:16:34]MH_I2C_Read... [16:16:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:34]Read from MH i2c: E2 [16:16:34]MH_I2C_Read... [16:16:34]Read from MH i2c: E2 03 00 [16:16:34]MH_I2C_Read... [16:16:34]Read from MH i2c: E2 03 00 6F 03 00 90 00 E6 [16:16:34]RAPDU: 90 00 [16:16:34]wFMCommunicate OK [16:16:34]SAM_PROTO_ClearQueue done [16:16:34]KKMCreateOFDPacket [16:16:34]OFDProtocolAddRootSTLVToBuf [16:16:34]FM_MakeSignedData [16:16:34]FM_MakeSignedData [16:16:34]SAM_PROTO_SignData [16:16:34]wFMCommunicate request_size=4 [16:16:34]MH_SAM_APDU [16:16:34]CAPDU: 80 0D 01 02 [16:16:34]Write to MH i2c: E2 08 00 70 03 80 0D 01 02 00 00 00 00 EC [16:16:34]Write i2c OK [16:16:34]MH_I2C_Read... [16:16:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:34]Read from MH i2c: E2 [16:16:34]MH_I2C_Read... [16:16:34]Read from MH i2c: E2 03 00 [16:16:34]MH_I2C_Read... [16:16:34]Read from MH i2c: E2 03 00 70 03 00 90 00 E7 [16:16:34]RAPDU: 90 00 [16:16:34]wFMCommunicate OK [16:16:34]wFMCommunicate request_size=255 [16:16:34]MH_SAM_APDU [16:16:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 62 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 15 03 00 35 04 06 00 18 [16:16:34]Write to MH i2c: E2 02 01 71 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 62 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 15 03 00 35 04 06 00 18 00 00 9B [16:16:34]Write i2c OK [16:16:34]MH_I2C_Read... [16:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:34]Read from MH i2c: E2 [16:16:34]MH_I2C_Read... [16:16:34]Read from MH i2c: E2 03 00 [16:16:34]MH_I2C_Read... [16:16:34]Read from MH i2c: E2 03 00 71 03 00 90 00 E8 [16:16:34]RAPDU: 90 00 [16:16:34]wFMCommunicate OK [16:16:34]wFMCommunicate request_size=10 [16:16:34]MH_SAM_APDU [16:16:34]CAPDU: 80 0D 02 02 05 AC B0 2F 75 A5 [16:16:34]Write to MH i2c: E2 0D 00 72 03 80 0D 02 02 05 00 AC B0 2F 75 A5 00 00 9E [16:16:34]Write i2c OK [16:16:34]MH_I2C_Read... [16:16:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:35]Read from MH i2c: E2 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 03 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [16:16:35]RAPDU: 90 00 [16:16:35]wFMCommunicate OK [16:16:35]wFMCommunicate request_size=4 [16:16:35]MH_SAM_APDU [16:16:35]CAPDU: 80 0D 03 02 [16:16:35]Write to MH i2c: E2 08 00 73 03 80 0D 03 02 00 00 00 00 F1 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:35]Read from MH i2c: E2 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 0B 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 0B 00 73 03 00 94 B1 B9 45 45 F6 5A 21 90 00 EB [16:16:35]RAPDU: 94 B1 B9 45 45 F6 5A 21 90 00 [16:16:35]wFMCommunicate OK [16:16:35]SAM_PROTO_SignData done [16:16:35]FM_MakeSignedData done [16:16:35]CreateOFDProtocolMessage [16:16:35]wFMCommunicate request_size=4 [16:16:35]MH_SAM_APDU [16:16:35]CAPDU: 80 11 00 00 [16:16:35]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:35]Read from MH i2c: E2 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 17 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 46 [16:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:16:35]wFMCommunicate OK [16:16:35]CreateOFDProtocolMessage done [16:16:35]OFDSenderStorePacket 202063 [16:16:35]StoreOFDPacket docnum=202063 [16:16:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F7 34 07 01 F2 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 62 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 15 03 00 35 04 06 00 18 AC B0 2F 75 A5 94 B1 B9 45 45 F6 5A 21 [16:16:35]CheckFolder [16:16:35]dirname=/storage/ofd_packets [16:16:35]CheckFolder done [16:16:35]ProducePacketName [16:16:35]name=ofd_packets/00202063 [16:16:35]NVStorageSaveData ofd_packets/00202063 [16:16:35]File name is /storage/ofd_packets/00202063 [16:16:35]Write 301 bytes [16:16:35]NVStorageSaveData done [16:16:35]OFDSenderStorePacket done [16:16:35]KKMCreateOFDPacket done [16:16:35]NVStorageSaveData kkm_last_timestamp [16:16:35]File name is /storage/kkm_last_timestamp [16:16:35]Write 4 bytes [16:16:35]NVStorageSaveData done [16:16:35]ExternCall_PrintAddStr [16:16:35]wPrintStart [16:16:35]Write to MH i2c: 01 00 00 75 03 78 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: 01 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: 01 07 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: 01 07 00 75 03 00 00 00 00 00 FF 0F 8D [16:16:35]RasterBufferAndPrint [16:16:35]line Счет N : (1)449831 [16:16:35]line ИНН: 02508201610067 [16:16:35]line Контрольно-Кассовый Чек [16:16:35]line ПРОДАЖА [16:16:35]line ТРК (МРК, ГНК) : 52 [16:16:35]line Товар: 2710124130 [16:16:35]line Аи-92-К-2 [16:16:35]line 2.990 * 66.90 [16:16:35]line = 200.03 [16:16:35]line НДС 12% НСП 1% [16:16:35]line > о реализуемом товаре [16:16:35]line ИТОГО: 200.03 [16:16:35]line НСП 1% : 1.77 [16:16:35]line НДС 12% : 21.24 [16:16:35]line Наличными: 0.00 [16:16:35]line Безнал.: 200.03 [16:16:35]line Место: АЗС № 171 "Партнер Нефть" [16:16:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:16:35]line СНО: Общий режим [16:16:35]line Чек 355 27.10.2024 16:16 [16:16:35]line Смена: 544 ФФД: 1.0 [16:16:35]line ЗНМ: 0300000109 [16:16:35]line РНМ: 0000000000091777 [16:16:35]line Версия ККМ: 001 [16:16:35]line Платежная система: Mbank [16:16:35]line ФМ: 0000000000871756 [16:16:35]line ФД: 202063 [16:16:35]line ФПД: 27129969341861 [16:16:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161634&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202063&fm=27129969341861&tin=02508201610067®Number=0000000000091777&sum=20003 [16:16:35]written 0, free lines is 4095 [16:16:35]OFD Sender: Processing packet 202063 [packets to send 112, broken 111] [16:16:35]ProducePacketName [16:16:35]name=ofd_packets/00202063 [16:16:35]OFD Sender: To server: pG, [16:16:35]CommunicateWithHost lk.salyk.kg:30040 [16:16:35]ConnectInit lk.salyk.kg [16:16:35]Connected sock=11 [16:16:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F7 34 07 01 F2 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 62 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 15 03 00 35 04 06 00 18 AC B0 2F 75 A5 94 B1 B9 45 45 F6 5A 21 [16:16:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 65 8D 47 00 EB A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 15 03 00 F4 03 04 00 1B 13 1E 67 B6 04 01 00 00 06 EF B7 D7 CB AA 7C 7B [16:16:35]CommunicateWithHost err = 0 [16:16:35]CheckOFDResponse [16:16:35]1017 (14) - 77093643461234 [16:16:35]1041 (16) - 0000000000871756 [16:16:35]1040 (4) - 202063 [16:16:35]1012 (4) - 27.10.2024 10:16 [16:16:35]1206 (1) - 0 [16:16:35]OFD Sender: Remove packet 202063 [16:16:35]ProducePacketName [16:16:35]name=ofd_packets/00202063 [16:16:35]NVStorageDeleteData [16:16:35]Write to MH i2c: 01 00 00 9E 03 A1 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: 01 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: 01 07 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 B4 0C 68 [16:16:35]RasterBufferAndPrint [16:16:35]line [16:16:35]line [16:16:35]line [16:16:35]line [16:16:35]line [16:16:35]written 0, free lines is 3254 [16:16:35]MH_Cut [16:16:35]Write to MH i2c: D1 01 00 A5 03 01 7A [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: D1 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: D1 01 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: D1 01 00 A5 03 00 79 [16:16:35]Write to MH i2c: 01 00 00 A6 03 A9 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:36]OFD Sender: No OFD packet to send [16:16:36]*** Cut start [16:16:36]*** Purtial cut [16:16:36]*** Stage 1: CUTSNS_PIN = 1 [16:16:37]Read from MH i2c: 01 [16:16:37]MH_I2C_Read... [16:16:37]*** Stop cut motor [16:16:37]*** Cut end [16:16:37]Read from MH i2c: 01 07 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 A6 03 00 00 00 00 00 FF 0F BE [16:16:37]process_action close_receipt done [16:16:37]requested_data is exist [16:16:37]produce_requested_data [16:16:37]requested_item fm.sn is exist - process it [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 11 00 00 [16:16:37]Write to MH i2c: E2 08 00 A7 03 80 11 00 00 00 00 00 00 24 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 17 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 17 00 A7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 79 [16:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:16:37]wFMCommunicate OK [16:16:37]requested_item fd.num is exist - process it [16:16:37]SAM_PROTO_GetFieldsCounters [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 13 00 00 [16:16:37]Write to MH i2c: E2 08 00 A8 03 80 13 00 00 00 00 00 00 27 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 62 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 62 00 A8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [16:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:37]wFMCommunicate OK [16:16:37]SAM_PROTO_GetFieldsCounters done [16:16:37]requested_item shift.num is exist - process it [16:16:37]requested_item shift.opened is exist - process it [16:16:37]req_shift_opened [16:16:37]FM_GetShiftState [16:16:37]SAM_PROTO_GetShiftState [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 13 01 00 [16:16:37]Write to MH i2c: E2 08 00 A9 03 80 13 01 00 00 00 00 00 29 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 0E 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 0E 00 A9 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2B [16:16:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:16:37]wFMCommunicate OK [16:16:37]SAM_PROTO_GetShiftState done [16:16:37]FM_GetShiftState done [16:16:37]req_shift_opened done [16:16:37]requested_item shift.open_date is exist - process it [16:16:37]req_shift_open_date [16:16:37]req_shift_open_date done [16:16:37]produce_requested_data done [16:16:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202063,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:16:37]process_action_free close_receipt [16:16:37]json_value_free [16:16:37]json_value_free done [16:16:37]process_json_proto returns [16:16:37]Send response to host [16:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202063,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:16:37]free response buf [16:16:37]execute_script done [16:16:37]execute_script returns [16:16:37]free content buf [16:16:37]Sock 8.Close socket [16:16:37]Sock 8.Thread stoped [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:12]accept exits with 9 [16:17:12]New connection [16:17:12]New thread 3067432292 created [16:17:12]Thread 3067288932 joined [16:17:12]Waiting for new connection... [16:17:12] Sock 9.Parse request [16:17:12]Sock 9.Check first char [16:17:12]Sock 9.First char is OK [16:17:12]request: POST /json_proto HTTP/1.0 [16:17:12]Method: POST [16:17:12]URL: /json_proto [16:17:12]Method is POST - this is cgi request [16:17:12]url: /json_proto [16:17:12]query_string will be loaded in cgi processing [16:17:12]execute_cgi json_proto POST (null) [16:17:12]execute_cgi path=json_proto method=POST [16:17:12]POST find Content-Length [16:17:12]Host: 172.17.63.195:8080 [16:17:12]Content-Length: 766 [16:17:12]Content-Type: application/json [16:17:12] [16:17:12]POST finish read [16:17:12]Found Content-Length = 766 [16:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1200.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:12]execute_script... [16:17:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1200.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:12]POST & json_proto [16:17:12]process_json_proto [16:17:12]json parsed OK: [16:17:12]protocol is kg_v1.0 [16:17:12]action value=close_receipt [16:17:12]process_action close_receipt [16:17:12]cmd_close_receipt [16:17:12]MH_GetDate [16:17:12]Write to MH i2c: F0 00 00 AA 03 9C [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: F0 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: F0 09 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: F0 09 00 AA 03 00 89 67 1E 67 47 1B 1E 67 01 [16:17:12]GetLastDocTimeStamp 1730045794 [16:17:12]current date 1730045833 [16:17:12]FM_GetShiftState [16:17:12]SAM_PROTO_GetShiftState [16:17:12]wFMCommunicate request_size=4 [16:17:12]MH_SAM_APDU [16:17:12]CAPDU: 80 13 01 00 [16:17:12]Write to MH i2c: E2 08 00 AB 03 80 13 01 00 00 00 00 00 2B [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:12]Read from MH i2c: E2 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 0E 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 0E 00 AB 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2D [16:17:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:17:12]wFMCommunicate OK [16:17:12]SAM_PROTO_GetShiftState done [16:17:12]FM_GetShiftState done [16:17:12]opened in 1729987312 [16:17:12]opened+sec_in_day 1730073712 [16:17:12]quantity*price = 120015 [16:17:12]sum+1 = 120016 [16:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.15 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.15 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 356 27.10.2024 16:17 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202064 ФПД: 276728717772751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161713&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202064&fm=276728717772751&tin=02508201610067®Number=0000000000091777&sum=120015 [16:17:13]StoreToDocumentArchive [16:17:13]shift 544 fd 202064 [16:17:13]save to /storage/0544/doc_00202064 [16:17:13]save last doc name /storage/0544/doc_00202064 to /storage/kkm_last_doc_name [16:17:13]save OK [16:17:13]Clear old archive folders... [16:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:17:13]tlvbuf is 01C43A70 [16:17:13]SAM_PROTO_ClearQueue [16:17:13]wFMCommunicate request_size=4 [16:17:13]MH_SAM_APDU [16:17:13]CAPDU: 80 09 00 00 [16:17:13]Write to MH i2c: E2 08 00 B8 03 80 09 00 00 00 00 00 00 2D [16:17:13]Write i2c OK [16:17:13]MH_I2C_Read... [16:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:13]Read from MH i2c: E2 [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: E2 03 00 [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [16:17:13]RAPDU: 90 00 [16:17:13]wFMCommunicate OK [16:17:13]SAM_PROTO_ClearQueue done [16:17:13]KKMCreateOFDPacket [16:17:13]OFDProtocolAddRootSTLVToBuf [16:17:13]FM_MakeSignedData [16:17:13]FM_MakeSignedData [16:17:13]SAM_PROTO_SignData [16:17:13]wFMCommunicate request_size=4 [16:17:13]MH_SAM_APDU [16:17:13]CAPDU: 80 0D 01 02 [16:17:13]Write to MH i2c: E2 08 00 B9 03 80 0D 01 02 00 00 00 00 35 [16:17:13]Write i2c OK [16:17:13]MH_I2C_Read... [16:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:13]Read from MH i2c: E2 [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: E2 03 00 [16:17:13]MH_I2C_Read... [16:17:13]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [16:17:13]RAPDU: 90 00 [16:17:13]wFMCommunicate OK [16:17:13]wFMCommunicate request_size=255 [16:17:13]MH_SAM_APDU [16:17: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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 89 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 15 03 00 35 04 06 00 FB AE EC EC [16:17:13]Write to MH i2c: E2 02 01 BA 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 89 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 15 03 00 35 04 06 00 FB AE EC EC 00 00 30 [16:17:13]Write i2c OK [16:17:13]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [16:17:14]RAPDU: 90 00 [16:17:14]wFMCommunicate OK [16:17:14]wFMCommunicate request_size=7 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 0D 02 02 02 07 CF [16:17:14]Write to MH i2c: E2 0A 00 BB 03 80 0D 02 02 02 00 07 CF 00 00 12 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [16:17:14]RAPDU: 90 00 [16:17:14]wFMCommunicate OK [16:17:14]wFMCommunicate request_size=4 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 0D 03 02 [16:17:14]Write to MH i2c: E2 08 00 BC 03 80 0D 03 02 00 00 00 00 3A [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 0B 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 0B 00 BC 03 00 83 58 BE 30 76 A1 0A 22 90 00 47 [16:17:14]RAPDU: 83 58 BE 30 76 A1 0A 22 90 00 [16:17:14]wFMCommunicate OK [16:17:14]SAM_PROTO_SignData done [16:17:14]FM_MakeSignedData done [16:17:14]CreateOFDProtocolMessage [16:17:14]wFMCommunicate request_size=4 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 11 00 00 [16:17:14]Write to MH i2c: E2 08 00 BD 03 80 11 00 00 00 00 00 00 3A [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 17 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 17 00 BD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8F [16:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:17:14]wFMCommunicate OK [16:17:14]CreateOFDProtocolMessage done [16:17:14]OFDSenderStorePacket 202064 [16:17:14]StoreOFDPacket docnum=202064 [16:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 96 21 04 01 92 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 89 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 15 03 00 35 04 06 00 FB AE EC EC 07 CF 83 58 BE 30 76 A1 0A 22 [16:17:14]CheckFolder [16:17:14]dirname=/storage/ofd_packets [16:17:14]CheckFolder done [16:17:14]ProducePacketName [16:17:14]name=ofd_packets/00202064 [16:17:14]NVStorageSaveData ofd_packets/00202064 [16:17:14]File name is /storage/ofd_packets/00202064 [16:17:14]Write 298 bytes [16:17:14]NVStorageSaveData done [16:17:14]OFDSenderStorePacket done [16:17:14]KKMCreateOFDPacket done [16:17:14]NVStorageSaveData kkm_last_timestamp [16:17:14]File name is /storage/kkm_last_timestamp [16:17:14]Write 4 bytes [16:17:14]NVStorageSaveData done [16:17:14]ExternCall_PrintAddStr [16:17:14]wPrintStart [16:17:14]Write to MH i2c: 01 00 00 BE 03 C1 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 07 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 FF 0F D6 [16:17:14]RasterBufferAndPrint [16:17:14]line Счет N : (1)449832 [16:17:14]line ИНН: 02508201610067 [16:17:14]line Контрольно-Кассовый Чек [16:17:14]line ПРОДАЖА [16:17:14]line ТРК (МРК, ГНК) : 43 [16:17:14]line Товар: 2710194210 [16:17:14]line ДТ-К-2 [16:17:14]line 15.750 * 76.20 [16:17:14]line = 1200.15 [16:17:14]line НДС 12% НСП 1% [16:17:14]line > о реализуемом товаре [16:17:14]line ИТОГО: 1200.15 [16:17:14]line НСП 1% : 10.62 [16:17:14]line НДС 12% : 127.45 [16:17:14]line Наличными: 0.00 [16:17:14]line Безнал.: 1200.15 [16:17:14]line Место: АЗС № 171 "Партнер Нефть" [16:17:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:17:14]line СНО: Общий режим [16:17:14]line Чек 356 27.10.2024 16:17 [16:17:14]line Смена: 544 ФФД: 1.0 [16:17:14]line ЗНМ: 0300000109 [16:17:14]line РНМ: 0000000000091777 [16:17:14]line Версия ККМ: 001 [16:17:14]line Платежная система: Mbank [16:17:14]line ФМ: 0000000000871756 [16:17:14]line ФД: 202064 [16:17:14]line ФПД: 276728717772751 [16:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161713&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202064&fm=276728717772751&tin=02508201610067®Number=0000000000091777&sum=120015 [16:17:14]OFD Sender: Processing packet 202064 [packets to send 112, broken 111] [16:17:14]ProducePacketName [16:17:14]name=ofd_packets/00202064 [16:17:14]OFD Sender: To server: pG, [16:17:14]CommunicateWithHost lk.salyk.kg:30040 [16:17:14]ConnectInit lk.salyk.kg [16:17:14]written 0, free lines is 4095 [16:17:14]Connected sock=8 [16:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 96 21 04 01 92 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 89 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 15 03 00 35 04 06 00 FB AE EC EC 07 CF 83 58 BE 30 76 A1 0A 22 [16:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8B A5 47 00 73 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 15 03 00 F4 03 04 00 42 13 1E 67 B6 04 01 00 00 0F 90 E2 7B F0 12 3F 73 [16:17:14]CommunicateWithHost err = 0 [16:17:14]CheckOFDResponse [16:17:14]1017 (14) - 77093643461234 [16:17:14]1041 (16) - 0000000000871756 [16:17:14]1040 (4) - 202064 [16:17:14]1012 (4) - 27.10.2024 10:17 [16:17:14]1206 (1) - 0 [16:17:14]OFD Sender: Remove packet 202064 [16:17:14]ProducePacketName [16:17:14]name=ofd_packets/00202064 [16:17:14]NVStorageDeleteData [16:17:14]Write to MH i2c: 01 00 00 E7 03 EA [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 07 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 B7 0C B4 [16:17:14]RasterBufferAndPrint [16:17:14]line [16:17:14]line [16:17:14]line [16:17:14]line [16:17:14]line [16:17:14]written 0, free lines is 3258 [16:17:14]MH_Cut [16:17:14]Write to MH i2c: D1 01 00 EE 03 01 C3 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: D1 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: D1 01 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: D1 01 00 EE 03 00 C2 [16:17:14]Write to MH i2c: 01 00 00 EF 03 F2 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:15]OFD Sender: No OFD packet to send [16:17:15]*** Cut start [16:17:15]*** Purtial cut [16:17:15]*** Stage 1: CUTSNS_PIN = 1 [16:17:16]Read from MH i2c: 01 [16:17:16]MH_I2C_Read... [16:17:16]*** Stop cut motor [16:17:16]*** Cut end [16:17:16]Read from MH i2c: 01 07 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [16:17:16]process_action close_receipt done [16:17:16]requested_data is exist [16:17:16]produce_requested_data [16:17:16]requested_item fm.sn is exist - process it [16:17:16]wFMCommunicate request_size=4 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 11 00 00 [16:17:16]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 17 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C2 [16:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:17:16]wFMCommunicate OK [16:17:16]requested_item fd.num is exist - process it [16:17:16]SAM_PROTO_GetFieldsCounters [16:17:16]wFMCommunicate request_size=4 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 13 00 00 [16:17:16]Write to MH i2c: E2 08 00 F1 03 80 13 00 00 00 00 00 00 70 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 62 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 62 00 F1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 50 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [16:17:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 50 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:16]wFMCommunicate OK [16:17:16]SAM_PROTO_GetFieldsCounters done [16:17:16]requested_item shift.num is exist - process it [16:17:16]requested_item shift.opened is exist - process it [16:17:16]req_shift_opened [16:17:16]FM_GetShiftState [16:17:16]SAM_PROTO_GetShiftState [16:17:16]wFMCommunicate request_size=4 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 13 01 00 [16:17:16]Write to MH i2c: E2 08 00 F2 03 80 13 01 00 00 00 00 00 72 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 0E 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 0E 00 F2 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 74 [16:17:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:17:16]wFMCommunicate OK [16:17:16]SAM_PROTO_GetShiftState done [16:17:16]FM_GetShiftState done [16:17:16]req_shift_opened done [16:17:16]requested_item shift.open_date is exist - process it [16:17:16]req_shift_open_date [16:17:16]req_shift_open_date done [16:17:16]produce_requested_data done [16:17:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202064,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:17:16]process_action_free close_receipt [16:17:16]json_value_free [16:17:16]json_value_free done [16:17:16]process_json_proto returns [16:17:16]Send response to host [16:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202064,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:17:16]free response buf [16:17:16]execute_script done [16:17:16]execute_script returns [16:17:16]free content buf [16:17:16]Sock 9.Close socket [16:17:16]Sock 9.Thread stoped [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:51]accept exits with 10 [16:17:51]New connection [16:17:51]New thread 3067288932 created [16:17:51]Thread 3067432292 joined [16:17:51]Waiting for new connection... [16:17:51] Sock 10.Parse request [16:17:51]Sock 10.Check first char [16:17:51]Sock 10.First char is OK [16:17:51]request: POST /json_proto HTTP/1.0 [16:17:51]Method: POST [16:17:51]URL: /json_proto [16:17:51]Method is POST - this is cgi request [16:17:51]url: /json_proto [16:17:51]query_string will be loaded in cgi processing [16:17:51]execute_cgi json_proto POST (null) [16:17:51]execute_cgi path=json_proto method=POST [16:17:51]POST find Content-Length [16:17:51]Host: 172.17.63.195:8080 [16:17:51]Content-Length: 674 [16:17:51]Content-Type: application/json [16:17:51] [16:17:51]POST finish read [16:17:51]Found Content-Length = 674 [16:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:51]execute_script... [16: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)449833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:51]POST & json_proto [16:17:51]process_json_proto [16:17:51]json parsed OK: [16:17:51]protocol is kg_v1.0 [16:17:51]action value=close_receipt [16:17:51]process_action close_receipt [16:17:51]cmd_close_receipt [16:17:51]MH_GetDate [16:17:51]Write to MH i2c: F0 00 00 F3 03 E5 [16:17:51]Write i2c OK [16:17:51]MH_I2C_Read... [16:17:51]Read from MH i2c: F0 [16:17:51]MH_I2C_Read... [16:17:51]Read from MH i2c: F0 09 00 [16:17:51]MH_I2C_Read... [16:17:51]Read from MH i2c: F0 09 00 F3 03 00 B0 67 1E 67 47 1B 1E 67 71 [16:17:51]GetLastDocTimeStamp 1730045833 [16:17:51]current date 1730045872 [16:17:51]FM_GetShiftState [16:17:51]SAM_PROTO_GetShiftState [16:17:51]wFMCommunicate request_size=4 [16:17:51]MH_SAM_APDU [16:17:51]CAPDU: 80 13 01 00 [16:17:51]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [16:17:51]Write i2c OK [16:17:51]MH_I2C_Read... [16:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:51]Read from MH i2c: E2 [16:17:51]MH_I2C_Read... [16:17:51]Read from MH i2c: E2 0E 00 [16:17:51]MH_I2C_Read... [16:17:51]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 76 [16:17:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:17:51]wFMCommunicate OK [16:17:51]SAM_PROTO_GetShiftState done [16:17:51]FM_GetShiftState done [16:17:51]opened in 1729987312 [16:17:51]opened+sec_in_day 1730073712 [16:17:51]quantity*price = 50063 [16:17:51]sum+1 = 50064 [16:17:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 357 27.10.2024 16:17 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202065 ФПД: 183376642002007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161752&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202065&fm=183376642002007&tin=02508201610067®Number=0000000000091777&sum=50000 [16:17:53]StoreToDocumentArchive [16:17:53]shift 544 fd 202065 [16:17:53]save to /storage/0544/doc_00202065 [16:17:53]save last doc name /storage/0544/doc_00202065 to /storage/kkm_last_doc_name [16:17:53]save OK [16:17:53]Clear old archive folders... [16:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:17:53]tlvbuf is 01C79390 [16:17:53]SAM_PROTO_ClearQueue [16:17:53]wFMCommunicate request_size=4 [16:17:53]MH_SAM_APDU [16:17:53]CAPDU: 80 09 00 00 [16:17:53]Write to MH i2c: E2 08 00 01 04 80 09 00 00 00 00 00 00 77 [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:53]Read from MH i2c: E2 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 03 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [16:17:53]RAPDU: 90 00 [16:17:53]wFMCommunicate OK [16:17:53]SAM_PROTO_ClearQueue done [16:17:53]KKMCreateOFDPacket [16:17:53]OFDProtocolAddRootSTLVToBuf [16:17:53]FM_MakeSignedData [16:17:53]FM_MakeSignedData [16:17:53]SAM_PROTO_SignData [16:17:53]wFMCommunicate request_size=4 [16:17:53]MH_SAM_APDU [16:17:53]CAPDU: 80 0D 01 02 [16:17:53]Write to MH i2c: E2 08 00 02 04 80 0D 01 02 00 00 00 00 7F [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:53]Read from MH i2c: E2 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 03 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [16:17:53]RAPDU: 90 00 [16:17:53]wFMCommunicate OK [16:17:53]wFMCommunicate request_size=255 [16:17:53]MH_SAM_APDU [16:17:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 B0 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 15 03 00 35 04 06 00 A6 C7 B3 9B [16:17:53]Write to MH i2c: E2 02 01 03 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 B0 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 15 03 00 35 04 06 00 A6 C7 B3 9B 00 00 D9 [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:53]Read from MH i2c: E2 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 03 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [16:17:53]RAPDU: 90 00 [16:17:53]wFMCommunicate OK [16:17:53]wFMCommunicate request_size=7 [16:17:53]MH_SAM_APDU [16:17:53]CAPDU: 80 0D 02 02 02 4C 57 [16:17:53]Write to MH i2c: E2 0A 00 04 04 80 0D 02 02 02 00 4C 57 00 00 29 [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:53]Read from MH i2c: E2 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 03 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [16:17:53]RAPDU: 90 00 [16:17:53]wFMCommunicate OK [16:17:53]wFMCommunicate request_size=4 [16:17:53]MH_SAM_APDU [16:17:53]CAPDU: 80 0D 03 02 [16:17:53]Write to MH i2c: E2 08 00 05 04 80 0D 03 02 00 00 00 00 84 [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:53]Read from MH i2c: E2 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 0B 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 0B 00 05 04 00 C5 C4 69 9A E8 E3 10 B7 90 00 A3 [16:17:53]RAPDU: C5 C4 69 9A E8 E3 10 B7 90 00 [16:17:53]wFMCommunicate OK [16:17:53]SAM_PROTO_SignData done [16:17:53]FM_MakeSignedData done [16:17:53]CreateOFDProtocolMessage [16:17:53]wFMCommunicate request_size=4 [16:17:53]MH_SAM_APDU [16:17:53]CAPDU: 80 11 00 00 [16:17:53]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:53]Read from MH i2c: E2 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 17 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [16:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:17:53]wFMCommunicate OK [16:17:53]CreateOFDProtocolMessage done [16:17:53]OFDSenderStorePacket 202065 [16:17:53]StoreOFDPacket docnum=202065 [16:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 04 92 04 01 DC A8 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 B0 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 15 03 00 35 04 06 00 A6 C7 B3 9B 4C 57 C5 C4 69 9A E8 E3 10 B7 [16:17:53]CheckFolder [16:17:53]dirname=/storage/ofd_packets [16:17:53]CheckFolder done [16:17:53]ProducePacketName [16:17:53]name=ofd_packets/00202065 [16:17:53]NVStorageSaveData ofd_packets/00202065 [16:17:53]File name is /storage/ofd_packets/00202065 [16:17:53]Write 298 bytes [16:17:53]NVStorageSaveData done [16:17:53]OFDSenderStorePacket done [16:17:53]KKMCreateOFDPacket done [16:17:53]NVStorageSaveData kkm_last_timestamp [16:17:53]File name is /storage/kkm_last_timestamp [16:17:53]Write 4 bytes [16:17:53]NVStorageSaveData done [16:17:53]ExternCall_PrintAddStr [16:17:53]wPrintStart [16:17:53]Write to MH i2c: 01 00 00 07 04 0B [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: 01 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: 01 07 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 FF 0F 20 [16:17:53]RasterBufferAndPrint [16:17:53]line Счет N : (1)449833 [16:17:53]line ИНН: 02508201610067 [16:17:53]line Контрольно-Кассовый Чек [16:17:53]line ПРОДАЖА [16:17:53]line ТРК (МРК, ГНК) : 11 [16:17:53]line Товар: 2710194210 [16:17:53]line ДТ-К-2 [16:17:53]line 6.570 * 76.20 [16:17:53]line = 500.63 [16:17:53]line НДС 12% НСП 1% [16:17:53]line > о реализуемом товаре [16:17:53]line ОКРУГЛЕНИЕ: -0.63 [16:17:53]line ИТОГО: 500.00 [16:17:53]line Внесено: 500.00 [16:17:53]line СДАЧА: 0.00 [16:17:53]line НСП 1% : 4.43 [16:17:53]line НДС 12% : 53.16 [16:17:53]line Наличными: 500.00 [16:17:53]line Безнал.: 0.00 [16:17:53]line Место: АЗС № 171 "Партнер Нефть" [16:17:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:17:53]line СНО: Общий режим [16:17:53]line Чек 357 27.10.2024 16:17 [16:17:53]line Смена: 544 ФФД: 1.0 [16:17:53]line ЗНМ: 0300000109 [16:17:53]line РНМ: 0000000000091777 [16:17:53]line Версия ККМ: 001 [16:17:53]line ФМ: 0000000000871756 [16:17:53]line ФД: 202065 [16:17:53]line ФПД: 183376642002007 [16:17:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161752&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202065&fm=183376642002007&tin=02508201610067®Number=0000000000091777&sum=50000 [16:17:53]OFD Sender: Processing packet 202065 [packets to send 112, broken 111] [16:17:53]ProducePacketName [16:17:53]name=ofd_packets/00202065 [16:17:53]OFD Sender: To server: pG, [16:17:53]CommunicateWithHost lk.salyk.kg:30040 [16:17:53]ConnectInit lk.salyk.kg [16:17:53]written 0, free lines is 4095 [16:17:54]Connected sock=9 [16:17:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 04 92 04 01 DC A8 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 B0 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 15 03 00 35 04 06 00 A6 C7 B3 9B 4C 57 C5 C4 69 9A E8 E3 10 B7 [16:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B2 12 47 00 84 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 15 03 00 F4 03 04 00 6A 13 1E 67 B6 04 01 00 00 60 54 34 24 BE 65 93 3C [16:17:54]CommunicateWithHost err = 0 [16:17:54]CheckOFDResponse [16:17:54]1017 (14) - 77093643461234 [16:17:54]1041 (16) - 0000000000871756 [16:17:54]1040 (4) - 202065 [16:17:54]1012 (4) - 27.10.2024 10:18 [16:17:54]1206 (1) - 0 [16:17:54]OFD Sender: Remove packet 202065 [16:17:54]ProducePacketName [16:17:54]name=ofd_packets/00202065 [16:17:54]NVStorageDeleteData [16:17:54]Write to MH i2c: 01 00 00 32 04 36 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 07 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 8C 0C D5 [16:17:54]RasterBufferAndPrint [16:17:54]line [16:17:54]line [16:17:54]line [16:17:54]line [16:17:54]line [16:17:54]written 0, free lines is 3215 [16:17:54]MH_Cut [16:17:54]Write to MH i2c: D1 01 00 39 04 01 0F [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: D1 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: D1 01 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: D1 01 00 39 04 00 0E [16:17:54]Write to MH i2c: 01 00 00 3A 04 3E [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]OFD Sender: No OFD packet to send [16:17:55]*** Cut start [16:17:55]*** Purtial cut [16:17:55]*** Stage 1: CUTSNS_PIN = 1 [16:17:55]Read from MH i2c: 01 [16:17:55]MH_I2C_Read... [16:17:55]*** Stop cut motor [16:17:55]*** Cut end [16:17:55]Read from MH i2c: 01 07 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [16:17:55]process_action close_receipt done [16:17:55]requested_data is exist [16:17:55]produce_requested_data [16:17:55]requested_item fm.sn is exist - process it [16:17:55]wFMCommunicate request_size=4 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 11 00 00 [16:17:55]Write to MH i2c: E2 08 00 3B 04 80 11 00 00 00 00 00 00 B9 [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 17 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 17 00 3B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [16:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:17:55]wFMCommunicate OK [16:17:55]requested_item fd.num is exist - process it [16:17:55]SAM_PROTO_GetFieldsCounters [16:17:55]wFMCommunicate request_size=4 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 13 00 00 [16:17:55]Write to MH i2c: E2 08 00 3C 04 80 13 00 00 00 00 00 00 BC [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 62 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 62 00 3C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 51 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [16:17:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 51 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:55]wFMCommunicate OK [16:17:55]SAM_PROTO_GetFieldsCounters done [16:17:55]requested_item shift.num is exist - process it [16:17:55]requested_item shift.opened is exist - process it [16:17:55]req_shift_opened [16:17:55]FM_GetShiftState [16:17:55]SAM_PROTO_GetShiftState [16:17:55]wFMCommunicate request_size=4 [16:17:55]MH_SAM_APDU [16:17:55]CAPDU: 80 13 01 00 [16:17:55]Write to MH i2c: E2 08 00 3D 04 80 13 01 00 00 00 00 00 BE [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:55]Read from MH i2c: E2 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 0E 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: E2 0E 00 3D 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C0 [16:17:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:17:55]wFMCommunicate OK [16:17:55]SAM_PROTO_GetShiftState done [16:17:55]FM_GetShiftState done [16:17:55]req_shift_opened done [16:17:55]requested_item shift.open_date is exist - process it [16:17:55]req_shift_open_date [16:17:55]req_shift_open_date done [16:17:55]produce_requested_data done [16:17:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202065,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:17:55]process_action_free close_receipt [16:17:55]json_value_free [16:17:55]json_value_free done [16:17:55]process_json_proto returns [16:17:55]Send response to host [16:17:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202065,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:17:55]free response buf [16:17:55]execute_script done [16:17:55]execute_script returns [16:17:55]free content buf [16:17:55]Sock 10.Close socket [16:17:55]Sock 10.Thread stoped [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:21]accept exits with 8 [16:18:21]New connection [16:18:21]New thread 3067432292 created [16:18:21]Thread 3067288932 joined [16:18:21]Waiting for new connection... [16:18:21] Sock 8.Parse request [16:18:21]Sock 8.Check first char [16:18:21]Sock 8.First char is OK [16:18:21]request: POST /json_proto HTTP/1.0 [16:18:21]Method: POST [16:18:21]URL: /json_proto [16:18:21]Method is POST - this is cgi request [16:18:21]url: /json_proto [16:18:21]query_string will be loaded in cgi processing [16:18:21]execute_cgi json_proto POST (null) [16:18:21]execute_cgi path=json_proto method=POST [16:18:21]POST find Content-Length [16:18:21]Host: 172.17.63.195:8080 [16:18:21]Content-Length: 769 [16:18:21]Content-Type: application/json [16:18:21] [16:18:21]POST finish read [16:18:21]Found Content-Length = 769 [16:18:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:21]execute_script... [16:18: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)449834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:21]POST & json_proto [16:18:21]process_json_proto [16:18:21]json parsed OK: [16:18:21]protocol is kg_v1.0 [16:18:21]action value=close_receipt [16:18:21]process_action close_receipt [16:18:21]cmd_close_receipt [16:18:21]MH_GetDate [16:18:21]Write to MH i2c: F0 00 00 3E 04 31 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: F0 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: F0 09 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: F0 09 00 3E 04 00 CE 67 1E 67 47 1B 1E 67 DB [16:18:21]GetLastDocTimeStamp 1730045872 [16:18:21]current date 1730045902 [16:18:21]FM_GetShiftState [16:18:21]SAM_PROTO_GetShiftState [16:18:21]wFMCommunicate request_size=4 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 13 01 00 [16:18:21]Write to MH i2c: E2 08 00 3F 04 80 13 01 00 00 00 00 00 C0 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 0E 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 0E 00 3F 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C2 [16:18:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:18:21]wFMCommunicate OK [16:18:21]SAM_PROTO_GetShiftState done [16:18:21]FM_GetShiftState done [16:18:21]opened in 1729987312 [16:18:21]opened+sec_in_day 1730073712 [16:18:21]quantity*price = 100015 [16:18:21]sum+1 = 100017 [16:18:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 358 27.10.2024 16:18 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202066 ФПД: 5954720800835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161822&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202066&fm=5954720800835&tin=02508201610067®Number=0000000000091777&sum=100016 [16:18:22]StoreToDocumentArchive [16:18:22]shift 544 fd 202066 [16:18:22]save to /storage/0544/doc_00202066 [16:18:22]save last doc name /storage/0544/doc_00202066 to /storage/kkm_last_doc_name [16:18:22]save OK [16:18:22]Clear old archive folders... [16:18:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:22]tlvbuf is 01C6F590 [16:18:22]SAM_PROTO_ClearQueue [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 09 00 00 [16:18:22]Write to MH i2c: E2 08 00 4C 04 80 09 00 00 00 00 00 00 C2 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [16:18:22]RAPDU: 90 00 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_ClearQueue done [16:18:22]KKMCreateOFDPacket [16:18:22]OFDProtocolAddRootSTLVToBuf [16:18:22]FM_MakeSignedData [16:18:22]FM_MakeSignedData [16:18:22]SAM_PROTO_SignData [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 0D 01 02 [16:18:22]Write to MH i2c: E2 08 00 4D 04 80 0D 01 02 00 00 00 00 CA [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [16:18:23]RAPDU: 90 00 [16:18:23]wFMCommunicate OK [16:18:23]wFMCommunicate request_size=255 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 01 00 00 F4 03 04 00 CE 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 15 03 00 35 04 06 00 05 [16:18:23]Write to MH i2c: E2 02 01 4E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 01 00 00 F4 03 04 00 CE 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 15 03 00 35 04 06 00 05 00 00 2A [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [16:18:23]RAPDU: 90 00 [16:18:23]wFMCommunicate OK [16:18:23]wFMCommunicate request_size=10 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 0D 02 02 05 6A 71 04 A0 43 [16:18:23]Write to MH i2c: E2 0D 00 4F 04 80 0D 02 02 05 00 6A 71 04 A0 43 00 00 99 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [16:18:23]RAPDU: 90 00 [16:18:23]wFMCommunicate OK [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 0D 03 02 [16:18:23]Write to MH i2c: E2 08 00 50 04 80 0D 03 02 00 00 00 00 CF [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 0B 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 0B 00 50 04 00 77 05 20 E0 9E B5 3D 56 90 00 32 [16:18:23]RAPDU: 77 05 20 E0 9E B5 3D 56 90 00 [16:18:23]wFMCommunicate OK [16:18:23]SAM_PROTO_SignData done [16:18:23]FM_MakeSignedData done [16:18:23]CreateOFDProtocolMessage [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 11 00 00 [16:18:23]Write to MH i2c: E2 08 00 51 04 80 11 00 00 00 00 00 00 CF [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 17 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 17 00 51 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 24 [16:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:18:23]wFMCommunicate OK [16:18:23]CreateOFDProtocolMessage done [16:18:23]OFDSenderStorePacket 202066 [16:18:23]StoreOFDPacket docnum=202066 [16:18:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 41 07 01 83 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 01 00 00 F4 03 04 00 CE 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 15 03 00 35 04 06 00 05 6A 71 04 A0 43 77 05 20 E0 9E B5 3D 56 [16:18:23]CheckFolder [16:18:23]dirname=/storage/ofd_packets [16:18:23]CheckFolder done [16:18:23]ProducePacketName [16:18:23]name=ofd_packets/00202066 [16:18:23]NVStorageSaveData ofd_packets/00202066 [16:18:23]File name is /storage/ofd_packets/00202066 [16:18:23]Write 301 bytes [16:18:23]NVStorageSaveData done [16:18:23]OFDSenderStorePacket done [16:18:23]KKMCreateOFDPacket done [16:18:23]NVStorageSaveData kkm_last_timestamp [16:18:23]File name is /storage/kkm_last_timestamp [16:18:23]Write 4 bytes [16:18:23]NVStorageSaveData done [16:18:23]ExternCall_PrintAddStr [16:18:23]wPrintStart [16:18:23]Write to MH i2c: 01 00 00 52 04 56 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: 01 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: 01 07 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 FF 0F 6B [16:18:23]RasterBufferAndPrint [16:18:23]line Счет N : (1)449834 [16:18:23]line ИНН: 02508201610067 [16:18:23]line Контрольно-Кассовый Чек [16:18:23]line ПРОДАЖА [16:18:23]line ТРК (МРК, ГНК) : 62 [16:18:23]line Товар: 2710124130 [16:18:23]line Аи-92-К-2 [16:18:23]line 14.950 * 66.90 [16:18:23]line = 1000.16 [16:18:23]line НДС 12% НСП 1% [16:18:23]line > о реализуемом товаре [16:18:23]line ИТОГО: 1000.16 [16:18:23]line НСП 1% : 8.85 [16:18:23]line НДС 12% : 106.21 [16:18:23]line Наличными: 0.00 [16:18:23]line Безнал.: 1000.16 [16:18:23]line Место: АЗС № 171 "Партнер Нефть" [16:18:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:18:23]line СНО: Общий режим [16:18:23]line Чек 358 27.10.2024 16:18 [16:18:23]line Смена: 544 ФФД: 1.0 [16:18:23]line ЗНМ: 0300000109 [16:18:23]line РНМ: 0000000000091777 [16:18:23]line Версия ККМ: 001 [16:18:23]line Платежная система: Mbank [16:18:23]line ФМ: 0000000000871756 [16:18:23]line ФД: 202066 [16:18:23]line ФПД: 5954720800835 [16:18:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161822&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202066&fm=5954720800835&tin=02508201610067®Number=0000000000091777&sum=100016 [16:18:23]written 0, free lines is 4095 [16:18:23]OFD Sender: Processing packet 202066 [packets to send 112, broken 111] [16:18:23]ProducePacketName [16:18:23]name=ofd_packets/00202066 [16:18:23]OFD Sender: To server: pG, [16:18:23]CommunicateWithHost lk.salyk.kg:30040 [16:18:23]ConnectInit lk.salyk.kg [16:18:23]Connected sock=10 [16:18:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 41 07 01 83 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 01 00 00 F4 03 04 00 CE 67 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 15 03 00 35 04 06 00 05 6A 71 04 A0 43 77 05 20 E0 9E B5 3D 56 [16:18:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 36 B1 47 00 F8 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 15 03 00 F4 03 04 00 87 13 1E 67 B6 04 01 00 00 CE FC 8C 69 02 18 E1 A6 [16:18:24]CommunicateWithHost err = 0 [16:18:24]CheckOFDResponse [16:18:24]1017 (14) - 77093643461234 [16:18:24]1041 (16) - 0000000000871756 [16:18:24]1040 (4) - 202066 [16:18:24]1012 (4) - 27.10.2024 10:18 [16:18:24]1206 (1) - 0 [16:18:24]OFD Sender: Remove packet 202066 [16:18:24]ProducePacketName [16:18:24]name=ofd_packets/00202066 [16:18:24]NVStorageDeleteData [16:18:24]Write to MH i2c: 01 00 00 7B 04 7F [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 07 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 BE 0C 50 [16:18:24]RasterBufferAndPrint [16:18:24]line [16:18:24]line [16:18:24]line [16:18:24]line [16:18:24]line [16:18:24]written 0, free lines is 3267 [16:18:24]MH_Cut [16:18:24]Write to MH i2c: D1 01 00 82 04 01 58 [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: D1 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: D1 01 00 [16:18:24]MH_I2C_Read... [16:18:24]Read from MH i2c: D1 01 00 82 04 00 57 [16:18:24]Write to MH i2c: 01 00 00 83 04 87 [16:18:24]Write i2c OK [16:18:24]MH_I2C_Read... [16:18:24]OFD Sender: No OFD packet to send [16:18:25]*** Cut start [16:18:25]*** Purtial cut [16:18:25]*** Stage 1: CUTSNS_PIN = 1 [16:18:25]Read from MH i2c: 01 [16:18:25]MH_I2C_Read... [16:18:25]*** Stop cut motor [16:18:25]*** Cut end [16:18:25]Read from MH i2c: 01 07 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 FF 0F 9C [16:18:25]process_action close_receipt done [16:18:25]requested_data is exist [16:18:25]produce_requested_data [16:18:25]requested_item fm.sn is exist - process it [16:18:25]wFMCommunicate request_size=4 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 11 00 00 [16:18:25]Write to MH i2c: E2 08 00 84 04 80 11 00 00 00 00 00 00 02 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 17 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 17 00 84 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 57 [16:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:18:25]wFMCommunicate OK [16:18:25]requested_item fd.num is exist - process it [16:18:25]SAM_PROTO_GetFieldsCounters [16:18:25]wFMCommunicate request_size=4 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 13 00 00 [16:18:25]Write to MH i2c: E2 08 00 85 04 80 13 00 00 00 00 00 00 05 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 62 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 62 00 85 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 52 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:18:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 52 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:25]wFMCommunicate OK [16:18:25]SAM_PROTO_GetFieldsCounters done [16:18:25]requested_item shift.num is exist - process it [16:18:25]requested_item shift.opened is exist - process it [16:18:25]req_shift_opened [16:18:25]FM_GetShiftState [16:18:25]SAM_PROTO_GetShiftState [16:18:25]wFMCommunicate request_size=4 [16:18:25]MH_SAM_APDU [16:18:25]CAPDU: 80 13 01 00 [16:18:25]Write to MH i2c: E2 08 00 86 04 80 13 01 00 00 00 00 00 07 [16:18:25]Write i2c OK [16:18:25]MH_I2C_Read... [16:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:25]Read from MH i2c: E2 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 0E 00 [16:18:25]MH_I2C_Read... [16:18:25]Read from MH i2c: E2 0E 00 86 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 09 [16:18:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:18:25]wFMCommunicate OK [16:18:25]SAM_PROTO_GetShiftState done [16:18:25]FM_GetShiftState done [16:18:25]req_shift_opened done [16:18:25]requested_item shift.open_date is exist - process it [16:18:25]req_shift_open_date [16:18:25]req_shift_open_date done [16:18:25]produce_requested_data done [16:18:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202066,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:18:25]process_action_free close_receipt [16:18:25]json_value_free [16:18:25]json_value_free done [16:18:25]process_json_proto returns [16:18:25]Send response to host [16:18:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202066,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:18:25]free response buf [16:18:25]execute_script done [16:18:25]execute_script returns [16:18:25]free content buf [16:18:25]Sock 8.Close socket [16:18:25]Sock 8.Thread stoped [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:04]accept exits with 9 [16:21:04]New connection [16:21:04]New thread 3067288932 created [16:21:04]Thread 3067432292 joined [16:21:04]Waiting for new connection... [16:21:04] Sock 9.Parse request [16:21:04]Sock 9.Check first char [16:21:04]Sock 9.First char is OK [16:21:04]request: POST /json_proto HTTP/1.0 [16:21:04]Method: POST [16:21:04]URL: /json_proto [16:21:04]Method is POST - this is cgi request [16:21:04]url: /json_proto [16:21:04]query_string will be loaded in cgi processing [16:21:04]execute_cgi json_proto POST (null) [16:21:04]execute_cgi path=json_proto method=POST [16:21:04]POST find Content-Length [16:21:04]Host: 172.17.63.195:8080 [16:21:04]Content-Length: 759 [16:21:04]Content-Type: application/json [16:21:04] [16:21:04]POST finish read [16:21:04]Found Content-Length = 759 [16:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:04]execute_script... [16:21: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)449835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:04]POST & json_proto [16:21:04]process_json_proto [16:21:04]json parsed OK: [16:21:04]protocol is kg_v1.0 [16:21:04]action value=close_receipt [16:21:04]process_action close_receipt [16:21:04]cmd_close_receipt [16:21:04]MH_GetDate [16:21:04]Write to MH i2c: F0 00 00 87 04 7A [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: F0 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: F0 09 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: F0 09 00 87 04 00 71 68 1E 67 47 1B 1E 67 C8 [16:21:04]GetLastDocTimeStamp 1730045902 [16:21:04]current date 1730046065 [16:21:04]FM_GetShiftState [16:21:04]SAM_PROTO_GetShiftState [16:21:04]wFMCommunicate request_size=4 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 13 01 00 [16:21:04]Write to MH i2c: E2 08 00 88 04 80 13 01 00 00 00 00 00 09 [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 0E 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 0E 00 88 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0B [16:21:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:21:04]wFMCommunicate OK [16:21:04]SAM_PROTO_GetShiftState done [16:21:04]FM_GetShiftState done [16:21:04]opened in 1729987312 [16:21:04]opened+sec_in_day 1730073712 [16:21:04]quantity*price = 50000 [16:21:04]sum+1 = 50001 [16:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 359 27.10.2024 16:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202067 ФПД: 22907064002720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162105&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202067&fm=22907064002720&tin=02508201610067®Number=0000000000091777&sum=50000 [16:21:06]StoreToDocumentArchive [16:21:06]shift 544 fd 202067 [16:21:06]save to /storage/0544/doc_00202067 [16:21:06]save last doc name /storage/0544/doc_00202067 to /storage/kkm_last_doc_name [16:21:06]save OK [16:21:06]Clear old archive folders... [16:21:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:21:06]tlvbuf is 01C7AC40 [16:21:06]SAM_PROTO_ClearQueue [16:21:06]wFMCommunicate request_size=4 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 09 00 00 [16:21:06]Write to MH i2c: E2 08 00 95 04 80 09 00 00 00 00 00 00 0B [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [16:21:06]RAPDU: 90 00 [16:21:06]wFMCommunicate OK [16:21:06]SAM_PROTO_ClearQueue done [16:21:06]KKMCreateOFDPacket [16:21:06]OFDProtocolAddRootSTLVToBuf [16:21:06]FM_MakeSignedData [16:21:06]FM_MakeSignedData [16:21:06]SAM_PROTO_SignData [16:21:06]wFMCommunicate request_size=4 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 0D 01 02 [16:21:06]Write to MH i2c: E2 08 00 96 04 80 0D 01 02 00 00 00 00 13 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [16:21:06]RAPDU: 90 00 [16:21:06]wFMCommunicate OK [16:21:06]wFMCommunicate request_size=255 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 71 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 15 03 00 35 04 06 00 [16:21:06]Write to MH i2c: E2 02 01 97 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 71 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 15 03 00 35 04 06 00 00 00 57 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [16:21:06]RAPDU: 90 00 [16:21:06]wFMCommunicate OK [16:21:06]wFMCommunicate request_size=11 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 0D 02 02 06 14 D5 77 69 A8 A0 [16:21:06]Write to MH i2c: E2 0E 00 98 04 80 0D 02 02 06 00 14 D5 77 69 A8 A0 00 00 33 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [16:21:06]RAPDU: 90 00 [16:21:06]wFMCommunicate OK [16:21:06]wFMCommunicate request_size=4 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 0D 03 02 [16:21:06]Write to MH i2c: E2 08 00 99 04 80 0D 03 02 00 00 00 00 18 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 0B 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 0B 00 99 04 00 1B BD 63 A1 F9 E5 A1 9B 90 00 0F [16:21:06]RAPDU: 1B BD 63 A1 F9 E5 A1 9B 90 00 [16:21:06]wFMCommunicate OK [16:21:06]SAM_PROTO_SignData done [16:21:06]FM_MakeSignedData done [16:21:06]CreateOFDProtocolMessage [16:21:06]wFMCommunicate request_size=4 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 11 00 00 [16:21:06]Write to MH i2c: E2 08 00 9A 04 80 11 00 00 00 00 00 00 18 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 17 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 17 00 9A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [16:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:21:06]wFMCommunicate OK [16:21:06]CreateOFDProtocolMessage done [16:21:06]OFDSenderStorePacket 202067 [16:21:06]StoreOFDPacket docnum=202067 [16:21:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 61 BD 08 01 39 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 71 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 15 03 00 35 04 06 00 14 D5 77 69 A8 A0 1B BD 63 A1 F9 E5 A1 9B [16:21:06]CheckFolder [16:21:06]dirname=/storage/ofd_packets [16:21:06]CheckFolder done [16:21:06]ProducePacketName [16:21:06]name=ofd_packets/00202067 [16:21:06]NVStorageSaveData ofd_packets/00202067 [16:21:06]File name is /storage/ofd_packets/00202067 [16:21:06]Write 302 bytes [16:21:06]NVStorageSaveData done [16:21:06]OFDSenderStorePacket done [16:21:06]KKMCreateOFDPacket done [16:21:06]NVStorageSaveData kkm_last_timestamp [16:21:06]File name is /storage/kkm_last_timestamp [16:21:06]Write 4 bytes [16:21:06]NVStorageSaveData done [16:21:06]ExternCall_PrintAddStr [16:21:06]wPrintStart [16:21:06]Write to MH i2c: 01 00 00 9B 04 9F [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 07 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 07 00 9B 04 00 00 00 00 00 FF 0F B4 [16:21:06]RasterBufferAndPrint [16:21:06]line Счет N : (1)449835 [16:21:06]line ИНН: 02508201610067 [16:21:06]line Контрольно-Кассовый Чек [16:21:06]line ПРОДАЖА [16:21:06]line ТРК (МРК, ГНК) : 42 [16:21:06]line Товар: 2710124130 [16:21:06]line SUPER 92-К-5 [16:21:06]line 7.310 * 68.40 [16:21:06]line = 500.00 [16:21:06]line НДС 12% НСП 1% [16:21:06]line > о реализуемом товаре [16:21:06]line ИТОГО: 500.00 [16:21:06]line НСП 1% : 4.42 [16:21:06]line НДС 12% : 53.10 [16:21:06]line Наличными: 0.00 [16:21:06]line Безнал.: 500.00 [16:21:06]line Место: АЗС № 171 "Партнер Нефть" [16:21:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:21:06]line СНО: Общий режим [16:21:06]line Чек 359 27.10.2024 16:21 [16:21:06]line Смена: 544 ФФД: 1.0 [16:21:06]line ЗНМ: 0300000109 [16:21:06]line РНМ: 0000000000091777 [16:21:06]line Версия ККМ: 001 [16:21:06]line Платежная система: Mbank [16:21:06]line ФМ: 0000000000871756 [16:21:06]line ФД: 202067 [16:21:06]line ФПД: 22907064002720 [16:21:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162105&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202067&fm=22907064002720&tin=02508201610067®Number=0000000000091777&sum=50000 [16:21:06]OFD Sender: Processing packet 202067 [packets to send 112, broken 111] [16:21:06]ProducePacketName [16:21:06]name=ofd_packets/00202067 [16:21:06]OFD Sender: To server: pG, [16:21:06]CommunicateWithHost lk.salyk.kg:30040 [16:21:06]ConnectInit lk.salyk.kg [16:21:06]written 0, free lines is 4095 [16:21:07]Connected sock=10 [16:21:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 61 BD 08 01 39 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 71 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 15 03 00 35 04 06 00 14 D5 77 69 A8 A0 1B BD 63 A1 F9 E5 A1 9B [16:21:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 44 90 47 00 4D 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 15 03 00 F4 03 04 00 2B 14 1E 67 B6 04 01 00 00 D7 D4 18 7E CD D3 81 4F [16:21:07]CommunicateWithHost err = 0 [16:21:07]CheckOFDResponse [16:21:07]1017 (14) - 77093643461234 [16:21:07]1041 (16) - 0000000000871756 [16:21:07]1040 (4) - 202067 [16:21:07]1012 (4) - 27.10.2024 10:21 [16:21:07]1206 (1) - 0 [16:21:07]OFD Sender: Remove packet 202067 [16:21:07]ProducePacketName [16:21:07]name=ofd_packets/00202067 [16:21:07]NVStorageDeleteData [16:21:07]Write to MH i2c: 01 00 00 C4 04 C8 [16:21:07]Write i2c OK [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: 01 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: 01 07 00 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 BA 0C 95 [16:21:07]RasterBufferAndPrint [16:21:07]line [16:21:07]line [16:21:07]line [16:21:07]line [16:21:07]line [16:21:07]written 0, free lines is 3262 [16:21:07]MH_Cut [16:21:07]Write to MH i2c: D1 01 00 CB 04 01 A1 [16:21:07]Write i2c OK [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: D1 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: D1 01 00 [16:21:07]MH_I2C_Read... [16:21:07]Read from MH i2c: D1 01 00 CB 04 00 A0 [16:21:07]Write to MH i2c: 01 00 00 CC 04 D0 [16:21:07]Write i2c OK [16:21:07]MH_I2C_Read... [16:21:07]OFD Sender: No OFD packet to send [16:21:08]*** Cut start [16:21:08]*** Purtial cut [16:21:08]*** Stage 1: CUTSNS_PIN = 1 [16:21:08]Read from MH i2c: 01 [16:21:08]MH_I2C_Read... [16:21:08]*** Stop cut motor [16:21:08]*** Cut end [16:21:08]Read from MH i2c: 01 07 00 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [16:21:08]process_action close_receipt done [16:21:08]requested_data is exist [16:21:08]produce_requested_data [16:21:08]requested_item fm.sn is exist - process it [16:21:08]wFMCommunicate request_size=4 [16:21:08]MH_SAM_APDU [16:21:08]CAPDU: 80 11 00 00 [16:21:08]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [16:21:08]Write i2c OK [16:21:08]MH_I2C_Read... [16:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:08]Read from MH i2c: E2 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 17 00 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A0 [16:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:21:08]wFMCommunicate OK [16:21:08]requested_item fd.num is exist - process it [16:21:08]SAM_PROTO_GetFieldsCounters [16:21:08]wFMCommunicate request_size=4 [16:21:08]MH_SAM_APDU [16:21:08]CAPDU: 80 13 00 00 [16:21:08]Write to MH i2c: E2 08 00 CE 04 80 13 00 00 00 00 00 00 4E [16:21:08]Write i2c OK [16:21:08]MH_I2C_Read... [16:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:08]Read from MH i2c: E2 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 62 00 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 62 00 CE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 53 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:21:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 53 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:08]wFMCommunicate OK [16:21:08]SAM_PROTO_GetFieldsCounters done [16:21:08]requested_item shift.num is exist - process it [16:21:08]requested_item shift.opened is exist - process it [16:21:08]req_shift_opened [16:21:08]FM_GetShiftState [16:21:08]SAM_PROTO_GetShiftState [16:21:08]wFMCommunicate request_size=4 [16:21:08]MH_SAM_APDU [16:21:08]CAPDU: 80 13 01 00 [16:21:08]Write to MH i2c: E2 08 00 CF 04 80 13 01 00 00 00 00 00 50 [16:21:08]Write i2c OK [16:21:08]MH_I2C_Read... [16:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:08]Read from MH i2c: E2 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 0E 00 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 0E 00 CF 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 52 [16:21:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:21:08]wFMCommunicate OK [16:21:08]SAM_PROTO_GetShiftState done [16:21:08]FM_GetShiftState done [16:21:08]req_shift_opened done [16:21:08]requested_item shift.open_date is exist - process it [16:21:08]req_shift_open_date [16:21:08]req_shift_open_date done [16:21:08]produce_requested_data done [16:21:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202067,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:21:08]process_action_free close_receipt [16:21:08]json_value_free [16:21:08]json_value_free done [16:21:08]process_json_proto returns [16:21:08]Send response to host [16:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202067,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:21:08]free response buf [16:21:08]execute_script done [16:21:08]execute_script returns [16:21:08]free content buf [16:21:08]Sock 9.Close socket [16:21:08]Sock 9.Thread stoped [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:34]accept exits with 8 [16:21:34]New connection [16:21:34]New thread 3067432292 created [16:21:34]Thread 3067288932 joined [16:21:34]Waiting for new connection... [16:21:34] Sock 8.Parse request [16:21:34]Sock 8.Check first char [16:21:34]Sock 8.First char is OK [16:21:34]request: POST /json_proto HTTP/1.0 [16:21:34]Method: POST [16:21:34]URL: /json_proto [16:21:34]Method is POST - this is cgi request [16:21:34]url: /json_proto [16:21:34]query_string will be loaded in cgi processing [16:21:34]execute_cgi json_proto POST (null) [16:21:34]execute_cgi path=json_proto method=POST [16:21:34]POST find Content-Length [16:21:34]Host: 172.17.63.195:8080 [16:21:34]Content-Length: 762 [16:21:34]Content-Type: application/json [16:21:34] [16:21:34]POST finish read [16:21:34]Found Content-Length = 762 [16:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449837", "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" : 20.470, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1400.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:34]execute_script... [16:21:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449837", "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" : 20.470, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1400.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:34]POST & json_proto [16:21:34]process_json_proto [16:21:34]json parsed OK: [16:21:34]protocol is kg_v1.0 [16:21:34]action value=close_receipt [16:21:34]process_action close_receipt [16:21:34]cmd_close_receipt [16:21:34]MH_GetDate [16:21:34]Write to MH i2c: F0 00 00 D0 04 C3 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: F0 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: F0 09 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: F0 09 00 D0 04 00 8E 68 1E 67 47 1B 1E 67 2E [16:21:34]GetLastDocTimeStamp 1730046065 [16:21:34]current date 1730046094 [16:21:34]FM_GetShiftState [16:21:34]SAM_PROTO_GetShiftState [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 13 01 00 [16:21:34]Write to MH i2c: E2 08 00 D1 04 80 13 01 00 00 00 00 00 52 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 0E 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 0E 00 D1 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 54 [16:21:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:21:34]wFMCommunicate OK [16:21:34]SAM_PROTO_GetShiftState done [16:21:34]FM_GetShiftState done [16:21:34]opened in 1729987312 [16:21:34]opened+sec_in_day 1730073712 [16:21:34]quantity*price = 140014 [16:21:34]sum+1 = 140016 [16:21:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.15 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 0.00 Безнал.: 1400.15 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 360 27.10.2024 16:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202068 ФПД: 16152244113407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162134&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202068&fm=16152244113407&tin=02508201610067®Number=0000000000091777&sum=140015 [16:21:35]StoreToDocumentArchive [16:21:35]shift 544 fd 202068 [16:21:35]save to /storage/0544/doc_00202068 [16:21:35]save last doc name /storage/0544/doc_00202068 to /storage/kkm_last_doc_name [16:21:35]save OK [16:21:35]Clear old archive folders... [16:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:21:35]tlvbuf is 01C75B80 [16:21:35]SAM_PROTO_ClearQueue [16:21:35]wFMCommunicate request_size=4 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 09 00 00 [16:21:35]Write to MH i2c: E2 08 00 DE 04 80 09 00 00 00 00 00 00 54 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [16:21:35]RAPDU: 90 00 [16:21:35]wFMCommunicate OK [16:21:35]SAM_PROTO_ClearQueue done [16:21:35]KKMCreateOFDPacket [16:21:35]OFDProtocolAddRootSTLVToBuf [16:21:35]FM_MakeSignedData [16:21:35]FM_MakeSignedData [16:21:35]SAM_PROTO_SignData [16:21:35]wFMCommunicate request_size=4 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 0D 01 02 [16:21:35]Write to MH i2c: E2 08 00 DF 04 80 0D 01 02 00 00 00 00 5C [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 DF 04 00 90 00 57 [16:21:35]RAPDU: 90 00 [16:21:35]wFMCommunicate OK [16:21:35]wFMCommunicate request_size=255 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 8E 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 15 03 00 35 04 06 00 [16:21:35]Write to MH i2c: E2 02 01 E0 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 8E 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 15 03 00 35 04 06 00 00 00 F7 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [16:21:35]RAPDU: 90 00 [16:21:35]wFMCommunicate OK [16:21:35]wFMCommunicate request_size=11 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 0D 02 02 06 0E B0 BC C5 CF FF [16:21:35]Write to MH i2c: E2 0E 00 E1 04 80 0D 02 02 06 00 0E B0 BC C5 CF FF 00 00 78 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [16:21:35]RAPDU: 90 00 [16:21:35]wFMCommunicate OK [16:21:35]wFMCommunicate request_size=4 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 0D 03 02 [16:21:35]Write to MH i2c: E2 08 00 E2 04 80 0D 03 02 00 00 00 00 61 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 0B 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 0B 00 E2 04 00 5D AE D2 F1 3F 5C B5 56 90 00 D6 [16:21:35]RAPDU: 5D AE D2 F1 3F 5C B5 56 90 00 [16:21:35]wFMCommunicate OK [16:21:35]SAM_PROTO_SignData done [16:21:35]FM_MakeSignedData done [16:21:35]CreateOFDProtocolMessage [16:21:35]wFMCommunicate request_size=4 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 11 00 00 [16:21:35]Write to MH i2c: E2 08 00 E3 04 80 11 00 00 00 00 00 00 61 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 17 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 17 00 E3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B6 [16:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:21:35]wFMCommunicate OK [16:21:35]CreateOFDProtocolMessage done [16:21:35]OFDSenderStorePacket 202068 [16:21:35]StoreOFDPacket docnum=202068 [16:21:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 0C 32 08 01 8F 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 8E 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 15 03 00 35 04 06 00 0E B0 BC C5 CF FF 5D AE D2 F1 3F 5C B5 56 [16:21:35]CheckFolder [16:21:35]dirname=/storage/ofd_packets [16:21:35]CheckFolder done [16:21:35]ProducePacketName [16:21:35]name=ofd_packets/00202068 [16:21:35]NVStorageSaveData ofd_packets/00202068 [16:21:35]File name is /storage/ofd_packets/00202068 [16:21:35]Write 302 bytes [16:21:35]NVStorageSaveData done [16:21:35]OFDSenderStorePacket done [16:21:35]KKMCreateOFDPacket done [16:21:35]NVStorageSaveData kkm_last_timestamp [16:21:35]File name is /storage/kkm_last_timestamp [16:21:35]Write 4 bytes [16:21:35]NVStorageSaveData done [16:21:35]ExternCall_PrintAddStr [16:21:35]wPrintStart [16:21:35]Write to MH i2c: 01 00 00 E4 04 E8 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 07 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 FF 0F FD [16:21:35]RasterBufferAndPrint [16:21:35]line Счет N : (1)449837 [16:21:35]line ИНН: 02508201610067 [16:21:35]line Контрольно-Кассовый Чек [16:21:35]line ПРОДАЖА [16:21:35]line ТРК (МРК, ГНК) : 53 [16:21:35]line Товар: 2710124130 [16:21:35]line SUPER 92-К-5 [16:21:35]line 20.470 * 68.40 [16:21:35]line = 1400.15 [16:21:35]line НДС 12% НСП 1% [16:21:35]line > о реализуемом товаре [16:21:35]line ИТОГО: 1400.15 [16:21:35]line НСП 1% : 12.39 [16:21:35]line НДС 12% : 148.69 [16:21:35]line Наличными: 0.00 [16:21:35]line Безнал.: 1400.15 [16:21:35]line Место: АЗС № 171 "Партнер Нефть" [16:21:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:21:35]line СНО: Общий режим [16:21:35]line Чек 360 27.10.2024 16:21 [16:21:35]line Смена: 544 ФФД: 1.0 [16:21:35]line ЗНМ: 0300000109 [16:21:35]line РНМ: 0000000000091777 [16:21:35]line Версия ККМ: 001 [16:21:35]line Платежная система: Mbank [16:21:35]line ФМ: 0000000000871756 [16:21:35]line ФД: 202068 [16:21:35]line ФПД: 16152244113407 [16:21:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162134&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202068&fm=16152244113407&tin=02508201610067®Number=0000000000091777&sum=140015 [16:21:36]written 0, free lines is 4095 [16:21:36]OFD Sender: Processing packet 202068 [packets to send 112, broken 111] [16:21:36]ProducePacketName [16:21:36]name=ofd_packets/00202068 [16:21:36]OFD Sender: To server: pG, [16:21:36]CommunicateWithHost lk.salyk.kg:30040 [16:21:36]ConnectInit lk.salyk.kg [16:21:36]Connected sock=10 [16:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 0C 32 08 01 8F 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 8E 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 15 03 00 35 04 06 00 0E B0 BC C5 CF FF 5D AE D2 F1 3F 5C B5 56 [16:21:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD 20 47 00 30 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 15 03 00 F4 03 04 00 48 14 1E 67 B6 04 01 00 00 24 74 C8 A1 5A BA 3D 4F [16:21:36]CommunicateWithHost err = 0 [16:21:36]CheckOFDResponse [16:21:36]1017 (14) - 77093643461234 [16:21:36]1041 (16) - 0000000000871756 [16:21:36]1040 (4) - 202068 [16:21:36]1012 (4) - 27.10.2024 10:22 [16:21:36]1206 (1) - 0 [16:21:36]OFD Sender: Remove packet 202068 [16:21:36]ProducePacketName [16:21:36]name=ofd_packets/00202068 [16:21:36]NVStorageDeleteData [16:21:36]Write to MH i2c: 01 00 00 0D 05 12 [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: 01 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: 01 07 00 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: 01 07 00 0D 05 00 00 00 00 00 B9 0C DE [16:21:36]RasterBufferAndPrint [16:21:36]line [16:21:36]line [16:21:36]line [16:21:36]line [16:21:36]line [16:21:36]written 0, free lines is 3260 [16:21:36]MH_Cut [16:21:36]Write to MH i2c: D1 01 00 14 05 01 EB [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: D1 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: D1 01 00 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: D1 01 00 14 05 00 EA [16:21:36]Write to MH i2c: 01 00 00 15 05 1A [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]OFD Sender: No OFD packet to send [16:21:37]*** Cut start [16:21:37]*** Purtial cut [16:21:37]*** Stage 1: CUTSNS_PIN = 1 [16:21:37]Read from MH i2c: 01 [16:21:37]MH_I2C_Read... [16:21:37]*** Stop cut motor [16:21:37]*** Cut end [16:21:37]Read from MH i2c: 01 07 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: 01 07 00 15 05 00 00 00 00 00 FF 0F 2F [16:21:37]process_action close_receipt done [16:21:37]requested_data is exist [16:21:37]produce_requested_data [16:21:37]requested_item fm.sn is exist - process it [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 11 00 00 [16:21:37]Write to MH i2c: E2 08 00 16 05 80 11 00 00 00 00 00 00 95 [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 17 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 17 00 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [16:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:21:37]wFMCommunicate OK [16:21:37]requested_item fd.num is exist - process it [16:21:37]SAM_PROTO_GetFieldsCounters [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 13 00 00 [16:21:37]Write to MH i2c: E2 08 00 17 05 80 13 00 00 00 00 00 00 98 [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 62 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 62 00 17 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 54 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [16:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 54 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:37]wFMCommunicate OK [16:21:37]SAM_PROTO_GetFieldsCounters done [16:21:37]requested_item shift.num is exist - process it [16:21:37]requested_item shift.opened is exist - process it [16:21:37]req_shift_opened [16:21:37]FM_GetShiftState [16:21:37]SAM_PROTO_GetShiftState [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 13 01 00 [16:21:37]Write to MH i2c: E2 08 00 18 05 80 13 01 00 00 00 00 00 9A [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 0E 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 0E 00 18 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9C [16:21:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:21:37]wFMCommunicate OK [16:21:37]SAM_PROTO_GetShiftState done [16:21:37]FM_GetShiftState done [16:21:37]req_shift_opened done [16:21:37]requested_item shift.open_date is exist - process it [16:21:37]req_shift_open_date [16:21:37]req_shift_open_date done [16:21:37]produce_requested_data done [16:21:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202068,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:21:37]process_action_free close_receipt [16:21:37]json_value_free [16:21:37]json_value_free done [16:21:37]process_json_proto returns [16:21:37]Send response to host [16:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202068,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:21:37]free response buf [16:21:37]execute_script done [16:21:37]execute_script returns [16:21:37]free content buf [16:21:37]Sock 8.Close socket [16:21:37]Sock 8.Thread stoped [16:21:41]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:52]accept exits with 9 [16:21:52]New connection [16:21:52]New thread 3067288932 created [16:21:52]Thread 3067432292 joined [16:21:52]Waiting for new connection... [16:21:52] Sock 9.Parse request [16:21:52]Sock 9.Check first char [16:21:52]Sock 9.First char is OK [16:21:52]request: POST /json_proto HTTP/1.0 [16:21:52]Method: POST [16:21:52]URL: /json_proto [16:21:52]Method is POST - this is cgi request [16:21:52]url: /json_proto [16:21:52]query_string will be loaded in cgi processing [16:21:52]execute_cgi json_proto POST (null) [16:21:52]execute_cgi path=json_proto method=POST [16:21:52]POST find Content-Length [16:21:52]Host: 172.17.63.195:8080 [16:21:52]Content-Length: 677 [16:21:52]Content-Type: application/json [16:21:52] [16:21:52]POST finish read [16:21:52]Found Content-Length = 677 [16:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:52]execute_script... [16: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 : (1)449838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.080, "sum" : 540.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:52]POST & json_proto [16:21:52]process_json_proto [16:21:52]json parsed OK: [16:21:52]protocol is kg_v1.0 [16:21:52]action value=close_receipt [16:21:52]process_action close_receipt [16:21:52]cmd_close_receipt [16:21:52]MH_GetDate [16:21:52]Write to MH i2c: F0 00 00 19 05 0D [16:21:52]Write i2c OK [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: F0 [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: F0 09 00 [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: F0 09 00 19 05 00 A1 68 1E 67 47 1B 1E 67 8B [16:21:52]GetLastDocTimeStamp 1730046094 [16:21:52]current date 1730046113 [16:21:52]FM_GetShiftState [16:21:52]SAM_PROTO_GetShiftState [16:21:52]wFMCommunicate request_size=4 [16:21:52]MH_SAM_APDU [16:21:52]CAPDU: 80 13 01 00 [16:21:52]Write to MH i2c: E2 08 00 1A 05 80 13 01 00 00 00 00 00 9C [16:21:52]Write i2c OK [16:21:52]MH_I2C_Read... [16:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:52]Read from MH i2c: E2 [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: E2 0E 00 [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: E2 0E 00 1A 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9E [16:21:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:21:52]wFMCommunicate OK [16:21:52]SAM_PROTO_GetShiftState done [16:21:52]FM_GetShiftState done [16:21:52]opened in 1729987312 [16:21:52]opened+sec_in_day 1730073712 [16:21:52]quantity*price = 54055 [16:21:52]sum+1 = 54056 [16:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.40 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 361 27.10.2024 16:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202069 ФПД: 263326447036453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162153&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202069&fm=263326447036453&tin=02508201610067®Number=0000000000091777&sum=54000 [16:21:53]StoreToDocumentArchive [16:21:53]shift 544 fd 202069 [16:21:53]save to /storage/0544/doc_00202069 [16:21:53]save last doc name /storage/0544/doc_00202069 to /storage/kkm_last_doc_name [16:21:53]save OK [16:21:53]Clear old archive folders... [16:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:53]tlvbuf is 01C72330 [16:21:53]SAM_PROTO_ClearQueue [16:21:53]wFMCommunicate request_size=4 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 09 00 00 [16:21:53]Write to MH i2c: E2 08 00 27 05 80 09 00 00 00 00 00 00 9E [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:53]Read from MH i2c: E2 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [16:21:53]RAPDU: 90 00 [16:21:53]wFMCommunicate OK [16:21:53]SAM_PROTO_ClearQueue done [16:21:53]KKMCreateOFDPacket [16:21:53]OFDProtocolAddRootSTLVToBuf [16:21:53]FM_MakeSignedData [16:21:53]FM_MakeSignedData [16:21:53]SAM_PROTO_SignData [16:21:53]wFMCommunicate request_size=4 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 0D 01 02 [16:21:53]Write to MH i2c: E2 08 00 28 05 80 0D 01 02 00 00 00 00 A6 [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:53]Read from MH i2c: E2 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [16:21:53]RAPDU: 90 00 [16:21:53]wFMCommunicate OK [16:21:53]wFMCommunicate request_size=255 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 A1 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 15 03 00 35 04 06 00 EF [16:21:53]Write to MH i2c: E2 02 01 29 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 A1 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 15 03 00 35 04 06 00 EF 00 00 F5 [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:54]Read from MH i2c: E2 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 03 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [16:21:54]RAPDU: 90 00 [16:21:54]wFMCommunicate OK [16:21:54]wFMCommunicate request_size=10 [16:21:54]MH_SAM_APDU [16:21:54]CAPDU: 80 0D 02 02 05 7E 77 55 E8 25 [16:21:54]Write to MH i2c: E2 0D 00 2A 05 80 0D 02 02 05 00 7E 77 55 E8 25 00 00 0A [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:54]Read from MH i2c: E2 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 03 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [16:21:54]RAPDU: 90 00 [16:21:54]wFMCommunicate OK [16:21:54]wFMCommunicate request_size=4 [16:21:54]MH_SAM_APDU [16:21:54]CAPDU: 80 0D 03 02 [16:21:54]Write to MH i2c: E2 08 00 2B 05 80 0D 03 02 00 00 00 00 AB [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:54]Read from MH i2c: E2 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 0B 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 0B 00 2B 05 00 25 CB 16 DE 27 D0 D6 C2 90 00 1F [16:21:54]RAPDU: 25 CB 16 DE 27 D0 D6 C2 90 00 [16:21:54]wFMCommunicate OK [16:21:54]SAM_PROTO_SignData done [16:21:54]FM_MakeSignedData done [16:21:54]CreateOFDProtocolMessage [16:21:54]wFMCommunicate request_size=4 [16:21:54]MH_SAM_APDU [16:21:54]CAPDU: 80 11 00 00 [16:21:54]Write to MH i2c: E2 08 00 2C 05 80 11 00 00 00 00 00 00 AB [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:54]Read from MH i2c: E2 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 17 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: E2 17 00 2C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [16:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:21:54]wFMCommunicate OK [16:21:54]CreateOFDProtocolMessage done [16:21:54]OFDSenderStorePacket 202069 [16:21:54]StoreOFDPacket docnum=202069 [16:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F3 7E 07 01 C7 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 A1 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 15 03 00 35 04 06 00 EF 7E 77 55 E8 25 25 CB 16 DE 27 D0 D6 C2 [16:21:54]CheckFolder [16:21:54]dirname=/storage/ofd_packets [16:21:54]CheckFolder done [16:21:54]ProducePacketName [16:21:54]name=ofd_packets/00202069 [16:21:54]NVStorageSaveData ofd_packets/00202069 [16:21:54]File name is /storage/ofd_packets/00202069 [16:21:54]Write 301 bytes [16:21:54]NVStorageSaveData done [16:21:54]OFDSenderStorePacket done [16:21:54]KKMCreateOFDPacket done [16:21:54]NVStorageSaveData kkm_last_timestamp [16:21:54]File name is /storage/kkm_last_timestamp [16:21:54]Write 4 bytes [16:21:54]NVStorageSaveData done [16:21:54]ExternCall_PrintAddStr [16:21:54]wPrintStart [16:21:54]Write to MH i2c: 01 00 00 2D 05 32 [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 07 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 07 00 2D 05 00 00 00 00 00 FF 0F 47 [16:21:54]RasterBufferAndPrint [16:21:54]line Счет N : (1)449838 [16:21:54]line ИНН: 02508201610067 [16:21:54]line Контрольно-Кассовый Чек [16:21:54]line ПРОДАЖА [16:21:54]line ТРК (МРК, ГНК) : 31 [16:21:54]line Товар: 2710124130 [16:21:54]line Аи-92-К-2 [16:21:54]line 8.080 * 66.90 [16:21:54]line = 540.55 [16:21:54]line НДС 12% НСП 1% [16:21:54]line > о реализуемом товаре [16:21:54]line ОКРУГЛЕНИЕ: -0.55 [16:21:54]line ИТОГО: 540.00 [16:21:54]line Внесено: 540.00 [16:21:54]line СДАЧА: 0.00 [16:21:54]line НСП 1% : 4.78 [16:21:54]line НДС 12% : 57.40 [16:21:54]line Наличными: 540.00 [16:21:54]line Безнал.: 0.00 [16:21:54]line Место: АЗС № 171 "Партнер Нефть" [16:21:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:21:54]line СНО: Общий режим [16:21:54]line Чек 361 27.10.2024 16:21 [16:21:54]line Смена: 544 ФФД: 1.0 [16:21:54]line ЗНМ: 0300000109 [16:21:54]line РНМ: 0000000000091777 [16:21:54]line Версия ККМ: 001 [16:21:54]line ФМ: 0000000000871756 [16:21:54]line ФД: 202069 [16:21:54]line ФПД: 263326447036453 [16:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162153&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202069&fm=263326447036453&tin=02508201610067®Number=0000000000091777&sum=54000 [16:21:54]OFD Sender: Processing packet 202069 [packets to send 112, broken 111] [16:21:54]ProducePacketName [16:21:54]name=ofd_packets/00202069 [16:21:54]OFD Sender: To server: pG, [16:21:54]CommunicateWithHost lk.salyk.kg:30040 [16:21:54]ConnectInit lk.salyk.kg [16:21:54]written 0, free lines is 4095 [16:21:54]Connected sock=10 [16:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F3 7E 07 01 C7 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 27 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 A1 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 15 03 00 35 04 06 00 EF 7E 77 55 E8 25 25 CB 16 DE 27 D0 D6 C2 [16:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F8 7F 47 00 FA 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 15 03 00 F4 03 04 00 5A 14 1E 67 B6 04 01 00 00 76 7A 2A 56 CB 1D 4F B7 [16:21:54]CommunicateWithHost err = 0 [16:21:54]CheckOFDResponse [16:21:54]1017 (14) - 77093643461234 [16:21:54]1041 (16) - 0000000000871756 [16:21:54]1040 (4) - 202069 [16:21:54]1012 (4) - 27.10.2024 10:22 [16:21:54]1206 (1) - 0 [16:21:54]OFD Sender: Remove packet 202069 [16:21:54]ProducePacketName [16:21:54]name=ofd_packets/00202069 [16:21:54]NVStorageDeleteData [16:21:55]Write to MH i2c: 01 00 00 58 05 5D [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 07 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 8E 0C FE [16:21:55]RasterBufferAndPrint [16:21:55]line [16:21:55]line [16:21:55]line [16:21:55]line [16:21:55]line [16:21:55]written 0, free lines is 3218 [16:21:55]MH_Cut [16:21:55]Write to MH i2c: D1 01 00 5F 05 01 36 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: D1 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: D1 01 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: D1 01 00 5F 05 00 35 [16:21:55]Write to MH i2c: 01 00 00 60 05 65 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]OFD Sender: No OFD packet to send [16:21:55]*** Cut start [16:21:55]*** Purtial cut [16:21:55]*** Stage 1: CUTSNS_PIN = 1 [16:21:56]Read from MH i2c: 01 [16:21:56]MH_I2C_Read... [16:21:56]*** Stop cut motor [16:21:56]*** Cut end [16:21:56]Read from MH i2c: 01 07 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 FF 0F 7A [16:21:56]process_action close_receipt done [16:21:56]requested_data is exist [16:21:56]produce_requested_data [16:21:56]requested_item fm.sn is exist - process it [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 11 00 00 [16:21:56]Write to MH i2c: E2 08 00 61 05 80 11 00 00 00 00 00 00 E0 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 61 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [16:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:21:56]wFMCommunicate OK [16:21:56]requested_item fd.num is exist - process it [16:21:56]SAM_PROTO_GetFieldsCounters [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 13 00 00 [16:21:56]Write to MH i2c: E2 08 00 62 05 80 13 00 00 00 00 00 00 E3 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 62 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 62 00 62 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 55 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [16:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 55 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_GetFieldsCounters done [16:21:56]requested_item shift.num is exist - process it [16:21:56]requested_item shift.opened is exist - process it [16:21:56]req_shift_opened [16:21:56]FM_GetShiftState [16:21:56]SAM_PROTO_GetShiftState [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 13 01 00 [16:21:56]Write to MH i2c: E2 08 00 63 05 80 13 01 00 00 00 00 00 E5 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0E 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0E 00 63 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E7 [16:21:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_GetShiftState done [16:21:56]FM_GetShiftState done [16:21:56]req_shift_opened done [16:21:56]requested_item shift.open_date is exist - process it [16:21:56]req_shift_open_date [16:21:56]req_shift_open_date done [16:21:56]produce_requested_data done [16:21:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202069,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:21:56]process_action_free close_receipt [16:21:56]json_value_free [16:21:56]json_value_free done [16:21:56]process_json_proto returns [16:21:56]Send response to host [16:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202069,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:21:56]free response buf [16:21:56]execute_script done [16:21:56]execute_script returns [16:21:56]free content buf [16:21:56]Sock 9.Close socket [16:21:56]Sock 9.Thread stoped [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:33]accept exits with 8 [16:22:33]New connection [16:22:33]New thread 3067432292 created [16:22:33]Thread 3067288932 joined [16:22:33]Waiting for new connection... [16:22:33] Sock 8.Parse request [16:22:33]Sock 8.Check first char [16:22:33]Sock 8.First char is OK [16:22:33]request: POST /json_proto HTTP/1.0 [16:22:33]Method: POST [16:22:33]URL: /json_proto [16:22:33]Method is POST - this is cgi request [16:22:33]url: /json_proto [16:22:33]query_string will be loaded in cgi processing [16:22:33]execute_cgi json_proto POST (null) [16:22:33]execute_cgi path=json_proto method=POST [16:22:33]POST find Content-Length [16:22:33]Host: 172.17.63.195:8080 [16:22:33]Content-Length: 677 [16:22:33]Content-Type: application/json [16:22:33] [16:22:33]POST finish read [16:22:33]Found Content-Length = 677 [16:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:33]execute_script... [16:22: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)449839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:33]POST & json_proto [16:22:33]process_json_proto [16:22:33]json parsed OK: [16:22:33]protocol is kg_v1.0 [16:22:33]action value=close_receipt [16:22:33]process_action close_receipt [16:22:33]cmd_close_receipt [16:22:33]MH_GetDate [16:22:33]Write to MH i2c: F0 00 00 64 05 58 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: F0 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: F0 09 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: F0 09 00 64 05 00 C9 68 1E 67 47 1B 1E 67 FE [16:22:33]GetLastDocTimeStamp 1730046113 [16:22:33]current date 1730046153 [16:22:33]FM_GetShiftState [16:22:33]SAM_PROTO_GetShiftState [16:22:33]wFMCommunicate request_size=4 [16:22:33]MH_SAM_APDU [16:22:33]CAPDU: 80 13 01 00 [16:22:33]Write to MH i2c: E2 08 00 65 05 80 13 01 00 00 00 00 00 E7 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:33]Read from MH i2c: E2 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 0E 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 0E 00 65 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E9 [16:22:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:22:33]wFMCommunicate OK [16:22:33]SAM_PROTO_GetShiftState done [16:22:33]FM_GetShiftState done [16:22:33]opened in 1729987312 [16:22:33]opened+sec_in_day 1730073712 [16:22:33]quantity*price = 30038 [16:22:33]sum+1 = 30039 [16:22:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 362 27.10.2024 16:22 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202070 ФПД: 9499372387488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202070&fm=9499372387488&tin=02508201610067®Number=0000000000091777&sum=30000 [16:22:34]StoreToDocumentArchive [16:22:34]shift 544 fd 202070 [16:22:34]save to /storage/0544/doc_00202070 [16:22:34]save last doc name /storage/0544/doc_00202070 to /storage/kkm_last_doc_name [16:22:34]save OK [16:22:34]Clear old archive folders... [16:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:34]tlvbuf is B6FCDC40 [16:22:34]SAM_PROTO_ClearQueue [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 09 00 00 [16:22:34]Write to MH i2c: E2 08 00 72 05 80 09 00 00 00 00 00 00 E9 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 03 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [16:22:34]RAPDU: 90 00 [16:22:34]wFMCommunicate OK [16:22:34]SAM_PROTO_ClearQueue done [16:22:34]KKMCreateOFDPacket [16:22:34]OFDProtocolAddRootSTLVToBuf [16:22:34]FM_MakeSignedData [16:22:34]FM_MakeSignedData [16:22:34]SAM_PROTO_SignData [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 0D 01 02 [16:22:34]Write to MH i2c: E2 08 00 73 05 80 0D 01 02 00 00 00 00 F1 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 03 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [16:22:34]RAPDU: 90 00 [16:22:34]wFMCommunicate OK [16:22:34]wFMCommunicate request_size=255 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 01 00 00 F4 03 04 00 C9 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 15 03 00 35 04 06 00 08 [16:22:34]Write to MH i2c: E2 02 01 74 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 01 00 00 F4 03 04 00 C9 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 15 03 00 35 04 06 00 08 00 00 32 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 03 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [16:22:34]RAPDU: 90 00 [16:22:34]wFMCommunicate OK [16:22:34]wFMCommunicate request_size=10 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 0D 02 02 05 A3 BE B7 7C A0 [16:22:34]Write to MH i2c: E2 0D 00 75 05 80 0D 02 02 05 00 A3 BE B7 7C A0 00 00 32 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 03 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [16:22:34]RAPDU: 90 00 [16:22:34]wFMCommunicate OK [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 0D 03 02 [16:22:34]Write to MH i2c: E2 08 00 76 05 80 0D 03 02 00 00 00 00 F6 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0B 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0B 00 76 05 00 49 82 B6 DB F4 91 4F 68 90 00 8F [16:22:34]RAPDU: 49 82 B6 DB F4 91 4F 68 90 00 [16:22:34]wFMCommunicate OK [16:22:34]SAM_PROTO_SignData done [16:22:34]FM_MakeSignedData done [16:22:34]CreateOFDProtocolMessage [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 11 00 00 [16:22:34]Write to MH i2c: E2 08 00 77 05 80 11 00 00 00 00 00 00 F6 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:35]Read from MH i2c: E2 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 17 00 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 17 00 77 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [16:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:22:35]wFMCommunicate OK [16:22:35]CreateOFDProtocolMessage done [16:22:35]OFDSenderStorePacket 202070 [16:22:35]StoreOFDPacket docnum=202070 [16:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1A F7 07 01 3B EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 01 00 00 F4 03 04 00 C9 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 15 03 00 35 04 06 00 08 A3 BE B7 7C A0 49 82 B6 DB F4 91 4F 68 [16:22:35]CheckFolder [16:22:35]dirname=/storage/ofd_packets [16:22:35]CheckFolder done [16:22:35]ProducePacketName [16:22:35]name=ofd_packets/00202070 [16:22:35]NVStorageSaveData ofd_packets/00202070 [16:22:35]File name is /storage/ofd_packets/00202070 [16:22:35]Write 301 bytes [16:22:35]NVStorageSaveData done [16:22:35]OFDSenderStorePacket done [16:22:35]KKMCreateOFDPacket done [16:22:35]NVStorageSaveData kkm_last_timestamp [16:22:35]File name is /storage/kkm_last_timestamp [16:22:35]Write 4 bytes [16:22:35]NVStorageSaveData done [16:22:35]ExternCall_PrintAddStr [16:22:35]wPrintStart [16:22:35]Write to MH i2c: 01 00 00 78 05 7D [16:22:35]Write i2c OK [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: 01 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: 01 07 00 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: 01 07 00 78 05 00 00 00 00 00 FF 0F 92 [16:22:35]RasterBufferAndPrint [16:22:35]line Счет N : (1)449839 [16:22:35]line ИНН: 02508201610067 [16:22:35]line Контрольно-Кассовый Чек [16:22:35]line ПРОДАЖА [16:22:35]line ТРК (МРК, ГНК) : 41 [16:22:35]line Товар: 2710124130 [16:22:35]line Аи-92-К-2 [16:22:35]line 4.490 * 66.90 [16:22:35]line = 300.38 [16:22:35]line НДС 12% НСП 1% [16:22:35]line > о реализуемом товаре [16:22:35]line ОКРУГЛЕНИЕ: -0.38 [16:22:35]line ИТОГО: 300.00 [16:22:35]line Внесено: 300.00 [16:22:35]line СДАЧА: 0.00 [16:22:35]line НСП 1% : 2.66 [16:22:35]line НДС 12% : 31.90 [16:22:35]line Наличными: 300.00 [16:22:35]line Безнал.: 0.00 [16:22:35]line Место: АЗС № 171 "Партнер Нефть" [16:22:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:22:35]line СНО: Общий режим [16:22:35]line Чек 362 27.10.2024 16:22 [16:22:35]line Смена: 544 ФФД: 1.0 [16:22:35]line ЗНМ: 0300000109 [16:22:35]line РНМ: 0000000000091777 [16:22:35]line Версия ККМ: 001 [16:22:35]line ФМ: 0000000000871756 [16:22:35]line ФД: 202070 [16:22:35]line ФПД: 9499372387488 [16:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202070&fm=9499372387488&tin=02508201610067®Number=0000000000091777&sum=30000 [16:22:35]OFD Sender: Processing packet 202070 [packets to send 112, broken 111] [16:22:35]ProducePacketName [16:22:35]name=ofd_packets/00202070 [16:22:35]OFD Sender: To server: pG, [16:22:35]CommunicateWithHost lk.salyk.kg:30040 [16:22:35]ConnectInit lk.salyk.kg [16:22:35]written 0, free lines is 4095 [16:22:35]Connected sock=10 [16:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1A F7 07 01 3B EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6A 01 00 00 F4 03 04 00 C9 68 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 15 03 00 35 04 06 00 08 A3 BE B7 7C A0 49 82 B6 DB F4 91 4F 68 [16:22:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EB FC 47 00 18 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 15 03 00 F4 03 04 00 83 14 1E 67 B6 04 01 00 00 E0 43 B0 0F DD 2B A7 C6 [16:22:35]CommunicateWithHost err = 0 [16:22:35]CheckOFDResponse [16:22:35]1017 (14) - 77093643461234 [16:22:35]1041 (16) - 0000000000871756 [16:22:35]1040 (4) - 202070 [16:22:35]1012 (4) - 27.10.2024 10:22 [16:22:35]1206 (1) - 0 [16:22:35]OFD Sender: Remove packet 202070 [16:22:35]ProducePacketName [16:22:35]name=ofd_packets/00202070 [16:22:35]NVStorageDeleteData [16:22:35]Write to MH i2c: 01 00 00 A3 05 A8 [16:22:35]Write i2c OK [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: 01 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: 01 07 00 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 96 0C 51 [16:22:35]RasterBufferAndPrint [16:22:35]line [16:22:35]line [16:22:35]line [16:22:35]line [16:22:35]line [16:22:35]written 0, free lines is 3226 [16:22:35]MH_Cut [16:22:35]Write to MH i2c: D1 01 00 AA 05 01 81 [16:22:35]Write i2c OK [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: D1 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: D1 01 00 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: D1 01 00 AA 05 00 80 [16:22:35]Write to MH i2c: 01 00 00 AB 05 B0 [16:22:35]Write i2c OK [16:22:35]MH_I2C_Read... [16:22:36]OFD Sender: No OFD packet to send [16:22:36]*** Cut start [16:22:36]*** Purtial cut [16:22:36]*** Stage 1: CUTSNS_PIN = 1 [16:22:36]Read from MH i2c: 01 [16:22:36]MH_I2C_Read... [16:22:36]*** Stop cut motor [16:22:36]*** Cut end [16:22:36]Read from MH i2c: 01 07 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: 01 07 00 AB 05 00 00 00 00 00 FF 0F C5 [16:22:36]process_action close_receipt done [16:22:36]requested_data is exist [16:22:36]produce_requested_data [16:22:36]requested_item fm.sn is exist - process it [16:22:36]wFMCommunicate request_size=4 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 11 00 00 [16:22:36]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 17 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 80 [16:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:22:37]wFMCommunicate OK [16:22:37]requested_item fd.num is exist - process it [16:22:37]SAM_PROTO_GetFieldsCounters [16:22:37]wFMCommunicate request_size=4 [16:22:37]MH_SAM_APDU [16:22:37]CAPDU: 80 13 00 00 [16:22:37]Write to MH i2c: E2 08 00 AD 05 80 13 00 00 00 00 00 00 2E [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 62 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 62 00 AD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 56 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [16:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 56 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:37]wFMCommunicate OK [16:22:37]SAM_PROTO_GetFieldsCounters done [16:22:37]requested_item shift.num is exist - process it [16:22:37]requested_item shift.opened is exist - process it [16:22:37]req_shift_opened [16:22:37]FM_GetShiftState [16:22:37]SAM_PROTO_GetShiftState [16:22:37]wFMCommunicate request_size=4 [16:22:37]MH_SAM_APDU [16:22:37]CAPDU: 80 13 01 00 [16:22:37]Write to MH i2c: E2 08 00 AE 05 80 13 01 00 00 00 00 00 30 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 0E 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 0E 00 AE 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 32 [16:22:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:22:37]wFMCommunicate OK [16:22:37]SAM_PROTO_GetShiftState done [16:22:37]FM_GetShiftState done [16:22:37]req_shift_opened done [16:22:37]requested_item shift.open_date is exist - process it [16:22:37]req_shift_open_date [16:22:37]req_shift_open_date done [16:22:37]produce_requested_data done [16:22:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202070,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:22:37]process_action_free close_receipt [16:22:37]json_value_free [16:22:37]json_value_free done [16:22:37]process_json_proto returns [16:22:37]Send response to host [16:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202070,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:22:37]free response buf [16:22:37]execute_script done [16:22:37]execute_script returns [16:22:37]free content buf [16:22:37]Sock 8.Close socket [16:22:37]Sock 8.Thread stoped [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:32]accept exits with 9 [16:23:32]New connection [16:23:32]New thread 3067288932 created [16:23:32]Thread 3067432292 joined [16:23:32]Waiting for new connection... [16:23:32] Sock 9.Parse request [16:23:32]Sock 9.Check first char [16:23:32]Sock 9.First char is OK [16:23:32]request: POST /json_proto HTTP/1.0 [16:23:32]Method: POST [16:23:32]URL: /json_proto [16:23:32]Method is POST - this is cgi request [16:23:32]url: /json_proto [16:23:32]query_string will be loaded in cgi processing [16:23:32]execute_cgi json_proto POST (null) [16:23:32]execute_cgi path=json_proto method=POST [16:23:32]POST find Content-Length [16:23:32]Host: 172.17.63.195:8080 [16:23:32]Content-Length: 677 [16:23:32]Content-Type: application/json [16:23:32] [16:23:32]POST finish read [16:23:32]Found Content-Length = 677 [16:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:32]execute_script... [16:23:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:32]POST & json_proto [16:23:32]process_json_proto [16:23:32]json parsed OK: [16:23:32]protocol is kg_v1.0 [16:23:32]action value=close_receipt [16:23:32]process_action close_receipt [16:23:32]cmd_close_receipt [16:23:32]MH_GetDate [16:23:32]Write to MH i2c: F0 00 00 AF 05 A3 [16:23:32]Write i2c OK [16:23:32]MH_I2C_Read... [16:23:32]Read from MH i2c: F0 [16:23:32]MH_I2C_Read... [16:23:32]Read from MH i2c: F0 09 00 [16:23:32]MH_I2C_Read... [16:23:32]Read from MH i2c: F0 09 00 AF 05 00 05 69 1E 67 47 1B 1E 67 86 [16:23:32]GetLastDocTimeStamp 1730046153 [16:23:32]current date 1730046213 [16:23:32]FM_GetShiftState [16:23:32]SAM_PROTO_GetShiftState [16:23:32]wFMCommunicate request_size=4 [16:23:32]MH_SAM_APDU [16:23:32]CAPDU: 80 13 01 00 [16:23:32]Write to MH i2c: E2 08 00 B0 05 80 13 01 00 00 00 00 00 32 [16:23:32]Write i2c OK [16:23:32]MH_I2C_Read... [16:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:32]Read from MH i2c: E2 [16:23:32]MH_I2C_Read... [16:23:32]Read from MH i2c: E2 0E 00 [16:23:32]MH_I2C_Read... [16:23:32]Read from MH i2c: E2 0E 00 B0 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 34 [16:23:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:23:32]wFMCommunicate OK [16:23:32]SAM_PROTO_GetShiftState done [16:23:32]FM_GetShiftState done [16:23:32]opened in 1729987312 [16:23:32]opened+sec_in_day 1730073712 [16:23:32]quantity*price = 50041 [16:23:32]sum+1 = 50042 [16:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 363 27.10.2024 16:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202071 ФПД: 204722876379175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162333&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202071&fm=204722876379175&tin=02508201610067®Number=0000000000091777&sum=50000 [16:23:33]StoreToDocumentArchive [16:23:33]shift 544 fd 202071 [16:23:33]save to /storage/0544/doc_00202071 [16:23:33]save last doc name /storage/0544/doc_00202071 to /storage/kkm_last_doc_name [16:23:33]save OK [16:23:33]Clear old archive folders... [16:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:33]tlvbuf is 01C767C0 [16:23:33]SAM_PROTO_ClearQueue [16:23:33]wFMCommunicate request_size=4 [16:23:33]MH_SAM_APDU [16:23:33]CAPDU: 80 09 00 00 [16:23:33]Write to MH i2c: E2 08 00 BD 05 80 09 00 00 00 00 00 00 34 [16:23:33]Write i2c OK [16:23:33]MH_I2C_Read... [16:23:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:33]Read from MH i2c: E2 [16:23:33]MH_I2C_Read... [16:23:33]Read from MH i2c: E2 03 00 [16:23:33]MH_I2C_Read... [16:23:33]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [16:23:33]RAPDU: 90 00 [16:23:33]wFMCommunicate OK [16:23:33]SAM_PROTO_ClearQueue done [16:23:33]KKMCreateOFDPacket [16:23:33]OFDProtocolAddRootSTLVToBuf [16:23:33]FM_MakeSignedData [16:23:33]FM_MakeSignedData [16:23:33]SAM_PROTO_SignData [16:23:33]wFMCommunicate request_size=4 [16:23:33]MH_SAM_APDU [16:23:33]CAPDU: 80 0D 01 02 [16:23:33]Write to MH i2c: E2 08 00 BE 05 80 0D 01 02 00 00 00 00 3C [16:23:33]Write i2c OK [16:23:33]MH_I2C_Read... [16:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:34]Read from MH i2c: E2 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 03 00 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [16:23:34]RAPDU: 90 00 [16:23:34]wFMCommunicate OK [16:23:34]wFMCommunicate request_size=255 [16:23:34]MH_SAM_APDU [16:23:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6B 01 00 00 F4 03 04 00 05 69 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 15 03 00 35 04 06 00 BA [16:23:34]Write to MH i2c: E2 02 01 BF 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6B 01 00 00 F4 03 04 00 05 69 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 15 03 00 35 04 06 00 BA 00 00 7A [16:23:34]Write i2c OK [16:23:34]MH_I2C_Read... [16:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:34]Read from MH i2c: E2 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 03 00 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [16:23:34]RAPDU: 90 00 [16:23:34]wFMCommunicate OK [16:23:34]wFMCommunicate request_size=10 [16:23:34]MH_SAM_APDU [16:23:34]CAPDU: 80 0D 02 02 05 31 C2 52 F0 27 [16:23:34]Write to MH i2c: E2 0D 00 C0 05 80 0D 02 02 05 00 31 C2 52 F0 27 00 00 A5 [16:23:34]Write i2c OK [16:23:34]MH_I2C_Read... [16:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:34]Read from MH i2c: E2 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 03 00 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [16:23:34]RAPDU: 90 00 [16:23:34]wFMCommunicate OK [16:23:34]wFMCommunicate request_size=4 [16:23:34]MH_SAM_APDU [16:23:34]CAPDU: 80 0D 03 02 [16:23:34]Write to MH i2c: E2 08 00 C1 05 80 0D 03 02 00 00 00 00 41 [16:23:34]Write i2c OK [16:23:34]MH_I2C_Read... [16:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:34]Read from MH i2c: E2 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 0B 00 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 0B 00 C1 05 00 8F 72 FC 70 B4 4C C2 57 90 00 C8 [16:23:34]RAPDU: 8F 72 FC 70 B4 4C C2 57 90 00 [16:23:34]wFMCommunicate OK [16:23:34]SAM_PROTO_SignData done [16:23:34]FM_MakeSignedData done [16:23:34]CreateOFDProtocolMessage [16:23:34]wFMCommunicate request_size=4 [16:23:34]MH_SAM_APDU [16:23:34]CAPDU: 80 11 00 00 [16:23:34]Write to MH i2c: E2 08 00 C2 05 80 11 00 00 00 00 00 00 41 [16:23:34]Write i2c OK [16:23:34]MH_I2C_Read... [16:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:34]Read from MH i2c: E2 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 17 00 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: E2 17 00 C2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 96 [16:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:23:34]wFMCommunicate OK [16:23:34]CreateOFDProtocolMessage done [16:23:34]OFDSenderStorePacket 202071 [16:23:34]StoreOFDPacket docnum=202071 [16:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 38 98 07 01 8B 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6B 01 00 00 F4 03 04 00 05 69 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 15 03 00 35 04 06 00 BA 31 C2 52 F0 27 8F 72 FC 70 B4 4C C2 57 [16:23:34]CheckFolder [16:23:34]dirname=/storage/ofd_packets [16:23:34]CheckFolder done [16:23:34]ProducePacketName [16:23:34]name=ofd_packets/00202071 [16:23:34]NVStorageSaveData ofd_packets/00202071 [16:23:34]File name is /storage/ofd_packets/00202071 [16:23:34]Write 301 bytes [16:23:34]NVStorageSaveData done [16:23:34]OFDSenderStorePacket done [16:23:34]KKMCreateOFDPacket done [16:23:34]NVStorageSaveData kkm_last_timestamp [16:23:34]File name is /storage/kkm_last_timestamp [16:23:34]Write 4 bytes [16:23:34]NVStorageSaveData done [16:23:34]ExternCall_PrintAddStr [16:23:34]wPrintStart [16:23:34]Write to MH i2c: 01 00 00 C3 05 C8 [16:23:34]Write i2c OK [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: 01 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: 01 07 00 [16:23:34]MH_I2C_Read... [16:23:34]Read from MH i2c: 01 07 00 C3 05 00 00 00 00 00 FF 0F DD [16:23:34]RasterBufferAndPrint [16:23:34]line Счет N : (1)449840 [16:23:34]line ИНН: 02508201610067 [16:23:34]line Контрольно-Кассовый Чек [16:23:34]line ПРОДАЖА [16:23:34]line ТРК (МРК, ГНК) : 31 [16:23:34]line Товар: 2710124130 [16:23:34]line Аи-92-К-2 [16:23:34]line 7.480 * 66.90 [16:23:34]line = 500.41 [16:23:34]line НДС 12% НСП 1% [16:23:34]line > о реализуемом товаре [16:23:34]line ОКРУГЛЕНИЕ: -0.41 [16:23:34]line ИТОГО: 500.00 [16:23:34]line Внесено: 500.00 [16:23:34]line СДАЧА: 0.00 [16:23:34]line НСП 1% : 4.43 [16:23:34]line НДС 12% : 53.14 [16:23:34]line Наличными: 500.00 [16:23:34]line Безнал.: 0.00 [16:23:34]line Место: АЗС № 171 "Партнер Нефть" [16:23:34]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:23:34]line СНО: Общий режим [16:23:34]line Чек 363 27.10.2024 16:23 [16:23:34]line Смена: 544 ФФД: 1.0 [16:23:34]line ЗНМ: 0300000109 [16:23:34]line РНМ: 0000000000091777 [16:23:34]line Версия ККМ: 001 [16:23:34]line ФМ: 0000000000871756 [16:23:34]line ФД: 202071 [16:23:34]line ФПД: 204722876379175 [16:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162333&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202071&fm=204722876379175&tin=02508201610067®Number=0000000000091777&sum=50000 [16:23:34]OFD Sender: Processing packet 202071 [packets to send 112, broken 111] [16:23:34]ProducePacketName [16:23:34]name=ofd_packets/00202071 [16:23:34]OFD Sender: To server: pG, [16:23:34]CommunicateWithHost lk.salyk.kg:30040 [16:23:34]ConnectInit lk.salyk.kg [16:23:34]written 0, free lines is 4095 [16:23:34]Connected sock=10 [16:23:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 38 98 07 01 8B 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6B 01 00 00 F4 03 04 00 05 69 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 15 03 00 35 04 06 00 BA 31 C2 52 F0 27 8F 72 FC 70 B4 4C C2 57 [16:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E1 21 47 00 3E A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 15 03 00 F4 03 04 00 BE 14 1E 67 B6 04 01 00 00 B9 C2 73 88 5D F6 F6 56 [16:23:35]CommunicateWithHost err = 0 [16:23:35]CheckOFDResponse [16:23:35]1017 (14) - 77093643461234 [16:23:35]1041 (16) - 0000000000871756 [16:23:35]1040 (4) - 202071 [16:23:35]1012 (4) - 27.10.2024 10:23 [16:23:35]1206 (1) - 0 [16:23:35]OFD Sender: Remove packet 202071 [16:23:35]ProducePacketName [16:23:35]name=ofd_packets/00202071 [16:23:35]NVStorageDeleteData [16:23:35]Write to MH i2c: 01 00 00 EE 05 F3 [16:23:35]Write i2c OK [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: 01 [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: 01 07 00 [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 87 0C 8D [16:23:35]RasterBufferAndPrint [16:23:35]line [16:23:35]line [16:23:35]line [16:23:35]line [16:23:35]line [16:23:35]written 0, free lines is 3211 [16:23:35]MH_Cut [16:23:35]Write to MH i2c: D1 01 00 F5 05 01 CC [16:23:35]Write i2c OK [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: D1 [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: D1 01 00 [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: D1 01 00 F5 05 00 CB [16:23:35]Write to MH i2c: 01 00 00 F6 05 FB [16:23:35]Write i2c OK [16:23:35]MH_I2C_Read... [16:23:35]OFD Sender: No OFD packet to send [16:23:36]*** Cut start [16:23:36]*** Purtial cut [16:23:36]*** Stage 1: CUTSNS_PIN = 1 [16:23:36]Read from MH i2c: 01 [16:23:36]MH_I2C_Read... [16:23:36]*** Stop cut motor [16:23:36]*** Cut end [16:23:36]Read from MH i2c: 01 07 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: 01 07 00 F6 05 00 00 00 00 00 FF 0F 10 [16:23:36]process_action close_receipt done [16:23:36]requested_data is exist [16:23:36]produce_requested_data [16:23:36]requested_item fm.sn is exist - process it [16:23:36]wFMCommunicate request_size=4 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 11 00 00 [16:23:36]Write to MH i2c: E2 08 00 F7 05 80 11 00 00 00 00 00 00 76 [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 17 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 17 00 F7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CB [16:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:23:36]wFMCommunicate OK [16:23:36]requested_item fd.num is exist - process it [16:23:36]SAM_PROTO_GetFieldsCounters [16:23:36]wFMCommunicate request_size=4 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 13 00 00 [16:23:36]Write to MH i2c: E2 08 00 F8 05 80 13 00 00 00 00 00 00 79 [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 62 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 62 00 F8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 57 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [16:23:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 57 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:36]wFMCommunicate OK [16:23:36]SAM_PROTO_GetFieldsCounters done [16:23:36]requested_item shift.num is exist - process it [16:23:36]requested_item shift.opened is exist - process it [16:23:36]req_shift_opened [16:23:36]FM_GetShiftState [16:23:36]SAM_PROTO_GetShiftState [16:23:36]wFMCommunicate request_size=4 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 13 01 00 [16:23:36]Write to MH i2c: E2 08 00 F9 05 80 13 01 00 00 00 00 00 7B [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 0E 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 0E 00 F9 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7D [16:23:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:23:36]wFMCommunicate OK [16:23:36]SAM_PROTO_GetShiftState done [16:23:36]FM_GetShiftState done [16:23:36]req_shift_opened done [16:23:36]requested_item shift.open_date is exist - process it [16:23:36]req_shift_open_date [16:23:36]req_shift_open_date done [16:23:36]produce_requested_data done [16:23:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202071,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:23:36]process_action_free close_receipt [16:23:36]json_value_free [16:23:36]json_value_free done [16:23:36]process_json_proto returns [16:23:36]Send response to host [16:23:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202071,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:23:36]free response buf [16:23:36]execute_script done [16:23:36]execute_script returns [16:23:36]free content buf [16:23:36]Sock 9.Close socket [16:23:36]Sock 9.Thread stoped [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:24:57]int [16:24:57]Write to MH i2c: 01 00 00 FA 05 FF [16:24:57]*** FLAG_PRN_KEY set [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 FA 05 00 08 00 00 00 FF 0F 1C [16:24:57]state=0 [16:24:57]Key pressed [16:24:57]Feed [16:24:57]Write to MH i2c: D8 00 00 FB 05 D7 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D8 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D8 01 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D8 01 00 FB 05 00 D8 [16:24:57]int [16:24:57]Write to MH i2c: 01 00 00 FC 05 01 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 FC 05 00 48 00 00 00 3C 00 8C [16:24:57]state=2 [16:24:57]Key pressed [16:24:57]int [16:24:57]Write to MH i2c: 01 00 00 FD 05 02 [16:24:57]*** FLAG_PRN_KEY reset [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 F5 0F 0D [16:24:57]state=2 [16:24:57]Stop feed [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:24]accept exits with 8 [16:26:24]New connection [16:26:24]New thread 3067432292 created [16:26:24]Thread 3067288932 joined [16:26:24]Waiting for new connection... [16:26:24] Sock 8.Parse request [16:26:24]Sock 8.Check first char [16:26:24]Sock 8.First char is OK [16:26:24]request: POST /json_proto HTTP/1.0 [16:26:24]Method: POST [16:26:24]URL: /json_proto [16:26:24]Method is POST - this is cgi request [16:26:24]url: /json_proto [16:26:24]query_string will be loaded in cgi processing [16:26:24]execute_cgi json_proto POST (null) [16:26:24]execute_cgi path=json_proto method=POST [16:26:24]POST find Content-Length [16:26:24]Host: 172.17.63.195:8080 [16:26:24]Content-Length: 766 [16:26:24]Content-Type: application/json [16:26:24] [16:26:24]POST finish read [16:26:24]Found Content-Length = 766 [16:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:26:24]execute_script... [16:26:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:26:24]POST & json_proto [16:26:24]process_json_proto [16:26:24]json parsed OK: [16:26:24]protocol is kg_v1.0 [16:26:24]action value=close_receipt [16:26:24]process_action close_receipt [16:26:24]cmd_close_receipt [16:26:24]MH_GetDate [16:26:24]Write to MH i2c: F0 00 00 FE 05 F2 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 09 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 09 00 FE 05 00 B0 69 1E 67 47 1B 1E 67 80 [16:26:24]GetLastDocTimeStamp 1730046213 [16:26:24]current date 1730046384 [16:26:24]FM_GetShiftState [16:26:24]SAM_PROTO_GetShiftState [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 13 01 00 [16:26:24]Write to MH i2c: E2 08 00 FF 05 80 13 01 00 00 00 00 00 81 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0E 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0E 00 FF 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 83 [16:26:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_GetShiftState done [16:26:24]FM_GetShiftState done [16:26:24]opened in 1729987312 [16:26:24]opened+sec_in_day 1730073712 [16:26:24]quantity*price = 200025 [16:26:24]sum+1 = 200026 [16:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 364 27.10.2024 16:26 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202072 ФПД: 113942416192978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162624&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202072&fm=113942416192978&tin=02508201610067®Number=0000000000091777&sum=200025 [16:26:25]StoreToDocumentArchive [16:26:25]shift 544 fd 202072 [16:26:25]save to /storage/0544/doc_00202072 [16:26:25]save last doc name /storage/0544/doc_00202072 to /storage/kkm_last_doc_name [16:26:25]save OK [16:26:25]Clear old archive folders... [16:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:25]tlvbuf is 01C43450 [16:26:25]SAM_PROTO_ClearQueue [16:26:25]wFMCommunicate request_size=4 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 09 00 00 [16:26:25]Write to MH i2c: E2 08 00 0C 06 80 09 00 00 00 00 00 00 84 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:25]Read from MH i2c: E2 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [16:26:25]RAPDU: 90 00 [16:26:25]wFMCommunicate OK [16:26:25]SAM_PROTO_ClearQueue done [16:26:25]KKMCreateOFDPacket [16:26:25]OFDProtocolAddRootSTLVToBuf [16:26:25]FM_MakeSignedData [16:26:25]FM_MakeSignedData [16:26:25]SAM_PROTO_SignData [16:26:25]wFMCommunicate request_size=4 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 0D 01 02 [16:26:25]Write to MH i2c: E2 08 00 0D 06 80 0D 01 02 00 00 00 00 8C [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:25]Read from MH i2c: E2 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [16:26:25]RAPDU: 90 00 [16:26:25]wFMCommunicate OK [16:26:25]wFMCommunicate request_size=255 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 6C 01 00 00 F4 03 04 00 B0 69 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 15 03 00 35 04 06 00 67 A1 49 3D [16:26:25]Write to MH i2c: E2 02 01 0E 06 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 32 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 6C 01 00 00 F4 03 04 00 B0 69 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 15 03 00 35 04 06 00 67 A1 49 3D 00 00 61 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:25]Read from MH i2c: E2 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 0E 06 00 90 00 88 [16:26:25]RAPDU: 90 00 [16:26:25]wFMCommunicate OK [16:26:25]wFMCommunicate request_size=7 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 0D 02 02 02 F5 D2 [16:26:25]Write to MH i2c: E2 0A 00 0F 06 80 0D 02 02 02 00 F5 D2 00 00 5A [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]OFD Sender: No OFD packet to send [16:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:25]Read from MH i2c: E2 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 03 00 0F 06 00 90 00 89 [16:26:25]RAPDU: 90 00 [16:26:25]wFMCommunicate OK [16:26:25]wFMCommunicate request_size=4 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 0D 03 02 [16:26:25]Write to MH i2c: E2 08 00 10 06 80 0D 03 02 00 00 00 00 91 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:25]Read from MH i2c: E2 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 0B 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 0B 00 10 06 00 86 0C 19 EF 19 72 9F 68 90 00 BE [16:26:25]RAPDU: 86 0C 19 EF 19 72 9F 68 90 00 [16:26:25]wFMCommunicate OK [16:26:25]SAM_PROTO_SignData done [16:26:25]FM_MakeSignedData done [16:26:25]CreateOFDProtocolMessage [16:26:25]wFMCommunicate request_size=4 [16:26:25]MH_SAM_APDU [16:26:25]CAPDU: 80 11 00 00 [16:26:25]Write to MH i2c: E2 08 00 11 06 80 11 00 00 00 00 00 00 91 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:25]Read from MH i2c: E2 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 17 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: E2 17 00 11 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E6 [16:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:26:25]wFMCommunicate OK [16:26:25]CreateOFDProtocolMessage done [16:26:25]OFDSenderStorePacket 202072 [16:26:25]StoreOFDPacket docnum=202072 [16:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 83 3E 04 01 CF 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 6C 01 00 00 F4 03 04 00 B0 69 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 15 03 00 35 04 06 00 67 A1 49 3D F5 D2 86 0C 19 EF 19 72 9F 68 [16:26:25]CheckFolder [16:26:25]dirname=/storage/ofd_packets [16:26:25]CheckFolder done [16:26:25]ProducePacketName [16:26:25]name=ofd_packets/00202072 [16:26:25]NVStorageSaveData ofd_packets/00202072 [16:26:25]File name is /storage/ofd_packets/00202072 [16:26:25]Write 298 bytes [16:26:25]NVStorageSaveData done [16:26:25]OFDSenderStorePacket done [16:26:25]KKMCreateOFDPacket done [16:26:25]NVStorageSaveData kkm_last_timestamp [16:26:25]File name is /storage/kkm_last_timestamp [16:26:25]Write 4 bytes [16:26:25]NVStorageSaveData done [16:26:25]ExternCall_PrintAddStr [16:26:25]wPrintStart [16:26:25]Write to MH i2c: 01 00 00 12 06 18 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 07 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 FF 0F 2D [16:26:25]RasterBufferAndPrint [16:26:25]line Счет N : (1)449841 [16:26:25]line ИНН: 02508201610067 [16:26:25]line Контрольно-Кассовый Чек [16:26:25]line ПРОДАЖА [16:26:25]line ТРК (МРК, ГНК) : 21 [16:26:25]line Товар: 2710194210 [16:26:25]line ДТ-К-2 [16:26:25]line 26.250 * 76.20 [16:26:25]line = 2000.25 [16:26:25]line НДС 12% НСП 1% [16:26:25]line > о реализуемом товаре [16:26:25]line ИТОГО: 2000.25 [16:26:25]line НСП 1% : 17.70 [16:26:25]line НДС 12% : 212.42 [16:26:25]line Наличными: 0.00 [16:26:25]line Безнал.: 2000.25 [16:26:25]line Место: АЗС № 171 "Партнер Нефть" [16:26:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:26:25]line СНО: Общий режим [16:26:25]line Чек 364 27.10.2024 16:26 [16:26:25]line Смена: 544 ФФД: 1.0 [16:26:25]line ЗНМ: 0300000109 [16:26:25]line РНМ: 0000000000091777 [16:26:25]line Версия ККМ: 001 [16:26:25]line Платежная система: Mbank [16:26:25]line ФМ: 0000000000871756 [16:26:25]line ФД: 202072 [16:26:25]line ФПД: 113942416192978 [16:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162624&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202072&fm=113942416192978&tin=02508201610067®Number=0000000000091777&sum=200025 [16:26:26]OFD Sender: Processing packet 202072 [packets to send 112, broken 111] [16:26:26]ProducePacketName [16:26:26]name=ofd_packets/00202072 [16:26:26]OFD Sender: To server: pG, [16:26:26]CommunicateWithHost lk.salyk.kg:30040 [16:26:26]ConnectInit lk.salyk.kg [16:26:26]written 0, free lines is 4095 [16:26:26]Connected sock=9 [16:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 83 3E 04 01 CF 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 6C 01 00 00 F4 03 04 00 B0 69 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 15 03 00 35 04 06 00 67 A1 49 3D F5 D2 86 0C 19 EF 19 72 9F 68 [16:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 73 7F 47 00 4A 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 15 03 00 F4 03 04 00 6A 15 1E 67 B6 04 01 00 00 99 1B FC 6E 32 E3 5E 10 [16:26:26]CommunicateWithHost err = 0 [16:26:26]CheckOFDResponse [16:26:26]1017 (14) - 77093643461234 [16:26:26]1041 (16) - 0000000000871756 [16:26:26]1040 (4) - 202072 [16:26:26]1012 (4) - 27.10.2024 10:26 [16:26:26]1206 (1) - 0 [16:26:26]OFD Sender: Remove packet 202072 [16:26:26]ProducePacketName [16:26:26]name=ofd_packets/00202072 [16:26:26]NVStorageDeleteData [16:26:26]Write to MH i2c: 01 00 00 3B 06 41 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 BA 0C 0E [16:26:26]RasterBufferAndPrint [16:26:26]line [16:26:26]line [16:26:26]line [16:26:26]line [16:26:26]line [16:26:26]written 0, free lines is 3262 [16:26:26]MH_Cut [16:26:26]Write to MH i2c: D1 01 00 42 06 01 1A [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: D1 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: D1 01 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: D1 01 00 42 06 00 19 [16:26:26]Write to MH i2c: 01 00 00 43 06 49 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:27]OFD Sender: No OFD packet to send [16:26:27]*** Cut start [16:26:27]*** Purtial cut [16:26:27]*** Stage 1: CUTSNS_PIN = 1 [16:26:27]Read from MH i2c: 01 [16:26:27]MH_I2C_Read... [16:26:27]*** Stop cut motor [16:26:27]*** Cut end [16:26:27]Read from MH i2c: 01 07 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 FF 0F 5E [16:26:27]process_action close_receipt done [16:26:27]requested_data is exist [16:26:27]produce_requested_data [16:26:27]requested_item fm.sn is exist - process it [16:26:27]wFMCommunicate request_size=4 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 11 00 00 [16:26:27]Write to MH i2c: E2 08 00 44 06 80 11 00 00 00 00 00 00 C4 [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 17 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 17 00 44 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 19 [16:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:26:27]wFMCommunicate OK [16:26:27]requested_item fd.num is exist - process it [16:26:27]SAM_PROTO_GetFieldsCounters [16:26:27]wFMCommunicate request_size=4 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 13 00 00 [16:26:27]Write to MH i2c: E2 08 00 45 06 80 13 00 00 00 00 00 00 C7 [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 62 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 62 00 45 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 58 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [16:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 58 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_GetFieldsCounters done [16:26:28]requested_item shift.num is exist - process it [16:26:28]requested_item shift.opened is exist - process it [16:26:28]req_shift_opened [16:26:28]FM_GetShiftState [16:26:28]SAM_PROTO_GetShiftState [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 13 01 00 [16:26:28]Write to MH i2c: E2 08 00 46 06 80 13 01 00 00 00 00 00 C9 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0E 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0E 00 46 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CB [16:26:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_GetShiftState done [16:26:28]FM_GetShiftState done [16:26:28]req_shift_opened done [16:26:28]requested_item shift.open_date is exist - process it [16:26:28]req_shift_open_date [16:26:28]req_shift_open_date done [16:26:28]produce_requested_data done [16:26:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202072,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:26:28]process_action_free close_receipt [16:26:28]json_value_free [16:26:28]json_value_free done [16:26:28]process_json_proto returns [16:26:28]Send response to host [16:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202072,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:26:28]free response buf [16:26:28]execute_script done [16:26:28]execute_script returns [16:26:28]free content buf [16:26:28]Sock 8.Close socket [16:26:28]Sock 8.Thread stoped [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:26]accept exits with 10 [16:28:26]New connection [16:28:26]New thread 3067288932 created [16:28:26]Thread 3067432292 joined [16:28:26]Waiting for new connection... [16:28:26] Sock 10.Parse request [16:28:26]Sock 10.Check first char [16:28:26]Sock 10.First char is OK [16:28:26]request: POST /json_proto HTTP/1.0 [16:28:26]Method: POST [16:28:26]URL: /json_proto [16:28:26]Method is POST - this is cgi request [16:28:26]url: /json_proto [16:28:26]query_string will be loaded in cgi processing [16:28:26]execute_cgi json_proto POST (null) [16:28:26]execute_cgi path=json_proto method=POST [16:28:26]POST find Content-Length [16:28:26]Host: 172.17.63.195:8080 [16:28:26]Content-Length: 759 [16:28:26]Content-Type: application/json [16:28:26] [16:28:26]POST finish read [16:28:26]Found Content-Length = 759 [16:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449842", "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" : 7.310, "sum" : 500.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" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:26]execute_script... [16:28: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)449842", "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" : 7.310, "sum" : 500.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" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:26]POST & json_proto [16:28:26]process_json_proto [16:28:26]json parsed OK: [16:28:26]protocol is kg_v1.0 [16:28:26]action value=close_receipt [16:28:26]process_action close_receipt [16:28:26]cmd_close_receipt [16:28:26]MH_GetDate [16:28:26]Write to MH i2c: F0 00 00 47 06 3C [16:28:26]Write i2c OK [16:28:26]MH_I2C_Read... [16:28:26]Read from MH i2c: F0 [16:28:26]MH_I2C_Read... [16:28:26]Read from MH i2c: F0 09 00 [16:28:26]MH_I2C_Read... [16:28:26]Read from MH i2c: F0 09 00 47 06 00 2B 6A 1E 67 47 1B 1E 67 46 [16:28:26]GetLastDocTimeStamp 1730046384 [16:28:26]current date 1730046507 [16:28:26]FM_GetShiftState [16:28:26]SAM_PROTO_GetShiftState [16:28:26]wFMCommunicate request_size=4 [16:28:26]MH_SAM_APDU [16:28:26]CAPDU: 80 13 01 00 [16:28:26]Write to MH i2c: E2 08 00 48 06 80 13 01 00 00 00 00 00 CB [16:28:26]Write i2c OK [16:28:26]MH_I2C_Read... [16:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:26]Read from MH i2c: E2 [16:28:26]MH_I2C_Read... [16:28:26]Read from MH i2c: E2 0E 00 [16:28:26]MH_I2C_Read... [16:28:26]Read from MH i2c: E2 0E 00 48 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CD [16:28:26]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:28:26]wFMCommunicate OK [16:28:26]SAM_PROTO_GetShiftState done [16:28:26]FM_GetShiftState done [16:28:26]opened in 1729987312 [16:28:26]opened+sec_in_day 1730073712 [16:28:26]quantity*price = 50000 [16:28:26]sum+1 = 50001 [16:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 365 27.10.2024 16:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202073 ФПД: 20628003749072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162827&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202073&fm=20628003749072&tin=02508201610067®Number=0000000000091777&sum=50000 [16:28:27]StoreToDocumentArchive [16:28:27]shift 544 fd 202073 [16:28:27]save to /storage/0544/doc_00202073 [16:28:27]save last doc name /storage/0544/doc_00202073 to /storage/kkm_last_doc_name [16:28:27]save OK [16:28:27]Clear old archive folders... [16:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:28:27]tlvbuf is 01C80030 [16:28:27]SAM_PROTO_ClearQueue [16:28:27]wFMCommunicate request_size=4 [16:28:27]MH_SAM_APDU [16:28:27]CAPDU: 80 09 00 00 [16:28:27]Write to MH i2c: E2 08 00 55 06 80 09 00 00 00 00 00 00 CD [16:28:27]Write i2c OK [16:28:27]MH_I2C_Read... [16:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:27]Read from MH i2c: E2 [16:28:27]MH_I2C_Read... [16:28:27]Read from MH i2c: E2 03 00 [16:28:27]MH_I2C_Read... [16:28:27]Read from MH i2c: E2 03 00 55 06 00 90 00 CF [16:28:27]RAPDU: 90 00 [16:28:27]wFMCommunicate OK [16:28:27]SAM_PROTO_ClearQueue done [16:28:27]KKMCreateOFDPacket [16:28:27]OFDProtocolAddRootSTLVToBuf [16:28:27]FM_MakeSignedData [16:28:27]FM_MakeSignedData [16:28:27]SAM_PROTO_SignData [16:28:27]wFMCommunicate request_size=4 [16:28:27]MH_SAM_APDU [16:28:27]CAPDU: 80 0D 01 02 [16:28:27]Write to MH i2c: E2 08 00 56 06 80 0D 01 02 00 00 00 00 D5 [16:28:27]Write i2c OK [16:28:27]MH_I2C_Read... [16:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:27]Read from MH i2c: E2 [16:28:27]MH_I2C_Read... [16:28:27]Read from MH i2c: E2 03 00 [16:28:27]MH_I2C_Read... [16:28:27]Read from MH i2c: E2 03 00 56 06 00 90 00 D0 [16:28:27]RAPDU: 90 00 [16:28:27]wFMCommunicate OK [16:28:27]wFMCommunicate request_size=255 [16:28:27]MH_SAM_APDU [16:28:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 2B 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 15 03 00 35 04 06 00 [16:28:27]Write to MH i2c: E2 02 01 57 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 2B 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 15 03 00 35 04 06 00 00 00 E1 [16:28:27]Write i2c OK [16:28:27]MH_I2C_Read... [16:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:28]Read from MH i2c: E2 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 03 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [16:28:28]RAPDU: 90 00 [16:28:28]wFMCommunicate OK [16:28:28]wFMCommunicate request_size=11 [16:28:28]MH_SAM_APDU [16:28:28]CAPDU: 80 0D 02 02 06 12 C2 D4 D5 FC D0 [16:28:28]Write to MH i2c: E2 0E 00 58 06 80 0D 02 02 06 00 12 C2 D4 D5 FC D0 00 00 2D [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:28]Read from MH i2c: E2 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 03 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 03 00 58 06 00 90 00 D2 [16:28:28]RAPDU: 90 00 [16:28:28]wFMCommunicate OK [16:28:28]wFMCommunicate request_size=4 [16:28:28]MH_SAM_APDU [16:28:28]CAPDU: 80 0D 03 02 [16:28:28]Write to MH i2c: E2 08 00 59 06 80 0D 03 02 00 00 00 00 DA [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:28]Read from MH i2c: E2 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 0B 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 0B 00 59 06 00 D1 DF 0A E7 82 80 B5 CA 90 00 FD [16:28:28]RAPDU: D1 DF 0A E7 82 80 B5 CA 90 00 [16:28:28]wFMCommunicate OK [16:28:28]SAM_PROTO_SignData done [16:28:28]FM_MakeSignedData done [16:28:28]CreateOFDProtocolMessage [16:28:28]wFMCommunicate request_size=4 [16:28:28]MH_SAM_APDU [16:28:28]CAPDU: 80 11 00 00 [16:28:28]Write to MH i2c: E2 08 00 5A 06 80 11 00 00 00 00 00 00 DA [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:28]Read from MH i2c: E2 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 17 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: E2 17 00 5A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2F [16:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:28:28]wFMCommunicate OK [16:28:28]CreateOFDProtocolMessage done [16:28:28]OFDSenderStorePacket 202073 [16:28:28]StoreOFDPacket docnum=202073 [16:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 56 B5 08 01 25 EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 2B 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 15 03 00 35 04 06 00 12 C2 D4 D5 FC D0 D1 DF 0A E7 82 80 B5 CA [16:28:28]CheckFolder [16:28:28]dirname=/storage/ofd_packets [16:28:28]CheckFolder done [16:28:28]ProducePacketName [16:28:28]name=ofd_packets/00202073 [16:28:28]NVStorageSaveData ofd_packets/00202073 [16:28:28]File name is /storage/ofd_packets/00202073 [16:28:28]Write 302 bytes [16:28:28]NVStorageSaveData done [16:28:28]OFDSenderStorePacket done [16:28:28]KKMCreateOFDPacket done [16:28:28]NVStorageSaveData kkm_last_timestamp [16:28:28]File name is /storage/kkm_last_timestamp [16:28:28]Write 4 bytes [16:28:28]NVStorageSaveData done [16:28:28]ExternCall_PrintAddStr [16:28:28]wPrintStart [16:28:28]Write to MH i2c: 01 00 00 5B 06 61 [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: 01 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: 01 07 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: 01 07 00 5B 06 00 00 00 00 00 FF 0F 76 [16:28:28]RasterBufferAndPrint [16:28:28]line Счет N : (1)449842 [16:28:28]line ИНН: 02508201610067 [16:28:28]line Контрольно-Кассовый Чек [16:28:28]line ПРОДАЖА [16:28:28]line ТРК (МРК, ГНК) : 53 [16:28:28]line Товар: 2710124130 [16:28:28]line SUPER 92-К-5 [16:28:28]line 7.310 * 68.40 [16:28:28]line = 500.00 [16:28:28]line НДС 12% НСП 1% [16:28:28]line > о реализуемом товаре [16:28:28]line ИТОГО: 500.00 [16:28:28]line НСП 1% : 4.42 [16:28:28]line НДС 12% : 53.10 [16:28:28]line Наличными: 0.00 [16:28:28]line Безнал.: 500.00 [16:28:28]line Место: АЗС № 171 "Партнер Нефть" [16:28:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:28:28]line СНО: Общий режим [16:28:28]line Чек 365 27.10.2024 16:28 [16:28:28]line Смена: 544 ФФД: 1.0 [16:28:28]line ЗНМ: 0300000109 [16:28:28]line РНМ: 0000000000091777 [16:28:28]line Версия ККМ: 001 [16:28:28]line Платежная система: Mbank [16:28:28]line ФМ: 0000000000871756 [16:28:28]line ФД: 202073 [16:28:28]line ФПД: 20628003749072 [16:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162827&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202073&fm=20628003749072&tin=02508201610067®Number=0000000000091777&sum=50000 [16:28:28]written 0, free lines is 4095 [16:28:28]OFD Sender: Processing packet 202073 [packets to send 112, broken 111] [16:28:28]ProducePacketName [16:28:28]name=ofd_packets/00202073 [16:28:28]OFD Sender: To server: pG, [16:28:28]CommunicateWithHost lk.salyk.kg:30040 [16:28:28]ConnectInit lk.salyk.kg [16:28:28]Connected sock=9 [16:28:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 56 B5 08 01 25 EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 2B 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 15 03 00 35 04 06 00 12 C2 D4 D5 FC D0 D1 DF 0A E7 82 80 B5 CA [16:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 29 B6 47 00 A2 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 15 03 00 F4 03 04 00 E4 15 1E 67 B6 04 01 00 00 C8 E3 98 2B E6 CC 26 C4 [16:28:28]CommunicateWithHost err = 0 [16:28:28]CheckOFDResponse [16:28:28]1017 (14) - 77093643461234 [16:28:28]1041 (16) - 0000000000871756 [16:28:28]1040 (4) - 202073 [16:28:28]1012 (4) - 27.10.2024 10:28 [16:28:28]1206 (1) - 0 [16:28:28]OFD Sender: Remove packet 202073 [16:28:28]ProducePacketName [16:28:28]name=ofd_packets/00202073 [16:28:28]NVStorageDeleteData [16:28:28]Write to MH i2c: 01 00 00 84 06 8A [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: 01 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: 01 07 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: 01 07 00 84 06 00 00 00 00 00 B8 0C 55 [16:28:28]RasterBufferAndPrint [16:28:28]line [16:28:28]line [16:28:28]line [16:28:28]line [16:28:28]line [16:28:28]written 0, free lines is 3259 [16:28:28]MH_Cut [16:28:28]Write to MH i2c: D1 01 00 8B 06 01 63 [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: D1 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: D1 01 00 [16:28:28]MH_I2C_Read... [16:28:28]Read from MH i2c: D1 01 00 8B 06 00 62 [16:28:28]Write to MH i2c: 01 00 00 8C 06 92 [16:28:28]Write i2c OK [16:28:28]MH_I2C_Read... [16:28:29]OFD Sender: No OFD packet to send [16:28:29]*** Cut start [16:28:29]*** Purtial cut [16:28:29]*** CUTSNS_PIN = 0 [16:28:30]*** Stage 1: CUTSNS_PIN = 1 [16:28:31]Read from MH i2c: 01 [16:28:31]MH_I2C_Read... [16:28:31]*** Stop cut motor [16:28:31]*** Cut end [16:28:31]Read from MH i2c: 01 07 00 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: 01 07 00 8C 06 00 00 00 00 00 FF 0F A7 [16:28:31]process_action close_receipt done [16:28:31]requested_data is exist [16:28:31]produce_requested_data [16:28:31]requested_item fm.sn is exist - process it [16:28:31]wFMCommunicate request_size=4 [16:28:31]MH_SAM_APDU [16:28:31]CAPDU: 80 11 00 00 [16:28:31]Write to MH i2c: E2 08 00 8D 06 80 11 00 00 00 00 00 00 0D [16:28:31]Write i2c OK [16:28:31]MH_I2C_Read... [16:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:31]Read from MH i2c: E2 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: E2 17 00 [16:28:31]MH_I2C_Read... [16:28:31]Read from MH i2c: E2 17 00 8D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 62 [16:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:28:31]wFMCommunicate OK [16:28:31]requested_item fd.num is exist - process it [16:28:31]SAM_PROTO_GetFieldsCounters [16:28:31]wFMCommunicate request_size=4 [16:28:31]MH_SAM_APDU [16:28:31]CAPDU: 80 13 00 00 [16:28:31]Write to MH i2c: E2 08 00 8E 06 80 13 00 00 00 00 00 00 10 [16:28:31]Write i2c OK [16:28:31]MH_I2C_Read... [16:28:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:32]Read from MH i2c: E2 [16:28:32]MH_I2C_Read... [16:28:32]Read from MH i2c: E2 62 00 [16:28:32]MH_I2C_Read... [16:28:32]Read from MH i2c: E2 62 00 8E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 59 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [16:28:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 59 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:32]wFMCommunicate OK [16:28:32]SAM_PROTO_GetFieldsCounters done [16:28:32]requested_item shift.num is exist - process it [16:28:32]requested_item shift.opened is exist - process it [16:28:32]req_shift_opened [16:28:32]FM_GetShiftState [16:28:32]SAM_PROTO_GetShiftState [16:28:32]wFMCommunicate request_size=4 [16:28:32]MH_SAM_APDU [16:28:32]CAPDU: 80 13 01 00 [16:28:32]Write to MH i2c: E2 08 00 8F 06 80 13 01 00 00 00 00 00 12 [16:28:32]Write i2c OK [16:28:32]MH_I2C_Read... [16:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:32]Read from MH i2c: E2 [16:28:32]MH_I2C_Read... [16:28:32]Read from MH i2c: E2 0E 00 [16:28:32]MH_I2C_Read... [16:28:32]Read from MH i2c: E2 0E 00 8F 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 14 [16:28:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:28:32]wFMCommunicate OK [16:28:32]SAM_PROTO_GetShiftState done [16:28:32]FM_GetShiftState done [16:28:32]req_shift_opened done [16:28:32]requested_item shift.open_date is exist - process it [16:28:32]req_shift_open_date [16:28:32]req_shift_open_date done [16:28:32]produce_requested_data done [16:28:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202073,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:28:32]process_action_free close_receipt [16:28:32]json_value_free [16:28:32]json_value_free done [16:28:32]process_json_proto returns [16:28:32]Send response to host [16:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202073,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:28:32]free response buf [16:28:32]execute_script done [16:28:32]execute_script returns [16:28:32]free content buf [16:28:32]Sock 10.Close socket [16:28:32]Sock 10.Thread stoped [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:31]accept exits with 8 [16:29:31]New connection [16:29:31]New thread 3067432292 created [16:29:31]Thread 3067288932 joined [16:29:31]Waiting for new connection... [16:29:31] Sock 8.Parse request [16:29:31]Sock 8.Check first char [16:29:31]Sock 8.First char is OK [16:29:31]request: POST /json_proto HTTP/1.0 [16:29:31]Method: POST [16:29:31]URL: /json_proto [16:29:31]Method is POST - this is cgi request [16:29:31]url: /json_proto [16:29:31]query_string will be loaded in cgi processing [16:29:31]execute_cgi json_proto POST (null) [16:29:31]execute_cgi path=json_proto method=POST [16:29:31]POST find Content-Length [16:29:31]Host: 172.17.63.195:8080 [16:29:31]Content-Length: 677 [16:29:31]Content-Type: application/json [16:29:31] [16:29:31]POST finish read [16:29:31]Found Content-Length = 677 [16:29:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:29:31]execute_script... [16:29:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:29:31]POST & json_proto [16:29:31]process_json_proto [16:29:31]json parsed OK: [16:29:31]protocol is kg_v1.0 [16:29:31]action value=close_receipt [16:29:31]process_action close_receipt [16:29:31]cmd_close_receipt [16:29:31]MH_GetDate [16:29:31]Write to MH i2c: F0 00 00 90 06 85 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: F0 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: F0 09 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: F0 09 00 90 06 00 6B 6A 1E 67 47 1B 1E 67 CF [16:29:31]GetLastDocTimeStamp 1730046507 [16:29:31]current date 1730046571 [16:29:31]FM_GetShiftState [16:29:31]SAM_PROTO_GetShiftState [16:29:31]wFMCommunicate request_size=4 [16:29:31]MH_SAM_APDU [16:29:31]CAPDU: 80 13 01 00 [16:29:31]Write to MH i2c: E2 08 00 91 06 80 13 01 00 00 00 00 00 14 [16:29:31]Write i2c OK [16:29:31]MH_I2C_Read... [16:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:31]Read from MH i2c: E2 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0E 00 [16:29:31]MH_I2C_Read... [16:29:31]Read from MH i2c: E2 0E 00 91 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 16 [16:29:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:29:31]wFMCommunicate OK [16:29:31]SAM_PROTO_GetShiftState done [16:29:31]FM_GetShiftState done [16:29:31]opened in 1729987312 [16:29:31]opened+sec_in_day 1730073712 [16:29:31]quantity*price = 20003 [16:29:31]sum+1 = 20004 [16:29:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 366 27.10.2024 16:29 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202074 ФПД: 261356295274084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162932&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202074&fm=261356295274084&tin=02508201610067®Number=0000000000091777&sum=20000 [16:29:32]StoreToDocumentArchive [16:29:32]shift 544 fd 202074 [16:29:32]save to /storage/0544/doc_00202074 [16:29:32]save last doc name /storage/0544/doc_00202074 to /storage/kkm_last_doc_name [16:29:32]save OK [16:29:32]Clear old archive folders... [16:29:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:32]tlvbuf is 01C753D0 [16:29:32]SAM_PROTO_ClearQueue [16:29:32]wFMCommunicate request_size=4 [16:29:32]MH_SAM_APDU [16:29:32]CAPDU: 80 09 00 00 [16:29:32]Write to MH i2c: E2 08 00 9E 06 80 09 00 00 00 00 00 00 16 [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:32]Read from MH i2c: E2 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 03 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 03 00 9E 06 00 90 00 18 [16:29:32]RAPDU: 90 00 [16:29:32]wFMCommunicate OK [16:29:32]SAM_PROTO_ClearQueue done [16:29:32]KKMCreateOFDPacket [16:29:32]OFDProtocolAddRootSTLVToBuf [16:29:32]FM_MakeSignedData [16:29:32]FM_MakeSignedData [16:29:32]SAM_PROTO_SignData [16:29:32]wFMCommunicate request_size=4 [16:29:32]MH_SAM_APDU [16:29:32]CAPDU: 80 0D 01 02 [16:29:32]Write to MH i2c: E2 08 00 9F 06 80 0D 01 02 00 00 00 00 1E [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:32]Read from MH i2c: E2 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 03 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 03 00 9F 06 00 90 00 19 [16:29:32]RAPDU: 90 00 [16:29:32]wFMCommunicate OK [16:29:32]wFMCommunicate request_size=255 [16:29:32]MH_SAM_APDU [16:29:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6E 01 00 00 F4 03 04 00 6C 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 15 03 00 35 04 06 00 ED [16:29:32]Write to MH i2c: E2 02 01 A0 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6E 01 00 00 F4 03 04 00 6C 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 15 03 00 35 04 06 00 ED 00 00 BF [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:32]Read from MH i2c: E2 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 03 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 03 00 A0 06 00 90 00 1A [16:29:32]RAPDU: 90 00 [16:29:32]wFMCommunicate OK [16:29:32]wFMCommunicate request_size=10 [16:29:32]MH_SAM_APDU [16:29:32]CAPDU: 80 0D 02 02 05 B3 C1 23 BE 64 [16:29:32]Write to MH i2c: E2 0D 00 A1 06 80 0D 02 02 05 00 B3 C1 23 BE 64 00 00 E4 [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:32]Read from MH i2c: E2 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 03 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 03 00 A1 06 00 90 00 1B [16:29:32]RAPDU: 90 00 [16:29:32]wFMCommunicate OK [16:29:32]wFMCommunicate request_size=4 [16:29:32]MH_SAM_APDU [16:29:32]CAPDU: 80 0D 03 02 [16:29:32]Write to MH i2c: E2 08 00 A2 06 80 0D 03 02 00 00 00 00 23 [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:33]Read from MH i2c: E2 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 0B 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 0B 00 A2 06 00 A1 F5 98 0E 2F F1 A0 41 90 00 61 [16:29:33]RAPDU: A1 F5 98 0E 2F F1 A0 41 90 00 [16:29:33]wFMCommunicate OK [16:29:33]SAM_PROTO_SignData done [16:29:33]FM_MakeSignedData done [16:29:33]CreateOFDProtocolMessage [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 11 00 00 [16:29:33]Write to MH i2c: E2 08 00 A3 06 80 11 00 00 00 00 00 00 23 [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:33]Read from MH i2c: E2 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 17 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 17 00 A3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 78 [16:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:29:33]wFMCommunicate OK [16:29:33]CreateOFDProtocolMessage done [16:29:33]OFDSenderStorePacket 202074 [16:29:33]StoreOFDPacket docnum=202074 [16:29:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 86 CB 07 01 D9 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6E 01 00 00 F4 03 04 00 6C 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 15 03 00 35 04 06 00 ED B3 C1 23 BE 64 A1 F5 98 0E 2F F1 A0 41 [16:29:33]CheckFolder [16:29:33]dirname=/storage/ofd_packets [16:29:33]CheckFolder done [16:29:33]ProducePacketName [16:29:33]name=ofd_packets/00202074 [16:29:33]NVStorageSaveData ofd_packets/00202074 [16:29:33]File name is /storage/ofd_packets/00202074 [16:29:33]Write 301 bytes [16:29:33]NVStorageSaveData done [16:29:33]OFDSenderStorePacket done [16:29:33]KKMCreateOFDPacket done [16:29:33]NVStorageSaveData kkm_last_timestamp [16:29:33]File name is /storage/kkm_last_timestamp [16:29:33]Write 4 bytes [16:29:33]NVStorageSaveData done [16:29:33]ExternCall_PrintAddStr [16:29:33]wPrintStart [16:29:33]Write to MH i2c: 01 00 00 A4 06 AA [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: 01 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: 01 07 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 FF 0F BF [16:29:33]RasterBufferAndPrint [16:29:33]line Счет N : (1)449843 [16:29:33]line ИНН: 02508201610067 [16:29:33]line Контрольно-Кассовый Чек [16:29:33]line ПРОДАЖА [16:29:33]line ТРК (МРК, ГНК) : 41 [16:29:33]line Товар: 2710124130 [16:29:33]line Аи-92-К-2 [16:29:33]line 2.990 * 66.90 [16:29:33]line = 200.03 [16:29:33]line НДС 12% НСП 1% [16:29:33]line > о реализуемом товаре [16:29:33]line ОКРУГЛЕНИЕ: -0.03 [16:29:33]line ИТОГО: 200.00 [16:29:33]line Внесено: 200.00 [16:29:33]line СДАЧА: 0.00 [16:29:33]line НСП 1% : 1.77 [16:29:33]line НДС 12% : 21.24 [16:29:33]line Наличными: 200.00 [16:29:33]line Безнал.: 0.00 [16:29:33]line Место: АЗС № 171 "Партнер Нефть" [16:29:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:29:33]line СНО: Общий режим [16:29:33]line Чек 366 27.10.2024 16:29 [16:29:33]OFD Sender: Processing packet 202074 [packets to send 112, broken 111] [16:29:33]ProducePacketName [16:29:33]name=ofd_packets/00202074 [16:29:33]OFD Sender: To server: pG, [16:29:33]CommunicateWithHost lk.salyk.kg:30040 [16:29:33]ConnectInit lk.salyk.kg [16:29:33]line Смена: 544 ФФД: 1.0 [16:29:33]line ЗНМ: 0300000109 [16:29:33]line РНМ: 0000000000091777 [16:29:33]line Версия ККМ: 001 [16:29:33]line ФМ: 0000000000871756 [16:29:33]line ФД: 202074 [16:29:33]line ФПД: 261356295274084 [16:29:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162932&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202074&fm=261356295274084&tin=02508201610067®Number=0000000000091777&sum=20000 [16:29:33]Connected sock=10 [16:29:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 86 CB 07 01 D9 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6E 01 00 00 F4 03 04 00 6C 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 15 03 00 35 04 06 00 ED B3 C1 23 BE 64 A1 F5 98 0E 2F F1 A0 41 [16:29:33]written 0, free lines is 4095 [16:29:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DB 17 47 00 3D BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 15 03 00 F4 03 04 00 25 16 1E 67 B6 04 01 00 00 7B 60 FB 15 E5 70 D6 8E [16:29:33]CommunicateWithHost err = 0 [16:29:33]CheckOFDResponse [16:29:33]1017 (14) - 77093643461234 [16:29:33]1041 (16) - 0000000000871756 [16:29:33]1040 (4) - 202074 [16:29:33]1012 (4) - 27.10.2024 10:29 [16:29:33]1206 (1) - 0 [16:29:33]OFD Sender: Remove packet 202074 [16:29:33]ProducePacketName [16:29:33]name=ofd_packets/00202074 [16:29:33]NVStorageDeleteData [16:29:33]Write to MH i2c: 01 00 00 CF 06 D5 [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: 01 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: 01 07 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 8F 0C 77 [16:29:33]RasterBufferAndPrint [16:29:33]line [16:29:33]line [16:29:33]line [16:29:33]line [16:29:33]line [16:29:33]written 0, free lines is 3219 [16:29:33]MH_Cut [16:29:33]Write to MH i2c: D1 01 00 D6 06 01 AE [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: D1 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: D1 01 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: D1 01 00 D6 06 00 AD [16:29:33]Write to MH i2c: 01 00 00 D7 06 DD [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:34]OFD Sender: No OFD packet to send [16:29:34]*** Cut start [16:29:34]*** Purtial cut [16:29:34]*** Stage 1: CUTSNS_PIN = 1 [16:29:35]Read from MH i2c: 01 [16:29:35]MH_I2C_Read... [16:29:35]*** Stop cut motor [16:29:35]*** Cut end [16:29:35]Read from MH i2c: 01 07 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: 01 07 00 D7 06 00 00 00 00 00 FF 0F F2 [16:29:35]process_action close_receipt done [16:29:35]requested_data is exist [16:29:35]produce_requested_data [16:29:35]requested_item fm.sn is exist - process it [16:29:35]wFMCommunicate request_size=4 [16:29:35]MH_SAM_APDU [16:29:35]CAPDU: 80 11 00 00 [16:29:35]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:35]Read from MH i2c: E2 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 17 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AD [16:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:29:35]wFMCommunicate OK [16:29:35]requested_item fd.num is exist - process it [16:29:35]SAM_PROTO_GetFieldsCounters [16:29:35]wFMCommunicate request_size=4 [16:29:35]MH_SAM_APDU [16:29:35]CAPDU: 80 13 00 00 [16:29:35]Write to MH i2c: E2 08 00 D9 06 80 13 00 00 00 00 00 00 5B [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:35]Read from MH i2c: E2 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 62 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 62 00 D9 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [16:29:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:35]wFMCommunicate OK [16:29:35]SAM_PROTO_GetFieldsCounters done [16:29:35]requested_item shift.num is exist - process it [16:29:35]requested_item shift.opened is exist - process it [16:29:35]req_shift_opened [16:29:35]FM_GetShiftState [16:29:35]SAM_PROTO_GetShiftState [16:29:35]wFMCommunicate request_size=4 [16:29:35]MH_SAM_APDU [16:29:35]CAPDU: 80 13 01 00 [16:29:35]Write to MH i2c: E2 08 00 DA 06 80 13 01 00 00 00 00 00 5D [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:35]Read from MH i2c: E2 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 0E 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 0E 00 DA 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5F [16:29:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:29:35]wFMCommunicate OK [16:29:35]SAM_PROTO_GetShiftState done [16:29:35]FM_GetShiftState done [16:29:35]req_shift_opened done [16:29:35]requested_item shift.open_date is exist - process it [16:29:35]req_shift_open_date [16:29:35]req_shift_open_date done [16:29:35]produce_requested_data done [16:29:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202074,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:29:35]process_action_free close_receipt [16:29:35]json_value_free [16:29:35]json_value_free done [16:29:35]process_json_proto returns [16:29:35]Send response to host [16:29:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202074,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:29:35]free response buf [16:29:35]execute_script done [16:29:35]execute_script returns [16:29:35]free content buf [16:29:35]Sock 8.Close socket [16:29:35]Sock 8.Thread stoped [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:17]accept exits with 9 [16:30:17]New connection [16:30:17]New thread 3067288932 created [16:30:17]Thread 3067432292 joined [16:30:17]Waiting for new connection... [16:30:17] Sock 9.Parse request [16:30:17]Sock 9.Check first char [16:30:17]Sock 9.First char is OK [16:30:17]request: POST /json_proto HTTP/1.0 [16:30:17]Method: POST [16:30:17]URL: /json_proto [16:30:17]Method is POST - this is cgi request [16:30:17]url: /json_proto [16:30:17]query_string will be loaded in cgi processing [16:30:17]execute_cgi json_proto POST (null) [16:30:17]execute_cgi path=json_proto method=POST [16:30:17]POST find Content-Length [16:30:17]Host: 172.17.63.195:8080 [16:30:17]Content-Length: 766 [16:30:17]Content-Type: application/json [16:30:17] [16:30:17]POST finish read [16:30:17]Found Content-Length = 766 [16:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:17]execute_script... [16:30: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)449844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:17]POST & json_proto [16:30:17]process_json_proto [16:30:17]json parsed OK: [16:30:17]protocol is kg_v1.0 [16:30:17]action value=close_receipt [16:30:17]process_action close_receipt [16:30:17]cmd_close_receipt [16:30:17]MH_GetDate [16:30:17]Write to MH i2c: F0 00 00 DB 06 D0 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: F0 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: F0 09 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: F0 09 00 DB 06 00 99 6A 1E 67 47 1B 1E 67 48 [16:30:17]GetLastDocTimeStamp 1730046572 [16:30:17]current date 1730046617 [16:30:17]FM_GetShiftState [16:30:17]SAM_PROTO_GetShiftState [16:30:17]wFMCommunicate request_size=4 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 13 01 00 [16:30:17]Write to MH i2c: E2 08 00 DC 06 80 13 01 00 00 00 00 00 5F [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 0E 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 0E 00 DC 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 61 [16:30:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:30:17]wFMCommunicate OK [16:30:17]SAM_PROTO_GetShiftState done [16:30:17]FM_GetShiftState done [16:30:17]opened in 1729987312 [16:30:17]opened+sec_in_day 1730073712 [16:30:17]quantity*price = 50041 [16:30:17]sum+1 = 50042 [16:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 367 27.10.2024 16:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202075 ФПД: 138991560549275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202075&fm=138991560549275&tin=02508201610067®Number=0000000000091777&sum=50041 [16:30:18]StoreToDocumentArchive [16:30:18]shift 544 fd 202075 [16:30:18]save to /storage/0544/doc_00202075 [16:30:18]save last doc name /storage/0544/doc_00202075 to /storage/kkm_last_doc_name [16:30:18]save OK [16:30:18]Clear old archive folders... [16:30:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:18]tlvbuf is 01C77430 [16:30:18]SAM_PROTO_ClearQueue [16:30:18]wFMCommunicate request_size=4 [16:30:18]MH_SAM_APDU [16:30:18]CAPDU: 80 09 00 00 [16:30:18]Write to MH i2c: E2 08 00 E9 06 80 09 00 00 00 00 00 00 61 [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:18]Read from MH i2c: E2 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 03 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 03 00 E9 06 00 90 00 63 [16:30:18]RAPDU: 90 00 [16:30:18]wFMCommunicate OK [16:30:18]SAM_PROTO_ClearQueue done [16:30:18]KKMCreateOFDPacket [16:30:18]OFDProtocolAddRootSTLVToBuf [16:30:18]FM_MakeSignedData [16:30:18]FM_MakeSignedData [16:30:18]SAM_PROTO_SignData [16:30:18]wFMCommunicate request_size=4 [16:30:18]MH_SAM_APDU [16:30:18]CAPDU: 80 0D 01 02 [16:30:18]Write to MH i2c: E2 08 00 EA 06 80 0D 01 02 00 00 00 00 69 [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:18]Read from MH i2c: E2 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 03 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 03 00 EA 06 00 90 00 64 [16:30:18]RAPDU: 90 00 [16:30:18]wFMCommunicate OK [16:30:18]wFMCommunicate request_size=255 [16:30:18]MH_SAM_APDU [16:30:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 9A 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 15 03 00 35 04 06 00 7E [16:30:18]Write to MH i2c: E2 02 01 EB 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 9A 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 15 03 00 35 04 06 00 7E 00 00 5B [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:18]Read from MH i2c: E2 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 03 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 03 00 EB 06 00 90 00 65 [16:30:18]RAPDU: 90 00 [16:30:18]wFMCommunicate OK [16:30:18]wFMCommunicate request_size=10 [16:30:18]MH_SAM_APDU [16:30:18]CAPDU: 80 0D 02 02 05 69 7E 97 E3 9B [16:30:18]Write to MH i2c: E2 0D 00 EC 06 80 0D 02 02 05 00 69 7E 97 E3 9B 00 00 72 [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:18]Read from MH i2c: E2 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 03 00 [16:30:18]MH_I2C_Read... [16:30:18]Read from MH i2c: E2 03 00 EC 06 00 90 00 66 [16:30:18]RAPDU: 90 00 [16:30:18]wFMCommunicate OK [16:30:18]wFMCommunicate request_size=4 [16:30:18]MH_SAM_APDU [16:30:18]CAPDU: 80 0D 03 02 [16:30:18]Write to MH i2c: E2 08 00 ED 06 80 0D 03 02 00 00 00 00 6E [16:30:18]Write i2c OK [16:30:18]MH_I2C_Read... [16:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:19]Read from MH i2c: E2 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 0B 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 0B 00 ED 06 00 C0 75 57 0E 75 84 76 18 90 00 90 [16:30:19]RAPDU: C0 75 57 0E 75 84 76 18 90 00 [16:30:19]wFMCommunicate OK [16:30:19]SAM_PROTO_SignData done [16:30:19]FM_MakeSignedData done [16:30:19]CreateOFDProtocolMessage [16:30:19]wFMCommunicate request_size=4 [16:30:19]MH_SAM_APDU [16:30:19]CAPDU: 80 11 00 00 [16:30:19]Write to MH i2c: E2 08 00 EE 06 80 11 00 00 00 00 00 00 6E [16:30:19]Write i2c OK [16:30:19]MH_I2C_Read... [16:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:19]Read from MH i2c: E2 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 17 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: E2 17 00 EE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C3 [16:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:30:19]wFMCommunicate OK [16:30:19]CreateOFDProtocolMessage done [16:30:19]OFDSenderStorePacket 202075 [16:30:19]StoreOFDPacket docnum=202075 [16:30:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EB 39 07 01 EA B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 9A 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 15 03 00 35 04 06 00 7E 69 7E 97 E3 9B C0 75 57 0E 75 84 76 18 [16:30:19]CheckFolder [16:30:19]dirname=/storage/ofd_packets [16:30:19]CheckFolder done [16:30:19]ProducePacketName [16:30:19]name=ofd_packets/00202075 [16:30:19]NVStorageSaveData ofd_packets/00202075 [16:30:19]File name is /storage/ofd_packets/00202075 [16:30:19]Write 301 bytes [16:30:19]NVStorageSaveData done [16:30:19]OFDSenderStorePacket done [16:30:19]KKMCreateOFDPacket done [16:30:19]NVStorageSaveData kkm_last_timestamp [16:30:19]File name is /storage/kkm_last_timestamp [16:30:19]Write 4 bytes [16:30:19]NVStorageSaveData done [16:30:19]ExternCall_PrintAddStr [16:30:19]wPrintStart [16:30:19]Write to MH i2c: 01 00 00 EF 06 F5 [16:30:19]Write i2c OK [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: 01 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: 01 07 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: 01 07 00 EF 06 00 00 00 00 00 FF 0F 0A [16:30:19]RasterBufferAndPrint [16:30:19]line Счет N : (1)449844 [16:30:19]line ИНН: 02508201610067 [16:30:19]line Контрольно-Кассовый Чек [16:30:19]line ПРОДАЖА [16:30:19]line ТРК (МРК, ГНК) : 62 [16:30:19]line Товар: 2710124130 [16:30:19]line Аи-92-К-2 [16:30:19]line 7.480 * 66.90 [16:30:19]line = 500.41 [16:30:19]line НДС 12% НСП 1% [16:30:19]line > о реализуемом товаре [16:30:19]line ИТОГО: 500.41 [16:30:19]line НСП 1% : 4.43 [16:30:19]line НДС 12% : 53.14 [16:30:19]line Наличными: 0.00 [16:30:19]line Безнал.: 500.41 [16:30:19]line Место: АЗС № 171 "Партнер Нефть" [16:30:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:30:19]line СНО: Общий режим [16:30:19]line Чек 367 27.10.2024 16:30 [16:30:19]line Смена: 544 ФФД: 1.0 [16:30:19]line ЗНМ: 0300000109 [16:30:19]line РНМ: 0000000000091777 [16:30:19]line Версия ККМ: 001 [16:30:19]line Платежная система: Mbank [16:30:19]line ФМ: 0000000000871756 [16:30:19]line ФД: 202075 [16:30:19]line ФПД: 138991560549275 [16:30:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202075&fm=138991560549275&tin=02508201610067®Number=0000000000091777&sum=50041 [16:30:19]OFD Sender: Processing packet 202075 [packets to send 112, broken 111] [16:30:19]ProducePacketName [16:30:19]name=ofd_packets/00202075 [16:30:19]OFD Sender: To server: pG, [16:30:19]CommunicateWithHost lk.salyk.kg:30040 [16:30:19]ConnectInit lk.salyk.kg [16:30:19]written 0, free lines is 4095 [16:30:19]Connected sock=10 [16:30:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EB 39 07 01 EA B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 9A 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 15 03 00 35 04 06 00 7E 69 7E 97 E3 9B C0 75 57 0E 75 84 76 18 [16:30:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C8 9B 47 00 30 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 15 03 00 F4 03 04 00 53 16 1E 67 B6 04 01 00 00 17 19 1F 7F 6F B1 BD 5C [16:30:19]CommunicateWithHost err = 0 [16:30:19]CheckOFDResponse [16:30:19]1017 (14) - 77093643461234 [16:30:19]1041 (16) - 0000000000871756 [16:30:19]1040 (4) - 202075 [16:30:19]1012 (4) - 27.10.2024 10:30 [16:30:19]1206 (1) - 0 [16:30:19]OFD Sender: Remove packet 202075 [16:30:19]ProducePacketName [16:30:19]name=ofd_packets/00202075 [16:30:19]NVStorageDeleteData [16:30:19]Write to MH i2c: 01 00 00 18 07 1F [16:30:19]Write i2c OK [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: 01 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: 01 07 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: 01 07 00 18 07 00 00 00 00 00 B9 0C EB [16:30:19]RasterBufferAndPrint [16:30:19]line [16:30:19]line [16:30:19]line [16:30:19]line [16:30:19]line [16:30:19]written 0, free lines is 3260 [16:30:19]MH_Cut [16:30:19]Write to MH i2c: D1 01 00 1F 07 01 F8 [16:30:19]Write i2c OK [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: D1 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: D1 01 00 [16:30:19]MH_I2C_Read... [16:30:19]Read from MH i2c: D1 01 00 1F 07 00 F7 [16:30:19]Write to MH i2c: 01 00 00 20 07 27 [16:30:19]Write i2c OK [16:30:19]MH_I2C_Read... [16:30:20]OFD Sender: No OFD packet to send [16:30:20]*** Cut start [16:30:20]*** Purtial cut [16:30:20]*** Stage 1: CUTSNS_PIN = 1 [16:30:20]Read from MH i2c: 01 [16:30:20]MH_I2C_Read... [16:30:20]*** Stop cut motor [16:30:20]*** Cut end [16:30:20]Read from MH i2c: 01 07 00 [16:30:20]MH_I2C_Read... [16:30:20]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [16:30:20]process_action close_receipt done [16:30:20]requested_data is exist [16:30:20]produce_requested_data [16:30:20]requested_item fm.sn is exist - process it [16:30:20]wFMCommunicate request_size=4 [16:30:20]MH_SAM_APDU [16:30:20]CAPDU: 80 11 00 00 [16:30:20]Write to MH i2c: E2 08 00 21 07 80 11 00 00 00 00 00 00 A2 [16:30:20]Write i2c OK [16:30:20]MH_I2C_Read... [16:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:21]Read from MH i2c: E2 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: E2 17 00 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: E2 17 00 21 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F7 [16:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:30:21]wFMCommunicate OK [16:30:21]requested_item fd.num is exist - process it [16:30:21]SAM_PROTO_GetFieldsCounters [16:30:21]wFMCommunicate request_size=4 [16:30:21]MH_SAM_APDU [16:30:21]CAPDU: 80 13 00 00 [16:30:21]Write to MH i2c: E2 08 00 22 07 80 13 00 00 00 00 00 00 A5 [16:30:21]Write i2c OK [16:30:21]MH_I2C_Read... [16:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:21]Read from MH i2c: E2 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: E2 62 00 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: E2 62 00 22 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [16:30:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:21]wFMCommunicate OK [16:30:21]SAM_PROTO_GetFieldsCounters done [16:30:21]requested_item shift.num is exist - process it [16:30:21]requested_item shift.opened is exist - process it [16:30:21]req_shift_opened [16:30:21]FM_GetShiftState [16:30:21]SAM_PROTO_GetShiftState [16:30:21]wFMCommunicate request_size=4 [16:30:21]MH_SAM_APDU [16:30:21]CAPDU: 80 13 01 00 [16:30:21]Write to MH i2c: E2 08 00 23 07 80 13 01 00 00 00 00 00 A7 [16:30:21]Write i2c OK [16:30:21]MH_I2C_Read... [16:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:21]Read from MH i2c: E2 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: E2 0E 00 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: E2 0E 00 23 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A9 [16:30:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:30:21]wFMCommunicate OK [16:30:21]SAM_PROTO_GetShiftState done [16:30:21]FM_GetShiftState done [16:30:21]req_shift_opened done [16:30:21]requested_item shift.open_date is exist - process it [16:30:21]req_shift_open_date [16:30:21]req_shift_open_date done [16:30:21]produce_requested_data done [16:30:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202075,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:30:21]process_action_free close_receipt [16:30:21]json_value_free [16:30:21]json_value_free done [16:30:21]process_json_proto returns [16:30:21]Send response to host [16:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202075,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:30:21]free response buf [16:30:21]execute_script done [16:30:21]execute_script returns [16:30:21]free content buf [16:30:21]Sock 9.Close socket [16:30:21]Sock 9.Thread stoped [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:00]accept exits with 8 [16:31:00]New connection [16:31:00]New thread 3067432292 created [16:31:00]Thread 3067288932 joined [16:31:00]Waiting for new connection... [16:31:00] Sock 8.Parse request [16:31:00]Sock 8.Check first char [16:31:00]Sock 8.First char is OK [16:31:00]request: POST /json_proto HTTP/1.0 [16:31:00]Method: POST [16:31:00]URL: /json_proto [16:31:00]Method is POST - this is cgi request [16:31:00]url: /json_proto [16:31:00]query_string will be loaded in cgi processing [16:31:00]execute_cgi json_proto POST (null) [16:31:00]execute_cgi path=json_proto method=POST [16:31:00]POST find Content-Length [16:31:00]Host: 172.17.63.195:8080 [16:31:00]Content-Length: 679 [16:31:00]Content-Type: application/json [16:31:00] [16:31:00]POST finish read [16:31:00]Found Content-Length = 679 [16:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:31:00]execute_script... [16:31:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [16:31:00]POST & json_proto [16:31:00]process_json_proto [16:31:00]json parsed OK: [16:31:00]protocol is kg_v1.0 [16:31:00]action value=close_receipt [16:31:00]process_action close_receipt [16:31:00]cmd_close_receipt [16:31:00]MH_GetDate [16:31:00]Write to MH i2c: F0 00 00 24 07 1A [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: F0 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: F0 09 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: F0 09 00 24 07 00 C5 6A 1E 67 47 1B 1E 67 BE [16:31:00]GetLastDocTimeStamp 1730046618 [16:31:00]current date 1730046661 [16:31:00]FM_GetShiftState [16:31:00]SAM_PROTO_GetShiftState [16:31:00]wFMCommunicate request_size=4 [16:31:00]MH_SAM_APDU [16:31:00]CAPDU: 80 13 01 00 [16:31:00]Write to MH i2c: E2 08 00 25 07 80 13 01 00 00 00 00 00 A9 [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:00]Read from MH i2c: E2 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E2 0E 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E2 0E 00 25 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AB [16:31:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:31:00]wFMCommunicate OK [16:31:00]SAM_PROTO_GetShiftState done [16:31:00]FM_GetShiftState done [16:31:00]opened in 1729987312 [16:31:00]opened+sec_in_day 1730073712 [16:31:00]quantity*price = 100050 [16:31:00]sum+1 = 100052 [16:31:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 368 27.10.2024 16:31 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202076 ФПД: 110223305919795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163101&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202076&fm=110223305919795&tin=02508201610067®Number=0000000000091777&sum=100000 [16:31:01]StoreToDocumentArchive [16:31:01]shift 544 fd 202076 [16:31:01]save to /storage/0544/doc_00202076 [16:31:01]save last doc name /storage/0544/doc_00202076 to /storage/kkm_last_doc_name [16:31:01]save OK [16:31:01]Clear old archive folders... [16:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:31:02]tlvbuf is 01C434E0 [16:31:02]SAM_PROTO_ClearQueue [16:31:02]wFMCommunicate request_size=4 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 09 00 00 [16:31:02]Write to MH i2c: E2 08 00 32 07 80 09 00 00 00 00 00 00 AB [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 03 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [16:31:02]RAPDU: 90 00 [16:31:02]wFMCommunicate OK [16:31:02]SAM_PROTO_ClearQueue done [16:31:02]KKMCreateOFDPacket [16:31:02]OFDProtocolAddRootSTLVToBuf [16:31:02]FM_MakeSignedData [16:31:02]FM_MakeSignedData [16:31:02]SAM_PROTO_SignData [16:31:02]wFMCommunicate request_size=4 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 0D 01 02 [16:31:02]Write to MH i2c: E2 08 00 33 07 80 0D 01 02 00 00 00 00 B3 [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 03 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [16:31:02]RAPDU: 90 00 [16:31:02]wFMCommunicate OK [16:31:02]wFMCommunicate request_size=255 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 70 01 00 00 F4 03 04 00 C5 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 15 03 00 35 04 06 00 64 3F 5C FE [16:31:02]Write to MH i2c: E2 02 01 34 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 70 01 00 00 F4 03 04 00 C5 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 15 03 00 35 04 06 00 64 3F 5C FE 00 00 F5 [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 03 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [16:31:02]RAPDU: 90 00 [16:31:02]wFMCommunicate OK [16:31:02]wFMCommunicate request_size=7 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 0D 02 02 02 CD 33 [16:31:02]Write to MH i2c: E2 0A 00 35 07 80 0D 02 02 02 00 CD 33 00 00 BA [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 03 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [16:31:02]RAPDU: 90 00 [16:31:02]wFMCommunicate OK [16:31:02]wFMCommunicate request_size=4 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 0D 03 02 [16:31:02]Write to MH i2c: E2 08 00 36 07 80 0D 03 02 00 00 00 00 B8 [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 0B 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 0B 00 36 07 00 18 B5 7F 23 C8 0E A8 E3 90 00 89 [16:31:02]RAPDU: 18 B5 7F 23 C8 0E A8 E3 90 00 [16:31:02]wFMCommunicate OK [16:31:02]SAM_PROTO_SignData done [16:31:02]FM_MakeSignedData done [16:31:02]CreateOFDProtocolMessage [16:31:02]wFMCommunicate request_size=4 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 11 00 00 [16:31:02]Write to MH i2c: E2 08 00 37 07 80 11 00 00 00 00 00 00 B8 [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 17 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 17 00 37 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0D [16:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:31:02]wFMCommunicate OK [16:31:02]CreateOFDProtocolMessage done [16:31:02]OFDSenderStorePacket 202076 [16:31:02]StoreOFDPacket docnum=202076 [16:31:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A1 D5 04 01 C8 23 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 32 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 70 01 00 00 F4 03 04 00 C5 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 15 03 00 35 04 06 00 64 3F 5C FE CD 33 18 B5 7F 23 C8 0E A8 E3 [16:31:02]CheckFolder [16:31:02]dirname=/storage/ofd_packets [16:31:02]CheckFolder done [16:31:02]ProducePacketName [16:31:02]name=ofd_packets/00202076 [16:31:02]NVStorageSaveData ofd_packets/00202076 [16:31:02]File name is /storage/ofd_packets/00202076 [16:31:02]Write 298 bytes [16:31:02]NVStorageSaveData done [16:31:02]OFDSenderStorePacket done [16:31:02]KKMCreateOFDPacket done [16:31:02]NVStorageSaveData kkm_last_timestamp [16:31:02]File name is /storage/kkm_last_timestamp [16:31:02]Write 4 bytes [16:31:02]NVStorageSaveData done [16:31:02]ExternCall_PrintAddStr [16:31:02]wPrintStart [16:31:02]Write to MH i2c: 01 00 00 38 07 3F [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 07 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 FF 0F 54 [16:31:02]RasterBufferAndPrint [16:31:02]line Счет N : (1)449845 [16:31:02]line ИНН: 02508201610067 [16:31:02]line Контрольно-Кассовый Чек [16:31:02]line ПРОДАЖА [16:31:02]line ТРК (МРК, ГНК) : 33 [16:31:02]line Товар: 2710194210 [16:31:02]line ДТ-К-2 [16:31:02]line 13.130 * 76.20 [16:31:02]line = 1000.51 [16:31:02]line НДС 12% НСП 1% [16:31:02]line > о реализуемом товаре [16:31:02]line ОКРУГЛЕНИЕ: -0.51 [16:31:02]line ИТОГО: 1000.00 [16:31:02]line Внесено: 1000.00 [16:31:02]line СДАЧА: 0.00 [16:31:02]line НСП 1% : 8.85 [16:31:02]line НДС 12% : 106.25 [16:31:02]line Наличными: 1000.00 [16:31:02]line Безнал.: 0.00 [16:31:02]line Место: АЗС № 171 "Партнер Нефть" [16:31:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:31:02]line СНО: Общий режим [16:31:02]line Чек 368 27.10.2024 16:31 [16:31:02]line Смена: 544 ФФД: 1.0 [16:31:02]line ЗНМ: 0300000109 [16:31:02]line РНМ: 0000000000091777 [16:31:02]line Версия ККМ: 001 [16:31:02]line ФМ: 0000000000871756 [16:31:02]line ФД: 202076 [16:31:02]line ФПД: 110223305919795 [16:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163101&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202076&fm=110223305919795&tin=02508201610067®Number=0000000000091777&sum=100000 [16:31:02]OFD Sender: Processing packet 202076 [packets to send 112, broken 111] [16:31:02]ProducePacketName [16:31:02]name=ofd_packets/00202076 [16:31:02]OFD Sender: To server: pG, [16:31:02]CommunicateWithHost lk.salyk.kg:30040 [16:31:02]ConnectInit lk.salyk.kg [16:31:02]written 0, free lines is 4095 [16:31:02]Connected sock=10 [16:31:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A1 D5 04 01 C8 23 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 32 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 70 01 00 00 F4 03 04 00 C5 6A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 15 03 00 35 04 06 00 64 3F 5C FE CD 33 18 B5 7F 23 C8 0E A8 E3 [16:31:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F 51 47 00 A9 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 15 03 00 F4 03 04 00 7E 16 1E 67 B6 04 01 00 00 48 6F DE 7B C1 BD 6C D7 [16:31:03]CommunicateWithHost err = 0 [16:31:03]CheckOFDResponse [16:31:03]1017 (14) - 77093643461234 [16:31:03]1041 (16) - 0000000000871756 [16:31:03]1040 (4) - 202076 [16:31:03]1012 (4) - 27.10.2024 10:31 [16:31:03]1206 (1) - 0 [16:31:03]OFD Sender: Remove packet 202076 [16:31:03]ProducePacketName [16:31:03]name=ofd_packets/00202076 [16:31:03]NVStorageDeleteData [16:31:03]Write to MH i2c: 01 00 00 63 07 6A [16:31:03]Write i2c OK [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: 01 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: 01 07 00 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 8F 0C 0C [16:31:03]RasterBufferAndPrint [16:31:03]line [16:31:03]line [16:31:03]line [16:31:03]line [16:31:03]line [16:31:03]written 0, free lines is 3219 [16:31:03]MH_Cut [16:31:03]Write to MH i2c: D1 01 00 6A 07 01 43 [16:31:03]Write i2c OK [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: D1 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: D1 01 00 [16:31:03]MH_I2C_Read... [16:31:03]Read from MH i2c: D1 01 00 6A 07 00 42 [16:31:03]Write to MH i2c: 01 00 00 6B 07 72 [16:31:03]Write i2c OK [16:31:03]MH_I2C_Read... [16:31:03]OFD Sender: No OFD packet to send [16:31:04]*** Cut start [16:31:04]*** Purtial cut [16:31:04]*** Stage 1: CUTSNS_PIN = 1 [16:31:04]Read from MH i2c: 01 [16:31:04]MH_I2C_Read... [16:31:04]*** Stop cut motor [16:31:04]*** Cut end [16:31:04]Read from MH i2c: 01 07 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 FF 0F 87 [16:31:04]process_action close_receipt done [16:31:04]requested_data is exist [16:31:04]produce_requested_data [16:31:04]requested_item fm.sn is exist - process it [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 11 00 00 [16:31:04]Write to MH i2c: E2 08 00 6C 07 80 11 00 00 00 00 00 00 ED [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 17 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 17 00 6C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 42 [16:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:31:04]wFMCommunicate OK [16:31:04]requested_item fd.num is exist - process it [16:31:04]SAM_PROTO_GetFieldsCounters [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 13 00 00 [16:31:04]Write to MH i2c: E2 08 00 6D 07 80 13 00 00 00 00 00 00 F0 [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 62 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 62 00 6D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:31:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:04]wFMCommunicate OK [16:31:04]SAM_PROTO_GetFieldsCounters done [16:31:04]requested_item shift.num is exist - process it [16:31:04]requested_item shift.opened is exist - process it [16:31:04]req_shift_opened [16:31:04]FM_GetShiftState [16:31:04]SAM_PROTO_GetShiftState [16:31:04]wFMCommunicate request_size=4 [16:31:04]MH_SAM_APDU [16:31:04]CAPDU: 80 13 01 00 [16:31:04]Write to MH i2c: E2 08 00 6E 07 80 13 01 00 00 00 00 00 F2 [16:31:04]Write i2c OK [16:31:04]MH_I2C_Read... [16:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:04]Read from MH i2c: E2 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 0E 00 [16:31:04]MH_I2C_Read... [16:31:04]Read from MH i2c: E2 0E 00 6E 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F4 [16:31:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:31:04]wFMCommunicate OK [16:31:04]SAM_PROTO_GetShiftState done [16:31:04]FM_GetShiftState done [16:31:04]req_shift_opened done [16:31:04]requested_item shift.open_date is exist - process it [16:31:04]req_shift_open_date [16:31:04]req_shift_open_date done [16:31:04]produce_requested_data done [16:31:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202076,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:31:04]process_action_free close_receipt [16:31:04]json_value_free [16:31:04]json_value_free done [16:31:04]process_json_proto returns [16:31:04]Send response to host [16:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202076,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:31:04]free response buf [16:31:04]execute_script done [16:31:04]execute_script returns [16:31:04]free content buf [16:31:04]Sock 8.Close socket [16:31:04]Sock 8.Thread stoped [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:20]accept exits with 9 [16:32:20]New connection [16:32:20]New thread 3067288932 created [16:32:20]Thread 3067432292 joined [16:32:20]Waiting for new connection... [16:32:20] Sock 9.Parse request [16:32:20]Sock 9.Check first char [16:32:20]Sock 9.First char is OK [16:32:20]request: POST /json_proto HTTP/1.0 [16:32:20]Method: POST [16:32:20]URL: /json_proto [16:32:20]Method is POST - this is cgi request [16:32:20]url: /json_proto [16:32:20]query_string will be loaded in cgi processing [16:32:20]execute_cgi json_proto POST (null) [16:32:20]execute_cgi path=json_proto method=POST [16:32:20]POST find Content-Length [16:32:20]Host: 172.17.63.195:8080 [16:32:20]Content-Length: 679 [16:32:20]Content-Type: application/json [16:32:20] [16:32:20]POST finish read [16:32:20]Found Content-Length = 679 [16:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:20]execute_script... [16:32:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:20]POST & json_proto [16:32:20]process_json_proto [16:32:20]json parsed OK: [16:32:20]protocol is kg_v1.0 [16:32:20]action value=close_receipt [16:32:20]process_action close_receipt [16:32:20]cmd_close_receipt [16:32:20]MH_GetDate [16:32:20]Write to MH i2c: F0 00 00 6F 07 65 [16:32:20]Write i2c OK [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: F0 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: F0 09 00 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: F0 09 00 6F 07 00 15 6B 1E 67 47 1B 1E 67 5A [16:32:20]GetLastDocTimeStamp 1730046661 [16:32:20]current date 1730046741 [16:32:20]FM_GetShiftState [16:32:20]SAM_PROTO_GetShiftState [16:32:20]wFMCommunicate request_size=4 [16:32:20]MH_SAM_APDU [16:32:20]CAPDU: 80 13 01 00 [16:32:20]Write to MH i2c: E2 08 00 70 07 80 13 01 00 00 00 00 00 F4 [16:32:20]Write i2c OK [16:32:20]MH_I2C_Read... [16:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:20]Read from MH i2c: E2 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: E2 0E 00 [16:32:20]MH_I2C_Read... [16:32:20]Read from MH i2c: E2 0E 00 70 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F6 [16:32:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:32:20]wFMCommunicate OK [16:32:20]SAM_PROTO_GetShiftState done [16:32:20]FM_GetShiftState done [16:32:20]opened in 1729987312 [16:32:20]opened+sec_in_day 1730073712 [16:32:20]quantity*price = 200025 [16:32:20]sum+1 = 200026 [16:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 369 27.10.2024 16:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202077 ФПД: 155179810143095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163221&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202077&fm=155179810143095&tin=02508201610067®Number=0000000000091777&sum=200000 [16:32:21]StoreToDocumentArchive [16:32:21]shift 544 fd 202077 [16:32:21]save to /storage/0544/doc_00202077 [16:32:21]save last doc name /storage/0544/doc_00202077 to /storage/kkm_last_doc_name [16:32:21]save OK [16:32:21]Clear old archive folders... [16:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:32:21]tlvbuf is 01C7BD10 [16:32:21]SAM_PROTO_ClearQueue [16:32:21]wFMCommunicate request_size=4 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 09 00 00 [16:32:21]Write to MH i2c: E2 08 00 7D 07 80 09 00 00 00 00 00 00 F6 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [16:32:21]RAPDU: 90 00 [16:32:21]wFMCommunicate OK [16:32:21]SAM_PROTO_ClearQueue done [16:32:21]KKMCreateOFDPacket [16:32:21]OFDProtocolAddRootSTLVToBuf [16:32:21]FM_MakeSignedData [16:32:21]FM_MakeSignedData [16:32:21]SAM_PROTO_SignData [16:32:21]wFMCommunicate request_size=4 [16:32:21]MH_SAM_APDU [16:32:21]CAPDU: 80 0D 01 02 [16:32:21]Write to MH i2c: E2 08 00 7E 07 80 0D 01 02 00 00 00 00 FE [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:21]Read from MH i2c: E2 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 [16:32:21]MH_I2C_Read... [16:32:21]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [16:32:21]RAPDU: 90 00 [16:32:21]wFMCommunicate OK [16:32:21]wFMCommunicate request_size=255 [16:32:21]MH_SAM_APDU [16:32: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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 15 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 15 03 00 35 04 06 00 8D 22 9D 75 [16:32:21]Write to MH i2c: E2 02 01 7F 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 15 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 15 03 00 35 04 06 00 8D 22 9D 75 00 00 45 [16:32:21]Write i2c OK [16:32:21]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [16:32:22]RAPDU: 90 00 [16:32:22]wFMCommunicate OK [16:32:22]wFMCommunicate request_size=7 [16:32:22]MH_SAM_APDU [16:32:22]CAPDU: 80 0D 02 02 02 BB 77 [16:32:22]Write to MH i2c: E2 0A 00 80 07 80 0D 02 02 02 00 BB 77 00 00 37 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 03 00 80 07 00 90 00 FB [16:32:22]RAPDU: 90 00 [16:32:22]wFMCommunicate OK [16:32:22]wFMCommunicate request_size=4 [16:32:22]MH_SAM_APDU [16:32:22]CAPDU: 80 0D 03 02 [16:32:22]Write to MH i2c: E2 08 00 81 07 80 0D 03 02 00 00 00 00 03 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 0B 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 0B 00 81 07 00 D7 A5 E2 76 01 BE 26 60 90 00 1D [16:32:22]RAPDU: D7 A5 E2 76 01 BE 26 60 90 00 [16:32:22]wFMCommunicate OK [16:32:22]SAM_PROTO_SignData done [16:32:22]FM_MakeSignedData done [16:32:22]CreateOFDProtocolMessage [16:32:22]wFMCommunicate request_size=4 [16:32:22]MH_SAM_APDU [16:32:22]CAPDU: 80 11 00 00 [16:32:22]Write to MH i2c: E2 08 00 82 07 80 11 00 00 00 00 00 00 03 [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:22]Read from MH i2c: E2 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 17 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: E2 17 00 82 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 58 [16:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:32:22]wFMCommunicate OK [16:32:22]CreateOFDProtocolMessage done [16:32:22]OFDSenderStorePacket 202077 [16:32:22]StoreOFDPacket docnum=202077 [16:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 23 70 04 01 71 08 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 15 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 15 03 00 35 04 06 00 8D 22 9D 75 BB 77 D7 A5 E2 76 01 BE 26 60 [16:32:22]CheckFolder [16:32:22]dirname=/storage/ofd_packets [16:32:22]CheckFolder done [16:32:22]ProducePacketName [16:32:22]name=ofd_packets/00202077 [16:32:22]NVStorageSaveData ofd_packets/00202077 [16:32:22]File name is /storage/ofd_packets/00202077 [16:32:22]Write 298 bytes [16:32:22]NVStorageSaveData done [16:32:22]OFDSenderStorePacket done [16:32:22]KKMCreateOFDPacket done [16:32:22]NVStorageSaveData kkm_last_timestamp [16:32:22]File name is /storage/kkm_last_timestamp [16:32:22]Write 4 bytes [16:32:22]NVStorageSaveData done [16:32:22]ExternCall_PrintAddStr [16:32:22]wPrintStart [16:32:22]Write to MH i2c: 01 00 00 83 07 8A [16:32:22]Write i2c OK [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 07 00 [16:32:22]MH_I2C_Read... [16:32:22]Read from MH i2c: 01 07 00 83 07 00 00 00 00 00 FF 0F 9F [16:32:22]RasterBufferAndPrint [16:32:22]line Счет N : (1)449848 [16:32:22]line ИНН: 02508201610067 [16:32:22]line Контрольно-Кассовый Чек [16:32:22]line ПРОДАЖА [16:32:22]line ТРК (МРК, ГНК) : 21 [16:32:22]line Товар: 2710194210 [16:32:22]line ДТ-К-2 [16:32:22]line 26.250 * 76.20 [16:32:22]line = 2000.25 [16:32:22]line НДС 12% НСП 1% [16:32:22]line > о реализуемом товаре [16:32:22]line ОКРУГЛЕНИЕ: -0.25 [16:32:22]line ИТОГО: 2000.00 [16:32:22]line Внесено: 2000.00 [16:32:22]line СДАЧА: 0.00 [16:32:22]line НСП 1% : 17.70 [16:32:22]line НДС 12% : 212.42 [16:32:22]line Наличными: 2000.00 [16:32:22]line Безнал.: 0.00 [16:32:22]line Место: АЗС № 171 "Партнер Нефть" [16:32:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:32:22]line СНО: Общий режим [16:32:22]line Чек 369 27.10.2024 16:32 [16:32:22]line Смена: 544 ФФД: 1.0 [16:32:22]line ЗНМ: 0300000109 [16:32:22]line РНМ: 0000000000091777 [16:32:22]line Версия ККМ: 001 [16:32:22]line ФМ: 0000000000871756 [16:32:22]line ФД: 202077 [16:32:22]line ФПД: 155179810143095 [16:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163221&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202077&fm=155179810143095&tin=02508201610067®Number=0000000000091777&sum=200000 [16:32:22]OFD Sender: Processing packet 202077 [packets to send 112, broken 111] [16:32:22]ProducePacketName [16:32:22]name=ofd_packets/00202077 [16:32:22]OFD Sender: To server: pG, [16:32:22]CommunicateWithHost lk.salyk.kg:30040 [16:32:22]ConnectInit lk.salyk.kg [16:32:22]written 0, free lines is 4095 [16:32:22]Connected sock=10 [16:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 23 70 04 01 71 08 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 32 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 15 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 15 03 00 35 04 06 00 8D 22 9D 75 BB 77 D7 A5 E2 76 01 BE 26 60 [16:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 80 6E 47 00 D9 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 15 03 00 F4 03 04 00 CE 16 1E 67 B6 04 01 00 00 AD 9F B9 92 2D 3B CA B2 [16:32:22]CommunicateWithHost err = 0 [16:32:22]CheckOFDResponse [16:32:22]1017 (14) - 77093643461234 [16:32:22]1041 (16) - 0000000000871756 [16:32:22]1040 (4) - 202077 [16:32:22]1012 (4) - 27.10.2024 10:32 [16:32:22]1206 (1) - 0 [16:32:22]OFD Sender: Remove packet 202077 [16:32:22]ProducePacketName [16:32:22]name=ofd_packets/00202077 [16:32:22]NVStorageDeleteData [16:32:23]Write to MH i2c: 01 00 00 AE 07 B5 [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: 01 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: 01 07 00 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 8C 0C 54 [16:32:23]RasterBufferAndPrint [16:32:23]line [16:32:23]line [16:32:23]line [16:32:23]line [16:32:23]line [16:32:23]written 0, free lines is 3216 [16:32:23]MH_Cut [16:32:23]Write to MH i2c: D1 01 00 B5 07 01 8E [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: D1 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: D1 01 00 [16:32:23]MH_I2C_Read... [16:32:23]Read from MH i2c: D1 01 00 B5 07 00 8D [16:32:23]Write to MH i2c: 01 00 00 B6 07 BD [16:32:23]Write i2c OK [16:32:23]MH_I2C_Read... [16:32:23]OFD Sender: No OFD packet to send [16:32:24]*** Cut start [16:32:24]*** Purtial cut [16:32:24]*** Stage 1: CUTSNS_PIN = 1 [16:32:24]Read from MH i2c: 01 [16:32:24]MH_I2C_Read... [16:32:24]*** Stop cut motor [16:32:24]*** Cut end [16:32:24]Read from MH i2c: 01 07 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [16:32:24]process_action close_receipt done [16:32:24]requested_data is exist [16:32:24]produce_requested_data [16:32:24]requested_item fm.sn is exist - process it [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 11 00 00 [16:32:24]Write to MH i2c: E2 08 00 B7 07 80 11 00 00 00 00 00 00 38 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 17 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 17 00 B7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [16:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:32:24]wFMCommunicate OK [16:32:24]requested_item fd.num is exist - process it [16:32:24]SAM_PROTO_GetFieldsCounters [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 13 00 00 [16:32:24]Write to MH i2c: E2 08 00 B8 07 80 13 00 00 00 00 00 00 3B [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 62 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 62 00 B8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [16:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:24]wFMCommunicate OK [16:32:24]SAM_PROTO_GetFieldsCounters done [16:32:24]requested_item shift.num is exist - process it [16:32:24]requested_item shift.opened is exist - process it [16:32:24]req_shift_opened [16:32:24]FM_GetShiftState [16:32:24]SAM_PROTO_GetShiftState [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 13 01 00 [16:32:24]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 0E 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3F [16:32:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:32:24]wFMCommunicate OK [16:32:24]SAM_PROTO_GetShiftState done [16:32:24]FM_GetShiftState done [16:32:24]req_shift_opened done [16:32:24]requested_item shift.open_date is exist - process it [16:32:24]req_shift_open_date [16:32:24]req_shift_open_date done [16:32:24]produce_requested_data done [16:32:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202077,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:32:24]process_action_free close_receipt [16:32:24]json_value_free [16:32:24]json_value_free done [16:32:24]process_json_proto returns [16:32:24]Send response to host [16:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202077,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:32:24]free response buf [16:32:24]execute_script done [16:32:24]execute_script returns [16:32:24]free content buf [16:32:24]Sock 9.Close socket [16:32:24]Sock 9.Thread stoped [16:32:24]accept exits with 8 [16:32:24]New connection [16:32:24]New thread 3067432292 created [16:32:24]Thread 3067288932 joined [16:32:24]Waiting for new connection... [16:32:24] Sock 8.Parse request [16:32:24]Sock 8.Check first char [16:32:24]Sock 8.First char is OK [16:32:24]request: POST /json_proto HTTP/1.0 [16:32:24]Method: POST [16:32:24]URL: /json_proto [16:32:24]Method is POST - this is cgi request [16:32:24]url: /json_proto [16:32:24]query_string will be loaded in cgi processing [16:32:24]execute_cgi json_proto POST (null) [16:32:24]execute_cgi path=json_proto method=POST [16:32:24]POST find Content-Length [16:32:24]Host: 172.17.63.195:8080 [16:32:24]Content-Length: 762 [16:32:24]Content-Type: application/json [16:32:24] [16:32:24]POST finish read [16:32:24]Found Content-Length = 762 [16:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "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.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:24]execute_script... [16:32:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "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.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:24]POST & json_proto [16:32:24]process_json_proto [16:32:24]json parsed OK: [16:32:24]protocol is kg_v1.0 [16:32:24]action value=close_receipt [16:32:24]process_action close_receipt [16:32:24]cmd_close_receipt [16:32:24]MH_GetDate [16:32:24]Write to MH i2c: F0 00 00 BA 07 B0 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: F0 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: F0 09 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: F0 09 00 BA 07 00 19 6B 1E 67 47 1B 1E 67 A9 [16:32:24]GetLastDocTimeStamp 1730046741 [16:32:24]current date 1730046745 [16:32:24]FM_GetShiftState [16:32:24]SAM_PROTO_GetShiftState [16:32:24]wFMCommunicate request_size=4 [16:32:24]MH_SAM_APDU [16:32:24]CAPDU: 80 13 01 00 [16:32:24]Write to MH i2c: E2 08 00 BB 07 80 13 01 00 00 00 00 00 3F [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:24]Read from MH i2c: E2 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 0E 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: E2 0E 00 BB 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 41 [16:32:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:32:24]wFMCommunicate OK [16:32:24]SAM_PROTO_GetShiftState done [16:32:24]FM_GetShiftState done [16:32:24]opened in 1729987312 [16:32:24]opened+sec_in_day 1730073712 [16:32:24]quantity*price = 100000 [16:32:24]sum+1 = 100002 [16:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 370 27.10.2024 16:32 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202078 ФПД: 102794674960926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163225&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202078&fm=102794674960926&tin=02508201610067®Number=0000000000091777&sum=100001 [16:32:26]StoreToDocumentArchive [16:32:26]shift 544 fd 202078 [16:32:26]save to /storage/0544/doc_00202078 [16:32:26]save last doc name /storage/0544/doc_00202078 to /storage/kkm_last_doc_name [16:32:26]save OK [16:32:26]Clear old archive folders... [16:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:32:26]tlvbuf is 01C4C120 [16:32:26]SAM_PROTO_ClearQueue [16:32:26]wFMCommunicate request_size=4 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 09 00 00 [16:32:26]Write to MH i2c: E2 08 00 C8 07 80 09 00 00 00 00 00 00 41 [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:26]Read from MH i2c: E2 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 03 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [16:32:26]RAPDU: 90 00 [16:32:26]wFMCommunicate OK [16:32:26]SAM_PROTO_ClearQueue done [16:32:26]KKMCreateOFDPacket [16:32:26]OFDProtocolAddRootSTLVToBuf [16:32:26]FM_MakeSignedData [16:32:26]FM_MakeSignedData [16:32:26]SAM_PROTO_SignData [16:32:26]wFMCommunicate request_size=4 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 0D 01 02 [16:32:26]Write to MH i2c: E2 08 00 C9 07 80 0D 01 02 00 00 00 00 49 [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:26]Read from MH i2c: E2 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 03 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [16:32:26]RAPDU: 90 00 [16:32:26]wFMCommunicate OK [16:32:26]wFMCommunicate request_size=255 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 19 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 15 03 00 35 04 06 00 [16:32:26]Write to MH i2c: E2 02 01 CA 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 19 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 15 03 00 35 04 06 00 00 00 C8 [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:26]Read from MH i2c: E2 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 03 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [16:32:26]RAPDU: 90 00 [16:32:26]wFMCommunicate OK [16:32:26]wFMCommunicate request_size=11 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 0D 02 02 06 5D 7D C0 15 FA 1E [16:32:26]Write to MH i2c: E2 0E 00 CB 07 80 0D 02 02 06 00 5D 7D C0 15 FA 1E 00 00 1F [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:26]Read from MH i2c: E2 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 03 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [16:32:26]RAPDU: 90 00 [16:32:26]wFMCommunicate OK [16:32:26]wFMCommunicate request_size=4 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 0D 03 02 [16:32:26]Write to MH i2c: E2 08 00 CC 07 80 0D 03 02 00 00 00 00 4E [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:26]Read from MH i2c: E2 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 0B 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 0B 00 CC 07 00 98 FB 2F E5 D9 BF 3F D9 90 00 A6 [16:32:26]RAPDU: 98 FB 2F E5 D9 BF 3F D9 90 00 [16:32:26]wFMCommunicate OK [16:32:26]SAM_PROTO_SignData done [16:32:26]FM_MakeSignedData done [16:32:26]CreateOFDProtocolMessage [16:32:26]wFMCommunicate request_size=4 [16:32:26]MH_SAM_APDU [16:32:26]CAPDU: 80 11 00 00 [16:32:26]Write to MH i2c: E2 08 00 CD 07 80 11 00 00 00 00 00 00 4E [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:26]Read from MH i2c: E2 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 17 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: E2 17 00 CD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A3 [16:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:32:26]wFMCommunicate OK [16:32:26]CreateOFDProtocolMessage done [16:32:26]OFDSenderStorePacket 202078 [16:32:26]StoreOFDPacket docnum=202078 [16:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 3E 22 08 01 D1 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 19 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 15 03 00 35 04 06 00 5D 7D C0 15 FA 1E 98 FB 2F E5 D9 BF 3F D9 [16:32:26]CheckFolder [16:32:26]dirname=/storage/ofd_packets [16:32:26]CheckFolder done [16:32:26]ProducePacketName [16:32:26]name=ofd_packets/00202078 [16:32:26]NVStorageSaveData ofd_packets/00202078 [16:32:26]File name is /storage/ofd_packets/00202078 [16:32:26]Write 302 bytes [16:32:26]NVStorageSaveData done [16:32:26]OFDSenderStorePacket done [16:32:26]KKMCreateOFDPacket done [16:32:26]NVStorageSaveData kkm_last_timestamp [16:32:26]File name is /storage/kkm_last_timestamp [16:32:26]Write 4 bytes [16:32:26]NVStorageSaveData done [16:32:26]ExternCall_PrintAddStr [16:32:26]wPrintStart [16:32:26]Write to MH i2c: 01 00 00 CE 07 D5 [16:32:26]Write i2c OK [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: 01 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: 01 07 00 [16:32:26]MH_I2C_Read... [16:32:26]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 FF 0F EA [16:32:26]RasterBufferAndPrint [16:32:26]line Счет N : (1)449847 [16:32:26]line ИНН: 02508201610067 [16:32:26]line Контрольно-Кассовый Чек [16:32:26]line ПРОДАЖА [16:32:26]line ТРК (МРК, ГНК) : 42 [16:32:26]line Товар: 2710124130 [16:32:26]line SUPER 92-К-5 [16:32:26]line 14.620 * 68.40 [16:32:26]line = 1000.01 [16:32:26]line НДС 12% НСП 1% [16:32:26]line > о реализуемом товаре [16:32:26]line ИТОГО: 1000.01 [16:32:26]line НСП 1% : 8.85 [16:32:26]line НДС 12% : 106.20 [16:32:26]line Наличными: 0.00 [16:32:26]line Безнал.: 1000.01 [16:32:27]line Место: АЗС № 171 "Партнер Нефть" [16:32:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:32:27]line СНО: Общий режим [16:32:27]line Чек 370 27.10.2024 16:32 [16:32:27]line Смена: 544 ФФД: 1.0 [16:32:27]line ЗНМ: 0300000109 [16:32:27]line РНМ: 0000000000091777 [16:32:27]line Версия ККМ: 001 [16:32:27]line Платежная система: Mbank [16:32:27]line ФМ: 0000000000871756 [16:32:27]line ФД: 202078 [16:32:27]line ФПД: 102794674960926 [16:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163225&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202078&fm=102794674960926&tin=02508201610067®Number=0000000000091777&sum=100001 [16:32:27]OFD Sender: Processing packet 202078 [packets to send 112, broken 111] [16:32:27]ProducePacketName [16:32:27]name=ofd_packets/00202078 [16:32:27]OFD Sender: To server: pG, [16:32:27]CommunicateWithHost lk.salyk.kg:30040 [16:32:27]ConnectInit lk.salyk.kg [16:32:27]written 0, free lines is 4095 [16:32:27]Connected sock=9 [16:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 3E 22 08 01 D1 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 19 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 15 03 00 35 04 06 00 5D 7D C0 15 FA 1E 98 FB 2F E5 D9 BF 3F D9 [16:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6A B8 47 00 CB 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 15 03 00 F4 03 04 00 D3 16 1E 67 B6 04 01 00 00 36 1A 6F C0 A6 6B 3A AE [16:32:27]CommunicateWithHost err = 0 [16:32:27]CheckOFDResponse [16:32:27]1017 (14) - 77093643461234 [16:32:27]1041 (16) - 0000000000871756 [16:32:27]1040 (4) - 202078 [16:32:27]1012 (4) - 27.10.2024 10:32 [16:32:27]1206 (1) - 0 [16:32:27]OFD Sender: Remove packet 202078 [16:32:27]ProducePacketName [16:32:27]name=ofd_packets/00202078 [16:32:27]NVStorageDeleteData [16:32:27]Write to MH i2c: 01 00 00 F7 07 FE [16:32:27]Write i2c OK [16:32:27]MH_I2C_Read... [16:32:27]Read from MH i2c: 01 [16:32:27]MH_I2C_Read... [16:32:27]Read from MH i2c: 01 07 00 [16:32:27]MH_I2C_Read... [16:32:27]Read from MH i2c: 01 07 00 F7 07 00 00 00 00 00 CB 0C DC [16:32:27]RasterBufferAndPrint [16:32:27]line [16:32:27]line [16:32:27]line [16:32:27]line [16:32:27]line [16:32:27]written 0, free lines is 3286 [16:32:27]MH_Cut [16:32:27]Write to MH i2c: D1 01 00 FE 07 01 D7 [16:32:27]Write i2c OK [16:32:27]MH_I2C_Read... [16:32:27]Read from MH i2c: D1 [16:32:27]MH_I2C_Read... [16:32:27]Read from MH i2c: D1 01 00 [16:32:27]MH_I2C_Read... [16:32:27]Read from MH i2c: D1 01 00 FE 07 00 D6 [16:32:27]Write to MH i2c: 01 00 00 FF 07 06 [16:32:27]Write i2c OK [16:32:27]MH_I2C_Read... [16:32:28]OFD Sender: No OFD packet to send [16:32:28]*** Cut start [16:32:28]*** Purtial cut [16:32:28]*** Stage 1: CUTSNS_PIN = 1 [16:32:28]Read from MH i2c: 01 [16:32:28]MH_I2C_Read... [16:32:28]*** Stop cut motor [16:32:28]*** Cut end [16:32:28]Read from MH i2c: 01 07 00 [16:32:28]MH_I2C_Read... [16:32:28]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 FF 0F 1B [16:32:28]process_action close_receipt done [16:32:28]requested_data is exist [16:32:28]produce_requested_data [16:32:28]requested_item fm.sn is exist - process it [16:32:28]wFMCommunicate request_size=4 [16:32:28]MH_SAM_APDU [16:32:28]CAPDU: 80 11 00 00 [16:32:28]Write to MH i2c: E2 08 00 00 08 80 11 00 00 00 00 00 00 82 [16:32:28]Write i2c OK [16:32:28]MH_I2C_Read... [16:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:28]Read from MH i2c: E2 [16:32:28]MH_I2C_Read... [16:32:28]Read from MH i2c: E2 17 00 [16:32:28]MH_I2C_Read... [16:32:28]Read from MH i2c: E2 17 00 00 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D7 [16:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:32:28]wFMCommunicate OK [16:32:28]requested_item fd.num is exist - process it [16:32:28]SAM_PROTO_GetFieldsCounters [16:32:28]wFMCommunicate request_size=4 [16:32:28]MH_SAM_APDU [16:32:28]CAPDU: 80 13 00 00 [16:32:28]Write to MH i2c: E2 08 00 01 08 80 13 00 00 00 00 00 00 85 [16:32:28]Write i2c OK [16:32:28]MH_I2C_Read... [16:32:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:29]Read from MH i2c: E2 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: E2 62 00 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: E2 62 00 01 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [16:32:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:29]wFMCommunicate OK [16:32:29]SAM_PROTO_GetFieldsCounters done [16:32:29]requested_item shift.num is exist - process it [16:32:29]requested_item shift.opened is exist - process it [16:32:29]req_shift_opened [16:32:29]FM_GetShiftState [16:32:29]SAM_PROTO_GetShiftState [16:32:29]wFMCommunicate request_size=4 [16:32:29]MH_SAM_APDU [16:32:29]CAPDU: 80 13 01 00 [16:32:29]Write to MH i2c: E2 08 00 02 08 80 13 01 00 00 00 00 00 87 [16:32:29]Write i2c OK [16:32:29]MH_I2C_Read... [16:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:29]Read from MH i2c: E2 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: E2 0E 00 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: E2 0E 00 02 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 89 [16:32:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:32:29]wFMCommunicate OK [16:32:29]SAM_PROTO_GetShiftState done [16:32:29]FM_GetShiftState done [16:32:29]req_shift_opened done [16:32:29]requested_item shift.open_date is exist - process it [16:32:29]req_shift_open_date [16:32:29]req_shift_open_date done [16:32:29]produce_requested_data done [16:32:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202078,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:32:29]process_action_free close_receipt [16:32:29]json_value_free [16:32:29]json_value_free done [16:32:29]process_json_proto returns [16:32:29]Send response to host [16:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202078,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:32:29]free response buf [16:32:29]execute_script done [16:32:29]execute_script returns [16:32:29]free content buf [16:32:29]Sock 8.Close socket [16:32:29]Sock 8.Thread stoped [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]accept exits with 10 [16:33:08]New connection [16:33:08]New thread 3067288932 created [16:33:08]Thread 3067432292 joined [16:33:08]Waiting for new connection... [16:33:08] Sock 10.Parse request [16:33:08]Sock 10.Check first char [16:33:08]Sock 10.First char is OK [16:33:08]request: POST /json_proto HTTP/1.0 [16:33:08]Method: POST [16:33:08]URL: /json_proto [16:33:08]Method is POST - this is cgi request [16:33:08]url: /json_proto [16:33:08]query_string will be loaded in cgi processing [16:33:08]execute_cgi json_proto POST (null) [16:33:08]execute_cgi path=json_proto method=POST [16:33:08]POST find Content-Length [16:33:08]Host: 172.17.63.195:8080 [16:33:08]Content-Length: 679 [16:33:08]Content-Type: application/json [16:33:08] [16:33:08]POST finish read [16:33:08]Found Content-Length = 679 [16:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:08]execute_script... [16:33:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:08]POST & json_proto [16:33:08]process_json_proto [16:33:08]json parsed OK: [16:33:08]protocol is kg_v1.0 [16:33:08]action value=close_receipt [16:33:08]process_action close_receipt [16:33:08]cmd_close_receipt [16:33:08]MH_GetDate [16:33:08]Write to MH i2c: F0 00 00 03 08 FA [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: F0 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: F0 09 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: F0 09 00 03 08 00 44 6B 1E 67 47 1B 1E 67 1E [16:33:08]GetLastDocTimeStamp 1730046745 [16:33:08]current date 1730046788 [16:33:08]FM_GetShiftState [16:33:08]SAM_PROTO_GetShiftState [16:33:08]wFMCommunicate request_size=4 [16:33:08]MH_SAM_APDU [16:33:08]CAPDU: 80 13 01 00 [16:33:08]Write to MH i2c: E2 08 00 04 08 80 13 01 00 00 00 00 00 89 [16:33:08]Write i2c OK [16:33:08]MH_I2C_Read... [16:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:08]Read from MH i2c: E2 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 0E 00 [16:33:08]MH_I2C_Read... [16:33:08]Read from MH i2c: E2 0E 00 04 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8B [16:33:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:33:08]wFMCommunicate OK [16:33:08]SAM_PROTO_GetShiftState done [16:33:08]FM_GetShiftState done [16:33:08]opened in 1729987312 [16:33:08]opened+sec_in_day 1730073712 [16:33:08]quantity*price = 150037 [16:33:08]sum+1 = 150039 [16:33:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 371 27.10.2024 16:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202079 ФПД: 204559310929159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163308&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202079&fm=204559310929159&tin=02508201610067®Number=0000000000091777&sum=150000 [16:33:09]StoreToDocumentArchive [16:33:09]shift 544 fd 202079 [16:33:09]save to /storage/0544/doc_00202079 [16:33:09]save last doc name /storage/0544/doc_00202079 to /storage/kkm_last_doc_name [16:33:09]save OK [16:33:09]Clear old archive folders... [16:33:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:33:09]tlvbuf is 01C4BAB0 [16:33:09]SAM_PROTO_ClearQueue [16:33:09]wFMCommunicate request_size=4 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 09 00 00 [16:33:09]Write to MH i2c: E2 08 00 11 08 80 09 00 00 00 00 00 00 8B [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 03 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [16:33:09]RAPDU: 90 00 [16:33:09]wFMCommunicate OK [16:33:09]SAM_PROTO_ClearQueue done [16:33:09]KKMCreateOFDPacket [16:33:09]OFDProtocolAddRootSTLVToBuf [16:33:09]FM_MakeSignedData [16:33:09]FM_MakeSignedData [16:33:09]SAM_PROTO_SignData [16:33:09]wFMCommunicate request_size=4 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 0D 01 02 [16:33:09]Write to MH i2c: E2 08 00 12 08 80 0D 01 02 00 00 00 00 93 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 03 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [16:33:09]RAPDU: 90 00 [16:33:09]wFMCommunicate OK [16:33:09]wFMCommunicate request_size=255 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 44 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 15 03 00 35 04 06 00 BA 0B AD 10 [16:33:09]Write to MH i2c: E2 02 01 13 08 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 44 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 15 03 00 35 04 06 00 BA 0B AD 10 00 00 57 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 03 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 03 00 13 08 00 90 00 8F [16:33:09]RAPDU: 90 00 [16:33:09]wFMCommunicate OK [16:33:09]wFMCommunicate request_size=7 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 0D 02 02 02 3D 07 [16:33:09]Write to MH i2c: E2 0A 00 14 08 80 0D 02 02 02 00 3D 07 00 00 DE [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 03 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [16:33:09]RAPDU: 90 00 [16:33:09]wFMCommunicate OK [16:33:09]wFMCommunicate request_size=4 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 0D 03 02 [16:33:09]Write to MH i2c: E2 08 00 15 08 80 0D 03 02 00 00 00 00 98 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 0B 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 0B 00 15 08 00 C6 4A 4A 7A 1B DF 21 B8 90 00 40 [16:33:09]RAPDU: C6 4A 4A 7A 1B DF 21 B8 90 00 [16:33:09]wFMCommunicate OK [16:33:09]SAM_PROTO_SignData done [16:33:09]FM_MakeSignedData done [16:33:09]CreateOFDProtocolMessage [16:33:09]wFMCommunicate request_size=4 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 11 00 00 [16:33:09]Write to MH i2c: E2 08 00 16 08 80 11 00 00 00 00 00 00 98 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 17 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 17 00 16 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 ED [16:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:33:09]wFMCommunicate OK [16:33:09]CreateOFDProtocolMessage done [16:33:09]OFDSenderStorePacket 202079 [16:33:09]StoreOFDPacket docnum=202079 [16:33:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 54 7F 04 01 F9 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 44 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 15 03 00 35 04 06 00 BA 0B AD 10 3D 07 C6 4A 4A 7A 1B DF 21 B8 [16:33:09]CheckFolder [16:33:09]dirname=/storage/ofd_packets [16:33:09]CheckFolder done [16:33:09]ProducePacketName [16:33:09]name=ofd_packets/00202079 [16:33:09]NVStorageSaveData ofd_packets/00202079 [16:33:09]File name is /storage/ofd_packets/00202079 [16:33:09]Write 298 bytes [16:33:09]NVStorageSaveData done [16:33:09]OFDSenderStorePacket done [16:33:09]KKMCreateOFDPacket done [16:33:09]NVStorageSaveData kkm_last_timestamp [16:33:09]File name is /storage/kkm_last_timestamp [16:33:09]Write 4 bytes [16:33:09]NVStorageSaveData done [16:33:09]ExternCall_PrintAddStr [16:33:09]wPrintStart [16:33:09]Write to MH i2c: 01 00 00 17 08 1F [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 07 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 07 00 17 08 00 00 00 00 00 FF 0F 34 [16:33:09]RasterBufferAndPrint [16:33:09]line Счет N : (1)449849 [16:33:09]line ИНН: 02508201610067 [16:33:09]line Контрольно-Кассовый Чек [16:33:09]line ПРОДАЖА [16:33:09]line ТРК (МРК, ГНК) : 11 [16:33:09]line Товар: 2710194210 [16:33:09]line ДТ-К-2 [16:33:09]line 19.690 * 76.20 [16:33:09]line = 1500.38 [16:33:09]line НДС 12% НСП 1% [16:33:09]line > о реализуемом товаре [16:33:09]line ОКРУГЛЕНИЕ: -0.38 [16:33:09]line ИТОГО: 1500.00 [16:33:09]line Внесено: 1500.00 [16:33:09]line СДАЧА: 0.00 [16:33:09]line НСП 1% : 13.28 [16:33:09]line НДС 12% : 159.33 [16:33:09]line Наличными: 1500.00 [16:33:09]line Безнал.: 0.00 [16:33:09]line Место: АЗС № 171 "Партнер Нефть" [16:33:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:33:09]line СНО: Общий режим [16:33:09]line Чек 371 27.10.2024 16:33 [16:33:09]line Смена: 544 ФФД: 1.0 [16:33:09]line ЗНМ: 0300000109 [16:33:09]line РНМ: 0000000000091777 [16:33:09]line Версия ККМ: 001 [16:33:09]line ФМ: 0000000000871756 [16:33:09]line ФД: 202079 [16:33:09]line ФПД: 204559310929159 [16:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163308&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202079&fm=204559310929159&tin=02508201610067®Number=0000000000091777&sum=150000 [16:33:10]OFD Sender: Processing packet 202079 [packets to send 112, broken 111] [16:33:10]ProducePacketName [16:33:10]name=ofd_packets/00202079 [16:33:10]OFD Sender: To server: pG, [16:33:10]CommunicateWithHost lk.salyk.kg:30040 [16:33:10]ConnectInit lk.salyk.kg [16:33:10]written 0, free lines is 4095 [16:33:10]Connected sock=9 [16:33:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 54 7F 04 01 F9 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 44 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 15 03 00 35 04 06 00 BA 0B AD 10 3D 07 C6 4A 4A 7A 1B DF 21 B8 [16:33:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 94 9E 47 00 3B 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 15 03 00 F4 03 04 00 FE 16 1E 67 B6 04 01 00 00 DD C9 66 99 07 E4 91 8B [16:33:10]CommunicateWithHost err = 0 [16:33:10]CheckOFDResponse [16:33:10]1017 (14) - 77093643461234 [16:33:10]1041 (16) - 0000000000871756 [16:33:10]1040 (4) - 202079 [16:33:10]1012 (4) - 27.10.2024 10:33 [16:33:10]1206 (1) - 0 [16:33:10]OFD Sender: Remove packet 202079 [16:33:10]ProducePacketName [16:33:10]name=ofd_packets/00202079 [16:33:10]NVStorageDeleteData [16:33:10]Write to MH i2c: 01 00 00 42 08 4A [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: 01 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: 01 07 00 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 91 0C EE [16:33:10]RasterBufferAndPrint [16:33:10]line [16:33:10]line [16:33:10]line [16:33:10]line [16:33:10]line [16:33:10]written 0, free lines is 3221 [16:33:10]MH_Cut [16:33:10]Write to MH i2c: D1 01 00 49 08 01 23 [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: D1 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: D1 01 00 [16:33:10]MH_I2C_Read... [16:33:10]Read from MH i2c: D1 01 00 49 08 00 22 [16:33:10]Write to MH i2c: 01 00 00 4A 08 52 [16:33:10]Write i2c OK [16:33:10]MH_I2C_Read... [16:33:10]OFD Sender: No OFD packet to send [16:33:11]*** Cut start [16:33:11]*** Purtial cut [16:33:11]*** Stage 1: CUTSNS_PIN = 1 [16:33:11]Read from MH i2c: 01 [16:33:11]MH_I2C_Read... [16:33:11]*** Stop cut motor [16:33:11]*** Cut end [16:33:11]Read from MH i2c: 01 07 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 FF 0F 67 [16:33:11]process_action close_receipt done [16:33:11]requested_data is exist [16:33:11]produce_requested_data [16:33:11]requested_item fm.sn is exist - process it [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 11 00 00 [16:33:11]Write to MH i2c: E2 08 00 4B 08 80 11 00 00 00 00 00 00 CD [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 17 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 17 00 4B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [16:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:33:11]wFMCommunicate OK [16:33:11]requested_item fd.num is exist - process it [16:33:11]SAM_PROTO_GetFieldsCounters [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 13 00 00 [16:33:11]Write to MH i2c: E2 08 00 4C 08 80 13 00 00 00 00 00 00 D0 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 62 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 62 00 4C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [16:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:11]wFMCommunicate OK [16:33:11]SAM_PROTO_GetFieldsCounters done [16:33:11]requested_item shift.num is exist - process it [16:33:11]requested_item shift.opened is exist - process it [16:33:11]req_shift_opened [16:33:11]FM_GetShiftState [16:33:11]SAM_PROTO_GetShiftState [16:33:11]wFMCommunicate request_size=4 [16:33:11]MH_SAM_APDU [16:33:11]CAPDU: 80 13 01 00 [16:33:11]Write to MH i2c: E2 08 00 4D 08 80 13 01 00 00 00 00 00 D2 [16:33:11]Write i2c OK [16:33:11]MH_I2C_Read... [16:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:11]Read from MH i2c: E2 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 0E 00 [16:33:11]MH_I2C_Read... [16:33:11]Read from MH i2c: E2 0E 00 4D 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D4 [16:33:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:33:11]wFMCommunicate OK [16:33:11]SAM_PROTO_GetShiftState done [16:33:11]FM_GetShiftState done [16:33:11]req_shift_opened done [16:33:11]requested_item shift.open_date is exist - process it [16:33:11]req_shift_open_date [16:33:11]req_shift_open_date done [16:33:11]produce_requested_data done [16:33:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202079,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:33:11]process_action_free close_receipt [16:33:11]json_value_free [16:33:11]json_value_free done [16:33:11]process_json_proto returns [16:33:11]Send response to host [16:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202079,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:33:11]free response buf [16:33:11]execute_script done [16:33:11]execute_script returns [16:33:11]free content buf [16:33:11]Sock 10.Close socket [16:33:11]Sock 10.Thread stoped [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:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:08]accept exits with 8 [16:36:08]New connection [16:36:08]New thread 3067432292 created [16:36:08]Thread 3067288932 joined [16:36:08]Waiting for new connection... [16:36:08] Sock 8.Parse request [16:36:08]Sock 8.Check first char [16:36:08]Sock 8.First char is OK [16:36:08]request: POST /json_proto HTTP/1.0 [16:36:08]Method: POST [16:36:08]URL: /json_proto [16:36:08]Method is POST - this is cgi request [16:36:08]url: /json_proto [16:36:08]query_string will be loaded in cgi processing [16:36:08]execute_cgi json_proto POST (null) [16:36:08]execute_cgi path=json_proto method=POST [16:36:08]POST find Content-Length [16:36:08]Host: 172.17.63.195:8080 [16:36:08]Content-Length: 792 [16:36:08]Content-Type: application/json [16:36:08] [16:36:08]POST finish read [16:36:08]Found Content-Length = 792 [16:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01981", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:08]execute_script... [16:36:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01981", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:08]POST & json_proto [16:36:08]process_json_proto [16:36:08]json parsed OK: [16:36:08]protocol is kg_v1.0 [16:36:08]action value=close_receipt [16:36:08]process_action close_receipt [16:36:08]cmd_close_receipt [16:36:08]MH_GetDate [16:36:08]Write to MH i2c: F0 00 00 4E 08 45 [16:36:08]Write i2c OK [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: F0 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: F0 09 00 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: F0 09 00 4E 08 00 F9 6B 1E 67 47 1B 1E 67 1E [16:36:08]GetLastDocTimeStamp 1730046788 [16:36:08]current date 1730046969 [16:36:08]FM_GetShiftState [16:36:08]SAM_PROTO_GetShiftState [16:36:08]wFMCommunicate request_size=4 [16:36:08]MH_SAM_APDU [16:36:08]CAPDU: 80 13 01 00 [16:36:08]Write to MH i2c: E2 08 00 4F 08 80 13 01 00 00 00 00 00 D4 [16:36:08]Write i2c OK [16:36:08]MH_I2C_Read... [16:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:08]Read from MH i2c: E2 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: E2 0E 00 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: E2 0E 00 4F 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D6 [16:36:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:36:08]wFMCommunicate OK [16:36:08]SAM_PROTO_GetShiftState done [16:36:08]FM_GetShiftState done [16:36:08]opened in 1729987312 [16:36:08]opened+sec_in_day 1730073712 [16:36:08]quantity*price = 0 [16:36:08]sum+1 = 1 [16:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 372 27.10.2024 16:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Талоны: Топливная Карта 01981 ФМ: 0000000000871756 ФД: 202080 ФПД: 269440598071209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163609&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202080&fm=269440598071209&tin=02508201610067®Number=0000000000091777&sum=0 [16:36:09]StoreToDocumentArchive [16:36:09]shift 544 fd 202080 [16:36:09]save to /storage/0544/doc_00202080 [16:36:09]save last doc name /storage/0544/doc_00202080 to /storage/kkm_last_doc_name [16:36:09]save OK [16:36:09]Clear old archive folders... [16:36:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:09]tlvbuf is 01C7AED0 [16:36:09]SAM_PROTO_ClearQueue [16:36:09]wFMCommunicate request_size=4 [16:36:09]MH_SAM_APDU [16:36:09]CAPDU: 80 09 00 00 [16:36:09]Write to MH i2c: E2 08 00 5C 08 80 09 00 00 00 00 00 00 D6 [16:36:09]Write i2c OK [16:36:09]MH_I2C_Read... [16:36:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:09]Read from MH i2c: E2 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 03 00 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [16:36:09]RAPDU: 90 00 [16:36:09]wFMCommunicate OK [16:36:09]SAM_PROTO_ClearQueue done [16:36:09]KKMCreateOFDPacket [16:36:09]OFDProtocolAddRootSTLVToBuf [16:36:09]FM_MakeSignedData [16:36:09]FM_MakeSignedData [16:36:09]SAM_PROTO_SignData [16:36:09]wFMCommunicate request_size=4 [16:36:09]MH_SAM_APDU [16:36:09]CAPDU: 80 0D 01 02 [16:36:09]Write to MH i2c: E2 08 00 5D 08 80 0D 01 02 00 00 00 00 DE [16:36:09]Write i2c OK [16:36:09]MH_I2C_Read... [16:36:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:09]Read from MH i2c: E2 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 03 00 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [16:36:09]RAPDU: 90 00 [16:36:09]wFMCommunicate OK [16:36:09]wFMCommunicate request_size=255 [16:36:09]MH_SAM_APDU [16:36:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 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 74 01 00 00 F4 03 04 00 F9 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 15 03 00 35 04 06 00 F5 [16:36:09]Write to MH i2c: E2 02 01 5E 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 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 74 01 00 00 F4 03 04 00 F9 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 15 03 00 35 04 06 00 F5 00 00 AC [16:36:09]Write i2c OK [16:36:09]MH_I2C_Read... [16:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:10]Read from MH i2c: E2 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: E2 03 00 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [16:36:10]RAPDU: 90 00 [16:36:10]wFMCommunicate OK [16:36:10]wFMCommunicate request_size=10 [16:36:10]MH_SAM_APDU [16:36:10]CAPDU: 80 0D 02 02 05 0E 07 22 D7 A9 [16:36:10]Write to MH i2c: E2 0D 00 5F 08 80 0D 02 02 05 00 0E 07 22 D7 A9 00 00 A2 [16:36:10]Write i2c OK [16:36:10]MH_I2C_Read... [16:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:10]Read from MH i2c: E2 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: E2 03 00 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [16:36:10]RAPDU: 90 00 [16:36:10]wFMCommunicate OK [16:36:10]wFMCommunicate request_size=4 [16:36:10]MH_SAM_APDU [16:36:10]CAPDU: 80 0D 03 02 [16:36:10]Write to MH i2c: E2 08 00 60 08 80 0D 03 02 00 00 00 00 E3 [16:36:10]Write i2c OK [16:36:10]MH_I2C_Read... [16:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:10]Read from MH i2c: E2 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: E2 0B 00 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: E2 0B 00 60 08 00 A2 A7 FC ED 1A 57 BF 06 90 00 4C [16:36:10]RAPDU: A2 A7 FC ED 1A 57 BF 06 90 00 [16:36:10]wFMCommunicate OK [16:36:10]SAM_PROTO_SignData done [16:36:10]FM_MakeSignedData done [16:36:10]CreateOFDProtocolMessage [16:36:10]wFMCommunicate request_size=4 [16:36:10]MH_SAM_APDU [16:36:10]CAPDU: 80 11 00 00 [16:36:10]Write to MH i2c: E2 08 00 61 08 80 11 00 00 00 00 00 00 E3 [16:36:10]Write i2c OK [16:36:10]MH_I2C_Read... [16:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:10]Read from MH i2c: E2 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: E2 17 00 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: E2 17 00 61 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [16:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:36:10]wFMCommunicate OK [16:36:10]CreateOFDProtocolMessage done [16:36:10]OFDSenderStorePacket 202080 [16:36:10]StoreOFDPacket docnum=202080 [16:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 09 77 07 01 23 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 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 74 01 00 00 F4 03 04 00 F9 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 15 03 00 35 04 06 00 F5 0E 07 22 D7 A9 A2 A7 FC ED 1A 57 BF 06 [16:36:10]CheckFolder [16:36:10]dirname=/storage/ofd_packets [16:36:10]CheckFolder done [16:36:10]ProducePacketName [16:36:10]name=ofd_packets/00202080 [16:36:10]NVStorageSaveData ofd_packets/00202080 [16:36:10]File name is /storage/ofd_packets/00202080 [16:36:10]Write 301 bytes [16:36:10]NVStorageSaveData done [16:36:10]OFDSenderStorePacket done [16:36:10]KKMCreateOFDPacket done [16:36:10]NVStorageSaveData kkm_last_timestamp [16:36:10]File name is /storage/kkm_last_timestamp [16:36:10]Write 4 bytes [16:36:10]NVStorageSaveData done [16:36:10]ExternCall_PrintAddStr [16:36:10]wPrintStart [16:36:10]Write to MH i2c: 01 00 00 62 08 6A [16:36:10]Write i2c OK [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: 01 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: 01 07 00 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: 01 07 00 62 08 00 00 00 00 00 FF 0F 7F [16:36:10]RasterBufferAndPrint [16:36:10]line Счет N : (1)449850 [16:36:10]line ИНН: 02508201610067 [16:36:10]line Контрольно-Кассовый Чек [16:36:10]line ПРОДАЖА [16:36:10]line ТРК (МРК, ГНК) : 52 [16:36:10]line Товар: 2710124130 [16:36:10]line Аи-92-К-2 [16:36:10]line 15.000 * 0.00 [16:36:10]line = 0.00 [16:36:10]line НДС 12% НСП 1% [16:36:10]line > о реализуемом товаре [16:36:10]line ИТОГО: 0.00 [16:36:10]line НСП 1% : 0.00 [16:36:10]line НДС 12% : 0.00 [16:36:10]line Наличными: 0.00 [16:36:10]line Безнал.: 0.00 [16:36:10]line Место: АЗС № 171 "Партнер Нефть" [16:36:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:36:10]line СНО: Общий режим [16:36:10]line Чек 372 27.10.2024 16:36 [16:36:10]line Смена: 544 ФФД: 1.0 [16:36:10]line ЗНМ: 0300000109 [16:36:10]line РНМ: 0000000000091777 [16:36:10]line Версия ККМ: 001 [16:36:10]line Талоны: Топливная Карта [16:36:10]line 01981 [16:36:10]line ФМ: 0000000000871756 [16:36:10]line ФД: 202080 [16:36:10]line ФПД: 269440598071209 [16:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163609&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202080&fm=269440598071209&tin=02508201610067®Number=0000000000091777&sum=0 [16:36:10]OFD Sender: Processing packet 202080 [packets to send 112, broken 111] [16:36:10]ProducePacketName [16:36:10]name=ofd_packets/00202080 [16:36:10]OFD Sender: To server: pG, [16:36:10]CommunicateWithHost lk.salyk.kg:30040 [16:36:10]ConnectInit lk.salyk.kg [16:36:10]written 0, free lines is 4095 [16:36:10]Connected sock=10 [16:36:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 09 77 07 01 23 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 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 74 01 00 00 F4 03 04 00 F9 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 15 03 00 35 04 06 00 F5 0E 07 22 D7 A9 A2 A7 FC ED 1A 57 BF 06 [16:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8C FD 47 00 B8 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 15 03 00 F4 03 04 00 B2 17 1E 67 B6 04 01 00 00 9A 5C 85 26 38 54 09 74 [16:36:10]CommunicateWithHost err = 0 [16:36:10]CheckOFDResponse [16:36:10]1017 (14) - 77093643461234 [16:36:10]1041 (16) - 0000000000871756 [16:36:10]1040 (4) - 202080 [16:36:10]1012 (4) - 27.10.2024 10:36 [16:36:10]1206 (1) - 0 [16:36:10]OFD Sender: Remove packet 202080 [16:36:10]ProducePacketName [16:36:10]name=ofd_packets/00202080 [16:36:10]NVStorageDeleteData [16:36:10]Write to MH i2c: 01 00 00 8C 08 94 [16:36:10]Write i2c OK [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: 01 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: 01 07 00 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 A7 0C 4E [16:36:10]RasterBufferAndPrint [16:36:10]line [16:36:10]line [16:36:10]line [16:36:10]line [16:36:10]line [16:36:10]written 0, free lines is 3242 [16:36:10]MH_Cut [16:36:10]Write to MH i2c: D1 01 00 93 08 01 6D [16:36:10]Write i2c OK [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: D1 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: D1 01 00 [16:36:10]MH_I2C_Read... [16:36:10]Read from MH i2c: D1 01 00 93 08 00 6C [16:36:10]Write to MH i2c: 01 00 00 94 08 9C [16:36:10]Write i2c OK [16:36:10]MH_I2C_Read... [16:36:11]OFD Sender: No OFD packet to send [16:36:11]*** Cut start [16:36:11]*** Purtial cut [16:36:11]*** Stage 1: CUTSNS_PIN = 1 [16:36:12]Read from MH i2c: 01 [16:36:12]MH_I2C_Read... [16:36:12]*** Stop cut motor [16:36:12]*** Cut end [16:36:12]Read from MH i2c: 01 07 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: 01 07 00 94 08 00 00 00 00 00 FF 0F B1 [16:36:12]process_action close_receipt done [16:36:12]requested_data is exist [16:36:12]produce_requested_data [16:36:12]requested_item fm.sn is exist - process it [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 11 00 00 [16:36:12]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 17 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [16:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:36:12]wFMCommunicate OK [16:36:12]requested_item fd.num is exist - process it [16:36:12]SAM_PROTO_GetFieldsCounters [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 13 00 00 [16:36:12]Write to MH i2c: E2 08 00 96 08 80 13 00 00 00 00 00 00 1A [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 62 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 62 00 96 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 60 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:36:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 60 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:12]wFMCommunicate OK [16:36:12]SAM_PROTO_GetFieldsCounters done [16:36:12]requested_item shift.num is exist - process it [16:36:12]requested_item shift.opened is exist - process it [16:36:12]req_shift_opened [16:36:12]FM_GetShiftState [16:36:12]SAM_PROTO_GetShiftState [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 13 01 00 [16:36:12]Write to MH i2c: E2 08 00 97 08 80 13 01 00 00 00 00 00 1C [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 0E 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 0E 00 97 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1E [16:36:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:36:12]wFMCommunicate OK [16:36:12]SAM_PROTO_GetShiftState done [16:36:12]FM_GetShiftState done [16:36:12]req_shift_opened done [16:36:12]requested_item shift.open_date is exist - process it [16:36:12]req_shift_open_date [16:36:12]req_shift_open_date done [16:36:12]produce_requested_data done [16:36:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202080,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:36:12]process_action_free close_receipt [16:36:12]json_value_free [16:36:12]json_value_free done [16:36:12]process_json_proto returns [16:36:12]Send response to host [16:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202080,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:36:12]free response buf [16:36:12]execute_script done [16:36:12]execute_script returns [16:36:12]free content buf [16:36:12]Sock 8.Close socket [16:36:12]Sock 8.Thread stoped [16:36:12]accept exits with 9 [16:36:12]New connection [16:36:12]New thread 3067288932 created [16:36:12]Thread 3067432292 joined [16:36:12]Waiting for new connection... [16:36:12] Sock 9.Parse request [16:36:12]Sock 9.Check first char [16:36:12]Sock 9.First char is OK [16:36:12]request: POST /json_proto HTTP/1.0 [16:36:12]Method: POST [16:36:12]URL: /json_proto [16:36:12]Method is POST - this is cgi request [16:36:12]url: /json_proto [16:36:12]query_string will be loaded in cgi processing [16:36:12]execute_cgi json_proto POST (null) [16:36:12]execute_cgi path=json_proto method=POST [16:36:12]POST find Content-Length [16:36:12]Host: 172.17.63.195:8080 [16:36:12]Content-Length: 677 [16:36:12]Content-Type: application/json [16:36:12] [16:36:12]POST finish read [16:36:12]Found Content-Length = 677 [16:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:12]execute_script... [16:36:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:12]POST & json_proto [16:36:12]process_json_proto [16:36:12]json parsed OK: [16:36:12]protocol is kg_v1.0 [16:36:12]action value=close_receipt [16:36:12]process_action close_receipt [16:36:12]cmd_close_receipt [16:36:12]MH_GetDate [16:36:12]Write to MH i2c: F0 00 00 98 08 8F [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 09 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 09 00 98 08 00 FD 6B 1E 67 47 1B 1E 67 6C [16:36:12]GetLastDocTimeStamp 1730046969 [16:36:12]current date 1730046973 [16:36:12]FM_GetShiftState [16:36:12]SAM_PROTO_GetShiftState [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 13 01 00 [16:36:12]Write to MH i2c: E2 08 00 99 08 80 13 01 00 00 00 00 00 1E [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 0E 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 0E 00 99 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 20 [16:36:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:36:12]wFMCommunicate OK [16:36:12]SAM_PROTO_GetShiftState done [16:36:12]FM_GetShiftState done [16:36:12]opened in 1729987312 [16:36:12]opened+sec_in_day 1730073712 [16:36:12]quantity*price = 50041 [16:36:12]sum+1 = 50042 [16:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 373 27.10.2024 16:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202081 ФПД: 259544171903624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163613&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202081&fm=259544171903624&tin=02508201610067®Number=0000000000091777&sum=50000 [16:36:13]StoreToDocumentArchive [16:36:13]shift 544 fd 202081 [16:36:13]save to /storage/0544/doc_00202081 [16:36:13]save last doc name /storage/0544/doc_00202081 to /storage/kkm_last_doc_name [16:36:13]save OK [16:36:13]Clear old archive folders... [16:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:13]tlvbuf is 01C28BE0 [16:36:13]SAM_PROTO_ClearQueue [16:36:13]wFMCommunicate request_size=4 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 09 00 00 [16:36:13]Write to MH i2c: E2 08 00 A6 08 80 09 00 00 00 00 00 00 20 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 A6 08 00 90 00 22 [16:36:13]RAPDU: 90 00 [16:36:13]wFMCommunicate OK [16:36:13]SAM_PROTO_ClearQueue done [16:36:13]KKMCreateOFDPacket [16:36:13]OFDProtocolAddRootSTLVToBuf [16:36:13]FM_MakeSignedData [16:36:13]FM_MakeSignedData [16:36:13]SAM_PROTO_SignData [16:36:13]wFMCommunicate request_size=4 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 0D 01 02 [16:36:13]Write to MH i2c: E2 08 00 A7 08 80 0D 01 02 00 00 00 00 28 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 A7 08 00 90 00 23 [16:36:13]RAPDU: 90 00 [16:36:13]wFMCommunicate OK [16:36:13]wFMCommunicate request_size=255 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 75 01 00 00 F4 03 04 00 FD 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 15 03 00 35 04 06 00 EC [16:36:13]Write to MH i2c: E2 02 01 A8 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 75 01 00 00 F4 03 04 00 FD 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 15 03 00 35 04 06 00 EC 00 00 A6 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 A8 08 00 90 00 24 [16:36:14]RAPDU: 90 00 [16:36:14]wFMCommunicate OK [16:36:14]wFMCommunicate request_size=10 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 0D 02 02 05 0D D6 2B 7A 88 [16:36:14]Write to MH i2c: E2 0D 00 A9 08 80 0D 02 02 05 00 0D D6 2B 7A 88 00 00 45 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 A9 08 00 90 00 25 [16:36:14]RAPDU: 90 00 [16:36:14]wFMCommunicate OK [16:36:14]wFMCommunicate request_size=4 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 0D 03 02 [16:36:14]Write to MH i2c: E2 08 00 AA 08 80 0D 03 02 00 00 00 00 2D [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 0B 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 0B 00 AA 08 00 0F 66 2C E8 6C F2 83 10 90 00 A8 [16:36:14]RAPDU: 0F 66 2C E8 6C F2 83 10 90 00 [16:36:14]wFMCommunicate OK [16:36:14]SAM_PROTO_SignData done [16:36:14]FM_MakeSignedData done [16:36:14]CreateOFDProtocolMessage [16:36:14]wFMCommunicate request_size=4 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 11 00 00 [16:36:14]Write to MH i2c: E2 08 00 AB 08 80 11 00 00 00 00 00 00 2D [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 17 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 17 00 AB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 82 [16:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:36:14]wFMCommunicate OK [16:36:14]CreateOFDProtocolMessage done [16:36:14]OFDSenderStorePacket 202081 [16:36:14]StoreOFDPacket docnum=202081 [16:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 17 88 07 01 24 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 75 01 00 00 F4 03 04 00 FD 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 15 03 00 35 04 06 00 EC 0D D6 2B 7A 88 0F 66 2C E8 6C F2 83 10 [16:36:14]CheckFolder [16:36:14]dirname=/storage/ofd_packets [16:36:14]CheckFolder done [16:36:14]ProducePacketName [16:36:14]name=ofd_packets/00202081 [16:36:14]NVStorageSaveData ofd_packets/00202081 [16:36:14]File name is /storage/ofd_packets/00202081 [16:36:14]Write 301 bytes [16:36:14]NVStorageSaveData done [16:36:14]OFDSenderStorePacket done [16:36:14]KKMCreateOFDPacket done [16:36:14]NVStorageSaveData kkm_last_timestamp [16:36:14]File name is /storage/kkm_last_timestamp [16:36:14]Write 4 bytes [16:36:14]NVStorageSaveData done [16:36:14]ExternCall_PrintAddStr [16:36:14]wPrintStart [16:36:14]Write to MH i2c: 01 00 00 AC 08 B4 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 07 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 07 00 AC 08 00 00 00 00 00 FF 0F C9 [16:36:14]RasterBufferAndPrint [16:36:14]line Счет N : (1)449851 [16:36:14]line ИНН: 02508201610067 [16:36:14]line Контрольно-Кассовый Чек [16:36:14]line ПРОДАЖА [16:36:14]line ТРК (МРК, ГНК) : 62 [16:36:14]line Товар: 2710124130 [16:36:14]line Аи-92-К-2 [16:36:14]line 7.480 * 66.90 [16:36:14]line = 500.41 [16:36:14]line НДС 12% НСП 1% [16:36:14]line > о реализуемом товаре [16:36:14]line ОКРУГЛЕНИЕ: -0.41 [16:36:14]line ИТОГО: 500.00 [16:36:14]line Внесено: 500.00 [16:36:14]line СДАЧА: 0.00 [16:36:14]line НСП 1% : 4.43 [16:36:14]line НДС 12% : 53.14 [16:36:14]line Наличными: 500.00 [16:36:14]line Безнал.: 0.00 [16:36:14]line Место: АЗС № 171 "Партнер Нефть" [16:36:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:36:15]line СНО: Общий режим [16:36:15]line Чек 373 27.10.2024 16:36 [16:36:15]line Смена: 544 ФФД: 1.0 [16:36:15]line ЗНМ: 0300000109 [16:36:15]line РНМ: 0000000000091777 [16:36:15]line Версия ККМ: 001 [16:36:15]line ФМ: 0000000000871756 [16:36:15]line ФД: 202081 [16:36:15]line ФПД: 259544171903624 [16:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163613&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202081&fm=259544171903624&tin=02508201610067®Number=0000000000091777&sum=50000 [16:36:15]OFD Sender: Processing packet 202081 [packets to send 112, broken 111] [16:36:15]ProducePacketName [16:36:15]name=ofd_packets/00202081 [16:36:15]OFD Sender: To server: pG, [16:36:15]CommunicateWithHost lk.salyk.kg:30040 [16:36:15]ConnectInit lk.salyk.kg [16:36:15]written 0, free lines is 4095 [16:36:15]Connected sock=10 [16:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 17 88 07 01 24 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 75 01 00 00 F4 03 04 00 FD 6B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 15 03 00 35 04 06 00 EC 0D D6 2B 7A 88 0F 66 2C E8 6C F2 83 10 [16:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C8 5D 47 00 0D 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 15 03 00 F4 03 04 00 B7 17 1E 67 B6 04 01 00 00 CB 6A 02 CE CB E6 FC B6 [16:36:15]CommunicateWithHost err = 0 [16:36:15]CheckOFDResponse [16:36:15]1017 (14) - 77093643461234 [16:36:15]1041 (16) - 0000000000871756 [16:36:15]1040 (4) - 202081 [16:36:15]1012 (4) - 27.10.2024 10:36 [16:36:15]1206 (1) - 0 [16:36:15]OFD Sender: Remove packet 202081 [16:36:15]ProducePacketName [16:36:15]name=ofd_packets/00202081 [16:36:15]NVStorageDeleteData [16:36:15]Write to MH i2c: 01 00 00 D7 08 DF [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 07 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 99 0C 8B [16:36:15]RasterBufferAndPrint [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]written 0, free lines is 3237 [16:36:15]MH_Cut [16:36:15]Write to MH i2c: D1 01 00 DE 08 01 B8 [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: D1 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: D1 01 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: D1 01 00 DE 08 00 B7 [16:36:15]Write to MH i2c: 01 00 00 DF 08 E7 [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]OFD Sender: No OFD packet to send [16:36:16]*** Cut start [16:36:16]*** Purtial cut [16:36:16]*** Stage 1: CUTSNS_PIN = 1 [16:36:16]Read from MH i2c: 01 [16:36:16]MH_I2C_Read... [16:36:16]*** Stop cut motor [16:36:16]*** Cut end [16:36:16]Read from MH i2c: 01 07 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: 01 07 00 DF 08 00 00 00 00 00 FF 0F FC [16:36:16]process_action close_receipt done [16:36:16]requested_data is exist [16:36:16]produce_requested_data [16:36:16]requested_item fm.sn is exist - process it [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 11 00 00 [16:36:16]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 17 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [16:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:36:16]wFMCommunicate OK [16:36:16]requested_item fd.num is exist - process it [16:36:16]SAM_PROTO_GetFieldsCounters [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 13 00 00 [16:36:16]Write to MH i2c: E2 08 00 E1 08 80 13 00 00 00 00 00 00 65 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 62 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 62 00 E1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 61 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [16:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 61 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:16]wFMCommunicate OK [16:36:16]SAM_PROTO_GetFieldsCounters done [16:36:16]requested_item shift.num is exist - process it [16:36:16]requested_item shift.opened is exist - process it [16:36:16]req_shift_opened [16:36:16]FM_GetShiftState [16:36:16]SAM_PROTO_GetShiftState [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 13 01 00 [16:36:16]Write to MH i2c: E2 08 00 E2 08 80 13 01 00 00 00 00 00 67 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 0E 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 0E 00 E2 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 69 [16:36:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:36:17]wFMCommunicate OK [16:36:17]SAM_PROTO_GetShiftState done [16:36:17]FM_GetShiftState done [16:36:17]req_shift_opened done [16:36:17]requested_item shift.open_date is exist - process it [16:36:17]req_shift_open_date [16:36:17]req_shift_open_date done [16:36:17]produce_requested_data done [16:36:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202081,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:36:17]process_action_free close_receipt [16:36:17]json_value_free [16:36:17]json_value_free done [16:36:17]process_json_proto returns [16:36:17]Send response to host [16:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202081,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:36:17]free response buf [16:36:17]execute_script done [16:36:17]execute_script returns [16:36:17]free content buf [16:36:17]Sock 9.Close socket [16:36:17]Sock 9.Thread stoped [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:37]int [16:36:37]Write to MH i2c: 01 00 00 E3 08 EB [16:36:37]*** FLAG_PRN_KEY set [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 E3 08 00 08 00 00 00 FF 0F 08 [16:36:37]state=0 [16:36:37]Key pressed [16:36:37]Feed [16:36:37]Write to MH i2c: D8 00 00 E4 08 C3 [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: D8 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: D8 01 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: D8 01 00 E4 08 00 C4 [16:36:37]int [16:36:37]Write to MH i2c: 01 00 00 E5 08 ED [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 E5 08 00 48 00 00 00 3C 00 78 [16:36:37]state=2 [16:36:37]Key pressed [16:36:37]int [16:36:37]Write to MH i2c: 01 00 00 E6 08 EE [16:36:37]*** FLAG_PRN_KEY reset [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 E6 08 00 00 00 00 00 F7 0F FB [16:36:37]state=2 [16:36:37]Stop feed [16:36:37]int [16:36:37]Write to MH i2c: 01 00 00 E7 08 EF [16:36:37]*** FLAG_PRN_KEY set [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 E7 08 00 08 00 00 00 FF 0F 0C [16:36:37]state=0 [16:36:37]Key pressed [16:36:37]Feed [16:36:37]Write to MH i2c: D8 00 00 E8 08 C7 [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: D8 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: D8 01 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: D8 01 00 E8 08 00 C8 [16:36:37]int [16:36:37]Write to MH i2c: 01 00 00 E9 08 F1 [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 E9 08 00 48 00 00 00 3C 00 7C [16:36:37]state=2 [16:36:37]Key pressed [16:36:37]int [16:36:37]Write to MH i2c: 01 00 00 EA 08 F2 [16:36:37]*** FLAG_PRN_KEY reset [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 EA 08 00 00 00 00 00 F7 0F FF [16:36:37]state=2 [16:36:37]Stop feed [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:53]accept exits with 8 [16:36:53]New connection [16:36:53]New thread 3067432292 created [16:36:53]Thread 3067288932 joined [16:36:53]Waiting for new connection... [16:36:53] Sock 8.Parse request [16:36:53]Sock 8.Check first char [16:36:53]Sock 8.First char is OK [16:36:53]request: POST /json_proto HTTP/1.0 [16:36:53]Method: POST [16:36:53]URL: /json_proto [16:36:53]Method is POST - this is cgi request [16:36:53]url: /json_proto [16:36:53]query_string will be loaded in cgi processing [16:36:53]execute_cgi json_proto POST (null) [16:36:53]execute_cgi path=json_proto method=POST [16:36:53]POST find Content-Length [16:36:53]Host: 172.17.63.195:8080 [16:36:53]Content-Length: 677 [16:36:53]Content-Type: application/json [16:36:53] [16:36:53]POST finish read [16:36:53]Found Content-Length = 677 [16:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:53]execute_script... [16:36:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:53]POST & json_proto [16:36:53]process_json_proto [16:36:53]json parsed OK: [16:36:53]protocol is kg_v1.0 [16:36:53]action value=close_receipt [16:36:53]process_action close_receipt [16:36:53]cmd_close_receipt [16:36:53]MH_GetDate [16:36:53]Write to MH i2c: F0 00 00 EB 08 E2 [16:36:53]Write i2c OK [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: F0 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: F0 09 00 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: F0 09 00 EB 08 00 25 6C 1E 67 47 1B 1E 67 E8 [16:36:53]GetLastDocTimeStamp 1730046973 [16:36:53]current date 1730047013 [16:36:53]FM_GetShiftState [16:36:53]SAM_PROTO_GetShiftState [16:36:53]wFMCommunicate request_size=4 [16:36:53]MH_SAM_APDU [16:36:53]CAPDU: 80 13 01 00 [16:36:53]Write to MH i2c: E2 08 00 EC 08 80 13 01 00 00 00 00 00 71 [16:36:53]Write i2c OK [16:36:53]MH_I2C_Read... [16:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:53]Read from MH i2c: E2 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: E2 0E 00 [16:36:53]MH_I2C_Read... [16:36:53]Read from MH i2c: E2 0E 00 EC 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 73 [16:36:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:36:53]wFMCommunicate OK [16:36:53]SAM_PROTO_GetShiftState done [16:36:53]FM_GetShiftState done [16:36:53]opened in 1729987312 [16:36:53]opened+sec_in_day 1730073712 [16:36:53]quantity*price = 30038 [16:36:53]sum+1 = 30039 [16:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 374 27.10.2024 16:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202082 ФПД: 56630319064972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163653&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202082&fm=56630319064972&tin=02508201610067®Number=0000000000091777&sum=30000 [16:36:54]StoreToDocumentArchive [16:36:54]shift 544 fd 202082 [16:36:54]save to /storage/0544/doc_00202082 [16:36:54]save last doc name /storage/0544/doc_00202082 to /storage/kkm_last_doc_name [16:36:54]save OK [16:36:54]Clear old archive folders... [16:36:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:54]tlvbuf is 01C647D0 [16:36:54]SAM_PROTO_ClearQueue [16:36:54]wFMCommunicate request_size=4 [16:36:54]MH_SAM_APDU [16:36:54]CAPDU: 80 09 00 00 [16:36:54]Write to MH i2c: E2 08 00 F9 08 80 09 00 00 00 00 00 00 73 [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:54]Read from MH i2c: E2 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 03 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [16:36:54]RAPDU: 90 00 [16:36:54]wFMCommunicate OK [16:36:54]SAM_PROTO_ClearQueue done [16:36:54]KKMCreateOFDPacket [16:36:54]OFDProtocolAddRootSTLVToBuf [16:36:54]FM_MakeSignedData [16:36:54]FM_MakeSignedData [16:36:54]SAM_PROTO_SignData [16:36:54]wFMCommunicate request_size=4 [16:36:54]MH_SAM_APDU [16:36:54]CAPDU: 80 0D 01 02 [16:36:54]Write to MH i2c: E2 08 00 FA 08 80 0D 01 02 00 00 00 00 7B [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:54]Read from MH i2c: E2 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 03 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [16:36:54]RAPDU: 90 00 [16:36:54]wFMCommunicate OK [16:36:54]wFMCommunicate request_size=255 [16:36:54]MH_SAM_APDU [16:36:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 76 01 00 00 F4 03 04 00 25 6C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 15 03 00 35 04 06 00 33 [16:36:54]Write to MH i2c: E2 02 01 FB 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 76 01 00 00 F4 03 04 00 25 6C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 15 03 00 35 04 06 00 33 00 00 5F [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:54]Read from MH i2c: E2 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 03 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [16:36:54]RAPDU: 90 00 [16:36:54]wFMCommunicate OK [16:36:54]wFMCommunicate request_size=10 [16:36:54]MH_SAM_APDU [16:36:54]CAPDU: 80 0D 02 02 05 81 46 0D 27 8C [16:36:54]Write to MH i2c: E2 0D 00 FC 08 80 0D 02 02 05 00 81 46 0D 27 8C 00 00 0F [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:54]Read from MH i2c: E2 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 03 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [16:36:54]RAPDU: 90 00 [16:36:54]wFMCommunicate OK [16:36:54]wFMCommunicate request_size=4 [16:36:54]MH_SAM_APDU [16:36:54]CAPDU: 80 0D 03 02 [16:36:54]Write to MH i2c: E2 08 00 FD 08 80 0D 03 02 00 00 00 00 80 [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:54]Read from MH i2c: E2 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 0B 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 0B 00 FD 08 00 06 68 E8 1D 32 FF BD F7 90 00 D9 [16:36:54]RAPDU: 06 68 E8 1D 32 FF BD F7 90 00 [16:36:54]wFMCommunicate OK [16:36:54]SAM_PROTO_SignData done [16:36:54]FM_MakeSignedData done [16:36:54]CreateOFDProtocolMessage [16:36:54]wFMCommunicate request_size=4 [16:36:54]MH_SAM_APDU [16:36:54]CAPDU: 80 11 00 00 [16:36:54]Write to MH i2c: E2 08 00 FE 08 80 11 00 00 00 00 00 00 80 [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:54]Read from MH i2c: E2 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 17 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 17 00 FE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D5 [16:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:36:54]wFMCommunicate OK [16:36:54]CreateOFDProtocolMessage done [16:36:54]OFDSenderStorePacket 202082 [16:36:54]StoreOFDPacket docnum=202082 [16:36:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F2 80 07 01 77 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 76 01 00 00 F4 03 04 00 25 6C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 15 03 00 35 04 06 00 33 81 46 0D 27 8C 06 68 E8 1D 32 FF BD F7 [16:36:54]CheckFolder [16:36:54]dirname=/storage/ofd_packets [16:36:54]CheckFolder done [16:36:54]ProducePacketName [16:36:54]name=ofd_packets/00202082 [16:36:54]NVStorageSaveData ofd_packets/00202082 [16:36:54]File name is /storage/ofd_packets/00202082 [16:36:54]Write 301 bytes [16:36:54]NVStorageSaveData done [16:36:54]OFDSenderStorePacket done [16:36:54]KKMCreateOFDPacket done [16:36:54]NVStorageSaveData kkm_last_timestamp [16:36:54]File name is /storage/kkm_last_timestamp [16:36:54]Write 4 bytes [16:36:54]NVStorageSaveData done [16:36:54]ExternCall_PrintAddStr [16:36:54]wPrintStart [16:36:54]Write to MH i2c: 01 00 00 FF 08 07 [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: 01 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: 01 07 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: 01 07 00 FF 08 00 00 00 00 00 FF 0F 1C [16:36:54]RasterBufferAndPrint [16:36:54]line Счет N : (1)449852 [16:36:54]line ИНН: 02508201610067 [16:36:54]line Контрольно-Кассовый Чек [16:36:54]line ПРОДАЖА [16:36:54]line ТРК (МРК, ГНК) : 41 [16:36:54]line Товар: 2710124130 [16:36:54]line Аи-92-К-2 [16:36:54]line 4.490 * 66.90 [16:36:54]line = 300.38 [16:36:54]line НДС 12% НСП 1% [16:36:54]line > о реализуемом товаре [16:36:54]line ОКРУГЛЕНИЕ: -0.38 [16:36:54]line ИТОГО: 300.00 [16:36:54]line Внесено: 300.00 [16:36:54]line СДАЧА: 0.00 [16:36:54]line НСП 1% : 2.66 [16:36:54]line НДС 12% : 31.90 [16:36:54]line Наличными: 300.00 [16:36:54]line Безнал.: 0.00 [16:36:54]line Место: АЗС № 171 "Партнер Нефть" [16:36:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:36:54]line СНО: Общий режим [16:36:54]line Чек 374 27.10.2024 16:36 [16:36:54]line Смена: 544 ФФД: 1.0 [16:36:54]line ЗНМ: 0300000109 [16:36:54]line РНМ: 0000000000091777 [16:36:54]line Версия ККМ: 001 [16:36:54]line ФМ: 0000000000871756 [16:36:54]line ФД: 202082 [16:36:54]line ФПД: 56630319064972 [16:36:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163653&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202082&fm=56630319064972&tin=02508201610067®Number=0000000000091777&sum=30000 [16:36:55]OFD Sender: Processing packet 202082 [packets to send 112, broken 111] [16:36:55]ProducePacketName [16:36:55]name=ofd_packets/00202082 [16:36:55]OFD Sender: To server: pG, [16:36:55]CommunicateWithHost lk.salyk.kg:30040 [16:36:55]ConnectInit lk.salyk.kg [16:36:55]written 0, free lines is 4095 [16:36:55]Connected sock=11 [16:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F2 80 07 01 77 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 76 01 00 00 F4 03 04 00 25 6C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 15 03 00 35 04 06 00 33 81 46 0D 27 8C 06 68 E8 1D 32 FF BD F7 [16:36:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD 58 47 00 FD 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 15 03 00 F4 03 04 00 DF 17 1E 67 B6 04 01 00 00 6D 91 D5 61 31 1D E0 AB [16:36:55]CommunicateWithHost err = 0 [16:36:55]CheckOFDResponse [16:36:55]1017 (14) - 77093643461234 [16:36:55]1041 (16) - 0000000000871756 [16:36:55]1040 (4) - 202082 [16:36:55]1012 (4) - 27.10.2024 10:37 [16:36:55]1206 (1) - 0 [16:36:55]OFD Sender: Remove packet 202082 [16:36:55]ProducePacketName [16:36:55]name=ofd_packets/00202082 [16:36:55]NVStorageDeleteData [16:36:55]Write to MH i2c: 01 00 00 2A 09 33 [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: 01 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: 01 07 00 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: 01 07 00 2A 09 00 00 00 00 00 A3 0C E9 [16:36:55]RasterBufferAndPrint [16:36:55]line [16:36:55]line [16:36:55]line [16:36:55]line [16:36:55]line [16:36:55]written 0, free lines is 3241 [16:36:55]MH_Cut [16:36:55]Write to MH i2c: D1 01 00 31 09 01 0C [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: D1 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: D1 01 00 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: D1 01 00 31 09 00 0B [16:36:55]Write to MH i2c: 01 00 00 32 09 3B [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:56]OFD Sender: No OFD packet to send [16:36:56]*** Cut start [16:36:56]*** Purtial cut [16:36:56]*** Stage 1: CUTSNS_PIN = 1 [16:36:56]Read from MH i2c: 01 [16:36:56]MH_I2C_Read... [16:36:56]*** Stop cut motor [16:36:56]*** Cut end [16:36:56]Read from MH i2c: 01 07 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 07 00 32 09 00 00 00 00 00 FF 0F 50 [16:36:56]process_action close_receipt done [16:36:56]requested_data is exist [16:36:56]produce_requested_data [16:36:56]requested_item fm.sn is exist - process it [16:36:56]wFMCommunicate request_size=4 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 11 00 00 [16:36:56]Write to MH i2c: E2 08 00 33 09 80 11 00 00 00 00 00 00 B6 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 17 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 17 00 33 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [16:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:36:56]wFMCommunicate OK [16:36:56]requested_item fd.num is exist - process it [16:36:56]SAM_PROTO_GetFieldsCounters [16:36:56]wFMCommunicate request_size=4 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 13 00 00 [16:36:56]Write to MH i2c: E2 08 00 34 09 80 13 00 00 00 00 00 00 B9 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:57]Read from MH i2c: E2 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: E2 62 00 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: E2 62 00 34 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 62 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:36:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 62 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:57]wFMCommunicate OK [16:36:57]SAM_PROTO_GetFieldsCounters done [16:36:57]requested_item shift.num is exist - process it [16:36:57]requested_item shift.opened is exist - process it [16:36:57]req_shift_opened [16:36:57]FM_GetShiftState [16:36:57]SAM_PROTO_GetShiftState [16:36:57]wFMCommunicate request_size=4 [16:36:57]MH_SAM_APDU [16:36:57]CAPDU: 80 13 01 00 [16:36:57]Write to MH i2c: E2 08 00 35 09 80 13 01 00 00 00 00 00 BB [16:36:57]Write i2c OK [16:36:57]MH_I2C_Read... [16:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:57]Read from MH i2c: E2 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: E2 0E 00 [16:36:57]MH_I2C_Read... [16:36:57]Read from MH i2c: E2 0E 00 35 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BD [16:36:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:36:57]wFMCommunicate OK [16:36:57]SAM_PROTO_GetShiftState done [16:36:57]FM_GetShiftState done [16:36:57]req_shift_opened done [16:36:57]requested_item shift.open_date is exist - process it [16:36:57]req_shift_open_date [16:36:57]req_shift_open_date done [16:36:57]produce_requested_data done [16:36:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202082,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:36:57]process_action_free close_receipt [16:36:57]json_value_free [16:36:57]json_value_free done [16:36:57]process_json_proto returns [16:36:57]Send response to host [16:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202082,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:36:57]free response buf [16:36:57]execute_script done [16:36:57]execute_script returns [16:36:57]free content buf [16:36:57]Sock 8.Close socket [16:36:57]Sock 8.Thread stoped [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:53]accept exits with 9 [16:38:53]New connection [16:38:53]New thread 3067288932 created [16:38:53]Thread 3067432292 joined [16:38:53]Waiting for new connection... [16:38:53] Sock 9.Parse request [16:38:53]Sock 9.Check first char [16:38:53]Sock 9.First char is OK [16:38:53]request: POST /json_proto HTTP/1.0 [16:38:53]Method: POST [16:38:53]URL: /json_proto [16:38:53]Method is POST - this is cgi request [16:38:53]url: /json_proto [16:38:53]query_string will be loaded in cgi processing [16:38:53]execute_cgi json_proto POST (null) [16:38:53]execute_cgi path=json_proto method=POST [16:38:53]POST find Content-Length [16:38:53]Host: 172.17.63.195:8080 [16:38:53]Content-Length: 678 [16:38:53]Content-Type: application/json [16:38:53] [16:38:53]POST finish read [16:38:53]Found Content-Length = 678 [16:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:53]execute_script... [16:38:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:53]POST & json_proto [16:38:53]process_json_proto [16:38:53]json parsed OK: [16:38:53]protocol is kg_v1.0 [16:38:53]action value=close_receipt [16:38:53]process_action close_receipt [16:38:53]cmd_close_receipt [16:38:53]MH_GetDate [16:38:53]Write to MH i2c: F0 00 00 36 09 2E [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: F0 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: F0 09 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: F0 09 00 36 09 00 9E 6C 1E 67 47 1B 1E 67 AD [16:38:53]GetLastDocTimeStamp 1730047013 [16:38:53]current date 1730047134 [16:38:53]FM_GetShiftState [16:38:53]SAM_PROTO_GetShiftState [16:38:53]wFMCommunicate request_size=4 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 13 01 00 [16:38:53]Write to MH i2c: E2 08 00 37 09 80 13 01 00 00 00 00 00 BD [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 0E 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 0E 00 37 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BF [16:38:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:38:53]wFMCommunicate OK [16:38:53]SAM_PROTO_GetShiftState done [16:38:53]FM_GetShiftState done [16:38:53]opened in 1729987312 [16:38:53]opened+sec_in_day 1730073712 [16:38:53]quantity*price = 70044 [16:38:53]sum+1 = 70045 [16:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 375 27.10.2024 16:38 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202083 ФПД: 168798926233466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163854&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202083&fm=168798926233466&tin=02508201610067®Number=0000000000091777&sum=70000 [16:38:54]StoreToDocumentArchive [16:38:54]shift 544 fd 202083 [16:38:54]save to /storage/0544/doc_00202083 [16:38:54]save last doc name /storage/0544/doc_00202083 to /storage/kkm_last_doc_name [16:38:54]save OK [16:38:54]Clear old archive folders... [16:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:54]tlvbuf is 01C87910 [16:38:54]SAM_PROTO_ClearQueue [16:38:54]wFMCommunicate request_size=4 [16:38:54]MH_SAM_APDU [16:38:54]CAPDU: 80 09 00 00 [16:38:54]Write to MH i2c: E2 08 00 44 09 80 09 00 00 00 00 00 00 BF [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:54]Read from MH i2c: E2 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 03 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [16:38:54]RAPDU: 90 00 [16:38:54]wFMCommunicate OK [16:38:54]SAM_PROTO_ClearQueue done [16:38:54]KKMCreateOFDPacket [16:38:54]OFDProtocolAddRootSTLVToBuf [16:38:54]FM_MakeSignedData [16:38:54]FM_MakeSignedData [16:38:54]SAM_PROTO_SignData [16:38:54]wFMCommunicate request_size=4 [16:38:54]MH_SAM_APDU [16:38:54]CAPDU: 80 0D 01 02 [16:38:54]Write to MH i2c: E2 08 00 45 09 80 0D 01 02 00 00 00 00 C7 [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:54]Read from MH i2c: E2 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 03 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [16:38:54]RAPDU: 90 00 [16:38:54]wFMCommunicate OK [16:38:54]wFMCommunicate request_size=255 [16:38:54]MH_SAM_APDU [16:38:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 9E 6C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 15 03 00 35 04 06 00 99 [16:38:54]Write to MH i2c: E2 02 01 46 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 9E 6C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 15 03 00 35 04 06 00 99 00 00 A8 [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 03 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [16:38:55]RAPDU: 90 00 [16:38:55]wFMCommunicate OK [16:38:55]wFMCommunicate request_size=10 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 0D 02 02 05 85 90 09 5F 7A [16:38:55]Write to MH i2c: E2 0D 00 47 09 80 0D 02 02 05 00 85 90 09 5F 7A 00 00 CB [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 03 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 03 00 47 09 00 90 00 C4 [16:38:55]RAPDU: 90 00 [16:38:55]wFMCommunicate OK [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 0D 03 02 [16:38:55]Write to MH i2c: E2 08 00 48 09 80 0D 03 02 00 00 00 00 CC [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 0B 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 0B 00 48 09 00 2D 18 52 AE 50 9B 90 5A 90 00 E7 [16:38:55]RAPDU: 2D 18 52 AE 50 9B 90 5A 90 00 [16:38:55]wFMCommunicate OK [16:38:55]SAM_PROTO_SignData done [16:38:55]FM_MakeSignedData done [16:38:55]CreateOFDProtocolMessage [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 11 00 00 [16:38:55]Write to MH i2c: E2 08 00 49 09 80 11 00 00 00 00 00 00 CC [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 17 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 17 00 49 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [16:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:38:55]wFMCommunicate OK [16:38:55]CreateOFDProtocolMessage done [16:38:55]OFDSenderStorePacket 202083 [16:38:55]StoreOFDPacket docnum=202083 [16:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C5 C9 07 01 E6 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 9E 6C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 15 03 00 35 04 06 00 99 85 90 09 5F 7A 2D 18 52 AE 50 9B 90 5A [16:38:55]CheckFolder [16:38:55]dirname=/storage/ofd_packets [16:38:55]CheckFolder done [16:38:55]ProducePacketName [16:38:55]name=ofd_packets/00202083 [16:38:55]NVStorageSaveData ofd_packets/00202083 [16:38:55]File name is /storage/ofd_packets/00202083 [16:38:55]Write 301 bytes [16:38:55]NVStorageSaveData done [16:38:55]OFDSenderStorePacket done [16:38:55]KKMCreateOFDPacket done [16:38:55]NVStorageSaveData kkm_last_timestamp [16:38:55]File name is /storage/kkm_last_timestamp [16:38:55]Write 4 bytes [16:38:55]NVStorageSaveData done [16:38:55]ExternCall_PrintAddStr [16:38:55]wPrintStart [16:38:55]Write to MH i2c: 01 00 00 4A 09 53 [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 07 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 07 00 4A 09 00 00 00 00 00 FF 0F 68 [16:38:55]RasterBufferAndPrint [16:38:55]line Счет N : (1)449853 [16:38:55]line ИНН: 02508201610067 [16:38:55]line Контрольно-Кассовый Чек [16:38:55]line ПРОДАЖА [16:38:55]line ТРК (МРК, ГНК) : 41 [16:38:55]line Товар: 2710124130 [16:38:55]line Аи-92-К-2 [16:38:55]line 10.470 * 66.90 [16:38:55]line = 700.44 [16:38:55]line НДС 12% НСП 1% [16:38:55]line > о реализуемом товаре [16:38:55]line ОКРУГЛЕНИЕ: -0.44 [16:38:55]line ИТОГО: 700.00 [16:38:55]line Внесено: 700.00 [16:38:55]line СДАЧА: 0.00 [16:38:55]line НСП 1% : 6.20 [16:38:55]line НДС 12% : 74.38 [16:38:55]line Наличными: 700.00 [16:38:55]line Безнал.: 0.00 [16:38:55]line Место: АЗС № 171 "Партнер Нефть" [16:38:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:38:55]line СНО: Общий режим [16:38:55]line Чек 375 27.10.2024 16:38 [16:38:55]line Смена: 544 ФФД: 1.0 [16:38:55]line ЗНМ: 0300000109 [16:38:55]line РНМ: 0000000000091777 [16:38:55]line Версия ККМ: 001 [16:38:55]line ФМ: 0000000000871756 [16:38:55]line ФД: 202083 [16:38:55]line ФПД: 168798926233466 [16:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163854&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202083&fm=168798926233466&tin=02508201610067®Number=0000000000091777&sum=70000 [16:38:55]OFD Sender: Processing packet 202083 [packets to send 112, broken 111] [16:38:55]ProducePacketName [16:38:55]name=ofd_packets/00202083 [16:38:55]OFD Sender: To server: pG, [16:38:55]CommunicateWithHost lk.salyk.kg:30040 [16:38:55]ConnectInit lk.salyk.kg [16:38:55]written 0, free lines is 4095 [16:38:55]Connected sock=10 [16:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C5 C9 07 01 E6 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 9E 6C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 15 03 00 35 04 06 00 99 85 90 09 5F 7A 2D 18 52 AE 50 9B 90 5A [16:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 29 F1 47 00 AA 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 15 03 00 F4 03 04 00 57 18 1E 67 B6 04 01 00 00 F5 0B 1F A6 C4 F7 78 43 [16:38:56]CommunicateWithHost err = 0 [16:38:56]CheckOFDResponse [16:38:56]1017 (14) - 77093643461234 [16:38:56]1041 (16) - 0000000000871756 [16:38:56]1040 (4) - 202083 [16:38:56]1012 (4) - 27.10.2024 10:39 [16:38:56]1206 (1) - 0 [16:38:56]OFD Sender: Remove packet 202083 [16:38:56]ProducePacketName [16:38:56]name=ofd_packets/00202083 [16:38:56]NVStorageDeleteData [16:38:56]Write to MH i2c: 01 00 00 75 09 7E [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: 01 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: 01 07 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: 01 07 00 75 09 00 00 00 00 00 9F 0C 30 [16:38:56]RasterBufferAndPrint [16:38:56]line [16:38:56]line [16:38:56]line [16:38:56]line [16:38:56]line [16:38:56]written 0, free lines is 3237 [16:38:56]MH_Cut [16:38:56]Write to MH i2c: D1 01 00 7C 09 01 57 [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: D1 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: D1 01 00 [16:38:56]MH_I2C_Read... [16:38:56]Read from MH i2c: D1 01 00 7C 09 00 56 [16:38:56]Write to MH i2c: 01 00 00 7D 09 86 [16:38:56]Write i2c OK [16:38:56]MH_I2C_Read... [16:38:56]OFD Sender: No OFD packet to send [16:38:57]*** Cut start [16:38:57]*** Purtial cut [16:38:57]*** Stage 1: CUTSNS_PIN = 1 [16:38:57]Read from MH i2c: 01 [16:38:57]MH_I2C_Read... [16:38:57]*** Stop cut motor [16:38:57]*** Cut end [16:38:57]Read from MH i2c: 01 07 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: 01 07 00 7D 09 00 00 00 00 00 FF 0F 9B [16:38:57]process_action close_receipt done [16:38:57]requested_data is exist [16:38:57]produce_requested_data [16:38:57]requested_item fm.sn is exist - process it [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 11 00 00 [16:38:57]Write to MH i2c: E2 08 00 7E 09 80 11 00 00 00 00 00 00 01 [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 17 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 17 00 7E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [16:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:38:57]wFMCommunicate OK [16:38:57]requested_item fd.num is exist - process it [16:38:57]SAM_PROTO_GetFieldsCounters [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 13 00 00 [16:38:57]Write to MH i2c: E2 08 00 7F 09 80 13 00 00 00 00 00 00 04 [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 62 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 62 00 7F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 63 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [16:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 63 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:57]wFMCommunicate OK [16:38:57]SAM_PROTO_GetFieldsCounters done [16:38:57]requested_item shift.num is exist - process it [16:38:57]requested_item shift.opened is exist - process it [16:38:57]req_shift_opened [16:38:57]FM_GetShiftState [16:38:57]SAM_PROTO_GetShiftState [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 13 01 00 [16:38:57]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 0E 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 08 [16:38:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:38:57]wFMCommunicate OK [16:38:57]SAM_PROTO_GetShiftState done [16:38:57]FM_GetShiftState done [16:38:57]req_shift_opened done [16:38:57]requested_item shift.open_date is exist - process it [16:38:57]req_shift_open_date [16:38:57]req_shift_open_date done [16:38:57]produce_requested_data done [16:38:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202083,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:38:57]process_action_free close_receipt [16:38:57]json_value_free [16:38:57]json_value_free done [16:38:57]process_json_proto returns [16:38:57]Send response to host [16:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202083,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:38:57]free response buf [16:38:57]execute_script done [16:38:57]execute_script returns [16:38:57]free content buf [16:38:57]Sock 9.Close socket [16:38:57]Sock 9.Thread stoped [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:24]accept exits with 8 [16:41:24]New connection [16:41:24]New thread 3067432292 created [16:41:24]Thread 3067288932 joined [16:41:24]Waiting for new connection... [16:41:24] Sock 8.Parse request [16:41:24]Sock 8.Check first char [16:41:24]Sock 8.First char is OK [16:41:24]request: POST /json_proto HTTP/1.0 [16:41:24]Method: POST [16:41:24]URL: /json_proto [16:41:24]Method is POST - this is cgi request [16:41:24]url: /json_proto [16:41:24]query_string will be loaded in cgi processing [16:41:24]execute_cgi json_proto POST (null) [16:41:24]execute_cgi path=json_proto method=POST [16:41:24]POST find Content-Length [16:41:24]Host: 172.17.63.195:8080 [16:41:24]Content-Length: 675 [16:41:24]Content-Type: application/json [16:41:24] [16:41:24]POST finish read [16:41:24]Found Content-Length = 675 [16:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.160, "sum" : 850.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:24]execute_script... [16:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.160, "sum" : 850.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:24]POST & json_proto [16:41:24]process_json_proto [16:41:24]json parsed OK: [16:41:24]protocol is kg_v1.0 [16:41:24]action value=close_receipt [16:41:24]process_action close_receipt [16:41:24]cmd_close_receipt [16:41:24]MH_GetDate [16:41:24]Write to MH i2c: F0 00 00 81 09 79 [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: F0 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: F0 09 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: F0 09 00 81 09 00 34 6D 1E 67 47 1B 1E 67 8F [16:41:24]GetLastDocTimeStamp 1730047134 [16:41:24]current date 1730047284 [16:41:24]FM_GetShiftState [16:41:24]SAM_PROTO_GetShiftState [16:41:24]wFMCommunicate request_size=4 [16:41:24]MH_SAM_APDU [16:41:24]CAPDU: 80 13 01 00 [16:41:24]Write to MH i2c: E2 08 00 82 09 80 13 01 00 00 00 00 00 08 [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:24]Read from MH i2c: E2 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 0E 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 0E 00 82 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0A [16:41:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:41:24]wFMCommunicate OK [16:41:24]SAM_PROTO_GetShiftState done [16:41:24]FM_GetShiftState done [16:41:24]opened in 1729987312 [16:41:24]opened+sec_in_day 1730073712 [16:41:24]quantity*price = 85039 [16:41:24]sum+1 = 85040 [16:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.53 НДС 12% : 90.31 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 376 27.10.2024 16:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202084 ФПД: 81702968286469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164124&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202084&fm=81702968286469&tin=02508201610067®Number=0000000000091777&sum=85000 [16:41:25]StoreToDocumentArchive [16:41:25]shift 544 fd 202084 [16:41:25]save to /storage/0544/doc_00202084 [16:41:25]save last doc name /storage/0544/doc_00202084 to /storage/kkm_last_doc_name [16:41:25]save OK [16:41:25]Clear old archive folders... [16:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:41:25]tlvbuf is 01C90CC0 [16:41:25]SAM_PROTO_ClearQueue [16:41:25]wFMCommunicate request_size=4 [16:41:25]MH_SAM_APDU [16:41:25]CAPDU: 80 09 00 00 [16:41:25]Write to MH i2c: E2 08 00 8F 09 80 09 00 00 00 00 00 00 0A [16:41:25]Write i2c OK [16:41:25]MH_I2C_Read... [16:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:25]Read from MH i2c: E2 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 03 00 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [16:41:25]RAPDU: 90 00 [16:41:25]wFMCommunicate OK [16:41:25]SAM_PROTO_ClearQueue done [16:41:25]KKMCreateOFDPacket [16:41:25]OFDProtocolAddRootSTLVToBuf [16:41:25]FM_MakeSignedData [16:41:25]FM_MakeSignedData [16:41:25]SAM_PROTO_SignData [16:41:25]wFMCommunicate request_size=4 [16:41:25]MH_SAM_APDU [16:41:25]CAPDU: 80 0D 01 02 [16:41:25]Write to MH i2c: E2 08 00 90 09 80 0D 01 02 00 00 00 00 12 [16:41:25]Write i2c OK [16:41:25]MH_I2C_Read... [16:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:25]Read from MH i2c: E2 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 03 00 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [16:41:25]RAPDU: 90 00 [16:41:25]wFMCommunicate OK [16:41:25]wFMCommunicate request_size=255 [16:41:25]MH_SAM_APDU [16:41:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 34 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 15 03 00 35 04 06 00 4A 4E F4 66 [16:41:25]Write to MH i2c: E2 02 01 91 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 34 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 15 03 00 35 04 06 00 4A 4E F4 66 00 00 CA [16:41:25]Write i2c OK [16:41:25]MH_I2C_Read... [16:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:25]Read from MH i2c: E2 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 03 00 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 03 00 91 09 00 90 00 0E [16:41:25]RAPDU: 90 00 [16:41:25]wFMCommunicate OK [16:41:25]wFMCommunicate request_size=7 [16:41:25]MH_SAM_APDU [16:41:25]CAPDU: 80 0D 02 02 02 DD 05 [16:41:25]Write to MH i2c: E2 0A 00 92 09 80 0D 02 02 02 00 DD 05 00 00 FB [16:41:25]Write i2c OK [16:41:25]MH_I2C_Read... [16:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:25]Read from MH i2c: E2 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 03 00 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 03 00 92 09 00 90 00 0F [16:41:25]RAPDU: 90 00 [16:41:25]wFMCommunicate OK [16:41:25]wFMCommunicate request_size=4 [16:41:25]MH_SAM_APDU [16:41:25]CAPDU: 80 0D 03 02 [16:41:25]Write to MH i2c: E2 08 00 93 09 80 0D 03 02 00 00 00 00 17 [16:41:25]Write i2c OK [16:41:25]MH_I2C_Read... [16:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:25]Read from MH i2c: E2 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 0B 00 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 0B 00 93 09 00 97 1C AC 64 83 80 DE E7 90 00 A3 [16:41:25]RAPDU: 97 1C AC 64 83 80 DE E7 90 00 [16:41:25]wFMCommunicate OK [16:41:25]SAM_PROTO_SignData done [16:41:25]FM_MakeSignedData done [16:41:25]CreateOFDProtocolMessage [16:41:25]wFMCommunicate request_size=4 [16:41:25]MH_SAM_APDU [16:41:25]CAPDU: 80 11 00 00 [16:41:25]Write to MH i2c: E2 08 00 94 09 80 11 00 00 00 00 00 00 17 [16:41:25]Write i2c OK [16:41:25]MH_I2C_Read... [16:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:25]Read from MH i2c: E2 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 17 00 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: E2 17 00 94 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [16:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:41:25]wFMCommunicate OK [16:41:25]CreateOFDProtocolMessage done [16:41:25]OFDSenderStorePacket 202084 [16:41:25]StoreOFDPacket docnum=202084 [16:41:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F6 17 04 01 1D 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 32 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 34 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 15 03 00 35 04 06 00 4A 4E F4 66 DD 05 97 1C AC 64 83 80 DE E7 [16:41:25]CheckFolder [16:41:25]dirname=/storage/ofd_packets [16:41:25]CheckFolder done [16:41:25]ProducePacketName [16:41:25]name=ofd_packets/00202084 [16:41:25]NVStorageSaveData ofd_packets/00202084 [16:41:25]File name is /storage/ofd_packets/00202084 [16:41:25]Write 298 bytes [16:41:25]NVStorageSaveData done [16:41:25]OFDSenderStorePacket done [16:41:25]KKMCreateOFDPacket done [16:41:25]NVStorageSaveData kkm_last_timestamp [16:41:25]File name is /storage/kkm_last_timestamp [16:41:25]Write 4 bytes [16:41:25]NVStorageSaveData done [16:41:25]ExternCall_PrintAddStr [16:41:25]wPrintStart [16:41:25]Write to MH i2c: 01 00 00 95 09 9E [16:41:25]Write i2c OK [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: 01 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: 01 07 00 [16:41:25]MH_I2C_Read... [16:41:25]Read from MH i2c: 01 07 00 95 09 00 00 00 00 00 FF 0F B3 [16:41:25]RasterBufferAndPrint [16:41:25]line Счет N : (1)449855 [16:41:25]line ИНН: 02508201610067 [16:41:25]line Контрольно-Кассовый Чек [16:41:25]line ПРОДАЖА [16:41:25]line ТРК (МРК, ГНК) : 43 [16:41:25]line Товар: 2710194210 [16:41:25]line ДТ-К-2 [16:41:25]line 11.160 * 76.20 [16:41:25]line = 850.39 [16:41:25]line НДС 12% НСП 1% [16:41:25]line > о реализуемом товаре [16:41:25]line ОКРУГЛЕНИЕ: -0.39 [16:41:25]line ИТОГО: 850.00 [16:41:25]line Внесено: 850.00 [16:41:25]line СДАЧА: 0.00 [16:41:25]line НСП 1% : 7.53 [16:41:25]line НДС 12% : 90.31 [16:41:25]line Наличными: 850.00 [16:41:25]line Безнал.: 0.00 [16:41:25]line Место: АЗС № 171 "Партнер Нефть" [16:41:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:41:25]line СНО: Общий режим [16:41:25]line Чек 376 27.10.2024 16:41 [16:41:25]line Смена: 544 ФФД: 1.0 [16:41:25]line ЗНМ: 0300000109 [16:41:25]line РНМ: 0000000000091777 [16:41:25]line Версия ККМ: 001 [16:41:25]line ФМ: 0000000000871756 [16:41:25]line ФД: 202084 [16:41:25]line ФПД: 81702968286469 [16:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164124&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202084&fm=81702968286469&tin=02508201610067®Number=0000000000091777&sum=85000 [16:41:26]OFD Sender: Processing packet 202084 [packets to send 112, broken 111] [16:41:26]ProducePacketName [16:41:26]name=ofd_packets/00202084 [16:41:26]OFD Sender: To server: pG, [16:41:26]CommunicateWithHost lk.salyk.kg:30040 [16:41:26]ConnectInit lk.salyk.kg [16:41:26]written 0, free lines is 4095 [16:41:26]Connected sock=10 [16:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 F6 17 04 01 1D 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 32 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 34 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 15 03 00 35 04 06 00 4A 4E F4 66 DD 05 97 1C AC 64 83 80 DE E7 [16:41:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 57 CE 47 00 50 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 15 03 00 F4 03 04 00 EE 18 1E 67 B6 04 01 00 00 06 17 4B 8B 5F B4 A0 4D [16:41:26]CommunicateWithHost err = 0 [16:41:26]CheckOFDResponse [16:41:26]1017 (14) - 77093643461234 [16:41:26]1041 (16) - 0000000000871756 [16:41:26]1040 (4) - 202084 [16:41:26]1012 (4) - 27.10.2024 10:41 [16:41:26]1206 (1) - 0 [16:41:26]OFD Sender: Remove packet 202084 [16:41:26]ProducePacketName [16:41:26]name=ofd_packets/00202084 [16:41:26]NVStorageDeleteData [16:41:26]Write to MH i2c: 01 00 00 C0 09 C9 [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: 01 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: 01 07 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 99 0C 75 [16:41:26]RasterBufferAndPrint [16:41:26]line [16:41:26]line [16:41:26]line [16:41:26]line [16:41:26]line [16:41:26]written 0, free lines is 3229 [16:41:26]MH_Cut [16:41:26]Write to MH i2c: D1 01 00 C7 09 01 A2 [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: D1 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: D1 01 00 [16:41:26]MH_I2C_Read... [16:41:26]Read from MH i2c: D1 01 00 C7 09 00 A1 [16:41:26]Write to MH i2c: 01 00 00 C8 09 D1 [16:41:26]Write i2c OK [16:41:26]MH_I2C_Read... [16:41:27]OFD Sender: No OFD packet to send [16:41:27]*** Cut start [16:41:27]*** Purtial cut [16:41:27]*** Stage 1: CUTSNS_PIN = 1 [16:41:27]Read from MH i2c: 01 [16:41:27]MH_I2C_Read... [16:41:27]*** Stop cut motor [16:41:27]*** Cut end [16:41:27]Read from MH i2c: 01 07 00 [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: 01 07 00 C8 09 00 00 00 00 00 FF 0F E6 [16:41:27]process_action close_receipt done [16:41:27]requested_data is exist [16:41:27]produce_requested_data [16:41:27]requested_item fm.sn is exist - process it [16:41:27]wFMCommunicate request_size=4 [16:41:27]MH_SAM_APDU [16:41:27]CAPDU: 80 11 00 00 [16:41:27]Write to MH i2c: E2 08 00 C9 09 80 11 00 00 00 00 00 00 4C [16:41:27]Write i2c OK [16:41:27]MH_I2C_Read... [16:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:27]Read from MH i2c: E2 [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: E2 17 00 [16:41:27]MH_I2C_Read... [16:41:27]Read from MH i2c: E2 17 00 C9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [16:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:41:27]wFMCommunicate OK [16:41:27]requested_item fd.num is exist - process it [16:41:27]SAM_PROTO_GetFieldsCounters [16:41:27]wFMCommunicate request_size=4 [16:41:27]MH_SAM_APDU [16:41:27]CAPDU: 80 13 00 00 [16:41:27]Write to MH i2c: E2 08 00 CA 09 80 13 00 00 00 00 00 00 4F [16:41:27]Write i2c OK [16:41:27]MH_I2C_Read... [16:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:28]Read from MH i2c: E2 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 62 00 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 62 00 CA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 64 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [16:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 64 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:28]wFMCommunicate OK [16:41:28]SAM_PROTO_GetFieldsCounters done [16:41:28]requested_item shift.num is exist - process it [16:41:28]requested_item shift.opened is exist - process it [16:41:28]req_shift_opened [16:41:28]FM_GetShiftState [16:41:28]SAM_PROTO_GetShiftState [16:41:28]wFMCommunicate request_size=4 [16:41:28]MH_SAM_APDU [16:41:28]CAPDU: 80 13 01 00 [16:41:28]Write to MH i2c: E2 08 00 CB 09 80 13 01 00 00 00 00 00 51 [16:41:28]Write i2c OK [16:41:28]MH_I2C_Read... [16:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:28]Read from MH i2c: E2 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 0E 00 [16:41:28]MH_I2C_Read... [16:41:28]Read from MH i2c: E2 0E 00 CB 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 53 [16:41:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:41:28]wFMCommunicate OK [16:41:28]SAM_PROTO_GetShiftState done [16:41:28]FM_GetShiftState done [16:41:28]req_shift_opened done [16:41:28]requested_item shift.open_date is exist - process it [16:41:28]req_shift_open_date [16:41:28]req_shift_open_date done [16:41:28]produce_requested_data done [16:41:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202084,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:41:28]process_action_free close_receipt [16:41:28]json_value_free [16:41:28]json_value_free done [16:41:28]process_json_proto returns [16:41:28]Send response to host [16:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202084,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:41:28]free response buf [16:41:28]execute_script done [16:41:28]execute_script returns [16:41:28]free content buf [16:41:28]Sock 8.Close socket [16:41:28]Sock 8.Thread stoped [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:35]accept exits with 9 [16:42:35]New connection [16:42:35]New thread 3067288932 created [16:42:35]Thread 3067432292 joined [16:42:35]Waiting for new connection... [16:42:35] Sock 9.Parse request [16:42:35]Sock 9.Check first char [16:42:35]Sock 9.First char is OK [16:42:35]request: POST /json_proto HTTP/1.0 [16:42:35]Method: POST [16:42:35]URL: /json_proto [16:42:35]Method is POST - this is cgi request [16:42:35]url: /json_proto [16:42:35]query_string will be loaded in cgi processing [16:42:35]execute_cgi json_proto POST (null) [16:42:35]execute_cgi path=json_proto method=POST [16:42:35]POST find Content-Length [16:42:35]Host: 172.17.63.195:8080 [16:42:35]Content-Length: 769 [16:42:35]Content-Type: application/json [16:42:35] [16:42:35]POST finish read [16:42:35]Found Content-Length = 769 [16:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 10000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:35]execute_script... [16:42: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)449854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 10000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:35]POST & json_proto [16:42:35]process_json_proto [16:42:35]json parsed OK: [16:42:35]protocol is kg_v1.0 [16:42:35]action value=close_receipt [16:42:35]process_action close_receipt [16:42:35]cmd_close_receipt [16:42:35]MH_GetDate [16:42:35]Write to MH i2c: F0 00 00 CC 09 C4 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: F0 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: F0 09 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: F0 09 00 CC 09 00 7C 6D 1E 67 47 1B 1E 67 22 [16:42:35]GetLastDocTimeStamp 1730047284 [16:42:35]current date 1730047356 [16:42:35]FM_GetShiftState [16:42:35]SAM_PROTO_GetShiftState [16:42:35]wFMCommunicate request_size=4 [16:42:35]MH_SAM_APDU [16:42:35]CAPDU: 80 13 01 00 [16:42:35]Write to MH i2c: E2 08 00 CD 09 80 13 01 00 00 00 00 00 53 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 0E 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 0E 00 CD 09 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 55 [16:42:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:42:35]wFMCommunicate OK [16:42:35]SAM_PROTO_GetShiftState done [16:42:35]FM_GetShiftState done [16:42:35]opened in 1729987312 [16:42:35]opened+sec_in_day 1730073712 [16:42:35]quantity*price = 1000048 [16:42:35]sum+1 = 1000050 [16:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.49 НСП 1% : 88.50 НДС 12% : 1062.00 Наличными: 0.00 Безнал.: 10000.49 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 377 27.10.2024 16:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202085 ФПД: 122960403933481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164236&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202085&fm=122960403933481&tin=02508201610067®Number=0000000000091777&sum=1000049 [16:42:36]StoreToDocumentArchive [16:42:36]shift 544 fd 202085 [16:42:36]save to /storage/0544/doc_00202085 [16:42:36]save last doc name /storage/0544/doc_00202085 to /storage/kkm_last_doc_name [16:42:36]save OK [16:42:36]Clear old archive folders... [16:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:42:36]tlvbuf is 01C885E0 [16:42:36]SAM_PROTO_ClearQueue [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 09 00 00 [16:42:36]Write to MH i2c: E2 08 00 DA 09 80 09 00 00 00 00 00 00 55 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [16:42:36]RAPDU: 90 00 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_ClearQueue done [16:42:36]KKMCreateOFDPacket [16:42:36]OFDProtocolAddRootSTLVToBuf [16:42:36]FM_MakeSignedData [16:42:36]FM_MakeSignedData [16:42:36]SAM_PROTO_SignData [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 0D 01 02 [16:42:36]Write to MH i2c: E2 08 00 DB 09 80 0D 01 02 00 00 00 00 5D [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 DB 09 00 90 00 58 [16:42:36]RAPDU: 90 00 [16:42:36]wFMCommunicate OK [16:42:36]wFMCommunicate request_size=255 [16:42:36]MH_SAM_APDU [16:42:36]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 32 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 7C 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 15 03 00 35 04 06 00 6F D4 F3 32 [16:42:36]Write to MH i2c: E2 02 01 DC 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 7C 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 15 03 00 35 04 06 00 6F D4 F3 32 00 00 AA [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:37]Read from MH i2c: E2 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 03 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 03 00 DC 09 00 90 00 59 [16:42:37]RAPDU: 90 00 [16:42:37]wFMCommunicate OK [16:42:37]wFMCommunicate request_size=7 [16:42:37]MH_SAM_APDU [16:42:37]CAPDU: 80 0D 02 02 02 A9 29 [16:42:37]Write to MH i2c: E2 0A 00 DD 09 80 0D 02 02 02 00 A9 29 00 00 36 [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]OFD Sender: No OFD packet to send [16:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:37]Read from MH i2c: E2 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 03 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 03 00 DD 09 00 90 00 5A [16:42:37]RAPDU: 90 00 [16:42:37]wFMCommunicate OK [16:42:37]wFMCommunicate request_size=4 [16:42:37]MH_SAM_APDU [16:42:37]CAPDU: 80 0D 03 02 [16:42:37]Write to MH i2c: E2 08 00 DE 09 80 0D 03 02 00 00 00 00 62 [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:37]Read from MH i2c: E2 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 0B 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 0B 00 DE 09 00 B9 75 E1 B0 17 02 EF CE 90 00 F8 [16:42:37]RAPDU: B9 75 E1 B0 17 02 EF CE 90 00 [16:42:37]wFMCommunicate OK [16:42:37]SAM_PROTO_SignData done [16:42:37]FM_MakeSignedData done [16:42:37]CreateOFDProtocolMessage [16:42:37]wFMCommunicate request_size=4 [16:42:37]MH_SAM_APDU [16:42:37]CAPDU: 80 11 00 00 [16:42:37]Write to MH i2c: E2 08 00 DF 09 80 11 00 00 00 00 00 00 62 [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:37]Read from MH i2c: E2 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 17 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: E2 17 00 DF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [16:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:42:37]wFMCommunicate OK [16:42:37]CreateOFDProtocolMessage done [16:42:37]OFDSenderStorePacket 202085 [16:42:37]StoreOFDPacket docnum=202085 [16:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 45 FB 04 01 44 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 7C 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 15 03 00 35 04 06 00 6F D4 F3 32 A9 29 B9 75 E1 B0 17 02 EF CE [16:42:37]CheckFolder [16:42:37]dirname=/storage/ofd_packets [16:42:37]CheckFolder done [16:42:37]ProducePacketName [16:42:37]name=ofd_packets/00202085 [16:42:37]NVStorageSaveData ofd_packets/00202085 [16:42:37]File name is /storage/ofd_packets/00202085 [16:42:37]Write 298 bytes [16:42:37]NVStorageSaveData done [16:42:37]OFDSenderStorePacket done [16:42:37]KKMCreateOFDPacket done [16:42:37]NVStorageSaveData kkm_last_timestamp [16:42:37]File name is /storage/kkm_last_timestamp [16:42:37]Write 4 bytes [16:42:37]NVStorageSaveData done [16:42:37]ExternCall_PrintAddStr [16:42:37]wPrintStart [16:42:37]Write to MH i2c: 01 00 00 E0 09 E9 [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: 01 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: 01 07 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 FF 0F FE [16:42:37]RasterBufferAndPrint [16:42:37]line Счет N : (1)449854 [16:42:37]line ИНН: 02508201610067 [16:42:37]line Контрольно-Кассовый Чек [16:42:37]line ПРОДАЖА [16:42:37]line ТРК (МРК, ГНК) : 21 [16:42:37]line Товар: 2710194210 [16:42:37]line ДТ-К-2 [16:42:37]line 131.240 * 76.20 [16:42:37]line = 10000.49 [16:42:37]line НДС 12% НСП 1% [16:42:37]line > о реализуемом товаре [16:42:37]line ИТОГО: 10000.49 [16:42:37]line НСП 1% : 88.50 [16:42:37]line НДС 12% : 1062.00 [16:42:37]line Наличными: 0.00 [16:42:37]line Безнал.: 10000.49 [16:42:37]line Место: АЗС № 171 "Партнер Нефть" [16:42:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:42:37]line СНО: Общий режим [16:42:37]line Чек 377 27.10.2024 16:42 [16:42:37]line Смена: 544 ФФД: 1.0 [16:42:37]line ЗНМ: 0300000109 [16:42:37]line РНМ: 0000000000091777 [16:42:37]line Версия ККМ: 001 [16:42:37]line Платежная система: Mbank [16:42:37]line ФМ: 0000000000871756 [16:42:37]line ФД: 202085 [16:42:37]line ФПД: 122960403933481 [16:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164236&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202085&fm=122960403933481&tin=02508201610067®Number=0000000000091777&sum=1000049 [16:42:37]OFD Sender: Processing packet 202085 [packets to send 112, broken 111] [16:42:37]ProducePacketName [16:42:37]name=ofd_packets/00202085 [16:42:37]OFD Sender: To server: pG, [16:42:37]CommunicateWithHost lk.salyk.kg:30040 [16:42:37]ConnectInit lk.salyk.kg [16:42:37]written 0, free lines is 4095 [16:42:37]Connected sock=10 [16:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 45 FB 04 01 44 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 7C 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 15 03 00 35 04 06 00 6F D4 F3 32 A9 29 B9 75 E1 B0 17 02 EF CE [16:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 71 E7 47 00 DD F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 15 03 00 F4 03 04 00 35 19 1E 67 B6 04 01 00 00 1A E1 01 33 72 E5 15 F1 [16:42:38]CommunicateWithHost err = 0 [16:42:38]CheckOFDResponse [16:42:38]1017 (14) - 77093643461234 [16:42:38]1041 (16) - 0000000000871756 [16:42:38]1040 (4) - 202085 [16:42:38]1012 (4) - 27.10.2024 10:43 [16:42:38]1206 (1) - 0 [16:42:38]OFD Sender: Remove packet 202085 [16:42:38]ProducePacketName [16:42:38]name=ofd_packets/00202085 [16:42:38]NVStorageDeleteData [16:42:38]Write to MH i2c: 01 00 00 09 0A 13 [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: 01 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: 01 07 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 C4 0C EA [16:42:38]RasterBufferAndPrint [16:42:38]line [16:42:38]line [16:42:38]line [16:42:38]line [16:42:38]line [16:42:38]written 0, free lines is 3273 [16:42:38]MH_Cut [16:42:38]Write to MH i2c: D1 01 00 10 0A 01 EC [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: D1 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: D1 01 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: D1 01 00 10 0A 00 EB [16:42:38]Write to MH i2c: 01 00 00 11 0A 1B [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]OFD Sender: No OFD packet to send [16:42:39]*** Cut start [16:42:39]*** Purtial cut [16:42:39]*** Stage 1: CUTSNS_PIN = 1 [16:42:39]Read from MH i2c: 01 [16:42:39]MH_I2C_Read... [16:42:39]*** Stop cut motor [16:42:39]*** Cut end [16:42:39]Read from MH i2c: 01 07 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: 01 07 00 11 0A 00 00 00 00 00 FF 0F 30 [16:42:39]process_action close_receipt done [16:42:39]requested_data is exist [16:42:39]produce_requested_data [16:42:39]requested_item fm.sn is exist - process it [16:42:39]wFMCommunicate request_size=4 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 11 00 00 [16:42:39]Write to MH i2c: E2 08 00 12 0A 80 11 00 00 00 00 00 00 96 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 17 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 17 00 12 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [16:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:42:39]wFMCommunicate OK [16:42:39]requested_item fd.num is exist - process it [16:42:39]SAM_PROTO_GetFieldsCounters [16:42:39]wFMCommunicate request_size=4 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 13 00 00 [16:42:39]Write to MH i2c: E2 08 00 13 0A 80 13 00 00 00 00 00 00 99 [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 62 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 62 00 13 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 65 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [16:42:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 65 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:39]wFMCommunicate OK [16:42:39]SAM_PROTO_GetFieldsCounters done [16:42:39]requested_item shift.num is exist - process it [16:42:39]requested_item shift.opened is exist - process it [16:42:39]req_shift_opened [16:42:39]FM_GetShiftState [16:42:39]SAM_PROTO_GetShiftState [16:42:39]wFMCommunicate request_size=4 [16:42:39]MH_SAM_APDU [16:42:39]CAPDU: 80 13 01 00 [16:42:39]Write to MH i2c: E2 08 00 14 0A 80 13 01 00 00 00 00 00 9B [16:42:39]Write i2c OK [16:42:39]MH_I2C_Read... [16:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:39]Read from MH i2c: E2 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 0E 00 [16:42:39]MH_I2C_Read... [16:42:39]Read from MH i2c: E2 0E 00 14 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [16:42:39]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:42:39]wFMCommunicate OK [16:42:39]SAM_PROTO_GetShiftState done [16:42:39]FM_GetShiftState done [16:42:39]req_shift_opened done [16:42:39]requested_item shift.open_date is exist - process it [16:42:39]req_shift_open_date [16:42:39]req_shift_open_date done [16:42:39]produce_requested_data done [16:42:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202085,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:42:39]process_action_free close_receipt [16:42:39]json_value_free [16:42:39]json_value_free done [16:42:39]process_json_proto returns [16:42:39]Send response to host [16:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202085,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:42:39]free response buf [16:42:39]execute_script done [16:42:39]execute_script returns [16:42:39]free content buf [16:42:39]Sock 9.Close socket [16:42:39]Sock 9.Thread stoped [16:42:43]OFD Sender: No OFD packet to send [16:42:44]int [16:42:44]Write to MH i2c: 01 00 00 15 0A 1F [16:42:44]*** FLAG_PRN_KEY set [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 15 0A 00 08 00 00 00 FF 0F 3C [16:42:44]state=0 [16:42:44]Key pressed [16:42:44]Feed [16:42:44]Write to MH i2c: D8 00 00 16 0A F7 [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: D8 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: D8 01 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: D8 01 00 16 0A 00 F8 [16:42:44]int [16:42:44]Write to MH i2c: 01 00 00 17 0A 21 [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 17 0A 00 48 00 00 00 3C 00 AC [16:42:44]state=2 [16:42:44]Key pressed [16:42:44]int [16:42:44]Write to MH i2c: 01 00 00 18 0A 22 [16:42:44]*** FLAG_PRN_KEY reset [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 18 0A 00 00 00 00 00 F9 0F 31 [16:42:44]state=2 [16:42:44]Stop feed [16:42:44]int [16:42:44]Write to MH i2c: 01 00 00 19 0A 23 [16:42:44]*** FLAG_PRN_KEY set [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 19 0A 00 08 00 00 00 FF 0F 40 [16:42:44]state=0 [16:42:44]Key pressed [16:42:44]Feed [16:42:44]Write to MH i2c: D8 00 00 1A 0A FB [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: D8 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: D8 01 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: D8 01 00 1A 0A 00 FC [16:42:44]int [16:42:44]Write to MH i2c: 01 00 00 1B 0A 25 [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 1B 0A 00 48 00 00 00 3C 00 B0 [16:42:44]state=2 [16:42:44]Key pressed [16:42:44]int [16:42:44]Write to MH i2c: 01 00 00 1C 0A 26 [16:42:44]*** FLAG_PRN_KEY reset [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 1C 0A 00 00 00 00 00 F5 0F 31 [16:42:44]state=2 [16:42:44]Stop feed [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:08]accept exits with 8 [16:44:08]New connection [16:44:08]New thread 3067432292 created [16:44:08]Thread 3067288932 joined [16:44:08]Waiting for new connection... [16:44:08] Sock 8.Parse request [16:44:08]Sock 8.Check first char [16:44:08]Sock 8.First char is OK [16:44:08]request: POST /json_proto HTTP/1.0 [16:44:08]Method: POST [16:44:08]URL: /json_proto [16:44:08]Method is POST - this is cgi request [16:44:08]url: /json_proto [16:44:08]query_string will be loaded in cgi processing [16:44:08]execute_cgi json_proto POST (null) [16:44:08]execute_cgi path=json_proto method=POST [16:44:08]POST find Content-Length [16:44:08]Host: 172.17.63.195:8080 [16:44:08]Content-Length: 670 [16:44:08]Content-Type: application/json [16:44:08] [16:44:08]POST finish read [16:44:08]Found Content-Length = 670 [16:44:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.980, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:08]execute_script... [16:44:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.980, "sum" : 340.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:08]POST & json_proto [16:44:08]process_json_proto [16:44:08]json parsed OK: [16:44:08]protocol is kg_v1.0 [16:44:08]action value=close_receipt [16:44:08]process_action close_receipt [16:44:08]cmd_close_receipt [16:44:08]MH_GetDate [16:44:08]Write to MH i2c: F0 00 00 1D 0A 16 [16:44:08]Write i2c OK [16:44:08]MH_I2C_Read... [16:44:08]Read from MH i2c: F0 [16:44:08]MH_I2C_Read... [16:44:08]Read from MH i2c: F0 09 00 [16:44:08]MH_I2C_Read... [16:44:08]Read from MH i2c: F0 09 00 1D 0A 00 D9 6D 1E 67 47 1B 1E 67 D1 [16:44:08]GetLastDocTimeStamp 1730047356 [16:44:08]current date 1730047449 [16:44:08]FM_GetShiftState [16:44:08]SAM_PROTO_GetShiftState [16:44:08]wFMCommunicate request_size=4 [16:44:08]MH_SAM_APDU [16:44:08]CAPDU: 80 13 01 00 [16:44:08]Write to MH i2c: E2 08 00 1E 0A 80 13 01 00 00 00 00 00 A5 [16:44:08]Write i2c OK [16:44:08]MH_I2C_Read... [16:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:08]Read from MH i2c: E2 [16:44:08]MH_I2C_Read... [16:44:08]Read from MH i2c: E2 0E 00 [16:44:08]MH_I2C_Read... [16:44:08]Read from MH i2c: E2 0E 00 1E 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A7 [16:44:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:44:08]wFMCommunicate OK [16:44:08]SAM_PROTO_GetShiftState done [16:44:08]FM_GetShiftState done [16:44:08]opened in 1729987312 [16:44:08]opened+sec_in_day 1730073712 [16:44:08]quantity*price = 34063 [16:44:08]sum+1 = 34064 [16:44:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 378 27.10.2024 16:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202086 ФПД: 72288822663972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164409&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202086&fm=72288822663972&tin=02508201610067®Number=0000000000091777&sum=34000 [16:44:10]StoreToDocumentArchive [16:44:10]shift 544 fd 202086 [16:44:10]save to /storage/0544/doc_00202086 [16:44:10]save last doc name /storage/0544/doc_00202086 to /storage/kkm_last_doc_name [16:44:10]save OK [16:44:10]Clear old archive folders... [16:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:44:10]tlvbuf is 01C645C0 [16:44:10]SAM_PROTO_ClearQueue [16:44:10]wFMCommunicate request_size=4 [16:44:10]MH_SAM_APDU [16:44:10]CAPDU: 80 09 00 00 [16:44:10]Write to MH i2c: E2 08 00 2B 0A 80 09 00 00 00 00 00 00 A7 [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:10]Read from MH i2c: E2 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 03 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [16:44:10]RAPDU: 90 00 [16:44:10]wFMCommunicate OK [16:44:10]SAM_PROTO_ClearQueue done [16:44:10]KKMCreateOFDPacket [16:44:10]OFDProtocolAddRootSTLVToBuf [16:44:10]FM_MakeSignedData [16:44:10]FM_MakeSignedData [16:44:10]SAM_PROTO_SignData [16:44:10]wFMCommunicate request_size=4 [16:44:10]MH_SAM_APDU [16:44:10]CAPDU: 80 0D 01 02 [16:44:10]Write to MH i2c: E2 08 00 2C 0A 80 0D 01 02 00 00 00 00 AF [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:10]Read from MH i2c: E2 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 03 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [16:44:10]RAPDU: 90 00 [16:44:10]wFMCommunicate OK [16:44:10]wFMCommunicate request_size=255 [16:44:10]MH_SAM_APDU [16:44:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0F 85 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 21 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 7A 01 00 00 F4 03 04 00 D9 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 15 03 00 35 04 06 00 [16:44:10]Write to MH i2c: E2 02 01 2D 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0F 85 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 21 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 7A 01 00 00 F4 03 04 00 D9 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 15 03 00 35 04 06 00 00 00 36 [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:10]Read from MH i2c: E2 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 03 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [16:44:10]RAPDU: 90 00 [16:44:10]wFMCommunicate OK [16:44:10]wFMCommunicate request_size=11 [16:44:10]MH_SAM_APDU [16:44:10]CAPDU: 80 0D 02 02 06 41 BF 0D 98 9B 24 [16:44:10]Write to MH i2c: E2 0E 00 2E 0A 80 0D 02 02 06 00 41 BF 0D 98 9B 24 00 00 22 [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:10]Read from MH i2c: E2 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 03 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [16:44:10]RAPDU: 90 00 [16:44:10]wFMCommunicate OK [16:44:10]wFMCommunicate request_size=4 [16:44:10]MH_SAM_APDU [16:44:10]CAPDU: 80 0D 03 02 [16:44:10]Write to MH i2c: E2 08 00 2F 0A 80 0D 03 02 00 00 00 00 B4 [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:10]Read from MH i2c: E2 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 0B 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 0B 00 2F 0A 00 71 E9 3F CB BE 92 BC 29 90 00 4E [16:44:10]RAPDU: 71 E9 3F CB BE 92 BC 29 90 00 [16:44:10]wFMCommunicate OK [16:44:10]SAM_PROTO_SignData done [16:44:10]FM_MakeSignedData done [16:44:10]CreateOFDProtocolMessage [16:44:10]wFMCommunicate request_size=4 [16:44:10]MH_SAM_APDU [16:44:10]CAPDU: 80 11 00 00 [16:44:10]Write to MH i2c: E2 08 00 30 0A 80 11 00 00 00 00 00 00 B4 [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:10]Read from MH i2c: E2 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 17 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 17 00 30 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [16:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:44:10]wFMCommunicate OK [16:44:10]CreateOFDProtocolMessage done [16:44:10]OFDSenderStorePacket 202086 [16:44:10]StoreOFDPacket docnum=202086 [16:44:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 8B C4 08 01 2C DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0F 85 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 21 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 7A 01 00 00 F4 03 04 00 D9 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 15 03 00 35 04 06 00 41 BF 0D 98 9B 24 71 E9 3F CB BE 92 BC 29 [16:44:10]CheckFolder [16:44:10]dirname=/storage/ofd_packets [16:44:10]CheckFolder done [16:44:10]ProducePacketName [16:44:10]name=ofd_packets/00202086 [16:44:10]NVStorageSaveData ofd_packets/00202086 [16:44:10]File name is /storage/ofd_packets/00202086 [16:44:10]Write 302 bytes [16:44:10]NVStorageSaveData done [16:44:10]OFDSenderStorePacket done [16:44:10]KKMCreateOFDPacket done [16:44:10]NVStorageSaveData kkm_last_timestamp [16:44:10]File name is /storage/kkm_last_timestamp [16:44:10]Write 4 bytes [16:44:10]NVStorageSaveData done [16:44:10]ExternCall_PrintAddStr [16:44:10]wPrintStart [16:44:10]Write to MH i2c: 01 00 00 31 0A 3B [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: 01 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: 01 07 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: 01 07 00 31 0A 00 00 00 00 00 FF 0F 50 [16:44:10]RasterBufferAndPrint [16:44:10]line Счет N : (1)449856 [16:44:10]line ИНН: 02508201610067 [16:44:10]line Контрольно-Кассовый Чек [16:44:10]line ПРОДАЖА [16:44:10]line ТРК (МРК, ГНК) : 42 [16:44:10]line Товар: 2710124130 [16:44:10]line SUPER 92-К-5 [16:44:10]line 4.980 * 68.40 [16:44:10]line = 340.63 [16:44:10]line НДС 12% НСП 1% [16:44:10]line > о реализуемом товаре [16:44:10]line ОКРУГЛЕНИЕ: -0.63 [16:44:10]line ИТОГО: 340.00 [16:44:10]line Внесено: 340.00 [16:44:10]line СДАЧА: 0.00 [16:44:10]line НСП 1% : 3.01 [16:44:10]line НДС 12% : 36.17 [16:44:10]line Наличными: 340.00 [16:44:10]line Безнал.: 0.00 [16:44:10]line Место: АЗС № 171 "Партнер Нефть" [16:44:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:44:10]line СНО: Общий режим [16:44:10]line Чек 378 27.10.2024 16:44 [16:44:10]line Смена: 544 ФФД: 1.0 [16:44:10]line ЗНМ: 0300000109 [16:44:10]line РНМ: 0000000000091777 [16:44:10]line Версия ККМ: 001 [16:44:10]line ФМ: 0000000000871756 [16:44:10]line ФД: 202086 [16:44:10]line ФПД: 72288822663972 [16:44:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164409&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202086&fm=72288822663972&tin=02508201610067®Number=0000000000091777&sum=34000 [16:44:10]OFD Sender: Processing packet 202086 [packets to send 112, broken 111] [16:44:10]ProducePacketName [16:44:10]name=ofd_packets/00202086 [16:44:10]OFD Sender: To server: pG, [16:44:10]CommunicateWithHost lk.salyk.kg:30040 [16:44:10]ConnectInit lk.salyk.kg [16:44:10]written 0, free lines is 4095 [16:44:11]Connected sock=10 [16:44:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 8B C4 08 01 2C DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0F 85 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 21 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 7A 01 00 00 F4 03 04 00 D9 6D 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 15 03 00 35 04 06 00 41 BF 0D 98 9B 24 71 E9 3F CB BE 92 BC 29 [16:44:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 76 DC 47 00 5F 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 15 03 00 F4 03 04 00 93 19 1E 67 B6 04 01 00 00 D7 00 A3 AA DA DC CB 60 [16:44:11]CommunicateWithHost err = 0 [16:44:11]CheckOFDResponse [16:44:11]1017 (14) - 77093643461234 [16:44:11]1041 (16) - 0000000000871756 [16:44:11]1040 (4) - 202086 [16:44:11]1012 (4) - 27.10.2024 10:44 [16:44:11]1206 (1) - 0 [16:44:11]OFD Sender: Remove packet 202086 [16:44:11]ProducePacketName [16:44:11]name=ofd_packets/00202086 [16:44:11]NVStorageDeleteData [16:44:11]Write to MH i2c: 01 00 00 5C 0A 66 [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 07 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 8F 0C 08 [16:44:11]RasterBufferAndPrint [16:44:11]line [16:44:11]line [16:44:11]line [16:44:11]line [16:44:11]line [16:44:11]written 0, free lines is 3219 [16:44:11]MH_Cut [16:44:11]Write to MH i2c: D1 01 00 63 0A 01 3F [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: D1 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: D1 01 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: D1 01 00 63 0A 00 3E [16:44:11]Write to MH i2c: 01 00 00 64 0A 6E [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]OFD Sender: No OFD packet to send [16:44:12]*** Cut start [16:44:12]*** Purtial cut [16:44:12]*** Stage 1: CUTSNS_PIN = 1 [16:44:12]Read from MH i2c: 01 [16:44:12]MH_I2C_Read... [16:44:12]*** Stop cut motor [16:44:12]*** Cut end [16:44:12]Read from MH i2c: 01 07 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 07 00 64 0A 00 00 00 00 00 FF 0F 83 [16:44:12]process_action close_receipt done [16:44:12]requested_data is exist [16:44:12]produce_requested_data [16:44:12]requested_item fm.sn is exist - process it [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 11 00 00 [16:44:12]Write to MH i2c: E2 08 00 65 0A 80 11 00 00 00 00 00 00 E9 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 17 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 17 00 65 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3E [16:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:44:12]wFMCommunicate OK [16:44:12]requested_item fd.num is exist - process it [16:44:12]SAM_PROTO_GetFieldsCounters [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 13 00 00 [16:44:12]Write to MH i2c: E2 08 00 66 0A 80 13 00 00 00 00 00 00 EC [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 62 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 62 00 66 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 66 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [16:44:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 66 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:12]wFMCommunicate OK [16:44:12]SAM_PROTO_GetFieldsCounters done [16:44:12]requested_item shift.num is exist - process it [16:44:12]requested_item shift.opened is exist - process it [16:44:12]req_shift_opened [16:44:12]FM_GetShiftState [16:44:12]SAM_PROTO_GetShiftState [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 13 01 00 [16:44:12]Write to MH i2c: E2 08 00 67 0A 80 13 01 00 00 00 00 00 EE [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 0E 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 0E 00 67 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F0 [16:44:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:44:12]wFMCommunicate OK [16:44:12]SAM_PROTO_GetShiftState done [16:44:12]FM_GetShiftState done [16:44:12]req_shift_opened done [16:44:12]requested_item shift.open_date is exist - process it [16:44:12]req_shift_open_date [16:44:12]req_shift_open_date done [16:44:12]produce_requested_data done [16:44:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202086,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:44:12]process_action_free close_receipt [16:44:12]json_value_free [16:44:12]json_value_free done [16:44:12]process_json_proto returns [16:44:12]Send response to host [16:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202086,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:44:12]free response buf [16:44:12]execute_script done [16:44:12]execute_script returns [16:44:12]free content buf [16:44:12]Sock 8.Close socket [16:44:12]Sock 8.Thread stoped [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]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:27]accept exits with 9 [16:46:27]New connection [16:46:27]New thread 3067288932 created [16:46:27]Thread 3067432292 joined [16:46:27]Waiting for new connection... [16:46:27] Sock 9.Parse request [16:46:27]Sock 9.Check first char [16:46:27]Sock 9.First char is OK [16:46:27]request: POST /json_proto HTTP/1.0 [16:46:27]Method: POST [16:46:27]URL: /json_proto [16:46:27]Method is POST - this is cgi request [16:46:27]url: /json_proto [16:46:27]query_string will be loaded in cgi processing [16:46:27]execute_cgi json_proto POST (null) [16:46:27]execute_cgi path=json_proto method=POST [16:46:27]POST find Content-Length [16:46:27]Host: 172.17.63.195:8080 [16:46:27]Content-Length: 677 [16:46:27]Content-Type: application/json [16:46:27] [16:46:27]POST finish read [16:46:27]Found Content-Length = 677 [16:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:27]execute_script... [16:46: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)449857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:27]POST & json_proto [16:46:27]process_json_proto [16:46:27]json parsed OK: [16:46:27]protocol is kg_v1.0 [16:46:27]action value=close_receipt [16:46:27]process_action close_receipt [16:46:27]cmd_close_receipt [16:46:27]MH_GetDate [16:46:27]Write to MH i2c: F0 00 00 68 0A 61 [16:46:27]Write i2c OK [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: F0 [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: F0 09 00 [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: F0 09 00 68 0A 00 64 6E 1E 67 47 1B 1E 67 A8 [16:46:27]GetLastDocTimeStamp 1730047449 [16:46:27]current date 1730047588 [16:46:27]FM_GetShiftState [16:46:27]SAM_PROTO_GetShiftState [16:46:27]wFMCommunicate request_size=4 [16:46:27]MH_SAM_APDU [16:46:27]CAPDU: 80 13 01 00 [16:46:27]Write to MH i2c: E2 08 00 69 0A 80 13 01 00 00 00 00 00 F0 [16:46:27]Write i2c OK [16:46:27]MH_I2C_Read... [16:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:27]Read from MH i2c: E2 [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: E2 0E 00 [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: E2 0E 00 69 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F2 [16:46:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:46:27]wFMCommunicate OK [16:46:27]SAM_PROTO_GetShiftState done [16:46:27]FM_GetShiftState done [16:46:27]opened in 1729987312 [16:46:27]opened+sec_in_day 1730073712 [16:46:27]quantity*price = 50041 [16:46:27]sum+1 = 50042 [16:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 379 27.10.2024 16:46 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202087 ФПД: 60801286576778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164628&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202087&fm=60801286576778&tin=02508201610067®Number=0000000000091777&sum=50000 [16:46:28]StoreToDocumentArchive [16:46:28]shift 544 fd 202087 [16:46:28]save to /storage/0544/doc_00202087 [16:46:28]save last doc name /storage/0544/doc_00202087 to /storage/kkm_last_doc_name [16:46:28]save OK [16:46:28]Clear old archive folders... [16:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:28]tlvbuf is 01C66770 [16:46:28]SAM_PROTO_ClearQueue [16:46:28]wFMCommunicate request_size=4 [16:46:28]MH_SAM_APDU [16:46:28]CAPDU: 80 09 00 00 [16:46:28]Write to MH i2c: E2 08 00 76 0A 80 09 00 00 00 00 00 00 F2 [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:28]Read from MH i2c: E2 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 03 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [16:46:28]RAPDU: 90 00 [16:46:28]wFMCommunicate OK [16:46:28]SAM_PROTO_ClearQueue done [16:46:28]KKMCreateOFDPacket [16:46:28]OFDProtocolAddRootSTLVToBuf [16:46:28]FM_MakeSignedData [16:46:28]FM_MakeSignedData [16:46:28]SAM_PROTO_SignData [16:46:28]wFMCommunicate request_size=4 [16:46:28]MH_SAM_APDU [16:46:28]CAPDU: 80 0D 01 02 [16:46:28]Write to MH i2c: E2 08 00 77 0A 80 0D 01 02 00 00 00 00 FA [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:28]Read from MH i2c: E2 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 03 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [16:46:28]RAPDU: 90 00 [16:46:28]wFMCommunicate OK [16:46:28]wFMCommunicate request_size=255 [16:46:28]MH_SAM_APDU [16:46:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7B 01 00 00 F4 03 04 00 64 6E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 15 03 00 35 04 06 00 37 [16:46:28]Write to MH i2c: E2 02 01 78 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7B 01 00 00 F4 03 04 00 64 6E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 15 03 00 35 04 06 00 37 00 00 39 [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:28]Read from MH i2c: E2 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 03 00 [16:46:28]MH_I2C_Read... [16:46:28]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [16:46:28]RAPDU: 90 00 [16:46:28]wFMCommunicate OK [16:46:28]wFMCommunicate request_size=10 [16:46:28]MH_SAM_APDU [16:46:28]CAPDU: 80 0D 02 02 05 4C 67 16 9A 8A [16:46:28]Write to MH i2c: E2 0D 00 79 0A 80 0D 02 02 05 00 4C 67 16 9A 8A 00 00 F4 [16:46:28]Write i2c OK [16:46:28]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [16:46:29]RAPDU: 90 00 [16:46:29]wFMCommunicate OK [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 0D 03 02 [16:46:29]Write to MH i2c: E2 08 00 7A 0A 80 0D 03 02 00 00 00 00 FF [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 0B 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 0B 00 7A 0A 00 69 8A 03 64 F3 AF 8A 4B 90 00 D1 [16:46:29]RAPDU: 69 8A 03 64 F3 AF 8A 4B 90 00 [16:46:29]wFMCommunicate OK [16:46:29]SAM_PROTO_SignData done [16:46:29]FM_MakeSignedData done [16:46:29]CreateOFDProtocolMessage [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 11 00 00 [16:46:29]Write to MH i2c: E2 08 00 7B 0A 80 11 00 00 00 00 00 00 FF [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 17 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 17 00 7B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [16:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:46:29]wFMCommunicate OK [16:46:29]CreateOFDProtocolMessage done [16:46:29]OFDSenderStorePacket 202087 [16:46:29]StoreOFDPacket docnum=202087 [16:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CE 67 07 01 6D 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7B 01 00 00 F4 03 04 00 64 6E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 15 03 00 35 04 06 00 37 4C 67 16 9A 8A 69 8A 03 64 F3 AF 8A 4B [16:46:29]CheckFolder [16:46:29]dirname=/storage/ofd_packets [16:46:29]CheckFolder done [16:46:29]ProducePacketName [16:46:29]name=ofd_packets/00202087 [16:46:29]NVStorageSaveData ofd_packets/00202087 [16:46:29]File name is /storage/ofd_packets/00202087 [16:46:29]Write 301 bytes [16:46:29]NVStorageSaveData done [16:46:29]OFDSenderStorePacket done [16:46:29]KKMCreateOFDPacket done [16:46:29]NVStorageSaveData kkm_last_timestamp [16:46:29]File name is /storage/kkm_last_timestamp [16:46:29]Write 4 bytes [16:46:29]NVStorageSaveData done [16:46:29]ExternCall_PrintAddStr [16:46:29]wPrintStart [16:46:29]Write to MH i2c: 01 00 00 7C 0A 86 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 07 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 07 00 7C 0A 00 00 00 00 00 FF 0F 9B [16:46:29]RasterBufferAndPrint [16:46:29]line Счет N : (1)449857 [16:46:29]line ИНН: 02508201610067 [16:46:29]line Контрольно-Кассовый Чек [16:46:29]line ПРОДАЖА [16:46:29]line ТРК (МРК, ГНК) : 31 [16:46:29]line Товар: 2710124130 [16:46:29]line Аи-92-К-2 [16:46:29]line 7.480 * 66.90 [16:46:29]line = 500.41 [16:46:29]line НДС 12% НСП 1% [16:46:29]line > о реализуемом товаре [16:46:29]line ОКРУГЛЕНИЕ: -0.41 [16:46:29]line ИТОГО: 500.00 [16:46:29]line Внесено: 500.00 [16:46:29]line СДАЧА: 0.00 [16:46:29]line НСП 1% : 4.43 [16:46:29]line НДС 12% : 53.14 [16:46:29]line Наличными: 500.00 [16:46:29]line Безнал.: 0.00 [16:46:29]line Место: АЗС № 171 "Партнер Нефть" [16:46:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:46:29]line СНО: Общий режим [16:46:29]line Чек 379 27.10.2024 16:46 [16:46:29]line Смена: 544 ФФД: 1.0 [16:46:29]line ЗНМ: 0300000109 [16:46:29]line РНМ: 0000000000091777 [16:46:29]line Версия ККМ: 001 [16:46:29]line ФМ: 0000000000871756 [16:46:29]line ФД: 202087 [16:46:29]line ФПД: 60801286576778 [16:46:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164628&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202087&fm=60801286576778&tin=02508201610067®Number=0000000000091777&sum=50000 [16:46:29]OFD Sender: Processing packet 202087 [packets to send 112, broken 111] [16:46:29]ProducePacketName [16:46:29]name=ofd_packets/00202087 [16:46:29]OFD Sender: To server: pG, [16:46:29]CommunicateWithHost lk.salyk.kg:30040 [16:46:29]ConnectInit lk.salyk.kg [16:46:29]written 0, free lines is 4095 [16:46:29]Connected sock=10 [16:46:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CE 67 07 01 6D 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7B 01 00 00 F4 03 04 00 64 6E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 15 03 00 35 04 06 00 37 4C 67 16 9A 8A 69 8A 03 64 F3 AF 8A 4B [16:46:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C1 97 47 00 56 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 15 03 00 F4 03 04 00 1D 1A 1E 67 B6 04 01 00 00 DE 7E 83 C2 61 E0 D8 10 [16:46:29]CommunicateWithHost err = 0 [16:46:29]CheckOFDResponse [16:46:29]1017 (14) - 77093643461234 [16:46:29]1041 (16) - 0000000000871756 [16:46:29]1040 (4) - 202087 [16:46:29]1012 (4) - 27.10.2024 10:46 [16:46:29]1206 (1) - 0 [16:46:29]OFD Sender: Remove packet 202087 [16:46:29]ProducePacketName [16:46:29]name=ofd_packets/00202087 [16:46:29]NVStorageDeleteData [16:46:29]Write to MH i2c: 01 00 00 A7 0A B1 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 07 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 07 00 A7 0A 00 00 00 00 00 8F 0C 53 [16:46:29]RasterBufferAndPrint [16:46:29]line [16:46:29]line [16:46:29]line [16:46:29]line [16:46:29]line [16:46:29]written 0, free lines is 3219 [16:46:29]MH_Cut [16:46:29]Write to MH i2c: D1 01 00 AE 0A 01 8A [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: D1 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: D1 01 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: D1 01 00 AE 0A 00 89 [16:46:29]Write to MH i2c: 01 00 00 AF 0A B9 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:30]OFD Sender: No OFD packet to send [16:46:30]*** Cut start [16:46:30]*** Purtial cut [16:46:30]*** Stage 1: CUTSNS_PIN = 1 [16:46:31]Read from MH i2c: 01 [16:46:31]MH_I2C_Read... [16:46:31]*** Stop cut motor [16:46:31]*** Cut end [16:46:31]Read from MH i2c: 01 07 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: 01 07 00 AF 0A 00 00 00 00 00 FF 0F CE [16:46:31]process_action close_receipt done [16:46:31]requested_data is exist [16:46:31]produce_requested_data [16:46:31]requested_item fm.sn is exist - process it [16:46:31]wFMCommunicate request_size=4 [16:46:31]MH_SAM_APDU [16:46:31]CAPDU: 80 11 00 00 [16:46:31]Write to MH i2c: E2 08 00 B0 0A 80 11 00 00 00 00 00 00 34 [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:31]Read from MH i2c: E2 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 17 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 17 00 B0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 89 [16:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:46:31]wFMCommunicate OK [16:46:31]requested_item fd.num is exist - process it [16:46:31]SAM_PROTO_GetFieldsCounters [16:46:31]wFMCommunicate request_size=4 [16:46:31]MH_SAM_APDU [16:46:31]CAPDU: 80 13 00 00 [16:46:31]Write to MH i2c: E2 08 00 B1 0A 80 13 00 00 00 00 00 00 37 [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:31]Read from MH i2c: E2 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 62 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 62 00 B1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 67 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [16:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 67 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:31]wFMCommunicate OK [16:46:31]SAM_PROTO_GetFieldsCounters done [16:46:31]requested_item shift.num is exist - process it [16:46:31]requested_item shift.opened is exist - process it [16:46:31]req_shift_opened [16:46:31]FM_GetShiftState [16:46:31]SAM_PROTO_GetShiftState [16:46:31]wFMCommunicate request_size=4 [16:46:31]MH_SAM_APDU [16:46:31]CAPDU: 80 13 01 00 [16:46:31]Write to MH i2c: E2 08 00 B2 0A 80 13 01 00 00 00 00 00 39 [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:31]Read from MH i2c: E2 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 0E 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 0E 00 B2 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3B [16:46:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:46:31]wFMCommunicate OK [16:46:31]SAM_PROTO_GetShiftState done [16:46:31]FM_GetShiftState done [16:46:31]req_shift_opened done [16:46:31]requested_item shift.open_date is exist - process it [16:46:31]req_shift_open_date [16:46:31]req_shift_open_date done [16:46:31]produce_requested_data done [16:46:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202087,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:46:31]process_action_free close_receipt [16:46:31]json_value_free [16:46:31]json_value_free done [16:46:31]process_json_proto returns [16:46:31]Send response to host [16:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202087,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:46:31]free response buf [16:46:31]execute_script done [16:46:31]execute_script returns [16:46:31]free content buf [16:46:31]Sock 9.Close socket [16:46:31]Sock 9.Thread stoped [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:19]accept exits with 8 [16:47:19]New connection [16:47:19]New thread 3067432292 created [16:47:19]Thread 3067288932 joined [16:47:19]Waiting for new connection... [16:47:19] Sock 8.Parse request [16:47:19]Sock 8.Check first char [16:47:19]Sock 8.First char is OK [16:47:19]request: POST /json_proto HTTP/1.0 [16:47:19]Method: POST [16:47:19]URL: /json_proto [16:47:19]Method is POST - this is cgi request [16:47:19]url: /json_proto [16:47:19]query_string will be loaded in cgi processing [16:47:19]execute_cgi json_proto POST (null) [16:47:19]execute_cgi path=json_proto method=POST [16:47:19]POST find Content-Length [16:47:19]Host: 172.17.63.195:8080 [16:47:19]Content-Length: 677 [16:47:19]Content-Type: application/json [16:47:19] [16:47:19]POST finish read [16:47:19]Found Content-Length = 677 [16:47:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:19]execute_script... [16:47: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)449858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:19]POST & json_proto [16:47:19]process_json_proto [16:47:19]json parsed OK: [16:47:19]protocol is kg_v1.0 [16:47:19]action value=close_receipt [16:47:19]process_action close_receipt [16:47:19]cmd_close_receipt [16:47:19]MH_GetDate [16:47:19]Write to MH i2c: F0 00 00 B3 0A AC [16:47:19]Write i2c OK [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: F0 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: F0 09 00 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: F0 09 00 B3 0A 00 98 6E 1E 67 47 1B 1E 67 27 [16:47:19]GetLastDocTimeStamp 1730047588 [16:47:19]current date 1730047640 [16:47:19]FM_GetShiftState [16:47:19]SAM_PROTO_GetShiftState [16:47:19]wFMCommunicate request_size=4 [16:47:19]MH_SAM_APDU [16:47:19]CAPDU: 80 13 01 00 [16:47:19]Write to MH i2c: E2 08 00 B4 0A 80 13 01 00 00 00 00 00 3B [16:47:19]Write i2c OK [16:47:19]MH_I2C_Read... [16:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:19]Read from MH i2c: E2 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: E2 0E 00 [16:47:19]MH_I2C_Read... [16:47:19]Read from MH i2c: E2 0E 00 B4 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3D [16:47:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:47:19]wFMCommunicate OK [16:47:19]SAM_PROTO_GetShiftState done [16:47:19]FM_GetShiftState done [16:47:19]opened in 1729987312 [16:47:19]opened+sec_in_day 1730073712 [16:47:19]quantity*price = 50041 [16:47:19]sum+1 = 50042 [16:47:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 380 27.10.2024 16:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202088 ФПД: 135479126899762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164720&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202088&fm=135479126899762&tin=02508201610067®Number=0000000000091777&sum=50000 [16:47:21]StoreToDocumentArchive [16:47:21]shift 544 fd 202088 [16:47:21]save to /storage/0544/doc_00202088 [16:47:21]save last doc name /storage/0544/doc_00202088 to /storage/kkm_last_doc_name [16:47:21]save OK [16:47:21]Clear old archive folders... [16:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:21]tlvbuf is 01C29590 [16:47:21]SAM_PROTO_ClearQueue [16:47:21]wFMCommunicate request_size=4 [16:47:21]MH_SAM_APDU [16:47:21]CAPDU: 80 09 00 00 [16:47:21]Write to MH i2c: E2 08 00 C1 0A 80 09 00 00 00 00 00 00 3D [16:47:21]Write i2c OK [16:47:21]MH_I2C_Read... [16:47:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:21]Read from MH i2c: E2 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 03 00 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [16:47:21]RAPDU: 90 00 [16:47:21]wFMCommunicate OK [16:47:21]SAM_PROTO_ClearQueue done [16:47:21]KKMCreateOFDPacket [16:47:21]OFDProtocolAddRootSTLVToBuf [16:47:21]FM_MakeSignedData [16:47:21]FM_MakeSignedData [16:47:21]SAM_PROTO_SignData [16:47:21]wFMCommunicate request_size=4 [16:47:21]MH_SAM_APDU [16:47:21]CAPDU: 80 0D 01 02 [16:47:21]Write to MH i2c: E2 08 00 C2 0A 80 0D 01 02 00 00 00 00 45 [16:47:21]Write i2c OK [16:47:21]MH_I2C_Read... [16:47:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:21]Read from MH i2c: E2 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 03 00 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [16:47:21]RAPDU: 90 00 [16:47:21]wFMCommunicate OK [16:47:21]wFMCommunicate request_size=255 [16:47:21]MH_SAM_APDU [16:47:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7C 01 00 00 F4 03 04 00 98 6E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 15 03 00 35 04 06 00 7B [16:47:21]Write to MH i2c: E2 02 01 C3 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7C 01 00 00 F4 03 04 00 98 6E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 15 03 00 35 04 06 00 7B 00 00 FE [16:47:21]Write i2c OK [16:47:21]MH_I2C_Read... [16:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:21]Read from MH i2c: E2 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 03 00 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [16:47:21]RAPDU: 90 00 [16:47:21]wFMCommunicate OK [16:47:21]wFMCommunicate request_size=10 [16:47:21]MH_SAM_APDU [16:47:21]CAPDU: 80 0D 02 02 05 37 B1 3B BC 32 [16:47:21]Write to MH i2c: E2 0D 00 C4 0A 80 0D 02 02 05 00 37 B1 3B BC 32 00 00 63 [16:47:21]Write i2c OK [16:47:21]MH_I2C_Read... [16:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:21]Read from MH i2c: E2 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 03 00 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [16:47:21]RAPDU: 90 00 [16:47:21]wFMCommunicate OK [16:47:21]wFMCommunicate request_size=4 [16:47:21]MH_SAM_APDU [16:47:21]CAPDU: 80 0D 03 02 [16:47:21]Write to MH i2c: E2 08 00 C5 0A 80 0D 03 02 00 00 00 00 4A [16:47:21]Write i2c OK [16:47:21]MH_I2C_Read... [16:47:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:21]Read from MH i2c: E2 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 0B 00 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 0B 00 C5 0A 00 DA 06 B5 FC BC F4 90 B0 90 00 CC [16:47:21]RAPDU: DA 06 B5 FC BC F4 90 B0 90 00 [16:47:21]wFMCommunicate OK [16:47:21]SAM_PROTO_SignData done [16:47:21]FM_MakeSignedData done [16:47:21]CreateOFDProtocolMessage [16:47:21]wFMCommunicate request_size=4 [16:47:21]MH_SAM_APDU [16:47:21]CAPDU: 80 11 00 00 [16:47:21]Write to MH i2c: E2 08 00 C6 0A 80 11 00 00 00 00 00 00 4A [16:47:21]Write i2c OK [16:47:21]MH_I2C_Read... [16:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:21]Read from MH i2c: E2 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 17 00 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: E2 17 00 C6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [16:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:47:21]wFMCommunicate OK [16:47:21]CreateOFDProtocolMessage done [16:47:21]OFDSenderStorePacket 202088 [16:47:21]StoreOFDPacket docnum=202088 [16:47:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 96 E1 07 01 28 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7C 01 00 00 F4 03 04 00 98 6E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 15 03 00 35 04 06 00 7B 37 B1 3B BC 32 DA 06 B5 FC BC F4 90 B0 [16:47:21]CheckFolder [16:47:21]dirname=/storage/ofd_packets [16:47:21]CheckFolder done [16:47:21]ProducePacketName [16:47:21]name=ofd_packets/00202088 [16:47:21]NVStorageSaveData ofd_packets/00202088 [16:47:21]File name is /storage/ofd_packets/00202088 [16:47:21]Write 301 bytes [16:47:21]NVStorageSaveData done [16:47:21]OFDSenderStorePacket done [16:47:21]KKMCreateOFDPacket done [16:47:21]NVStorageSaveData kkm_last_timestamp [16:47:21]File name is /storage/kkm_last_timestamp [16:47:21]Write 4 bytes [16:47:21]NVStorageSaveData done [16:47:21]ExternCall_PrintAddStr [16:47:21]wPrintStart [16:47:21]Write to MH i2c: 01 00 00 C7 0A D1 [16:47:21]Write i2c OK [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: 01 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: 01 07 00 [16:47:21]MH_I2C_Read... [16:47:21]Read from MH i2c: 01 07 00 C7 0A 00 00 00 00 00 FF 0F E6 [16:47:21]RasterBufferAndPrint [16:47:21]line Счет N : (1)449858 [16:47:21]line ИНН: 02508201610067 [16:47:21]line Контрольно-Кассовый Чек [16:47:21]line ПРОДАЖА [16:47:21]line ТРК (МРК, ГНК) : 41 [16:47:21]line Товар: 2710124130 [16:47:21]line Аи-92-К-2 [16:47:21]line 7.480 * 66.90 [16:47:21]line = 500.41 [16:47:21]line НДС 12% НСП 1% [16:47:21]line > о реализуемом товаре [16:47:21]line ОКРУГЛЕНИЕ: -0.41 [16:47:21]line ИТОГО: 500.00 [16:47:21]line Внесено: 500.00 [16:47:21]line СДАЧА: 0.00 [16:47:21]line НСП 1% : 4.43 [16:47:21]line НДС 12% : 53.14 [16:47:21]line Наличными: 500.00 [16:47:21]line Безнал.: 0.00 [16:47:21]line Место: АЗС № 171 "Партнер Нефть" [16:47:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:47:21]line СНО: Общий режим [16:47:21]line Чек 380 27.10.2024 16:47 [16:47:21]line Смена: 544 ФФД: 1.0 [16:47:21]line ЗНМ: 0300000109 [16:47:21]line РНМ: 0000000000091777 [16:47:21]line Версия ККМ: 001 [16:47:21]line ФМ: 0000000000871756 [16:47:21]line ФД: 202088 [16:47:21]line ФПД: 135479126899762 [16:47:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164720&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202088&fm=135479126899762&tin=02508201610067®Number=0000000000091777&sum=50000 [16:47:21]OFD Sender: Processing packet 202088 [packets to send 112, broken 111] [16:47:21]ProducePacketName [16:47:21]name=ofd_packets/00202088 [16:47:21]OFD Sender: To server: pG, [16:47:21]CommunicateWithHost lk.salyk.kg:30040 [16:47:21]ConnectInit lk.salyk.kg [16:47:21]written 0, free lines is 4095 [16:47:22]Connected sock=10 [16:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 96 E1 07 01 28 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7C 01 00 00 F4 03 04 00 98 6E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 15 03 00 35 04 06 00 7B 37 B1 3B BC 32 DA 06 B5 FC BC F4 90 B0 [16:47:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F9 DB 47 00 DB BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 15 03 00 F4 03 04 00 52 1A 1E 67 B6 04 01 00 00 9B 2B 1B 1B 2A 98 81 A8 [16:47:22]CommunicateWithHost err = 0 [16:47:22]CheckOFDResponse [16:47:22]1017 (14) - 77093643461234 [16:47:22]1041 (16) - 0000000000871756 [16:47:22]1040 (4) - 202088 [16:47:22]1012 (4) - 27.10.2024 10:47 [16:47:22]1206 (1) - 0 [16:47:22]OFD Sender: Remove packet 202088 [16:47:22]ProducePacketName [16:47:22]name=ofd_packets/00202088 [16:47:22]NVStorageDeleteData [16:47:22]Write to MH i2c: 01 00 00 F2 0A FC [16:47:22]Write i2c OK [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: 01 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: 01 07 00 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 91 0C A0 [16:47:22]RasterBufferAndPrint [16:47:22]line [16:47:22]line [16:47:22]line [16:47:22]line [16:47:22]line [16:47:22]written 0, free lines is 3220 [16:47:22]MH_Cut [16:47:22]Write to MH i2c: D1 01 00 F9 0A 01 D5 [16:47:22]Write i2c OK [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: D1 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: D1 01 00 [16:47:22]MH_I2C_Read... [16:47:22]Read from MH i2c: D1 01 00 F9 0A 00 D4 [16:47:22]Write to MH i2c: 01 00 00 FA 0A 04 [16:47:22]Write i2c OK [16:47:22]MH_I2C_Read... [16:47:22]OFD Sender: No OFD packet to send [16:47:23]*** Cut start [16:47:23]*** Purtial cut [16:47:23]*** Stage 1: CUTSNS_PIN = 1 [16:47:23]Read from MH i2c: 01 [16:47:23]MH_I2C_Read... [16:47:23]*** Stop cut motor [16:47:23]*** Cut end [16:47:23]Read from MH i2c: 01 07 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 FF 0F 19 [16:47:23]process_action close_receipt done [16:47:23]requested_data is exist [16:47:23]produce_requested_data [16:47:23]requested_item fm.sn is exist - process it [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 11 00 00 [16:47:23]Write to MH i2c: E2 08 00 FB 0A 80 11 00 00 00 00 00 00 7F [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:23]Read from MH i2c: E2 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 17 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 17 00 FB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [16:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:47:23]wFMCommunicate OK [16:47:23]requested_item fd.num is exist - process it [16:47:23]SAM_PROTO_GetFieldsCounters [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 13 00 00 [16:47:23]Write to MH i2c: E2 08 00 FC 0A 80 13 00 00 00 00 00 00 82 [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:23]Read from MH i2c: E2 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 62 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 62 00 FC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 68 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:47:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 68 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:23]wFMCommunicate OK [16:47:23]SAM_PROTO_GetFieldsCounters done [16:47:23]requested_item shift.num is exist - process it [16:47:23]requested_item shift.opened is exist - process it [16:47:23]req_shift_opened [16:47:23]FM_GetShiftState [16:47:23]SAM_PROTO_GetShiftState [16:47:23]wFMCommunicate request_size=4 [16:47:23]MH_SAM_APDU [16:47:23]CAPDU: 80 13 01 00 [16:47:23]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [16:47:23]Write i2c OK [16:47:23]MH_I2C_Read... [16:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:23]Read from MH i2c: E2 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 0E 00 [16:47:23]MH_I2C_Read... [16:47:23]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 86 [16:47:23]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:47:23]wFMCommunicate OK [16:47:23]SAM_PROTO_GetShiftState done [16:47:23]FM_GetShiftState done [16:47:23]req_shift_opened done [16:47:23]requested_item shift.open_date is exist - process it [16:47:23]req_shift_open_date [16:47:23]req_shift_open_date done [16:47:23]produce_requested_data done [16:47:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202088,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:47:23]process_action_free close_receipt [16:47:23]json_value_free [16:47:23]json_value_free done [16:47:23]process_json_proto returns [16:47:23]Send response to host [16:47:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202088,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:47:23]free response buf [16:47:23]execute_script done [16:47:23]execute_script returns [16:47:23]free content buf [16:47:23]Sock 8.Close socket [16:47:23]Sock 8.Thread stoped [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:03]accept exits with 9 [16:50:03]New connection [16:50:03]New thread 3067288932 created [16:50:03]Thread 3067432292 joined [16:50:03]Waiting for new connection... [16:50:03] Sock 9.Parse request [16:50:03]Sock 9.Check first char [16:50:03]Sock 9.First char is OK [16:50:03]request: POST /json_proto HTTP/1.0 [16:50:03]Method: POST [16:50:03]URL: /json_proto [16:50:03]Method is POST - this is cgi request [16:50:03]url: /json_proto [16:50:03]query_string will be loaded in cgi processing [16:50:03]execute_cgi json_proto POST (null) [16:50:03]execute_cgi path=json_proto method=POST [16:50:03]POST find Content-Length [16:50:03]Host: 172.17.63.195:8080 [16:50:03]Content-Length: 677 [16:50:03]Content-Type: application/json [16:50:03] [16:50:03]POST finish read [16:50:03]Found Content-Length = 677 [16:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:03]execute_script... [16:50: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)449859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:03]POST & json_proto [16:50:03]process_json_proto [16:50:03]json parsed OK: [16:50:03]protocol is kg_v1.0 [16:50:03]action value=close_receipt [16:50:03]process_action close_receipt [16:50:03]cmd_close_receipt [16:50:03]MH_GetDate [16:50:03]Write to MH i2c: F0 00 00 FE 0A F7 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: F0 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: F0 09 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: F0 09 00 FE 0A 00 3C 6F 1E 67 47 1B 1E 67 17 [16:50:03]GetLastDocTimeStamp 1730047640 [16:50:03]current date 1730047804 [16:50:03]FM_GetShiftState [16:50:03]SAM_PROTO_GetShiftState [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 13 01 00 [16:50:03]Write to MH i2c: E2 08 00 FF 0A 80 13 01 00 00 00 00 00 86 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 0E 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 0E 00 FF 0A 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 88 [16:50:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:50:03]wFMCommunicate OK [16:50:03]SAM_PROTO_GetShiftState done [16:50:03]FM_GetShiftState done [16:50:03]opened in 1729987312 [16:50:03]opened+sec_in_day 1730073712 [16:50:03]quantity*price = 40068 [16:50:03]sum+1 = 40069 [16:50:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 381 27.10.2024 16:50 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202089 ФПД: 23401187366725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165004&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202089&fm=23401187366725&tin=02508201610067®Number=0000000000091777&sum=40000 [16:50:04]StoreToDocumentArchive [16:50:04]shift 544 fd 202089 [16:50:04]save to /storage/0544/doc_00202089 [16:50:04]save last doc name /storage/0544/doc_00202089 to /storage/kkm_last_doc_name [16:50:04]save OK [16:50:04]Clear old archive folders... [16:50:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:04]tlvbuf is 01C47EB0 [16:50:04]SAM_PROTO_ClearQueue [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 09 00 00 [16:50:04]Write to MH i2c: E2 08 00 0C 0B 80 09 00 00 00 00 00 00 89 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 03 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [16:50:04]RAPDU: 90 00 [16:50:04]wFMCommunicate OK [16:50:04]SAM_PROTO_ClearQueue done [16:50:04]KKMCreateOFDPacket [16:50:04]OFDProtocolAddRootSTLVToBuf [16:50:04]FM_MakeSignedData [16:50:04]FM_MakeSignedData [16:50:04]SAM_PROTO_SignData [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 0D 01 02 [16:50:04]Write to MH i2c: E2 08 00 0D 0B 80 0D 01 02 00 00 00 00 91 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 03 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [16:50:04]RAPDU: 90 00 [16:50:04]wFMCommunicate OK [16:50:04]wFMCommunicate request_size=255 [16:50:04]MH_SAM_APDU [16:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 7D 01 00 00 F4 03 04 00 3C 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 15 03 00 35 04 06 00 15 [16:50:04]Write to MH i2c: E2 02 01 0E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 7D 01 00 00 F4 03 04 00 3C 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 15 03 00 35 04 06 00 15 00 00 3B [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 03 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [16:50:05]RAPDU: 90 00 [16:50:05]wFMCommunicate OK [16:50:05]wFMCommunicate request_size=10 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 0D 02 02 05 48 83 75 D7 45 [16:50:05]Write to MH i2c: E2 0D 00 0F 0B 80 0D 02 02 05 00 48 83 75 D7 45 00 00 FA [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 03 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 03 00 0F 0B 00 90 00 8E [16:50:05]RAPDU: 90 00 [16:50:05]wFMCommunicate OK [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 0D 03 02 [16:50:05]Write to MH i2c: E2 08 00 10 0B 80 0D 03 02 00 00 00 00 96 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0B 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0B 00 10 0B 00 6C CB F1 85 C5 C8 12 EC 90 00 CF [16:50:05]RAPDU: 6C CB F1 85 C5 C8 12 EC 90 00 [16:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_SignData done [16:50:05]FM_MakeSignedData done [16:50:05]CreateOFDProtocolMessage [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 11 00 00 [16:50:05]Write to MH i2c: E2 08 00 11 0B 80 11 00 00 00 00 00 00 96 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 11 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [16:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:50:05]wFMCommunicate OK [16:50:05]CreateOFDProtocolMessage done [16:50:05]OFDSenderStorePacket 202089 [16:50:05]StoreOFDPacket docnum=202089 [16:50:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 07 2A 07 01 F2 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 7D 01 00 00 F4 03 04 00 3C 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 15 03 00 35 04 06 00 15 48 83 75 D7 45 6C CB F1 85 C5 C8 12 EC [16:50:05]CheckFolder [16:50:05]dirname=/storage/ofd_packets [16:50:05]CheckFolder done [16:50:05]ProducePacketName [16:50:05]name=ofd_packets/00202089 [16:50:05]NVStorageSaveData ofd_packets/00202089 [16:50:05]File name is /storage/ofd_packets/00202089 [16:50:05]Write 301 bytes [16:50:05]NVStorageSaveData done [16:50:05]OFDSenderStorePacket done [16:50:05]KKMCreateOFDPacket done [16:50:05]NVStorageSaveData kkm_last_timestamp [16:50:05]File name is /storage/kkm_last_timestamp [16:50:05]Write 4 bytes [16:50:05]NVStorageSaveData done [16:50:05]ExternCall_PrintAddStr [16:50:05]wPrintStart [16:50:05]Write to MH i2c: 01 00 00 12 0B 1D [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 12 0B 00 00 00 00 00 FF 0F 32 [16:50:05]RasterBufferAndPrint [16:50:05]line Счет N : (1)449859 [16:50:05]line ИНН: 02508201610067 [16:50:05]line Контрольно-Кассовый Чек [16:50:05]line ПРОДАЖА [16:50:05]line ТРК (МРК, ГНК) : 61 [16:50:05]line Товар: 2710124500 [16:50:05]line Аи-95-К-3 [16:50:05]line 5.400 * 74.20 [16:50:05]line = 400.68 [16:50:05]line НДС 12% НСП 1% [16:50:05]line > о реализуемом товаре [16:50:05]line ОКРУГЛЕНИЕ: -0.68 [16:50:05]line ИТОГО: 400.00 [16:50:05]line Внесено: 400.00 [16:50:05]line СДАЧА: 0.00 [16:50:05]line НСП 1% : 3.55 [16:50:05]line НДС 12% : 42.55 [16:50:05]line Наличными: 400.00 [16:50:05]line Безнал.: 0.00 [16:50:05]line Место: АЗС № 171 "Партнер Нефть" [16:50:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:50:05]line СНО: Общий режим [16:50:05]line Чек 381 27.10.2024 16:50 [16:50:05]line Смена: 544 ФФД: 1.0 [16:50:05]line ЗНМ: 0300000109 [16:50:05]line РНМ: 0000000000091777 [16:50:05]line Версия ККМ: 001 [16:50:05]line ФМ: 0000000000871756 [16:50:05]line ФД: 202089 [16:50:05]line ФПД: 23401187366725 [16:50:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165004&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202089&fm=23401187366725&tin=02508201610067®Number=0000000000091777&sum=40000 [16:50:05]OFD Sender: Processing packet 202089 [packets to send 112, broken 111] [16:50:05]ProducePacketName [16:50:05]name=ofd_packets/00202089 [16:50:05]OFD Sender: To server: pG, [16:50:05]CommunicateWithHost lk.salyk.kg:30040 [16:50:05]ConnectInit lk.salyk.kg [16:50:05]written 0, free lines is 4095 [16:50:05]Connected sock=11 [16:50:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 07 2A 07 01 F2 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 7D 01 00 00 F4 03 04 00 3C 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 15 03 00 35 04 06 00 15 48 83 75 D7 45 6C CB F1 85 C5 C8 12 EC [16:50:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DB BD 47 00 A6 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 15 03 00 F4 03 04 00 F5 1A 1E 67 B6 04 01 00 00 8D 9B 6A 3C D5 D4 0E 32 [16:50:05]CommunicateWithHost err = 0 [16:50:05]CheckOFDResponse [16:50:05]1017 (14) - 77093643461234 [16:50:05]1041 (16) - 0000000000871756 [16:50:05]1040 (4) - 202089 [16:50:05]1012 (4) - 27.10.2024 10:50 [16:50:05]1206 (1) - 0 [16:50:05]OFD Sender: Remove packet 202089 [16:50:05]ProducePacketName [16:50:05]name=ofd_packets/00202089 [16:50:05]NVStorageDeleteData [16:50:05]Write to MH i2c: 01 00 00 3D 0B 48 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 3D 0B 00 00 00 00 00 85 0C E0 [16:50:05]RasterBufferAndPrint [16:50:05]line [16:50:05]line [16:50:05]line [16:50:05]line [16:50:05]line [16:50:05]written 0, free lines is 3208 [16:50:05]MH_Cut [16:50:05]Write to MH i2c: D1 01 00 44 0B 01 21 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: D1 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: D1 01 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: D1 01 00 44 0B 00 20 [16:50:05]Write to MH i2c: 01 00 00 45 0B 50 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:06]OFD Sender: No OFD packet to send [16:50:06]*** Cut start [16:50:06]*** Purtial cut [16:50:06]*** Stage 1: CUTSNS_PIN = 1 [16:50:07]Read from MH i2c: 01 [16:50:07]MH_I2C_Read... [16:50:07]*** Stop cut motor [16:50:07]*** Cut end [16:50:07]Read from MH i2c: 01 07 00 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: 01 07 00 45 0B 00 00 00 00 00 FF 0F 65 [16:50:07]process_action close_receipt done [16:50:07]requested_data is exist [16:50:07]produce_requested_data [16:50:07]requested_item fm.sn is exist - process it [16:50:07]wFMCommunicate request_size=4 [16:50:07]MH_SAM_APDU [16:50:07]CAPDU: 80 11 00 00 [16:50:07]Write to MH i2c: E2 08 00 46 0B 80 11 00 00 00 00 00 00 CB [16:50:07]Write i2c OK [16:50:07]MH_I2C_Read... [16:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:07]Read from MH i2c: E2 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: E2 17 00 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: E2 17 00 46 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 20 [16:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:50:07]wFMCommunicate OK [16:50:07]requested_item fd.num is exist - process it [16:50:07]SAM_PROTO_GetFieldsCounters [16:50:07]wFMCommunicate request_size=4 [16:50:07]MH_SAM_APDU [16:50:07]CAPDU: 80 13 00 00 [16:50:07]Write to MH i2c: E2 08 00 47 0B 80 13 00 00 00 00 00 00 CE [16:50:07]Write i2c OK [16:50:07]MH_I2C_Read... [16:50:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:07]Read from MH i2c: E2 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: E2 62 00 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: E2 62 00 47 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 69 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [16:50:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 69 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:07]wFMCommunicate OK [16:50:07]SAM_PROTO_GetFieldsCounters done [16:50:07]requested_item shift.num is exist - process it [16:50:07]requested_item shift.opened is exist - process it [16:50:07]req_shift_opened [16:50:07]FM_GetShiftState [16:50:07]SAM_PROTO_GetShiftState [16:50:07]wFMCommunicate request_size=4 [16:50:07]MH_SAM_APDU [16:50:07]CAPDU: 80 13 01 00 [16:50:07]Write to MH i2c: E2 08 00 48 0B 80 13 01 00 00 00 00 00 D0 [16:50:07]Write i2c OK [16:50:07]MH_I2C_Read... [16:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:07]Read from MH i2c: E2 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: E2 0E 00 [16:50:07]MH_I2C_Read... [16:50:07]Read from MH i2c: E2 0E 00 48 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D2 [16:50:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:50:07]wFMCommunicate OK [16:50:07]SAM_PROTO_GetShiftState done [16:50:07]FM_GetShiftState done [16:50:07]req_shift_opened done [16:50:07]requested_item shift.open_date is exist - process it [16:50:07]req_shift_open_date [16:50:07]req_shift_open_date done [16:50:07]produce_requested_data done [16:50:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202089,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:50:07]process_action_free close_receipt [16:50:07]json_value_free [16:50:07]json_value_free done [16:50:07]process_json_proto returns [16:50:07]Send response to host [16:50:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202089,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:50:07]free response buf [16:50:07]execute_script done [16:50:07]execute_script returns [16:50:07]free content buf [16:50:07]Sock 9.Close socket [16:50:07]Sock 9.Thread stoped [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:00]accept exits with 8 [16:51:00]New connection [16:51:00]New thread 3067432292 created [16:51:00]Thread 3067288932 joined [16:51:00]Waiting for new connection... [16:51:00] Sock 8.Parse request [16:51:00]Sock 8.Check first char [16:51:00]Sock 8.First char is OK [16:51:00]request: POST /json_proto HTTP/1.0 [16:51:00]Method: POST [16:51:00]URL: /json_proto [16:51:00]Method is POST - this is cgi request [16:51:00]url: /json_proto [16:51:00]query_string will be loaded in cgi processing [16:51:00]execute_cgi json_proto POST (null) [16:51:00]execute_cgi path=json_proto method=POST [16:51:00]POST find Content-Length [16:51:00]Host: 172.17.63.195:8080 [16:51:00]Content-Length: 677 [16:51:00]Content-Type: application/json [16:51:00] [16:51:00]POST finish read [16:51:00]Found Content-Length = 677 [16:51:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:51:00]execute_script... [16:51:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:51:00]POST & json_proto [16:51:00]process_json_proto [16:51:00]json parsed OK: [16:51:00]protocol is kg_v1.0 [16:51:00]action value=close_receipt [16:51:00]process_action close_receipt [16:51:00]cmd_close_receipt [16:51:00]MH_GetDate [16:51:00]Write to MH i2c: F0 00 00 49 0B 43 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: F0 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: F0 09 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: F0 09 00 49 0B 00 75 6F 1E 67 47 1B 1E 67 9C [16:51:00]GetLastDocTimeStamp 1730047804 [16:51:00]current date 1730047861 [16:51:00]FM_GetShiftState [16:51:00]SAM_PROTO_GetShiftState [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 13 01 00 [16:51:00]Write to MH i2c: E2 08 00 4A 0B 80 13 01 00 00 00 00 00 D2 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 0E 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 0E 00 4A 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D4 [16:51:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:51:00]wFMCommunicate OK [16:51:00]SAM_PROTO_GetShiftState done [16:51:00]FM_GetShiftState done [16:51:00]opened in 1729987312 [16:51:00]opened+sec_in_day 1730073712 [16:51:00]quantity*price = 20003 [16:51:00]sum+1 = 20004 [16:51:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 382 27.10.2024 16:51 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202090 ФПД: 7166686991648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165101&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202090&fm=7166686991648&tin=02508201610067®Number=0000000000091777&sum=20000 [16:51:01]StoreToDocumentArchive [16:51:01]shift 544 fd 202090 [16:51:01]save to /storage/0544/doc_00202090 [16:51:01]save last doc name /storage/0544/doc_00202090 to /storage/kkm_last_doc_name [16:51:01]save OK [16:51:01]Clear old archive folders... [16:51:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:01]tlvbuf is 01CA1CD0 [16:51:01]SAM_PROTO_ClearQueue [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 09 00 00 [16:51:01]Write to MH i2c: E2 08 00 57 0B 80 09 00 00 00 00 00 00 D4 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [16:51:01]RAPDU: 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_ClearQueue done [16:51:01]KKMCreateOFDPacket [16:51:01]OFDProtocolAddRootSTLVToBuf [16:51:01]FM_MakeSignedData [16:51:01]FM_MakeSignedData [16:51:01]SAM_PROTO_SignData [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 0D 01 02 [16:51:01]Write to MH i2c: E2 08 00 58 0B 80 0D 01 02 00 00 00 00 DC [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 58 0B 00 90 00 D7 [16:51:01]RAPDU: 90 00 [16:51:01]wFMCommunicate OK [16:51:01]wFMCommunicate request_size=255 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7E 01 00 00 F4 03 04 00 75 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 15 03 00 35 04 06 00 06 [16:51:01]Write to MH i2c: E2 02 01 59 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7E 01 00 00 F4 03 04 00 75 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 15 03 00 35 04 06 00 06 00 00 C4 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 59 0B 00 90 00 D8 [16:51:01]RAPDU: 90 00 [16:51:01]wFMCommunicate OK [16:51:01]wFMCommunicate request_size=10 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 0D 02 02 05 84 9F D5 15 20 [16:51:01]Write to MH i2c: E2 0D 00 5A 0B 80 0D 02 02 05 00 84 9F D5 15 20 00 00 16 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 03 00 5A 0B 00 90 00 D9 [16:51:02]RAPDU: 90 00 [16:51:02]wFMCommunicate OK [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 0D 03 02 [16:51:02]Write to MH i2c: E2 08 00 5B 0B 80 0D 03 02 00 00 00 00 E1 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 0B 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 0B 00 5B 0B 00 9D A2 6A EE 82 F3 EB 59 90 00 32 [16:51:02]RAPDU: 9D A2 6A EE 82 F3 EB 59 90 00 [16:51:02]wFMCommunicate OK [16:51:02]SAM_PROTO_SignData done [16:51:02]FM_MakeSignedData done [16:51:02]CreateOFDProtocolMessage [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 11 00 00 [16:51:02]Write to MH i2c: E2 08 00 5C 0B 80 11 00 00 00 00 00 00 E1 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 17 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 17 00 5C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [16:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:51:02]wFMCommunicate OK [16:51:02]CreateOFDProtocolMessage done [16:51:02]OFDSenderStorePacket 202090 [16:51:02]StoreOFDPacket docnum=202090 [16:51:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 56 6C 07 01 F8 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 32 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 7E 01 00 00 F4 03 04 00 75 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 15 03 00 35 04 06 00 06 84 9F D5 15 20 9D A2 6A EE 82 F3 EB 59 [16:51:02]CheckFolder [16:51:02]dirname=/storage/ofd_packets [16:51:02]CheckFolder done [16:51:02]ProducePacketName [16:51:02]name=ofd_packets/00202090 [16:51:02]NVStorageSaveData ofd_packets/00202090 [16:51:02]File name is /storage/ofd_packets/00202090 [16:51:02]Write 301 bytes [16:51:02]NVStorageSaveData done [16:51:02]OFDSenderStorePacket done [16:51:02]KKMCreateOFDPacket done [16:51:02]NVStorageSaveData kkm_last_timestamp [16:51:02]File name is /storage/kkm_last_timestamp [16:51:02]Write 4 bytes [16:51:02]NVStorageSaveData done [16:51:02]ExternCall_PrintAddStr [16:51:02]wPrintStart [16:51:02]Write to MH i2c: 01 00 00 5D 0B 68 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 07 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 07 00 5D 0B 00 00 00 00 00 FF 0F 7D [16:51:02]RasterBufferAndPrint [16:51:02]line Счет N : (1)449860 [16:51:02]line ИНН: 02508201610067 [16:51:02]line Контрольно-Кассовый Чек [16:51:02]line ПРОДАЖА [16:51:02]line ТРК (МРК, ГНК) : 52 [16:51:02]line Товар: 2710124130 [16:51:02]line Аи-92-К-2 [16:51:02]line 2.990 * 66.90 [16:51:02]line = 200.03 [16:51:02]line НДС 12% НСП 1% [16:51:02]line > о реализуемом товаре [16:51:02]line ОКРУГЛЕНИЕ: -0.03 [16:51:02]line ИТОГО: 200.00 [16:51:02]line Внесено: 200.00 [16:51:02]line СДАЧА: 0.00 [16:51:02]line НСП 1% : 1.77 [16:51:02]line НДС 12% : 21.24 [16:51:02]line Наличными: 200.00 [16:51:02]line Безнал.: 0.00 [16:51:02]line Место: АЗС № 171 "Партнер Нефть" [16:51:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:51:02]line СНО: Общий режим [16:51:02]line Чек 382 27.10.2024 16:51 [16:51:02]line Смена: 544 ФФД: 1.0 [16:51:02]line ЗНМ: 0300000109 [16:51:02]line РНМ: 0000000000091777 [16:51:02]line Версия ККМ: 001 [16:51:02]line ФМ: 0000000000871756 [16:51:02]line ФД: 202090 [16:51:02]line ФПД: 7166686991648 [16:51:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165101&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202090&fm=7166686991648&tin=02508201610067®Number=0000000000091777&sum=20000 [16:51:02]OFD Sender: Processing packet 202090 [packets to send 112, broken 111] [16:51:02]ProducePacketName [16:51:02]name=ofd_packets/00202090 [16:51:02]OFD Sender: To server: pG, [16:51:02]CommunicateWithHost lk.salyk.kg:30040 [16:51:02]ConnectInit lk.salyk.kg [16:51:02]written 0, free lines is 4095 [16:51:02]Connected sock=10 [16:51:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 56 6C 07 01 F8 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 32 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 7E 01 00 00 F4 03 04 00 75 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 15 03 00 35 04 06 00 06 84 9F D5 15 20 9D A2 6A EE 82 F3 EB 59 [16:51:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 DA 47 00 6B E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 15 03 00 F4 03 04 00 2E 1B 1E 67 B6 04 01 00 00 E5 FC 01 7E 2E 7A 57 D7 [16:51:02]CommunicateWithHost err = 0 [16:51:02]CheckOFDResponse [16:51:02]1017 (14) - 77093643461234 [16:51:02]1041 (16) - 0000000000871756 [16:51:02]1040 (4) - 202090 [16:51:02]1012 (4) - 27.10.2024 10:51 [16:51:02]1206 (1) - 0 [16:51:02]OFD Sender: Remove packet 202090 [16:51:02]ProducePacketName [16:51:02]name=ofd_packets/00202090 [16:51:02]NVStorageDeleteData [16:51:02]Write to MH i2c: 01 00 00 88 0B 93 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 07 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 07 00 88 0B 00 00 00 00 00 8A 0C 30 [16:51:02]RasterBufferAndPrint [16:51:02]line [16:51:02]line [16:51:02]line [16:51:02]line [16:51:02]line [16:51:02]written 0, free lines is 3215 [16:51:02]MH_Cut [16:51:02]Write to MH i2c: D1 01 00 8F 0B 01 6C [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: D1 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: D1 01 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: D1 01 00 8F 0B 00 6B [16:51:02]Write to MH i2c: 01 00 00 90 0B 9B [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:03]OFD Sender: No OFD packet to send [16:51:03]*** Cut start [16:51:03]*** Purtial cut [16:51:03]*** CUTSNS_PIN = 0 [16:51:04]*** Stage 1: CUTSNS_PIN = 1 [16:51:05]Read from MH i2c: 01 [16:51:05]MH_I2C_Read... [16:51:05]*** Stop cut motor [16:51:05]*** Cut end [16:51:05]Read from MH i2c: 01 07 00 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: 01 07 00 90 0B 00 00 00 00 00 FF 0F B0 [16:51:05]process_action close_receipt done [16:51:05]requested_data is exist [16:51:05]produce_requested_data [16:51:05]requested_item fm.sn is exist - process it [16:51:05]wFMCommunicate request_size=4 [16:51:05]MH_SAM_APDU [16:51:05]CAPDU: 80 11 00 00 [16:51:05]Write to MH i2c: E2 08 00 91 0B 80 11 00 00 00 00 00 00 16 [16:51:05]Write i2c OK [16:51:05]MH_I2C_Read... [16:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:05]Read from MH i2c: E2 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: E2 17 00 [16:51:05]MH_I2C_Read... [16:51:05]Read from MH i2c: E2 17 00 91 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6B [16:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:51:05]wFMCommunicate OK [16:51:05]requested_item fd.num is exist - process it [16:51:05]SAM_PROTO_GetFieldsCounters [16:51:05]wFMCommunicate request_size=4 [16:51:05]MH_SAM_APDU [16:51:05]CAPDU: 80 13 00 00 [16:51:05]Write to MH i2c: E2 08 00 92 0B 80 13 00 00 00 00 00 00 19 [16:51:05]Write i2c OK [16:51:05]MH_I2C_Read... [16:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:06]Read from MH i2c: E2 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 62 00 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 62 00 92 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [16:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:06]wFMCommunicate OK [16:51:06]SAM_PROTO_GetFieldsCounters done [16:51:06]requested_item shift.num is exist - process it [16:51:06]requested_item shift.opened is exist - process it [16:51:06]req_shift_opened [16:51:06]FM_GetShiftState [16:51:06]SAM_PROTO_GetShiftState [16:51:06]wFMCommunicate request_size=4 [16:51:06]MH_SAM_APDU [16:51:06]CAPDU: 80 13 01 00 [16:51:06]Write to MH i2c: E2 08 00 93 0B 80 13 01 00 00 00 00 00 1B [16:51:06]Write i2c OK [16:51:06]MH_I2C_Read... [16:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:06]Read from MH i2c: E2 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 0E 00 [16:51:06]MH_I2C_Read... [16:51:06]Read from MH i2c: E2 0E 00 93 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1D [16:51:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:51:06]wFMCommunicate OK [16:51:06]SAM_PROTO_GetShiftState done [16:51:06]FM_GetShiftState done [16:51:06]req_shift_opened done [16:51:06]requested_item shift.open_date is exist - process it [16:51:06]req_shift_open_date [16:51:06]req_shift_open_date done [16:51:06]produce_requested_data done [16:51:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202090,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:51:06]process_action_free close_receipt [16:51:06]json_value_free [16:51:06]json_value_free done [16:51:06]process_json_proto returns [16:51:06]Send response to host [16:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202090,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:51:06]free response buf [16:51:06]execute_script done [16:51:06]execute_script returns [16:51:06]free content buf [16:51:06]Sock 8.Close socket [16:51:06]Sock 8.Thread stoped [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:13]accept exits with 9 [16:53:13]New connection [16:53:13]New thread 3067288932 created [16:53:13]Thread 3067432292 joined [16:53:13]Waiting for new connection... [16:53:13] Sock 9.Parse request [16:53:13]Sock 9.Check first char [16:53:13]Sock 9.First char is OK [16:53:13]request: POST /json_proto HTTP/1.0 [16:53:13]Method: POST [16:53:13]URL: /json_proto [16:53:13]Method is POST - this is cgi request [16:53:13]url: /json_proto [16:53:13]query_string will be loaded in cgi processing [16:53:13]execute_cgi json_proto POST (null) [16:53:13]execute_cgi path=json_proto method=POST [16:53:13]POST find Content-Length [16:53:13]Host: 172.17.63.195:8080 [16:53:13]Content-Length: 670 [16:53:13]Content-Type: application/json [16:53:13] [16:53:13]POST finish read [16:53:13]Found Content-Length = 670 [16:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [16:53:13]execute_script... [16:53:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [16:53:13]POST & json_proto [16:53:13]process_json_proto [16:53:13]json parsed OK: [16:53:13]protocol is kg_v1.0 [16:53:13]action value=close_receipt [16:53:13]process_action close_receipt [16:53:13]cmd_close_receipt [16:53:13]MH_GetDate [16:53:13]Write to MH i2c: F0 00 00 94 0B 8E [16:53:13]Write i2c OK [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: F0 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: F0 09 00 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: F0 09 00 94 0B 00 FA 6F 1E 67 47 1B 1E 67 6C [16:53:13]GetLastDocTimeStamp 1730047861 [16:53:13]current date 1730047994 [16:53:13]FM_GetShiftState [16:53:13]SAM_PROTO_GetShiftState [16:53:13]wFMCommunicate request_size=4 [16:53:13]MH_SAM_APDU [16:53:13]CAPDU: 80 13 01 00 [16:53:13]Write to MH i2c: E2 08 00 95 0B 80 13 01 00 00 00 00 00 1D [16:53:13]Write i2c OK [16:53:13]MH_I2C_Read... [16:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:13]Read from MH i2c: E2 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: E2 0E 00 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: E2 0E 00 95 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1F [16:53:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:53:13]wFMCommunicate OK [16:53:13]SAM_PROTO_GetShiftState done [16:53:13]FM_GetShiftState done [16:53:13]opened in 1729987312 [16:53:13]opened+sec_in_day 1730073712 [16:53:13]quantity*price = 40014 [16:53:13]sum+1 = 40015 [16:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 383 27.10.2024 16:53 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202091 ФПД: 90248053496590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165314&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202091&fm=90248053496590&tin=02508201610067®Number=0000000000091777&sum=40000 [16:53:14]StoreToDocumentArchive [16:53:14]shift 544 fd 202091 [16:53:14]save to /storage/0544/doc_00202091 [16:53:14]save last doc name /storage/0544/doc_00202091 to /storage/kkm_last_doc_name [16:53:14]save OK [16:53:14]Clear old archive folders... [16:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:53:14]tlvbuf is 01C481E0 [16:53:14]SAM_PROTO_ClearQueue [16:53:14]wFMCommunicate request_size=4 [16:53:14]MH_SAM_APDU [16:53:14]CAPDU: 80 09 00 00 [16:53:14]Write to MH i2c: E2 08 00 A2 0B 80 09 00 00 00 00 00 00 1F [16:53:14]Write i2c OK [16:53:14]MH_I2C_Read... [16:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:14]Read from MH i2c: E2 [16:53:14]MH_I2C_Read... [16:53:14]Read from MH i2c: E2 03 00 [16:53:14]MH_I2C_Read... [16:53:14]Read from MH i2c: E2 03 00 A2 0B 00 90 00 21 [16:53:14]RAPDU: 90 00 [16:53:14]wFMCommunicate OK [16:53:14]SAM_PROTO_ClearQueue done [16:53:14]KKMCreateOFDPacket [16:53:14]OFDProtocolAddRootSTLVToBuf [16:53:14]FM_MakeSignedData [16:53:14]FM_MakeSignedData [16:53:14]SAM_PROTO_SignData [16:53:14]wFMCommunicate request_size=4 [16:53:14]MH_SAM_APDU [16:53:14]CAPDU: 80 0D 01 02 [16:53:14]Write to MH i2c: E2 08 00 A3 0B 80 0D 01 02 00 00 00 00 27 [16:53:14]Write i2c OK [16:53:14]MH_I2C_Read... [16:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:14]Read from MH i2c: E2 [16:53:14]MH_I2C_Read... [16:53:14]Read from MH i2c: E2 03 00 [16:53:14]MH_I2C_Read... [16:53:14]Read from MH i2c: E2 03 00 A3 0B 00 90 00 22 [16:53:14]RAPDU: 90 00 [16:53:14]wFMCommunicate OK [16:53:14]wFMCommunicate request_size=255 [16:53:14]MH_SAM_APDU [16:53:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 01 00 00 F4 03 04 00 FA 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 15 03 00 35 04 06 00 [16:53:14]Write to MH i2c: E2 02 01 A4 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 01 00 00 F4 03 04 00 FA 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 15 03 00 35 04 06 00 00 00 59 [16:53:14]Write i2c OK [16:53:14]MH_I2C_Read... [16:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:15]Read from MH i2c: E2 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 03 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 03 00 A4 0B 00 90 00 23 [16:53:15]RAPDU: 90 00 [16:53:15]wFMCommunicate OK [16:53:15]wFMCommunicate request_size=11 [16:53:15]MH_SAM_APDU [16:53:15]CAPDU: 80 0D 02 02 06 52 14 83 2B 9B 0E [16:53:15]Write to MH i2c: E2 0E 00 A5 0B 80 0D 02 02 06 00 52 14 83 2B 9B 0E 00 00 F3 [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:15]Read from MH i2c: E2 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 03 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 03 00 A5 0B 00 90 00 24 [16:53:15]RAPDU: 90 00 [16:53:15]wFMCommunicate OK [16:53:15]wFMCommunicate request_size=4 [16:53:15]MH_SAM_APDU [16:53:15]CAPDU: 80 0D 03 02 [16:53:15]Write to MH i2c: E2 08 00 A6 0B 80 0D 03 02 00 00 00 00 2C [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:15]Read from MH i2c: E2 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 0B 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 0B 00 A6 0B 00 5F D3 BC FC EC C5 03 12 90 00 DD [16:53:15]RAPDU: 5F D3 BC FC EC C5 03 12 90 00 [16:53:15]wFMCommunicate OK [16:53:15]SAM_PROTO_SignData done [16:53:15]FM_MakeSignedData done [16:53:15]CreateOFDProtocolMessage [16:53:15]wFMCommunicate request_size=4 [16:53:15]MH_SAM_APDU [16:53:15]CAPDU: 80 11 00 00 [16:53:15]Write to MH i2c: E2 08 00 A7 0B 80 11 00 00 00 00 00 00 2C [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:15]Read from MH i2c: E2 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 17 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 17 00 A7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [16:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:53:15]wFMCommunicate OK [16:53:15]CreateOFDProtocolMessage done [16:53:15]OFDSenderStorePacket 202091 [16:53:15]StoreOFDPacket docnum=202091 [16:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FE 36 08 01 0E 5A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 01 00 00 F4 03 04 00 FA 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 15 03 00 35 04 06 00 52 14 83 2B 9B 0E 5F D3 BC FC EC C5 03 12 [16:53:15]CheckFolder [16:53:15]dirname=/storage/ofd_packets [16:53:15]CheckFolder done [16:53:15]ProducePacketName [16:53:15]name=ofd_packets/00202091 [16:53:15]NVStorageSaveData ofd_packets/00202091 [16:53:15]File name is /storage/ofd_packets/00202091 [16:53:15]Write 302 bytes [16:53:15]NVStorageSaveData done [16:53:15]OFDSenderStorePacket done [16:53:15]KKMCreateOFDPacket done [16:53:15]NVStorageSaveData kkm_last_timestamp [16:53:15]File name is /storage/kkm_last_timestamp [16:53:15]Write 4 bytes [16:53:15]NVStorageSaveData done [16:53:15]ExternCall_PrintAddStr [16:53:15]wPrintStart [16:53:15]Write to MH i2c: 01 00 00 A8 0B B3 [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: 01 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: 01 07 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: 01 07 00 A8 0B 00 00 00 00 00 FF 0F C8 [16:53:15]RasterBufferAndPrint [16:53:15]line Счет N : (1)449861 [16:53:15]line ИНН: 02508201610067 [16:53:15]line Контрольно-Кассовый Чек [16:53:15]line ПРОДАЖА [16:53:15]line ТРК (МРК, ГНК) : 42 [16:53:15]line Товар: 2710124130 [16:53:15]line SUPER 92-К-5 [16:53:15]line 5.850 * 68.40 [16:53:15]line = 400.14 [16:53:15]line НДС 12% НСП 1% [16:53:15]line > о реализуемом товаре [16:53:15]line ОКРУГЛЕНИЕ: -0.14 [16:53:15]line ИТОГО: 400.00 [16:53:15]line Внесено: 400.00 [16:53:15]line СДАЧА: 0.00 [16:53:15]line НСП 1% : 3.54 [16:53:15]line НДС 12% : 42.49 [16:53:15]line Наличными: 400.00 [16:53:15]line Безнал.: 0.00 [16:53:15]line Место: АЗС № 171 "Партнер Нефть" [16:53:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:53:15]line СНО: Общий режим [16:53:15]line Чек 383 27.10.2024 16:53 [16:53:15]line Смена: 544 ФФД: 1.0 [16:53:15]line ЗНМ: 0300000109 [16:53:15]line РНМ: 0000000000091777 [16:53:15]line Версия ККМ: 001 [16:53:15]line ФМ: 0000000000871756 [16:53:15]line ФД: 202091 [16:53:15]line ФПД: 90248053496590 [16:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165314&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202091&fm=90248053496590&tin=02508201610067®Number=0000000000091777&sum=40000 [16:53:15]OFD Sender: Processing packet 202091 [packets to send 112, broken 111] [16:53:15]ProducePacketName [16:53:15]name=ofd_packets/00202091 [16:53:15]OFD Sender: To server: pG, [16:53:15]CommunicateWithHost lk.salyk.kg:30040 [16:53:15]ConnectInit lk.salyk.kg [16:53:15]written 0, free lines is 4095 [16:53:15]Connected sock=10 [16:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FE 36 08 01 0E 5A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 01 00 00 F4 03 04 00 FA 6F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 15 03 00 35 04 06 00 52 14 83 2B 9B 0E 5F D3 BC FC EC C5 03 12 [16:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7B 1D 47 00 4E 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 15 03 00 F4 03 04 00 B3 1B 1E 67 B6 04 01 00 00 31 E7 A4 0E 7F 37 5C CE [16:53:15]CommunicateWithHost err = 0 [16:53:15]CheckOFDResponse [16:53:15]1017 (14) - 77093643461234 [16:53:15]1041 (16) - 0000000000871756 [16:53:15]1040 (4) - 202091 [16:53:15]1012 (4) - 27.10.2024 10:53 [16:53:15]1206 (1) - 0 [16:53:15]OFD Sender: Remove packet 202091 [16:53:15]ProducePacketName [16:53:15]name=ofd_packets/00202091 [16:53:15]NVStorageDeleteData [16:53:15]Write to MH i2c: 01 00 00 D3 0B DE [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: 01 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: 01 07 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: 01 07 00 D3 0B 00 00 00 00 00 88 0C 79 [16:53:15]RasterBufferAndPrint [16:53:15]line [16:53:15]line [16:53:15]line [16:53:15]line [16:53:15]line [16:53:15]written 0, free lines is 3212 [16:53:15]MH_Cut [16:53:15]Write to MH i2c: D1 01 00 DA 0B 01 B7 [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: D1 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: D1 01 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: D1 01 00 DA 0B 00 B6 [16:53:15]Write to MH i2c: 01 00 00 DB 0B E6 [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:16]OFD Sender: No OFD packet to send [16:53:16]*** Cut start [16:53:16]*** Purtial cut [16:53:16]*** Stage 1: CUTSNS_PIN = 1 [16:53:17]Read from MH i2c: 01 [16:53:17]MH_I2C_Read... [16:53:17]*** Stop cut motor [16:53:17]*** Cut end [16:53:17]Read from MH i2c: 01 07 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 07 00 DB 0B 00 00 00 00 00 FF 0F FB [16:53:17]process_action close_receipt done [16:53:17]requested_data is exist [16:53:17]produce_requested_data [16:53:17]requested_item fm.sn is exist - process it [16:53:17]wFMCommunicate request_size=4 [16:53:17]MH_SAM_APDU [16:53:17]CAPDU: 80 11 00 00 [16:53:17]Write to MH i2c: E2 08 00 DC 0B 80 11 00 00 00 00 00 00 61 [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:17]Read from MH i2c: E2 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 17 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 17 00 DC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B6 [16:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:53:17]wFMCommunicate OK [16:53:17]requested_item fd.num is exist - process it [16:53:17]SAM_PROTO_GetFieldsCounters [16:53:17]wFMCommunicate request_size=4 [16:53:17]MH_SAM_APDU [16:53:17]CAPDU: 80 13 00 00 [16:53:17]Write to MH i2c: E2 08 00 DD 0B 80 13 00 00 00 00 00 00 64 [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:17]Read from MH i2c: E2 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 62 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 62 00 DD 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [16:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:17]wFMCommunicate OK [16:53:17]SAM_PROTO_GetFieldsCounters done [16:53:17]requested_item shift.num is exist - process it [16:53:17]requested_item shift.opened is exist - process it [16:53:17]req_shift_opened [16:53:17]FM_GetShiftState [16:53:17]SAM_PROTO_GetShiftState [16:53:17]wFMCommunicate request_size=4 [16:53:17]MH_SAM_APDU [16:53:17]CAPDU: 80 13 01 00 [16:53:17]Write to MH i2c: E2 08 00 DE 0B 80 13 01 00 00 00 00 00 66 [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:17]Read from MH i2c: E2 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 0E 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 0E 00 DE 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 68 [16:53:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:53:17]wFMCommunicate OK [16:53:17]SAM_PROTO_GetShiftState done [16:53:17]FM_GetShiftState done [16:53:17]req_shift_opened done [16:53:17]requested_item shift.open_date is exist - process it [16:53:17]req_shift_open_date [16:53:17]req_shift_open_date done [16:53:17]produce_requested_data done [16:53:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202091,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:53:17]process_action_free close_receipt [16:53:17]json_value_free [16:53:17]json_value_free done [16:53:17]process_json_proto returns [16:53:17]Send response to host [16:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202091,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:53:17]free response buf [16:53:17]execute_script done [16:53:17]execute_script returns [16:53:17]free content buf [16:53:17]Sock 9.Close socket [16:53:17]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:10]accept exits with 8 [16:55:10]New connection [16:55:10]New thread 3067432292 created [16:55:10]Thread 3067288932 joined [16:55:10]Waiting for new connection... [16:55:10] Sock 8.Parse request [16:55:10]Sock 8.Check first char [16:55:10]Sock 8.First char is OK [16:55:10]request: POST /json_proto HTTP/1.0 [16:55:10]Method: POST [16:55:10]URL: /json_proto [16:55:10]Method is POST - this is cgi request [16:55:10]url: /json_proto [16:55:10]query_string will be loaded in cgi processing [16:55:10]execute_cgi json_proto POST (null) [16:55:10]execute_cgi path=json_proto method=POST [16:55:10]POST find Content-Length [16:55:10]Host: 172.17.63.195:8080 [16:55:10]Content-Length: 769 [16:55:10]Content-Type: application/json [16:55:10] [16:55:10]POST finish read [16:55:10]Found Content-Length = 769 [16:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:10]execute_script... [16:55: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)449862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:10]POST & json_proto [16:55:10]process_json_proto [16:55:10]json parsed OK: [16:55:10]protocol is kg_v1.0 [16:55:10]action value=close_receipt [16:55:10]process_action close_receipt [16:55:10]cmd_close_receipt [16:55:10]MH_GetDate [16:55:10]Write to MH i2c: F0 00 00 DF 0B D9 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 09 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 09 00 DF 0B 00 6E 70 1E 67 47 1B 1E 67 2C [16:55:10]GetLastDocTimeStamp 1730047994 [16:55:10]current date 1730048110 [16:55:10]FM_GetShiftState [16:55:10]SAM_PROTO_GetShiftState [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 13 01 00 [16:55:10]Write to MH i2c: E2 08 00 E0 0B 80 13 01 00 00 00 00 00 68 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0E 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0E 00 E0 0B 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6A [16:55:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:55:10]wFMCommunicate OK [16:55:10]SAM_PROTO_GetShiftState done [16:55:10]FM_GetShiftState done [16:55:10]opened in 1729987312 [16:55:10]opened+sec_in_day 1730073712 [16:55:10]quantity*price = 100015 [16:55:10]sum+1 = 100017 [16:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 384 27.10.2024 16:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202092 ФПД: 141809766164618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165510&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202092&fm=141809766164618&tin=02508201610067®Number=0000000000091777&sum=100016 [16:55:11]StoreToDocumentArchive [16:55:11]shift 544 fd 202092 [16:55:11]save to /storage/0544/doc_00202092 [16:55:11]save last doc name /storage/0544/doc_00202092 to /storage/kkm_last_doc_name [16:55:11]save OK [16:55:11]Clear old archive folders... [16:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:11]tlvbuf is 01CA1C80 [16:55:11]SAM_PROTO_ClearQueue [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 09 00 00 [16:55:11]Write to MH i2c: E2 08 00 ED 0B 80 09 00 00 00 00 00 00 6A [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 ED 0B 00 90 00 6C [16:55:11]RAPDU: 90 00 [16:55:11]wFMCommunicate OK [16:55:11]SAM_PROTO_ClearQueue done [16:55:11]KKMCreateOFDPacket [16:55:11]OFDProtocolAddRootSTLVToBuf [16:55:11]FM_MakeSignedData [16:55:11]FM_MakeSignedData [16:55:11]SAM_PROTO_SignData [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 0D 01 02 [16:55:11]Write to MH i2c: E2 08 00 EE 0B 80 0D 01 02 00 00 00 00 72 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 EE 0B 00 90 00 6D [16:55:11]RAPDU: 90 00 [16:55:11]wFMCommunicate OK [16:55:11]wFMCommunicate request_size=255 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 80 01 00 00 F4 03 04 00 6E 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 15 03 00 35 04 06 00 80 [16:55:11]Write to MH i2c: E2 02 01 EF 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 80 01 00 00 F4 03 04 00 6E 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 15 03 00 35 04 06 00 80 00 00 2A [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]OFD Sender: No OFD packet to send [16:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 EF 0B 00 90 00 6E [16:55:11]RAPDU: 90 00 [16:55:11]wFMCommunicate OK [16:55:11]wFMCommunicate request_size=10 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 0D 02 02 05 F9 A8 BC E8 8A [16:55:11]Write to MH i2c: E2 0D 00 F0 0B 80 0D 02 02 05 00 F9 A8 BC E8 8A 00 00 4E [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 F0 0B 00 90 00 6F [16:55:11]RAPDU: 90 00 [16:55:11]wFMCommunicate OK [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 0D 03 02 [16:55:11]Write to MH i2c: E2 08 00 F1 0B 80 0D 03 02 00 00 00 00 77 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 0B 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 0B 00 F1 0B 00 19 47 CE E4 BD 5A 0F 86 90 00 36 [16:55:11]RAPDU: 19 47 CE E4 BD 5A 0F 86 90 00 [16:55:11]wFMCommunicate OK [16:55:11]SAM_PROTO_SignData done [16:55:11]FM_MakeSignedData done [16:55:11]CreateOFDProtocolMessage [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 11 00 00 [16:55:11]Write to MH i2c: E2 08 00 F2 0B 80 11 00 00 00 00 00 00 77 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 17 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 17 00 F2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [16:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:55:11]wFMCommunicate OK [16:55:11]CreateOFDProtocolMessage done [16:55:11]OFDSenderStorePacket 202092 [16:55:11]StoreOFDPacket docnum=202092 [16:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 25 BA 07 01 4F 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 80 01 00 00 F4 03 04 00 6E 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 15 03 00 35 04 06 00 80 F9 A8 BC E8 8A 19 47 CE E4 BD 5A 0F 86 [16:55:11]CheckFolder [16:55:11]dirname=/storage/ofd_packets [16:55:11]CheckFolder done [16:55:11]ProducePacketName [16:55:11]name=ofd_packets/00202092 [16:55:11]NVStorageSaveData ofd_packets/00202092 [16:55:11]File name is /storage/ofd_packets/00202092 [16:55:11]Write 301 bytes [16:55:11]NVStorageSaveData done [16:55:11]OFDSenderStorePacket done [16:55:11]KKMCreateOFDPacket done [16:55:11]NVStorageSaveData kkm_last_timestamp [16:55:11]File name is /storage/kkm_last_timestamp [16:55:11]Write 4 bytes [16:55:11]NVStorageSaveData done [16:55:11]ExternCall_PrintAddStr [16:55:11]wPrintStart [16:55:11]Write to MH i2c: 01 00 00 F3 0B FE [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 F3 0B 00 00 00 00 00 FF 0F 13 [16:55:11]RasterBufferAndPrint [16:55:11]line Счет N : (1)449862 [16:55:11]line ИНН: 02508201610067 [16:55:11]line Контрольно-Кассовый Чек [16:55:11]line ПРОДАЖА [16:55:11]line ТРК (МРК, ГНК) : 62 [16:55:11]line Товар: 2710124130 [16:55:11]line Аи-92-К-2 [16:55:11]line 14.950 * 66.90 [16:55:11]line = 1000.16 [16:55:11]line НДС 12% НСП 1% [16:55:11]line > о реализуемом товаре [16:55:11]line ИТОГО: 1000.16 [16:55:11]line НСП 1% : 8.85 [16:55:11]line НДС 12% : 106.21 [16:55:11]line Наличными: 0.00 [16:55:11]line Безнал.: 1000.16 [16:55:11]line Место: АЗС № 171 "Партнер Нефть" [16:55:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:55:11]line СНО: Общий режим [16:55:11]line Чек 384 27.10.2024 16:55 [16:55:11]line Смена: 544 ФФД: 1.0 [16:55:11]line ЗНМ: 0300000109 [16:55:11]line РНМ: 0000000000091777 [16:55:11]line Версия ККМ: 001 [16:55:11]line Платежная система: Mbank [16:55:11]line ФМ: 0000000000871756 [16:55:11]line ФД: 202092 [16:55:11]line ФПД: 141809766164618 [16:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165510&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202092&fm=141809766164618&tin=02508201610067®Number=0000000000091777&sum=100016 [16:55:12]OFD Sender: Processing packet 202092 [packets to send 112, broken 111] [16:55:12]ProducePacketName [16:55:12]name=ofd_packets/00202092 [16:55:12]OFD Sender: To server: pG, [16:55:12]CommunicateWithHost lk.salyk.kg:30040 [16:55:12]ConnectInit lk.salyk.kg [16:55:12]written 0, free lines is 4095 [16:55:12]Connected sock=10 [16:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 25 BA 07 01 4F 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 80 01 00 00 F4 03 04 00 6E 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 15 03 00 35 04 06 00 80 F9 A8 BC E8 8A 19 47 CE E4 BD 5A 0F 86 [16:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C0 50 47 00 3E 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 15 03 00 F4 03 04 00 28 1C 1E 67 B6 04 01 00 00 2A 18 94 16 DA C1 84 89 [16:55:12]CommunicateWithHost err = 0 [16:55:12]CheckOFDResponse [16:55:12]1017 (14) - 77093643461234 [16:55:12]1041 (16) - 0000000000871756 [16:55:12]1040 (4) - 202092 [16:55:12]1012 (4) - 27.10.2024 10:55 [16:55:12]1206 (1) - 0 [16:55:12]OFD Sender: Remove packet 202092 [16:55:12]ProducePacketName [16:55:12]name=ofd_packets/00202092 [16:55:12]NVStorageDeleteData [16:55:12]Write to MH i2c: 01 00 00 1C 0C 28 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 1C 0C 00 00 00 00 00 B8 0C F3 [16:55:12]RasterBufferAndPrint [16:55:12]line [16:55:12]line [16:55:12]line [16:55:12]line [16:55:12]line [16:55:12]written 0, free lines is 3260 [16:55:12]MH_Cut [16:55:12]Write to MH i2c: D1 01 00 23 0C 01 01 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: D1 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: D1 01 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: D1 01 00 23 0C 00 00 [16:55:12]Write to MH i2c: 01 00 00 24 0C 30 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]OFD Sender: No OFD packet to send [16:55:13]*** Cut start [16:55:13]*** Purtial cut [16:55:13]*** Stage 1: CUTSNS_PIN = 1 [16:55:13]Read from MH i2c: 01 [16:55:13]*** Stop cut motor [16:55:13]*** Cut end [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 24 0C 00 00 00 00 00 FF 0F 45 [16:55:13]process_action close_receipt done [16:55:13]requested_data is exist [16:55:13]produce_requested_data [16:55:13]requested_item fm.sn is exist - process it [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 11 00 00 [16:55:13]Write to MH i2c: E2 08 00 25 0C 80 11 00 00 00 00 00 00 AB [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 25 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [16:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:55:13]wFMCommunicate OK [16:55:13]requested_item fd.num is exist - process it [16:55:13]SAM_PROTO_GetFieldsCounters [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 13 00 00 [16:55:13]Write to MH i2c: E2 08 00 26 0C 80 13 00 00 00 00 00 00 AE [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 26 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [16:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_GetFieldsCounters done [16:55:13]requested_item shift.num is exist - process it [16:55:13]requested_item shift.opened is exist - process it [16:55:13]req_shift_opened [16:55:13]FM_GetShiftState [16:55:13]SAM_PROTO_GetShiftState [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 13 01 00 [16:55:13]Write to MH i2c: E2 08 00 27 0C 80 13 01 00 00 00 00 00 B0 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0E 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0E 00 27 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B2 [16:55:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_GetShiftState done [16:55:13]FM_GetShiftState done [16:55:13]req_shift_opened done [16:55:13]requested_item shift.open_date is exist - process it [16:55:13]req_shift_open_date [16:55:13]req_shift_open_date done [16:55:13]produce_requested_data done [16:55:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202092,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:55:13]process_action_free close_receipt [16:55:13]json_value_free [16:55:13]json_value_free done [16:55:13]process_json_proto returns [16:55:13]Send response to host [16:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202092,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:55:13]free response buf [16:55:13]execute_script done [16:55:13]execute_script returns [16:55:13]free content buf [16:55:13]Sock 8.Close socket [16:55:13]Sock 8.Thread stoped [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:31]accept exits with 9 [16:55:31]New connection [16:55:31]New thread 3067288932 created [16:55:31]Thread 3067432292 joined [16:55:31]Waiting for new connection... [16:55:31] Sock 9.Parse request [16:55:31]Sock 9.Check first char [16:55:31]Sock 9.First char is OK [16:55:31]request: POST /json_proto HTTP/1.0 [16:55:31]Method: POST [16:55:31]URL: /json_proto [16:55:31]Method is POST - this is cgi request [16:55:31]url: /json_proto [16:55:31]query_string will be loaded in cgi processing [16:55:31]execute_cgi json_proto POST (null) [16:55:31]execute_cgi path=json_proto method=POST [16:55:31]POST find Content-Length [16:55:31]Host: 172.17.63.195:8080 [16:55:31]Content-Length: 677 [16:55:31]Content-Type: application/json [16:55:31] [16:55:31]POST finish read [16:55:31]Found Content-Length = 677 [16:55:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:55:31]execute_script... [16:55:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:55:31]POST & json_proto [16:55:31]process_json_proto [16:55:31]json parsed OK: [16:55:31]protocol is kg_v1.0 [16:55:31]action value=close_receipt [16:55:31]process_action close_receipt [16:55:31]cmd_close_receipt [16:55:31]MH_GetDate [16:55:31]Write to MH i2c: F0 00 00 28 0C 23 [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: F0 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: F0 09 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: F0 09 00 28 0C 00 84 70 1E 67 47 1B 1E 67 8C [16:55:31]GetLastDocTimeStamp 1730048110 [16:55:31]current date 1730048132 [16:55:31]FM_GetShiftState [16:55:31]SAM_PROTO_GetShiftState [16:55:31]wFMCommunicate request_size=4 [16:55:31]MH_SAM_APDU [16:55:31]CAPDU: 80 13 01 00 [16:55:31]Write to MH i2c: E2 08 00 29 0C 80 13 01 00 00 00 00 00 B2 [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:31]Read from MH i2c: E2 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 0E 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: E2 0E 00 29 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B4 [16:55:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:55:31]wFMCommunicate OK [16:55:31]SAM_PROTO_GetShiftState done [16:55:31]FM_GetShiftState done [16:55:31]opened in 1729987312 [16:55:31]opened+sec_in_day 1730073712 [16:55:31]quantity*price = 20003 [16:55:31]sum+1 = 20004 [16:55:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 385 27.10.2024 16:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202093 ФПД: 226350284449525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165532&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202093&fm=226350284449525&tin=02508201610067®Number=0000000000091777&sum=20000 [16:55:33]StoreToDocumentArchive [16:55:33]shift 544 fd 202093 [16:55:33]save to /storage/0544/doc_00202093 [16:55:33]save last doc name /storage/0544/doc_00202093 to /storage/kkm_last_doc_name [16:55:33]save OK [16:55:33]Clear old archive folders... [16:55:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:33]tlvbuf is 01CA1BE0 [16:55:33]SAM_PROTO_ClearQueue [16:55:33]wFMCommunicate request_size=4 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 09 00 00 [16:55:33]Write to MH i2c: E2 08 00 36 0C 80 09 00 00 00 00 00 00 B4 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 03 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [16:55:33]RAPDU: 90 00 [16:55:33]wFMCommunicate OK [16:55:33]SAM_PROTO_ClearQueue done [16:55:33]KKMCreateOFDPacket [16:55:33]OFDProtocolAddRootSTLVToBuf [16:55:33]FM_MakeSignedData [16:55:33]FM_MakeSignedData [16:55:33]SAM_PROTO_SignData [16:55:33]wFMCommunicate request_size=4 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 0D 01 02 [16:55:33]Write to MH i2c: E2 08 00 37 0C 80 0D 01 02 00 00 00 00 BC [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 03 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 03 00 37 0C 00 90 00 B7 [16:55:33]RAPDU: 90 00 [16:55:33]wFMCommunicate OK [16:55:33]wFMCommunicate request_size=255 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 01 00 00 F4 03 04 00 84 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 15 03 00 35 04 06 00 CD [16:55:33]Write to MH i2c: E2 02 01 38 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 01 00 00 F4 03 04 00 84 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 15 03 00 35 04 06 00 CD 00 00 81 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 03 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 03 00 38 0C 00 90 00 B8 [16:55:33]RAPDU: 90 00 [16:55:33]wFMCommunicate OK [16:55:33]wFMCommunicate request_size=10 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 0D 02 02 05 DD 48 4C A6 F5 [16:55:33]Write to MH i2c: E2 0D 00 39 0C 80 0D 02 02 05 00 DD 48 4C A6 F5 00 00 D5 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 03 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 03 00 39 0C 00 90 00 B9 [16:55:33]RAPDU: 90 00 [16:55:33]wFMCommunicate OK [16:55:33]wFMCommunicate request_size=4 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 0D 03 02 [16:55:33]Write to MH i2c: E2 08 00 3A 0C 80 0D 03 02 00 00 00 00 C1 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 0B 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 0B 00 3A 0C 00 6D C3 A5 79 6A B5 9F 53 90 00 21 [16:55:33]RAPDU: 6D C3 A5 79 6A B5 9F 53 90 00 [16:55:33]wFMCommunicate OK [16:55:33]SAM_PROTO_SignData done [16:55:33]FM_MakeSignedData done [16:55:33]CreateOFDProtocolMessage [16:55:33]wFMCommunicate request_size=4 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 11 00 00 [16:55:33]Write to MH i2c: E2 08 00 3B 0C 80 11 00 00 00 00 00 00 C1 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 17 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 17 00 3B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [16:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:55:33]wFMCommunicate OK [16:55:33]CreateOFDProtocolMessage done [16:55:33]OFDSenderStorePacket 202093 [16:55:33]StoreOFDPacket docnum=202093 [16:55:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FB D5 07 01 12 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 01 00 00 F4 03 04 00 84 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 15 03 00 35 04 06 00 CD DD 48 4C A6 F5 6D C3 A5 79 6A B5 9F 53 [16:55:33]CheckFolder [16:55:33]dirname=/storage/ofd_packets [16:55:33]CheckFolder done [16:55:33]ProducePacketName [16:55:33]name=ofd_packets/00202093 [16:55:33]NVStorageSaveData ofd_packets/00202093 [16:55:33]File name is /storage/ofd_packets/00202093 [16:55:33]Write 301 bytes [16:55:33]NVStorageSaveData done [16:55:33]OFDSenderStorePacket done [16:55:33]KKMCreateOFDPacket done [16:55:33]NVStorageSaveData kkm_last_timestamp [16:55:33]File name is /storage/kkm_last_timestamp [16:55:33]Write 4 bytes [16:55:33]NVStorageSaveData done [16:55:33]OFD Sender: Processing packet 202093 [packets to send 112, broken 111] [16:55:33]ProducePacketName [16:55:33]name=ofd_packets/00202093 [16:55:33]OFD Sender: To server: pG, [16:55:33]CommunicateWithHost lk.salyk.kg:30040 [16:55:33]ConnectInit lk.salyk.kg [16:55:33]ExternCall_PrintAddStr [16:55:33]wPrintStart [16:55:33]Write to MH i2c: 01 00 00 3C 0C 48 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: 01 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: 01 07 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: 01 07 00 3C 0C 00 00 00 00 00 FF 0F 5D [16:55:33]RasterBufferAndPrint [16:55:33]line Счет N : (1)449863 [16:55:33]line ИНН: 02508201610067 [16:55:33]line Контрольно-Кассовый Чек [16:55:33]line ПРОДАЖА [16:55:33]line ТРК (МРК, ГНК) : 41 [16:55:33]line Товар: 2710124130 [16:55:33]line Аи-92-К-2 [16:55:33]line 2.990 * 66.90 [16:55:33]line = 200.03 [16:55:33]line НДС 12% НСП 1% [16:55:33]line > о реализуемом товаре [16:55:33]line ОКРУГЛЕНИЕ: -0.03 [16:55:33]line ИТОГО: 200.00 [16:55:33]line Внесено: 200.00 [16:55:33]line СДАЧА: 0.00 [16:55:33]line НСП 1% : 1.77 [16:55:33]line НДС 12% : 21.24 [16:55:33]line Наличными: 200.00 [16:55:33]line Безнал.: 0.00 [16:55:33]line Место: АЗС № 171 "Партнер Нефть" [16:55:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:55:33]line СНО: Общий режим [16:55:33]line Чек 385 27.10.2024 16:55 [16:55:33]line Смена: 544 ФФД: 1.0 [16:55:33]line ЗНМ: 0300000109 [16:55:33]line РНМ: 0000000000091777 [16:55:33]line Версия ККМ: 001 [16:55:33]line ФМ: 0000000000871756 [16:55:33]line ФД: 202093 [16:55:33]line ФПД: 226350284449525 [16:55:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165532&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202093&fm=226350284449525&tin=02508201610067®Number=0000000000091777&sum=20000 [16:55:33]Connected sock=11 [16:55:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FB D5 07 01 12 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 81 01 00 00 F4 03 04 00 84 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 15 03 00 35 04 06 00 CD DD 48 4C A6 F5 6D C3 A5 79 6A B5 9F 53 [16:55:33]written 0, free lines is 4095 [16:55:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FC 03 47 00 D4 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 30 38 37 31 37 35 36 10 04 04 00 6D 15 03 00 F4 03 04 00 3D 1C 1E 67 B6 04 01 00 00 D9 5A 2F A4 A2 AD 74 0D [16:55:34]CommunicateWithHost err = 0 [16:55:34]CheckOFDResponse [16:55:34]1017 (14) - 77093643461234 [16:55:34]1041 (16) - 0000000000871756 [16:55:34]1040 (4) - 202093 [16:55:34]1012 (4) - 27.10.2024 10:55 [16:55:34]1206 (1) - 0 [16:55:34]OFD Sender: Remove packet 202093 [16:55:34]ProducePacketName [16:55:34]name=ofd_packets/00202093 [16:55:34]NVStorageDeleteData [16:55:34]Write to MH i2c: 01 00 00 67 0C 73 [16:55:34]Write i2c OK [16:55:34]MH_I2C_Read... [16:55:34]Read from MH i2c: 01 [16:55:34]MH_I2C_Read... [16:55:34]Read from MH i2c: 01 07 00 [16:55:34]MH_I2C_Read... [16:55:34]Read from MH i2c: 01 07 00 67 0C 00 00 00 00 00 91 0C 17 [16:55:34]RasterBufferAndPrint [16:55:34]line [16:55:34]line [16:55:34]line [16:55:34]line [16:55:34]line [16:55:34]written 0, free lines is 3221 [16:55:34]MH_Cut [16:55:34]Write to MH i2c: D1 01 00 6E 0C 01 4C [16:55:34]Write i2c OK [16:55:34]MH_I2C_Read... [16:55:34]Read from MH i2c: D1 [16:55:34]MH_I2C_Read... [16:55:34]Read from MH i2c: D1 01 00 [16:55:34]MH_I2C_Read... [16:55:34]Read from MH i2c: D1 01 00 6E 0C 00 4B [16:55:34]Write to MH i2c: 01 00 00 6F 0C 7B [16:55:34]Write i2c OK [16:55:34]MH_I2C_Read... [16:55:34]OFD Sender: No OFD packet to send [16:55:35]*** Cut start [16:55:35]*** Purtial cut [16:55:35]*** Stage 1: CUTSNS_PIN = 1 [16:55:35]Read from MH i2c: 01 [16:55:35]MH_I2C_Read... [16:55:35]*** Stop cut motor [16:55:35]*** Cut end [16:55:35]Read from MH i2c: 01 07 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: 01 07 00 6F 0C 00 00 00 00 00 FF 0F 90 [16:55:35]process_action close_receipt done [16:55:35]requested_data is exist [16:55:35]produce_requested_data [16:55:35]requested_item fm.sn is exist - process it [16:55:35]wFMCommunicate request_size=4 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 11 00 00 [16:55:35]Write to MH i2c: E2 08 00 70 0C 80 11 00 00 00 00 00 00 F6 [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 17 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 17 00 70 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [16:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:55:35]wFMCommunicate OK [16:55:35]requested_item fd.num is exist - process it [16:55:35]SAM_PROTO_GetFieldsCounters [16:55:35]wFMCommunicate request_size=4 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 13 00 00 [16:55:35]Write to MH i2c: E2 08 00 71 0C 80 13 00 00 00 00 00 00 F9 [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 62 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 62 00 71 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [16:55:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:35]wFMCommunicate OK [16:55:35]SAM_PROTO_GetFieldsCounters done [16:55:35]requested_item shift.num is exist - process it [16:55:35]requested_item shift.opened is exist - process it [16:55:35]req_shift_opened [16:55:35]FM_GetShiftState [16:55:35]SAM_PROTO_GetShiftState [16:55:35]wFMCommunicate request_size=4 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 13 01 00 [16:55:35]Write to MH i2c: E2 08 00 72 0C 80 13 01 00 00 00 00 00 FB [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 0E 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 0E 00 72 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 FD [16:55:35]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:55:35]wFMCommunicate OK [16:55:35]SAM_PROTO_GetShiftState done [16:55:35]FM_GetShiftState done [16:55:35]req_shift_opened done [16:55:35]requested_item shift.open_date is exist - process it [16:55:35]req_shift_open_date [16:55:35]req_shift_open_date done [16:55:35]produce_requested_data done [16:55:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202093,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:55:35]process_action_free close_receipt [16:55:35]json_value_free [16:55:35]json_value_free done [16:55:35]process_json_proto returns [16:55:35]Send response to host [16:55:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202093,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:55:35]free response buf [16:55:35]execute_script done [16:55:35]execute_script returns [16:55:35]free content buf [16:55:35]Sock 9.Close socket [16:55:35]Sock 9.Thread stoped [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:04]int [16:56:04]Write to MH i2c: 01 00 00 73 0C 7F [16:56:04]*** FLAG_PRN_KEY set [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: 01 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: 01 07 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: 01 07 00 73 0C 00 08 00 00 00 FF 0F 9C [16:56:04]state=0 [16:56:04]Key pressed [16:56:04]Feed [16:56:04]Write to MH i2c: D8 00 00 74 0C 57 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: D8 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: D8 01 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: D8 01 00 74 0C 00 58 [16:56:04]int [16:56:04]Write to MH i2c: 01 00 00 75 0C 81 [16:56:04]Write i2c OK [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: 01 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: 01 07 00 [16:56:04]MH_I2C_Read... [16:56:04]Read from MH i2c: 01 07 00 75 0C 00 48 00 00 00 3C 00 0C [16:56:04]state=2 [16:56:04]Key pressed [16:56:05]int [16:56:05]Write to MH i2c: 01 00 00 76 0C 82 [16:56:05]*** FLAG_PRN_KEY reset [16:56:05]Write i2c OK [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: 01 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: 01 07 00 [16:56:05]MH_I2C_Read... [16:56:05]Read from MH i2c: 01 07 00 76 0C 00 00 00 00 00 F5 0F 8D [16:56:05]state=2 [16:56:05]Stop feed [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:15]accept exits with 8 [16:56:15]New connection [16:56:15]New thread 3067432292 created [16:56:15]Thread 3067288932 joined [16:56:15]Waiting for new connection... [16:56:15] Sock 8.Parse request [16:56:15]Sock 8.Check first char [16:56:15]Sock 8.First char is OK [16:56:15]request: POST /json_proto HTTP/1.0 [16:56:15]Method: POST [16:56:15]URL: /json_proto [16:56:15]Method is POST - this is cgi request [16:56:15]url: /json_proto [16:56:15]query_string will be loaded in cgi processing [16:56:15]execute_cgi json_proto POST (null) [16:56:15]execute_cgi path=json_proto method=POST [16:56:15]POST find Content-Length [16:56:15]Host: 172.17.63.195:8080 [16:56:15]Content-Length: 670 [16:56:15]Content-Type: application/json [16:56:15] [16:56:15]POST finish read [16:56:15]Found Content-Length = 670 [16:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449864", "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" : 8.780, "sum" : 600.55, "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" ] } } [16:56:15]execute_script... [16:56:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449864", "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" : 8.780, "sum" : 600.55, "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" ] } } [16:56:15]POST & json_proto [16:56:15]process_json_proto [16:56:15]json parsed OK: [16:56:15]protocol is kg_v1.0 [16:56:15]action value=close_receipt [16:56:15]process_action close_receipt [16:56:15]cmd_close_receipt [16:56:15]MH_GetDate [16:56:15]Write to MH i2c: F0 00 00 77 0C 72 [16:56:15]Write i2c OK [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: F0 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: F0 09 00 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: F0 09 00 77 0C 00 B0 70 1E 67 47 1B 1E 67 07 [16:56:15]GetLastDocTimeStamp 1730048132 [16:56:15]current date 1730048176 [16:56:15]FM_GetShiftState [16:56:15]SAM_PROTO_GetShiftState [16:56:15]wFMCommunicate request_size=4 [16:56:15]MH_SAM_APDU [16:56:15]CAPDU: 80 13 01 00 [16:56:15]Write to MH i2c: E2 08 00 78 0C 80 13 01 00 00 00 00 00 01 [16:56:15]Write i2c OK [16:56:15]MH_I2C_Read... [16:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:15]Read from MH i2c: E2 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: E2 0E 00 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: E2 0E 00 78 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 03 [16:56:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:56:15]wFMCommunicate OK [16:56:15]SAM_PROTO_GetShiftState done [16:56:15]FM_GetShiftState done [16:56:15]opened in 1729987312 [16:56:15]opened+sec_in_day 1730073712 [16:56:15]quantity*price = 60055 [16:56:15]sum+1 = 60056 [16:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 386 27.10.2024 16:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202094 ФПД: 69735410714467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165616&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202094&fm=69735410714467&tin=02508201610067®Number=0000000000091777&sum=60000 [16:56:16]StoreToDocumentArchive [16:56:16]shift 544 fd 202094 [16:56:16]save to /storage/0544/doc_00202094 [16:56:16]save last doc name /storage/0544/doc_00202094 to /storage/kkm_last_doc_name [16:56:16]save OK [16:56:16]Clear old archive folders... [16:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:56:16]tlvbuf is 01C571A0 [16:56:16]SAM_PROTO_ClearQueue [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 09 00 00 [16:56:16]Write to MH i2c: E2 08 00 85 0C 80 09 00 00 00 00 00 00 03 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 85 0C 00 90 00 05 [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]SAM_PROTO_ClearQueue done [16:56:16]KKMCreateOFDPacket [16:56:16]OFDProtocolAddRootSTLVToBuf [16:56:16]FM_MakeSignedData [16:56:16]FM_MakeSignedData [16:56:16]SAM_PROTO_SignData [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 01 02 [16:56:16]Write to MH i2c: E2 08 00 86 0C 80 0D 01 02 00 00 00 00 0B [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:17]Read from MH i2c: E2 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 03 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 03 00 86 0C 00 90 00 06 [16:56:17]RAPDU: 90 00 [16:56:17]wFMCommunicate OK [16:56:17]wFMCommunicate request_size=255 [16:56:17]MH_SAM_APDU [16:56:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 B0 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 15 03 00 35 04 06 00 [16:56:17]Write to MH i2c: E2 02 01 87 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 B0 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 15 03 00 35 04 06 00 00 00 F5 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:17]Read from MH i2c: E2 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 03 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [16:56:17]RAPDU: 90 00 [16:56:17]wFMCommunicate OK [16:56:17]wFMCommunicate request_size=11 [16:56:17]MH_SAM_APDU [16:56:17]CAPDU: 80 0D 02 02 06 3F 6C 8A 62 47 63 [16:56:17]Write to MH i2c: E2 0E 00 88 0C 80 0D 02 02 06 00 3F 6C 8A 62 47 63 00 00 5B [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:17]Read from MH i2c: E2 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 03 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 03 00 88 0C 00 90 00 08 [16:56:17]RAPDU: 90 00 [16:56:17]wFMCommunicate OK [16:56:17]wFMCommunicate request_size=4 [16:56:17]MH_SAM_APDU [16:56:17]CAPDU: 80 0D 03 02 [16:56:17]Write to MH i2c: E2 08 00 89 0C 80 0D 03 02 00 00 00 00 10 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:17]Read from MH i2c: E2 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 0B 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 0B 00 89 0C 00 F9 48 3C 7F 42 9E FA 79 90 00 60 [16:56:17]RAPDU: F9 48 3C 7F 42 9E FA 79 90 00 [16:56:17]wFMCommunicate OK [16:56:17]SAM_PROTO_SignData done [16:56:17]FM_MakeSignedData done [16:56:17]CreateOFDProtocolMessage [16:56:17]wFMCommunicate request_size=4 [16:56:17]MH_SAM_APDU [16:56:17]CAPDU: 80 11 00 00 [16:56:17]Write to MH i2c: E2 08 00 8A 0C 80 11 00 00 00 00 00 00 10 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:17]Read from MH i2c: E2 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 17 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: E2 17 00 8A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 65 [16:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:56:17]wFMCommunicate OK [16:56:17]CreateOFDProtocolMessage done [16:56:17]OFDSenderStorePacket 202094 [16:56:17]StoreOFDPacket docnum=202094 [16:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 8C 2B 08 01 A5 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 B0 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 15 03 00 35 04 06 00 3F 6C 8A 62 47 63 F9 48 3C 7F 42 9E FA 79 [16:56:17]CheckFolder [16:56:17]dirname=/storage/ofd_packets [16:56:17]CheckFolder done [16:56:17]ProducePacketName [16:56:17]name=ofd_packets/00202094 [16:56:17]NVStorageSaveData ofd_packets/00202094 [16:56:17]File name is /storage/ofd_packets/00202094 [16:56:17]Write 302 bytes [16:56:17]NVStorageSaveData done [16:56:17]OFDSenderStorePacket done [16:56:17]KKMCreateOFDPacket done [16:56:17]NVStorageSaveData kkm_last_timestamp [16:56:17]File name is /storage/kkm_last_timestamp [16:56:17]Write 4 bytes [16:56:17]NVStorageSaveData done [16:56:17]ExternCall_PrintAddStr [16:56:17]wPrintStart [16:56:17]Write to MH i2c: 01 00 00 8B 0C 97 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 07 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 07 00 8B 0C 00 00 00 00 00 FF 0F AC [16:56:17]RasterBufferAndPrint [16:56:17]line Счет N : (1)449864 [16:56:17]line ИНН: 02508201610067 [16:56:17]line Контрольно-Кассовый Чек [16:56:17]line ПРОДАЖА [16:56:17]line ТРК (МРК, ГНК) : 53 [16:56:17]line Товар: 2710124130 [16:56:17]line SUPER 92-К-5 [16:56:17]line 8.780 * 68.40 [16:56:17]line = 600.55 [16:56:17]line НДС 12% НСП 1% [16:56:17]line > о реализуемом товаре [16:56:17]line ОКРУГЛЕНИЕ: -0.55 [16:56:17]line ИТОГО: 600.00 [16:56:17]line Внесено: 600.00 [16:56:17]line СДАЧА: 0.00 [16:56:17]line НСП 1% : 5.31 [16:56:17]line НДС 12% : 63.77 [16:56:17]line Наличными: 600.00 [16:56:17]line Безнал.: 0.00 [16:56:17]line Место: АЗС № 171 "Партнер Нефть" [16:56:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:56:17]line СНО: Общий режим [16:56:17]line Чек 386 27.10.2024 16:56 [16:56:17]line Смена: 544 ФФД: 1.0 [16:56:17]line ЗНМ: 0300000109 [16:56:17]line РНМ: 0000000000091777 [16:56:17]line Версия ККМ: 001 [16:56:17]line ФМ: 0000000000871756 [16:56:17]line ФД: 202094 [16:56:17]line ФПД: 69735410714467 [16:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165616&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202094&fm=69735410714467&tin=02508201610067®Number=0000000000091777&sum=60000 [16:56:17]OFD Sender: Processing packet 202094 [packets to send 112, broken 111] [16:56:17]ProducePacketName [16:56:17]name=ofd_packets/00202094 [16:56:17]OFD Sender: To server: pG, [16:56:17]CommunicateWithHost lk.salyk.kg:30040 [16:56:17]ConnectInit lk.salyk.kg [16:56:17]written 0, free lines is 4095 [16:56:17]Connected sock=10 [16:56:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 8C 2B 08 01 A5 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 B0 70 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 15 03 00 35 04 06 00 3F 6C 8A 62 47 63 F9 48 3C 7F 42 9E FA 79 [16:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6D AB 47 00 76 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 15 03 00 F4 03 04 00 69 1C 1E 67 B6 04 01 00 00 FF A2 57 10 9A CA 30 16 [16:56:18]CommunicateWithHost err = 0 [16:56:18]CheckOFDResponse [16:56:18]1017 (14) - 77093643461234 [16:56:18]1041 (16) - 0000000000871756 [16:56:18]1040 (4) - 202094 [16:56:18]1012 (4) - 27.10.2024 10:56 [16:56:18]1206 (1) - 0 [16:56:18]OFD Sender: Remove packet 202094 [16:56:18]ProducePacketName [16:56:18]name=ofd_packets/00202094 [16:56:18]NVStorageDeleteData [16:56:18]Write to MH i2c: 01 00 00 B6 0C C2 [16:56:18]Write i2c OK [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: 01 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: 01 07 00 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: 01 07 00 B6 0C 00 00 00 00 00 8F 0C 64 [16:56:18]RasterBufferAndPrint [16:56:18]line [16:56:18]line [16:56:18]line [16:56:18]line [16:56:18]line [16:56:18]written 0, free lines is 3220 [16:56:18]MH_Cut [16:56:18]Write to MH i2c: D1 01 00 BD 0C 01 9B [16:56:18]Write i2c OK [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: D1 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: D1 01 00 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: D1 01 00 BD 0C 00 9A [16:56:18]Write to MH i2c: 01 00 00 BE 0C CA [16:56:18]Write i2c OK [16:56:18]MH_I2C_Read... [16:56:18]OFD Sender: No OFD packet to send [16:56:19]*** Cut start [16:56:19]*** Purtial cut [16:56:19]*** Stage 1: CUTSNS_PIN = 1 [16:56:19]Read from MH i2c: 01 [16:56:19]MH_I2C_Read... [16:56:19]*** Stop cut motor [16:56:19]*** Cut end [16:56:19]Read from MH i2c: 01 07 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: 01 07 00 BE 0C 00 00 00 00 00 FF 0F DF [16:56:19]process_action close_receipt done [16:56:19]requested_data is exist [16:56:19]produce_requested_data [16:56:19]requested_item fm.sn is exist - process it [16:56:19]wFMCommunicate request_size=4 [16:56:19]MH_SAM_APDU [16:56:19]CAPDU: 80 11 00 00 [16:56:19]Write to MH i2c: E2 08 00 BF 0C 80 11 00 00 00 00 00 00 45 [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:19]Read from MH i2c: E2 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 17 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 17 00 BF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [16:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:56:19]wFMCommunicate OK [16:56:19]requested_item fd.num is exist - process it [16:56:19]SAM_PROTO_GetFieldsCounters [16:56:19]wFMCommunicate request_size=4 [16:56:19]MH_SAM_APDU [16:56:19]CAPDU: 80 13 00 00 [16:56:19]Write to MH i2c: E2 08 00 C0 0C 80 13 00 00 00 00 00 00 48 [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:19]Read from MH i2c: E2 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 62 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 62 00 C0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [16:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:19]wFMCommunicate OK [16:56:19]SAM_PROTO_GetFieldsCounters done [16:56:19]requested_item shift.num is exist - process it [16:56:19]requested_item shift.opened is exist - process it [16:56:19]req_shift_opened [16:56:19]FM_GetShiftState [16:56:19]SAM_PROTO_GetShiftState [16:56:19]wFMCommunicate request_size=4 [16:56:19]MH_SAM_APDU [16:56:19]CAPDU: 80 13 01 00 [16:56:19]Write to MH i2c: E2 08 00 C1 0C 80 13 01 00 00 00 00 00 4A [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:19]Read from MH i2c: E2 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 0E 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 0E 00 C1 0C 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4C [16:56:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:56:19]wFMCommunicate OK [16:56:19]SAM_PROTO_GetShiftState done [16:56:19]FM_GetShiftState done [16:56:19]req_shift_opened done [16:56:19]requested_item shift.open_date is exist - process it [16:56:19]req_shift_open_date [16:56:19]req_shift_open_date done [16:56:19]produce_requested_data done [16:56:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202094,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:56:19]process_action_free close_receipt [16:56:19]json_value_free [16:56:19]json_value_free done [16:56:19]process_json_proto returns [16:56:19]Send response to host [16:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202094,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:56:19]free response buf [16:56:19]execute_script done [16:56:19]execute_script returns [16:56:19]free content buf [16:56:19]Sock 8.Close socket [16:56:19]Sock 8.Thread stoped [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D2 AC 04 01 A8 64 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 79 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 15 03 00 35 04 06 00 85 45 71 24 3A E8 42 51 1B 75 EB 2A D3 83 [16:59:38]CheckFolder [16:59:38]dirname=/storage/ofd_packets [16:59:38]CheckFolder done [16:59:38]ProducePacketName [16:59:38]name=ofd_packets/00202095 [16:59:38]NVStorageSaveData ofd_packets/00202095 [16:59:38]File name is /storage/ofd_packets/00202095 [16:59:38]Write 298 bytes [16:59:38]NVStorageSaveData done [16:59:38]OFDSenderStorePacket done [16:59:38]KKMCreateOFDPacket done [16:59:38]NVStorageSaveData kkm_last_timestamp [16:59:38]File name is /storage/kkm_last_timestamp [16:59:38]Write 4 bytes [16:59:38]NVStorageSaveData done [16:59:38]ExternCall_PrintAddStr [16:59:38]wPrintStart [16:59:38]Write to MH i2c: 01 00 00 24 00 24 [16:59:38]Write i2c OK [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: 01 [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: 01 07 00 [16:59:38]MH_I2C_Read... [16:59:38]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [16:59:38]RasterBufferAndPrint [16:59:38]line Счет N : (1)449866 [16:59:38]line ИНН: 02508201610067 [16:59:38]line Контрольно-Кассовый Чек [16:59:38]line ПРОДАЖА [16:59:38]line ТРК (МРК, ГНК) : 43 [16:59:38]line Товар: 2710194210 [16:59:38]line ДТ-К-2 [16:59:38]line 6.570 * 76.20 [16:59:38]line = 500.63 [16:59:38]line НДС 12% НСП 1% [16:59:38]line > о реализуемом товаре [16:59:38]line ОКРУГЛЕНИЕ: -0.63 [16:59:38]line ИТОГО: 500.00 [16:59:38]line Внесено: 500.00 [16:59:38]line СДАЧА: 0.00 [16:59:38]line НСП 1% : 4.43 [16:59:38]line НДС 12% : 53.16 [16:59:38]line Наличными: 500.00 [16:59:38]line Безнал.: 0.00 [16:59:38]line Место: АЗС № 171 "Партнер Нефть" [16:59:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:59:38]line СНО: Общий режим [16:59:38]line Чек 387 27.10.2024 16:59 [16:59:38]line Смена: 544 ФФД: 1.0 [16:59:38]line ЗНМ: 0300000109 [16:59:38]line РНМ: 0000000000091777 [16:59:38]line Версия ККМ: 001 [16:59:38]line ФМ: 0000000000871756 [16:59:38]line ФД: 202095 [16:59:38]line ФПД: 146533297437416 [16:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165937&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202095&fm=146533297437416&tin=02508201610067®Number=0000000000091777&sum=50000 [16:59:38]OFD Sender: Processing packet 202095 [packets to send 112, broken 111] [16:59:38]ProducePacketName [16:59:38]name=ofd_packets/00202095 [16:59:38]OFD Sender: To server: pG, [16:59:38]CommunicateWithHost lk.salyk.kg:30040 [16:59:38]ConnectInit lk.salyk.kg [16:59:38]written 0, free lines is 4095 [16:59:39]Write to MH i2c: 01 00 00 4F 00 4F [16:59:39]Write i2c OK [16:59:39]MH_I2C_Read... [16:59:39]Read from MH i2c: 01 [16:59:39]MH_I2C_Read... [16:59:39]Read from MH i2c: 01 07 00 [16:59:39]MH_I2C_Read... [16:59:39]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 98 0C FA [16:59:39]RasterBufferAndPrint [16:59:39]line [16:59:39]line [16:59:39]line [16:59:39]line [16:59:39]line [16:59:39]written 0, free lines is 3229 [16:59:39]MH_Cut [16:59:39]Write to MH i2c: D1 01 00 56 00 01 28 [16:59:39]Write i2c OK [16:59:39]MH_I2C_Read... [16:59:39]Read from MH i2c: D1 [16:59:39]MH_I2C_Read... [16:59:39]Read from MH i2c: D1 01 00 [16:59:39]MH_I2C_Read... [16:59:39]Read from MH i2c: D1 01 00 56 00 00 27 [16:59:39]Write to MH i2c: 01 00 00 57 00 57 [16:59:39]Write i2c OK [16:59:39]MH_I2C_Read... [16:59:40]ConnectInit Can't connect to host [16:59:40]*** Cut start [16:59:40]*** Purtial cut [16:59:40]*** Stage 1: CUTSNS_PIN = 1 [16:59:40]Read from MH i2c: 01 [16:59:40]MH_I2C_Read... [16:59:40]*** Stop cut motor [16:59:40]*** Cut end [16:59:40]Read from MH i2c: 01 07 00 [16:59:40]MH_I2C_Read... [16:59:40]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [16:59:40]process_action close_receipt done [16:59:40]requested_data is exist [16:59:40]produce_requested_data [16:59:40]requested_item fm.sn is exist - process it [16:59:40]wFMCommunicate request_size=4 [16:59:40]MH_SAM_APDU [16:59:40]CAPDU: 80 11 00 00 [16:59:40]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [16:59:40]Write i2c OK [16:59:40]MH_I2C_Read... [16:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:40]Read from MH i2c: E2 [16:59:40]MH_I2C_Read... [16:59:40]Read from MH i2c: E2 17 00 [16:59:40]MH_I2C_Read... [16:59:40]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [16:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:59:40]wFMCommunicate OK [16:59:40]requested_item fd.num is exist - process it [16:59:40]SAM_PROTO_GetFieldsCounters [16:59:40]wFMCommunicate request_size=4 [16:59:40]MH_SAM_APDU [16:59:40]CAPDU: 80 13 00 00 [16:59:40]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [16:59:40]Write i2c OK [16:59:40]MH_I2C_Read... [16:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:40]Read from MH i2c: E2 [16:59:40]MH_I2C_Read... [16:59:40]Read from MH i2c: E2 62 00 [16:59:40]MH_I2C_Read... [16:59:40]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [16:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:40]wFMCommunicate OK [16:59:40]SAM_PROTO_GetFieldsCounters done [16:59:40]requested_item shift.num is exist - process it [16:59:40]requested_item shift.opened is exist - process it [16:59:40]req_shift_opened [16:59:40]FM_GetShiftState [16:59:40]SAM_PROTO_GetShiftState [16:59:40]wFMCommunicate request_size=4 [16:59:40]MH_SAM_APDU [16:59:40]CAPDU: 80 13 01 00 [16:59:40]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [16:59:40]Write i2c OK [16:59:40]MH_I2C_Read... [16:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:40]Read from MH i2c: E2 [16:59:40]MH_I2C_Read... [16:59:40]Read from MH i2c: E2 0E 00 [16:59:40]MH_I2C_Read... [16:59:40]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D9 [16:59:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:59:40]wFMCommunicate OK [16:59:40]SAM_PROTO_GetShiftState done [16:59:40]FM_GetShiftState done [16:59:40]req_shift_opened done [16:59:40]requested_item shift.open_date is exist - process it [16:59:40]req_shift_open_date [16:59:40]req_shift_open_date done [16:59:40]produce_requested_data done [16:59:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202095,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:59:40]process_action_free close_receipt [16:59:40]json_value_free [16:59:40]json_value_free done [16:59:40]process_json_proto returns [16:59:40]Send response to host [16:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202095,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:59:40]free response buf [16:59:40]execute_script done [16:59:40]execute_script returns [16:59:40]free content buf [16:59:40]Sock 8.Close socket [16:59:40]Sock 8.Thread stoped [16:59:41]accept exits with 9 [16:59:41]New connection [16:59:41]New thread 3067153764 created [16:59:41]Thread 3067297124 joined [16:59:41]Waiting for new connection... [16:59:41] Sock 9.Parse request [16:59:41]Sock 9.Check first char [16:59:41]Sock 9.First char is OK [16:59:41]request: POST /json_proto HTTP/1.0 [16:59:41]Method: POST [16:59:41]URL: /json_proto [16:59:41]Method is POST - this is cgi request [16:59:41]url: /json_proto [16:59:41]query_string will be loaded in cgi processing [16:59:41]execute_cgi json_proto POST (null) [16:59:41]execute_cgi path=json_proto method=POST [16:59:41]POST find Content-Length [16:59:41]Host: 172.17.63.195:8080 [16:59:41]Content-Length: 679 [16:59:41]Content-Type: application/json [16:59:41] [16:59:41]POST finish read [16:59:41]Found Content-Length = 679 [16:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:41]execute_script... [16:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:41]POST & json_proto [16:59:41]process_json_proto [16:59:41]json parsed OK: [16:59:41]protocol is kg_v1.0 [16:59:41]action value=close_receipt [16:59:41]process_action close_receipt [16:59:41]cmd_close_receipt [16:59:41]MH_GetDate [16:59:41]Write to MH i2c: F0 00 00 5B 00 4A [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: F0 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: F0 09 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: F0 09 00 5B 00 00 7D 71 1E 67 47 1B 1E 67 AD [16:59:41]GetLastDocTimeStamp 1730048377 [16:59:41]current date 1730048381 [16:59:41]FM_GetShiftState [16:59:41]SAM_PROTO_GetShiftState [16:59:41]wFMCommunicate request_size=4 [16:59:41]MH_SAM_APDU [16:59:41]CAPDU: 80 13 01 00 [16:59:41]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [16:59:41]Write i2c OK [16:59:41]MH_I2C_Read... [16:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:41]Read from MH i2c: E2 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 0E 00 [16:59:41]MH_I2C_Read... [16:59:41]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DB [16:59:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:59:41]wFMCommunicate OK [16:59:41]SAM_PROTO_GetShiftState done [16:59:41]FM_GetShiftState done [16:59:41]opened in 1729987312 [16:59:41]opened+sec_in_day 1730073712 [16:59:41]quantity*price = 140055 [16:59:41]sum+1 = 140057 [16:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 388 27.10.2024 16:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202096 ФПД: 54045018994092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165941&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202096&fm=54045018994092&tin=02508201610067®Number=0000000000091777&sum=140000 [16:59:42]StoreToDocumentArchive [16:59:42]shift 544 fd 202096 [16:59:42]save to /storage/0544/doc_00202096 [16:59:42]save last doc name /storage/0544/doc_00202096 to /storage/kkm_last_doc_name [16:59:42]save OK [16:59:42]Clear old archive folders... [16:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:59:42]tlvbuf is 0069C120 [16:59:42]SAM_PROTO_ClearQueue [16:59:42]wFMCommunicate request_size=4 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 09 00 00 [16:59:42]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [16:59:42]RAPDU: 90 00 [16:59:42]wFMCommunicate OK [16:59:42]SAM_PROTO_ClearQueue done [16:59:42]KKMCreateOFDPacket [16:59:42]OFDProtocolAddRootSTLVToBuf [16:59:42]FM_MakeSignedData [16:59:42]FM_MakeSignedData [16:59:42]SAM_PROTO_SignData [16:59:42]wFMCommunicate request_size=4 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 0D 01 02 [16:59:42]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [16:59:42]RAPDU: 90 00 [16:59:42]wFMCommunicate OK [16:59:42]wFMCommunicate request_size=255 [16:59:42]MH_SAM_APDU [16:59: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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 7D 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 15 03 00 35 04 06 00 31 27 56 28 [16:59:42]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 7D 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 15 03 00 35 04 06 00 31 27 56 28 00 00 24 [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:42]Read from MH i2c: E2 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 [16:59:42]MH_I2C_Read... [16:59:42]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [16:59:42]RAPDU: 90 00 [16:59:42]wFMCommunicate OK [16:59:42]wFMCommunicate request_size=7 [16:59:42]MH_SAM_APDU [16:59:42]CAPDU: 80 0D 02 02 02 B5 AC [16:59:42]Write to MH i2c: E2 0A 00 6C 00 80 0D 02 02 02 00 B5 AC 00 00 4B [16:59:42]Write i2c OK [16:59:42]MH_I2C_Read... [16:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:43]Read from MH i2c: E2 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: E2 03 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [16:59:43]RAPDU: 90 00 [16:59:43]wFMCommunicate OK [16:59:43]wFMCommunicate request_size=4 [16:59:43]MH_SAM_APDU [16:59:43]CAPDU: 80 0D 03 02 [16:59:43]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:43]Read from MH i2c: E2 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: E2 0B 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: E2 0B 00 6D 00 00 38 99 F4 66 4E E9 1B 42 90 00 A8 [16:59:43]RAPDU: 38 99 F4 66 4E E9 1B 42 90 00 [16:59:43]wFMCommunicate OK [16:59:43]SAM_PROTO_SignData done [16:59:43]FM_MakeSignedData done [16:59:43]CreateOFDProtocolMessage [16:59:43]wFMCommunicate request_size=4 [16:59:43]MH_SAM_APDU [16:59:43]CAPDU: 80 11 00 00 [16:59:43]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: E2 [16:59:43]MH_I2C_Read... [16:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:43]Read from MH i2c: E2 17 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [16:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:59:43]wFMCommunicate OK [16:59:43]CreateOFDProtocolMessage done [16:59:43]OFDSenderStorePacket 202096 [16:59:43]StoreOFDPacket docnum=202096 [16:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C4 38 04 01 78 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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 7D 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 15 03 00 35 04 06 00 31 27 56 28 B5 AC 38 99 F4 66 4E E9 1B 42 [16:59:43]CheckFolder [16:59:43]dirname=/storage/ofd_packets [16:59:43]CheckFolder done [16:59:43]ProducePacketName [16:59:43]name=ofd_packets/00202096 [16:59:43]NVStorageSaveData ofd_packets/00202096 [16:59:43]File name is /storage/ofd_packets/00202096 [16:59:43]Write 298 bytes [16:59:43]NVStorageSaveData done [16:59:43]OFDSenderStorePacket done [16:59:43]KKMCreateOFDPacket done [16:59:43]NVStorageSaveData kkm_last_timestamp [16:59:43]File name is /storage/kkm_last_timestamp [16:59:43]Write 4 bytes [16:59:43]NVStorageSaveData done [16:59:43]ExternCall_PrintAddStr [16:59:43]wPrintStart [16:59:43]Write to MH i2c: 01 00 00 6F 00 6F [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: 01 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: 01 07 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [16:59:43]RasterBufferAndPrint [16:59:43]line Счет N : (1)449865 [16:59:43]line ИНН: 02508201610067 [16:59:43]line Контрольно-Кассовый Чек [16:59:43]line ПРОДАЖА [16:59:43]line ТРК (МРК, ГНК) : 33 [16:59:43]line Товар: 2710194210 [16:59:43]line ДТ-К-2 [16:59:43]line 18.380 * 76.20 [16:59:43]line = 1400.56 [16:59:43]line НДС 12% НСП 1% [16:59:43]line > о реализуемом товаре [16:59:43]line ОКРУГЛЕНИЕ: -0.56 [16:59:43]line ИТОГО: 1400.00 [16:59:43]line Внесено: 1400.00 [16:59:43]line СДАЧА: 0.00 [16:59:43]line НСП 1% : 12.39 [16:59:43]line НДС 12% : 148.73 [16:59:43]line Наличными: 1400.00 [16:59:43]line Безнал.: 0.00 [16:59:43]line Место: АЗС № 171 "Партнер Нефть" [16:59:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:59:43]line СНО: Общий режим [16:59:43]line Чек 388 27.10.2024 16:59 [16:59:43]line Смена: 544 ФФД: 1.0 [16:59:43]line ЗНМ: 0300000109 [16:59:43]line РНМ: 0000000000091777 [16:59:43]line Версия ККМ: 001 [16:59:43]line ФМ: 0000000000871756 [16:59:43]line ФД: 202096 [16:59:43]line ФПД: 54045018994092 [16:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165941&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202096&fm=54045018994092&tin=02508201610067®Number=0000000000091777&sum=140000 [16:59:43]written 0, free lines is 4095 [16:59:43]ConnectInit Can't take IP for lk.salyk.kg [16:59:43]CommunicateWithHost connect error [16:59:43]CommunicateWithHost err = -1 [16:59:43]OFD Sender: Server communicate error [16:59:43]Write to MH i2c: 01 00 00 9A 00 9A [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: 01 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: 01 07 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 8F 0C 3C [16:59:43]RasterBufferAndPrint [16:59:43]line [16:59:43]line [16:59:43]line [16:59:43]line [16:59:43]line [16:59:43]written 0, free lines is 3222 [16:59:43]MH_Cut [16:59:43]Write to MH i2c: D1 01 00 A1 00 01 73 [16:59:43]OFD Sender: Processing packet 202095 [packets to send 113, broken 111] [16:59:43]ProducePacketName [16:59:43]name=ofd_packets/00202095 [16:59:43]OFD Sender: To server: pG, [16:59:43]CommunicateWithHost lk.salyk.kg:30040 [16:59:43]ConnectInit lk.salyk.kg [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: D1 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: D1 01 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: D1 01 00 A1 00 00 72 [16:59:43]Write to MH i2c: 01 00 00 A2 00 A2 [16:59:43]Write i2c OK [16:59:44]MH_I2C_Read... [16:59:44]*** Cut start [16:59:44]*** Purtial cut [16:59:44]*** Stage 1: CUTSNS_PIN = 1 [16:59:45]ConnectInit Can't connect to host [16:59:45]Read from MH i2c: 01 [16:59:45]MH_I2C_Read... [16:59:45]*** Stop cut motor [16:59:45]*** Cut end [16:59:45]Read from MH i2c: 01 07 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [16:59:45]process_action close_receipt done [16:59:45]requested_data is exist [16:59:45]produce_requested_data [16:59:45]requested_item fm.sn is exist - process it [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 11 00 00 [16:59:45]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 17 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [16:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:59:45]wFMCommunicate OK [16:59:45]requested_item fd.num is exist - process it [16:59:45]SAM_PROTO_GetFieldsCounters [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 13 00 00 [16:59:45]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 62 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 70 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [16:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 70 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:45]wFMCommunicate OK [16:59:45]SAM_PROTO_GetFieldsCounters done [16:59:45]requested_item shift.num is exist - process it [16:59:45]requested_item shift.opened is exist - process it [16:59:45]req_shift_opened [16:59:45]FM_GetShiftState [16:59:45]SAM_PROTO_GetShiftState [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 13 01 00 [16:59:45]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0E 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 24 [16:59:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:59:45]wFMCommunicate OK [16:59:45]SAM_PROTO_GetShiftState done [16:59:45]FM_GetShiftState done [16:59:45]req_shift_opened done [16:59:45]requested_item shift.open_date is exist - process it [16:59:45]req_shift_open_date [16:59:45]req_shift_open_date done [16:59:45]produce_requested_data done [16:59:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202096,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:59:45]process_action_free close_receipt [16:59:45]json_value_free [16:59:45]json_value_free done [16:59:45]process_json_proto returns [16:59:45]Send response to host [16:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202096,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:59:45]free response buf [16:59:45]execute_script done [16:59:45]execute_script returns [16:59:45]free content buf [16:59:45]Sock 9.Close socket [16:59:45]Sock 9.Thread stoped [16:59:45]accept exits with 8 [16:59:45]New connection [16:59:45]New thread 3067297124 created [16:59:45]Thread 3067153764 joined [16:59:45]Waiting for new connection... [16:59:45] Sock 8.Parse request [16:59:45]Sock 8.Check first char [16:59:45]Sock 8.First char is OK [16:59:45]request: POST /json_proto HTTP/1.0 [16:59:45]Method: POST [16:59:45]URL: /json_proto [16:59:45]Method is POST - this is cgi request [16:59:45]url: /json_proto [16:59:45]query_string will be loaded in cgi processing [16:59:45]execute_cgi json_proto POST (null) [16:59:45]execute_cgi path=json_proto method=POST [16:59:45]POST find Content-Length [16:59:45]Host: 172.17.63.195:8080 [16:59:45]Content-Length: 682 [16:59:45]Content-Type: application/json [16:59:45] [16:59:45]POST finish read [16:59:45]Found Content-Length = 682 [16:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:45]execute_script... [16:59:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:45]POST & json_proto [16:59:45]process_json_proto [16:59:45]json parsed OK: [16:59:45]protocol is kg_v1.0 [16:59:45]action value=close_receipt [16:59:45]process_action close_receipt [16:59:45]cmd_close_receipt [16:59:45]MH_GetDate [16:59:45]Write to MH i2c: F0 00 00 A6 00 95 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: F0 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: F0 09 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: F0 09 00 A6 00 00 81 71 1E 67 47 1B 1E 67 FC [16:59:45]GetLastDocTimeStamp 1730048381 [16:59:45]current date 1730048385 [16:59:45]FM_GetShiftState [16:59:45]SAM_PROTO_GetShiftState [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 13 01 00 [16:59:45]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0E 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 26 [16:59:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:59:45]wFMCommunicate OK [16:59:45]SAM_PROTO_GetShiftState done [16:59:45]FM_GetShiftState done [16:59:45]opened in 1729987312 [16:59:45]opened+sec_in_day 1730073712 [16:59:45]quantity*price = 120018 [16:59:45]sum+1 = 120020 [16:59:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 389 27.10.2024 16:59 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202097 ФПД: 153480730746727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165946&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202097&fm=153480730746727&tin=02508201610067®Number=0000000000091777&sum=120000 [16:59:47]StoreToDocumentArchive [16:59:47]shift 544 fd 202097 [16:59:47]save to /storage/0544/doc_00202097 [16:59:47]save last doc name /storage/0544/doc_00202097 to /storage/kkm_last_doc_name [16:59:47]save OK [16:59:47]Clear old archive folders... [16:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:47]tlvbuf is 006B2940 [16:59:47]SAM_PROTO_ClearQueue [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 09 00 00 [16:59:47]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [16:59:47]RAPDU: 90 00 [16:59:47]wFMCommunicate OK [16:59:47]SAM_PROTO_ClearQueue done [16:59:47]KKMCreateOFDPacket [16:59:47]OFDProtocolAddRootSTLVToBuf [16:59:47]FM_MakeSignedData [16:59:47]FM_MakeSignedData [16:59:47]SAM_PROTO_SignData [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 0D 01 02 [16:59:47]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [16:59:47]RAPDU: 90 00 [16:59:47]wFMCommunicate OK [16:59:47]wFMCommunicate request_size=255 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 82 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 15 03 00 35 04 06 00 8B [16:59:47]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 82 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 15 03 00 35 04 06 00 8B 00 00 FD [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [16:59:47]RAPDU: 90 00 [16:59:47]wFMCommunicate OK [16:59:47]wFMCommunicate request_size=10 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 0D 02 02 05 97 04 6F 9F 67 [16:59:47]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 97 04 6F 9F 67 00 00 4B [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:47]Read from MH i2c: E2 03 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [16:59:47]RAPDU: 90 00 [16:59:47]wFMCommunicate OK [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 0D 03 02 [16:59:47]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 0B 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 0B 00 B8 00 00 6F 74 BF 06 4A 80 5D 75 90 00 78 [16:59:47]RAPDU: 6F 74 BF 06 4A 80 5D 75 90 00 [16:59:47]wFMCommunicate OK [16:59:47]SAM_PROTO_SignData done [16:59:47]FM_MakeSignedData done [16:59:47]CreateOFDProtocolMessage [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 11 00 00 [16:59:47]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 17 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [16:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:59:47]wFMCommunicate OK [16:59:47]CreateOFDProtocolMessage done [16:59:47]OFDSenderStorePacket 202097 [16:59:47]StoreOFDPacket docnum=202097 [16:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7E 39 07 01 D3 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 82 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 15 03 00 35 04 06 00 8B 97 04 6F 9F 67 6F 74 BF 06 4A 80 5D 75 [16:59:47]CheckFolder [16:59:47]dirname=/storage/ofd_packets [16:59:47]CheckFolder done [16:59:47]ProducePacketName [16:59:47]name=ofd_packets/00202097 [16:59:47]NVStorageSaveData ofd_packets/00202097 [16:59:47]File name is /storage/ofd_packets/00202097 [16:59:47]Write 301 bytes [16:59:47]NVStorageSaveData done [16:59:47]OFDSenderStorePacket done [16:59:47]KKMCreateOFDPacket done [16:59:47]NVStorageSaveData kkm_last_timestamp [16:59:47]File name is /storage/kkm_last_timestamp [16:59:47]Write 4 bytes [16:59:47]NVStorageSaveData done [16:59:47]ExternCall_PrintAddStr [16:59:47]wPrintStart [16:59:47]Write to MH i2c: 01 00 00 BA 00 BA [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: 01 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: 01 07 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [16:59:47]RasterBufferAndPrint [16:59:47]line Счет N : (1)449867 [16:59:47]line ИНН: 02508201610067 [16:59:47]line Контрольно-Кассовый Чек [16:59:47]line ПРОДАЖА [16:59:47]line ТРК (МРК, ГНК) : 62 [16:59:47]line Товар: 2710124130 [16:59:47]line Аи-92-К-2 [16:59:47]line 17.940 * 66.90 [16:59:47]line = 1200.19 [16:59:47]line НДС 12% НСП 1% [16:59:47]line > о реализуемом товаре [16:59:47]line ОКРУГЛЕНИЕ: -0.19 [16:59:47]line ИТОГО: 1200.00 [16:59:47]line Внесено: 1200.00 [16:59:47]line СДАЧА: 0.00 [16:59:47]line НСП 1% : 10.62 [16:59:47]line НДС 12% : 127.45 [16:59:47]line Наличными: 1200.00 [16:59:47]line Безнал.: 0.00 [16:59:47]line Место: АЗС № 171 "Партнер Нефть" [16:59:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:59:47]line СНО: Общий режим [16:59:47]line Чек 389 27.10.2024 16:59 [16:59:47]line Смена: 544 ФФД: 1.0 [16:59:47]line ЗНМ: 0300000109 [16:59:47]line РНМ: 0000000000091777 [16:59:47]line Версия ККМ: 001 [16:59:47]line ФМ: 0000000000871756 [16:59:47]line ФД: 202097 [16:59:47]line ФПД: 153480730746727 [16:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165946&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202097&fm=153480730746727&tin=02508201610067®Number=0000000000091777&sum=120000 [16:59:47]written 0, free lines is 4095 [16:59:48]Write to MH i2c: 01 00 00 E5 00 E5 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 07 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 98 0C 90 [16:59:48]RasterBufferAndPrint [16:59:48]line [16:59:48]line [16:59:48]line [16:59:48]line [16:59:48]line [16:59:48]written 0, free lines is 3239 [16:59:48]MH_Cut [16:59:48]Write to MH i2c: D1 01 00 EC 00 01 BE [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: D1 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: D1 01 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: D1 01 00 EC 00 00 BD [16:59:48]Write to MH i2c: 01 00 00 ED 00 ED [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]ConnectInit Can't take IP for lk.salyk.kg [16:59:48]CommunicateWithHost connect error [16:59:49]CommunicateWithHost err = -1 [16:59:49]OFD Sender: Server communicate error [16:59:49]OFD Sender: Processing packet 202095 [packets to send 114, broken 111] [16:59:49]ProducePacketName [16:59:49]name=ofd_packets/00202095 [16:59:49]OFD Sender: To server: pG, [16:59:49]CommunicateWithHost lk.salyk.kg:30040 [16:59:49]ConnectInit lk.salyk.kg [16:59:49]*** Cut start [16:59:49]*** Purtial cut [16:59:49]*** Stage 1: CUTSNS_PIN = 1 [16:59:49]Connected sock=10 [16:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D2 AC 04 01 A8 64 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 79 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 15 03 00 35 04 06 00 85 45 71 24 3A E8 42 51 1B 75 EB 2A D3 83 [16:59:49]Read from MH i2c: 01 [16:59:49]MH_I2C_Read... [16:59:49]*** Stop cut motor [16:59:49]*** Cut end [16:59:49]Read from MH i2c: 01 07 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [16:59:49]process_action close_receipt done [16:59:49]requested_data is exist [16:59:49]produce_requested_data [16:59:49]requested_item fm.sn is exist - process it [16:59:49]wFMCommunicate request_size=4 [16:59:49]MH_SAM_APDU [16:59:49]CAPDU: 80 11 00 00 [16:59:49]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:49]Read from MH i2c: E2 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 17 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [16:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:59:49]wFMCommunicate OK [16:59:49]requested_item fd.num is exist - process it [16:59:49]SAM_PROTO_GetFieldsCounters [16:59:49]wFMCommunicate request_size=4 [16:59:49]MH_SAM_APDU [16:59:49]CAPDU: 80 13 00 00 [16:59:49]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E9 BA 47 00 C2 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 15 03 00 F4 03 04 00 3C 1D 1E 67 B6 04 01 00 00 B7 0F 6D 2C F7 F2 BB 82 [16:59:49]CommunicateWithHost err = 0 [16:59:49]CheckOFDResponse [16:59:49]1017 (14) - 77093643461234 [16:59:49]1041 (16) - 0000000000871756 [16:59:49]1040 (4) - 202095 [16:59:49]1012 (4) - 27.10.2024 11:00 [16:59:49]1206 (1) - 0 [16:59:49]OFD Sender: Remove packet 202095 [16:59:49]ProducePacketName [16:59:49]name=ofd_packets/00202095 [16:59:49]NVStorageDeleteData [16:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:49]Read from MH i2c: E2 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 62 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 71 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [16:59:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 71 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:49]wFMCommunicate OK [16:59:49]SAM_PROTO_GetFieldsCounters done [16:59:49]requested_item shift.num is exist - process it [16:59:49]requested_item shift.opened is exist - process it [16:59:49]req_shift_opened [16:59:49]FM_GetShiftState [16:59:49]SAM_PROTO_GetShiftState [16:59:49]wFMCommunicate request_size=4 [16:59:49]MH_SAM_APDU [16:59:49]CAPDU: 80 13 01 00 [16:59:49]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [16:59:49]Write i2c OK [16:59:49]MH_I2C_Read... [16:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:49]Read from MH i2c: E2 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 0E 00 [16:59:49]MH_I2C_Read... [16:59:49]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6F [16:59:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [16:59:49]wFMCommunicate OK [16:59:49]SAM_PROTO_GetShiftState done [16:59:49]FM_GetShiftState done [16:59:49]req_shift_opened done [16:59:49]requested_item shift.open_date is exist - process it [16:59:49]req_shift_open_date [16:59:49]req_shift_open_date done [16:59:49]produce_requested_data done [16:59:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202097,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [16:59:49]process_action_free close_receipt [16:59:49]json_value_free [16:59:49]json_value_free done [16:59:49]process_json_proto returns [16:59:49]Send response to host [16:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202097,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [16:59:49]free response buf [16:59:49]execute_script done [16:59:49]execute_script returns [16:59:49]free content buf [16:59:49]Sock 8.Close socket [16:59:49]Sock 8.Thread stoped [16:59:50]OFD Sender: Processing packet 202096 [packets to send 113, broken 111] [16:59:50]ProducePacketName [16:59:50]name=ofd_packets/00202096 [16:59:50]OFD Sender: To server: pG, [16:59:50]CommunicateWithHost lk.salyk.kg:30040 [16:59:50]ConnectInit lk.salyk.kg [16:59:50]Connected sock=10 [16:59:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C4 38 04 01 78 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 32 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 7D 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 15 03 00 35 04 06 00 31 27 56 28 B5 AC 38 99 F4 66 4E E9 1B 42 [16:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 05 AC 47 00 4D 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 15 03 00 F4 03 04 00 3D 1D 1E 67 B6 04 01 00 00 87 21 50 D6 6D 65 0E D1 [16:59:50]CommunicateWithHost err = 0 [16:59:50]CheckOFDResponse [16:59:50]1017 (14) - 77093643461234 [16:59:50]1041 (16) - 0000000000871756 [16:59:50]1040 (4) - 202096 [16:59:50]1012 (4) - 27.10.2024 11:00 [16:59:50]1206 (1) - 0 [16:59:50]OFD Sender: Remove packet 202096 [16:59:50]ProducePacketName [16:59:50]name=ofd_packets/00202096 [16:59:50]NVStorageDeleteData [16:59:50]OFD Sender: Processing packet 202097 [packets to send 112, broken 111] [16:59:50]ProducePacketName [16:59:50]name=ofd_packets/00202097 [16:59:50]OFD Sender: To server: pG, [16:59:50]CommunicateWithHost lk.salyk.kg:30040 [16:59:50]ConnectInit lk.salyk.kg [16:59:51]Connected sock=8 [16:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7E 39 07 01 D3 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 82 71 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 15 03 00 35 04 06 00 8B 97 04 6F 9F 67 6F 74 BF 06 4A 80 5D 75 [16:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 60 B4 47 00 6C DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 15 03 00 F4 03 04 00 3E 1D 1E 67 B6 04 01 00 00 FB 56 99 F2 91 1F A6 77 [16:59:51]CommunicateWithHost err = 0 [16:59:51]CheckOFDResponse [16:59:51]1017 (14) - 77093643461234 [16:59:51]1041 (16) - 0000000000871756 [16:59:51]1040 (4) - 202097 [16:59:51]1012 (4) - 27.10.2024 11:00 [16:59:51]1206 (1) - 0 [16:59:51]OFD Sender: Remove packet 202097 [16:59:51]ProducePacketName [16:59:51]name=ofd_packets/00202097 [16:59:51]NVStorageDeleteData [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:15]accept exits with 9 [17:02:15]New connection [17:02:15]New thread 3067153764 created [17:02:15]Thread 3067297124 joined [17:02:15]Waiting for new connection... [17:02:15] Sock 9.Parse request [17:02:15]Sock 9.Check first char [17:02:15]Sock 9.First char is OK [17:02:15]request: POST /json_proto HTTP/1.0 [17:02:15]Method: POST [17:02:15]URL: /json_proto [17:02:15]Method is POST - this is cgi request [17:02:15]url: /json_proto [17:02:15]query_string will be loaded in cgi processing [17:02:15]execute_cgi json_proto POST (null) [17:02:15]execute_cgi path=json_proto method=POST [17:02:15]POST find Content-Length [17:02:15]Host: 172.17.63.195:8080 [17:02:15]Content-Length: 677 [17:02:15]Content-Type: application/json [17:02:15] [17:02:15]POST finish read [17:02:15]Found Content-Length = 677 [17:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:15]execute_script... [17:02:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:15]POST & json_proto [17:02:15]process_json_proto [17:02:15]json parsed OK: [17:02:15]protocol is kg_v1.0 [17:02:15]action value=close_receipt [17:02:15]process_action close_receipt [17:02:15]cmd_close_receipt [17:02:15]MH_GetDate [17:02:15]Write to MH i2c: F0 00 00 F1 00 E0 [17:02:15]Write i2c OK [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: F0 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: F0 09 00 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: F0 09 00 F1 00 00 17 72 1E 67 47 1B 1E 67 DE [17:02:15]GetLastDocTimeStamp 1730048386 [17:02:15]current date 1730048535 [17:02:15]FM_GetShiftState [17:02:15]SAM_PROTO_GetShiftState [17:02:15]wFMCommunicate request_size=4 [17:02:15]MH_SAM_APDU [17:02:15]CAPDU: 80 13 01 00 [17:02:15]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [17:02:15]Write i2c OK [17:02:15]MH_I2C_Read... [17:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:15]Read from MH i2c: E2 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: E2 0E 00 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 71 [17:02:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:02:15]wFMCommunicate OK [17:02:15]SAM_PROTO_GetShiftState done [17:02:15]FM_GetShiftState done [17:02:15]opened in 1729987312 [17:02:15]opened+sec_in_day 1730073712 [17:02:15]quantity*price = 50010 [17:02:15]sum+1 = 50012 [17:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 390 27.10.2024 17:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202098 ФПД: 187346377487196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170215&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202098&fm=187346377487196&tin=02508201610067®Number=0000000000091777&sum=50000 [17:02:16]StoreToDocumentArchive [17:02:16]shift 544 fd 202098 [17:02:16]save to /storage/0544/doc_00202098 [17:02:16]save last doc name /storage/0544/doc_00202098 to /storage/kkm_last_doc_name [17:02:16]save OK [17:02:16]Clear old archive folders... [17:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:16]tlvbuf is 006B3FF0 [17:02:16]SAM_PROTO_ClearQueue [17:02:16]wFMCommunicate request_size=4 [17:02:16]MH_SAM_APDU [17:02:16]CAPDU: 80 09 00 00 [17:02:16]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:16]Read from MH i2c: E2 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 03 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [17:02:16]RAPDU: 90 00 [17:02:16]wFMCommunicate OK [17:02:16]SAM_PROTO_ClearQueue done [17:02:16]KKMCreateOFDPacket [17:02:16]OFDProtocolAddRootSTLVToBuf [17:02:16]FM_MakeSignedData [17:02:16]FM_MakeSignedData [17:02:16]SAM_PROTO_SignData [17:02:16]wFMCommunicate request_size=4 [17:02:16]MH_SAM_APDU [17:02:16]CAPDU: 80 0D 01 02 [17:02:16]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:16]Read from MH i2c: E2 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 03 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [17:02:16]RAPDU: 90 00 [17:02:16]wFMCommunicate OK [17:02:16]wFMCommunicate request_size=255 [17:02:16]MH_SAM_APDU [17:02:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 17 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 15 03 00 35 04 06 00 AA [17:02:16]Write to MH i2c: E2 02 01 01 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 17 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 15 03 00 35 04 06 00 AA 00 00 D2 [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:16]Read from MH i2c: E2 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 03 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [17:02:16]RAPDU: 90 00 [17:02:16]wFMCommunicate OK [17:02:16]wFMCommunicate request_size=10 [17:02:16]MH_SAM_APDU [17:02:16]CAPDU: 80 0D 02 02 05 63 FA 47 B3 5C [17:02:16]Write to MH i2c: E2 0D 00 02 01 80 0D 02 02 05 00 63 FA 47 B3 5C 00 00 3A [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:16]Read from MH i2c: E2 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 03 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [17:02:16]RAPDU: 90 00 [17:02:16]wFMCommunicate OK [17:02:16]wFMCommunicate request_size=4 [17:02:16]MH_SAM_APDU [17:02:16]CAPDU: 80 0D 03 02 [17:02:16]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:16]Read from MH i2c: E2 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 0B 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 0B 00 03 01 00 2C 4F 96 DA D9 0B 15 8C 90 00 F0 [17:02:16]RAPDU: 2C 4F 96 DA D9 0B 15 8C 90 00 [17:02:16]wFMCommunicate OK [17:02:16]SAM_PROTO_SignData done [17:02:16]FM_MakeSignedData done [17:02:16]CreateOFDProtocolMessage [17:02:16]wFMCommunicate request_size=4 [17:02:16]MH_SAM_APDU [17:02:16]CAPDU: 80 11 00 00 [17:02:16]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:16]Read from MH i2c: E2 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 17 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [17:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:02:16]wFMCommunicate OK [17:02:16]CreateOFDProtocolMessage done [17:02:16]OFDSenderStorePacket 202098 [17:02:16]StoreOFDPacket docnum=202098 [17:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A7 6E 07 01 CF E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 17 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 15 03 00 35 04 06 00 AA 63 FA 47 B3 5C 2C 4F 96 DA D9 0B 15 8C [17:02:16]CheckFolder [17:02:16]dirname=/storage/ofd_packets [17:02:16]CheckFolder done [17:02:16]ProducePacketName [17:02:16]name=ofd_packets/00202098 [17:02:16]NVStorageSaveData ofd_packets/00202098 [17:02:16]File name is /storage/ofd_packets/00202098 [17:02:16]Write 301 bytes [17:02:16]NVStorageSaveData done [17:02:16]OFDSenderStorePacket done [17:02:16]KKMCreateOFDPacket done [17:02:16]NVStorageSaveData kkm_last_timestamp [17:02:16]File name is /storage/kkm_last_timestamp [17:02:16]Write 4 bytes [17:02:16]NVStorageSaveData done [17:02:16]ExternCall_PrintAddStr [17:02:16]wPrintStart [17:02:16]Write to MH i2c: 01 00 00 05 01 06 [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: 01 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: 01 07 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [17:02:16]RasterBufferAndPrint [17:02:16]line Счет N : (1)449868 [17:02:16]line ИНН: 02508201610067 [17:02:16]line Контрольно-Кассовый Чек [17:02:16]line ПРОДАЖА [17:02:16]line ТРК (МРК, ГНК) : 51 [17:02:16]line Товар: 2710124500 [17:02:16]line Аи-95-К-3 [17:02:16]line 6.740 * 74.20 [17:02:16]line = 500.11 [17:02:16]line НДС 12% НСП 1% [17:02:16]line > о реализуемом товаре [17:02:16]line ОКРУГЛЕНИЕ: -0.11 [17:02:16]line ИТОГО: 500.00 [17:02:16]line Внесено: 500.00 [17:02:16]line СДАЧА: 0.00 [17:02:16]line НСП 1% : 4.43 [17:02:16]line НДС 12% : 53.11 [17:02:16]line Наличными: 500.00 [17:02:16]line Безнал.: 0.00 [17:02:16]line Место: АЗС № 171 "Партнер Нефть" [17:02:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:02:16]line СНО: Общий режим [17:02:16]line Чек 390 27.10.2024 17:02 [17:02:16]line Смена: 544 ФФД: 1.0 [17:02:16]line ЗНМ: 0300000109 [17:02:16]line РНМ: 0000000000091777 [17:02:16]line Версия ККМ: 001 [17:02:16]line ФМ: 0000000000871756 [17:02:16]line ФД: 202098 [17:02:16]line ФПД: 187346377487196 [17:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170215&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202098&fm=187346377487196&tin=02508201610067®Number=0000000000091777&sum=50000 [17:02:17]OFD Sender: Processing packet 202098 [packets to send 112, broken 111] [17:02:17]ProducePacketName [17:02:17]name=ofd_packets/00202098 [17:02:17]OFD Sender: To server: pG, [17:02:17]CommunicateWithHost lk.salyk.kg:30040 [17:02:17]ConnectInit lk.salyk.kg [17:02:17]written 0, free lines is 4095 [17:02:17]Connected sock=10 [17:02:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A7 6E 07 01 CF E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 17 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 15 03 00 35 04 06 00 AA 63 FA 47 B3 5C 2C 4F 96 DA D9 0B 15 8C [17:02:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 88 4B 47 00 F6 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 15 03 00 F4 03 04 00 D0 1D 1E 67 B6 04 01 00 00 B2 17 C7 D6 95 4A 74 D2 [17:02:17]CommunicateWithHost err = 0 [17:02:17]CheckOFDResponse [17:02:17]1017 (14) - 77093643461234 [17:02:17]1041 (16) - 0000000000871756 [17:02:17]1040 (4) - 202098 [17:02:17]1012 (4) - 27.10.2024 11:02 [17:02:17]1206 (1) - 0 [17:02:17]OFD Sender: Remove packet 202098 [17:02:17]ProducePacketName [17:02:17]name=ofd_packets/00202098 [17:02:17]NVStorageDeleteData [17:02:17]Write to MH i2c: 01 00 00 30 01 31 [17:02:17]Write i2c OK [17:02:17]MH_I2C_Read... [17:02:17]Read from MH i2c: 01 [17:02:17]MH_I2C_Read... [17:02:17]Read from MH i2c: 01 07 00 [17:02:17]MH_I2C_Read... [17:02:17]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 94 0C D8 [17:02:17]RasterBufferAndPrint [17:02:17]line [17:02:17]line [17:02:17]line [17:02:17]line [17:02:17]line [17:02:17]written 0, free lines is 3227 [17:02:17]MH_Cut [17:02:17]Write to MH i2c: D1 01 00 37 01 01 0A [17:02:17]Write i2c OK [17:02:17]MH_I2C_Read... [17:02:17]Read from MH i2c: D1 [17:02:17]MH_I2C_Read... [17:02:17]Read from MH i2c: D1 01 00 [17:02:17]MH_I2C_Read... [17:02:17]Read from MH i2c: D1 01 00 37 01 00 09 [17:02:17]Write to MH i2c: 01 00 00 38 01 39 [17:02:17]Write i2c OK [17:02:17]MH_I2C_Read... [17:02:17]OFD Sender: No OFD packet to send [17:02:18]*** Cut start [17:02:18]*** Purtial cut [17:02:18]*** Stage 1: CUTSNS_PIN = 1 [17:02:18]Read from MH i2c: 01 [17:02:18]MH_I2C_Read... [17:02:18]*** Stop cut motor [17:02:18]*** Cut end [17:02:18]Read from MH i2c: 01 07 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 FF 0F 4E [17:02:18]process_action close_receipt done [17:02:18]requested_data is exist [17:02:18]produce_requested_data [17:02:18]requested_item fm.sn is exist - process it [17:02:18]wFMCommunicate request_size=4 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 11 00 00 [17:02:18]Write to MH i2c: E2 08 00 39 01 80 11 00 00 00 00 00 00 B4 [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 17 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 17 00 39 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [17:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:02:18]wFMCommunicate OK [17:02:18]requested_item fd.num is exist - process it [17:02:18]SAM_PROTO_GetFieldsCounters [17:02:18]wFMCommunicate request_size=4 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 13 00 00 [17:02:18]Write to MH i2c: E2 08 00 3A 01 80 13 00 00 00 00 00 00 B7 [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 62 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 62 00 3A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 72 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [17:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 72 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:18]wFMCommunicate OK [17:02:18]SAM_PROTO_GetFieldsCounters done [17:02:18]requested_item shift.num is exist - process it [17:02:18]requested_item shift.opened is exist - process it [17:02:18]req_shift_opened [17:02:18]FM_GetShiftState [17:02:18]SAM_PROTO_GetShiftState [17:02:18]wFMCommunicate request_size=4 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 13 01 00 [17:02:18]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 0E 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BB [17:02:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:02:18]wFMCommunicate OK [17:02:18]SAM_PROTO_GetShiftState done [17:02:18]FM_GetShiftState done [17:02:18]req_shift_opened done [17:02:18]requested_item shift.open_date is exist - process it [17:02:18]req_shift_open_date [17:02:18]req_shift_open_date done [17:02:18]produce_requested_data done [17:02:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202098,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:02:18]process_action_free close_receipt [17:02:18]json_value_free [17:02:18]json_value_free done [17:02:18]process_json_proto returns [17:02:18]Send response to host [17:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202098,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:02:18]free response buf [17:02:18]execute_script done [17:02:18]execute_script returns [17:02:18]free content buf [17:02:18]Sock 9.Close socket [17:02:18]Sock 9.Thread stoped [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:42]accept exits with 8 [17:04:42]New connection [17:04:42]New thread 3067297124 created [17:04:42]Thread 3067153764 joined [17:04:42]Waiting for new connection... [17:04:42] Sock 8.Parse request [17:04:42]Sock 8.Check first char [17:04:42]Sock 8.First char is OK [17:04:42]request: POST /json_proto HTTP/1.0 [17:04:42]Method: POST [17:04:42]URL: /json_proto [17:04:42]Method is POST - this is cgi request [17:04:42]url: /json_proto [17:04:42]query_string will be loaded in cgi processing [17:04:42]execute_cgi json_proto POST (null) [17:04:42]execute_cgi path=json_proto method=POST [17:04:42]POST find Content-Length [17:04:42]Host: 172.17.63.195:8080 [17:04:42]Content-Length: 769 [17:04:42]Content-Type: application/json [17:04:42] [17:04:42]POST finish read [17:04:42]Found Content-Length = 769 [17:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:42]execute_script... [17: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 : (1)449869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:42]POST & json_proto [17:04:42]process_json_proto [17:04:42]json parsed OK: [17:04:42]protocol is kg_v1.0 [17:04:42]action value=close_receipt [17:04:42]process_action close_receipt [17:04:42]cmd_close_receipt [17:04:42]MH_GetDate [17:04:42]Write to MH i2c: F0 00 00 3C 01 2C [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 09 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 09 00 3C 01 00 AB 72 1E 67 47 1B 1E 67 BE [17:04:42]GetLastDocTimeStamp 1730048535 [17:04:42]current date 1730048683 [17:04:42]FM_GetShiftState [17:04:42]SAM_PROTO_GetShiftState [17:04:42]wFMCommunicate request_size=4 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 13 01 00 [17:04:42]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 0E 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BD [17:04:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:04:42]wFMCommunicate OK [17:04:42]SAM_PROTO_GetShiftState done [17:04:42]FM_GetShiftState done [17:04:42]opened in 1729987312 [17:04:42]opened+sec_in_day 1730073712 [17:04:42]quantity*price = 100015 [17:04:42]sum+1 = 100017 [17:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 391 27.10.2024 17:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202099 ФПД: 206775058087161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202099&fm=206775058087161&tin=02508201610067®Number=0000000000091777&sum=100016 [17:04:43]StoreToDocumentArchive [17:04:43]shift 544 fd 202099 [17:04:43]save to /storage/0544/doc_00202099 [17:04:43]save last doc name /storage/0544/doc_00202099 to /storage/kkm_last_doc_name [17:04:43]save OK [17:04:43]Clear old archive folders... [17:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:43]tlvbuf is 006B9D70 [17:04:43]SAM_PROTO_ClearQueue [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 09 00 00 [17:04:43]Write to MH i2c: E2 08 00 4A 01 80 09 00 00 00 00 00 00 BD [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 03 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [17:04:44]RAPDU: 90 00 [17:04:44]wFMCommunicate OK [17:04:44]SAM_PROTO_ClearQueue done [17:04:44]KKMCreateOFDPacket [17:04:44]OFDProtocolAddRootSTLVToBuf [17:04:44]FM_MakeSignedData [17:04:44]FM_MakeSignedData [17:04:44]SAM_PROTO_SignData [17:04:44]wFMCommunicate request_size=4 [17:04:44]MH_SAM_APDU [17:04:44]CAPDU: 80 0D 01 02 [17:04:44]Write to MH i2c: E2 08 00 4B 01 80 0D 01 02 00 00 00 00 C5 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 03 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [17:04:44]RAPDU: 90 00 [17:04:44]wFMCommunicate OK [17:04:44]wFMCommunicate request_size=255 [17:04:44]MH_SAM_APDU [17:04:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 01 00 00 F4 03 04 00 AB 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 15 03 00 35 04 06 00 BC [17:04:44]Write to MH i2c: E2 02 01 4C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 01 00 00 F4 03 04 00 AB 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 15 03 00 35 04 06 00 BC 00 00 06 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 03 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [17:04:44]RAPDU: 90 00 [17:04:44]wFMCommunicate OK [17:04:44]wFMCommunicate request_size=10 [17:04:44]MH_SAM_APDU [17:04:44]CAPDU: 80 0D 02 02 05 0F 91 E2 BC F9 [17:04:44]Write to MH i2c: E2 0D 00 4D 01 80 0D 02 02 05 00 0F 91 E2 BC F9 00 00 09 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 03 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [17:04:44]RAPDU: 90 00 [17:04:44]wFMCommunicate OK [17:04:44]wFMCommunicate request_size=4 [17:04:44]MH_SAM_APDU [17:04:44]CAPDU: 80 0D 03 02 [17:04:44]Write to MH i2c: E2 08 00 4E 01 80 0D 03 02 00 00 00 00 CA [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 0B 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 0B 00 4E 01 00 95 10 00 50 0D 80 0F 2D 90 00 89 [17:04:44]RAPDU: 95 10 00 50 0D 80 0F 2D 90 00 [17:04:44]wFMCommunicate OK [17:04:44]SAM_PROTO_SignData done [17:04:44]FM_MakeSignedData done [17:04:44]CreateOFDProtocolMessage [17:04:44]wFMCommunicate request_size=4 [17:04:44]MH_SAM_APDU [17:04:44]CAPDU: 80 11 00 00 [17:04:44]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 17 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [17:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:04:44]wFMCommunicate OK [17:04:44]CreateOFDProtocolMessage done [17:04:44]OFDSenderStorePacket 202099 [17:04:44]StoreOFDPacket docnum=202099 [17:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C4 80 07 01 CE E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 01 00 00 F4 03 04 00 AB 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 15 03 00 35 04 06 00 BC 0F 91 E2 BC F9 95 10 00 50 0D 80 0F 2D [17:04:44]CheckFolder [17:04:44]dirname=/storage/ofd_packets [17:04:44]CheckFolder done [17:04:44]ProducePacketName [17:04:44]name=ofd_packets/00202099 [17:04:44]NVStorageSaveData ofd_packets/00202099 [17:04:44]File name is /storage/ofd_packets/00202099 [17:04:44]Write 301 bytes [17:04:44]NVStorageSaveData done [17:04:44]OFDSenderStorePacket done [17:04:44]KKMCreateOFDPacket done [17:04:44]NVStorageSaveData kkm_last_timestamp [17:04:44]File name is /storage/kkm_last_timestamp [17:04:44]Write 4 bytes [17:04:44]NVStorageSaveData done [17:04:44]ExternCall_PrintAddStr [17:04:44]wPrintStart [17:04:44]Write to MH i2c: 01 00 00 50 01 51 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [17:04:44]RasterBufferAndPrint [17:04:44]line Счет N : (1)449869 [17:04:44]line ИНН: 02508201610067 [17:04:44]line Контрольно-Кассовый Чек [17:04:44]line ПРОДАЖА [17:04:44]line ТРК (МРК, ГНК) : 41 [17:04:44]line Товар: 2710124130 [17:04:44]line Аи-92-К-2 [17:04:44]line 14.950 * 66.90 [17:04:44]line = 1000.16 [17:04:44]line НДС 12% НСП 1% [17:04:44]line > о реализуемом товаре [17:04:44]line ИТОГО: 1000.16 [17:04:44]line НСП 1% : 8.85 [17:04:44]line НДС 12% : 106.21 [17:04:44]line Наличными: 0.00 [17:04:44]line Безнал.: 1000.16 [17:04:44]line Место: АЗС № 171 "Партнер Нефть" [17:04:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:04:44]line СНО: Общий режим [17:04:44]line Чек 391 27.10.2024 17:04 [17:04:44]line Смена: 544 ФФД: 1.0 [17:04:44]line ЗНМ: 0300000109 [17:04:44]line РНМ: 0000000000091777 [17:04:44]line Версия ККМ: 001 [17:04:44]line Платежная система: Mbank [17:04:44]line ФМ: 0000000000871756 [17:04:44]line ФД: 202099 [17:04:44]line ФПД: 206775058087161 [17:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202099&fm=206775058087161&tin=02508201610067®Number=0000000000091777&sum=100016 [17:04:44]OFD Sender: Processing packet 202099 [packets to send 112, broken 111] [17:04:44]ProducePacketName [17:04:44]name=ofd_packets/00202099 [17:04:44]OFD Sender: To server: pG, [17:04:44]CommunicateWithHost lk.salyk.kg:30040 [17:04:44]ConnectInit lk.salyk.kg [17:04:44]written 0, free lines is 4095 [17:04:44]Connected sock=10 [17:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C4 80 07 01 CE E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 87 01 00 00 F4 03 04 00 AB 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 15 03 00 35 04 06 00 BC 0F 91 E2 BC F9 95 10 00 50 0D 80 0F 2D [17:04:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 00 77 47 00 95 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 15 03 00 F4 03 04 00 64 1E 1E 67 B6 04 01 00 00 1D 8D A6 85 CE D3 BE C6 [17:04:45]CommunicateWithHost err = 0 [17:04:45]CheckOFDResponse [17:04:45]1017 (14) - 77093643461234 [17:04:45]1041 (16) - 0000000000871756 [17:04:45]1040 (4) - 202099 [17:04:45]1012 (4) - 27.10.2024 11:05 [17:04:45]1206 (1) - 0 [17:04:45]OFD Sender: Remove packet 202099 [17:04:45]ProducePacketName [17:04:45]name=ofd_packets/00202099 [17:04:45]NVStorageDeleteData [17:04:45]Write to MH i2c: 01 00 00 79 01 7A [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 07 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 D5 0C 62 [17:04:45]RasterBufferAndPrint [17:04:45]line [17:04:45]line [17:04:45]line [17:04:45]line [17:04:45]line [17:04:45]written 0, free lines is 3289 [17:04:45]MH_Cut [17:04:45]Write to MH i2c: D1 01 00 80 01 01 53 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: D1 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: D1 01 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: D1 01 00 80 01 00 52 [17:04:45]Write to MH i2c: 01 00 00 81 01 82 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]OFD Sender: No OFD packet to send [17:04:46]*** Cut start [17:04:46]*** Purtial cut [17:04:46]*** Stage 1: CUTSNS_PIN = 1 [17:04:46]Read from MH i2c: 01 [17:04:46]MH_I2C_Read... [17:04:46]*** Stop cut motor [17:04:46]*** Cut end [17:04:46]Read from MH i2c: 01 07 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 FF 0F 97 [17:04:46]process_action close_receipt done [17:04:46]requested_data is exist [17:04:46]produce_requested_data [17:04:46]requested_item fm.sn is exist - process it [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 11 00 00 [17:04:46]Write to MH i2c: E2 08 00 82 01 80 11 00 00 00 00 00 00 FD [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 17 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 17 00 82 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 52 [17:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:04:46]wFMCommunicate OK [17:04:46]requested_item fd.num is exist - process it [17:04:46]SAM_PROTO_GetFieldsCounters [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 13 00 00 [17:04:46]Write to MH i2c: E2 08 00 83 01 80 13 00 00 00 00 00 00 00 [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 62 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 62 00 83 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 73 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 73 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:46]wFMCommunicate OK [17:04:46]SAM_PROTO_GetFieldsCounters done [17:04:46]requested_item shift.num is exist - process it [17:04:46]requested_item shift.opened is exist - process it [17:04:46]req_shift_opened [17:04:46]FM_GetShiftState [17:04:46]SAM_PROTO_GetShiftState [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 13 01 00 [17:04:46]Write to MH i2c: E2 08 00 84 01 80 13 01 00 00 00 00 00 02 [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 0E 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 0E 00 84 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 04 [17:04:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:04:46]wFMCommunicate OK [17:04:46]SAM_PROTO_GetShiftState done [17:04:46]FM_GetShiftState done [17:04:46]req_shift_opened done [17:04:46]requested_item shift.open_date is exist - process it [17:04:46]req_shift_open_date [17:04:46]req_shift_open_date done [17:04:46]produce_requested_data done [17:04:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202099,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:04:46]process_action_free close_receipt [17:04:46]json_value_free [17:04:46]json_value_free done [17:04:46]process_json_proto returns [17:04:46]Send response to host [17:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202099,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:04:46]free response buf [17:04:46]execute_script done [17:04:46]execute_script returns [17:04:46]free content buf [17:04:46]Sock 8.Close socket [17:04:46]Sock 8.Thread stoped [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:04]accept exits with 9 [17:05:04]New connection [17:05:04]New thread 3067153764 created [17:05:04]Thread 3067297124 joined [17:05:04]Waiting for new connection... [17:05:04] Sock 9.Parse request [17:05:04]Sock 9.Check first char [17:05:04]Sock 9.First char is OK [17:05:04]request: POST /json_proto HTTP/1.0 [17:05:04]Method: POST [17:05:04]URL: /json_proto [17:05:04]Method is POST - this is cgi request [17:05:04]url: /json_proto [17:05:04]query_string will be loaded in cgi processing [17:05:04]execute_cgi json_proto POST (null) [17:05:04]execute_cgi path=json_proto method=POST [17:05:04]POST find Content-Length [17:05:04]Host: 172.17.63.195:8080 [17:05:04]Content-Length: 677 [17:05:04]Content-Type: application/json [17:05:04] [17:05:04]POST finish read [17:05:04]Found Content-Length = 677 [17:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:05:04]execute_script... [17:05:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:05:04]POST & json_proto [17:05:04]process_json_proto [17:05:04]json parsed OK: [17:05:04]protocol is kg_v1.0 [17:05:04]action value=close_receipt [17:05:04]process_action close_receipt [17:05:04]cmd_close_receipt [17:05:04]MH_GetDate [17:05:04]Write to MH i2c: F0 00 00 85 01 75 [17:05:04]Write i2c OK [17:05:04]MH_I2C_Read... [17:05:04]Read from MH i2c: F0 [17:05:04]MH_I2C_Read... [17:05:04]Read from MH i2c: F0 09 00 [17:05:04]MH_I2C_Read... [17:05:04]Read from MH i2c: F0 09 00 85 01 00 C0 72 1E 67 47 1B 1E 67 1C [17:05:04]GetLastDocTimeStamp 1730048683 [17:05:04]current date 1730048704 [17:05:04]FM_GetShiftState [17:05:04]SAM_PROTO_GetShiftState [17:05:04]wFMCommunicate request_size=4 [17:05:04]MH_SAM_APDU [17:05:04]CAPDU: 80 13 01 00 [17:05:04]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [17:05:04]Write i2c OK [17:05:04]MH_I2C_Read... [17:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:04]Read from MH i2c: E2 [17:05:04]MH_I2C_Read... [17:05:04]Read from MH i2c: E2 0E 00 [17:05:04]MH_I2C_Read... [17:05:04]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 06 [17:05:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:05:04]wFMCommunicate OK [17:05:04]SAM_PROTO_GetShiftState done [17:05:04]FM_GetShiftState done [17:05:04]opened in 1729987312 [17:05:04]opened+sec_in_day 1730073712 [17:05:04]quantity*price = 50041 [17:05:04]sum+1 = 50042 [17:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 392 27.10.2024 17:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202100 ФПД: 156650564832265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170504&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202100&fm=156650564832265&tin=02508201610067®Number=0000000000091777&sum=50000 [17:05:05]StoreToDocumentArchive [17:05:05]shift 544 fd 202100 [17:05:05]save to /storage/0544/doc_00202100 [17:05:05]save last doc name /storage/0544/doc_00202100 to /storage/kkm_last_doc_name [17:05:05]save OK [17:05:05]Clear old archive folders... [17:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:05]tlvbuf is 006742B0 [17:05:05]SAM_PROTO_ClearQueue [17:05:05]wFMCommunicate request_size=4 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 09 00 00 [17:05:05]Write to MH i2c: E2 08 00 93 01 80 09 00 00 00 00 00 00 06 [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [17:05:05]RAPDU: 90 00 [17:05:05]wFMCommunicate OK [17:05:05]SAM_PROTO_ClearQueue done [17:05:05]KKMCreateOFDPacket [17:05:05]OFDProtocolAddRootSTLVToBuf [17:05:05]FM_MakeSignedData [17:05:05]FM_MakeSignedData [17:05:05]SAM_PROTO_SignData [17:05:05]wFMCommunicate request_size=4 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 0D 01 02 [17:05:05]Write to MH i2c: E2 08 00 94 01 80 0D 01 02 00 00 00 00 0E [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [17:05:05]RAPDU: 90 00 [17:05:05]wFMCommunicate OK [17:05:05]wFMCommunicate request_size=255 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 F4 03 04 00 C0 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 15 03 00 35 04 06 00 8E [17:05:05]Write to MH i2c: E2 02 01 95 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 F4 03 04 00 C0 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 15 03 00 35 04 06 00 8E 00 00 1E [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [17:05:05]RAPDU: 90 00 [17:05:05]wFMCommunicate OK [17:05:05]wFMCommunicate request_size=10 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 0D 02 02 05 79 0D 45 4C 09 [17:05:05]Write to MH i2c: E2 0D 00 96 01 80 0D 02 02 05 00 79 0D 45 4C 09 00 00 3B [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [17:05:05]RAPDU: 90 00 [17:05:05]wFMCommunicate OK [17:05:05]wFMCommunicate request_size=4 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 0D 03 02 [17:05:05]Write to MH i2c: E2 08 00 97 01 80 0D 03 02 00 00 00 00 13 [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 0B 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 0B 00 97 01 00 9E 4A 1D C7 65 C1 59 C9 90 00 28 [17:05:05]RAPDU: 9E 4A 1D C7 65 C1 59 C9 90 00 [17:05:05]wFMCommunicate OK [17:05:05]SAM_PROTO_SignData done [17:05:05]FM_MakeSignedData done [17:05:05]CreateOFDProtocolMessage [17:05:05]wFMCommunicate request_size=4 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 11 00 00 [17:05:05]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 17 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [17:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:05:05]wFMCommunicate OK [17:05:05]CreateOFDProtocolMessage done [17:05:05]OFDSenderStorePacket 202100 [17:05:05]StoreOFDPacket docnum=202100 [17:05:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 76 AD 07 01 B9 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 F4 03 04 00 C0 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 15 03 00 35 04 06 00 8E 79 0D 45 4C 09 9E 4A 1D C7 65 C1 59 C9 [17:05:05]CheckFolder [17:05:05]dirname=/storage/ofd_packets [17:05:05]CheckFolder done [17:05:05]ProducePacketName [17:05:05]name=ofd_packets/00202100 [17:05:05]NVStorageSaveData ofd_packets/00202100 [17:05:05]File name is /storage/ofd_packets/00202100 [17:05:05]Write 301 bytes [17:05:05]NVStorageSaveData done [17:05:05]OFDSenderStorePacket done [17:05:05]KKMCreateOFDPacket done [17:05:05]NVStorageSaveData kkm_last_timestamp [17:05:05]File name is /storage/kkm_last_timestamp [17:05:05]Write 4 bytes [17:05:05]NVStorageSaveData done [17:05:05]ExternCall_PrintAddStr [17:05:05]wPrintStart [17:05:05]Write to MH i2c: 01 00 00 99 01 9A [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 07 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [17:05:05]RasterBufferAndPrint [17:05:05]line Счет N : (1)449870 [17:05:05]line ИНН: 02508201610067 [17:05:05]line Контрольно-Кассовый Чек [17:05:05]line ПРОДАЖА [17:05:05]line ТРК (МРК, ГНК) : 31 [17:05:05]line Товар: 2710124130 [17:05:05]line Аи-92-К-2 [17:05:05]line 7.480 * 66.90 [17:05:05]line = 500.41 [17:05:05]line НДС 12% НСП 1% [17:05:05]line > о реализуемом товаре [17:05:05]line ОКРУГЛЕНИЕ: -0.41 [17:05:05]line ИТОГО: 500.00 [17:05:05]line Внесено: 500.00 [17:05:05]line СДАЧА: 0.00 [17:05:05]line НСП 1% : 4.43 [17:05:05]line НДС 12% : 53.14 [17:05:05]line Наличными: 500.00 [17:05:05]line Безнал.: 0.00 [17:05:05]line Место: АЗС № 171 "Партнер Нефть" [17:05:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:05:05]line СНО: Общий режим [17:05:05]line Чек 392 27.10.2024 17:05 [17:05:05]line Смена: 544 ФФД: 1.0 [17:05:05]line ЗНМ: 0300000109 [17:05:05]line РНМ: 0000000000091777 [17:05:05]line Версия ККМ: 001 [17:05:05]line ФМ: 0000000000871756 [17:05:05]line ФД: 202100 [17:05:05]line ФПД: 156650564832265 [17:05:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170504&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202100&fm=156650564832265&tin=02508201610067®Number=0000000000091777&sum=50000 [17:05:06]OFD Sender: Processing packet 202100 [packets to send 112, broken 111] [17:05:06]ProducePacketName [17:05:06]name=ofd_packets/00202100 [17:05:06]OFD Sender: To server: pG, [17:05:06]CommunicateWithHost lk.salyk.kg:30040 [17:05:06]ConnectInit lk.salyk.kg [17:05:06]written 0, free lines is 4095 [17:05:06]Connected sock=10 [17:05:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 76 AD 07 01 B9 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 F4 03 04 00 C0 72 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 15 03 00 35 04 06 00 8E 79 0D 45 4C 09 9E 4A 1D C7 65 C1 59 C9 [17:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B3 40 47 00 B2 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 15 03 00 F4 03 04 00 79 1E 1E 67 B6 04 01 00 00 9A 17 1D 08 19 26 B8 22 [17:05:06]CommunicateWithHost err = 0 [17:05:06]CheckOFDResponse [17:05:06]1017 (14) - 77093643461234 [17:05:06]1041 (16) - 0000000000871756 [17:05:06]1040 (4) - 202100 [17:05:06]1012 (4) - 27.10.2024 11:05 [17:05:06]1206 (1) - 0 [17:05:06]OFD Sender: Remove packet 202100 [17:05:06]ProducePacketName [17:05:06]name=ofd_packets/00202100 [17:05:06]NVStorageDeleteData [17:05:06]Write to MH i2c: 01 00 00 C4 01 C5 [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 07 00 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 9F 0C 77 [17:05:06]RasterBufferAndPrint [17:05:06]line [17:05:06]line [17:05:06]line [17:05:06]line [17:05:06]line [17:05:06]written 0, free lines is 3237 [17:05:06]MH_Cut [17:05:06]Write to MH i2c: D1 01 00 CB 01 01 9E [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: D1 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: D1 01 00 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: D1 01 00 CB 01 00 9D [17:05:06]Write to MH i2c: 01 00 00 CC 01 CD [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]OFD Sender: No OFD packet to send [17:05:07]*** Cut start [17:05:07]*** Purtial cut [17:05:07]*** Stage 1: CUTSNS_PIN = 1 [17:05:07]Read from MH i2c: 01 [17:05:07]MH_I2C_Read... [17:05:07]*** Stop cut motor [17:05:07]*** Cut end [17:05:07]Read from MH i2c: 01 07 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 FF 0F E2 [17:05:07]process_action close_receipt done [17:05:07]requested_data is exist [17:05:07]produce_requested_data [17:05:07]requested_item fm.sn is exist - process it [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 11 00 00 [17:05:07]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 17 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 17 00 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9D [17:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:05:07]wFMCommunicate OK [17:05:07]requested_item fd.num is exist - process it [17:05:07]SAM_PROTO_GetFieldsCounters [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 13 00 00 [17:05:07]Write to MH i2c: E2 08 00 CE 01 80 13 00 00 00 00 00 00 4B [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 62 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 62 00 CE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 74 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [17:05:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 74 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:07]wFMCommunicate OK [17:05:07]SAM_PROTO_GetFieldsCounters done [17:05:07]requested_item shift.num is exist - process it [17:05:07]requested_item shift.opened is exist - process it [17:05:07]req_shift_opened [17:05:07]FM_GetShiftState [17:05:07]SAM_PROTO_GetShiftState [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 13 01 00 [17:05:07]Write to MH i2c: E2 08 00 CF 01 80 13 01 00 00 00 00 00 4D [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 0E 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 0E 00 CF 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4F [17:05:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:05:07]wFMCommunicate OK [17:05:07]SAM_PROTO_GetShiftState done [17:05:07]FM_GetShiftState done [17:05:07]req_shift_opened done [17:05:07]requested_item shift.open_date is exist - process it [17:05:07]req_shift_open_date [17:05:07]req_shift_open_date done [17:05:07]produce_requested_data done [17:05:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202100,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:05:07]process_action_free close_receipt [17:05:07]json_value_free [17:05:07]json_value_free done [17:05:07]process_json_proto returns [17:05:07]Send response to host [17:05:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202100,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:05:07]free response buf [17:05:07]execute_script done [17:05:07]execute_script returns [17:05:07]free content buf [17:05:07]Sock 9.Close socket [17:05:07]Sock 9.Thread stoped [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:28]accept exits with 8 [17:09:28]New connection [17:09:28]New thread 3067297124 created [17:09:28]Thread 3067153764 joined [17:09:28]Waiting for new connection... [17:09:28] Sock 8.Parse request [17:09:28]Sock 8.Check first char [17:09:28]Sock 8.First char is OK [17:09:28]request: POST /json_proto HTTP/1.0 [17:09:28]Method: POST [17:09:28]URL: /json_proto [17:09:28]Method is POST - this is cgi request [17:09:28]url: /json_proto [17:09:28]query_string will be loaded in cgi processing [17:09:28]execute_cgi json_proto POST (null) [17:09:28]execute_cgi path=json_proto method=POST [17:09:28]POST find Content-Length [17:09:28]Host: 172.17.63.195:8080 [17:09:28]Content-Length: 677 [17:09:28]Content-Type: application/json [17:09:28] [17:09:28]POST finish read [17:09:28]Found Content-Length = 677 [17:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:09:28]execute_script... [17:09:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:09:28]POST & json_proto [17:09:28]process_json_proto [17:09:28]json parsed OK: [17:09:28]protocol is kg_v1.0 [17:09:28]action value=close_receipt [17:09:28]process_action close_receipt [17:09:28]cmd_close_receipt [17:09:28]MH_GetDate [17:09:28]Write to MH i2c: F0 00 00 D0 01 C0 [17:09:28]Write i2c OK [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: F0 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: F0 09 00 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: F0 09 00 D0 01 00 C9 73 1E 67 47 1B 1E 67 71 [17:09:28]GetLastDocTimeStamp 1730048704 [17:09:28]current date 1730048969 [17:09:28]FM_GetShiftState [17:09:28]SAM_PROTO_GetShiftState [17:09:28]wFMCommunicate request_size=4 [17:09:28]MH_SAM_APDU [17:09:28]CAPDU: 80 13 01 00 [17:09:28]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [17:09:28]Write i2c OK [17:09:28]MH_I2C_Read... [17:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:28]Read from MH i2c: E2 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 0E 00 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 51 [17:09:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:09:28]wFMCommunicate OK [17:09:28]SAM_PROTO_GetShiftState done [17:09:28]FM_GetShiftState done [17:09:28]opened in 1729987312 [17:09:28]opened+sec_in_day 1730073712 [17:09:28]quantity*price = 60009 [17:09:28]sum+1 = 60010 [17:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 393 27.10.2024 17:09 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202101 ФПД: 252040715316016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202101&fm=252040715316016&tin=02508201610067®Number=0000000000091777&sum=60000 [17:09:30]StoreToDocumentArchive [17:09:30]shift 544 fd 202101 [17:09:30]save to /storage/0544/doc_00202101 [17:09:30]save last doc name /storage/0544/doc_00202101 to /storage/kkm_last_doc_name [17:09:30]save OK [17:09:30]Clear old archive folders... [17:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:30]tlvbuf is 006BDD00 [17:09:30]SAM_PROTO_ClearQueue [17:09:30]wFMCommunicate request_size=4 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 09 00 00 [17:09:30]Write to MH i2c: E2 08 00 DE 01 80 09 00 00 00 00 00 00 51 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [17:09:30]RAPDU: 90 00 [17:09:30]wFMCommunicate OK [17:09:30]SAM_PROTO_ClearQueue done [17:09:30]KKMCreateOFDPacket [17:09:30]OFDProtocolAddRootSTLVToBuf [17:09:30]FM_MakeSignedData [17:09:30]FM_MakeSignedData [17:09:30]SAM_PROTO_SignData [17:09:30]wFMCommunicate request_size=4 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 0D 01 02 [17:09:30]Write to MH i2c: E2 08 00 DF 01 80 0D 01 02 00 00 00 00 59 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [17:09:30]RAPDU: 90 00 [17:09:30]wFMCommunicate OK [17:09:30]wFMCommunicate request_size=255 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 01 00 00 F4 03 04 00 C9 73 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 15 03 00 35 04 06 00 E5 [17:09:30]Write to MH i2c: E2 02 01 E0 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 01 00 00 F4 03 04 00 C9 73 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 15 03 00 35 04 06 00 E5 00 00 A9 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [17:09:30]RAPDU: 90 00 [17:09:30]wFMCommunicate OK [17:09:30]wFMCommunicate request_size=10 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 0D 02 02 05 3A CD 4E 2B 30 [17:09:30]Write to MH i2c: E2 0D 00 E1 01 80 0D 02 02 05 00 3A CD 4E 2B 30 00 00 16 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [17:09:30]RAPDU: 90 00 [17:09:30]wFMCommunicate OK [17:09:30]wFMCommunicate request_size=4 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 0D 03 02 [17:09:30]Write to MH i2c: E2 08 00 E2 01 80 0D 03 02 00 00 00 00 5E [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 0B 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 0B 00 E2 01 00 38 1A FE 86 D9 99 FF 5C 90 00 02 [17:09:30]RAPDU: 38 1A FE 86 D9 99 FF 5C 90 00 [17:09:30]wFMCommunicate OK [17:09:30]SAM_PROTO_SignData done [17:09:30]FM_MakeSignedData done [17:09:30]CreateOFDProtocolMessage [17:09:30]wFMCommunicate request_size=4 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 11 00 00 [17:09:30]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 17 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 17 00 E3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B3 [17:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:09:30]wFMCommunicate OK [17:09:30]CreateOFDProtocolMessage done [17:09:30]OFDSenderStorePacket 202101 [17:09:30]StoreOFDPacket docnum=202101 [17:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CB 98 07 01 E4 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 01 00 00 F4 03 04 00 C9 73 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 15 03 00 35 04 06 00 E5 3A CD 4E 2B 30 38 1A FE 86 D9 99 FF 5C [17:09:30]CheckFolder [17:09:30]dirname=/storage/ofd_packets [17:09:30]CheckFolder done [17:09:30]ProducePacketName [17:09:30]name=ofd_packets/00202101 [17:09:30]NVStorageSaveData ofd_packets/00202101 [17:09:30]File name is /storage/ofd_packets/00202101 [17:09:30]Write 301 bytes [17:09:30]NVStorageSaveData done [17:09:30]OFDSenderStorePacket done [17:09:30]KKMCreateOFDPacket done [17:09:30]NVStorageSaveData kkm_last_timestamp [17:09:30]File name is /storage/kkm_last_timestamp [17:09:30]Write 4 bytes [17:09:30]NVStorageSaveData done [17:09:30]ExternCall_PrintAddStr [17:09:30]wPrintStart [17:09:30]Write to MH i2c: 01 00 00 E4 01 E5 [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 07 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 FF 0F FA [17:09:30]RasterBufferAndPrint [17:09:30]line Счет N : (1)449871 [17:09:30]line ИНН: 02508201610067 [17:09:30]line Контрольно-Кассовый Чек [17:09:30]line ПРОДАЖА [17:09:30]line ТРК (МРК, ГНК) : 31 [17:09:30]line Товар: 2710124130 [17:09:30]line Аи-92-К-2 [17:09:30]line 8.970 * 66.90 [17:09:30]line = 600.09 [17:09:30]line НДС 12% НСП 1% [17:09:30]line > о реализуемом товаре [17:09:30]line ОКРУГЛЕНИЕ: -0.09 [17:09:30]line ИТОГО: 600.00 [17:09:30]line Внесено: 600.00 [17:09:30]line СДАЧА: 0.00 [17:09:30]line НСП 1% : 5.31 [17:09:30]line НДС 12% : 63.73 [17:09:30]line Наличными: 600.00 [17:09:30]line Безнал.: 0.00 [17:09:30]line Место: АЗС № 171 "Партнер Нефть" [17:09:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:09:30]line СНО: Общий режим [17:09:30]line Чек 393 27.10.2024 17:09 [17:09:30]line Смена: 544 ФФД: 1.0 [17:09:30]line ЗНМ: 0300000109 [17:09:30]line РНМ: 0000000000091777 [17:09:30]line Версия ККМ: 001 [17:09:30]line ФМ: 0000000000871756 [17:09:30]line ФД: 202101 [17:09:30]line ФПД: 252040715316016 [17:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202101&fm=252040715316016&tin=02508201610067®Number=0000000000091777&sum=60000 [17:09:30]OFD Sender: Processing packet 202101 [packets to send 112, broken 111] [17:09:30]ProducePacketName [17:09:30]name=ofd_packets/00202101 [17:09:30]OFD Sender: To server: pG, [17:09:30]CommunicateWithHost lk.salyk.kg:30040 [17:09:30]ConnectInit lk.salyk.kg [17:09:30]written 0, free lines is 4095 [17:09:31]Connected sock=10 [17:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CB 98 07 01 E4 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 01 00 00 F4 03 04 00 C9 73 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 15 03 00 35 04 06 00 E5 3A CD 4E 2B 30 38 1A FE 86 D9 99 FF 5C [17:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8E C0 47 00 78 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 30 38 37 31 37 35 36 10 04 04 00 75 15 03 00 F4 03 04 00 82 1F 1E 67 B6 04 01 00 00 9C 8F 40 06 7F 07 A2 7A [17:09:31]CommunicateWithHost err = 0 [17:09:31]CheckOFDResponse [17:09:31]1017 (14) - 77093643461234 [17:09:31]1041 (16) - 0000000000871756 [17:09:31]1040 (4) - 202101 [17:09:31]1012 (4) - 27.10.2024 11:09 [17:09:31]1206 (1) - 0 [17:09:31]OFD Sender: Remove packet 202101 [17:09:31]ProducePacketName [17:09:31]name=ofd_packets/00202101 [17:09:31]NVStorageDeleteData [17:09:31]Write to MH i2c: 01 00 00 0F 02 11 [17:09:31]Write i2c OK [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: 01 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: 01 07 00 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 96 0C BA [17:09:31]RasterBufferAndPrint [17:09:31]line [17:09:31]line [17:09:31]line [17:09:31]line [17:09:31]line [17:09:31]written 0, free lines is 3228 [17:09:31]MH_Cut [17:09:31]Write to MH i2c: D1 01 00 16 02 01 EA [17:09:31]Write i2c OK [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: D1 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: D1 01 00 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: D1 01 00 16 02 00 E9 [17:09:31]Write to MH i2c: 01 00 00 17 02 19 [17:09:31]Write i2c OK [17:09:31]MH_I2C_Read... [17:09:31]OFD Sender: No OFD packet to send [17:09:32]*** Cut start [17:09:32]*** Purtial cut [17:09:32]*** Stage 1: CUTSNS_PIN = 1 [17:09:32]Read from MH i2c: 01 [17:09:32]MH_I2C_Read... [17:09:32]*** Stop cut motor [17:09:32]*** Cut end [17:09:32]Read from MH i2c: 01 07 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [17:09:32]process_action close_receipt done [17:09:32]requested_data is exist [17:09:32]produce_requested_data [17:09:32]requested_item fm.sn is exist - process it [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 11 00 00 [17:09:32]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 17 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [17:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:09:32]wFMCommunicate OK [17:09:32]requested_item fd.num is exist - process it [17:09:32]SAM_PROTO_GetFieldsCounters [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 13 00 00 [17:09:32]Write to MH i2c: E2 08 00 19 02 80 13 00 00 00 00 00 00 97 [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 62 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 62 00 19 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 75 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [17:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 75 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:32]wFMCommunicate OK [17:09:32]SAM_PROTO_GetFieldsCounters done [17:09:32]requested_item shift.num is exist - process it [17:09:32]requested_item shift.opened is exist - process it [17:09:32]req_shift_opened [17:09:32]FM_GetShiftState [17:09:32]SAM_PROTO_GetShiftState [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 13 01 00 [17:09:32]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 0E 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9B [17:09:32]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:09:32]wFMCommunicate OK [17:09:32]SAM_PROTO_GetShiftState done [17:09:32]FM_GetShiftState done [17:09:32]req_shift_opened done [17:09:32]requested_item shift.open_date is exist - process it [17:09:32]req_shift_open_date [17:09:32]req_shift_open_date done [17:09:32]produce_requested_data done [17:09:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202101,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:09:32]process_action_free close_receipt [17:09:32]json_value_free [17:09:32]json_value_free done [17:09:32]process_json_proto returns [17:09:32]Send response to host [17:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202101,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:09:32]free response buf [17:09:32]execute_script done [17:09:32]execute_script returns [17:09:32]free content buf [17:09:32]Sock 8.Close socket [17:09:32]Sock 8.Thread stoped [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:10]accept exits with 9 [17:11:10]New connection [17:11:10]New thread 3067153764 created [17:11:10]Thread 3067297124 joined [17:11:10]Waiting for new connection... [17:11:10] Sock 9.Parse request [17:11:10]Sock 9.Check first char [17:11:10]Sock 9.First char is OK [17:11:10]request: POST /json_proto HTTP/1.0 [17:11:10]Method: POST [17:11:10]URL: /json_proto [17:11:10]Method is POST - this is cgi request [17:11:10]url: /json_proto [17:11:10]query_string will be loaded in cgi processing [17:11:10]execute_cgi json_proto POST (null) [17:11:10]execute_cgi path=json_proto method=POST [17:11:10]POST find Content-Length [17:11:10]Host: 172.17.63.195:8080 [17:11:10]Content-Length: 682 [17:11:10]Content-Type: application/json [17:11:10] [17:11:10]POST finish read [17:11:10]Found Content-Length = 682 [17:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [17:11:10]execute_script... [17:11:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [17:11:10]POST & json_proto [17:11:10]process_json_proto [17:11:10]json parsed OK: [17:11:10]protocol is kg_v1.0 [17:11:10]action value=close_receipt [17:11:10]process_action close_receipt [17:11:10]cmd_close_receipt [17:11:10]MH_GetDate [17:11:10]Write to MH i2c: F0 00 00 1B 02 0C [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: F0 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: F0 09 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: F0 09 00 1B 02 00 2E 74 1E 67 47 1B 1E 67 23 [17:11:10]GetLastDocTimeStamp 1730048969 [17:11:10]current date 1730049070 [17:11:10]FM_GetShiftState [17:11:10]SAM_PROTO_GetShiftState [17:11:10]wFMCommunicate request_size=4 [17:11:10]MH_SAM_APDU [17:11:10]CAPDU: 80 13 01 00 [17:11:10]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:10]Read from MH i2c: E2 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 0E 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [17:11:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:11:10]wFMCommunicate OK [17:11:10]SAM_PROTO_GetShiftState done [17:11:10]FM_GetShiftState done [17:11:10]opened in 1729987312 [17:11:10]opened+sec_in_day 1730073712 [17:11:10]quantity*price = 100021 [17:11:10]sum+1 = 100023 [17:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 394 27.10.2024 17:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202102 ФПД: 211573303281174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171110&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202102&fm=211573303281174&tin=02508201610067®Number=0000000000091777&sum=100000 [17:11:11]StoreToDocumentArchive [17:11:11]shift 544 fd 202102 [17:11:11]save to /storage/0544/doc_00202102 [17:11:11]save last doc name /storage/0544/doc_00202102 to /storage/kkm_last_doc_name [17:11:11]save OK [17:11:11]Clear old archive folders... [17:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:11]tlvbuf is 006EDAE0 [17:11:11]SAM_PROTO_ClearQueue [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 09 00 00 [17:11:11]Write to MH i2c: E2 08 00 29 02 80 09 00 00 00 00 00 00 9D [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [17:11:11]RAPDU: 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_ClearQueue done [17:11:11]KKMCreateOFDPacket [17:11:11]OFDProtocolAddRootSTLVToBuf [17:11:11]FM_MakeSignedData [17:11:11]FM_MakeSignedData [17:11:11]SAM_PROTO_SignData [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 0D 01 02 [17:11:11]Write to MH i2c: E2 08 00 2A 02 80 0D 01 02 00 00 00 00 A5 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [17:11:11]RAPDU: 90 00 [17:11:11]wFMCommunicate OK [17:11:11]wFMCommunicate request_size=255 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 8A 01 00 00 F4 03 04 00 2E 74 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 15 03 00 35 04 06 00 C0 [17:11:11]Write to MH i2c: E2 02 01 2B 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 8A 01 00 00 F4 03 04 00 2E 74 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 15 03 00 35 04 06 00 C0 00 00 79 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [17:11:11]RAPDU: 90 00 [17:11:11]wFMCommunicate OK [17:11:11]wFMCommunicate request_size=10 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 0D 02 02 05 6C BF 96 06 16 [17:11:11]Write to MH i2c: E2 0D 00 2C 02 80 0D 02 02 05 00 6C BF 96 06 16 00 00 8F [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [17:11:11]RAPDU: 90 00 [17:11:11]wFMCommunicate OK [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 0D 03 02 [17:11:11]Write to MH i2c: E2 08 00 2D 02 80 0D 03 02 00 00 00 00 AA [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0B 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0B 00 2D 02 00 C2 68 96 CD F9 1F 53 FC 90 00 9F [17:11:11]RAPDU: C2 68 96 CD F9 1F 53 FC 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_SignData done [17:11:11]FM_MakeSignedData done [17:11:11]CreateOFDProtocolMessage [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 11 00 00 [17:11:11]Write to MH i2c: E2 08 00 2E 02 80 11 00 00 00 00 00 00 AA [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 17 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 17 00 2E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [17:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:11:11]wFMCommunicate OK [17:11:11]CreateOFDProtocolMessage done [17:11:11]OFDSenderStorePacket 202102 [17:11:11]StoreOFDPacket docnum=202102 [17:11:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 75 D9 07 01 76 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 8A 01 00 00 F4 03 04 00 2E 74 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 15 03 00 35 04 06 00 C0 6C BF 96 06 16 C2 68 96 CD F9 1F 53 FC [17:11:11]CheckFolder [17:11:11]dirname=/storage/ofd_packets [17:11:11]CheckFolder done [17:11:11]ProducePacketName [17:11:11]name=ofd_packets/00202102 [17:11:11]NVStorageSaveData ofd_packets/00202102 [17:11:11]File name is /storage/ofd_packets/00202102 [17:11:11]Write 301 bytes [17:11:11]NVStorageSaveData done [17:11:11]OFDSenderStorePacket done [17:11:11]KKMCreateOFDPacket done [17:11:11]NVStorageSaveData kkm_last_timestamp [17:11:11]File name is /storage/kkm_last_timestamp [17:11:11]Write 4 bytes [17:11:11]NVStorageSaveData done [17:11:11]ExternCall_PrintAddStr [17:11:11]wPrintStart [17:11:11]Write to MH i2c: 01 00 00 2F 02 31 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 FF 0F 46 [17:11:11]RasterBufferAndPrint [17:11:11]line Счет N : (1)449872 [17:11:11]line ИНН: 02508201610067 [17:11:11]line Контрольно-Кассовый Чек [17:11:11]line ПРОДАЖА [17:11:11]line ТРК (МРК, ГНК) : 61 [17:11:11]line Товар: 2710124500 [17:11:11]line Аи-95-К-3 [17:11:11]line 13.480 * 74.20 [17:11:11]line = 1000.22 [17:11:11]line НДС 12% НСП 1% [17:11:11]line > о реализуемом товаре [17:11:11]line ОКРУГЛЕНИЕ: -0.22 [17:11:11]line ИТОГО: 1000.00 [17:11:11]line Внесено: 1000.00 [17:11:11]line СДАЧА: 0.00 [17:11:11]line НСП 1% : 8.85 [17:11:11]line НДС 12% : 106.22 [17:11:11]line Наличными: 1000.00 [17:11:11]line Безнал.: 0.00 [17:11:11]line Место: АЗС № 171 "Партнер Нефть" [17:11:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:11:11]line СНО: Общий режим [17:11:11]line Чек 394 27.10.2024 17:11 [17:11:11]line Смена: 544 ФФД: 1.0 [17:11:11]line ЗНМ: 0300000109 [17:11:11]line РНМ: 0000000000091777 [17:11:11]line Версия ККМ: 001 [17:11:11]line ФМ: 0000000000871756 [17:11:11]line ФД: 202102 [17:11:11]line ФПД: 211573303281174 [17:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171110&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202102&fm=211573303281174&tin=02508201610067®Number=0000000000091777&sum=100000 [17:11:12]OFD Sender: Processing packet 202102 [packets to send 112, broken 111] [17:11:12]ProducePacketName [17:11:12]name=ofd_packets/00202102 [17:11:12]OFD Sender: To server: pG, [17:11:12]CommunicateWithHost lk.salyk.kg:30040 [17:11:12]ConnectInit lk.salyk.kg [17:11:12]written 0, free lines is 4095 [17:11:12]Connected sock=10 [17:11:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 75 D9 07 01 76 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 8A 01 00 00 F4 03 04 00 2E 74 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 15 03 00 35 04 06 00 C0 6C BF 96 06 16 C2 68 96 CD F9 1F 53 FC [17:11:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 08 7A 47 00 A6 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 15 03 00 F4 03 04 00 E7 1F 1E 67 B6 04 01 00 00 DD 1F BD 3A 72 31 62 3C [17:11:12]CommunicateWithHost err = 0 [17:11:12]CheckOFDResponse [17:11:12]1017 (14) - 77093643461234 [17:11:12]1041 (16) - 0000000000871756 [17:11:12]1040 (4) - 202102 [17:11:12]1012 (4) - 27.10.2024 11:11 [17:11:12]1206 (1) - 0 [17:11:12]OFD Sender: Remove packet 202102 [17:11:12]ProducePacketName [17:11:12]name=ofd_packets/00202102 [17:11:12]NVStorageDeleteData [17:11:12]Write to MH i2c: 01 00 00 5A 02 5C [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: 01 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: 01 07 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 94 0C 03 [17:11:12]RasterBufferAndPrint [17:11:12]line [17:11:12]line [17:11:12]line [17:11:12]line [17:11:12]line [17:11:12]written 0, free lines is 3225 [17:11:12]MH_Cut [17:11:12]Write to MH i2c: D1 01 00 61 02 01 35 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: D1 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: D1 01 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: D1 01 00 61 02 00 34 [17:11:12]Write to MH i2c: 01 00 00 62 02 64 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]OFD Sender: No OFD packet to send [17:11:13]*** Cut start [17:11:13]*** Purtial cut [17:11:13]*** Stage 1: CUTSNS_PIN = 1 [17:11:13]Read from MH i2c: 01 [17:11:13]MH_I2C_Read... [17:11:13]*** Stop cut motor [17:11:13]*** Cut end [17:11:13]Read from MH i2c: 01 07 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [17:11:13]process_action close_receipt done [17:11:13]requested_data is exist [17:11:13]produce_requested_data [17:11:13]requested_item fm.sn is exist - process it [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 11 00 00 [17:11:13]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:13]Read from MH i2c: E2 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 17 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [17:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:11:13]wFMCommunicate OK [17:11:13]requested_item fd.num is exist - process it [17:11:13]SAM_PROTO_GetFieldsCounters [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 13 00 00 [17:11:13]Write to MH i2c: E2 08 00 64 02 80 13 00 00 00 00 00 00 E2 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:13]Read from MH i2c: E2 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 62 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 62 00 64 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 76 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [17:11:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 76 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:13]wFMCommunicate OK [17:11:13]SAM_PROTO_GetFieldsCounters done [17:11:13]requested_item shift.num is exist - process it [17:11:13]requested_item shift.opened is exist - process it [17:11:13]req_shift_opened [17:11:13]FM_GetShiftState [17:11:13]SAM_PROTO_GetShiftState [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 13 01 00 [17:11:13]Write to MH i2c: E2 08 00 65 02 80 13 01 00 00 00 00 00 E4 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 0E 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 0E 00 65 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E6 [17:11:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:11:14]wFMCommunicate OK [17:11:14]SAM_PROTO_GetShiftState done [17:11:14]FM_GetShiftState done [17:11:14]req_shift_opened done [17:11:14]requested_item shift.open_date is exist - process it [17:11:14]req_shift_open_date [17:11:14]req_shift_open_date done [17:11:14]produce_requested_data done [17:11:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202102,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:11:14]process_action_free close_receipt [17:11:14]json_value_free [17:11:14]json_value_free done [17:11:14]process_json_proto returns [17:11:14]Send response to host [17:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202102,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:11:14]free response buf [17:11:14]execute_script done [17:11:14]execute_script returns [17:11:14]free content buf [17:11:14]Sock 9.Close socket [17:11:14]Sock 9.Thread stoped [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:36]accept exits with 8 [17:11:36]New connection [17:11:36]New thread 3067297124 created [17:11:36]Thread 3067153764 joined [17:11:36]Waiting for new connection... [17:11:36] Sock 8.Parse request [17:11:36]Sock 8.Check first char [17:11:36]Sock 8.First char is OK [17:11:36]request: POST /json_proto HTTP/1.0 [17:11:36]Method: POST [17:11:36]URL: /json_proto [17:11:36]Method is POST - this is cgi request [17:11:36]url: /json_proto [17:11:36]query_string will be loaded in cgi processing [17:11:36]execute_cgi json_proto POST (null) [17:11:36]execute_cgi path=json_proto method=POST [17:11:36]POST find Content-Length [17:11:36]Host: 172.17.63.195:8080 [17:11:36]Content-Length: 675 [17:11:36]Content-Type: application/json [17:11:36] [17:11:36]POST finish read [17:11:36]Found Content-Length = 675 [17:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [17:11:36]execute_script... [17:11:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [17:11:36]POST & json_proto [17:11:36]process_json_proto [17:11:36]json parsed OK: [17:11:36]protocol is kg_v1.0 [17:11:36]action value=close_receipt [17:11:36]process_action close_receipt [17:11:36]cmd_close_receipt [17:11:36]MH_GetDate [17:11:36]Write to MH i2c: F0 00 00 66 02 57 [17:11:36]Write i2c OK [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: F0 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: F0 09 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: F0 09 00 66 02 00 48 74 1E 67 47 1B 1E 67 88 [17:11:36]GetLastDocTimeStamp 1730049070 [17:11:36]current date 1730049096 [17:11:36]FM_GetShiftState [17:11:36]SAM_PROTO_GetShiftState [17:11:36]wFMCommunicate request_size=4 [17:11:36]MH_SAM_APDU [17:11:36]CAPDU: 80 13 01 00 [17:11:36]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [17:11:36]Write i2c OK [17:11:36]MH_I2C_Read... [17:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:36]Read from MH i2c: E2 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 0E 00 [17:11:36]MH_I2C_Read... [17:11:36]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E8 [17:11:36]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:11:36]wFMCommunicate OK [17:11:36]SAM_PROTO_GetShiftState done [17:11:36]FM_GetShiftState done [17:11:36]opened in 1729987312 [17:11:36]opened+sec_in_day 1730073712 [17:11:36]quantity*price = 80010 [17:11:36]sum+1 = 80011 [17:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 395 27.10.2024 17:11 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202103 ФПД: 223570997402149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171136&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202103&fm=223570997402149&tin=02508201610067®Number=0000000000091777&sum=80000 [17:11:37]StoreToDocumentArchive [17:11:37]shift 544 fd 202103 [17:11:37]save to /storage/0544/doc_00202103 [17:11:37]save last doc name /storage/0544/doc_00202103 to /storage/kkm_last_doc_name [17:11:37]save OK [17:11:37]Clear old archive folders... [17:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:11:37]tlvbuf is 006D4350 [17:11:37]SAM_PROTO_ClearQueue [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 09 00 00 [17:11:37]Write to MH i2c: E2 08 00 74 02 80 09 00 00 00 00 00 00 E8 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 74 02 00 90 00 EA [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]SAM_PROTO_ClearQueue done [17:11:37]KKMCreateOFDPacket [17:11:37]OFDProtocolAddRootSTLVToBuf [17:11:37]FM_MakeSignedData [17:11:37]FM_MakeSignedData [17:11:37]SAM_PROTO_SignData [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 01 02 [17:11:37]Write to MH i2c: E2 08 00 75 02 80 0D 01 02 00 00 00 00 F0 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]wFMCommunicate request_size=255 [17:11:37]MH_SAM_APDU [17:11: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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 8B 01 00 00 F4 03 04 00 48 74 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 15 03 00 35 04 06 00 CB 56 2D E1 [17:11:37]Write to MH i2c: E2 02 01 76 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 8B 01 00 00 F4 03 04 00 48 74 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 15 03 00 35 04 06 00 CB 56 2D E1 00 00 5A [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]wFMCommunicate request_size=7 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 02 02 02 DA 25 [17:11:37]Write to MH i2c: E2 0A 00 77 02 80 0D 02 02 02 00 DA 25 00 00 F6 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [17:11:37]RAPDU: 90 00 [17:11:37]wFMCommunicate OK [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 0D 03 02 [17:11:37]Write to MH i2c: E2 08 00 78 02 80 0D 03 02 00 00 00 00 F5 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 0B 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 0B 00 78 02 00 0C C1 AD BF 41 E7 12 C0 90 00 29 [17:11:37]RAPDU: 0C C1 AD BF 41 E7 12 C0 90 00 [17:11:37]wFMCommunicate OK [17:11:37]SAM_PROTO_SignData done [17:11:37]FM_MakeSignedData done [17:11:37]CreateOFDProtocolMessage [17:11:37]wFMCommunicate request_size=4 [17:11:37]MH_SAM_APDU [17:11:37]CAPDU: 80 11 00 00 [17:11:37]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:37]Read from MH i2c: E2 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 17 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [17:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:11:37]wFMCommunicate OK [17:11:37]CreateOFDProtocolMessage done [17:11:37]OFDSenderStorePacket 202103 [17:11:37]StoreOFDPacket docnum=202103 [17:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C2 97 04 01 D8 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 8B 01 00 00 F4 03 04 00 48 74 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 15 03 00 35 04 06 00 CB 56 2D E1 DA 25 0C C1 AD BF 41 E7 12 C0 [17:11:37]CheckFolder [17:11:37]dirname=/storage/ofd_packets [17:11:37]CheckFolder done [17:11:37]ProducePacketName [17:11:37]name=ofd_packets/00202103 [17:11:37]NVStorageSaveData ofd_packets/00202103 [17:11:37]File name is /storage/ofd_packets/00202103 [17:11:37]Write 298 bytes [17:11:37]NVStorageSaveData done [17:11:37]OFDSenderStorePacket done [17:11:37]KKMCreateOFDPacket done [17:11:37]NVStorageSaveData kkm_last_timestamp [17:11:37]File name is /storage/kkm_last_timestamp [17:11:37]Write 4 bytes [17:11:37]NVStorageSaveData done [17:11:37]ExternCall_PrintAddStr [17:11:37]wPrintStart [17:11:37]Write to MH i2c: 01 00 00 7A 02 7C [17:11:37]Write i2c OK [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: 01 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: 01 07 00 [17:11:37]MH_I2C_Read... [17:11:37]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 FF 0F 91 [17:11:37]RasterBufferAndPrint [17:11:37]line Счет N : (1)449873 [17:11:37]line ИНН: 02508201610067 [17:11:37]line Контрольно-Кассовый Чек [17:11:37]line ПРОДАЖА [17:11:37]line ТРК (МРК, ГНК) : 21 [17:11:37]line Товар: 2710194210 [17:11:37]line ДТ-К-2 [17:11:37]line 10.500 * 76.20 [17:11:37]line = 800.10 [17:11:37]line НДС 12% НСП 1% [17:11:37]line > о реализуемом товаре [17:11:37]line ОКРУГЛЕНИЕ: -0.10 [17:11:37]line ИТОГО: 800.00 [17:11:37]line Внесено: 800.00 [17:11:37]line СДАЧА: 0.00 [17:11:37]line НСП 1% : 7.08 [17:11:37]line НДС 12% : 84.97 [17:11:37]line Наличными: 800.00 [17:11:37]line Безнал.: 0.00 [17:11:37]line Место: АЗС № 171 "Партнер Нефть" [17:11:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:11:37]line СНО: Общий режим [17:11:37]line Чек 395 27.10.2024 17:11 [17:11:37]line Смена: 544 ФФД: 1.0 [17:11:37]line ЗНМ: 0300000109 [17:11:37]line РНМ: 0000000000091777 [17:11:37]line Версия ККМ: 001 [17:11:37]line ФМ: 0000000000871756 [17:11:37]line ФД: 202103 [17:11:37]line ФПД: 223570997402149 [17:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171136&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202103&fm=223570997402149&tin=02508201610067®Number=0000000000091777&sum=80000 [17:11:38]OFD Sender: Processing packet 202103 [packets to send 112, broken 111] [17:11:38]ProducePacketName [17:11:38]name=ofd_packets/00202103 [17:11:38]OFD Sender: To server: pG, [17:11:38]CommunicateWithHost lk.salyk.kg:30040 [17:11:38]ConnectInit lk.salyk.kg [17:11:38]written 0, free lines is 4095 [17:11:38]Connected sock=10 [17:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C2 97 04 01 D8 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 8B 01 00 00 F4 03 04 00 48 74 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 15 03 00 35 04 06 00 CB 56 2D E1 DA 25 0C C1 AD BF 41 E7 12 C0 [17:11:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 94 2F 47 00 62 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 15 03 00 F4 03 04 00 01 20 1E 67 B6 04 01 00 00 80 F0 E7 51 17 AE 32 BD [17:11:38]CommunicateWithHost err = 0 [17:11:38]CheckOFDResponse [17:11:38]1017 (14) - 77093643461234 [17:11:38]1041 (16) - 0000000000871756 [17:11:38]1040 (4) - 202103 [17:11:38]1012 (4) - 27.10.2024 11:12 [17:11:38]1206 (1) - 0 [17:11:38]OFD Sender: Remove packet 202103 [17:11:38]ProducePacketName [17:11:38]name=ofd_packets/00202103 [17:11:38]NVStorageDeleteData [17:11:38]Write to MH i2c: 01 00 00 A5 02 A7 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 07 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 99 0C 53 [17:11:38]RasterBufferAndPrint [17:11:38]line [17:11:38]line [17:11:38]line [17:11:38]line [17:11:38]line [17:11:38]written 0, free lines is 3231 [17:11:38]MH_Cut [17:11:38]Write to MH i2c: D1 01 00 AC 02 01 80 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: D1 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: D1 01 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: D1 01 00 AC 02 00 7F [17:11:38]Write to MH i2c: 01 00 00 AD 02 AF [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:39]OFD Sender: No OFD packet to send [17:11:39]*** Cut start [17:11:39]*** Purtial cut [17:11:39]*** Stage 1: CUTSNS_PIN = 1 [17:11:39]Read from MH i2c: 01 [17:11:39]MH_I2C_Read... [17:11:39]*** Stop cut motor [17:11:39]*** Cut end [17:11:39]Read from MH i2c: 01 07 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [17:11:39]process_action close_receipt done [17:11:39]requested_data is exist [17:11:39]produce_requested_data [17:11:39]requested_item fm.sn is exist - process it [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 11 00 00 [17:11:39]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 17 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [17:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:11:39]wFMCommunicate OK [17:11:39]requested_item fd.num is exist - process it [17:11:39]SAM_PROTO_GetFieldsCounters [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 13 00 00 [17:11:39]Write to MH i2c: E2 08 00 AF 02 80 13 00 00 00 00 00 00 2D [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 62 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 62 00 AF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 77 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [17:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 77 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:39]wFMCommunicate OK [17:11:39]SAM_PROTO_GetFieldsCounters done [17:11:39]requested_item shift.num is exist - process it [17:11:39]requested_item shift.opened is exist - process it [17:11:39]req_shift_opened [17:11:39]FM_GetShiftState [17:11:39]SAM_PROTO_GetShiftState [17:11:39]wFMCommunicate request_size=4 [17:11:39]MH_SAM_APDU [17:11:39]CAPDU: 80 13 01 00 [17:11:39]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [17:11:39]Write i2c OK [17:11:39]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 0E 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [17:11:40]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:11:40]wFMCommunicate OK [17:11:40]SAM_PROTO_GetShiftState done [17:11:40]FM_GetShiftState done [17:11:40]req_shift_opened done [17:11:40]requested_item shift.open_date is exist - process it [17:11:40]req_shift_open_date [17:11:40]req_shift_open_date done [17:11:40]produce_requested_data done [17:11:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202103,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:11:40]process_action_free close_receipt [17:11:40]json_value_free [17:11:40]json_value_free done [17:11:40]process_json_proto returns [17:11:40]Send response to host [17:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202103,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:11:40]free response buf [17:11:40]execute_script done [17:11:40]execute_script returns [17:11:40]free content buf [17:11:40]Sock 8.Close socket [17:11:40]Sock 8.Thread stoped [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:15:18]Read from MH i2c: E2 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 03 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [17:15:18]RAPDU: 90 00 [17:15:18]wFMCommunicate OK [17:15:18]wFMCommunicate request_size=25 [17:15:18]MH_SAM_APDU [17:15:18]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [17:15:18]Write to MH i2c: E2 1C 00 73 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 5B [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:15:18]Read from MH i2c: E2 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 03 00 [17:15:18]MH_I2C_Read... [17:15:18]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [17:15:18]RAPDU: 90 00 [17:15:18]wFMCommunicate OK [17:15:18]wFMCommunicate request_size=4 [17:15:18]MH_SAM_APDU [17:15:18]CAPDU: 80 15 03 00 [17:15:18]Write to MH i2c: E2 08 00 74 00 80 15 03 00 00 00 00 00 F5 [17:15:18]Write i2c OK [17:15:18]MH_I2C_Read... [17:15:19]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:15:19]Read from MH i2c: E2 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 40 00 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 40 00 74 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8E 01 00 00 35 04 06 00 4A A1 75 23 42 4E 90 00 43 [17:15:19]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8E 01 00 00 35 04 06 00 4A A1 75 23 42 4E 90 00 [17:15:19]wFMCommunicate OK [17:15:19]SAM_PROTO_ProcessDocument answer len = 59 [17:15:19]SAM_PROTO_ProcessDocument done [17:15:19]SetTLVBufToDocument [17:15:19]Processing tag 1209 (04B9) [17:15:19]Malloc new data [17:15:19]Processing tag 1041 (0411) [17:15:19]Processing tag 1040 (0410) [17:15:19]Malloc new data [17:15:19]Processing tag 1038 (040E) [17:15:19]Malloc new data [17:15:19]Processing tag 1042 (0412) [17:15:19]Malloc new data [17:15:19]Processing tag 1077 (0435) [17:15:19]Malloc new data [17:15:19]SetTLVBufToDocument err=0 [17:15:19]KKMLoadAndSignReceiptData store KKM data [17:15:19]KKMLoadAndSignReceiptData err=0 [17:15:19]wFMCommunicate request_size=4 [17:15:19]MH_SAM_APDU [17:15:19]CAPDU: 80 11 00 00 [17:15:19]Write to MH i2c: E2 08 00 75 00 80 11 00 00 00 00 00 00 EF [17:15:19]Write i2c OK [17:15:19]MH_I2C_Read... [17:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:19]Read from MH i2c: E2 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 17 00 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 17 00 75 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 44 [17:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:15:19]wFMCommunicate OK [17:15:19]Счет N : (1)449876 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 53 Товар: 2710124130 SUPER 92-К-5 5.850 * 68.40 = 400.14 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 398 27.10.2024 17:15 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202106 ФПД: 82057315435086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171518&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202106&fm=82057315435086&tin=02508201610067®Number=0000000000091777&sum=40000 [17:15:19]StoreToDocumentArchive [17:15:19]shift 544 fd 202106 [17:15:19]save to /storage/0544/doc_00202106 [17:15:19]save last doc name /storage/0544/doc_00202106 to /storage/kkm_last_doc_name [17:15:19]save OK [17:15:19]Clear old archive folders... [17:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:15:19]tlvbuf is 00EC5A70 [17:15:19]SAM_PROTO_ClearQueue [17:15:19]wFMCommunicate request_size=4 [17:15:19]MH_SAM_APDU [17:15:19]CAPDU: 80 09 00 00 [17:15:19]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [17:15:19]Write i2c OK [17:15:19]MH_I2C_Read... [17:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:19]Read from MH i2c: E2 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 03 00 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:15:19]RAPDU: 90 00 [17:15:19]wFMCommunicate OK [17:15:19]SAM_PROTO_ClearQueue done [17:15:19]KKMCreateOFDPacket [17:15:19]OFDProtocolAddRootSTLVToBuf [17:15:19]FM_MakeSignedData [17:15:19]FM_MakeSignedData [17:15:19]SAM_PROTO_SignData [17:15:19]wFMCommunicate request_size=4 [17:15:19]MH_SAM_APDU [17:15:19]CAPDU: 80 0D 01 02 [17:15:19]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [17:15:19]Write i2c OK [17:15:19]MH_I2C_Read... [17:15:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:19]Read from MH i2c: E2 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 03 00 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:15:19]RAPDU: 90 00 [17:15:19]wFMCommunicate OK [17:15:19]wFMCommunicate request_size=255 [17:15:19]MH_SAM_APDU [17:15:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 01 00 00 F4 03 04 00 26 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 15 03 00 35 04 06 00 [17:15:19]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 01 00 00 F4 03 04 00 26 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 15 03 00 35 04 06 00 00 00 72 [17:15:19]Write i2c OK [17:15:19]MH_I2C_Read... [17:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:19]Read from MH i2c: E2 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 03 00 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:15:19]RAPDU: 90 00 [17:15:19]wFMCommunicate OK [17:15:19]wFMCommunicate request_size=11 [17:15:19]MH_SAM_APDU [17:15:19]CAPDU: 80 0D 02 02 06 4A A1 75 23 42 4E [17:15:19]Write to MH i2c: E2 0E 00 79 00 80 0D 02 02 06 00 4A A1 75 23 42 4E 00 00 12 [17:15:19]Write i2c OK [17:15:19]MH_I2C_Read... [17:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:19]Read from MH i2c: E2 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 03 00 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [17:15:19]RAPDU: 90 00 [17:15:19]wFMCommunicate OK [17:15:19]wFMCommunicate request_size=4 [17:15:19]MH_SAM_APDU [17:15:19]CAPDU: 80 0D 03 02 [17:15:19]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [17:15:19]Write i2c OK [17:15:19]MH_I2C_Read... [17:15:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:19]Read from MH i2c: E2 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 0B 00 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 0B 00 7A 00 00 3A E6 6C 71 83 29 CE 37 90 00 A4 [17:15:19]RAPDU: 3A E6 6C 71 83 29 CE 37 90 00 [17:15:19]wFMCommunicate OK [17:15:19]SAM_PROTO_SignData done [17:15:19]FM_MakeSignedData done [17:15:19]CreateOFDProtocolMessage [17:15:19]wFMCommunicate request_size=4 [17:15:19]MH_SAM_APDU [17:15:19]CAPDU: 80 11 00 00 [17:15:19]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [17:15:19]Write i2c OK [17:15:19]MH_I2C_Read... [17:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:19]Read from MH i2c: E2 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 17 00 [17:15:19]MH_I2C_Read... [17:15:19]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [17:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:15:19]wFMCommunicate OK [17:15:19]CreateOFDProtocolMessage done [17:15:19]OFDSenderStorePacket 202106 [17:15:19]StoreOFDPacket docnum=202106 [17:15:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 28 AB 08 01 79 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 01 00 00 F4 03 04 00 26 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 15 03 00 35 04 06 00 4A A1 75 23 42 4E 3A E6 6C 71 83 29 CE 37 [17:15:19]CheckFolder [17:15:19]dirname=/storage/ofd_packets [17:15:19]CheckFolder done [17:15:19]ProducePacketName [17:15:19]name=ofd_packets/00202106 [17:15:19]NVStorageSaveData ofd_packets/00202106 [17:15:19]File name is /storage/ofd_packets/00202106 [17:15:19]Write 302 bytes [17:15:19]NVStorageSaveData done [17:15:19]OFDSenderStorePacket done [17:15:19]KKMCreateOFDPacket done [17:15:19]NVStorageSaveData kkm_last_timestamp [17:15:19]File name is /storage/kkm_last_timestamp [17:15:19]Write 4 bytes [17:15:19]NVStorageSaveData done [17:15:19]ExternCall_PrintAddStr [17:15:19]wPrintStart [17:15:19]Write to MH i2c: 01 00 00 7C 00 7C [17:15:19]ConnectInit Can't connect to host [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: 01 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: 01 07 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [17:15:20]RasterBufferAndPrint [17:15:20]line Счет N : (1)449876 [17:15:20]line ИНН: 02508201610067 [17:15:20]line Контрольно-Кассовый Чек [17:15:20]line ПРОДАЖА [17:15:20]line ТРК (МРК, ГНК) : 53 [17:15:20]line Товар: 2710124130 [17:15:20]line SUPER 92-К-5 [17:15:20]line 5.850 * 68.40 [17:15:20]line = 400.14 [17:15:20]line НДС 12% НСП 1% [17:15:20]line > о реализуемом товаре [17:15:20]line ОКРУГЛЕНИЕ: -0.14 [17:15:20]line ИТОГО: 400.00 [17:15:20]line Внесено: 400.00 [17:15:20]line СДАЧА: 0.00 [17:15:20]line НСП 1% : 3.54 [17:15:20]line НДС 12% : 42.49 [17:15:20]line Наличными: 400.00 [17:15:20]line Безнал.: 0.00 [17:15:20]line Место: АЗС № 171 "Партнер Нефть" [17:15:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:15:20]line СНО: Общий режим [17:15:20]line Чек 398 27.10.2024 17:15 [17:15:20]line Смена: 544 ФФД: 1.0 [17:15:20]line ЗНМ: 0300000109 [17:15:20]line РНМ: 0000000000091777 [17:15:20]line Версия ККМ: 001 [17:15:20]line ФМ: 0000000000871756 [17:15:20]line ФД: 202106 [17:15:20]line ФПД: 82057315435086 [17:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171518&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202106&fm=82057315435086&tin=02508201610067®Number=0000000000091777&sum=40000 [17:15:20]written 0, free lines is 4095 [17:15:20]Write to MH i2c: 01 00 00 A7 00 A7 [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: 01 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: 01 07 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 91 0C 4B [17:15:20]RasterBufferAndPrint [17:15:20]line [17:15:20]line [17:15:20]line [17:15:20]line [17:15:20]line [17:15:20]written 0, free lines is 3228 [17:15:20]MH_Cut [17:15:20]Write to MH i2c: D1 01 00 AE 00 01 80 [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: D1 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: D1 01 00 [17:15:20]MH_I2C_Read... [17:15:20]Read from MH i2c: D1 01 00 AE 00 00 7F [17:15:20]Write to MH i2c: 01 00 00 AF 00 AF [17:15:20]Write i2c OK [17:15:20]MH_I2C_Read... [17:15:20]ConnectInit Can't take IP for lk.salyk.kg [17:15:20]CommunicateWithHost connect error [17:15:20]CommunicateWithHost err = -1 [17:15:20]OFD Sender: Server communicate error [17:15:20]OFD Sender: Processing packet 202105 [packets to send 114, broken 112] [17:15:20]ProducePacketName [17:15:20]name=ofd_packets/00202105 [17:15:20]OFD Sender: To server: pG, [17:15:20]CommunicateWithHost lk.salyk.kg:30040 [17:15:20]ConnectInit lk.salyk.kg [17:15:21]*** Cut start [17:15:21]*** Purtial cut [17:15:21]*** Stage 1: CUTSNS_PIN = 1 [17:15:21]Read from MH i2c: 01 [17:15:21]MH_I2C_Read... [17:15:21]*** Stop cut motor [17:15:21]*** Cut end [17:15:21]Read from MH i2c: 01 07 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [17:15:21]process_action close_receipt done [17:15:21]requested_data is exist [17:15:21]produce_requested_data [17:15:21]requested_item fm.sn is exist - process it [17:15:21]wFMCommunicate request_size=4 [17:15:21]MH_SAM_APDU [17:15:21]CAPDU: 80 11 00 00 [17:15:21]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 17 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [17:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:15:21]wFMCommunicate OK [17:15:21]requested_item fd.num is exist - process it [17:15:21]SAM_PROTO_GetFieldsCounters [17:15:21]wFMCommunicate request_size=4 [17:15:21]MH_SAM_APDU [17:15:21]CAPDU: 80 13 00 00 [17:15:21]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 62 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:15:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:21]wFMCommunicate OK [17:15:21]SAM_PROTO_GetFieldsCounters done [17:15:21]requested_item shift.num is exist - process it [17:15:21]requested_item shift.opened is exist - process it [17:15:21]req_shift_opened [17:15:21]FM_GetShiftState [17:15:21]SAM_PROTO_GetShiftState [17:15:21]wFMCommunicate request_size=4 [17:15:21]MH_SAM_APDU [17:15:21]CAPDU: 80 13 01 00 [17:15:21]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [17:15:21]Write i2c OK [17:15:21]MH_I2C_Read... [17:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:21]Read from MH i2c: E2 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 0E 00 [17:15:21]MH_I2C_Read... [17:15:21]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [17:15:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:15:21]wFMCommunicate OK [17:15:21]SAM_PROTO_GetShiftState done [17:15:21]FM_GetShiftState done [17:15:21]req_shift_opened done [17:15:21]requested_item shift.open_date is exist - process it [17:15:21]req_shift_open_date [17:15:21]req_shift_open_date done [17:15:21]produce_requested_data done [17:15:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202106,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:15:21]process_action_free close_receipt [17:15:21]json_value_free [17:15:21]json_value_free done [17:15:21]process_json_proto returns [17:15:21]Send response to host [17:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202106,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:15:21]free response buf [17:15:21]execute_script done [17:15:21]execute_script returns [17:15:21]free content buf [17:15:21]Sock 9.Close socket [17:15:21]Sock 9.Thread stoped [17:15:25]ConnectInit Can't connect to host [17:15:25]ConnectInit Can't take IP for lk.salyk.kg [17:15:25]CommunicateWithHost connect error [17:15:25]CommunicateWithHost err = -1 [17:15:25]OFD Sender: Server communicate error [17:15:30]ConnectInit Can't connect to host [17:15:30]OFD Sender: Processing packet 202105 [packets to send 114, broken 112] [17:15:30]ProducePacketName [17:15:30]name=ofd_packets/00202105 [17:15:30]OFD Sender: To server: pG, [17:15:30]CommunicateWithHost lk.salyk.kg:30040 [17:15:30]ConnectInit lk.salyk.kg [17:15:35]ConnectInit Can't connect to host [17:15:35]ConnectInit Can't take IP for lk.salyk.kg [17:15:35]CommunicateWithHost connect error [17:15:35]CommunicateWithHost err = -1 [17:15:35]OFD Sender: Server communicate error [17:15:40]ConnectInit Can't connect to host [17:15:40]OFD Sender: Processing packet 202105 [packets to send 114, broken 112] [17:15:40]ProducePacketName [17:15:40]name=ofd_packets/00202105 [17:15:40]OFD Sender: To server: pG, [17:15:40]CommunicateWithHost lk.salyk.kg:30040 [17:15:40]ConnectInit lk.salyk.kg [17:15:45]ConnectInit Can't take IP for lk.salyk.kg [17:15:45]CommunicateWithHost connect error [17:15:45]CommunicateWithHost err = -1 [17:15:45]OFD Sender: Server communicate error [17:15:50]OFD Sender: Processing packet 202105 [packets to send 114, broken 112] [17:15:50]ProducePacketName [17:15:50]name=ofd_packets/00202105 [17:15:50]OFD Sender: To server: pG, [17:15:50]CommunicateWithHost lk.salyk.kg:30040 [17:15:50]ConnectInit lk.salyk.kg [17:15:50]Connected sock=9 [17:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B D0 07 01 62 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 22 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 15 03 00 35 04 06 00 B6 74 E7 C0 7E ED 07 CA 88 E4 20 67 BC 4F [17:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 41 50 47 00 57 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 15 03 00 F4 03 04 00 FF 20 1E 67 B6 04 01 00 00 89 75 DF D3 F1 E5 58 87 [17:15:51]CommunicateWithHost err = 0 [17:15:51]CheckOFDResponse [17:15:51]1017 (14) - 77093643461234 [17:15:51]1041 (16) - 0000000000871756 [17:15:51]1040 (4) - 202105 [17:15:51]1012 (4) - 27.10.2024 11:16 [17:15:51]1206 (1) - 0 [17:15:51]OFD Sender: Remove packet 202105 [17:15:51]ProducePacketName [17:15:51]name=ofd_packets/00202105 [17:15:51]NVStorageDeleteData [17:15:51]OFD Sender: Processing packet 202106 [packets to send 113, broken 112] [17:15:51]ProducePacketName [17:15:51]name=ofd_packets/00202106 [17:15:51]OFD Sender: To server: pG, [17:15:51]CommunicateWithHost lk.salyk.kg:30040 [17:15:51]ConnectInit lk.salyk.kg [17:15:51]Connected sock=9 [17:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 28 AB 08 01 79 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 01 00 00 F4 03 04 00 26 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 15 03 00 35 04 06 00 4A A1 75 23 42 4E 3A E6 6C 71 83 29 CE 37 [17:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A8 DA 47 00 4E F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 15 03 00 F4 03 04 00 00 21 1E 67 B6 04 01 00 00 E8 84 63 0A 19 E1 57 C7 [17:15:52]CommunicateWithHost err = 0 [17:15:52]CheckOFDResponse [17:15:52]1017 (14) - 77093643461234 [17:15:52]1041 (16) - 0000000000871756 [17:15:52]1040 (4) - 202106 [17:15:52]1012 (4) - 27.10.2024 11:16 [17:15:52]1206 (1) - 0 [17:15:52]OFD Sender: Remove packet 202106 [17:15:52]ProducePacketName [17:15:52]name=ofd_packets/00202106 [17:15:52]NVStorageDeleteData [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:24]accept exits with 8 [17:16:24]New connection [17:16:24]New thread 3067465060 created [17:16:24]Thread 3067321700 joined [17:16:24]Waiting for new connection... [17:16:24] Sock 8.Parse request [17:16:24]Sock 8.Check first char [17:16:24]Sock 8.First char is OK [17:16:24]request: POST /json_proto HTTP/1.0 [17:16:24]Method: POST [17:16:24]URL: /json_proto [17:16:24]Method is POST - this is cgi request [17:16:24]url: /json_proto [17:16:24]query_string will be loaded in cgi processing [17:16:24]execute_cgi json_proto POST (null) [17:16:24]execute_cgi path=json_proto method=POST [17:16:24]POST find Content-Length [17:16:24]Host: 172.17.63.195:8080 [17:16:24]Content-Length: 766 [17:16:24]Content-Type: application/json [17:16:24] [17:16:24]POST finish read [17:16:24]Found Content-Length = 766 [17:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:24]execute_script... [17:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:24]POST & json_proto [17:16:24]process_json_proto [17:16:24]json parsed OK: [17:16:24]protocol is kg_v1.0 [17:16:24]action value=close_receipt [17:16:24]process_action close_receipt [17:16:24]cmd_close_receipt [17:16:24]MH_GetDate [17:16:24]Write to MH i2c: F0 00 00 B3 00 A2 [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: F0 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: F0 09 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: F0 09 00 B3 00 00 69 75 1E 67 47 1B 1E 67 F5 [17:16:24]GetLastDocTimeStamp 1730049318 [17:16:24]current date 1730049385 [17:16:24]FM_GetShiftState [17:16:24]SAM_PROTO_GetShiftState [17:16:24]wFMCommunicate request_size=4 [17:16:24]MH_SAM_APDU [17:16:24]CAPDU: 80 13 01 00 [17:16:24]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:24]Read from MH i2c: E2 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 0E 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 33 [17:16:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:16:24]wFMCommunicate OK [17:16:24]SAM_PROTO_GetShiftState done [17:16:24]FM_GetShiftState done [17:16:24]opened in 1729987312 [17:16:24]opened+sec_in_day 1730073712 [17:16:24]quantity*price = 150037 [17:16:24]sum+1 = 150039 [17:16:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 399 27.10.2024 17:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202107 ФПД: 10108524871540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171625&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202107&fm=10108524871540&tin=02508201610067®Number=0000000000091777&sum=150038 [17:16:25]StoreToDocumentArchive [17:16:25]shift 544 fd 202107 [17:16:25]save to /storage/0544/doc_00202107 [17:16:25]save last doc name /storage/0544/doc_00202107 to /storage/kkm_last_doc_name [17:16:25]save OK [17:16:25]Clear old archive folders... [17:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:16:25]tlvbuf is 00EC73A0 [17:16:25]SAM_PROTO_ClearQueue [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 09 00 00 [17:16:25]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:16:25]RAPDU: 90 00 [17:16:25]wFMCommunicate OK [17:16:25]SAM_PROTO_ClearQueue done [17:16:25]KKMCreateOFDPacket [17:16:25]OFDProtocolAddRootSTLVToBuf [17:16:25]FM_MakeSignedData [17:16:25]FM_MakeSignedData [17:16:25]SAM_PROTO_SignData [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 0D 01 02 [17:16:25]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [17:16:25]RAPDU: 90 00 [17:16:25]wFMCommunicate OK [17:16:25]wFMCommunicate request_size=255 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 69 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 15 03 00 35 04 06 00 09 31 93 08 [17:16:25]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 69 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 15 03 00 35 04 06 00 09 31 93 08 00 00 07 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [17:16:25]RAPDU: 90 00 [17:16:25]wFMCommunicate OK [17:16:25]wFMCommunicate request_size=7 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 0D 02 02 02 BF 74 [17:16:25]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 BF 74 00 00 75 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [17:16:25]RAPDU: 90 00 [17:16:25]wFMCommunicate OK [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 0D 03 02 [17:16:25]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 0B 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 0B 00 C5 00 00 CB A3 7C FD FD 34 49 CA 90 00 6C [17:16:25]RAPDU: CB A3 7C FD FD 34 49 CA 90 00 [17:16:25]wFMCommunicate OK [17:16:25]SAM_PROTO_SignData done [17:16:25]FM_MakeSignedData done [17:16:25]CreateOFDProtocolMessage [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 11 00 00 [17:16:25]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 17 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [17:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:16:25]wFMCommunicate OK [17:16:25]CreateOFDProtocolMessage done [17:16:25]OFDSenderStorePacket 202107 [17:16:25]StoreOFDPacket docnum=202107 [17:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 43 2C 04 01 A8 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 69 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 15 03 00 35 04 06 00 09 31 93 08 BF 74 CB A3 7C FD FD 34 49 CA [17:16:25]CheckFolder [17:16:25]dirname=/storage/ofd_packets [17:16:25]CheckFolder done [17:16:25]ProducePacketName [17:16:25]name=ofd_packets/00202107 [17:16:25]NVStorageSaveData ofd_packets/00202107 [17:16:25]File name is /storage/ofd_packets/00202107 [17:16:25]Write 298 bytes [17:16:25]NVStorageSaveData done [17:16:25]OFDSenderStorePacket done [17:16:25]KKMCreateOFDPacket done [17:16:25]NVStorageSaveData kkm_last_timestamp [17:16:25]File name is /storage/kkm_last_timestamp [17:16:25]Write 4 bytes [17:16:25]NVStorageSaveData done [17:16:25]ExternCall_PrintAddStr [17:16:25]wPrintStart [17:16:25]Write to MH i2c: 01 00 00 C7 00 C7 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: 01 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: 01 07 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [17:16:25]RasterBufferAndPrint [17:16:25]line Счет N : (1)449878 [17:16:25]line ИНН: 02508201610067 [17:16:25]line Контрольно-Кассовый Чек [17:16:25]line ПРОДАЖА [17:16:25]line ТРК (МРК, ГНК) : 21 [17:16:25]line Товар: 2710194210 [17:16:25]line ДТ-К-2 [17:16:25]line 19.690 * 76.20 [17:16:25]line = 1500.38 [17:16:25]line НДС 12% НСП 1% [17:16:25]line > о реализуемом товаре [17:16:25]line ИТОГО: 1500.38 [17:16:25]line НСП 1% : 13.28 [17:16:25]line НДС 12% : 159.33 [17:16:25]line Наличными: 0.00 [17:16:25]line Безнал.: 1500.38 [17:16:25]line Место: АЗС № 171 "Партнер Нефть" [17:16:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:16:25]line СНО: Общий режим [17:16:25]line Чек 399 27.10.2024 17:16 [17:16:25]line Смена: 544 ФФД: 1.0 [17:16:25]line ЗНМ: 0300000109 [17:16:25]line РНМ: 0000000000091777 [17:16:25]line Версия ККМ: 001 [17:16:25]line Платежная система: Mbank [17:16:25]line ФМ: 0000000000871756 [17:16:25]line ФД: 202107 [17:16:25]line ФПД: 10108524871540 [17:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171625&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202107&fm=10108524871540&tin=02508201610067®Number=0000000000091777&sum=150038 [17:16:26]OFD Sender: Processing packet 202107 [packets to send 113, broken 112] [17:16:26]ProducePacketName [17:16:26]name=ofd_packets/00202107 [17:16:26]OFD Sender: To server: pG, [17:16:26]CommunicateWithHost lk.salyk.kg:30040 [17:16:26]ConnectInit lk.salyk.kg [17:16:26]written 0, free lines is 4095 [17:16:26]Connected sock=10 [17:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 43 2C 04 01 A8 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 69 75 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 15 03 00 35 04 06 00 09 31 93 08 BF 74 CB A3 7C FD FD 34 49 CA [17:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B2 A3 47 00 B8 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 15 03 00 F4 03 04 00 22 21 1E 67 B6 04 01 00 00 DD A4 58 CC E1 DD 2C 67 [17:16:26]CommunicateWithHost err = 0 [17:16:26]CheckOFDResponse [17:16:26]1017 (14) - 77093643461234 [17:16:26]1041 (16) - 0000000000871756 [17:16:26]1040 (4) - 202107 [17:16:26]1012 (4) - 27.10.2024 11:16 [17:16:26]1206 (1) - 0 [17:16:26]OFD Sender: Remove packet 202107 [17:16:26]ProducePacketName [17:16:26]name=ofd_packets/00202107 [17:16:26]NVStorageDeleteData [17:16:26]Write to MH i2c: 01 00 00 F0 00 F0 [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: 01 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: 01 07 00 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 C3 0C C6 [17:16:26]RasterBufferAndPrint [17:16:26]line [17:16:26]line [17:16:26]line [17:16:26]line [17:16:26]line [17:16:26]written 0, free lines is 3272 [17:16:26]MH_Cut [17:16:26]Write to MH i2c: D1 01 00 F7 00 01 C9 [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: D1 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: D1 01 00 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: D1 01 00 F7 00 00 C8 [17:16:26]Write to MH i2c: 01 00 00 F8 00 F8 [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:27]OFD Sender: No OFD packet to send [17:16:27]*** Cut start [17:16:27]*** Purtial cut [17:16:27]*** Stage 1: CUTSNS_PIN = 1 [17:16:27]Read from MH i2c: 01 [17:16:27]MH_I2C_Read... [17:16:27]*** Stop cut motor [17:16:27]*** Cut end [17:16:27]Read from MH i2c: 01 07 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [17:16:27]process_action close_receipt done [17:16:27]requested_data is exist [17:16:27]produce_requested_data [17:16:27]requested_item fm.sn is exist - process it [17:16:27]wFMCommunicate request_size=4 [17:16:27]MH_SAM_APDU [17:16:27]CAPDU: 80 11 00 00 [17:16:27]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:27]Read from MH i2c: E2 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 17 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C8 [17:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:16:27]wFMCommunicate OK [17:16:27]requested_item fd.num is exist - process it [17:16:27]SAM_PROTO_GetFieldsCounters [17:16:27]wFMCommunicate request_size=4 [17:16:27]MH_SAM_APDU [17:16:27]CAPDU: 80 13 00 00 [17:16:27]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:28]Read from MH i2c: E2 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 62 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:28]wFMCommunicate OK [17:16:28]SAM_PROTO_GetFieldsCounters done [17:16:28]requested_item shift.num is exist - process it [17:16:28]requested_item shift.opened is exist - process it [17:16:28]req_shift_opened [17:16:28]FM_GetShiftState [17:16:28]SAM_PROTO_GetShiftState [17:16:28]wFMCommunicate request_size=4 [17:16:28]MH_SAM_APDU [17:16:28]CAPDU: 80 13 01 00 [17:16:28]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [17:16:28]Write i2c OK [17:16:28]MH_I2C_Read... [17:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:28]Read from MH i2c: E2 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 0E 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7A [17:16:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:16:28]wFMCommunicate OK [17:16:28]SAM_PROTO_GetShiftState done [17:16:28]FM_GetShiftState done [17:16:28]req_shift_opened done [17:16:28]requested_item shift.open_date is exist - process it [17:16:28]req_shift_open_date [17:16:28]req_shift_open_date done [17:16:28]produce_requested_data done [17:16:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202107,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:16:28]process_action_free close_receipt [17:16:28]json_value_free [17:16:28]json_value_free done [17:16:28]process_json_proto returns [17:16:28]Send response to host [17:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202107,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:16:28]free response buf [17:16:28]execute_script done [17:16:28]execute_script returns [17:16:28]free content buf [17:16:28]Sock 8.Close socket [17:16:28]Sock 8.Thread stoped [17:16:29]accept exits with 9 [17:16:29]New connection [17:16:29]New thread 3067321700 created [17:16:29]Thread 3067465060 joined [17:16:29]Waiting for new connection... [17:16:29] Sock 9.Parse request [17:16:29]Sock 9.Check first char [17:16:29]Sock 9.First char is OK [17:16:29]request: POST /json_proto HTTP/1.0 [17:16:29]Method: POST [17:16:29]URL: /json_proto [17:16:29]Method is POST - this is cgi request [17:16:29]url: /json_proto [17:16:29]query_string will be loaded in cgi processing [17:16:29]execute_cgi json_proto POST (null) [17:16:29]execute_cgi path=json_proto method=POST [17:16:29]POST find Content-Length [17:16:29]Host: 172.17.63.195:8080 [17:16:29]Content-Length: 679 [17:16:29]Content-Type: application/json [17:16:29] [17:16:29]POST finish read [17:16:29]Found Content-Length = 679 [17:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:29]execute_script... [17:16: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)449877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:29]POST & json_proto [17:16:29]process_json_proto [17:16:29]json parsed OK: [17:16:29]protocol is kg_v1.0 [17:16:29]action value=close_receipt [17:16:29]process_action close_receipt [17:16:29]cmd_close_receipt [17:16:29]MH_GetDate [17:16:29]Write to MH i2c: F0 00 00 FC 00 EB [17:16:29]Write i2c OK [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: F0 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: F0 09 00 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: F0 09 00 FC 00 00 6E 75 1E 67 47 1B 1E 67 43 [17:16:29]GetLastDocTimeStamp 1730049385 [17:16:29]current date 1730049390 [17:16:29]FM_GetShiftState [17:16:29]SAM_PROTO_GetShiftState [17:16:29]wFMCommunicate request_size=4 [17:16:29]MH_SAM_APDU [17:16:29]CAPDU: 80 13 01 00 [17:16:29]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [17:16:29]Write i2c OK [17:16:29]MH_I2C_Read... [17:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:29]Read from MH i2c: E2 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: E2 0E 00 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7C [17:16:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:16:29]wFMCommunicate OK [17:16:29]SAM_PROTO_GetShiftState done [17:16:29]FM_GetShiftState done [17:16:29]opened in 1729987312 [17:16:29]opened+sec_in_day 1730073712 [17:16:29]quantity*price = 150037 [17:16:29]sum+1 = 150039 [17:16:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 409 27.10.2024 17:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202117 ФПД: 197943488623226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172808&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202117&fm=197943488623226&tin=02508201610067®Number=0000000000091777&sum=50000 [17:28:09]StoreToDocumentArchive [17:28:09]shift 544 fd 202117 [17:28:09]save to /storage/0544/doc_00202117 [17:28:09]save last doc name /storage/0544/doc_00202117 to /storage/kkm_last_doc_name [17:28:09]save OK [17:28:09]Clear old archive folders... [17:28:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:09]tlvbuf is 00D9F160 [17:28:09]SAM_PROTO_ClearQueue [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 09 00 00 [17:28:09]Write to MH i2c: E2 08 00 67 00 80 09 00 00 00 00 00 00 D9 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [17:28:09]RAPDU: 90 00 [17:28:09]wFMCommunicate OK [17:28:09]SAM_PROTO_ClearQueue done [17:28:09]KKMCreateOFDPacket [17:28:09]OFDProtocolAddRootSTLVToBuf [17:28:09]FM_MakeSignedData [17:28:09]FM_MakeSignedData [17:28:09]SAM_PROTO_SignData [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 0D 01 02 [17:28:09]Write to MH i2c: E2 08 00 68 00 80 0D 01 02 00 00 00 00 E1 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [17:28:09]RAPDU: 90 00 [17:28:09]wFMCommunicate OK [17:28:09]wFMCommunicate request_size=255 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 99 01 00 00 F4 03 04 00 28 78 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 15 03 00 35 04 06 00 B4 [17:28:09]Write to MH i2c: E2 02 01 69 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 99 01 00 00 F4 03 04 00 28 78 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 15 03 00 35 04 06 00 B4 00 00 A7 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [17:28:10]RAPDU: 90 00 [17:28:10]wFMCommunicate OK [17:28:10]wFMCommunicate request_size=10 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 0D 02 02 05 07 4F 53 32 7A [17:28:10]Write to MH i2c: E2 0D 00 6A 00 80 0D 02 02 05 00 07 4F 53 32 7A 00 00 43 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [17:28:10]RAPDU: 90 00 [17:28:10]wFMCommunicate OK [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 0D 03 02 [17:28:10]Write to MH i2c: E2 08 00 6B 00 80 0D 03 02 00 00 00 00 E6 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 0B 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 0B 00 6B 00 00 7E C7 48 E3 EF B9 05 50 90 00 54 [17:28:10]RAPDU: 7E C7 48 E3 EF B9 05 50 90 00 [17:28:10]wFMCommunicate OK [17:28:10]SAM_PROTO_SignData done [17:28:10]FM_MakeSignedData done [17:28:10]CreateOFDProtocolMessage [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 11 00 00 [17:28:10]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 17 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 17 00 6C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3B [17:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:28:10]wFMCommunicate OK [17:28:10]CreateOFDProtocolMessage done [17:28:10]OFDSenderStorePacket 202117 [17:28:10]StoreOFDPacket docnum=202117 [17:28:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B B6 07 01 96 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 99 01 00 00 F4 03 04 00 28 78 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 15 03 00 35 04 06 00 B4 07 4F 53 32 7A 7E C7 48 E3 EF B9 05 50 [17:28:10]CheckFolder [17:28:10]dirname=/storage/ofd_packets [17:28:10]CheckFolder done [17:28:10]ProducePacketName [17:28:10]name=ofd_packets/00202117 [17:28:10]NVStorageSaveData ofd_packets/00202117 [17:28:10]File name is /storage/ofd_packets/00202117 [17:28:10]Write 301 bytes [17:28:10]NVStorageSaveData done [17:28:10]OFDSenderStorePacket done [17:28:10]KKMCreateOFDPacket done [17:28:10]NVStorageSaveData kkm_last_timestamp [17:28:10]File name is /storage/kkm_last_timestamp [17:28:10]Write 4 bytes [17:28:10]NVStorageSaveData done [17:28:10]ExternCall_PrintAddStr [17:28:10]wPrintStart [17:28:10]Write to MH i2c: 01 00 00 6D 00 6D [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 07 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [17:28:10]RasterBufferAndPrint [17:28:10]line Счет N : (1)449887 [17:28:10]line ИНН: 02508201610067 [17:28:10]line Контрольно-Кассовый Чек [17:28:10]line ПРОДАЖА [17:28:10]line ТРК (МРК, ГНК) : 31 [17:28:10]line Товар: 2710124130 [17:28:10]line Аи-92-К-2 [17:28:10]line 7.480 * 66.90 [17:28:10]line = 500.41 [17:28:10]line НДС 12% НСП 1% [17:28:10]line > о реализуемом товаре [17:28:10]line ОКРУГЛЕНИЕ: -0.41 [17:28:10]line ИТОГО: 500.00 [17:28:10]line Внесено: 500.00 [17:28:10]line СДАЧА: 0.00 [17:28:10]line НСП 1% : 4.43 [17:28:10]line НДС 12% : 53.14 [17:28:10]line Наличными: 500.00 [17:28:10]line Безнал.: 0.00 [17:28:10]line Место: АЗС № 171 "Партнер Нефть" [17:28:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:28:10]line СНО: Общий режим [17:28:10]line Чек 409 27.10.2024 17:28 [17:28:10]line Смена: 544 ФФД: 1.0 [17:28:10]line ЗНМ: 0300000109 [17:28:10]line РНМ: 0000000000091777 [17:28:10]line Версия ККМ: 001 [17:28:10]line ФМ: 0000000000871756 [17:28:10]line ФД: 202117 [17:28:10]line ФПД: 197943488623226 [17:28:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172808&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202117&fm=197943488623226&tin=02508201610067®Number=0000000000091777&sum=50000 [17:28:10]OFD Sender: Processing packet 202117 [packets to send 114, broken 113] [17:28:10]ProducePacketName [17:28:10]name=ofd_packets/00202117 [17:28:10]OFD Sender: To server: pG, [17:28:10]CommunicateWithHost lk.salyk.kg:30040 [17:28:10]ConnectInit lk.salyk.kg [17:28:10]written 0, free lines is 4095 [17:28:10]Connected sock=10 [17:28:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B B6 07 01 96 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 99 01 00 00 F4 03 04 00 28 78 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 15 03 00 35 04 06 00 B4 07 4F 53 32 7A 7E C7 48 E3 EF B9 05 50 [17:28:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 64 31 47 00 DF 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 15 03 00 F4 03 04 00 E1 23 1E 67 B6 04 01 00 00 30 92 A0 75 EC 21 99 AC [17:28:10]CommunicateWithHost err = 0 [17:28:10]CheckOFDResponse [17:28:10]1017 (14) - 77093643461234 [17:28:10]1041 (16) - 0000000000871756 [17:28:10]1040 (4) - 202117 [17:28:10]1012 (4) - 27.10.2024 11:28 [17:28:10]1206 (1) - 0 [17:28:10]OFD Sender: Remove packet 202117 [17:28:10]ProducePacketName [17:28:10]name=ofd_packets/00202117 [17:28:10]NVStorageDeleteData [17:28:10]Write to MH i2c: 01 00 00 98 00 98 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 07 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 97 0C 42 [17:28:10]RasterBufferAndPrint [17:28:10]line [17:28:10]line [17:28:10]line [17:28:10]line [17:28:10]line [17:28:10]written 0, free lines is 3229 [17:28:10]MH_Cut [17:28:10]Write to MH i2c: D1 01 00 9F 00 01 71 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: D1 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: D1 01 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: D1 01 00 9F 00 00 70 [17:28:10]Write to MH i2c: 01 00 00 A0 00 A0 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:11]OFD Sender: No OFD packet to send [17:28:11]*** Cut start [17:28:11]*** Purtial cut [17:28:11]*** Stage 1: CUTSNS_PIN = 1 [17:28:12]Read from MH i2c: 01 [17:28:12]MH_I2C_Read... [17:28:12]*** Stop cut motor [17:28:12]*** Cut end [17:28:12]Read from MH i2c: 01 07 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: 01 07 00 A0 00 00 00 00 00 00 FF 0F B5 [17:28:12]process_action close_receipt done [17:28:12]requested_data is exist [17:28:12]produce_requested_data [17:28:12]requested_item fm.sn is exist - process it [17:28:12]wFMCommunicate request_size=4 [17:28:12]MH_SAM_APDU [17:28:12]CAPDU: 80 11 00 00 [17:28:12]Write to MH i2c: E2 08 00 A1 00 80 11 00 00 00 00 00 00 1B [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:12]Read from MH i2c: E2 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 17 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 17 00 A1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 70 [17:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:28:12]wFMCommunicate OK [17:28:12]requested_item fd.num is exist - process it [17:28:12]SAM_PROTO_GetFieldsCounters [17:28:12]wFMCommunicate request_size=4 [17:28:12]MH_SAM_APDU [17:28:12]CAPDU: 80 13 00 00 [17:28:12]Write to MH i2c: E2 08 00 A2 00 80 13 00 00 00 00 00 00 1E [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:12]Read from MH i2c: E2 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 62 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 62 00 A2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 85 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [17:28:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 85 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:12]wFMCommunicate OK [17:28:12]SAM_PROTO_GetFieldsCounters done [17:28:12]requested_item shift.num is exist - process it [17:28:12]requested_item shift.opened is exist - process it [17:28:12]req_shift_opened [17:28:12]FM_GetShiftState [17:28:12]SAM_PROTO_GetShiftState [17:28:12]wFMCommunicate request_size=4 [17:28:12]MH_SAM_APDU [17:28:12]CAPDU: 80 13 01 00 [17:28:12]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:12]Read from MH i2c: E2 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 0E 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 22 [17:28:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:28:12]wFMCommunicate OK [17:28:12]SAM_PROTO_GetShiftState done [17:28:12]FM_GetShiftState done [17:28:12]req_shift_opened done [17:28:12]requested_item shift.open_date is exist - process it [17:28:12]req_shift_open_date [17:28:12]req_shift_open_date done [17:28:12]produce_requested_data done [17:28:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202117,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:28:12]process_action_free close_receipt [17:28:12]json_value_free [17:28:12]json_value_free done [17:28:12]process_json_proto returns [17:28:12]Send response to host [17:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202117,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:28:12]free response buf [17:28:12]execute_script done [17:28:12]execute_script returns [17:28:12]free content buf [17:28:12]Sock 7.Close socket [17:28:12]Sock 7.Thread stoped [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:50]accept exits with 9 [17:33:50]New connection [17:33:50]New thread 3067379044 created [17:33:50]Thread 3067235684 joined [17:33:50]Waiting for new connection... [17:33:50] Sock 9.Parse request [17:33:50]Sock 9.Check first char [17:33:50]Sock 9.First char is OK [17:33:50]request: POST /json_proto HTTP/1.0 [17:33:50]Method: POST [17:33:50]URL: /json_proto [17:33:50]Method is POST - this is cgi request [17:33:50]url: /json_proto [17:33:50]query_string will be loaded in cgi processing [17:33:50]execute_cgi json_proto POST (null) [17:33:50]execute_cgi path=json_proto method=POST [17:33:50]POST find Content-Length [17:33:50]Host: 172.17.63.195:8080 [17:33:50]Content-Length: 682 [17:33:50]Content-Type: application/json [17:33:50] [17:33:50]POST finish read [17:33:50]Found Content-Length = 682 [17:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:50]execute_script... [17:33: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)449888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:50]POST & json_proto [17:33:50]process_json_proto [17:33:50]json parsed OK: [17:33:50]protocol is kg_v1.0 [17:33:50]action value=close_receipt [17:33:50]process_action close_receipt [17:33:50]cmd_close_receipt [17:33:50]MH_GetDate [17:33:50]Write to MH i2c: F0 00 00 A4 00 93 [17:33:50]Write i2c OK [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: F0 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: F0 09 00 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: F0 09 00 A4 00 00 7E 79 1E 67 47 1B 1E 67 FF [17:33:50]GetLastDocTimeStamp 1730050088 [17:33:50]current date 1730050430 [17:33:50]FM_GetShiftState [17:33:50]SAM_PROTO_GetShiftState [17:33:50]wFMCommunicate request_size=4 [17:33:50]MH_SAM_APDU [17:33:50]CAPDU: 80 13 01 00 [17:33:50]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [17:33:50]Write i2c OK [17:33:50]MH_I2C_Read... [17:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:50]Read from MH i2c: E2 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 0E 00 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 24 [17:33:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:33:50]wFMCommunicate OK [17:33:50]SAM_PROTO_GetShiftState done [17:33:50]FM_GetShiftState done [17:33:50]opened in 1729987312 [17:33:50]opened+sec_in_day 1730073712 [17:33:50]quantity*price = 500033 [17:33:50]sum+1 = 500035 [17:33:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.01 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 410 27.10.2024 17:33 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202118 ФПД: 99481603898940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173350&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202118&fm=99481603898940&tin=02508201610067®Number=0000000000091777&sum=500000 [17:33:51]StoreToDocumentArchive [17:33:51]shift 544 fd 202118 [17:33:51]save to /storage/0544/doc_00202118 [17:33:51]save last doc name /storage/0544/doc_00202118 to /storage/kkm_last_doc_name [17:33:51]save OK [17:33:51]Clear old archive folders... [17:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:51]tlvbuf is 00D82EC0 [17:33:51]SAM_PROTO_ClearQueue [17:33:51]wFMCommunicate request_size=4 [17:33:51]MH_SAM_APDU [17:33:51]CAPDU: 80 09 00 00 [17:33:51]Write to MH i2c: E2 08 00 B2 00 80 09 00 00 00 00 00 00 24 [17:33:51]Write i2c OK [17:33:51]MH_I2C_Read... [17:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:51]Read from MH i2c: E2 [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: E2 03 00 [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [17:33:51]RAPDU: 90 00 [17:33:51]wFMCommunicate OK [17:33:51]SAM_PROTO_ClearQueue done [17:33:51]KKMCreateOFDPacket [17:33:51]OFDProtocolAddRootSTLVToBuf [17:33:51]FM_MakeSignedData [17:33:51]FM_MakeSignedData [17:33:51]SAM_PROTO_SignData [17:33:51]wFMCommunicate request_size=4 [17:33:51]MH_SAM_APDU [17:33:51]CAPDU: 80 0D 01 02 [17:33:51]Write to MH i2c: E2 08 00 B3 00 80 0D 01 02 00 00 00 00 2C [17:33:51]Write i2c OK [17:33:51]MH_I2C_Read... [17:33:51]OFD Sender: No OFD packet to send [17:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:51]Read from MH i2c: E2 [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: E2 03 00 [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [17:33:51]RAPDU: 90 00 [17:33:51]wFMCommunicate OK [17:33:51]wFMCommunicate request_size=255 [17:33:51]MH_SAM_APDU [17:33:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 7E 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 15 03 00 35 04 06 00 5A [17:33:51]Write to MH i2c: E2 02 01 B4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 7E 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 15 03 00 35 04 06 00 5A 00 00 DF [17:33:51]Write i2c OK [17:33:51]MH_I2C_Read... [17:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:52]Read from MH i2c: E2 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 03 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [17:33:52]RAPDU: 90 00 [17:33:52]wFMCommunicate OK [17:33:52]wFMCommunicate request_size=10 [17:33:52]MH_SAM_APDU [17:33:52]CAPDU: 80 0D 02 02 05 7A 5D A9 7E 3C [17:33:52]Write to MH i2c: E2 0D 00 B5 00 80 0D 02 02 05 00 7A 5D A9 7E 3C 00 00 73 [17:33:52]Write i2c OK [17:33:52]MH_I2C_Read... [17:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:52]Read from MH i2c: E2 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 03 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [17:33:52]RAPDU: 90 00 [17:33:52]wFMCommunicate OK [17:33:52]wFMCommunicate request_size=4 [17:33:52]MH_SAM_APDU [17:33:52]CAPDU: 80 0D 03 02 [17:33:52]Write to MH i2c: E2 08 00 B6 00 80 0D 03 02 00 00 00 00 31 [17:33:52]Write i2c OK [17:33:52]MH_I2C_Read... [17:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:52]Read from MH i2c: E2 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 0B 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 0B 00 B6 00 00 19 CE D6 C2 90 DF 25 50 90 00 95 [17:33:52]RAPDU: 19 CE D6 C2 90 DF 25 50 90 00 [17:33:52]wFMCommunicate OK [17:33:52]SAM_PROTO_SignData done [17:33:52]FM_MakeSignedData done [17:33:52]CreateOFDProtocolMessage [17:33:52]wFMCommunicate request_size=4 [17:33:52]MH_SAM_APDU [17:33:52]CAPDU: 80 11 00 00 [17:33:52]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [17:33:52]Write i2c OK [17:33:52]MH_I2C_Read... [17:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:52]Read from MH i2c: E2 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 17 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 86 [17:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:33:52]wFMCommunicate OK [17:33:52]CreateOFDProtocolMessage done [17:33:52]OFDSenderStorePacket 202118 [17:33:52]StoreOFDPacket docnum=202118 [17:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7D D1 07 01 C7 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 7E 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 15 03 00 35 04 06 00 5A 7A 5D A9 7E 3C 19 CE D6 C2 90 DF 25 50 [17:33:52]CheckFolder [17:33:52]dirname=/storage/ofd_packets [17:33:52]CheckFolder done [17:33:52]ProducePacketName [17:33:52]name=ofd_packets/00202118 [17:33:52]NVStorageSaveData ofd_packets/00202118 [17:33:52]File name is /storage/ofd_packets/00202118 [17:33:52]Write 301 bytes [17:33:52]NVStorageSaveData done [17:33:52]OFDSenderStorePacket done [17:33:52]KKMCreateOFDPacket done [17:33:52]NVStorageSaveData kkm_last_timestamp [17:33:52]File name is /storage/kkm_last_timestamp [17:33:52]Write 4 bytes [17:33:52]NVStorageSaveData done [17:33:52]ExternCall_PrintAddStr [17:33:52]wPrintStart [17:33:52]Write to MH i2c: 01 00 00 B8 00 B8 [17:33:52]Write i2c OK [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: 01 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: 01 07 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 FF 0F CD [17:33:52]RasterBufferAndPrint [17:33:52]line Счет N : (1)449888 [17:33:52]line ИНН: 02508201610067 [17:33:52]line Контрольно-Кассовый Чек [17:33:52]line ПРОДАЖА [17:33:52]line ТРК (МРК, ГНК) : 61 [17:33:52]line Товар: 2710124500 [17:33:52]line Аи-95-К-3 [17:33:52]line 67.390 * 74.20 [17:33:52]line = 5000.34 [17:33:52]line НДС 12% НСП 1% [17:33:52]line > о реализуемом товаре [17:33:52]line ОКРУГЛЕНИЕ: -0.34 [17:33:52]line ИТОГО: 5000.00 [17:33:52]line Внесено: 5000.00 [17:33:52]line СДАЧА: 0.00 [17:33:52]line НСП 1% : 44.25 [17:33:52]line НДС 12% : 531.01 [17:33:52]line Наличными: 5000.00 [17:33:52]line Безнал.: 0.00 [17:33:52]line Место: АЗС № 171 "Партнер Нефть" [17:33:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:33:52]line СНО: Общий режим [17:33:52]line Чек 410 27.10.2024 17:33 [17:33:52]line Смена: 544 ФФД: 1.0 [17:33:52]line ЗНМ: 0300000109 [17:33:52]line РНМ: 0000000000091777 [17:33:52]line Версия ККМ: 001 [17:33:52]line ФМ: 0000000000871756 [17:33:52]line ФД: 202118 [17:33:52]line ФПД: 99481603898940 [17:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173350&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202118&fm=99481603898940&tin=02508201610067®Number=0000000000091777&sum=500000 [17:33:52]OFD Sender: Processing packet 202118 [packets to send 114, broken 113] [17:33:52]ProducePacketName [17:33:52]name=ofd_packets/00202118 [17:33:52]OFD Sender: To server: pG, [17:33:52]CommunicateWithHost lk.salyk.kg:30040 [17:33:52]ConnectInit lk.salyk.kg [17:33:52]written 0, free lines is 4095 [17:33:52]Connected sock=10 [17:33:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7D D1 07 01 C7 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 7E 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 15 03 00 35 04 06 00 5A 7A 5D A9 7E 3C 19 CE D6 C2 90 DF 25 50 [17:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 57 04 47 00 76 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 15 03 00 F4 03 04 00 38 25 1E 67 B6 04 01 00 00 E2 50 C6 4B 12 DF D0 E3 [17:33:52]CommunicateWithHost err = 0 [17:33:52]CheckOFDResponse [17:33:52]1017 (14) - 77093643461234 [17:33:52]1041 (16) - 0000000000871756 [17:33:52]1040 (4) - 202118 [17:33:52]1012 (4) - 27.10.2024 11:34 [17:33:52]1206 (1) - 0 [17:33:52]OFD Sender: Remove packet 202118 [17:33:52]ProducePacketName [17:33:52]name=ofd_packets/00202118 [17:33:52]NVStorageDeleteData [17:33:53]Write to MH i2c: 01 00 00 E3 00 E3 [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: 01 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: 01 07 00 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 93 0C 89 [17:33:53]RasterBufferAndPrint [17:33:53]line [17:33:53]line [17:33:53]line [17:33:53]line [17:33:53]line [17:33:53]written 0, free lines is 3224 [17:33:53]MH_Cut [17:33:53]Write to MH i2c: D1 01 00 EA 00 01 BC [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: D1 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: D1 01 00 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: D1 01 00 EA 00 00 BB [17:33:53]Write to MH i2c: 01 00 00 EB 00 EB [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]OFD Sender: No OFD packet to send [17:33:53]*** Cut start [17:33:53]*** Purtial cut [17:33:53]*** Stage 1: CUTSNS_PIN = 1 [17:33:54]Read from MH i2c: 01 [17:33:54]MH_I2C_Read... [17:33:54]*** Stop cut motor [17:33:54]*** Cut end [17:33:54]Read from MH i2c: 01 07 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 FF 0F 00 [17:33:54]process_action close_receipt done [17:33:54]requested_data is exist [17:33:54]produce_requested_data [17:33:54]requested_item fm.sn is exist - process it [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 11 00 00 [17:33:54]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 17 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [17:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:33:54]wFMCommunicate OK [17:33:54]requested_item fd.num is exist - process it [17:33:54]SAM_PROTO_GetFieldsCounters [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 13 00 00 [17:33:54]Write to MH i2c: E2 08 00 ED 00 80 13 00 00 00 00 00 00 69 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 62 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 62 00 ED 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 86 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:33:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 86 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:54]wFMCommunicate OK [17:33:54]SAM_PROTO_GetFieldsCounters done [17:33:54]requested_item shift.num is exist - process it [17:33:54]requested_item shift.opened is exist - process it [17:33:54]req_shift_opened [17:33:54]FM_GetShiftState [17:33:54]SAM_PROTO_GetShiftState [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 13 01 00 [17:33:54]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 0E 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6D [17:33:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:33:54]wFMCommunicate OK [17:33:54]SAM_PROTO_GetShiftState done [17:33:54]FM_GetShiftState done [17:33:54]req_shift_opened done [17:33:54]requested_item shift.open_date is exist - process it [17:33:54]req_shift_open_date [17:33:54]req_shift_open_date done [17:33:54]produce_requested_data done [17:33:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202118,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:33:54]process_action_free close_receipt [17:33:54]json_value_free [17:33:54]json_value_free done [17:33:54]process_json_proto returns [17:33:54]Send response to host [17:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202118,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:33:54]free response buf [17:33:54]execute_script done [17:33:54]execute_script returns [17:33:54]free content buf [17:33:54]Sock 9.Close socket [17:33:54]Sock 9.Thread stoped [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:06]accept exits with 7 [17:34:06]New connection [17:34:06]New thread 3067235684 created [17:34:06]Thread 3067379044 joined [17:34:06]Waiting for new connection... [17:34:06] Sock 7.Parse request [17:34:06]Sock 7.Check first char [17:34:06]Sock 7.First char is OK [17:34:06]request: POST /json_proto HTTP/1.0 [17:34:06]Method: POST [17:34:06]URL: /json_proto [17:34:06]Method is POST - this is cgi request [17:34:06]url: /json_proto [17:34:06]query_string will be loaded in cgi processing [17:34:06]execute_cgi json_proto POST (null) [17:34:06]execute_cgi path=json_proto method=POST [17:34:06]POST find Content-Length [17:34:06]Host: 172.17.63.195:8080 [17:34:06]Content-Length: 766 [17:34:06]Content-Type: application/json [17:34:06] [17:34:06]POST finish read [17:34:06]Found Content-Length = 766 [17:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:06]execute_script... [17:34:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:06]POST & json_proto [17:34:06]process_json_proto [17:34:06]json parsed OK: [17:34:06]protocol is kg_v1.0 [17:34:06]action value=close_receipt [17:34:06]process_action close_receipt [17:34:06]cmd_close_receipt [17:34:06]MH_GetDate [17:34:06]Write to MH i2c: F0 00 00 EF 00 DE [17:34:06]Write i2c OK [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: F0 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: F0 09 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: F0 09 00 EF 00 00 8E 79 1E 67 47 1B 1E 67 5A [17:34:06]GetLastDocTimeStamp 1730050430 [17:34:06]current date 1730050446 [17:34:06]FM_GetShiftState [17:34:06]SAM_PROTO_GetShiftState [17:34:06]wFMCommunicate request_size=4 [17:34:06]MH_SAM_APDU [17:34:06]CAPDU: 80 13 01 00 [17:34:06]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [17:34:06]Write i2c OK [17:34:06]MH_I2C_Read... [17:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:06]Read from MH i2c: E2 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 0E 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6F [17:34:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:34:06]wFMCommunicate OK [17:34:06]SAM_PROTO_GetShiftState done [17:34:06]FM_GetShiftState done [17:34:06]opened in 1729987312 [17:34:06]opened+sec_in_day 1730073712 [17:34:06]quantity*price = 20003 [17:34:06]sum+1 = 20004 [17:34:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 411 27.10.2024 17:34 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202119 ФПД: 258770744771435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173406&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202119&fm=258770744771435&tin=02508201610067®Number=0000000000091777&sum=20003 [17:34:07]StoreToDocumentArchive [17:34:07]shift 544 fd 202119 [17:34:07]save to /storage/0544/doc_00202119 [17:34:07]save last doc name /storage/0544/doc_00202119 to /storage/kkm_last_doc_name [17:34:07]save OK [17:34:07]Clear old archive folders... [17:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:07]tlvbuf is 00D97C60 [17:34:07]SAM_PROTO_ClearQueue [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 09 00 00 [17:34:07]Write to MH i2c: E2 08 00 FD 00 80 09 00 00 00 00 00 00 6F [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:07]Read from MH i2c: E2 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 03 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [17:34:07]RAPDU: 90 00 [17:34:07]wFMCommunicate OK [17:34:07]SAM_PROTO_ClearQueue done [17:34:07]KKMCreateOFDPacket [17:34:07]OFDProtocolAddRootSTLVToBuf [17:34:07]FM_MakeSignedData [17:34:07]FM_MakeSignedData [17:34:07]SAM_PROTO_SignData [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 0D 01 02 [17:34:07]Write to MH i2c: E2 08 00 FE 00 80 0D 01 02 00 00 00 00 77 [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:07]Read from MH i2c: E2 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 03 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [17:34:07]RAPDU: 90 00 [17:34:07]wFMCommunicate OK [17:34:07]wFMCommunicate request_size=255 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 8E 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 15 03 00 35 04 06 00 EB [17:34:07]Write to MH i2c: E2 02 01 FF 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 8E 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 15 03 00 35 04 06 00 EB 00 00 A7 [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=10 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 02 02 05 59 C2 52 03 6B [17:34:08]Write to MH i2c: E2 0D 00 00 01 80 0D 02 02 05 00 59 C2 52 03 6B 00 00 60 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 03 02 [17:34:08]Write to MH i2c: E2 08 00 01 01 80 0D 03 02 00 00 00 00 7D [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0B 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0B 00 01 01 00 03 70 2C 5D E9 11 28 F3 90 00 8F [17:34:08]RAPDU: 03 70 2C 5D E9 11 28 F3 90 00 [17:34:08]wFMCommunicate OK [17:34:08]SAM_PROTO_SignData done [17:34:08]FM_MakeSignedData done [17:34:08]CreateOFDProtocolMessage [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 11 00 00 [17:34:08]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 17 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D2 [17:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:34:08]wFMCommunicate OK [17:34:08]CreateOFDProtocolMessage done [17:34:08]OFDSenderStorePacket 202119 [17:34:08]StoreOFDPacket docnum=202119 [17:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 86 DF 07 01 A2 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 8E 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 15 03 00 35 04 06 00 EB 59 C2 52 03 6B 03 70 2C 5D E9 11 28 F3 [17:34:08]CheckFolder [17:34:08]dirname=/storage/ofd_packets [17:34:08]CheckFolder done [17:34:08]ProducePacketName [17:34:08]name=ofd_packets/00202119 [17:34:08]NVStorageSaveData ofd_packets/00202119 [17:34:08]File name is /storage/ofd_packets/00202119 [17:34:08]Write 301 bytes [17:34:08]NVStorageSaveData done [17:34:08]OFDSenderStorePacket done [17:34:08]KKMCreateOFDPacket done [17:34:08]NVStorageSaveData kkm_last_timestamp [17:34:08]File name is /storage/kkm_last_timestamp [17:34:08]Write 4 bytes [17:34:08]NVStorageSaveData done [17:34:08]OFD Sender: Processing packet 202119 [packets to send 114, broken 113] [17:34:08]ProducePacketName [17:34:08]name=ofd_packets/00202119 [17:34:08]OFD Sender: To server: pG, [17:34:08]CommunicateWithHost lk.salyk.kg:30040 [17:34:08]ConnectInit lk.salyk.kg [17:34:08]ExternCall_PrintAddStr [17:34:08]wPrintStart [17:34:08]Write to MH i2c: 01 00 00 03 01 04 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 FF 0F 19 [17:34:08]RasterBufferAndPrint [17:34:08]line Счет N : (1)449889 [17:34:08]line ИНН: 02508201610067 [17:34:08]line Контрольно-Кассовый Чек [17:34:08]line ПРОДАЖА [17:34:08]line ТРК (МРК, ГНК) : 41 [17:34:08]line Товар: 2710124130 [17:34:08]line Аи-92-К-2 [17:34:08]line 2.990 * 66.90 [17:34:08]line = 200.03 [17:34:08]line НДС 12% НСП 1% [17:34:08]line > о реализуемом товаре [17:34:08]line ИТОГО: 200.03 [17:34:08]line НСП 1% : 1.77 [17:34:08]line НДС 12% : 21.24 [17:34:08]line Наличными: 0.00 [17:34:08]line Безнал.: 200.03 [17:34:08]line Место: АЗС № 171 "Партнер Нефть" [17:34:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:34:08]line СНО: Общий режим [17:34:08]line Чек 411 27.10.2024 17:34 [17:34:08]line Смена: 544 ФФД: 1.0 [17:34:08]line ЗНМ: 0300000109 [17:34:08]line РНМ: 0000000000091777 [17:34:08]line Версия ККМ: 001 [17:34:08]line Платежная система: Mbank [17:34:08]line ФМ: 0000000000871756 [17:34:08]line ФД: 202119 [17:34:08]line ФПД: 258770744771435 [17:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173406&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202119&fm=258770744771435&tin=02508201610067®Number=0000000000091777&sum=20003 [17:34:08]Connected sock=11 [17:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 86 DF 07 01 A2 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 8E 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 15 03 00 35 04 06 00 EB 59 C2 52 03 6B 03 70 2C 5D E9 11 28 F3 [17:34:08]written 0, free lines is 4095 [17:34:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 46 BA 47 00 54 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 15 03 00 F4 03 04 00 47 25 1E 67 B6 04 01 00 00 0B FD 82 A5 A7 D5 6D 8E [17:34:08]CommunicateWithHost err = 0 [17:34:08]CheckOFDResponse [17:34:08]1017 (14) - 77093643461234 [17:34:08]1041 (16) - 0000000000871756 [17:34:08]1040 (4) - 202119 [17:34:08]1012 (4) - 27.10.2024 11:34 [17:34:08]1206 (1) - 0 [17:34:08]OFD Sender: Remove packet 202119 [17:34:08]ProducePacketName [17:34:08]name=ofd_packets/00202119 [17:34:08]NVStorageDeleteData [17:34:08]Write to MH i2c: 01 00 00 2C 01 2D [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 C1 0C 01 [17:34:08]RasterBufferAndPrint [17:34:08]line [17:34:08]line [17:34:08]line [17:34:08]line [17:34:08]line [17:34:08]written 0, free lines is 3270 [17:34:08]MH_Cut [17:34:08]Write to MH i2c: D1 01 00 33 01 01 06 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: D1 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: D1 01 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: D1 01 00 33 01 00 05 [17:34:08]Write to MH i2c: 01 00 00 34 01 35 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:09]OFD Sender: No OFD packet to send [17:34:09]*** Cut start [17:34:09]*** Purtial cut [17:34:09]*** Stage 1: CUTSNS_PIN = 1 [17:34:10]Read from MH i2c: 01 [17:34:10]MH_I2C_Read... [17:34:10]*** Stop cut motor [17:34:10]*** Cut end [17:34:10]Read from MH i2c: 01 07 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 FF 0F 4A [17:34:10]process_action close_receipt done [17:34:10]requested_data is exist [17:34:10]produce_requested_data [17:34:10]requested_item fm.sn is exist - process it [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 11 00 00 [17:34:10]Write to MH i2c: E2 08 00 35 01 80 11 00 00 00 00 00 00 B0 [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 17 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 17 00 35 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 05 [17:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:34:10]wFMCommunicate OK [17:34:10]requested_item fd.num is exist - process it [17:34:10]SAM_PROTO_GetFieldsCounters [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 13 00 00 [17:34:10]Write to MH i2c: E2 08 00 36 01 80 13 00 00 00 00 00 00 B3 [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 62 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 62 00 36 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 87 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [17:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 87 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:10]wFMCommunicate OK [17:34:10]SAM_PROTO_GetFieldsCounters done [17:34:10]requested_item shift.num is exist - process it [17:34:10]requested_item shift.opened is exist - process it [17:34:10]req_shift_opened [17:34:10]FM_GetShiftState [17:34:10]SAM_PROTO_GetShiftState [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 13 01 00 [17:34:10]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 0E 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B7 [17:34:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:34:10]wFMCommunicate OK [17:34:10]SAM_PROTO_GetShiftState done [17:34:10]FM_GetShiftState done [17:34:10]req_shift_opened done [17:34:10]requested_item shift.open_date is exist - process it [17:34:10]req_shift_open_date [17:34:10]req_shift_open_date done [17:34:10]produce_requested_data done [17:34:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202119,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:34:10]process_action_free close_receipt [17:34:10]json_value_free [17:34:10]json_value_free done [17:34:10]process_json_proto returns [17:34:10]Send response to host [17:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202119,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:34:10]free response buf [17:34:10]execute_script done [17:34:10]execute_script returns [17:34:10]free content buf [17:34:10]Sock 7.Close socket [17:34:10]Sock 7.Thread stoped [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:20]accept exits with 9 [17:35:20]New connection [17:35:20]New thread 3067379044 created [17:35:20]Thread 3067235684 joined [17:35:20]Waiting for new connection... [17:35:20] Sock 9.Parse request [17:35:20]Sock 9.Check first char [17:35:20]Sock 9.First char is OK [17:35:20]request: POST /json_proto HTTP/1.0 [17:35:20]Method: POST [17:35:20]URL: /json_proto [17:35:20]Method is POST - this is cgi request [17:35:20]url: /json_proto [17:35:20]query_string will be loaded in cgi processing [17:35:20]execute_cgi json_proto POST (null) [17:35:20]execute_cgi path=json_proto method=POST [17:35:20]POST find Content-Length [17:35:20]Host: 172.17.63.195:8080 [17:35:20]Content-Length: 682 [17:35:20]Content-Type: application/json [17:35:20] [17:35:20]POST finish read [17:35:20]Found Content-Length = 682 [17:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:35:20]execute_script... [17:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:35:20]POST & json_proto [17:35:20]process_json_proto [17:35:20]json parsed OK: [17:35:20]protocol is kg_v1.0 [17:35:20]action value=close_receipt [17:35:20]process_action close_receipt [17:35:20]cmd_close_receipt [17:35:20]MH_GetDate [17:35:20]Write to MH i2c: F0 00 00 38 01 28 [17:35:20]Write i2c OK [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: F0 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: F0 09 00 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: F0 09 00 38 01 00 D8 79 1E 67 47 1B 1E 67 EE [17:35:20]GetLastDocTimeStamp 1730050446 [17:35:20]current date 1730050520 [17:35:20]FM_GetShiftState [17:35:20]SAM_PROTO_GetShiftState [17:35:20]wFMCommunicate request_size=4 [17:35:20]MH_SAM_APDU [17:35:20]CAPDU: 80 13 01 00 [17:35:20]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [17:35:20]Write i2c OK [17:35:20]MH_I2C_Read... [17:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:20]Read from MH i2c: E2 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 0E 00 [17:35:20]MH_I2C_Read... [17:35:20]Read from MH i2c: E2 0E 00 39 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B9 [17:35:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:35:20]wFMCommunicate OK [17:35:20]SAM_PROTO_GetShiftState done [17:35:20]FM_GetShiftState done [17:35:20]opened in 1729987312 [17:35:20]opened+sec_in_day 1730073712 [17:35:20]quantity*price = 100015 [17:35:20]sum+1 = 100017 [17:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 412 27.10.2024 17:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202120 ФПД: 179969716335587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173520&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202120&fm=179969716335587&tin=02508201610067®Number=0000000000091777&sum=100000 [17:35:21]StoreToDocumentArchive [17:35:21]shift 544 fd 202120 [17:35:21]save to /storage/0544/doc_00202120 [17:35:21]save last doc name /storage/0544/doc_00202120 to /storage/kkm_last_doc_name [17:35:21]save OK [17:35:21]Clear old archive folders... [17:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:21]tlvbuf is 00D79700 [17:35:21]SAM_PROTO_ClearQueue [17:35:21]wFMCommunicate request_size=4 [17:35:21]MH_SAM_APDU [17:35:21]CAPDU: 80 09 00 00 [17:35:21]Write to MH i2c: E2 08 00 46 01 80 09 00 00 00 00 00 00 B9 [17:35:21]Write i2c OK [17:35:21]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [17:35:22]RAPDU: 90 00 [17:35:22]wFMCommunicate OK [17:35:22]SAM_PROTO_ClearQueue done [17:35:22]KKMCreateOFDPacket [17:35:22]OFDProtocolAddRootSTLVToBuf [17:35:22]FM_MakeSignedData [17:35:22]FM_MakeSignedData [17:35:22]SAM_PROTO_SignData [17:35:22]wFMCommunicate request_size=4 [17:35:22]MH_SAM_APDU [17:35:22]CAPDU: 80 0D 01 02 [17:35:22]Write to MH i2c: E2 08 00 47 01 80 0D 01 02 00 00 00 00 C1 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [17:35:22]RAPDU: 90 00 [17:35:22]wFMCommunicate OK [17:35:22]wFMCommunicate request_size=255 [17:35:22]MH_SAM_APDU [17:35:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9C 01 00 00 F4 03 04 00 D8 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 15 03 00 35 04 06 00 A3 [17:35:22]Write to MH i2c: E2 02 01 48 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9C 01 00 00 F4 03 04 00 D8 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 15 03 00 35 04 06 00 A3 00 00 27 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [17:35:22]RAPDU: 90 00 [17:35:22]wFMCommunicate OK [17:35:22]wFMCommunicate request_size=10 [17:35:22]MH_SAM_APDU [17:35:22]CAPDU: 80 0D 02 02 05 AE 77 03 33 E3 [17:35:22]Write to MH i2c: E2 0D 00 49 01 80 0D 02 02 05 00 AE 77 03 33 E3 00 00 0C [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [17:35:22]RAPDU: 90 00 [17:35:22]wFMCommunicate OK [17:35:22]wFMCommunicate request_size=4 [17:35:22]MH_SAM_APDU [17:35:22]CAPDU: 80 0D 03 02 [17:35:22]Write to MH i2c: E2 08 00 4A 01 80 0D 03 02 00 00 00 00 C6 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 0B 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 0B 00 4A 01 00 E9 BE AA E3 3E 66 DC 1E 90 00 99 [17:35:22]RAPDU: E9 BE AA E3 3E 66 DC 1E 90 00 [17:35:22]wFMCommunicate OK [17:35:22]SAM_PROTO_SignData done [17:35:22]FM_MakeSignedData done [17:35:22]CreateOFDProtocolMessage [17:35:22]wFMCommunicate request_size=4 [17:35:22]MH_SAM_APDU [17:35:22]CAPDU: 80 11 00 00 [17:35:22]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:22]Read from MH i2c: E2 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 17 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [17:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:35:22]wFMCommunicate OK [17:35:22]CreateOFDProtocolMessage done [17:35:22]OFDSenderStorePacket 202120 [17:35:22]StoreOFDPacket docnum=202120 [17:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 DD 07 01 E4 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9C 01 00 00 F4 03 04 00 D8 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 15 03 00 35 04 06 00 A3 AE 77 03 33 E3 E9 BE AA E3 3E 66 DC 1E [17:35:22]CheckFolder [17:35:22]dirname=/storage/ofd_packets [17:35:22]CheckFolder done [17:35:22]ProducePacketName [17:35:22]name=ofd_packets/00202120 [17:35:22]NVStorageSaveData ofd_packets/00202120 [17:35:22]File name is /storage/ofd_packets/00202120 [17:35:22]Write 301 bytes [17:35:22]NVStorageSaveData done [17:35:22]OFDSenderStorePacket done [17:35:22]KKMCreateOFDPacket done [17:35:22]NVStorageSaveData kkm_last_timestamp [17:35:22]File name is /storage/kkm_last_timestamp [17:35:22]Write 4 bytes [17:35:22]NVStorageSaveData done [17:35:22]ExternCall_PrintAddStr [17:35:22]wPrintStart [17:35:22]Write to MH i2c: 01 00 00 4C 01 4D [17:35:22]Write i2c OK [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 07 00 [17:35:22]MH_I2C_Read... [17:35:22]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 FF 0F 62 [17:35:22]RasterBufferAndPrint [17:35:22]line Счет N : (1)449890 [17:35:22]line ИНН: 02508201610067 [17:35:22]line Контрольно-Кассовый Чек [17:35:22]line ПРОДАЖА [17:35:22]line ТРК (МРК, ГНК) : 31 [17:35:22]line Товар: 2710124130 [17:35:22]line Аи-92-К-2 [17:35:22]line 14.950 * 66.90 [17:35:22]line = 1000.16 [17:35:22]line НДС 12% НСП 1% [17:35:22]line > о реализуемом товаре [17:35:22]line ОКРУГЛЕНИЕ: -0.16 [17:35:22]line ИТОГО: 1000.00 [17:35:22]line Внесено: 1000.00 [17:35:22]line СДАЧА: 0.00 [17:35:22]line НСП 1% : 8.85 [17:35:22]line НДС 12% : 106.21 [17:35:22]line Наличными: 1000.00 [17:35:22]line Безнал.: 0.00 [17:35:22]line Место: АЗС № 171 "Партнер Нефть" [17:35:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:35:22]line СНО: Общий режим [17:35:22]line Чек 412 27.10.2024 17:35 [17:35:22]line Смена: 544 ФФД: 1.0 [17:35:22]line ЗНМ: 0300000109 [17:35:22]line РНМ: 0000000000091777 [17:35:22]line Версия ККМ: 001 [17:35:22]line ФМ: 0000000000871756 [17:35:22]line ФД: 202120 [17:35:22]line ФПД: 179969716335587 [17:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173520&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202120&fm=179969716335587&tin=02508201610067®Number=0000000000091777&sum=100000 [17:35:22]OFD Sender: Processing packet 202120 [packets to send 114, broken 113] [17:35:22]ProducePacketName [17:35:22]name=ofd_packets/00202120 [17:35:22]OFD Sender: To server: pG, [17:35:22]CommunicateWithHost lk.salyk.kg:30040 [17:35:22]ConnectInit lk.salyk.kg [17:35:22]written 0, free lines is 4095 [17:35:22]Connected sock=10 [17:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 DD 07 01 E4 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9C 01 00 00 F4 03 04 00 D8 79 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 15 03 00 35 04 06 00 A3 AE 77 03 33 E3 E9 BE AA E3 3E 66 DC 1E [17:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 41 B1 47 00 99 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 15 03 00 F4 03 04 00 92 25 1E 67 B6 04 01 00 00 A6 27 F2 DB F8 37 CF 26 [17:35:23]CommunicateWithHost err = 0 [17:35:23]CheckOFDResponse [17:35:23]1017 (14) - 77093643461234 [17:35:23]1041 (16) - 0000000000871756 [17:35:23]1040 (4) - 202120 [17:35:23]1012 (4) - 27.10.2024 11:35 [17:35:23]1206 (1) - 0 [17:35:23]OFD Sender: Remove packet 202120 [17:35:23]ProducePacketName [17:35:23]name=ofd_packets/00202120 [17:35:23]NVStorageDeleteData [17:35:23]Write to MH i2c: 01 00 00 77 01 78 [17:35:23]Write i2c OK [17:35:23]MH_I2C_Read... [17:35:23]Read from MH i2c: 01 [17:35:23]MH_I2C_Read... [17:35:23]Read from MH i2c: 01 07 00 [17:35:23]MH_I2C_Read... [17:35:23]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 97 0C 22 [17:35:23]RasterBufferAndPrint [17:35:23]line [17:35:23]line [17:35:23]line [17:35:23]line [17:35:23]line [17:35:23]written 0, free lines is 3227 [17:35:23]MH_Cut [17:35:23]Write to MH i2c: D1 01 00 7E 01 01 51 [17:35:23]Write i2c OK [17:35:23]MH_I2C_Read... [17:35:23]Read from MH i2c: D1 [17:35:23]MH_I2C_Read... [17:35:23]Read from MH i2c: D1 01 00 [17:35:23]MH_I2C_Read... [17:35:23]Read from MH i2c: D1 01 00 7E 01 00 50 [17:35:23]Write to MH i2c: 01 00 00 7F 01 80 [17:35:23]Write i2c OK [17:35:23]MH_I2C_Read... [17:35:23]OFD Sender: No OFD packet to send [17:35:24]*** Cut start [17:35:24]*** Purtial cut [17:35:24]*** Stage 1: CUTSNS_PIN = 1 [17:35:24]Read from MH i2c: 01 [17:35:24]MH_I2C_Read... [17:35:24]*** Stop cut motor [17:35:24]*** Cut end [17:35:24]Read from MH i2c: 01 07 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: 01 07 00 7F 01 00 00 00 00 00 FF 0F 95 [17:35:24]process_action close_receipt done [17:35:24]requested_data is exist [17:35:24]produce_requested_data [17:35:24]requested_item fm.sn is exist - process it [17:35:24]wFMCommunicate request_size=4 [17:35:24]MH_SAM_APDU [17:35:24]CAPDU: 80 11 00 00 [17:35:24]Write to MH i2c: E2 08 00 80 01 80 11 00 00 00 00 00 00 FB [17:35:24]Write i2c OK [17:35:24]MH_I2C_Read... [17:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:24]Read from MH i2c: E2 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 17 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 17 00 80 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 50 [17:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:35:24]wFMCommunicate OK [17:35:24]requested_item fd.num is exist - process it [17:35:24]SAM_PROTO_GetFieldsCounters [17:35:24]wFMCommunicate request_size=4 [17:35:24]MH_SAM_APDU [17:35:24]CAPDU: 80 13 00 00 [17:35:24]Write to MH i2c: E2 08 00 81 01 80 13 00 00 00 00 00 00 FE [17:35:24]Write i2c OK [17:35:24]MH_I2C_Read... [17:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:24]Read from MH i2c: E2 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 62 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 62 00 81 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 88 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [17:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 88 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:24]wFMCommunicate OK [17:35:24]SAM_PROTO_GetFieldsCounters done [17:35:24]requested_item shift.num is exist - process it [17:35:24]requested_item shift.opened is exist - process it [17:35:24]req_shift_opened [17:35:24]FM_GetShiftState [17:35:24]SAM_PROTO_GetShiftState [17:35:24]wFMCommunicate request_size=4 [17:35:24]MH_SAM_APDU [17:35:24]CAPDU: 80 13 01 00 [17:35:24]Write to MH i2c: E2 08 00 82 01 80 13 01 00 00 00 00 00 00 [17:35:24]Write i2c OK [17:35:24]MH_I2C_Read... [17:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:24]Read from MH i2c: E2 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 0E 00 [17:35:24]MH_I2C_Read... [17:35:24]Read from MH i2c: E2 0E 00 82 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 02 [17:35:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:35:24]wFMCommunicate OK [17:35:24]SAM_PROTO_GetShiftState done [17:35:24]FM_GetShiftState done [17:35:24]req_shift_opened done [17:35:24]requested_item shift.open_date is exist - process it [17:35:24]req_shift_open_date [17:35:24]req_shift_open_date done [17:35:24]produce_requested_data done [17:35:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202120,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:35:24]process_action_free close_receipt [17:35:24]json_value_free [17:35:24]json_value_free done [17:35:24]process_json_proto returns [17:35:24]Send response to host [17:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202120,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:35:24]free response buf [17:35:24]execute_script done [17:35:24]execute_script returns [17:35:24]free content buf [17:35:24]Sock 9.Close socket [17:35:24]Sock 9.Thread stoped [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:19]accept exits with 7 [17:36:19]New connection [17:36:19]New thread 3067235684 created [17:36:19]Thread 3067379044 joined [17:36:19]Waiting for new connection... [17:36:19] Sock 7.Parse request [17:36:19]Sock 7.Check first char [17:36:19]Sock 7.First char is OK [17:36:19]request: POST /json_proto HTTP/1.0 [17:36:19]Method: POST [17:36:19]URL: /json_proto [17:36:19]Method is POST - this is cgi request [17:36:19]url: /json_proto [17:36:19]query_string will be loaded in cgi processing [17:36:19]execute_cgi json_proto POST (null) [17:36:19]execute_cgi path=json_proto method=POST [17:36:19]POST find Content-Length [17:36:19]Host: 172.17.63.195:8080 [17:36:19]Content-Length: 678 [17:36:19]Content-Type: application/json [17:36:19] [17:36:19]POST finish read [17:36:19]Found Content-Length = 678 [17:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.500, "sum" : 970.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 970.00, "total" : 970.00, "payments": [ { "type": 0, "sum" : 970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:19]execute_script... [17:36: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)449891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.500, "sum" : 970.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 970.00, "total" : 970.00, "payments": [ { "type": 0, "sum" : 970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:19]POST & json_proto [17:36:19]process_json_proto [17:36:19]json parsed OK: [17:36:19]protocol is kg_v1.0 [17:36:19]action value=close_receipt [17:36:19]process_action close_receipt [17:36:19]cmd_close_receipt [17:36:19]MH_GetDate [17:36:19]Write to MH i2c: F0 00 00 83 01 73 [17:36:19]Write i2c OK [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: F0 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: F0 09 00 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: F0 09 00 83 01 00 13 7A 1E 67 47 1B 1E 67 75 [17:36:19]GetLastDocTimeStamp 1730050520 [17:36:19]current date 1730050579 [17:36:19]FM_GetShiftState [17:36:19]SAM_PROTO_GetShiftState [17:36:19]wFMCommunicate request_size=4 [17:36:19]MH_SAM_APDU [17:36:19]CAPDU: 80 13 01 00 [17:36:19]Write to MH i2c: E2 08 00 84 01 80 13 01 00 00 00 00 00 02 [17:36:19]Write i2c OK [17:36:19]MH_I2C_Read... [17:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:19]Read from MH i2c: E2 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: E2 0E 00 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: E2 0E 00 84 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 04 [17:36:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:36:19]wFMCommunicate OK [17:36:19]SAM_PROTO_GetShiftState done [17:36:19]FM_GetShiftState done [17:36:19]opened in 1729987312 [17:36:19]opened+sec_in_day 1730073712 [17:36:19]quantity*price = 97005 [17:36:19]sum+1 = 97006 [17:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 970.00 Внесено: 970.00 СДАЧА: 0.00 НСП 1% : 8.58 НДС 12% : 103.01 Наличными: 970.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 413 27.10.2024 17:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202121 ФПД: 252527250441572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173619&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202121&fm=252527250441572&tin=02508201610067®Number=0000000000091777&sum=97000 [17:36:20]StoreToDocumentArchive [17:36:20]shift 544 fd 202121 [17:36:20]save to /storage/0544/doc_00202121 [17:36:20]save last doc name /storage/0544/doc_00202121 to /storage/kkm_last_doc_name [17:36:20]save OK [17:36:20]Clear old archive folders... [17:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:20]tlvbuf is 00D74BF0 [17:36:20]SAM_PROTO_ClearQueue [17:36:20]wFMCommunicate request_size=4 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 09 00 00 [17:36:20]Write to MH i2c: E2 08 00 91 01 80 09 00 00 00 00 00 00 04 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 03 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [17:36:20]RAPDU: 90 00 [17:36:20]wFMCommunicate OK [17:36:20]SAM_PROTO_ClearQueue done [17:36:20]KKMCreateOFDPacket [17:36:20]OFDProtocolAddRootSTLVToBuf [17:36:20]FM_MakeSignedData [17:36:20]FM_MakeSignedData [17:36:20]SAM_PROTO_SignData [17:36:20]wFMCommunicate request_size=4 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 0D 01 02 [17:36:20]Write to MH i2c: E2 08 00 92 01 80 0D 01 02 00 00 00 00 0C [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 03 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [17:36:20]RAPDU: 90 00 [17:36:20]wFMCommunicate OK [17:36:20]wFMCommunicate request_size=255 [17:36:20]MH_SAM_APDU [17:36: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 32 FF 03 08 00 03 A4 38 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 ED 7A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 13 7A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 15 03 00 35 04 06 00 E5 [17:36:20]Write to MH i2c: E2 02 01 93 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 38 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 ED 7A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 13 7A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 15 03 00 35 04 06 00 E5 00 00 7B [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 03 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [17:36:20]RAPDU: 90 00 [17:36:20]wFMCommunicate OK [17:36:20]wFMCommunicate request_size=10 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 0D 02 02 05 AC 15 0F 05 64 [17:36:20]Write to MH i2c: E2 0D 00 94 01 80 0D 02 02 05 00 AC 15 0F 05 64 00 00 52 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 03 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [17:36:20]RAPDU: 90 00 [17:36:20]wFMCommunicate OK [17:36:20]wFMCommunicate request_size=4 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 0D 03 02 [17:36:20]Write to MH i2c: E2 08 00 95 01 80 0D 03 02 00 00 00 00 11 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 0B 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 0B 00 95 01 00 C2 8E 8E FC E7 BB 23 52 90 00 03 [17:36:20]RAPDU: C2 8E 8E FC E7 BB 23 52 90 00 [17:36:20]wFMCommunicate OK [17:36:20]SAM_PROTO_SignData done [17:36:20]FM_MakeSignedData done [17:36:20]CreateOFDProtocolMessage [17:36:20]wFMCommunicate request_size=4 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 11 00 00 [17:36:20]Write to MH i2c: E2 08 00 96 01 80 11 00 00 00 00 00 00 11 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 17 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 17 00 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [17:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:36:20]wFMCommunicate OK [17:36:20]CreateOFDProtocolMessage done [17:36:20]OFDSenderStorePacket 202121 [17:36:20]StoreOFDPacket docnum=202121 [17:36:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 70 C8 07 01 AB 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 38 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 ED 7A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 13 7A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 15 03 00 35 04 06 00 E5 AC 15 0F 05 64 C2 8E 8E FC E7 BB 23 52 [17:36:20]CheckFolder [17:36:20]dirname=/storage/ofd_packets [17:36:20]CheckFolder done [17:36:20]ProducePacketName [17:36:20]name=ofd_packets/00202121 [17:36:20]NVStorageSaveData ofd_packets/00202121 [17:36:20]File name is /storage/ofd_packets/00202121 [17:36:20]Write 301 bytes [17:36:20]NVStorageSaveData done [17:36:20]OFDSenderStorePacket done [17:36:20]KKMCreateOFDPacket done [17:36:20]NVStorageSaveData kkm_last_timestamp [17:36:20]File name is /storage/kkm_last_timestamp [17:36:20]Write 4 bytes [17:36:20]NVStorageSaveData done [17:36:20]ExternCall_PrintAddStr [17:36:20]wPrintStart [17:36:20]Write to MH i2c: 01 00 00 97 01 98 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: 01 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: 01 07 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [17:36:20]RasterBufferAndPrint [17:36:20]line Счет N : (1)449891 [17:36:20]line ИНН: 02508201610067 [17:36:20]line Контрольно-Кассовый Чек [17:36:20]line ПРОДАЖА [17:36:20]line ТРК (МРК, ГНК) : 41 [17:36:20]line Товар: 2710124130 [17:36:20]line Аи-92-К-2 [17:36:20]line 14.500 * 66.90 [17:36:20]line = 970.05 [17:36:20]line НДС 12% НСП 1% [17:36:20]line > о реализуемом товаре [17:36:20]line ОКРУГЛЕНИЕ: -0.05 [17:36:20]line ИТОГО: 970.00 [17:36:20]line Внесено: 970.00 [17:36:20]line СДАЧА: 0.00 [17:36:20]line НСП 1% : 8.58 [17:36:20]line НДС 12% : 103.01 [17:36:20]line Наличными: 970.00 [17:36:20]line Безнал.: 0.00 [17:36:20]line Место: АЗС № 171 "Партнер Нефть" [17:36:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:36:20]line СНО: Общий режим [17:36:20]line Чек 413 27.10.2024 17:36 [17:36:20]line Смена: 544 ФФД: 1.0 [17:36:20]line ЗНМ: 0300000109 [17:36:20]line РНМ: 0000000000091777 [17:36:20]line Версия ККМ: 001 [17:36:20]line ФМ: 0000000000871756 [17:36:20]line ФД: 202121 [17:36:20]line ФПД: 252527250441572 [17:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173619&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202121&fm=252527250441572&tin=02508201610067®Number=0000000000091777&sum=97000 [17:36:21]OFD Sender: Processing packet 202121 [packets to send 114, broken 113] [17:36:21]ProducePacketName [17:36:21]name=ofd_packets/00202121 [17:36:21]OFD Sender: To server: pG, [17:36:21]CommunicateWithHost lk.salyk.kg:30040 [17:36:21]ConnectInit lk.salyk.kg [17:36:21]written 0, free lines is 4095 [17:36:21]Connected sock=10 [17:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 70 C8 07 01 AB 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 38 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 ED 7A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 28 00 00 00 00 07 04 06 00 E8 7A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 13 7A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 15 03 00 35 04 06 00 E5 AC 15 0F 05 64 C2 8E 8E FC E7 BB 23 52 [17:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 93 A6 47 00 6E 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 15 03 00 F4 03 04 00 CC 25 1E 67 B6 04 01 00 00 D3 66 45 82 0E F0 D7 29 [17:36:21]CommunicateWithHost err = 0 [17:36:21]CheckOFDResponse [17:36:21]1017 (14) - 77093643461234 [17:36:21]1041 (16) - 0000000000871756 [17:36:21]1040 (4) - 202121 [17:36:21]1012 (4) - 27.10.2024 11:36 [17:36:21]1206 (1) - 0 [17:36:21]OFD Sender: Remove packet 202121 [17:36:21]ProducePacketName [17:36:21]name=ofd_packets/00202121 [17:36:21]NVStorageDeleteData [17:36:21]Write to MH i2c: 01 00 00 C2 01 C3 [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: 01 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: 01 07 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 98 0C 6E [17:36:21]RasterBufferAndPrint [17:36:21]line [17:36:21]line [17:36:21]line [17:36:21]line [17:36:21]line [17:36:21]written 0, free lines is 3228 [17:36:21]MH_Cut [17:36:21]Write to MH i2c: D1 01 00 C9 01 01 9C [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: D1 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: D1 01 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: D1 01 00 C9 01 00 9B [17:36:21]Write to MH i2c: 01 00 00 CA 01 CB [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:22]OFD Sender: No OFD packet to send [17:36:22]*** Cut start [17:36:22]*** Purtial cut [17:36:22]*** Stage 1: CUTSNS_PIN = 1 [17:36:22]Read from MH i2c: 01 [17:36:22]MH_I2C_Read... [17:36:22]*** Stop cut motor [17:36:22]*** Cut end [17:36:22]Read from MH i2c: 01 07 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: 01 07 00 CA 01 00 00 00 00 00 FF 0F E0 [17:36:22]process_action close_receipt done [17:36:22]requested_data is exist [17:36:22]produce_requested_data [17:36:22]requested_item fm.sn is exist - process it [17:36:22]wFMCommunicate request_size=4 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 11 00 00 [17:36:22]Write to MH i2c: E2 08 00 CB 01 80 11 00 00 00 00 00 00 46 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 17 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 17 00 CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9B [17:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:36:22]wFMCommunicate OK [17:36:22]requested_item fd.num is exist - process it [17:36:22]SAM_PROTO_GetFieldsCounters [17:36:22]wFMCommunicate request_size=4 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 13 00 00 [17:36:22]Write to MH i2c: E2 08 00 CC 01 80 13 00 00 00 00 00 00 49 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 62 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 62 00 CC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 89 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [17:36:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 89 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:23]wFMCommunicate OK [17:36:23]SAM_PROTO_GetFieldsCounters done [17:36:23]requested_item shift.num is exist - process it [17:36:23]requested_item shift.opened is exist - process it [17:36:23]req_shift_opened [17:36:23]FM_GetShiftState [17:36:23]SAM_PROTO_GetShiftState [17:36:23]wFMCommunicate request_size=4 [17:36:23]MH_SAM_APDU [17:36:23]CAPDU: 80 13 01 00 [17:36:23]Write to MH i2c: E2 08 00 CD 01 80 13 01 00 00 00 00 00 4B [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:23]Read from MH i2c: E2 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 0E 00 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 0E 00 CD 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4D [17:36:23]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:36:23]wFMCommunicate OK [17:36:23]SAM_PROTO_GetShiftState done [17:36:23]FM_GetShiftState done [17:36:23]req_shift_opened done [17:36:23]requested_item shift.open_date is exist - process it [17:36:23]req_shift_open_date [17:36:23]req_shift_open_date done [17:36:23]produce_requested_data done [17:36:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202121,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:36:23]process_action_free close_receipt [17:36:23]json_value_free [17:36:23]json_value_free done [17:36:23]process_json_proto returns [17:36:23]Send response to host [17:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202121,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:36:23]free response buf [17:36:23]execute_script done [17:36:23]execute_script returns [17:36:23]free content buf [17:36:23]Sock 7.Close socket [17:36:23]Sock 7.Thread stoped [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send 03 04 00 F3 7A 1E 67 [17:40:03]Write to MH i2c: E2 10 00 1A 00 80 15 02 00 08 00 F4 03 04 00 F3 7A 1E 67 00 00 97 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 03 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 03 00 1A 00 00 90 00 8E [17:40:03]RAPDU: 90 00 [17:40:03]wFMCommunicate OK [17:40:03]wFMCommunicate request_size=25 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [17:40:03]Write to MH i2c: E2 1C 00 1B 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 03 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 03 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 03 00 1B 00 00 90 00 8F [17:40:03]RAPDU: 90 00 [17:40:03]wFMCommunicate OK [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 15 03 00 [17:40:03]Write to MH i2c: E2 08 00 1C 00 80 15 03 00 00 00 00 00 9D [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 40 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 40 00 1C 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9E 01 00 00 35 04 06 00 FC 67 FB 8B F4 8D 90 00 62 [17:40:03]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9E 01 00 00 35 04 06 00 FC 67 FB 8B F4 8D 90 00 [17:40:03]wFMCommunicate OK [17:40:03]SAM_PROTO_ProcessDocument answer len = 59 [17:40:03]SAM_PROTO_ProcessDocument done [17:40:03]SetTLVBufToDocument [17:40:03]Processing tag 1209 (04B9) [17:40:03]Malloc new data [17:40:03]Processing tag 1041 (0411) [17:40:03]Processing tag 1040 (0410) [17:40:03]Malloc new data [17:40:03]Processing tag 1038 (040E) [17:40:03]Malloc new data [17:40:03]Processing tag 1042 (0412) [17:40:03]Malloc new data [17:40:03]Processing tag 1077 (0435) [17:40:03]Malloc new data [17:40:03]SetTLVBufToDocument err=0 [17:40:03]KKMLoadAndSignReceiptData store KKM data [17:40:03]KKMLoadAndSignReceiptData err=0 [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 11 00 00 [17:40:03]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 17 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [17:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:40:04]wFMCommunicate OK [17:40:04]Счет N : (1)449892 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 41 Товар: 2710124130 Аи-92-К-2 2.990 * 66.90 = 200.03 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 414 27.10.2024 17:40 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202122 ФПД: 277523532084365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202122&fm=277523532084365&tin=02508201610067®Number=0000000000091777&sum=20000 [17:40:04]StoreToDocumentArchive [17:40:04]shift 544 fd 202122 [17:40:04]save to /storage/0544/doc_00202122 [17:40:04]save last doc name /storage/0544/doc_00202122 to /storage/kkm_last_doc_name [17:40:04]save OK [17:40:04]Clear old archive folders... [17:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:04]tlvbuf is 006D7BF0 [17:40:04]SAM_PROTO_ClearQueue [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 09 00 00 [17:40:04]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]SAM_PROTO_ClearQueue done [17:40:04]KKMCreateOFDPacket [17:40:04]OFDProtocolAddRootSTLVToBuf [17:40:04]FM_MakeSignedData [17:40:04]FM_MakeSignedData [17:40:04]SAM_PROTO_SignData [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 01 02 [17:40:04]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]wFMCommunicate request_size=255 [17:40:04]MH_SAM_APDU [17:40: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 32 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 9E 01 00 00 F4 03 04 00 F3 7A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 15 03 00 35 04 06 00 FC [17:40:04]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9E 01 00 00 F4 03 04 00 F3 7A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 15 03 00 35 04 06 00 FC 00 00 3F [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]wFMCommunicate request_size=10 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 02 02 05 67 FB 8B F4 8D [17:40:04]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 67 FB 8B F4 8D 00 00 13 [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 03 02 [17:40:04]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 0B 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 0B 00 22 00 00 6A BB 16 5A 9E A8 4E 2E 90 00 F5 [17:40:04]RAPDU: 6A BB 16 5A 9E A8 4E 2E 90 00 [17:40:04]wFMCommunicate OK [17:40:04]SAM_PROTO_SignData done [17:40:04]FM_MakeSignedData done [17:40:04]CreateOFDProtocolMessage [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 11 00 00 [17:40:04]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 17 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [17:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:40:04]wFMCommunicate OK [17:40:04]CreateOFDProtocolMessage done [17:40:04]OFDSenderStorePacket 202122 [17:40:04]StoreOFDPacket docnum=202122 [17:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F6 EE 07 01 CC 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9E 01 00 00 F4 03 04 00 F3 7A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 15 03 00 35 04 06 00 FC 67 FB 8B F4 8D 6A BB 16 5A 9E A8 4E 2E [17:40:04]CheckFolder [17:40:04]dirname=/storage/ofd_packets [17:40:04]CheckFolder done [17:40:04]ProducePacketName [17:40:04]name=ofd_packets/00202122 [17:40:04]NVStorageSaveData ofd_packets/00202122 [17:40:04]File name is /storage/ofd_packets/00202122 [17:40:04]Write 301 bytes [17:40:04]NVStorageSaveData done [17:40:04]OFDSenderStorePacket done [17:40:04]KKMCreateOFDPacket done [17:40:04]NVStorageSaveData kkm_last_timestamp [17:40:04]File name is /storage/kkm_last_timestamp [17:40:04]Write 4 bytes [17:40:04]NVStorageSaveData done [17:40:04]ExternCall_PrintAddStr [17:40:04]wPrintStart [17:40:04]Write to MH i2c: 01 00 00 24 00 24 [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: 01 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: 01 07 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [17:40:04]RasterBufferAndPrint [17:40:04]line Счет N : (1)449892 [17:40:04]line ИНН: 02508201610067 [17:40:04]line Контрольно-Кассовый Чек [17:40:04]line ПРОДАЖА [17:40:04]line ТРК (МРК, ГНК) : 41 [17:40:04]line Товар: 2710124130 [17:40:04]line Аи-92-К-2 [17:40:04]line 2.990 * 66.90 [17:40:04]line = 200.03 [17:40:04]line НДС 12% НСП 1% [17:40:04]line > о реализуемом товаре [17:40:04]line ОКРУГЛЕНИЕ: -0.03 [17:40:04]line ИТОГО: 200.00 [17:40:04]line Внесено: 200.00 [17:40:04]line СДАЧА: 0.00 [17:40:04]line НСП 1% : 1.77 [17:40:04]line НДС 12% : 21.24 [17:40:04]line Наличными: 200.00 [17:40:04]line Безнал.: 0.00 [17:40:04]line Место: АЗС № 171 "Партнер Нефть" [17:40:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:40:04]line СНО: Общий режим [17:40:04]line Чек 414 27.10.2024 17:40 [17:40:04]line Смена: 544 ФФД: 1.0 [17:40:04]line ЗНМ: 0300000109 [17:40:04]line РНМ: 0000000000091777 [17:40:04]line Версия ККМ: 001 [17:40:04]line ФМ: 0000000000871756 [17:40:04]line ФД: 202122 [17:40:04]line ФПД: 277523532084365 [17:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202122&fm=277523532084365&tin=02508201610067®Number=0000000000091777&sum=20000 [17:40:04]written 0, free lines is 4095 [17:40:04]OFD Sender: Processing packet 202122 [packets to send 114, broken 113] [17:40:04]ProducePacketName [17:40:04]name=ofd_packets/00202122 [17:40:04]OFD Sender: To server: pG, [17:40:04]CommunicateWithHost lk.salyk.kg:30040 [17:40:04]ConnectInit lk.salyk.kg [17:40:05]Write to MH i2c: 01 00 00 4F 00 4F [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 07 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 96 0C F8 [17:40:05]RasterBufferAndPrint [17:40:05]line [17:40:05]line [17:40:05]line [17:40:05]line [17:40:05]line [17:40:05]written 0, free lines is 3226 [17:40:05]MH_Cut [17:40:05]Write to MH i2c: D1 01 00 56 00 01 28 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: D1 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: D1 01 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: D1 01 00 56 00 00 27 [17:40:05]Write to MH i2c: 01 00 00 57 00 57 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** Cut start [17:40:05]*** Purtial cut [17:40:05]*** Stage 1: CUTSNS_PIN = 1 [17:40:06]Read from MH i2c: 01 [17:40:06]MH_I2C_Read... [17:40:06]*** Stop cut motor [17:40:06]*** Cut end [17:40:06]Read from MH i2c: 01 07 00 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [17:40:06]process_action close_receipt done [17:40:06]requested_data is exist [17:40:06]produce_requested_data [17:40:06]requested_item fm.sn is exist - process it [17:40:06]wFMCommunicate request_size=4 [17:40:06]MH_SAM_APDU [17:40:06]CAPDU: 80 11 00 00 [17:40:06]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:06]Read from MH i2c: E2 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: E2 17 00 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [17:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:40:06]wFMCommunicate OK [17:40:06]requested_item fd.num is exist - process it [17:40:06]SAM_PROTO_GetFieldsCounters [17:40:06]wFMCommunicate request_size=4 [17:40:06]MH_SAM_APDU [17:40:06]CAPDU: 80 13 00 00 [17:40:06]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:06]Read from MH i2c: E2 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: E2 62 00 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [17:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:06]wFMCommunicate OK [17:40:06]SAM_PROTO_GetFieldsCounters done [17:40:06]requested_item shift.num is exist - process it [17:40:06]requested_item shift.opened is exist - process it [17:40:06]req_shift_opened [17:40:06]FM_GetShiftState [17:40:06]SAM_PROTO_GetShiftState [17:40:06]wFMCommunicate request_size=4 [17:40:06]MH_SAM_APDU [17:40:06]CAPDU: 80 13 01 00 [17:40:06]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:06]Read from MH i2c: E2 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: E2 0E 00 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D9 [17:40:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:40:06]wFMCommunicate OK [17:40:06]SAM_PROTO_GetShiftState done [17:40:06]FM_GetShiftState done [17:40:06]req_shift_opened done [17:40:06]requested_item shift.open_date is exist - process it [17:40:06]req_shift_open_date [17:40:06]req_shift_open_date done [17:40:06]produce_requested_data done [17:40:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202122,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:40:06]process_action_free close_receipt [17:40:06]json_value_free [17:40:06]json_value_free done [17:40:06]process_json_proto returns [17:40:06]Send response to host [17:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202122,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:40:06]free response buf [17:40:06]execute_script done [17:40:06]execute_script returns [17:40:06]free content buf [17:40:06]Sock 9.Close socket [17:40:06]Sock 9.Thread stoped [17:40:07]ConnectInit Can't connect to host [17:40:09]ConnectInit Can't take IP for lk.salyk.kg [17:40:09]CommunicateWithHost connect error [17:40:09]CommunicateWithHost err = -1 [17:40:09]OFD Sender: Server communicate error [17:40:14]OFD Sender: Processing packet 202122 [packets to send 114, broken 113] [17:40:14]ProducePacketName [17:40:14]name=ofd_packets/00202122 [17:40:14]OFD Sender: To server: pG, [17:40:14]CommunicateWithHost lk.salyk.kg:30040 [17:40:14]ConnectInit lk.salyk.kg [17:40:14]Connected sock=9 [17:40:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F6 EE 07 01 CC 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9E 01 00 00 F4 03 04 00 F3 7A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 15 03 00 35 04 06 00 FC 67 FB 8B F4 8D 6A BB 16 5A 9E A8 4E 2E [17:40:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A2 89 47 00 91 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 15 03 00 F4 03 04 00 B6 26 1E 67 B6 04 01 00 00 74 86 30 71 34 DC E9 CE [17:40:15]CommunicateWithHost err = 0 [17:40:15]CheckOFDResponse [17:40:15]1017 (14) - 77093643461234 [17:40:15]1041 (16) - 0000000000871756 [17:40:15]1040 (4) - 202122 [17:40:15]1012 (4) - 27.10.2024 11:40 [17:40:15]1206 (1) - 0 [17:40:15]OFD Sender: Remove packet 202122 [17:40:15]ProducePacketName [17:40:15]name=ofd_packets/00202122 [17:40:15]NVStorageDeleteData [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:43]accept exits with 7 [17:40:43]New connection [17:40:43]New thread 3066658148 created [17:40:43]Thread 3066801508 joined [17:40:43]Waiting for new connection... [17:40:43] Sock 7.Parse request [17:40:43]Sock 7.Check first char [17:40:43]Sock 7.First char is OK [17:40:43]request: POST /json_proto HTTP/1.0 [17:40:43]Method: POST [17:40:43]URL: /json_proto [17:40:43]Method is POST - this is cgi request [17:40:43]url: /json_proto [17:40:43]query_string will be loaded in cgi processing [17:40:43]execute_cgi json_proto POST (null) [17:40:43]execute_cgi path=json_proto method=POST [17:40:43]POST find Content-Length [17:40:43]Host: 172.17.63.195:8080 [17:40:43]Content-Length: 677 [17:40:43]Content-Type: application/json [17:40:43] [17:40:43]POST finish read [17:40:43]Found Content-Length = 677 [17:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:40:43]execute_script... [17:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:40:43]POST & json_proto [17:40:43]process_json_proto [17:40:43]json parsed OK: [17:40:43]protocol is kg_v1.0 [17:40:43]action value=close_receipt [17:40:43]process_action close_receipt [17:40:43]cmd_close_receipt [17:40:43]MH_GetDate [17:40:43]Write to MH i2c: F0 00 00 5B 00 4A [17:40:43]Write i2c OK [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: F0 [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: F0 09 00 [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: F0 09 00 5B 00 00 1B 7B 1E 67 47 1B 1E 67 55 [17:40:43]GetLastDocTimeStamp 1730050803 [17:40:43]current date 1730050843 [17:40:43]FM_GetShiftState [17:40:43]SAM_PROTO_GetShiftState [17:40:43]wFMCommunicate request_size=4 [17:40:43]MH_SAM_APDU [17:40:43]CAPDU: 80 13 01 00 [17:40:43]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [17:40:43]Write i2c OK [17:40:43]MH_I2C_Read... [17:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:43]Read from MH i2c: E2 [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: E2 0E 00 [17:40:43]MH_I2C_Read... [17:40:43]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DB [17:40:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:40:43]wFMCommunicate OK [17:40:43]SAM_PROTO_GetShiftState done [17:40:43]FM_GetShiftState done [17:40:43]opened in 1729987312 [17:40:43]opened+sec_in_day 1730073712 [17:40:43]quantity*price = 50041 [17:40:43]sum+1 = 50042 [17:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 415 27.10.2024 17:40 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202123 ФПД: 163539102439943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174043&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202123&fm=163539102439943&tin=02508201610067®Number=0000000000091777&sum=50000 [17:40:44]StoreToDocumentArchive [17:40:44]shift 544 fd 202123 [17:40:44]save to /storage/0544/doc_00202123 [17:40:44]save last doc name /storage/0544/doc_00202123 to /storage/kkm_last_doc_name [17:40:44]save OK [17:40:44]Clear old archive folders... [17:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:44]tlvbuf is B6F30420 [17:40:44]SAM_PROTO_ClearQueue [17:40:44]wFMCommunicate request_size=4 [17:40:44]MH_SAM_APDU [17:40:44]CAPDU: 80 09 00 00 [17:40:44]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [17:40:44]Write i2c OK [17:40:44]MH_I2C_Read... [17:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:44]Read from MH i2c: E2 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 03 00 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [17:40:44]RAPDU: 90 00 [17:40:44]wFMCommunicate OK [17:40:44]SAM_PROTO_ClearQueue done [17:40:44]KKMCreateOFDPacket [17:40:44]OFDProtocolAddRootSTLVToBuf [17:40:44]FM_MakeSignedData [17:40:44]FM_MakeSignedData [17:40:44]SAM_PROTO_SignData [17:40:44]wFMCommunicate request_size=4 [17:40:44]MH_SAM_APDU [17:40:44]CAPDU: 80 0D 01 02 [17:40:44]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [17:40:44]Write i2c OK [17:40:44]MH_I2C_Read... [17:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:44]Read from MH i2c: E2 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 03 00 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [17:40:44]RAPDU: 90 00 [17:40:44]wFMCommunicate OK [17:40:44]wFMCommunicate request_size=255 [17:40:44]MH_SAM_APDU [17:40:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9F 01 00 00 F4 03 04 00 1B 7B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 15 03 00 35 04 06 00 94 [17:40:44]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9F 01 00 00 F4 03 04 00 1B 7B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 15 03 00 35 04 06 00 94 00 00 8B [17:40:44]Write i2c OK [17:40:44]MH_I2C_Read... [17:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:44]Read from MH i2c: E2 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 03 00 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [17:40:44]RAPDU: 90 00 [17:40:44]wFMCommunicate OK [17:40:44]wFMCommunicate request_size=10 [17:40:44]MH_SAM_APDU [17:40:44]CAPDU: 80 0D 02 02 05 BC EA 1B 9A 07 [17:40:44]Write to MH i2c: E2 0D 00 6C 00 80 0D 02 02 05 00 BC EA 1B 9A 07 00 00 52 [17:40:44]Write i2c OK [17:40:44]MH_I2C_Read... [17:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:44]Read from MH i2c: E2 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 03 00 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [17:40:44]RAPDU: 90 00 [17:40:44]wFMCommunicate OK [17:40:44]wFMCommunicate request_size=4 [17:40:44]MH_SAM_APDU [17:40:44]CAPDU: 80 0D 03 02 [17:40:44]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [17:40:44]Write i2c OK [17:40:44]MH_I2C_Read... [17:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:44]Read from MH i2c: E2 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 0B 00 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 0B 00 6D 00 00 8E 8B 72 6E 40 AC 57 D9 90 00 FE [17:40:44]RAPDU: 8E 8B 72 6E 40 AC 57 D9 90 00 [17:40:44]wFMCommunicate OK [17:40:44]SAM_PROTO_SignData done [17:40:44]FM_MakeSignedData done [17:40:44]CreateOFDProtocolMessage [17:40:44]wFMCommunicate request_size=4 [17:40:44]MH_SAM_APDU [17:40:44]CAPDU: 80 11 00 00 [17:40:44]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [17:40:44]Write i2c OK [17:40:44]MH_I2C_Read... [17:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:44]Read from MH i2c: E2 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 17 00 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [17:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:40:44]wFMCommunicate OK [17:40:44]CreateOFDProtocolMessage done [17:40:44]OFDSenderStorePacket 202123 [17:40:44]StoreOFDPacket docnum=202123 [17:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E0 E6 07 01 77 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9F 01 00 00 F4 03 04 00 1B 7B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 15 03 00 35 04 06 00 94 BC EA 1B 9A 07 8E 8B 72 6E 40 AC 57 D9 [17:40:44]CheckFolder [17:40:44]dirname=/storage/ofd_packets [17:40:44]CheckFolder done [17:40:44]ProducePacketName [17:40:44]name=ofd_packets/00202123 [17:40:44]NVStorageSaveData ofd_packets/00202123 [17:40:44]File name is /storage/ofd_packets/00202123 [17:40:44]Write 301 bytes [17:40:44]NVStorageSaveData done [17:40:44]OFDSenderStorePacket done [17:40:44]KKMCreateOFDPacket done [17:40:44]NVStorageSaveData kkm_last_timestamp [17:40:44]File name is /storage/kkm_last_timestamp [17:40:44]Write 4 bytes [17:40:44]NVStorageSaveData done [17:40:44]ExternCall_PrintAddStr [17:40:44]wPrintStart [17:40:44]Write to MH i2c: 01 00 00 6F 00 6F [17:40:44]Write i2c OK [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: 01 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: 01 07 00 [17:40:44]MH_I2C_Read... [17:40:44]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [17:40:44]RasterBufferAndPrint [17:40:44]line Счет N : (1)449893 [17:40:44]line ИНН: 02508201610067 [17:40:44]line Контрольно-Кассовый Чек [17:40:44]line ПРОДАЖА [17:40:44]line ТРК (МРК, ГНК) : 52 [17:40:44]line Товар: 2710124130 [17:40:44]line Аи-92-К-2 [17:40:44]line 7.480 * 66.90 [17:40:44]line = 500.41 [17:40:44]line НДС 12% НСП 1% [17:40:44]line > о реализуемом товаре [17:40:44]line ОКРУГЛЕНИЕ: -0.41 [17:40:44]line ИТОГО: 500.00 [17:40:44]line Внесено: 500.00 [17:40:44]line СДАЧА: 0.00 [17:40:44]line НСП 1% : 4.43 [17:40:44]line НДС 12% : 53.14 [17:40:44]line Наличными: 500.00 [17:40:44]line Безнал.: 0.00 [17:40:44]line Место: АЗС № 171 "Партнер Нефть" [17:40:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:40:44]line СНО: Общий режим [17:40:44]line Чек 415 27.10.2024 17:40 [17:40:44]line Смена: 544 ФФД: 1.0 [17:40:44]line ЗНМ: 0300000109 [17:40:44]line РНМ: 0000000000091777 [17:40:44]line Версия ККМ: 001 [17:40:44]line ФМ: 0000000000871756 [17:40:44]line ФД: 202123 [17:40:44]line ФПД: 163539102439943 [17:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174043&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202123&fm=163539102439943&tin=02508201610067®Number=0000000000091777&sum=50000 [17:40:45]OFD Sender: Processing packet 202123 [packets to send 114, broken 113] [17:40:45]ProducePacketName [17:40:45]name=ofd_packets/00202123 [17:40:45]OFD Sender: To server: pG, [17:40:45]CommunicateWithHost lk.salyk.kg:30040 [17:40:45]ConnectInit lk.salyk.kg [17:40:45]written 0, free lines is 4095 [17:40:45]Connected sock=10 [17:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E0 E6 07 01 77 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9F 01 00 00 F4 03 04 00 1B 7B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 15 03 00 35 04 06 00 94 BC EA 1B 9A 07 8E 8B 72 6E 40 AC 57 D9 [17:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F7 D0 47 00 6B 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 30 38 37 31 37 35 36 10 04 04 00 8B 15 03 00 F4 03 04 00 D4 26 1E 67 B6 04 01 00 00 14 B4 01 B3 BA 61 73 47 [17:40:45]CommunicateWithHost err = 0 [17:40:45]CheckOFDResponse [17:40:45]1017 (14) - 77093643461234 [17:40:45]1041 (16) - 0000000000871756 [17:40:45]1040 (4) - 202123 [17:40:45]1012 (4) - 27.10.2024 11:41 [17:40:45]1206 (1) - 0 [17:40:45]OFD Sender: Remove packet 202123 [17:40:45]ProducePacketName [17:40:45]name=ofd_packets/00202123 [17:40:45]NVStorageDeleteData [17:40:45]Write to MH i2c: 01 00 00 9A 00 9A [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: 01 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: 01 07 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 8D 0C 3A [17:40:45]RasterBufferAndPrint [17:40:45]line [17:40:45]line [17:40:45]line [17:40:45]line [17:40:45]line [17:40:45]written 0, free lines is 3217 [17:40:45]MH_Cut [17:40:45]Write to MH i2c: D1 01 00 A1 00 01 73 [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: D1 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: D1 01 00 [17:40:45]MH_I2C_Read... [17:40:45]Read from MH i2c: D1 01 00 A1 00 00 72 [17:40:45]Write to MH i2c: 01 00 00 A2 00 A2 [17:40:45]Write i2c OK [17:40:45]MH_I2C_Read... [17:40:45]OFD Sender: No OFD packet to send [17:40:46]*** Cut start [17:40:46]*** Purtial cut [17:40:46]*** Stage 1: CUTSNS_PIN = 1 [17:40:46]Read from MH i2c: 01 [17:40:46]MH_I2C_Read... [17:40:46]*** Stop cut motor [17:40:46]*** Cut end [17:40:46]Read from MH i2c: 01 07 00 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [17:40:46]process_action close_receipt done [17:40:46]requested_data is exist [17:40:46]produce_requested_data [17:40:46]requested_item fm.sn is exist - process it [17:40:46]wFMCommunicate request_size=4 [17:40:46]MH_SAM_APDU [17:40:46]CAPDU: 80 11 00 00 [17:40:46]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [17:40:46]Write i2c OK [17:40:46]MH_I2C_Read... [17:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:46]Read from MH i2c: E2 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: E2 17 00 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [17:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:40:46]wFMCommunicate OK [17:40:46]requested_item fd.num is exist - process it [17:40:46]SAM_PROTO_GetFieldsCounters [17:40:46]wFMCommunicate request_size=4 [17:40:46]MH_SAM_APDU [17:40:46]CAPDU: 80 13 00 00 [17:40:46]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [17:40:46]Write i2c OK [17:40:46]MH_I2C_Read... [17:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:46]Read from MH i2c: E2 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: E2 62 00 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [17:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:46]wFMCommunicate OK [17:40:46]SAM_PROTO_GetFieldsCounters done [17:40:46]requested_item shift.num is exist - process it [17:40:46]requested_item shift.opened is exist - process it [17:40:46]req_shift_opened [17:40:46]FM_GetShiftState [17:40:46]SAM_PROTO_GetShiftState [17:40:46]wFMCommunicate request_size=4 [17:40:46]MH_SAM_APDU [17:40:46]CAPDU: 80 13 01 00 [17:40:46]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [17:40:46]Write i2c OK [17:40:46]MH_I2C_Read... [17:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:46]Read from MH i2c: E2 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: E2 0E 00 [17:40:46]MH_I2C_Read... [17:40:46]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 24 [17:40:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:40:46]wFMCommunicate OK [17:40:46]SAM_PROTO_GetShiftState done [17:40:46]FM_GetShiftState done [17:40:46]req_shift_opened done [17:40:46]requested_item shift.open_date is exist - process it [17:40:46]req_shift_open_date [17:40:46]req_shift_open_date done [17:40:46]produce_requested_data done [17:40:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202123,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:40:46]process_action_free close_receipt [17:40:46]json_value_free [17:40:46]json_value_free done [17:40:46]process_json_proto returns [17:40:46]Send response to host [17:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202123,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:40:46]free response buf [17:40:46]execute_script done [17:40:46]execute_script returns [17:40:46]free content buf [17:40:46]Sock 7.Close socket [17:40:46]Sock 7.Thread stoped [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]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:48]accept exits with 9 [17:43:48]New connection [17:43:48]New thread 3066801508 created [17:43:48]Thread 3066658148 joined [17:43:48]Waiting for new connection... [17:43:48] Sock 9.Parse request [17:43:48]Sock 9.Check first char [17:43:48]Sock 9.First char is OK [17:43:48]request: POST /json_proto HTTP/1.0 [17:43:48]Method: POST [17:43:48]URL: /json_proto [17:43:48]Method is POST - this is cgi request [17:43:48]url: /json_proto [17:43:48]query_string will be loaded in cgi processing [17:43:48]execute_cgi json_proto POST (null) [17:43:48]execute_cgi path=json_proto method=POST [17:43:48]POST find Content-Length [17:43:48]Host: 172.17.63.195:8080 [17:43:48]Content-Length: 767 [17:43:48]Content-Type: application/json [17:43:48] [17:43:48]POST finish read [17:43:48]Found Content-Length = 767 [17:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:48]execute_script... [17:43:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:48]POST & json_proto [17:43:48]process_json_proto [17:43:48]json parsed OK: [17:43:48]protocol is kg_v1.0 [17:43:48]action value=close_receipt [17:43:48]process_action close_receipt [17:43:48]cmd_close_receipt [17:43:48]MH_GetDate [17:43:48]Write to MH i2c: F0 00 00 A6 00 95 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: F0 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: F0 09 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: F0 09 00 A6 00 00 D5 7B 1E 67 47 1B 1E 67 5A [17:43:48]GetLastDocTimeStamp 1730050843 [17:43:48]current date 1730051029 [17:43:48]FM_GetShiftState [17:43:48]SAM_PROTO_GetShiftState [17:43:48]wFMCommunicate request_size=4 [17:43:48]MH_SAM_APDU [17:43:48]CAPDU: 80 13 01 00 [17:43:48]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [17:43:48]Write i2c OK [17:43:48]MH_I2C_Read... [17:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:48]Read from MH i2c: E2 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0E 00 [17:43:48]MH_I2C_Read... [17:43:48]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 26 [17:43:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:43:48]wFMCommunicate OK [17:43:48]SAM_PROTO_GetShiftState done [17:43:48]FM_GetShiftState done [17:43:48]opened in 1729987312 [17:43:48]opened+sec_in_day 1730073712 [17:43:48]quantity*price = 80012 [17:43:48]sum+1 = 80013 [17:43:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 416 27.10.2024 17:43 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202124 ФПД: 152578914123263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174349&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202124&fm=152578914123263&tin=02508201610067®Number=0000000000091777&sum=80012 [17:43:49]StoreToDocumentArchive [17:43:49]shift 544 fd 202124 [17:43:49]save to /storage/0544/doc_00202124 [17:43:49]save last doc name /storage/0544/doc_00202124 to /storage/kkm_last_doc_name [17:43:49]save OK [17:43:49]Clear old archive folders... [17:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:49]tlvbuf is 0069D8E0 [17:43:49]SAM_PROTO_ClearQueue [17:43:49]wFMCommunicate request_size=4 [17:43:49]MH_SAM_APDU [17:43:49]CAPDU: 80 09 00 00 [17:43:49]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:49]Read from MH i2c: E2 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: E2 03 00 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [17:43:49]RAPDU: 90 00 [17:43:49]wFMCommunicate OK [17:43:49]SAM_PROTO_ClearQueue done [17:43:49]KKMCreateOFDPacket [17:43:49]OFDProtocolAddRootSTLVToBuf [17:43:49]FM_MakeSignedData [17:43:49]FM_MakeSignedData [17:43:49]SAM_PROTO_SignData [17:43:49]wFMCommunicate request_size=4 [17:43:49]MH_SAM_APDU [17:43:49]CAPDU: 80 0D 01 02 [17:43:49]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: E2 [17:43:49]MH_I2C_Read... [17:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:49]Read from MH i2c: E2 03 00 [17:43:49]MH_I2C_Read... [17:43:49]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [17:43:49]RAPDU: 90 00 [17:43:49]wFMCommunicate OK [17:43:49]wFMCommunicate request_size=255 [17:43:49]MH_SAM_APDU [17:43:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 D5 7B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 15 03 00 35 04 06 00 8A [17:43:49]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 D5 7B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 15 03 00 35 04 06 00 8A 00 00 8C [17:43:49]Write i2c OK [17:43:49]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 03 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [17:43:50]RAPDU: 90 00 [17:43:50]wFMCommunicate OK [17:43:50]wFMCommunicate request_size=10 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 0D 02 02 05 C5 0B F9 FD FF [17:43:50]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 C5 0B F9 FD FF 00 00 00 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 03 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [17:43:50]RAPDU: 90 00 [17:43:50]wFMCommunicate OK [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 0D 03 02 [17:43:50]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 0B 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 0B 00 B8 00 00 2C C1 00 47 26 FC 91 E9 90 00 04 [17:43:50]RAPDU: 2C C1 00 47 26 FC 91 E9 90 00 [17:43:50]wFMCommunicate OK [17:43:50]SAM_PROTO_SignData done [17:43:50]FM_MakeSignedData done [17:43:50]CreateOFDProtocolMessage [17:43:50]wFMCommunicate request_size=4 [17:43:50]MH_SAM_APDU [17:43:50]CAPDU: 80 11 00 00 [17:43:50]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:50]Read from MH i2c: E2 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 17 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [17:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:43:50]wFMCommunicate OK [17:43:50]CreateOFDProtocolMessage done [17:43:50]OFDSenderStorePacket 202124 [17:43:50]StoreOFDPacket docnum=202124 [17:43:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 93 E8 07 01 DA B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 D5 7B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 15 03 00 35 04 06 00 8A C5 0B F9 FD FF 2C C1 00 47 26 FC 91 E9 [17:43:50]CheckFolder [17:43:50]dirname=/storage/ofd_packets [17:43:50]CheckFolder done [17:43:50]ProducePacketName [17:43:50]name=ofd_packets/00202124 [17:43:50]NVStorageSaveData ofd_packets/00202124 [17:43:50]File name is /storage/ofd_packets/00202124 [17:43:50]Write 301 bytes [17:43:50]NVStorageSaveData done [17:43:50]OFDSenderStorePacket done [17:43:50]KKMCreateOFDPacket done [17:43:50]NVStorageSaveData kkm_last_timestamp [17:43:50]File name is /storage/kkm_last_timestamp [17:43:50]Write 4 bytes [17:43:50]NVStorageSaveData done [17:43:50]ExternCall_PrintAddStr [17:43:50]wPrintStart [17:43:50]Write to MH i2c: 01 00 00 BA 00 BA [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [17:43:50]RasterBufferAndPrint [17:43:50]line Счет N : (1)449894 [17:43:50]line ИНН: 02508201610067 [17:43:50]line Контрольно-Кассовый Чек [17:43:50]line ПРОДАЖА [17:43:50]line ТРК (МРК, ГНК) : 52 [17:43:50]line Товар: 2710124130 [17:43:50]line Аи-92-К-2 [17:43:50]line 11.960 * 66.90 [17:43:50]line = 800.12 [17:43:50]line НДС 12% НСП 1% [17:43:50]line > о реализуемом товаре [17:43:50]line ИТОГО: 800.12 [17:43:50]line НСП 1% : 7.08 [17:43:50]line НДС 12% : 84.97 [17:43:50]line Наличными: 0.00 [17:43:50]line Безнал.: 800.12 [17:43:50]line Место: АЗС № 171 "Партнер Нефть" [17:43:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:43:50]line СНО: Общий режим [17:43:50]line Чек 416 27.10.2024 17:43 [17:43:50]line Смена: 544 ФФД: 1.0 [17:43:50]line ЗНМ: 0300000109 [17:43:50]line РНМ: 0000000000091777 [17:43:50]line Версия ККМ: 001 [17:43:50]line Платежная система: Mbank [17:43:50]line ФМ: 0000000000871756 [17:43:50]line ФД: 202124 [17:43:50]line ФПД: 152578914123263 [17:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174349&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202124&fm=152578914123263&tin=02508201610067®Number=0000000000091777&sum=80012 [17:43:50]written 0, free lines is 4095 [17:43:50]OFD Sender: Processing packet 202124 [packets to send 114, broken 113] [17:43:50]ProducePacketName [17:43:50]name=ofd_packets/00202124 [17:43:50]OFD Sender: To server: pG, [17:43:50]CommunicateWithHost lk.salyk.kg:30040 [17:43:50]ConnectInit lk.salyk.kg [17:43:50]Connected sock=10 [17:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 93 E8 07 01 DA B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 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 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 D5 7B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 15 03 00 35 04 06 00 8A C5 0B F9 FD FF 2C C1 00 47 26 FC 91 E9 [17:43:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1E 36 47 00 92 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 15 03 00 F4 03 04 00 8E 27 1E 67 B6 04 01 00 00 99 0B 5C 80 5E C7 C3 D6 [17:43:50]CommunicateWithHost err = 0 [17:43:50]CheckOFDResponse [17:43:50]1017 (14) - 77093643461234 [17:43:50]1041 (16) - 0000000000871756 [17:43:50]1040 (4) - 202124 [17:43:50]1012 (4) - 27.10.2024 11:44 [17:43:50]1206 (1) - 0 [17:43:50]OFD Sender: Remove packet 202124 [17:43:50]ProducePacketName [17:43:50]name=ofd_packets/00202124 [17:43:50]NVStorageDeleteData [17:43:50]Write to MH i2c: 01 00 00 E3 00 E3 [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 BB 0C B1 [17:43:50]RasterBufferAndPrint [17:43:50]line [17:43:50]line [17:43:50]line [17:43:50]line [17:43:50]line [17:43:50]written 0, free lines is 3262 [17:43:50]MH_Cut [17:43:50]Write to MH i2c: D1 01 00 EA 00 01 BC [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: D1 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: D1 01 00 [17:43:50]MH_I2C_Read... [17:43:50]Read from MH i2c: D1 01 00 EA 00 00 BB [17:43:50]Write to MH i2c: 01 00 00 EB 00 EB [17:43:50]Write i2c OK [17:43:50]MH_I2C_Read... [17:43:51]OFD Sender: No OFD packet to send [17:43:51]*** Cut start [17:43:51]*** Purtial cut [17:43:51]*** CUTSNS_PIN = 0 [17:43:51]*** Stage 1: CUTSNS_PIN = 1 [17:43:53]Read from MH i2c: 01 [17:43:53]MH_I2C_Read... [17:43:53]*** Stop cut motor [17:43:53]*** Cut end [17:43:53]Read from MH i2c: 01 07 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 FF 0F 00 [17:43:53]process_action close_receipt done [17:43:53]requested_data is exist [17:43:53]produce_requested_data [17:43:53]requested_item fm.sn is exist - process it [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 11 00 00 [17:43:53]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 17 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [17:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:43:53]wFMCommunicate OK [17:43:53]requested_item fd.num is exist - process it [17:43:53]SAM_PROTO_GetFieldsCounters [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 13 00 00 [17:43:53]Write to MH i2c: E2 08 00 ED 00 80 13 00 00 00 00 00 00 69 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 62 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 62 00 ED 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [17:43:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:53]wFMCommunicate OK [17:43:53]SAM_PROTO_GetFieldsCounters done [17:43:53]requested_item shift.num is exist - process it [17:43:53]requested_item shift.opened is exist - process it [17:43:53]req_shift_opened [17:43:53]FM_GetShiftState [17:43:53]SAM_PROTO_GetShiftState [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 13 01 00 [17:43:53]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 0E 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6D [17:43:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:43:53]wFMCommunicate OK [17:43:53]SAM_PROTO_GetShiftState done [17:43:53]FM_GetShiftState done [17:43:53]req_shift_opened done [17:43:53]requested_item shift.open_date is exist - process it [17:43:53]req_shift_open_date [17:43:53]req_shift_open_date done [17:43:53]produce_requested_data done [17:43:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202124,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:43:53]process_action_free close_receipt [17:43:53]json_value_free [17:43:53]json_value_free done [17:43:53]process_json_proto returns [17:43:53]Send response to host [17:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202124,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:43:53]free response buf [17:43:53]execute_script done [17:43:53]execute_script returns [17:43:53]free content buf [17:43:53]Sock 9.Close socket [17:43:53]Sock 9.Thread stoped [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:03]accept exits with 7 [17:45:03]New connection [17:45:03]New thread 3066658148 created [17:45:03]Thread 3066801508 joined [17:45:03]Waiting for new connection... [17:45:03] Sock 7.Parse request [17:45:03]Sock 7.Check first char [17:45:03]Sock 7.First char is OK [17:45:03]request: POST /json_proto HTTP/1.0 [17:45:03]Method: POST [17:45:03]URL: /json_proto [17:45:03]Method is POST - this is cgi request [17:45:03]url: /json_proto [17:45:03]query_string will be loaded in cgi processing [17:45:03]execute_cgi json_proto POST (null) [17:45:03]execute_cgi path=json_proto method=POST [17:45:03]POST find Content-Length [17:45:03]Host: 172.17.63.195:8080 [17:45:03]Content-Length: 677 [17:45:03]Content-Type: application/json [17:45:03] [17:45:03]POST finish read [17:45:03]Found Content-Length = 677 [17:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:45:03]execute_script... [17:45: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)449895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:45:03]POST & json_proto [17:45:03]process_json_proto [17:45:03]json parsed OK: [17:45:03]protocol is kg_v1.0 [17:45:03]action value=close_receipt [17:45:03]process_action close_receipt [17:45:03]cmd_close_receipt [17:45:03]MH_GetDate [17:45:03]Write to MH i2c: F0 00 00 EF 00 DE [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: F0 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: F0 09 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: F0 09 00 EF 00 00 1F 7C 1E 67 47 1B 1E 67 EE [17:45:03]GetLastDocTimeStamp 1730051029 [17:45:03]current date 1730051103 [17:45:03]FM_GetShiftState [17:45:03]SAM_PROTO_GetShiftState [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 13 01 00 [17:45:03]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 0E 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6F [17:45:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:45:03]wFMCommunicate OK [17:45:03]SAM_PROTO_GetShiftState done [17:45:03]FM_GetShiftState done [17:45:03]opened in 1729987312 [17:45:03]opened+sec_in_day 1730073712 [17:45:03]quantity*price = 50041 [17:45:03]sum+1 = 50042 [17:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 417 27.10.2024 17:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202125 ФПД: 134919050797014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174503&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202125&fm=134919050797014&tin=02508201610067®Number=0000000000091777&sum=50000 [17:45:04]StoreToDocumentArchive [17:45:04]shift 544 fd 202125 [17:45:04]save to /storage/0544/doc_00202125 [17:45:04]save last doc name /storage/0544/doc_00202125 to /storage/kkm_last_doc_name [17:45:04]save OK [17:45:04]Clear old archive folders... [17:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:04]tlvbuf is B6E833B0 [17:45:04]SAM_PROTO_ClearQueue [17:45:04]wFMCommunicate request_size=4 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 09 00 00 [17:45:04]Write to MH i2c: E2 08 00 FD 00 80 09 00 00 00 00 00 00 6F [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [17:45:04]RAPDU: 90 00 [17:45:04]wFMCommunicate OK [17:45:04]SAM_PROTO_ClearQueue done [17:45:04]KKMCreateOFDPacket [17:45:04]OFDProtocolAddRootSTLVToBuf [17:45:04]FM_MakeSignedData [17:45:04]FM_MakeSignedData [17:45:04]SAM_PROTO_SignData [17:45:04]wFMCommunicate request_size=4 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 0D 01 02 [17:45:04]Write to MH i2c: E2 08 00 FE 00 80 0D 01 02 00 00 00 00 77 [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [17:45:04]RAPDU: 90 00 [17:45:04]wFMCommunicate OK [17:45:04]wFMCommunicate request_size=255 [17:45:04]MH_SAM_APDU [17:45: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 32 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 A1 01 00 00 F4 03 04 00 1F 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 15 03 00 35 04 06 00 7A [17:45:04]Write to MH i2c: E2 02 01 FF 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 01 00 00 F4 03 04 00 1F 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 15 03 00 35 04 06 00 7A 00 00 0E [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [17:45:04]RAPDU: 90 00 [17:45:04]wFMCommunicate OK [17:45:04]wFMCommunicate request_size=10 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 0D 02 02 05 B5 4A 18 9F D6 [17:45:04]Write to MH i2c: E2 0D 00 00 01 80 0D 02 02 05 00 B5 4A 18 9F D6 00 00 11 [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [17:45:04]RAPDU: 90 00 [17:45:04]wFMCommunicate OK [17:45:04]wFMCommunicate request_size=4 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 0D 03 02 [17:45:04]Write to MH i2c: E2 08 00 01 01 80 0D 03 02 00 00 00 00 7D [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 0B 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 0B 00 01 01 00 FA 6B 25 1D 86 53 6B 39 90 00 A2 [17:45:04]RAPDU: FA 6B 25 1D 86 53 6B 39 90 00 [17:45:04]wFMCommunicate OK [17:45:04]SAM_PROTO_SignData done [17:45:04]FM_MakeSignedData done [17:45:04]CreateOFDProtocolMessage [17:45:04]wFMCommunicate request_size=4 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 11 00 00 [17:45:04]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 17 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D2 [17:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:45:04]wFMCommunicate OK [17:45:04]CreateOFDProtocolMessage done [17:45:04]OFDSenderStorePacket 202125 [17:45:04]StoreOFDPacket docnum=202125 [17:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CC DB 07 01 5C CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 01 00 00 F4 03 04 00 1F 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 15 03 00 35 04 06 00 7A B5 4A 18 9F D6 FA 6B 25 1D 86 53 6B 39 [17:45:04]CheckFolder [17:45:04]dirname=/storage/ofd_packets [17:45:04]CheckFolder done [17:45:04]ProducePacketName [17:45:04]name=ofd_packets/00202125 [17:45:04]NVStorageSaveData ofd_packets/00202125 [17:45:04]File name is /storage/ofd_packets/00202125 [17:45:04]Write 301 bytes [17:45:04]NVStorageSaveData done [17:45:04]OFDSenderStorePacket done [17:45:04]KKMCreateOFDPacket done [17:45:04]NVStorageSaveData kkm_last_timestamp [17:45:04]File name is /storage/kkm_last_timestamp [17:45:04]Write 4 bytes [17:45:04]NVStorageSaveData done [17:45:04]ExternCall_PrintAddStr [17:45:04]wPrintStart [17:45:04]Write to MH i2c: 01 00 00 03 01 04 [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: 01 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: 01 07 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 FF 0F 19 [17:45:04]RasterBufferAndPrint [17:45:04]line Счет N : (1)449895 [17:45:04]line ИНН: 02508201610067 [17:45:04]line Контрольно-Кассовый Чек [17:45:04]line ПРОДАЖА [17:45:04]line ТРК (МРК, ГНК) : 31 [17:45:04]line Товар: 2710124130 [17:45:04]line Аи-92-К-2 [17:45:04]line 7.480 * 66.90 [17:45:04]line = 500.41 [17:45:04]line НДС 12% НСП 1% [17:45:04]line > о реализуемом товаре [17:45:04]line ОКРУГЛЕНИЕ: -0.41 [17:45:04]line ИТОГО: 500.00 [17:45:04]line Внесено: 500.00 [17:45:04]line СДАЧА: 0.00 [17:45:04]line НСП 1% : 4.43 [17:45:04]line НДС 12% : 53.14 [17:45:04]line Наличными: 500.00 [17:45:04]line Безнал.: 0.00 [17:45:04]line Место: АЗС № 171 "Партнер Нефть" [17:45:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:45:04]line СНО: Общий режим [17:45:04]line Чек 417 27.10.2024 17:45 [17:45:04]line Смена: 544 ФФД: 1.0 [17:45:04]line ЗНМ: 0300000109 [17:45:04]line РНМ: 0000000000091777 [17:45:04]line Версия ККМ: 001 [17:45:04]line ФМ: 0000000000871756 [17:45:04]line ФД: 202125 [17:45:04]line ФПД: 134919050797014 [17:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174503&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202125&fm=134919050797014&tin=02508201610067®Number=0000000000091777&sum=50000 [17:45:05]OFD Sender: Processing packet 202125 [packets to send 114, broken 113] [17:45:05]ProducePacketName [17:45:05]name=ofd_packets/00202125 [17:45:05]OFD Sender: To server: pG, [17:45:05]CommunicateWithHost lk.salyk.kg:30040 [17:45:05]ConnectInit lk.salyk.kg [17:45:05]written 0, free lines is 4095 [17:45:05]Connected sock=10 [17:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CC DB 07 01 5C CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 01 00 00 F4 03 04 00 1F 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 15 03 00 35 04 06 00 7A B5 4A 18 9F D6 FA 6B 25 1D 86 53 6B 39 [17:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2C F7 47 00 E8 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 15 03 00 F4 03 04 00 D8 27 1E 67 B6 04 01 00 00 B0 91 8A 4F 7D 37 1B A1 [17:45:05]CommunicateWithHost err = 0 [17:45:05]CheckOFDResponse [17:45:05]1017 (14) - 77093643461234 [17:45:05]1041 (16) - 0000000000871756 [17:45:05]1040 (4) - 202125 [17:45:05]1012 (4) - 27.10.2024 11:45 [17:45:05]1206 (1) - 0 [17:45:05]OFD Sender: Remove packet 202125 [17:45:05]ProducePacketName [17:45:05]name=ofd_packets/00202125 [17:45:05]NVStorageDeleteData [17:45:05]Write to MH i2c: 01 00 00 2E 01 2F [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 93 0C D5 [17:45:05]RasterBufferAndPrint [17:45:05]line [17:45:05]line [17:45:05]line [17:45:05]line [17:45:05]line [17:45:05]written 0, free lines is 3222 [17:45:05]MH_Cut [17:45:05]Write to MH i2c: D1 01 00 35 01 01 08 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: D1 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: D1 01 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: D1 01 00 35 01 00 07 [17:45:05]Write to MH i2c: 01 00 00 36 01 37 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]OFD Sender: No OFD packet to send [17:45:06]*** Cut start [17:45:06]*** Purtial cut [17:45:06]*** Stage 1: CUTSNS_PIN = 1 [17:45:06]Read from MH i2c: 01 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: 01 07 00 [17:45:06]MH_I2C_Read... [17:45:06]*** Stop cut motor [17:45:06]*** Cut end [17:45:06]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 FF 0F 4C [17:45:06]process_action close_receipt done [17:45:06]requested_data is exist [17:45:06]produce_requested_data [17:45:06]requested_item fm.sn is exist - process it [17:45:06]wFMCommunicate request_size=4 [17:45:06]MH_SAM_APDU [17:45:06]CAPDU: 80 11 00 00 [17:45:06]Write to MH i2c: E2 08 00 37 01 80 11 00 00 00 00 00 00 B2 [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 [17:45:06]MH_I2C_Read... [17:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:06]Read from MH i2c: E2 17 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 17 00 37 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 07 [17:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:45:06]wFMCommunicate OK [17:45:06]requested_item fd.num is exist - process it [17:45:06]SAM_PROTO_GetFieldsCounters [17:45:06]wFMCommunicate request_size=4 [17:45:06]MH_SAM_APDU [17:45:06]CAPDU: 80 13 00 00 [17:45:06]Write to MH i2c: E2 08 00 38 01 80 13 00 00 00 00 00 00 B5 [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:06]Read from MH i2c: E2 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 62 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 62 00 38 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [17:45:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:06]wFMCommunicate OK [17:45:06]SAM_PROTO_GetFieldsCounters done [17:45:06]requested_item shift.num is exist - process it [17:45:06]requested_item shift.opened is exist - process it [17:45:06]req_shift_opened [17:45:06]FM_GetShiftState [17:45:06]SAM_PROTO_GetShiftState [17:45:06]wFMCommunicate request_size=4 [17:45:06]MH_SAM_APDU [17:45:06]CAPDU: 80 13 01 00 [17:45:06]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:06]Read from MH i2c: E2 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 0E 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 0E 00 39 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B9 [17:45:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:45:06]wFMCommunicate OK [17:45:06]SAM_PROTO_GetShiftState done [17:45:06]FM_GetShiftState done [17:45:06]req_shift_opened done [17:45:06]requested_item shift.open_date is exist - process it [17:45:06]req_shift_open_date [17:45:06]req_shift_open_date done [17:45:06]produce_requested_data done [17:45:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202125,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:45:06]process_action_free close_receipt [17:45:06]json_value_free [17:45:06]json_value_free done [17:45:06]process_json_proto returns [17:45:06]Send response to host [17:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202125,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:45:06]free response buf [17:45:06]execute_script done [17:45:06]execute_script returns [17:45:06]free content buf [17:45:06]Sock 7.Close socket [17:45:06]Sock 7.Thread stoped [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]accept exits with 9 [17:45:50]New connection [17:45:50]New thread 3066801508 created [17:45:50]Thread 3066658148 joined [17:45:50]Waiting for new connection... [17:45:50] Sock 9.Parse request [17:45:50]Sock 9.Check first char [17:45:50]Sock 9.First char is OK [17:45:50]request: POST /json_proto HTTP/1.0 [17:45:50]Method: POST [17:45:50]URL: /json_proto [17:45:50]Method is POST - this is cgi request [17:45:50]url: /json_proto [17:45:50]query_string will be loaded in cgi processing [17:45:50]execute_cgi json_proto POST (null) [17:45:50]execute_cgi path=json_proto method=POST [17:45:50]POST find Content-Length [17:45:50]Host: 172.17.63.195:8080 [17:45:50]Content-Length: 677 [17:45:50]Content-Type: application/json [17:45:50] [17:45:50]POST finish read [17:45:50]Found Content-Length = 677 [17:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:50]execute_script... [17:45:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:50]POST & json_proto [17:45:50]process_json_proto [17:45:50]json parsed OK: [17:45:50]protocol is kg_v1.0 [17:45:50]action value=close_receipt [17:45:50]process_action close_receipt [17:45:50]cmd_close_receipt [17:45:50]MH_GetDate [17:45:50]Write to MH i2c: F0 00 00 3A 01 2A [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: F0 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: F0 09 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: F0 09 00 3A 01 00 4E 7C 1E 67 47 1B 1E 67 69 [17:45:50]GetLastDocTimeStamp 1730051103 [17:45:50]current date 1730051150 [17:45:50]FM_GetShiftState [17:45:50]SAM_PROTO_GetShiftState [17:45:50]wFMCommunicate request_size=4 [17:45:50]MH_SAM_APDU [17:45:50]CAPDU: 80 13 01 00 [17:45:50]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:50]Read from MH i2c: E2 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 0E 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BB [17:45:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:45:50]wFMCommunicate OK [17:45:50]SAM_PROTO_GetShiftState done [17:45:50]FM_GetShiftState done [17:45:50]opened in 1729987312 [17:45:50]opened+sec_in_day 1730073712 [17:45:50]quantity*price = 49974 [17:45:50]sum+1 = 49975 [17:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 418 27.10.2024 17:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202126 ФПД: 160462290871524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202126&fm=160462290871524&tin=02508201610067®Number=0000000000091777&sum=49900 [17:45:51]StoreToDocumentArchive [17:45:51]shift 544 fd 202126 [17:45:51]save to /storage/0544/doc_00202126 [17:45:51]save last doc name /storage/0544/doc_00202126 to /storage/kkm_last_doc_name [17:45:51]save OK [17:45:51]Clear old archive folders... [17:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:51]tlvbuf is 006BA910 [17:45:51]SAM_PROTO_ClearQueue [17:45:51]wFMCommunicate request_size=4 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 09 00 00 [17:45:51]Write to MH i2c: E2 08 00 48 01 80 09 00 00 00 00 00 00 BB [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [17:45:51]RAPDU: 90 00 [17:45:51]wFMCommunicate OK [17:45:51]SAM_PROTO_ClearQueue done [17:45:51]KKMCreateOFDPacket [17:45:51]OFDProtocolAddRootSTLVToBuf [17:45:51]FM_MakeSignedData [17:45:51]FM_MakeSignedData [17:45:51]SAM_PROTO_SignData [17:45:51]wFMCommunicate request_size=4 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 0D 01 02 [17:45:51]Write to MH i2c: E2 08 00 49 01 80 0D 01 02 00 00 00 00 C3 [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [17:45:51]RAPDU: 90 00 [17:45:51]wFMCommunicate OK [17:45:51]wFMCommunicate request_size=255 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 01 00 00 F4 03 04 00 4E 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 15 03 00 35 04 06 00 91 [17:45:51]Write to MH i2c: E2 02 01 4A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 01 00 00 F4 03 04 00 4E 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 15 03 00 35 04 06 00 91 00 00 83 [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [17:45:51]RAPDU: 90 00 [17:45:51]wFMCommunicate OK [17:45:51]wFMCommunicate request_size=10 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 0D 02 02 05 F0 89 D8 E4 E4 [17:45:51]Write to MH i2c: E2 0D 00 4B 01 80 0D 02 02 05 00 F0 89 D8 E4 E4 00 00 E9 [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [17:45:51]RAPDU: 90 00 [17:45:51]wFMCommunicate OK [17:45:51]wFMCommunicate request_size=4 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 0D 03 02 [17:45:51]Write to MH i2c: E2 08 00 4C 01 80 0D 03 02 00 00 00 00 C8 [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 0B 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 0B 00 4C 01 00 51 5E AC B2 63 C1 9B BB 90 00 50 [17:45:51]RAPDU: 51 5E AC B2 63 C1 9B BB 90 00 [17:45:51]wFMCommunicate OK [17:45:51]SAM_PROTO_SignData done [17:45:51]FM_MakeSignedData done [17:45:51]CreateOFDProtocolMessage [17:45:51]wFMCommunicate request_size=4 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 11 00 00 [17:45:51]Write to MH i2c: E2 08 00 4D 01 80 11 00 00 00 00 00 00 C8 [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 17 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 17 00 4D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1D [17:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:45:51]wFMCommunicate OK [17:45:51]CreateOFDProtocolMessage done [17:45:51]OFDSenderStorePacket 202126 [17:45:51]StoreOFDPacket docnum=202126 [17:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0C 0F 07 01 40 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 01 00 00 F4 03 04 00 4E 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 15 03 00 35 04 06 00 91 F0 89 D8 E4 E4 51 5E AC B2 63 C1 9B BB [17:45:51]CheckFolder [17:45:51]dirname=/storage/ofd_packets [17:45:51]CheckFolder done [17:45:51]ProducePacketName [17:45:51]name=ofd_packets/00202126 [17:45:51]NVStorageSaveData ofd_packets/00202126 [17:45:51]File name is /storage/ofd_packets/00202126 [17:45:51]Write 301 bytes [17:45:51]NVStorageSaveData done [17:45:51]OFDSenderStorePacket done [17:45:51]KKMCreateOFDPacket done [17:45:51]NVStorageSaveData kkm_last_timestamp [17:45:51]File name is /storage/kkm_last_timestamp [17:45:51]Write 4 bytes [17:45:51]NVStorageSaveData done [17:45:51]ExternCall_PrintAddStr [17:45:52]wPrintStart [17:45:52]Write to MH i2c: 01 00 00 4E 01 4F [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 07 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 FF 0F 64 [17:45:52]RasterBufferAndPrint [17:45:52]line Счет N : (1)449896 [17:45:52]line ИНН: 02508201610067 [17:45:52]line Контрольно-Кассовый Чек [17:45:52]line ПРОДАЖА [17:45:52]line ТРК (МРК, ГНК) : 31 [17:45:52]line Товар: 2710124130 [17:45:52]line Аи-92-К-2 [17:45:52]line 7.470 * 66.90 [17:45:52]line = 499.74 [17:45:52]line НДС 12% НСП 1% [17:45:52]line > о реализуемом товаре [17:45:52]line ОКРУГЛЕНИЕ: -0.74 [17:45:52]line ИТОГО: 499.00 [17:45:52]line Внесено: 500.00 [17:45:52]line СДАЧА: 1.00 [17:45:52]line НСП 1% : 4.42 [17:45:52]line НДС 12% : 53.07 [17:45:52]line Наличными: 499.00 [17:45:52]line Безнал.: 0.00 [17:45:52]line Место: АЗС № 171 "Партнер Нефть" [17:45:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:45:52]line СНО: Общий режим [17:45:52]line Чек 418 27.10.2024 17:45 [17:45:52]line Смена: 544 ФФД: 1.0 [17:45:52]line ЗНМ: 0300000109 [17:45:52]line РНМ: 0000000000091777 [17:45:52]line Версия ККМ: 001 [17:45:52]line ФМ: 0000000000871756 [17:45:52]line ФД: 202126 [17:45:52]line ФПД: 160462290871524 [17:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202126&fm=160462290871524&tin=02508201610067®Number=0000000000091777&sum=49900 [17:45:52]OFD Sender: Processing packet 202126 [packets to send 114, broken 113] [17:45:52]ProducePacketName [17:45:52]name=ofd_packets/00202126 [17:45:52]OFD Sender: To server: pG, [17:45:52]CommunicateWithHost lk.salyk.kg:30040 [17:45:52]ConnectInit lk.salyk.kg [17:45:52]written 0, free lines is 4095 [17:45:52]Connected sock=10 [17:45:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0C 0F 07 01 40 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 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 BB 14 00 00 00 00 07 04 06 00 EC C2 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 01 00 00 F4 03 04 00 4E 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 15 03 00 35 04 06 00 91 F0 89 D8 E4 E4 51 5E AC B2 63 C1 9B BB [17:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4B 3C 47 00 28 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 15 03 00 F4 03 04 00 08 28 1E 67 B6 04 01 00 00 CB 3D 3E A9 B7 03 95 B5 [17:45:52]CommunicateWithHost err = 0 [17:45:52]CheckOFDResponse [17:45:52]1017 (14) - 77093643461234 [17:45:52]1041 (16) - 0000000000871756 [17:45:52]1040 (4) - 202126 [17:45:52]1012 (4) - 27.10.2024 11:46 [17:45:52]1206 (1) - 0 [17:45:52]OFD Sender: Remove packet 202126 [17:45:52]ProducePacketName [17:45:52]name=ofd_packets/00202126 [17:45:52]NVStorageDeleteData [17:45:52]Write to MH i2c: 01 00 00 79 01 7A [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 07 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 94 0C 21 [17:45:52]RasterBufferAndPrint [17:45:52]line [17:45:52]line [17:45:52]line [17:45:52]line [17:45:52]line [17:45:52]written 0, free lines is 3224 [17:45:52]MH_Cut [17:45:52]Write to MH i2c: D1 01 00 80 01 01 53 [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: D1 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: D1 01 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: D1 01 00 80 01 00 52 [17:45:52]Write to MH i2c: 01 00 00 81 01 82 [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:53]OFD Sender: No OFD packet to send [17:45:53]*** Cut start [17:45:53]*** Purtial cut [17:45:53]*** Stage 1: CUTSNS_PIN = 1 [17:45:53]Read from MH i2c: 01 [17:45:53]MH_I2C_Read... [17:45:53]*** Stop cut motor [17:45:53]*** Cut end [17:45:53]Read from MH i2c: 01 07 00 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 FF 0F 97 [17:45:53]process_action close_receipt done [17:45:53]requested_data is exist [17:45:53]produce_requested_data [17:45:53]requested_item fm.sn is exist - process it [17:45:53]wFMCommunicate request_size=4 [17:45:53]MH_SAM_APDU [17:45:53]CAPDU: 80 11 00 00 [17:45:53]Write to MH i2c: E2 08 00 82 01 80 11 00 00 00 00 00 00 FD [17:45:53]Write i2c OK [17:45:53]MH_I2C_Read... [17:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:53]Read from MH i2c: E2 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: E2 17 00 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: E2 17 00 82 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 52 [17:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:45:53]wFMCommunicate OK [17:45:53]requested_item fd.num is exist - process it [17:45:53]SAM_PROTO_GetFieldsCounters [17:45:53]wFMCommunicate request_size=4 [17:45:53]MH_SAM_APDU [17:45:53]CAPDU: 80 13 00 00 [17:45:53]Write to MH i2c: E2 08 00 83 01 80 13 00 00 00 00 00 00 00 [17:45:53]Write i2c OK [17:45:53]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 62 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 62 00 83 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:54]wFMCommunicate OK [17:45:54]SAM_PROTO_GetFieldsCounters done [17:45:54]requested_item shift.num is exist - process it [17:45:54]requested_item shift.opened is exist - process it [17:45:54]req_shift_opened [17:45:54]FM_GetShiftState [17:45:54]SAM_PROTO_GetShiftState [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 13 01 00 [17:45:54]Write to MH i2c: E2 08 00 84 01 80 13 01 00 00 00 00 00 02 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 0E 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 0E 00 84 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 04 [17:45:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:45:54]wFMCommunicate OK [17:45:54]SAM_PROTO_GetShiftState done [17:45:54]FM_GetShiftState done [17:45:54]req_shift_opened done [17:45:54]requested_item shift.open_date is exist - process it [17:45:54]req_shift_open_date [17:45:54]req_shift_open_date done [17:45:54]produce_requested_data done [17:45:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202126,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:45:54]process_action_free close_receipt [17:45:54]json_value_free [17:45:54]json_value_free done [17:45:54]process_json_proto returns [17:45:54]Send response to host [17:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202126,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:45:54]free response buf [17:45:54]execute_script done [17:45:54]execute_script returns [17:45:54]free content buf [17:45:54]Sock 9.Close socket [17:45:54]Sock 9.Thread stoped [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:53]accept exits with 7 [17:47:53]New connection [17:47:53]New thread 3066658148 created [17:47:53]Thread 3066801508 joined [17:47:53]Waiting for new connection... [17:47:53] Sock 7.Parse request [17:47:53]Sock 7.Check first char [17:47:53]Sock 7.First char is OK [17:47:53]request: POST /json_proto HTTP/1.0 [17:47:53]Method: POST [17:47:53]URL: /json_proto [17:47:53]Method is POST - this is cgi request [17:47:53]url: /json_proto [17:47:53]query_string will be loaded in cgi processing [17:47:53]execute_cgi json_proto POST (null) [17:47:53]execute_cgi path=json_proto method=POST [17:47:53]POST find Content-Length [17:47:53]Host: 172.17.63.195:8080 [17:47:53]Content-Length: 766 [17:47:53]Content-Type: application/json [17:47:53] [17:47:53]POST finish read [17:47:53]Found Content-Length = 766 [17:47:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:53]execute_script... [17:47:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:53]POST & json_proto [17:47:53]process_json_proto [17:47:53]json parsed OK: [17:47:53]protocol is kg_v1.0 [17:47:53]action value=close_receipt [17:47:53]process_action close_receipt [17:47:53]cmd_close_receipt [17:47:53]MH_GetDate [17:47:53]Write to MH i2c: F0 00 00 85 01 75 [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: F0 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: F0 09 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: F0 09 00 85 01 00 C9 7C 1E 67 47 1B 1E 67 2F [17:47:53]GetLastDocTimeStamp 1730051150 [17:47:53]current date 1730051273 [17:47:53]FM_GetShiftState [17:47:53]SAM_PROTO_GetShiftState [17:47:53]wFMCommunicate request_size=4 [17:47:53]MH_SAM_APDU [17:47:53]CAPDU: 80 13 01 00 [17:47:53]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:53]Read from MH i2c: E2 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 0E 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 06 [17:47:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:47:53]wFMCommunicate OK [17:47:53]SAM_PROTO_GetShiftState done [17:47:53]FM_GetShiftState done [17:47:53]opened in 1729987312 [17:47:53]opened+sec_in_day 1730073712 [17:47:53]quantity*price = 25020 [17:47:53]sum+1 = 25022 [17:47:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 419 27.10.2024 17:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202127 ФПД: 248903445387044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174753&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202127&fm=248903445387044&tin=02508201610067®Number=0000000000091777&sum=25021 [17:47:54]StoreToDocumentArchive [17:47:54]shift 544 fd 202127 [17:47:54]save to /storage/0544/doc_00202127 [17:47:54]save last doc name /storage/0544/doc_00202127 to /storage/kkm_last_doc_name [17:47:54]save OK [17:47:54]Clear old archive folders... [17:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:54]tlvbuf is 006BC2A0 [17:47:54]SAM_PROTO_ClearQueue [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 09 00 00 [17:47:54]Write to MH i2c: E2 08 00 93 01 80 09 00 00 00 00 00 00 06 [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 03 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [17:47:54]RAPDU: 90 00 [17:47:54]wFMCommunicate OK [17:47:54]SAM_PROTO_ClearQueue done [17:47:54]KKMCreateOFDPacket [17:47:54]OFDProtocolAddRootSTLVToBuf [17:47:54]FM_MakeSignedData [17:47:54]FM_MakeSignedData [17:47:54]SAM_PROTO_SignData [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 0D 01 02 [17:47:54]Write to MH i2c: E2 08 00 94 01 80 0D 01 02 00 00 00 00 0E [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 03 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [17:47:54]RAPDU: 90 00 [17:47:54]wFMCommunicate OK [17:47:54]wFMCommunicate request_size=255 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 C9 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 15 03 00 35 04 06 00 E2 [17:47:54]Write to MH i2c: E2 02 01 95 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 C9 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 15 03 00 35 04 06 00 E2 00 00 BE [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 03 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [17:47:54]RAPDU: 90 00 [17:47:54]wFMCommunicate OK [17:47:54]wFMCommunicate request_size=10 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 0D 02 02 05 60 59 72 17 24 [17:47:54]Write to MH i2c: E2 0D 00 96 01 80 0D 02 02 05 00 60 59 72 17 24 00 00 81 [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 03 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [17:47:54]RAPDU: 90 00 [17:47:54]wFMCommunicate OK [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 0D 03 02 [17:47:54]Write to MH i2c: E2 08 00 97 01 80 0D 03 02 00 00 00 00 13 [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 0B 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 0B 00 97 01 00 0C B7 EB D9 8B A6 F6 09 90 00 CB [17:47:54]RAPDU: 0C B7 EB D9 8B A6 F6 09 90 00 [17:47:54]wFMCommunicate OK [17:47:54]SAM_PROTO_SignData done [17:47:54]FM_MakeSignedData done [17:47:54]CreateOFDProtocolMessage [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 11 00 00 [17:47:54]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 17 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [17:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:47:55]wFMCommunicate OK [17:47:55]CreateOFDProtocolMessage done [17:47:55]OFDSenderStorePacket 202127 [17:47:55]StoreOFDPacket docnum=202127 [17:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 94 2C 07 01 88 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 C9 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 15 03 00 35 04 06 00 E2 60 59 72 17 24 0C B7 EB D9 8B A6 F6 09 [17:47:55]CheckFolder [17:47:55]dirname=/storage/ofd_packets [17:47:55]CheckFolder done [17:47:55]ProducePacketName [17:47:55]name=ofd_packets/00202127 [17:47:55]NVStorageSaveData ofd_packets/00202127 [17:47:55]File name is /storage/ofd_packets/00202127 [17:47:55]Write 301 bytes [17:47:55]NVStorageSaveData done [17:47:55]OFDSenderStorePacket done [17:47:55]KKMCreateOFDPacket done [17:47:55]NVStorageSaveData kkm_last_timestamp [17:47:55]File name is /storage/kkm_last_timestamp [17:47:55]Write 4 bytes [17:47:55]NVStorageSaveData done [17:47:55]ExternCall_PrintAddStr [17:47:55]wPrintStart [17:47:55]Write to MH i2c: 01 00 00 99 01 9A [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: 01 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: 01 07 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [17:47:55]RasterBufferAndPrint [17:47:55]line Счет N : (1)449897 [17:47:55]line ИНН: 02508201610067 [17:47:55]line Контрольно-Кассовый Чек [17:47:55]line ПРОДАЖА [17:47:55]line ТРК (МРК, ГНК) : 41 [17:47:55]line Товар: 2710124130 [17:47:55]line Аи-92-К-2 [17:47:55]line 3.740 * 66.90 [17:47:55]line = 250.21 [17:47:55]line НДС 12% НСП 1% [17:47:55]line > о реализуемом товаре [17:47:55]line ИТОГО: 250.21 [17:47:55]line НСП 1% : 2.21 [17:47:55]line НДС 12% : 26.57 [17:47:55]line Наличными: 0.00 [17:47:55]line Безнал.: 250.21 [17:47:55]line Место: АЗС № 171 "Партнер Нефть" [17:47:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:47:55]line СНО: Общий режим [17:47:55]line Чек 419 27.10.2024 17:47 [17:47:55]line Смена: 544 ФФД: 1.0 [17:47:55]line ЗНМ: 0300000109 [17:47:55]line РНМ: 0000000000091777 [17:47:55]line Версия ККМ: 001 [17:47:55]line Платежная система: Mbank [17:47:55]line ФМ: 0000000000871756 [17:47:55]line ФД: 202127 [17:47:55]line ФПД: 248903445387044 [17:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174753&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202127&fm=248903445387044&tin=02508201610067®Number=0000000000091777&sum=25021 [17:47:55]OFD Sender: Processing packet 202127 [packets to send 114, broken 113] [17:47:55]ProducePacketName [17:47:55]name=ofd_packets/00202127 [17:47:55]OFD Sender: To server: pG, [17:47:55]CommunicateWithHost lk.salyk.kg:30040 [17:47:55]ConnectInit lk.salyk.kg [17:47:55]written 0, free lines is 4095 [17:47:55]Connected sock=10 [17:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 94 2C 07 01 88 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 C9 7C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 15 03 00 35 04 06 00 E2 60 59 72 17 24 0C B7 EB D9 8B A6 F6 09 [17:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 97 B9 47 00 6C 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 15 03 00 F4 03 04 00 83 28 1E 67 B6 04 01 00 00 51 2A 16 43 86 5D 41 B4 [17:47:55]CommunicateWithHost err = 0 [17:47:55]CheckOFDResponse [17:47:55]1017 (14) - 77093643461234 [17:47:55]1041 (16) - 0000000000871756 [17:47:55]1040 (4) - 202127 [17:47:55]1012 (4) - 27.10.2024 11:48 [17:47:55]1206 (1) - 0 [17:47:55]OFD Sender: Remove packet 202127 [17:47:55]ProducePacketName [17:47:55]name=ofd_packets/00202127 [17:47:55]NVStorageDeleteData [17:47:55]Write to MH i2c: 01 00 00 C2 01 C3 [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: 01 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: 01 07 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 CA 0C A0 [17:47:55]RasterBufferAndPrint [17:47:55]line [17:47:55]line [17:47:55]line [17:47:55]line [17:47:55]line [17:47:55]written 0, free lines is 3279 [17:47:55]MH_Cut [17:47:55]Write to MH i2c: D1 01 00 C9 01 01 9C [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: D1 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: D1 01 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: D1 01 00 C9 01 00 9B [17:47:55]Write to MH i2c: 01 00 00 CA 01 CB [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:56]OFD Sender: No OFD packet to send [17:47:56]*** Cut start [17:47:56]*** Purtial cut [17:47:56]*** Stage 1: CUTSNS_PIN = 1 [17:47:56]Read from MH i2c: 01 [17:47:56]MH_I2C_Read... [17:47:56]*** Stop cut motor [17:47:56]*** Cut end [17:47:56]Read from MH i2c: 01 07 00 [17:47:56]MH_I2C_Read... [17:47:56]Read from MH i2c: 01 07 00 CA 01 00 00 00 00 00 FF 0F E0 [17:47:56]process_action close_receipt done [17:47:56]requested_data is exist [17:47:56]produce_requested_data [17:47:56]requested_item fm.sn is exist - process it [17:47:56]wFMCommunicate request_size=4 [17:47:56]MH_SAM_APDU [17:47:56]CAPDU: 80 11 00 00 [17:47:56]Write to MH i2c: E2 08 00 CB 01 80 11 00 00 00 00 00 00 46 [17:47:56]Write i2c OK [17:47:56]MH_I2C_Read... [17:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:56]Read from MH i2c: E2 [17:47:56]MH_I2C_Read... [17:47:56]Read from MH i2c: E2 17 00 [17:47:56]MH_I2C_Read... [17:47:56]Read from MH i2c: E2 17 00 CB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9B [17:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:47:56]wFMCommunicate OK [17:47:56]requested_item fd.num is exist - process it [17:47:56]SAM_PROTO_GetFieldsCounters [17:47:56]wFMCommunicate request_size=4 [17:47:56]MH_SAM_APDU [17:47:56]CAPDU: 80 13 00 00 [17:47:56]Write to MH i2c: E2 08 00 CC 01 80 13 00 00 00 00 00 00 49 [17:47:56]Write i2c OK [17:47:56]MH_I2C_Read... [17:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:57]Read from MH i2c: E2 [17:47:57]MH_I2C_Read... [17:47:57]Read from MH i2c: E2 62 00 [17:47:57]MH_I2C_Read... [17:47:57]Read from MH i2c: E2 62 00 CC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [17:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:57]wFMCommunicate OK [17:47:57]SAM_PROTO_GetFieldsCounters done [17:47:57]requested_item shift.num is exist - process it [17:47:57]requested_item shift.opened is exist - process it [17:47:57]req_shift_opened [17:47:57]FM_GetShiftState [17:47:57]SAM_PROTO_GetShiftState [17:47:57]wFMCommunicate request_size=4 [17:47:57]MH_SAM_APDU [17:47:57]CAPDU: 80 13 01 00 [17:47:57]Write to MH i2c: E2 08 00 CD 01 80 13 01 00 00 00 00 00 4B [17:47:57]Write i2c OK [17:47:57]MH_I2C_Read... [17:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:57]Read from MH i2c: E2 [17:47:57]MH_I2C_Read... [17:47:57]Read from MH i2c: E2 0E 00 [17:47:57]MH_I2C_Read... [17:47:57]Read from MH i2c: E2 0E 00 CD 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4D [17:47:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:47:57]wFMCommunicate OK [17:47:57]SAM_PROTO_GetShiftState done [17:47:57]FM_GetShiftState done [17:47:57]req_shift_opened done [17:47:57]requested_item shift.open_date is exist - process it [17:47:57]req_shift_open_date [17:47:57]req_shift_open_date done [17:47:57]produce_requested_data done [17:47:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202127,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:47:57]process_action_free close_receipt [17:47:57]json_value_free [17:47:57]json_value_free done [17:47:57]process_json_proto returns [17:47:57]Send response to host [17:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202127,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:47:57]free response buf [17:47:57]execute_script done [17:47:57]execute_script returns [17:47:57]free content buf [17:47:57]Sock 7.Close socket [17:47:57]Sock 7.Thread stoped [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:05]accept exits with 9 [17:57:05]New connection [17:57:05]New thread 3066801508 created [17:57:05]Thread 3066658148 joined [17:57:05]Waiting for new connection... [17:57:05] Sock 9.Parse request [17:57:05]Sock 9.Check first char [17:57:05]Sock 9.First char is OK [17:57:05]request: POST /json_proto HTTP/1.0 [17:57:05]Method: POST [17:57:05]URL: /json_proto [17:57:05]Method is POST - this is cgi request [17:57:05]url: /json_proto [17:57:05]query_string will be loaded in cgi processing [17:57:05]execute_cgi json_proto POST (null) [17:57:05]execute_cgi path=json_proto method=POST [17:57:05]POST find Content-Length [17:57:05]Host: 172.17.63.195:8080 [17:57:05]Content-Length: 677 [17:57:05]Content-Type: application/json [17:57:05] [17:57:05]POST finish read [17:57:05]Found Content-Length = 677 [17:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:57:05]execute_script... [17:57: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)449898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:57:05]POST & json_proto [17:57:05]process_json_proto [17:57:05]json parsed OK: [17:57:05]protocol is kg_v1.0 [17:57:05]action value=close_receipt [17:57:05]process_action close_receipt [17:57:05]cmd_close_receipt [17:57:05]MH_GetDate [17:57:05]Write to MH i2c: F0 00 00 CE 01 BE [17:57:05]Write i2c OK [17:57:05]MH_I2C_Read... [17:57:05]Read from MH i2c: F0 [17:57:05]MH_I2C_Read... [17:57:05]Read from MH i2c: F0 09 00 [17:57:05]MH_I2C_Read... [17:57:05]Read from MH i2c: F0 09 00 CE 01 00 F2 7E 1E 67 47 1B 1E 67 A3 [17:57:05]GetLastDocTimeStamp 1730051273 [17:57:05]current date 1730051826 [17:57:05]FM_GetShiftState [17:57:05]SAM_PROTO_GetShiftState [17:57:05]wFMCommunicate request_size=4 [17:57:05]MH_SAM_APDU [17:57:05]CAPDU: 80 13 01 00 [17:57:05]Write to MH i2c: E2 08 00 CF 01 80 13 01 00 00 00 00 00 4D [17:57:05]Write i2c OK [17:57:05]MH_I2C_Read... [17:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:05]Read from MH i2c: E2 [17:57:05]MH_I2C_Read... [17:57:05]Read from MH i2c: E2 0E 00 [17:57:05]MH_I2C_Read... [17:57:05]Read from MH i2c: E2 0E 00 CF 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4F [17:57:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:57:05]wFMCommunicate OK [17:57:05]SAM_PROTO_GetShiftState done [17:57:05]FM_GetShiftState done [17:57:05]opened in 1729987312 [17:57:05]opened+sec_in_day 1730073712 [17:57:05]quantity*price = 30038 [17:57:05]sum+1 = 30039 [17:57: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 420 27.10.2024 17:57 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202128 ФПД: 151192640676999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175706&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202128&fm=151192640676999&tin=02508201610067®Number=0000000000091777&sum=30000 [17:57:06]StoreToDocumentArchive [17:57:06]shift 544 fd 202128 [17:57:06]save to /storage/0544/doc_00202128 [17:57:06]save last doc name /storage/0544/doc_00202128 to /storage/kkm_last_doc_name [17:57:06]save OK [17:57:06]Clear old archive folders... [17:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:06]tlvbuf is 006B91C0 [17:57:06]SAM_PROTO_ClearQueue [17:57:06]wFMCommunicate request_size=4 [17:57:06]MH_SAM_APDU [17:57:06]CAPDU: 80 09 00 00 [17:57:06]Write to MH i2c: E2 08 00 DC 01 80 09 00 00 00 00 00 00 4F [17:57:06]Write i2c OK [17:57:06]MH_I2C_Read... [17:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:06]Read from MH i2c: E2 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 03 00 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [17:57:06]RAPDU: 90 00 [17:57:06]wFMCommunicate OK [17:57:06]SAM_PROTO_ClearQueue done [17:57:06]KKMCreateOFDPacket [17:57:06]OFDProtocolAddRootSTLVToBuf [17:57:06]FM_MakeSignedData [17:57:06]FM_MakeSignedData [17:57:06]SAM_PROTO_SignData [17:57:06]wFMCommunicate request_size=4 [17:57:06]MH_SAM_APDU [17:57:06]CAPDU: 80 0D 01 02 [17:57:06]Write to MH i2c: E2 08 00 DD 01 80 0D 01 02 00 00 00 00 57 [17:57:06]Write i2c OK [17:57:06]MH_I2C_Read... [17:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:06]OFD Sender: No OFD packet to send [17:57:06]Read from MH i2c: E2 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 03 00 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [17:57:06]RAPDU: 90 00 [17:57:06]wFMCommunicate OK [17:57:06]wFMCommunicate request_size=255 [17:57:06]MH_SAM_APDU [17:57: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 32 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 A4 01 00 00 F4 03 04 00 F2 7E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 15 03 00 35 04 06 00 89 [17:57:06]Write to MH i2c: E2 02 01 DE 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A4 01 00 00 F4 03 04 00 F2 7E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 15 03 00 35 04 06 00 89 00 00 CC [17:57:06]Write i2c OK [17:57:06]MH_I2C_Read... [17:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:07]Read from MH i2c: E2 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 03 00 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [17:57:07]RAPDU: 90 00 [17:57:07]wFMCommunicate OK [17:57:07]wFMCommunicate request_size=10 [17:57:07]MH_SAM_APDU [17:57:07]CAPDU: 80 0D 02 02 05 82 47 A3 E4 87 [17:57:07]Write to MH i2c: E2 0D 00 DF 01 80 0D 02 02 05 00 82 47 A3 E4 87 00 00 3B [17:57:07]Write i2c OK [17:57:07]MH_I2C_Read... [17:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:07]Read from MH i2c: E2 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 03 00 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [17:57:07]RAPDU: 90 00 [17:57:07]wFMCommunicate OK [17:57:07]wFMCommunicate request_size=4 [17:57:07]MH_SAM_APDU [17:57:07]CAPDU: 80 0D 03 02 [17:57:07]Write to MH i2c: E2 08 00 E0 01 80 0D 03 02 00 00 00 00 5C [17:57:07]Write i2c OK [17:57:07]MH_I2C_Read... [17:57:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:07]Read from MH i2c: E2 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 0B 00 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 0B 00 E0 01 00 A2 DE 55 E2 61 B3 F0 47 90 00 5F [17:57:07]RAPDU: A2 DE 55 E2 61 B3 F0 47 90 00 [17:57:07]wFMCommunicate OK [17:57:07]SAM_PROTO_SignData done [17:57:07]FM_MakeSignedData done [17:57:07]CreateOFDProtocolMessage [17:57:07]wFMCommunicate request_size=4 [17:57:07]MH_SAM_APDU [17:57:07]CAPDU: 80 11 00 00 [17:57:07]Write to MH i2c: E2 08 00 E1 01 80 11 00 00 00 00 00 00 5C [17:57:07]Write i2c OK [17:57:07]MH_I2C_Read... [17:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:07]Read from MH i2c: E2 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 17 00 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 17 00 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [17:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:57:07]wFMCommunicate OK [17:57:07]CreateOFDProtocolMessage done [17:57:07]OFDSenderStorePacket 202128 [17:57:07]StoreOFDPacket docnum=202128 [17:57:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 ED DD 07 01 A9 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A4 01 00 00 F4 03 04 00 F2 7E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 15 03 00 35 04 06 00 89 82 47 A3 E4 87 A2 DE 55 E2 61 B3 F0 47 [17:57:07]CheckFolder [17:57:07]dirname=/storage/ofd_packets [17:57:07]CheckFolder done [17:57:07]ProducePacketName [17:57:07]name=ofd_packets/00202128 [17:57:07]NVStorageSaveData ofd_packets/00202128 [17:57:07]File name is /storage/ofd_packets/00202128 [17:57:07]Write 301 bytes [17:57:07]NVStorageSaveData done [17:57:07]OFDSenderStorePacket done [17:57:07]KKMCreateOFDPacket done [17:57:07]NVStorageSaveData kkm_last_timestamp [17:57:07]File name is /storage/kkm_last_timestamp [17:57:07]Write 4 bytes [17:57:07]NVStorageSaveData done [17:57:07]ExternCall_PrintAddStr [17:57:07]wPrintStart [17:57:07]Write to MH i2c: 01 00 00 E2 01 E3 [17:57:07]Write i2c OK [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: 01 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: 01 07 00 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 FF 0F F8 [17:57:07]RasterBufferAndPrint [17:57:07]line Счет N : (1)449898 [17:57:07]line ИНН: 02508201610067 [17:57:07]line Контрольно-Кассовый Чек [17:57:07]line ПРОДАЖА [17:57:07]line ТРК (МРК, ГНК) : 52 [17:57:07]line Товар: 2710124130 [17:57:07]line Аи-92-К-2 [17:57:07]line 4.490 * 66.90 [17:57:07]line = 300.38 [17:57:07]line НДС 12% НСП 1% [17:57:07]line > о реализуемом товаре [17:57:07]line ОКРУГЛЕНИЕ: -0.38 [17:57:07]line ИТОГО: 300.00 [17:57:07]line Внесено: 300.00 [17:57:07]line СДАЧА: 0.00 [17:57:07]line НСП 1% : 2.66 [17:57:07]line НДС 12% : 31.90 [17:57:07]line Наличными: 300.00 [17:57:07]line Безнал.: 0.00 [17:57:07]line Место: АЗС № 171 "Партнер Нефть" [17:57:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:57:07]line СНО: Общий режим [17:57:07]line Чек 420 27.10.2024 17:57 [17:57:07]line Смена: 544 ФФД: 1.0 [17:57:07]line ЗНМ: 0300000109 [17:57:07]line РНМ: 0000000000091777 [17:57:07]line Версия ККМ: 001 [17:57:07]line ФМ: 0000000000871756 [17:57:07]line ФД: 202128 [17:57:07]line ФПД: 151192640676999 [17:57:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175706&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202128&fm=151192640676999&tin=02508201610067®Number=0000000000091777&sum=30000 [17:57:07]OFD Sender: Processing packet 202128 [packets to send 114, broken 113] [17:57:07]ProducePacketName [17:57:07]name=ofd_packets/00202128 [17:57:07]OFD Sender: To server: pG, [17:57:07]CommunicateWithHost lk.salyk.kg:30040 [17:57:07]ConnectInit lk.salyk.kg [17:57:07]written 0, free lines is 4095 [17:57:07]Connected sock=10 [17:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 ED DD 07 01 A9 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A4 01 00 00 F4 03 04 00 F2 7E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 15 03 00 35 04 06 00 89 82 47 A3 E4 87 A2 DE 55 E2 61 B3 F0 47 [17:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0C D7 47 00 2A D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 15 03 00 F4 03 04 00 AB 2A 1E 67 B6 04 01 00 00 22 C4 87 71 57 2C AF 22 [17:57:08]CommunicateWithHost err = 0 [17:57:08]CheckOFDResponse [17:57:08]1017 (14) - 77093643461234 [17:57:08]1041 (16) - 0000000000871756 [17:57:08]1040 (4) - 202128 [17:57:08]1012 (4) - 27.10.2024 11:57 [17:57:08]1206 (1) - 0 [17:57:08]OFD Sender: Remove packet 202128 [17:57:08]ProducePacketName [17:57:08]name=ofd_packets/00202128 [17:57:08]NVStorageDeleteData [17:57:08]Write to MH i2c: 01 00 00 0D 02 0F [17:57:08]Write i2c OK [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: 01 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: 01 07 00 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 91 0C B3 [17:57:08]RasterBufferAndPrint [17:57:08]line [17:57:08]line [17:57:08]line [17:57:08]line [17:57:08]line [17:57:08]written 0, free lines is 3221 [17:57:08]MH_Cut [17:57:08]Write to MH i2c: D1 01 00 14 02 01 E8 [17:57:08]Write i2c OK [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: D1 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: D1 01 00 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: D1 01 00 14 02 00 E7 [17:57:08]Write to MH i2c: 01 00 00 15 02 17 [17:57:08]Write i2c OK [17:57:08]MH_I2C_Read... [17:57:08]OFD Sender: No OFD packet to send [17:57:09]*** Cut start [17:57:09]*** Purtial cut [17:57:09]*** Stage 1: CUTSNS_PIN = 1 [17:57:09]Read from MH i2c: 01 [17:57:09]MH_I2C_Read... [17:57:09]*** Stop cut motor [17:57:09]*** Cut end [17:57:09]Read from MH i2c: 01 07 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 FF 0F 2C [17:57:09]process_action close_receipt done [17:57:09]requested_data is exist [17:57:09]produce_requested_data [17:57:09]requested_item fm.sn is exist - process it [17:57:09]wFMCommunicate request_size=4 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 11 00 00 [17:57:09]Write to MH i2c: E2 08 00 16 02 80 11 00 00 00 00 00 00 92 [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 17 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 17 00 16 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E7 [17:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:57:09]wFMCommunicate OK [17:57:09]requested_item fd.num is exist - process it [17:57:09]SAM_PROTO_GetFieldsCounters [17:57:09]wFMCommunicate request_size=4 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 13 00 00 [17:57:09]Write to MH i2c: E2 08 00 17 02 80 13 00 00 00 00 00 00 95 [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 62 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 62 00 17 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 90 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [17:57:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 90 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:09]wFMCommunicate OK [17:57:09]SAM_PROTO_GetFieldsCounters done [17:57:09]requested_item shift.num is exist - process it [17:57:09]requested_item shift.opened is exist - process it [17:57:09]req_shift_opened [17:57:09]FM_GetShiftState [17:57:09]SAM_PROTO_GetShiftState [17:57:09]wFMCommunicate request_size=4 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 13 01 00 [17:57:09]Write to MH i2c: E2 08 00 18 02 80 13 01 00 00 00 00 00 97 [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 0E 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 0E 00 18 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 99 [17:57:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [17:57:09]wFMCommunicate OK [17:57:09]SAM_PROTO_GetShiftState done [17:57:09]FM_GetShiftState done [17:57:09]req_shift_opened done [17:57:09]requested_item shift.open_date is exist - process it [17:57:09]req_shift_open_date [17:57:09]req_shift_open_date done [17:57:09]produce_requested_data done [17:57:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202128,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [17:57:09]process_action_free close_receipt [17:57:09]json_value_free [17:57:09]json_value_free done [17:57:09]process_json_proto returns [17:57:09]Send response to host [17:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202128,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [17:57:09]free response buf [17:57:09]execute_script done [17:57:09]execute_script returns [17:57:09]free content buf [17:57:09]Sock 9.Close socket [17:57:09]Sock 9.Thread stoped [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:27]accept exits with 7 [18:01:27]New connection [18:01:27]New thread 3066658148 created [18:01:27]Thread 3066801508 joined [18:01:27]Waiting for new connection... [18:01:27] Sock 7.Parse request [18:01:27]Sock 7.Check first char [18:01:27]Sock 7.First char is OK [18:01:27]request: POST /json_proto HTTP/1.0 [18:01:27]Method: POST [18:01:27]URL: /json_proto [18:01:27]Method is POST - this is cgi request [18:01:27]url: /json_proto [18:01:27]query_string will be loaded in cgi processing [18:01:27]execute_cgi json_proto POST (null) [18:01:27]execute_cgi path=json_proto method=POST [18:01:27]POST find Content-Length [18:01:27]Host: 172.17.63.195:8080 [18:01:27]Content-Length: 677 [18:01:27]Content-Type: application/json [18:01:27] [18:01:27]POST finish read [18:01:27]Found Content-Length = 677 [18:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:01:27]execute_script... [18:01: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)449899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:01:27]POST & json_proto [18:01:27]process_json_proto [18:01:27]json parsed OK: [18:01:27]protocol is kg_v1.0 [18:01:27]action value=close_receipt [18:01:27]process_action close_receipt [18:01:27]cmd_close_receipt [18:01:27]MH_GetDate [18:01:27]Write to MH i2c: F0 00 00 19 02 0A [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: F0 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: F0 09 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: F0 09 00 19 02 00 F8 7F 1E 67 47 1B 1E 67 F6 [18:01:27]GetLastDocTimeStamp 1730051826 [18:01:27]current date 1730052088 [18:01:27]FM_GetShiftState [18:01:27]SAM_PROTO_GetShiftState [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 13 01 00 [18:01:27]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 0E 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9B [18:01:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:01:27]wFMCommunicate OK [18:01:27]SAM_PROTO_GetShiftState done [18:01:27]FM_GetShiftState done [18:01:27]opened in 1729987312 [18:01:27]opened+sec_in_day 1730073712 [18:01:27]quantity*price = 50041 [18:01:27]sum+1 = 50042 [18:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 421 27.10.2024 18:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202129 ФПД: 176308939068899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202129&fm=176308939068899&tin=02508201610067®Number=0000000000091777&sum=50000 [18:01:28]StoreToDocumentArchive [18:01:28]shift 544 fd 202129 [18:01:28]save to /storage/0544/doc_00202129 [18:01:28]save last doc name /storage/0544/doc_00202129 to /storage/kkm_last_doc_name [18:01:28]save OK [18:01:28]Clear old archive folders... [18:01:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:29]tlvbuf is 006B7F40 [18:01:29]SAM_PROTO_ClearQueue [18:01:29]wFMCommunicate request_size=4 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 09 00 00 [18:01:29]Write to MH i2c: E2 08 00 27 02 80 09 00 00 00 00 00 00 9B [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [18:01:29]RAPDU: 90 00 [18:01:29]wFMCommunicate OK [18:01:29]SAM_PROTO_ClearQueue done [18:01:29]KKMCreateOFDPacket [18:01:29]OFDProtocolAddRootSTLVToBuf [18:01:29]FM_MakeSignedData [18:01:29]FM_MakeSignedData [18:01:29]SAM_PROTO_SignData [18:01:29]wFMCommunicate request_size=4 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 0D 01 02 [18:01:29]Write to MH i2c: E2 08 00 28 02 80 0D 01 02 00 00 00 00 A3 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [18:01:29]RAPDU: 90 00 [18:01:29]wFMCommunicate OK [18:01:29]wFMCommunicate request_size=255 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A5 01 00 00 F4 03 04 00 F8 7F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 15 03 00 35 04 06 00 A0 [18:01:29]Write to MH i2c: E2 02 01 29 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A5 01 00 00 F4 03 04 00 F8 7F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 15 03 00 35 04 06 00 A0 00 00 44 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [18:01:29]RAPDU: 90 00 [18:01:29]wFMCommunicate OK [18:01:29]wFMCommunicate request_size=10 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 0D 02 02 05 5A 1F AF 15 E3 [18:01:29]Write to MH i2c: E2 0D 00 2A 02 80 0D 02 02 05 00 5A 1F AF 15 E3 00 00 D0 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [18:01:29]RAPDU: 90 00 [18:01:29]wFMCommunicate OK [18:01:29]wFMCommunicate request_size=4 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 0D 03 02 [18:01:29]Write to MH i2c: E2 08 00 2B 02 80 0D 03 02 00 00 00 00 A8 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 0B 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 0B 00 2B 02 00 18 E5 D2 B8 59 4E A0 BF 90 00 36 [18:01:29]RAPDU: 18 E5 D2 B8 59 4E A0 BF 90 00 [18:01:29]wFMCommunicate OK [18:01:29]SAM_PROTO_SignData done [18:01:29]FM_MakeSignedData done [18:01:29]CreateOFDProtocolMessage [18:01:29]wFMCommunicate request_size=4 [18:01:29]MH_SAM_APDU [18:01:29]CAPDU: 80 11 00 00 [18:01:29]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:29]Read from MH i2c: E2 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 17 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [18:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:01:29]wFMCommunicate OK [18:01:29]CreateOFDProtocolMessage done [18:01:29]OFDSenderStorePacket 202129 [18:01:29]StoreOFDPacket docnum=202129 [18:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 64 8A 07 01 5A A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A5 01 00 00 F4 03 04 00 F8 7F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 15 03 00 35 04 06 00 A0 5A 1F AF 15 E3 18 E5 D2 B8 59 4E A0 BF [18:01:29]CheckFolder [18:01:29]dirname=/storage/ofd_packets [18:01:29]CheckFolder done [18:01:29]ProducePacketName [18:01:29]name=ofd_packets/00202129 [18:01:29]NVStorageSaveData ofd_packets/00202129 [18:01:29]File name is /storage/ofd_packets/00202129 [18:01:29]Write 301 bytes [18:01:29]NVStorageSaveData done [18:01:29]OFDSenderStorePacket done [18:01:29]KKMCreateOFDPacket done [18:01:29]NVStorageSaveData kkm_last_timestamp [18:01:29]File name is /storage/kkm_last_timestamp [18:01:29]Write 4 bytes [18:01:29]NVStorageSaveData done [18:01:29]ExternCall_PrintAddStr [18:01:29]wPrintStart [18:01:29]Write to MH i2c: 01 00 00 2D 02 2F [18:01:29]Write i2c OK [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 07 00 [18:01:29]MH_I2C_Read... [18:01:29]Read from MH i2c: 01 07 00 2D 02 00 00 00 00 00 FF 0F 44 [18:01:29]RasterBufferAndPrint [18:01:29]line Счет N : (1)449899 [18:01:29]line ИНН: 02508201610067 [18:01:29]line Контрольно-Кассовый Чек [18:01:29]line ПРОДАЖА [18:01:29]line ТРК (МРК, ГНК) : 41 [18:01:29]line Товар: 2710124130 [18:01:29]line Аи-92-К-2 [18:01:29]line 7.480 * 66.90 [18:01:29]line = 500.41 [18:01:29]line НДС 12% НСП 1% [18:01:29]line > о реализуемом товаре [18:01:29]line ОКРУГЛЕНИЕ: -0.41 [18:01:29]line ИТОГО: 500.00 [18:01:29]line Внесено: 500.00 [18:01:29]line СДАЧА: 0.00 [18:01:29]line НСП 1% : 4.43 [18:01:29]line НДС 12% : 53.14 [18:01:29]line Наличными: 500.00 [18:01:29]line Безнал.: 0.00 [18:01:29]line Место: АЗС № 171 "Партнер Нефть" [18:01:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:01:29]line СНО: Общий режим [18:01:29]line Чек 421 27.10.2024 18:01 [18:01:29]line Смена: 544 ФФД: 1.0 [18:01:29]line ЗНМ: 0300000109 [18:01:29]line РНМ: 0000000000091777 [18:01:29]line Версия ККМ: 001 [18:01:29]line ФМ: 0000000000871756 [18:01:29]line ФД: 202129 [18:01:29]line ФПД: 176308939068899 [18:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202129&fm=176308939068899&tin=02508201610067®Number=0000000000091777&sum=50000 [18:01:29]OFD Sender: Processing packet 202129 [packets to send 114, broken 113] [18:01:29]ProducePacketName [18:01:29]name=ofd_packets/00202129 [18:01:29]OFD Sender: To server: pG, [18:01:29]CommunicateWithHost lk.salyk.kg:30040 [18:01:29]ConnectInit lk.salyk.kg [18:01:29]written 0, free lines is 4095 [18:01:29]Connected sock=10 [18:01:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 64 8A 07 01 5A A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A5 01 00 00 F4 03 04 00 F8 7F 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 15 03 00 35 04 06 00 A0 5A 1F AF 15 E3 18 E5 D2 B8 59 4E A0 BF [18:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 95 A3 47 00 19 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 15 03 00 F4 03 04 00 B1 2B 1E 67 B6 04 01 00 00 E3 41 5D 69 14 A7 1F 0D [18:01:30]CommunicateWithHost err = 0 [18:01:30]CheckOFDResponse [18:01:30]1017 (14) - 77093643461234 [18:01:30]1041 (16) - 0000000000871756 [18:01:30]1040 (4) - 202129 [18:01:30]1012 (4) - 27.10.2024 12:01 [18:01:30]1206 (1) - 0 [18:01:30]OFD Sender: Remove packet 202129 [18:01:30]ProducePacketName [18:01:30]name=ofd_packets/00202129 [18:01:30]NVStorageDeleteData [18:01:30]Write to MH i2c: 01 00 00 58 02 5A [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: 01 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: 01 07 00 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 96 0C 03 [18:01:30]RasterBufferAndPrint [18:01:30]line [18:01:30]line [18:01:30]line [18:01:30]line [18:01:30]line [18:01:30]written 0, free lines is 3226 [18:01:30]MH_Cut [18:01:30]Write to MH i2c: D1 01 00 5F 02 01 33 [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: D1 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: D1 01 00 [18:01:30]MH_I2C_Read... [18:01:30]Read from MH i2c: D1 01 00 5F 02 00 32 [18:01:30]Write to MH i2c: 01 00 00 60 02 62 [18:01:30]Write i2c OK [18:01:30]MH_I2C_Read... [18:01:30]OFD Sender: No OFD packet to send [18:01:31]*** Cut start [18:01:31]*** Purtial cut [18:01:31]*** Stage 1: CUTSNS_PIN = 1 [18:01:31]Read from MH i2c: 01 [18:01:31]MH_I2C_Read... [18:01:31]*** Stop cut motor [18:01:31]*** Cut end [18:01:31]Read from MH i2c: 01 07 00 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 FF 0F 77 [18:01:31]process_action close_receipt done [18:01:31]requested_data is exist [18:01:31]produce_requested_data [18:01:31]requested_item fm.sn is exist - process it [18:01:31]wFMCommunicate request_size=4 [18:01:31]MH_SAM_APDU [18:01:31]CAPDU: 80 11 00 00 [18:01:31]Write to MH i2c: E2 08 00 61 02 80 11 00 00 00 00 00 00 DD [18:01:31]Write i2c OK [18:01:31]MH_I2C_Read... [18:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:31]Read from MH i2c: E2 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: E2 17 00 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: E2 17 00 61 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 32 [18:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:01:31]wFMCommunicate OK [18:01:31]requested_item fd.num is exist - process it [18:01:31]SAM_PROTO_GetFieldsCounters [18:01:31]wFMCommunicate request_size=4 [18:01:31]MH_SAM_APDU [18:01:31]CAPDU: 80 13 00 00 [18:01:31]Write to MH i2c: E2 08 00 62 02 80 13 00 00 00 00 00 00 E0 [18:01:31]Write i2c OK [18:01:31]MH_I2C_Read... [18:01:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:31]Read from MH i2c: E2 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: E2 62 00 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: E2 62 00 62 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 91 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [18:01:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 91 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:31]wFMCommunicate OK [18:01:31]SAM_PROTO_GetFieldsCounters done [18:01:31]requested_item shift.num is exist - process it [18:01:31]requested_item shift.opened is exist - process it [18:01:31]req_shift_opened [18:01:31]FM_GetShiftState [18:01:31]SAM_PROTO_GetShiftState [18:01:31]wFMCommunicate request_size=4 [18:01:31]MH_SAM_APDU [18:01:31]CAPDU: 80 13 01 00 [18:01:31]Write to MH i2c: E2 08 00 63 02 80 13 01 00 00 00 00 00 E2 [18:01:31]Write i2c OK [18:01:31]MH_I2C_Read... [18:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:31]Read from MH i2c: E2 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: E2 0E 00 [18:01:31]MH_I2C_Read... [18:01:31]Read from MH i2c: E2 0E 00 63 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E4 [18:01:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:01:31]wFMCommunicate OK [18:01:31]SAM_PROTO_GetShiftState done [18:01:31]FM_GetShiftState done [18:01:31]req_shift_opened done [18:01:31]requested_item shift.open_date is exist - process it [18:01:31]req_shift_open_date [18:01:31]req_shift_open_date done [18:01:31]produce_requested_data done [18:01:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202129,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:01:31]process_action_free close_receipt [18:01:31]json_value_free [18:01:31]json_value_free done [18:01:31]process_json_proto returns [18:01:31]Send response to host [18:01:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202129,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:01:31]free response buf [18:01:31]execute_script done [18:01:31]execute_script returns [18:01:31]free content buf [18:01:31]Sock 7.Close socket [18:01:31]Sock 7.Thread stoped [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]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]accept exits with 9 [18:02:55]New connection [18:02:55]New thread 3066801508 created [18:02:55]Thread 3066658148 joined [18:02:55]Waiting for new connection... [18:02:55] Sock 9.Parse request [18:02:55]Sock 9.Check first char [18:02:55]Sock 9.First char is OK [18:02:55]request: POST /json_proto HTTP/1.0 [18:02:55]Method: POST [18:02:55]URL: /json_proto [18:02:55]Method is POST - this is cgi request [18:02:55]url: /json_proto [18:02:55]query_string will be loaded in cgi processing [18:02:55]execute_cgi json_proto POST (null) [18:02:55]execute_cgi path=json_proto method=POST [18:02:55]POST find Content-Length [18:02:55]Host: 172.17.63.195:8080 [18:02:55]Content-Length: 682 [18:02:55]Content-Type: application/json [18:02:55] [18:02:55]POST finish read [18:02:55]Found Content-Length = 682 [18:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:02:55]execute_script... [18:02:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:02:55]POST & json_proto [18:02:55]process_json_proto [18:02:55]json parsed OK: [18:02:55]protocol is kg_v1.0 [18:02:55]action value=close_receipt [18:02:55]process_action close_receipt [18:02:55]cmd_close_receipt [18:02:55]MH_GetDate [18:02:55]Write to MH i2c: F0 00 00 64 02 55 [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: F0 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: F0 09 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: F0 09 00 64 02 00 50 80 1E 67 47 1B 1E 67 9A [18:02:55]GetLastDocTimeStamp 1730052088 [18:02:55]current date 1730052176 [18:02:55]FM_GetShiftState [18:02:55]SAM_PROTO_GetShiftState [18:02:55]wFMCommunicate request_size=4 [18:02:55]MH_SAM_APDU [18:02:55]CAPDU: 80 13 01 00 [18:02:55]Write to MH i2c: E2 08 00 65 02 80 13 01 00 00 00 00 00 E4 [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]OFD Sender: No OFD packet to send [18:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 0E 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 0E 00 65 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E6 [18:02:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:02:55]wFMCommunicate OK [18:02:55]SAM_PROTO_GetShiftState done [18:02:55]FM_GetShiftState done [18:02:55]opened in 1729987312 [18:02:55]opened+sec_in_day 1730073712 [18:02:55]quantity*price = 100015 [18:02:55]sum+1 = 100017 [18:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 422 27.10.2024 18:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202130 ФПД: 69492494833463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180256&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202130&fm=69492494833463&tin=02508201610067®Number=0000000000091777&sum=100000 [18:02:56]StoreToDocumentArchive [18:02:56]shift 544 fd 202130 [18:02:56]save to /storage/0544/doc_00202130 [18:02:56]save last doc name /storage/0544/doc_00202130 to /storage/kkm_last_doc_name [18:02:56]save OK [18:02:56]Clear old archive folders... [18:02:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:56]tlvbuf is 006D0890 [18:02:56]SAM_PROTO_ClearQueue [18:02:56]wFMCommunicate request_size=4 [18:02:56]MH_SAM_APDU [18:02:56]CAPDU: 80 09 00 00 [18:02:56]Write to MH i2c: E2 08 00 72 02 80 09 00 00 00 00 00 00 E6 [18:02:56]Write i2c OK [18:02:56]MH_I2C_Read... [18:02:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:56]Read from MH i2c: E2 [18:02:56]MH_I2C_Read... [18:02:56]Read from MH i2c: E2 03 00 [18:02:56]MH_I2C_Read... [18:02:56]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [18:02:56]RAPDU: 90 00 [18:02:56]wFMCommunicate OK [18:02:56]SAM_PROTO_ClearQueue done [18:02:56]KKMCreateOFDPacket [18:02:56]OFDProtocolAddRootSTLVToBuf [18:02:56]FM_MakeSignedData [18:02:56]FM_MakeSignedData [18:02:56]SAM_PROTO_SignData [18:02:56]wFMCommunicate request_size=4 [18:02:56]MH_SAM_APDU [18:02:56]CAPDU: 80 0D 01 02 [18:02:56]Write to MH i2c: E2 08 00 73 02 80 0D 01 02 00 00 00 00 EE [18:02:56]Write i2c OK [18:02:56]MH_I2C_Read... [18:02:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:56]Read from MH i2c: E2 [18:02:56]MH_I2C_Read... [18:02:56]Read from MH i2c: E2 03 00 [18:02:56]MH_I2C_Read... [18:02:56]Read from MH i2c: E2 03 00 73 02 00 90 00 E9 [18:02:56]RAPDU: 90 00 [18:02:56]wFMCommunicate OK [18:02:56]wFMCommunicate request_size=255 [18:02:56]MH_SAM_APDU [18:02:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A6 01 00 00 F4 03 04 00 50 80 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 15 03 00 35 04 06 00 3F [18:02:56]Write to MH i2c: E2 02 01 74 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A6 01 00 00 F4 03 04 00 50 80 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 15 03 00 35 04 06 00 3F 00 00 83 [18:02:56]Write i2c OK [18:02:56]MH_I2C_Read... [18:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:57]Read from MH i2c: E2 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: E2 03 00 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: E2 03 00 74 02 00 90 00 EA [18:02:57]RAPDU: 90 00 [18:02:57]wFMCommunicate OK [18:02:57]wFMCommunicate request_size=10 [18:02:57]MH_SAM_APDU [18:02:57]CAPDU: 80 0D 02 02 05 33 FB 78 17 37 [18:02:57]Write to MH i2c: E2 0D 00 75 02 80 0D 02 02 05 00 33 FB 78 17 37 00 00 EF [18:02:57]Write i2c OK [18:02:57]MH_I2C_Read... [18:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:57]Read from MH i2c: E2 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: E2 03 00 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [18:02:57]RAPDU: 90 00 [18:02:57]wFMCommunicate OK [18:02:57]wFMCommunicate request_size=4 [18:02:57]MH_SAM_APDU [18:02:57]CAPDU: 80 0D 03 02 [18:02:57]Write to MH i2c: E2 08 00 76 02 80 0D 03 02 00 00 00 00 F3 [18:02:57]Write i2c OK [18:02:57]MH_I2C_Read... [18:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:57]Read from MH i2c: E2 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: E2 0B 00 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: E2 0B 00 76 02 00 F3 87 06 2A B2 B0 77 6D 90 00 E4 [18:02:57]RAPDU: F3 87 06 2A B2 B0 77 6D 90 00 [18:02:57]wFMCommunicate OK [18:02:57]SAM_PROTO_SignData done [18:02:57]FM_MakeSignedData done [18:02:57]CreateOFDProtocolMessage [18:02:57]wFMCommunicate request_size=4 [18:02:57]MH_SAM_APDU [18:02:57]CAPDU: 80 11 00 00 [18:02:57]Write to MH i2c: E2 08 00 77 02 80 11 00 00 00 00 00 00 F3 [18:02:57]Write i2c OK [18:02:57]MH_I2C_Read... [18:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:57]Read from MH i2c: E2 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: E2 17 00 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: E2 17 00 77 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [18:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:02:57]wFMCommunicate OK [18:02:57]CreateOFDProtocolMessage done [18:02:57]OFDSenderStorePacket 202130 [18:02:57]StoreOFDPacket docnum=202130 [18:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 23 7A 07 01 82 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A6 01 00 00 F4 03 04 00 50 80 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 15 03 00 35 04 06 00 3F 33 FB 78 17 37 F3 87 06 2A B2 B0 77 6D [18:02:57]CheckFolder [18:02:57]dirname=/storage/ofd_packets [18:02:57]CheckFolder done [18:02:57]ProducePacketName [18:02:57]name=ofd_packets/00202130 [18:02:57]NVStorageSaveData ofd_packets/00202130 [18:02:57]File name is /storage/ofd_packets/00202130 [18:02:57]Write 301 bytes [18:02:57]NVStorageSaveData done [18:02:57]OFDSenderStorePacket done [18:02:57]KKMCreateOFDPacket done [18:02:57]NVStorageSaveData kkm_last_timestamp [18:02:57]File name is /storage/kkm_last_timestamp [18:02:57]Write 4 bytes [18:02:57]NVStorageSaveData done [18:02:57]ExternCall_PrintAddStr [18:02:57]wPrintStart [18:02:57]Write to MH i2c: 01 00 00 78 02 7A [18:02:57]Write i2c OK [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: 01 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: 01 07 00 [18:02:57]MH_I2C_Read... [18:02:57]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 FF 0F 8F [18:02:57]RasterBufferAndPrint [18:02:57]line Счет N : (1)449900 [18:02:57]line ИНН: 02508201610067 [18:02:57]line Контрольно-Кассовый Чек [18:02:57]line ПРОДАЖА [18:02:57]line ТРК (МРК, ГНК) : 52 [18:02:57]line Товар: 2710124130 [18:02:57]line Аи-92-К-2 [18:02:57]line 14.950 * 66.90 [18:02:57]line = 1000.16 [18:02:57]line НДС 12% НСП 1% [18:02:57]line > о реализуемом товаре [18:02:57]line ОКРУГЛЕНИЕ: -0.16 [18:02:57]line ИТОГО: 1000.00 [18:02:57]line Внесено: 1000.00 [18:02:57]line СДАЧА: 0.00 [18:02:57]line НСП 1% : 8.85 [18:02:57]line НДС 12% : 106.21 [18:02:57]line Наличными: 1000.00 [18:02:57]line Безнал.: 0.00 [18:02:57]line Место: АЗС № 171 "Партнер Нефть" [18:02:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:02:57]line СНО: Общий режим [18:02:57]line Чек 422 27.10.2024 18:02 [18:02:57]line Смена: 544 ФФД: 1.0 [18:02:57]line ЗНМ: 0300000109 [18:02:57]line РНМ: 0000000000091777 [18:02:57]line Версия ККМ: 001 [18:02:57]line ФМ: 0000000000871756 [18:02:57]line ФД: 202130 [18:02:57]line ФПД: 69492494833463 [18:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180256&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202130&fm=69492494833463&tin=02508201610067®Number=0000000000091777&sum=100000 [18:02:57]OFD Sender: Processing packet 202130 [packets to send 114, broken 113] [18:02:57]ProducePacketName [18:02:57]name=ofd_packets/00202130 [18:02:57]OFD Sender: To server: pG, [18:02:57]CommunicateWithHost lk.salyk.kg:30040 [18:02:57]ConnectInit lk.salyk.kg [18:02:57]written 0, free lines is 4095 [18:02:57]Connected sock=10 [18:02:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 23 7A 07 01 82 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A6 01 00 00 F4 03 04 00 50 80 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 15 03 00 35 04 06 00 3F 33 FB 78 17 37 F3 87 06 2A B2 B0 77 6D [18:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 69 AC 47 00 61 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 15 03 00 F4 03 04 00 09 2C 1E 67 B6 04 01 00 00 C1 25 B2 8E AE B5 C5 C5 [18:02:57]CommunicateWithHost err = 0 [18:02:57]CheckOFDResponse [18:02:57]1017 (14) - 77093643461234 [18:02:57]1041 (16) - 0000000000871756 [18:02:57]1040 (4) - 202130 [18:02:57]1012 (4) - 27.10.2024 12:03 [18:02:57]1206 (1) - 0 [18:02:57]OFD Sender: Remove packet 202130 [18:02:57]ProducePacketName [18:02:57]name=ofd_packets/00202130 [18:02:57]NVStorageDeleteData [18:02:58]Write to MH i2c: 01 00 00 A3 02 A5 [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: 01 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: 01 07 00 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 94 0C 4C [18:02:58]RasterBufferAndPrint [18:02:58]line [18:02:58]line [18:02:58]line [18:02:58]line [18:02:58]line [18:02:58]written 0, free lines is 3225 [18:02:58]MH_Cut [18:02:58]Write to MH i2c: D1 01 00 AA 02 01 7E [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: D1 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: D1 01 00 [18:02:58]MH_I2C_Read... [18:02:58]Read from MH i2c: D1 01 00 AA 02 00 7D [18:02:58]Write to MH i2c: 01 00 00 AB 02 AD [18:02:58]Write i2c OK [18:02:58]MH_I2C_Read... [18:02:58]OFD Sender: No OFD packet to send [18:02:59]*** Cut start [18:02:59]*** Purtial cut [18:02:59]*** Stage 1: CUTSNS_PIN = 1 [18:02:59]Read from MH i2c: 01 [18:02:59]MH_I2C_Read... [18:02:59]*** Stop cut motor [18:02:59]*** Cut end [18:02:59]Read from MH i2c: 01 07 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 FF 0F C2 [18:02:59]process_action close_receipt done [18:02:59]requested_data is exist [18:02:59]produce_requested_data [18:02:59]requested_item fm.sn is exist - process it [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 11 00 00 [18:02:59]Write to MH i2c: E2 08 00 AC 02 80 11 00 00 00 00 00 00 28 [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 17 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 17 00 AC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7D [18:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:02:59]wFMCommunicate OK [18:02:59]requested_item fd.num is exist - process it [18:02:59]SAM_PROTO_GetFieldsCounters [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 13 00 00 [18:02:59]Write to MH i2c: E2 08 00 AD 02 80 13 00 00 00 00 00 00 2B [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 62 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 62 00 AD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 92 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [18:02:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 92 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:59]wFMCommunicate OK [18:02:59]SAM_PROTO_GetFieldsCounters done [18:02:59]requested_item shift.num is exist - process it [18:02:59]requested_item shift.opened is exist - process it [18:02:59]req_shift_opened [18:02:59]FM_GetShiftState [18:02:59]SAM_PROTO_GetShiftState [18:02:59]wFMCommunicate request_size=4 [18:02:59]MH_SAM_APDU [18:02:59]CAPDU: 80 13 01 00 [18:02:59]Write to MH i2c: E2 08 00 AE 02 80 13 01 00 00 00 00 00 2D [18:02:59]Write i2c OK [18:02:59]MH_I2C_Read... [18:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:59]Read from MH i2c: E2 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 0E 00 [18:02:59]MH_I2C_Read... [18:02:59]Read from MH i2c: E2 0E 00 AE 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2F [18:02:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:02:59]wFMCommunicate OK [18:02:59]SAM_PROTO_GetShiftState done [18:02:59]FM_GetShiftState done [18:02:59]req_shift_opened done [18:02:59]requested_item shift.open_date is exist - process it [18:02:59]req_shift_open_date [18:02:59]req_shift_open_date done [18:02:59]produce_requested_data done [18:02:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202130,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:02:59]process_action_free close_receipt [18:02:59]json_value_free [18:02:59]json_value_free done [18:02:59]process_json_proto returns [18:02:59]Send response to host [18:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202130,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:02:59]free response buf [18:02:59]execute_script done [18:02:59]execute_script returns [18:02:59]free content buf [18:02:59]Sock 9.Close socket [18:02:59]Sock 9.Thread stoped [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:13]accept exits with 7 [18:08:13]New connection [18:08:13]New thread 3066658148 created [18:08:13]Thread 3066801508 joined [18:08:13]Waiting for new connection... [18:08:13] Sock 7.Parse request [18:08:13]Sock 7.Check first char [18:08:13]Sock 7.First char is OK [18:08:13]request: POST /json_proto HTTP/1.0 [18:08:13]Method: POST [18:08:13]URL: /json_proto [18:08:13]Method is POST - this is cgi request [18:08:13]url: /json_proto [18:08:13]query_string will be loaded in cgi processing [18:08:13]execute_cgi json_proto POST (null) [18:08:13]execute_cgi path=json_proto method=POST [18:08:13]POST find Content-Length [18:08:13]Host: 172.17.63.195:8080 [18:08:13]Content-Length: 762 [18:08:13]Content-Type: application/json [18:08:13] [18:08:13]POST finish read [18:08:13]Found Content-Length = 762 [18:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "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.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:13]execute_script... [18:08:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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 }]} ], "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.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:13]POST & json_proto [18:08:13]process_json_proto [18:08:13]json parsed OK: [18:08:13]protocol is kg_v1.0 [18:08:13]action value=close_receipt [18:08:13]process_action close_receipt [18:08:13]cmd_close_receipt [18:08:13]MH_GetDate [18:08:13]Write to MH i2c: F0 00 00 AF 02 A0 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: F0 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: F0 09 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: F0 09 00 AF 02 00 8E 81 1E 67 47 1B 1E 67 24 [18:08:13]GetLastDocTimeStamp 1730052176 [18:08:13]current date 1730052494 [18:08:13]FM_GetShiftState [18:08:13]SAM_PROTO_GetShiftState [18:08:13]wFMCommunicate request_size=4 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 13 01 00 [18:08:13]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 0E 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [18:08:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:08:13]wFMCommunicate OK [18:08:13]SAM_PROTO_GetShiftState done [18:08:13]FM_GetShiftState done [18:08:13]opened in 1729987312 [18:08:13]opened+sec_in_day 1730073712 [18:08:13]quantity*price = 100000 [18:08:13]sum+1 = 100002 [18:08:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 423 27.10.2024 18:08 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202131 ФПД: 215840251760830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180814&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202131&fm=215840251760830&tin=02508201610067®Number=0000000000091777&sum=100001 [18:08:15]StoreToDocumentArchive [18:08:15]shift 544 fd 202131 [18:08:15]save to /storage/0544/doc_00202131 [18:08:15]save last doc name /storage/0544/doc_00202131 to /storage/kkm_last_doc_name [18:08:15]save OK [18:08:15]Clear old archive folders... [18:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:08:15]tlvbuf is 006E4D40 [18:08:15]SAM_PROTO_ClearQueue [18:08:15]wFMCommunicate request_size=4 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 09 00 00 [18:08:15]Write to MH i2c: E2 08 00 BD 02 80 09 00 00 00 00 00 00 31 [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 03 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [18:08:15]RAPDU: 90 00 [18:08:15]wFMCommunicate OK [18:08:15]SAM_PROTO_ClearQueue done [18:08:15]KKMCreateOFDPacket [18:08:15]OFDProtocolAddRootSTLVToBuf [18:08:15]FM_MakeSignedData [18:08:15]FM_MakeSignedData [18:08:15]SAM_PROTO_SignData [18:08:15]wFMCommunicate request_size=4 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 0D 01 02 [18:08:15]Write to MH i2c: E2 08 00 BE 02 80 0D 01 02 00 00 00 00 39 [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 03 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [18:08:15]RAPDU: 90 00 [18:08:15]wFMCommunicate OK [18:08:15]wFMCommunicate request_size=255 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 8E 81 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 15 03 00 35 04 06 00 [18:08:15]Write to MH i2c: E2 02 01 BF 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 8E 81 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 15 03 00 35 04 06 00 00 00 AD [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 03 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [18:08:15]RAPDU: 90 00 [18:08:15]wFMCommunicate OK [18:08:15]wFMCommunicate request_size=11 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 0D 02 02 06 C4 4E 39 88 D0 BE [18:08:15]Write to MH i2c: E2 0E 00 C0 02 80 0D 02 02 06 00 C4 4E 39 88 D0 BE 00 00 A9 [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 03 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [18:08:15]RAPDU: 90 00 [18:08:15]wFMCommunicate OK [18:08:15]wFMCommunicate request_size=4 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 0D 03 02 [18:08:15]Write to MH i2c: E2 08 00 C1 02 80 0D 03 02 00 00 00 00 3E [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 0B 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 0B 00 C1 02 00 8E 7F 06 E4 DA 7A 1D 5A 90 00 01 [18:08:15]RAPDU: 8E 7F 06 E4 DA 7A 1D 5A 90 00 [18:08:15]wFMCommunicate OK [18:08:15]SAM_PROTO_SignData done [18:08:15]FM_MakeSignedData done [18:08:15]CreateOFDProtocolMessage [18:08:15]wFMCommunicate request_size=4 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 11 00 00 [18:08:15]Write to MH i2c: E2 08 00 C2 02 80 11 00 00 00 00 00 00 3E [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 17 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 17 00 C2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [18:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:08:15]wFMCommunicate OK [18:08:15]CreateOFDProtocolMessage done [18:08:15]OFDSenderStorePacket 202131 [18:08:15]StoreOFDPacket docnum=202131 [18:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 A0 67 08 01 EB BB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 8E 81 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 15 03 00 35 04 06 00 C4 4E 39 88 D0 BE 8E 7F 06 E4 DA 7A 1D 5A [18:08:15]CheckFolder [18:08:15]dirname=/storage/ofd_packets [18:08:15]CheckFolder done [18:08:15]ProducePacketName [18:08:15]name=ofd_packets/00202131 [18:08:15]NVStorageSaveData ofd_packets/00202131 [18:08:15]File name is /storage/ofd_packets/00202131 [18:08:15]Write 302 bytes [18:08:15]NVStorageSaveData done [18:08:15]OFDSenderStorePacket done [18:08:15]KKMCreateOFDPacket done [18:08:15]NVStorageSaveData kkm_last_timestamp [18:08:15]File name is /storage/kkm_last_timestamp [18:08:15]Write 4 bytes [18:08:15]NVStorageSaveData done [18:08:15]ExternCall_PrintAddStr [18:08:15]wPrintStart [18:08:15]Write to MH i2c: 01 00 00 C3 02 C5 [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: 01 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: 01 07 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 FF 0F DA [18:08:15]RasterBufferAndPrint [18:08:15]line Счет N : (1)449901 [18:08:15]line ИНН: 02508201610067 [18:08:15]line Контрольно-Кассовый Чек [18:08:15]line ПРОДАЖА [18:08:15]line ТРК (МРК, ГНК) : 42 [18:08:15]line Товар: 2710124130 [18:08:15]line SUPER 92-К-5 [18:08:15]line 14.620 * 68.40 [18:08:15]line = 1000.01 [18:08:15]line НДС 12% НСП 1% [18:08:15]line > о реализуемом товаре [18:08:15]line ИТОГО: 1000.01 [18:08:15]line НСП 1% : 8.85 [18:08:15]line НДС 12% : 106.20 [18:08:15]line Наличными: 0.00 [18:08:15]line Безнал.: 1000.01 [18:08:15]line Место: АЗС № 171 "Партнер Нефть" [18:08:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:08:15]line СНО: Общий режим [18:08:15]line Чек 423 27.10.2024 18:08 [18:08:15]line Смена: 544 ФФД: 1.0 [18:08:15]line ЗНМ: 0300000109 [18:08:15]line РНМ: 0000000000091777 [18:08:15]line Версия ККМ: 001 [18:08:15]line Платежная система: Mbank [18:08:15]line ФМ: 0000000000871756 [18:08:15]line ФД: 202131 [18:08:15]line ФПД: 215840251760830 [18:08:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180814&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202131&fm=215840251760830&tin=02508201610067®Number=0000000000091777&sum=100001 [18:08:15]OFD Sender: Processing packet 202131 [packets to send 114, broken 113] [18:08:15]ProducePacketName [18:08:15]name=ofd_packets/00202131 [18:08:15]OFD Sender: To server: pG, [18:08:15]CommunicateWithHost lk.salyk.kg:30040 [18:08:15]ConnectInit lk.salyk.kg [18:08:15]written 0, free lines is 4095 [18:08:16]Connected sock=10 [18:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 A0 67 08 01 EB BB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 8E 81 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 15 03 00 35 04 06 00 C4 4E 39 88 D0 BE 8E 7F 06 E4 DA 7A 1D 5A [18:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FF 53 47 00 C4 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 15 03 00 F4 03 04 00 47 2D 1E 67 B6 04 01 00 00 53 89 F8 B0 5C 5D FD 68 [18:08:16]CommunicateWithHost err = 0 [18:08:16]CheckOFDResponse [18:08:16]1017 (14) - 77093643461234 [18:08:16]1041 (16) - 0000000000871756 [18:08:16]1040 (4) - 202131 [18:08:16]1012 (4) - 27.10.2024 12:08 [18:08:16]1206 (1) - 0 [18:08:16]OFD Sender: Remove packet 202131 [18:08:16]ProducePacketName [18:08:16]name=ofd_packets/00202131 [18:08:16]NVStorageDeleteData [18:08:16]Write to MH i2c: 01 00 00 EC 02 EE [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: 01 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: 01 07 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: 01 07 00 EC 02 00 00 00 00 00 C5 0C C6 [18:08:16]RasterBufferAndPrint [18:08:16]line [18:08:16]line [18:08:16]line [18:08:16]line [18:08:16]line [18:08:16]written 0, free lines is 3273 [18:08:16]MH_Cut [18:08:16]Write to MH i2c: D1 01 00 F3 02 01 C7 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: D1 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: D1 01 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: D1 01 00 F3 02 00 C6 [18:08:16]Write to MH i2c: 01 00 00 F4 02 F6 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]OFD Sender: No OFD packet to send [18:08:17]*** Cut start [18:08:17]*** Purtial cut [18:08:17]*** Stage 1: CUTSNS_PIN = 1 [18:08:17]Read from MH i2c: 01 [18:08:17]MH_I2C_Read... [18:08:17]*** Stop cut motor [18:08:17]*** Cut end [18:08:17]Read from MH i2c: 01 07 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 FF 0F 0B [18:08:17]process_action close_receipt done [18:08:17]requested_data is exist [18:08:17]produce_requested_data [18:08:17]requested_item fm.sn is exist - process it [18:08:17]wFMCommunicate request_size=4 [18:08:17]MH_SAM_APDU [18:08:17]CAPDU: 80 11 00 00 [18:08:17]Write to MH i2c: E2 08 00 F5 02 80 11 00 00 00 00 00 00 71 [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:17]Read from MH i2c: E2 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 17 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 17 00 F5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C6 [18:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:08:17]wFMCommunicate OK [18:08:17]requested_item fd.num is exist - process it [18:08:17]SAM_PROTO_GetFieldsCounters [18:08:17]wFMCommunicate request_size=4 [18:08:17]MH_SAM_APDU [18:08:17]CAPDU: 80 13 00 00 [18:08:17]Write to MH i2c: E2 08 00 F6 02 80 13 00 00 00 00 00 00 74 [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:17]Read from MH i2c: E2 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 62 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 62 00 F6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 93 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [18:08:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 93 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:17]wFMCommunicate OK [18:08:17]SAM_PROTO_GetFieldsCounters done [18:08:17]requested_item shift.num is exist - process it [18:08:17]requested_item shift.opened is exist - process it [18:08:17]req_shift_opened [18:08:17]FM_GetShiftState [18:08:17]SAM_PROTO_GetShiftState [18:08:17]wFMCommunicate request_size=4 [18:08:17]MH_SAM_APDU [18:08:17]CAPDU: 80 13 01 00 [18:08:17]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:17]Read from MH i2c: E2 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 0E 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 0E 00 F7 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 78 [18:08:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:08:17]wFMCommunicate OK [18:08:17]SAM_PROTO_GetShiftState done [18:08:17]FM_GetShiftState done [18:08:17]req_shift_opened done [18:08:17]requested_item shift.open_date is exist - process it [18:08:17]req_shift_open_date [18:08:17]req_shift_open_date done [18:08:17]produce_requested_data done [18:08:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202131,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:08:17]process_action_free close_receipt [18:08:17]json_value_free [18:08:17]json_value_free done [18:08:17]process_json_proto returns [18:08:17]Send response to host [18:08:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202131,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:08:17]free response buf [18:08:17]execute_script done [18:08:17]execute_script returns [18:08:17]free content buf [18:08:17]Sock 7.Close socket [18:08:17]Sock 7.Thread stoped [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:09:59]accept exits with 9 [18:09:59]New connection [18:09:59]New thread 3066801508 created [18:09:59]Thread 3066658148 joined [18:09:59]Waiting for new connection... [18:09:59] Sock 9.Parse request [18:09:59]Sock 9.Check first char [18:09:59]Sock 9.First char is OK [18:09:59]request: POST /json_proto HTTP/1.0 [18:09:59]Method: POST [18:09:59]URL: /json_proto [18:09:59]Method is POST - this is cgi request [18:09:59]url: /json_proto [18:09:59]query_string will be loaded in cgi processing [18:09:59]execute_cgi json_proto POST (null) [18:09:59]execute_cgi path=json_proto method=POST [18:09:59]POST find Content-Length [18:09:59]Host: 172.17.63.195:8080 [18:09:59]Content-Length: 677 [18:09:59]Content-Type: application/json [18:09:59] [18:09:59]POST finish read [18:09:59]Found Content-Length = 677 [18:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.530, "sum" : 570.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:59]execute_script... [18:09:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.530, "sum" : 570.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:59]POST & json_proto [18:09:59]process_json_proto [18:09:59]json parsed OK: [18:09:59]protocol is kg_v1.0 [18:09:59]action value=close_receipt [18:09:59]process_action close_receipt [18:09:59]cmd_close_receipt [18:09:59]MH_GetDate [18:09:59]Write to MH i2c: F0 00 00 F8 02 E9 [18:09:59]Write i2c OK [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 09 00 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: F0 09 00 F8 02 00 F8 81 1E 67 47 1B 1E 67 D7 [18:09:59]GetLastDocTimeStamp 1730052494 [18:09:59]current date 1730052600 [18:09:59]FM_GetShiftState [18:09:59]SAM_PROTO_GetShiftState [18:09:59]wFMCommunicate request_size=4 [18:09:59]MH_SAM_APDU [18:09:59]CAPDU: 80 13 01 00 [18:09:59]Write to MH i2c: E2 08 00 F9 02 80 13 01 00 00 00 00 00 78 [18:09:59]Write i2c OK [18:09:59]MH_I2C_Read... [18:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:59]Read from MH i2c: E2 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: E2 0E 00 [18:09:59]MH_I2C_Read... [18:09:59]Read from MH i2c: E2 0E 00 F9 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7A [18:09:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:09:59]wFMCommunicate OK [18:09:59]SAM_PROTO_GetShiftState done [18:09:59]FM_GetShiftState done [18:09:59]opened in 1729987312 [18:09:59]opened+sec_in_day 1730073712 [18:09:59]quantity*price = 57065 [18:09:59]sum+1 = 57067 [18:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.60 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 424 27.10.2024 18:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202132 ФПД: 245592299553649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181000&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202132&fm=245592299553649&tin=02508201610067®Number=0000000000091777&sum=57000 [18:10:00]StoreToDocumentArchive [18:10:00]shift 544 fd 202132 [18:10:00]save to /storage/0544/doc_00202132 [18:10:00]save last doc name /storage/0544/doc_00202132 to /storage/kkm_last_doc_name [18:10:00]save OK [18:10:00]Clear old archive folders... [18:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:00]tlvbuf is 006E6000 [18:10:00]SAM_PROTO_ClearQueue [18:10:00]wFMCommunicate request_size=4 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 09 00 00 [18:10:00]Write to MH i2c: E2 08 00 06 03 80 09 00 00 00 00 00 00 7B [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:00]Read from MH i2c: E2 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [18:10:00]RAPDU: 90 00 [18:10:00]wFMCommunicate OK [18:10:00]SAM_PROTO_ClearQueue done [18:10:00]KKMCreateOFDPacket [18:10:00]OFDProtocolAddRootSTLVToBuf [18:10:00]FM_MakeSignedData [18:10:00]FM_MakeSignedData [18:10:00]SAM_PROTO_SignData [18:10:00]wFMCommunicate request_size=4 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 0D 01 02 [18:10:00]Write to MH i2c: E2 08 00 07 03 80 0D 01 02 00 00 00 00 83 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:00]Read from MH i2c: E2 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [18:10:00]RAPDU: 90 00 [18:10:00]wFMCommunicate OK [18:10:00]wFMCommunicate request_size=255 [18:10:00]MH_SAM_APDU [18:10: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 32 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 F8 81 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 15 03 00 35 04 06 00 DF [18:10:00]Write to MH i2c: E2 02 01 08 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 F8 81 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 15 03 00 35 04 06 00 DF 00 00 26 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:00]Read from MH i2c: E2 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [18:10:00]RAPDU: 90 00 [18:10:00]wFMCommunicate OK [18:10:00]wFMCommunicate request_size=10 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 0D 02 02 05 5D 69 C6 43 71 [18:10:00]Write to MH i2c: E2 0D 00 09 03 80 0D 02 02 05 00 5D 69 C6 43 71 00 00 D0 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:00]Read from MH i2c: E2 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [18:10:00]RAPDU: 90 00 [18:10:00]wFMCommunicate OK [18:10:00]wFMCommunicate request_size=4 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 0D 03 02 [18:10:00]Write to MH i2c: E2 08 00 0A 03 80 0D 03 02 00 00 00 00 88 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:00]Read from MH i2c: E2 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 0B 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 0B 00 0A 03 00 79 06 2C F9 7B 99 AD 74 90 00 62 [18:10:00]RAPDU: 79 06 2C F9 7B 99 AD 74 90 00 [18:10:00]wFMCommunicate OK [18:10:00]SAM_PROTO_SignData done [18:10:00]FM_MakeSignedData done [18:10:00]CreateOFDProtocolMessage [18:10:00]wFMCommunicate request_size=4 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 11 00 00 [18:10:00]Write to MH i2c: E2 08 00 0B 03 80 11 00 00 00 00 00 00 88 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 17 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 17 00 0B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [18:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:10:01]wFMCommunicate OK [18:10:01]CreateOFDProtocolMessage done [18:10:01]OFDSenderStorePacket 202132 [18:10:01]StoreOFDPacket docnum=202132 [18:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 40 49 07 01 BB 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 F8 81 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 15 03 00 35 04 06 00 DF 5D 69 C6 43 71 79 06 2C F9 7B 99 AD 74 [18:10:01]CheckFolder [18:10:01]dirname=/storage/ofd_packets [18:10:01]CheckFolder done [18:10:01]ProducePacketName [18:10:01]name=ofd_packets/00202132 [18:10:01]NVStorageSaveData ofd_packets/00202132 [18:10:01]File name is /storage/ofd_packets/00202132 [18:10:01]Write 301 bytes [18:10:01]NVStorageSaveData done [18:10:01]OFDSenderStorePacket done [18:10:01]KKMCreateOFDPacket done [18:10:01]NVStorageSaveData kkm_last_timestamp [18:10:01]File name is /storage/kkm_last_timestamp [18:10:01]Write 4 bytes [18:10:01]NVStorageSaveData done [18:10:01]ExternCall_PrintAddStr [18:10:01]wPrintStart [18:10:01]Write to MH i2c: 01 00 00 0C 03 0F [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 FF 0F 24 [18:10:01]RasterBufferAndPrint [18:10:01]line Счет N : (1)449902 [18:10:01]line ИНН: 02508201610067 [18:10:01]line Контрольно-Кассовый Чек [18:10:01]line ПРОДАЖА [18:10:01]line ТРК (МРК, ГНК) : 52 [18:10:01]line Товар: 2710124130 [18:10:01]line Аи-92-К-2 [18:10:01]line 8.530 * 66.90 [18:10:01]line = 570.66 [18:10:01]line НДС 12% НСП 1% [18:10:01]line > о реализуемом товаре [18:10:01]line ОКРУГЛЕНИЕ: -0.66 [18:10:01]line ИТОГО: 570.00 [18:10:01]line Внесено: 570.00 [18:10:01]line СДАЧА: 0.00 [18:10:01]line НСП 1% : 5.05 [18:10:01]line НДС 12% : 60.60 [18:10:01]line Наличными: 570.00 [18:10:01]line Безнал.: 0.00 [18:10:01]line Место: АЗС № 171 "Партнер Нефть" [18:10:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:10:01]line СНО: Общий режим [18:10:01]line Чек 424 27.10.2024 18:10 [18:10:01]line Смена: 544 ФФД: 1.0 [18:10:01]line ЗНМ: 0300000109 [18:10:01]line РНМ: 0000000000091777 [18:10:01]line Версия ККМ: 001 [18:10:01]line ФМ: 0000000000871756 [18:10:01]line ФД: 202132 [18:10:01]line ФПД: 245592299553649 [18:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181000&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202132&fm=245592299553649&tin=02508201610067®Number=0000000000091777&sum=57000 [18:10:01]OFD Sender: Processing packet 202132 [packets to send 114, broken 113] [18:10:01]ProducePacketName [18:10:01]name=ofd_packets/00202132 [18:10:01]OFD Sender: To server: pG, [18:10:01]CommunicateWithHost lk.salyk.kg:30040 [18:10:01]ConnectInit lk.salyk.kg [18:10:01]written 0, free lines is 4095 [18:10:01]Connected sock=10 [18:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 40 49 07 01 BB 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 17 00 00 00 00 07 04 06 00 A8 DE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 F8 81 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 15 03 00 35 04 06 00 DF 5D 69 C6 43 71 79 06 2C F9 7B 99 AD 74 [18:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DE AC 47 00 58 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 15 03 00 F4 03 04 00 B1 2D 1E 67 B6 04 01 00 00 44 34 88 E5 86 74 CB D6 [18:10:01]CommunicateWithHost err = 0 [18:10:01]CheckOFDResponse [18:10:01]1017 (14) - 77093643461234 [18:10:01]1041 (16) - 0000000000871756 [18:10:01]1040 (4) - 202132 [18:10:01]1012 (4) - 27.10.2024 12:10 [18:10:01]1206 (1) - 0 [18:10:01]OFD Sender: Remove packet 202132 [18:10:01]ProducePacketName [18:10:01]name=ofd_packets/00202132 [18:10:01]NVStorageDeleteData [18:10:01]Write to MH i2c: 01 00 00 37 03 3A [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 8F 0C DC [18:10:01]RasterBufferAndPrint [18:10:01]line [18:10:01]line [18:10:01]line [18:10:01]line [18:10:01]line [18:10:01]written 0, free lines is 3219 [18:10:01]MH_Cut [18:10:01]Write to MH i2c: D1 01 00 3E 03 01 13 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: D1 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: D1 01 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: D1 01 00 3E 03 00 12 [18:10:01]Write to MH i2c: 01 00 00 3F 03 42 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:02]OFD Sender: No OFD packet to send [18:10:02]*** Cut start [18:10:02]*** Purtial cut [18:10:02]*** Stage 1: CUTSNS_PIN = 1 [18:10:02]Read from MH i2c: 01 [18:10:02]MH_I2C_Read... [18:10:02]*** Stop cut motor [18:10:02]*** Cut end [18:10:02]Read from MH i2c: 01 07 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 FF 0F 57 [18:10:02]process_action close_receipt done [18:10:02]requested_data is exist [18:10:02]produce_requested_data [18:10:02]requested_item fm.sn is exist - process it [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 11 00 00 [18:10:02]Write to MH i2c: E2 08 00 40 03 80 11 00 00 00 00 00 00 BD [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 17 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 17 00 40 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 12 [18:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:10:03]wFMCommunicate OK [18:10:03]requested_item fd.num is exist - process it [18:10:03]SAM_PROTO_GetFieldsCounters [18:10:03]wFMCommunicate request_size=4 [18:10:03]MH_SAM_APDU [18:10:03]CAPDU: 80 13 00 00 [18:10:03]Write to MH i2c: E2 08 00 41 03 80 13 00 00 00 00 00 00 C0 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 62 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 62 00 41 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 94 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [18:10:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 94 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:03]wFMCommunicate OK [18:10:03]SAM_PROTO_GetFieldsCounters done [18:10:03]requested_item shift.num is exist - process it [18:10:03]requested_item shift.opened is exist - process it [18:10:03]req_shift_opened [18:10:03]FM_GetShiftState [18:10:03]SAM_PROTO_GetShiftState [18:10:03]wFMCommunicate request_size=4 [18:10:03]MH_SAM_APDU [18:10:03]CAPDU: 80 13 01 00 [18:10:03]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 0E 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C4 [18:10:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:10:03]wFMCommunicate OK [18:10:03]SAM_PROTO_GetShiftState done [18:10:03]FM_GetShiftState done [18:10:03]req_shift_opened done [18:10:03]requested_item shift.open_date is exist - process it [18:10:03]req_shift_open_date [18:10:03]req_shift_open_date done [18:10:03]produce_requested_data done [18:10:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202132,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:10:03]process_action_free close_receipt [18:10:03]json_value_free [18:10:03]json_value_free done [18:10:03]process_json_proto returns [18:10:03]Send response to host [18:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202132,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:10:03]free response buf [18:10:03]execute_script done [18:10:03]execute_script returns [18:10:03]free content buf [18:10:03]Sock 9.Close socket [18:10:03]Sock 9.Thread stoped [18:10:07]OFD Sender: No OFD packet to send [18:10:08]accept exits with 7 [18:10:08]New connection [18:10:08]New thread 3066658148 created [18:10:08]Thread 3066801508 joined [18:10:08]Waiting for new connection... [18:10:08] Sock 7.Parse request [18:10:08]Sock 7.Check first char [18:10:08]Sock 7.First char is OK [18:10:08]request: POST /json_proto HTTP/1.0 [18:10:08]Method: POST [18:10:08]URL: /json_proto [18:10:08]Method is POST - this is cgi request [18:10:08]url: /json_proto [18:10:08]query_string will be loaded in cgi processing [18:10:08]execute_cgi json_proto POST (null) [18:10:08]execute_cgi path=json_proto method=POST [18:10:08]POST find Content-Length [18:10:08]Host: 172.17.63.195:8080 [18:10:08]Content-Length: 677 [18:10:08]Content-Type: application/json [18:10:08] [18:10:08]POST finish read [18:10:08]Found Content-Length = 677 [18:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:08]execute_script... [18:10:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:08]POST & json_proto [18:10:08]process_json_proto [18:10:08]json parsed OK: [18:10:08]protocol is kg_v1.0 [18:10:08]action value=close_receipt [18:10:08]process_action close_receipt [18:10:08]cmd_close_receipt [18:10:08]MH_GetDate [18:10:08]Write to MH i2c: F0 00 00 43 03 35 [18:10:08]Write i2c OK [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: F0 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: F0 09 00 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: F0 09 00 43 03 00 01 82 1E 67 47 1B 1E 67 2D [18:10:08]GetLastDocTimeStamp 1730052600 [18:10:08]current date 1730052609 [18:10:08]FM_GetShiftState [18:10:08]SAM_PROTO_GetShiftState [18:10:08]wFMCommunicate request_size=4 [18:10:08]MH_SAM_APDU [18:10:08]CAPDU: 80 13 01 00 [18:10:08]Write to MH i2c: E2 08 00 44 03 80 13 01 00 00 00 00 00 C4 [18:10:08]Write i2c OK [18:10:08]MH_I2C_Read... [18:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:08]Read from MH i2c: E2 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: E2 0E 00 [18:10:08]MH_I2C_Read... [18:10:08]Read from MH i2c: E2 0E 00 44 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C6 [18:10:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:10:08]wFMCommunicate OK [18:10:08]SAM_PROTO_GetShiftState done [18:10:08]FM_GetShiftState done [18:10:08]opened in 1729987312 [18:10:08]opened+sec_in_day 1730073712 [18:10:08]quantity*price = 37062 [18:10:08]sum+1 = 37064 [18:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 425 27.10.2024 18:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202133 ФПД: 241921658933600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181009&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202133&fm=241921658933600&tin=02508201610067®Number=0000000000091777&sum=37000 [18:10:09]StoreToDocumentArchive [18:10:09]shift 544 fd 202133 [18:10:09]save to /storage/0544/doc_00202133 [18:10:09]save last doc name /storage/0544/doc_00202133 to /storage/kkm_last_doc_name [18:10:09]save OK [18:10:09]Clear old archive folders... [18:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:09]tlvbuf is 006B7050 [18:10:09]SAM_PROTO_ClearQueue [18:10:09]wFMCommunicate request_size=4 [18:10:09]MH_SAM_APDU [18:10:09]CAPDU: 80 09 00 00 [18:10:09]Write to MH i2c: E2 08 00 51 03 80 09 00 00 00 00 00 00 C6 [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:09]Read from MH i2c: E2 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 03 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [18:10:09]RAPDU: 90 00 [18:10:09]wFMCommunicate OK [18:10:09]SAM_PROTO_ClearQueue done [18:10:09]KKMCreateOFDPacket [18:10:09]OFDProtocolAddRootSTLVToBuf [18:10:09]FM_MakeSignedData [18:10:09]FM_MakeSignedData [18:10:09]SAM_PROTO_SignData [18:10:09]wFMCommunicate request_size=4 [18:10:09]MH_SAM_APDU [18:10:09]CAPDU: 80 0D 01 02 [18:10:09]Write to MH i2c: E2 08 00 52 03 80 0D 01 02 00 00 00 00 CE [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:09]Read from MH i2c: E2 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 03 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [18:10:09]RAPDU: 90 00 [18:10:09]wFMCommunicate OK [18:10:09]wFMCommunicate request_size=255 [18:10:09]MH_SAM_APDU [18:10:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 01 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 15 03 00 35 04 06 00 DC [18:10:09]Write to MH i2c: E2 02 01 53 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 01 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 15 03 00 35 04 06 00 DC 00 00 6E [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [18:10:10]RAPDU: 90 00 [18:10:10]wFMCommunicate OK [18:10:10]wFMCommunicate request_size=10 [18:10:10]MH_SAM_APDU [18:10:10]CAPDU: 80 0D 02 02 05 06 C6 8B 51 60 [18:10:10]Write to MH i2c: E2 0D 00 54 03 80 0D 02 02 05 00 06 C6 8B 51 60 00 00 E3 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [18:10:10]RAPDU: 90 00 [18:10:10]wFMCommunicate OK [18:10:10]wFMCommunicate request_size=4 [18:10:10]MH_SAM_APDU [18:10:10]CAPDU: 80 0D 03 02 [18:10:10]Write to MH i2c: E2 08 00 55 03 80 0D 03 02 00 00 00 00 D3 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 0B 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 0B 00 55 03 00 52 62 F3 82 27 E0 8C 52 90 00 E2 [18:10:10]RAPDU: 52 62 F3 82 27 E0 8C 52 90 00 [18:10:10]wFMCommunicate OK [18:10:10]SAM_PROTO_SignData done [18:10:10]FM_MakeSignedData done [18:10:10]CreateOFDProtocolMessage [18:10:10]wFMCommunicate request_size=4 [18:10:10]MH_SAM_APDU [18:10:10]CAPDU: 80 11 00 00 [18:10:10]Write to MH i2c: E2 08 00 56 03 80 11 00 00 00 00 00 00 D3 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 17 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 17 00 56 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 28 [18:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:10:10]wFMCommunicate OK [18:10:10]CreateOFDProtocolMessage done [18:10:10]OFDSenderStorePacket 202133 [18:10:10]StoreOFDPacket docnum=202133 [18:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5D 3D 07 01 7E 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 01 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 15 03 00 35 04 06 00 DC 06 C6 8B 51 60 52 62 F3 82 27 E0 8C 52 [18:10:10]CheckFolder [18:10:10]dirname=/storage/ofd_packets [18:10:10]CheckFolder done [18:10:10]ProducePacketName [18:10:10]name=ofd_packets/00202133 [18:10:10]NVStorageSaveData ofd_packets/00202133 [18:10:10]File name is /storage/ofd_packets/00202133 [18:10:10]Write 301 bytes [18:10:10]NVStorageSaveData done [18:10:10]OFDSenderStorePacket done [18:10:10]KKMCreateOFDPacket done [18:10:10]NVStorageSaveData kkm_last_timestamp [18:10:10]File name is /storage/kkm_last_timestamp [18:10:10]Write 4 bytes [18:10:10]NVStorageSaveData done [18:10:10]ExternCall_PrintAddStr [18:10:10]wPrintStart [18:10:10]Write to MH i2c: 01 00 00 57 03 5A [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: 01 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: 01 07 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [18:10:10]RasterBufferAndPrint [18:10:10]line Счет N : (1)449903 [18:10:10]line ИНН: 02508201610067 [18:10:10]line Контрольно-Кассовый Чек [18:10:10]line ПРОДАЖА [18:10:10]line ТРК (МРК, ГНК) : 41 [18:10:10]line Товар: 2710124130 [18:10:10]line Аи-92-К-2 [18:10:10]line 5.540 * 66.90 [18:10:10]line = 370.63 [18:10:10]line НДС 12% НСП 1% [18:10:10]line > о реализуемом товаре [18:10:10]line ОКРУГЛЕНИЕ: -0.63 [18:10:10]line ИТОГО: 370.00 [18:10:10]line Внесено: 370.00 [18:10:10]line СДАЧА: 0.00 [18:10:10]line НСП 1% : 3.28 [18:10:10]line НДС 12% : 39.36 [18:10:10]line Наличными: 370.00 [18:10:10]line Безнал.: 0.00 [18:10:10]line Место: АЗС № 171 "Партнер Нефть" [18:10:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:10:10]line СНО: Общий режим [18:10:10]line Чек 425 27.10.2024 18:10 [18:10:10]line Смена: 544 ФФД: 1.0 [18:10:10]line ЗНМ: 0300000109 [18:10:10]line РНМ: 0000000000091777 [18:10:10]line Версия ККМ: 001 [18:10:10]line ФМ: 0000000000871756 [18:10:10]line ФД: 202133 [18:10:10]line ФПД: 241921658933600 [18:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181009&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202133&fm=241921658933600&tin=02508201610067®Number=0000000000091777&sum=37000 [18:10:10]written 0, free lines is 4095 [18:10:10]OFD Sender: Processing packet 202133 [packets to send 114, broken 113] [18:10:10]ProducePacketName [18:10:10]name=ofd_packets/00202133 [18:10:10]OFD Sender: To server: pG, [18:10:10]CommunicateWithHost lk.salyk.kg:30040 [18:10:10]ConnectInit lk.salyk.kg [18:10:10]Connected sock=10 [18:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5D 3D 07 01 7E 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 01 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 15 03 00 35 04 06 00 DC 06 C6 8B 51 60 52 62 F3 82 27 E0 8C 52 [18:10:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A8 7C 47 00 AB B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 15 03 00 F4 03 04 00 BA 2D 1E 67 B6 04 01 00 00 BB D3 ED 12 2B 47 B2 D0 [18:10:10]CommunicateWithHost err = 0 [18:10:10]CheckOFDResponse [18:10:10]1017 (14) - 77093643461234 [18:10:10]1041 (16) - 0000000000871756 [18:10:10]1040 (4) - 202133 [18:10:10]1012 (4) - 27.10.2024 12:10 [18:10:10]1206 (1) - 0 [18:10:10]OFD Sender: Remove packet 202133 [18:10:10]ProducePacketName [18:10:10]name=ofd_packets/00202133 [18:10:10]NVStorageDeleteData [18:10:10]Write to MH i2c: 01 00 00 82 03 85 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: 01 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: 01 07 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 AA 0C 42 [18:10:10]RasterBufferAndPrint [18:10:10]line [18:10:10]line [18:10:10]line [18:10:10]line [18:10:10]line [18:10:10]written 0, free lines is 3250 [18:10:10]MH_Cut [18:10:10]Write to MH i2c: D1 01 00 89 03 01 5E [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: D1 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: D1 01 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: D1 01 00 89 03 00 5D [18:10:10]Write to MH i2c: 01 00 00 8A 03 8D [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:11]OFD Sender: No OFD packet to send [18:10:11]*** Cut start [18:10:11]*** Purtial cut [18:10:11]*** Stage 1: CUTSNS_PIN = 1 [18:10:11]Read from MH i2c: 01 [18:10:11]MH_I2C_Read... [18:10:11]*** Stop cut motor [18:10:11]*** Cut end [18:10:11]Read from MH i2c: 01 07 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 07 00 8A 03 00 00 00 00 00 FF 0F A2 [18:10:11]process_action close_receipt done [18:10:11]requested_data is exist [18:10:11]produce_requested_data [18:10:11]requested_item fm.sn is exist - process it [18:10:11]wFMCommunicate request_size=4 [18:10:11]MH_SAM_APDU [18:10:11]CAPDU: 80 11 00 00 [18:10:11]Write to MH i2c: E2 08 00 8B 03 80 11 00 00 00 00 00 00 08 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:11]Read from MH i2c: E2 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 17 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 17 00 8B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5D [18:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:10:11]wFMCommunicate OK [18:10:11]requested_item fd.num is exist - process it [18:10:11]SAM_PROTO_GetFieldsCounters [18:10:11]wFMCommunicate request_size=4 [18:10:11]MH_SAM_APDU [18:10:11]CAPDU: 80 13 00 00 [18:10:11]Write to MH i2c: E2 08 00 8C 03 80 13 00 00 00 00 00 00 0B [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:12]Read from MH i2c: E2 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 62 00 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 62 00 8C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 95 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [18:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 95 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:12]wFMCommunicate OK [18:10:12]SAM_PROTO_GetFieldsCounters done [18:10:12]requested_item shift.num is exist - process it [18:10:12]requested_item shift.opened is exist - process it [18:10:12]req_shift_opened [18:10:12]FM_GetShiftState [18:10:12]SAM_PROTO_GetShiftState [18:10:12]wFMCommunicate request_size=4 [18:10:12]MH_SAM_APDU [18:10:12]CAPDU: 80 13 01 00 [18:10:12]Write to MH i2c: E2 08 00 8D 03 80 13 01 00 00 00 00 00 0D [18:10:12]Write i2c OK [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:12]E2 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 0E 00 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 0E 00 8D 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 0F [18:10:12]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:10:12]wFMCommunicate OK [18:10:12]SAM_PROTO_GetShiftState done [18:10:12]FM_GetShiftState done [18:10:12]req_shift_opened done [18:10:12]requested_item shift.open_date is exist - process it [18:10:12]req_shift_open_date [18:10:12]req_shift_open_date done [18:10:12]produce_requested_data done [18:10:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202133,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:10:12]process_action_free close_receipt [18:10:12]json_value_free [18:10:12]json_value_free done [18:10:12]process_json_proto returns [18:10:12]Send response to host [18:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202133,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:10:12]free response buf [18:10:12]execute_script done [18:10:12]execute_script returns [18:10:12]free content buf [18:10:12]Sock 7.Close socket [18:10:12]Sock 7.Thread stoped [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:01]accept exits with 9 [18:12:01]New connection [18:12:01]New thread 3066801508 created [18:12:01]Thread 3066658148 joined [18:12:01]Waiting for new connection... [18:12:01] Sock 9.Parse request [18:12:01]Sock 9.Check first char [18:12:01]Sock 9.First char is OK [18:12:01]request: POST /json_proto HTTP/1.0 [18:12:01]Method: POST [18:12:01]URL: /json_proto [18:12:01]Method is POST - this is cgi request [18:12:01]url: /json_proto [18:12:01]query_string will be loaded in cgi processing [18:12:01]execute_cgi json_proto POST (null) [18:12:01]execute_cgi path=json_proto method=POST [18:12:01]POST find Content-Length [18:12:01]Host: 172.17.63.195:8080 [18:12:01]Content-Length: 682 [18:12:01]Content-Type: application/json [18:12:01] [18:12:01]POST finish read [18:12:01]Found Content-Length = 682 [18:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:01]execute_script... [18:12: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)449904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:01]POST & json_proto [18:12:01]process_json_proto [18:12:01]json parsed OK: [18:12:01]protocol is kg_v1.0 [18:12:01]action value=close_receipt [18:12:01]process_action close_receipt [18:12:01]cmd_close_receipt [18:12:01]MH_GetDate [18:12:01]Write to MH i2c: F0 00 00 8E 03 80 [18:12:01]Write i2c OK [18:12:01]MH_I2C_Read... [18:12:01]Read from MH i2c: F0 [18:12:01]MH_I2C_Read... [18:12:01]Read from MH i2c: F0 09 00 [18:12:01]MH_I2C_Read... [18:12:01]Read from MH i2c: F0 09 00 8E 03 00 72 82 1E 67 47 1B 1E 67 E9 [18:12:01]GetLastDocTimeStamp 1730052609 [18:12:01]current date 1730052722 [18:12:01]FM_GetShiftState [18:12:01]SAM_PROTO_GetShiftState [18:12:01]wFMCommunicate request_size=4 [18:12:01]MH_SAM_APDU [18:12:01]CAPDU: 80 13 01 00 [18:12:01]Write to MH i2c: E2 08 00 8F 03 80 13 01 00 00 00 00 00 0F [18:12:01]Write i2c OK [18:12:01]MH_I2C_Read... [18:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:01]Read from MH i2c: E2 [18:12:01]MH_I2C_Read... [18:12:01]Read from MH i2c: E2 0E 00 [18:12:01]MH_I2C_Read... [18:12:01]Read from MH i2c: E2 0E 00 8F 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 11 [18:12:01]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:12:01]wFMCommunicate OK [18:12:01]SAM_PROTO_GetShiftState done [18:12:01]FM_GetShiftState done [18:12:02]opened in 1729987312 [18:12:02]opened+sec_in_day 1730073712 [18:12:02]quantity*price = 200043 [18:12:02]sum+1 = 200044 [18:12:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 426 27.10.2024 18:12 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202134 ФПД: 76486701102808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181202&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202134&fm=76486701102808&tin=02508201610067®Number=0000000000091777&sum=200000 [18:12:03]StoreToDocumentArchive [18:12:03]shift 544 fd 202134 [18:12:03]save to /storage/0544/doc_00202134 [18:12:03]save last doc name /storage/0544/doc_00202134 to /storage/kkm_last_doc_name [18:12:03]save OK [18:12:03]Clear old archive folders... [18:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:03]tlvbuf is 006B7DE0 [18:12:03]SAM_PROTO_ClearQueue [18:12:03]wFMCommunicate request_size=4 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 09 00 00 [18:12:03]Write to MH i2c: E2 08 00 9C 03 80 09 00 00 00 00 00 00 11 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [18:12:03]RAPDU: 90 00 [18:12:03]wFMCommunicate OK [18:12:03]SAM_PROTO_ClearQueue done [18:12:03]KKMCreateOFDPacket [18:12:03]OFDProtocolAddRootSTLVToBuf [18:12:03]FM_MakeSignedData [18:12:03]FM_MakeSignedData [18:12:03]SAM_PROTO_SignData [18:12:03]wFMCommunicate request_size=4 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 0D 01 02 [18:12:03]Write to MH i2c: E2 08 00 9D 03 80 0D 01 02 00 00 00 00 19 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [18:12:03]RAPDU: 90 00 [18:12:03]wFMCommunicate OK [18:12:03]wFMCommunicate request_size=255 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 72 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 15 03 00 35 04 06 00 45 [18:12:03]Write to MH i2c: E2 02 01 9E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 72 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 15 03 00 35 04 06 00 45 00 00 8F [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [18:12:03]RAPDU: 90 00 [18:12:03]wFMCommunicate OK [18:12:03]wFMCommunicate request_size=10 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 0D 02 02 05 90 72 A6 36 D8 [18:12:03]Write to MH i2c: E2 0D 00 9F 03 80 0D 02 02 05 00 90 72 A6 36 D8 00 00 DC [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [18:12:03]RAPDU: 90 00 [18:12:03]wFMCommunicate OK [18:12:03]wFMCommunicate request_size=4 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 0D 03 02 [18:12:03]Write to MH i2c: E2 08 00 A0 03 80 0D 03 02 00 00 00 00 1E [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 0B 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 0B 00 A0 03 00 F9 14 DB 72 86 B9 F0 75 90 00 1D [18:12:03]RAPDU: F9 14 DB 72 86 B9 F0 75 90 00 [18:12:03]wFMCommunicate OK [18:12:03]SAM_PROTO_SignData done [18:12:03]FM_MakeSignedData done [18:12:03]CreateOFDProtocolMessage [18:12:03]wFMCommunicate request_size=4 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 11 00 00 [18:12:03]Write to MH i2c: E2 08 00 A1 03 80 11 00 00 00 00 00 00 1E [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 17 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 17 00 A1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 73 [18:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:12:03]wFMCommunicate OK [18:12:03]CreateOFDProtocolMessage done [18:12:03]OFDSenderStorePacket 202134 [18:12:03]StoreOFDPacket docnum=202134 [18:12:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B FB 07 01 A6 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 72 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 15 03 00 35 04 06 00 45 90 72 A6 36 D8 F9 14 DB 72 86 B9 F0 75 [18:12:03]CheckFolder [18:12:03]dirname=/storage/ofd_packets [18:12:03]CheckFolder done [18:12:03]ProducePacketName [18:12:03]name=ofd_packets/00202134 [18:12:03]NVStorageSaveData ofd_packets/00202134 [18:12:03]File name is /storage/ofd_packets/00202134 [18:12:03]Write 301 bytes [18:12:03]NVStorageSaveData done [18:12:03]OFDSenderStorePacket done [18:12:03]KKMCreateOFDPacket done [18:12:03]NVStorageSaveData kkm_last_timestamp [18:12:03]File name is /storage/kkm_last_timestamp [18:12:03]Write 4 bytes [18:12:03]NVStorageSaveData done [18:12:03]ExternCall_PrintAddStr [18:12:03]wPrintStart [18:12:03]Write to MH i2c: 01 00 00 A2 03 A5 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 07 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 07 00 A2 03 00 00 00 00 00 FF 0F BA [18:12:03]RasterBufferAndPrint [18:12:03]line Счет N : (1)449904 [18:12:03]line ИНН: 02508201610067 [18:12:03]line Контрольно-Кассовый Чек [18:12:03]line ПРОДАЖА [18:12:03]line ТРК (МРК, ГНК) : 61 [18:12:03]line Товар: 2710124500 [18:12:03]line Аи-95-К-3 [18:12:03]line 26.960 * 74.20 [18:12:03]line = 2000.43 [18:12:03]line НДС 12% НСП 1% [18:12:03]line > о реализуемом товаре [18:12:03]line ОКРУГЛЕНИЕ: -0.43 [18:12:03]line ИТОГО: 2000.00 [18:12:03]line Внесено: 2000.00 [18:12:03]line СДАЧА: 0.00 [18:12:03]line НСП 1% : 17.70 [18:12:03]line НДС 12% : 212.43 [18:12:03]line Наличными: 2000.00 [18:12:03]line Безнал.: 0.00 [18:12:03]line Место: АЗС № 171 "Партнер Нефть" [18:12:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:12:03]line СНО: Общий режим [18:12:03]line Чек 426 27.10.2024 18:12 [18:12:03]line Смена: 544 ФФД: 1.0 [18:12:03]line ЗНМ: 0300000109 [18:12:03]line РНМ: 0000000000091777 [18:12:03]line Версия ККМ: 001 [18:12:03]line ФМ: 0000000000871756 [18:12:03]line ФД: 202134 [18:12:03]line ФПД: 76486701102808 [18:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181202&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202134&fm=76486701102808&tin=02508201610067®Number=0000000000091777&sum=200000 [18:12:03]OFD Sender: Processing packet 202134 [packets to send 114, broken 113] [18:12:03]ProducePacketName [18:12:03]name=ofd_packets/00202134 [18:12:03]OFD Sender: To server: pG, [18:12:03]CommunicateWithHost lk.salyk.kg:30040 [18:12:03]ConnectInit lk.salyk.kg [18:12:03]written 0, free lines is 4095 [18:12:04]Connected sock=10 [18:12:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B FB 07 01 A6 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 72 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 15 03 00 35 04 06 00 45 90 72 A6 36 D8 F9 14 DB 72 86 B9 F0 75 [18:12:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 89 47 00 2B 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 15 03 00 F4 03 04 00 2B 2E 1E 67 B6 04 01 00 00 D1 53 7A 5E F0 50 40 55 [18:12:04]CommunicateWithHost err = 0 [18:12:04]CheckOFDResponse [18:12:04]1017 (14) - 77093643461234 [18:12:04]1041 (16) - 0000000000871756 [18:12:04]1040 (4) - 202134 [18:12:04]1012 (4) - 27.10.2024 12:12 [18:12:04]1206 (1) - 0 [18:12:04]OFD Sender: Remove packet 202134 [18:12:04]ProducePacketName [18:12:04]name=ofd_packets/00202134 [18:12:04]NVStorageDeleteData [18:12:04]Write to MH i2c: 01 00 00 CD 03 D0 [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: 01 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: 01 07 00 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 9A 0C 7D [18:12:04]RasterBufferAndPrint [18:12:04]line [18:12:04]line [18:12:04]line [18:12:04]line [18:12:04]line [18:12:04]written 0, free lines is 3230 [18:12:04]MH_Cut [18:12:04]Write to MH i2c: D1 01 00 D4 03 01 A9 [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: D1 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: D1 01 00 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: D1 01 00 D4 03 00 A8 [18:12:04]Write to MH i2c: 01 00 00 D5 03 D8 [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]OFD Sender: No OFD packet to send [18:12:05]*** Cut start [18:12:05]*** Purtial cut [18:12:05]*** Stage 1: CUTSNS_PIN = 1 [18:12:05]Read from MH i2c: 01 [18:12:05]MH_I2C_Read... [18:12:05]*** Stop cut motor [18:12:05]*** Cut end [18:12:05]Read from MH i2c: 01 07 00 [18:12:05]MH_I2C_Read... [18:12:05]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 FF 0F ED [18:12:05]process_action close_receipt done [18:12:05]requested_data is exist [18:12:05]produce_requested_data [18:12:05]requested_item fm.sn is exist - process it [18:12:05]wFMCommunicate request_size=4 [18:12:05]MH_SAM_APDU [18:12:05]CAPDU: 80 11 00 00 [18:12:05]Write to MH i2c: E2 08 00 D6 03 80 11 00 00 00 00 00 00 53 [18:12:05]Write i2c OK [18:12:05]MH_I2C_Read... [18:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:05]Read from MH i2c: E2 [18:12:05]MH_I2C_Read... [18:12:05]Read from MH i2c: E2 17 00 [18:12:05]MH_I2C_Read... [18:12:05]Read from MH i2c: E2 17 00 D6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A8 [18:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:12:05]wFMCommunicate OK [18:12:05]requested_item fd.num is exist - process it [18:12:05]SAM_PROTO_GetFieldsCounters [18:12:05]wFMCommunicate request_size=4 [18:12:05]MH_SAM_APDU [18:12:05]CAPDU: 80 13 00 00 [18:12:05]Write to MH i2c: E2 08 00 D7 03 80 13 00 00 00 00 00 00 56 [18:12:05]Write i2c OK [18:12:05]MH_I2C_Read... [18:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:05]Read from MH i2c: E2 [18:12:05]MH_I2C_Read... [18:12:05]Read from MH i2c: E2 62 00 [18:12:05]MH_I2C_Read... [18:12:05]Read from MH i2c: E2 62 00 D7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 96 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [18:12:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 96 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:05]wFMCommunicate OK [18:12:05]SAM_PROTO_GetFieldsCounters done [18:12:05]requested_item shift.num is exist - process it [18:12:05]requested_item shift.opened is exist - process it [18:12:05]req_shift_opened [18:12:05]FM_GetShiftState [18:12:05]SAM_PROTO_GetShiftState [18:12:05]wFMCommunicate request_size=4 [18:12:05]MH_SAM_APDU [18:12:05]CAPDU: 80 13 01 00 [18:12:05]Write to MH i2c: E2 08 00 D8 03 80 13 01 00 00 00 00 00 58 [18:12:05]Write i2c OK [18:12:05]MH_I2C_Read... [18:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:05]Read from MH i2c: E2 [18:12:05]MH_I2C_Read... [18:12:05]Read from MH i2c: E2 0E 00 [18:12:05]MH_I2C_Read... [18:12:05]Read from MH i2c: E2 0E 00 D8 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5A [18:12:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:12:05]wFMCommunicate OK [18:12:05]SAM_PROTO_GetShiftState done [18:12:05]FM_GetShiftState done [18:12:05]req_shift_opened done [18:12:05]requested_item shift.open_date is exist - process it [18:12:05]req_shift_open_date [18:12:05]req_shift_open_date done [18:12:05]produce_requested_data done [18:12:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202134,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:12:05]process_action_free close_receipt [18:12:05]json_value_free [18:12:05]json_value_free done [18:12:05]process_json_proto returns [18:12:05]Send response to host [18:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202134,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:12:05]free response buf [18:12:05]execute_script done [18:12:05]execute_script returns [18:12:05]free content buf [18:12:05]Sock 9.Close socket [18:12:05]Sock 9.Thread stoped [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:15]accept exits with 7 [18:13:15]New connection [18:13:15]New thread 3066658148 created [18:13:15]Thread 3066801508 joined [18:13:15]Waiting for new connection... [18:13:15] Sock 7.Parse request [18:13:15]Sock 7.Check first char [18:13:15]Sock 7.First char is OK [18:13:15]request: POST /json_proto HTTP/1.0 [18:13:15]Method: POST [18:13:15]URL: /json_proto [18:13:15]Method is POST - this is cgi request [18:13:15]url: /json_proto [18:13:15]query_string will be loaded in cgi processing [18:13:15]execute_cgi json_proto POST (null) [18:13:15]execute_cgi path=json_proto method=POST [18:13:15]POST find Content-Length [18:13:15]Host: 172.17.63.195:8080 [18:13:15]Content-Length: 679 [18:13:15]Content-Type: application/json [18:13:15] [18:13:15]POST finish read [18:13:15]Found Content-Length = 679 [18:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [18:13:15]execute_script... [18:13:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [18:13:15]POST & json_proto [18:13:15]process_json_proto [18:13:15]json parsed OK: [18:13:15]protocol is kg_v1.0 [18:13:15]action value=close_receipt [18:13:15]process_action close_receipt [18:13:15]cmd_close_receipt [18:13:15]MH_GetDate [18:13:15]Write to MH i2c: F0 00 00 D9 03 CB [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: F0 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: F0 09 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: F0 09 00 D9 03 00 BB 82 1E 67 47 1B 1E 67 7D [18:13:15]GetLastDocTimeStamp 1730052722 [18:13:15]current date 1730052795 [18:13:15]FM_GetShiftState [18:13:15]SAM_PROTO_GetShiftState [18:13:15]wFMCommunicate request_size=4 [18:13:15]MH_SAM_APDU [18:13:15]CAPDU: 80 13 01 00 [18:13:15]Write to MH i2c: E2 08 00 DA 03 80 13 01 00 00 00 00 00 5A [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:15]Read from MH i2c: E2 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 0E 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: E2 0E 00 DA 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5C [18:13:15]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:13:15]wFMCommunicate OK [18:13:15]SAM_PROTO_GetShiftState done [18:13:15]FM_GetShiftState done [18:13:15]opened in 1729987312 [18:13:15]opened+sec_in_day 1730073712 [18:13:15]quantity*price = 100050 [18:13:15]sum+1 = 100052 [18:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 427 27.10.2024 18:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202135 ФПД: 77010780758794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181315&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202135&fm=77010780758794&tin=02508201610067®Number=0000000000091777&sum=100000 [18:13:16]StoreToDocumentArchive [18:13:16]shift 544 fd 202135 [18:13:16]save to /storage/0544/doc_00202135 [18:13:16]save last doc name /storage/0544/doc_00202135 to /storage/kkm_last_doc_name [18:13:16]save OK [18:13:16]Clear old archive folders... [18:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:13:16]tlvbuf is 006C34D0 [18:13:16]SAM_PROTO_ClearQueue [18:13:16]wFMCommunicate request_size=4 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 09 00 00 [18:13:16]Write to MH i2c: E2 08 00 E7 03 80 09 00 00 00 00 00 00 5C [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:16]Read from MH i2c: E2 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 03 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [18:13:16]RAPDU: 90 00 [18:13:16]wFMCommunicate OK [18:13:16]SAM_PROTO_ClearQueue done [18:13:16]KKMCreateOFDPacket [18:13:16]OFDProtocolAddRootSTLVToBuf [18:13:16]FM_MakeSignedData [18:13:16]FM_MakeSignedData [18:13:16]SAM_PROTO_SignData [18:13:16]wFMCommunicate request_size=4 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 0D 01 02 [18:13:16]Write to MH i2c: E2 08 00 E8 03 80 0D 01 02 00 00 00 00 64 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:16]Read from MH i2c: E2 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 03 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [18:13:16]RAPDU: 90 00 [18:13:16]wFMCommunicate OK [18:13:16]wFMCommunicate request_size=255 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 AB 01 00 00 F4 03 04 00 BB 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 15 03 00 35 04 06 00 46 0A 78 3B [18:13:16]Write to MH i2c: E2 02 01 E9 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 AB 01 00 00 F4 03 04 00 BB 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 15 03 00 35 04 06 00 46 0A 78 3B 00 00 30 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:16]Read from MH i2c: E2 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 03 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [18:13:16]RAPDU: 90 00 [18:13:16]wFMCommunicate OK [18:13:16]wFMCommunicate request_size=7 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 0D 02 02 02 23 0A [18:13:16]Write to MH i2c: E2 0A 00 EA 03 80 0D 02 02 02 00 23 0A 00 00 98 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:16]Read from MH i2c: E2 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 03 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [18:13:16]RAPDU: 90 00 [18:13:16]wFMCommunicate OK [18:13:16]wFMCommunicate request_size=4 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 0D 03 02 [18:13:16]Write to MH i2c: E2 08 00 EB 03 80 0D 03 02 00 00 00 00 69 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:16]Read from MH i2c: E2 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 0B 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 0B 00 EB 03 00 52 07 57 B9 82 CB EC 13 90 00 1F [18:13:16]RAPDU: 52 07 57 B9 82 CB EC 13 90 00 [18:13:16]wFMCommunicate OK [18:13:16]SAM_PROTO_SignData done [18:13:16]FM_MakeSignedData done [18:13:16]CreateOFDProtocolMessage [18:13:16]wFMCommunicate request_size=4 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 11 00 00 [18:13:16]Write to MH i2c: E2 08 00 EC 03 80 11 00 00 00 00 00 00 69 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:16]Read from MH i2c: E2 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 17 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: E2 17 00 EC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BE [18:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:13:16]wFMCommunicate OK [18:13:16]CreateOFDProtocolMessage done [18:13:16]OFDSenderStorePacket 202135 [18:13:16]StoreOFDPacket docnum=202135 [18:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D8 00 04 01 CF BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 AB 01 00 00 F4 03 04 00 BB 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 15 03 00 35 04 06 00 46 0A 78 3B 23 0A 52 07 57 B9 82 CB EC 13 [18:13:16]CheckFolder [18:13:16]dirname=/storage/ofd_packets [18:13:16]CheckFolder done [18:13:16]ProducePacketName [18:13:16]name=ofd_packets/00202135 [18:13:16]NVStorageSaveData ofd_packets/00202135 [18:13:16]File name is /storage/ofd_packets/00202135 [18:13:16]Write 298 bytes [18:13:16]NVStorageSaveData done [18:13:16]OFDSenderStorePacket done [18:13:16]KKMCreateOFDPacket done [18:13:16]NVStorageSaveData kkm_last_timestamp [18:13:16]File name is /storage/kkm_last_timestamp [18:13:16]Write 4 bytes [18:13:16]NVStorageSaveData done [18:13:16]ExternCall_PrintAddStr [18:13:16]wPrintStart [18:13:16]Write to MH i2c: 01 00 00 ED 03 F0 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 07 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 07 00 ED 03 00 00 00 00 00 FF 0F 05 [18:13:16]RasterBufferAndPrint [18:13:16]line Счет N : (1)449905 [18:13:16]line ИНН: 02508201610067 [18:13:16]line Контрольно-Кассовый Чек [18:13:16]line ПРОДАЖА [18:13:16]line ТРК (МРК, ГНК) : 33 [18:13:16]line Товар: 2710194210 [18:13:16]line ДТ-К-2 [18:13:16]line 13.130 * 76.20 [18:13:16]line = 1000.51 [18:13:16]line НДС 12% НСП 1% [18:13:16]line > о реализуемом товаре [18:13:16]line ОКРУГЛЕНИЕ: -0.51 [18:13:16]line ИТОГО: 1000.00 [18:13:16]line Внесено: 1000.00 [18:13:16]line СДАЧА: 0.00 [18:13:16]line НСП 1% : 8.85 [18:13:16]line НДС 12% : 106.25 [18:13:16]line Наличными: 1000.00 [18:13:16]line Безнал.: 0.00 [18:13:16]line Место: АЗС № 171 "Партнер Нефть" [18:13:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:13:16]line СНО: Общий режим [18:13:16]line Чек 427 27.10.2024 18:13 [18:13:16]line Смена: 544 ФФД: 1.0 [18:13:16]line ЗНМ: 0300000109 [18:13:16]line РНМ: 0000000000091777 [18:13:16]line Версия ККМ: 001 [18:13:16]line ФМ: 0000000000871756 [18:13:16]line ФД: 202135 [18:13:16]line ФПД: 77010780758794 [18:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181315&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202135&fm=77010780758794&tin=02508201610067®Number=0000000000091777&sum=100000 [18:13:17]OFD Sender: Processing packet 202135 [packets to send 114, broken 113] [18:13:17]ProducePacketName [18:13:17]name=ofd_packets/00202135 [18:13:17]OFD Sender: To server: pG, [18:13:17]CommunicateWithHost lk.salyk.kg:30040 [18:13:17]ConnectInit lk.salyk.kg [18:13:17]written 0, free lines is 4095 [18:13:17]Connected sock=10 [18:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D8 00 04 01 CF BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 AB 01 00 00 F4 03 04 00 BB 82 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 15 03 00 35 04 06 00 46 0A 78 3B 23 0A 52 07 57 B9 82 CB EC 13 [18:13:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CF EB 47 00 C4 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 15 03 00 F4 03 04 00 74 2E 1E 67 B6 04 01 00 00 AA D4 3C 4F 75 86 66 F2 [18:13:17]CommunicateWithHost err = 0 [18:13:17]CheckOFDResponse [18:13:17]1017 (14) - 77093643461234 [18:13:17]1041 (16) - 0000000000871756 [18:13:17]1040 (4) - 202135 [18:13:17]1012 (4) - 27.10.2024 12:13 [18:13:17]1206 (1) - 0 [18:13:17]OFD Sender: Remove packet 202135 [18:13:17]ProducePacketName [18:13:17]name=ofd_packets/00202135 [18:13:17]NVStorageDeleteData [18:13:17]Write to MH i2c: 01 00 00 18 04 1C [18:13:17]Write i2c OK [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: 01 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: 01 07 00 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 8C 0C BB [18:13:17]RasterBufferAndPrint [18:13:17]line [18:13:17]line [18:13:17]line [18:13:17]line [18:13:17]line [18:13:17]written 0, free lines is 3216 [18:13:17]MH_Cut [18:13:17]Write to MH i2c: D1 01 00 1F 04 01 F5 [18:13:17]Write i2c OK [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: D1 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: D1 01 00 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: D1 01 00 1F 04 00 F4 [18:13:17]Write to MH i2c: 01 00 00 20 04 24 [18:13:17]Write i2c OK [18:13:17]MH_I2C_Read... [18:13:17]OFD Sender: No OFD packet to send [18:13:18]*** Cut start [18:13:18]*** Purtial cut [18:13:18]*** Stage 1: CUTSNS_PIN = 1 [18:13:18]Read from MH i2c: 01 [18:13:18]MH_I2C_Read... [18:13:18]*** Stop cut motor [18:13:18]*** Cut end [18:13:18]Read from MH i2c: 01 07 00 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 FF 0F 39 [18:13:18]process_action close_receipt done [18:13:18]requested_data is exist [18:13:18]produce_requested_data [18:13:18]requested_item fm.sn is exist - process it [18:13:18]wFMCommunicate request_size=4 [18:13:18]MH_SAM_APDU [18:13:18]CAPDU: 80 11 00 00 [18:13:18]Write to MH i2c: E2 08 00 21 04 80 11 00 00 00 00 00 00 9F [18:13:18]Write i2c OK [18:13:18]MH_I2C_Read... [18:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:18]Read from MH i2c: E2 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 17 00 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 17 00 21 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [18:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:13:18]wFMCommunicate OK [18:13:18]requested_item fd.num is exist - process it [18:13:18]SAM_PROTO_GetFieldsCounters [18:13:18]wFMCommunicate request_size=4 [18:13:18]MH_SAM_APDU [18:13:18]CAPDU: 80 13 00 00 [18:13:18]Write to MH i2c: E2 08 00 22 04 80 13 00 00 00 00 00 00 A2 [18:13:18]Write i2c OK [18:13:18]MH_I2C_Read... [18:13:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:18]Read from MH i2c: E2 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 62 00 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 62 00 22 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 97 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [18:13:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 97 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:18]wFMCommunicate OK [18:13:18]SAM_PROTO_GetFieldsCounters done [18:13:18]requested_item shift.num is exist - process it [18:13:18]requested_item shift.opened is exist - process it [18:13:18]req_shift_opened [18:13:18]FM_GetShiftState [18:13:18]SAM_PROTO_GetShiftState [18:13:18]wFMCommunicate request_size=4 [18:13:18]MH_SAM_APDU [18:13:18]CAPDU: 80 13 01 00 [18:13:18]Write to MH i2c: E2 08 00 23 04 80 13 01 00 00 00 00 00 A4 [18:13:18]Write i2c OK [18:13:18]MH_I2C_Read... [18:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:18]Read from MH i2c: E2 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 0E 00 [18:13:18]MH_I2C_Read... [18:13:18]Read from MH i2c: E2 0E 00 23 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A6 [18:13:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:13:18]wFMCommunicate OK [18:13:18]SAM_PROTO_GetShiftState done [18:13:18]FM_GetShiftState done [18:13:18]req_shift_opened done [18:13:18]requested_item shift.open_date is exist - process it [18:13:18]req_shift_open_date [18:13:18]req_shift_open_date done [18:13:18]produce_requested_data done [18:13:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202135,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:13:18]process_action_free close_receipt [18:13:18]json_value_free [18:13:18]json_value_free done [18:13:18]process_json_proto returns [18:13:18]Send response to host [18:13:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202135,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:13:18]free response buf [18:13:18]execute_script done [18:13:18]execute_script returns [18:13:18]free content buf [18:13:18]Sock 7.Close socket [18:13:18]Sock 7.Thread stoped [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:10]accept exits with 9 [18:16:10]New connection [18:16:10]New thread 3066801508 created [18:16:10]Thread 3066658148 joined [18:16:10]Waiting for new connection... [18:16:10] Sock 9.Parse request [18:16:10]Sock 9.Check first char [18:16:10]Sock 9.First char is OK [18:16:10]request: POST /json_proto HTTP/1.0 [18:16:10]Method: POST [18:16:10]URL: /json_proto [18:16:10]Method is POST - this is cgi request [18:16:10]url: /json_proto [18:16:10]query_string will be loaded in cgi processing [18:16:10]execute_cgi json_proto POST (null) [18:16:10]execute_cgi path=json_proto method=POST [18:16:10]POST find Content-Length [18:16:10]Host: 172.17.63.195:8080 [18:16:10]Content-Length: 677 [18:16:10]Content-Type: application/json [18:16:10] [18:16:10]POST finish read [18:16:10]Found Content-Length = 677 [18:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:16:10]execute_script... [18:16:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:16:10]POST & json_proto [18:16:10]process_json_proto [18:16:10]json parsed OK: [18:16:10]protocol is kg_v1.0 [18:16:10]action value=close_receipt [18:16:10]process_action close_receipt [18:16:10]cmd_close_receipt [18:16:10]MH_GetDate [18:16:10]Write to MH i2c: F0 00 00 24 04 17 [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: F0 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: F0 09 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: F0 09 00 24 04 00 6B 83 1E 67 47 1B 1E 67 7A [18:16:10]GetLastDocTimeStamp 1730052795 [18:16:10]current date 1730052971 [18:16:10]FM_GetShiftState [18:16:10]SAM_PROTO_GetShiftState [18:16:10]wFMCommunicate request_size=4 [18:16:10]MH_SAM_APDU [18:16:10]CAPDU: 80 13 01 00 [18:16:10]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [18:16:10]Write i2c OK [18:16:10]MH_I2C_Read... [18:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:10]Read from MH i2c: E2 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 0E 00 [18:16:10]MH_I2C_Read... [18:16:10]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A8 [18:16:10]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:16:10]wFMCommunicate OK [18:16:10]SAM_PROTO_GetShiftState done [18:16:10]FM_GetShiftState done [18:16:10]opened in 1729987312 [18:16:10]opened+sec_in_day 1730073712 [18:16:10]quantity*price = 60009 [18:16:10]sum+1 = 60010 [18:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 428 27.10.2024 18:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202136 ФПД: 244253536615865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181611&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202136&fm=244253536615865&tin=02508201610067®Number=0000000000091777&sum=60000 [18:16:11]StoreToDocumentArchive [18:16:11]shift 544 fd 202136 [18:16:11]save to /storage/0544/doc_00202136 [18:16:11]save last doc name /storage/0544/doc_00202136 to /storage/kkm_last_doc_name [18:16:11]save OK [18:16:11]Clear old archive folders... [18:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:11]tlvbuf is 006C6A10 [18:16:11]SAM_PROTO_ClearQueue [18:16:11]wFMCommunicate request_size=4 [18:16:11]MH_SAM_APDU [18:16:11]CAPDU: 80 09 00 00 [18:16:11]Write to MH i2c: E2 08 00 32 04 80 09 00 00 00 00 00 00 A8 [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:11]Read from MH i2c: E2 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 03 00 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [18:16:11]RAPDU: 90 00 [18:16:11]wFMCommunicate OK [18:16:11]SAM_PROTO_ClearQueue done [18:16:11]KKMCreateOFDPacket [18:16:11]OFDProtocolAddRootSTLVToBuf [18:16:11]FM_MakeSignedData [18:16:11]FM_MakeSignedData [18:16:11]SAM_PROTO_SignData [18:16:11]wFMCommunicate request_size=4 [18:16:11]MH_SAM_APDU [18:16:11]CAPDU: 80 0D 01 02 [18:16:11]Write to MH i2c: E2 08 00 33 04 80 0D 01 02 00 00 00 00 B0 [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:11]Read from MH i2c: E2 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 03 00 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [18:16:11]RAPDU: 90 00 [18:16:11]wFMCommunicate OK [18:16:11]wFMCommunicate request_size=255 [18:16:11]MH_SAM_APDU [18:16:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 01 00 00 F4 03 04 00 6B 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 15 03 00 35 04 06 00 DE [18:16:11]Write to MH i2c: E2 02 01 34 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 01 00 00 F4 03 04 00 6B 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 15 03 00 35 04 06 00 DE 00 00 F1 [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:12]Read from MH i2c: E2 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 03 00 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [18:16:12]RAPDU: 90 00 [18:16:12]wFMCommunicate OK [18:16:12]wFMCommunicate request_size=10 [18:16:12]MH_SAM_APDU [18:16:12]CAPDU: 80 0D 02 02 05 25 B5 48 FD B9 [18:16:12]Write to MH i2c: E2 0D 00 35 04 80 0D 02 02 05 00 25 B5 48 FD B9 00 00 95 [18:16:12]Write i2c OK [18:16:12]MH_I2C_Read... [18:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:12]Read from MH i2c: E2 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 03 00 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [18:16:12]RAPDU: 90 00 [18:16:12]wFMCommunicate OK [18:16:12]wFMCommunicate request_size=4 [18:16:12]MH_SAM_APDU [18:16:12]CAPDU: 80 0D 03 02 [18:16:12]Write to MH i2c: E2 08 00 36 04 80 0D 03 02 00 00 00 00 B5 [18:16:12]Write i2c OK [18:16:12]MH_I2C_Read... [18:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:12]Read from MH i2c: E2 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 0B 00 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 0B 00 36 04 00 BC 66 80 73 6B C9 2A 7F 90 00 A8 [18:16:12]RAPDU: BC 66 80 73 6B C9 2A 7F 90 00 [18:16:12]wFMCommunicate OK [18:16:12]SAM_PROTO_SignData done [18:16:12]FM_MakeSignedData done [18:16:12]CreateOFDProtocolMessage [18:16:12]wFMCommunicate request_size=4 [18:16:12]MH_SAM_APDU [18:16:12]CAPDU: 80 11 00 00 [18:16:12]Write to MH i2c: E2 08 00 37 04 80 11 00 00 00 00 00 00 B5 [18:16:12]Write i2c OK [18:16:12]MH_I2C_Read... [18:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:12]Read from MH i2c: E2 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 17 00 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: E2 17 00 37 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0A [18:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:16:12]wFMCommunicate OK [18:16:12]CreateOFDProtocolMessage done [18:16:12]OFDSenderStorePacket 202136 [18:16:12]StoreOFDPacket docnum=202136 [18:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F3 90 07 01 14 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 01 00 00 F4 03 04 00 6B 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 15 03 00 35 04 06 00 DE 25 B5 48 FD B9 BC 66 80 73 6B C9 2A 7F [18:16:12]CheckFolder [18:16:12]dirname=/storage/ofd_packets [18:16:12]CheckFolder done [18:16:12]ProducePacketName [18:16:12]name=ofd_packets/00202136 [18:16:12]NVStorageSaveData ofd_packets/00202136 [18:16:12]File name is /storage/ofd_packets/00202136 [18:16:12]Write 301 bytes [18:16:12]NVStorageSaveData done [18:16:12]OFDSenderStorePacket done [18:16:12]KKMCreateOFDPacket done [18:16:12]NVStorageSaveData kkm_last_timestamp [18:16:12]File name is /storage/kkm_last_timestamp [18:16:12]Write 4 bytes [18:16:12]NVStorageSaveData done [18:16:12]ExternCall_PrintAddStr [18:16:12]wPrintStart [18:16:12]Write to MH i2c: 01 00 00 38 04 3C [18:16:12]Write i2c OK [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: 01 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: 01 07 00 [18:16:12]MH_I2C_Read... [18:16:12]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 FF 0F 51 [18:16:12]RasterBufferAndPrint [18:16:12]line Счет N : (1)449906 [18:16:12]line ИНН: 02508201610067 [18:16:12]line Контрольно-Кассовый Чек [18:16:12]line ПРОДАЖА [18:16:12]line ТРК (МРК, ГНК) : 41 [18:16:12]line Товар: 2710124130 [18:16:12]line Аи-92-К-2 [18:16:12]line 8.970 * 66.90 [18:16:12]line = 600.09 [18:16:12]line НДС 12% НСП 1% [18:16:12]line > о реализуемом товаре [18:16:12]line ОКРУГЛЕНИЕ: -0.09 [18:16:12]line ИТОГО: 600.00 [18:16:12]line Внесено: 600.00 [18:16:12]line СДАЧА: 0.00 [18:16:12]line НСП 1% : 5.31 [18:16:12]line НДС 12% : 63.73 [18:16:12]line Наличными: 600.00 [18:16:12]line Безнал.: 0.00 [18:16:12]line Место: АЗС № 171 "Партнер Нефть" [18:16:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:16:12]line СНО: Общий режим [18:16:12]line Чек 428 27.10.2024 18:16 [18:16:12]line Смена: 544 ФФД: 1.0 [18:16:12]line ЗНМ: 0300000109 [18:16:12]line РНМ: 0000000000091777 [18:16:12]line Версия ККМ: 001 [18:16:12]line ФМ: 0000000000871756 [18:16:12]line ФД: 202136 [18:16:12]line ФПД: 244253536615865 [18:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181611&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202136&fm=244253536615865&tin=02508201610067®Number=0000000000091777&sum=60000 [18:16:12]OFD Sender: Processing packet 202136 [packets to send 114, broken 113] [18:16:12]ProducePacketName [18:16:12]name=ofd_packets/00202136 [18:16:12]OFD Sender: To server: pG, [18:16:12]CommunicateWithHost lk.salyk.kg:30040 [18:16:12]ConnectInit lk.salyk.kg [18:16:12]written 0, free lines is 4095 [18:16:12]Connected sock=10 [18:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F3 90 07 01 14 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 01 00 00 F4 03 04 00 6B 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 15 03 00 35 04 06 00 DE 25 B5 48 FD B9 BC 66 80 73 6B C9 2A 7F [18:16:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BC 4A 47 00 57 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 15 03 00 F4 03 04 00 24 2F 1E 67 B6 04 01 00 00 C4 E7 87 A2 4F 56 BE 60 [18:16:12]CommunicateWithHost err = 0 [18:16:12]CheckOFDResponse [18:16:12]1017 (14) - 77093643461234 [18:16:12]1041 (16) - 0000000000871756 [18:16:12]1040 (4) - 202136 [18:16:12]1012 (4) - 27.10.2024 12:16 [18:16:12]1206 (1) - 0 [18:16:12]OFD Sender: Remove packet 202136 [18:16:12]ProducePacketName [18:16:12]name=ofd_packets/00202136 [18:16:12]NVStorageDeleteData [18:16:13]Write to MH i2c: 01 00 00 63 04 67 [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: 01 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: 01 07 00 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 A2 0C 1C [18:16:13]RasterBufferAndPrint [18:16:13]line [18:16:13]line [18:16:13]line [18:16:13]line [18:16:13]line [18:16:13]written 0, free lines is 3238 [18:16:13]MH_Cut [18:16:13]Write to MH i2c: D1 01 00 6A 04 01 40 [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: D1 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: D1 01 00 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: D1 01 00 6A 04 00 3F [18:16:13]Write to MH i2c: 01 00 00 6B 04 6F [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]OFD Sender: No OFD packet to send [18:16:13]*** Cut start [18:16:13]*** Purtial cut [18:16:13]*** Stage 1: CUTSNS_PIN = 1 [18:16:14]Read from MH i2c: 01 [18:16:14]MH_I2C_Read... [18:16:14]*** Stop cut motor [18:16:14]*** Cut end [18:16:14]Read from MH i2c: 01 07 00 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 FF 0F 84 [18:16:14]process_action close_receipt done [18:16:14]requested_data is exist [18:16:14]produce_requested_data [18:16:14]requested_item fm.sn is exist - process it [18:16:14]wFMCommunicate request_size=4 [18:16:14]MH_SAM_APDU [18:16:14]CAPDU: 80 11 00 00 [18:16:14]Write to MH i2c: E2 08 00 6C 04 80 11 00 00 00 00 00 00 EA [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 [18:16:14]MH_I2C_Read... [18:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:14]Read from MH i2c: E2 17 00 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 17 00 6C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [18:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:16:14]wFMCommunicate OK [18:16:14]requested_item fd.num is exist - process it [18:16:14]SAM_PROTO_GetFieldsCounters [18:16:14]wFMCommunicate request_size=4 [18:16:14]MH_SAM_APDU [18:16:14]CAPDU: 80 13 00 00 [18:16:14]Write to MH i2c: E2 08 00 6D 04 80 13 00 00 00 00 00 00 ED [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:14]Read from MH i2c: E2 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 62 00 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 62 00 6D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 98 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [18:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 98 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:14]wFMCommunicate OK [18:16:14]SAM_PROTO_GetFieldsCounters done [18:16:14]requested_item shift.num is exist - process it [18:16:14]requested_item shift.opened is exist - process it [18:16:14]req_shift_opened [18:16:14]FM_GetShiftState [18:16:14]SAM_PROTO_GetShiftState [18:16:14]wFMCommunicate request_size=4 [18:16:14]MH_SAM_APDU [18:16:14]CAPDU: 80 13 01 00 [18:16:14]Write to MH i2c: E2 08 00 6E 04 80 13 01 00 00 00 00 00 EF [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:14]Read from MH i2c: E2 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 0E 00 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 0E 00 6E 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F1 [18:16:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:16:14]wFMCommunicate OK [18:16:14]SAM_PROTO_GetShiftState done [18:16:14]FM_GetShiftState done [18:16:14]req_shift_opened done [18:16:14]requested_item shift.open_date is exist - process it [18:16:14]req_shift_open_date [18:16:14]req_shift_open_date done [18:16:14]produce_requested_data done [18:16:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202136,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:16:14]process_action_free close_receipt [18:16:14]json_value_free [18:16:14]json_value_free done [18:16:14]process_json_proto returns [18:16:14]Send response to host [18:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202136,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:16:14]free response buf [18:16:14]execute_script done [18:16:14]execute_script returns [18:16:14]free content buf [18:16:14]Sock 9.Close socket [18:16:14]Sock 9.Thread stoped [18:16:14]accept exits with 7 [18:16:14]New connection [18:16:14]New thread 3066658148 created [18:16:14]Thread 3066801508 joined [18:16:14]Waiting for new connection... [18:16:14] Sock 7.Parse request [18:16:14]Sock 7.Check first char [18:16:14]Sock 7.First char is OK [18:16:14]request: POST /json_proto HTTP/1.0 [18:16:14]Method: POST [18:16:14]URL: /json_proto [18:16:14]Method is POST - this is cgi request [18:16:14]url: /json_proto [18:16:14]query_string will be loaded in cgi processing [18:16:14]execute_cgi json_proto POST (null) [18:16:14]execute_cgi path=json_proto method=POST [18:16:14]POST find Content-Length [18:16:14]Host: 172.17.63.195:8080 [18:16:14]Content-Length: 677 [18:16:14]Content-Type: application/json [18:16:14] [18:16:14]POST finish read [18:16:14]Found Content-Length = 677 [18:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:14]execute_script... [18:16:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:14]POST & json_proto [18:16:14]process_json_proto [18:16:14]json parsed OK: [18:16:14]protocol is kg_v1.0 [18:16:14]action value=close_receipt [18:16:14]process_action close_receipt [18:16:14]cmd_close_receipt [18:16:14]MH_GetDate [18:16:14]Write to MH i2c: F0 00 00 6F 04 62 [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: F0 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: F0 09 00 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: F0 09 00 6F 04 00 6F 83 1E 67 47 1B 1E 67 C9 [18:16:14]GetLastDocTimeStamp 1730052971 [18:16:14]current date 1730052975 [18:16:14]FM_GetShiftState [18:16:14]SAM_PROTO_GetShiftState [18:16:14]wFMCommunicate request_size=4 [18:16:14]MH_SAM_APDU [18:16:14]CAPDU: 80 13 01 00 [18:16:14]Write to MH i2c: E2 08 00 70 04 80 13 01 00 00 00 00 00 F1 [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:14]Read from MH i2c: E2 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 0E 00 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 0E 00 70 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F3 [18:16:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:16:14]wFMCommunicate OK [18:16:14]SAM_PROTO_GetShiftState done [18:16:14]FM_GetShiftState done [18:16:14]opened in 1729987312 [18:16:14]opened+sec_in_day 1730073712 [18:16:14]quantity*price = 40006 [18:16:14]sum+1 = 40007 [18:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 429 27.10.2024 18:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202137 ФПД: 204050279573795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181615&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202137&fm=204050279573795&tin=02508201610067®Number=0000000000091777&sum=40000 [18:16:16]StoreToDocumentArchive [18:16:16]shift 544 fd 202137 [18:16:16]save to /storage/0544/doc_00202137 [18:16:16]save last doc name /storage/0544/doc_00202137 to /storage/kkm_last_doc_name [18:16:16]save OK [18:16:16]Clear old archive folders... [18:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:16]tlvbuf is 006EA250 [18:16:16]SAM_PROTO_ClearQueue [18:16:16]wFMCommunicate request_size=4 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 09 00 00 [18:16:16]Write to MH i2c: E2 08 00 7D 04 80 09 00 00 00 00 00 00 F3 [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [18:16:16]RAPDU: 90 00 [18:16:16]wFMCommunicate OK [18:16:16]SAM_PROTO_ClearQueue done [18:16:16]KKMCreateOFDPacket [18:16:16]OFDProtocolAddRootSTLVToBuf [18:16:16]FM_MakeSignedData [18:16:16]FM_MakeSignedData [18:16:16]SAM_PROTO_SignData [18:16:16]wFMCommunicate request_size=4 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 0D 01 02 [18:16:16]Write to MH i2c: E2 08 00 7E 04 80 0D 01 02 00 00 00 00 FB [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [18:16:16]RAPDU: 90 00 [18:16:16]wFMCommunicate OK [18:16:16]wFMCommunicate request_size=255 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 6F 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 15 03 00 35 04 06 00 B9 [18:16:16]Write to MH i2c: E2 02 01 7F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 6F 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 15 03 00 35 04 06 00 B9 00 00 0F [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [18:16:16]RAPDU: 90 00 [18:16:16]wFMCommunicate OK [18:16:16]wFMCommunicate request_size=10 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 0D 02 02 05 95 28 6E 29 23 [18:16:16]Write to MH i2c: E2 0D 00 80 04 80 0D 02 02 05 00 95 28 6E 29 23 00 00 7F [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [18:16:16]RAPDU: 90 00 [18:16:16]wFMCommunicate OK [18:16:16]wFMCommunicate request_size=4 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 0D 03 02 [18:16:16]Write to MH i2c: E2 08 00 81 04 80 0D 03 02 00 00 00 00 00 [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 0B 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 0B 00 81 04 00 7D B5 4D 6C 6F 3D 65 A8 90 00 A5 [18:16:16]RAPDU: 7D B5 4D 6C 6F 3D 65 A8 90 00 [18:16:16]wFMCommunicate OK [18:16:16]SAM_PROTO_SignData done [18:16:16]FM_MakeSignedData done [18:16:16]CreateOFDProtocolMessage [18:16:16]wFMCommunicate request_size=4 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 11 00 00 [18:16:16]Write to MH i2c: E2 08 00 82 04 80 11 00 00 00 00 00 00 00 [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 17 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 17 00 82 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 55 [18:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:16:16]wFMCommunicate OK [18:16:16]CreateOFDProtocolMessage done [18:16:16]OFDSenderStorePacket 202137 [18:16:16]StoreOFDPacket docnum=202137 [18:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 58 07 01 01 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 6F 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 15 03 00 35 04 06 00 B9 95 28 6E 29 23 7D B5 4D 6C 6F 3D 65 A8 [18:16:16]CheckFolder [18:16:16]dirname=/storage/ofd_packets [18:16:16]CheckFolder done [18:16:16]ProducePacketName [18:16:16]name=ofd_packets/00202137 [18:16:16]NVStorageSaveData ofd_packets/00202137 [18:16:16]File name is /storage/ofd_packets/00202137 [18:16:16]Write 301 bytes [18:16:16]NVStorageSaveData done [18:16:16]OFDSenderStorePacket done [18:16:16]KKMCreateOFDPacket done [18:16:16]NVStorageSaveData kkm_last_timestamp [18:16:16]File name is /storage/kkm_last_timestamp [18:16:16]Write 4 bytes [18:16:16]NVStorageSaveData done [18:16:16]ExternCall_PrintAddStr [18:16:16]wPrintStart [18:16:16]Write to MH i2c: 01 00 00 83 04 87 [18:16:16]OFD Sender: Processing packet 202137 [packets to send 114, broken 113] [18:16:16]ProducePacketName [18:16:16]name=ofd_packets/00202137 [18:16:16]OFD Sender: To server: pG, [18:16:16]CommunicateWithHost lk.salyk.kg:30040 [18:16:16]ConnectInit lk.salyk.kg [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: 01 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: 01 07 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 FF 0F 9C [18:16:16]RasterBufferAndPrint [18:16:16]line Счет N : (1)449907 [18:16:16]line ИНН: 02508201610067 [18:16:16]line Контрольно-Кассовый Чек [18:16:16]line ПРОДАЖА [18:16:16]line ТРК (МРК, ГНК) : 31 [18:16:16]line Товар: 2710124130 [18:16:16]line Аи-92-К-2 [18:16:16]line 5.980 * 66.90 [18:16:16]line = 400.06 [18:16:16]line НДС 12% НСП 1% [18:16:16]line > о реализуемом товаре [18:16:16]line ОКРУГЛЕНИЕ: -0.06 [18:16:16]line ИТОГО: 400.00 [18:16:16]line Внесено: 400.00 [18:16:16]line СДАЧА: 0.00 [18:16:16]line НСП 1% : 3.54 [18:16:16]line НДС 12% : 42.48 [18:16:16]line Наличными: 400.00 [18:16:16]line Безнал.: 0.00 [18:16:16]line Место: АЗС № 171 "Партнер Нефть" [18:16:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:16:16]line СНО: Общий режим [18:16:16]line Чек 429 27.10.2024 18:16 [18:16:16]line Смена: 544 ФФД: 1.0 [18:16:16]line ЗНМ: 0300000109 [18:16:16]line РНМ: 0000000000091777 [18:16:16]line Версия ККМ: 001 [18:16:16]line ФМ: 0000000000871756 [18:16:16]line ФД: 202137 [18:16:16]line ФПД: 204050279573795 [18:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181615&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202137&fm=204050279573795&tin=02508201610067®Number=0000000000091777&sum=40000 [18:16:16]written 0, free lines is 4095 [18:16:17]Connected sock=11 [18:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 58 07 01 01 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 6F 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 15 03 00 35 04 06 00 B9 95 28 6E 29 23 7D B5 4D 6C 6F 3D 65 A8 [18:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5C 55 47 00 08 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 15 03 00 F4 03 04 00 28 2F 1E 67 B6 04 01 00 00 0E 44 5C 69 07 26 E4 E9 [18:16:17]CommunicateWithHost err = 0 [18:16:17]CheckOFDResponse [18:16:17]1017 (14) - 77093643461234 [18:16:17]1041 (16) - 0000000000871756 [18:16:17]1040 (4) - 202137 [18:16:17]1012 (4) - 27.10.2024 12:16 [18:16:17]1206 (1) - 0 [18:16:17]OFD Sender: Remove packet 202137 [18:16:17]ProducePacketName [18:16:17]name=ofd_packets/00202137 [18:16:17]NVStorageDeleteData [18:16:17]Write to MH i2c: 01 00 00 AE 04 B2 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 07 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 07 00 AE 04 00 00 00 00 00 A3 0C 68 [18:16:17]RasterBufferAndPrint [18:16:17]line [18:16:17]line [18:16:17]line [18:16:17]line [18:16:17]line [18:16:17]written 0, free lines is 3242 [18:16:17]MH_Cut [18:16:17]Write to MH i2c: D1 01 00 B5 04 01 8B [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: D1 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: D1 01 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: D1 01 00 B5 04 00 8A [18:16:17]Write to MH i2c: 01 00 00 B6 04 BA [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]OFD Sender: No OFD packet to send [18:16:18]*** Cut start [18:16:18]*** Purtial cut [18:16:18]*** Stage 1: CUTSNS_PIN = 1 [18:16:18]Read from MH i2c: 01 [18:16:18]MH_I2C_Read... [18:16:18]*** Stop cut motor [18:16:18]*** Cut end [18:16:18]Read from MH i2c: 01 07 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 FF 0F CF [18:16:18]process_action close_receipt done [18:16:18]requested_data is exist [18:16:18]produce_requested_data [18:16:18]requested_item fm.sn is exist - process it [18:16:18]wFMCommunicate request_size=4 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 11 00 00 [18:16:18]Write to MH i2c: E2 08 00 B7 04 80 11 00 00 00 00 00 00 35 [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 17 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 17 00 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8A [18:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:16:18]wFMCommunicate OK [18:16:18]requested_item fd.num is exist - process it [18:16:18]SAM_PROTO_GetFieldsCounters [18:16:18]wFMCommunicate request_size=4 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 13 00 00 [18:16:18]Write to MH i2c: E2 08 00 B8 04 80 13 00 00 00 00 00 00 38 [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:18]Read from MH i2c: E2 62 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 62 00 B8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 99 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [18:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 99 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:18]wFMCommunicate OK [18:16:18]SAM_PROTO_GetFieldsCounters done [18:16:18]requested_item shift.num is exist - process it [18:16:18]requested_item shift.opened is exist - process it [18:16:18]req_shift_opened [18:16:18]FM_GetShiftState [18:16:18]SAM_PROTO_GetShiftState [18:16:18]wFMCommunicate request_size=4 [18:16:18]MH_SAM_APDU [18:16:18]CAPDU: 80 13 01 00 [18:16:18]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:18]Read from MH i2c: E2 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 0E 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3C [18:16:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:16:18]wFMCommunicate OK [18:16:18]SAM_PROTO_GetShiftState done [18:16:18]FM_GetShiftState done [18:16:18]req_shift_opened done [18:16:18]requested_item shift.open_date is exist - process it [18:16:18]req_shift_open_date [18:16:18]req_shift_open_date done [18:16:18]produce_requested_data done [18:16:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202137,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:16:18]process_action_free close_receipt [18:16:18]json_value_free [18:16:18]json_value_free done [18:16:18]process_json_proto returns [18:16:18]Send response to host [18:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202137,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:16:18]free response buf [18:16:18]execute_script done [18:16:18]execute_script returns [18:16:18]free content buf [18:16:18]Sock 7.Close socket [18:16:18]Sock 7.Thread stoped [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:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:46]accept exits with 9 [18:17:46]New connection [18:17:46]New thread 3066801508 created [18:17:46]Thread 3066658148 joined [18:17:46]Waiting for new connection... [18:17:46] Sock 9.Parse request [18:17:46]Sock 9.Check first char [18:17:46]Sock 9.First char is OK [18:17:46]request: POST /json_proto HTTP/1.0 [18:17:46]Method: POST [18:17:46]URL: /json_proto [18:17:46]Method is POST - this is cgi request [18:17:46]url: /json_proto [18:17:46]query_string will be loaded in cgi processing [18:17:46]execute_cgi json_proto POST (null) [18:17:46]execute_cgi path=json_proto method=POST [18:17:46]POST find Content-Length [18:17:46]Host: 172.17.63.195:8080 [18:17:46]Content-Length: 679 [18:17:46]Content-Type: application/json [18:17:46] [18:17:46]POST finish read [18:17:46]Found Content-Length = 679 [18:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [18:17:46]execute_script... [18:17:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [18:17:46]POST & json_proto [18:17:46]process_json_proto [18:17:46]json parsed OK: [18:17:46]protocol is kg_v1.0 [18:17:46]action value=close_receipt [18:17:46]process_action close_receipt [18:17:46]cmd_close_receipt [18:17:46]MH_GetDate [18:17:46]Write to MH i2c: F0 00 00 BA 04 AD [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: F0 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: F0 09 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: F0 09 00 BA 04 00 CB 83 1E 67 47 1B 1E 67 70 [18:17:46]GetLastDocTimeStamp 1730052975 [18:17:46]current date 1730053067 [18:17:46]FM_GetShiftState [18:17:46]SAM_PROTO_GetShiftState [18:17:46]wFMCommunicate request_size=4 [18:17:46]MH_SAM_APDU [18:17:46]CAPDU: 80 13 01 00 [18:17:46]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [18:17:46]Write i2c OK [18:17:46]MH_I2C_Read... [18:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:46]Read from MH i2c: E2 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 0E 00 [18:17:46]MH_I2C_Read... [18:17:46]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3E [18:17:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:17:46]wFMCommunicate OK [18:17:46]SAM_PROTO_GetShiftState done [18:17:46]FM_GetShiftState done [18:17:46]opened in 1729987312 [18:17:46]opened+sec_in_day 1730073712 [18:17:46]quantity*price = 100050 [18:17:46]sum+1 = 100052 [18:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 430 27.10.2024 18:17 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202138 ФПД: 197314790652895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181747&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202138&fm=197314790652895&tin=02508201610067®Number=0000000000091777&sum=100000 [18:17:47]StoreToDocumentArchive [18:17:47]shift 544 fd 202138 [18:17:47]save to /storage/0544/doc_00202138 [18:17:47]save last doc name /storage/0544/doc_00202138 to /storage/kkm_last_doc_name [18:17:47]save OK [18:17:47]Clear old archive folders... [18:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:17:47]tlvbuf is 006BA190 [18:17:47]SAM_PROTO_ClearQueue [18:17:47]wFMCommunicate request_size=4 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 09 00 00 [18:17:47]Write to MH i2c: E2 08 00 C8 04 80 09 00 00 00 00 00 00 3E [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [18:17:47]RAPDU: 90 00 [18:17:47]wFMCommunicate OK [18:17:47]SAM_PROTO_ClearQueue done [18:17:47]KKMCreateOFDPacket [18:17:47]OFDProtocolAddRootSTLVToBuf [18:17:47]FM_MakeSignedData [18:17:47]FM_MakeSignedData [18:17:47]SAM_PROTO_SignData [18:17:47]wFMCommunicate request_size=4 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 0D 01 02 [18:17:47]Write to MH i2c: E2 08 00 C9 04 80 0D 01 02 00 00 00 00 46 [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [18:17:47]RAPDU: 90 00 [18:17:47]wFMCommunicate OK [18:17:47]wFMCommunicate request_size=255 [18:17:47]MH_SAM_APDU [18:17:47]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 32 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 AE 01 00 00 F4 03 04 00 CB 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 15 03 00 35 04 06 00 B3 74 EE 01 [18:17:47]Write to MH i2c: E2 02 01 CA 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 AE 01 00 00 F4 03 04 00 CB 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 15 03 00 35 04 06 00 B3 74 EE 01 00 00 3C [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [18:17:47]RAPDU: 90 00 [18:17:47]wFMCommunicate OK [18:17:47]wFMCommunicate request_size=7 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 0D 02 02 02 7B DF [18:17:47]Write to MH i2c: E2 0A 00 CB 04 80 0D 02 02 02 00 7B DF 00 00 A7 [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [18:17:47]RAPDU: 90 00 [18:17:47]wFMCommunicate OK [18:17:47]wFMCommunicate request_size=4 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 0D 03 02 [18:17:47]Write to MH i2c: E2 08 00 CC 04 80 0D 03 02 00 00 00 00 4B [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 0B 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 0B 00 CC 04 00 72 0B 23 09 8F C8 C6 ED 90 00 FF [18:17:47]RAPDU: 72 0B 23 09 8F C8 C6 ED 90 00 [18:17:47]wFMCommunicate OK [18:17:47]SAM_PROTO_SignData done [18:17:47]FM_MakeSignedData done [18:17:47]CreateOFDProtocolMessage [18:17:47]wFMCommunicate request_size=4 [18:17:47]MH_SAM_APDU [18:17:47]CAPDU: 80 11 00 00 [18:17:47]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:47]OFD Sender: No OFD packet to send [18:17:47]Read from MH i2c: E2 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 17 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A0 [18:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:17:47]wFMCommunicate OK [18:17:47]CreateOFDProtocolMessage done [18:17:47]OFDSenderStorePacket 202138 [18:17:47]StoreOFDPacket docnum=202138 [18:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 B9 1C 04 01 C9 5B 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 32 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 AE 01 00 00 F4 03 04 00 CB 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 15 03 00 35 04 06 00 B3 74 EE 01 7B DF 72 0B 23 09 8F C8 C6 ED [18:17:47]CheckFolder [18:17:47]dirname=/storage/ofd_packets [18:17:47]CheckFolder done [18:17:47]ProducePacketName [18:17:47]name=ofd_packets/00202138 [18:17:47]NVStorageSaveData ofd_packets/00202138 [18:17:47]File name is /storage/ofd_packets/00202138 [18:17:47]Write 298 bytes [18:17:47]NVStorageSaveData done [18:17:47]OFDSenderStorePacket done [18:17:47]KKMCreateOFDPacket done [18:17:47]NVStorageSaveData kkm_last_timestamp [18:17:47]File name is /storage/kkm_last_timestamp [18:17:47]Write 4 bytes [18:17:47]NVStorageSaveData done [18:17:47]ExternCall_PrintAddStr [18:17:47]wPrintStart [18:17:47]Write to MH i2c: 01 00 00 CE 04 D2 [18:17:47]Write i2c OK [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 07 00 [18:17:47]MH_I2C_Read... [18:17:47]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [18:17:47]RasterBufferAndPrint [18:17:47]line Счет N : (1)449909 [18:17:47]line ИНН: 02508201610067 [18:17:47]line Контрольно-Кассовый Чек [18:17:47]line ПРОДАЖА [18:17:47]line ТРК (МРК, ГНК) : 11 [18:17:47]line Товар: 2710194210 [18:17:47]line ДТ-К-2 [18:17:47]line 13.130 * 76.20 [18:17:47]line = 1000.51 [18:17:47]line НДС 12% НСП 1% [18:17:47]line > о реализуемом товаре [18:17:47]line ОКРУГЛЕНИЕ: -0.51 [18:17:47]line ИТОГО: 1000.00 [18:17:47]line Внесено: 1000.00 [18:17:47]line СДАЧА: 0.00 [18:17:47]line НСП 1% : 8.85 [18:17:47]line НДС 12% : 106.25 [18:17:47]line Наличными: 1000.00 [18:17:47]line Безнал.: 0.00 [18:17:47]line Место: АЗС № 171 "Партнер Нефть" [18:17:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:17:47]line СНО: Общий режим [18:17:47]line Чек 430 27.10.2024 18:17 [18:17:47]line Смена: 544 ФФД: 1.0 [18:17:47]line ЗНМ: 0300000109 [18:17:47]line РНМ: 0000000000091777 [18:17:47]line Версия ККМ: 001 [18:17:47]line ФМ: 0000000000871756 [18:17:48]line ФД: 202138 [18:17:48]line ФПД: 197314790652895 [18:17:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181747&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202138&fm=197314790652895&tin=02508201610067®Number=0000000000091777&sum=100000 [18:17:48]OFD Sender: Processing packet 202138 [packets to send 114, broken 113] [18:17:48]ProducePacketName [18:17:48]name=ofd_packets/00202138 [18:17:48]OFD Sender: To server: pG, [18:17:48]CommunicateWithHost lk.salyk.kg:30040 [18:17:48]ConnectInit lk.salyk.kg [18:17:48]written 0, free lines is 4095 [18:17:48]Connected sock=10 [18:17:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 B9 1C 04 01 C9 5B 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 32 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 AE 01 00 00 F4 03 04 00 CB 83 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 15 03 00 35 04 06 00 B3 74 EE 01 7B DF 72 0B 23 09 8F C8 C6 ED [18:17:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 79 6B 47 00 DB C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 15 03 00 F4 03 04 00 84 2F 1E 67 B6 04 01 00 00 64 C0 04 5D FE 4B 63 55 [18:17:48]CommunicateWithHost err = 0 [18:17:48]CheckOFDResponse [18:17:48]1017 (14) - 77093643461234 [18:17:48]1041 (16) - 0000000000871756 [18:17:48]1040 (4) - 202138 [18:17:48]1012 (4) - 27.10.2024 12:18 [18:17:48]1206 (1) - 0 [18:17:48]OFD Sender: Remove packet 202138 [18:17:48]ProducePacketName [18:17:48]name=ofd_packets/00202138 [18:17:48]NVStorageDeleteData [18:17:48]Write to MH i2c: 01 00 00 F9 04 FD [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: 01 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: 01 07 00 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 8C 0C 9C [18:17:48]RasterBufferAndPrint [18:17:48]line [18:17:48]line [18:17:48]line [18:17:48]line [18:17:48]line [18:17:48]written 0, free lines is 3216 [18:17:48]MH_Cut [18:17:48]Write to MH i2c: D1 01 00 00 05 01 D7 [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: D1 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: D1 01 00 [18:17:48]MH_I2C_Read... [18:17:48]Read from MH i2c: D1 01 00 00 05 00 D6 [18:17:48]Write to MH i2c: 01 00 00 01 05 06 [18:17:48]Write i2c OK [18:17:48]MH_I2C_Read... [18:17:49]OFD Sender: No OFD packet to send [18:17:49]*** Cut start [18:17:49]*** Purtial cut [18:17:49]*** Stage 1: CUTSNS_PIN = 1 [18:17:49]Read from MH i2c: 01 [18:17:49]MH_I2C_Read... [18:17:49]*** Stop cut motor [18:17:49]*** Cut end [18:17:49]Read from MH i2c: 01 07 00 [18:17:49]MH_I2C_Read... [18:17:49]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [18:17:49]process_action close_receipt done [18:17:49]requested_data is exist [18:17:49]produce_requested_data [18:17:49]requested_item fm.sn is exist - process it [18:17:49]wFMCommunicate request_size=4 [18:17:49]MH_SAM_APDU [18:17:49]CAPDU: 80 11 00 00 [18:17:49]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [18:17:49]Write i2c OK [18:17:49]MH_I2C_Read... [18:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:49]Read from MH i2c: E2 [18:17:49]MH_I2C_Read... [18:17:49]Read from MH i2c: E2 17 00 [18:17:49]MH_I2C_Read... [18:17:49]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [18:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:17:49]wFMCommunicate OK [18:17:49]requested_item fd.num is exist - process it [18:17:49]SAM_PROTO_GetFieldsCounters [18:17:49]wFMCommunicate request_size=4 [18:17:49]MH_SAM_APDU [18:17:49]CAPDU: 80 13 00 00 [18:17:49]Write to MH i2c: E2 08 00 03 05 80 13 00 00 00 00 00 00 84 [18:17:49]Write i2c OK [18:17:49]MH_I2C_Read... [18:17:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:50]Read from MH i2c: E2 [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: E2 62 00 [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: E2 62 00 03 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [18:17:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9A 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:50]wFMCommunicate OK [18:17:50]SAM_PROTO_GetFieldsCounters done [18:17:50]requested_item shift.num is exist - process it [18:17:50]requested_item shift.opened is exist - process it [18:17:50]req_shift_opened [18:17:50]FM_GetShiftState [18:17:50]SAM_PROTO_GetShiftState [18:17:50]wFMCommunicate request_size=4 [18:17:50]MH_SAM_APDU [18:17:50]CAPDU: 80 13 01 00 [18:17:50]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [18:17:50]Write i2c OK [18:17:50]MH_I2C_Read... [18:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:50]Read from MH i2c: E2 [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: E2 0E 00 [18:17:50]MH_I2C_Read... [18:17:50]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 88 [18:17:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:17:50]wFMCommunicate OK [18:17:50]SAM_PROTO_GetShiftState done [18:17:50]FM_GetShiftState done [18:17:50]req_shift_opened done [18:17:50]requested_item shift.open_date is exist - process it [18:17:50]req_shift_open_date [18:17:50]req_shift_open_date done [18:17:50]produce_requested_data done [18:17:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202138,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:17:50]process_action_free close_receipt [18:17:50]json_value_free [18:17:50]json_value_free done [18:17:50]process_json_proto returns [18:17:50]Send response to host [18:17:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202138,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:17:50]free response buf [18:17:50]execute_script done [18:17:50]execute_script returns [18:17:50]free content buf [18:17:50]Sock 9.Close socket [18:17:50]Sock 9.Thread stoped [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:13]accept exits with 7 [18:19:13]New connection [18:19:13]New thread 3066658148 created [18:19:13]Thread 3066801508 joined [18:19:13]Waiting for new connection... [18:19:13] Sock 7.Parse request [18:19:13]Sock 7.Check first char [18:19:13]Sock 7.First char is OK [18:19:13]request: POST /json_proto HTTP/1.0 [18:19:13]Method: POST [18:19:13]URL: /json_proto [18:19:13]Method is POST - this is cgi request [18:19:13]url: /json_proto [18:19:13]query_string will be loaded in cgi processing [18:19:13]execute_cgi json_proto POST (null) [18:19:13]execute_cgi path=json_proto method=POST [18:19:13]POST find Content-Length [18:19:13]Host: 172.17.63.195:8080 [18:19:13]Content-Length: 677 [18:19:13]Content-Type: application/json [18:19:13] [18:19:13]POST finish read [18:19:13]Found Content-Length = 677 [18:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:19:13]execute_script... [18:19:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:19:13]POST & json_proto [18:19:13]process_json_proto [18:19:13]json parsed OK: [18:19:13]protocol is kg_v1.0 [18:19:13]action value=close_receipt [18:19:13]process_action close_receipt [18:19:13]cmd_close_receipt [18:19:13]MH_GetDate [18:19:13]Write to MH i2c: F0 00 00 05 05 F9 [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: F0 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: F0 09 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: F0 09 00 05 05 00 21 84 1E 67 47 1B 1E 67 13 [18:19:13]GetLastDocTimeStamp 1730053067 [18:19:13]current date 1730053153 [18:19:13]FM_GetShiftState [18:19:13]SAM_PROTO_GetShiftState [18:19:13]wFMCommunicate request_size=4 [18:19:13]MH_SAM_APDU [18:19:13]CAPDU: 80 13 01 00 [18:19:13]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:13]Read from MH i2c: E2 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 0E 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8A [18:19:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:19:13]wFMCommunicate OK [18:19:13]SAM_PROTO_GetShiftState done [18:19:13]FM_GetShiftState done [18:19:13]opened in 1729987312 [18:19:13]opened+sec_in_day 1730073712 [18:19:13]quantity*price = 30038 [18:19:13]sum+1 = 30039 [18:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 431 27.10.2024 18:19 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202139 ФПД: 203675514788539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181913&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202139&fm=203675514788539&tin=02508201610067®Number=0000000000091777&sum=30000 [18:19:14]StoreToDocumentArchive [18:19:14]shift 544 fd 202139 [18:19:14]save to /storage/0544/doc_00202139 [18:19:14]save last doc name /storage/0544/doc_00202139 to /storage/kkm_last_doc_name [18:19:14]save OK [18:19:14]Clear old archive folders... [18:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:14]tlvbuf is 006BA040 [18:19:14]SAM_PROTO_ClearQueue [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 09 00 00 [18:19:14]Write to MH i2c: E2 08 00 13 05 80 09 00 00 00 00 00 00 8A [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:14]OFD Sender: No OFD packet to send [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [18:19:14]RAPDU: 90 00 [18:19:14]wFMCommunicate OK [18:19:14]SAM_PROTO_ClearQueue done [18:19:14]KKMCreateOFDPacket [18:19:14]OFDProtocolAddRootSTLVToBuf [18:19:14]FM_MakeSignedData [18:19:14]FM_MakeSignedData [18:19:14]SAM_PROTO_SignData [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 0D 01 02 [18:19:14]Write to MH i2c: E2 08 00 14 05 80 0D 01 02 00 00 00 00 92 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [18:19:14]RAPDU: 90 00 [18:19:14]wFMCommunicate OK [18:19:14]wFMCommunicate request_size=255 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 01 00 00 F4 03 04 00 21 84 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 15 03 00 35 04 06 00 B9 [18:19:14]Write to MH i2c: E2 02 01 15 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 01 00 00 F4 03 04 00 21 84 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 15 03 00 35 04 06 00 B9 00 00 82 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [18:19:14]RAPDU: 90 00 [18:19:14]wFMCommunicate OK [18:19:14]wFMCommunicate request_size=10 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 0D 02 02 05 3D E6 B5 5A BB [18:19:14]Write to MH i2c: E2 0D 00 16 05 80 0D 02 02 05 00 3D E6 B5 5A BB 00 00 8C [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [18:19:14]RAPDU: 90 00 [18:19:14]wFMCommunicate OK [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 0D 03 02 [18:19:14]Write to MH i2c: E2 08 00 17 05 80 0D 03 02 00 00 00 00 97 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 0B 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 0B 00 17 05 00 AA 58 03 11 D1 36 DC 98 90 00 29 [18:19:14]RAPDU: AA 58 03 11 D1 36 DC 98 90 00 [18:19:14]wFMCommunicate OK [18:19:14]SAM_PROTO_SignData done [18:19:14]FM_MakeSignedData done [18:19:14]CreateOFDProtocolMessage [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 11 00 00 [18:19:14]Write to MH i2c: E2 08 00 18 05 80 11 00 00 00 00 00 00 97 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 17 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 17 00 18 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [18:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:19:14]wFMCommunicate OK [18:19:14]CreateOFDProtocolMessage done [18:19:14]OFDSenderStorePacket 202139 [18:19:14]StoreOFDPacket docnum=202139 [18:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E4 93 07 01 FD 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 01 00 00 F4 03 04 00 21 84 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 15 03 00 35 04 06 00 B9 3D E6 B5 5A BB AA 58 03 11 D1 36 DC 98 [18:19:14]CheckFolder [18:19:14]dirname=/storage/ofd_packets [18:19:14]CheckFolder done [18:19:14]ProducePacketName [18:19:14]name=ofd_packets/00202139 [18:19:14]NVStorageSaveData ofd_packets/00202139 [18:19:14]File name is /storage/ofd_packets/00202139 [18:19:14]Write 301 bytes [18:19:14]NVStorageSaveData done [18:19:14]OFDSenderStorePacket done [18:19:14]KKMCreateOFDPacket done [18:19:14]NVStorageSaveData kkm_last_timestamp [18:19:14]File name is /storage/kkm_last_timestamp [18:19:14]Write 4 bytes [18:19:14]NVStorageSaveData done [18:19:14]ExternCall_PrintAddStr [18:19:14]wPrintStart [18:19:14]Write to MH i2c: 01 00 00 19 05 1E [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: 01 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: 01 07 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [18:19:14]RasterBufferAndPrint [18:19:14]line Счет N : (1)449910 [18:19:14]line ИНН: 02508201610067 [18:19:14]line Контрольно-Кассовый Чек [18:19:14]line ПРОДАЖА [18:19:14]line ТРК (МРК, ГНК) : 41 [18:19:14]line Товар: 2710124130 [18:19:14]line Аи-92-К-2 [18:19:14]line 4.490 * 66.90 [18:19:14]line = 300.38 [18:19:14]line НДС 12% НСП 1% [18:19:14]line > о реализуемом товаре [18:19:14]line ОКРУГЛЕНИЕ: -0.38 [18:19:14]line ИТОГО: 300.00 [18:19:14]line Внесено: 300.00 [18:19:14]line СДАЧА: 0.00 [18:19:14]line НСП 1% : 2.66 [18:19:14]line НДС 12% : 31.90 [18:19:14]line Наличными: 300.00 [18:19:14]line Безнал.: 0.00 [18:19:14]line Место: АЗС № 171 "Партнер Нефть" [18:19:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:19:14]line СНО: Общий режим [18:19:14]line Чек 431 27.10.2024 18:19 [18:19:14]line Смена: 544 ФФД: 1.0 [18:19:14]line ЗНМ: 0300000109 [18:19:14]line РНМ: 0000000000091777 [18:19:14]line Версия ККМ: 001 [18:19:14]line ФМ: 0000000000871756 [18:19:14]line ФД: 202139 [18:19:14]line ФПД: 203675514788539 [18:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181913&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202139&fm=203675514788539&tin=02508201610067®Number=0000000000091777&sum=30000 [18:19:15]OFD Sender: Processing packet 202139 [packets to send 114, broken 113] [18:19:15]ProducePacketName [18:19:15]name=ofd_packets/00202139 [18:19:15]OFD Sender: To server: pG, [18:19:15]CommunicateWithHost lk.salyk.kg:30040 [18:19:15]ConnectInit lk.salyk.kg [18:19:15]written 0, free lines is 4095 [18:19:15]Connected sock=10 [18:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E4 93 07 01 FD 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AF 01 00 00 F4 03 04 00 21 84 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 15 03 00 35 04 06 00 B9 3D E6 B5 5A BB AA 58 03 11 D1 36 DC 98 [18:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 69 69 47 00 EE 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 15 03 00 F4 03 04 00 DA 2F 1E 67 B6 04 01 00 00 24 F2 67 EB CE 7E 1F 58 [18:19:15]CommunicateWithHost err = 0 [18:19:15]CheckOFDResponse [18:19:15]1017 (14) - 77093643461234 [18:19:15]1041 (16) - 0000000000871756 [18:19:15]1040 (4) - 202139 [18:19:15]1012 (4) - 27.10.2024 12:19 [18:19:15]1206 (1) - 0 [18:19:15]OFD Sender: Remove packet 202139 [18:19:15]ProducePacketName [18:19:15]name=ofd_packets/00202139 [18:19:15]NVStorageDeleteData [18:19:15]Write to MH i2c: 01 00 00 44 05 49 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: 01 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: 01 07 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: 01 07 00 44 05 00 00 00 00 00 90 0C EC [18:19:15]RasterBufferAndPrint [18:19:15]line [18:19:15]line [18:19:15]line [18:19:15]line [18:19:15]line [18:19:15]written 0, free lines is 3220 [18:19:15]MH_Cut [18:19:15]Write to MH i2c: D1 01 00 4B 05 01 22 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: D1 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: D1 01 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: D1 01 00 4B 05 00 21 [18:19:15]Write to MH i2c: 01 00 00 4C 05 51 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]OFD Sender: No OFD packet to send [18:19:16]*** Cut start [18:19:16]*** Purtial cut [18:19:16]*** Stage 1: CUTSNS_PIN = 1 [18:19:16]Read from MH i2c: 01 [18:19:16]MH_I2C_Read... [18:19:16]*** Stop cut motor [18:19:16]*** Cut end [18:19:16]Read from MH i2c: 01 07 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 FF 0F 66 [18:19:16]process_action close_receipt done [18:19:16]requested_data is exist [18:19:16]produce_requested_data [18:19:16]requested_item fm.sn is exist - process it [18:19:16]wFMCommunicate request_size=4 [18:19:16]MH_SAM_APDU [18:19:16]CAPDU: 80 11 00 00 [18:19:16]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:16]Read from MH i2c: E2 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 17 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [18:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:19:16]wFMCommunicate OK [18:19:16]requested_item fd.num is exist - process it [18:19:16]SAM_PROTO_GetFieldsCounters [18:19:16]wFMCommunicate request_size=4 [18:19:16]MH_SAM_APDU [18:19:16]CAPDU: 80 13 00 00 [18:19:16]Write to MH i2c: E2 08 00 4E 05 80 13 00 00 00 00 00 00 CF [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:16]Read from MH i2c: E2 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 62 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 62 00 4E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [18:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9B 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:16]wFMCommunicate OK [18:19:16]SAM_PROTO_GetFieldsCounters done [18:19:16]requested_item shift.num is exist - process it [18:19:16]requested_item shift.opened is exist - process it [18:19:16]req_shift_opened [18:19:16]FM_GetShiftState [18:19:16]SAM_PROTO_GetShiftState [18:19:16]wFMCommunicate request_size=4 [18:19:16]MH_SAM_APDU [18:19:16]CAPDU: 80 13 01 00 [18:19:16]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:16]Read from MH i2c: E2 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 0E 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D3 [18:19:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:19:16]wFMCommunicate OK [18:19:16]SAM_PROTO_GetShiftState done [18:19:16]FM_GetShiftState done [18:19:16]req_shift_opened done [18:19:16]requested_item shift.open_date is exist - process it [18:19:16]req_shift_open_date [18:19:16]req_shift_open_date done [18:19:16]produce_requested_data done [18:19:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202139,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:19:16]process_action_free close_receipt [18:19:16]json_value_free [18:19:16]json_value_free done [18:19:16]process_json_proto returns [18:19:16]Send response to host [18:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202139,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:19:16]free response buf [18:19:16]execute_script done [18:19:16]execute_script returns [18:19:16]free content buf [18:19:16]Sock 7.Close socket [18:19:16]Sock 7.Thread stoped [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:25:38]ConnectInit Can't connect to host [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:03]accept exits with 9 [18:27:03]New connection [18:27:03]New thread 3066801508 created [18:27:03]Thread 3066658148 joined [18:27:03]Waiting for new connection... [18:27:03] Sock 9.Parse request [18:27:03]Sock 9.Check first char [18:27:03]Sock 9.First char is OK [18:27:03]request: POST /json_proto HTTP/1.0 [18:27:03]Method: POST [18:27:03]URL: /json_proto [18:27:03]Method is POST - this is cgi request [18:27:03]url: /json_proto [18:27:03]query_string will be loaded in cgi processing [18:27:03]execute_cgi json_proto POST (null) [18:27:03]execute_cgi path=json_proto method=POST [18:27:03]POST find Content-Length [18:27:03]Host: 172.17.63.195:8080 [18:27:03]Content-Length: 677 [18:27:03]Content-Type: application/json [18:27:03] [18:27:03]POST finish read [18:27:03]Found Content-Length = 677 [18:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:27:03]execute_script... [18:27: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)449911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:27:03]POST & json_proto [18:27:03]process_json_proto [18:27:03]json parsed OK: [18:27:03]protocol is kg_v1.0 [18:27:03]action value=close_receipt [18:27:03]process_action close_receipt [18:27:03]cmd_close_receipt [18:27:03]MH_GetDate [18:27:03]Write to MH i2c: F0 00 00 50 05 44 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 09 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: F0 09 00 50 05 00 F8 85 1E 67 47 1B 1E 67 36 [18:27:03]GetLastDocTimeStamp 1730053153 [18:27:03]current date 1730053624 [18:27:03]FM_GetShiftState [18:27:03]SAM_PROTO_GetShiftState [18:27:03]wFMCommunicate request_size=4 [18:27:03]MH_SAM_APDU [18:27:03]CAPDU: 80 13 01 00 [18:27:03]Write to MH i2c: E2 08 00 51 05 80 13 01 00 00 00 00 00 D3 [18:27:03]Write i2c OK [18:27:03]MH_I2C_Read... [18:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:03]Read from MH i2c: E2 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 0E 00 [18:27:03]MH_I2C_Read... [18:27:03]Read from MH i2c: E2 0E 00 51 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D5 [18:27:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:27:03]wFMCommunicate OK [18:27:03]SAM_PROTO_GetShiftState done [18:27:03]FM_GetShiftState done [18:27:03]opened in 1729987312 [18:27:03]opened+sec_in_day 1730073712 [18:27:03]quantity*price = 30038 [18:27:03]sum+1 = 30039 [18:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 432 27.10.2024 18:27 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202140 ФПД: 240239632661821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182704&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202140&fm=240239632661821&tin=02508201610067®Number=0000000000091777&sum=30000 [18:27:04]StoreToDocumentArchive [18:27:04]shift 544 fd 202140 [18:27:04]save to /storage/0544/doc_00202140 [18:27:04]save last doc name /storage/0544/doc_00202140 to /storage/kkm_last_doc_name [18:27:04]save OK [18:27:04]Clear old archive folders... [18:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:04]tlvbuf is 006C4170 [18:27:04]SAM_PROTO_ClearQueue [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 09 00 00 [18:27:04]Write to MH i2c: E2 08 00 5E 05 80 09 00 00 00 00 00 00 D5 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]SAM_PROTO_ClearQueue done [18:27:04]KKMCreateOFDPacket [18:27:04]OFDProtocolAddRootSTLVToBuf [18:27:04]FM_MakeSignedData [18:27:04]FM_MakeSignedData [18:27:04]SAM_PROTO_SignData [18:27:04]wFMCommunicate request_size=4 [18:27:04]MH_SAM_APDU [18:27:04]CAPDU: 80 0D 01 02 [18:27:04]Write to MH i2c: E2 08 00 5F 05 80 0D 01 02 00 00 00 00 DD [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:04]Read from MH i2c: E2 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 [18:27:04]MH_I2C_Read... [18:27:04]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [18:27:04]RAPDU: 90 00 [18:27:04]wFMCommunicate OK [18:27:04]wFMCommunicate request_size=255 [18:27:04]MH_SAM_APDU [18:27: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 32 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 B0 01 00 00 F4 03 04 00 F8 85 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 15 03 00 35 04 06 00 DA [18:27:04]Write to MH i2c: E2 02 01 60 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 01 00 00 F4 03 04 00 F8 85 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 15 03 00 35 04 06 00 DA 00 00 C8 [18:27:04]Write i2c OK [18:27:04]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]wFMCommunicate request_size=10 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 02 02 05 7F 25 F7 3D 3D [18:27:05]Write to MH i2c: E2 0D 00 61 05 80 0D 02 02 05 00 7F 25 F7 3D 3D 00 00 FF [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [18:27:05]RAPDU: 90 00 [18:27:05]wFMCommunicate OK [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 0D 03 02 [18:27:05]Write to MH i2c: E2 08 00 62 05 80 0D 03 02 00 00 00 00 E2 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0B 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0B 00 62 05 00 AA 5A 0B A5 06 8A BD 36 90 00 1A [18:27:05]RAPDU: AA 5A 0B A5 06 8A BD 36 90 00 [18:27:05]wFMCommunicate OK [18:27:05]SAM_PROTO_SignData done [18:27:05]FM_MakeSignedData done [18:27:05]CreateOFDProtocolMessage [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 11 00 00 [18:27:05]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 37 [18:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:27:05]wFMCommunicate OK [18:27:05]CreateOFDProtocolMessage done [18:27:05]OFDSenderStorePacket 202140 [18:27:05]StoreOFDPacket docnum=202140 [18:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 21 93 07 01 AC 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 01 00 00 F4 03 04 00 F8 85 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 15 03 00 35 04 06 00 DA 7F 25 F7 3D 3D AA 5A 0B A5 06 8A BD 36 [18:27:05]CheckFolder [18:27:05]dirname=/storage/ofd_packets [18:27:05]CheckFolder done [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00202140 [18:27:05]NVStorageSaveData ofd_packets/00202140 [18:27:05]File name is /storage/ofd_packets/00202140 [18:27:05]Write 301 bytes [18:27:05]NVStorageSaveData done [18:27:05]OFDSenderStorePacket done [18:27:05]KKMCreateOFDPacket done [18:27:05]NVStorageSaveData kkm_last_timestamp [18:27:05]File name is /storage/kkm_last_timestamp [18:27:05]Write 4 bytes [18:27:05]NVStorageSaveData done [18:27:05]ExternCall_PrintAddStr [18:27:05]wPrintStart [18:27:05]Write to MH i2c: 01 00 00 64 05 69 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: 01 07 00 64 05 00 00 00 00 00 FF 0F 7E [18:27:05]RasterBufferAndPrint [18:27:05]line Счет N : (1)449911 [18:27:05]line ИНН: 02508201610067 [18:27:05]line Контрольно-Кассовый Чек [18:27:05]line ПРОДАЖА [18:27:05]line ТРК (МРК, ГНК) : 41 [18:27:05]line Товар: 2710124130 [18:27:05]line Аи-92-К-2 [18:27:05]line 4.490 * 66.90 [18:27:05]line = 300.38 [18:27:05]line НДС 12% НСП 1% [18:27:05]line > о реализуемом товаре [18:27:05]line ОКРУГЛЕНИЕ: -0.38 [18:27:05]line ИТОГО: 300.00 [18:27:05]line Внесено: 300.00 [18:27:05]line СДАЧА: 0.00 [18:27:05]line НСП 1% : 2.66 [18:27:05]line НДС 12% : 31.90 [18:27:05]line Наличными: 300.00 [18:27:05]line Безнал.: 0.00 [18:27:05]line Место: АЗС № 171 "Партнер Нефть" [18:27:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:27:05]line СНО: Общий режим [18:27:05]line Чек 432 27.10.2024 18:27 [18:27:05]line Смена: 544 ФФД: 1.0 [18:27:05]line ЗНМ: 0300000109 [18:27:05]line РНМ: 0000000000091777 [18:27:05]line Версия ККМ: 001 [18:27:05]line ФМ: 0000000000871756 [18:27:05]line ФД: 202140 [18:27:05]line ФПД: 240239632661821 [18:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182704&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202140&fm=240239632661821&tin=02508201610067®Number=0000000000091777&sum=30000 [18:27:05]OFD Sender: Processing packet 202140 [packets to send 114, broken 113] [18:27:05]ProducePacketName [18:27:05]name=ofd_packets/00202140 [18:27:05]OFD Sender: To server: pG, [18:27:05]CommunicateWithHost lk.salyk.kg:30040 [18:27:05]ConnectInit lk.salyk.kg [18:27:05]written 0, free lines is 4095 [18:27:05]Connected sock=10 [18:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 21 93 07 01 AC 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 01 00 00 F4 03 04 00 F8 85 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 15 03 00 35 04 06 00 DA 7F 25 F7 3D 3D AA 5A 0B A5 06 8A BD 36 [18:27:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 68 E6 47 00 42 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 15 03 00 F4 03 04 00 B1 31 1E 67 B6 04 01 00 00 33 AB CB A2 34 EF 14 EB [18:27:06]CommunicateWithHost err = 0 [18:27:06]CheckOFDResponse [18:27:06]1017 (14) - 77093643461234 [18:27:06]1041 (16) - 0000000000871756 [18:27:06]1040 (4) - 202140 [18:27:06]1012 (4) - 27.10.2024 12:27 [18:27:06]1206 (1) - 0 [18:27:06]OFD Sender: Remove packet 202140 [18:27:06]ProducePacketName [18:27:06]name=ofd_packets/00202140 [18:27:06]NVStorageDeleteData [18:27:06]Write to MH i2c: 01 00 00 8F 05 94 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 9F 0C 46 [18:27:06]RasterBufferAndPrint [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]line [18:27:06]written 0, free lines is 3235 [18:27:06]MH_Cut [18:27:06]Write to MH i2c: D1 01 00 96 05 01 6D [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 01 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: D1 01 00 96 05 00 6C [18:27:06]Write to MH i2c: 01 00 00 97 05 9C [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]OFD Sender: No OFD packet to send [18:27:07]*** Cut start [18:27:07]*** Purtial cut [18:27:07]*** CUTSNS_PIN = 0 [18:27:07]*** Stage 1: CUTSNS_PIN = 1 [18:27:09]Read from MH i2c: 01 [18:27:09]MH_I2C_Read... [18:27:09]*** Stop cut motor [18:27:09]*** Cut end [18:27:09]Read from MH i2c: 01 07 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [18:27:09]process_action close_receipt done [18:27:09]requested_data is exist [18:27:09]produce_requested_data [18:27:09]requested_item fm.sn is exist - process it [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 11 00 00 [18:27:09]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 17 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [18:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:27:09]wFMCommunicate OK [18:27:09]requested_item fd.num is exist - process it [18:27:09]SAM_PROTO_GetFieldsCounters [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 13 00 00 [18:27:09]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 62 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 62 00 99 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9C 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:09]wFMCommunicate OK [18:27:09]SAM_PROTO_GetFieldsCounters done [18:27:09]requested_item shift.num is exist - process it [18:27:09]requested_item shift.opened is exist - process it [18:27:09]req_shift_opened [18:27:09]FM_GetShiftState [18:27:09]SAM_PROTO_GetShiftState [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 13 01 00 [18:27:09]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 0E 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1E [18:27:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:27:09]wFMCommunicate OK [18:27:09]SAM_PROTO_GetShiftState done [18:27:09]FM_GetShiftState done [18:27:09]req_shift_opened done [18:27:09]requested_item shift.open_date is exist - process it [18:27:09]req_shift_open_date [18:27:09]req_shift_open_date done [18:27:09]produce_requested_data done [18:27:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202140,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:27:09]process_action_free close_receipt [18:27:09]json_value_free [18:27:09]json_value_free done [18:27:09]process_json_proto returns [18:27:09]Send response to host [18:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202140,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:27:09]free response buf [18:27:09]execute_script done [18:27:09]execute_script returns [18:27:09]free content buf [18:27:09]Sock 9.Close socket [18:27:09]Sock 9.Thread stoped [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:03]accept exits with 7 [18:30:03]New connection [18:30:03]New thread 3066658148 created [18:30:03]Thread 3066801508 joined [18:30:03]Waiting for new connection... [18:30:03] Sock 7.Parse request [18:30:03]Sock 7.Check first char [18:30:03]Sock 7.First char is OK [18:30:03]request: POST /json_proto HTTP/1.0 [18:30:03]Method: POST [18:30:03]URL: /json_proto [18:30:03]Method is POST - this is cgi request [18:30:03]url: /json_proto [18:30:03]query_string will be loaded in cgi processing [18:30:03]execute_cgi json_proto POST (null) [18:30:03]execute_cgi path=json_proto method=POST [18:30:03]POST find Content-Length [18:30:03]Host: 172.17.63.195:8080 [18:30:03]Content-Length: 677 [18:30:03]Content-Type: application/json [18:30:03] [18:30:03]POST finish read [18:30:03]Found Content-Length = 677 [18:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:30:03]execute_script... [18:30: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)449913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:30:03]POST & json_proto [18:30:03]process_json_proto [18:30:03]json parsed OK: [18:30:03]protocol is kg_v1.0 [18:30:03]action value=close_receipt [18:30:03]process_action close_receipt [18:30:03]cmd_close_receipt [18:30:03]MH_GetDate [18:30:03]Write to MH i2c: F0 00 00 9B 05 8F [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: F0 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: F0 09 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: F0 09 00 9B 05 00 AB 86 1E 67 47 1B 1E 67 35 [18:30:03]GetLastDocTimeStamp 1730053624 [18:30:03]current date 1730053803 [18:30:03]FM_GetShiftState [18:30:03]SAM_PROTO_GetShiftState [18:30:03]wFMCommunicate request_size=4 [18:30:03]MH_SAM_APDU [18:30:03]CAPDU: 80 13 01 00 [18:30:03]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:03]Read from MH i2c: E2 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 0E 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 20 [18:30:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:30:03]wFMCommunicate OK [18:30:03]SAM_PROTO_GetShiftState done [18:30:03]FM_GetShiftState done [18:30:03]opened in 1729987312 [18:30:03]opened+sec_in_day 1730073712 [18:30:03]quantity*price = 50041 [18:30:03]sum+1 = 50042 [18:30:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 433 27.10.2024 18:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202141 ФПД: 205821725274422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202141&fm=205821725274422&tin=02508201610067®Number=0000000000091777&sum=50000 [18:30:04]StoreToDocumentArchive [18:30:04]shift 544 fd 202141 [18:30:04]save to /storage/0544/doc_00202141 [18:30:04]save last doc name /storage/0544/doc_00202141 to /storage/kkm_last_doc_name [18:30:04]save OK [18:30:04]Clear old archive folders... [18:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:04]tlvbuf is 0069D400 [18:30:04]SAM_PROTO_ClearQueue [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 09 00 00 [18:30:04]Write to MH i2c: E2 08 00 A9 05 80 09 00 00 00 00 00 00 20 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [18:30:04]RAPDU: 90 00 [18:30:04]wFMCommunicate OK [18:30:04]SAM_PROTO_ClearQueue done [18:30:04]KKMCreateOFDPacket [18:30:04]OFDProtocolAddRootSTLVToBuf [18:30:04]FM_MakeSignedData [18:30:04]FM_MakeSignedData [18:30:04]SAM_PROTO_SignData [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 0D 01 02 [18:30:04]Write to MH i2c: E2 08 00 AA 05 80 0D 01 02 00 00 00 00 28 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [18:30:04]RAPDU: 90 00 [18:30:04]wFMCommunicate OK [18:30:04]wFMCommunicate request_size=255 [18:30:04]MH_SAM_APDU [18:30: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 32 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 B1 01 00 00 F4 03 04 00 AB 86 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 15 03 00 35 04 06 00 BB [18:30:04]Write to MH i2c: E2 02 01 AB 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 01 00 00 F4 03 04 00 AB 86 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 15 03 00 35 04 06 00 BB 00 00 B6 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [18:30:04]RAPDU: 90 00 [18:30:04]wFMCommunicate OK [18:30:04]wFMCommunicate request_size=10 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 0D 02 02 05 31 9A D2 71 36 [18:30:04]Write to MH i2c: E2 0D 00 AC 05 80 0D 02 02 05 00 31 9A D2 71 36 00 00 79 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [18:30:04]RAPDU: 90 00 [18:30:04]wFMCommunicate OK [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 0D 03 02 [18:30:04]Write to MH i2c: E2 08 00 AD 05 80 0D 03 02 00 00 00 00 2D [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 0B 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 0B 00 AD 05 00 1C 77 B3 89 D4 84 62 5D 90 00 14 [18:30:04]RAPDU: 1C 77 B3 89 D4 84 62 5D 90 00 [18:30:04]wFMCommunicate OK [18:30:04]SAM_PROTO_SignData done [18:30:04]FM_MakeSignedData done [18:30:04]CreateOFDProtocolMessage [18:30:04]wFMCommunicate request_size=4 [18:30:04]MH_SAM_APDU [18:30:04]CAPDU: 80 11 00 00 [18:30:04]Write to MH i2c: E2 08 00 AE 05 80 11 00 00 00 00 00 00 2D [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:04]Read from MH i2c: E2 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 17 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: E2 17 00 AE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 82 [18:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:30:04]wFMCommunicate OK [18:30:04]CreateOFDProtocolMessage done [18:30:04]OFDSenderStorePacket 202141 [18:30:04]StoreOFDPacket docnum=202141 [18:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AE C1 07 01 02 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 01 00 00 F4 03 04 00 AB 86 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 15 03 00 35 04 06 00 BB 31 9A D2 71 36 1C 77 B3 89 D4 84 62 5D [18:30:04]CheckFolder [18:30:04]dirname=/storage/ofd_packets [18:30:04]CheckFolder done [18:30:04]ProducePacketName [18:30:04]name=ofd_packets/00202141 [18:30:04]NVStorageSaveData ofd_packets/00202141 [18:30:04]File name is /storage/ofd_packets/00202141 [18:30:04]Write 301 bytes [18:30:04]NVStorageSaveData done [18:30:04]OFDSenderStorePacket done [18:30:04]KKMCreateOFDPacket done [18:30:04]NVStorageSaveData kkm_last_timestamp [18:30:04]File name is /storage/kkm_last_timestamp [18:30:04]Write 4 bytes [18:30:04]NVStorageSaveData done [18:30:04]ExternCall_PrintAddStr [18:30:04]wPrintStart [18:30:04]Write to MH i2c: 01 00 00 AF 05 B4 [18:30:04]Write i2c OK [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 07 00 [18:30:04]MH_I2C_Read... [18:30:04]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 FF 0F C9 [18:30:04]RasterBufferAndPrint [18:30:04]line Счет N : (1)449913 [18:30:04]line ИНН: 02508201610067 [18:30:04]line Контрольно-Кассовый Чек [18:30:04]line ПРОДАЖА [18:30:04]line ТРК (МРК, ГНК) : 41 [18:30:04]line Товар: 2710124130 [18:30:04]line Аи-92-К-2 [18:30:04]line 7.480 * 66.90 [18:30:04]line = 500.41 [18:30:04]line НДС 12% НСП 1% [18:30:04]line > о реализуемом товаре [18:30:04]line ОКРУГЛЕНИЕ: -0.41 [18:30:04]line ИТОГО: 500.00 [18:30:04]line Внесено: 500.00 [18:30:04]line СДАЧА: 0.00 [18:30:04]line НСП 1% : 4.43 [18:30:04]line НДС 12% : 53.14 [18:30:04]line Наличными: 500.00 [18:30:04]line Безнал.: 0.00 [18:30:04]line Место: АЗС № 171 "Партнер Нефть" [18:30:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:30:04]line СНО: Общий режим [18:30:04]line Чек 433 27.10.2024 18:30 [18:30:04]line Смена: 544 ФФД: 1.0 [18:30:04]line ЗНМ: 0300000109 [18:30:04]line РНМ: 0000000000091777 [18:30:04]line Версия ККМ: 001 [18:30:04]line ФМ: 0000000000871756 [18:30:04]line ФД: 202141 [18:30:04]line ФПД: 205821725274422 [18:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202141&fm=205821725274422&tin=02508201610067®Number=0000000000091777&sum=50000 [18:30:05]OFD Sender: Processing packet 202141 [packets to send 114, broken 113] [18:30:05]ProducePacketName [18:30:05]name=ofd_packets/00202141 [18:30:05]OFD Sender: To server: pG, [18:30:05]CommunicateWithHost lk.salyk.kg:30040 [18:30:05]ConnectInit lk.salyk.kg [18:30:05]written 0, free lines is 4095 [18:30:05]Connected sock=10 [18:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AE C1 07 01 02 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 01 00 00 F4 03 04 00 AB 86 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 15 03 00 35 04 06 00 BB 31 9A D2 71 36 1C 77 B3 89 D4 84 62 5D [18:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 05 BB 47 00 B7 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 15 03 00 F4 03 04 00 65 32 1E 67 B6 04 01 00 00 82 63 1F EC 59 68 2D 3F [18:30:05]CommunicateWithHost err = 0 [18:30:05]CheckOFDResponse [18:30:05]1017 (14) - 77093643461234 [18:30:05]1041 (16) - 0000000000871756 [18:30:05]1040 (4) - 202141 [18:30:05]1012 (4) - 27.10.2024 12:30 [18:30:05]1206 (1) - 0 [18:30:05]OFD Sender: Remove packet 202141 [18:30:05]ProducePacketName [18:30:05]name=ofd_packets/00202141 [18:30:05]NVStorageDeleteData [18:30:05]Write to MH i2c: 01 00 00 DA 05 DF [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 07 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: 01 07 00 DA 05 00 00 00 00 00 99 0C 8B [18:30:05]RasterBufferAndPrint [18:30:05]line [18:30:05]line [18:30:05]line [18:30:05]line [18:30:05]line [18:30:05]written 0, free lines is 3231 [18:30:05]MH_Cut [18:30:05]Write to MH i2c: D1 01 00 E1 05 01 B8 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: D1 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: D1 01 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: D1 01 00 E1 05 00 B7 [18:30:05]Write to MH i2c: 01 00 00 E2 05 E7 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:06]OFD Sender: No OFD packet to send [18:30:06]*** Cut start [18:30:06]*** Purtial cut [18:30:06]*** Stage 1: CUTSNS_PIN = 1 [18:30:06]Read from MH i2c: 01 [18:30:06]MH_I2C_Read... [18:30:06]*** Stop cut motor [18:30:06]*** Cut end [18:30:06]Read from MH i2c: 01 07 00 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 FF 0F FC [18:30:06]process_action close_receipt done [18:30:06]requested_data is exist [18:30:06]produce_requested_data [18:30:06]requested_item fm.sn is exist - process it [18:30:06]wFMCommunicate request_size=4 [18:30:06]MH_SAM_APDU [18:30:06]CAPDU: 80 11 00 00 [18:30:06]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [18:30:06]Write i2c OK [18:30:06]MH_I2C_Read... [18:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:06]Read from MH i2c: E2 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: E2 17 00 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [18:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:30:06]wFMCommunicate OK [18:30:06]requested_item fd.num is exist - process it [18:30:06]SAM_PROTO_GetFieldsCounters [18:30:06]wFMCommunicate request_size=4 [18:30:06]MH_SAM_APDU [18:30:06]CAPDU: 80 13 00 00 [18:30:06]Write to MH i2c: E2 08 00 E4 05 80 13 00 00 00 00 00 00 65 [18:30:06]Write i2c OK [18:30:06]MH_I2C_Read... [18:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:06]Read from MH i2c: E2 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: E2 62 00 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: E2 62 00 E4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [18:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9D 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:06]wFMCommunicate OK [18:30:06]SAM_PROTO_GetFieldsCounters done [18:30:06]requested_item shift.num is exist - process it [18:30:06]requested_item shift.opened is exist - process it [18:30:06]req_shift_opened [18:30:06]FM_GetShiftState [18:30:06]SAM_PROTO_GetShiftState [18:30:06]wFMCommunicate request_size=4 [18:30:06]MH_SAM_APDU [18:30:06]CAPDU: 80 13 01 00 [18:30:06]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [18:30:06]Write i2c OK [18:30:06]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 0E 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 69 [18:30:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:30:07]wFMCommunicate OK [18:30:07]SAM_PROTO_GetShiftState done [18:30:07]FM_GetShiftState done [18:30:07]req_shift_opened done [18:30:07]requested_item shift.open_date is exist - process it [18:30:07]req_shift_open_date [18:30:07]req_shift_open_date done [18:30:07]produce_requested_data done [18:30:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202141,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:30:07]process_action_free close_receipt [18:30:07]json_value_free [18:30:07]json_value_free done [18:30:07]process_json_proto returns [18:30:07]Send response to host [18:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202141,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:30:07]free response buf [18:30:07]execute_script done [18:30:07]execute_script returns [18:30:07]free content buf [18:30:07]Sock 7.Close socket [18:30:07]Sock 7.Thread stoped [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:42]accept exits with 9 [18:30:42]New connection [18:30:42]New thread 3066801508 created [18:30:42]Thread 3066658148 joined [18:30:42]Waiting for new connection... [18:30:42] Sock 9.Parse request [18:30:42]Sock 9.Check first char [18:30:42]Sock 9.First char is OK [18:30:42]request: POST /json_proto HTTP/1.0 [18:30:42]Method: POST [18:30:42]URL: /json_proto [18:30:42]Method is POST - this is cgi request [18:30:42]url: /json_proto [18:30:42]query_string will be loaded in cgi processing [18:30:42]execute_cgi json_proto POST (null) [18:30:42]execute_cgi path=json_proto method=POST [18:30:42]POST find Content-Length [18:30:42]Host: 172.17.63.195:8080 [18:30:42]Content-Length: 675 [18:30:42]Content-Type: application/json [18:30:42] [18:30:42]POST finish read [18:30:42]Found Content-Length = 675 [18:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [18:30:42]execute_script... [18:30:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [18:30:42]POST & json_proto [18:30:42]process_json_proto [18:30:42]json parsed OK: [18:30:42]protocol is kg_v1.0 [18:30:42]action value=close_receipt [18:30:42]process_action close_receipt [18:30:42]cmd_close_receipt [18:30:42]MH_GetDate [18:30:42]Write to MH i2c: F0 00 00 E6 05 DA [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: F0 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: F0 09 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: F0 09 00 E6 05 00 D3 86 1E 67 47 1B 1E 67 A8 [18:30:42]GetLastDocTimeStamp 1730053803 [18:30:42]current date 1730053843 [18:30:42]FM_GetShiftState [18:30:42]SAM_PROTO_GetShiftState [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 13 01 00 [18:30:42]Write to MH i2c: E2 08 00 E7 05 80 13 01 00 00 00 00 00 69 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 0E 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 0E 00 E7 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6B [18:30:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:30:42]wFMCommunicate OK [18:30:42]SAM_PROTO_GetShiftState done [18:30:42]FM_GetShiftState done [18:30:42]opened in 1729987312 [18:30:42]opened+sec_in_day 1730073712 [18:30:42]quantity*price = 80010 [18:30:42]sum+1 = 80011 [18:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 434 27.10.2024 18:30 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202142 ФПД: 168717142939057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183043&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202142&fm=168717142939057&tin=02508201610067®Number=0000000000091777&sum=80000 [18:30:43]StoreToDocumentArchive [18:30:43]shift 544 fd 202142 [18:30:43]save to /storage/0544/doc_00202142 [18:30:43]save last doc name /storage/0544/doc_00202142 to /storage/kkm_last_doc_name [18:30:43]save OK [18:30:43]Clear old archive folders... [18:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:30:43]tlvbuf is 006B5920 [18:30:43]SAM_PROTO_ClearQueue [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 09 00 00 [18:30:43]Write to MH i2c: E2 08 00 F4 05 80 09 00 00 00 00 00 00 6B [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]SAM_PROTO_ClearQueue done [18:30:44]KKMCreateOFDPacket [18:30:44]OFDProtocolAddRootSTLVToBuf [18:30:44]FM_MakeSignedData [18:30:44]FM_MakeSignedData [18:30:44]SAM_PROTO_SignData [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 01 02 [18:30:44]Write to MH i2c: E2 08 00 F5 05 80 0D 01 02 00 00 00 00 73 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]wFMCommunicate request_size=255 [18:30:44]MH_SAM_APDU [18:30:44]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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 B2 01 00 00 F4 03 04 00 D3 86 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 15 03 00 35 04 06 00 99 72 85 5F [18:30:44]Write to MH i2c: E2 02 01 F6 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 B2 01 00 00 F4 03 04 00 D3 86 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 15 03 00 35 04 06 00 99 72 85 5F 00 00 88 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]wFMCommunicate request_size=7 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 02 02 02 55 B1 [18:30:44]Write to MH i2c: E2 0A 00 F7 05 80 0D 02 02 02 00 55 B1 00 00 80 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 03 02 [18:30:44]Write to MH i2c: E2 08 00 F8 05 80 0D 03 02 00 00 00 00 78 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 0B 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 0B 00 F8 05 00 8E B5 F1 F7 0E 60 E5 F4 90 00 EB [18:30:44]RAPDU: 8E B5 F1 F7 0E 60 E5 F4 90 00 [18:30:44]wFMCommunicate OK [18:30:44]SAM_PROTO_SignData done [18:30:44]FM_MakeSignedData done [18:30:44]CreateOFDProtocolMessage [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 11 00 00 [18:30:44]Write to MH i2c: E2 08 00 F9 05 80 11 00 00 00 00 00 00 78 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 17 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 17 00 F9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CD [18:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:30:44]wFMCommunicate OK [18:30:44]CreateOFDProtocolMessage done [18:30:44]OFDSenderStorePacket 202142 [18:30:44]StoreOFDPacket docnum=202142 [18:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0D F4 04 01 1B 52 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 B2 01 00 00 F4 03 04 00 D3 86 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 15 03 00 35 04 06 00 99 72 85 5F 55 B1 8E B5 F1 F7 0E 60 E5 F4 [18:30:44]CheckFolder [18:30:44]dirname=/storage/ofd_packets [18:30:44]CheckFolder done [18:30:44]ProducePacketName [18:30:44]name=ofd_packets/00202142 [18:30:44]NVStorageSaveData ofd_packets/00202142 [18:30:44]File name is /storage/ofd_packets/00202142 [18:30:44]Write 298 bytes [18:30:44]NVStorageSaveData done [18:30:44]OFDSenderStorePacket done [18:30:44]KKMCreateOFDPacket done [18:30:44]NVStorageSaveData kkm_last_timestamp [18:30:44]File name is /storage/kkm_last_timestamp [18:30:44]Write 4 bytes [18:30:44]NVStorageSaveData done [18:30:44]ExternCall_PrintAddStr [18:30:44]wPrintStart [18:30:44]Write to MH i2c: 01 00 00 FA 05 FF [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: 01 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: 01 07 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: 01 07 00 FA 05 00 00 00 00 00 FF 0F 14 [18:30:44]RasterBufferAndPrint [18:30:44]line Счет N : (1)449912 [18:30:44]line ИНН: 02508201610067 [18:30:44]line Контрольно-Кассовый Чек [18:30:44]line ПРОДАЖА [18:30:44]line ТРК (МРК, ГНК) : 11 [18:30:44]line Товар: 2710194210 [18:30:44]line ДТ-К-2 [18:30:44]line 10.500 * 76.20 [18:30:44]line = 800.10 [18:30:44]line НДС 12% НСП 1% [18:30:44]line > о реализуемом товаре [18:30:44]line ОКРУГЛЕНИЕ: -0.10 [18:30:44]line ИТОГО: 800.00 [18:30:44]line Внесено: 800.00 [18:30:44]line СДАЧА: 0.00 [18:30:44]line НСП 1% : 7.08 [18:30:44]line НДС 12% : 84.97 [18:30:44]line Наличными: 800.00 [18:30:44]line Безнал.: 0.00 [18:30:44]line Место: АЗС № 171 "Партнер Нефть" [18:30:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:30:44]line СНО: Общий режим [18:30:44]line Чек 434 27.10.2024 18:30 [18:30:44]line Смена: 544 ФФД: 1.0 [18:30:44]line ЗНМ: 0300000109 [18:30:44]line РНМ: 0000000000091777 [18:30:44]line Версия ККМ: 001 [18:30:44]line ФМ: 0000000000871756 [18:30:44]line ФД: 202142 [18:30:44]line ФПД: 168717142939057 [18:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183043&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202142&fm=168717142939057&tin=02508201610067®Number=0000000000091777&sum=80000 [18:30:44]written 0, free lines is 4095 [18:30:44]OFD Sender: Processing packet 202142 [packets to send 114, broken 113] [18:30:44]ProducePacketName [18:30:44]name=ofd_packets/00202142 [18:30:44]OFD Sender: To server: pG, [18:30:44]CommunicateWithHost lk.salyk.kg:30040 [18:30:44]ConnectInit lk.salyk.kg [18:30:44]Connected sock=10 [18:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 0D F4 04 01 1B 52 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 B2 01 00 00 F4 03 04 00 D3 86 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 15 03 00 35 04 06 00 99 72 85 5F 55 B1 8E B5 F1 F7 0E 60 E5 F4 [18:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 47 D7 47 00 C2 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 15 03 00 F4 03 04 00 8C 32 1E 67 B6 04 01 00 00 8F 04 52 84 14 82 EA 5D [18:30:45]CommunicateWithHost err = 0 [18:30:45]CheckOFDResponse [18:30:45]1017 (14) - 77093643461234 [18:30:45]1041 (16) - 0000000000871756 [18:30:45]1040 (4) - 202142 [18:30:45]1012 (4) - 27.10.2024 12:31 [18:30:45]1206 (1) - 0 [18:30:45]OFD Sender: Remove packet 202142 [18:30:45]ProducePacketName [18:30:45]name=ofd_packets/00202142 [18:30:45]NVStorageDeleteData [18:30:45]Write to MH i2c: 01 00 00 25 06 2B [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 07 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 91 0C CF [18:30:45]RasterBufferAndPrint [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]written 0, free lines is 3221 [18:30:45]MH_Cut [18:30:45]Write to MH i2c: D1 01 00 2C 06 01 04 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 01 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 01 00 2C 06 00 03 [18:30:45]Write to MH i2c: 01 00 00 2D 06 33 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]OFD Sender: No OFD packet to send [18:30:46]*** Cut start [18:30:46]*** Purtial cut [18:30:46]*** CUTSNS_PIN = 0 [18:30:46]*** Stage 1: CUTSNS_PIN = 1 [18:30:48]Read from MH i2c: 01 [18:30:48]MH_I2C_Read... [18:30:48]*** Stop cut motor [18:30:48]*** Cut end [18:30:48]Read from MH i2c: 01 07 00 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FF 0F 48 [18:30:48]process_action close_receipt done [18:30:48]requested_data is exist [18:30:48]produce_requested_data [18:30:48]requested_item fm.sn is exist - process it [18:30:48]wFMCommunicate request_size=4 [18:30:48]MH_SAM_APDU [18:30:48]CAPDU: 80 11 00 00 [18:30:48]Write to MH i2c: E2 08 00 2E 06 80 11 00 00 00 00 00 00 AE [18:30:48]Write i2c OK [18:30:48]MH_I2C_Read... [18:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:48]Read from MH i2c: E2 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 17 00 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 17 00 2E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 03 [18:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:30:48]wFMCommunicate OK [18:30:48]requested_item fd.num is exist - process it [18:30:48]SAM_PROTO_GetFieldsCounters [18:30:48]wFMCommunicate request_size=4 [18:30:48]MH_SAM_APDU [18:30:48]CAPDU: 80 13 00 00 [18:30:48]Write to MH i2c: E2 08 00 2F 06 80 13 00 00 00 00 00 00 B1 [18:30:48]Write i2c OK [18:30:48]MH_I2C_Read... [18:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:48]Read from MH i2c: E2 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 62 00 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 62 00 2F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [18:30:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9E 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:48]wFMCommunicate OK [18:30:48]SAM_PROTO_GetFieldsCounters done [18:30:48]requested_item shift.num is exist - process it [18:30:48]requested_item shift.opened is exist - process it [18:30:48]req_shift_opened [18:30:48]FM_GetShiftState [18:30:48]SAM_PROTO_GetShiftState [18:30:48]wFMCommunicate request_size=4 [18:30:48]MH_SAM_APDU [18:30:48]CAPDU: 80 13 01 00 [18:30:48]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [18:30:48]Write i2c OK [18:30:48]MH_I2C_Read... [18:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:48]Read from MH i2c: E2 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 0E 00 [18:30:48]MH_I2C_Read... [18:30:48]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B5 [18:30:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:30:48]wFMCommunicate OK [18:30:48]SAM_PROTO_GetShiftState done [18:30:48]FM_GetShiftState done [18:30:48]req_shift_opened done [18:30:48]requested_item shift.open_date is exist - process it [18:30:48]req_shift_open_date [18:30:48]req_shift_open_date done [18:30:48]produce_requested_data done [18:30:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202142,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:30:48]process_action_free close_receipt [18:30:48]json_value_free [18:30:48]json_value_free done [18:30:48]process_json_proto returns [18:30:48]Send response to host [18:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202142,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:30:48]free response buf [18:30:48]execute_script done [18:30:48]execute_script returns [18:30:48]free content buf [18:30:48]Sock 9.Close socket [18:30:48]Sock 9.Thread stoped [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36: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:26]OFD Sender: No OFD packet to send [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:51]accept exits with 7 [18:36:51]New connection [18:36:51]New thread 3066658148 created [18:36:51]Thread 3066801508 joined [18:36:51]Waiting for new connection... [18:36:51] Sock 7.Parse request [18:36:51]Sock 7.Check first char [18:36:51]Sock 7.First char is OK [18:36:51]request: POST /json_proto HTTP/1.0 [18:36:51]Method: POST [18:36:51]URL: /json_proto [18:36:51]Method is POST - this is cgi request [18:36:51]url: /json_proto [18:36:51]query_string will be loaded in cgi processing [18:36:51]execute_cgi json_proto POST (null) [18:36:51]execute_cgi path=json_proto method=POST [18:36:51]POST find Content-Length [18:36:51]Host: 172.17.63.195:8080 [18:36:51]Content-Length: 677 [18:36:51]Content-Type: application/json [18:36:51] [18:36:51]POST finish read [18:36:51]Found Content-Length = 677 [18:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:36:51]execute_script... [18:36:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:36:51]POST & json_proto [18:36:51]process_json_proto [18:36:51]json parsed OK: [18:36:51]protocol is kg_v1.0 [18:36:51]action value=close_receipt [18:36:51]process_action close_receipt [18:36:51]cmd_close_receipt [18:36:51]MH_GetDate [18:36:51]Write to MH i2c: F0 00 00 31 06 26 [18:36:51]Write i2c OK [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: F0 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: F0 09 00 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: F0 09 00 31 06 00 44 88 1E 67 47 1B 1E 67 67 [18:36:51]GetLastDocTimeStamp 1730053843 [18:36:51]current date 1730054212 [18:36:51]FM_GetShiftState [18:36:51]SAM_PROTO_GetShiftState [18:36:51]wFMCommunicate request_size=4 [18:36:51]MH_SAM_APDU [18:36:51]CAPDU: 80 13 01 00 [18:36:51]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [18:36:51]Write i2c OK [18:36:51]MH_I2C_Read... [18:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:51]Read from MH i2c: E2 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: E2 0E 00 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B7 [18:36:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:36:51]wFMCommunicate OK [18:36:51]SAM_PROTO_GetShiftState done [18:36:51]FM_GetShiftState done [18:36:51]opened in 1729987312 [18:36:51]opened+sec_in_day 1730073712 [18:36:51]quantity*price = 50041 [18:36:51]sum+1 = 50042 [18:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 435 27.10.2024 18:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202143 ФПД: 21309837523225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183652&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202143&fm=21309837523225&tin=02508201610067®Number=0000000000091777&sum=50000 [18:36:52]StoreToDocumentArchive [18:36:52]shift 544 fd 202143 [18:36:52]save to /storage/0544/doc_00202143 [18:36:52]save last doc name /storage/0544/doc_00202143 to /storage/kkm_last_doc_name [18:36:52]save OK [18:36:52]Clear old archive folders... [18:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:52]tlvbuf is 006E5E60 [18:36:52]SAM_PROTO_ClearQueue [18:36:52]wFMCommunicate request_size=4 [18:36:52]MH_SAM_APDU [18:36:52]CAPDU: 80 09 00 00 [18:36:52]Write to MH i2c: E2 08 00 3F 06 80 09 00 00 00 00 00 00 B7 [18:36:52]Write i2c OK [18:36:52]MH_I2C_Read... [18:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:52]Read from MH i2c: E2 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: E2 03 00 [18:36:52]MH_I2C_Read... [18:36:52]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [18:36:52]RAPDU: 90 00 [18:36:52]wFMCommunicate OK [18:36:52]SAM_PROTO_ClearQueue done [18:36:52]KKMCreateOFDPacket [18:36:52]OFDProtocolAddRootSTLVToBuf [18:36:52]FM_MakeSignedData [18:36:52]FM_MakeSignedData [18:36:52]SAM_PROTO_SignData [18:36:52]wFMCommunicate request_size=4 [18:36:52]MH_SAM_APDU [18:36:52]CAPDU: 80 0D 01 02 [18:36:52]Write to MH i2c: E2 08 00 40 06 80 0D 01 02 00 00 00 00 BF [18:36:52]Write i2c OK [18:36:52]MH_I2C_Read... [18:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [18:36:53]RAPDU: 90 00 [18:36:53]wFMCommunicate OK [18:36:53]wFMCommunicate request_size=255 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 01 00 00 F4 03 04 00 44 88 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 15 03 00 35 04 06 00 13 [18:36:53]Write to MH i2c: E2 02 01 41 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 01 00 00 F4 03 04 00 44 88 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 15 03 00 35 04 06 00 13 00 00 44 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [18:36:53]RAPDU: 90 00 [18:36:53]wFMCommunicate OK [18:36:53]wFMCommunicate request_size=10 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 0D 02 02 05 61 95 4B B9 19 [18:36:53]Write to MH i2c: E2 0D 00 42 06 80 0D 02 02 05 00 61 95 4B B9 19 00 00 DF [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [18:36:53]RAPDU: 90 00 [18:36:53]wFMCommunicate OK [18:36:53]wFMCommunicate request_size=4 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 0D 03 02 [18:36:53]Write to MH i2c: E2 08 00 43 06 80 0D 03 02 00 00 00 00 C4 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 0B 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 0B 00 43 06 00 68 AF 31 E5 B8 37 A4 3C 90 00 C1 [18:36:53]RAPDU: 68 AF 31 E5 B8 37 A4 3C 90 00 [18:36:53]wFMCommunicate OK [18:36:53]SAM_PROTO_SignData done [18:36:53]FM_MakeSignedData done [18:36:53]CreateOFDProtocolMessage [18:36:53]wFMCommunicate request_size=4 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 11 00 00 [18:36:53]Write to MH i2c: E2 08 00 44 06 80 11 00 00 00 00 00 00 C4 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:53]Read from MH i2c: E2 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 17 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: E2 17 00 44 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 19 [18:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:36:53]wFMCommunicate OK [18:36:53]CreateOFDProtocolMessage done [18:36:53]OFDSenderStorePacket 202143 [18:36:53]StoreOFDPacket docnum=202143 [18:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C1 64 07 01 76 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 01 00 00 F4 03 04 00 44 88 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 15 03 00 35 04 06 00 13 61 95 4B B9 19 68 AF 31 E5 B8 37 A4 3C [18:36:53]CheckFolder [18:36:53]dirname=/storage/ofd_packets [18:36:53]CheckFolder done [18:36:53]ProducePacketName [18:36:53]name=ofd_packets/00202143 [18:36:53]NVStorageSaveData ofd_packets/00202143 [18:36:53]File name is /storage/ofd_packets/00202143 [18:36:53]Write 301 bytes [18:36:53]NVStorageSaveData done [18:36:53]OFDSenderStorePacket done [18:36:53]KKMCreateOFDPacket done [18:36:53]NVStorageSaveData kkm_last_timestamp [18:36:53]File name is /storage/kkm_last_timestamp [18:36:53]Write 4 bytes [18:36:53]NVStorageSaveData done [18:36:53]ExternCall_PrintAddStr [18:36:53]wPrintStart [18:36:53]Write to MH i2c: 01 00 00 45 06 4B [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: 01 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: 01 07 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: 01 07 00 45 06 00 00 00 00 00 FF 0F 60 [18:36:53]RasterBufferAndPrint [18:36:53]line Счет N : (1)449914 [18:36:53]line ИНН: 02508201610067 [18:36:53]line Контрольно-Кассовый Чек [18:36:53]line ПРОДАЖА [18:36:53]line ТРК (МРК, ГНК) : 41 [18:36:53]line Товар: 2710124130 [18:36:53]line Аи-92-К-2 [18:36:53]line 7.480 * 66.90 [18:36:53]line = 500.41 [18:36:53]line НДС 12% НСП 1% [18:36:53]line > о реализуемом товаре [18:36:53]line ОКРУГЛЕНИЕ: -0.41 [18:36:53]line ИТОГО: 500.00 [18:36:53]line Внесено: 500.00 [18:36:53]line СДАЧА: 0.00 [18:36:53]line НСП 1% : 4.43 [18:36:53]line НДС 12% : 53.14 [18:36:53]line Наличными: 500.00 [18:36:53]line Безнал.: 0.00 [18:36:53]line Место: АЗС № 171 "Партнер Нефть" [18:36:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:36:53]line СНО: Общий режим [18:36:53]line Чек 435 27.10.2024 18:36 [18:36:53]line Смена: 544 ФФД: 1.0 [18:36:53]line ЗНМ: 0300000109 [18:36:53]line РНМ: 0000000000091777 [18:36:53]line Версия ККМ: 001 [18:36:53]line ФМ: 0000000000871756 [18:36:53]line ФД: 202143 [18:36:53]line ФПД: 21309837523225 [18:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183652&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202143&fm=21309837523225&tin=02508201610067®Number=0000000000091777&sum=50000 [18:36:53]OFD Sender: Processing packet 202143 [packets to send 114, broken 113] [18:36:53]ProducePacketName [18:36:53]name=ofd_packets/00202143 [18:36:53]OFD Sender: To server: pG, [18:36:53]CommunicateWithHost lk.salyk.kg:30040 [18:36:53]ConnectInit lk.salyk.kg [18:36:53]written 0, free lines is 4095 [18:36:53]Connected sock=10 [18:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C1 64 07 01 76 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 01 00 00 F4 03 04 00 44 88 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 15 03 00 35 04 06 00 13 61 95 4B B9 19 68 AF 31 E5 B8 37 A4 3C [18:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3D 94 47 00 73 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 15 03 00 F4 03 04 00 FD 33 1E 67 B6 04 01 00 00 CC 8B 76 46 D1 40 7E A8 [18:36:54]CommunicateWithHost err = 0 [18:36:54]CheckOFDResponse [18:36:54]1017 (14) - 77093643461234 [18:36:54]1041 (16) - 0000000000871756 [18:36:54]1040 (4) - 202143 [18:36:54]1012 (4) - 27.10.2024 12:37 [18:36:54]1206 (1) - 0 [18:36:54]OFD Sender: Remove packet 202143 [18:36:54]ProducePacketName [18:36:54]name=ofd_packets/00202143 [18:36:54]NVStorageDeleteData [18:36:54]Write to MH i2c: 01 00 00 70 06 76 [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 9D 0C 26 [18:36:54]RasterBufferAndPrint [18:36:54]line [18:36:54]line [18:36:54]line [18:36:54]line [18:36:54]line [18:36:54]written 0, free lines is 3233 [18:36:54]MH_Cut [18:36:54]Write to MH i2c: D1 01 00 77 06 01 4F [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: D1 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: D1 01 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: D1 01 00 77 06 00 4E [18:36:54]Write to MH i2c: 01 00 00 78 06 7E [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]OFD Sender: No OFD packet to send [18:36:55]*** Cut start [18:36:55]*** Purtial cut [18:36:55]*** Stage 1: CUTSNS_PIN = 1 [18:36:55]Read from MH i2c: 01 [18:36:55]MH_I2C_Read... [18:36:55]*** Stop cut motor [18:36:55]*** Cut end [18:36:55]Read from MH i2c: 01 07 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 FF 0F 93 [18:36:55]process_action close_receipt done [18:36:55]requested_data is exist [18:36:55]produce_requested_data [18:36:55]requested_item fm.sn is exist - process it [18:36:55]wFMCommunicate request_size=4 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 11 00 00 [18:36:55]Write to MH i2c: E2 08 00 79 06 80 11 00 00 00 00 00 00 F9 [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 17 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 17 00 79 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4E [18:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:36:55]wFMCommunicate OK [18:36:55]requested_item fd.num is exist - process it [18:36:55]SAM_PROTO_GetFieldsCounters [18:36:55]wFMCommunicate request_size=4 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 13 00 00 [18:36:55]Write to MH i2c: E2 08 00 7A 06 80 13 00 00 00 00 00 00 FC [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 62 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 62 00 7A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [18:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9F 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:55]wFMCommunicate OK [18:36:55]SAM_PROTO_GetFieldsCounters done [18:36:55]requested_item shift.num is exist - process it [18:36:55]requested_item shift.opened is exist - process it [18:36:55]req_shift_opened [18:36:55]FM_GetShiftState [18:36:55]SAM_PROTO_GetShiftState [18:36:55]wFMCommunicate request_size=4 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 13 01 00 [18:36:55]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 0E 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 0E 00 7B 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 00 [18:36:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:36:55]wFMCommunicate OK [18:36:55]SAM_PROTO_GetShiftState done [18:36:55]FM_GetShiftState done [18:36:55]req_shift_opened done [18:36:55]requested_item shift.open_date is exist - process it [18:36:55]req_shift_open_date [18:36:55]req_shift_open_date done [18:36:55]produce_requested_data done [18:36:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202143,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:36:55]process_action_free close_receipt [18:36:55]json_value_free [18:36:55]json_value_free done [18:36:55]process_json_proto returns [18:36:55]Send response to host [18:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202143,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:36:55]free response buf [18:36:55]execute_script done [18:36:55]execute_script returns [18:36:55]free content buf [18:36:55]Sock 7.Close socket [18:36:55]Sock 7.Thread stoped [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:48]accept exits with 9 [18:39:48]New connection [18:39:48]New thread 3066801508 created [18:39:48]Thread 3066658148 joined [18:39:48]Waiting for new connection... [18:39:48] Sock 9.Parse request [18:39:48]Sock 9.Check first char [18:39:48]Sock 9.First char is OK [18:39:48]request: POST /json_proto HTTP/1.0 [18:39:48]Method: POST [18:39:48]URL: /json_proto [18:39:48]Method is POST - this is cgi request [18:39:48]url: /json_proto [18:39:48]query_string will be loaded in cgi processing [18:39:48]execute_cgi json_proto POST (null) [18:39:48]execute_cgi path=json_proto method=POST [18:39:48]POST find Content-Length [18:39:48]Host: 172.17.63.195:8080 [18:39:48]Content-Length: 670 [18:39:48]Content-Type: application/json [18:39:48] [18:39:48]POST finish read [18:39:48]Found Content-Length = 670 [18:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [18:39:48]execute_script... [18:39:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [18:39:48]POST & json_proto [18:39:48]process_json_proto [18:39:48]json parsed OK: [18:39:48]protocol is kg_v1.0 [18:39:48]action value=close_receipt [18:39:48]process_action close_receipt [18:39:48]cmd_close_receipt [18:39:48]MH_GetDate [18:39:48]Write to MH i2c: F0 00 00 7C 06 71 [18:39:48]Write i2c OK [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: F0 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: F0 09 00 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: F0 09 00 7C 06 00 F5 88 1E 67 47 1B 1E 67 63 [18:39:48]GetLastDocTimeStamp 1730054212 [18:39:48]current date 1730054389 [18:39:48]FM_GetShiftState [18:39:48]SAM_PROTO_GetShiftState [18:39:48]wFMCommunicate request_size=4 [18:39:48]MH_SAM_APDU [18:39:48]CAPDU: 80 13 01 00 [18:39:48]Write to MH i2c: E2 08 00 7D 06 80 13 01 00 00 00 00 00 00 [18:39:48]Write i2c OK [18:39:48]MH_I2C_Read... [18:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:48]Read from MH i2c: E2 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: E2 0E 00 [18:39:48]MH_I2C_Read... [18:39:48]Read from MH i2c: E2 0E 00 7D 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 02 [18:39:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:39:48]wFMCommunicate OK [18:39:48]SAM_PROTO_GetShiftState done [18:39:48]FM_GetShiftState done [18:39:48]opened in 1729987312 [18:39:48]opened+sec_in_day 1730073712 [18:39:48]quantity*price = 20041 [18:39:48]sum+1 = 20042 [18:39:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 436 27.10.2024 18:39 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202144 ФПД: 2867738749487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183949&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202144&fm=2867738749487&tin=02508201610067®Number=0000000000091777&sum=20000 [18:39:49]StoreToDocumentArchive [18:39:49]shift 544 fd 202144 [18:39:49]save to /storage/0544/doc_00202144 [18:39:49]save last doc name /storage/0544/doc_00202144 to /storage/kkm_last_doc_name [18:39:49]save OK [18:39:49]Clear old archive folders... [18:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:39:49]tlvbuf is 006C3480 [18:39:49]SAM_PROTO_ClearQueue [18:39:49]wFMCommunicate request_size=4 [18:39:49]MH_SAM_APDU [18:39:49]CAPDU: 80 09 00 00 [18:39:49]Write to MH i2c: E2 08 00 8A 06 80 09 00 00 00 00 00 00 02 [18:39:49]Write i2c OK [18:39:49]MH_I2C_Read... [18:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:49]Read from MH i2c: E2 [18:39:49]MH_I2C_Read... [18:39:49]Read from MH i2c: E2 03 00 [18:39:49]MH_I2C_Read... [18:39:49]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [18:39:49]RAPDU: 90 00 [18:39:49]wFMCommunicate OK [18:39:49]SAM_PROTO_ClearQueue done [18:39:49]KKMCreateOFDPacket [18:39:49]OFDProtocolAddRootSTLVToBuf [18:39:49]FM_MakeSignedData [18:39:49]FM_MakeSignedData [18:39:49]SAM_PROTO_SignData [18:39:49]wFMCommunicate request_size=4 [18:39:49]MH_SAM_APDU [18:39:49]CAPDU: 80 0D 01 02 [18:39:49]Write to MH i2c: E2 08 00 8B 06 80 0D 01 02 00 00 00 00 0A [18:39:49]Write i2c OK [18:39:49]MH_I2C_Read... [18:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:49]Read from MH i2c: E2 [18:39:49]MH_I2C_Read... [18:39:49]Read from MH i2c: E2 03 00 [18:39:49]MH_I2C_Read... [18:39:49]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [18:39:49]RAPDU: 90 00 [18:39:49]wFMCommunicate OK [18:39:49]wFMCommunicate request_size=255 [18:39:49]MH_SAM_APDU [18:39: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 20 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 B4 01 00 00 F4 03 04 00 F5 88 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 15 03 00 35 04 06 00 [18:39:49]Write to MH i2c: E2 02 01 8C 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 01 00 00 F4 03 04 00 F5 88 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 15 03 00 35 04 06 00 00 00 15 [18:39:49]Write i2c OK [18:39:49]MH_I2C_Read... [18:39:49]OFD Sender: No OFD packet to send [18:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:50]Read from MH i2c: E2 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: E2 03 00 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [18:39:50]RAPDU: 90 00 [18:39:50]wFMCommunicate OK [18:39:50]wFMCommunicate request_size=11 [18:39:50]MH_SAM_APDU [18:39:50]CAPDU: 80 0D 02 02 06 02 9B B2 8C AA 2F [18:39:50]Write to MH i2c: E2 0E 00 8D 06 80 0D 02 02 06 00 02 9B B2 8C AA 2F 00 00 CD [18:39:50]Write i2c OK [18:39:50]MH_I2C_Read... [18:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:50]Read from MH i2c: E2 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: E2 03 00 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [18:39:50]RAPDU: 90 00 [18:39:50]wFMCommunicate OK [18:39:50]wFMCommunicate request_size=4 [18:39:50]MH_SAM_APDU [18:39:50]CAPDU: 80 0D 03 02 [18:39:50]Write to MH i2c: E2 08 00 8E 06 80 0D 03 02 00 00 00 00 0F [18:39:50]Write i2c OK [18:39:50]MH_I2C_Read... [18:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:50]Read from MH i2c: E2 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: E2 0B 00 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: E2 0B 00 8E 06 00 38 13 06 97 AD A7 31 B1 90 00 2E [18:39:50]RAPDU: 38 13 06 97 AD A7 31 B1 90 00 [18:39:50]wFMCommunicate OK [18:39:50]SAM_PROTO_SignData done [18:39:50]FM_MakeSignedData done [18:39:50]CreateOFDProtocolMessage [18:39:50]wFMCommunicate request_size=4 [18:39:50]MH_SAM_APDU [18:39:50]CAPDU: 80 11 00 00 [18:39:50]Write to MH i2c: E2 08 00 8F 06 80 11 00 00 00 00 00 00 0F [18:39:50]Write i2c OK [18:39:50]MH_I2C_Read... [18:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:50]Read from MH i2c: E2 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: E2 17 00 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: E2 17 00 8F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 64 [18:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:39:50]wFMCommunicate OK [18:39:50]CreateOFDProtocolMessage done [18:39:50]OFDSenderStorePacket 202144 [18:39:50]StoreOFDPacket docnum=202144 [18:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 C3 E9 08 01 1B B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 01 00 00 F4 03 04 00 F5 88 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 15 03 00 35 04 06 00 02 9B B2 8C AA 2F 38 13 06 97 AD A7 31 B1 [18:39:50]CheckFolder [18:39:50]dirname=/storage/ofd_packets [18:39:50]CheckFolder done [18:39:50]ProducePacketName [18:39:50]name=ofd_packets/00202144 [18:39:50]NVStorageSaveData ofd_packets/00202144 [18:39:50]File name is /storage/ofd_packets/00202144 [18:39:50]Write 302 bytes [18:39:50]NVStorageSaveData done [18:39:50]OFDSenderStorePacket done [18:39:50]KKMCreateOFDPacket done [18:39:50]NVStorageSaveData kkm_last_timestamp [18:39:50]File name is /storage/kkm_last_timestamp [18:39:50]Write 4 bytes [18:39:50]NVStorageSaveData done [18:39:50]ExternCall_PrintAddStr [18:39:50]wPrintStart [18:39:50]Write to MH i2c: 01 00 00 90 06 96 [18:39:50]Write i2c OK [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: 01 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: 01 07 00 [18:39:50]MH_I2C_Read... [18:39:50]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 FF 0F AB [18:39:50]RasterBufferAndPrint [18:39:50]line Счет N : (1)449915 [18:39:50]line ИНН: 02508201610067 [18:39:50]line Контрольно-Кассовый Чек [18:39:50]line ПРОДАЖА [18:39:50]line ТРК (МРК, ГНК) : 42 [18:39:50]line Товар: 2710124130 [18:39:50]line SUPER 92-К-5 [18:39:50]line 2.930 * 68.40 [18:39:50]line = 200.41 [18:39:50]line НДС 12% НСП 1% [18:39:50]line > о реализуемом товаре [18:39:50]line ОКРУГЛЕНИЕ: -0.41 [18:39:50]line ИТОГО: 200.00 [18:39:50]line Внесено: 200.00 [18:39:50]line СДАЧА: 0.00 [18:39:50]line НСП 1% : 1.77 [18:39:50]line НДС 12% : 21.28 [18:39:50]line Наличными: 200.00 [18:39:50]line Безнал.: 0.00 [18:39:50]line Место: АЗС № 171 "Партнер Нефть" [18:39:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:39:50]line СНО: Общий режим [18:39:50]line Чек 436 27.10.2024 18:39 [18:39:50]line Смена: 544 ФФД: 1.0 [18:39:50]line ЗНМ: 0300000109 [18:39:50]line РНМ: 0000000000091777 [18:39:50]line Версия ККМ: 001 [18:39:50]line ФМ: 0000000000871756 [18:39:50]line ФД: 202144 [18:39:50]line ФПД: 2867738749487 [18:39:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183949&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202144&fm=2867738749487&tin=02508201610067®Number=0000000000091777&sum=20000 [18:39:50]OFD Sender: Processing packet 202144 [packets to send 114, broken 113] [18:39:50]ProducePacketName [18:39:50]name=ofd_packets/00202144 [18:39:50]OFD Sender: To server: pG, [18:39:50]CommunicateWithHost lk.salyk.kg:30040 [18:39:50]ConnectInit lk.salyk.kg [18:39:50]written 0, free lines is 4095 [18:39:50]Connected sock=10 [18:39:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 C3 E9 08 01 1B B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 01 00 00 F4 03 04 00 F5 88 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 15 03 00 35 04 06 00 02 9B B2 8C AA 2F 38 13 06 97 AD A7 31 B1 [18:39:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F D0 47 00 BF 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 15 03 00 F4 03 04 00 AE 34 1E 67 B6 04 01 00 00 2B 4C B9 FE 46 E8 76 8F [18:39:50]CommunicateWithHost err = 0 [18:39:50]CheckOFDResponse [18:39:50]1017 (14) - 77093643461234 [18:39:50]1041 (16) - 0000000000871756 [18:39:50]1040 (4) - 202144 [18:39:50]1012 (4) - 27.10.2024 12:40 [18:39:50]1206 (1) - 0 [18:39:50]OFD Sender: Remove packet 202144 [18:39:50]ProducePacketName [18:39:50]name=ofd_packets/00202144 [18:39:50]NVStorageDeleteData [18:39:51]Write to MH i2c: 01 00 00 BB 06 C1 [18:39:51]Write i2c OK [18:39:51]MH_I2C_Read... [18:39:51]Read from MH i2c: 01 [18:39:51]MH_I2C_Read... [18:39:51]Read from MH i2c: 01 07 00 [18:39:51]MH_I2C_Read... [18:39:51]Read from MH i2c: 01 07 00 BB 06 00 00 00 00 00 9D 0C 71 [18:39:51]RasterBufferAndPrint [18:39:51]line [18:39:51]line [18:39:51]line [18:39:51]line [18:39:51]line [18:39:51]written 0, free lines is 3235 [18:39:51]MH_Cut [18:39:51]Write to MH i2c: D1 01 00 C2 06 01 9A [18:39:51]Write i2c OK [18:39:51]MH_I2C_Read... [18:39:51]Read from MH i2c: D1 [18:39:51]MH_I2C_Read... [18:39:51]Read from MH i2c: D1 01 00 [18:39:51]MH_I2C_Read... [18:39:51]Read from MH i2c: D1 01 00 C2 06 00 99 [18:39:51]Write to MH i2c: 01 00 00 C3 06 C9 [18:39:51]Write i2c OK [18:39:51]MH_I2C_Read... [18:39:51]OFD Sender: No OFD packet to send [18:39:51]*** Cut start [18:39:51]*** Purtial cut [18:39:51]*** Stage 1: CUTSNS_PIN = 1 [18:39:52]Read from MH i2c: 01 [18:39:52]MH_I2C_Read... [18:39:52]*** Stop cut motor [18:39:52]*** Cut end [18:39:52]Read from MH i2c: 01 07 00 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 FF 0F DE [18:39:52]process_action close_receipt done [18:39:52]requested_data is exist [18:39:52]produce_requested_data [18:39:52]requested_item fm.sn is exist - process it [18:39:52]wFMCommunicate request_size=4 [18:39:52]MH_SAM_APDU [18:39:52]CAPDU: 80 11 00 00 [18:39:52]Write to MH i2c: E2 08 00 C4 06 80 11 00 00 00 00 00 00 44 [18:39:52]Write i2c OK [18:39:52]MH_I2C_Read... [18:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:52]Read from MH i2c: E2 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 17 00 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 17 00 C4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 99 [18:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:39:52]wFMCommunicate OK [18:39:52]requested_item fd.num is exist - process it [18:39:52]SAM_PROTO_GetFieldsCounters [18:39:52]wFMCommunicate request_size=4 [18:39:52]MH_SAM_APDU [18:39:52]CAPDU: 80 13 00 00 [18:39:52]Write to MH i2c: E2 08 00 C5 06 80 13 00 00 00 00 00 00 47 [18:39:52]Write i2c OK [18:39:52]MH_I2C_Read... [18:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:52]Read from MH i2c: E2 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 62 00 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 62 00 C5 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A0 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [18:39:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A0 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:52]wFMCommunicate OK [18:39:52]SAM_PROTO_GetFieldsCounters done [18:39:52]requested_item shift.num is exist - process it [18:39:52]requested_item shift.opened is exist - process it [18:39:52]req_shift_opened [18:39:52]FM_GetShiftState [18:39:52]SAM_PROTO_GetShiftState [18:39:52]wFMCommunicate request_size=4 [18:39:52]MH_SAM_APDU [18:39:52]CAPDU: 80 13 01 00 [18:39:52]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [18:39:52]Write i2c OK [18:39:52]MH_I2C_Read... [18:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:52]Read from MH i2c: E2 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 0E 00 [18:39:52]MH_I2C_Read... [18:39:52]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4B [18:39:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:39:52]wFMCommunicate OK [18:39:52]SAM_PROTO_GetShiftState done [18:39:52]FM_GetShiftState done [18:39:52]req_shift_opened done [18:39:52]requested_item shift.open_date is exist - process it [18:39:52]req_shift_open_date [18:39:52]req_shift_open_date done [18:39:52]produce_requested_data done [18:39:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202144,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:39:52]process_action_free close_receipt [18:39:52]json_value_free [18:39:52]json_value_free done [18:39:52]process_json_proto returns [18:39:52]Send response to host [18:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202144,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:39:52]free response buf [18:39:52]execute_script done [18:39:52]execute_script returns [18:39:52]free content buf [18:39:52]Sock 9.Close socket [18:39:52]Sock 9.Thread stoped [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:44:35]ConnectInit Can't connect to host [18:44:39]ConnectInit Can't take IP for lk.salyk.kg [18:44:39]CommunicateWithHost connect error [18:44:39]CommunicateWithHost err = -1 [18:44:39]OFD Sender: Server communicate error [18:44:44]OFD Sender: Processing packet 202145 [packets to send 114, broken 113] [18:44:44]ProducePacketName [18:44:44]name=ofd_packets/00202145 [18:44:44]OFD Sender: To server: pG, [18:44:44]CommunicateWithHost lk.salyk.kg:30040 [18:44:44]ConnectInit lk.salyk.kg [18:44:44]Connected sock=9 [18:44:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C AB 07 01 83 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B5 01 00 00 F4 03 04 00 F3 89 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 15 03 00 35 04 06 00 E8 E7 FB D0 2D 31 C8 BF C9 1D 17 64 BC 4D [18:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 34 6E 47 00 67 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 15 03 00 F4 03 04 00 D4 35 1E 67 B6 04 01 00 00 F5 7C 13 92 96 EA 6D FD [18:44:44]CommunicateWithHost err = 0 [18:44:44]CheckOFDResponse [18:44:44]1017 (14) - 77093643461234 [18:44:44]1041 (16) - 0000000000871756 [18:44:44]1040 (4) - 202145 [18:44:44]1012 (4) - 27.10.2024 12:45 [18:44:44]1206 (1) - 0 [18:44:44]OFD Sender: Remove packet 202145 [18:44:44]ProducePacketName [18:44:44]name=ofd_packets/00202145 [18:44:44]NVStorageDeleteData [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:25]accept exits with 7 [18:45:25]New connection [18:45:25]New thread 3066469732 created [18:45:25]Thread 3066613092 joined [18:45:25]Waiting for new connection... [18:45:25] Sock 7.Parse request [18:45:25]Sock 7.Check first char [18:45:25]Sock 7.First char is OK [18:45:25]request: POST /json_proto HTTP/1.0 [18:45:25]Method: POST [18:45:25]URL: /json_proto [18:45:25]Method is POST - this is cgi request [18:45:25]url: /json_proto [18:45:25]query_string will be loaded in cgi processing [18:45:25]execute_cgi json_proto POST (null) [18:45:25]execute_cgi path=json_proto method=POST [18:45:25]POST find Content-Length [18:45:25]Host: 172.17.63.195:8080 [18:45:25]Content-Length: 682 [18:45:25]Content-Type: application/json [18:45:25] [18:45:25]POST finish read [18:45:25]Found Content-Length = 682 [18:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:45:25]execute_script... [18:45: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)449919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:45:25]POST & json_proto [18:45:25]process_json_proto [18:45:25]json parsed OK: [18:45:25]protocol is kg_v1.0 [18:45:25]action value=close_receipt [18:45:25]process_action close_receipt [18:45:25]cmd_close_receipt [18:45:25]MH_GetDate [18:45:25]Write to MH i2c: F0 00 00 68 00 57 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: F0 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: F0 09 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: F0 09 00 68 00 00 46 8A 1E 67 47 1B 1E 67 9C [18:45:25]GetLastDocTimeStamp 1730054643 [18:45:25]current date 1730054726 [18:45:25]FM_GetShiftState [18:45:25]SAM_PROTO_GetShiftState [18:45:25]wFMCommunicate request_size=4 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 13 01 00 [18:45:25]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 0E 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E8 [18:45:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:45:25]wFMCommunicate OK [18:45:25]SAM_PROTO_GetShiftState done [18:45:25]FM_GetShiftState done [18:45:25]opened in 1729987312 [18:45:25]opened+sec_in_day 1730073712 [18:45:25]quantity*price = 100015 [18:45:25]sum+1 = 100017 [18:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 438 27.10.2024 18:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202146 ФПД: 207811895939396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184526&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202146&fm=207811895939396&tin=02508201610067®Number=0000000000091777&sum=100000 [18:45:26]StoreToDocumentArchive [18:45:26]shift 544 fd 202146 [18:45:26]save to /storage/0544/doc_00202146 [18:45:26]save last doc name /storage/0544/doc_00202146 to /storage/kkm_last_doc_name [18:45:26]save OK [18:45:26]Clear old archive folders... [18:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:27]tlvbuf is 01404970 [18:45:27]SAM_PROTO_ClearQueue [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 09 00 00 [18:45:27]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_ClearQueue done [18:45:27]KKMCreateOFDPacket [18:45:27]OFDProtocolAddRootSTLVToBuf [18:45:27]FM_MakeSignedData [18:45:27]FM_MakeSignedData [18:45:27]SAM_PROTO_SignData [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 01 02 [18:45:27]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=255 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B6 01 00 00 F4 03 04 00 46 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 15 03 00 35 04 06 00 BD [18:45:27]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B6 01 00 00 F4 03 04 00 46 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 15 03 00 35 04 06 00 BD 00 00 23 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=10 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 02 02 05 00 FA 3C D1 44 [18:45:27]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 00 FA 3C D1 44 00 00 48 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 03 02 [18:45:27]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0B 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0B 00 7A 00 00 37 19 4A 6A 18 C8 47 38 90 00 59 [18:45:27]RAPDU: 37 19 4A 6A 18 C8 47 38 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_SignData done [18:45:27]FM_MakeSignedData done [18:45:27]CreateOFDProtocolMessage [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 11 00 00 [18:45:27]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 17 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [18:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:45:27]wFMCommunicate OK [18:45:27]CreateOFDProtocolMessage done [18:45:27]OFDSenderStorePacket 202146 [18:45:27]StoreOFDPacket docnum=202146 [18:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0F 55 07 01 69 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B6 01 00 00 F4 03 04 00 46 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 15 03 00 35 04 06 00 BD 00 FA 3C D1 44 37 19 4A 6A 18 C8 47 38 [18:45:27]CheckFolder [18:45:27]dirname=/storage/ofd_packets [18:45:27]CheckFolder done [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00202146 [18:45:27]NVStorageSaveData ofd_packets/00202146 [18:45:27]File name is /storage/ofd_packets/00202146 [18:45:27]Write 301 bytes [18:45:27]NVStorageSaveData done [18:45:27]OFDSenderStorePacket done [18:45:27]KKMCreateOFDPacket done [18:45:27]NVStorageSaveData kkm_last_timestamp [18:45:27]File name is /storage/kkm_last_timestamp [18:45:27]Write 4 bytes [18:45:27]NVStorageSaveData done [18:45:27]ExternCall_PrintAddStr [18:45:27]wPrintStart [18:45:27]Write to MH i2c: 01 00 00 7C 00 7C [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [18:45:27]RasterBufferAndPrint [18:45:27]line Счет N : (1)449919 [18:45:27]line ИНН: 02508201610067 [18:45:27]line Контрольно-Кассовый Чек [18:45:27]line ПРОДАЖА [18:45:27]line ТРК (МРК, ГНК) : 62 [18:45:27]line Товар: 2710124130 [18:45:27]line Аи-92-К-2 [18:45:27]line 14.950 * 66.90 [18:45:27]line = 1000.16 [18:45:27]line НДС 12% НСП 1% [18:45:27]line > о реализуемом товаре [18:45:27]line ОКРУГЛЕНИЕ: -0.16 [18:45:27]line ИТОГО: 1000.00 [18:45:27]line Внесено: 1000.00 [18:45:27]line СДАЧА: 0.00 [18:45:27]line НСП 1% : 8.85 [18:45:27]line НДС 12% : 106.21 [18:45:27]line Наличными: 1000.00 [18:45:27]line Безнал.: 0.00 [18:45:27]line Место: АЗС № 171 "Партнер Нефть" [18:45:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:45:27]line СНО: Общий режим [18:45:27]line Чек 438 27.10.2024 18:45 [18:45:27]line Смена: 544 ФФД: 1.0 [18:45:27]line ЗНМ: 0300000109 [18:45:27]line РНМ: 0000000000091777 [18:45:27]line Версия ККМ: 001 [18:45:27]line ФМ: 0000000000871756 [18:45:27]line ФД: 202146 [18:45:27]line ФПД: 207811895939396 [18:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184526&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202146&fm=207811895939396&tin=02508201610067®Number=0000000000091777&sum=100000 [18:45:27]OFD Sender: Processing packet 202146 [packets to send 114, broken 113] [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00202146 [18:45:27]OFD Sender: To server: pG, [18:45:27]CommunicateWithHost lk.salyk.kg:30040 [18:45:27]ConnectInit lk.salyk.kg [18:45:27]written 0, free lines is 4095 [18:45:27]Connected sock=10 [18:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0F 55 07 01 69 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B6 01 00 00 F4 03 04 00 46 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 15 03 00 35 04 06 00 BD 00 FA 3C D1 44 37 19 4A 6A 18 C8 47 38 [18:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 37 1A 47 00 53 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 15 03 00 F4 03 04 00 FF 35 1E 67 B6 04 01 00 00 D1 A8 F9 08 11 60 64 A1 [18:45:28]CommunicateWithHost err = 0 [18:45:28]CheckOFDResponse [18:45:28]1017 (14) - 77093643461234 [18:45:28]1041 (16) - 0000000000871756 [18:45:28]1040 (4) - 202146 [18:45:28]1012 (4) - 27.10.2024 12:45 [18:45:28]1206 (1) - 0 [18:45:28]OFD Sender: Remove packet 202146 [18:45:28]ProducePacketName [18:45:28]name=ofd_packets/00202146 [18:45:28]NVStorageDeleteData [18:45:28]Write to MH i2c: 01 00 00 A7 00 A7 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 8B 0C 45 [18:45:28]RasterBufferAndPrint [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]written 0, free lines is 3213 [18:45:28]MH_Cut [18:45:28]Write to MH i2c: D1 01 00 AE 00 01 80 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 01 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 01 00 AE 00 00 7F [18:45:28]Write to MH i2c: 01 00 00 AF 00 AF [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]OFD Sender: No OFD packet to send [18:45:29]*** Cut start [18:45:29]*** Purtial cut [18:45:29]*** Stage 1: CUTSNS_PIN = 1 [18:45:29]Read from MH i2c: 01 [18:45:29]MH_I2C_Read... [18:45:29]*** Stop cut motor [18:45:29]*** Cut end [18:45:29]Read from MH i2c: 01 07 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [18:45:29]process_action close_receipt done [18:45:29]requested_data is exist [18:45:29]produce_requested_data [18:45:29]requested_item fm.sn is exist - process it [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 11 00 00 [18:45:29]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 17 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [18:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:45:29]wFMCommunicate OK [18:45:29]requested_item fd.num is exist - process it [18:45:29]SAM_PROTO_GetFieldsCounters [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 13 00 00 [18:45:29]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 62 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A2 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [18:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A2 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:29]wFMCommunicate OK [18:45:29]SAM_PROTO_GetFieldsCounters done [18:45:29]requested_item shift.num is exist - process it [18:45:29]requested_item shift.opened is exist - process it [18:45:29]req_shift_opened [18:45:29]FM_GetShiftState [18:45:29]SAM_PROTO_GetShiftState [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 13 01 00 [18:45:29]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 0E 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [18:45:29]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:45:29]wFMCommunicate OK [18:45:29]SAM_PROTO_GetShiftState done [18:45:29]FM_GetShiftState done [18:45:29]req_shift_opened done [18:45:29]requested_item shift.open_date is exist - process it [18:45:29]req_shift_open_date [18:45:29]req_shift_open_date done [18:45:29]produce_requested_data done [18:45:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202146,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:45:29]process_action_free close_receipt [18:45:29]json_value_free [18:45:29]json_value_free done [18:45:29]process_json_proto returns [18:45:29]Send response to host [18:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202146,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:45:29]free response buf [18:45:29]execute_script done [18:45:29]execute_script returns [18:45:29]free content buf [18:45:29]Sock 7.Close socket [18:45:29]Sock 7.Thread stoped [18:45:30]accept exits with 9 [18:45:30]New connection [18:45:30]New thread 3066613092 created [18:45:30]Thread 3066469732 joined [18:45:30]Waiting for new connection... [18:45:30] Sock 9.Parse request [18:45:30]Sock 9.Check first char [18:45:30]Sock 9.First char is OK [18:45:30]request: POST /json_proto HTTP/1.0 [18:45:30]Method: POST [18:45:30]URL: /json_proto [18:45:30]Method is POST - this is cgi request [18:45:30]url: /json_proto [18:45:30]query_string will be loaded in cgi processing [18:45:30]execute_cgi json_proto POST (null) [18:45:30]execute_cgi path=json_proto method=POST [18:45:30]POST find Content-Length [18:45:30]Host: 172.17.63.195:8080 [18:45:30]Content-Length: 670 [18:45:30]Content-Type: application/json [18:45:30] [18:45:30]POST finish read [18:45:30]Found Content-Length = 670 [18:45:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449920", "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" : 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" ] } } [18:45:30]execute_script... [18:45: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)449920", "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" : 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" ] } } [18:45:30]POST & json_proto [18:45:30]process_json_proto [18:45:30]json parsed OK: [18:45:30]protocol is kg_v1.0 [18:45:30]action value=close_receipt [18:45:30]process_action close_receipt [18:45:30]cmd_close_receipt [18:45:30]MH_GetDate [18:45:30]Write to MH i2c: F0 00 00 B3 00 A2 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 09 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 09 00 B3 00 00 4A 8A 1E 67 47 1B 1E 67 EB [18:45:30]GetLastDocTimeStamp 1730054726 [18:45:30]current date 1730054730 [18:45:30]FM_GetShiftState [18:45:30]SAM_PROTO_GetShiftState [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 13 01 00 [18:45:30]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 33 [18:45:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_GetShiftState done [18:45:30]FM_GetShiftState done [18:45:30]opened in 1729987312 [18:45:30]opened+sec_in_day 1730073712 [18:45:30]quantity*price = 32011 [18:45:30]sum+1 = 32012 [18:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 439 27.10.2024 18:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202147 ФПД: 44172546533565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184530&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202147&fm=44172546533565&tin=02508201610067®Number=0000000000091777&sum=32000 [18:45:31]StoreToDocumentArchive [18:45:31]shift 544 fd 202147 [18:45:31]save to /storage/0544/doc_00202147 [18:45:31]save last doc name /storage/0544/doc_00202147 to /storage/kkm_last_doc_name [18:45:31]save OK [18:45:31]Clear old archive folders... [18:45:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:45:31]tlvbuf is 0140CD70 [18:45:31]SAM_PROTO_ClearQueue [18:45:31]wFMCommunicate request_size=4 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 09 00 00 [18:45:31]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:45:31]RAPDU: 90 00 [18:45:31]wFMCommunicate OK [18:45:31]SAM_PROTO_ClearQueue done [18:45:31]KKMCreateOFDPacket [18:45:31]OFDProtocolAddRootSTLVToBuf [18:45:31]FM_MakeSignedData [18:45:31]FM_MakeSignedData [18:45:31]SAM_PROTO_SignData [18:45:31]wFMCommunicate request_size=4 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 0D 01 02 [18:45:31]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:45:31]RAPDU: 90 00 [18:45:31]wFMCommunicate OK [18:45:31]wFMCommunicate request_size=255 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 01 00 00 F4 03 04 00 4A 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 15 03 00 35 04 06 00 [18:45:31]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 B7 01 00 00 F4 03 04 00 4A 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 15 03 00 35 04 06 00 00 00 F6 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [18:45:31]RAPDU: 90 00 [18:45:31]wFMCommunicate OK [18:45:31]wFMCommunicate request_size=11 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 0D 02 02 06 28 2C B8 F1 E8 BD [18:45:31]Write to MH i2c: E2 0E 00 C4 00 80 0D 02 02 06 00 28 2C B8 F1 E8 BD 00 00 EC [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [18:45:31]RAPDU: 90 00 [18:45:31]wFMCommunicate OK [18:45:31]wFMCommunicate request_size=4 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 0D 03 02 [18:45:31]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 0B 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 0B 00 C5 00 00 99 B3 5D E4 BF ED 5F 6C 90 00 45 [18:45:31]RAPDU: 99 B3 5D E4 BF ED 5F 6C 90 00 [18:45:31]wFMCommunicate OK [18:45:31]SAM_PROTO_SignData done [18:45:31]FM_MakeSignedData done [18:45:31]CreateOFDProtocolMessage [18:45:31]wFMCommunicate request_size=4 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 11 00 00 [18:45:31]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:32]Read from MH i2c: E2 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 17 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [18:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:45:32]wFMCommunicate OK [18:45:32]CreateOFDProtocolMessage done [18:45:32]OFDSenderStorePacket 202147 [18:45:32]StoreOFDPacket docnum=202147 [18:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 9E 93 08 01 3D A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 01 00 00 F4 03 04 00 4A 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 15 03 00 35 04 06 00 28 2C B8 F1 E8 BD 99 B3 5D E4 BF ED 5F 6C [18:45:32]CheckFolder [18:45:32]dirname=/storage/ofd_packets [18:45:32]CheckFolder done [18:45:32]ProducePacketName [18:45:32]name=ofd_packets/00202147 [18:45:32]NVStorageSaveData ofd_packets/00202147 [18:45:32]File name is /storage/ofd_packets/00202147 [18:45:32]Write 302 bytes [18:45:32]NVStorageSaveData done [18:45:32]OFDSenderStorePacket done [18:45:32]KKMCreateOFDPacket done [18:45:32]NVStorageSaveData kkm_last_timestamp [18:45:32]File name is /storage/kkm_last_timestamp [18:45:32]Write 4 bytes [18:45:32]NVStorageSaveData done [18:45:32]ExternCall_PrintAddStr [18:45:32]wPrintStart [18:45:32]Write to MH i2c: 01 00 00 C7 00 C7 [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [18:45:32]RasterBufferAndPrint [18:45:32]line Счет N : (1)449920 [18:45:32]line ИНН: 02508201610067 [18:45:32]line Контрольно-Кассовый Чек [18:45:32]line ПРОДАЖА [18:45:32]line ТРК (МРК, ГНК) : 53 [18:45:32]line Товар: 2710124130 [18:45:32]line SUPER 92-К-5 [18:45:32]line 4.680 * 68.40 [18:45:32]line = 320.11 [18:45:32]line НДС 12% НСП 1% [18:45:32]line > о реализуемом товаре [18:45:32]line ОКРУГЛЕНИЕ: -0.11 [18:45:32]line ИТОГО: 320.00 [18:45:32]line Внесено: 320.00 [18:45:32]line СДАЧА: 0.00 [18:45:32]line НСП 1% : 2.83 [18:45:32]line НДС 12% : 33.99 [18:45:32]line Наличными: 320.00 [18:45:32]line Безнал.: 0.00 [18:45:32]line Место: АЗС № 171 "Партнер Нефть" [18:45:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:45:32]line СНО: Общий режим [18:45:32]line Чек 439 27.10.2024 18:45 [18:45:32]line Смена: 544 ФФД: 1.0 [18:45:32]line ЗНМ: 0300000109 [18:45:32]line РНМ: 0000000000091777 [18:45:32]line Версия ККМ: 001 [18:45:32]line ФМ: 0000000000871756 [18:45:32]line ФД: 202147 [18:45:32]line ФПД: 44172546533565 [18:45:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184530&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202147&fm=44172546533565&tin=02508201610067®Number=0000000000091777&sum=32000 [18:45:32]OFD Sender: Processing packet 202147 [packets to send 114, broken 113] [18:45:32]ProducePacketName [18:45:32]name=ofd_packets/00202147 [18:45:32]OFD Sender: To server: pG, [18:45:32]CommunicateWithHost lk.salyk.kg:30040 [18:45:32]ConnectInit lk.salyk.kg [18:45:32]written 0, free lines is 4095 [18:45:32]Connected sock=10 [18:45:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 9E 93 08 01 3D A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 01 00 00 F4 03 04 00 4A 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 15 03 00 35 04 06 00 28 2C B8 F1 E8 BD 99 B3 5D E4 BF ED 5F 6C [18:45:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 14 2D 47 00 AA 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 15 03 00 F4 03 04 00 04 36 1E 67 B6 04 01 00 00 08 4C B8 E4 71 5A 16 01 [18:45:32]CommunicateWithHost err = 0 [18:45:32]CheckOFDResponse [18:45:32]1017 (14) - 77093643461234 [18:45:32]1041 (16) - 0000000000871756 [18:45:32]1040 (4) - 202147 [18:45:32]1012 (4) - 27.10.2024 12:45 [18:45:32]1206 (1) - 0 [18:45:32]OFD Sender: Remove packet 202147 [18:45:32]ProducePacketName [18:45:32]name=ofd_packets/00202147 [18:45:32]NVStorageDeleteData [18:45:32]Write to MH i2c: 01 00 00 F2 00 F2 [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 94 0C 99 [18:45:32]RasterBufferAndPrint [18:45:32]line [18:45:32]line [18:45:32]line [18:45:32]line [18:45:32]line [18:45:32]written 0, free lines is 3231 [18:45:32]MH_Cut [18:45:32]Write to MH i2c: D1 01 00 F9 00 01 CB [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: D1 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: D1 01 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: D1 01 00 F9 00 00 CA [18:45:32]Write to MH i2c: 01 00 00 FA 00 FA [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:33]OFD Sender: No OFD packet to send [18:45:33]*** Cut start [18:45:33]*** Purtial cut [18:45:33]*** Stage 1: CUTSNS_PIN = 1 [18:45:34]Read from MH i2c: 01 [18:45:34]MH_I2C_Read... [18:45:34]*** Stop cut motor [18:45:34]*** Cut end [18:45:34]Read from MH i2c: 01 07 00 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [18:45:34]process_action close_receipt done [18:45:34]requested_data is exist [18:45:34]produce_requested_data [18:45:34]requested_item fm.sn is exist - process it [18:45:34]wFMCommunicate request_size=4 [18:45:34]MH_SAM_APDU [18:45:34]CAPDU: 80 11 00 00 [18:45:34]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [18:45:34]Write i2c OK [18:45:34]MH_I2C_Read... [18:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:34]Read from MH i2c: E2 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 17 00 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [18:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:45:34]wFMCommunicate OK [18:45:34]requested_item fd.num is exist - process it [18:45:34]SAM_PROTO_GetFieldsCounters [18:45:34]wFMCommunicate request_size=4 [18:45:34]MH_SAM_APDU [18:45:34]CAPDU: 80 13 00 00 [18:45:34]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [18:45:34]Write i2c OK [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 [18:45:34]MH_I2C_Read... [18:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:34]Read from MH i2c: E2 62 00 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A3 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [18:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A3 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:34]wFMCommunicate OK [18:45:34]SAM_PROTO_GetFieldsCounters done [18:45:34]requested_item shift.num is exist - process it [18:45:34]requested_item shift.opened is exist - process it [18:45:34]req_shift_opened [18:45:34]FM_GetShiftState [18:45:34]SAM_PROTO_GetShiftState [18:45:34]wFMCommunicate request_size=4 [18:45:34]MH_SAM_APDU [18:45:34]CAPDU: 80 13 01 00 [18:45:34]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [18:45:34]Write i2c OK [18:45:34]MH_I2C_Read... [18:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:34]Read from MH i2c: E2 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 0E 00 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7C [18:45:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:45:34]wFMCommunicate OK [18:45:34]SAM_PROTO_GetShiftState done [18:45:34]FM_GetShiftState done [18:45:34]req_shift_opened done [18:45:34]requested_item shift.open_date is exist - process it [18:45:34]req_shift_open_date [18:45:34]req_shift_open_date done [18:45:34]produce_requested_data done [18:45:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202147,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:45:34]process_action_free close_receipt [18:45:34]json_value_free [18:45:34]json_value_free done [18:45:34]process_json_proto returns [18:45:34]Send response to host [18:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202147,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:45:34]free response buf [18:45:34]execute_script done [18:45:34]execute_script returns [18:45:34]free content buf [18:45:34]Sock 9.Close socket [18:45:34]Sock 9.Thread stoped [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:47]accept exits with 7 [18:45:47]New connection [18:45:47]New thread 3066469732 created [18:45:47]Thread 3066613092 joined [18:45:47]Waiting for new connection... [18:45:47] Sock 7.Parse request [18:45:47]Sock 7.Check first char [18:45:47]Sock 7.First char is OK [18:45:47]request: POST /json_proto HTTP/1.0 [18:45:47]Method: POST [18:45:47]URL: /json_proto [18:45:47]Method is POST - this is cgi request [18:45:47]url: /json_proto [18:45:47]query_string will be loaded in cgi processing [18:45:47]execute_cgi json_proto POST (null) [18:45:47]execute_cgi path=json_proto method=POST [18:45:47]POST find Content-Length [18:45:47]Host: 172.17.63.195:8080 [18:45:47]Content-Length: 677 [18:45:47]Content-Type: application/json [18:45:47] [18:45:47]POST finish read [18:45:47]Found Content-Length = 677 [18:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:47]execute_script... [18:45: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)449918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:47]POST & json_proto [18:45:47]process_json_proto [18:45:47]json parsed OK: [18:45:47]protocol is kg_v1.0 [18:45:47]action value=close_receipt [18:45:47]process_action close_receipt [18:45:47]cmd_close_receipt [18:45:47]MH_GetDate [18:45:47]Write to MH i2c: F0 00 00 FE 00 ED [18:45:47]Write i2c OK [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: F0 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: F0 09 00 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: F0 09 00 FE 00 00 5C 8A 1E 67 47 1B 1E 67 48 [18:45:47]GetLastDocTimeStamp 1730054730 [18:45:47]current date 1730054748 [18:45:47]FM_GetShiftState [18:45:47]SAM_PROTO_GetShiftState [18:45:47]wFMCommunicate request_size=4 [18:45:47]MH_SAM_APDU [18:45:47]CAPDU: 80 13 01 00 [18:45:47]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [18:45:47]Write i2c OK [18:45:47]MH_I2C_Read... [18:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:47]Read from MH i2c: E2 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: E2 0E 00 [18:45:47]MH_I2C_Read... [18:45:47]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7E [18:45:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:45:47]wFMCommunicate OK [18:45:47]SAM_PROTO_GetShiftState done [18:45:47]FM_GetShiftState done [18:45:47]opened in 1729987312 [18:45:47]opened+sec_in_day 1730073712 [18:45:47]quantity*price = 40006 [18:45:47]sum+1 = 40007 [18:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 440 27.10.2024 18:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202148 ФПД: 174573947743356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184548&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202148&fm=174573947743356&tin=02508201610067®Number=0000000000091777&sum=40000 [18:45:48]StoreToDocumentArchive [18:45:48]shift 544 fd 202148 [18:45:48]save to /storage/0544/doc_00202148 [18:45:48]save last doc name /storage/0544/doc_00202148 to /storage/kkm_last_doc_name [18:45:48]save OK [18:45:48]Clear old archive folders... [18:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:48]tlvbuf is 0141EF00 [18:45:48]SAM_PROTO_ClearQueue [18:45:48]wFMCommunicate request_size=4 [18:45:48]MH_SAM_APDU [18:45:48]CAPDU: 80 09 00 00 [18:45:48]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [18:45:48]Write i2c OK [18:45:48]MH_I2C_Read... [18:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:48]Read from MH i2c: E2 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: E2 03 00 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [18:45:48]RAPDU: 90 00 [18:45:48]wFMCommunicate OK [18:45:48]SAM_PROTO_ClearQueue done [18:45:48]KKMCreateOFDPacket [18:45:48]OFDProtocolAddRootSTLVToBuf [18:45:48]FM_MakeSignedData [18:45:48]FM_MakeSignedData [18:45:48]SAM_PROTO_SignData [18:45:48]wFMCommunicate request_size=4 [18:45:48]MH_SAM_APDU [18:45:48]CAPDU: 80 0D 01 02 [18:45:48]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [18:45:48]Write i2c OK [18:45:48]MH_I2C_Read... [18:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:48]Read from MH i2c: E2 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: E2 03 00 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [18:45:48]RAPDU: 90 00 [18:45:48]wFMCommunicate OK [18:45:48]wFMCommunicate request_size=255 [18:45:48]MH_SAM_APDU [18:45:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 5C 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 15 03 00 35 04 06 00 9E [18:45:48]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 5C 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 15 03 00 35 04 06 00 9E 00 00 8A [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [18:45:49]RAPDU: 90 00 [18:45:49]wFMCommunicate OK [18:45:49]wFMCommunicate request_size=10 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 0D 02 02 05 C6 2A 24 6C 7C [18:45:49]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 C6 2A 24 6C 7C 00 00 90 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [18:45:49]RAPDU: 90 00 [18:45:49]wFMCommunicate OK [18:45:49]wFMCommunicate request_size=4 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 0D 03 02 [18:45:49]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 0B 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 0B 00 10 01 00 20 CE 11 10 D8 8A 11 0E 90 00 1D [18:45:49]RAPDU: 20 CE 11 10 D8 8A 11 0E 90 00 [18:45:49]wFMCommunicate OK [18:45:49]SAM_PROTO_SignData done [18:45:49]FM_MakeSignedData done [18:45:49]CreateOFDProtocolMessage [18:45:49]wFMCommunicate request_size=4 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 11 00 00 [18:45:49]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 17 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [18:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:45:49]wFMCommunicate OK [18:45:49]CreateOFDProtocolMessage done [18:45:49]OFDSenderStorePacket 202148 [18:45:49]StoreOFDPacket docnum=202148 [18:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 91 86 07 01 1E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 5C 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 15 03 00 35 04 06 00 9E C6 2A 24 6C 7C 20 CE 11 10 D8 8A 11 0E [18:45:49]CheckFolder [18:45:49]dirname=/storage/ofd_packets [18:45:49]CheckFolder done [18:45:49]ProducePacketName [18:45:49]name=ofd_packets/00202148 [18:45:49]NVStorageSaveData ofd_packets/00202148 [18:45:49]File name is /storage/ofd_packets/00202148 [18:45:49]Write 301 bytes [18:45:49]NVStorageSaveData done [18:45:49]OFDSenderStorePacket done [18:45:49]KKMCreateOFDPacket done [18:45:49]NVStorageSaveData kkm_last_timestamp [18:45:49]File name is /storage/kkm_last_timestamp [18:45:49]Write 4 bytes [18:45:49]NVStorageSaveData done [18:45:49]ExternCall_PrintAddStr [18:45:49]wPrintStart [18:45:49]Write to MH i2c: 01 00 00 12 01 13 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 07 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [18:45:49]RasterBufferAndPrint [18:45:49]line Счет N : (1)449918 [18:45:49]line ИНН: 02508201610067 [18:45:49]line Контрольно-Кассовый Чек [18:45:49]line ПРОДАЖА [18:45:49]line ТРК (МРК, ГНК) : 41 [18:45:49]line Товар: 2710124130 [18:45:49]line Аи-92-К-2 [18:45:49]line 5.980 * 66.90 [18:45:49]line = 400.06 [18:45:49]line НДС 12% НСП 1% [18:45:49]line > о реализуемом товаре [18:45:49]line ОКРУГЛЕНИЕ: -0.06 [18:45:49]line ИТОГО: 400.00 [18:45:49]line Внесено: 400.00 [18:45:49]line СДАЧА: 0.00 [18:45:49]line НСП 1% : 3.54 [18:45:49]line НДС 12% : 42.48 [18:45:49]line Наличными: 400.00 [18:45:49]line Безнал.: 0.00 [18:45:49]line Место: АЗС № 171 "Партнер Нефть" [18:45:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:45:49]line СНО: Общий режим [18:45:49]line Чек 440 27.10.2024 18:45 [18:45:49]line Смена: 544 ФФД: 1.0 [18:45:49]line ЗНМ: 0300000109 [18:45:49]line РНМ: 0000000000091777 [18:45:49]line Версия ККМ: 001 [18:45:49]line ФМ: 0000000000871756 [18:45:49]line ФД: 202148 [18:45:49]line ФПД: 174573947743356 [18:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184548&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202148&fm=174573947743356&tin=02508201610067®Number=0000000000091777&sum=40000 [18:45:49]written 0, free lines is 4095 [18:45:49]OFD Sender: Processing packet 202148 [packets to send 114, broken 113] [18:45:49]ProducePacketName [18:45:49]name=ofd_packets/00202148 [18:45:49]OFD Sender: To server: pG, [18:45:49]CommunicateWithHost lk.salyk.kg:30040 [18:45:49]ConnectInit lk.salyk.kg [18:45:49]Connected sock=11 [18:45:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 91 86 07 01 1E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 5C 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 15 03 00 35 04 06 00 9E C6 2A 24 6C 7C 20 CE 11 10 D8 8A 11 0E [18:45:49]Write to MH i2c: 01 00 00 3D 01 3E [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 07 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 98 0C E9 [18:45:49]RasterBufferAndPrint [18:45:49]line [18:45:49]line [18:45:49]line [18:45:49]line [18:45:49]line [18:45:49]written 0, free lines is 3232 [18:45:49]MH_Cut [18:45:49]Write to MH i2c: D1 01 00 44 01 01 17 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: D1 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: D1 01 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: D1 01 00 44 01 00 16 [18:45:49]Write to MH i2c: 01 00 00 45 01 46 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FD 32 47 00 AB E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 15 03 00 F4 03 04 00 15 36 1E 67 B6 04 01 00 00 A3 D2 FC 5B EB 74 A7 7C [18:45:49]CommunicateWithHost err = 0 [18:45:49]CheckOFDResponse [18:45:49]1017 (14) - 77093643461234 [18:45:49]1041 (16) - 0000000000871756 [18:45:49]1040 (4) - 202148 [18:45:49]1012 (4) - 27.10.2024 12:46 [18:45:49]1206 (1) - 0 [18:45:49]OFD Sender: Remove packet 202148 [18:45:49]ProducePacketName [18:45:49]name=ofd_packets/00202148 [18:45:49]NVStorageDeleteData [18:45:50]OFD Sender: No OFD packet to send [18:45:50]*** Cut start [18:45:50]*** Purtial cut [18:45:50]*** Stage 1: CUTSNS_PIN = 1 [18:45:51]Read from MH i2c: 01 [18:45:51]MH_I2C_Read... [18:45:51]*** Stop cut motor [18:45:51]*** Cut end [18:45:51]Read from MH i2c: 01 07 00 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [18:45:51]process_action close_receipt done [18:45:51]requested_data is exist [18:45:51]produce_requested_data [18:45:51]requested_item fm.sn is exist - process it [18:45:51]wFMCommunicate request_size=4 [18:45:51]MH_SAM_APDU [18:45:51]CAPDU: 80 11 00 00 [18:45:51]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [18:45:51]Write i2c OK [18:45:51]MH_I2C_Read... [18:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:51]Read from MH i2c: E2 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 17 00 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [18:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:45:51]wFMCommunicate OK [18:45:51]requested_item fd.num is exist - process it [18:45:51]SAM_PROTO_GetFieldsCounters [18:45:51]wFMCommunicate request_size=4 [18:45:51]MH_SAM_APDU [18:45:51]CAPDU: 80 13 00 00 [18:45:51]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [18:45:51]Write i2c OK [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 [18:45:51]MH_I2C_Read... [18:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:51]Read from MH i2c: E2 62 00 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A4 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [18:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A4 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:51]wFMCommunicate OK [18:45:51]SAM_PROTO_GetFieldsCounters done [18:45:51]requested_item shift.num is exist - process it [18:45:51]requested_item shift.opened is exist - process it [18:45:51]req_shift_opened [18:45:51]FM_GetShiftState [18:45:51]SAM_PROTO_GetShiftState [18:45:51]wFMCommunicate request_size=4 [18:45:51]MH_SAM_APDU [18:45:51]CAPDU: 80 13 01 00 [18:45:51]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [18:45:51]Write i2c OK [18:45:51]MH_I2C_Read... [18:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:51]Read from MH i2c: E2 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 0E 00 [18:45:51]MH_I2C_Read... [18:45:51]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C8 [18:45:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:45:51]wFMCommunicate OK [18:45:51]SAM_PROTO_GetShiftState done [18:45:51]FM_GetShiftState done [18:45:51]req_shift_opened done [18:45:51]requested_item shift.open_date is exist - process it [18:45:51]req_shift_open_date [18:45:51]req_shift_open_date done [18:45:51]produce_requested_data done [18:45:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202148,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:45:51]process_action_free close_receipt [18:45:51]json_value_free [18:45:51]json_value_free done [18:45:51]process_json_proto returns [18:45:51]Send response to host [18:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202148,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:45:51]free response buf [18:45:51]execute_script done [18:45:51]execute_script returns [18:45:51]free content buf [18:45:51]Sock 7.Close socket [18:45:51]Sock 7.Thread stoped [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:07]accept exits with 9 [18:47:07]New connection [18:47:07]New thread 3066613092 created [18:47:07]Thread 3066469732 joined [18:47:07]Waiting for new connection... [18:47:07] Sock 9.Parse request [18:47:07]Sock 9.Check first char [18:47:07]Sock 9.First char is OK [18:47:07]request: POST /json_proto HTTP/1.0 [18:47:07]Method: POST [18:47:07]URL: /json_proto [18:47:07]Method is POST - this is cgi request [18:47:07]url: /json_proto [18:47:07]query_string will be loaded in cgi processing [18:47:07]execute_cgi json_proto POST (null) [18:47:07]execute_cgi path=json_proto method=POST [18:47:07]POST find Content-Length [18:47:07]Host: 172.17.63.195:8080 [18:47:07]Content-Length: 677 [18:47:07]Content-Type: application/json [18:47:07] [18:47:07]POST finish read [18:47:07]Found Content-Length = 677 [18:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:47:07]execute_script... [18:47: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)449921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:47:07]POST & json_proto [18:47:07]process_json_proto [18:47:07]json parsed OK: [18:47:07]protocol is kg_v1.0 [18:47:07]action value=close_receipt [18:47:07]process_action close_receipt [18:47:07]cmd_close_receipt [18:47:07]MH_GetDate [18:47:07]Write to MH i2c: F0 00 00 49 01 39 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: F0 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: F0 09 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: F0 09 00 49 01 00 AB 8A 1E 67 47 1B 1E 67 E3 [18:47:07]GetLastDocTimeStamp 1730054748 [18:47:07]current date 1730054827 [18:47:07]FM_GetShiftState [18:47:07]SAM_PROTO_GetShiftState [18:47:07]wFMCommunicate request_size=4 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 13 01 00 [18:47:07]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 0E 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CA [18:47:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:47:07]wFMCommunicate OK [18:47:07]SAM_PROTO_GetShiftState done [18:47:07]FM_GetShiftState done [18:47:07]opened in 1729987312 [18:47:07]opened+sec_in_day 1730073712 [18:47:07]quantity*price = 30038 [18:47:07]sum+1 = 30039 [18:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 441 27.10.2024 18:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202149 ФПД: 75398187283069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184708&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202149&fm=75398187283069&tin=02508201610067®Number=0000000000091777&sum=30000 [18:47:08]StoreToDocumentArchive [18:47:08]shift 544 fd 202149 [18:47:08]save to /storage/0544/doc_00202149 [18:47:08]save last doc name /storage/0544/doc_00202149 to /storage/kkm_last_doc_name [18:47:08]save OK [18:47:08]Clear old archive folders... [18:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:08]tlvbuf is 0140C860 [18:47:08]SAM_PROTO_ClearQueue [18:47:08]wFMCommunicate request_size=4 [18:47:08]MH_SAM_APDU [18:47:08]CAPDU: 80 09 00 00 [18:47:08]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 03 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [18:47:08]RAPDU: 90 00 [18:47:08]wFMCommunicate OK [18:47:08]SAM_PROTO_ClearQueue done [18:47:08]KKMCreateOFDPacket [18:47:08]OFDProtocolAddRootSTLVToBuf [18:47:08]FM_MakeSignedData [18:47:08]FM_MakeSignedData [18:47:08]SAM_PROTO_SignData [18:47:08]wFMCommunicate request_size=4 [18:47:08]MH_SAM_APDU [18:47:08]CAPDU: 80 0D 01 02 [18:47:08]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 03 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [18:47:08]RAPDU: 90 00 [18:47:08]wFMCommunicate OK [18:47:08]wFMCommunicate request_size=255 [18:47:08]MH_SAM_APDU [18:47: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 32 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 B9 01 00 00 F4 03 04 00 AC 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 15 03 00 35 04 06 00 44 [18:47:08]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B9 01 00 00 F4 03 04 00 AC 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 15 03 00 35 04 06 00 44 00 00 F2 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 03 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [18:47:08]RAPDU: 90 00 [18:47:08]wFMCommunicate OK [18:47:08]wFMCommunicate request_size=10 [18:47:08]MH_SAM_APDU [18:47:08]CAPDU: 80 0D 02 02 05 93 02 2B 72 7D [18:47:08]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 93 02 2B 72 7D 00 00 8E [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 03 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [18:47:08]RAPDU: 90 00 [18:47:08]wFMCommunicate OK [18:47:08]wFMCommunicate request_size=4 [18:47:08]MH_SAM_APDU [18:47:08]CAPDU: 80 0D 03 02 [18:47:08]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 0B 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 0B 00 5B 01 00 64 AA 82 3D D0 7E 61 0F 90 00 63 [18:47:08]RAPDU: 64 AA 82 3D D0 7E 61 0F 90 00 [18:47:08]wFMCommunicate OK [18:47:08]SAM_PROTO_SignData done [18:47:08]FM_MakeSignedData done [18:47:08]CreateOFDProtocolMessage [18:47:08]wFMCommunicate request_size=4 [18:47:08]MH_SAM_APDU [18:47:08]CAPDU: 80 11 00 00 [18:47:08]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:08]Read from MH i2c: E2 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 17 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [18:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:47:08]wFMCommunicate OK [18:47:08]CreateOFDProtocolMessage done [18:47:08]OFDSenderStorePacket 202149 [18:47:08]StoreOFDPacket docnum=202149 [18:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD 10 07 01 3B 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B9 01 00 00 F4 03 04 00 AC 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 15 03 00 35 04 06 00 44 93 02 2B 72 7D 64 AA 82 3D D0 7E 61 0F [18:47:08]CheckFolder [18:47:08]dirname=/storage/ofd_packets [18:47:08]CheckFolder done [18:47:08]ProducePacketName [18:47:08]name=ofd_packets/00202149 [18:47:08]NVStorageSaveData ofd_packets/00202149 [18:47:08]File name is /storage/ofd_packets/00202149 [18:47:08]Write 301 bytes [18:47:08]NVStorageSaveData done [18:47:08]OFDSenderStorePacket done [18:47:08]KKMCreateOFDPacket done [18:47:08]NVStorageSaveData kkm_last_timestamp [18:47:08]File name is /storage/kkm_last_timestamp [18:47:08]Write 4 bytes [18:47:08]NVStorageSaveData done [18:47:08]ExternCall_PrintAddStr [18:47:08]wPrintStart [18:47:08]Write to MH i2c: 01 00 00 5D 01 5E [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 07 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [18:47:08]RasterBufferAndPrint [18:47:08]line Счет N : (1)449921 [18:47:08]line ИНН: 02508201610067 [18:47:08]line Контрольно-Кассовый Чек [18:47:08]line ПРОДАЖА [18:47:08]line ТРК (МРК, ГНК) : 41 [18:47:08]line Товар: 2710124130 [18:47:08]line Аи-92-К-2 [18:47:08]line 4.490 * 66.90 [18:47:08]line = 300.38 [18:47:08]line НДС 12% НСП 1% [18:47:08]line > о реализуемом товаре [18:47:08]line ОКРУГЛЕНИЕ: -0.38 [18:47:08]line ИТОГО: 300.00 [18:47:08]line Внесено: 300.00 [18:47:08]line СДАЧА: 0.00 [18:47:08]line НСП 1% : 2.66 [18:47:08]line НДС 12% : 31.90 [18:47:08]line Наличными: 300.00 [18:47:08]line Безнал.: 0.00 [18:47:08]line Место: АЗС № 171 "Партнер Нефть" [18:47:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:47:08]line СНО: Общий режим [18:47:08]line Чек 441 27.10.2024 18:47 [18:47:08]line Смена: 544 ФФД: 1.0 [18:47:08]line ЗНМ: 0300000109 [18:47:08]line РНМ: 0000000000091777 [18:47:08]line Версия ККМ: 001 [18:47:08]line ФМ: 0000000000871756 [18:47:08]line ФД: 202149 [18:47:08]line ФПД: 75398187283069 [18:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184708&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202149&fm=75398187283069&tin=02508201610067®Number=0000000000091777&sum=30000 [18:47:09]OFD Sender: Processing packet 202149 [packets to send 114, broken 113] [18:47:09]ProducePacketName [18:47:09]name=ofd_packets/00202149 [18:47:09]OFD Sender: To server: pG, [18:47:09]CommunicateWithHost lk.salyk.kg:30040 [18:47:09]ConnectInit lk.salyk.kg [18:47:09]written 0, free lines is 4095 [18:47:09]Connected sock=10 [18:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD 10 07 01 3B 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B9 01 00 00 F4 03 04 00 AC 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 15 03 00 35 04 06 00 44 93 02 2B 72 7D 64 AA 82 3D D0 7E 61 0F [18:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F5 96 47 00 B1 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 15 03 00 F4 03 04 00 65 36 1E 67 B6 04 01 00 00 B4 A8 B6 A1 F3 D6 8F 84 [18:47:09]CommunicateWithHost err = 0 [18:47:09]CheckOFDResponse [18:47:09]1017 (14) - 77093643461234 [18:47:09]1041 (16) - 0000000000871756 [18:47:09]1040 (4) - 202149 [18:47:09]1012 (4) - 27.10.2024 12:47 [18:47:09]1206 (1) - 0 [18:47:09]OFD Sender: Remove packet 202149 [18:47:09]ProducePacketName [18:47:09]name=ofd_packets/00202149 [18:47:09]NVStorageDeleteData [18:47:09]Write to MH i2c: 01 00 00 88 01 89 [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: 01 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: 01 07 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 97 0C 33 [18:47:09]RasterBufferAndPrint [18:47:09]line [18:47:09]line [18:47:09]line [18:47:09]line [18:47:09]line [18:47:09]written 0, free lines is 3228 [18:47:09]MH_Cut [18:47:09]Write to MH i2c: D1 01 00 8F 01 01 62 [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: D1 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: D1 01 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: D1 01 00 8F 01 00 61 [18:47:09]Write to MH i2c: 01 00 00 90 01 91 [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:10]OFD Sender: No OFD packet to send [18:47:10]*** Cut start [18:47:10]*** Purtial cut [18:47:10]*** Stage 1: CUTSNS_PIN = 1 [18:47:10]Read from MH i2c: 01 [18:47:10]MH_I2C_Read... [18:47:10]*** Stop cut motor [18:47:10]*** Cut end [18:47:10]Read from MH i2c: 01 07 00 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [18:47:10]process_action close_receipt done [18:47:10]requested_data is exist [18:47:10]produce_requested_data [18:47:10]requested_item fm.sn is exist - process it [18:47:10]wFMCommunicate request_size=4 [18:47:10]MH_SAM_APDU [18:47:10]CAPDU: 80 11 00 00 [18:47:10]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [18:47:10]Write i2c OK [18:47:10]MH_I2C_Read... [18:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:10]Read from MH i2c: E2 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: E2 17 00 [18:47:10]MH_I2C_Read... [18:47:10]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [18:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:47:10]wFMCommunicate OK [18:47:10]requested_item fd.num is exist - process it [18:47:10]SAM_PROTO_GetFieldsCounters [18:47:10]wFMCommunicate request_size=4 [18:47:10]MH_SAM_APDU [18:47:10]CAPDU: 80 13 00 00 [18:47:10]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [18:47:10]Write i2c OK [18:47:10]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 62 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A5 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [18:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A5 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:11]wFMCommunicate OK [18:47:11]SAM_PROTO_GetFieldsCounters done [18:47:11]requested_item shift.num is exist - process it [18:47:11]requested_item shift.opened is exist - process it [18:47:11]req_shift_opened [18:47:11]FM_GetShiftState [18:47:11]SAM_PROTO_GetShiftState [18:47:11]wFMCommunicate request_size=4 [18:47:11]MH_SAM_APDU [18:47:11]CAPDU: 80 13 01 00 [18:47:11]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [18:47:11]Write i2c OK [18:47:11]MH_I2C_Read... [18:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:11]Read from MH i2c: E2 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 0E 00 [18:47:11]MH_I2C_Read... [18:47:11]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 13 [18:47:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:47:11]wFMCommunicate OK [18:47:11]SAM_PROTO_GetShiftState done [18:47:11]FM_GetShiftState done [18:47:11]req_shift_opened done [18:47:11]requested_item shift.open_date is exist - process it [18:47:11]req_shift_open_date [18:47:11]req_shift_open_date done [18:47:11]produce_requested_data done [18:47:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202149,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:47:11]process_action_free close_receipt [18:47:11]json_value_free [18:47:11]json_value_free done [18:47:11]process_json_proto returns [18:47:11]Send response to host [18:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202149,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:47:11]free response buf [18:47:11]execute_script done [18:47:11]execute_script returns [18:47:11]free content buf [18:47:11]Sock 9.Close socket [18:47:11]Sock 9.Thread stoped [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:02]accept exits with 7 [18:48:02]New connection [18:48:02]New thread 3066469732 created [18:48:02]Thread 3066613092 joined [18:48:02]Waiting for new connection... [18:48:02] Sock 7.Parse request [18:48:02]Sock 7.Check first char [18:48:02]Sock 7.First char is OK [18:48:02]request: POST /json_proto HTTP/1.0 [18:48:02]Method: POST [18:48:02]URL: /json_proto [18:48:02]Method is POST - this is cgi request [18:48:02]url: /json_proto [18:48:02]query_string will be loaded in cgi processing [18:48:02]execute_cgi json_proto POST (null) [18:48:02]execute_cgi path=json_proto method=POST [18:48:02]POST find Content-Length [18:48:02]Host: 172.17.63.195:8080 [18:48:02]Content-Length: 682 [18:48:02]Content-Type: application/json [18:48:02] [18:48:02]POST finish read [18:48:02]Found Content-Length = 682 [18:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:02]execute_script... [18:48: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)449922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:02]POST & json_proto [18:48:02]process_json_proto [18:48:02]json parsed OK: [18:48:02]protocol is kg_v1.0 [18:48:02]action value=close_receipt [18:48:02]process_action close_receipt [18:48:02]cmd_close_receipt [18:48:02]MH_GetDate [18:48:02]Write to MH i2c: F0 00 00 94 01 84 [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: F0 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: F0 09 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: F0 09 00 94 01 00 E3 8A 1E 67 47 1B 1E 67 66 [18:48:02]GetLastDocTimeStamp 1730054828 [18:48:02]current date 1730054883 [18:48:02]FM_GetShiftState [18:48:02]SAM_PROTO_GetShiftState [18:48:02]wFMCommunicate request_size=4 [18:48:02]MH_SAM_APDU [18:48:02]CAPDU: 80 13 01 00 [18:48:02]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:02]Read from MH i2c: E2 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: E2 0E 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 15 [18:48:02]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:48:02]wFMCommunicate OK [18:48:02]SAM_PROTO_GetShiftState done [18:48:02]FM_GetShiftState done [18:48:02]opened in 1729987312 [18:48:02]opened+sec_in_day 1730073712 [18:48:02]quantity*price = 200031 [18:48:02]sum+1 = 200032 [18:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 442 27.10.2024 18:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202150 ФПД: 28258521390092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184803&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202150&fm=28258521390092&tin=02508201610067®Number=0000000000091777&sum=200000 [18:48:03]StoreToDocumentArchive [18:48:03]shift 544 fd 202150 [18:48:03]save to /storage/0544/doc_00202150 [18:48:03]save last doc name /storage/0544/doc_00202150 to /storage/kkm_last_doc_name [18:48:03]save OK [18:48:03]Clear old archive folders... [18:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:03]tlvbuf is 013A1FA0 [18:48:03]SAM_PROTO_ClearQueue [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 09 00 00 [18:48:03]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [18:48:03]RAPDU: 90 00 [18:48:03]wFMCommunicate OK [18:48:03]SAM_PROTO_ClearQueue done [18:48:03]KKMCreateOFDPacket [18:48:03]OFDProtocolAddRootSTLVToBuf [18:48:03]FM_MakeSignedData [18:48:03]FM_MakeSignedData [18:48:03]SAM_PROTO_SignData [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 0D 01 02 [18:48:03]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [18:48:03]RAPDU: 90 00 [18:48:03]wFMCommunicate OK [18:48:03]wFMCommunicate request_size=255 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 E3 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 15 03 00 35 04 06 00 19 [18:48:03]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 E3 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 15 03 00 35 04 06 00 19 00 00 99 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [18:48:04]RAPDU: 90 00 [18:48:04]wFMCommunicate OK [18:48:04]wFMCommunicate request_size=10 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 0D 02 02 05 B3 73 21 1C 0C [18:48:04]Write to MH i2c: E2 0D 00 A5 01 80 0D 02 02 05 00 B3 73 21 1C 0C 00 00 99 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [18:48:04]RAPDU: 90 00 [18:48:04]wFMCommunicate OK [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 0D 03 02 [18:48:04]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0B 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0B 00 A6 01 00 58 69 18 11 41 15 D4 BE 90 00 F5 [18:48:04]RAPDU: 58 69 18 11 41 15 D4 BE 90 00 [18:48:04]wFMCommunicate OK [18:48:04]SAM_PROTO_SignData done [18:48:04]FM_MakeSignedData done [18:48:04]CreateOFDProtocolMessage [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 11 00 00 [18:48:04]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 17 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [18:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:48:04]wFMCommunicate OK [18:48:04]CreateOFDProtocolMessage done [18:48:04]OFDSenderStorePacket 202150 [18:48:04]StoreOFDPacket docnum=202150 [18:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6D C4 07 01 0E 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 E3 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 15 03 00 35 04 06 00 19 B3 73 21 1C 0C 58 69 18 11 41 15 D4 BE [18:48:04]CheckFolder [18:48:04]dirname=/storage/ofd_packets [18:48:04]CheckFolder done [18:48:04]ProducePacketName [18:48:04]name=ofd_packets/00202150 [18:48:04]NVStorageSaveData ofd_packets/00202150 [18:48:04]File name is /storage/ofd_packets/00202150 [18:48:04]Write 301 bytes [18:48:04]NVStorageSaveData done [18:48:04]OFDSenderStorePacket done [18:48:04]KKMCreateOFDPacket done [18:48:04]NVStorageSaveData kkm_last_timestamp [18:48:04]File name is /storage/kkm_last_timestamp [18:48:04]Write 4 bytes [18:48:04]NVStorageSaveData done [18:48:04]ExternCall_PrintAddStr [18:48:04]wPrintStart [18:48:04]Write to MH i2c: 01 00 00 A8 01 A9 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [18:48:04]RasterBufferAndPrint [18:48:04]line Счет N : (1)449922 [18:48:04]line ИНН: 02508201610067 [18:48:04]line Контрольно-Кассовый Чек [18:48:04]line ПРОДАЖА [18:48:04]line ТРК (МРК, ГНК) : 52 [18:48:04]line Товар: 2710124130 [18:48:04]line Аи-92-К-2 [18:48:04]line 29.900 * 66.90 [18:48:04]line = 2000.31 [18:48:04]line НДС 12% НСП 1% [18:48:04]line > о реализуемом товаре [18:48:04]line ОКРУГЛЕНИЕ: -0.31 [18:48:04]line ИТОГО: 2000.00 [18:48:04]line Внесено: 2000.00 [18:48:04]line СДАЧА: 0.00 [18:48:04]line НСП 1% : 17.70 [18:48:04]line НДС 12% : 212.42 [18:48:04]line Наличными: 2000.00 [18:48:04]line Безнал.: 0.00 [18:48:04]line Место: АЗС № 171 "Партнер Нефть" [18:48:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:48:04]line СНО: Общий режим [18:48:04]line Чек 442 27.10.2024 18:48 [18:48:04]line Смена: 544 ФФД: 1.0 [18:48:04]line ЗНМ: 0300000109 [18:48:04]line РНМ: 0000000000091777 [18:48:04]line Версия ККМ: 001 [18:48:04]line ФМ: 0000000000871756 [18:48:04]line ФД: 202150 [18:48:04]line ФПД: 28258521390092 [18:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184803&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202150&fm=28258521390092&tin=02508201610067®Number=0000000000091777&sum=200000 [18:48:04]OFD Sender: Processing packet 202150 [packets to send 114, broken 113] [18:48:04]ProducePacketName [18:48:04]name=ofd_packets/00202150 [18:48:04]OFD Sender: To server: pG, [18:48:04]CommunicateWithHost lk.salyk.kg:30040 [18:48:04]ConnectInit lk.salyk.kg [18:48:04]written 0, free lines is 4095 [18:48:04]Connected sock=10 [18:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6D C4 07 01 0E 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 E3 8A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 15 03 00 35 04 06 00 19 B3 73 21 1C 0C 58 69 18 11 41 15 D4 BE [18:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 47 D4 47 00 15 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 15 03 00 F4 03 04 00 9C 36 1E 67 B6 04 01 00 00 99 DE F0 B3 74 9E AF DB [18:48:05]CommunicateWithHost err = 0 [18:48:05]CheckOFDResponse [18:48:05]1017 (14) - 77093643461234 [18:48:05]1041 (16) - 0000000000871756 [18:48:05]1040 (4) - 202150 [18:48:05]1012 (4) - 27.10.2024 12:48 [18:48:05]1206 (1) - 0 [18:48:05]OFD Sender: Remove packet 202150 [18:48:05]ProducePacketName [18:48:05]name=ofd_packets/00202150 [18:48:05]NVStorageDeleteData [18:48:05]Write to MH i2c: 01 00 00 D3 01 D4 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 8C 0C 73 [18:48:05]RasterBufferAndPrint [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]written 0, free lines is 3216 [18:48:05]MH_Cut [18:48:05]Write to MH i2c: D1 01 00 DA 01 01 AD [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 01 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 01 00 DA 01 00 AC [18:48:05]Write to MH i2c: 01 00 00 DB 01 DC [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]OFD Sender: No OFD packet to send [18:48:06]*** Cut start [18:48:06]*** Purtial cut [18:48:06]*** Stage 1: CUTSNS_PIN = 1 [18:48:06]Read from MH i2c: 01 [18:48:06]MH_I2C_Read... [18:48:06]*** Stop cut motor [18:48:06]*** Cut end [18:48:06]Read from MH i2c: 01 07 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [18:48:06]process_action close_receipt done [18:48:06]requested_data is exist [18:48:06]produce_requested_data [18:48:06]requested_item fm.sn is exist - process it [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 11 00 00 [18:48:06]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 17 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AC [18:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:48:06]wFMCommunicate OK [18:48:06]requested_item fd.num is exist - process it [18:48:06]SAM_PROTO_GetFieldsCounters [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 13 00 00 [18:48:06]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 62 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:06]wFMCommunicate OK [18:48:06]SAM_PROTO_GetFieldsCounters done [18:48:06]requested_item shift.num is exist - process it [18:48:06]requested_item shift.opened is exist - process it [18:48:06]req_shift_opened [18:48:06]FM_GetShiftState [18:48:06]SAM_PROTO_GetShiftState [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 13 01 00 [18:48:06]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 0E 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5E [18:48:06]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:48:06]wFMCommunicate OK [18:48:06]SAM_PROTO_GetShiftState done [18:48:06]FM_GetShiftState done [18:48:06]req_shift_opened done [18:48:06]requested_item shift.open_date is exist - process it [18:48:06]req_shift_open_date [18:48:06]req_shift_open_date done [18:48:06]produce_requested_data done [18:48:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202150,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:48:06]process_action_free close_receipt [18:48:06]json_value_free [18:48:06]json_value_free done [18:48:06]process_json_proto returns [18:48:06]Send response to host [18:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202150,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:48:06]free response buf [18:48:06]execute_script done [18:48:06]execute_script returns [18:48:06]free content buf [18:48:06]Sock 7.Close socket [18:48:06]Sock 7.Thread stoped [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:41]accept exits with 9 [18:48:41]New connection [18:48:41]New thread 3066613092 created [18:48:41]Thread 3066469732 joined [18:48:41]Waiting for new connection... [18:48:41] Sock 9.Parse request [18:48:41]Sock 9.Check first char [18:48:41]Sock 9.First char is OK [18:48:41]request: POST /json_proto HTTP/1.0 [18:48:41]Method: POST [18:48:41]URL: /json_proto [18:48:41]Method is POST - this is cgi request [18:48:41]url: /json_proto [18:48:41]query_string will be loaded in cgi processing [18:48:41]execute_cgi json_proto POST (null) [18:48:41]execute_cgi path=json_proto method=POST [18:48:41]POST find Content-Length [18:48:41]Host: 172.17.63.195:8080 [18:48:41]Content-Length: 677 [18:48:41]Content-Type: application/json [18:48:41] [18:48:41]POST finish read [18:48:41]Found Content-Length = 677 [18:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:48:41]execute_script... [18:48: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)449923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:48:41]POST & json_proto [18:48:41]process_json_proto [18:48:41]json parsed OK: [18:48:41]protocol is kg_v1.0 [18:48:41]action value=close_receipt [18:48:41]process_action close_receipt [18:48:41]cmd_close_receipt [18:48:41]MH_GetDate [18:48:41]Write to MH i2c: F0 00 00 DF 01 CF [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: F0 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: F0 09 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: F0 09 00 DF 01 00 0A 8B 1E 67 47 1B 1E 67 D9 [18:48:41]GetLastDocTimeStamp 1730054883 [18:48:41]current date 1730054922 [18:48:41]FM_GetShiftState [18:48:41]SAM_PROTO_GetShiftState [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 13 01 00 [18:48:41]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 60 [18:48:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:48:41]wFMCommunicate OK [18:48:41]SAM_PROTO_GetShiftState done [18:48:41]FM_GetShiftState done [18:48:41]opened in 1729987312 [18:48:41]opened+sec_in_day 1730073712 [18:48:41]quantity*price = 50041 [18:48:41]sum+1 = 50042 [18:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 443 27.10.2024 18:48 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202151 ФПД: 15586732974793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184842&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202151&fm=15586732974793&tin=02508201610067®Number=0000000000091777&sum=50000 [18:48:42]StoreToDocumentArchive [18:48:42]shift 544 fd 202151 [18:48:42]save to /storage/0544/doc_00202151 [18:48:42]save last doc name /storage/0544/doc_00202151 to /storage/kkm_last_doc_name [18:48:42]save OK [18:48:42]Clear old archive folders... [18:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:42]tlvbuf is 013BCCC0 [18:48:42]SAM_PROTO_ClearQueue [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 09 00 00 [18:48:42]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]SAM_PROTO_ClearQueue done [18:48:42]KKMCreateOFDPacket [18:48:42]OFDProtocolAddRootSTLVToBuf [18:48:42]FM_MakeSignedData [18:48:42]FM_MakeSignedData [18:48:42]SAM_PROTO_SignData [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 01 02 [18:48:42]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=255 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BB 01 00 00 F4 03 04 00 0A 8B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 15 03 00 35 04 06 00 0E [18:48:42]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BB 01 00 00 F4 03 04 00 0A 8B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 15 03 00 35 04 06 00 0E 00 00 C1 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=10 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 02 02 05 2D 11 AE A2 C9 [18:48:42]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 2D 11 AE A2 C9 00 00 CC [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 03 02 [18:48:42]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 0B 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 0B 00 F1 01 00 FC F7 63 F5 1F 1E D5 1B 90 00 E6 [18:48:42]RAPDU: FC F7 63 F5 1F 1E D5 1B 90 00 [18:48:42]wFMCommunicate OK [18:48:42]SAM_PROTO_SignData done [18:48:42]FM_MakeSignedData done [18:48:42]CreateOFDProtocolMessage [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 11 00 00 [18:48:42]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:43]Read from MH i2c: E2 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: E2 17 00 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C2 [18:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:48:43]wFMCommunicate OK [18:48:43]CreateOFDProtocolMessage done [18:48:43]OFDSenderStorePacket 202151 [18:48:43]StoreOFDPacket docnum=202151 [18:48:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 23 07 01 20 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BB 01 00 00 F4 03 04 00 0A 8B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 15 03 00 35 04 06 00 0E 2D 11 AE A2 C9 FC F7 63 F5 1F 1E D5 1B [18:48:43]CheckFolder [18:48:43]dirname=/storage/ofd_packets [18:48:43]CheckFolder done [18:48:43]ProducePacketName [18:48:43]name=ofd_packets/00202151 [18:48:43]NVStorageSaveData ofd_packets/00202151 [18:48:43]File name is /storage/ofd_packets/00202151 [18:48:43]Write 301 bytes [18:48:43]NVStorageSaveData done [18:48:43]OFDSenderStorePacket done [18:48:43]KKMCreateOFDPacket done [18:48:43]NVStorageSaveData kkm_last_timestamp [18:48:43]File name is /storage/kkm_last_timestamp [18:48:43]Write 4 bytes [18:48:43]NVStorageSaveData done [18:48:43]ExternCall_PrintAddStr [18:48:43]wPrintStart [18:48:43]Write to MH i2c: 01 00 00 F3 01 F4 [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 07 00 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [18:48:43]RasterBufferAndPrint [18:48:43]line Счет N : (1)449923 [18:48:43]line ИНН: 02508201610067 [18:48:43]line Контрольно-Кассовый Чек [18:48:43]line ПРОДАЖА [18:48:43]line ТРК (МРК, ГНК) : 41 [18:48:43]line Товар: 2710124130 [18:48:43]line Аи-92-К-2 [18:48:43]line 7.480 * 66.90 [18:48:43]line = 500.41 [18:48:43]line НДС 12% НСП 1% [18:48:43]line > о реализуемом товаре [18:48:43]line ОКРУГЛЕНИЕ: -0.41 [18:48:43]line ИТОГО: 500.00 [18:48:43]line Внесено: 500.00 [18:48:43]line СДАЧА: 0.00 [18:48:43]line НСП 1% : 4.43 [18:48:43]line НДС 12% : 53.14 [18:48:43]line Наличными: 500.00 [18:48:43]line Безнал.: 0.00 [18:48:43]line Место: АЗС № 171 "Партнер Нефть" [18:48:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:48:43]line СНО: Общий режим [18:48:43]line Чек 443 27.10.2024 18:48 [18:48:43]line Смена: 544 ФФД: 1.0 [18:48:43]line ЗНМ: 0300000109 [18:48:43]line РНМ: 0000000000091777 [18:48:43]line Версия ККМ: 001 [18:48:43]line ФМ: 0000000000871756 [18:48:43]line ФД: 202151 [18:48:43]line ФПД: 15586732974793 [18:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184842&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202151&fm=15586732974793&tin=02508201610067®Number=0000000000091777&sum=50000 [18:48:43]OFD Sender: Processing packet 202151 [packets to send 114, broken 113] [18:48:43]ProducePacketName [18:48:43]name=ofd_packets/00202151 [18:48:43]OFD Sender: To server: pG, [18:48:43]CommunicateWithHost lk.salyk.kg:30040 [18:48:43]ConnectInit lk.salyk.kg [18:48:43]written 0, free lines is 4095 [18:48:43]Connected sock=10 [18:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 23 07 01 20 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BB 01 00 00 F4 03 04 00 0A 8B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 15 03 00 35 04 06 00 0E 2D 11 AE A2 C9 FC F7 63 F5 1F 1E D5 1B [18:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 85 07 47 00 AC ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 15 03 00 F4 03 04 00 C3 36 1E 67 B6 04 01 00 00 9F FE 73 F6 C0 CB 30 81 [18:48:43]CommunicateWithHost err = 0 [18:48:43]CheckOFDResponse [18:48:43]1017 (14) - 77093643461234 [18:48:43]1041 (16) - 0000000000871756 [18:48:43]1040 (4) - 202151 [18:48:43]1012 (4) - 27.10.2024 12:49 [18:48:43]1206 (1) - 0 [18:48:43]OFD Sender: Remove packet 202151 [18:48:43]ProducePacketName [18:48:43]name=ofd_packets/00202151 [18:48:43]NVStorageDeleteData [18:48:43]Write to MH i2c: 01 00 00 1E 02 20 [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 07 00 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 93 0C C6 [18:48:43]RasterBufferAndPrint [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]written 0, free lines is 3225 [18:48:43]MH_Cut [18:48:43]Write to MH i2c: D1 01 00 25 02 01 F9 [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 01 00 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 01 00 25 02 00 F8 [18:48:43]Write to MH i2c: 01 00 00 26 02 28 [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:44]OFD Sender: No OFD packet to send [18:48:44]*** Cut start [18:48:44]*** Purtial cut [18:48:44]*** Stage 1: CUTSNS_PIN = 1 [18:48:44]Read from MH i2c: 01 [18:48:44]MH_I2C_Read... [18:48:44]*** Stop cut motor [18:48:44]*** Cut end [18:48:44]Read from MH i2c: 01 07 00 [18:48:44]MH_I2C_Read... [18:48:44]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [18:48:44]process_action close_receipt done [18:48:44]requested_data is exist [18:48:44]produce_requested_data [18:48:44]requested_item fm.sn is exist - process it [18:48:44]wFMCommunicate request_size=4 [18:48:44]MH_SAM_APDU [18:48:44]CAPDU: 80 11 00 00 [18:48:44]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [18:48:44]Write i2c OK [18:48:44]MH_I2C_Read... [18:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 17 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F8 [18:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:48:45]wFMCommunicate OK [18:48:45]requested_item fd.num is exist - process it [18:48:45]SAM_PROTO_GetFieldsCounters [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 13 00 00 [18:48:45]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 62 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 62 00 28 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:45]wFMCommunicate OK [18:48:45]SAM_PROTO_GetFieldsCounters done [18:48:45]requested_item shift.num is exist - process it [18:48:45]requested_item shift.opened is exist - process it [18:48:45]req_shift_opened [18:48:45]FM_GetShiftState [18:48:45]SAM_PROTO_GetShiftState [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 13 01 00 [18:48:45]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 0E 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AA [18:48:45]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:48:45]wFMCommunicate OK [18:48:45]SAM_PROTO_GetShiftState done [18:48:45]FM_GetShiftState done [18:48:45]req_shift_opened done [18:48:45]requested_item shift.open_date is exist - process it [18:48:45]req_shift_open_date [18:48:45]req_shift_open_date done [18:48:45]produce_requested_data done [18:48:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202151,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:48:45]process_action_free close_receipt [18:48:45]json_value_free [18:48:45]json_value_free done [18:48:45]process_json_proto returns [18:48:45]Send response to host [18:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202151,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:48:45]free response buf [18:48:45]execute_script done [18:48:45]execute_script returns [18:48:45]free content buf [18:48:45]Sock 9.Close socket [18:48:45]Sock 9.Thread stoped [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:49:59]accept exits with 7 [18:49:59]New connection [18:49:59]New thread 3066469732 created [18:49:59]Thread 3066613092 joined [18:49:59]Waiting for new connection... [18:49:59] Sock 7.Parse request [18:49:59]Sock 7.Check first char [18:49:59]Sock 7.First char is OK [18:49:59]request: POST /json_proto HTTP/1.0 [18:49:59]Method: POST [18:49:59]URL: /json_proto [18:49:59]Method is POST - this is cgi request [18:49:59]url: /json_proto [18:49:59]query_string will be loaded in cgi processing [18:49:59]execute_cgi json_proto POST (null) [18:49:59]execute_cgi path=json_proto method=POST [18:49:59]POST find Content-Length [18:49:59]Host: 172.17.63.195:8080 [18:49:59]Content-Length: 677 [18:49:59]Content-Type: application/json [18:49:59] [18:49:59]POST finish read [18:49:59]Found Content-Length = 677 [18:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:59]execute_script... [18:49:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:59]POST & json_proto [18:49:59]process_json_proto [18:49:59]json parsed OK: [18:49:59]protocol is kg_v1.0 [18:49:59]action value=close_receipt [18:49:59]process_action close_receipt [18:49:59]cmd_close_receipt [18:49:59]MH_GetDate [18:49:59]Write to MH i2c: F0 00 00 2A 02 1B [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: F0 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: F0 09 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: F0 09 00 2A 02 00 58 8B 1E 67 47 1B 1E 67 73 [18:49:59]GetLastDocTimeStamp 1730054922 [18:49:59]current date 1730055000 [18:49:59]FM_GetShiftState [18:49:59]SAM_PROTO_GetShiftState [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 13 01 00 [18:49:59]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 0E 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 AC [18:49:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:49:59]wFMCommunicate OK [18:49:59]SAM_PROTO_GetShiftState done [18:49:59]FM_GetShiftState done [18:49:59]opened in 1729987312 [18:49:59]opened+sec_in_day 1730073712 [18:49:59]quantity*price = 40006 [18:49:59]sum+1 = 40007 [18:49:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 444 27.10.2024 18:50 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202152 ФПД: 2710995406458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185000&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202152&fm=2710995406458&tin=02508201610067®Number=0000000000091777&sum=40000 [18:50:01]StoreToDocumentArchive [18:50:01]shift 544 fd 202152 [18:50:01]save to /storage/0544/doc_00202152 [18:50:01]save last doc name /storage/0544/doc_00202152 to /storage/kkm_last_doc_name [18:50:01]save OK [18:50:01]Clear old archive folders... [18:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:01]tlvbuf is 0140C250 [18:50:01]SAM_PROTO_ClearQueue [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 09 00 00 [18:50:01]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [18:50:01]RAPDU: 90 00 [18:50:01]wFMCommunicate OK [18:50:01]SAM_PROTO_ClearQueue done [18:50:01]KKMCreateOFDPacket [18:50:01]OFDProtocolAddRootSTLVToBuf [18:50:01]FM_MakeSignedData [18:50:01]FM_MakeSignedData [18:50:01]SAM_PROTO_SignData [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 0D 01 02 [18:50:01]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [18:50:01]RAPDU: 90 00 [18:50:01]wFMCommunicate OK [18:50:01]wFMCommunicate request_size=255 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 58 8B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 15 03 00 35 04 06 00 02 [18:50:01]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 58 8B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 15 03 00 35 04 06 00 02 00 00 20 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [18:50:01]RAPDU: 90 00 [18:50:01]wFMCommunicate OK [18:50:01]wFMCommunicate request_size=10 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 0D 02 02 05 77 33 EB 0E 7A [18:50:01]Write to MH i2c: E2 0D 00 3B 02 80 0D 02 02 05 00 77 33 EB 0E 7A 00 00 DE [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [18:50:01]RAPDU: 90 00 [18:50:01]wFMCommunicate OK [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 0D 03 02 [18:50:01]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 0B 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 0B 00 3C 02 00 33 E1 A8 0A F0 EB 43 AB 90 00 49 [18:50:01]RAPDU: 33 E1 A8 0A F0 EB 43 AB 90 00 [18:50:01]wFMCommunicate OK [18:50:01]SAM_PROTO_SignData done [18:50:01]FM_MakeSignedData done [18:50:01]CreateOFDProtocolMessage [18:50:01]wFMCommunicate request_size=4 [18:50:01]MH_SAM_APDU [18:50:01]CAPDU: 80 11 00 00 [18:50:01]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:01]Read from MH i2c: E2 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 17 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [18:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:50:01]wFMCommunicate OK [18:50:01]CreateOFDProtocolMessage done [18:50:01]OFDSenderStorePacket 202152 [18:50:01]StoreOFDPacket docnum=202152 [18:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B0 89 07 01 1A D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 58 8B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 15 03 00 35 04 06 00 02 77 33 EB 0E 7A 33 E1 A8 0A F0 EB 43 AB [18:50:01]CheckFolder [18:50:01]dirname=/storage/ofd_packets [18:50:01]CheckFolder done [18:50:01]ProducePacketName [18:50:01]name=ofd_packets/00202152 [18:50:01]NVStorageSaveData ofd_packets/00202152 [18:50:01]File name is /storage/ofd_packets/00202152 [18:50:01]Write 301 bytes [18:50:01]NVStorageSaveData done [18:50:01]OFDSenderStorePacket done [18:50:01]KKMCreateOFDPacket done [18:50:01]NVStorageSaveData kkm_last_timestamp [18:50:01]File name is /storage/kkm_last_timestamp [18:50:01]Write 4 bytes [18:50:01]NVStorageSaveData done [18:50:01]ExternCall_PrintAddStr [18:50:01]wPrintStart [18:50:01]Write to MH i2c: 01 00 00 3E 02 40 [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 07 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [18:50:01]RasterBufferAndPrint [18:50:01]line Счет N : (1)449924 [18:50:01]line ИНН: 02508201610067 [18:50:01]line Контрольно-Кассовый Чек [18:50:01]line ПРОДАЖА [18:50:01]line ТРК (МРК, ГНК) : 62 [18:50:01]line Товар: 2710124130 [18:50:01]line Аи-92-К-2 [18:50:01]line 5.980 * 66.90 [18:50:01]line = 400.06 [18:50:01]line НДС 12% НСП 1% [18:50:01]line > о реализуемом товаре [18:50:01]line ОКРУГЛЕНИЕ: -0.06 [18:50:01]line ИТОГО: 400.00 [18:50:01]line Внесено: 400.00 [18:50:01]line СДАЧА: 0.00 [18:50:01]line НСП 1% : 3.54 [18:50:01]line НДС 12% : 42.48 [18:50:01]line Наличными: 400.00 [18:50:01]line Безнал.: 0.00 [18:50:01]line Место: АЗС № 171 "Партнер Нефть" [18:50:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:50:01]line СНО: Общий режим [18:50:01]line Чек 444 27.10.2024 18:50 [18:50:01]line Смена: 544 ФФД: 1.0 [18:50:01]line ЗНМ: 0300000109 [18:50:01]line РНМ: 0000000000091777 [18:50:01]line Версия ККМ: 001 [18:50:01]line ФМ: 0000000000871756 [18:50:01]line ФД: 202152 [18:50:01]line ФПД: 2710995406458 [18:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185000&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202152&fm=2710995406458&tin=02508201610067®Number=0000000000091777&sum=40000 [18:50:01]OFD Sender: Processing packet 202152 [packets to send 114, broken 113] [18:50:01]ProducePacketName [18:50:01]name=ofd_packets/00202152 [18:50:01]OFD Sender: To server: pG, [18:50:01]CommunicateWithHost lk.salyk.kg:30040 [18:50:01]ConnectInit lk.salyk.kg [18:50:01]written 0, free lines is 4095 [18:50:01]Connected sock=10 [18:50:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B0 89 07 01 1A D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 58 8B 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 15 03 00 35 04 06 00 02 77 33 EB 0E 7A 33 E1 A8 0A F0 EB 43 AB [18:50:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C9 78 47 00 7C 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 15 03 00 F4 03 04 00 11 37 1E 67 B6 04 01 00 00 BE 85 A5 18 21 A6 D1 B3 [18:50:02]CommunicateWithHost err = 0 [18:50:02]CheckOFDResponse [18:50:02]1017 (14) - 77093643461234 [18:50:02]1041 (16) - 0000000000871756 [18:50:02]1040 (4) - 202152 [18:50:02]1012 (4) - 27.10.2024 12:50 [18:50:02]1206 (1) - 0 [18:50:02]OFD Sender: Remove packet 202152 [18:50:02]ProducePacketName [18:50:02]name=ofd_packets/00202152 [18:50:02]NVStorageDeleteData [18:50:02]Write to MH i2c: 01 00 00 69 02 6B [18:50:02]Write i2c OK [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 07 00 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 8C 0C 0A [18:50:02]RasterBufferAndPrint [18:50:02]line [18:50:02]line [18:50:02]line [18:50:02]line [18:50:02]line [18:50:02]written 0, free lines is 3216 [18:50:02]MH_Cut [18:50:02]Write to MH i2c: D1 01 00 70 02 01 44 [18:50:02]Write i2c OK [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: D1 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: D1 01 00 [18:50:02]MH_I2C_Read... [18:50:02]Read from MH i2c: D1 01 00 70 02 00 43 [18:50:02]Write to MH i2c: 01 00 00 71 02 73 [18:50:02]Write i2c OK [18:50:02]MH_I2C_Read... [18:50:02]OFD Sender: No OFD packet to send [18:50:03]*** Cut start [18:50:03]*** Purtial cut [18:50:03]*** Stage 1: CUTSNS_PIN = 1 [18:50:03]Read from MH i2c: 01 [18:50:03]MH_I2C_Read... [18:50:03]*** Stop cut motor [18:50:03]*** Cut end [18:50:03]Read from MH i2c: 01 07 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [18:50:03]process_action close_receipt done [18:50:03]requested_data is exist [18:50:03]produce_requested_data [18:50:03]requested_item fm.sn is exist - process it [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 11 00 00 [18:50:03]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 17 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [18:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:50:03]wFMCommunicate OK [18:50:03]requested_item fd.num is exist - process it [18:50:03]SAM_PROTO_GetFieldsCounters [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 13 00 00 [18:50:03]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 62 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 62 00 73 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A8 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A8 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:03]wFMCommunicate OK [18:50:03]SAM_PROTO_GetFieldsCounters done [18:50:03]requested_item shift.num is exist - process it [18:50:03]requested_item shift.opened is exist - process it [18:50:03]req_shift_opened [18:50:03]FM_GetShiftState [18:50:03]SAM_PROTO_GetShiftState [18:50:03]wFMCommunicate request_size=4 [18:50:03]MH_SAM_APDU [18:50:03]CAPDU: 80 13 01 00 [18:50:03]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [18:50:03]Write i2c OK [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 [18:50:03]MH_I2C_Read... [18:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:03]Read from MH i2c: E2 0E 00 [18:50:03]MH_I2C_Read... [18:50:03]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F5 [18:50:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:50:03]wFMCommunicate OK [18:50:03]SAM_PROTO_GetShiftState done [18:50:03]FM_GetShiftState done [18:50:03]req_shift_opened done [18:50:03]requested_item shift.open_date is exist - process it [18:50:03]req_shift_open_date [18:50:03]req_shift_open_date done [18:50:03]produce_requested_data done [18:50:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202152,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:50:03]process_action_free close_receipt [18:50:03]json_value_free [18:50:03]json_value_free done [18:50:03]process_json_proto returns [18:50:03]Send response to host [18:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202152,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:50:03]free response buf [18:50:03]execute_script done [18:50:03]execute_script returns [18:50:03]free content buf [18:50:03]Sock 7.Close socket [18:50:03]Sock 7.Thread stoped [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:13]accept exits with 9 [18:54:13]New connection [18:54:13]New thread 3066613092 created [18:54:13]Thread 3066469732 joined [18:54:13]Waiting for new connection... [18:54:13] Sock 9.Parse request [18:54:13]Sock 9.Check first char [18:54:13]Sock 9.First char is OK [18:54:13]request: POST /json_proto HTTP/1.0 [18:54:13]Method: POST [18:54:13]URL: /json_proto [18:54:13]Method is POST - this is cgi request [18:54:13]url: /json_proto [18:54:13]query_string will be loaded in cgi processing [18:54:13]execute_cgi json_proto POST (null) [18:54:13]execute_cgi path=json_proto method=POST [18:54:13]POST find Content-Length [18:54:13]Host: 172.17.63.195:8080 [18:54:13]Content-Length: 816 [18:54:13]Content-Type: application/json [18:54:13] [18:54:13]POST finish read [18:54:13]Found Content-Length = 816 [18:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:13]execute_script... [18:54:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:13]POST & json_proto [18:54:13]process_json_proto [18:54:13]json parsed OK: [18:54:13]protocol is kg_v1.0 [18:54:13]action value=close_receipt [18:54:13]process_action close_receipt [18:54:13]cmd_close_receipt [18:54:13]MH_GetDate [18:54:13]Write to MH i2c: F0 00 00 75 02 66 [18:54:13]Write i2c OK [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: F0 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: F0 09 00 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: F0 09 00 75 02 00 56 8C 1E 67 47 1B 1E 67 BD [18:54:13]GetLastDocTimeStamp 1730055000 [18:54:13]current date 1730055254 [18:54:13]FM_GetShiftState [18:54:13]SAM_PROTO_GetShiftState [18:54:13]wFMCommunicate request_size=4 [18:54:13]MH_SAM_APDU [18:54:13]CAPDU: 80 13 01 00 [18:54:13]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [18:54:13]Write i2c OK [18:54:13]MH_I2C_Read... [18:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:13]Read from MH i2c: E2 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: E2 0E 00 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F7 [18:54:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:54:13]wFMCommunicate OK [18:54:13]SAM_PROTO_GetShiftState done [18:54:13]FM_GetShiftState done [18:54:13]opened in 1729987312 [18:54:13]opened+sec_in_day 1730073712 [18:54:13]quantity*price = 50041 [18:54:13]sum+1 = 50042 [18:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 445 27.10.2024 18:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 202153 ФПД: 54483410916220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185414&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202153&fm=54483410916220&tin=02508201610067®Number=0000000000091777&sum=50041 [18:54:14]StoreToDocumentArchive [18:54:14]shift 544 fd 202153 [18:54:14]save to /storage/0544/doc_00202153 [18:54:14]save last doc name /storage/0544/doc_00202153 to /storage/kkm_last_doc_name [18:54:14]save OK [18:54:14]Clear old archive folders... [18:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:14]tlvbuf is 0141C490 [18:54:14]SAM_PROTO_ClearQueue [18:54:14]wFMCommunicate request_size=4 [18:54:14]MH_SAM_APDU [18:54:14]CAPDU: 80 09 00 00 [18:54:14]Write to MH i2c: E2 08 00 83 02 80 09 00 00 00 00 00 00 F7 [18:54:14]Write i2c OK [18:54:14]MH_I2C_Read... [18:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:14]Read from MH i2c: E2 [18:54:14]MH_I2C_Read... [18:54:14]Read from MH i2c: E2 03 00 [18:54:14]MH_I2C_Read... [18:54:14]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [18:54:14]RAPDU: 90 00 [18:54:14]wFMCommunicate OK [18:54:14]SAM_PROTO_ClearQueue done [18:54:14]KKMCreateOFDPacket [18:54:14]OFDProtocolAddRootSTLVToBuf [18:54:14]FM_MakeSignedData [18:54:14]FM_MakeSignedData [18:54:14]SAM_PROTO_SignData [18:54:14]wFMCommunicate request_size=4 [18:54:14]MH_SAM_APDU [18:54:14]CAPDU: 80 0D 01 02 [18:54:14]Write to MH i2c: E2 08 00 84 02 80 0D 01 02 00 00 00 00 FF [18:54:14]Write i2c OK [18:54:14]MH_I2C_Read... [18:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:14]Read from MH i2c: E2 [18:54:14]MH_I2C_Read... [18:54:14]Read from MH i2c: E2 03 00 [18:54:14]MH_I2C_Read... [18:54:14]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [18:54:14]RAPDU: 90 00 [18:54:14]wFMCommunicate OK [18:54:14]wFMCommunicate request_size=255 [18:54:14]MH_SAM_APDU [18:54:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 56 8C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 15 03 00 35 04 06 00 31 [18:54:14]Write to MH i2c: E2 02 01 85 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 56 8C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 15 03 00 35 04 06 00 31 00 00 1E [18:54:14]Write i2c OK [18:54:14]MH_I2C_Read... [18:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:15]Read from MH i2c: E2 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 03 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [18:54:15]RAPDU: 90 00 [18:54:15]wFMCommunicate OK [18:54:15]wFMCommunicate request_size=10 [18:54:15]MH_SAM_APDU [18:54:15]CAPDU: 80 0D 02 02 05 8D 68 5A 93 7C [18:54:15]Write to MH i2c: E2 0D 00 86 02 80 0D 02 02 05 00 8D 68 5A 93 7C 00 00 6A [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:15]Read from MH i2c: E2 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 03 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [18:54:15]RAPDU: 90 00 [18:54:15]wFMCommunicate OK [18:54:15]wFMCommunicate request_size=4 [18:54:15]MH_SAM_APDU [18:54:15]CAPDU: 80 0D 03 02 [18:54:15]Write to MH i2c: E2 08 00 87 02 80 0D 03 02 00 00 00 00 04 [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:15]Read from MH i2c: E2 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 0B 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 0B 00 87 02 00 9F D1 FD 07 16 59 73 EE 90 00 49 [18:54:15]RAPDU: 9F D1 FD 07 16 59 73 EE 90 00 [18:54:15]wFMCommunicate OK [18:54:15]SAM_PROTO_SignData done [18:54:15]FM_MakeSignedData done [18:54:15]CreateOFDProtocolMessage [18:54:15]wFMCommunicate request_size=4 [18:54:15]MH_SAM_APDU [18:54:15]CAPDU: 80 11 00 00 [18:54:15]Write to MH i2c: E2 08 00 88 02 80 11 00 00 00 00 00 00 04 [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:15]Read from MH i2c: E2 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 17 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: E2 17 00 88 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [18:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:54:15]wFMCommunicate OK [18:54:15]CreateOFDProtocolMessage done [18:54:15]OFDSenderStorePacket 202153 [18:54:15]StoreOFDPacket docnum=202153 [18:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E 9D 07 01 BE 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 56 8C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 15 03 00 35 04 06 00 31 8D 68 5A 93 7C 9F D1 FD 07 16 59 73 EE [18:54:15]CheckFolder [18:54:15]dirname=/storage/ofd_packets [18:54:15]CheckFolder done [18:54:15]ProducePacketName [18:54:15]name=ofd_packets/00202153 [18:54:15]NVStorageSaveData ofd_packets/00202153 [18:54:15]File name is /storage/ofd_packets/00202153 [18:54:15]Write 301 bytes [18:54:15]NVStorageSaveData done [18:54:15]OFDSenderStorePacket done [18:54:15]KKMCreateOFDPacket done [18:54:15]NVStorageSaveData kkm_last_timestamp [18:54:15]File name is /storage/kkm_last_timestamp [18:54:15]Write 4 bytes [18:54:15]NVStorageSaveData done [18:54:15]ExternCall_PrintAddStr [18:54:15]wPrintStart [18:54:15]Write to MH i2c: 01 00 00 89 02 8B [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 07 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 FF 0F A0 [18:54:15]RasterBufferAndPrint [18:54:15]line Счет N : (1)449925 [18:54:15]line ИНН: 02508201610067 [18:54:15]line Контрольно-Кассовый Чек [18:54:15]line ПРОДАЖА [18:54:15]line ТРК (МРК, ГНК) : 41 [18:54:15]line Товар: 2710124130 [18:54:15]line Аи-92-К-2 [18:54:15]line 7.480 * 66.90 [18:54:15]line = 500.41 [18:54:15]line НДС 12% НСП 1% [18:54:15]line > о реализуемом товаре [18:54:15]line ИТОГО: 500.41 [18:54:15]line НСП 1% : 4.43 [18:54:15]line НДС 12% : 53.14 [18:54:15]line Наличными: 0.00 [18:54:15]line Безнал.: 500.41 [18:54:15]line Место: АЗС № 171 "Партнер Нефть" [18:54:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:54:15]line СНО: Общий режим [18:54:15]line Чек 445 27.10.2024 18:54 [18:54:15]line Смена: 544 ФФД: 1.0 [18:54:15]line ЗНМ: 0300000109 [18:54:15]line РНМ: 0000000000091777 [18:54:15]line Версия ККМ: 001 [18:54:15]line Платежная система: Бакай Банк [18:54:15]line ФМ: 0000000000871756 [18:54:15]line ФД: 202153 [18:54:15]line ФПД: 54483410916220 [18:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185414&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202153&fm=54483410916220&tin=02508201610067®Number=0000000000091777&sum=50041 [18:54:15]written 0, free lines is 4095 [18:54:15]OFD Sender: Processing packet 202153 [packets to send 114, broken 113] [18:54:15]ProducePacketName [18:54:15]name=ofd_packets/00202153 [18:54:15]OFD Sender: To server: pG, [18:54:15]CommunicateWithHost lk.salyk.kg:30040 [18:54:15]ConnectInit lk.salyk.kg [18:54:15]Connected sock=10 [18:54:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E 9D 07 01 BE 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 56 8C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 15 03 00 35 04 06 00 31 8D 68 5A 93 7C 9F D1 FD 07 16 59 73 EE [18:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 28 39 47 00 2D 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 15 03 00 F4 03 04 00 0F 38 1E 67 B6 04 01 00 00 68 6A BA 32 51 75 96 6F [18:54:16]CommunicateWithHost err = 0 [18:54:16]CheckOFDResponse [18:54:16]1017 (14) - 77093643461234 [18:54:16]1041 (16) - 0000000000871756 [18:54:16]1040 (4) - 202153 [18:54:16]1012 (4) - 27.10.2024 12:54 [18:54:16]1206 (1) - 0 [18:54:16]OFD Sender: Remove packet 202153 [18:54:16]ProducePacketName [18:54:16]name=ofd_packets/00202153 [18:54:16]NVStorageDeleteData [18:54:16]Write to MH i2c: 01 00 00 B3 02 B5 [18:54:16]Write i2c OK [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: 01 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: 01 07 00 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 A2 0C 6A [18:54:16]RasterBufferAndPrint [18:54:16]line [18:54:16]line [18:54:16]line [18:54:16]line [18:54:16]line [18:54:16]written 0, free lines is 3239 [18:54:16]MH_Cut [18:54:16]Write to MH i2c: D1 01 00 BA 02 01 8E [18:54:16]Write i2c OK [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: D1 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: D1 01 00 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: D1 01 00 BA 02 00 8D [18:54:16]Write to MH i2c: 01 00 00 BB 02 BD [18:54:16]Write i2c OK [18:54:16]MH_I2C_Read... [18:54:16]OFD Sender: No OFD packet to send [18:54:17]*** Cut start [18:54:17]*** Purtial cut [18:54:17]*** Stage 1: CUTSNS_PIN = 1 [18:54:17]Read from MH i2c: 01 [18:54:17]MH_I2C_Read... [18:54:17]*** Stop cut motor [18:54:17]*** Cut end [18:54:17]Read from MH i2c: 01 07 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [18:54:17]process_action close_receipt done [18:54:17]requested_data is exist [18:54:17]produce_requested_data [18:54:17]requested_item fm.sn is exist - process it [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 11 00 00 [18:54:17]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 17 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [18:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:54:17]wFMCommunicate OK [18:54:17]requested_item fd.num is exist - process it [18:54:17]SAM_PROTO_GetFieldsCounters [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 13 00 00 [18:54:17]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 62 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A9 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [18:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A9 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:17]wFMCommunicate OK [18:54:17]SAM_PROTO_GetFieldsCounters done [18:54:17]requested_item shift.num is exist - process it [18:54:17]requested_item shift.opened is exist - process it [18:54:17]req_shift_opened [18:54:17]FM_GetShiftState [18:54:17]SAM_PROTO_GetShiftState [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 13 01 00 [18:54:17]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 0E 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3F [18:54:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:54:17]wFMCommunicate OK [18:54:17]SAM_PROTO_GetShiftState done [18:54:17]FM_GetShiftState done [18:54:17]req_shift_opened done [18:54:17]requested_item shift.open_date is exist - process it [18:54:17]req_shift_open_date [18:54:17]req_shift_open_date done [18:54:17]produce_requested_data done [18:54:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202153,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:54:17]process_action_free close_receipt [18:54:17]json_value_free [18:54:17]json_value_free done [18:54:17]process_json_proto returns [18:54:17]Send response to host [18:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202153,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:54:17]free response buf [18:54:17]execute_script done [18:54:17]execute_script returns [18:54:17]free content buf [18:54:17]Sock 9.Close socket [18:54:17]Sock 9.Thread stoped [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:05]accept exits with 7 [18:56:05]New connection [18:56:05]New thread 3066469732 created [18:56:05]Thread 3066613092 joined [18:56:05]Waiting for new connection... [18:56:05] Sock 7.Parse request [18:56:05]Sock 7.Check first char [18:56:05]Sock 7.First char is OK [18:56:05]request: POST /json_proto HTTP/1.0 [18:56:05]Method: POST [18:56:05]URL: /json_proto [18:56:05]Method is POST - this is cgi request [18:56:05]url: /json_proto [18:56:05]query_string will be loaded in cgi processing [18:56:05]execute_cgi json_proto POST (null) [18:56:05]execute_cgi path=json_proto method=POST [18:56:05]POST find Content-Length [18:56:05]Host: 172.17.63.195:8080 [18:56:05]Content-Length: 675 [18:56:05]Content-Type: application/json [18:56:05] [18:56:05]POST finish read [18:56:05]Found Content-Length = 675 [18:56:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449926", "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" : 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" ] } } [18:56:05]execute_script... [18:56: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)449926", "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" : 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" ] } } [18:56:05]POST & json_proto [18:56:05]process_json_proto [18:56:05]json parsed OK: [18:56:05]protocol is kg_v1.0 [18:56:05]action value=close_receipt [18:56:05]process_action close_receipt [18:56:05]cmd_close_receipt [18:56:05]MH_GetDate [18:56:05]Write to MH i2c: F0 00 00 BF 02 B0 [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: F0 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: F0 09 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: F0 09 00 BF 02 00 C6 8C 1E 67 47 1B 1E 67 77 [18:56:05]GetLastDocTimeStamp 1730055254 [18:56:05]current date 1730055366 [18:56:05]FM_GetShiftState [18:56:05]SAM_PROTO_GetShiftState [18:56:05]wFMCommunicate request_size=4 [18:56:05]MH_SAM_APDU [18:56:05]CAPDU: 80 13 01 00 [18:56:05]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:05]Read from MH i2c: E2 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: E2 0E 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 41 [18:56:05]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:56:05]wFMCommunicate OK [18:56:05]SAM_PROTO_GetShiftState done [18:56:05]FM_GetShiftState done [18:56:05]opened in 1729987312 [18:56:05]opened+sec_in_day 1730073712 [18:56:05]quantity*price = 100000 [18:56:05]sum+1 = 100002 [18:56:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 446 27.10.2024 18:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202154 ФПД: 80583071362532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185606&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202154&fm=80583071362532&tin=02508201610067®Number=0000000000091777&sum=100000 [18:56:06]StoreToDocumentArchive [18:56:06]shift 544 fd 202154 [18:56:06]save to /storage/0544/doc_00202154 [18:56:06]save last doc name /storage/0544/doc_00202154 to /storage/kkm_last_doc_name [18:56:06]save OK [18:56:06]Clear old archive folders... [18:56:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:56:06]tlvbuf is 0140D360 [18:56:06]SAM_PROTO_ClearQueue [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 09 00 00 [18:56:06]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [18:56:06]RAPDU: 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_ClearQueue done [18:56:06]KKMCreateOFDPacket [18:56:06]OFDProtocolAddRootSTLVToBuf [18:56:06]FM_MakeSignedData [18:56:06]FM_MakeSignedData [18:56:06]SAM_PROTO_SignData [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 0D 01 02 [18:56:06]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [18:56:06]RAPDU: 90 00 [18:56:06]wFMCommunicate OK [18:56:06]wFMCommunicate request_size=255 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BE 01 00 00 F4 03 04 00 C6 8C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 15 03 00 35 04 06 00 [18:56:06]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 BE 01 00 00 F4 03 04 00 C6 8C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 15 03 00 35 04 06 00 00 00 2C [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]OFD Sender: No OFD packet to send [18:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [18:56:06]RAPDU: 90 00 [18:56:06]wFMCommunicate OK [18:56:06]wFMCommunicate request_size=11 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 0D 02 02 06 49 4A 35 57 ED E4 [18:56:06]Write to MH i2c: E2 0E 00 D0 02 80 0D 02 02 06 00 49 4A 35 57 ED E4 00 00 48 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [18:56:07]RAPDU: 90 00 [18:56:07]wFMCommunicate OK [18:56:07]wFMCommunicate request_size=4 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 0D 03 02 [18:56:07]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 0B 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 0B 00 D1 02 00 F1 23 7B CD 13 FD 4C 5F 90 00 66 [18:56:07]RAPDU: F1 23 7B CD 13 FD 4C 5F 90 00 [18:56:07]wFMCommunicate OK [18:56:07]SAM_PROTO_SignData done [18:56:07]FM_MakeSignedData done [18:56:07]CreateOFDProtocolMessage [18:56:07]wFMCommunicate request_size=4 [18:56:07]MH_SAM_APDU [18:56:07]CAPDU: 80 11 00 00 [18:56:07]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:07]Read from MH i2c: E2 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 17 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A3 [18:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:56:07]wFMCommunicate OK [18:56:07]CreateOFDProtocolMessage done [18:56:07]OFDSenderStorePacket 202154 [18:56:07]StoreOFDPacket docnum=202154 [18:56:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 9A 70 08 01 87 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 20 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 BE 01 00 00 F4 03 04 00 C6 8C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 15 03 00 35 04 06 00 49 4A 35 57 ED E4 F1 23 7B CD 13 FD 4C 5F [18:56:07]CheckFolder [18:56:07]dirname=/storage/ofd_packets [18:56:07]CheckFolder done [18:56:07]ProducePacketName [18:56:07]name=ofd_packets/00202154 [18:56:07]NVStorageSaveData ofd_packets/00202154 [18:56:07]File name is /storage/ofd_packets/00202154 [18:56:07]Write 302 bytes [18:56:07]NVStorageSaveData done [18:56:07]OFDSenderStorePacket done [18:56:07]KKMCreateOFDPacket done [18:56:07]NVStorageSaveData kkm_last_timestamp [18:56:07]File name is /storage/kkm_last_timestamp [18:56:07]Write 4 bytes [18:56:07]NVStorageSaveData done [18:56:07]ExternCall_PrintAddStr [18:56:07]wPrintStart [18:56:07]Write to MH i2c: 01 00 00 D3 02 D5 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 07 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [18:56:07]RasterBufferAndPrint [18:56:07]line Счет N : (1)449926 [18:56:07]line ИНН: 02508201610067 [18:56:07]line Контрольно-Кассовый Чек [18:56:07]line ПРОДАЖА [18:56:07]line ТРК (МРК, ГНК) : 53 [18:56:07]line Товар: 2710124130 [18:56:07]line SUPER 92-К-5 [18:56:07]line 14.620 * 68.40 [18:56:07]line = 1000.01 [18:56:07]line НДС 12% НСП 1% [18:56:07]line > о реализуемом товаре [18:56:07]line ОКРУГЛЕНИЕ: -0.01 [18:56:07]line ИТОГО: 1000.00 [18:56:07]line Внесено: 1000.00 [18:56:07]line СДАЧА: 0.00 [18:56:07]line НСП 1% : 8.85 [18:56:07]line НДС 12% : 106.20 [18:56:07]line Наличными: 1000.00 [18:56:07]line Безнал.: 0.00 [18:56:07]line Место: АЗС № 171 "Партнер Нефть" [18:56:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:56:07]line СНО: Общий режим [18:56:07]line Чек 446 27.10.2024 18:56 [18:56:07]line Смена: 544 ФФД: 1.0 [18:56:07]line ЗНМ: 0300000109 [18:56:07]line РНМ: 0000000000091777 [18:56:07]line Версия ККМ: 001 [18:56:07]line ФМ: 0000000000871756 [18:56:07]line ФД: 202154 [18:56:07]line ФПД: 80583071362532 [18:56:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185606&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202154&fm=80583071362532&tin=02508201610067®Number=0000000000091777&sum=100000 [18:56:07]OFD Sender: Processing packet 202154 [packets to send 114, broken 113] [18:56:07]ProducePacketName [18:56:07]name=ofd_packets/00202154 [18:56:07]OFD Sender: To server: pG, [18:56:07]CommunicateWithHost lk.salyk.kg:30040 [18:56:07]ConnectInit lk.salyk.kg [18:56:07]written 0, free lines is 4095 [18:56:07]Connected sock=10 [18:56:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 9A 70 08 01 87 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 20 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 BE 01 00 00 F4 03 04 00 C6 8C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 15 03 00 35 04 06 00 49 4A 35 57 ED E4 F1 23 7B CD 13 FD 4C 5F [18:56:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3C 3C 47 00 49 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 15 03 00 F4 03 04 00 7F 38 1E 67 B6 04 01 00 00 41 4D A4 20 C6 38 AB D1 [18:56:07]CommunicateWithHost err = 0 [18:56:07]CheckOFDResponse [18:56:07]1017 (14) - 77093643461234 [18:56:07]1041 (16) - 0000000000871756 [18:56:07]1040 (4) - 202154 [18:56:07]1012 (4) - 27.10.2024 12:56 [18:56:07]1206 (1) - 0 [18:56:07]OFD Sender: Remove packet 202154 [18:56:07]ProducePacketName [18:56:07]name=ofd_packets/00202154 [18:56:07]NVStorageDeleteData [18:56:07]Write to MH i2c: 01 00 00 FE 02 00 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 07 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 8C 0C 9F [18:56:07]RasterBufferAndPrint [18:56:07]line [18:56:07]line [18:56:07]line [18:56:07]line [18:56:07]line [18:56:07]written 0, free lines is 3216 [18:56:07]MH_Cut [18:56:07]Write to MH i2c: D1 01 00 05 03 01 DA [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: D1 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: D1 01 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: D1 01 00 05 03 00 D9 [18:56:07]Write to MH i2c: 01 00 00 06 03 09 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:08]OFD Sender: No OFD packet to send [18:56:08]*** Cut start [18:56:08]*** Purtial cut [18:56:08]*** Stage 1: CUTSNS_PIN = 1 [18:56:09]Read from MH i2c: 01 [18:56:09]MH_I2C_Read... [18:56:09]*** Stop cut motor [18:56:09]*** Cut end [18:56:09]Read from MH i2c: 01 07 00 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [18:56:09]process_action close_receipt done [18:56:09]requested_data is exist [18:56:09]produce_requested_data [18:56:09]requested_item fm.sn is exist - process it [18:56:09]wFMCommunicate request_size=4 [18:56:09]MH_SAM_APDU [18:56:09]CAPDU: 80 11 00 00 [18:56:09]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [18:56:09]Write i2c OK [18:56:09]MH_I2C_Read... [18:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:09]Read from MH i2c: E2 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: E2 17 00 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [18:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:56:09]wFMCommunicate OK [18:56:09]requested_item fd.num is exist - process it [18:56:09]SAM_PROTO_GetFieldsCounters [18:56:09]wFMCommunicate request_size=4 [18:56:09]MH_SAM_APDU [18:56:09]CAPDU: 80 13 00 00 [18:56:09]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [18:56:09]Write i2c OK [18:56:09]MH_I2C_Read... [18:56:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:09]Read from MH i2c: E2 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: E2 62 00 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AA 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [18:56:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AA 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:09]wFMCommunicate OK [18:56:09]SAM_PROTO_GetFieldsCounters done [18:56:09]requested_item shift.num is exist - process it [18:56:09]requested_item shift.opened is exist - process it [18:56:09]req_shift_opened [18:56:09]FM_GetShiftState [18:56:09]SAM_PROTO_GetShiftState [18:56:09]wFMCommunicate request_size=4 [18:56:09]MH_SAM_APDU [18:56:09]CAPDU: 80 13 01 00 [18:56:09]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [18:56:09]Write i2c OK [18:56:09]MH_I2C_Read... [18:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:09]Read from MH i2c: E2 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: E2 0E 00 [18:56:09]MH_I2C_Read... [18:56:09]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8B [18:56:09]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [18:56:09]wFMCommunicate OK [18:56:09]SAM_PROTO_GetShiftState done [18:56:09]FM_GetShiftState done [18:56:09]req_shift_opened done [18:56:09]requested_item shift.open_date is exist - process it [18:56:09]req_shift_open_date [18:56:09]req_shift_open_date done [18:56:09]produce_requested_data done [18:56:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202154,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [18:56:09]process_action_free close_receipt [18:56:09]json_value_free [18:56:09]json_value_free done [18:56:09]process_json_proto returns [18:56:09]Send response to host [18:56:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202154,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [18:56:09]free response buf [18:56:09]execute_script done [18:56:09]execute_script returns [18:56:09]free content buf [18:56:09]Sock 7.Close socket [18:56:09]Sock 7.Thread stoped [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:00]accept exits with 9 [19:04:00]New connection [19:04:00]New thread 3066613092 created [19:04:00]Thread 3066469732 joined [19:04:00]Waiting for new connection... [19:04:00] Sock 9.Parse request [19:04:00]Sock 9.Check first char [19:04:00]Sock 9.First char is OK [19:04:00]request: POST /json_proto HTTP/1.0 [19:04:00]Method: POST [19:04:00]URL: /json_proto [19:04:00]Method is POST - this is cgi request [19:04:00]url: /json_proto [19:04:00]query_string will be loaded in cgi processing [19:04:00]execute_cgi json_proto POST (null) [19:04:00]execute_cgi path=json_proto method=POST [19:04:00]POST find Content-Length [19:04:00]Host: 172.17.63.195:8080 [19:04:00]Content-Length: 679 [19:04:00]Content-Type: application/json [19:04:00] [19:04:00]POST finish read [19:04:00]Found Content-Length = 679 [19:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [19:04:00]execute_script... [19:04:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [19:04:00]POST & json_proto [19:04:00]process_json_proto [19:04:00]json parsed OK: [19:04:00]protocol is kg_v1.0 [19:04:00]action value=close_receipt [19:04:00]process_action close_receipt [19:04:00]cmd_close_receipt [19:04:00]MH_GetDate [19:04:00]Write to MH i2c: F0 00 00 0A 03 FC [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: F0 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: F0 09 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: F0 09 00 0A 03 00 A1 8E 1E 67 47 1B 1E 67 A0 [19:04:00]GetLastDocTimeStamp 1730055366 [19:04:00]current date 1730055841 [19:04:00]FM_GetShiftState [19:04:00]SAM_PROTO_GetShiftState [19:04:00]wFMCommunicate request_size=4 [19:04:00]MH_SAM_APDU [19:04:00]CAPDU: 80 13 01 00 [19:04:00]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [19:04:00]Write i2c OK [19:04:00]MH_I2C_Read... [19:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:00]Read from MH i2c: E2 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 0E 00 [19:04:00]MH_I2C_Read... [19:04:00]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8D [19:04:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:04:00]wFMCommunicate OK [19:04:00]SAM_PROTO_GetShiftState done [19:04:00]FM_GetShiftState done [19:04:00]opened in 1729987312 [19:04:00]opened+sec_in_day 1730073712 [19:04:00]quantity*price = 100050 [19:04:00]sum+1 = 100052 [19:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 447 27.10.2024 19:04 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202155 ФПД: 21195310572828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190401&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202155&fm=21195310572828&tin=02508201610067®Number=0000000000091777&sum=100000 [19:04:01]StoreToDocumentArchive [19:04:01]shift 544 fd 202155 [19:04:01]save to /storage/0544/doc_00202155 [19:04:01]save last doc name /storage/0544/doc_00202155 to /storage/kkm_last_doc_name [19:04:01]save OK [19:04:01]Clear old archive folders... [19:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:04:01]tlvbuf is 01415AB0 [19:04:01]SAM_PROTO_ClearQueue [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 09 00 00 [19:04:01]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 03 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [19:04:01]RAPDU: 90 00 [19:04:01]wFMCommunicate OK [19:04:01]SAM_PROTO_ClearQueue done [19:04:01]KKMCreateOFDPacket [19:04:01]OFDProtocolAddRootSTLVToBuf [19:04:01]FM_MakeSignedData [19:04:01]FM_MakeSignedData [19:04:01]SAM_PROTO_SignData [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 0D 01 02 [19:04:01]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 03 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [19:04:01]RAPDU: 90 00 [19:04:01]wFMCommunicate OK [19:04:01]wFMCommunicate request_size=255 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 BF 01 00 00 F4 03 04 00 A1 8E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 15 03 00 35 04 06 00 13 46 EA F5 [19:04:01]Write to MH i2c: E2 02 01 1A 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 BF 01 00 00 F4 03 04 00 A1 8E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 15 03 00 35 04 06 00 13 46 EA F5 00 00 B0 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 03 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [19:04:01]RAPDU: 90 00 [19:04:01]wFMCommunicate OK [19:04:01]wFMCommunicate request_size=7 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 0D 02 02 02 25 1C [19:04:01]Write to MH i2c: E2 0A 00 1B 03 80 0D 02 02 02 00 25 1C 00 00 DD [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 03 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [19:04:01]RAPDU: 90 00 [19:04:01]wFMCommunicate OK [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 0D 03 02 [19:04:01]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 0B 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 0B 00 1C 03 00 5C B5 39 B8 11 0B 0A 1D 90 00 E0 [19:04:02]RAPDU: 5C B5 39 B8 11 0B 0A 1D 90 00 [19:04:02]wFMCommunicate OK [19:04:02]SAM_PROTO_SignData done [19:04:02]FM_MakeSignedData done [19:04:02]CreateOFDProtocolMessage [19:04:02]wFMCommunicate request_size=4 [19:04:02]MH_SAM_APDU [19:04:02]CAPDU: 80 11 00 00 [19:04:02]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:02]Read from MH i2c: E2 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 17 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EF [19:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:04:02]wFMCommunicate OK [19:04:02]CreateOFDProtocolMessage done [19:04:02]OFDSenderStorePacket 202155 [19:04:02]StoreOFDPacket docnum=202155 [19:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 1B B4 04 01 67 EB 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 32 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 BF 01 00 00 F4 03 04 00 A1 8E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 15 03 00 35 04 06 00 13 46 EA F5 25 1C 5C B5 39 B8 11 0B 0A 1D [19:04:02]CheckFolder [19:04:02]dirname=/storage/ofd_packets [19:04:02]CheckFolder done [19:04:02]ProducePacketName [19:04:02]name=ofd_packets/00202155 [19:04:02]NVStorageSaveData ofd_packets/00202155 [19:04:02]File name is /storage/ofd_packets/00202155 [19:04:02]Write 298 bytes [19:04:02]NVStorageSaveData done [19:04:02]OFDSenderStorePacket done [19:04:02]KKMCreateOFDPacket done [19:04:02]NVStorageSaveData kkm_last_timestamp [19:04:02]File name is /storage/kkm_last_timestamp [19:04:02]Write 4 bytes [19:04:02]NVStorageSaveData done [19:04:02]ExternCall_PrintAddStr [19:04:02]wPrintStart [19:04:02]Write to MH i2c: 01 00 00 1E 03 21 [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 07 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [19:04:02]RasterBufferAndPrint [19:04:02]line Счет N : (1)449927 [19:04:02]line ИНН: 02508201610067 [19:04:02]line Контрольно-Кассовый Чек [19:04:02]line ПРОДАЖА [19:04:02]line ТРК (МРК, ГНК) : 21 [19:04:02]line Товар: 2710194210 [19:04:02]line ДТ-К-2 [19:04:02]line 13.130 * 76.20 [19:04:02]line = 1000.51 [19:04:02]line НДС 12% НСП 1% [19:04:02]line > о реализуемом товаре [19:04:02]line ОКРУГЛЕНИЕ: -0.51 [19:04:02]line ИТОГО: 1000.00 [19:04:02]line Внесено: 1000.00 [19:04:02]line СДАЧА: 0.00 [19:04:02]line НСП 1% : 8.85 [19:04:02]line НДС 12% : 106.25 [19:04:02]line Наличными: 1000.00 [19:04:02]line Безнал.: 0.00 [19:04:02]line Место: АЗС № 171 "Партнер Нефть" [19:04:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:04:02]line СНО: Общий режим [19:04:02]line Чек 447 27.10.2024 19:04 [19:04:02]line Смена: 544 ФФД: 1.0 [19:04:02]line ЗНМ: 0300000109 [19:04:02]line РНМ: 0000000000091777 [19:04:02]line Версия ККМ: 001 [19:04:02]line ФМ: 0000000000871756 [19:04:02]line ФД: 202155 [19:04:02]line ФПД: 21195310572828 [19:04:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190401&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202155&fm=21195310572828&tin=02508201610067®Number=0000000000091777&sum=100000 [19:04:02]OFD Sender: Processing packet 202155 [packets to send 114, broken 113] [19:04:02]ProducePacketName [19:04:02]name=ofd_packets/00202155 [19:04:02]OFD Sender: To server: pG, [19:04:02]CommunicateWithHost lk.salyk.kg:30040 [19:04:02]ConnectInit lk.salyk.kg [19:04:02]written 0, free lines is 4095 [19:04:02]Connected sock=10 [19:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 1B B4 04 01 67 EB 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 32 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 BF 01 00 00 F4 03 04 00 A1 8E 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 15 03 00 35 04 06 00 13 46 EA F5 25 1C 5C B5 39 B8 11 0B 0A 1D [19:04:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3E 31 47 00 80 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 15 03 00 F4 03 04 00 5A 3A 1E 67 B6 04 01 00 00 78 AC CD 95 8F B6 6C 70 [19:04:02]CommunicateWithHost err = 0 [19:04:02]CheckOFDResponse [19:04:02]1017 (14) - 77093643461234 [19:04:02]1041 (16) - 0000000000871756 [19:04:02]1040 (4) - 202155 [19:04:02]1012 (4) - 27.10.2024 13:04 [19:04:02]1206 (1) - 0 [19:04:02]OFD Sender: Remove packet 202155 [19:04:02]ProducePacketName [19:04:02]name=ofd_packets/00202155 [19:04:02]NVStorageDeleteData [19:04:02]Write to MH i2c: 01 00 00 49 03 4C [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 07 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 8C 0C EB [19:04:02]RasterBufferAndPrint [19:04:02]line [19:04:02]line [19:04:02]line [19:04:02]line [19:04:02]line [19:04:02]written 0, free lines is 3215 [19:04:02]MH_Cut [19:04:02]Write to MH i2c: D1 01 00 50 03 01 25 [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: D1 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: D1 01 00 [19:04:02]MH_I2C_Read... [19:04:02]Read from MH i2c: D1 01 00 50 03 00 24 [19:04:02]Write to MH i2c: 01 00 00 51 03 54 [19:04:02]Write i2c OK [19:04:02]MH_I2C_Read... [19:04:03]OFD Sender: No OFD packet to send [19:04:03]*** Cut start [19:04:03]*** Purtial cut [19:04:03]*** Stage 1: CUTSNS_PIN = 1 [19:04:03]Read from MH i2c: 01 [19:04:03]MH_I2C_Read... [19:04:03]*** Stop cut motor [19:04:04]*** Cut end [19:04:04]Read from MH i2c: 01 07 00 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [19:04:04]process_action close_receipt done [19:04:04]requested_data is exist [19:04:04]produce_requested_data [19:04:04]requested_item fm.sn is exist - process it [19:04:04]wFMCommunicate request_size=4 [19:04:04]MH_SAM_APDU [19:04:04]CAPDU: 80 11 00 00 [19:04:04]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [19:04:04]Write i2c OK [19:04:04]MH_I2C_Read... [19:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:04]Read from MH i2c: E2 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: E2 17 00 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 24 [19:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:04:04]wFMCommunicate OK [19:04:04]requested_item fd.num is exist - process it [19:04:04]SAM_PROTO_GetFieldsCounters [19:04:04]wFMCommunicate request_size=4 [19:04:04]MH_SAM_APDU [19:04:04]CAPDU: 80 13 00 00 [19:04:04]Write to MH i2c: E2 08 00 53 03 80 13 00 00 00 00 00 00 D2 [19:04:04]Write i2c OK [19:04:04]MH_I2C_Read... [19:04:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:04]Read from MH i2c: E2 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: E2 62 00 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: E2 62 00 53 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AB 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [19:04:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AB 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:04]wFMCommunicate OK [19:04:04]SAM_PROTO_GetFieldsCounters done [19:04:04]requested_item shift.num is exist - process it [19:04:04]requested_item shift.opened is exist - process it [19:04:04]req_shift_opened [19:04:04]FM_GetShiftState [19:04:04]SAM_PROTO_GetShiftState [19:04:04]wFMCommunicate request_size=4 [19:04:04]MH_SAM_APDU [19:04:04]CAPDU: 80 13 01 00 [19:04:04]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [19:04:04]Write i2c OK [19:04:04]MH_I2C_Read... [19:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:04]Read from MH i2c: E2 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: E2 0E 00 [19:04:04]MH_I2C_Read... [19:04:04]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D6 [19:04:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:04:04]wFMCommunicate OK [19:04:04]SAM_PROTO_GetShiftState done [19:04:04]FM_GetShiftState done [19:04:04]req_shift_opened done [19:04:04]requested_item shift.open_date is exist - process it [19:04:04]req_shift_open_date [19:04:04]req_shift_open_date done [19:04:04]produce_requested_data done [19:04:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202155,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:04:04]process_action_free close_receipt [19:04:04]json_value_free [19:04:04]json_value_free done [19:04:04]process_json_proto returns [19:04:04]Send response to host [19:04:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202155,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:04:04]free response buf [19:04:04]execute_script done [19:04:04]execute_script returns [19:04:04]free content buf [19:04:04]Sock 9.Close socket [19:04:04]Sock 9.Thread stoped [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:50]accept exits with 7 [19:10:50]New connection [19:10:50]New thread 3066469732 created [19:10:50]Thread 3066613092 joined [19:10:50]Waiting for new connection... [19:10:50] Sock 7.Parse request [19:10:50]Sock 7.Check first char [19:10:50]Sock 7.First char is OK [19:10:50]request: POST /json_proto HTTP/1.0 [19:10:50]Method: POST [19:10:50]URL: /json_proto [19:10:50]Method is POST - this is cgi request [19:10:50]url: /json_proto [19:10:50]query_string will be loaded in cgi processing [19:10:50]execute_cgi json_proto POST (null) [19:10:50]execute_cgi path=json_proto method=POST [19:10:50]POST find Content-Length [19:10:50]Host: 172.17.63.195:8080 [19:10:50]Content-Length: 675 [19:10:50]Content-Type: application/json [19:10:50] [19:10:50]POST finish read [19:10:50]Found Content-Length = 675 [19:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [19:10:50]execute_script... [19:10: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)449928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [19:10:50]POST & json_proto [19:10:50]process_json_proto [19:10:50]json parsed OK: [19:10:50]protocol is kg_v1.0 [19:10:50]action value=close_receipt [19:10:50]process_action close_receipt [19:10:50]cmd_close_receipt [19:10:50]MH_GetDate [19:10:50]Write to MH i2c: F0 00 00 55 03 47 [19:10:50]Write i2c OK [19:10:50]MH_I2C_Read... [19:10:50]Read from MH i2c: F0 [19:10:50]MH_I2C_Read... [19:10:50]Read from MH i2c: F0 09 00 [19:10:50]MH_I2C_Read... [19:10:50]Read from MH i2c: F0 09 00 55 03 00 3B 90 1E 67 47 1B 1E 67 87 [19:10:50]GetLastDocTimeStamp 1730055841 [19:10:50]current date 1730056251 [19:10:50]FM_GetShiftState [19:10:50]SAM_PROTO_GetShiftState [19:10:50]wFMCommunicate request_size=4 [19:10:50]MH_SAM_APDU [19:10:50]CAPDU: 80 13 01 00 [19:10:50]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [19:10:50]Write i2c OK [19:10:50]MH_I2C_Read... [19:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:50]Read from MH i2c: E2 [19:10:50]MH_I2C_Read... [19:10:50]Read from MH i2c: E2 0E 00 [19:10:50]MH_I2C_Read... [19:10:50]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [19:10:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:10:50]wFMCommunicate OK [19:10:50]SAM_PROTO_GetShiftState done [19:10:50]FM_GetShiftState done [19:10:50]opened in 1729987312 [19:10:50]opened+sec_in_day 1730073712 [19:10:50]quantity*price = 100000 [19:10:50]sum+1 = 100002 [19:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 448 27.10.2024 19:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202156 ФПД: 140823431411991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191051&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202156&fm=140823431411991&tin=02508201610067®Number=0000000000091777&sum=100000 [19:10:52]StoreToDocumentArchive [19:10:52]shift 544 fd 202156 [19:10:52]save to /storage/0544/doc_00202156 [19:10:52]save last doc name /storage/0544/doc_00202156 to /storage/kkm_last_doc_name [19:10:52]save OK [19:10:52]Clear old archive folders... [19:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:10:52]tlvbuf is 013B9D40 [19:10:52]SAM_PROTO_ClearQueue [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 09 00 00 [19:10:52]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [19:10:52]RAPDU: 90 00 [19:10:52]wFMCommunicate OK [19:10:52]SAM_PROTO_ClearQueue done [19:10:52]KKMCreateOFDPacket [19:10:52]OFDProtocolAddRootSTLVToBuf [19:10:52]FM_MakeSignedData [19:10:52]FM_MakeSignedData [19:10:52]SAM_PROTO_SignData [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 0D 01 02 [19:10:52]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [19:10:52]RAPDU: 90 00 [19:10:52]wFMCommunicate OK [19:10:52]wFMCommunicate request_size=255 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 01 00 00 F4 03 04 00 3B 90 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 15 03 00 35 04 06 00 [19:10:52]Write to MH i2c: E2 02 01 65 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 01 00 00 F4 03 04 00 3B 90 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 15 03 00 35 04 06 00 00 00 40 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [19:10:52]RAPDU: 90 00 [19:10:52]wFMCommunicate OK [19:10:52]wFMCommunicate request_size=11 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 0D 02 02 06 80 14 02 9A F9 17 [19:10:52]Write to MH i2c: E2 0E 00 66 03 80 0D 02 02 06 00 80 14 02 9A F9 17 00 00 2F [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [19:10:52]RAPDU: 90 00 [19:10:52]wFMCommunicate OK [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 0D 03 02 [19:10:52]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 0B 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 0B 00 67 03 00 C2 AB 50 D4 D2 30 B0 B1 90 00 DA [19:10:52]RAPDU: C2 AB 50 D4 D2 30 B0 B1 90 00 [19:10:52]wFMCommunicate OK [19:10:52]SAM_PROTO_SignData done [19:10:52]FM_MakeSignedData done [19:10:52]CreateOFDProtocolMessage [19:10:52]wFMCommunicate request_size=4 [19:10:52]MH_SAM_APDU [19:10:52]CAPDU: 80 11 00 00 [19:10:52]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:52]Read from MH i2c: E2 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 17 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3A [19:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:10:52]wFMCommunicate OK [19:10:52]CreateOFDProtocolMessage done [19:10:52]OFDSenderStorePacket 202156 [19:10:52]StoreOFDPacket docnum=202156 [19:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 D0 03 08 01 2C 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 01 00 00 F4 03 04 00 3B 90 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 15 03 00 35 04 06 00 80 14 02 9A F9 17 C2 AB 50 D4 D2 30 B0 B1 [19:10:52]CheckFolder [19:10:52]dirname=/storage/ofd_packets [19:10:52]CheckFolder done [19:10:52]ProducePacketName [19:10:52]name=ofd_packets/00202156 [19:10:52]NVStorageSaveData ofd_packets/00202156 [19:10:52]File name is /storage/ofd_packets/00202156 [19:10:52]Write 302 bytes [19:10:52]NVStorageSaveData done [19:10:52]OFDSenderStorePacket done [19:10:52]KKMCreateOFDPacket done [19:10:52]NVStorageSaveData kkm_last_timestamp [19:10:52]File name is /storage/kkm_last_timestamp [19:10:52]Write 4 bytes [19:10:52]NVStorageSaveData done [19:10:52]ExternCall_PrintAddStr [19:10:52]wPrintStart [19:10:52]Write to MH i2c: 01 00 00 69 03 6C [19:10:52]Write i2c OK [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: 01 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: 01 07 00 [19:10:52]MH_I2C_Read... [19:10:52]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [19:10:52]RasterBufferAndPrint [19:10:52]line Счет N : (1)449928 [19:10:52]line ИНН: 02508201610067 [19:10:52]line Контрольно-Кассовый Чек [19:10:52]line ПРОДАЖА [19:10:52]line ТРК (МРК, ГНК) : 42 [19:10:52]line Товар: 2710124130 [19:10:52]line SUPER 92-К-5 [19:10:52]line 14.620 * 68.40 [19:10:52]line = 1000.01 [19:10:52]line НДС 12% НСП 1% [19:10:52]line > о реализуемом товаре [19:10:52]line ОКРУГЛЕНИЕ: -0.01 [19:10:52]line ИТОГО: 1000.00 [19:10:52]line Внесено: 1000.00 [19:10:52]line СДАЧА: 0.00 [19:10:52]line НСП 1% : 8.85 [19:10:52]line НДС 12% : 106.20 [19:10:52]line Наличными: 1000.00 [19:10:52]line Безнал.: 0.00 [19:10:52]line Место: АЗС № 171 "Партнер Нефть" [19:10:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:10:52]line СНО: Общий режим [19:10:52]line Чек 448 27.10.2024 19:10 [19:10:52]line Смена: 544 ФФД: 1.0 [19:10:52]line ЗНМ: 0300000109 [19:10:52]line РНМ: 0000000000091777 [19:10:52]line Версия ККМ: 001 [19:10:52]line ФМ: 0000000000871756 [19:10:52]line ФД: 202156 [19:10:52]line ФПД: 140823431411991 [19:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191051&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202156&fm=140823431411991&tin=02508201610067®Number=0000000000091777&sum=100000 [19:10:52]OFD Sender: Processing packet 202156 [packets to send 114, broken 113] [19:10:52]ProducePacketName [19:10:52]name=ofd_packets/00202156 [19:10:52]OFD Sender: To server: pG, [19:10:52]CommunicateWithHost lk.salyk.kg:30040 [19:10:52]ConnectInit lk.salyk.kg [19:10:52]written 0, free lines is 4095 [19:10:53]Connected sock=9 [19:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 D0 03 08 01 2C 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C0 01 00 00 F4 03 04 00 3B 90 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 15 03 00 35 04 06 00 80 14 02 9A F9 17 C2 AB 50 D4 D2 30 B0 B1 [19:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D3 DF 47 00 81 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 15 03 00 F4 03 04 00 F4 3B 1E 67 B6 04 01 00 00 A6 3E 3A 42 FD 07 44 4E [19:10:53]CommunicateWithHost err = 0 [19:10:53]CheckOFDResponse [19:10:53]1017 (14) - 77093643461234 [19:10:53]1041 (16) - 0000000000871756 [19:10:53]1040 (4) - 202156 [19:10:53]1012 (4) - 27.10.2024 13:11 [19:10:53]1206 (1) - 0 [19:10:53]OFD Sender: Remove packet 202156 [19:10:53]ProducePacketName [19:10:53]name=ofd_packets/00202156 [19:10:53]NVStorageDeleteData [19:10:53]Write to MH i2c: 01 00 00 94 03 97 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 07 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 8B 0C 35 [19:10:53]RasterBufferAndPrint [19:10:53]line [19:10:53]line [19:10:53]line [19:10:53]line [19:10:53]line [19:10:53]written 0, free lines is 3215 [19:10:53]MH_Cut [19:10:53]Write to MH i2c: D1 01 00 9B 03 01 70 [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: D1 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: D1 01 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: D1 01 00 9B 03 00 6F [19:10:53]Write to MH i2c: 01 00 00 9C 03 9F [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]OFD Sender: No OFD packet to send [19:10:54]*** Cut start [19:10:54]*** Purtial cut [19:10:54]*** Stage 1: CUTSNS_PIN = 1 [19:10:54]Read from MH i2c: 01 [19:10:54]MH_I2C_Read... [19:10:54]*** Stop cut motor [19:10:54]*** Cut end [19:10:54]Read from MH i2c: 01 07 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [19:10:54]process_action close_receipt done [19:10:54]requested_data is exist [19:10:54]produce_requested_data [19:10:54]requested_item fm.sn is exist - process it [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 11 00 00 [19:10:54]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 17 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6F [19:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:10:54]wFMCommunicate OK [19:10:54]requested_item fd.num is exist - process it [19:10:54]SAM_PROTO_GetFieldsCounters [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 13 00 00 [19:10:54]Write to MH i2c: E2 08 00 9E 03 80 13 00 00 00 00 00 00 1D [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 62 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 62 00 9E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AC 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [19:10:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AC 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:54]wFMCommunicate OK [19:10:54]SAM_PROTO_GetFieldsCounters done [19:10:54]requested_item shift.num is exist - process it [19:10:54]requested_item shift.opened is exist - process it [19:10:54]req_shift_opened [19:10:54]FM_GetShiftState [19:10:54]SAM_PROTO_GetShiftState [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 13 01 00 [19:10:54]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0E 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [19:10:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:10:54]wFMCommunicate OK [19:10:54]SAM_PROTO_GetShiftState done [19:10:54]FM_GetShiftState done [19:10:54]req_shift_opened done [19:10:54]requested_item shift.open_date is exist - process it [19:10:54]req_shift_open_date [19:10:54]req_shift_open_date done [19:10:54]produce_requested_data done [19:10:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202156,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:10:54]process_action_free close_receipt [19:10:54]json_value_free [19:10:54]json_value_free done [19:10:54]process_json_proto returns [19:10:54]Send response to host [19:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202156,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:10:54]free response buf [19:10:54]execute_script done [19:10:54]execute_script returns [19:10:54]free content buf [19:10:54]Sock 7.Close socket [19:10:54]Sock 7.Thread stoped [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:12:59]accept exits with 10 [19:12:59]New connection [19:12:59]New thread 3066613092 created [19:12:59]Thread 3066469732 joined [19:12:59]Waiting for new connection... [19:12:59] Sock 10.Parse request [19:12:59]Sock 10.Check first char [19:12:59]Sock 10.First char is OK [19:12:59]request: POST /json_proto HTTP/1.0 [19:12:59]Method: POST [19:12:59]URL: /json_proto [19:12:59]Method is POST - this is cgi request [19:12:59]url: /json_proto [19:12:59]query_string will be loaded in cgi processing [19:12:59]execute_cgi json_proto POST (null) [19:12:59]execute_cgi path=json_proto method=POST [19:12:59]POST find Content-Length [19:12:59]Host: 172.17.63.195:8080 [19:12:59]Content-Length: 682 [19:12:59]Content-Type: application/json [19:12:59] [19:12:59]POST finish read [19:12:59]Found Content-Length = 682 [19:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:12:59]execute_script... [19:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:12:59]POST & json_proto [19:12:59]process_json_proto [19:12:59]json parsed OK: [19:12:59]protocol is kg_v1.0 [19:12:59]action value=close_receipt [19:12:59]process_action close_receipt [19:12:59]cmd_close_receipt [19:12:59]MH_GetDate [19:12:59]Write to MH i2c: F0 00 00 A0 03 92 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 A0 03 00 BC 90 1E 67 47 1B 1E 67 53 [19:12:59]GetLastDocTimeStamp 1730056251 [19:12:59]current date 1730056380 [19:12:59]FM_GetShiftState [19:12:59]SAM_PROTO_GetShiftState [19:12:59]wFMCommunicate request_size=4 [19:12:59]MH_SAM_APDU [19:12:59]CAPDU: 80 13 01 00 [19:12:59]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:59]Read from MH i2c: E2 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 23 [19:12:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:12:59]wFMCommunicate OK [19:12:59]SAM_PROTO_GetShiftState done [19:12:59]FM_GetShiftState done [19:12:59]opened in 1729987312 [19:12:59]opened+sec_in_day 1730073712 [19:12:59]quantity*price = 100015 [19:12:59]sum+1 = 100017 [19:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 449 27.10.2024 19:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202157 ФПД: 62704826112843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191300&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202157&fm=62704826112843&tin=02508201610067®Number=0000000000091777&sum=100000 [19:13:00]StoreToDocumentArchive [19:13:00]shift 544 fd 202157 [19:13:00]save to /storage/0544/doc_00202157 [19:13:00]save last doc name /storage/0544/doc_00202157 to /storage/kkm_last_doc_name [19:13:00]save OK [19:13:00]Clear old archive folders... [19:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:00]tlvbuf is 0140D4D0 [19:13:00]SAM_PROTO_ClearQueue [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 09 00 00 [19:13:00]Write to MH i2c: E2 08 00 AE 03 80 09 00 00 00 00 00 00 23 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_ClearQueue done [19:13:00]KKMCreateOFDPacket [19:13:00]OFDProtocolAddRootSTLVToBuf [19:13:00]FM_MakeSignedData [19:13:00]FM_MakeSignedData [19:13:00]SAM_PROTO_SignData [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 01 02 [19:13:00]Write to MH i2c: E2 08 00 AF 03 80 0D 01 02 00 00 00 00 2B [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=255 [19:13:00]MH_SAM_APDU [19:13: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 32 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 C1 01 00 00 F4 03 04 00 BC 90 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 15 03 00 35 04 06 00 39 [19:13:00]Write to MH i2c: E2 02 01 B0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C1 01 00 00 F4 03 04 00 BC 90 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 15 03 00 35 04 06 00 39 00 00 6C [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=10 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 05 07 9A E2 DB 4B [19:13:00]Write to MH i2c: E2 0D 00 B1 03 80 0D 02 02 05 00 07 9A E2 DB 4B 00 00 E1 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 03 02 [19:13:00]Write to MH i2c: E2 08 00 B2 03 80 0D 03 02 00 00 00 00 30 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 0B 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 0B 00 B2 03 00 E0 7B E9 68 90 58 D8 87 90 00 24 [19:13:00]RAPDU: E0 7B E9 68 90 58 D8 87 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_SignData done [19:13:00]FM_MakeSignedData done [19:13:00]CreateOFDProtocolMessage [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 11 00 00 [19:13:00]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 17 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 85 [19:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:13:00]wFMCommunicate OK [19:13:00]CreateOFDProtocolMessage done [19:13:00]OFDSenderStorePacket 202157 [19:13:00]StoreOFDPacket docnum=202157 [19:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 65 18 07 01 F1 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C1 01 00 00 F4 03 04 00 BC 90 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 15 03 00 35 04 06 00 39 07 9A E2 DB 4B E0 7B E9 68 90 58 D8 87 [19:13:00]CheckFolder [19:13:00]dirname=/storage/ofd_packets [19:13:00]CheckFolder done [19:13:00]ProducePacketName [19:13:00]name=ofd_packets/00202157 [19:13:00]NVStorageSaveData ofd_packets/00202157 [19:13:00]File name is /storage/ofd_packets/00202157 [19:13:00]Write 301 bytes [19:13:00]NVStorageSaveData done [19:13:00]OFDSenderStorePacket done [19:13:00]KKMCreateOFDPacket done [19:13:00]NVStorageSaveData kkm_last_timestamp [19:13:00]File name is /storage/kkm_last_timestamp [19:13:00]Write 4 bytes [19:13:00]NVStorageSaveData done [19:13:00]ExternCall_PrintAddStr [19:13:00]wPrintStart [19:13:00]Write to MH i2c: 01 00 00 B4 03 B7 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 07 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [19:13:00]RasterBufferAndPrint [19:13:00]line Счет N : (1)449929 [19:13:00]line ИНН: 02508201610067 [19:13:00]line Контрольно-Кассовый Чек [19:13:00]line ПРОДАЖА [19:13:00]line ТРК (МРК, ГНК) : 62 [19:13:00]line Товар: 2710124130 [19:13:00]line Аи-92-К-2 [19:13:00]line 14.950 * 66.90 [19:13:00]line = 1000.16 [19:13:00]line НДС 12% НСП 1% [19:13:00]line > о реализуемом товаре [19:13:00]line ОКРУГЛЕНИЕ: -0.16 [19:13:00]line ИТОГО: 1000.00 [19:13:00]line Внесено: 1000.00 [19:13:00]line СДАЧА: 0.00 [19:13:00]line НСП 1% : 8.85 [19:13:00]line НДС 12% : 106.21 [19:13:00]line Наличными: 1000.00 [19:13:00]line Безнал.: 0.00 [19:13:00]line Место: АЗС № 171 "Партнер Нефть" [19:13:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:13:00]line СНО: Общий режим [19:13:00]line Чек 449 27.10.2024 19:13 [19:13:00]line Смена: 544 ФФД: 1.0 [19:13:00]line ЗНМ: 0300000109 [19:13:00]line РНМ: 0000000000091777 [19:13:00]line Версия ККМ: 001 [19:13:00]line ФМ: 0000000000871756 [19:13:00]line ФД: 202157 [19:13:00]line ФПД: 62704826112843 [19:13:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191300&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202157&fm=62704826112843&tin=02508201610067®Number=0000000000091777&sum=100000 [19:13:01]OFD Sender: Processing packet 202157 [packets to send 114, broken 113] [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00202157 [19:13:01]OFD Sender: To server: pG, [19:13:01]CommunicateWithHost lk.salyk.kg:30040 [19:13:01]ConnectInit lk.salyk.kg [19:13:01]written 0, free lines is 4095 [19:13:01]Connected sock=9 [19:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 65 18 07 01 F1 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C1 01 00 00 F4 03 04 00 BC 90 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 15 03 00 35 04 06 00 39 07 9A E2 DB 4B E0 7B E9 68 90 58 D8 87 [19:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0B E0 47 00 D6 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 15 03 00 F4 03 04 00 75 3C 1E 67 B6 04 01 00 00 36 58 73 9A A8 8D A3 0B [19:13:01]CommunicateWithHost err = 0 [19:13:01]CheckOFDResponse [19:13:01]1017 (14) - 77093643461234 [19:13:01]1041 (16) - 0000000000871756 [19:13:01]1040 (4) - 202157 [19:13:01]1012 (4) - 27.10.2024 13:13 [19:13:01]1206 (1) - 0 [19:13:01]OFD Sender: Remove packet 202157 [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00202157 [19:13:01]NVStorageDeleteData [19:13:01]Write to MH i2c: 01 00 00 DF 03 E2 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 A6 0C 9B [19:13:01]RasterBufferAndPrint [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]written 0, free lines is 3244 [19:13:01]MH_Cut [19:13:01]Write to MH i2c: D1 01 00 E6 03 01 BB [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 E6 03 00 BA [19:13:01]Write to MH i2c: 01 00 00 E7 03 EA [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:02]OFD Sender: No OFD packet to send [19:13:02]*** Cut start [19:13:02]*** Purtial cut [19:13:02]*** Stage 1: CUTSNS_PIN = 1 [19:13:02]Read from MH i2c: 01 [19:13:02]MH_I2C_Read... [19:13:02]*** Stop cut motor [19:13:02]*** Cut end [19:13:02]Read from MH i2c: 01 07 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [19:13:02]process_action close_receipt done [19:13:02]requested_data is exist [19:13:02]produce_requested_data [19:13:02]requested_item fm.sn is exist - process it [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 11 00 00 [19:13:02]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 17 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BA [19:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:13:02]wFMCommunicate OK [19:13:02]requested_item fd.num is exist - process it [19:13:02]SAM_PROTO_GetFieldsCounters [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 13 00 00 [19:13:02]Write to MH i2c: E2 08 00 E9 03 80 13 00 00 00 00 00 00 68 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 62 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 62 00 E9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AD 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [19:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AD 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:03]wFMCommunicate OK [19:13:03]SAM_PROTO_GetFieldsCounters done [19:13:03]requested_item shift.num is exist - process it [19:13:03]requested_item shift.opened is exist - process it [19:13:03]req_shift_opened [19:13:03]FM_GetShiftState [19:13:03]SAM_PROTO_GetShiftState [19:13:03]wFMCommunicate request_size=4 [19:13:03]MH_SAM_APDU [19:13:03]CAPDU: 80 13 01 00 [19:13:03]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0E 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [19:13:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:13:03]wFMCommunicate OK [19:13:03]SAM_PROTO_GetShiftState done [19:13:03]FM_GetShiftState done [19:13:03]req_shift_opened done [19:13:03]requested_item shift.open_date is exist - process it [19:13:03]req_shift_open_date [19:13:03]req_shift_open_date done [19:13:03]produce_requested_data done [19:13:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202157,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:13:03]process_action_free close_receipt [19:13:03]json_value_free [19:13:03]json_value_free done [19:13:03]process_json_proto returns [19:13:03]Send response to host [19:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202157,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:13:03]free response buf [19:13:03]execute_script done [19:13:03]execute_script returns [19:13:03]free content buf [19:13:03]Sock 10.Close socket [19:13:03]Sock 10.Thread stoped [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:37]accept exits with 7 [19:14:37]New connection [19:14:37]New thread 3066469732 created [19:14:37]Thread 3066613092 joined [19:14:37]Waiting for new connection... [19:14:37] Sock 7.Parse request [19:14:37]Sock 7.Check first char [19:14:37]Sock 7.First char is OK [19:14:37]request: POST /json_proto HTTP/1.0 [19:14:37]Method: POST [19:14:37]URL: /json_proto [19:14:37]Method is POST - this is cgi request [19:14:37]url: /json_proto [19:14:37]query_string will be loaded in cgi processing [19:14:37]execute_cgi json_proto POST (null) [19:14:37]execute_cgi path=json_proto method=POST [19:14:37]POST find Content-Length [19:14:37]Host: 172.17.63.195:8080 [19:14:37]Content-Length: 674 [19:14:37]Content-Type: application/json [19:14:37] [19:14:37]POST finish read [19:14:37]Found Content-Length = 674 [19:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:14:37]execute_script... [19:14:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:14:37]POST & json_proto [19:14:37]process_json_proto [19:14:37]json parsed OK: [19:14:37]protocol is kg_v1.0 [19:14:37]action value=close_receipt [19:14:37]process_action close_receipt [19:14:37]cmd_close_receipt [19:14:37]MH_GetDate [19:14:37]Write to MH i2c: F0 00 00 EB 03 DD [19:14:37]Write i2c OK [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: F0 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: F0 09 00 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: F0 09 00 EB 03 00 1E 91 1E 67 47 1B 1E 67 01 [19:14:37]GetLastDocTimeStamp 1730056380 [19:14:37]current date 1730056478 [19:14:37]FM_GetShiftState [19:14:37]SAM_PROTO_GetShiftState [19:14:37]wFMCommunicate request_size=4 [19:14:37]MH_SAM_APDU [19:14:37]CAPDU: 80 13 01 00 [19:14:37]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [19:14:37]Write i2c OK [19:14:37]MH_I2C_Read... [19:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:37]Read from MH i2c: E2 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 0E 00 [19:14:37]MH_I2C_Read... [19:14:37]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6E [19:14:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:14:37]wFMCommunicate OK [19:14:37]SAM_PROTO_GetShiftState done [19:14:37]FM_GetShiftState done [19:14:37]opened in 1729987312 [19:14:37]opened+sec_in_day 1730073712 [19:14:37]quantity*price = 50063 [19:14:37]sum+1 = 50064 [19:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 450 27.10.2024 19:14 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202158 ФПД: 199473943379273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191438&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202158&fm=199473943379273&tin=02508201610067®Number=0000000000091777&sum=50000 [19:14:38]StoreToDocumentArchive [19:14:38]shift 544 fd 202158 [19:14:38]save to /storage/0544/doc_00202158 [19:14:38]save last doc name /storage/0544/doc_00202158 to /storage/kkm_last_doc_name [19:14:38]save OK [19:14:38]Clear old archive folders... [19:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:14:38]tlvbuf is B6E55140 [19:14:38]SAM_PROTO_ClearQueue [19:14:38]wFMCommunicate request_size=4 [19:14:38]MH_SAM_APDU [19:14:38]CAPDU: 80 09 00 00 [19:14:38]Write to MH i2c: E2 08 00 F9 03 80 09 00 00 00 00 00 00 6E [19:14:38]Write i2c OK [19:14:38]MH_I2C_Read... [19:14:38]Read from MH i2c: E2 [19:14:38]MH_I2C_Read... [19:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:38]Read from MH i2c: E2 03 00 [19:14:38]MH_I2C_Read... [19:14:38]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [19:14:38]RAPDU: 90 00 [19:14:38]wFMCommunicate OK [19:14:38]SAM_PROTO_ClearQueue done [19:14:38]KKMCreateOFDPacket [19:14:38]OFDProtocolAddRootSTLVToBuf [19:14:38]FM_MakeSignedData [19:14:38]FM_MakeSignedData [19:14:38]SAM_PROTO_SignData [19:14:38]wFMCommunicate request_size=4 [19:14:38]MH_SAM_APDU [19:14:38]CAPDU: 80 0D 01 02 [19:14:38]Write to MH i2c: E2 08 00 FA 03 80 0D 01 02 00 00 00 00 76 [19:14:38]Write i2c OK [19:14:38]MH_I2C_Read... [19:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:38]Read from MH i2c: E2 [19:14:38]MH_I2C_Read... [19:14:38]Read from MH i2c: E2 03 00 [19:14:38]MH_I2C_Read... [19:14:38]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [19:14:38]RAPDU: 90 00 [19:14:38]wFMCommunicate OK [19:14:38]wFMCommunicate request_size=255 [19:14:38]MH_SAM_APDU [19:14:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 1E 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 15 03 00 35 04 06 00 B5 6B A5 89 [19:14:38]Write to MH i2c: E2 02 01 FB 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 1E 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 15 03 00 35 04 06 00 B5 6B A5 89 00 00 B5 [19:14:38]Write i2c OK [19:14:38]MH_I2C_Read... [19:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:39]Read from MH i2c: E2 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 03 00 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [19:14:39]RAPDU: 90 00 [19:14:39]wFMCommunicate OK [19:14:39]wFMCommunicate request_size=7 [19:14:39]MH_SAM_APDU [19:14:39]CAPDU: 80 0D 02 02 02 7D 49 [19:14:39]Write to MH i2c: E2 0A 00 FC 03 80 0D 02 02 02 00 7D 49 00 00 43 [19:14:39]Write i2c OK [19:14:39]MH_I2C_Read... [19:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:39]Read from MH i2c: E2 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 03 00 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [19:14:39]RAPDU: 90 00 [19:14:39]wFMCommunicate OK [19:14:39]wFMCommunicate request_size=4 [19:14:39]MH_SAM_APDU [19:14:39]CAPDU: 80 0D 03 02 [19:14:39]Write to MH i2c: E2 08 00 FD 03 80 0D 03 02 00 00 00 00 7B [19:14:39]Write i2c OK [19:14:39]MH_I2C_Read... [19:14:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:39]Read from MH i2c: E2 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 0B 00 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 0B 00 FD 03 00 87 BE DD 17 08 C5 03 DC 90 00 61 [19:14:39]RAPDU: 87 BE DD 17 08 C5 03 DC 90 00 [19:14:39]wFMCommunicate OK [19:14:39]SAM_PROTO_SignData done [19:14:39]FM_MakeSignedData done [19:14:39]CreateOFDProtocolMessage [19:14:39]wFMCommunicate request_size=4 [19:14:39]MH_SAM_APDU [19:14:39]CAPDU: 80 11 00 00 [19:14:39]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [19:14:39]Write i2c OK [19:14:39]MH_I2C_Read... [19:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:39]Read from MH i2c: E2 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 17 00 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D0 [19:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:14:39]wFMCommunicate OK [19:14:39]CreateOFDProtocolMessage done [19:14:39]OFDSenderStorePacket 202158 [19:14:39]StoreOFDPacket docnum=202158 [19:14:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 1D 71 04 01 91 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 1E 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 15 03 00 35 04 06 00 B5 6B A5 89 7D 49 87 BE DD 17 08 C5 03 DC [19:14:39]CheckFolder [19:14:39]dirname=/storage/ofd_packets [19:14:39]CheckFolder done [19:14:39]ProducePacketName [19:14:39]name=ofd_packets/00202158 [19:14:39]NVStorageSaveData ofd_packets/00202158 [19:14:39]File name is /storage/ofd_packets/00202158 [19:14:39]Write 298 bytes [19:14:39]NVStorageSaveData done [19:14:39]OFDSenderStorePacket done [19:14:39]KKMCreateOFDPacket done [19:14:39]NVStorageSaveData kkm_last_timestamp [19:14:39]File name is /storage/kkm_last_timestamp [19:14:39]Write 4 bytes [19:14:39]NVStorageSaveData done [19:14:39]ExternCall_PrintAddStr [19:14:39]wPrintStart [19:14:39]Write to MH i2c: 01 00 00 FF 03 02 [19:14:39]Write i2c OK [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: 01 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: 01 07 00 [19:14:39]MH_I2C_Read... [19:14:39]Read from MH i2c: 01 07 00 FF 03 00 00 00 00 00 FF 0F 17 [19:14:39]RasterBufferAndPrint [19:14:39]line Счет N : (1)449930 [19:14:39]line ИНН: 02508201610067 [19:14:39]line Контрольно-Кассовый Чек [19:14:39]line ПРОДАЖА [19:14:39]line ТРК (МРК, ГНК) : 43 [19:14:39]line Товар: 2710194210 [19:14:39]line ДТ-К-2 [19:14:39]line 6.570 * 76.20 [19:14:39]line = 500.63 [19:14:39]line НДС 12% НСП 1% [19:14:39]line > о реализуемом товаре [19:14:39]line ОКРУГЛЕНИЕ: -0.63 [19:14:39]line ИТОГО: 500.00 [19:14:39]line Внесено: 500.00 [19:14:39]line СДАЧА: 0.00 [19:14:39]line НСП 1% : 4.43 [19:14:39]line НДС 12% : 53.16 [19:14:39]line Наличными: 500.00 [19:14:39]line Безнал.: 0.00 [19:14:39]line Место: АЗС № 171 "Партнер Нефть" [19:14:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:14:39]line СНО: Общий режим [19:14:39]line Чек 450 27.10.2024 19:14 [19:14:39]line Смена: 544 ФФД: 1.0 [19:14:39]line ЗНМ: 0300000109 [19:14:39]line РНМ: 0000000000091777 [19:14:39]line Версия ККМ: 001 [19:14:39]line ФМ: 0000000000871756 [19:14:39]line ФД: 202158 [19:14:39]line ФПД: 199473943379273 [19:14:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191438&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202158&fm=199473943379273&tin=02508201610067®Number=0000000000091777&sum=50000 [19:14:39]OFD Sender: Processing packet 202158 [packets to send 114, broken 113] [19:14:39]ProducePacketName [19:14:39]name=ofd_packets/00202158 [19:14:39]OFD Sender: To server: pG, [19:14:39]CommunicateWithHost lk.salyk.kg:30040 [19:14:39]ConnectInit lk.salyk.kg [19:14:39]written 0, free lines is 4095 [19:14:39]Connected sock=10 [19:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 1D 71 04 01 91 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 1E 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 15 03 00 35 04 06 00 B5 6B A5 89 7D 49 87 BE DD 17 08 C5 03 DC [19:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1C B5 47 00 81 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 15 03 00 F4 03 04 00 D7 3C 1E 67 B6 04 01 00 00 21 6D D7 93 27 82 73 3E [19:14:39]CommunicateWithHost err = 0 [19:14:39]CheckOFDResponse [19:14:39]1017 (14) - 77093643461234 [19:14:39]1041 (16) - 0000000000871756 [19:14:39]1040 (4) - 202158 [19:14:39]1012 (4) - 27.10.2024 13:15 [19:14:39]1206 (1) - 0 [19:14:39]OFD Sender: Remove packet 202158 [19:14:39]ProducePacketName [19:14:39]name=ofd_packets/00202158 [19:14:39]NVStorageDeleteData [19:14:40]Write to MH i2c: 01 00 00 2A 04 2E [19:14:40]Write i2c OK [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: 01 [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: 01 07 00 [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 93 0C D4 [19:14:40]RasterBufferAndPrint [19:14:40]line [19:14:40]line [19:14:40]line [19:14:40]line [19:14:40]line [19:14:40]written 0, free lines is 3223 [19:14:40]MH_Cut [19:14:40]Write to MH i2c: D1 01 00 31 04 01 07 [19:14:40]Write i2c OK [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: D1 [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: D1 01 00 [19:14:40]MH_I2C_Read... [19:14:40]Read from MH i2c: D1 01 00 31 04 00 06 [19:14:40]Write to MH i2c: 01 00 00 32 04 36 [19:14:40]Write i2c OK [19:14:40]MH_I2C_Read... [19:14:40]OFD Sender: No OFD packet to send [19:14:40]*** Cut start [19:14:40]*** Purtial cut [19:14:40]*** Stage 1: CUTSNS_PIN = 1 [19:14:41]Read from MH i2c: 01 [19:14:41]MH_I2C_Read... [19:14:41]*** Stop cut motor [19:14:41]*** Cut end [19:14:41]Read from MH i2c: 01 07 00 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [19:14:41]process_action close_receipt done [19:14:41]requested_data is exist [19:14:41]produce_requested_data [19:14:41]requested_item fm.sn is exist - process it [19:14:41]wFMCommunicate request_size=4 [19:14:41]MH_SAM_APDU [19:14:41]CAPDU: 80 11 00 00 [19:14:41]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [19:14:41]Write i2c OK [19:14:41]MH_I2C_Read... [19:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:41]Read from MH i2c: E2 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: E2 17 00 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 06 [19:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:14:41]wFMCommunicate OK [19:14:41]requested_item fd.num is exist - process it [19:14:41]SAM_PROTO_GetFieldsCounters [19:14:41]wFMCommunicate request_size=4 [19:14:41]MH_SAM_APDU [19:14:41]CAPDU: 80 13 00 00 [19:14:41]Write to MH i2c: E2 08 00 34 04 80 13 00 00 00 00 00 00 B4 [19:14:41]Write i2c OK [19:14:41]MH_I2C_Read... [19:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:41]Read from MH i2c: E2 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: E2 62 00 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: E2 62 00 34 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AE 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:14:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AE 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:41]wFMCommunicate OK [19:14:41]SAM_PROTO_GetFieldsCounters done [19:14:41]requested_item shift.num is exist - process it [19:14:41]requested_item shift.opened is exist - process it [19:14:41]req_shift_opened [19:14:41]FM_GetShiftState [19:14:41]SAM_PROTO_GetShiftState [19:14:41]wFMCommunicate request_size=4 [19:14:41]MH_SAM_APDU [19:14:41]CAPDU: 80 13 01 00 [19:14:41]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [19:14:41]Write i2c OK [19:14:41]MH_I2C_Read... [19:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:41]Read from MH i2c: E2 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: E2 0E 00 [19:14:41]MH_I2C_Read... [19:14:41]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [19:14:41]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:14:41]wFMCommunicate OK [19:14:41]SAM_PROTO_GetShiftState done [19:14:41]FM_GetShiftState done [19:14:41]req_shift_opened done [19:14:41]requested_item shift.open_date is exist - process it [19:14:41]req_shift_open_date [19:14:41]req_shift_open_date done [19:14:41]produce_requested_data done [19:14:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202158,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:14:41]process_action_free close_receipt [19:14:41]json_value_free [19:14:41]json_value_free done [19:14:41]process_json_proto returns [19:14:41]Send response to host [19:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202158,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:14:41]free response buf [19:14:41]execute_script done [19:14:41]execute_script returns [19:14:41]free content buf [19:14:41]Sock 7.Close socket [19:14:41]Sock 7.Thread stoped [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:48]accept exits with 9 [19:16:48]New connection [19:16:48]New thread 3066613092 created [19:16:48]Thread 3066469732 joined [19:16:48]Waiting for new connection... [19:16:48] Sock 9.Parse request [19:16:48]Sock 9.Check first char [19:16:48]Sock 9.First char is OK [19:16:48]request: POST /json_proto HTTP/1.0 [19:16:48]Method: POST [19:16:48]URL: /json_proto [19:16:48]Method is POST - this is cgi request [19:16:48]url: /json_proto [19:16:48]query_string will be loaded in cgi processing [19:16:48]execute_cgi json_proto POST (null) [19:16:48]execute_cgi path=json_proto method=POST [19:16:48]POST find Content-Length [19:16:48]Host: 172.17.63.195:8080 [19:16:48]Content-Length: 682 [19:16:48]Content-Type: application/json [19:16:48] [19:16:48]POST finish read [19:16:48]Found Content-Length = 682 [19:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:48]execute_script... [19:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:48]POST & json_proto [19:16:48]process_json_proto [19:16:48]json parsed OK: [19:16:48]protocol is kg_v1.0 [19:16:48]action value=close_receipt [19:16:48]process_action close_receipt [19:16:48]cmd_close_receipt [19:16:48]MH_GetDate [19:16:48]Write to MH i2c: F0 00 00 36 04 29 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: F0 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: F0 09 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: F0 09 00 36 04 00 A1 91 1E 67 47 1B 1E 67 D0 [19:16:48]GetLastDocTimeStamp 1730056478 [19:16:48]current date 1730056609 [19:16:48]FM_GetShiftState [19:16:48]SAM_PROTO_GetShiftState [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 13 01 00 [19:16:48]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 0E 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BA [19:16:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:16:48]wFMCommunicate OK [19:16:48]SAM_PROTO_GetShiftState done [19:16:48]FM_GetShiftState done [19:16:48]opened in 1729987312 [19:16:48]opened+sec_in_day 1730073712 [19:16:48]quantity*price = 200031 [19:16:48]sum+1 = 200032 [19:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 451 27.10.2024 19:16 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202159 ФПД: 109665661251268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191649&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202159&fm=109665661251268&tin=02508201610067®Number=0000000000091777&sum=200000 [19:16:49]StoreToDocumentArchive [19:16:49]shift 544 fd 202159 [19:16:49]save to /storage/0544/doc_00202159 [19:16:49]save last doc name /storage/0544/doc_00202159 to /storage/kkm_last_doc_name [19:16:49]save OK [19:16:49]Clear old archive folders... [19:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:49]tlvbuf is 01416000 [19:16:49]SAM_PROTO_ClearQueue [19:16:49]wFMCommunicate request_size=4 [19:16:49]MH_SAM_APDU [19:16:49]CAPDU: 80 09 00 00 [19:16:49]Write to MH i2c: E2 08 00 44 04 80 09 00 00 00 00 00 00 BA [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:49]Read from MH i2c: E2 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 03 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [19:16:49]RAPDU: 90 00 [19:16:49]wFMCommunicate OK [19:16:49]SAM_PROTO_ClearQueue done [19:16:49]KKMCreateOFDPacket [19:16:49]OFDProtocolAddRootSTLVToBuf [19:16:49]FM_MakeSignedData [19:16:49]FM_MakeSignedData [19:16:49]SAM_PROTO_SignData [19:16:49]wFMCommunicate request_size=4 [19:16:49]MH_SAM_APDU [19:16:49]CAPDU: 80 0D 01 02 [19:16:49]Write to MH i2c: E2 08 00 45 04 80 0D 01 02 00 00 00 00 C2 [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:49]Read from MH i2c: E2 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 03 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [19:16:49]RAPDU: 90 00 [19:16:49]wFMCommunicate OK [19:16:49]wFMCommunicate request_size=255 [19:16:49]MH_SAM_APDU [19:16:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 A1 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 15 03 00 35 04 06 00 63 [19:16:49]Write to MH i2c: E2 02 01 46 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 A1 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 15 03 00 35 04 06 00 63 00 00 5F [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 03 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [19:16:50]RAPDU: 90 00 [19:16:50]wFMCommunicate OK [19:16:50]wFMCommunicate request_size=10 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 0D 02 02 05 BD 86 C8 6E C4 [19:16:50]Write to MH i2c: E2 0D 00 47 04 80 0D 02 02 05 00 BD 86 C8 6E C4 00 00 0C [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 03 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [19:16:50]RAPDU: 90 00 [19:16:50]wFMCommunicate OK [19:16:50]wFMCommunicate request_size=4 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 0D 03 02 [19:16:50]Write to MH i2c: E2 08 00 48 04 80 0D 03 02 00 00 00 00 C7 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 0B 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 0B 00 48 04 00 BE 3F 45 2F EA E0 56 41 90 00 9A [19:16:50]RAPDU: BE 3F 45 2F EA E0 56 41 90 00 [19:16:50]wFMCommunicate OK [19:16:50]SAM_PROTO_SignData done [19:16:50]FM_MakeSignedData done [19:16:50]CreateOFDProtocolMessage [19:16:50]wFMCommunicate request_size=4 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 11 00 00 [19:16:50]Write to MH i2c: E2 08 00 49 04 80 11 00 00 00 00 00 00 C7 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 17 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 17 00 49 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1C [19:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:16:50]wFMCommunicate OK [19:16:50]CreateOFDProtocolMessage done [19:16:50]OFDSenderStorePacket 202159 [19:16:50]StoreOFDPacket docnum=202159 [19:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 55 65 07 01 F2 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 A1 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 15 03 00 35 04 06 00 63 BD 86 C8 6E C4 BE 3F 45 2F EA E0 56 41 [19:16:50]CheckFolder [19:16:50]dirname=/storage/ofd_packets [19:16:50]CheckFolder done [19:16:50]ProducePacketName [19:16:50]name=ofd_packets/00202159 [19:16:50]NVStorageSaveData ofd_packets/00202159 [19:16:50]File name is /storage/ofd_packets/00202159 [19:16:50]Write 301 bytes [19:16:50]NVStorageSaveData done [19:16:50]OFDSenderStorePacket done [19:16:50]KKMCreateOFDPacket done [19:16:50]NVStorageSaveData kkm_last_timestamp [19:16:50]File name is /storage/kkm_last_timestamp [19:16:50]Write 4 bytes [19:16:50]NVStorageSaveData done [19:16:50]OFD Sender: Processing packet 202159 [packets to send 114, broken 113] [19:16:50]ProducePacketName [19:16:50]name=ofd_packets/00202159 [19:16:50]OFD Sender: To server: pG, [19:16:50]CommunicateWithHost lk.salyk.kg:30040 [19:16:50]ConnectInit lk.salyk.kg [19:16:50]ExternCall_PrintAddStr [19:16:50]wPrintStart [19:16:50]Write to MH i2c: 01 00 00 4A 04 4E [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: 01 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: 01 07 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: 01 07 00 4A 04 00 00 00 00 00 FF 0F 63 [19:16:50]RasterBufferAndPrint [19:16:50]line Счет N : (1)449931 [19:16:50]line ИНН: 02508201610067 [19:16:50]line Контрольно-Кассовый Чек [19:16:50]line ПРОДАЖА [19:16:50]line ТРК (МРК, ГНК) : 62 [19:16:50]line Товар: 2710124130 [19:16:50]line Аи-92-К-2 [19:16:50]line 29.900 * 66.90 [19:16:50]line = 2000.31 [19:16:50]line НДС 12% НСП 1% [19:16:50]line > о реализуемом товаре [19:16:50]line ОКРУГЛЕНИЕ: -0.31 [19:16:50]line ИТОГО: 2000.00 [19:16:50]line Внесено: 2000.00 [19:16:50]line СДАЧА: 0.00 [19:16:50]line НСП 1% : 17.70 [19:16:50]line НДС 12% : 212.42 [19:16:50]line Наличными: 2000.00 [19:16:50]line Безнал.: 0.00 [19:16:50]line Место: АЗС № 171 "Партнер Нефть" [19:16:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:16:50]line СНО: Общий режим [19:16:50]line Чек 451 27.10.2024 19:16 [19:16:50]line Смена: 544 ФФД: 1.0 [19:16:50]line ЗНМ: 0300000109 [19:16:50]line РНМ: 0000000000091777 [19:16:50]line Версия ККМ: 001 [19:16:50]line ФМ: 0000000000871756 [19:16:50]line ФД: 202159 [19:16:50]line ФПД: 109665661251268 [19:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191649&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202159&fm=109665661251268&tin=02508201610067®Number=0000000000091777&sum=200000 [19:16:50]Connected sock=11 [19:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 55 65 07 01 F2 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 A1 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 15 03 00 35 04 06 00 63 BD 86 C8 6E C4 BE 3F 45 2F EA E0 56 41 [19:16:50]written 0, free lines is 4095 [19:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D7 D8 47 00 D0 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 15 03 00 F4 03 04 00 5A 3D 1E 67 B6 04 01 00 00 24 F4 E0 64 85 C5 C8 EB [19:16:50]CommunicateWithHost err = 0 [19:16:50]CheckOFDResponse [19:16:50]1017 (14) - 77093643461234 [19:16:50]1041 (16) - 0000000000871756 [19:16:50]1040 (4) - 202159 [19:16:50]1012 (4) - 27.10.2024 13:17 [19:16:50]1206 (1) - 0 [19:16:50]OFD Sender: Remove packet 202159 [19:16:50]ProducePacketName [19:16:50]name=ofd_packets/00202159 [19:16:50]NVStorageDeleteData [19:16:51]Write to MH i2c: 01 00 00 75 04 79 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 07 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 8D 0C 19 [19:16:51]RasterBufferAndPrint [19:16:51]line [19:16:51]line [19:16:51]line [19:16:51]line [19:16:51]line [19:16:51]written 0, free lines is 3217 [19:16:51]MH_Cut [19:16:51]Write to MH i2c: D1 01 00 7C 04 01 52 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: D1 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: D1 01 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: D1 01 00 7C 04 00 51 [19:16:51]Write to MH i2c: 01 00 00 7D 04 81 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]OFD Sender: No OFD packet to send [19:16:52]*** Cut start [19:16:52]*** Purtial cut [19:16:52]*** Stage 1: CUTSNS_PIN = 1 [19:16:52]Read from MH i2c: 01 [19:16:52]MH_I2C_Read... [19:16:52]*** Stop cut motor [19:16:52]*** Cut end [19:16:52]Read from MH i2c: 01 07 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [19:16:52]process_action close_receipt done [19:16:52]requested_data is exist [19:16:52]produce_requested_data [19:16:52]requested_item fm.sn is exist - process it [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 11 00 00 [19:16:52]Write to MH i2c: E2 08 00 7E 04 80 11 00 00 00 00 00 00 FC [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 17 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 17 00 7E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 51 [19:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:16:52]wFMCommunicate OK [19:16:52]requested_item fd.num is exist - process it [19:16:52]SAM_PROTO_GetFieldsCounters [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 13 00 00 [19:16:52]Write to MH i2c: E2 08 00 7F 04 80 13 00 00 00 00 00 00 FF [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 62 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 62 00 7F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AF 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [19:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AF 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:52]wFMCommunicate OK [19:16:52]SAM_PROTO_GetFieldsCounters done [19:16:52]requested_item shift.num is exist - process it [19:16:52]requested_item shift.opened is exist - process it [19:16:52]req_shift_opened [19:16:52]FM_GetShiftState [19:16:52]SAM_PROTO_GetShiftState [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 13 01 00 [19:16:52]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 0E 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 03 [19:16:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:16:52]wFMCommunicate OK [19:16:52]SAM_PROTO_GetShiftState done [19:16:52]FM_GetShiftState done [19:16:52]req_shift_opened done [19:16:52]requested_item shift.open_date is exist - process it [19:16:52]req_shift_open_date [19:16:52]req_shift_open_date done [19:16:52]produce_requested_data done [19:16:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202159,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:16:52]process_action_free close_receipt [19:16:52]json_value_free [19:16:52]json_value_free done [19:16:52]process_json_proto returns [19:16:52]Send response to host [19:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202159,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:16:52]free response buf [19:16:52]execute_script done [19:16:52]execute_script returns [19:16:52]free content buf [19:16:52]Sock 9.Close socket [19:16:52]Sock 9.Thread stoped [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:23]accept exits with 7 [19:17:23]New connection [19:17:23]New thread 3066469732 created [19:17:23]Thread 3066613092 joined [19:17:23]Waiting for new connection... [19:17:23] Sock 7.Parse request [19:17:23]Sock 7.Check first char [19:17:23]Sock 7.First char is OK [19:17:23]request: POST /json_proto HTTP/1.0 [19:17:23]Method: POST [19:17:23]URL: /json_proto [19:17:23]Method is POST - this is cgi request [19:17:23]url: /json_proto [19:17:23]query_string will be loaded in cgi processing [19:17:23]execute_cgi json_proto POST (null) [19:17:23]execute_cgi path=json_proto method=POST [19:17:23]POST find Content-Length [19:17:23]Host: 172.17.63.195:8080 [19:17:23]Content-Length: 766 [19:17:23]Content-Type: application/json [19:17:23] [19:17:23]POST finish read [19:17:23]Found Content-Length = 766 [19:17:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:23]execute_script... [19:17:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:23]POST & json_proto [19:17:23]process_json_proto [19:17:23]json parsed OK: [19:17:23]protocol is kg_v1.0 [19:17:23]action value=close_receipt [19:17:23]process_action close_receipt [19:17:23]cmd_close_receipt [19:17:23]MH_GetDate [19:17:23]Write to MH i2c: F0 00 00 81 04 74 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: F0 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: F0 09 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: F0 09 00 81 04 00 C4 91 1E 67 47 1B 1E 67 3E [19:17:23]GetLastDocTimeStamp 1730056609 [19:17:23]current date 1730056644 [19:17:23]FM_GetShiftState [19:17:23]SAM_PROTO_GetShiftState [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 13 01 00 [19:17:23]Write to MH i2c: E2 08 00 82 04 80 13 01 00 00 00 00 00 03 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0E 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0E 00 82 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 05 [19:17:23]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_GetShiftState done [19:17:23]FM_GetShiftState done [19:17:23]opened in 1729987312 [19:17:23]opened+sec_in_day 1730073712 [19:17:23]quantity*price = 400050 [19:17:23]sum+1 = 400051 [19:17:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 452 27.10.2024 19:17 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202160 ФПД: 47015413798020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191724&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202160&fm=47015413798020&tin=02508201610067®Number=0000000000091777&sum=400050 [19:17:24]StoreToDocumentArchive [19:17:24]shift 544 fd 202160 [19:17:24]save to /storage/0544/doc_00202160 [19:17:24]save last doc name /storage/0544/doc_00202160 to /storage/kkm_last_doc_name [19:17:24]save OK [19:17:24]Clear old archive folders... [19:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:17:24]tlvbuf is 0141EC10 [19:17:24]SAM_PROTO_ClearQueue [19:17:24]wFMCommunicate request_size=4 [19:17:24]MH_SAM_APDU [19:17:24]CAPDU: 80 09 00 00 [19:17:24]Write to MH i2c: E2 08 00 8F 04 80 09 00 00 00 00 00 00 05 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [19:17:24]RAPDU: 90 00 [19:17:24]wFMCommunicate OK [19:17:24]SAM_PROTO_ClearQueue done [19:17:24]KKMCreateOFDPacket [19:17:24]OFDProtocolAddRootSTLVToBuf [19:17:24]FM_MakeSignedData [19:17:24]FM_MakeSignedData [19:17:24]SAM_PROTO_SignData [19:17:24]wFMCommunicate request_size=4 [19:17:24]MH_SAM_APDU [19:17:24]CAPDU: 80 0D 01 02 [19:17:24]Write to MH i2c: E2 08 00 90 04 80 0D 01 02 00 00 00 00 0D [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [19:17:24]RAPDU: 90 00 [19:17:24]wFMCommunicate OK [19:17:24]wFMCommunicate request_size=255 [19:17:24]MH_SAM_APDU [19:17:24]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 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 C4 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 15 03 00 35 04 06 00 2A C2 A1 09 [19:17:24]Write to MH i2c: E2 02 01 91 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 C4 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 15 03 00 35 04 06 00 2A C2 A1 09 00 00 3F [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [19:17:25]RAPDU: 90 00 [19:17:25]wFMCommunicate OK [19:17:25]wFMCommunicate request_size=7 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 0D 02 02 02 D4 84 [19:17:25]Write to MH i2c: E2 0A 00 92 04 80 0D 02 02 02 00 D4 84 00 00 6C [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [19:17:25]RAPDU: 90 00 [19:17:25]wFMCommunicate OK [19:17:25]wFMCommunicate request_size=4 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 0D 03 02 [19:17:25]Write to MH i2c: E2 08 00 93 04 80 0D 03 02 00 00 00 00 12 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 0B 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 0B 00 93 04 00 1B 03 17 7F 3D B5 6C 78 90 00 9D [19:17:25]RAPDU: 1B 03 17 7F 3D B5 6C 78 90 00 [19:17:25]wFMCommunicate OK [19:17:25]SAM_PROTO_SignData done [19:17:25]FM_MakeSignedData done [19:17:25]CreateOFDProtocolMessage [19:17:25]wFMCommunicate request_size=4 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 11 00 00 [19:17:25]Write to MH i2c: E2 08 00 94 04 80 11 00 00 00 00 00 00 12 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 17 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 17 00 94 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 67 [19:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:17:25]wFMCommunicate OK [19:17:25]CreateOFDProtocolMessage done [19:17:25]OFDSenderStorePacket 202160 [19:17:25]StoreOFDPacket docnum=202160 [19:17:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E4 4E 04 01 98 1F 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 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 C4 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 15 03 00 35 04 06 00 2A C2 A1 09 D4 84 1B 03 17 7F 3D B5 6C 78 [19:17:25]CheckFolder [19:17:25]dirname=/storage/ofd_packets [19:17:25]CheckFolder done [19:17:25]ProducePacketName [19:17:25]name=ofd_packets/00202160 [19:17:25]NVStorageSaveData ofd_packets/00202160 [19:17:25]File name is /storage/ofd_packets/00202160 [19:17:25]Write 298 bytes [19:17:25]NVStorageSaveData done [19:17:25]OFDSenderStorePacket done [19:17:25]KKMCreateOFDPacket done [19:17:25]NVStorageSaveData kkm_last_timestamp [19:17:25]File name is /storage/kkm_last_timestamp [19:17:25]Write 4 bytes [19:17:25]NVStorageSaveData done [19:17:25]ExternCall_PrintAddStr [19:17:25]wPrintStart [19:17:25]Write to MH i2c: 01 00 00 95 04 99 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 07 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 FF 0F AE [19:17:25]RasterBufferAndPrint [19:17:25]line Счет N : (1)449932 [19:17:25]line ИНН: 02508201610067 [19:17:25]line Контрольно-Кассовый Чек [19:17:25]line ПРОДАЖА [19:17:25]line ТРК (МРК, ГНК) : 11 [19:17:25]line Товар: 2710194210 [19:17:25]line ДТ-К-2 [19:17:25]line 52.500 * 76.20 [19:17:25]line = 4000.50 [19:17:25]line НДС 12% НСП 1% [19:17:25]line > о реализуемом товаре [19:17:25]line ИТОГО: 4000.50 [19:17:25]line НСП 1% : 35.40 [19:17:25]line НДС 12% : 424.83 [19:17:25]line Наличными: 0.00 [19:17:25]line Безнал.: 4000.50 [19:17:25]line Место: АЗС № 171 "Партнер Нефть" [19:17:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:17:25]line СНО: Общий режим [19:17:25]line Чек 452 27.10.2024 19:17 [19:17:25]line Смена: 544 ФФД: 1.0 [19:17:25]line ЗНМ: 0300000109 [19:17:25]line РНМ: 0000000000091777 [19:17:25]line Версия ККМ: 001 [19:17:25]line Платежная система: Mbank [19:17:25]line ФМ: 0000000000871756 [19:17:25]line ФД: 202160 [19:17:25]line ФПД: 47015413798020 [19:17:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191724&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202160&fm=47015413798020&tin=02508201610067®Number=0000000000091777&sum=400050 [19:17:25]OFD Sender: Processing packet 202160 [packets to send 114, broken 113] [19:17:25]ProducePacketName [19:17:25]name=ofd_packets/00202160 [19:17:25]OFD Sender: To server: pG, [19:17:25]CommunicateWithHost lk.salyk.kg:30040 [19:17:25]ConnectInit lk.salyk.kg [19:17:25]written 0, free lines is 4095 [19:17:25]Connected sock=9 [19:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E4 4E 04 01 98 1F 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 32 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 C4 91 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 15 03 00 35 04 06 00 2A C2 A1 09 D4 84 1B 03 17 7F 3D B5 6C 78 [19:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E6 2A 47 00 F3 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 15 03 00 F4 03 04 00 7D 3D 1E 67 B6 04 01 00 00 94 76 F5 73 54 7B B8 3E [19:17:25]CommunicateWithHost err = 0 [19:17:25]CheckOFDResponse [19:17:25]1017 (14) - 77093643461234 [19:17:25]1041 (16) - 0000000000871756 [19:17:25]1040 (4) - 202160 [19:17:25]1012 (4) - 27.10.2024 13:17 [19:17:25]1206 (1) - 0 [19:17:25]OFD Sender: Remove packet 202160 [19:17:25]ProducePacketName [19:17:25]name=ofd_packets/00202160 [19:17:25]NVStorageDeleteData [19:17:25]Write to MH i2c: 01 00 00 BE 04 C2 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 07 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 B9 0C 8E [19:17:25]RasterBufferAndPrint [19:17:25]line [19:17:25]line [19:17:25]line [19:17:25]line [19:17:25]line [19:17:25]written 0, free lines is 3260 [19:17:26]MH_Cut [19:17:26]Write to MH i2c: D1 01 00 C5 04 01 9B [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: D1 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: D1 01 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: D1 01 00 C5 04 00 9A [19:17:26]Write to MH i2c: 01 00 00 C6 04 CA [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]OFD Sender: No OFD packet to send [19:17:26]*** Cut start [19:17:26]*** Purtial cut [19:17:26]*** Stage 1: CUTSNS_PIN = 1 [19:17:27]Read from MH i2c: 01 [19:17:27]MH_I2C_Read... [19:17:27]*** Stop cut motor [19:17:27]*** Cut end [19:17:27]Read from MH i2c: 01 07 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [19:17:27]process_action close_receipt done [19:17:27]requested_data is exist [19:17:27]produce_requested_data [19:17:27]requested_item fm.sn is exist - process it [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 11 00 00 [19:17:27]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 17 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [19:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:17:27]wFMCommunicate OK [19:17:27]requested_item fd.num is exist - process it [19:17:27]SAM_PROTO_GetFieldsCounters [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 13 00 00 [19:17:27]Write to MH i2c: E2 08 00 C8 04 80 13 00 00 00 00 00 00 48 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 62 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 62 00 C8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B0 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [19:17:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B0 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:27]wFMCommunicate OK [19:17:27]SAM_PROTO_GetFieldsCounters done [19:17:27]requested_item shift.num is exist - process it [19:17:27]requested_item shift.opened is exist - process it [19:17:27]req_shift_opened [19:17:27]FM_GetShiftState [19:17:27]SAM_PROTO_GetShiftState [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 13 01 00 [19:17:27]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 0E 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4C [19:17:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:17:27]wFMCommunicate OK [19:17:27]SAM_PROTO_GetShiftState done [19:17:27]FM_GetShiftState done [19:17:27]req_shift_opened done [19:17:27]requested_item shift.open_date is exist - process it [19:17:27]req_shift_open_date [19:17:27]req_shift_open_date done [19:17:27]produce_requested_data done [19:17:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202160,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:17:27]process_action_free close_receipt [19:17:27]json_value_free [19:17:27]json_value_free done [19:17:27]process_json_proto returns [19:17:27]Send response to host [19:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202160,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:17:27]free response buf [19:17:27]execute_script done [19:17:27]execute_script returns [19:17:27]free content buf [19:17:27]Sock 7.Close socket [19:17:27]Sock 7.Thread stoped [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:07]accept exits with 10 [19:21:07]New connection [19:21:07]New thread 3066613092 created [19:21:07]Thread 3066469732 joined [19:21:07]Waiting for new connection... [19:21:07] Sock 10.Parse request [19:21:07]Sock 10.Check first char [19:21:07]Sock 10.First char is OK [19:21:07]request: POST /json_proto HTTP/1.0 [19:21:07]Method: POST [19:21:07]URL: /json_proto [19:21:07]Method is POST - this is cgi request [19:21:07]url: /json_proto [19:21:07]query_string will be loaded in cgi processing [19:21:07]execute_cgi json_proto POST (null) [19:21:07]execute_cgi path=json_proto method=POST [19:21:07]POST find Content-Length [19:21:07]Host: 172.17.63.195:8080 [19:21:07]Content-Length: 682 [19:21:07]Content-Type: application/json [19:21:07] [19:21:07]POST finish read [19:21:07]Found Content-Length = 682 [19:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [19:21:07]execute_script... [19:21: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)449933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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" ] } } [19:21:07]POST & json_proto [19:21:07]process_json_proto [19:21:07]json parsed OK: [19:21:07]protocol is kg_v1.0 [19:21:07]action value=close_receipt [19:21:07]process_action close_receipt [19:21:07]cmd_close_receipt [19:21:07]MH_GetDate [19:21:07]Write to MH i2c: F0 00 00 CA 04 BD [19:21:07]Write i2c OK [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: F0 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: F0 09 00 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: F0 09 00 CA 04 00 A4 92 1E 67 47 1B 1E 67 68 [19:21:07]GetLastDocTimeStamp 1730056644 [19:21:07]current date 1730056868 [19:21:07]FM_GetShiftState [19:21:07]SAM_PROTO_GetShiftState [19:21:07]wFMCommunicate request_size=4 [19:21:07]MH_SAM_APDU [19:21:07]CAPDU: 80 13 01 00 [19:21:07]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [19:21:07]Write i2c OK [19:21:07]MH_I2C_Read... [19:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:08]Read from MH i2c: E2 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 0E 00 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4E [19:21:08]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:21:08]wFMCommunicate OK [19:21:08]SAM_PROTO_GetShiftState done [19:21:08]FM_GetShiftState done [19:21:08]opened in 1729987312 [19:21:08]opened+sec_in_day 1730073712 [19:21:08]quantity*price = 100021 [19:21:08]sum+1 = 100023 [19:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 453 27.10.2024 19:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202161 ФПД: 271234049697539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192108&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202161&fm=271234049697539&tin=02508201610067®Number=0000000000091777&sum=100000 [19:21:09]StoreToDocumentArchive [19:21:09]shift 544 fd 202161 [19:21:09]save to /storage/0544/doc_00202161 [19:21:09]save last doc name /storage/0544/doc_00202161 to /storage/kkm_last_doc_name [19:21:09]save OK [19:21:09]Clear old archive folders... [19:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:09]tlvbuf is 01417050 [19:21:09]SAM_PROTO_ClearQueue [19:21:09]wFMCommunicate request_size=4 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 09 00 00 [19:21:09]Write to MH i2c: E2 08 00 D8 04 80 09 00 00 00 00 00 00 4E [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [19:21:09]RAPDU: 90 00 [19:21:09]wFMCommunicate OK [19:21:09]SAM_PROTO_ClearQueue done [19:21:09]KKMCreateOFDPacket [19:21:09]OFDProtocolAddRootSTLVToBuf [19:21:09]FM_MakeSignedData [19:21:09]FM_MakeSignedData [19:21:09]SAM_PROTO_SignData [19:21:09]wFMCommunicate request_size=4 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 0D 01 02 [19:21:09]Write to MH i2c: E2 08 00 D9 04 80 0D 01 02 00 00 00 00 56 [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [19:21:09]RAPDU: 90 00 [19:21:09]wFMCommunicate OK [19:21:09]wFMCommunicate request_size=255 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 C5 01 00 00 F4 03 04 00 A4 92 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 15 03 00 35 04 06 00 F6 [19:21:09]Write to MH i2c: E2 02 01 DA 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 C5 01 00 00 F4 03 04 00 A4 92 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 15 03 00 35 04 06 00 F6 00 00 6A [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [19:21:09]RAPDU: 90 00 [19:21:09]wFMCommunicate OK [19:21:09]wFMCommunicate request_size=10 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 0D 02 02 05 AF 99 2E E7 03 [19:21:09]Write to MH i2c: E2 0D 00 DB 04 80 0D 02 02 05 00 AF 99 2E E7 03 00 00 C3 [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [19:21:09]RAPDU: 90 00 [19:21:09]wFMCommunicate OK [19:21:09]wFMCommunicate request_size=4 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 0D 03 02 [19:21:09]Write to MH i2c: E2 08 00 DC 04 80 0D 03 02 00 00 00 00 5B [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 0B 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 0B 00 DC 04 00 CF 43 16 C9 25 18 2F BD 90 00 76 [19:21:09]RAPDU: CF 43 16 C9 25 18 2F BD 90 00 [19:21:09]wFMCommunicate OK [19:21:09]SAM_PROTO_SignData done [19:21:09]FM_MakeSignedData done [19:21:09]CreateOFDProtocolMessage [19:21:09]wFMCommunicate request_size=4 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 11 00 00 [19:21:09]Write to MH i2c: E2 08 00 DD 04 80 11 00 00 00 00 00 00 5B [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 17 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 17 00 DD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B0 [19:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:21:09]wFMCommunicate OK [19:21:09]CreateOFDProtocolMessage done [19:21:09]OFDSenderStorePacket 202161 [19:21:09]StoreOFDPacket docnum=202161 [19:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC D2 07 01 EC AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 C5 01 00 00 F4 03 04 00 A4 92 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 15 03 00 35 04 06 00 F6 AF 99 2E E7 03 CF 43 16 C9 25 18 2F BD [19:21:09]CheckFolder [19:21:09]dirname=/storage/ofd_packets [19:21:09]CheckFolder done [19:21:09]ProducePacketName [19:21:09]name=ofd_packets/00202161 [19:21:09]NVStorageSaveData ofd_packets/00202161 [19:21:09]File name is /storage/ofd_packets/00202161 [19:21:09]Write 301 bytes [19:21:09]NVStorageSaveData done [19:21:09]OFDSenderStorePacket done [19:21:09]KKMCreateOFDPacket done [19:21:09]NVStorageSaveData kkm_last_timestamp [19:21:09]File name is /storage/kkm_last_timestamp [19:21:09]Write 4 bytes [19:21:09]NVStorageSaveData done [19:21:09]ExternCall_PrintAddStr [19:21:09]wPrintStart [19:21:09]Write to MH i2c: 01 00 00 DE 04 E2 [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: 01 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: 01 07 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: 01 07 00 DE 04 00 00 00 00 00 FF 0F F7 [19:21:09]RasterBufferAndPrint [19:21:09]line Счет N : (1)449933 [19:21:09]line ИНН: 02508201610067 [19:21:09]line Контрольно-Кассовый Чек [19:21:09]line ПРОДАЖА [19:21:09]line ТРК (МРК, ГНК) : 51 [19:21:09]line Товар: 2710124500 [19:21:09]line Аи-95-К-3 [19:21:09]line 13.480 * 74.20 [19:21:09]line = 1000.22 [19:21:09]line НДС 12% НСП 1% [19:21:09]line > о реализуемом товаре [19:21:09]line ОКРУГЛЕНИЕ: -0.22 [19:21:09]line ИТОГО: 1000.00 [19:21:09]line Внесено: 1000.00 [19:21:09]line СДАЧА: 0.00 [19:21:09]line НСП 1% : 8.85 [19:21:09]line НДС 12% : 106.22 [19:21:09]line Наличными: 1000.00 [19:21:09]line Безнал.: 0.00 [19:21:09]line Место: АЗС № 171 "Партнер Нефть" [19:21:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:21:09]line СНО: Общий режим [19:21:09]line Чек 453 27.10.2024 19:21 [19:21:09]line Смена: 544 ФФД: 1.0 [19:21:09]line ЗНМ: 0300000109 [19:21:09]line РНМ: 0000000000091777 [19:21:09]line Версия ККМ: 001 [19:21:09]line ФМ: 0000000000871756 [19:21:09]line ФД: 202161 [19:21:09]line ФПД: 271234049697539 [19:21:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192108&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202161&fm=271234049697539&tin=02508201610067®Number=0000000000091777&sum=100000 [19:21:10]OFD Sender: Processing packet 202161 [packets to send 114, broken 113] [19:21:10]ProducePacketName [19:21:10]name=ofd_packets/00202161 [19:21:10]OFD Sender: To server: pG, [19:21:10]CommunicateWithHost lk.salyk.kg:30040 [19:21:10]ConnectInit lk.salyk.kg [19:21:10]written 0, free lines is 4095 [19:21:10]Connected sock=9 [19:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC D2 07 01 EC AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 C5 01 00 00 F4 03 04 00 A4 92 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 15 03 00 35 04 06 00 F6 AF 99 2E E7 03 CF 43 16 C9 25 18 2F BD [19:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 00 18 47 00 A2 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 15 03 00 F4 03 04 00 5D 3E 1E 67 B6 04 01 00 00 70 D0 BB F7 D6 27 6E 13 [19:21:10]CommunicateWithHost err = 0 [19:21:10]CheckOFDResponse [19:21:10]1017 (14) - 77093643461234 [19:21:10]1041 (16) - 0000000000871756 [19:21:10]1040 (4) - 202161 [19:21:10]1012 (4) - 27.10.2024 13:21 [19:21:10]1206 (1) - 0 [19:21:10]OFD Sender: Remove packet 202161 [19:21:10]ProducePacketName [19:21:10]name=ofd_packets/00202161 [19:21:10]NVStorageDeleteData [19:21:10]Write to MH i2c: 01 00 00 09 05 0E [19:21:10]Write i2c OK [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: 01 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: 01 07 00 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 88 0C A9 [19:21:10]RasterBufferAndPrint [19:21:10]line [19:21:10]line [19:21:10]line [19:21:10]line [19:21:10]line [19:21:10]written 0, free lines is 3212 [19:21:10]MH_Cut [19:21:10]Write to MH i2c: D1 01 00 10 05 01 E7 [19:21:10]Write i2c OK [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: D1 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: D1 01 00 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: D1 01 00 10 05 00 E6 [19:21:10]Write to MH i2c: 01 00 00 11 05 16 [19:21:10]Write i2c OK [19:21:10]MH_I2C_Read... [19:21:10]OFD Sender: No OFD packet to send [19:21:11]*** Cut start [19:21:11]*** Purtial cut [19:21:11]*** Stage 1: CUTSNS_PIN = 1 [19:21:11]Read from MH i2c: 01 [19:21:11]MH_I2C_Read... [19:21:11]*** Stop cut motor [19:21:11]*** Cut end [19:21:11]Read from MH i2c: 01 07 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 FF 0F 2B [19:21:11]process_action close_receipt done [19:21:11]requested_data is exist [19:21:11]produce_requested_data [19:21:11]requested_item fm.sn is exist - process it [19:21:11]wFMCommunicate request_size=4 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 11 00 00 [19:21:11]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [19:21:11]Write i2c OK [19:21:11]MH_I2C_Read... [19:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:11]Read from MH i2c: E2 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 17 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E6 [19:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:21:11]wFMCommunicate OK [19:21:11]requested_item fd.num is exist - process it [19:21:11]SAM_PROTO_GetFieldsCounters [19:21:11]wFMCommunicate request_size=4 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 13 00 00 [19:21:11]Write to MH i2c: E2 08 00 13 05 80 13 00 00 00 00 00 00 94 [19:21:11]Write i2c OK [19:21:11]MH_I2C_Read... [19:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:11]Read from MH i2c: E2 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 62 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 62 00 13 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B1 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [19:21:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B1 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:11]wFMCommunicate OK [19:21:11]SAM_PROTO_GetFieldsCounters done [19:21:11]requested_item shift.num is exist - process it [19:21:11]requested_item shift.opened is exist - process it [19:21:11]req_shift_opened [19:21:11]FM_GetShiftState [19:21:11]SAM_PROTO_GetShiftState [19:21:11]wFMCommunicate request_size=4 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 13 01 00 [19:21:11]Write to MH i2c: E2 08 00 14 05 80 13 01 00 00 00 00 00 96 [19:21:11]Write i2c OK [19:21:11]MH_I2C_Read... [19:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:11]Read from MH i2c: E2 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 0E 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 0E 00 14 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 98 [19:21:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:21:11]wFMCommunicate OK [19:21:11]SAM_PROTO_GetShiftState done [19:21:11]FM_GetShiftState done [19:21:11]req_shift_opened done [19:21:11]requested_item shift.open_date is exist - process it [19:21:11]req_shift_open_date [19:21:11]req_shift_open_date done [19:21:11]produce_requested_data done [19:21:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202161,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:21:11]process_action_free close_receipt [19:21:11]json_value_free [19:21:11]json_value_free done [19:21:11]process_json_proto returns [19:21:11]Send response to host [19:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202161,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:21:11]free response buf [19:21:11]execute_script done [19:21:11]execute_script returns [19:21:11]free content buf [19:21:11]Sock 10.Close socket [19:21:11]Sock 10.Thread stoped [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:49]accept exits with 7 [19:24:49]New connection [19:24:49]New thread 3066469732 created [19:24:49]Thread 3066613092 joined [19:24:49]Waiting for new connection... [19:24:49] Sock 7.Parse request [19:24:49]Sock 7.Check first char [19:24:49]Sock 7.First char is OK [19:24:49]request: POST /json_proto HTTP/1.0 [19:24:49]Method: POST [19:24:49]URL: /json_proto [19:24:49]Method is POST - this is cgi request [19:24:49]url: /json_proto [19:24:49]query_string will be loaded in cgi processing [19:24:49]execute_cgi json_proto POST (null) [19:24:49]execute_cgi path=json_proto method=POST [19:24:49]POST find Content-Length [19:24:49]Host: 172.17.63.195:8080 [19:24:49]Content-Length: 682 [19:24:49]Content-Type: application/json [19:24:49] [19:24:49]POST finish read [19:24:49]Found Content-Length = 682 [19:24:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:49]execute_script... [19:24:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:49]POST & json_proto [19:24:49]process_json_proto [19:24:49]json parsed OK: [19:24:49]protocol is kg_v1.0 [19:24:49]action value=close_receipt [19:24:49]process_action close_receipt [19:24:49]cmd_close_receipt [19:24:49]MH_GetDate [19:24:49]Write to MH i2c: F0 00 00 15 05 09 [19:24:49]Write i2c OK [19:24:49]MH_I2C_Read... [19:24:49]Read from MH i2c: F0 [19:24:49]MH_I2C_Read... [19:24:49]Read from MH i2c: F0 09 00 [19:24:49]MH_I2C_Read... [19:24:49]Read from MH i2c: F0 09 00 15 05 00 82 93 1E 67 47 1B 1E 67 93 [19:24:49]GetLastDocTimeStamp 1730056868 [19:24:49]current date 1730057090 [19:24:49]FM_GetShiftState [19:24:49]SAM_PROTO_GetShiftState [19:24:49]wFMCommunicate request_size=4 [19:24:49]MH_SAM_APDU [19:24:49]CAPDU: 80 13 01 00 [19:24:49]Write to MH i2c: E2 08 00 16 05 80 13 01 00 00 00 00 00 98 [19:24:49]Write i2c OK [19:24:49]MH_I2C_Read... [19:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:49]Read from MH i2c: E2 [19:24:49]MH_I2C_Read... [19:24:49]Read from MH i2c: E2 0E 00 [19:24:49]MH_I2C_Read... [19:24:49]Read from MH i2c: E2 0E 00 16 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9A [19:24:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:24:49]wFMCommunicate OK [19:24:49]SAM_PROTO_GetShiftState done [19:24:49]FM_GetShiftState done [19:24:49]opened in 1729987312 [19:24:49]opened+sec_in_day 1730073712 [19:24:49]quantity*price = 250005 [19:24:49]sum+1 = 250006 [19:24:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 454 27.10.2024 19:24 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202162 ФПД: 55948165287850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192450&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202162&fm=55948165287850&tin=02508201610067®Number=0000000000091777&sum=250000 [19:24:51]StoreToDocumentArchive [19:24:51]shift 544 fd 202162 [19:24:51]save to /storage/0544/doc_00202162 [19:24:51]save last doc name /storage/0544/doc_00202162 to /storage/kkm_last_doc_name [19:24:51]save OK [19:24:51]Clear old archive folders... [19:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:51]tlvbuf is 0141DB40 [19:24:51]SAM_PROTO_ClearQueue [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 09 00 00 [19:24:51]Write to MH i2c: E2 08 00 23 05 80 09 00 00 00 00 00 00 9A [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:51]OFD Sender: No OFD packet to send [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [19:24:51]RAPDU: 90 00 [19:24:51]wFMCommunicate OK [19:24:51]SAM_PROTO_ClearQueue done [19:24:51]KKMCreateOFDPacket [19:24:51]OFDProtocolAddRootSTLVToBuf [19:24:51]FM_MakeSignedData [19:24:51]FM_MakeSignedData [19:24:51]SAM_PROTO_SignData [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 0D 01 02 [19:24:51]Write to MH i2c: E2 08 00 24 05 80 0D 01 02 00 00 00 00 A2 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [19:24:51]RAPDU: 90 00 [19:24:51]wFMCommunicate OK [19:24:51]wFMCommunicate request_size=255 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 82 93 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 15 03 00 35 04 06 00 32 [19:24:51]Write to MH i2c: E2 02 01 25 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 82 93 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 15 03 00 35 04 06 00 32 00 00 ED [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [19:24:51]RAPDU: 90 00 [19:24:51]wFMCommunicate OK [19:24:51]wFMCommunicate request_size=10 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 0D 02 02 05 E2 72 84 8F AA [19:24:51]Write to MH i2c: E2 0D 00 26 05 80 0D 02 02 05 00 E2 72 84 8F AA 00 00 C0 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [19:24:51]RAPDU: 90 00 [19:24:51]wFMCommunicate OK [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 0D 03 02 [19:24:51]Write to MH i2c: E2 08 00 27 05 80 0D 03 02 00 00 00 00 A7 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 0B 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 0B 00 27 05 00 36 5C EA 20 BD B9 7B 90 90 00 C5 [19:24:51]RAPDU: 36 5C EA 20 BD B9 7B 90 90 00 [19:24:51]wFMCommunicate OK [19:24:51]SAM_PROTO_SignData done [19:24:51]FM_MakeSignedData done [19:24:51]CreateOFDProtocolMessage [19:24:51]wFMCommunicate request_size=4 [19:24:51]MH_SAM_APDU [19:24:51]CAPDU: 80 11 00 00 [19:24:51]Write to MH i2c: E2 08 00 28 05 80 11 00 00 00 00 00 00 A7 [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:51]Read from MH i2c: E2 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 17 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: E2 17 00 28 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FC [19:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:24:51]wFMCommunicate OK [19:24:51]CreateOFDProtocolMessage done [19:24:51]OFDSenderStorePacket 202162 [19:24:51]StoreOFDPacket docnum=202162 [19:24:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 84 87 07 01 AF DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 82 93 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 15 03 00 35 04 06 00 32 E2 72 84 8F AA 36 5C EA 20 BD B9 7B 90 [19:24:51]CheckFolder [19:24:51]dirname=/storage/ofd_packets [19:24:51]CheckFolder done [19:24:51]ProducePacketName [19:24:51]name=ofd_packets/00202162 [19:24:51]NVStorageSaveData ofd_packets/00202162 [19:24:51]File name is /storage/ofd_packets/00202162 [19:24:51]Write 301 bytes [19:24:51]NVStorageSaveData done [19:24:51]OFDSenderStorePacket done [19:24:51]KKMCreateOFDPacket done [19:24:51]NVStorageSaveData kkm_last_timestamp [19:24:51]File name is /storage/kkm_last_timestamp [19:24:51]Write 4 bytes [19:24:51]NVStorageSaveData done [19:24:51]ExternCall_PrintAddStr [19:24:51]wPrintStart [19:24:51]Write to MH i2c: 01 00 00 29 05 2E [19:24:51]Write i2c OK [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 07 00 [19:24:51]MH_I2C_Read... [19:24:51]Read from MH i2c: 01 07 00 29 05 00 00 00 00 00 FF 0F 43 [19:24:51]RasterBufferAndPrint [19:24:51]line Счет N : (1)449935 [19:24:51]line ИНН: 02508201610067 [19:24:51]line Контрольно-Кассовый Чек [19:24:51]line ПРОДАЖА [19:24:51]line ТРК (МРК, ГНК) : 31 [19:24:51]line Товар: 2710124130 [19:24:51]line Аи-92-К-2 [19:24:51]line 37.370 * 66.90 [19:24:51]line = 2500.05 [19:24:51]line НДС 12% НСП 1% [19:24:51]line > о реализуемом товаре [19:24:51]line ОКРУГЛЕНИЕ: -0.05 [19:24:51]line ИТОГО: 2500.00 [19:24:51]line Внесено: 2500.00 [19:24:51]line СДАЧА: 0.00 [19:24:51]line НСП 1% : 22.12 [19:24:51]line НДС 12% : 265.49 [19:24:51]line Наличными: 2500.00 [19:24:51]line Безнал.: 0.00 [19:24:51]line Место: АЗС № 171 "Партнер Нефть" [19:24:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:24:51]line СНО: Общий режим [19:24:51]line Чек 454 27.10.2024 19:24 [19:24:51]line Смена: 544 ФФД: 1.0 [19:24:51]line ЗНМ: 0300000109 [19:24:51]line РНМ: 0000000000091777 [19:24:51]line Версия ККМ: 001 [19:24:51]line ФМ: 0000000000871756 [19:24:51]line ФД: 202162 [19:24:51]line ФПД: 55948165287850 [19:24:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192450&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202162&fm=55948165287850&tin=02508201610067®Number=0000000000091777&sum=250000 [19:24:51]OFD Sender: Processing packet 202162 [packets to send 114, broken 113] [19:24:51]ProducePacketName [19:24:51]name=ofd_packets/00202162 [19:24:51]OFD Sender: To server: pG, [19:24:51]CommunicateWithHost lk.salyk.kg:30040 [19:24:51]ConnectInit lk.salyk.kg [19:24:51]written 0, free lines is 4095 [19:24:52]Connected sock=10 [19:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 84 87 07 01 AF DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 82 93 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 15 03 00 35 04 06 00 32 E2 72 84 8F AA 36 5C EA 20 BD B9 7B 90 [19:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4E 36 47 00 14 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 15 03 00 F4 03 04 00 3B 3F 1E 67 B6 04 01 00 00 15 84 20 C6 34 E9 BB D3 [19:24:52]CommunicateWithHost err = 0 [19:24:52]CheckOFDResponse [19:24:52]1017 (14) - 77093643461234 [19:24:52]1041 (16) - 0000000000871756 [19:24:52]1040 (4) - 202162 [19:24:52]1012 (4) - 27.10.2024 13:25 [19:24:52]1206 (1) - 0 [19:24:52]OFD Sender: Remove packet 202162 [19:24:52]ProducePacketName [19:24:52]name=ofd_packets/00202162 [19:24:52]NVStorageDeleteData [19:24:52]Write to MH i2c: 01 00 00 54 05 59 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 07 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 8F 0C FB [19:24:52]RasterBufferAndPrint [19:24:52]line [19:24:52]line [19:24:52]line [19:24:52]line [19:24:52]line [19:24:52]written 0, free lines is 3219 [19:24:52]MH_Cut [19:24:52]Write to MH i2c: D1 01 00 5B 05 01 32 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: D1 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: D1 01 00 [19:24:52]MH_I2C_Read... [19:24:52]Read from MH i2c: D1 01 00 5B 05 00 31 [19:24:52]Write to MH i2c: 01 00 00 5C 05 61 [19:24:52]Write i2c OK [19:24:52]MH_I2C_Read... [19:24:52]OFD Sender: No OFD packet to send [19:24:53]*** Cut start [19:24:53]*** Purtial cut [19:24:53]*** Stage 1: CUTSNS_PIN = 1 [19:24:53]Read from MH i2c: 01 [19:24:53]MH_I2C_Read... [19:24:53]*** Stop cut motor [19:24:53]*** Cut end [19:24:53]Read from MH i2c: 01 07 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [19:24:53]process_action close_receipt done [19:24:53]requested_data is exist [19:24:53]produce_requested_data [19:24:53]requested_item fm.sn is exist - process it [19:24:53]wFMCommunicate request_size=4 [19:24:53]MH_SAM_APDU [19:24:53]CAPDU: 80 11 00 00 [19:24:53]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:53]Read from MH i2c: E2 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 17 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [19:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:24:53]wFMCommunicate OK [19:24:53]requested_item fd.num is exist - process it [19:24:53]SAM_PROTO_GetFieldsCounters [19:24:53]wFMCommunicate request_size=4 [19:24:53]MH_SAM_APDU [19:24:53]CAPDU: 80 13 00 00 [19:24:53]Write to MH i2c: E2 08 00 5E 05 80 13 00 00 00 00 00 00 DF [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:53]Read from MH i2c: E2 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 62 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 62 00 5E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B2 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [19:24:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B2 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:53]wFMCommunicate OK [19:24:53]SAM_PROTO_GetFieldsCounters done [19:24:53]requested_item shift.num is exist - process it [19:24:53]requested_item shift.opened is exist - process it [19:24:53]req_shift_opened [19:24:53]FM_GetShiftState [19:24:53]SAM_PROTO_GetShiftState [19:24:53]wFMCommunicate request_size=4 [19:24:53]MH_SAM_APDU [19:24:53]CAPDU: 80 13 01 00 [19:24:53]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:53]Read from MH i2c: E2 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 0E 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E3 [19:24:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:24:53]wFMCommunicate OK [19:24:53]SAM_PROTO_GetShiftState done [19:24:53]FM_GetShiftState done [19:24:53]req_shift_opened done [19:24:53]requested_item shift.open_date is exist - process it [19:24:53]req_shift_open_date [19:24:53]req_shift_open_date done [19:24:53]produce_requested_data done [19:24:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202162,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:24:53]process_action_free close_receipt [19:24:53]json_value_free [19:24:53]json_value_free done [19:24:53]process_json_proto returns [19:24:53]Send response to host [19:24:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202162,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:24:53]free response buf [19:24:53]execute_script done [19:24:53]execute_script returns [19:24:53]free content buf [19:24:53]Sock 7.Close socket [19:24:53]Sock 7.Thread stoped [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:56]accept exits with 9 [19:25:56]New connection [19:25:56]New thread 3066613092 created [19:25:56]Thread 3066469732 joined [19:25:56]Waiting for new connection... [19:25:56] Sock 9.Parse request [19:25:56]Sock 9.Check first char [19:25:56]Sock 9.First char is OK [19:25:56]request: POST /json_proto HTTP/1.0 [19:25:56]Method: POST [19:25:56]URL: /json_proto [19:25:56]Method is POST - this is cgi request [19:25:56]url: /json_proto [19:25:56]query_string will be loaded in cgi processing [19:25:56]execute_cgi json_proto POST (null) [19:25:56]execute_cgi path=json_proto method=POST [19:25:56]POST find Content-Length [19:25:56]Host: 172.17.63.195:8080 [19:25:56]Content-Length: 677 [19:25:56]Content-Type: application/json [19:25:56] [19:25:56]POST finish read [19:25:56]Found Content-Length = 677 [19:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:25:56]execute_script... [19:25:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:25:56]POST & json_proto [19:25:56]process_json_proto [19:25:56]json parsed OK: [19:25:56]protocol is kg_v1.0 [19:25:56]action value=close_receipt [19:25:56]process_action close_receipt [19:25:56]cmd_close_receipt [19:25:56]MH_GetDate [19:25:56]Write to MH i2c: F0 00 00 60 05 54 [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: F0 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: F0 09 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: F0 09 00 60 05 00 C5 93 1E 67 47 1B 1E 67 21 [19:25:56]GetLastDocTimeStamp 1730057090 [19:25:56]current date 1730057157 [19:25:56]FM_GetShiftState [19:25:56]SAM_PROTO_GetShiftState [19:25:56]wFMCommunicate request_size=4 [19:25:56]MH_SAM_APDU [19:25:56]CAPDU: 80 13 01 00 [19:25:56]Write to MH i2c: E2 08 00 61 05 80 13 01 00 00 00 00 00 E3 [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:56]Read from MH i2c: E2 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 0E 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 0E 00 61 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E5 [19:25:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:25:56]wFMCommunicate OK [19:25:56]SAM_PROTO_GetShiftState done [19:25:56]FM_GetShiftState done [19:25:56]opened in 1729987312 [19:25:56]opened+sec_in_day 1730073712 [19:25:56]quantity*price = 50041 [19:25:56]sum+1 = 50042 [19:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 455 27.10.2024 19:25 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202163 ФПД: 236604490739862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192557&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202163&fm=236604490739862&tin=02508201610067®Number=0000000000091777&sum=50000 [19:25:57]StoreToDocumentArchive [19:25:57]shift 544 fd 202163 [19:25:57]save to /storage/0544/doc_00202163 [19:25:57]save last doc name /storage/0544/doc_00202163 to /storage/kkm_last_doc_name [19:25:57]save OK [19:25:57]Clear old archive folders... [19:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:57]tlvbuf is 0141F480 [19:25:57]SAM_PROTO_ClearQueue [19:25:57]wFMCommunicate request_size=4 [19:25:57]MH_SAM_APDU [19:25:57]CAPDU: 80 09 00 00 [19:25:57]Write to MH i2c: E2 08 00 6E 05 80 09 00 00 00 00 00 00 E5 [19:25:57]Write i2c OK [19:25:57]MH_I2C_Read... [19:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:57]Read from MH i2c: E2 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: E2 03 00 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [19:25:57]RAPDU: 90 00 [19:25:57]wFMCommunicate OK [19:25:57]SAM_PROTO_ClearQueue done [19:25:57]KKMCreateOFDPacket [19:25:57]OFDProtocolAddRootSTLVToBuf [19:25:57]FM_MakeSignedData [19:25:57]FM_MakeSignedData [19:25:57]SAM_PROTO_SignData [19:25:57]wFMCommunicate request_size=4 [19:25:57]MH_SAM_APDU [19:25:57]CAPDU: 80 0D 01 02 [19:25:57]Write to MH i2c: E2 08 00 6F 05 80 0D 01 02 00 00 00 00 ED [19:25:57]Write i2c OK [19:25:57]MH_I2C_Read... [19:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:57]Read from MH i2c: E2 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: E2 03 00 [19:25:57]MH_I2C_Read... [19:25:57]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [19:25:57]RAPDU: 90 00 [19:25:57]wFMCommunicate OK [19:25:57]wFMCommunicate request_size=255 [19:25:57]MH_SAM_APDU [19:25:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C7 01 00 00 F4 03 04 00 C5 93 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 15 03 00 35 04 06 00 D7 [19:25:57]Write to MH i2c: E2 02 01 70 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C7 01 00 00 F4 03 04 00 C5 93 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 15 03 00 35 04 06 00 D7 00 00 EA [19:25:57]Write i2c OK [19:25:57]MH_I2C_Read... [19:25:57]OFD Sender: No OFD packet to send [19:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 03 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [19:25:58]RAPDU: 90 00 [19:25:58]wFMCommunicate OK [19:25:58]wFMCommunicate request_size=10 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 0D 02 02 05 30 C6 9F 70 96 [19:25:58]Write to MH i2c: E2 0D 00 71 05 80 0D 02 02 05 00 30 C6 9F 70 96 00 00 95 [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 03 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [19:25:58]RAPDU: 90 00 [19:25:58]wFMCommunicate OK [19:25:58]wFMCommunicate request_size=4 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 0D 03 02 [19:25:58]Write to MH i2c: E2 08 00 72 05 80 0D 03 02 00 00 00 00 F2 [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 0B 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 0B 00 72 05 00 7C ED DC EE 69 29 C8 D0 90 00 50 [19:25:58]RAPDU: 7C ED DC EE 69 29 C8 D0 90 00 [19:25:58]wFMCommunicate OK [19:25:58]SAM_PROTO_SignData done [19:25:58]FM_MakeSignedData done [19:25:58]CreateOFDProtocolMessage [19:25:58]wFMCommunicate request_size=4 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 11 00 00 [19:25:58]Write to MH i2c: E2 08 00 73 05 80 11 00 00 00 00 00 00 F2 [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 17 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 17 00 73 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 47 [19:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:25:58]wFMCommunicate OK [19:25:58]CreateOFDProtocolMessage done [19:25:58]OFDSenderStorePacket 202163 [19:25:58]StoreOFDPacket docnum=202163 [19:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 C5 07 01 1C 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C7 01 00 00 F4 03 04 00 C5 93 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 15 03 00 35 04 06 00 D7 30 C6 9F 70 96 7C ED DC EE 69 29 C8 D0 [19:25:58]CheckFolder [19:25:58]dirname=/storage/ofd_packets [19:25:58]CheckFolder done [19:25:58]ProducePacketName [19:25:58]name=ofd_packets/00202163 [19:25:58]NVStorageSaveData ofd_packets/00202163 [19:25:58]File name is /storage/ofd_packets/00202163 [19:25:58]Write 301 bytes [19:25:58]NVStorageSaveData done [19:25:58]OFDSenderStorePacket done [19:25:58]KKMCreateOFDPacket done [19:25:58]NVStorageSaveData kkm_last_timestamp [19:25:58]File name is /storage/kkm_last_timestamp [19:25:58]Write 4 bytes [19:25:58]NVStorageSaveData done [19:25:58]ExternCall_PrintAddStr [19:25:58]wPrintStart [19:25:58]Write to MH i2c: 01 00 00 74 05 79 [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: 01 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: 01 07 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 FF 0F 8E [19:25:58]RasterBufferAndPrint [19:25:58]line Счет N : (1)449936 [19:25:58]line ИНН: 02508201610067 [19:25:58]line Контрольно-Кассовый Чек [19:25:58]line ПРОДАЖА [19:25:58]line ТРК (МРК, ГНК) : 52 [19:25:58]line Товар: 2710124130 [19:25:58]line Аи-92-К-2 [19:25:58]line 7.480 * 66.90 [19:25:58]line = 500.41 [19:25:58]line НДС 12% НСП 1% [19:25:58]line > о реализуемом товаре [19:25:58]line ОКРУГЛЕНИЕ: -0.41 [19:25:58]line ИТОГО: 500.00 [19:25:58]line Внесено: 500.00 [19:25:58]line СДАЧА: 0.00 [19:25:58]line НСП 1% : 4.43 [19:25:58]line НДС 12% : 53.14 [19:25:58]line Наличными: 500.00 [19:25:58]line Безнал.: 0.00 [19:25:58]line Место: АЗС № 171 "Партнер Нефть" [19:25:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:25:58]line СНО: Общий режим [19:25:58]line Чек 455 27.10.2024 19:25 [19:25:58]line Смена: 544 ФФД: 1.0 [19:25:58]line ЗНМ: 0300000109 [19:25:58]line РНМ: 0000000000091777 [19:25:58]line Версия ККМ: 001 [19:25:58]line ФМ: 0000000000871756 [19:25:58]line ФД: 202163 [19:25:58]line ФПД: 236604490739862 [19:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192557&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202163&fm=236604490739862&tin=02508201610067®Number=0000000000091777&sum=50000 [19:25:58]OFD Sender: Processing packet 202163 [packets to send 114, broken 113] [19:25:58]ProducePacketName [19:25:58]name=ofd_packets/00202163 [19:25:58]OFD Sender: To server: pG, [19:25:58]CommunicateWithHost lk.salyk.kg:30040 [19:25:58]ConnectInit lk.salyk.kg [19:25:58]written 0, free lines is 4095 [19:25:58]Connected sock=10 [19:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 C5 07 01 1C 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C7 01 00 00 F4 03 04 00 C5 93 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 15 03 00 35 04 06 00 D7 30 C6 9F 70 96 7C ED DC EE 69 29 C8 D0 [19:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E9 F1 47 00 B4 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 15 03 00 F4 03 04 00 7E 3F 1E 67 B6 04 01 00 00 B4 3C 5F BC 55 4C 18 F8 [19:25:58]CommunicateWithHost err = 0 [19:25:58]CheckOFDResponse [19:25:58]1017 (14) - 77093643461234 [19:25:58]1041 (16) - 0000000000871756 [19:25:58]1040 (4) - 202163 [19:25:58]1012 (4) - 27.10.2024 13:26 [19:25:58]1206 (1) - 0 [19:25:58]OFD Sender: Remove packet 202163 [19:25:58]ProducePacketName [19:25:58]name=ofd_packets/00202163 [19:25:58]NVStorageDeleteData [19:25:58]Write to MH i2c: 01 00 00 9F 05 A4 [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: 01 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: 01 07 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: 01 07 00 9F 05 00 00 00 00 00 8A 0C 41 [19:25:58]RasterBufferAndPrint [19:25:58]line [19:25:58]line [19:25:58]line [19:25:58]line [19:25:58]line [19:25:58]written 0, free lines is 3213 [19:25:59]MH_Cut [19:25:59]Write to MH i2c: D1 01 00 A6 05 01 7D [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: D1 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: D1 01 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: D1 01 00 A6 05 00 7C [19:25:59]Write to MH i2c: 01 00 00 A7 05 AC [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]OFD Sender: No OFD packet to send [19:25:59]*** Cut start [19:25:59]*** Purtial cut [19:25:59]*** Stage 1: CUTSNS_PIN = 1 [19:26:00]Read from MH i2c: 01 [19:26:00]MH_I2C_Read... [19:26:00]*** Stop cut motor [19:26:00]*** Cut end [19:26:00]Read from MH i2c: 01 07 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: 01 07 00 A7 05 00 00 00 00 00 FF 0F C1 [19:26:00]process_action close_receipt done [19:26:00]requested_data is exist [19:26:00]produce_requested_data [19:26:00]requested_item fm.sn is exist - process it [19:26:00]wFMCommunicate request_size=4 [19:26:00]MH_SAM_APDU [19:26:00]CAPDU: 80 11 00 00 [19:26:00]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:00]Read from MH i2c: E2 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 17 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [19:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:26:00]wFMCommunicate OK [19:26:00]requested_item fd.num is exist - process it [19:26:00]SAM_PROTO_GetFieldsCounters [19:26:00]wFMCommunicate request_size=4 [19:26:00]MH_SAM_APDU [19:26:00]CAPDU: 80 13 00 00 [19:26:00]Write to MH i2c: E2 08 00 A9 05 80 13 00 00 00 00 00 00 2A [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:00]Read from MH i2c: E2 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 62 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 62 00 A9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B3 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [19:26:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B3 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:00]wFMCommunicate OK [19:26:00]SAM_PROTO_GetFieldsCounters done [19:26:00]requested_item shift.num is exist - process it [19:26:00]requested_item shift.opened is exist - process it [19:26:00]req_shift_opened [19:26:00]FM_GetShiftState [19:26:00]SAM_PROTO_GetShiftState [19:26:00]wFMCommunicate request_size=4 [19:26:00]MH_SAM_APDU [19:26:00]CAPDU: 80 13 01 00 [19:26:00]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:00]Read from MH i2c: E2 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 0E 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2E [19:26:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:26:00]wFMCommunicate OK [19:26:00]SAM_PROTO_GetShiftState done [19:26:00]FM_GetShiftState done [19:26:00]req_shift_opened done [19:26:00]requested_item shift.open_date is exist - process it [19:26:00]req_shift_open_date [19:26:00]req_shift_open_date done [19:26:00]produce_requested_data done [19:26:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202163,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:26:00]process_action_free close_receipt [19:26:00]json_value_free [19:26:00]json_value_free done [19:26:00]process_json_proto returns [19:26:00]Send response to host [19:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202163,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:26:00]free response buf [19:26:00]execute_script done [19:26:00]execute_script returns [19:26:00]free content buf [19:26:00]Sock 9.Close socket [19:26:00]Sock 9.Thread stoped [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:44]accept exits with 7 [19:29:44]New connection [19:29:44]New thread 3066469732 created [19:29:44]Thread 3066613092 joined [19:29:44]Waiting for new connection... [19:29:44] Sock 7.Parse request [19:29:44]Sock 7.Check first char [19:29:44]Sock 7.First char is OK [19:29:44]request: POST /json_proto HTTP/1.0 [19:29:44]Method: POST [19:29:44]URL: /json_proto [19:29:44]Method is POST - this is cgi request [19:29:44]url: /json_proto [19:29:44]query_string will be loaded in cgi processing [19:29:44]execute_cgi json_proto POST (null) [19:29:44]execute_cgi path=json_proto method=POST [19:29:44]POST find Content-Length [19:29:44]Host: 172.17.63.195:8080 [19:29:44]Content-Length: 679 [19:29:44]Content-Type: application/json [19:29:44] [19:29:44]POST finish read [19:29:44]Found Content-Length = 679 [19:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [19:29:44]execute_script... [19:29: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)449937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [19:29:44]POST & json_proto [19:29:44]process_json_proto [19:29:44]json parsed OK: [19:29:44]protocol is kg_v1.0 [19:29:44]action value=close_receipt [19:29:44]process_action close_receipt [19:29:44]cmd_close_receipt [19:29:44]MH_GetDate [19:29:44]Write to MH i2c: F0 00 00 AB 05 9F [19:29:44]Write i2c OK [19:29:44]MH_I2C_Read... [19:29:44]Read from MH i2c: F0 [19:29:44]MH_I2C_Read... [19:29:44]Read from MH i2c: F0 09 00 [19:29:44]MH_I2C_Read... [19:29:44]Read from MH i2c: F0 09 00 AB 05 00 A9 94 1E 67 47 1B 1E 67 51 [19:29:44]GetLastDocTimeStamp 1730057157 [19:29:44]current date 1730057385 [19:29:44]FM_GetShiftState [19:29:44]SAM_PROTO_GetShiftState [19:29:44]wFMCommunicate request_size=4 [19:29:44]MH_SAM_APDU [19:29:44]CAPDU: 80 13 01 00 [19:29:44]Write to MH i2c: E2 08 00 AC 05 80 13 01 00 00 00 00 00 2E [19:29:44]Write i2c OK [19:29:44]MH_I2C_Read... [19:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:44]Read from MH i2c: E2 [19:29:44]MH_I2C_Read... [19:29:44]Read from MH i2c: E2 0E 00 [19:29:44]MH_I2C_Read... [19:29:44]Read from MH i2c: E2 0E 00 AC 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 30 [19:29:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:29:44]wFMCommunicate OK [19:29:44]SAM_PROTO_GetShiftState done [19:29:44]FM_GetShiftState done [19:29:44]opened in 1729987312 [19:29:44]opened+sec_in_day 1730073712 [19:29:44]quantity*price = 100050 [19:29:44]sum+1 = 100052 [19:29:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 456 27.10.2024 19:29 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202164 ФПД: 190193087080318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192945&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202164&fm=190193087080318&tin=02508201610067®Number=0000000000091777&sum=100000 [19:29:46]StoreToDocumentArchive [19:29:46]shift 544 fd 202164 [19:29:46]save to /storage/0544/doc_00202164 [19:29:46]save last doc name /storage/0544/doc_00202164 to /storage/kkm_last_doc_name [19:29:46]save OK [19:29:46]Clear old archive folders... [19:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:29:46]tlvbuf is B6D55460 [19:29:46]SAM_PROTO_ClearQueue [19:29:46]wFMCommunicate request_size=4 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 09 00 00 [19:29:46]Write to MH i2c: E2 08 00 B9 05 80 09 00 00 00 00 00 00 30 [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:46]Read from MH i2c: E2 03 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [19:29:46]RAPDU: 90 00 [19:29:46]wFMCommunicate OK [19:29:46]SAM_PROTO_ClearQueue done [19:29:46]KKMCreateOFDPacket [19:29:46]OFDProtocolAddRootSTLVToBuf [19:29:46]FM_MakeSignedData [19:29:46]FM_MakeSignedData [19:29:46]SAM_PROTO_SignData [19:29:46]wFMCommunicate request_size=4 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 0D 01 02 [19:29:46]Write to MH i2c: E2 08 00 BA 05 80 0D 01 02 00 00 00 00 38 [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [19:29:46]RAPDU: 90 00 [19:29:46]wFMCommunicate OK [19:29:46]wFMCommunicate request_size=255 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 C8 01 00 00 F4 03 04 00 A9 94 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 15 03 00 35 04 06 00 AC FA C7 64 [19:29:46]Write to MH i2c: E2 02 01 BB 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 C8 01 00 00 F4 03 04 00 A9 94 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 15 03 00 35 04 06 00 AC FA C7 64 00 00 0C [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [19:29:46]RAPDU: 90 00 [19:29:46]wFMCommunicate OK [19:29:46]wFMCommunicate request_size=7 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 0D 02 02 02 E7 7E [19:29:46]Write to MH i2c: E2 0A 00 BC 05 80 0D 02 02 02 00 E7 7E 00 00 A4 [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [19:29:46]RAPDU: 90 00 [19:29:46]wFMCommunicate OK [19:29:46]wFMCommunicate request_size=4 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 0D 03 02 [19:29:46]Write to MH i2c: E2 08 00 BD 05 80 0D 03 02 00 00 00 00 3D [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 0B 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 0B 00 BD 05 00 75 D9 20 63 48 DC 2C 93 90 00 F2 [19:29:46]RAPDU: 75 D9 20 63 48 DC 2C 93 90 00 [19:29:46]wFMCommunicate OK [19:29:46]SAM_PROTO_SignData done [19:29:46]FM_MakeSignedData done [19:29:46]CreateOFDProtocolMessage [19:29:46]wFMCommunicate request_size=4 [19:29:46]MH_SAM_APDU [19:29:46]CAPDU: 80 11 00 00 [19:29:46]Write to MH i2c: E2 08 00 BE 05 80 11 00 00 00 00 00 00 3D [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:46]Read from MH i2c: E2 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 17 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: E2 17 00 BE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 92 [19:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:29:46]wFMCommunicate OK [19:29:46]CreateOFDProtocolMessage done [19:29:46]OFDSenderStorePacket 202164 [19:29:46]StoreOFDPacket docnum=202164 [19:29:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E7 7E 04 01 2E 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 C8 01 00 00 F4 03 04 00 A9 94 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 15 03 00 35 04 06 00 AC FA C7 64 E7 7E 75 D9 20 63 48 DC 2C 93 [19:29:46]CheckFolder [19:29:46]dirname=/storage/ofd_packets [19:29:46]CheckFolder done [19:29:46]ProducePacketName [19:29:46]name=ofd_packets/00202164 [19:29:46]NVStorageSaveData ofd_packets/00202164 [19:29:46]File name is /storage/ofd_packets/00202164 [19:29:46]Write 298 bytes [19:29:46]NVStorageSaveData done [19:29:46]OFDSenderStorePacket done [19:29:46]KKMCreateOFDPacket done [19:29:46]NVStorageSaveData kkm_last_timestamp [19:29:46]File name is /storage/kkm_last_timestamp [19:29:46]Write 4 bytes [19:29:46]NVStorageSaveData done [19:29:46]ExternCall_PrintAddStr [19:29:46]wPrintStart [19:29:46]Write to MH i2c: 01 00 00 BF 05 C4 [19:29:46]Write i2c OK [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: 01 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: 01 07 00 [19:29:46]MH_I2C_Read... [19:29:46]Read from MH i2c: 01 07 00 BF 05 00 00 00 00 00 FF 0F D9 [19:29:46]RasterBufferAndPrint [19:29:46]line Счет N : (1)449937 [19:29:46]line ИНН: 02508201610067 [19:29:46]line Контрольно-Кассовый Чек [19:29:46]line ПРОДАЖА [19:29:46]line ТРК (МРК, ГНК) : 11 [19:29:46]line Товар: 2710194210 [19:29:46]line ДТ-К-2 [19:29:46]line 13.130 * 76.20 [19:29:46]line = 1000.51 [19:29:46]line НДС 12% НСП 1% [19:29:46]line > о реализуемом товаре [19:29:46]line ОКРУГЛЕНИЕ: -0.51 [19:29:46]line ИТОГО: 1000.00 [19:29:46]line Внесено: 1000.00 [19:29:46]line СДАЧА: 0.00 [19:29:46]line НСП 1% : 8.85 [19:29:46]line НДС 12% : 106.25 [19:29:46]line Наличными: 1000.00 [19:29:46]line Безнал.: 0.00 [19:29:46]line Место: АЗС № 171 "Партнер Нефть" [19:29:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:29:46]line СНО: Общий режим [19:29:46]line Чек 456 27.10.2024 19:29 [19:29:46]line Смена: 544 ФФД: 1.0 [19:29:46]line ЗНМ: 0300000109 [19:29:46]line РНМ: 0000000000091777 [19:29:46]line Версия ККМ: 001 [19:29:46]line ФМ: 0000000000871756 [19:29:46]line ФД: 202164 [19:29:46]line ФПД: 190193087080318 [19:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192945&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202164&fm=190193087080318&tin=02508201610067®Number=0000000000091777&sum=100000 [19:29:46]OFD Sender: Processing packet 202164 [packets to send 114, broken 113] [19:29:46]ProducePacketName [19:29:46]name=ofd_packets/00202164 [19:29:46]OFD Sender: To server: pG, [19:29:46]CommunicateWithHost lk.salyk.kg:30040 [19:29:46]ConnectInit lk.salyk.kg [19:29:46]written 0, free lines is 4095 [19:29:47]Connected sock=10 [19:29:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E7 7E 04 01 2E 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 C8 01 00 00 F4 03 04 00 A9 94 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 15 03 00 35 04 06 00 AC FA C7 64 E7 7E 75 D9 20 63 48 DC 2C 93 [19:29:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B2 09 47 00 23 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 15 03 00 F4 03 04 00 62 40 1E 67 B6 04 01 00 00 C3 DF 4A 33 04 FE 95 BE [19:29:47]CommunicateWithHost err = 0 [19:29:47]CheckOFDResponse [19:29:47]1017 (14) - 77093643461234 [19:29:47]1041 (16) - 0000000000871756 [19:29:47]1040 (4) - 202164 [19:29:47]1012 (4) - 27.10.2024 13:30 [19:29:47]1206 (1) - 0 [19:29:47]OFD Sender: Remove packet 202164 [19:29:47]ProducePacketName [19:29:47]name=ofd_packets/00202164 [19:29:47]NVStorageDeleteData [19:29:47]Write to MH i2c: 01 00 00 EA 05 EF [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: 01 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: 01 07 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 8C 0C 8E [19:29:47]RasterBufferAndPrint [19:29:47]line [19:29:47]line [19:29:47]line [19:29:47]line [19:29:47]line [19:29:47]written 0, free lines is 3215 [19:29:47]MH_Cut [19:29:47]Write to MH i2c: D1 01 00 F1 05 01 C8 [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: D1 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: D1 01 00 [19:29:47]MH_I2C_Read... [19:29:47]Read from MH i2c: D1 01 00 F1 05 00 C7 [19:29:47]Write to MH i2c: 01 00 00 F2 05 F7 [19:29:47]Write i2c OK [19:29:47]MH_I2C_Read... [19:29:47]OFD Sender: No OFD packet to send [19:29:48]*** Cut start [19:29:48]*** Purtial cut [19:29:48]*** Stage 1: CUTSNS_PIN = 1 [19:29:48]Read from MH i2c: 01 [19:29:48]MH_I2C_Read... [19:29:48]*** Stop cut motor [19:29:48]*** Cut end [19:29:48]Read from MH i2c: 01 07 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [19:29:48]process_action close_receipt done [19:29:48]requested_data is exist [19:29:48]produce_requested_data [19:29:48]requested_item fm.sn is exist - process it [19:29:48]wFMCommunicate request_size=4 [19:29:48]MH_SAM_APDU [19:29:48]CAPDU: 80 11 00 00 [19:29:48]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:48]Read from MH i2c: E2 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: E2 17 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [19:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:29:48]wFMCommunicate OK [19:29:48]requested_item fd.num is exist - process it [19:29:48]SAM_PROTO_GetFieldsCounters [19:29:48]wFMCommunicate request_size=4 [19:29:48]MH_SAM_APDU [19:29:48]CAPDU: 80 13 00 00 [19:29:48]Write to MH i2c: E2 08 00 F4 05 80 13 00 00 00 00 00 00 75 [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:48]Read from MH i2c: E2 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: E2 62 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: E2 62 00 F4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B4 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:29:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B4 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:48]wFMCommunicate OK [19:29:48]SAM_PROTO_GetFieldsCounters done [19:29:48]requested_item shift.num is exist - process it [19:29:48]requested_item shift.opened is exist - process it [19:29:48]req_shift_opened [19:29:48]FM_GetShiftState [19:29:48]SAM_PROTO_GetShiftState [19:29:48]wFMCommunicate request_size=4 [19:29:48]MH_SAM_APDU [19:29:48]CAPDU: 80 13 01 00 [19:29:48]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [19:29:48]Write i2c OK [19:29:48]MH_I2C_Read... [19:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:48]Read from MH i2c: E2 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: E2 0E 00 [19:29:48]MH_I2C_Read... [19:29:48]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 79 [19:29:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:29:48]wFMCommunicate OK [19:29:48]SAM_PROTO_GetShiftState done [19:29:48]FM_GetShiftState done [19:29:48]req_shift_opened done [19:29:48]requested_item shift.open_date is exist - process it [19:29:48]req_shift_open_date [19:29:48]req_shift_open_date done [19:29:48]produce_requested_data done [19:29:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202164,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:29:48]process_action_free close_receipt [19:29:48]json_value_free [19:29:48]json_value_free done [19:29:48]process_json_proto returns [19:29:48]Send response to host [19:29:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202164,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:29:48]free response buf [19:29:48]execute_script done [19:29:48]execute_script returns [19:29:48]free content buf [19:29:48]Sock 7.Close socket [19:29:48]Sock 7.Thread stoped [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:51]accept exits with 9 [19:47:51]New connection [19:47:51]New thread 3066613092 created [19:47:51]Thread 3066469732 joined [19:47:51]Waiting for new connection... [19:47:51] Sock 9.Parse request [19:47:51]Sock 9.Check first char [19:47:51]Sock 9.First char is OK [19:47:51]request: POST /json_proto HTTP/1.0 [19:47:51]Method: POST [19:47:51]URL: /json_proto [19:47:51]Method is POST - this is cgi request [19:47:51]url: /json_proto [19:47:51]query_string will be loaded in cgi processing [19:47:51]execute_cgi json_proto POST (null) [19:47:51]execute_cgi path=json_proto method=POST [19:47:51]POST find Content-Length [19:47:51]Host: 172.17.63.195:8080 [19:47:51]Content-Length: 677 [19:47:51]Content-Type: application/json [19:47:51] [19:47:51]POST finish read [19:47:51]Found Content-Length = 677 [19:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:47:51]execute_script... [19:47:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:47:51]POST & json_proto [19:47:51]process_json_proto [19:47:51]json parsed OK: [19:47:51]protocol is kg_v1.0 [19:47:51]action value=close_receipt [19:47:51]process_action close_receipt [19:47:51]cmd_close_receipt [19:47:51]MH_GetDate [19:47:51]Write to MH i2c: F0 00 00 F6 05 EA [19:47:51]Write i2c OK [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: F0 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: F0 09 00 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: F0 09 00 F6 05 00 E8 98 1E 67 47 1B 1E 67 DF [19:47:51]GetLastDocTimeStamp 1730057385 [19:47:51]current date 1730058472 [19:47:51]FM_GetShiftState [19:47:51]SAM_PROTO_GetShiftState [19:47:51]wFMCommunicate request_size=4 [19:47:51]MH_SAM_APDU [19:47:51]CAPDU: 80 13 01 00 [19:47:51]Write to MH i2c: E2 08 00 F7 05 80 13 01 00 00 00 00 00 79 [19:47:51]Write i2c OK [19:47:51]MH_I2C_Read... [19:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:51]Read from MH i2c: E2 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: E2 0E 00 [19:47:51]MH_I2C_Read... [19:47:51]Read from MH i2c: E2 0E 00 F7 05 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7B [19:47:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:47:51]wFMCommunicate OK [19:47:51]SAM_PROTO_GetShiftState done [19:47:51]FM_GetShiftState done [19:47:51]opened in 1729987312 [19:47:51]opened+sec_in_day 1730073712 [19:47:51]quantity*price = 60009 [19:47:51]sum+1 = 60010 [19:47:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 457 27.10.2024 19:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202165 ФПД: 7638075798463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194752&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202165&fm=7638075798463&tin=02508201610067®Number=0000000000091777&sum=60000 [19:47:52]StoreToDocumentArchive [19:47:52]shift 544 fd 202165 [19:47:52]save to /storage/0544/doc_00202165 [19:47:52]save last doc name /storage/0544/doc_00202165 to /storage/kkm_last_doc_name [19:47:52]save OK [19:47:52]Clear old archive folders... [19:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:52]tlvbuf is 013A46A0 [19:47:52]SAM_PROTO_ClearQueue [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 09 00 00 [19:47:52]Write to MH i2c: E2 08 00 04 06 80 09 00 00 00 00 00 00 7C [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [19:47:52]RAPDU: 90 00 [19:47:52]wFMCommunicate OK [19:47:52]SAM_PROTO_ClearQueue done [19:47:52]KKMCreateOFDPacket [19:47:52]OFDProtocolAddRootSTLVToBuf [19:47:52]FM_MakeSignedData [19:47:52]FM_MakeSignedData [19:47:52]SAM_PROTO_SignData [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 0D 01 02 [19:47:52]Write to MH i2c: E2 08 00 05 06 80 0D 01 02 00 00 00 00 84 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [19:47:52]RAPDU: 90 00 [19:47:52]wFMCommunicate OK [19:47:52]wFMCommunicate request_size=255 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C9 01 00 00 F4 03 04 00 E8 98 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 15 03 00 35 04 06 00 06 [19:47:52]Write to MH i2c: E2 02 01 06 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C9 01 00 00 F4 03 04 00 E8 98 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 15 03 00 35 04 06 00 06 00 00 B9 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [19:47:52]RAPDU: 90 00 [19:47:52]wFMCommunicate OK [19:47:52]wFMCommunicate request_size=10 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 0D 02 02 05 F2 60 CB 73 BF [19:47:52]Write to MH i2c: E2 0D 00 07 06 80 0D 02 02 05 00 F2 60 CB 73 BF 00 00 E0 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:52]Read from MH i2c: E2 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 [19:47:52]MH_I2C_Read... [19:47:52]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [19:47:52]RAPDU: 90 00 [19:47:52]wFMCommunicate OK [19:47:52]wFMCommunicate request_size=4 [19:47:52]MH_SAM_APDU [19:47:52]CAPDU: 80 0D 03 02 [19:47:52]Write to MH i2c: E2 08 00 08 06 80 0D 03 02 00 00 00 00 89 [19:47:52]Write i2c OK [19:47:52]MH_I2C_Read... [19:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:53]Read from MH i2c: E2 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 0B 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 0B 00 08 06 00 2F A0 64 FD 76 95 9A A2 90 00 01 [19:47:53]RAPDU: 2F A0 64 FD 76 95 9A A2 90 00 [19:47:53]wFMCommunicate OK [19:47:53]SAM_PROTO_SignData done [19:47:53]FM_MakeSignedData done [19:47:53]CreateOFDProtocolMessage [19:47:53]wFMCommunicate request_size=4 [19:47:53]MH_SAM_APDU [19:47:53]CAPDU: 80 11 00 00 [19:47:53]Write to MH i2c: E2 08 00 09 06 80 11 00 00 00 00 00 00 89 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:53]Read from MH i2c: E2 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 17 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 17 00 09 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DE [19:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:47:53]wFMCommunicate OK [19:47:53]CreateOFDProtocolMessage done [19:47:53]OFDSenderStorePacket 202165 [19:47:53]StoreOFDPacket docnum=202165 [19:47:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6F 33 07 01 33 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C9 01 00 00 F4 03 04 00 E8 98 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 15 03 00 35 04 06 00 06 F2 60 CB 73 BF 2F A0 64 FD 76 95 9A A2 [19:47:53]CheckFolder [19:47:53]dirname=/storage/ofd_packets [19:47:53]CheckFolder done [19:47:53]ProducePacketName [19:47:53]name=ofd_packets/00202165 [19:47:53]NVStorageSaveData ofd_packets/00202165 [19:47:53]File name is /storage/ofd_packets/00202165 [19:47:53]Write 301 bytes [19:47:53]NVStorageSaveData done [19:47:53]OFDSenderStorePacket done [19:47:53]KKMCreateOFDPacket done [19:47:53]NVStorageSaveData kkm_last_timestamp [19:47:53]File name is /storage/kkm_last_timestamp [19:47:53]Write 4 bytes [19:47:53]NVStorageSaveData done [19:47:53]ExternCall_PrintAddStr [19:47:53]wPrintStart [19:47:53]Write to MH i2c: 01 00 00 0A 06 10 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 FF 0F 25 [19:47:53]RasterBufferAndPrint [19:47:53]line Счет N : (1)449940 [19:47:53]line ИНН: 02508201610067 [19:47:53]line Контрольно-Кассовый Чек [19:47:53]line ПРОДАЖА [19:47:53]line ТРК (МРК, ГНК) : 41 [19:47:53]line Товар: 2710124130 [19:47:53]line Аи-92-К-2 [19:47:53]line 8.970 * 66.90 [19:47:53]line = 600.09 [19:47:53]line НДС 12% НСП 1% [19:47:53]line > о реализуемом товаре [19:47:53]line ОКРУГЛЕНИЕ: -0.09 [19:47:53]line ИТОГО: 600.00 [19:47:53]line Внесено: 600.00 [19:47:53]line СДАЧА: 0.00 [19:47:53]line НСП 1% : 5.31 [19:47:53]line НДС 12% : 63.73 [19:47:53]line Наличными: 600.00 [19:47:53]line Безнал.: 0.00 [19:47:53]line Место: АЗС № 171 "Партнер Нефть" [19:47:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:47:53]line СНО: Общий режим [19:47:53]line Чек 457 27.10.2024 19:47 [19:47:53]line Смена: 544 ФФД: 1.0 [19:47:53]line ЗНМ: 0300000109 [19:47:53]line РНМ: 0000000000091777 [19:47:53]line Версия ККМ: 001 [19:47:53]line ФМ: 0000000000871756 [19:47:53]line ФД: 202165 [19:47:53]line ФПД: 7638075798463 [19:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194752&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202165&fm=7638075798463&tin=02508201610067®Number=0000000000091777&sum=60000 [19:47:53]OFD Sender: Processing packet 202165 [packets to send 114, broken 113] [19:47:53]ProducePacketName [19:47:53]name=ofd_packets/00202165 [19:47:53]OFD Sender: To server: pG, [19:47:53]CommunicateWithHost lk.salyk.kg:30040 [19:47:53]ConnectInit lk.salyk.kg [19:47:53]written 0, free lines is 4095 [19:47:53]Connected sock=10 [19:47:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6F 33 07 01 33 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C9 01 00 00 F4 03 04 00 E8 98 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 15 03 00 35 04 06 00 06 F2 60 CB 73 BF 2F A0 64 FD 76 95 9A A2 [19:47:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 51 62 47 00 2D A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 15 03 00 F4 03 04 00 A1 44 1E 67 B6 04 01 00 00 5C C9 BB 01 4E 0C 66 19 [19:47:53]CommunicateWithHost err = 0 [19:47:53]CheckOFDResponse [19:47:53]1017 (14) - 77093643461234 [19:47:53]1041 (16) - 0000000000871756 [19:47:53]1040 (4) - 202165 [19:47:53]1012 (4) - 27.10.2024 13:48 [19:47:53]1206 (1) - 0 [19:47:53]OFD Sender: Remove packet 202165 [19:47:53]ProducePacketName [19:47:53]name=ofd_packets/00202165 [19:47:53]NVStorageDeleteData [19:47:53]Write to MH i2c: 01 00 00 35 06 3B [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 90 0C DE [19:47:53]RasterBufferAndPrint [19:47:53]line [19:47:53]line [19:47:53]line [19:47:53]line [19:47:53]line [19:47:53]written 0, free lines is 3220 [19:47:53]MH_Cut [19:47:53]Write to MH i2c: D1 01 00 3C 06 01 14 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D1 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D1 01 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: D1 01 00 3C 06 00 13 [19:47:53]Write to MH i2c: 01 00 00 3D 06 43 [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:54]OFD Sender: No OFD packet to send [19:47:54]*** Cut start [19:47:54]*** Purtial cut [19:47:54]*** CUTSNS_PIN = 0 [19:47:54]*** Stage 1: CUTSNS_PIN = 1 [19:47:56]Read from MH i2c: 01 [19:47:56]MH_I2C_Read... [19:47:56]*** Stop cut motor [19:47:56]*** Cut end [19:47:56]Read from MH i2c: 01 07 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [19:47:56]process_action close_receipt done [19:47:56]requested_data is exist [19:47:56]produce_requested_data [19:47:56]requested_item fm.sn is exist - process it [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 11 00 00 [19:47:56]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:56]Read from MH i2c: E2 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 17 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 13 [19:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:47:56]wFMCommunicate OK [19:47:56]requested_item fd.num is exist - process it [19:47:56]SAM_PROTO_GetFieldsCounters [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 13 00 00 [19:47:56]Write to MH i2c: E2 08 00 3F 06 80 13 00 00 00 00 00 00 C1 [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:56]Read from MH i2c: E2 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 62 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 62 00 3F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B5 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [19:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B5 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:56]wFMCommunicate OK [19:47:56]SAM_PROTO_GetFieldsCounters done [19:47:56]requested_item shift.num is exist - process it [19:47:56]requested_item shift.opened is exist - process it [19:47:56]req_shift_opened [19:47:56]FM_GetShiftState [19:47:56]SAM_PROTO_GetShiftState [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 13 01 00 [19:47:56]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [19:47:56]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 0E 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C5 [19:47:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:47:57]wFMCommunicate OK [19:47:57]SAM_PROTO_GetShiftState done [19:47:57]FM_GetShiftState done [19:47:57]req_shift_opened done [19:47:57]requested_item shift.open_date is exist - process it [19:47:57]req_shift_open_date [19:47:57]req_shift_open_date done [19:47:57]produce_requested_data done [19:47:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202165,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:47:57]process_action_free close_receipt [19:47:57]json_value_free [19:47:57]json_value_free done [19:47:57]process_json_proto returns [19:47:57]Send response to host [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903 init start (LINUX_LIGHT) [00:00:11]*** Serial: 3139303353513838 54000000005725CF (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 32261+1730026311=1730058572 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30515 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 4C 99 1E 67 47 1B 1E 67 50 [19:49:32]Current date/time: 27.10.2024 19:49 [19:49:32]FM_Init [19:49:32]wFMConnect [19:49:32]MH_SAM_On [19:49:32]Write to MH i2c: E0 00 00 08 00 E7 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_init finished! [19:49:32]*** atr: [19:49:32]*** 0F 3B D5 18 FF 81 91 FE [19:49:32]*** 1F C3 80 73 C8 21 10 0A [19:49:32]*** 00 00 00 00 00 00 00 00 [19:49:32]*** 00 00 00 00 00 00 00 00 [19:49:32]*** 00 00 00 00 00 00 00 00 [19:49:32]*** 00 00 00 00 00 00 00 00 [19:49:32]*** 00 00 00 00 00 00 00 00 [19:49:32]*** 00 00 00 00 00 00 00 00 [19:49:32]Read from MH i2c: E0 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E0 10 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:49:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:49:32]wFMCommunicate request_size=10 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:49:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:49:32]RAPDU: 90 00 [19:49:32]wFMCommunicate OK [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 11 00 00 [19:49:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 17 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [19:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:49:32]wFMCommunicate OK [19:49:32]Detected FM SN is 0000000000871756 [19:49:32]Stored FM SN is 0000000000871756 [19:49:32]wFMCommunicate request_size=9 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 16 00 00 04 7E FB 00 00 [19:49:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 7E FB 00 00 00 00 0B [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:49:32]RAPDU: 90 00 [19:49:32]wFMCommunicate OK [19:49:32]FM PIN OK [19:49:32]wFMCommunicate request_size=8 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 14 04 00 03 02 00 01 [19:49:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:49:32]RAPDU: 90 00 [19:49:32]wFMCommunicate OK [19:49:32]wFMCommunicate request_size=13 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:49:32]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:49:32]RAPDU: 90 00 [19:49:32]wFMCommunicate OK [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 11 00 00 [19:49:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 17 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [19:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:49:32]wFMCommunicate OK [19:49:32]DocumentArchiveInit [19:49:32]Start Httpd... [19:49:32]Httpd thread 3067207012 created [19:49:32]Write to MH i2c: 01 00 00 0F 00 0F [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: 01 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: 01 07 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:49:32]Allocated Socket 6 [19:49:32]Bind OK [19:49:32]Listen OK [19:49:32]httpd running on port 8080 [19:49:32]Waiting for new connection... [19:49:32]MH Int Process started [19:49:32]OFD Sender: Processing packet 202166 [packets to send 114, broken 113] [19:49:32]ProducePacketName [19:49:32]name=ofd_packets/00202166 [19:49:32]OFD Sender: To server: pG, [19:49:32]CommunicateWithHost lk.salyk.kg:30040 [19:49:32]ConnectInit lk.salyk.kg [19:49:37]ConnectInit Can't take IP for lk.salyk.kg [19:49:37]CommunicateWithHost connect error [19:49:37]CommunicateWithHost err = -1 [19:49:37]OFD Sender: Server communicate error [19:49:38]accept exits with 7 [19:49:38]New connection [19:49:38]New thread 3066920292 created [19:49:38]Waiting for new connection... [19:49:38] Sock 7.Parse request [19:49:38]Sock 7.Check first char [19:49:38]Sock 7.First char is OK [19:49:38]request: POST /json_proto HTTP/1.0 [19:49:38]Method: POST [19:49:38]URL: /json_proto [19:49:38]Method is POST - this is cgi request [19:49:38]url: /json_proto [19:49:38]query_string will be loaded in cgi processing [19:49:38]execute_cgi json_proto POST (null) [19:49:38]execute_cgi path=json_proto method=POST [19:49:38]POST find Content-Length [19:49:38]Host: 172.17.63.195:8080 [19:49:38]Content-Length: 215 [19:49:38]Content-Type: application/json [19:49:38] [19:49:38]POST finish read [19:49:38]Found Content-Length = 215 [19:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:38]execute_script... [19:49:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:38]POST & json_proto [19:49:38]process_json_proto [19:49:38]json parsed OK: [19:49:38]protocol is kg_v1.0 [19:49:38]action value=get_value [19:49:38]process_action get_value [19:49:38]cmd_get_value [19:49:38]process_action get_value done [19:49:38]requested_data is exist [19:49:38]produce_requested_data [19:49:38]requested_item kkm.sn is exist - process it [19:49:38]requested_item kkm.ver is exist - process it [19:49:38]requested_item fm.sn is exist - process it [19:49:38]wFMCommunicate request_size=4 [19:49:38]MH_SAM_APDU [19:49:38]CAPDU: 80 11 00 00 [19:49:38]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:49:38]Write i2c OK [19:49:38]MH_I2C_Read... [19:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:38]Read from MH i2c: E2 [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: E2 17 00 [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [19:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:49:38]wFMCommunicate OK [19:49:38]requested_item fd.num is exist - process it [19:49:38]SAM_PROTO_GetFieldsCounters [19:49:38]wFMCommunicate request_size=4 [19:49:38]MH_SAM_APDU [19:49:38]CAPDU: 80 13 00 00 [19:49:38]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:49:38]Write i2c OK [19:49:38]MH_I2C_Read... [19:49:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:38]Read from MH i2c: E2 [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: E2 62 00 [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:49:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:38]wFMCommunicate OK [19:49:38]SAM_PROTO_GetFieldsCounters done [19:49:38]requested_item shift.num is exist - process it [19:49:38]requested_item shift.opened is exist - process it [19:49:38]req_shift_opened [19:49:38]FM_GetShiftState [19:49:38]SAM_PROTO_GetShiftState [19:49:38]wFMCommunicate request_size=4 [19:49:38]MH_SAM_APDU [19:49:38]CAPDU: 80 13 01 00 [19:49:38]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:49:38]Write i2c OK [19:49:38]MH_I2C_Read... [19:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:38]Read from MH i2c: E2 [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: E2 0E 00 [19:49:38]MH_I2C_Read... [19:49:38]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 91 [19:49:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:49:38]wFMCommunicate OK [19:49:38]SAM_PROTO_GetShiftState done [19:49:38]FM_GetShiftState done [19:49:38]req_shift_opened done [19:49:38]requested_item shift.open_date is exist - process it [19:49:38]req_shift_open_date [19:49:38]req_shift_open_date done [19:49:38]produce_requested_data done [19:49:38]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202166,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:49:38]process_action_free get_value [19:49:38]json_value_free [19:49:38]json_value_free done [19:49:38]process_json_proto returns [19:49:38]Send response to host [19:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202166,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:49:38]free response buf [19:49:38]execute_script done [19:49:38]execute_script returns [19:49:38]free content buf [19:49:38]Sock 7.Close socket [19:49:38]Sock 7.Thread stoped [19:49:38]accept exits with 5 [19:49:38]New connection [19:49:38]New thread 3066776932 created [19:49:38]Thread 3066920292 joined [19:49:38]Waiting for new connection... [19:49:38] Sock 5.Parse request [19:49:38]Sock 5.Check first char [19:49:38]Sock 5.First char is OK [19:49:38]request: POST /json_proto HTTP/1.0 [19:49:38]Method: POST [19:49:38]URL: /json_proto [19:49:38]Method is POST - this is cgi request [19:49:38]url: /json_proto [19:49:38]query_string will be loaded in cgi processing [19:49:38]execute_cgi json_proto POST (null) [19:49:38]execute_cgi path=json_proto method=POST [19:49:38]POST find Content-Length [19:49:38]Host: 172.17.63.195:8080 [19:49:38]Content-Length: 331 [19:49:38]Content-Type: application/json [19:49:38] [19:49:38]POST finish read [19:49:38]Found Content-Length = 331 [19:49:38]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:49:38]execute_script... [19:49:38]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:49:38]POST & json_proto [19:49:38]process_json_proto [19:49:38]json parsed OK: [19:49:38]protocol is kg_v1.0 [19:49:38]action value=get_value [19:49:38]process_action get_value [19:49:38]cmd_get_value [19:49:38]process_action get_value done [19:49:38]requested_data is exist [19:49:38]produce_requested_data [19:49:38]requested_item fm.sale.total is exist - process it [19:49:38]SAM_PROTO_GetFMData [19:49:38]wFMCommunicate request_size=4 [19:49:38]MH_SAM_APDU [19:49:38]CAPDU: 80 13 03 00 [19:49:38]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:49:39]Write i2c OK [19:49:39]MH_I2C_Read... [19:49:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:49:39]Read from MH i2c: E2 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: E2 FD 00 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 76 11 03 00 69 04 A3 00 6F 04 04 00 51 11 03 00 B1 04 05 00 69 9C 40 AF 03 70 04 05 00 88 A9 C1 4F 03 72 04 04 00 E1 F2 7E 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 67 62 34 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 09 86 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 5D [19:49:39]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 76 11 03 00 69 04 A3 00 6F 04 04 00 51 11 03 00 B1 04 05 00 69 9C 40 AF 03 70 04 05 00 88 A9 C1 4F 03 72 04 04 00 E1 F2 7E 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 67 62 34 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 09 86 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [19:49:39]wFMCommunicate OK [19:49:39]wFMCommunicate request_size=4 [19:49:39]MH_SAM_APDU [19:49:39]CAPDU: 80 17 00 00 [19:49:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:49:39]Write i2c OK [19:49:39]MH_I2C_Read... [19:49:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:49:39]Read from MH i2c: E2 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: E2 FD 00 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 9B [19:49:39]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [19:49:39]wFMCommunicate OK [19:49:39]wFMCommunicate request_size=4 [19:49:39]MH_SAM_APDU [19:49:39]CAPDU: 80 17 00 00 [19:49:39]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:49:39]Write i2c OK [19:49:39]MH_I2C_Read... [19:49:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:49:39]Read from MH i2c: E2 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: E2 FD 00 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [19:49:40]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [19:49:40]wFMCommunicate OK [19:49:40]wFMCommunicate request_size=4 [19:49:40]MH_SAM_APDU [19:49:40]CAPDU: 80 17 00 00 [19:49:40]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:49:40]Write i2c OK [19:49:40]MH_I2C_Read... [19:49:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:49:40]Read from MH i2c: E2 [19:49:40]MH_I2C_Read... [19:49:40]Read from MH i2c: E2 FD 00 [19:49:40]MH_I2C_Read... [19:49:40]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [19:49:40]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:49:40]wFMCommunicate OK [19:49:40]wFMCommunicate request_size=4 [19:49:40]MH_SAM_APDU [19:49:40]CAPDU: 80 17 00 00 [19:49:40]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:49:40]Write i2c OK [19:49:40]MH_I2C_Read... [19:49:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [19:49:40]Read from MH i2c: E2 [19:49:40]MH_I2C_Read... [19:49:40]Read from MH i2c: E2 E1 00 [19:49:40]MH_I2C_Read... [19:49:40]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [19:49:40]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:40]wFMCommunicate OK [19:49:40]SAM_PROTO_GetFMData done [19:49:40]requested_item fm.sale_refund.total is exist - process it [19:49:40]requested_item fm.buy.total is exist - process it [19:49:40]requested_item shift.sale.total is exist - process it [19:49:40]SAM_PROTO_GetShiftData [19:49:40]wFMCommunicate request_size=4 [19:49:40]MH_SAM_APDU [19:49:40]CAPDU: 80 13 02 00 [19:49:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:49:40]Write i2c OK [19:49:40]MH_I2C_Read... [19:49:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:49:40]Read from MH i2c: E2 [19:49:40]MH_I2C_Read... [19:49:40]Read from MH i2c: E2 FD 00 [19:49:40]MH_I2C_Read... [19:49:40]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 CA 01 00 00 69 04 9E 00 6F 04 04 00 CA 01 00 00 B1 04 04 00 7F CF 42 02 70 04 04 00 4C F8 C3 01 72 04 03 00 33 D7 7E 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 86 7C 3D 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 A0 1F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 28 [19:49:40]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 CA 01 00 00 69 04 9E 00 6F 04 04 00 CA 01 00 00 B1 04 04 00 7F CF 42 02 70 04 04 00 4C F8 C3 01 72 04 03 00 33 D7 7E 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 86 7C 3D 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 A0 1F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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:49:41]wFMCommunicate OK [19:49:41]wFMCommunicate request_size=4 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 17 00 00 [19:49:41]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 FD 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 FD 00 19 00 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 B2 [19:49:41]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [19:49:41]wFMCommunicate OK [19:49:41]wFMCommunicate request_size=4 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 17 00 00 [19:49:41]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 FD 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [19:49:41]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:49:41]wFMCommunicate OK [19:49:41]wFMCommunicate request_size=4 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 17 00 00 [19:49:41]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 FD 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [19:49:41]RAPDU: 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 90 00 [19:49:41]wFMCommunicate OK [19:49:41]wFMCommunicate request_size=4 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 17 00 00 [19:49:41]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [19:49:42]Read from MH i2c: E2 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: E2 CE 00 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [19:49:42]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:42]wFMCommunicate OK [19:49:42]SAM_PROTO_GetShiftData done [19:49:42]requested_item shift.sale.total_cash is exist - process it [19:49:42]requested_item shift.sale_refund.total is exist - process it [19:49:42]requested_item shift.sale_refund.total_cash is exist - process it [19:49:42]requested_item shift.buy.total is exist - process it [19:49:42]requested_item shift.buy.total_cash is exist - process it [19:49:42]produce_requested_data done [19:49:42]produce_requested_data return {"fm.sale.total":158251490.33,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":379329.27,"shift.sale.total_cash":296203.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:49:42]process_action_free get_value [19:49:42]json_value_free [19:49:42]json_value_free done [19:49:42]process_json_proto returns [19:49:42]Send response to host [19:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158251490.33,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":379329.27,"shift.sale.total_cash":296203.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:49:42]free response buf [19:49:42]execute_script done [19:49:42]execute_script returns [19:49:42]free content buf [19:49:42]Sock 5.Close socket [19:49:42]Sock 5.Thread stoped [19:49:42]accept exits with 7 [19:49:42]New connection [19:49:42]New thread 3066920292 created [19:49:42]Thread 3066776932 joined [19:49:42]Waiting for new connection... [19:49:42] Sock 7.Parse request [19:49:42]Sock 7.Check first char [19:49:42]Sock 7.First char is OK [19:49:42]request: POST /json_proto HTTP/1.0 [19:49:42]Method: POST [19:49:42]URL: /json_proto [19:49:42]Method is POST - this is cgi request [19:49:42]url: /json_proto [19:49:42]query_string will be loaded in cgi processing [19:49:42]execute_cgi json_proto POST (null) [19:49:42]execute_cgi path=json_proto method=POST [19:49:42]POST find Content-Length [19:49:42]Host: 172.17.63.195:8080 [19:49:42]Content-Length: 144 [19:49:42]Content-Type: application/json [19:49:42] [19:49:42]POST finish read [19:49:42]Found Content-Length = 144 [19:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [19:49:42]execute_script... [19:49:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [19:49:42]POST & json_proto [19:49:42]process_json_proto [19:49:42]json parsed OK: [19:49:42]protocol is kg_v1.0 [19:49:42]action value=print_doc [19:49:42]process_action print_doc [19:49:42]ExternCall_PrintAddStr [19:49:42]wPrintStart [19:49:42]Write to MH i2c: 01 00 00 1D 00 1D [19:49:42]Write i2c OK [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 07 00 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [19:49:42]RasterBufferAndPrint [19:49:42]line Счет N : (1)449938 [19:49:42]line ИНН: 02508201610067 [19:49:42]line Контрольно-Кассовый Чек [19:49:42]line ПРОДАЖА [19:49:42]line ТРК (МРК, ГНК) : 62 [19:49:42]line Товар: 2710124130 [19:49:42]line Аи-92-К-2 [19:49:42]line 22.430 * 66.90 [19:49:42]line = 1500.57 [19:49:42]line НДС 12% НСП 1% [19:49:42]line > о реализуемом товаре [19:49:42]line ОКРУГЛЕНИЕ: -0.57 [19:49:42]line ИТОГО: 1500.00 [19:49:42]line Внесено: 1500.00 [19:49:42]line СДАЧА: 0.00 [19:49:42]line НСП 1% : 13.28 [19:49:42]line НДС 12% : 159.35 [19:49:42]line Наличными: 1500.00 [19:49:42]line Безнал.: 0.00 [19:49:42]line Место: АЗС № 171 "Партнер Нефть" [19:49:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:49:42]line СНО: Общий режим [19:49:42]line Чек 458 27.10.2024 19:48 [19:49:42]line Смена: 544 ФФД: 1.0 [19:49:42]line ЗНМ: 0300000109 [19:49:42]line РНМ: 0000000000091777 [19:49:42]line Версия ККМ: 001 [19:49:42]line ФМ: 0000000000871756 [19:49:42]line ФД: 202166 [19:49:42]line ФПД: 78143292977438 [19:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194803&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202166&fm=78143292977438&tin=02508201610067®Number=0000000000091777&sum=150000 [19:49:42]written 0, free lines is 4095 [19:49:42]OFD Sender: Processing packet 202166 [packets to send 114, broken 113] [19:49:42]ProducePacketName [19:49:42]name=ofd_packets/00202166 [19:49:42]OFD Sender: To server: pG, [19:49:42]CommunicateWithHost lk.salyk.kg:30040 [19:49:42]ConnectInit lk.salyk.kg [19:49:42]Write to MH i2c: 01 00 00 48 00 48 [19:49:42]Write i2c OK [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 07 00 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 9B 0C F6 [19:49:42]RasterBufferAndPrint [19:49:42]line [19:49:42]line [19:49:42]line [19:49:42]line [19:49:42]line [19:49:42]written 0, free lines is 3238 [19:49:42]Connected sock=10 [19:49:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AD 4C 07 01 7B 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 01 00 00 F4 03 04 00 F3 98 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 15 03 00 35 04 06 00 47 12 27 38 31 1E E0 CD A3 1E 03 98 65 B4 [19:49:42]MH_Cut [19:49:42]Write to MH i2c: D1 01 00 4F 00 01 21 [19:49:42]Write i2c OK [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: D1 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: D1 01 00 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: D1 01 00 4F 00 00 20 [19:49:42]Write to MH i2c: 01 00 00 50 00 50 [19:49:42]Write i2c OK [19:49:42]MH_I2C_Read... [19:49:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B7 B1 47 00 D7 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 15 03 00 F4 03 04 00 0E 45 1E 67 B6 04 01 00 00 89 DC 21 40 1A 9E AC F5 [19:49:43]CommunicateWithHost err = 0 [19:49:43]CheckOFDResponse [19:49:43]1017 (14) - 77093643461234 [19:49:43]1041 (16) - 0000000000871756 [19:49:43]1040 (4) - 202166 [19:49:43]1012 (4) - 27.10.2024 13:50 [19:49:43]1206 (1) - 0 [19:49:43]OFD Sender: Remove packet 202166 [19:49:43]ProducePacketName [19:49:43]name=ofd_packets/00202166 [19:49:43]NVStorageDeleteData [19:49:43]OFD Sender: No OFD packet to send [19:49:43]*** Cut start [19:49:43]*** Purtial cut [19:49:43]*** Stage 1: CUTSNS_PIN = 1 [19:49:43]Read from MH i2c: 01 *** Stop cut motor [19:49:43] [19:49:43]*** Cut end [19:49:43]MH_I2C_Read... [19:49:43]Read from MH i2c: 01 07 00 [19:49:43]MH_I2C_Read... [19:49:43]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [19:49:43]process_action print_doc done [19:49:43]requested_data is exist [19:49:43]produce_requested_data [19:49:43]produce_requested_data return (null) [19:49:43]process_action_free print_doc [19:49:43]json_value_free [19:49:43]json_value_free done [19:49:43]process_json_proto returns [19:49:43]Send response to host [19:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [19:49:43]free response buf [19:49:43]execute_script done [19:49:43]execute_script returns [19:49:43]free content buf [19:49:43]Sock 7.Close socket [19:49:43]Sock 7.Thread stoped [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]accept exits with 5 [19:50:33]New connection [19:50:33]New thread 3066776932 created [19:50:33]Thread 3066920292 joined [19:50:33]Waiting for new connection... [19:50:33] Sock 5.Parse request [19:50:33]Sock 5.Check first char [19:50:33]Sock 5.First char is OK [19:50:33]request: POST /json_proto HTTP/1.0 [19:50:33]Method: POST [19:50:33]URL: /json_proto [19:50:33]Method is POST - this is cgi request [19:50:33]url: /json_proto [19:50:33]query_string will be loaded in cgi processing [19:50:33]execute_cgi json_proto POST (null) [19:50:33]execute_cgi path=json_proto method=POST [19:50:33]POST find Content-Length [19:50:33]Host: 172.17.63.195:8080 [19:50:33]Content-Length: 769 [19:50:33]Content-Type: application/json [19:50:33] [19:50:33]POST finish read [19:50:33]Found Content-Length = 769 [19:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:33]execute_script... [19:50: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)449941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:33]POST & json_proto [19:50:33]process_json_proto [19:50:33]json parsed OK: [19:50:33]protocol is kg_v1.0 [19:50:33]action value=close_receipt [19:50:33]process_action close_receipt [19:50:33]cmd_close_receipt [19:50:33]MH_GetDate [19:50:33]Write to MH i2c: F0 00 00 51 00 40 [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 09 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 09 00 51 00 00 8A 99 1E 67 47 1B 1E 67 D8 [19:50:33]GetLastDocTimeStamp 1730058483 [19:50:33]current date 1730058634 [19:50:33]FM_GetShiftState [19:50:33]SAM_PROTO_GetShiftState [19:50:33]wFMCommunicate request_size=4 [19:50:33]MH_SAM_APDU [19:50:33]CAPDU: 80 13 01 00 [19:50:33]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 [19:50:33]MH_I2C_Read... [19:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:33]Read from MH i2c: E2 0E 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D1 [19:50:33]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:50:33]wFMCommunicate OK [19:50:33]SAM_PROTO_GetShiftState done [19:50:33]FM_GetShiftState done [19:50:33]opened in 1729987312 [19:50:33]opened+sec_in_day 1730073712 [19:50:33]quantity*price = 120018 [19:50:33]sum+1 = 120020 [19:50:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.19 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.19 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 459 27.10.2024 19:50 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202167 ФПД: 89592396431036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195034&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202167&fm=89592396431036&tin=02508201610067®Number=0000000000091777&sum=120019 [19:50:34]StoreToDocumentArchive [19:50:34]shift 544 fd 202167 [19:50:34]save to /storage/0544/doc_00202167 [19:50:34]save last doc name /storage/0544/doc_00202167 to /storage/kkm_last_doc_name [19:50:34]save OK [19:50:34]Clear old archive folders... [19:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:34]tlvbuf is 015F13F0 [19:50:34]SAM_PROTO_ClearQueue [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 09 00 00 [19:50:34]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [19:50:34]RAPDU: 90 00 [19:50:34]wFMCommunicate OK [19:50:34]SAM_PROTO_ClearQueue done [19:50:34]KKMCreateOFDPacket [19:50:34]OFDProtocolAddRootSTLVToBuf [19:50:34]FM_MakeSignedData [19:50:34]FM_MakeSignedData [19:50:34]SAM_PROTO_SignData [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 0D 01 02 [19:50:34]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [19:50:34]RAPDU: 90 00 [19:50:34]wFMCommunicate OK [19:50:34]wFMCommunicate request_size=255 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 8A 99 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 15 03 00 35 04 06 00 51 [19:50:34]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 8A 99 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 15 03 00 35 04 06 00 51 00 00 50 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [19:50:35]RAPDU: 90 00 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=10 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 0D 02 02 05 7B DA F6 BE BC [19:50:35]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 7B DA F6 BE BC 00 00 AB [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [19:50:35]RAPDU: 90 00 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 0D 03 02 [19:50:35]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0B 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0B 00 63 00 00 41 11 55 89 1A 07 ED 55 90 00 72 [19:50:35]RAPDU: 41 11 55 89 1A 07 ED 55 90 00 [19:50:35]wFMCommunicate OK [19:50:35]SAM_PROTO_SignData done [19:50:35]FM_MakeSignedData done [19:50:35]CreateOFDProtocolMessage [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 11 00 00 [19:50:35]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 17 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 33 [19:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:50:35]wFMCommunicate OK [19:50:35]CreateOFDProtocolMessage done [19:50:35]OFDSenderStorePacket 202167 [19:50:35]StoreOFDPacket docnum=202167 [19:50:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A3 7B 07 01 0A D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 8A 99 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 15 03 00 35 04 06 00 51 7B DA F6 BE BC 41 11 55 89 1A 07 ED 55 [19:50:35]CheckFolder [19:50:35]dirname=/storage/ofd_packets [19:50:35]CheckFolder done [19:50:35]ProducePacketName [19:50:35]name=ofd_packets/00202167 [19:50:35]NVStorageSaveData ofd_packets/00202167 [19:50:35]File name is /storage/ofd_packets/00202167 [19:50:35]Write 301 bytes [19:50:35]NVStorageSaveData done [19:50:35]OFDSenderStorePacket done [19:50:35]KKMCreateOFDPacket done [19:50:35]NVStorageSaveData kkm_last_timestamp [19:50:35]File name is /storage/kkm_last_timestamp [19:50:35]Write 4 bytes [19:50:35]NVStorageSaveData done [19:50:35]ExternCall_PrintAddStr [19:50:35]wPrintStart [19:50:35]Write to MH i2c: 01 00 00 65 00 65 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [19:50:35]RasterBufferAndPrint [19:50:35]line Счет N : (1)449941 [19:50:35]line ИНН: 02508201610067 [19:50:35]line Контрольно-Кассовый Чек [19:50:35]line ПРОДАЖА [19:50:35]line ТРК (МРК, ГНК) : 41 [19:50:35]line Товар: 2710124130 [19:50:35]line Аи-92-К-2 [19:50:35]line 17.940 * 66.90 [19:50:35]line = 1200.19 [19:50:35]line НДС 12% НСП 1% [19:50:35]line > о реализуемом товаре [19:50:35]line ИТОГО: 1200.19 [19:50:35]line НСП 1% : 10.62 [19:50:35]line НДС 12% : 127.45 [19:50:35]line Наличными: 0.00 [19:50:35]line Безнал.: 1200.19 [19:50:35]line Место: АЗС № 171 "Партнер Нефть" [19:50:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:50:35]line СНО: Общий режим [19:50:35]line Чек 459 27.10.2024 19:50 [19:50:35]line Смена: 544 ФФД: 1.0 [19:50:35]line ЗНМ: 0300000109 [19:50:35]line РНМ: 0000000000091777 [19:50:35]line Версия ККМ: 001 [19:50:35]line Платежная система: Mbank [19:50:35]line ФМ: 0000000000871756 [19:50:35]line ФД: 202167 [19:50:35]line ФПД: 89592396431036 [19:50:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195034&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202167&fm=89592396431036&tin=02508201610067®Number=0000000000091777&sum=120019 [19:50:35]OFD Sender: Processing packet 202167 [packets to send 114, broken 113] [19:50:35]ProducePacketName [19:50:35]name=ofd_packets/00202167 [19:50:35]OFD Sender: To server: pG, [19:50:35]CommunicateWithHost lk.salyk.kg:30040 [19:50:35]ConnectInit lk.salyk.kg [19:50:35]written 0, free lines is 4095 [19:50:35]Connected sock=10 [19:50:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A3 7B 07 01 0A D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 8A 99 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 15 03 00 35 04 06 00 51 7B DA F6 BE BC 41 11 55 89 1A 07 ED 55 [19:50:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8A 6E 47 00 65 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 15 03 00 F4 03 04 00 43 45 1E 67 B6 04 01 00 00 7F B2 6F BB F8 4A D1 3C [19:50:35]CommunicateWithHost err = 0 [19:50:35]CheckOFDResponse [19:50:35]1017 (14) - 77093643461234 [19:50:35]1041 (16) - 0000000000871756 [19:50:35]1040 (4) - 202167 [19:50:35]1012 (4) - 27.10.2024 13:50 [19:50:35]1206 (1) - 0 [19:50:35]OFD Sender: Remove packet 202167 [19:50:35]ProducePacketName [19:50:35]name=ofd_packets/00202167 [19:50:35]NVStorageDeleteData [19:50:35]Write to MH i2c: 01 00 00 8E 00 8E [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 CA 0C 6B [19:50:35]RasterBufferAndPrint [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]written 0, free lines is 3278 [19:50:35]MH_Cut [19:50:35]Write to MH i2c: D1 01 00 95 00 01 67 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 01 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 01 00 95 00 00 66 [19:50:35]Write to MH i2c: 01 00 00 96 00 96 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:36]OFD Sender: No OFD packet to send [19:50:36]*** Cut start [19:50:36]*** Purtial cut [19:50:36]*** Stage 1: CUTSNS_PIN = 1 [19:50:37]Read from MH i2c: 01 [19:50:37]MH_I2C_Read... [19:50:37]*** Stop cut motor [19:50:37]*** Cut end [19:50:37]Read from MH i2c: 01 07 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [19:50:37]process_action close_receipt done [19:50:37]requested_data is exist [19:50:37]produce_requested_data [19:50:37]requested_item fm.sn is exist - process it [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 11 00 00 [19:50:37]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 17 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [19:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:50:37]wFMCommunicate OK [19:50:37]requested_item fd.num is exist - process it [19:50:37]SAM_PROTO_GetFieldsCounters [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 13 00 00 [19:50:37]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 62 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [19:50:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:37]wFMCommunicate OK [19:50:37]SAM_PROTO_GetFieldsCounters done [19:50:37]requested_item shift.num is exist - process it [19:50:37]requested_item shift.opened is exist - process it [19:50:37]req_shift_opened [19:50:37]FM_GetShiftState [19:50:37]SAM_PROTO_GetShiftState [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 13 01 00 [19:50:37]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 0E 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 18 [19:50:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:50:37]wFMCommunicate OK [19:50:37]SAM_PROTO_GetShiftState done [19:50:37]FM_GetShiftState done [19:50:37]req_shift_opened done [19:50:37]requested_item shift.open_date is exist - process it [19:50:37]req_shift_open_date [19:50:37]req_shift_open_date done [19:50:37]produce_requested_data done [19:50:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202167,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:50:37]process_action_free close_receipt [19:50:37]json_value_free [19:50:37]json_value_free done [19:50:37]process_json_proto returns [19:50:37]Send response to host [19:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202167,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:50:37]free response buf [19:50:37]execute_script done [19:50:37]execute_script returns [19:50:37]free content buf [19:50:37]Sock 5.Close socket [19:50:37]Sock 5.Thread stoped [19:50:38]int [19:50:38]Write to MH i2c: 01 00 00 9A 00 9A [19:50:38]*** FLAG_PRN_KEY set [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 9A 00 00 08 00 00 00 FF 0F B7 [19:50:38]state=0 [19:50:38]Key pressed [19:50:38]Feed [19:50:38]Write to MH i2c: D8 00 00 9B 00 72 [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: D8 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: D8 01 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: D8 01 00 9B 00 00 73 [19:50:38]int [19:50:38]Write to MH i2c: 01 00 00 9C 00 9C [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 9C 00 00 48 00 00 00 3C 00 27 [19:50:38]state=2 [19:50:38]Key pressed [19:50:39]int [19:50:39]Write to MH i2c: 01 00 00 9D 00 9D [19:50:39]*** FLAG_PRN_KEY reset [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 9D 00 00 00 00 00 00 F9 0F AC [19:50:39]state=2 [19:50:39]Stop feed [19:50:39]int [19:50:39]Write to MH i2c: 01 00 00 9E 00 9E [19:50:39]*** FLAG_PRN_KEY set [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 9E 00 00 08 00 00 00 FF 0F BB [19:50:39]state=0 [19:50:39]Key pressed [19:50:39]Feed [19:50:39]Write to MH i2c: D8 00 00 9F 00 76 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: D8 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: D8 01 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: D8 01 00 9F 00 00 77 [19:50:39]int [19:50:39]Write to MH i2c: 01 00 00 A0 00 A0 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 A0 00 00 48 00 00 00 3C 00 2B [19:50:39]state=2 [19:50:39]Key pressed [19:50:39]int [19:50:39]Write to MH i2c: 01 00 00 A1 00 A1 [19:50:39]*** FLAG_PRN_KEY reset [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 F6 0F AD [19:50:39]state=2 [19:50:39]Stop feed [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:21]accept exits with 9 [19:51:21]New connection [19:51:21]New thread 3066920292 created [19:51:21]Thread 3066776932 joined [19:51:21]Waiting for new connection... [19:51:21] Sock 9.Parse request [19:51:21]Sock 9.Check first char [19:51:21]Sock 9.First char is OK [19:51:21]request: POST /json_proto HTTP/1.0 [19:51:21]Method: POST [19:51:21]URL: /json_proto [19:51:21]Method is POST - this is cgi request [19:51:21]url: /json_proto [19:51:21]query_string will be loaded in cgi processing [19:51:21]execute_cgi json_proto POST (null) [19:51:21]execute_cgi path=json_proto method=POST [19:51:21]POST find Content-Length [19:51:21]Host: 172.17.63.195:8080 [19:51:21]Content-Length: 791 [19:51:21]Content-Type: application/json [19:51:21] [19:51:21]POST finish read [19:51:21]Found Content-Length = 791 [19:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 15.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\u000A0", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:21]execute_script... [19:51: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)449942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 15.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\u000A0", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:21]POST & json_proto [19:51:21]process_json_proto [19:51:21]json parsed OK: [19:51:21]protocol is kg_v1.0 [19:51:21]action value=close_receipt [19:51:21]process_action close_receipt [19:51:21]cmd_close_receipt [19:51:21]MH_GetDate [19:51:21]Write to MH i2c: F0 00 00 A2 00 91 [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: F0 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: F0 09 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: F0 09 00 A2 00 00 BA 99 1E 67 47 1B 1E 67 59 [19:51:21]GetLastDocTimeStamp 1730058634 [19:51:21]current date 1730058682 [19:51:21]FM_GetShiftState [19:51:21]SAM_PROTO_GetShiftState [19:51:21]wFMCommunicate request_size=4 [19:51:21]MH_SAM_APDU [19:51:21]CAPDU: 80 13 01 00 [19:51:21]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:21]Read from MH i2c: E2 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 0E 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 22 [19:51:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:51:21]wFMCommunicate OK [19:51:21]SAM_PROTO_GetShiftState done [19:51:21]FM_GetShiftState done [19:51:21]opened in 1729987312 [19:51:21]opened+sec_in_day 1730073712 [19:51:21]quantity*price = 0 [19:51:21]sum+1 = 1 [19:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 460 27.10.2024 19:51 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Талоны: Топливные Талоны 0 ФМ: 0000000000871756 ФД: 202168 ФПД: 129636840691927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195122&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202168&fm=129636840691927&tin=02508201610067®Number=0000000000091777&sum=0 [19:51:22]StoreToDocumentArchive [19:51:22]shift 544 fd 202168 [19:51:22]save to /storage/0544/doc_00202168 [19:51:22]save last doc name /storage/0544/doc_00202168 to /storage/kkm_last_doc_name [19:51:22]save OK [19:51:22]Clear old archive folders... [19:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:51:22]tlvbuf is 015EDB10 [19:51:22]SAM_PROTO_ClearQueue [19:51:22]wFMCommunicate request_size=4 [19:51:22]MH_SAM_APDU [19:51:22]CAPDU: 80 09 00 00 [19:51:22]Write to MH i2c: E2 08 00 B0 00 80 09 00 00 00 00 00 00 22 [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:22]Read from MH i2c: E2 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 03 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [19:51:22]RAPDU: 90 00 [19:51:22]wFMCommunicate OK [19:51:22]SAM_PROTO_ClearQueue done [19:51:22]KKMCreateOFDPacket [19:51:22]OFDProtocolAddRootSTLVToBuf [19:51:22]FM_MakeSignedData [19:51:22]FM_MakeSignedData [19:51:22]SAM_PROTO_SignData [19:51:22]wFMCommunicate request_size=4 [19:51:22]MH_SAM_APDU [19:51:22]CAPDU: 80 0D 01 02 [19:51:22]Write to MH i2c: E2 08 00 B1 00 80 0D 01 02 00 00 00 00 2A [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:22]Read from MH i2c: E2 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 03 00 [19:51:22]MH_I2C_Read... [19:51:22]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [19:51:22]RAPDU: 90 00 [19:51:22]wFMCommunicate OK [19:51:22]wFMCommunicate request_size=255 [19:51:22]MH_SAM_APDU [19:51: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 32 FF 03 08 00 03 98 3A 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 CC 01 00 00 F4 03 04 00 BA 99 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 15 03 00 35 04 06 00 75 E7 6D D6 [19:51:22]Write to MH i2c: E2 02 01 B2 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 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 CC 01 00 00 F4 03 04 00 BA 99 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 15 03 00 35 04 06 00 75 E7 6D D6 00 00 94 [19:51:22]Write i2c OK [19:51:22]MH_I2C_Read... [19:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:23]Read from MH i2c: E2 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 03 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [19:51:23]RAPDU: 90 00 [19:51:23]wFMCommunicate OK [19:51:23]wFMCommunicate request_size=7 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 0D 02 02 02 D8 D7 [19:51:23]Write to MH i2c: E2 0A 00 B3 00 80 0D 02 02 02 00 D8 D7 00 00 E0 [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:23]Read from MH i2c: E2 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 03 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [19:51:23]RAPDU: 90 00 [19:51:23]wFMCommunicate OK [19:51:23]wFMCommunicate request_size=4 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 0D 03 02 [19:51:23]Write to MH i2c: E2 08 00 B4 00 80 0D 03 02 00 00 00 00 2F [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:23]Read from MH i2c: E2 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 0B 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 0B 00 B4 00 00 80 DD 1C A6 59 3D B4 A9 90 00 42 [19:51:23]RAPDU: 80 DD 1C A6 59 3D B4 A9 90 00 [19:51:23]wFMCommunicate OK [19:51:23]SAM_PROTO_SignData done [19:51:23]FM_MakeSignedData done [19:51:23]CreateOFDProtocolMessage [19:51:23]wFMCommunicate request_size=4 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 11 00 00 [19:51:23]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:23]Read from MH i2c: E2 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 17 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [19:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:51:23]wFMCommunicate OK [19:51:23]CreateOFDProtocolMessage done [19:51:23]OFDSenderStorePacket 202168 [19:51:23]StoreOFDPacket docnum=202168 [19:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 86 9D 04 01 79 67 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 32 FF 03 08 00 03 98 3A 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 CC 01 00 00 F4 03 04 00 BA 99 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 15 03 00 35 04 06 00 75 E7 6D D6 D8 D7 80 DD 1C A6 59 3D B4 A9 [19:51:23]CheckFolder [19:51:23]dirname=/storage/ofd_packets [19:51:23]CheckFolder done [19:51:23]ProducePacketName [19:51:23]name=ofd_packets/00202168 [19:51:23]NVStorageSaveData ofd_packets/00202168 [19:51:23]File name is /storage/ofd_packets/00202168 [19:51:23]Write 298 bytes [19:51:23]NVStorageSaveData done [19:51:23]OFDSenderStorePacket done [19:51:23]KKMCreateOFDPacket done [19:51:23]NVStorageSaveData kkm_last_timestamp [19:51:23]File name is /storage/kkm_last_timestamp [19:51:23]Write 4 bytes [19:51:23]NVStorageSaveData done [19:51:23]ExternCall_PrintAddStr [19:51:23]wPrintStart [19:51:23]Write to MH i2c: 01 00 00 B6 00 B6 [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: 01 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: 01 07 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [19:51:23]RasterBufferAndPrint [19:51:23]line Счет N : (1)449942 [19:51:23]line ИНН: 02508201610067 [19:51:23]line Контрольно-Кассовый Чек [19:51:23]line ПРОДАЖА [19:51:23]line ТРК (МРК, ГНК) : 33 [19:51:23]line Товар: 2710194210 [19:51:23]line ДТ-К-2 [19:51:23]line 15.000 * 0.00 [19:51:23]line = 0.00 [19:51:23]line НДС 12% НСП 1% [19:51:23]line > о реализуемом товаре [19:51:23]line ИТОГО: 0.00 [19:51:23]line НСП 1% : 0.00 [19:51:23]line НДС 12% : 0.00 [19:51:23]line Наличными: 0.00 [19:51:23]line Безнал.: 0.00 [19:51:23]line Место: АЗС № 171 "Партнер Нефть" [19:51:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:51:23]line СНО: Общий режим [19:51:23]line Чек 460 27.10.2024 19:51 [19:51:23]line Смена: 544 ФФД: 1.0 [19:51:23]line ЗНМ: 0300000109 [19:51:23]line РНМ: 0000000000091777 [19:51:23]line Версия ККМ: 001 [19:51:23]line Талоны: Топливные Талоны [19:51:23]line 0 [19:51:23]line ФМ: 0000000000871756 [19:51:23]line ФД: 202168 [19:51:23]line ФПД: 129636840691927 [19:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195122&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202168&fm=129636840691927&tin=02508201610067®Number=0000000000091777&sum=0 [19:51:23]OFD Sender: Processing packet 202168 [packets to send 114, broken 113] [19:51:23]ProducePacketName [19:51:23]name=ofd_packets/00202168 [19:51:23]OFD Sender: To server: pG, [19:51:23]CommunicateWithHost lk.salyk.kg:30040 [19:51:23]ConnectInit lk.salyk.kg [19:51:23]written 0, free lines is 4095 [19:51:23]Connected sock=10 [19:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 86 9D 04 01 79 67 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 32 FF 03 08 00 03 98 3A 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 CC 01 00 00 F4 03 04 00 BA 99 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 15 03 00 35 04 06 00 75 E7 6D D6 D8 D7 80 DD 1C A6 59 3D B4 A9 [19:51:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DE A0 47 00 26 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 15 03 00 F4 03 04 00 73 45 1E 67 B6 04 01 00 00 45 7D 14 F4 C5 64 74 88 [19:51:23]CommunicateWithHost err = 0 [19:51:23]CheckOFDResponse [19:51:23]1017 (14) - 77093643461234 [19:51:23]1041 (16) - 0000000000871756 [19:51:23]1040 (4) - 202168 [19:51:23]1012 (4) - 27.10.2024 13:51 [19:51:23]1206 (1) - 0 [19:51:23]OFD Sender: Remove packet 202168 [19:51:23]ProducePacketName [19:51:23]name=ofd_packets/00202168 [19:51:23]NVStorageDeleteData [19:51:24]Write to MH i2c: 01 00 00 E0 00 E0 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 07 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 B1 0C A4 [19:51:24]RasterBufferAndPrint [19:51:24]line [19:51:24]line [19:51:24]line [19:51:24]line [19:51:24]line [19:51:24]written 0, free lines is 3253 [19:51:24]MH_Cut [19:51:24]Write to MH i2c: D1 01 00 E7 00 01 B9 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: D1 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: D1 01 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: D1 01 00 E7 00 00 B8 [19:51:24]Write to MH i2c: 01 00 00 E8 00 E8 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]OFD Sender: No OFD packet to send [19:51:24]*** Cut start [19:51:24]*** Purtial cut [19:51:24]*** Stage 1: CUTSNS_PIN = 1 [19:51:25]Read from MH i2c: 01 [19:51:25]MH_I2C_Read... [19:51:25]*** Stop cut motor [19:51:25]*** Cut end [19:51:25]Read from MH i2c: 01 07 00 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: 01 07 00 E8 00 00 00 00 00 00 FF 0F FD [19:51:25]process_action close_receipt done [19:51:25]requested_data is exist [19:51:25]produce_requested_data [19:51:25]requested_item fm.sn is exist - process it [19:51:25]wFMCommunicate request_size=4 [19:51:25]MH_SAM_APDU [19:51:25]CAPDU: 80 11 00 00 [19:51:25]Write to MH i2c: E2 08 00 E9 00 80 11 00 00 00 00 00 00 63 [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:25]Read from MH i2c: E2 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: E2 17 00 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: E2 17 00 E9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [19:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:51:25]wFMCommunicate OK [19:51:25]requested_item fd.num is exist - process it [19:51:25]SAM_PROTO_GetFieldsCounters [19:51:25]wFMCommunicate request_size=4 [19:51:25]MH_SAM_APDU [19:51:25]CAPDU: 80 13 00 00 [19:51:25]Write to MH i2c: E2 08 00 EA 00 80 13 00 00 00 00 00 00 66 [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:25]Read from MH i2c: E2 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: E2 62 00 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: E2 62 00 EA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B8 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B8 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:25]wFMCommunicate OK [19:51:25]SAM_PROTO_GetFieldsCounters done [19:51:25]requested_item shift.num is exist - process it [19:51:25]requested_item shift.opened is exist - process it [19:51:25]req_shift_opened [19:51:25]FM_GetShiftState [19:51:25]SAM_PROTO_GetShiftState [19:51:25]wFMCommunicate request_size=4 [19:51:25]MH_SAM_APDU [19:51:25]CAPDU: 80 13 01 00 [19:51:25]Write to MH i2c: E2 08 00 EB 00 80 13 01 00 00 00 00 00 68 [19:51:25]Write i2c OK [19:51:25]MH_I2C_Read... [19:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:25]Read from MH i2c: E2 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: E2 0E 00 [19:51:25]MH_I2C_Read... [19:51:25]Read from MH i2c: E2 0E 00 EB 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6A [19:51:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:51:25]wFMCommunicate OK [19:51:25]SAM_PROTO_GetShiftState done [19:51:25]FM_GetShiftState done [19:51:25]req_shift_opened done [19:51:25]requested_item shift.open_date is exist - process it [19:51:25]req_shift_open_date [19:51:25]req_shift_open_date done [19:51:25]produce_requested_data done [19:51:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202168,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:51:25]process_action_free close_receipt [19:51:25]json_value_free [19:51:25]json_value_free done [19:51:25]process_json_proto returns [19:51:25]Send response to host [19:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202168,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:51:25]free response buf [19:51:25]execute_script done [19:51:25]execute_script returns [19:51:25]free content buf [19:51:25]Sock 9.Close socket [19:51:25]Sock 9.Thread stoped [19:51:26]int [19:51:26]Write to MH i2c: 01 00 00 EC 00 EC [19:51:26]*** FLAG_PRN_KEY set [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 07 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 07 00 EC 00 00 08 00 00 00 FF 0F 09 [19:51:26]state=0 [19:51:26]Key pressed [19:51:26]Feed [19:51:26]Write to MH i2c: D8 00 00 ED 00 C4 [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: D8 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: D8 01 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: D8 01 00 ED 00 00 C5 [19:51:26]int [19:51:26]Write to MH i2c: 01 00 00 EE 00 EE [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 07 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 07 00 EE 00 00 48 00 00 00 3C 00 79 [19:51:26]state=2 [19:51:26]Key pressed [19:51:26]int [19:51:26]Write to MH i2c: 01 00 00 EF 00 EF [19:51:26]*** FLAG_PRN_KEY reset [19:51:26]Write i2c OK [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 07 00 [19:51:26]MH_I2C_Read... [19:51:26]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 FA 0F FF [19:51:26]state=2 [19:51:26]Stop feed [19:51:27]int [19:51:27]Write to MH i2c: 01 00 00 F0 00 F0 [19:51:27]*** FLAG_PRN_KEY set [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 F0 00 00 08 00 00 00 FF 0F 0D [19:51:27]state=0 [19:51:27]Key pressed [19:51:27]Feed [19:51:27]Write to MH i2c: D8 00 00 F1 00 C8 [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 01 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 01 00 F1 00 00 C9 [19:51:27]int [19:51:27]Write to MH i2c: 01 00 00 F2 00 F2 [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 F2 00 00 48 00 00 00 3C 00 7D [19:51:27]state=2 [19:51:27]Key pressed [19:51:27]int [19:51:27]Write to MH i2c: 01 00 00 F3 00 F3 [19:51:27]*** FLAG_PRN_KEY reset [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 F6 0F FF [19:51:27]state=2 [19:51:27]Stop feed [19:51:27]int [19:51:27]Write to MH i2c: 01 00 00 F4 00 F4 [19:51:27]*** FLAG_PRN_KEY set [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 F4 00 00 08 00 00 00 FF 0F 11 [19:51:27]state=0 [19:51:27]Key pressed [19:51:27]Feed [19:51:27]Write to MH i2c: D8 00 00 F5 00 CC [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 01 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 01 00 F5 00 00 CD [19:51:27]int [19:51:27]Write to MH i2c: 01 00 00 F6 00 F6 [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 F6 00 00 48 00 00 00 3C 00 81 [19:51:27]state=2 [19:51:27]Key pressed [19:51:27]int [19:51:27]Write to MH i2c: 01 00 00 F7 00 F7 [19:51:27]*** FLAG_PRN_KEY reset [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 F7 0F 04 [19:51:27]state=2 [19:51:27]Stop feed [19:51:27]int [19:51:27]Write to MH i2c: 01 00 00 F8 00 F8 [19:51:27]*** FLAG_PRN_KEY set [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: 01 07 00 F8 00 00 08 00 00 00 FF 0F 15 [19:51:27]state=0 [19:51:27]Key pressed [19:51:27]Feed [19:51:27]Write to MH i2c: D8 00 00 F9 00 D0 [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 01 00 [19:51:27]MH_I2C_Read... [19:51:27]Read from MH i2c: D8 01 00 F9 00 00 D1 [19:51:27]int [19:51:27]Write to MH i2c: 01 00 00 FA 00 FA [19:51:27]Write i2c OK [19:51:27]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 FA 00 00 48 00 00 00 3C 00 85 [19:51:28]state=2 [19:51:28]Key pressed [19:51:28]int [19:51:28]Write to MH i2c: 01 00 00 FB 00 FB [19:51:28]Write i2c OK [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 FB 00 00 08 00 00 00 F5 0F 0E [19:51:28]state=2 [19:51:28]Key pressed [19:51:28]int line is 0 - check status [19:51:28]Write to MH i2c: 01 00 00 FC 00 FC [19:51:28]*** FLAG_PRN_KEY reset [19:51:28]*** FLAG_PRN_KEY set [19:51:28]Write i2c OK [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 [19:51:28]MH_I2C_Read... [19:51:28]*** FLAG_PRN_KEY reset [19:51:28]Read from MH i2c: 01 07 00 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 F9 0F 0B [19:51:28]state=2 [19:51:28]Stop feed [19:51:28]int [19:51:28]Write to MH i2c: 01 00 00 FD 00 FD [19:51:28]Write i2c OK [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 [19:51:28]MH_I2C_Read... [19:51:28]Read from MH i2c: 01 07 00 FD 00 00 00 00 00 00 FF 0F 12 [19:51:28]state=0 [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:53]accept exits with 7 [19:54:53]New connection [19:54:53]New thread 3066776932 created [19:54:53]Thread 3066920292 joined [19:54:53]Waiting for new connection... [19:54:53] Sock 7.Parse request [19:54:53]Sock 7.Check first char [19:54:53]Sock 7.First char is OK [19:54:53]request: POST /json_proto HTTP/1.0 [19:54:53]Method: POST [19:54:53]URL: /json_proto [19:54:53]Method is POST - this is cgi request [19:54:53]url: /json_proto [19:54:53]query_string will be loaded in cgi processing [19:54:53]execute_cgi json_proto POST (null) [19:54:53]execute_cgi path=json_proto method=POST [19:54:53]POST find Content-Length [19:54:53]Host: 172.17.63.195:8080 [19:54:53]Content-Length: 677 [19:54:53]Content-Type: application/json [19:54:53] [19:54:53]POST finish read [19:54:53]Found Content-Length = 677 [19:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:53]execute_script... [19:54:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:53]POST & json_proto [19:54:53]process_json_proto [19:54:53]json parsed OK: [19:54:53]protocol is kg_v1.0 [19:54:53]action value=close_receipt [19:54:53]process_action close_receipt [19:54:53]cmd_close_receipt [19:54:53]MH_GetDate [19:54:53]Write to MH i2c: F0 00 00 FE 00 ED [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: F0 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: F0 09 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: F0 09 00 FE 00 00 8D 9A 1E 67 47 1B 1E 67 89 [19:54:53]GetLastDocTimeStamp 1730058682 [19:54:53]current date 1730058893 [19:54:53]FM_GetShiftState [19:54:53]SAM_PROTO_GetShiftState [19:54:53]wFMCommunicate request_size=4 [19:54:53]MH_SAM_APDU [19:54:53]CAPDU: 80 13 01 00 [19:54:53]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:53]Read from MH i2c: E2 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 0E 00 [19:54:53]MH_I2C_Read... [19:54:53]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7E [19:54:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:54:53]wFMCommunicate OK [19:54:53]SAM_PROTO_GetShiftState done [19:54:53]FM_GetShiftState done [19:54:53]opened in 1729987312 [19:54:53]opened+sec_in_day 1730073712 [19:54:53]quantity*price = 40006 [19:54:53]sum+1 = 40007 [19:54:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 461 27.10.2024 19:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202169 ФПД: 68103938071446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195453&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202169&fm=68103938071446&tin=02508201610067®Number=0000000000091777&sum=40000 [19:54:54]StoreToDocumentArchive [19:54:54]shift 544 fd 202169 [19:54:54]save to /storage/0544/doc_00202169 [19:54:54]save last doc name /storage/0544/doc_00202169 to /storage/kkm_last_doc_name [19:54:54]save OK [19:54:54]Clear old archive folders... [19:54:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:54]tlvbuf is 015E4DB0 [19:54:54]SAM_PROTO_ClearQueue [19:54:54]wFMCommunicate request_size=4 [19:54:54]MH_SAM_APDU [19:54:54]CAPDU: 80 09 00 00 [19:54:54]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:54]Read from MH i2c: E2 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 03 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:54:54]RAPDU: 90 00 [19:54:54]wFMCommunicate OK [19:54:54]SAM_PROTO_ClearQueue done [19:54:54]KKMCreateOFDPacket [19:54:54]OFDProtocolAddRootSTLVToBuf [19:54:54]FM_MakeSignedData [19:54:54]FM_MakeSignedData [19:54:54]SAM_PROTO_SignData [19:54:54]wFMCommunicate request_size=4 [19:54:54]MH_SAM_APDU [19:54:54]CAPDU: 80 0D 01 02 [19:54:54]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:54]Read from MH i2c: E2 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 03 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [19:54:54]RAPDU: 90 00 [19:54:54]wFMCommunicate OK [19:54:54]wFMCommunicate request_size=255 [19:54:54]MH_SAM_APDU [19:54:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 8D 9A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 15 03 00 35 04 06 00 3D [19:54:54]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 8D 9A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 15 03 00 35 04 06 00 3D 00 00 94 [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:54]Read from MH i2c: E2 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 03 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [19:54:54]RAPDU: 90 00 [19:54:54]wFMCommunicate OK [19:54:54]wFMCommunicate request_size=10 [19:54:54]MH_SAM_APDU [19:54:54]CAPDU: 80 0D 02 02 05 F0 AF 09 5B 96 [19:54:54]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 F0 AF 09 5B 96 00 00 2D [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:54]Read from MH i2c: E2 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 03 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [19:54:54]RAPDU: 90 00 [19:54:54]wFMCommunicate OK [19:54:54]wFMCommunicate request_size=4 [19:54:54]MH_SAM_APDU [19:54:54]CAPDU: 80 0D 03 02 [19:54:54]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:54]Read from MH i2c: E2 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 0B 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 0B 00 10 01 00 15 9A AF 39 D6 E4 E5 0A 90 00 CD [19:54:54]RAPDU: 15 9A AF 39 D6 E4 E5 0A 90 00 [19:54:54]wFMCommunicate OK [19:54:54]SAM_PROTO_SignData done [19:54:54]FM_MakeSignedData done [19:54:54]CreateOFDProtocolMessage [19:54:54]wFMCommunicate request_size=4 [19:54:54]MH_SAM_APDU [19:54:54]CAPDU: 80 11 00 00 [19:54:54]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]OFD Sender: No OFD packet to send [19:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:54]Read from MH i2c: E2 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 17 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [19:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:54:54]wFMCommunicate OK [19:54:54]CreateOFDProtocolMessage done [19:54:54]OFDSenderStorePacket 202169 [19:54:54]StoreOFDPacket docnum=202169 [19:54:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CE C7 07 01 17 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 8D 9A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 15 03 00 35 04 06 00 3D F0 AF 09 5B 96 15 9A AF 39 D6 E4 E5 0A [19:54:54]CheckFolder [19:54:54]dirname=/storage/ofd_packets [19:54:54]CheckFolder done [19:54:54]ProducePacketName [19:54:54]name=ofd_packets/00202169 [19:54:54]NVStorageSaveData ofd_packets/00202169 [19:54:54]File name is /storage/ofd_packets/00202169 [19:54:54]Write 301 bytes [19:54:54]NVStorageSaveData done [19:54:54]OFDSenderStorePacket done [19:54:54]KKMCreateOFDPacket done [19:54:54]NVStorageSaveData kkm_last_timestamp [19:54:54]File name is /storage/kkm_last_timestamp [19:54:54]Write 4 bytes [19:54:54]NVStorageSaveData done [19:54:54]ExternCall_PrintAddStr [19:54:54]wPrintStart [19:54:54]Write to MH i2c: 01 00 00 12 01 13 [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: 01 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: 01 07 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [19:54:54]RasterBufferAndPrint [19:54:54]line Счет N : (1)449943 [19:54:54]line ИНН: 02508201610067 [19:54:54]line Контрольно-Кассовый Чек [19:54:54]line ПРОДАЖА [19:54:54]line ТРК (МРК, ГНК) : 31 [19:54:54]line Товар: 2710124130 [19:54:54]line Аи-92-К-2 [19:54:54]line 5.980 * 66.90 [19:54:54]line = 400.06 [19:54:54]line НДС 12% НСП 1% [19:54:54]line > о реализуемом товаре [19:54:54]line ОКРУГЛЕНИЕ: -0.06 [19:54:54]line ИТОГО: 400.00 [19:54:54]line Внесено: 400.00 [19:54:54]line СДАЧА: 0.00 [19:54:54]line НСП 1% : 3.54 [19:54:54]line НДС 12% : 42.48 [19:54:54]line Наличными: 400.00 [19:54:54]line Безнал.: 0.00 [19:54:54]line Место: АЗС № 171 "Партнер Нефть" [19:54:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:54:54]line СНО: Общий режим [19:54:54]line Чек 461 27.10.2024 19:54 [19:54:54]line Смена: 544 ФФД: 1.0 [19:54:54]line ЗНМ: 0300000109 [19:54:54]line РНМ: 0000000000091777 [19:54:54]line Версия ККМ: 001 [19:54:54]line ФМ: 0000000000871756 [19:54:54]line ФД: 202169 [19:54:54]line ФПД: 68103938071446 [19:54:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195453&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202169&fm=68103938071446&tin=02508201610067®Number=0000000000091777&sum=40000 [19:54:55]OFD Sender: Processing packet 202169 [packets to send 114, broken 113] [19:54:55]ProducePacketName [19:54:55]name=ofd_packets/00202169 [19:54:55]OFD Sender: To server: pG, [19:54:55]CommunicateWithHost lk.salyk.kg:30040 [19:54:55]ConnectInit lk.salyk.kg [19:54:55]written 0, free lines is 4095 [19:54:55]Connected sock=11 [19:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CE C7 07 01 17 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 8D 9A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 15 03 00 35 04 06 00 3D F0 AF 09 5B 96 15 9A AF 39 D6 E4 E5 0A [19:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0D 40 47 00 F6 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 15 03 00 F4 03 04 00 46 46 1E 67 B6 04 01 00 00 E9 D7 D4 E4 43 82 90 9A [19:54:55]CommunicateWithHost err = 0 [19:54:55]CheckOFDResponse [19:54:55]1017 (14) - 77093643461234 [19:54:55]1041 (16) - 0000000000871756 [19:54:55]1040 (4) - 202169 [19:54:55]1012 (4) - 27.10.2024 13:55 [19:54:55]1206 (1) - 0 [19:54:55]OFD Sender: Remove packet 202169 [19:54:55]ProducePacketName [19:54:55]name=ofd_packets/00202169 [19:54:55]NVStorageDeleteData [19:54:55]Write to MH i2c: 01 00 00 3D 01 3E [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: 01 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: 01 07 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 99 0C EA [19:54:55]RasterBufferAndPrint [19:54:55]line [19:54:55]line [19:54:55]line [19:54:55]line [19:54:55]line [19:54:55]written 0, free lines is 3229 [19:54:55]MH_Cut [19:54:55]Write to MH i2c: D1 01 00 44 01 01 17 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: D1 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: D1 01 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: D1 01 00 44 01 00 16 [19:54:55]Write to MH i2c: 01 00 00 45 01 46 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]OFD Sender: No OFD packet to send [19:54:56]*** Cut start [19:54:56]*** Purtial cut [19:54:56]*** Stage 1: CUTSNS_PIN = 1 [19:54:56]Read from MH i2c: 01 [19:54:56]MH_I2C_Read... [19:54:56]*** Stop cut motor [19:54:56]*** Cut end [19:54:56]Read from MH i2c: 01 07 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [19:54:56]process_action close_receipt done [19:54:56]requested_data is exist [19:54:56]produce_requested_data [19:54:56]requested_item fm.sn is exist - process it [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 11 00 00 [19:54:56]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 17 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [19:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:54:56]wFMCommunicate OK [19:54:56]requested_item fd.num is exist - process it [19:54:56]SAM_PROTO_GetFieldsCounters [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 13 00 00 [19:54:56]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 62 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B9 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [19:54:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B9 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:56]wFMCommunicate OK [19:54:56]SAM_PROTO_GetFieldsCounters done [19:54:56]requested_item shift.num is exist - process it [19:54:56]requested_item shift.opened is exist - process it [19:54:56]req_shift_opened [19:54:56]FM_GetShiftState [19:54:56]SAM_PROTO_GetShiftState [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 13 01 00 [19:54:56]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0E 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 C8 [19:54:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:54:56]wFMCommunicate OK [19:54:56]SAM_PROTO_GetShiftState done [19:54:56]FM_GetShiftState done [19:54:56]req_shift_opened done [19:54:56]requested_item shift.open_date is exist - process it [19:54:56]req_shift_open_date [19:54:56]req_shift_open_date done [19:54:56]produce_requested_data done [19:54:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202169,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:54:56]process_action_free close_receipt [19:54:56]json_value_free [19:54:56]json_value_free done [19:54:56]process_json_proto returns [19:54:56]Send response to host [19:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202169,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:54:56]free response buf [19:54:56]execute_script done [19:54:56]execute_script returns [19:54:56]free content buf [19:54:56]Sock 7.Close socket [19:54:56]Sock 7.Thread stoped [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:55:57]accept exits with 9 [19:55:57]New connection [19:55:57]New thread 3066920292 created [19:55:57]Thread 3066776932 joined [19:55:57]Waiting for new connection... [19:55:57] Sock 9.Parse request [19:55:57]Sock 9.Check first char [19:55:57]Sock 9.First char is OK [19:55:57]request: POST /json_proto HTTP/1.0 [19:55:57]Method: POST [19:55:57]URL: /json_proto [19:55:57]Method is POST - this is cgi request [19:55:57]url: /json_proto [19:55:57]query_string will be loaded in cgi processing [19:55:57]execute_cgi json_proto POST (null) [19:55:57]execute_cgi path=json_proto method=POST [19:55:57]POST find Content-Length [19:55:57]Host: 172.17.63.195:8080 [19:55:57]Content-Length: 682 [19:55:57]Content-Type: application/json [19:55:57] [19:55:57]POST finish read [19:55:57]Found Content-Length = 682 [19:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:55:57]execute_script... [19:55: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)449944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:55:57]POST & json_proto [19:55:57]process_json_proto [19:55:57]json parsed OK: [19:55:57]protocol is kg_v1.0 [19:55:57]action value=close_receipt [19:55:57]process_action close_receipt [19:55:57]cmd_close_receipt [19:55:57]MH_GetDate [19:55:57]Write to MH i2c: F0 00 00 49 01 39 [19:55:57]Write i2c OK [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: F0 [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: F0 09 00 [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: F0 09 00 49 01 00 CD 9A 1E 67 47 1B 1E 67 15 [19:55:57]GetLastDocTimeStamp 1730058893 [19:55:57]current date 1730058957 [19:55:57]FM_GetShiftState [19:55:57]SAM_PROTO_GetShiftState [19:55:57]wFMCommunicate request_size=4 [19:55:57]MH_SAM_APDU [19:55:57]CAPDU: 80 13 01 00 [19:55:57]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [19:55:57]Write i2c OK [19:55:57]MH_I2C_Read... [19:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:57]Read from MH i2c: E2 [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: E2 0E 00 [19:55:57]MH_I2C_Read... [19:55:57]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CA [19:55:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:55:57]wFMCommunicate OK [19:55:57]SAM_PROTO_GetShiftState done [19:55:57]FM_GetShiftState done [19:55:57]opened in 1729987312 [19:55:57]opened+sec_in_day 1730073712 [19:55:57]quantity*price = 100015 [19:55:57]sum+1 = 100017 [19:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 462 27.10.2024 19:55 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202170 ФПД: 11936979390137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195557&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202170&fm=11936979390137&tin=02508201610067®Number=0000000000091777&sum=100000 [19:55:58]StoreToDocumentArchive [19:55:58]shift 544 fd 202170 [19:55:58]save to /storage/0544/doc_00202170 [19:55:58]save last doc name /storage/0544/doc_00202170 to /storage/kkm_last_doc_name [19:55:58]save OK [19:55:58]Clear old archive folders... [19:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:58]tlvbuf is 015F8200 [19:55:58]SAM_PROTO_ClearQueue [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 09 00 00 [19:55:58]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [19:55:58]RAPDU: 90 00 [19:55:58]wFMCommunicate OK [19:55:58]SAM_PROTO_ClearQueue done [19:55:58]KKMCreateOFDPacket [19:55:58]OFDProtocolAddRootSTLVToBuf [19:55:58]FM_MakeSignedData [19:55:58]FM_MakeSignedData [19:55:58]SAM_PROTO_SignData [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 0D 01 02 [19:55:58]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [19:55:58]RAPDU: 90 00 [19:55:58]wFMCommunicate OK [19:55:58]wFMCommunicate request_size=255 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 01 00 00 F4 03 04 00 CD 9A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 15 03 00 35 04 06 00 0A [19:55:58]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 01 00 00 F4 03 04 00 CD 9A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 15 03 00 35 04 06 00 0A 00 00 19 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [19:55:58]RAPDU: 90 00 [19:55:58]wFMCommunicate OK [19:55:58]wFMCommunicate request_size=10 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 0D 02 02 05 DB 4B 6A 8E B9 [19:55:58]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 DB 4B 6A 8E B9 00 00 B6 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [19:55:58]RAPDU: 90 00 [19:55:58]wFMCommunicate OK [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 0D 03 02 [19:55:58]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 0B 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 0B 00 5B 01 00 89 F9 45 7F 3C 99 EE 49 90 00 2A [19:55:58]RAPDU: 89 F9 45 7F 3C 99 EE 49 90 00 [19:55:58]wFMCommunicate OK [19:55:58]SAM_PROTO_SignData done [19:55:58]FM_MakeSignedData done [19:55:58]CreateOFDProtocolMessage [19:55:58]wFMCommunicate request_size=4 [19:55:58]MH_SAM_APDU [19:55:58]CAPDU: 80 11 00 00 [19:55:58]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:58]Read from MH i2c: E2 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 17 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [19:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:55:58]wFMCommunicate OK [19:55:58]CreateOFDProtocolMessage done [19:55:58]OFDSenderStorePacket 202170 [19:55:58]StoreOFDPacket docnum=202170 [19:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E9 89 07 01 08 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 01 00 00 F4 03 04 00 CD 9A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 15 03 00 35 04 06 00 0A DB 4B 6A 8E B9 89 F9 45 7F 3C 99 EE 49 [19:55:58]CheckFolder [19:55:58]dirname=/storage/ofd_packets [19:55:58]CheckFolder done [19:55:58]ProducePacketName [19:55:58]name=ofd_packets/00202170 [19:55:58]NVStorageSaveData ofd_packets/00202170 [19:55:58]File name is /storage/ofd_packets/00202170 [19:55:58]Write 301 bytes [19:55:58]NVStorageSaveData done [19:55:58]OFDSenderStorePacket done [19:55:58]KKMCreateOFDPacket done [19:55:58]NVStorageSaveData kkm_last_timestamp [19:55:58]File name is /storage/kkm_last_timestamp [19:55:58]Write 4 bytes [19:55:58]NVStorageSaveData done [19:55:58]ExternCall_PrintAddStr [19:55:58]wPrintStart [19:55:58]Write to MH i2c: 01 00 00 5D 01 5E [19:55:58]Write i2c OK [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: 01 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: 01 07 00 [19:55:58]MH_I2C_Read... [19:55:58]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [19:55:58]RasterBufferAndPrint [19:55:58]line Счет N : (1)449944 [19:55:58]line ИНН: 02508201610067 [19:55:58]line Контрольно-Кассовый Чек [19:55:58]line ПРОДАЖА [19:55:58]line ТРК (МРК, ГНК) : 41 [19:55:58]line Товар: 2710124130 [19:55:58]line Аи-92-К-2 [19:55:58]line 14.950 * 66.90 [19:55:58]line = 1000.16 [19:55:58]line НДС 12% НСП 1% [19:55:58]line > о реализуемом товаре [19:55:58]line ОКРУГЛЕНИЕ: -0.16 [19:55:58]line ИТОГО: 1000.00 [19:55:58]line Внесено: 1000.00 [19:55:58]line СДАЧА: 0.00 [19:55:58]line НСП 1% : 8.85 [19:55:58]line НДС 12% : 106.21 [19:55:58]line Наличными: 1000.00 [19:55:58]line Безнал.: 0.00 [19:55:58]line Место: АЗС № 171 "Партнер Нефть" [19:55:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:55:58]line СНО: Общий режим [19:55:58]line Чек 462 27.10.2024 19:55 [19:55:58]line Смена: 544 ФФД: 1.0 [19:55:58]line ЗНМ: 0300000109 [19:55:58]line РНМ: 0000000000091777 [19:55:58]line Версия ККМ: 001 [19:55:58]line ФМ: 0000000000871756 [19:55:58]line ФД: 202170 [19:55:58]line ФПД: 11936979390137 [19:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195557&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202170&fm=11936979390137&tin=02508201610067®Number=0000000000091777&sum=100000 [19:55:59]OFD Sender: Processing packet 202170 [packets to send 114, broken 113] [19:55:59]ProducePacketName [19:55:59]name=ofd_packets/00202170 [19:55:59]OFD Sender: To server: pG, [19:55:59]CommunicateWithHost lk.salyk.kg:30040 [19:55:59]ConnectInit lk.salyk.kg [19:55:59]written 0, free lines is 4095 [19:55:59]Connected sock=10 [19:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E9 89 07 01 08 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 01 00 00 F4 03 04 00 CD 9A 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 15 03 00 35 04 06 00 0A DB 4B 6A 8E B9 89 F9 45 7F 3C 99 EE 49 [19:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 42 14 47 00 6A 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 15 03 00 F4 03 04 00 86 46 1E 67 B6 04 01 00 00 9F 23 6E B9 93 60 D0 97 [19:55:59]CommunicateWithHost err = 0 [19:55:59]CheckOFDResponse [19:55:59]1017 (14) - 77093643461234 [19:55:59]1041 (16) - 0000000000871756 [19:55:59]1040 (4) - 202170 [19:55:59]1012 (4) - 27.10.2024 13:56 [19:55:59]1206 (1) - 0 [19:55:59]OFD Sender: Remove packet 202170 [19:55:59]ProducePacketName [19:55:59]name=ofd_packets/00202170 [19:55:59]NVStorageDeleteData [19:55:59]Write to MH i2c: 01 00 00 88 01 89 [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 07 00 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 9D 0C 39 [19:55:59]RasterBufferAndPrint [19:55:59]line [19:55:59]line [19:55:59]line [19:55:59]line [19:55:59]line [19:55:59]written 0, free lines is 3233 [19:55:59]MH_Cut [19:55:59]Write to MH i2c: D1 01 00 8F 01 01 62 [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: D1 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: D1 01 00 [19:55:59]MH_I2C_Read... [19:55:59]Read from MH i2c: D1 01 00 8F 01 00 61 [19:55:59]Write to MH i2c: 01 00 00 90 01 91 [19:55:59]Write i2c OK [19:55:59]MH_I2C_Read... [19:55:59]OFD Sender: No OFD packet to send [19:56:00]*** Cut start [19:56:00]*** Purtial cut [19:56:00]*** Stage 1: CUTSNS_PIN = 1 [19:56:00]Read from MH i2c: 01 [19:56:00]MH_I2C_Read... [19:56:00]*** Stop cut motor [19:56:00]*** Cut end [19:56:00]Read from MH i2c: 01 07 00 [19:56:00]MH_I2C_Read... [19:56:00]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [19:56:00]process_action close_receipt done [19:56:00]requested_data is exist [19:56:00]produce_requested_data [19:56:00]requested_item fm.sn is exist - process it [19:56:00]wFMCommunicate request_size=4 [19:56:00]MH_SAM_APDU [19:56:00]CAPDU: 80 11 00 00 [19:56:00]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [19:56:00]Write i2c OK [19:56:00]MH_I2C_Read... [19:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:00]Read from MH i2c: E2 [19:56:00]MH_I2C_Read... [19:56:00]Read from MH i2c: E2 17 00 [19:56:00]MH_I2C_Read... [19:56:00]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [19:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:56:00]wFMCommunicate OK [19:56:00]requested_item fd.num is exist - process it [19:56:00]SAM_PROTO_GetFieldsCounters [19:56:00]wFMCommunicate request_size=4 [19:56:00]MH_SAM_APDU [19:56:00]CAPDU: 80 13 00 00 [19:56:00]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [19:56:00]Write i2c OK [19:56:00]MH_I2C_Read... [19:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:00]Read from MH i2c: E2 [19:56:00]MH_I2C_Read... [19:56:00]Read from MH i2c: E2 62 00 [19:56:00]MH_I2C_Read... [19:56:00]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BA 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:56:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BA 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:00]wFMCommunicate OK [19:56:00]SAM_PROTO_GetFieldsCounters done [19:56:00]requested_item shift.num is exist - process it [19:56:00]requested_item shift.opened is exist - process it [19:56:00]req_shift_opened [19:56:00]FM_GetShiftState [19:56:00]SAM_PROTO_GetShiftState [19:56:00]wFMCommunicate request_size=4 [19:56:00]MH_SAM_APDU [19:56:00]CAPDU: 80 13 01 00 [19:56:00]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [19:56:00]Write i2c OK [19:56:00]MH_I2C_Read... [19:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:00]Read from MH i2c: E2 [19:56:00]MH_I2C_Read... [19:56:00]Read from MH i2c: E2 0E 00 [19:56:00]MH_I2C_Read... [19:56:00]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 13 [19:56:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [19:56:00]wFMCommunicate OK [19:56:00]SAM_PROTO_GetShiftState done [19:56:00]FM_GetShiftState done [19:56:00]req_shift_opened done [19:56:00]requested_item shift.open_date is exist - process it [19:56:00]req_shift_open_date [19:56:00]req_shift_open_date done [19:56:00]produce_requested_data done [19:56:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202170,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [19:56:00]process_action_free close_receipt [19:56:00]json_value_free [19:56:00]json_value_free done [19:56:00]process_json_proto returns [19:56:00]Send response to host [19:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202170,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [19:56:00]free response buf [19:56:00]execute_script done [19:56:00]execute_script returns [19:56:00]free content buf [19:56:00]Sock 9.Close socket [19:56:00]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]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:10]OFD Sender: No OFD packet to send [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 3066776932 created [20:01:17]Thread 3066920292 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.63.195:8080 [20:01:17]Content-Length: 632 [20:01:17]Content-Type: application/json [20:01:17] [20:01:17]POST finish read [20:01:17]Found Content-Length = 632 [20:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [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 : (1)449945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "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" ] } } [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 94 01 84 [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 94 01 00 0E 9C 1E 67 47 1B 1E 67 A3 [20:01:17]GetLastDocTimeStamp 1730058957 [20:01:17]current date 1730059278 [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 95 01 80 13 01 00 00 00 00 00 13 [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:18]Read from MH i2c: E2 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: E2 0E 00 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 15 [20:01:18]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:01:18]wFMCommunicate OK [20:01:18]SAM_PROTO_GetShiftState done [20:01:18]FM_GetShiftState done [20:01:18]opened in 1729987312 [20:01:18]opened+sec_in_day 1730073712 [20:01:18]quantity*price = 50000 [20:01:18]sum+1 = 50001 [20:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 463 27.10.2024 20:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202171 ФПД: 158722425961554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200118&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202171&fm=158722425961554&tin=02508201610067®Number=0000000000091777&sum=50000 [20:01:19]StoreToDocumentArchive [20:01:19]shift 544 fd 202171 [20:01:19]save to /storage/0544/doc_00202171 [20:01:19]save last doc name /storage/0544/doc_00202171 to /storage/kkm_last_doc_name [20:01:19]save OK [20:01:19]Clear old archive folders... [20:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:01:19]tlvbuf is 015F9960 [20:01:19]SAM_PROTO_ClearQueue [20:01:19]wFMCommunicate request_size=4 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 09 00 00 [20:01:19]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]*** iso7816_exchange 80 09 00 00... 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 A2 01 00 90 00 17 [20:01:19]RAPDU: 90 00 [20:01:19]wFMCommunicate OK [20:01:19]SAM_PROTO_ClearQueue done [20:01:19]KKMCreateOFDPacket [20:01:19]OFDProtocolAddRootSTLVToBuf [20:01:19]FM_MakeSignedData [20:01:19]FM_MakeSignedData [20:01:19]SAM_PROTO_SignData [20:01:19]wFMCommunicate request_size=4 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 0D 01 02 [20:01:19]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]*** iso7816_exchange 80 0D 01 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 A3 01 00 90 00 18 [20:01:19]RAPDU: 90 00 [20:01:19]wFMCommunicate OK [20:01:19]wFMCommunicate request_size=255 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 01 00 00 F4 03 04 00 0E 9C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 15 03 00 35 04 06 00 [20:01:19]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 CF 01 00 00 F4 03 04 00 0E 9C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 15 03 00 35 04 06 00 00 00 02 [20:01:19]Write i2c OK [20:01:19]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 A4 01 00 90 00 19 [20:01:19]RAPDU: 90 00 [20:01:19]wFMCommunicate OK [20:01:19]wFMCommunicate request_size=11 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 0D 02 02 06 90 5B 71 D1 3C 52 [20:01:19]Write to MH i2c: E2 0E 00 A5 01 80 0D 02 02 06 00 90 5B 71 D1 3C 52 00 00 E7 [20:01:19]Write i2c OK [20:01:19]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 A5 01 00 90 00 1A [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 A6 01 80 0D 03 02 00 00 00 00 22 [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 A6 01 00 82 70 9A AD 01 D8 5D 72 90 00 04 [20:01:19]RAPDU: 82 70 9A AD 01 D8 5D 72 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 A7 01 80 11 00 00 00 00 00 00 22 [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 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [20:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:01:19]wFMCommunicate OK [20:01:19]CreateOFDProtocolMessage done [20:01:19]OFDSenderStorePacket 202171 [20:01:19]StoreOFDPacket docnum=202171 [20:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 1E DC 08 01 11 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 01 00 00 F4 03 04 00 0E 9C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 15 03 00 35 04 06 00 90 5B 71 D1 3C 52 82 70 9A AD 01 D8 5D 72 [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/00202171 [20:01:19]NVStorageSaveData ofd_packets/00202171 [20:01:19]File name is /storage/ofd_packets/00202171 [20:01:19]Write 302 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 A8 01 A9 [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 A8 01 00 00 00 00 00 FF 0F BE [20:01:19]RasterBufferAndPrint [20:01:19]line Счет N : (1)449945 [20:01:19]line ИНН: 02508201610067 [20:01:19]line Контрольно-Кассовый Чек [20:01:19]line ПРОДАЖА [20:01:19]line ТРК (МРК, ГНК) : 42 [20:01:19]line Товар: 2710124130 [20:01:19]line SUPER 92-К-5 [20:01:19]line 7.310 * 68.40 [20:01:19]line = 500.00 [20:01:19]line НДС 12% НСП 1% [20:01:19]line > о реализуемом товаре [20:01:19]line ИТОГО: 500.00 [20:01:19]line НСП 1% : 4.42 [20:01:19]line НДС 12% : 53.10 [20:01:19]line Наличными: 500.00 [20:01:19]line Безнал.: 0.00 [20:01:19]line Место: АЗС № 171 "Партнер Нефть" [20:01:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:01:19]line СНО: Общий режим [20:01:19]line Чек 463 27.10.2024 20:01 [20:01:19]line Смена: 544 ФФД: 1.0 [20:01:19]line ЗНМ: 0300000109 [20:01:19]line РНМ: 0000000000091777 [20:01:19]line Версия ККМ: 001 [20:01:19]line ФМ: 0000000000871756 [20:01:19]line ФД: 202171 [20:01:19]line ФПД: 158722425961554 [20:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200118&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202171&fm=158722425961554&tin=02508201610067®Number=0000000000091777&sum=50000 [20:01:20]OFD Sender: Processing packet 202171 [packets to send 114, broken 113] [20:01:20]ProducePacketName [20:01:20]name=ofd_packets/00202171 [20:01:20]OFD Sender: To server: pG, [20:01:20]CommunicateWithHost lk.salyk.kg:30040 [20:01:20]ConnectInit lk.salyk.kg [20:01:20]written 0, free lines is 4095 [20:01:20]Connected sock=10 [20:01:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 1E DC 08 01 11 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 01 00 00 F4 03 04 00 0E 9C 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 15 03 00 35 04 06 00 90 5B 71 D1 3C 52 82 70 9A AD 01 D8 5D 72 [20:01:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BC E3 47 00 5D 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 15 03 00 F4 03 04 00 C7 47 1E 67 B6 04 01 00 00 80 37 2E 81 33 1F B2 00 [20:01:20]CommunicateWithHost err = 0 [20:01:20]CheckOFDResponse [20:01:20]1017 (14) - 77093643461234 [20:01:20]1041 (16) - 0000000000871756 [20:01:20]1040 (4) - 202171 [20:01:20]1012 (4) - 27.10.2024 14:01 [20:01:20]1206 (1) - 0 [20:01:20]OFD Sender: Remove packet 202171 [20:01:20]ProducePacketName [20:01:20]name=ofd_packets/00202171 [20:01:20]NVStorageDeleteData [20:01:20]Write to MH i2c: 01 00 00 D0 01 D1 [20:01:20]Write i2c OK [20:01:20]MH_I2C_Read... [20:01:20]Read from MH i2c: 01 [20:01:20]MH_I2C_Read... [20:01:20]Read from MH i2c: 01 07 00 [20:01:20]MH_I2C_Read... [20:01:20]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 D3 0C B7 [20:01:20]RasterBufferAndPrint [20:01:20]line [20:01:20]line [20:01:20]line [20:01:20]line [20:01:20]line [20:01:20]written 0, free lines is 3286 [20:01:20]MH_Cut [20:01:20]Write to MH i2c: D1 01 00 D7 01 01 AA [20:01:20]Write i2c OK [20:01:20]MH_I2C_Read... [20:01:20]Read from MH i2c: D1 [20:01:20]MH_I2C_Read... [20:01:20]Read from MH i2c: D1 01 00 [20:01:20]MH_I2C_Read... [20:01:20]Read from MH i2c: D1 01 00 D7 01 00 A9 [20:01:20]Write to MH i2c: 01 00 00 D8 01 D9 [20:01:20]Write i2c OK [20:01:20]MH_I2C_Read... [20:01:20]OFD Sender: No OFD packet to send [20:01:21]*** Cut start [20:01:21]*** Purtial cut [20:01:21]*** Stage 1: CUTSNS_PIN = 1 [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 D8 01 00 00 00 00 00 FF 0F EE [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 D9 01 80 11 00 00 00 00 00 00 54 [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 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [20:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 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 DA 01 80 13 00 00 00 00 00 00 57 [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 DA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BB 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [20:01:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BB 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 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 DB 01 80 13 01 00 00 00 00 00 59 [20:01:21]Write i2c OK [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: E2 [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 0E 00 [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5B [20:01:21]RAPDU: 09 00 01 F0 82 1D 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":"0000000000871756","fd.num":202171,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [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":"0000000000871756","fd.num":202171,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [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:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [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:30]accept exits with 9 [20:21:30]New connection [20:21:30]New thread 3066920292 created [20:21:30]Thread 3066776932 joined [20:21:30]Waiting for new connection... [20:21:30] Sock 9.Parse request [20:21:30]Sock 9.Check first char [20:21:30]Sock 9.First char is OK [20:21:30]request: POST /json_proto HTTP/1.0 [20:21:30]Method: POST [20:21:30]URL: /json_proto [20:21:30]Method is POST - this is cgi request [20:21:30]url: /json_proto [20:21:30]query_string will be loaded in cgi processing [20:21:30]execute_cgi json_proto POST (null) [20:21:30]execute_cgi path=json_proto method=POST [20:21:30]POST find Content-Length [20:21:30]Host: 172.17.63.195:8080 [20:21:30]Content-Length: 679 [20:21:30]Content-Type: application/json [20:21:30] [20:21:30]POST finish read [20:21:30]Found Content-Length = 679 [20:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [20:21:30]execute_script... [20: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)449946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [20:21:30]POST & json_proto [20:21:30]process_json_proto [20:21:30]json parsed OK: [20:21:30]protocol is kg_v1.0 [20:21:30]action value=close_receipt [20:21:30]process_action close_receipt [20:21:30]cmd_close_receipt [20:21:30]MH_GetDate [20:21:30]Write to MH i2c: F0 00 00 DC 01 CC [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: F0 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: F0 09 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: F0 09 00 DC 01 00 CB A0 1E 67 47 1B 1E 67 AC [20:21:30]GetLastDocTimeStamp 1730059278 [20:21:30]current date 1730060491 [20:21:30]FM_GetShiftState [20:21:30]SAM_PROTO_GetShiftState [20:21:30]wFMCommunicate request_size=4 [20:21:30]MH_SAM_APDU [20:21:30]CAPDU: 80 13 01 00 [20:21:30]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:30]Read from MH i2c: E2 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 0E 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 5D [20:21:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:21:30]wFMCommunicate OK [20:21:30]SAM_PROTO_GetShiftState done [20:21:30]FM_GetShiftState done [20:21:30]opened in 1729987312 [20:21:30]opened+sec_in_day 1730073712 [20:21:30]quantity*price = 100050 [20:21:30]sum+1 = 100052 [20:21:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 464 27.10.2024 20:21 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202172 ФПД: 216538986016353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202131&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202172&fm=216538986016353&tin=02508201610067®Number=0000000000091777&sum=100000 [20:21:31]StoreToDocumentArchive [20:21:31]shift 544 fd 202172 [20:21:31]save to /storage/0544/doc_00202172 [20:21:31]save last doc name /storage/0544/doc_00202172 to /storage/kkm_last_doc_name [20:21:31]save OK [20:21:31]Clear old archive folders... [20:21:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:21:31]tlvbuf is 015EB1E0 [20:21:31]SAM_PROTO_ClearQueue [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 09 00 00 [20:21:31]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]SAM_PROTO_ClearQueue done [20:21:31]KKMCreateOFDPacket [20:21:31]OFDProtocolAddRootSTLVToBuf [20:21:31]FM_MakeSignedData [20:21:31]FM_MakeSignedData [20:21:31]SAM_PROTO_SignData [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 0D 01 02 [20:21:31]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]wFMCommunicate request_size=255 [20:21:31]MH_SAM_APDU [20: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 32 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 D0 01 00 00 F4 03 04 00 CB A0 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 15 03 00 35 04 06 00 C4 F0 E9 57 [20:21:31]Write to MH i2c: E2 02 01 EC 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D0 01 00 00 F4 03 04 00 CB A0 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 15 03 00 35 04 06 00 C4 F0 E9 57 00 00 9A [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]wFMCommunicate request_size=7 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 0D 02 02 02 6E 61 [20:21:31]Write to MH i2c: E2 0A 00 ED 01 80 0D 02 02 02 00 6E 61 00 00 3B [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [20:21:31]RAPDU: 90 00 [20:21:31]wFMCommunicate OK [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 0D 03 02 [20:21:31]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 0B 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 0B 00 EE 01 00 A1 80 02 BB 3B 0F 62 AD 90 00 A2 [20:21:31]RAPDU: A1 80 02 BB 3B 0F 62 AD 90 00 [20:21:31]wFMCommunicate OK [20:21:31]SAM_PROTO_SignData done [20:21:31]FM_MakeSignedData done [20:21:31]CreateOFDProtocolMessage [20:21:31]wFMCommunicate request_size=4 [20:21:31]MH_SAM_APDU [20:21:31]CAPDU: 80 11 00 00 [20:21:31]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:31]Read from MH i2c: E2 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 17 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [20:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:21:31]wFMCommunicate OK [20:21:31]CreateOFDProtocolMessage done [20:21:31]OFDSenderStorePacket 202172 [20:21:31]StoreOFDPacket docnum=202172 [20:21:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9C A0 04 01 31 66 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 32 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 D0 01 00 00 F4 03 04 00 CB A0 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 15 03 00 35 04 06 00 C4 F0 E9 57 6E 61 A1 80 02 BB 3B 0F 62 AD [20:21:31]CheckFolder [20:21:31]dirname=/storage/ofd_packets [20:21:31]CheckFolder done [20:21:31]ProducePacketName [20:21:31]name=ofd_packets/00202172 [20:21:31]NVStorageSaveData ofd_packets/00202172 [20:21:31]File name is /storage/ofd_packets/00202172 [20:21:31]Write 298 bytes [20:21:31]NVStorageSaveData done [20:21:31]OFDSenderStorePacket done [20:21:31]KKMCreateOFDPacket done [20:21:31]NVStorageSaveData kkm_last_timestamp [20:21:31]File name is /storage/kkm_last_timestamp [20:21:31]Write 4 bytes [20:21:31]NVStorageSaveData done [20:21:31]ExternCall_PrintAddStr [20:21:31]wPrintStart [20:21:31]Write to MH i2c: 01 00 00 F0 01 F1 [20:21:31]Write i2c OK [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 [20:21:31]MH_I2C_Read... [20:21:31]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [20:21:31]RasterBufferAndPrint [20:21:31]line Счет N : (1)449946 [20:21:31]line ИНН: 02508201610067 [20:21:31]line Контрольно-Кассовый Чек [20:21:31]line ПРОДАЖА [20:21:31]line ТРК (МРК, ГНК) : 11 [20:21:31]line Товар: 2710194210 [20:21:31]line ДТ-К-2 [20:21:31]line 13.130 * 76.20 [20:21:31]line = 1000.51 [20:21:31]line НДС 12% НСП 1% [20:21:31]line > о реализуемом товаре [20:21:31]line ОКРУГЛЕНИЕ: -0.51 [20:21:31]line ИТОГО: 1000.00 [20:21:31]line Внесено: 1000.00 [20:21:31]line СДАЧА: 0.00 [20:21:31]line НСП 1% : 8.85 [20:21:31]line НДС 12% : 106.25 [20:21:31]line Наличными: 1000.00 [20:21:31]line Безнал.: 0.00 [20:21:31]line Место: АЗС № 171 "Партнер Нефть" [20:21:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:21:31]line СНО: Общий режим [20:21:31]line Чек 464 27.10.2024 20:21 [20:21:31]line Смена: 544 ФФД: 1.0 [20:21:31]line ЗНМ: 0300000109 [20:21:31]line РНМ: 0000000000091777 [20:21:31]line Версия ККМ: 001 [20:21:31]line ФМ: 0000000000871756 [20:21:31]line ФД: 202172 [20:21:31]line ФПД: 216538986016353 [20:21:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202131&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202172&fm=216538986016353&tin=02508201610067®Number=0000000000091777&sum=100000 [20:21:32]OFD Sender: Processing packet 202172 [packets to send 114, broken 113] [20:21:32]ProducePacketName [20:21:32]name=ofd_packets/00202172 [20:21:32]OFD Sender: To server: pG, [20:21:32]CommunicateWithHost lk.salyk.kg:30040 [20:21:32]ConnectInit lk.salyk.kg [20:21:32]written 0, free lines is 4095 [20:21:32]Connected sock=11 [20:21:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9C A0 04 01 31 66 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 32 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 D0 01 00 00 F4 03 04 00 CB A0 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 15 03 00 35 04 06 00 C4 F0 E9 57 6E 61 A1 80 02 BB 3B 0F 62 AD [20:21:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9B 97 47 00 09 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 15 03 00 F4 03 04 00 84 4C 1E 67 B6 04 01 00 00 E0 16 36 D0 9D 69 E5 14 [20:21:32]CommunicateWithHost err = 0 [20:21:32]CheckOFDResponse [20:21:32]1017 (14) - 77093643461234 [20:21:32]1041 (16) - 0000000000871756 [20:21:32]1040 (4) - 202172 [20:21:32]1012 (4) - 27.10.2024 14:21 [20:21:32]1206 (1) - 0 [20:21:32]OFD Sender: Remove packet 202172 [20:21:32]ProducePacketName [20:21:32]name=ofd_packets/00202172 [20:21:32]NVStorageDeleteData [20:21:32]Write to MH i2c: 01 00 00 1B 02 1D [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: 01 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: 01 07 00 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 8D 0C BD [20:21:32]RasterBufferAndPrint [20:21:32]line [20:21:32]line [20:21:32]line [20:21:32]line [20:21:32]line [20:21:32]written 0, free lines is 3217 [20:21:32]MH_Cut [20:21:32]Write to MH i2c: D1 01 00 22 02 01 F6 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: D1 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: D1 01 00 [20:21:32]MH_I2C_Read... [20:21:32]Read from MH i2c: D1 01 00 22 02 00 F5 [20:21:32]Write to MH i2c: 01 00 00 23 02 25 [20:21:32]Write i2c OK [20:21:32]MH_I2C_Read... [20:21:33]OFD Sender: No OFD packet to send [20:21:33]*** Cut start [20:21:33]*** Purtial cut [20:21:33]*** Stage 1: CUTSNS_PIN = 1 [20:21:33]Read from MH i2c: 01 [20:21:33]MH_I2C_Read... [20:21:33]*** Stop cut motor [20:21:33]*** Cut end [20:21:33]Read from MH i2c: 01 07 00 [20:21:33]MH_I2C_Read... [20:21:33]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [20:21:33]process_action close_receipt done [20:21:33]requested_data is exist [20:21:33]produce_requested_data [20:21:33]requested_item fm.sn is exist - process it [20:21:33]wFMCommunicate request_size=4 [20:21:33]MH_SAM_APDU [20:21:33]CAPDU: 80 11 00 00 [20:21:33]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [20:21:33]Write i2c OK [20:21:33]MH_I2C_Read... [20:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 17 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F5 [20:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:21:34]wFMCommunicate OK [20:21:34]requested_item fd.num is exist - process it [20:21:34]SAM_PROTO_GetFieldsCounters [20:21:34]wFMCommunicate request_size=4 [20:21:34]MH_SAM_APDU [20:21:34]CAPDU: 80 13 00 00 [20:21:34]Write to MH i2c: E2 08 00 25 02 80 13 00 00 00 00 00 00 A3 [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 62 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 62 00 25 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BC 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [20:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BC 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:34]wFMCommunicate OK [20:21:34]SAM_PROTO_GetFieldsCounters done [20:21:34]requested_item shift.num is exist - process it [20:21:34]requested_item shift.opened is exist - process it [20:21:34]req_shift_opened [20:21:34]FM_GetShiftState [20:21:34]SAM_PROTO_GetShiftState [20:21:34]wFMCommunicate request_size=4 [20:21:34]MH_SAM_APDU [20:21:34]CAPDU: 80 13 01 00 [20:21:34]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [20:21:34]Write i2c OK [20:21:34]MH_I2C_Read... [20:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:34]Read from MH i2c: E2 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 0E 00 [20:21:34]MH_I2C_Read... [20:21:34]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A7 [20:21:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:21:34]wFMCommunicate OK [20:21:34]SAM_PROTO_GetShiftState done [20:21:34]FM_GetShiftState done [20:21:34]req_shift_opened done [20:21:34]requested_item shift.open_date is exist - process it [20:21:34]req_shift_open_date [20:21:34]req_shift_open_date done [20:21:34]produce_requested_data done [20:21:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202172,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:21:34]process_action_free close_receipt [20:21:34]json_value_free [20:21:34]json_value_free done [20:21:34]process_json_proto returns [20:21:34]Send response to host [20:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202172,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:21:34]free response buf [20:21:34]execute_script done [20:21:34]execute_script returns [20:21:34]free content buf [20:21:34]Sock 9.Close socket [20:21:34]Sock 9.Thread stoped [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:25]accept exits with 7 [20:28:25]New connection [20:28:25]New thread 3066776932 created [20:28:25]Thread 3066920292 joined [20:28:25]Waiting for new connection... [20:28:25] Sock 7.Parse request [20:28:25]Sock 7.Check first char [20:28:25]Sock 7.First char is OK [20:28:25]request: POST /json_proto HTTP/1.0 [20:28:25]Method: POST [20:28:25]URL: /json_proto [20:28:25]Method is POST - this is cgi request [20:28:25]url: /json_proto [20:28:25]query_string will be loaded in cgi processing [20:28:25]execute_cgi json_proto POST (null) [20:28:25]execute_cgi path=json_proto method=POST [20:28:25]POST find Content-Length [20:28:25]Host: 172.17.63.195:8080 [20:28:25]Content-Length: 674 [20:28:25]Content-Type: application/json [20:28:25] [20:28:25]POST finish read [20:28:25]Found Content-Length = 674 [20:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [20:28:25]execute_script... [20:28: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)449948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [20:28:25]POST & json_proto [20:28:25]process_json_proto [20:28:25]json parsed OK: [20:28:25]protocol is kg_v1.0 [20:28:25]action value=close_receipt [20:28:25]process_action close_receipt [20:28:25]cmd_close_receipt [20:28:25]MH_GetDate [20:28:25]Write to MH i2c: F0 00 00 27 02 18 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: F0 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: F0 09 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: F0 09 00 27 02 00 6A A2 1E 67 47 1B 1E 67 99 [20:28:25]GetLastDocTimeStamp 1730060491 [20:28:25]current date 1730060906 [20:28:25]FM_GetShiftState [20:28:25]SAM_PROTO_GetShiftState [20:28:25]wFMCommunicate request_size=4 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 13 01 00 [20:28:25]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:25]Read from MH i2c: E2 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 0E 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 A9 [20:28:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:28:25]wFMCommunicate OK [20:28:25]SAM_PROTO_GetShiftState done [20:28:25]FM_GetShiftState done [20:28:25]opened in 1729987312 [20:28:25]opened+sec_in_day 1730073712 [20:28:25]quantity*price = 40005 [20:28:25]sum+1 = 40006 [20:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 465 27.10.2024 20:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202173 ФПД: 17488781554164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202173&fm=17488781554164&tin=02508201610067®Number=0000000000091777&sum=40000 [20:28:26]StoreToDocumentArchive [20:28:26]shift 544 fd 202173 [20:28:26]save to /storage/0544/doc_00202173 [20:28:26]save last doc name /storage/0544/doc_00202173 to /storage/kkm_last_doc_name [20:28:26]save OK [20:28:26]Clear old archive folders... [20:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:28:26]tlvbuf is 015F2F00 [20:28:26]SAM_PROTO_ClearQueue [20:28:26]wFMCommunicate request_size=4 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 09 00 00 [20:28:26]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [20:28:26]RAPDU: 90 00 [20:28:26]wFMCommunicate OK [20:28:26]SAM_PROTO_ClearQueue done [20:28:26]KKMCreateOFDPacket [20:28:26]OFDProtocolAddRootSTLVToBuf [20:28:26]FM_MakeSignedData [20:28:26]FM_MakeSignedData [20:28:26]SAM_PROTO_SignData [20:28:26]wFMCommunicate request_size=4 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 0D 01 02 [20:28:26]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [20:28:26]RAPDU: 90 00 [20:28:26]wFMCommunicate OK [20:28:26]wFMCommunicate request_size=255 [20:28:26]MH_SAM_APDU [20:28:26]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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 6A A2 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 15 03 00 35 04 06 00 0F E7 EC 9C [20:28:26]Write to MH i2c: E2 02 01 37 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 6A A2 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 15 03 00 35 04 06 00 0F E7 EC 9C 00 00 06 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [20:28:26]RAPDU: 90 00 [20:28:26]wFMCommunicate OK [20:28:26]wFMCommunicate request_size=7 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 0D 02 02 02 B1 F4 [20:28:26]Write to MH i2c: E2 0A 00 38 02 80 0D 02 02 02 00 B1 F4 00 00 5D [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [20:28:26]RAPDU: 90 00 [20:28:26]wFMCommunicate OK [20:28:26]wFMCommunicate request_size=4 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 0D 03 02 [20:28:26]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 0B 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 0B 00 39 02 00 7A 76 0C 4D 58 95 06 B9 90 00 AC [20:28:26]RAPDU: 7A 76 0C 4D 58 95 06 B9 90 00 [20:28:26]wFMCommunicate OK [20:28:26]SAM_PROTO_SignData done [20:28:26]FM_MakeSignedData done [20:28:26]CreateOFDProtocolMessage [20:28:26]wFMCommunicate request_size=4 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 11 00 00 [20:28:26]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 17 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [20:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:28:26]wFMCommunicate OK [20:28:26]CreateOFDProtocolMessage done [20:28:26]OFDSenderStorePacket 202173 [20:28:26]StoreOFDPacket docnum=202173 [20:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 6E 9B 04 01 49 95 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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 6A A2 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 15 03 00 35 04 06 00 0F E7 EC 9C B1 F4 7A 76 0C 4D 58 95 06 B9 [20:28:26]CheckFolder [20:28:26]dirname=/storage/ofd_packets [20:28:26]CheckFolder done [20:28:26]ProducePacketName [20:28:26]name=ofd_packets/00202173 [20:28:26]NVStorageSaveData ofd_packets/00202173 [20:28:26]File name is /storage/ofd_packets/00202173 [20:28:26]Write 298 bytes [20:28:26]NVStorageSaveData done [20:28:26]OFDSenderStorePacket done [20:28:26]KKMCreateOFDPacket done [20:28:26]NVStorageSaveData kkm_last_timestamp [20:28:26]File name is /storage/kkm_last_timestamp [20:28:26]Write 4 bytes [20:28:26]NVStorageSaveData done [20:28:26]ExternCall_PrintAddStr [20:28:26]wPrintStart [20:28:26]Write to MH i2c: 01 00 00 3B 02 3D [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [20:28:26]RasterBufferAndPrint [20:28:26]line Счет N : (1)449948 [20:28:26]line ИНН: 02508201610067 [20:28:26]line Контрольно-Кассовый Чек [20:28:26]line ПРОДАЖА [20:28:26]line ТРК (МРК, ГНК) : 21 [20:28:26]line Товар: 2710194210 [20:28:26]line ДТ-К-2 [20:28:26]line 5.250 * 76.20 [20:28:26]line = 400.05 [20:28:26]line НДС 12% НСП 1% [20:28:26]line > о реализуемом товаре [20:28:26]line ОКРУГЛЕНИЕ: -0.05 [20:28:26]line ИТОГО: 400.00 [20:28:26]line Внесено: 400.00 [20:28:26]line СДАЧА: 0.00 [20:28:26]line НСП 1% : 3.54 [20:28:26]line НДС 12% : 42.48 [20:28:26]line Наличными: 400.00 [20:28:26]line Безнал.: 0.00 [20:28:26]line Место: АЗС № 171 "Партнер Нефть" [20:28:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:28:26]line СНО: Общий режим [20:28:26]line Чек 465 27.10.2024 20:28 [20:28:26]line Смена: 544 ФФД: 1.0 [20:28:26]line ЗНМ: 0300000109 [20:28:26]line РНМ: 0000000000091777 [20:28:26]line Версия ККМ: 001 [20:28:26]line ФМ: 0000000000871756 [20:28:26]line ФД: 202173 [20:28:26]line ФПД: 17488781554164 [20:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202173&fm=17488781554164&tin=02508201610067®Number=0000000000091777&sum=40000 [20:28:27]OFD Sender: Processing packet 202173 [packets to send 114, broken 113] [20:28:27]ProducePacketName [20:28:27]name=ofd_packets/00202173 [20:28:27]OFD Sender: To server: pG, [20:28:27]CommunicateWithHost lk.salyk.kg:30040 [20:28:27]ConnectInit lk.salyk.kg [20:28:27]written 0, free lines is 4095 [20:28:27]Connected sock=10 [20:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 6E 9B 04 01 49 95 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 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 6A A2 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 15 03 00 35 04 06 00 0F E7 EC 9C B1 F4 7A 76 0C 4D 58 95 06 B9 [20:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A4 97 47 00 07 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 15 03 00 F4 03 04 00 22 4E 1E 67 B6 04 01 00 00 15 13 6C 05 16 29 43 63 [20:28:27]CommunicateWithHost err = 0 [20:28:27]CheckOFDResponse [20:28:27]1017 (14) - 77093643461234 [20:28:27]1041 (16) - 0000000000871756 [20:28:27]1040 (4) - 202173 [20:28:27]1012 (4) - 27.10.2024 14:28 [20:28:27]1206 (1) - 0 [20:28:27]OFD Sender: Remove packet 202173 [20:28:27]ProducePacketName [20:28:27]name=ofd_packets/00202173 [20:28:27]NVStorageDeleteData [20:28:27]Write to MH i2c: 01 00 00 66 02 68 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 07 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 8B 0C 06 [20:28:27]RasterBufferAndPrint [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]written 0, free lines is 3215 [20:28:27]MH_Cut [20:28:27]Write to MH i2c: D1 01 00 6D 02 01 41 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 01 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 01 00 6D 02 00 40 [20:28:27]Write to MH i2c: 01 00 00 6E 02 70 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]OFD Sender: No OFD packet to send [20:28:28]*** Cut start [20:28:28]*** Purtial cut [20:28:28]*** Stage 1: CUTSNS_PIN = 1 [20:28:28]Read from MH i2c: 01 [20:28:28]MH_I2C_Read... [20:28:28]*** Stop cut motor [20:28:28]*** Cut end [20:28:28]Read from MH i2c: 01 07 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [20:28:28]process_action close_receipt done [20:28:28]requested_data is exist [20:28:28]produce_requested_data [20:28:28]requested_item fm.sn is exist - process it [20:28:28]wFMCommunicate request_size=4 [20:28:28]MH_SAM_APDU [20:28:28]CAPDU: 80 11 00 00 [20:28:28]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [20:28:28]Write i2c OK [20:28:28]MH_I2C_Read... [20:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:28]Read from MH i2c: E2 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 17 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 40 [20:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:28:28]wFMCommunicate OK [20:28:28]requested_item fd.num is exist - process it [20:28:28]SAM_PROTO_GetFieldsCounters [20:28:28]wFMCommunicate request_size=4 [20:28:28]MH_SAM_APDU [20:28:28]CAPDU: 80 13 00 00 [20:28:28]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [20:28:28]Write i2c OK [20:28:28]MH_I2C_Read... [20:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:28]Read from MH i2c: E2 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 62 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 62 00 70 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BD 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [20:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BD 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:28]wFMCommunicate OK [20:28:28]SAM_PROTO_GetFieldsCounters done [20:28:28]requested_item shift.num is exist - process it [20:28:28]requested_item shift.opened is exist - process it [20:28:28]req_shift_opened [20:28:28]FM_GetShiftState [20:28:28]SAM_PROTO_GetShiftState [20:28:28]wFMCommunicate request_size=4 [20:28:28]MH_SAM_APDU [20:28:28]CAPDU: 80 13 01 00 [20:28:28]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [20:28:28]Write i2c OK [20:28:28]MH_I2C_Read... [20:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:28]Read from MH i2c: E2 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 0E 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F2 [20:28:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:28:28]wFMCommunicate OK [20:28:28]SAM_PROTO_GetShiftState done [20:28:28]FM_GetShiftState done [20:28:28]req_shift_opened done [20:28:28]requested_item shift.open_date is exist - process it [20:28:28]req_shift_open_date [20:28:28]req_shift_open_date done [20:28:28]produce_requested_data done [20:28:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202173,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:28:28]process_action_free close_receipt [20:28:28]json_value_free [20:28:28]json_value_free done [20:28:28]process_json_proto returns [20:28:28]Send response to host [20:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202173,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:28:28]free response buf [20:28:28]execute_script done [20:28:28]execute_script returns [20:28:28]free content buf [20:28:28]Sock 7.Close socket [20:28:28]Sock 7.Thread stoped [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:43]accept exits with 9 [20:28:43]New connection [20:28:43]New thread 3066920292 created [20:28:43]Thread 3066776932 joined [20:28:43]Waiting for new connection... [20:28:43] Sock 9.Parse request [20:28:43]Sock 9.Check first char [20:28:43]Sock 9.First char is OK [20:28:43]request: POST /json_proto HTTP/1.0 [20:28:43]Method: POST [20:28:43]URL: /json_proto [20:28:43]Method is POST - this is cgi request [20:28:43]url: /json_proto [20:28:43]query_string will be loaded in cgi processing [20:28:43]execute_cgi json_proto POST (null) [20:28:43]execute_cgi path=json_proto method=POST [20:28:43]POST find Content-Length [20:28:43]Host: 172.17.63.195:8080 [20:28:43]Content-Length: 677 [20:28:43]Content-Type: application/json [20:28:43] [20:28:43]POST finish read [20:28:43]Found Content-Length = 677 [20:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:28:43]execute_script... [20:28:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:28:43]POST & json_proto [20:28:43]process_json_proto [20:28:43]json parsed OK: [20:28:43]protocol is kg_v1.0 [20:28:43]action value=close_receipt [20:28:43]process_action close_receipt [20:28:43]cmd_close_receipt [20:28:43]MH_GetDate [20:28:43]Write to MH i2c: F0 00 00 72 02 63 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: F0 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: F0 09 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: F0 09 00 72 02 00 7C A2 1E 67 47 1B 1E 67 F6 [20:28:43]GetLastDocTimeStamp 1730060906 [20:28:43]current date 1730060924 [20:28:43]FM_GetShiftState [20:28:43]SAM_PROTO_GetShiftState [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 13 01 00 [20:28:43]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:44]Read from MH i2c: E2 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: E2 0E 00 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 F4 [20:28:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:28:44]wFMCommunicate OK [20:28:44]SAM_PROTO_GetShiftState done [20:28:44]FM_GetShiftState done [20:28:44]opened in 1729987312 [20:28:44]opened+sec_in_day 1730073712 [20:28:44]quantity*price = 50041 [20:28:44]sum+1 = 50042 [20:28:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 466 27.10.2024 20:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202174 ФПД: 203932592458547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202845&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202174&fm=203932592458547&tin=02508201610067®Number=0000000000091777&sum=50000 [20:28:45]StoreToDocumentArchive [20:28:45]shift 544 fd 202174 [20:28:45]save to /storage/0544/doc_00202174 [20:28:45]save last doc name /storage/0544/doc_00202174 to /storage/kkm_last_doc_name [20:28:45]save OK [20:28:45]Clear old archive folders... [20:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:45]tlvbuf is 015E6250 [20:28:45]SAM_PROTO_ClearQueue [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 09 00 00 [20:28:45]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [20:28:45]RAPDU: 90 00 [20:28:45]wFMCommunicate OK [20:28:45]SAM_PROTO_ClearQueue done [20:28:45]KKMCreateOFDPacket [20:28:45]OFDProtocolAddRootSTLVToBuf [20:28:45]FM_MakeSignedData [20:28:45]FM_MakeSignedData [20:28:45]SAM_PROTO_SignData [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 0D 01 02 [20:28:45]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [20:28:45]RAPDU: 90 00 [20:28:45]wFMCommunicate OK [20:28:45]wFMCommunicate request_size=255 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D2 01 00 00 F4 03 04 00 7D A2 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 15 03 00 35 04 06 00 B9 [20:28:45]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D2 01 00 00 F4 03 04 00 7D A2 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 15 03 00 35 04 06 00 B9 00 00 B8 [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [20:28:45]RAPDU: 90 00 [20:28:45]wFMCommunicate OK [20:28:45]wFMCommunicate request_size=10 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 0D 02 02 05 79 C1 BB 4B 33 [20:28:45]Write to MH i2c: E2 0D 00 83 02 80 0D 02 02 05 00 79 C1 BB 4B 33 00 00 7C [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [20:28:45]RAPDU: 90 00 [20:28:45]wFMCommunicate OK [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 0D 03 02 [20:28:45]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 0B 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 0B 00 84 02 00 A2 DB 8E 78 9F EF FE 8D 90 00 9E [20:28:45]RAPDU: A2 DB 8E 78 9F EF FE 8D 90 00 [20:28:45]wFMCommunicate OK [20:28:45]SAM_PROTO_SignData done [20:28:45]FM_MakeSignedData done [20:28:45]CreateOFDProtocolMessage [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 11 00 00 [20:28:45]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 17 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [20:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:28:45]wFMCommunicate OK [20:28:45]CreateOFDProtocolMessage done [20:28:45]OFDSenderStorePacket 202174 [20:28:45]StoreOFDPacket docnum=202174 [20:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3C D8 07 01 51 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D2 01 00 00 F4 03 04 00 7D A2 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 15 03 00 35 04 06 00 B9 79 C1 BB 4B 33 A2 DB 8E 78 9F EF FE 8D [20:28:45]CheckFolder [20:28:45]dirname=/storage/ofd_packets [20:28:45]CheckFolder done [20:28:45]ProducePacketName [20:28:45]name=ofd_packets/00202174 [20:28:45]NVStorageSaveData ofd_packets/00202174 [20:28:45]File name is /storage/ofd_packets/00202174 [20:28:45]Write 301 bytes [20:28:45]NVStorageSaveData done [20:28:45]OFDSenderStorePacket done [20:28:45]KKMCreateOFDPacket done [20:28:45]NVStorageSaveData kkm_last_timestamp [20:28:45]File name is /storage/kkm_last_timestamp [20:28:45]Write 4 bytes [20:28:45]NVStorageSaveData done [20:28:45]ExternCall_PrintAddStr [20:28:45]wPrintStart [20:28:45]Write to MH i2c: 01 00 00 86 02 88 [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: 01 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: 01 07 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [20:28:45]RasterBufferAndPrint [20:28:45]line Счет N : (1)449947 [20:28:45]line ИНН: 02508201610067 [20:28:45]line Контрольно-Кассовый Чек [20:28:45]line ПРОДАЖА [20:28:45]line ТРК (МРК, ГНК) : 52 [20:28:45]line Товар: 2710124130 [20:28:45]line Аи-92-К-2 [20:28:45]line 7.480 * 66.90 [20:28:45]line = 500.41 [20:28:45]line НДС 12% НСП 1% [20:28:45]line > о реализуемом товаре [20:28:45]line ОКРУГЛЕНИЕ: -0.41 [20:28:45]line ИТОГО: 500.00 [20:28:45]line Внесено: 500.00 [20:28:45]line СДАЧА: 0.00 [20:28:45]line НСП 1% : 4.43 [20:28:45]line НДС 12% : 53.14 [20:28:45]line Наличными: 500.00 [20:28:45]line Безнал.: 0.00 [20:28:45]line Место: АЗС № 171 "Партнер Нефть" [20:28:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:28:45]line СНО: Общий режим [20:28:45]line Чек 466 27.10.2024 20:28 [20:28:45]line Смена: 544 ФФД: 1.0 [20:28:45]line ЗНМ: 0300000109 [20:28:45]line РНМ: 0000000000091777 [20:28:45]line Версия ККМ: 001 [20:28:45]line ФМ: 0000000000871756 [20:28:45]line ФД: 202174 [20:28:45]line ФПД: 203932592458547 [20:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202845&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202174&fm=203932592458547&tin=02508201610067®Number=0000000000091777&sum=50000 [20:28:46]OFD Sender: Processing packet 202174 [packets to send 114, broken 113] [20:28:46]ProducePacketName [20:28:46]name=ofd_packets/00202174 [20:28:46]OFD Sender: To server: pG, [20:28:46]CommunicateWithHost lk.salyk.kg:30040 [20:28:46]ConnectInit lk.salyk.kg [20:28:46]written 0, free lines is 4095 [20:28:46]Connected sock=10 [20:28:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3C D8 07 01 51 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D2 01 00 00 F4 03 04 00 7D A2 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 15 03 00 35 04 06 00 B9 79 C1 BB 4B 33 A2 DB 8E 78 9F EF FE 8D [20:28:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 91 A8 47 00 70 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 15 03 00 F4 03 04 00 35 4E 1E 67 B6 04 01 00 00 85 9A 0F 05 1D 74 9B DA [20:28:46]CommunicateWithHost err = 0 [20:28:46]CheckOFDResponse [20:28:46]1017 (14) - 77093643461234 [20:28:46]1041 (16) - 0000000000871756 [20:28:46]1040 (4) - 202174 [20:28:46]1012 (4) - 27.10.2024 14:29 [20:28:46]1206 (1) - 0 [20:28:46]OFD Sender: Remove packet 202174 [20:28:46]ProducePacketName [20:28:46]name=ofd_packets/00202174 [20:28:46]NVStorageDeleteData [20:28:46]Write to MH i2c: 01 00 00 B1 02 B3 [20:28:46]Write i2c OK [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 07 00 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 96 0C 5C [20:28:46]RasterBufferAndPrint [20:28:46]line [20:28:46]line [20:28:46]line [20:28:46]line [20:28:46]line [20:28:46]written 0, free lines is 3228 [20:28:46]MH_Cut [20:28:46]Write to MH i2c: D1 01 00 B8 02 01 8C [20:28:46]Write i2c OK [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: D1 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: D1 01 00 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: D1 01 00 B8 02 00 8B [20:28:46]Write to MH i2c: 01 00 00 B9 02 BB [20:28:46]Write i2c OK [20:28:46]MH_I2C_Read... [20:28:46]OFD Sender: No OFD packet to send [20:28:47]*** Cut start [20:28:47]*** Purtial cut [20:28:47]*** Stage 1: CUTSNS_PIN = 1 [20:28:47]Read from MH i2c: 01 [20:28:47]MH_I2C_Read... [20:28:47]*** Stop cut motor [20:28:47]*** Cut end [20:28:47]Read from MH i2c: 01 07 00 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [20:28:47]process_action close_receipt done [20:28:47]requested_data is exist [20:28:47]produce_requested_data [20:28:47]requested_item fm.sn is exist - process it [20:28:47]wFMCommunicate request_size=4 [20:28:47]MH_SAM_APDU [20:28:47]CAPDU: 80 11 00 00 [20:28:47]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [20:28:47]Write i2c OK [20:28:47]MH_I2C_Read... [20:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:47]Read from MH i2c: E2 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: E2 17 00 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [20:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:28:47]wFMCommunicate OK [20:28:47]requested_item fd.num is exist - process it [20:28:47]SAM_PROTO_GetFieldsCounters [20:28:47]wFMCommunicate request_size=4 [20:28:47]MH_SAM_APDU [20:28:47]CAPDU: 80 13 00 00 [20:28:47]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [20:28:47]Write i2c OK [20:28:47]MH_I2C_Read... [20:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:47]Read from MH i2c: E2 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: E2 62 00 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: E2 62 00 BB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BE 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [20:28:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BE 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:47]wFMCommunicate OK [20:28:47]SAM_PROTO_GetFieldsCounters done [20:28:47]requested_item shift.num is exist - process it [20:28:47]requested_item shift.opened is exist - process it [20:28:47]req_shift_opened [20:28:47]FM_GetShiftState [20:28:47]SAM_PROTO_GetShiftState [20:28:47]wFMCommunicate request_size=4 [20:28:47]MH_SAM_APDU [20:28:47]CAPDU: 80 13 01 00 [20:28:47]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [20:28:47]Write i2c OK [20:28:47]MH_I2C_Read... [20:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:47]Read from MH i2c: E2 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: E2 0E 00 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3D [20:28:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:28:47]wFMCommunicate OK [20:28:47]SAM_PROTO_GetShiftState done [20:28:47]FM_GetShiftState done [20:28:47]req_shift_opened done [20:28:47]requested_item shift.open_date is exist - process it [20:28:47]req_shift_open_date [20:28:47]req_shift_open_date done [20:28:47]produce_requested_data done [20:28:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202174,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:28:47]process_action_free close_receipt [20:28:47]json_value_free [20:28:47]json_value_free done [20:28:47]process_json_proto returns [20:28:47]Send response to host [20:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202174,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:28:47]free response buf [20:28:47]execute_script done [20:28:47]execute_script returns [20:28:47]free content buf [20:28:47]Sock 9.Close socket [20:28:47]Sock 9.Thread stoped [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:46]accept exits with 7 [20:35:46]New connection [20:35:46]New thread 3066776932 created [20:35:46]Thread 3066920292 joined [20:35:46]Waiting for new connection... [20:35:46] Sock 7.Parse request [20:35:46]Sock 7.Check first char [20:35:46]Sock 7.First char is OK [20:35:46]request: POST /json_proto HTTP/1.0 [20:35:46]Method: POST [20:35:46]URL: /json_proto [20:35:46]Method is POST - this is cgi request [20:35:46]url: /json_proto [20:35:46]query_string will be loaded in cgi processing [20:35:46]execute_cgi json_proto POST (null) [20:35:46]execute_cgi path=json_proto method=POST [20:35:46]POST find Content-Length [20:35:46]Host: 172.17.63.195:8080 [20:35:46]Content-Length: 679 [20:35:46]Content-Type: application/json [20:35:46] [20:35:46]POST finish read [20:35:46]Found Content-Length = 679 [20:35:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [20:35:46]execute_script... [20:35:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [20:35:46]POST & json_proto [20:35:46]process_json_proto [20:35:46]json parsed OK: [20:35:46]protocol is kg_v1.0 [20:35:46]action value=close_receipt [20:35:46]process_action close_receipt [20:35:46]cmd_close_receipt [20:35:46]MH_GetDate [20:35:46]Write to MH i2c: F0 00 00 BD 02 AE [20:35:46]Write i2c OK [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: F0 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: F0 09 00 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: F0 09 00 BD 02 00 23 A4 1E 67 47 1B 1E 67 EA [20:35:46]GetLastDocTimeStamp 1730060925 [20:35:46]current date 1730061347 [20:35:46]FM_GetShiftState [20:35:46]SAM_PROTO_GetShiftState [20:35:46]wFMCommunicate request_size=4 [20:35:46]MH_SAM_APDU [20:35:46]CAPDU: 80 13 01 00 [20:35:46]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [20:35:46]Write i2c OK [20:35:46]MH_I2C_Read... [20:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:46]Read from MH i2c: E2 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: E2 0E 00 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 3F [20:35:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:35:46]wFMCommunicate OK [20:35:46]SAM_PROTO_GetShiftState done [20:35:46]FM_GetShiftState done [20:35:46]opened in 1729987312 [20:35:46]opened+sec_in_day 1730073712 [20:35:46]quantity*price = 100050 [20:35:46]sum+1 = 100052 [20:35:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 467 27.10.2024 20:35 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202175 ФПД: 278124976502810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203547&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202175&fm=278124976502810&tin=02508201610067®Number=0000000000091777&sum=100000 [20:35:47]StoreToDocumentArchive [20:35:47]shift 544 fd 202175 [20:35:47]save to /storage/0544/doc_00202175 [20:35:47]save last doc name /storage/0544/doc_00202175 to /storage/kkm_last_doc_name [20:35:47]save OK [20:35:47]Clear old archive folders... [20:35:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:35:47]tlvbuf is 015EB3A0 [20:35:47]SAM_PROTO_ClearQueue [20:35:47]wFMCommunicate request_size=4 [20:35:47]MH_SAM_APDU [20:35:47]CAPDU: 80 09 00 00 [20:35:47]Write to MH i2c: E2 08 00 CB 02 80 09 00 00 00 00 00 00 3F [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:47]Read from MH i2c: E2 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 03 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [20:35:47]RAPDU: 90 00 [20:35:47]wFMCommunicate OK [20:35:47]SAM_PROTO_ClearQueue done [20:35:47]KKMCreateOFDPacket [20:35:47]OFDProtocolAddRootSTLVToBuf [20:35:47]FM_MakeSignedData [20:35:47]FM_MakeSignedData [20:35:47]SAM_PROTO_SignData [20:35:47]wFMCommunicate request_size=4 [20:35:47]MH_SAM_APDU [20:35:47]CAPDU: 80 0D 01 02 [20:35:47]Write to MH i2c: E2 08 00 CC 02 80 0D 01 02 00 00 00 00 47 [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:47]Read from MH i2c: E2 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 03 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [20:35:47]RAPDU: 90 00 [20:35:47]wFMCommunicate OK [20:35:47]wFMCommunicate request_size=255 [20:35:47]MH_SAM_APDU [20:35:47]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 32 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 D3 01 00 00 F4 03 04 00 23 A4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 15 03 00 35 04 06 00 FC F4 04 6D [20:35:47]Write to MH i2c: E2 02 01 CD 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D3 01 00 00 F4 03 04 00 23 A4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 15 03 00 35 04 06 00 FC F4 04 6D 00 00 4B [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]OFD Sender: No OFD packet to send [20:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:47]Read from MH i2c: E2 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 03 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [20:35:47]RAPDU: 90 00 [20:35:47]wFMCommunicate OK [20:35:47]wFMCommunicate request_size=7 [20:35:47]MH_SAM_APDU [20:35:47]CAPDU: 80 0D 02 02 02 78 1A [20:35:47]Write to MH i2c: E2 0A 00 CE 02 80 0D 02 02 02 00 78 1A 00 00 E0 [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:47]Read from MH i2c: E2 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 03 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [20:35:47]RAPDU: 90 00 [20:35:47]wFMCommunicate OK [20:35:47]wFMCommunicate request_size=4 [20:35:47]MH_SAM_APDU [20:35:47]CAPDU: 80 0D 03 02 [20:35:47]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:47]Read from MH i2c: E2 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 0B 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 0B 00 CF 02 00 AA BA 96 30 D3 D0 B5 31 90 00 00 [20:35:47]RAPDU: AA BA 96 30 D3 D0 B5 31 90 00 [20:35:47]wFMCommunicate OK [20:35:47]SAM_PROTO_SignData done [20:35:47]FM_MakeSignedData done [20:35:47]CreateOFDProtocolMessage [20:35:47]wFMCommunicate request_size=4 [20:35:47]MH_SAM_APDU [20:35:47]CAPDU: 80 11 00 00 [20:35:47]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:47]Read from MH i2c: E2 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 17 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [20:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:35:47]wFMCommunicate OK [20:35:47]CreateOFDProtocolMessage done [20:35:47]OFDSenderStorePacket 202175 [20:35:47]StoreOFDPacket docnum=202175 [20:35:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 16 0B 04 01 13 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D3 01 00 00 F4 03 04 00 23 A4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 15 03 00 35 04 06 00 FC F4 04 6D 78 1A AA BA 96 30 D3 D0 B5 31 [20:35:47]CheckFolder [20:35:47]dirname=/storage/ofd_packets [20:35:47]CheckFolder done [20:35:47]ProducePacketName [20:35:47]name=ofd_packets/00202175 [20:35:47]NVStorageSaveData ofd_packets/00202175 [20:35:47]File name is /storage/ofd_packets/00202175 [20:35:47]Write 298 bytes [20:35:47]NVStorageSaveData done [20:35:47]OFDSenderStorePacket done [20:35:47]KKMCreateOFDPacket done [20:35:47]NVStorageSaveData kkm_last_timestamp [20:35:47]File name is /storage/kkm_last_timestamp [20:35:47]Write 4 bytes [20:35:47]NVStorageSaveData done [20:35:47]ExternCall_PrintAddStr [20:35:47]wPrintStart [20:35:47]Write to MH i2c: 01 00 00 D1 02 D3 [20:35:47]Write i2c OK [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 [20:35:47]MH_I2C_Read... [20:35:47]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [20:35:47]RasterBufferAndPrint [20:35:47]line Счет N : (1)449949 [20:35:47]line ИНН: 02508201610067 [20:35:47]line Контрольно-Кассовый Чек [20:35:47]line ПРОДАЖА [20:35:47]line ТРК (МРК, ГНК) : 33 [20:35:47]line Товар: 2710194210 [20:35:47]line ДТ-К-2 [20:35:47]line 13.130 * 76.20 [20:35:47]line = 1000.51 [20:35:47]line НДС 12% НСП 1% [20:35:47]line > о реализуемом товаре [20:35:47]line ОКРУГЛЕНИЕ: -0.51 [20:35:47]line ИТОГО: 1000.00 [20:35:47]line Внесено: 1000.00 [20:35:47]line СДАЧА: 0.00 [20:35:47]line НСП 1% : 8.85 [20:35:47]line НДС 12% : 106.25 [20:35:47]line Наличными: 1000.00 [20:35:47]line Безнал.: 0.00 [20:35:47]line Место: АЗС № 171 "Партнер Нефть" [20:35:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:35:47]line СНО: Общий режим [20:35:47]line Чек 467 27.10.2024 20:35 [20:35:47]line Смена: 544 ФФД: 1.0 [20:35:47]line ЗНМ: 0300000109 [20:35:47]line РНМ: 0000000000091777 [20:35:47]line Версия ККМ: 001 [20:35:47]line ФМ: 0000000000871756 [20:35:47]line ФД: 202175 [20:35:47]line ФПД: 278124976502810 [20:35:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203547&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202175&fm=278124976502810&tin=02508201610067®Number=0000000000091777&sum=100000 [20:35:48]OFD Sender: Processing packet 202175 [packets to send 114, broken 113] [20:35:48]ProducePacketName [20:35:48]name=ofd_packets/00202175 [20:35:48]OFD Sender: To server: pG, [20:35:48]CommunicateWithHost lk.salyk.kg:30040 [20:35:48]ConnectInit lk.salyk.kg [20:35:48]written 0, free lines is 4095 [20:35:48]Connected sock=10 [20:35:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 16 0B 04 01 13 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 D3 01 00 00 F4 03 04 00 23 A4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 15 03 00 35 04 06 00 FC F4 04 6D 78 1A AA BA 96 30 D3 D0 B5 31 [20:35:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C7 1F 47 00 6A 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 15 03 00 F4 03 04 00 DB 4F 1E 67 B6 04 01 00 00 26 14 F1 16 23 2B 61 B8 [20:35:48]CommunicateWithHost err = 0 [20:35:48]CheckOFDResponse [20:35:48]1017 (14) - 77093643461234 [20:35:48]1041 (16) - 0000000000871756 [20:35:48]1040 (4) - 202175 [20:35:48]1012 (4) - 27.10.2024 14:36 [20:35:48]1206 (1) - 0 [20:35:48]OFD Sender: Remove packet 202175 [20:35:48]ProducePacketName [20:35:48]name=ofd_packets/00202175 [20:35:48]NVStorageDeleteData [20:35:48]Write to MH i2c: 01 00 00 FC 02 FE [20:35:48]Write i2c OK [20:35:48]MH_I2C_Read... [20:35:48]Read from MH i2c: 01 [20:35:48]MH_I2C_Read... [20:35:48]Read from MH i2c: 01 07 00 [20:35:48]MH_I2C_Read... [20:35:48]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 95 0C A6 [20:35:48]RasterBufferAndPrint [20:35:48]line [20:35:48]line [20:35:48]line [20:35:48]line [20:35:48]line [20:35:48]written 0, free lines is 3226 [20:35:48]MH_Cut [20:35:48]Write to MH i2c: D1 01 00 03 03 01 D8 [20:35:48]Write i2c OK [20:35:48]MH_I2C_Read... [20:35:48]Read from MH i2c: D1 [20:35:48]MH_I2C_Read... [20:35:48]Read from MH i2c: D1 01 00 [20:35:48]MH_I2C_Read... [20:35:48]Read from MH i2c: D1 01 00 03 03 00 D7 [20:35:48]Write to MH i2c: 01 00 00 04 03 07 [20:35:48]Write i2c OK [20:35:48]MH_I2C_Read... [20:35:48]OFD Sender: No OFD packet to send [20:35:49]*** Cut start [20:35:49]*** Purtial cut [20:35:49]*** Stage 1: CUTSNS_PIN = 1 [20:35:49]Read from MH i2c: 01 [20:35:49]MH_I2C_Read... [20:35:49]*** Stop cut motor [20:35:49]*** Cut end [20:35:49]Read from MH i2c: 01 07 00 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [20:35:49]process_action close_receipt done [20:35:49]requested_data is exist [20:35:49]produce_requested_data [20:35:49]requested_item fm.sn is exist - process it [20:35:49]wFMCommunicate request_size=4 [20:35:49]MH_SAM_APDU [20:35:49]CAPDU: 80 11 00 00 [20:35:49]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [20:35:49]Write i2c OK [20:35:49]MH_I2C_Read... [20:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:49]Read from MH i2c: E2 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: E2 17 00 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D7 [20:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:35:49]wFMCommunicate OK [20:35:49]requested_item fd.num is exist - process it [20:35:49]SAM_PROTO_GetFieldsCounters [20:35:49]wFMCommunicate request_size=4 [20:35:49]MH_SAM_APDU [20:35:49]CAPDU: 80 13 00 00 [20:35:49]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [20:35:49]Write i2c OK [20:35:49]MH_I2C_Read... [20:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:49]Read from MH i2c: E2 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: E2 62 00 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: E2 62 00 06 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BF 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [20:35:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BF 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:49]wFMCommunicate OK [20:35:49]SAM_PROTO_GetFieldsCounters done [20:35:49]requested_item shift.num is exist - process it [20:35:49]requested_item shift.opened is exist - process it [20:35:49]req_shift_opened [20:35:49]FM_GetShiftState [20:35:49]SAM_PROTO_GetShiftState [20:35:49]wFMCommunicate request_size=4 [20:35:49]MH_SAM_APDU [20:35:49]CAPDU: 80 13 01 00 [20:35:49]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [20:35:49]Write i2c OK [20:35:49]MH_I2C_Read... [20:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:49]Read from MH i2c: E2 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: E2 0E 00 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 89 [20:35:49]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:35:49]wFMCommunicate OK [20:35:49]SAM_PROTO_GetShiftState done [20:35:49]FM_GetShiftState done [20:35:49]req_shift_opened done [20:35:49]requested_item shift.open_date is exist - process it [20:35:49]req_shift_open_date [20:35:49]req_shift_open_date done [20:35:49]produce_requested_data done [20:35:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202175,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:35:49]process_action_free close_receipt [20:35:49]json_value_free [20:35:49]json_value_free done [20:35:49]process_json_proto returns [20:35:49]Send response to host [20:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202175,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:35:49]free response buf [20:35:49]execute_script done [20:35:49]execute_script returns [20:35:49]free content buf [20:35:49]Sock 7.Close socket [20:35:49]Sock 7.Thread stoped [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:34]accept exits with 9 [20:36:34]New connection [20:36:34]New thread 3066920292 created [20:36:34]Thread 3066776932 joined [20:36:34]Waiting for new connection... [20:36:34] Sock 9.Parse request [20:36:34]Sock 9.Check first char [20:36:34]Sock 9.First char is OK [20:36:34]request: POST /json_proto HTTP/1.0 [20:36:34]Method: POST [20:36:34]URL: /json_proto [20:36:34]Method is POST - this is cgi request [20:36:34]url: /json_proto [20:36:34]query_string will be loaded in cgi processing [20:36:34]execute_cgi json_proto POST (null) [20:36:34]execute_cgi path=json_proto method=POST [20:36:34]POST find Content-Length [20:36:34]Host: 172.17.63.195:8080 [20:36:34]Content-Length: 682 [20:36:34]Content-Type: application/json [20:36:34] [20:36:34]POST finish read [20:36:34]Found Content-Length = 682 [20:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:36:34]execute_script... [20:36:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:36:34]POST & json_proto [20:36:34]process_json_proto [20:36:34]json parsed OK: [20:36:34]protocol is kg_v1.0 [20:36:34]action value=close_receipt [20:36:34]process_action close_receipt [20:36:34]cmd_close_receipt [20:36:34]MH_GetDate [20:36:34]Write to MH i2c: F0 00 00 08 03 FA [20:36:34]Write i2c OK [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: F0 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: F0 09 00 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: F0 09 00 08 03 00 53 A4 1E 67 47 1B 1E 67 66 [20:36:34]GetLastDocTimeStamp 1730061347 [20:36:34]current date 1730061395 [20:36:34]FM_GetShiftState [20:36:34]SAM_PROTO_GetShiftState [20:36:34]wFMCommunicate request_size=4 [20:36:34]MH_SAM_APDU [20:36:34]CAPDU: 80 13 01 00 [20:36:34]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [20:36:34]Write i2c OK [20:36:34]MH_I2C_Read... [20:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:34]Read from MH i2c: E2 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: E2 0E 00 [20:36:34]MH_I2C_Read... [20:36:34]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 8B [20:36:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:36:34]wFMCommunicate OK [20:36:34]SAM_PROTO_GetShiftState done [20:36:34]FM_GetShiftState done [20:36:34]opened in 1729987312 [20:36:34]opened+sec_in_day 1730073712 [20:36:34]quantity*price = 100015 [20:36:34]sum+1 = 100017 [20:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 468 27.10.2024 20:36 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202176 ФПД: 98006154819184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203635&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202176&fm=98006154819184&tin=02508201610067®Number=0000000000091777&sum=100000 [20:36:35]StoreToDocumentArchive [20:36:35]shift 544 fd 202176 [20:36:35]save to /storage/0544/doc_00202176 [20:36:35]save last doc name /storage/0544/doc_00202176 to /storage/kkm_last_doc_name [20:36:35]save OK [20:36:35]Clear old archive folders... [20:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:35]tlvbuf is 015F1B10 [20:36:35]SAM_PROTO_ClearQueue [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 09 00 00 [20:36:35]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:36]Read from MH i2c: E2 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 03 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [20:36:36]RAPDU: 90 00 [20:36:36]wFMCommunicate OK [20:36:36]SAM_PROTO_ClearQueue done [20:36:36]KKMCreateOFDPacket [20:36:36]OFDProtocolAddRootSTLVToBuf [20:36:36]FM_MakeSignedData [20:36:36]FM_MakeSignedData [20:36:36]SAM_PROTO_SignData [20:36:36]wFMCommunicate request_size=4 [20:36:36]MH_SAM_APDU [20:36:36]CAPDU: 80 0D 01 02 [20:36:36]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:36]Read from MH i2c: E2 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 03 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [20:36:36]RAPDU: 90 00 [20:36:36]wFMCommunicate OK [20:36:36]wFMCommunicate request_size=255 [20:36:36]MH_SAM_APDU [20:36:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 01 00 00 F4 03 04 00 53 A4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 15 03 00 35 04 06 00 59 [20:36:36]Write to MH i2c: E2 02 01 18 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 01 00 00 F4 03 04 00 53 A4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 15 03 00 35 04 06 00 59 00 00 C5 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:36]Read from MH i2c: E2 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 03 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [20:36:36]RAPDU: 90 00 [20:36:36]wFMCommunicate OK [20:36:36]wFMCommunicate request_size=10 [20:36:36]MH_SAM_APDU [20:36:36]CAPDU: 80 0D 02 02 05 22 D6 0B 36 70 [20:36:36]Write to MH i2c: E2 0D 00 19 03 80 0D 02 02 05 00 22 D6 0B 36 70 00 00 49 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:36]Read from MH i2c: E2 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 03 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [20:36:36]RAPDU: 90 00 [20:36:36]wFMCommunicate OK [20:36:36]wFMCommunicate request_size=4 [20:36:36]MH_SAM_APDU [20:36:36]CAPDU: 80 0D 03 02 [20:36:36]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:36]Read from MH i2c: E2 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 0B 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 0B 00 1A 03 00 8B 78 01 5A 13 50 82 BF 90 00 9B [20:36:36]RAPDU: 8B 78 01 5A 13 50 82 BF 90 00 [20:36:36]wFMCommunicate OK [20:36:36]SAM_PROTO_SignData done [20:36:36]FM_MakeSignedData done [20:36:36]CreateOFDProtocolMessage [20:36:36]wFMCommunicate request_size=4 [20:36:36]MH_SAM_APDU [20:36:36]CAPDU: 80 11 00 00 [20:36:36]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:36]Read from MH i2c: E2 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 17 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 ED [20:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:36:36]wFMCommunicate OK [20:36:36]CreateOFDProtocolMessage done [20:36:36]OFDSenderStorePacket 202176 [20:36:36]StoreOFDPacket docnum=202176 [20:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9D 3D 07 01 2C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 01 00 00 F4 03 04 00 53 A4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 15 03 00 35 04 06 00 59 22 D6 0B 36 70 8B 78 01 5A 13 50 82 BF [20:36:36]CheckFolder [20:36:36]dirname=/storage/ofd_packets [20:36:36]CheckFolder done [20:36:36]ProducePacketName [20:36:36]name=ofd_packets/00202176 [20:36:36]NVStorageSaveData ofd_packets/00202176 [20:36:36]File name is /storage/ofd_packets/00202176 [20:36:36]Write 301 bytes [20:36:36]NVStorageSaveData done [20:36:36]OFDSenderStorePacket done [20:36:36]KKMCreateOFDPacket done [20:36:36]NVStorageSaveData kkm_last_timestamp [20:36:36]File name is /storage/kkm_last_timestamp [20:36:36]Write 4 bytes [20:36:36]NVStorageSaveData done [20:36:36]ExternCall_PrintAddStr [20:36:36]wPrintStart [20:36:36]Write to MH i2c: 01 00 00 1C 03 1F [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 07 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [20:36:36]RasterBufferAndPrint [20:36:36]line Счет N : (1)449950 [20:36:36]line ИНН: 02508201610067 [20:36:36]line Контрольно-Кассовый Чек [20:36:36]line ПРОДАЖА [20:36:36]line ТРК (МРК, ГНК) : 52 [20:36:36]line Товар: 2710124130 [20:36:36]line Аи-92-К-2 [20:36:36]line 14.950 * 66.90 [20:36:36]line = 1000.16 [20:36:36]line НДС 12% НСП 1% [20:36:36]line > о реализуемом товаре [20:36:36]line ОКРУГЛЕНИЕ: -0.16 [20:36:36]line ИТОГО: 1000.00 [20:36:36]line Внесено: 1000.00 [20:36:36]line СДАЧА: 0.00 [20:36:36]line НСП 1% : 8.85 [20:36:36]line НДС 12% : 106.21 [20:36:36]line Наличными: 1000.00 [20:36:36]line Безнал.: 0.00 [20:36:36]line Место: АЗС № 171 "Партнер Нефть" [20:36:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:36:36]line СНО: Общий режим [20:36:36]line Чек 468 27.10.2024 20:36 [20:36:36]line Смена: 544 ФФД: 1.0 [20:36:36]line ЗНМ: 0300000109 [20:36:36]line РНМ: 0000000000091777 [20:36:36]line Версия ККМ: 001 [20:36:36]line ФМ: 0000000000871756 [20:36:36]line ФД: 202176 [20:36:36]line ФПД: 98006154819184 [20:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203635&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202176&fm=98006154819184&tin=02508201610067®Number=0000000000091777&sum=100000 [20:36:36]written 0, free lines is 4095 [20:36:36]OFD Sender: Processing packet 202176 [packets to send 114, broken 113] [20:36:36]ProducePacketName [20:36:36]name=ofd_packets/00202176 [20:36:36]OFD Sender: To server: pG, [20:36:36]CommunicateWithHost lk.salyk.kg:30040 [20:36:36]ConnectInit lk.salyk.kg [20:36:36]Connected sock=10 [20:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9D 3D 07 01 2C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D4 01 00 00 F4 03 04 00 53 A4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 15 03 00 35 04 06 00 59 22 D6 0B 36 70 8B 78 01 5A 13 50 82 BF [20:36:36]Write to MH i2c: 01 00 00 47 03 4A [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 07 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 98 0C F5 [20:36:36]RasterBufferAndPrint [20:36:36]line [20:36:36]line [20:36:36]line [20:36:36]line [20:36:36]line [20:36:36]written 0, free lines is 3229 [20:36:36]MH_Cut [20:36:36]Write to MH i2c: D1 01 00 4E 03 01 23 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: D1 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: D1 01 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: D1 01 00 4E 03 00 22 [20:36:36]Write to MH i2c: 01 00 00 4F 03 52 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 02 6E 47 00 14 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 15 03 00 F4 03 04 00 0C 50 1E 67 B6 04 01 00 00 B4 FF EF D4 06 71 04 BE [20:36:37]CommunicateWithHost err = 0 [20:36:37]CheckOFDResponse [20:36:37]1017 (14) - 77093643461234 [20:36:37]1041 (16) - 0000000000871756 [20:36:37]1040 (4) - 202176 [20:36:37]1012 (4) - 27.10.2024 14:37 [20:36:37]1206 (1) - 0 [20:36:37]OFD Sender: Remove packet 202176 [20:36:37]ProducePacketName [20:36:37]name=ofd_packets/00202176 [20:36:37]NVStorageDeleteData [20:36:37]OFD Sender: No OFD packet to send [20:36:37]*** Cut start [20:36:37]*** Purtial cut [20:36:37]*** Stage 1: CUTSNS_PIN = 1 [20:36:38]Read from MH i2c: 01 [20:36:38]MH_I2C_Read... [20:36:38]*** Stop cut motor [20:36:38]*** Cut end [20:36:38]Read from MH i2c: 01 07 00 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [20:36:38]process_action close_receipt done [20:36:38]requested_data is exist [20:36:38]produce_requested_data [20:36:38]requested_item fm.sn is exist - process it [20:36:38]wFMCommunicate request_size=4 [20:36:38]MH_SAM_APDU [20:36:38]CAPDU: 80 11 00 00 [20:36:38]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [20:36:38]Write i2c OK [20:36:38]MH_I2C_Read... [20:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:38]Read from MH i2c: E2 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 17 00 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [20:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:36:38]wFMCommunicate OK [20:36:38]requested_item fd.num is exist - process it [20:36:38]SAM_PROTO_GetFieldsCounters [20:36:38]wFMCommunicate request_size=4 [20:36:38]MH_SAM_APDU [20:36:38]CAPDU: 80 13 00 00 [20:36:38]Write to MH i2c: E2 08 00 51 03 80 13 00 00 00 00 00 00 D0 [20:36:38]Write i2c OK [20:36:38]MH_I2C_Read... [20:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:38]Read from MH i2c: E2 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 62 00 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 62 00 51 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C0 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [20:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C0 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:38]wFMCommunicate OK [20:36:38]SAM_PROTO_GetFieldsCounters done [20:36:38]requested_item shift.num is exist - process it [20:36:38]requested_item shift.opened is exist - process it [20:36:38]req_shift_opened [20:36:38]FM_GetShiftState [20:36:38]SAM_PROTO_GetShiftState [20:36:38]wFMCommunicate request_size=4 [20:36:38]MH_SAM_APDU [20:36:38]CAPDU: 80 13 01 00 [20:36:38]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [20:36:38]Write i2c OK [20:36:38]MH_I2C_Read... [20:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:38]Read from MH i2c: E2 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 0E 00 [20:36:38]MH_I2C_Read... [20:36:38]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D4 [20:36:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:36:38]wFMCommunicate OK [20:36:38]SAM_PROTO_GetShiftState done [20:36:38]FM_GetShiftState done [20:36:38]req_shift_opened done [20:36:38]requested_item shift.open_date is exist - process it [20:36:38]req_shift_open_date [20:36:38]req_shift_open_date done [20:36:38]produce_requested_data done [20:36:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202176,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:36:38]process_action_free close_receipt [20:36:38]json_value_free [20:36:38]json_value_free done [20:36:38]process_json_proto returns [20:36:38]Send response to host [20:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202176,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:36:38]free response buf [20:36:38]execute_script done [20:36:38]execute_script returns [20:36:38]free content buf [20:36:38]Sock 9.Close socket [20:36:38]Sock 9.Thread stoped [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:20]accept exits with 7 [20:41:20]New connection [20:41:20]New thread 3066776932 created [20:41:20]Thread 3066920292 joined [20:41:20]Waiting for new connection... [20:41:20] Sock 7.Parse request [20:41:20]Sock 7.Check first char [20:41:20]Sock 7.First char is OK [20:41:20]request: POST /json_proto HTTP/1.0 [20:41:20]Method: POST [20:41:20]URL: /json_proto [20:41:20]Method is POST - this is cgi request [20:41:20]url: /json_proto [20:41:20]query_string will be loaded in cgi processing [20:41:20]execute_cgi json_proto POST (null) [20:41:20]execute_cgi path=json_proto method=POST [20:41:20]POST find Content-Length [20:41:20]Host: 172.17.63.195:8080 [20:41:20]Content-Length: 677 [20:41:20]Content-Type: application/json [20:41:20] [20:41:20]POST finish read [20:41:20]Found Content-Length = 677 [20:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:41:20]execute_script... [20:41: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)449951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:41:20]POST & json_proto [20:41:20]process_json_proto [20:41:20]json parsed OK: [20:41:20]protocol is kg_v1.0 [20:41:20]action value=close_receipt [20:41:20]process_action close_receipt [20:41:20]cmd_close_receipt [20:41:20]MH_GetDate [20:41:20]Write to MH i2c: F0 00 00 53 03 45 [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: F0 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: F0 09 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: F0 09 00 53 03 00 71 A5 1E 67 47 1B 1E 67 D0 [20:41:20]GetLastDocTimeStamp 1730061395 [20:41:20]current date 1730061681 [20:41:20]FM_GetShiftState [20:41:20]SAM_PROTO_GetShiftState [20:41:20]wFMCommunicate request_size=4 [20:41:20]MH_SAM_APDU [20:41:20]CAPDU: 80 13 01 00 [20:41:20]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:20]Read from MH i2c: E2 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 0E 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D6 [20:41:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:41:20]wFMCommunicate OK [20:41:20]SAM_PROTO_GetShiftState done [20:41:20]FM_GetShiftState done [20:41:20]opened in 1729987312 [20:41:20]opened+sec_in_day 1730073712 [20:41:20]quantity*price = 30038 [20:41:20]sum+1 = 30039 [20:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 469 27.10.2024 20:41 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202177 ФПД: 37794483348623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204121&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202177&fm=37794483348623&tin=02508201610067®Number=0000000000091777&sum=30000 [20:41:21]StoreToDocumentArchive [20:41:21]shift 544 fd 202177 [20:41:21]save to /storage/0544/doc_00202177 [20:41:21]save last doc name /storage/0544/doc_00202177 to /storage/kkm_last_doc_name [20:41:21]save OK [20:41:21]Clear old archive folders... [20:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:21]tlvbuf is 015EC380 [20:41:21]SAM_PROTO_ClearQueue [20:41:21]wFMCommunicate request_size=4 [20:41:21]MH_SAM_APDU [20:41:21]CAPDU: 80 09 00 00 [20:41:21]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:21]Read from MH i2c: E2 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 03 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [20:41:21]RAPDU: 90 00 [20:41:21]wFMCommunicate OK [20:41:21]SAM_PROTO_ClearQueue done [20:41:21]KKMCreateOFDPacket [20:41:21]OFDProtocolAddRootSTLVToBuf [20:41:21]FM_MakeSignedData [20:41:21]FM_MakeSignedData [20:41:21]SAM_PROTO_SignData [20:41:21]wFMCommunicate request_size=4 [20:41:21]MH_SAM_APDU [20:41:21]CAPDU: 80 0D 01 02 [20:41:21]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:21]Read from MH i2c: E2 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 03 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [20:41:21]RAPDU: 90 00 [20:41:21]wFMCommunicate OK [20:41:21]wFMCommunicate request_size=255 [20:41:21]MH_SAM_APDU [20:41:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 01 00 00 F4 03 04 00 71 A5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 15 03 00 35 04 06 00 22 [20:41:21]Write to MH i2c: E2 02 01 63 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 01 00 00 F4 03 04 00 71 A5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 15 03 00 35 04 06 00 22 00 00 F4 [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:21]Read from MH i2c: E2 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 03 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [20:41:21]RAPDU: 90 00 [20:41:21]wFMCommunicate OK [20:41:21]wFMCommunicate request_size=10 [20:41:21]MH_SAM_APDU [20:41:21]CAPDU: 80 0D 02 02 05 5F B6 C1 24 8F [20:41:21]Write to MH i2c: E2 0D 00 64 03 80 0D 02 02 05 00 5F B6 C1 24 8F 00 00 74 [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:21]Read from MH i2c: E2 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 03 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [20:41:21]RAPDU: 90 00 [20:41:21]wFMCommunicate OK [20:41:21]wFMCommunicate request_size=4 [20:41:21]MH_SAM_APDU [20:41:21]CAPDU: 80 0D 03 02 [20:41:21]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:21]Read from MH i2c: E2 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 0B 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 0B 00 65 03 00 48 1A C0 7A B7 28 CD 66 90 00 92 [20:41:21]RAPDU: 48 1A C0 7A B7 28 CD 66 90 00 [20:41:21]wFMCommunicate OK [20:41:21]SAM_PROTO_SignData done [20:41:21]FM_MakeSignedData done [20:41:21]CreateOFDProtocolMessage [20:41:21]wFMCommunicate request_size=4 [20:41:21]MH_SAM_APDU [20:41:21]CAPDU: 80 11 00 00 [20:41:21]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:21]Read from MH i2c: E2 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 17 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [20:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:41:21]wFMCommunicate OK [20:41:21]CreateOFDProtocolMessage done [20:41:21]OFDSenderStorePacket 202177 [20:41:21]StoreOFDPacket docnum=202177 [20:41:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 61 7A 07 01 99 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 01 00 00 F4 03 04 00 71 A5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 15 03 00 35 04 06 00 22 5F B6 C1 24 8F 48 1A C0 7A B7 28 CD 66 [20:41:21]CheckFolder [20:41:21]dirname=/storage/ofd_packets [20:41:21]CheckFolder done [20:41:21]ProducePacketName [20:41:21]name=ofd_packets/00202177 [20:41:21]NVStorageSaveData ofd_packets/00202177 [20:41:21]File name is /storage/ofd_packets/00202177 [20:41:21]Write 301 bytes [20:41:21]NVStorageSaveData done [20:41:21]OFDSenderStorePacket done [20:41:21]KKMCreateOFDPacket done [20:41:21]NVStorageSaveData kkm_last_timestamp [20:41:21]File name is /storage/kkm_last_timestamp [20:41:21]Write 4 bytes [20:41:21]NVStorageSaveData done [20:41:21]ExternCall_PrintAddStr [20:41:21]wPrintStart [20:41:21]Write to MH i2c: 01 00 00 67 03 6A [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: 01 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: 01 07 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [20:41:21]RasterBufferAndPrint [20:41:21]line Счет N : (1)449951 [20:41:21]line ИНН: 02508201610067 [20:41:21]line Контрольно-Кассовый Чек [20:41:21]line ПРОДАЖА [20:41:21]line ТРК (МРК, ГНК) : 52 [20:41:21]line Товар: 2710124130 [20:41:21]line Аи-92-К-2 [20:41:21]line 4.490 * 66.90 [20:41:21]line = 300.38 [20:41:21]line НДС 12% НСП 1% [20:41:21]line > о реализуемом товаре [20:41:21]line ОКРУГЛЕНИЕ: -0.38 [20:41:21]line ИТОГО: 300.00 [20:41:21]line Внесено: 300.00 [20:41:21]line СДАЧА: 0.00 [20:41:21]line НСП 1% : 2.66 [20:41:21]line НДС 12% : 31.90 [20:41:21]line Наличными: 300.00 [20:41:21]line Безнал.: 0.00 [20:41:21]line Место: АЗС № 171 "Партнер Нефть" [20:41:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:41:21]line СНО: Общий режим [20:41:21]line Чек 469 27.10.2024 20:41 [20:41:21]line Смена: 544 ФФД: 1.0 [20:41:21]line ЗНМ: 0300000109 [20:41:21]line РНМ: 0000000000091777 [20:41:21]line Версия ККМ: 001 [20:41:21]line ФМ: 0000000000871756 [20:41:21]line ФД: 202177 [20:41:21]line ФПД: 37794483348623 [20:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204121&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202177&fm=37794483348623&tin=02508201610067®Number=0000000000091777&sum=30000 [20:41:22]OFD Sender: Processing packet 202177 [packets to send 114, broken 113] [20:41:22]ProducePacketName [20:41:22]name=ofd_packets/00202177 [20:41:22]OFD Sender: To server: pG, [20:41:22]CommunicateWithHost lk.salyk.kg:30040 [20:41:22]ConnectInit lk.salyk.kg [20:41:22]written 0, free lines is 4095 [20:41:22]Connected sock=10 [20:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 61 7A 07 01 99 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D5 01 00 00 F4 03 04 00 71 A5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 15 03 00 35 04 06 00 22 5F B6 C1 24 8F 48 1A C0 7A B7 28 CD 66 [20:41:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4B 8D 47 00 14 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 15 03 00 F4 03 04 00 2A 51 1E 67 B6 04 01 00 00 86 2A 4E B3 B4 15 F1 1F [20:41:22]CommunicateWithHost err = 0 [20:41:22]CheckOFDResponse [20:41:22]1017 (14) - 77093643461234 [20:41:22]1041 (16) - 0000000000871756 [20:41:22]1040 (4) - 202177 [20:41:22]1012 (4) - 27.10.2024 14:41 [20:41:22]1206 (1) - 0 [20:41:22]OFD Sender: Remove packet 202177 [20:41:22]ProducePacketName [20:41:22]name=ofd_packets/00202177 [20:41:22]NVStorageDeleteData [20:41:22]Write to MH i2c: 01 00 00 92 03 95 [20:41:22]Write i2c OK [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: 01 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: 01 07 00 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 92 0C 3A [20:41:22]RasterBufferAndPrint [20:41:22]line [20:41:22]line [20:41:22]line [20:41:22]line [20:41:22]line [20:41:22]written 0, free lines is 3223 [20:41:22]MH_Cut [20:41:22]Write to MH i2c: D1 01 00 99 03 01 6E [20:41:22]Write i2c OK [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: D1 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: D1 01 00 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: D1 01 00 99 03 00 6D [20:41:22]Write to MH i2c: 01 00 00 9A 03 9D [20:41:22]Write i2c OK [20:41:22]MH_I2C_Read... [20:41:23]OFD Sender: No OFD packet to send [20:41:23]*** Cut start [20:41:23]*** Purtial cut [20:41:23]*** Stage 1: CUTSNS_PIN = 1 [20:41:23]Read from MH i2c: 01 [20:41:23]MH_I2C_Read... [20:41:23]*** Stop cut motor [20:41:23]*** Cut end [20:41:23]Read from MH i2c: 01 07 00 [20:41:23]MH_I2C_Read... [20:41:23]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [20:41:23]process_action close_receipt done [20:41:23]requested_data is exist [20:41:23]produce_requested_data [20:41:23]requested_item fm.sn is exist - process it [20:41:23]wFMCommunicate request_size=4 [20:41:23]MH_SAM_APDU [20:41:23]CAPDU: 80 11 00 00 [20:41:23]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [20:41:23]Write i2c OK [20:41:23]MH_I2C_Read... [20:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:23]Read from MH i2c: E2 [20:41:23]MH_I2C_Read... [20:41:23]Read from MH i2c: E2 17 00 [20:41:23]MH_I2C_Read... [20:41:23]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [20:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:41:23]wFMCommunicate OK [20:41:23]requested_item fd.num is exist - process it [20:41:23]SAM_PROTO_GetFieldsCounters [20:41:23]wFMCommunicate request_size=4 [20:41:23]MH_SAM_APDU [20:41:23]CAPDU: 80 13 00 00 [20:41:23]Write to MH i2c: E2 08 00 9C 03 80 13 00 00 00 00 00 00 1B [20:41:23]Write i2c OK [20:41:23]MH_I2C_Read... [20:41:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:23]Read from MH i2c: E2 [20:41:23]MH_I2C_Read... [20:41:23]Read from MH i2c: E2 62 00 [20:41:23]MH_I2C_Read... [20:41:23]Read from MH i2c: E2 62 00 9C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C1 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [20:41:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C1 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:23]wFMCommunicate OK [20:41:23]SAM_PROTO_GetFieldsCounters done [20:41:23]requested_item shift.num is exist - process it [20:41:23]requested_item shift.opened is exist - process it [20:41:23]req_shift_opened [20:41:23]FM_GetShiftState [20:41:23]SAM_PROTO_GetShiftState [20:41:23]wFMCommunicate request_size=4 [20:41:23]MH_SAM_APDU [20:41:23]CAPDU: 80 13 01 00 [20:41:23]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [20:41:23]Write i2c OK [20:41:23]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 0E 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1F [20:41:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:41:24]wFMCommunicate OK [20:41:24]SAM_PROTO_GetShiftState done [20:41:24]FM_GetShiftState done [20:41:24]req_shift_opened done [20:41:24]requested_item shift.open_date is exist - process it [20:41:24]req_shift_open_date [20:41:24]req_shift_open_date done [20:41:24]produce_requested_data done [20:41:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202177,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:41:24]process_action_free close_receipt [20:41:24]json_value_free [20:41:24]json_value_free done [20:41:24]process_json_proto returns [20:41:24]Send response to host [20:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202177,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:41:24]free response buf [20:41:24]execute_script done [20:41:24]execute_script returns [20:41:24]free content buf [20:41:24]Sock 7.Close socket [20:41:24]Sock 7.Thread stoped [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:07]accept exits with 9 [20:42:07]New connection [20:42:07]New thread 3066920292 created [20:42:07]Thread 3066776932 joined [20:42:07]Waiting for new connection... [20:42:07] Sock 9.Parse request [20:42:07]Sock 9.Check first char [20:42:07]Sock 9.First char is OK [20:42:07]request: POST /json_proto HTTP/1.0 [20:42:07]Method: POST [20:42:07]URL: /json_proto [20:42:07]Method is POST - this is cgi request [20:42:07]url: /json_proto [20:42:07]query_string will be loaded in cgi processing [20:42:07]execute_cgi json_proto POST (null) [20:42:07]execute_cgi path=json_proto method=POST [20:42:07]POST find Content-Length [20:42:07]Host: 172.17.63.195:8080 [20:42:07]Content-Length: 682 [20:42:07]Content-Type: application/json [20:42:07] [20:42:07]POST finish read [20:42:07]Found Content-Length = 682 [20:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:42:07]execute_script... [20:42: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)449952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:42:07]POST & json_proto [20:42:07]process_json_proto [20:42:07]json parsed OK: [20:42:07]protocol is kg_v1.0 [20:42:07]action value=close_receipt [20:42:07]process_action close_receipt [20:42:07]cmd_close_receipt [20:42:07]MH_GetDate [20:42:07]Write to MH i2c: F0 00 00 9E 03 90 [20:42:07]Write i2c OK [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: F0 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: F0 09 00 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: F0 09 00 9E 03 00 A0 A5 1E 67 47 1B 1E 67 4A [20:42:07]GetLastDocTimeStamp 1730061681 [20:42:07]current date 1730061728 [20:42:07]FM_GetShiftState [20:42:07]SAM_PROTO_GetShiftState [20:42:07]wFMCommunicate request_size=4 [20:42:07]MH_SAM_APDU [20:42:07]CAPDU: 80 13 01 00 [20:42:07]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [20:42:07]Write i2c OK [20:42:07]MH_I2C_Read... [20:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:07]Read from MH i2c: E2 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: E2 0E 00 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [20:42:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:42:07]wFMCommunicate OK [20:42:07]SAM_PROTO_GetShiftState done [20:42:07]FM_GetShiftState done [20:42:07]opened in 1729987312 [20:42:07]opened+sec_in_day 1730073712 [20:42:07]quantity*price = 100015 [20:42:07]sum+1 = 100017 [20:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 470 27.10.2024 20:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202178 ФПД: 66335478282986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204208&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202178&fm=66335478282986&tin=02508201610067®Number=0000000000091777&sum=100000 [20:42:08]StoreToDocumentArchive [20:42:08]shift 544 fd 202178 [20:42:08]save to /storage/0544/doc_00202178 [20:42:08]save last doc name /storage/0544/doc_00202178 to /storage/kkm_last_doc_name [20:42:08]save OK [20:42:08]Clear old archive folders... [20:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:08]tlvbuf is 01606A90 [20:42:08]SAM_PROTO_ClearQueue [20:42:08]wFMCommunicate request_size=4 [20:42:08]MH_SAM_APDU [20:42:08]CAPDU: 80 09 00 00 [20:42:08]Write to MH i2c: E2 08 00 AC 03 80 09 00 00 00 00 00 00 21 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:08]Read from MH i2c: E2 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 03 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [20:42:08]RAPDU: 90 00 [20:42:08]wFMCommunicate OK [20:42:08]SAM_PROTO_ClearQueue done [20:42:08]KKMCreateOFDPacket [20:42:08]OFDProtocolAddRootSTLVToBuf [20:42:08]FM_MakeSignedData [20:42:08]FM_MakeSignedData [20:42:08]SAM_PROTO_SignData [20:42:08]wFMCommunicate request_size=4 [20:42:08]MH_SAM_APDU [20:42:08]CAPDU: 80 0D 01 02 [20:42:08]Write to MH i2c: E2 08 00 AD 03 80 0D 01 02 00 00 00 00 29 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:08]Read from MH i2c: E2 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 03 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [20:42:08]RAPDU: 90 00 [20:42:08]wFMCommunicate OK [20:42:08]wFMCommunicate request_size=255 [20:42:08]MH_SAM_APDU [20:42: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 32 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 D6 01 00 00 F4 03 04 00 A0 A5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 15 03 00 35 04 06 00 3C [20:42:08]Write to MH i2c: E2 02 01 AE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D6 01 00 00 F4 03 04 00 A0 A5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 15 03 00 35 04 06 00 3C 00 00 90 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:09]Read from MH i2c: E2 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 03 00 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [20:42:09]RAPDU: 90 00 [20:42:09]wFMCommunicate OK [20:42:09]wFMCommunicate request_size=10 [20:42:09]MH_SAM_APDU [20:42:09]CAPDU: 80 0D 02 02 05 54 EE 9E 7A EA [20:42:09]Write to MH i2c: E2 0D 00 AF 03 80 0D 02 02 05 00 54 EE 9E 7A EA 00 00 7A [20:42:09]Write i2c OK [20:42:09]MH_I2C_Read... [20:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:09]Read from MH i2c: E2 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 03 00 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [20:42:09]RAPDU: 90 00 [20:42:09]wFMCommunicate OK [20:42:09]wFMCommunicate request_size=4 [20:42:09]MH_SAM_APDU [20:42:09]CAPDU: 80 0D 03 02 [20:42:09]Write to MH i2c: E2 08 00 B0 03 80 0D 03 02 00 00 00 00 2E [20:42:09]Write i2c OK [20:42:09]MH_I2C_Read... [20:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:09]Read from MH i2c: E2 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 0B 00 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 0B 00 B0 03 00 F3 78 22 91 64 E9 D3 78 90 00 E5 [20:42:09]RAPDU: F3 78 22 91 64 E9 D3 78 90 00 [20:42:09]wFMCommunicate OK [20:42:09]SAM_PROTO_SignData done [20:42:09]FM_MakeSignedData done [20:42:09]CreateOFDProtocolMessage [20:42:09]wFMCommunicate request_size=4 [20:42:09]MH_SAM_APDU [20:42:09]CAPDU: 80 11 00 00 [20:42:09]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [20:42:09]Write i2c OK [20:42:09]MH_I2C_Read... [20:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:09]Read from MH i2c: E2 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 17 00 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 83 [20:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:42:09]wFMCommunicate OK [20:42:09]CreateOFDProtocolMessage done [20:42:09]OFDSenderStorePacket 202178 [20:42:09]StoreOFDPacket docnum=202178 [20:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 75 D3 07 01 99 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D6 01 00 00 F4 03 04 00 A0 A5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 15 03 00 35 04 06 00 3C 54 EE 9E 7A EA F3 78 22 91 64 E9 D3 78 [20:42:09]CheckFolder [20:42:09]dirname=/storage/ofd_packets [20:42:09]CheckFolder done [20:42:09]ProducePacketName [20:42:09]name=ofd_packets/00202178 [20:42:09]NVStorageSaveData ofd_packets/00202178 [20:42:09]File name is /storage/ofd_packets/00202178 [20:42:09]Write 301 bytes [20:42:09]NVStorageSaveData done [20:42:09]OFDSenderStorePacket done [20:42:09]KKMCreateOFDPacket done [20:42:09]NVStorageSaveData kkm_last_timestamp [20:42:09]File name is /storage/kkm_last_timestamp [20:42:09]Write 4 bytes [20:42:09]NVStorageSaveData done [20:42:09]ExternCall_PrintAddStr [20:42:09]wPrintStart [20:42:09]Write to MH i2c: 01 00 00 B2 03 B5 [20:42:09]Write i2c OK [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: 01 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: 01 07 00 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [20:42:09]RasterBufferAndPrint [20:42:09]line Счет N : (1)449952 [20:42:09]line ИНН: 02508201610067 [20:42:09]line Контрольно-Кассовый Чек [20:42:09]line ПРОДАЖА [20:42:09]line ТРК (МРК, ГНК) : 41 [20:42:09]line Товар: 2710124130 [20:42:09]line Аи-92-К-2 [20:42:09]line 14.950 * 66.90 [20:42:09]line = 1000.16 [20:42:09]line НДС 12% НСП 1% [20:42:09]line > о реализуемом товаре [20:42:09]line ОКРУГЛЕНИЕ: -0.16 [20:42:09]line ИТОГО: 1000.00 [20:42:09]line Внесено: 1000.00 [20:42:09]line СДАЧА: 0.00 [20:42:09]line НСП 1% : 8.85 [20:42:09]line НДС 12% : 106.21 [20:42:09]line Наличными: 1000.00 [20:42:09]line Безнал.: 0.00 [20:42:09]line Место: АЗС № 171 "Партнер Нефть" [20:42:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:42:09]line СНО: Общий режим [20:42:09]line Чек 470 27.10.2024 20:42 [20:42:09]line Смена: 544 ФФД: 1.0 [20:42:09]line ЗНМ: 0300000109 [20:42:09]line РНМ: 0000000000091777 [20:42:09]line Версия ККМ: 001 [20:42:09]line ФМ: 0000000000871756 [20:42:09]line ФД: 202178 [20:42:09]line ФПД: 66335478282986 [20:42:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204208&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202178&fm=66335478282986&tin=02508201610067®Number=0000000000091777&sum=100000 [20:42:09]OFD Sender: Processing packet 202178 [packets to send 114, broken 113] [20:42:09]ProducePacketName [20:42:09]name=ofd_packets/00202178 [20:42:09]OFD Sender: To server: pG, [20:42:09]CommunicateWithHost lk.salyk.kg:30040 [20:42:09]ConnectInit lk.salyk.kg [20:42:09]written 0, free lines is 4095 [20:42:09]Connected sock=10 [20:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 75 D3 07 01 99 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D6 01 00 00 F4 03 04 00 A0 A5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 15 03 00 35 04 06 00 3C 54 EE 9E 7A EA F3 78 22 91 64 E9 D3 78 [20:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BF 16 47 00 1A 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 15 03 00 F4 03 04 00 59 51 1E 67 B6 04 01 00 00 E9 BB CF E7 FC 7F 31 89 [20:42:09]CommunicateWithHost err = 0 [20:42:09]CheckOFDResponse [20:42:09]1017 (14) - 77093643461234 [20:42:09]1041 (16) - 0000000000871756 [20:42:09]1040 (4) - 202178 [20:42:09]1012 (4) - 27.10.2024 14:42 [20:42:09]1206 (1) - 0 [20:42:09]OFD Sender: Remove packet 202178 [20:42:09]ProducePacketName [20:42:09]name=ofd_packets/00202178 [20:42:09]NVStorageDeleteData [20:42:10]Write to MH i2c: 01 00 00 DD 03 E0 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: 01 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: 01 07 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 A2 0C 95 [20:42:10]RasterBufferAndPrint [20:42:10]line [20:42:10]line [20:42:10]line [20:42:10]line [20:42:10]line [20:42:10]written 0, free lines is 3240 [20:42:10]MH_Cut [20:42:10]Write to MH i2c: D1 01 00 E4 03 01 B9 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: D1 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: D1 01 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: D1 01 00 E4 03 00 B8 [20:42:10]Write to MH i2c: 01 00 00 E5 03 E8 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]OFD Sender: No OFD packet to send [20:42:10]*** Cut start [20:42:10]*** Purtial cut [20:42:10]*** Stage 1: CUTSNS_PIN = 1 [20:42:11]Read from MH i2c: 01 [20:42:11]MH_I2C_Read... [20:42:11]*** Stop cut motor [20:42:11]*** Cut end [20:42:11]Read from MH i2c: 01 07 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 FF 0F FD [20:42:11]process_action close_receipt done [20:42:11]requested_data is exist [20:42:11]produce_requested_data [20:42:11]requested_item fm.sn is exist - process it [20:42:11]wFMCommunicate request_size=4 [20:42:11]MH_SAM_APDU [20:42:11]CAPDU: 80 11 00 00 [20:42:11]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:11]Read from MH i2c: E2 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: E2 17 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [20:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:42:11]wFMCommunicate OK [20:42:11]requested_item fd.num is exist - process it [20:42:11]SAM_PROTO_GetFieldsCounters [20:42:11]wFMCommunicate request_size=4 [20:42:11]MH_SAM_APDU [20:42:11]CAPDU: 80 13 00 00 [20:42:11]Write to MH i2c: E2 08 00 E7 03 80 13 00 00 00 00 00 00 66 [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:11]Read from MH i2c: E2 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: E2 62 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: E2 62 00 E7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C2 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [20:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C2 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:11]wFMCommunicate OK [20:42:11]SAM_PROTO_GetFieldsCounters done [20:42:11]requested_item shift.num is exist - process it [20:42:11]requested_item shift.opened is exist - process it [20:42:11]req_shift_opened [20:42:11]FM_GetShiftState [20:42:11]SAM_PROTO_GetShiftState [20:42:11]wFMCommunicate request_size=4 [20:42:11]MH_SAM_APDU [20:42:11]CAPDU: 80 13 01 00 [20:42:11]Write to MH i2c: E2 08 00 E8 03 80 13 01 00 00 00 00 00 68 [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:11]Read from MH i2c: E2 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: E2 0E 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: E2 0E 00 E8 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6A [20:42:11]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:42:11]wFMCommunicate OK [20:42:11]SAM_PROTO_GetShiftState done [20:42:11]FM_GetShiftState done [20:42:11]req_shift_opened done [20:42:11]requested_item shift.open_date is exist - process it [20:42:11]req_shift_open_date [20:42:11]req_shift_open_date done [20:42:11]produce_requested_data done [20:42:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202178,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:42:11]process_action_free close_receipt [20:42:11]json_value_free [20:42:11]json_value_free done [20:42:11]process_json_proto returns [20:42:11]Send response to host [20:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202178,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:42:11]free response buf [20:42:11]execute_script done [20:42:11]execute_script returns [20:42:11]free content buf [20:42:11]Sock 9.Close socket [20:42:11]Sock 9.Thread stoped [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [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:28]accept exits with 7 [20:44:28]New connection [20:44:28]New thread 3066776932 created [20:44:28]Thread 3066920292 joined [20:44:28]Waiting for new connection... [20:44:28] Sock 7.Parse request [20:44:28]Sock 7.Check first char [20:44:28]Sock 7.First char is OK [20:44:28]request: POST /json_proto HTTP/1.0 [20:44:28]Method: POST [20:44:28]URL: /json_proto [20:44:28]Method is POST - this is cgi request [20:44:28]url: /json_proto [20:44:28]query_string will be loaded in cgi processing [20:44:28]execute_cgi json_proto POST (null) [20:44:28]execute_cgi path=json_proto method=POST [20:44:28]POST find Content-Length [20:44:28]Host: 172.17.63.195:8080 [20:44:28]Content-Length: 675 [20:44:28]Content-Type: application/json [20:44:28] [20:44:28]POST finish read [20:44:28]Found Content-Length = 675 [20:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [20:44:28]execute_script... [20:44:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [20:44:28]POST & json_proto [20:44:28]process_json_proto [20:44:28]json parsed OK: [20:44:28]protocol is kg_v1.0 [20:44:28]action value=close_receipt [20:44:28]process_action close_receipt [20:44:28]cmd_close_receipt [20:44:28]MH_GetDate [20:44:28]Write to MH i2c: F0 00 00 E9 03 DB [20:44:28]Write i2c OK [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: F0 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: F0 09 00 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: F0 09 00 E9 03 00 2D A6 1E 67 47 1B 1E 67 23 [20:44:28]GetLastDocTimeStamp 1730061728 [20:44:28]current date 1730061869 [20:44:28]FM_GetShiftState [20:44:28]SAM_PROTO_GetShiftState [20:44:28]wFMCommunicate request_size=4 [20:44:28]MH_SAM_APDU [20:44:28]CAPDU: 80 13 01 00 [20:44:28]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [20:44:28]Write i2c OK [20:44:28]MH_I2C_Read... [20:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:28]Read from MH i2c: E2 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: E2 0E 00 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [20:44:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:44:28]wFMCommunicate OK [20:44:28]SAM_PROTO_GetShiftState done [20:44:28]FM_GetShiftState done [20:44:28]opened in 1729987312 [20:44:28]opened+sec_in_day 1730073712 [20:44:28]quantity*price = 100000 [20:44:28]sum+1 = 100002 [20:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 471 27.10.2024 20:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202179 ФПД: 123171203827088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204429&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202179&fm=123171203827088&tin=02508201610067®Number=0000000000091777&sum=100000 [20:44:29]StoreToDocumentArchive [20:44:29]shift 544 fd 202179 [20:44:29]save to /storage/0544/doc_00202179 [20:44:29]save last doc name /storage/0544/doc_00202179 to /storage/kkm_last_doc_name [20:44:29]save OK [20:44:29]Clear old archive folders... [20:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:44:29]tlvbuf is 015F8EF0 [20:44:29]SAM_PROTO_ClearQueue [20:44:29]wFMCommunicate request_size=4 [20:44:29]MH_SAM_APDU [20:44:29]CAPDU: 80 09 00 00 [20:44:29]Write to MH i2c: E2 08 00 F7 03 80 09 00 00 00 00 00 00 6C [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:29]Read from MH i2c: E2 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 03 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [20:44:29]RAPDU: 90 00 [20:44:29]wFMCommunicate OK [20:44:29]SAM_PROTO_ClearQueue done [20:44:29]KKMCreateOFDPacket [20:44:29]OFDProtocolAddRootSTLVToBuf [20:44:29]FM_MakeSignedData [20:44:29]FM_MakeSignedData [20:44:29]SAM_PROTO_SignData [20:44:29]wFMCommunicate request_size=4 [20:44:29]MH_SAM_APDU [20:44:29]CAPDU: 80 0D 01 02 [20:44:29]Write to MH i2c: E2 08 00 F8 03 80 0D 01 02 00 00 00 00 74 [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:29]Read from MH i2c: E2 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 03 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [20:44:29]RAPDU: 90 00 [20:44:29]wFMCommunicate OK [20:44:29]wFMCommunicate request_size=255 [20:44:29]MH_SAM_APDU [20:44:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 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 D7 01 00 00 F4 03 04 00 2D A6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 15 03 00 35 04 06 00 [20:44:29]Write to MH i2c: E2 02 01 F9 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D7 01 00 00 F4 03 04 00 2D A6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 15 03 00 35 04 06 00 00 00 0A [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:29]Read from MH i2c: E2 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 03 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [20:44:29]RAPDU: 90 00 [20:44:29]wFMCommunicate OK [20:44:29]wFMCommunicate request_size=11 [20:44:29]MH_SAM_APDU [20:44:29]CAPDU: 80 0D 02 02 06 70 06 07 D9 C5 90 [20:44:29]Write to MH i2c: E2 0E 00 FA 03 80 0D 02 02 06 00 70 06 07 D9 C5 90 00 00 2E [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:29]Read from MH i2c: E2 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 03 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [20:44:29]RAPDU: 90 00 [20:44:29]wFMCommunicate OK [20:44:29]wFMCommunicate request_size=4 [20:44:29]MH_SAM_APDU [20:44:29]CAPDU: 80 0D 03 02 [20:44:29]Write to MH i2c: E2 08 00 FB 03 80 0D 03 02 00 00 00 00 79 [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:29]Read from MH i2c: E2 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 0B 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 0B 00 FB 03 00 04 B8 FE C7 92 76 17 E1 90 00 FB [20:44:29]RAPDU: 04 B8 FE C7 92 76 17 E1 90 00 [20:44:29]wFMCommunicate OK [20:44:29]SAM_PROTO_SignData done [20:44:29]FM_MakeSignedData done [20:44:29]CreateOFDProtocolMessage [20:44:29]wFMCommunicate request_size=4 [20:44:29]MH_SAM_APDU [20:44:29]CAPDU: 80 11 00 00 [20:44:29]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:29]Read from MH i2c: E2 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 17 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [20:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:44:29]wFMCommunicate OK [20:44:29]CreateOFDProtocolMessage done [20:44:29]OFDSenderStorePacket 202179 [20:44:29]StoreOFDPacket docnum=202179 [20:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 C8 D7 08 01 72 F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D7 01 00 00 F4 03 04 00 2D A6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 15 03 00 35 04 06 00 70 06 07 D9 C5 90 04 B8 FE C7 92 76 17 E1 [20:44:29]CheckFolder [20:44:29]dirname=/storage/ofd_packets [20:44:29]CheckFolder done [20:44:29]ProducePacketName [20:44:29]name=ofd_packets/00202179 [20:44:29]NVStorageSaveData ofd_packets/00202179 [20:44:29]File name is /storage/ofd_packets/00202179 [20:44:29]Write 302 bytes [20:44:29]NVStorageSaveData done [20:44:29]OFDSenderStorePacket done [20:44:29]KKMCreateOFDPacket done [20:44:29]NVStorageSaveData kkm_last_timestamp [20:44:29]File name is /storage/kkm_last_timestamp [20:44:29]Write 4 bytes [20:44:29]NVStorageSaveData done [20:44:29]ExternCall_PrintAddStr [20:44:29]wPrintStart [20:44:29]Write to MH i2c: 01 00 00 FD 03 00 [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: 01 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: 01 07 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 FF 0F 15 [20:44:29]RasterBufferAndPrint [20:44:29]line Счет N : (1)449953 [20:44:29]line ИНН: 02508201610067 [20:44:29]line Контрольно-Кассовый Чек [20:44:29]line ПРОДАЖА [20:44:29]line ТРК (МРК, ГНК) : 63 [20:44:29]line Товар: 2710124130 [20:44:29]line SUPER 92-К-5 [20:44:29]line 14.620 * 68.40 [20:44:29]line = 1000.01 [20:44:29]line НДС 12% НСП 1% [20:44:29]line > о реализуемом товаре [20:44:29]line ОКРУГЛЕНИЕ: -0.01 [20:44:29]line ИТОГО: 1000.00 [20:44:29]line Внесено: 1000.00 [20:44:29]line СДАЧА: 0.00 [20:44:29]line НСП 1% : 8.85 [20:44:29]line НДС 12% : 106.20 [20:44:29]line Наличными: 1000.00 [20:44:29]line Безнал.: 0.00 [20:44:29]line Место: АЗС № 171 "Партнер Нефть" [20:44:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:44:29]line СНО: Общий режим [20:44:29]line Чек 471 27.10.2024 20:44 [20:44:29]line Смена: 544 ФФД: 1.0 [20:44:29]line ЗНМ: 0300000109 [20:44:29]line РНМ: 0000000000091777 [20:44:29]line Версия ККМ: 001 [20:44:29]line ФМ: 0000000000871756 [20:44:29]line ФД: 202179 [20:44:29]line ФПД: 123171203827088 [20:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204429&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202179&fm=123171203827088&tin=02508201610067®Number=0000000000091777&sum=100000 [20:44:30]OFD Sender: Processing packet 202179 [packets to send 114, broken 113] [20:44:30]ProducePacketName [20:44:30]name=ofd_packets/00202179 [20:44:30]OFD Sender: To server: pG, [20:44:30]CommunicateWithHost lk.salyk.kg:30040 [20:44:30]ConnectInit lk.salyk.kg [20:44:30]written 0, free lines is 4095 [20:44:30]Connected sock=10 [20:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 C8 D7 08 01 72 F6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 D7 01 00 00 F4 03 04 00 2D A6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 15 03 00 35 04 06 00 70 06 07 D9 C5 90 04 B8 FE C7 92 76 17 E1 [20:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B6 F4 47 00 1B 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 15 03 00 F4 03 04 00 E5 51 1E 67 B6 04 01 00 00 C7 F6 AD B6 D3 66 37 34 [20:44:30]CommunicateWithHost err = 0 [20:44:30]CheckOFDResponse [20:44:30]1017 (14) - 77093643461234 [20:44:30]1041 (16) - 0000000000871756 [20:44:30]1040 (4) - 202179 [20:44:30]1012 (4) - 27.10.2024 14:44 [20:44:30]1206 (1) - 0 [20:44:30]OFD Sender: Remove packet 202179 [20:44:30]ProducePacketName [20:44:30]name=ofd_packets/00202179 [20:44:30]NVStorageDeleteData [20:44:30]Write to MH i2c: 01 00 00 28 04 2C [20:44:30]Write i2c OK [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: 01 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: 01 07 00 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 94 0C D3 [20:44:30]RasterBufferAndPrint [20:44:30]line [20:44:30]line [20:44:30]line [20:44:30]line [20:44:30]line [20:44:30]written 0, free lines is 3225 [20:44:30]MH_Cut [20:44:30]Write to MH i2c: D1 01 00 2F 04 01 05 [20:44:30]Write i2c OK [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: D1 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: D1 01 00 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: D1 01 00 2F 04 00 04 [20:44:30]Write to MH i2c: 01 00 00 30 04 34 [20:44:30]Write i2c OK [20:44:30]MH_I2C_Read... [20:44:30]OFD Sender: No OFD packet to send [20:44:31]*** Cut start [20:44:31]*** Purtial cut [20:44:31]*** Stage 1: CUTSNS_PIN = 1 [20:44:31]Read from MH i2c: 01 [20:44:31]MH_I2C_Read... [20:44:31]*** Stop cut motor [20:44:31]*** Cut end [20:44:31]Read from MH i2c: 01 07 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [20:44:31]process_action close_receipt done [20:44:31]requested_data is exist [20:44:31]produce_requested_data [20:44:31]requested_item fm.sn is exist - process it [20:44:31]wFMCommunicate request_size=4 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 11 00 00 [20:44:31]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 17 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [20:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:44:31]wFMCommunicate OK [20:44:31]requested_item fd.num is exist - process it [20:44:31]SAM_PROTO_GetFieldsCounters [20:44:31]wFMCommunicate request_size=4 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 13 00 00 [20:44:31]Write to MH i2c: E2 08 00 32 04 80 13 00 00 00 00 00 00 B2 [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 62 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 62 00 32 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C3 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [20:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C3 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:31]wFMCommunicate OK [20:44:31]SAM_PROTO_GetFieldsCounters done [20:44:31]requested_item shift.num is exist - process it [20:44:31]requested_item shift.opened is exist - process it [20:44:31]req_shift_opened [20:44:31]FM_GetShiftState [20:44:31]SAM_PROTO_GetShiftState [20:44:31]wFMCommunicate request_size=4 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 13 01 00 [20:44:31]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 0E 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B6 [20:44:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:44:31]wFMCommunicate OK [20:44:31]SAM_PROTO_GetShiftState done [20:44:31]FM_GetShiftState done [20:44:31]req_shift_opened done [20:44:31]requested_item shift.open_date is exist - process it [20:44:31]req_shift_open_date [20:44:31]req_shift_open_date done [20:44:31]produce_requested_data done [20:44:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202179,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:44:31]process_action_free close_receipt [20:44:31]json_value_free [20:44:31]json_value_free done [20:44:31]process_json_proto returns [20:44:31]Send response to host [20:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202179,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:44:31]free response buf [20:44:31]execute_script done [20:44:31]execute_script returns [20:44:31]free content buf [20:44:31]Sock 7.Close socket [20:44:31]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:48:44]ConnectInit Can't connect to host [20:48:46]ConnectInit Can't take IP for lk.salyk.kg [20:48:46]CommunicateWithHost connect error [20:48:46]CommunicateWithHost err = -1 [20:48:46]OFD Sender: Server communicate error [20:48:51]OFD Sender: Processing packet 202180 [packets to send 114, broken 113] [20:48:51]ProducePacketName [20:48:51]name=ofd_packets/00202180 [20:48:51]OFD Sender: To server: pG, [20:48:51]CommunicateWithHost lk.salyk.kg:30040 [20:48:51]ConnectInit lk.salyk.kg [20:48:51]Connected sock=9 [20:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0A 24 07 01 FB 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 10 00 00 00 00 07 04 06 00 BC 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 01 00 00 F4 03 04 00 D8 A6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 15 03 00 35 04 06 00 FF 4D 5E 5E 10 8F C9 A2 F1 84 12 DF 2E A2 [20:48:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF 82 47 00 85 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 15 03 00 F4 03 04 00 EB 52 1E 67 B6 04 01 00 00 C4 D6 F8 90 31 03 E2 B2 [20:48:52]CommunicateWithHost err = 0 [20:48:52]CheckOFDResponse [20:48:52]1017 (14) - 77093643461234 [20:48:52]1041 (16) - 0000000000871756 [20:48:52]1040 (4) - 202180 [20:48:52]1012 (4) - 27.10.2024 14:49 [20:48:52]1206 (1) - 0 [20:48:52]OFD Sender: Remove packet 202180 [20:48:52]ProducePacketName [20:48:52]name=ofd_packets/00202180 [20:48:52]NVStorageDeleteData [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:28]accept exits with 7 [20:51:28]New connection [20:51:28]New thread 3066588516 created [20:51:28]Thread 3066731876 joined [20:51:28]Waiting for new connection... [20:51:28] Sock 7.Parse request [20:51:28]Sock 7.Check first char [20:51:28]Sock 7.First char is OK [20:51:28]request: POST /json_proto HTTP/1.0 [20:51:28]Method: POST [20:51:28]URL: /json_proto [20:51:28]Method is POST - this is cgi request [20:51:28]url: /json_proto [20:51:28]query_string will be loaded in cgi processing [20:51:28]execute_cgi json_proto POST (null) [20:51:28]execute_cgi path=json_proto method=POST [20:51:28]POST find Content-Length [20:51:28]Host: 172.17.63.195:8080 [20:51:28]Content-Length: 766 [20:51:28]Content-Type: application/json [20:51:28] [20:51:28]POST finish read [20:51:28]Found Content-Length = 766 [20:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:28]execute_script... [20:51:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:28]POST & json_proto [20:51:28]process_json_proto [20:51:28]json parsed OK: [20:51:28]protocol is kg_v1.0 [20:51:28]action value=close_receipt [20:51:28]process_action close_receipt [20:51:28]cmd_close_receipt [20:51:28]MH_GetDate [20:51:28]Write to MH i2c: F0 00 00 6B 00 5A [20:51:28]Write i2c OK [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: F0 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: F0 09 00 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: F0 09 00 6B 00 00 D0 A7 1E 67 47 1B 1E 67 46 [20:51:28]GetLastDocTimeStamp 1730062040 [20:51:28]current date 1730062288 [20:51:28]FM_GetShiftState [20:51:28]SAM_PROTO_GetShiftState [20:51:28]wFMCommunicate request_size=4 [20:51:28]MH_SAM_APDU [20:51:28]CAPDU: 80 13 01 00 [20:51:28]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [20:51:28]Write i2c OK [20:51:28]MH_I2C_Read... [20:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:28]Read from MH i2c: E2 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: E2 0E 00 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 EB [20:51:28]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:51:28]wFMCommunicate OK [20:51:28]SAM_PROTO_GetShiftState done [20:51:28]FM_GetShiftState done [20:51:28]opened in 1729987312 [20:51:28]opened+sec_in_day 1730073712 [20:51:28]quantity*price = 150037 [20:51:28]sum+1 = 150039 [20:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 473 27.10.2024 20:51 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202181 ФПД: 280613444986951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202181&fm=280613444986951&tin=02508201610067®Number=0000000000091777&sum=150038 [20:51:29]StoreToDocumentArchive [20:51:29]shift 544 fd 202181 [20:51:29]save to /storage/0544/doc_00202181 [20:51:29]save last doc name /storage/0544/doc_00202181 to /storage/kkm_last_doc_name [20:51:29]save OK [20:51:29]Clear old archive folders... [20:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:51:29]tlvbuf is 00BC2E70 [20:51:29]SAM_PROTO_ClearQueue [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 09 00 00 [20:51:29]Write to MH i2c: E2 08 00 79 00 80 09 00 00 00 00 00 00 EB [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]SAM_PROTO_ClearQueue done [20:51:29]KKMCreateOFDPacket [20:51:29]OFDProtocolAddRootSTLVToBuf [20:51:29]FM_MakeSignedData [20:51:29]FM_MakeSignedData [20:51:29]SAM_PROTO_SignData [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 01 02 [20:51:29]Write to MH i2c: E2 08 00 7A 00 80 0D 01 02 00 00 00 00 F3 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]wFMCommunicate request_size=255 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 D0 A7 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 15 03 00 35 04 06 00 FF 37 68 B5 [20:51:29]Write to MH i2c: E2 02 01 7B 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 D0 A7 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 15 03 00 35 04 06 00 FF 37 68 B5 00 00 6A [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]wFMCommunicate request_size=7 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 02 02 02 28 47 [20:51:29]Write to MH i2c: E2 0A 00 7C 00 80 0D 02 02 02 00 28 47 00 00 69 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 03 02 [20:51:29]Write to MH i2c: E2 08 00 7D 00 80 0D 03 02 00 00 00 00 F8 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 0B 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 0B 00 7D 00 00 DF 27 03 30 30 66 88 51 90 00 A1 [20:51:29]RAPDU: DF 27 03 30 30 66 88 51 90 00 [20:51:29]wFMCommunicate OK [20:51:29]SAM_PROTO_SignData done [20:51:29]FM_MakeSignedData done [20:51:29]CreateOFDProtocolMessage [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 11 00 00 [20:51:29]Write to MH i2c: E2 08 00 7E 00 80 11 00 00 00 00 00 00 F8 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 17 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 17 00 7E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4D [20:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:51:29]wFMCommunicate OK [20:51:29]CreateOFDProtocolMessage done [20:51:29]OFDSenderStorePacket 202181 [20:51:29]StoreOFDPacket docnum=202181 [20:51:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 25 76 04 01 76 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 D0 A7 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 15 03 00 35 04 06 00 FF 37 68 B5 28 47 DF 27 03 30 30 66 88 51 [20:51:29]CheckFolder [20:51:29]dirname=/storage/ofd_packets [20:51:29]CheckFolder done [20:51:29]ProducePacketName [20:51:29]name=ofd_packets/00202181 [20:51:29]NVStorageSaveData ofd_packets/00202181 [20:51:29]File name is /storage/ofd_packets/00202181 [20:51:29]Write 298 bytes [20:51:29]NVStorageSaveData done [20:51:29]OFDSenderStorePacket done [20:51:29]KKMCreateOFDPacket done [20:51:29]NVStorageSaveData kkm_last_timestamp [20:51:29]File name is /storage/kkm_last_timestamp [20:51:29]Write 4 bytes [20:51:29]NVStorageSaveData done [20:51:29]ExternCall_PrintAddStr [20:51:29]wPrintStart [20:51:29]Write to MH i2c: 01 00 00 7F 00 7F [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 07 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 07 00 7F 00 00 00 00 00 00 FF 0F 94 [20:51:29]RasterBufferAndPrint [20:51:29]line Счет N : (1)449955 [20:51:29]line ИНН: 02508201610067 [20:51:29]line Контрольно-Кассовый Чек [20:51:29]line ПРОДАЖА [20:51:29]line ТРК (МРК, ГНК) : 21 [20:51:29]line Товар: 2710194210 [20:51:29]line ДТ-К-2 [20:51:29]line 19.690 * 76.20 [20:51:29]line = 1500.38 [20:51:29]line НДС 12% НСП 1% [20:51:29]line > о реализуемом товаре [20:51:29]line ИТОГО: 1500.38 [20:51:29]line НСП 1% : 13.28 [20:51:29]line НДС 12% : 159.33 [20:51:29]line Наличными: 0.00 [20:51:29]line Безнал.: 1500.38 [20:51:29]line Место: АЗС № 171 "Партнер Нефть" [20:51:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:51:29]line СНО: Общий режим [20:51:29]line Чек 473 27.10.2024 20:51 [20:51:29]line Смена: 544 ФФД: 1.0 [20:51:29]line ЗНМ: 0300000109 [20:51:29]line РНМ: 0000000000091777 [20:51:29]line Версия ККМ: 001 [20:51:29]line Платежная система: Mbank [20:51:29]line ФМ: 0000000000871756 [20:51:29]line ФД: 202181 [20:51:29]line ФПД: 280613444986951 [20:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202181&fm=280613444986951&tin=02508201610067®Number=0000000000091777&sum=150038 [20:51:30]OFD Sender: Processing packet 202181 [packets to send 114, broken 113] [20:51:30]ProducePacketName [20:51:30]name=ofd_packets/00202181 [20:51:30]OFD Sender: To server: pG, [20:51:30]CommunicateWithHost lk.salyk.kg:30040 [20:51:30]ConnectInit lk.salyk.kg [20:51:30]written 0, free lines is 4095 [20:51:30]Connected sock=10 [20:51:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 25 76 04 01 76 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 01 00 00 F4 03 04 00 D0 A7 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 15 03 00 35 04 06 00 FF 37 68 B5 28 47 DF 27 03 30 30 66 88 51 [20:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E6 94 47 00 66 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 15 03 00 F4 03 04 00 89 53 1E 67 B6 04 01 00 00 70 39 06 B1 6D 84 1D 51 [20:51:30]CommunicateWithHost err = 0 [20:51:30]CheckOFDResponse [20:51:30]1017 (14) - 77093643461234 [20:51:30]1041 (16) - 0000000000871756 [20:51:30]1040 (4) - 202181 [20:51:30]1012 (4) - 27.10.2024 14:51 [20:51:30]1206 (1) - 0 [20:51:30]OFD Sender: Remove packet 202181 [20:51:30]ProducePacketName [20:51:30]name=ofd_packets/00202181 [20:51:30]NVStorageDeleteData [20:51:30]Write to MH i2c: 01 00 00 A8 00 A8 [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: 01 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: 01 07 00 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: 01 07 00 A8 00 00 00 00 00 00 C1 0C 7C [20:51:30]RasterBufferAndPrint [20:51:30]line [20:51:30]line [20:51:30]line [20:51:30]line [20:51:30]line [20:51:30]written 0, free lines is 3269 [20:51:30]MH_Cut [20:51:30]Write to MH i2c: D1 01 00 AF 00 01 81 [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: D1 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: D1 01 00 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: D1 01 00 AF 00 00 80 [20:51:30]Write to MH i2c: 01 00 00 B0 00 B0 [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]OFD Sender: No OFD packet to send [20:51:31]*** Cut start [20:51:31]*** Purtial cut [20:51:31]*** Stage 1: CUTSNS_PIN = 1 [20:51:31]Read from MH i2c: 01 [20:51:31]MH_I2C_Read... [20:51:31]*** Stop cut motor [20:51:31]*** Cut end [20:51:31]Read from MH i2c: 01 07 00 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [20:51:31]process_action close_receipt done [20:51:31]requested_data is exist [20:51:31]produce_requested_data [20:51:31]requested_item fm.sn is exist - process it [20:51:31]wFMCommunicate request_size=4 [20:51:31]MH_SAM_APDU [20:51:31]CAPDU: 80 11 00 00 [20:51:31]Write to MH i2c: E2 08 00 B1 00 80 11 00 00 00 00 00 00 2B [20:51:31]Write i2c OK [20:51:31]MH_I2C_Read... [20:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:31]Read from MH i2c: E2 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: E2 17 00 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: E2 17 00 B1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 80 [20:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:51:31]wFMCommunicate OK [20:51:31]requested_item fd.num is exist - process it [20:51:31]SAM_PROTO_GetFieldsCounters [20:51:31]wFMCommunicate request_size=4 [20:51:31]MH_SAM_APDU [20:51:31]CAPDU: 80 13 00 00 [20:51:31]Write to MH i2c: E2 08 00 B2 00 80 13 00 00 00 00 00 00 2E [20:51:31]Write i2c OK [20:51:31]MH_I2C_Read... [20:51:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:31]Read from MH i2c: E2 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: E2 62 00 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: E2 62 00 B2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C5 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [20:51:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C5 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:31]wFMCommunicate OK [20:51:31]SAM_PROTO_GetFieldsCounters done [20:51:31]requested_item shift.num is exist - process it [20:51:31]requested_item shift.opened is exist - process it [20:51:31]req_shift_opened [20:51:31]FM_GetShiftState [20:51:31]SAM_PROTO_GetShiftState [20:51:31]wFMCommunicate request_size=4 [20:51:31]MH_SAM_APDU [20:51:31]CAPDU: 80 13 01 00 [20:51:31]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [20:51:31]Write i2c OK [20:51:31]MH_I2C_Read... [20:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:31]Read from MH i2c: E2 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: E2 0E 00 [20:51:31]MH_I2C_Read... [20:51:31]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 32 [20:51:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:51:31]wFMCommunicate OK [20:51:31]SAM_PROTO_GetShiftState done [20:51:31]FM_GetShiftState done [20:51:31]req_shift_opened done [20:51:31]requested_item shift.open_date is exist - process it [20:51:31]req_shift_open_date [20:51:31]req_shift_open_date done [20:51:31]produce_requested_data done [20:51:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202181,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:51:31]process_action_free close_receipt [20:51:31]json_value_free [20:51:31]json_value_free done [20:51:31]process_json_proto returns [20:51:31]Send response to host [20:51:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202181,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:51:31]free response buf [20:51:31]execute_script done [20:51:31]execute_script returns [20:51:31]free content buf [20:51:31]Sock 7.Close socket [20:51:31]Sock 7.Thread stoped [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:56:21]ConnectInit Can't connect to host [20:56:21]OFD Sender: Processing packet 202182 [packets to send 114, broken 113] [20:56:21]ProducePacketName [20:56:21]name=ofd_packets/00202182 [20:56:21]OFD Sender: To server: pG, [20:56:21]CommunicateWithHost lk.salyk.kg:30040 [20:56:21]ConnectInit lk.salyk.kg [20:56:26]ConnectInit Can't take IP for lk.salyk.kg [20:56:26]CommunicateWithHost connect error [20:56:26]CommunicateWithHost err = -1 [20:56:26]OFD Sender: Server communicate error [20:56:31]OFD Sender: Processing packet 202182 [packets to send 114, broken 113] [20:56:31]ProducePacketName [20:56:31]name=ofd_packets/00202182 [20:56:31]OFD Sender: To server: pG, [20:56:31]CommunicateWithHost lk.salyk.kg:30040 [20:56:31]ConnectInit lk.salyk.kg [20:56:31]Connected sock=9 [20:56:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E6 BE 08 01 E0 E1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DA 01 00 00 F4 03 04 00 7C A8 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 15 03 00 35 04 06 00 5D C2 AE A2 2D 80 76 A8 B7 73 A0 D4 FC A9 [20:56:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 11 AA 47 00 DD 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 15 03 00 F4 03 04 00 B6 54 1E 67 B6 04 01 00 00 94 30 DA AA 32 92 92 29 [20:56:31]CommunicateWithHost err = 0 [20:56:31]CheckOFDResponse [20:56:31]1017 (14) - 77093643461234 [20:56:31]1041 (16) - 0000000000871756 [20:56:31]1040 (4) - 202182 [20:56:31]1012 (4) - 27.10.2024 14:56 [20:56:31]1206 (1) - 0 [20:56:31]OFD Sender: Remove packet 202182 [20:56:31]ProducePacketName [20:56:31]name=ofd_packets/00202182 [20:56:31]NVStorageDeleteData [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:14]accept exits with 7 [20:57:14]New connection [20:57:14]New thread 3067420004 created [20:57:14]Thread 3067563364 joined [20:57:14]Waiting for new connection... [20:57:14] Sock 7.Parse request [20:57:14]Sock 7.Check first char [20:57:14]Sock 7.First char is OK [20:57:14]request: POST /json_proto HTTP/1.0 [20:57:14]Method: POST [20:57:14]URL: /json_proto [20:57:14]Method is POST - this is cgi request [20:57:14]url: /json_proto [20:57:14]query_string will be loaded in cgi processing [20:57:14]execute_cgi json_proto POST (null) [20:57:14]execute_cgi path=json_proto method=POST [20:57:14]POST find Content-Length [20:57:14]Host: 172.17.63.195:8080 [20:57:14]Content-Length: 767 [20:57:14]Content-Type: application/json [20:57:14] [20:57:14]POST finish read [20:57:14]Found Content-Length = 767 [20:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.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" : 900.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:14]execute_script... [20:57: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)449957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.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" : 900.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:14]POST & json_proto [20:57:14]process_json_proto [20:57:14]json parsed OK: [20:57:14]protocol is kg_v1.0 [20:57:14]action value=close_receipt [20:57:14]process_action close_receipt [20:57:14]cmd_close_receipt [20:57:14]MH_GetDate [20:57:14]Write to MH i2c: F0 00 00 58 00 47 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: F0 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: F0 09 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: F0 09 00 58 00 00 2B A9 1E 67 47 1B 1E 67 90 [20:57:14]GetLastDocTimeStamp 1730062460 [20:57:14]current date 1730062635 [20:57:14]FM_GetShiftState [20:57:14]SAM_PROTO_GetShiftState [20:57:14]wFMCommunicate request_size=4 [20:57:14]MH_SAM_APDU [20:57:14]CAPDU: 80 13 01 00 [20:57:14]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [20:57:14]Write i2c OK [20:57:14]MH_I2C_Read... [20:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:14]Read from MH i2c: E2 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 0E 00 [20:57:14]MH_I2C_Read... [20:57:14]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D8 [20:57:14]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:57:14]wFMCommunicate OK [20:57:14]SAM_PROTO_GetShiftState done [20:57:14]FM_GetShiftState done [20:57:14]opened in 1729987312 [20:57:14]opened+sec_in_day 1730073712 [20:57:14]quantity*price = 90047 [20:57:14]sum+1 = 90048 [20:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.47 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 0.00 Безнал.: 900.47 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 475 27.10.2024 20:57 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 202183 ФПД: 163100737040560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205715&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202183&fm=163100737040560&tin=02508201610067®Number=0000000000091777&sum=90047 [20:57:15]StoreToDocumentArchive [20:57:15]shift 544 fd 202183 [20:57:15]save to /storage/0544/doc_00202183 [20:57:15]save last doc name /storage/0544/doc_00202183 to /storage/kkm_last_doc_name [20:57:15]save OK [20:57:15]Clear old archive folders... [20:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:15]tlvbuf is 00948520 [20:57:15]SAM_PROTO_ClearQueue [20:57:15]wFMCommunicate request_size=4 [20:57:15]MH_SAM_APDU [20:57:15]CAPDU: 80 09 00 00 [20:57:15]Write to MH i2c: E2 08 00 66 00 80 09 00 00 00 00 00 00 D8 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [20:57:15]RAPDU: 90 00 [20:57:15]wFMCommunicate OK [20:57:15]SAM_PROTO_ClearQueue done [20:57:15]KKMCreateOFDPacket [20:57:15]OFDProtocolAddRootSTLVToBuf [20:57:15]FM_MakeSignedData [20:57:15]FM_MakeSignedData [20:57:15]SAM_PROTO_SignData [20:57:15]wFMCommunicate request_size=4 [20:57:15]MH_SAM_APDU [20:57:15]CAPDU: 80 0D 01 02 [20:57:15]Write to MH i2c: E2 08 00 67 00 80 0D 01 02 00 00 00 00 E0 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [20:57:15]RAPDU: 90 00 [20:57:15]wFMCommunicate OK [20:57:15]wFMCommunicate request_size=255 [20:57:15]MH_SAM_APDU [20:57: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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 2B A9 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 15 03 00 35 04 06 00 94 [20:57:15]Write to MH i2c: E2 02 01 68 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 2B A9 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 15 03 00 35 04 06 00 94 00 00 B9 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [20:57:15]RAPDU: 90 00 [20:57:15]wFMCommunicate OK [20:57:15]wFMCommunicate request_size=10 [20:57:15]MH_SAM_APDU [20:57:15]CAPDU: 80 0D 02 02 05 56 D9 7E 70 B0 [20:57:15]Write to MH i2c: E2 0D 00 69 00 80 0D 02 02 05 00 56 D9 7E 70 B0 00 00 BA [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [20:57:15]RAPDU: 90 00 [20:57:15]wFMCommunicate OK [20:57:15]wFMCommunicate request_size=4 [20:57:15]MH_SAM_APDU [20:57:15]CAPDU: 80 0D 03 02 [20:57:15]Write to MH i2c: E2 08 00 6A 00 80 0D 03 02 00 00 00 00 E5 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 0B 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 0B 00 6A 00 00 86 5D 1E B9 30 9C BE AE 90 00 D8 [20:57:15]RAPDU: 86 5D 1E B9 30 9C BE AE 90 00 [20:57:15]wFMCommunicate OK [20:57:15]SAM_PROTO_SignData done [20:57:15]FM_MakeSignedData done [20:57:15]CreateOFDProtocolMessage [20:57:15]wFMCommunicate request_size=4 [20:57:15]MH_SAM_APDU [20:57:15]CAPDU: 80 11 00 00 [20:57:15]Write to MH i2c: E2 08 00 6B 00 80 11 00 00 00 00 00 00 E5 [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:15]Read from MH i2c: E2 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 17 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: E2 17 00 6B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3A [20:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:57:15]wFMCommunicate OK [20:57:15]CreateOFDProtocolMessage done [20:57:15]OFDSenderStorePacket 202183 [20:57:15]StoreOFDPacket docnum=202183 [20:57:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1B 3A 07 01 60 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 2B A9 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 15 03 00 35 04 06 00 94 56 D9 7E 70 B0 86 5D 1E B9 30 9C BE AE [20:57:15]CheckFolder [20:57:15]dirname=/storage/ofd_packets [20:57:15]CheckFolder done [20:57:15]ProducePacketName [20:57:15]name=ofd_packets/00202183 [20:57:15]NVStorageSaveData ofd_packets/00202183 [20:57:15]File name is /storage/ofd_packets/00202183 [20:57:15]Write 301 bytes [20:57:15]NVStorageSaveData done [20:57:15]OFDSenderStorePacket done [20:57:15]KKMCreateOFDPacket done [20:57:15]NVStorageSaveData kkm_last_timestamp [20:57:15]File name is /storage/kkm_last_timestamp [20:57:15]Write 4 bytes [20:57:15]NVStorageSaveData done [20:57:15]ExternCall_PrintAddStr [20:57:15]wPrintStart [20:57:15]Write to MH i2c: 01 00 00 6C 00 6C [20:57:15]Write i2c OK [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 [20:57:15]MH_I2C_Read... [20:57:15]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 FF 0F 81 [20:57:15]RasterBufferAndPrint [20:57:15]line Счет N : (1)449957 [20:57:15]line ИНН: 02508201610067 [20:57:15]line Контрольно-Кассовый Чек [20:57:15]line ПРОДАЖА [20:57:15]line ТРК (МРК, ГНК) : 31 [20:57:15]line Товар: 2710124130 [20:57:15]line Аи-92-К-2 [20:57:15]line 13.460 * 66.90 [20:57:15]line = 900.47 [20:57:15]line НДС 12% НСП 1% [20:57:15]line > о реализуемом товаре [20:57:15]line ИТОГО: 900.47 [20:57:15]line НСП 1% : 7.97 [20:57:15]line НДС 12% : 95.62 [20:57:15]line Наличными: 0.00 [20:57:15]line Безнал.: 900.47 [20:57:15]line Место: АЗС № 171 "Партнер Нефть" [20:57:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:57:15]line СНО: Общий режим [20:57:15]line Чек 475 27.10.2024 20:57 [20:57:15]line Смена: 544 ФФД: 1.0 [20:57:15]line ЗНМ: 0300000109 [20:57:15]line РНМ: 0000000000091777 [20:57:15]line Версия ККМ: 001 [20:57:15]line Платежная система: Mbank [20:57:15]line ФМ: 0000000000871756 [20:57:15]line ФД: 202183 [20:57:15]line ФПД: 163100737040560 [20:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205715&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202183&fm=163100737040560&tin=02508201610067®Number=0000000000091777&sum=90047 [20:57:16]written 0, free lines is 4095 [20:57:16]OFD Sender: Processing packet 202183 [packets to send 114, broken 113] [20:57:16]ProducePacketName [20:57:16]name=ofd_packets/00202183 [20:57:16]OFD Sender: To server: pG, [20:57:16]CommunicateWithHost lk.salyk.kg:30040 [20:57:16]ConnectInit lk.salyk.kg [20:57:16]Connected sock=10 [20:57:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1B 3A 07 01 60 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 2B A9 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 15 03 00 35 04 06 00 94 56 D9 7E 70 B0 86 5D 1E B9 30 9C BE AE [20:57:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0D 43 47 00 21 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 15 03 00 F4 03 04 00 E3 54 1E 67 B6 04 01 00 00 1D 46 C1 E1 F6 AF 1F FB [20:57:16]CommunicateWithHost err = 0 [20:57:16]CheckOFDResponse [20:57:16]1017 (14) - 77093643461234 [20:57:16]1041 (16) - 0000000000871756 [20:57:16]1040 (4) - 202183 [20:57:16]1012 (4) - 27.10.2024 14:57 [20:57:16]1206 (1) - 0 [20:57:16]OFD Sender: Remove packet 202183 [20:57:16]ProducePacketName [20:57:16]name=ofd_packets/00202183 [20:57:16]NVStorageDeleteData [20:57:16]Write to MH i2c: 01 00 00 95 00 95 [20:57:16]Write i2c OK [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: 01 [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: 01 07 00 [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: 01 07 00 95 00 00 00 00 00 00 BA 0C 62 [20:57:16]RasterBufferAndPrint [20:57:16]line [20:57:16]line [20:57:16]line [20:57:16]line [20:57:16]line [20:57:16]written 0, free lines is 3263 [20:57:16]MH_Cut [20:57:16]Write to MH i2c: D1 01 00 9C 00 01 6E [20:57:16]Write i2c OK [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: D1 [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: D1 01 00 [20:57:16]MH_I2C_Read... [20:57:16]Read from MH i2c: D1 01 00 9C 00 00 6D [20:57:16]Write to MH i2c: 01 00 00 9D 00 9D [20:57:16]Write i2c OK [20:57:16]MH_I2C_Read... [20:57:17]OFD Sender: No OFD packet to send [20:57:17]*** Cut start [20:57:17]*** Purtial cut [20:57:17]*** CUTSNS_PIN = 0 [20:57:17]*** Stage 1: CUTSNS_PIN = 1 [20:57:19]Read from MH i2c: 01 [20:57:19]MH_I2C_Read... [20:57:19]*** Stop cut motor [20:57:19]*** Cut end [20:57:19]Read from MH i2c: 01 07 00 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: 01 07 00 9D 00 00 00 00 00 00 FF 0F B2 [20:57:19]process_action close_receipt done [20:57:19]requested_data is exist [20:57:19]produce_requested_data [20:57:19]requested_item fm.sn is exist - process it [20:57:19]wFMCommunicate request_size=4 [20:57:19]MH_SAM_APDU [20:57:19]CAPDU: 80 11 00 00 [20:57:19]Write to MH i2c: E2 08 00 9E 00 80 11 00 00 00 00 00 00 18 [20:57:19]Write i2c OK [20:57:19]MH_I2C_Read... [20:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:19]Read from MH i2c: E2 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: E2 17 00 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: E2 17 00 9E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [20:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:57:19]wFMCommunicate OK [20:57:19]requested_item fd.num is exist - process it [20:57:19]SAM_PROTO_GetFieldsCounters [20:57:19]wFMCommunicate request_size=4 [20:57:19]MH_SAM_APDU [20:57:19]CAPDU: 80 13 00 00 [20:57:19]Write to MH i2c: E2 08 00 9F 00 80 13 00 00 00 00 00 00 1B [20:57:19]Write i2c OK [20:57:19]MH_I2C_Read... [20:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:19]Read from MH i2c: E2 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: E2 62 00 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: E2 62 00 9F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [20:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:19]wFMCommunicate OK [20:57:19]SAM_PROTO_GetFieldsCounters done [20:57:19]requested_item shift.num is exist - process it [20:57:19]requested_item shift.opened is exist - process it [20:57:19]req_shift_opened [20:57:19]FM_GetShiftState [20:57:19]SAM_PROTO_GetShiftState [20:57:19]wFMCommunicate request_size=4 [20:57:19]MH_SAM_APDU [20:57:19]CAPDU: 80 13 01 00 [20:57:19]Write to MH i2c: E2 08 00 A0 00 80 13 01 00 00 00 00 00 1D [20:57:19]Write i2c OK [20:57:19]MH_I2C_Read... [20:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:19]Read from MH i2c: E2 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: E2 0E 00 [20:57:19]MH_I2C_Read... [20:57:19]Read from MH i2c: E2 0E 00 A0 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1F [20:57:19]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [20:57:19]wFMCommunicate OK [20:57:19]SAM_PROTO_GetShiftState done [20:57:19]FM_GetShiftState done [20:57:19]req_shift_opened done [20:57:19]requested_item shift.open_date is exist - process it [20:57:19]req_shift_open_date [20:57:19]req_shift_open_date done [20:57:19]produce_requested_data done [20:57:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202183,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [20:57:19]process_action_free close_receipt [20:57:19]json_value_free [20:57:19]json_value_free done [20:57:19]process_json_proto returns [20:57:19]Send response to host [20:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202183,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [20:57:19]free response buf [20:57:19]execute_script done [20:57:19]execute_script returns [20:57:19]free content buf [20:57:19]Sock 7.Close socket [20:57:19]Sock 7.Thread stoped [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:16]accept exits with 9 [21:01:16]New connection [21:01:16]New thread 3067563364 created [21:01:16]Thread 3067420004 joined [21:01:16]Waiting for new connection... [21:01:16] Sock 9.Parse request [21:01:16]Sock 9.Check first char [21:01:16]Sock 9.First char is OK [21:01:16]request: POST /json_proto HTTP/1.0 [21:01:16]Method: POST [21:01:16]URL: /json_proto [21:01:16]Method is POST - this is cgi request [21:01:16]url: /json_proto [21:01:16]query_string will be loaded in cgi processing [21:01:16]execute_cgi json_proto POST (null) [21:01:16]execute_cgi path=json_proto method=POST [21:01:16]POST find Content-Length [21:01:16]Host: 172.17.63.195:8080 [21:01:16]Content-Length: 679 [21:01:16]Content-Type: application/json [21:01:16] [21:01:16]POST finish read [21:01:16]Found Content-Length = 679 [21:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:16]execute_script... [21:01:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:16]POST & json_proto [21:01:16]process_json_proto [21:01:16]json parsed OK: [21:01:16]protocol is kg_v1.0 [21:01:16]action value=close_receipt [21:01:16]process_action close_receipt [21:01:16]cmd_close_receipt [21:01:16]MH_GetDate [21:01:16]Write to MH i2c: F0 00 00 A1 00 90 [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: F0 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: F0 09 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: F0 09 00 A1 00 00 1D AA 1E 67 47 1B 1E 67 CC [21:01:16]GetLastDocTimeStamp 1730062635 [21:01:16]current date 1730062877 [21:01:16]FM_GetShiftState [21:01:16]SAM_PROTO_GetShiftState [21:01:16]wFMCommunicate request_size=4 [21:01:16]MH_SAM_APDU [21:01:16]CAPDU: 80 13 01 00 [21:01:16]Write to MH i2c: E2 08 00 A2 00 80 13 01 00 00 00 00 00 1F [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 0E 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 0E 00 A2 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 21 [21:01:16]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:01:16]wFMCommunicate OK [21:01:16]SAM_PROTO_GetShiftState done [21:01:16]FM_GetShiftState done [21:01:16]opened in 1729987312 [21:01:16]opened+sec_in_day 1730073712 [21:01:16]quantity*price = 150037 [21:01:16]sum+1 = 150039 [21:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 476 27.10.2024 21:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202184 ФПД: 71943790453854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210117&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202184&fm=71943790453854&tin=02508201610067®Number=0000000000091777&sum=150000 [21:01:17]StoreToDocumentArchive [21:01:17]shift 544 fd 202184 [21:01:17]save to /storage/0544/doc_00202184 [21:01:17]save last doc name /storage/0544/doc_00202184 to /storage/kkm_last_doc_name [21:01:17]save OK [21:01:17]Clear old archive folders... [21:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:01:17]tlvbuf is 009400B0 [21:01:17]SAM_PROTO_ClearQueue [21:01:17]wFMCommunicate request_size=4 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 09 00 00 [21:01:17]Write to MH i2c: E2 08 00 AF 00 80 09 00 00 00 00 00 00 21 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [21:01:17]RAPDU: 90 00 [21:01:17]wFMCommunicate OK [21:01:17]SAM_PROTO_ClearQueue done [21:01:17]KKMCreateOFDPacket [21:01:17]OFDProtocolAddRootSTLVToBuf [21:01:17]FM_MakeSignedData [21:01:17]FM_MakeSignedData [21:01:17]SAM_PROTO_SignData [21:01:17]wFMCommunicate request_size=4 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 0D 01 02 [21:01:17]Write to MH i2c: E2 08 00 B0 00 80 0D 01 02 00 00 00 00 29 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [21:01:17]RAPDU: 90 00 [21:01:17]wFMCommunicate OK [21:01:17]wFMCommunicate request_size=255 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 1D AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 15 03 00 35 04 06 00 41 6E B8 12 [21:01:17]Write to MH i2c: E2 02 01 B1 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 1D AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 15 03 00 35 04 06 00 41 6E B8 12 00 00 CE [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]OFD Sender: No OFD packet to send [21:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [21:01:17]RAPDU: 90 00 [21:01:17]wFMCommunicate OK [21:01:17]wFMCommunicate request_size=7 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 0D 02 02 02 E4 5E [21:01:17]Write to MH i2c: E2 0A 00 B2 00 80 0D 02 02 02 00 E4 5E 00 00 72 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [21:01:17]RAPDU: 90 00 [21:01:17]wFMCommunicate OK [21:01:17]wFMCommunicate request_size=4 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 0D 03 02 [21:01:17]Write to MH i2c: E2 08 00 B3 00 80 0D 03 02 00 00 00 00 2E [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 0B 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 0B 00 B3 00 00 44 C0 12 01 DD F9 9C B9 90 00 71 [21:01:17]RAPDU: 44 C0 12 01 DD F9 9C B9 90 00 [21:01:17]wFMCommunicate OK [21:01:17]SAM_PROTO_SignData done [21:01:17]FM_MakeSignedData done [21:01:17]CreateOFDProtocolMessage [21:01:17]wFMCommunicate request_size=4 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 11 00 00 [21:01:17]Write to MH i2c: E2 08 00 B4 00 80 11 00 00 00 00 00 00 2E [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 17 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 17 00 B4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 83 [21:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:01:17]wFMCommunicate OK [21:01:17]CreateOFDProtocolMessage done [21:01:17]OFDSenderStorePacket 202184 [21:01:17]StoreOFDPacket docnum=202184 [21:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 93 96 04 01 81 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 1D AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 15 03 00 35 04 06 00 41 6E B8 12 E4 5E 44 C0 12 01 DD F9 9C B9 [21:01:17]CheckFolder [21:01:17]dirname=/storage/ofd_packets [21:01:17]CheckFolder done [21:01:17]ProducePacketName [21:01:17]name=ofd_packets/00202184 [21:01:17]NVStorageSaveData ofd_packets/00202184 [21:01:17]File name is /storage/ofd_packets/00202184 [21:01:17]Write 298 bytes [21:01:17]NVStorageSaveData done [21:01:17]OFDSenderStorePacket done [21:01:17]KKMCreateOFDPacket done [21:01:17]NVStorageSaveData kkm_last_timestamp [21:01:17]File name is /storage/kkm_last_timestamp [21:01:17]Write 4 bytes [21:01:17]NVStorageSaveData done [21:01:17]ExternCall_PrintAddStr [21:01:17]wPrintStart [21:01:17]Write to MH i2c: 01 00 00 B5 00 B5 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 07 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 FF 0F CA [21:01:17]RasterBufferAndPrint [21:01:17]line Счет N : (1)449959 [21:01:17]line ИНН: 02508201610067 [21:01:17]line Контрольно-Кассовый Чек [21:01:17]line ПРОДАЖА [21:01:17]line ТРК (МРК, ГНК) : 21 [21:01:17]line Товар: 2710194210 [21:01:17]line ДТ-К-2 [21:01:17]line 19.690 * 76.20 [21:01:17]line = 1500.38 [21:01:17]line НДС 12% НСП 1% [21:01:17]line > о реализуемом товаре [21:01:17]line ОКРУГЛЕНИЕ: -0.38 [21:01:17]line ИТОГО: 1500.00 [21:01:17]line Внесено: 1500.00 [21:01:17]line СДАЧА: 0.00 [21:01:17]line НСП 1% : 13.28 [21:01:17]line НДС 12% : 159.33 [21:01:17]line Наличными: 1500.00 [21:01:17]line Безнал.: 0.00 [21:01:17]line Место: АЗС № 171 "Партнер Нефть" [21:01:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:01:17]line СНО: Общий режим [21:01:17]line Чек 476 27.10.2024 21:01 [21:01:17]line Смена: 544 ФФД: 1.0 [21:01:17]line ЗНМ: 0300000109 [21:01:17]line РНМ: 0000000000091777 [21:01:17]line Версия ККМ: 001 [21:01:17]line ФМ: 0000000000871756 [21:01:17]line ФД: 202184 [21:01:17]line ФПД: 71943790453854 [21:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210117&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202184&fm=71943790453854&tin=02508201610067®Number=0000000000091777&sum=150000 [21:01:18]OFD Sender: Processing packet 202184 [packets to send 114, broken 113] [21:01:18]ProducePacketName [21:01:18]name=ofd_packets/00202184 [21:01:18]OFD Sender: To server: pG, [21:01:18]CommunicateWithHost lk.salyk.kg:30040 [21:01:18]ConnectInit lk.salyk.kg [21:01:18]written 0, free lines is 4095 [21:01:18]Connected sock=10 [21:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 93 96 04 01 81 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 01 00 00 F4 03 04 00 1D AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 15 03 00 35 04 06 00 41 6E B8 12 E4 5E 44 C0 12 01 DD F9 9C B9 [21:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 72 55 47 00 F7 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 15 03 00 F4 03 04 00 D5 55 1E 67 B6 04 01 00 00 36 6A AB 0D EF 2B CF 84 [21:01:18]CommunicateWithHost err = 0 [21:01:18]CheckOFDResponse [21:01:18]1017 (14) - 77093643461234 [21:01:18]1041 (16) - 0000000000871756 [21:01:18]1040 (4) - 202184 [21:01:18]1012 (4) - 27.10.2024 15:01 [21:01:18]1206 (1) - 0 [21:01:18]OFD Sender: Remove packet 202184 [21:01:18]ProducePacketName [21:01:18]name=ofd_packets/00202184 [21:01:18]NVStorageDeleteData [21:01:18]Write to MH i2c: 01 00 00 E0 00 E0 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: 01 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: 01 07 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 93 0C 86 [21:01:18]RasterBufferAndPrint [21:01:18]line [21:01:18]line [21:01:18]line [21:01:18]line [21:01:18]line [21:01:18]written 0, free lines is 3223 [21:01:18]MH_Cut [21:01:18]Write to MH i2c: D1 01 00 E7 00 01 B9 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: D1 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: D1 01 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: D1 01 00 E7 00 00 B8 [21:01:18]Write to MH i2c: 01 00 00 E8 00 E8 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:19]OFD Sender: No OFD packet to send [21:01:19]*** Cut start [21:01:19]*** Purtial cut [21:01:19]*** Stage 1: CUTSNS_PIN = 1 [21:01:19]Read from MH i2c: 01 [21:01:19]MH_I2C_Read... [21:01:19]*** Stop cut motor [21:01:19]*** Cut end [21:01:19]Read from MH i2c: 01 07 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: 01 07 00 E8 00 00 00 00 00 00 FF 0F FD [21:01:19]process_action close_receipt done [21:01:19]requested_data is exist [21:01:19]produce_requested_data [21:01:19]requested_item fm.sn is exist - process it [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 11 00 00 [21:01:19]Write to MH i2c: E2 08 00 E9 00 80 11 00 00 00 00 00 00 63 [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 17 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 17 00 E9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [21:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:01:19]wFMCommunicate OK [21:01:19]requested_item fd.num is exist - process it [21:01:19]SAM_PROTO_GetFieldsCounters [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 13 00 00 [21:01:19]Write to MH i2c: E2 08 00 EA 00 80 13 00 00 00 00 00 00 66 [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 62 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 62 00 EA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C8 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [21:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C8 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:19]wFMCommunicate OK [21:01:19]SAM_PROTO_GetFieldsCounters done [21:01:19]requested_item shift.num is exist - process it [21:01:19]requested_item shift.opened is exist - process it [21:01:19]req_shift_opened [21:01:19]FM_GetShiftState [21:01:19]SAM_PROTO_GetShiftState [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 13 01 00 [21:01:19]Write to MH i2c: E2 08 00 EB 00 80 13 01 00 00 00 00 00 68 [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 0E 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 0E 00 EB 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6A [21:01:20]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:01:20]wFMCommunicate OK [21:01:20]SAM_PROTO_GetShiftState done [21:01:20]FM_GetShiftState done [21:01:20]req_shift_opened done [21:01:20]requested_item shift.open_date is exist - process it [21:01:20]req_shift_open_date [21:01:20]req_shift_open_date done [21:01:20]produce_requested_data done [21:01:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202184,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [21:01:20]process_action_free close_receipt [21:01:20]json_value_free [21:01:20]json_value_free done [21:01:20]process_json_proto returns [21:01:20]Send response to host [21:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202184,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [21:01:20]free response buf [21:01:20]execute_script done [21:01:20]execute_script returns [21:01:20]free content buf [21:01:20]Sock 9.Close socket [21:01:20]Sock 9.Thread stoped [21:01:24]OFD Sender: No OFD packet to send [21:01:27]accept exits with 7 [21:01:27]New connection [21:01:27]New thread 3067420004 created [21:01:27]Thread 3067563364 joined [21:01:27]Waiting for new connection... [21:01:27] Sock 7.Parse request [21:01:27]Sock 7.Check first char [21:01:27]Sock 7.First char is OK [21:01:27]request: POST /json_proto HTTP/1.0 [21:01:27]Method: POST [21:01:27]URL: /json_proto [21:01:27]Method is POST - this is cgi request [21:01:27]url: /json_proto [21:01:27]query_string will be loaded in cgi processing [21:01:27]execute_cgi json_proto POST (null) [21:01:27]execute_cgi path=json_proto method=POST [21:01:27]POST find Content-Length [21:01:27]Host: 172.17.63.195:8080 [21:01:27]Content-Length: 675 [21:01:27]Content-Type: application/json [21:01:27] [21:01:27]POST finish read [21:01:27]Found Content-Length = 675 [21:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.110, "sum" : 770.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:27]execute_script... [21:01: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)449958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.110, "sum" : 770.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:27]POST & json_proto [21:01:27]process_json_proto [21:01:27]json parsed OK: [21:01:27]protocol is kg_v1.0 [21:01:27]action value=close_receipt [21:01:27]process_action close_receipt [21:01:27]cmd_close_receipt [21:01:27]MH_GetDate [21:01:27]Write to MH i2c: F0 00 00 EC 00 DB [21:01:27]Write i2c OK [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: F0 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: F0 09 00 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: F0 09 00 EC 00 00 27 AA 1E 67 47 1B 1E 67 21 [21:01:27]GetLastDocTimeStamp 1730062877 [21:01:27]current date 1730062887 [21:01:27]FM_GetShiftState [21:01:27]SAM_PROTO_GetShiftState [21:01:27]wFMCommunicate request_size=4 [21:01:27]MH_SAM_APDU [21:01:27]CAPDU: 80 13 01 00 [21:01:27]Write to MH i2c: E2 08 00 ED 00 80 13 01 00 00 00 00 00 6A [21:01:27]Write i2c OK [21:01:27]MH_I2C_Read... [21:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:27]Read from MH i2c: E2 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: E2 0E 00 [21:01:27]MH_I2C_Read... [21:01:27]Read from MH i2c: E2 0E 00 ED 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6C [21:01:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:01:27]wFMCommunicate OK [21:01:27]SAM_PROTO_GetShiftState done [21:01:27]FM_GetShiftState done [21:01:27]opened in 1729987312 [21:01:27]opened+sec_in_day 1730073712 [21:01:27]quantity*price = 77038 [21:01:27]sum+1 = 77039 [21:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 770.00 Внесено: 770.00 СДАЧА: 0.00 НСП 1% : 6.82 НДС 12% : 81.81 Наличными: 770.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 477 27.10.2024 21:01 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202185 ФПД: 113965635535934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202185&fm=113965635535934&tin=02508201610067®Number=0000000000091777&sum=77000 [21:01:28]StoreToDocumentArchive [21:01:28]shift 544 fd 202185 [21:01:28]save to /storage/0544/doc_00202185 [21:01:28]save last doc name /storage/0544/doc_00202185 to /storage/kkm_last_doc_name [21:01:28]save OK [21:01:28]Clear old archive folders... [21:01:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:01:28]tlvbuf is 0095A810 [21:01:28]SAM_PROTO_ClearQueue [21:01:28]wFMCommunicate request_size=4 [21:01:28]MH_SAM_APDU [21:01:28]CAPDU: 80 09 00 00 [21:01:28]Write to MH i2c: E2 08 00 FA 00 80 09 00 00 00 00 00 00 6C [21:01:28]Write i2c OK [21:01:28]MH_I2C_Read... [21:01:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:28]Read from MH i2c: E2 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 03 00 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [21:01:28]RAPDU: 90 00 [21:01:28]wFMCommunicate OK [21:01:28]SAM_PROTO_ClearQueue done [21:01:28]KKMCreateOFDPacket [21:01:28]OFDProtocolAddRootSTLVToBuf [21:01:28]FM_MakeSignedData [21:01:28]FM_MakeSignedData [21:01:28]SAM_PROTO_SignData [21:01:28]wFMCommunicate request_size=4 [21:01:28]MH_SAM_APDU [21:01:28]CAPDU: 80 0D 01 02 [21:01:28]Write to MH i2c: E2 08 00 FB 00 80 0D 01 02 00 00 00 00 74 [21:01:28]Write i2c OK [21:01:28]MH_I2C_Read... [21:01:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:28]Read from MH i2c: E2 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 03 00 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [21:01:28]RAPDU: 90 00 [21:01:28]wFMCommunicate OK [21:01:28]wFMCommunicate request_size=255 [21:01:28]MH_SAM_APDU [21:01:28]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 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 01 00 00 F4 03 04 00 28 AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 15 03 00 35 04 06 00 67 A6 B1 39 [21:01:28]Write to MH i2c: E2 02 01 FC 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 01 00 00 F4 03 04 00 28 AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 15 03 00 35 04 06 00 67 A6 B1 39 00 00 50 [21:01:28]Write i2c OK [21:01:28]MH_I2C_Read... [21:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:28]Read from MH i2c: E2 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 03 00 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [21:01:28]RAPDU: 90 00 [21:01:28]wFMCommunicate OK [21:01:28]wFMCommunicate request_size=7 [21:01:28]MH_SAM_APDU [21:01:28]CAPDU: 80 0D 02 02 02 04 3E [21:01:28]Write to MH i2c: E2 0A 00 FD 00 80 0D 02 02 02 00 04 3E 00 00 BD [21:01:28]Write i2c OK [21:01:28]MH_I2C_Read... [21:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:28]Read from MH i2c: E2 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 03 00 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [21:01:28]RAPDU: 90 00 [21:01:28]wFMCommunicate OK [21:01:28]wFMCommunicate request_size=4 [21:01:28]MH_SAM_APDU [21:01:28]CAPDU: 80 0D 03 02 [21:01:28]Write to MH i2c: E2 08 00 FE 00 80 0D 03 02 00 00 00 00 79 [21:01:28]Write i2c OK [21:01:28]MH_I2C_Read... [21:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:28]Read from MH i2c: E2 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 0B 00 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 0B 00 FE 00 00 41 AB 31 64 17 4B B7 26 90 00 3A [21:01:28]RAPDU: 41 AB 31 64 17 4B B7 26 90 00 [21:01:28]wFMCommunicate OK [21:01:28]SAM_PROTO_SignData done [21:01:28]FM_MakeSignedData done [21:01:28]CreateOFDProtocolMessage [21:01:28]wFMCommunicate request_size=4 [21:01:28]MH_SAM_APDU [21:01:28]CAPDU: 80 11 00 00 [21:01:28]Write to MH i2c: E2 08 00 FF 00 80 11 00 00 00 00 00 00 79 [21:01:28]Write i2c OK [21:01:28]MH_I2C_Read... [21:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:28]Read from MH i2c: E2 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 17 00 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: E2 17 00 FF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [21:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:01:28]wFMCommunicate OK [21:01:28]CreateOFDProtocolMessage done [21:01:28]OFDSenderStorePacket 202185 [21:01:28]StoreOFDPacket docnum=202185 [21:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 43 3E 04 01 77 B4 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 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 01 00 00 F4 03 04 00 28 AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 15 03 00 35 04 06 00 67 A6 B1 39 04 3E 41 AB 31 64 17 4B B7 26 [21:01:28]CheckFolder [21:01:28]dirname=/storage/ofd_packets [21:01:28]CheckFolder done [21:01:28]ProducePacketName [21:01:28]name=ofd_packets/00202185 [21:01:28]NVStorageSaveData ofd_packets/00202185 [21:01:28]File name is /storage/ofd_packets/00202185 [21:01:28]Write 298 bytes [21:01:28]NVStorageSaveData done [21:01:28]OFDSenderStorePacket done [21:01:28]KKMCreateOFDPacket done [21:01:28]NVStorageSaveData kkm_last_timestamp [21:01:28]File name is /storage/kkm_last_timestamp [21:01:28]Write 4 bytes [21:01:28]NVStorageSaveData done [21:01:28]OFD Sender: Processing packet 202185 [packets to send 114, broken 113] [21:01:28]ProducePacketName [21:01:28]name=ofd_packets/00202185 [21:01:28]OFD Sender: To server: pG, [21:01:28]CommunicateWithHost lk.salyk.kg:30040 [21:01:28]ConnectInit lk.salyk.kg [21:01:28]ExternCall_PrintAddStr [21:01:28]wPrintStart [21:01:28]Write to MH i2c: 01 00 00 00 01 01 [21:01:28]Write i2c OK [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: 01 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: 01 07 00 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [21:01:28]RasterBufferAndPrint [21:01:28]line Счет N : (1)449958 [21:01:28]line ИНН: 02508201610067 [21:01:28]line Контрольно-Кассовый Чек [21:01:28]line ПРОДАЖА [21:01:28]line ТРК (МРК, ГНК) : 43 [21:01:28]line Товар: 2710194210 [21:01:28]line ДТ-К-2 [21:01:28]line 10.110 * 76.20 [21:01:28]line = 770.38 [21:01:28]line НДС 12% НСП 1% [21:01:28]line > о реализуемом товаре [21:01:28]line ОКРУГЛЕНИЕ: -0.38 [21:01:28]line ИТОГО: 770.00 [21:01:28]line Внесено: 770.00 [21:01:28]line СДАЧА: 0.00 [21:01:28]line НСП 1% : 6.82 [21:01:28]line НДС 12% : 81.81 [21:01:28]line Наличными: 770.00 [21:01:28]line Безнал.: 0.00 [21:01:28]line Место: АЗС № 171 "Партнер Нефть" [21:01:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:01:28]line СНО: Общий режим [21:01:28]line Чек 477 27.10.2024 21:01 [21:01:28]line Смена: 544 ФФД: 1.0 [21:01:28]line ЗНМ: 0300000109 [21:01:28]line РНМ: 0000000000091777 [21:01:28]line Версия ККМ: 001 [21:01:28]line ФМ: 0000000000871756 [21:01:28]line ФД: 202185 [21:01:28]line ФПД: 113965635535934 [21:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202185&fm=113965635535934&tin=02508201610067®Number=0000000000091777&sum=77000 [21:01:29]Connected sock=11 [21:01:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 43 3E 04 01 77 B4 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 32 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 1F 00 00 00 00 07 04 06 00 C8 2C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 01 00 00 F4 03 04 00 28 AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 15 03 00 35 04 06 00 67 A6 B1 39 04 3E 41 AB 31 64 17 4B B7 26 [21:01:29]written 0, free lines is 4095 [21:01:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A1 4F 47 00 6D 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 15 03 00 F4 03 04 00 E0 55 1E 67 B6 04 01 00 00 E5 A8 85 20 FF 2A 5A EF [21:01:29]CommunicateWithHost err = 0 [21:01:29]CheckOFDResponse [21:01:29]1017 (14) - 77093643461234 [21:01:29]1041 (16) - 0000000000871756 [21:01:29]1040 (4) - 202185 [21:01:29]1012 (4) - 27.10.2024 15:01 [21:01:29]1206 (1) - 0 [21:01:29]OFD Sender: Remove packet 202185 [21:01:29]ProducePacketName [21:01:29]name=ofd_packets/00202185 [21:01:29]NVStorageDeleteData [21:01:29]Write to MH i2c: 01 00 00 2B 01 2C [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: 01 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: 01 07 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: 01 07 00 2B 01 00 00 00 00 00 9A 0C D9 [21:01:29]RasterBufferAndPrint [21:01:29]line [21:01:29]line [21:01:29]line [21:01:29]line [21:01:29]line [21:01:29]written 0, free lines is 3233 [21:01:29]MH_Cut [21:01:29]Write to MH i2c: D1 01 00 32 01 01 05 [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: D1 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: D1 01 00 [21:01:29]MH_I2C_Read... [21:01:29]Read from MH i2c: D1 01 00 32 01 00 04 [21:01:29]Write to MH i2c: 01 00 00 33 01 34 [21:01:29]Write i2c OK [21:01:29]MH_I2C_Read... [21:01:29]OFD Sender: No OFD packet to send [21:01:30]*** Cut start [21:01:30]*** Purtial cut [21:01:30]*** Stage 1: CUTSNS_PIN = 1 [21:01:30]Read from MH i2c: 01 [21:01:30]MH_I2C_Read... [21:01:30]*** Stop cut motor [21:01:30]*** Cut end [21:01:30]Read from MH i2c: 01 07 00 [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 FF 0F 49 [21:01:30]process_action close_receipt done [21:01:30]requested_data is exist [21:01:30]produce_requested_data [21:01:30]requested_item fm.sn is exist - process it [21:01:30]wFMCommunicate request_size=4 [21:01:30]MH_SAM_APDU [21:01:30]CAPDU: 80 11 00 00 [21:01:30]Write to MH i2c: E2 08 00 34 01 80 11 00 00 00 00 00 00 AF [21:01:30]Write i2c OK [21:01:30]MH_I2C_Read... [21:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:30]Read from MH i2c: E2 [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: E2 17 00 [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: E2 17 00 34 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [21:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:01:30]wFMCommunicate OK [21:01:30]requested_item fd.num is exist - process it [21:01:30]SAM_PROTO_GetFieldsCounters [21:01:30]wFMCommunicate request_size=4 [21:01:30]MH_SAM_APDU [21:01:30]CAPDU: 80 13 00 00 [21:01:30]Write to MH i2c: E2 08 00 35 01 80 13 00 00 00 00 00 00 B2 [21:01:30]Write i2c OK [21:01:30]MH_I2C_Read... [21:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:30]Read from MH i2c: E2 [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: E2 62 00 [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: E2 62 00 35 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C9 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [21:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C9 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:30]wFMCommunicate OK [21:01:30]SAM_PROTO_GetFieldsCounters done [21:01:30]requested_item shift.num is exist - process it [21:01:30]requested_item shift.opened is exist - process it [21:01:30]req_shift_opened [21:01:30]FM_GetShiftState [21:01:30]SAM_PROTO_GetShiftState [21:01:30]wFMCommunicate request_size=4 [21:01:30]MH_SAM_APDU [21:01:30]CAPDU: 80 13 01 00 [21:01:30]Write to MH i2c: E2 08 00 36 01 80 13 01 00 00 00 00 00 B4 [21:01:30]Write i2c OK [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: E2 [21:01:30]MH_I2C_Read... [21:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:30]Read from MH i2c: E2 0E 00 [21:01:30]MH_I2C_Read... [21:01:30]Read from MH i2c: E2 0E 00 36 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B6 [21:01:30]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:01:30]wFMCommunicate OK [21:01:30]SAM_PROTO_GetShiftState done [21:01:30]FM_GetShiftState done [21:01:30]req_shift_opened done [21:01:30]requested_item shift.open_date is exist - process it [21:01:30]req_shift_open_date [21:01:30]req_shift_open_date done [21:01:30]produce_requested_data done [21:01:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202185,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [21:01:30]process_action_free close_receipt [21:01:30]json_value_free [21:01:30]json_value_free done [21:01:30]process_json_proto returns [21:01:30]Send response to host [21:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202185,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [21:01:30]free response buf [21:01:30]execute_script done [21:01:30]execute_script returns [21:01:30]free content buf [21:01:30]Sock 7.Close socket [21:01:30]Sock 7.Thread stoped [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]accept exits with 9 [21:02:04]New connection [21:02:04]New thread 3067563364 created [21:02:04]Thread 3067420004 joined [21:02:04]Waiting for new connection... [21:02:04] Sock 9.Parse request [21:02:04]Sock 9.Check first char [21:02:04]Sock 9.First char is OK [21:02:04]request: POST /json_proto HTTP/1.0 [21:02:04]Method: POST [21:02:04]URL: /json_proto [21:02:04]Method is POST - this is cgi request [21:02:04]url: /json_proto [21:02:04]query_string will be loaded in cgi processing [21:02:04]execute_cgi json_proto POST (null) [21:02:04]execute_cgi path=json_proto method=POST [21:02:04]POST find Content-Length [21:02:04]Host: 172.17.63.195:8080 [21:02:04]Content-Length: 677 [21:02:04]Content-Type: application/json [21:02:04] [21:02:04]POST finish read [21:02:04]Found Content-Length = 677 [21:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:04]execute_script... [21:02: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)449960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:04]POST & json_proto [21:02:04]process_json_proto [21:02:04]json parsed OK: [21:02:04]protocol is kg_v1.0 [21:02:04]action value=close_receipt [21:02:04]process_action close_receipt [21:02:04]cmd_close_receipt [21:02:04]MH_GetDate [21:02:04]Write to MH i2c: F0 00 00 37 01 27 [21:02:04]Write i2c OK [21:02:04]MH_I2C_Read... [21:02:04]Read from MH i2c: F0 [21:02:04]MH_I2C_Read... [21:02:04]Read from MH i2c: F0 09 00 [21:02:04]MH_I2C_Read... [21:02:04]Read from MH i2c: F0 09 00 37 01 00 4C AA 1E 67 47 1B 1E 67 92 [21:02:04]GetLastDocTimeStamp 1730062888 [21:02:04]current date 1730062924 [21:02:04]FM_GetShiftState [21:02:04]SAM_PROTO_GetShiftState [21:02:04]wFMCommunicate request_size=4 [21:02:04]MH_SAM_APDU [21:02:04]CAPDU: 80 13 01 00 [21:02:04]Write to MH i2c: E2 08 00 38 01 80 13 01 00 00 00 00 00 B6 [21:02:04]Write i2c OK [21:02:04]MH_I2C_Read... [21:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:04]Read from MH i2c: E2 [21:02:04]MH_I2C_Read... [21:02:04]Read from MH i2c: E2 0E 00 [21:02:04]MH_I2C_Read... [21:02:04]Read from MH i2c: E2 0E 00 38 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B8 [21:02:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:02:04]wFMCommunicate OK [21:02:04]SAM_PROTO_GetShiftState done [21:02:04]FM_GetShiftState done [21:02:04]opened in 1729987312 [21:02:04]opened+sec_in_day 1730073712 [21:02:04]quantity*price = 34052 [21:02:04]sum+1 = 34053 [21:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 478 27.10.2024 21:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202186 ФПД: 38219694544957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210204&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202186&fm=38219694544957&tin=02508201610067®Number=0000000000091777&sum=34000 [21:02:05]StoreToDocumentArchive [21:02:05]shift 544 fd 202186 [21:02:05]save to /storage/0544/doc_00202186 [21:02:05]save last doc name /storage/0544/doc_00202186 to /storage/kkm_last_doc_name [21:02:05]save OK [21:02:05]Clear old archive folders... [21:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:05]tlvbuf is 0095C140 [21:02:05]SAM_PROTO_ClearQueue [21:02:05]wFMCommunicate request_size=4 [21:02:05]MH_SAM_APDU [21:02:05]CAPDU: 80 09 00 00 [21:02:05]Write to MH i2c: E2 08 00 45 01 80 09 00 00 00 00 00 00 B8 [21:02:05]Write i2c OK [21:02:05]MH_I2C_Read... [21:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:05]Read from MH i2c: E2 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 03 00 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [21:02:05]RAPDU: 90 00 [21:02:05]wFMCommunicate OK [21:02:05]SAM_PROTO_ClearQueue done [21:02:05]KKMCreateOFDPacket [21:02:05]OFDProtocolAddRootSTLVToBuf [21:02:05]FM_MakeSignedData [21:02:05]FM_MakeSignedData [21:02:05]SAM_PROTO_SignData [21:02:05]wFMCommunicate request_size=4 [21:02:05]MH_SAM_APDU [21:02:05]CAPDU: 80 0D 01 02 [21:02:05]Write to MH i2c: E2 08 00 46 01 80 0D 01 02 00 00 00 00 C0 [21:02:05]Write i2c OK [21:02:05]MH_I2C_Read... [21:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:05]Read from MH i2c: E2 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 03 00 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [21:02:05]RAPDU: 90 00 [21:02:05]wFMCommunicate OK [21:02:05]wFMCommunicate request_size=255 [21:02:05]MH_SAM_APDU [21:02:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 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 20 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 DE 01 00 00 F4 03 04 00 4C AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 15 03 00 35 04 06 00 22 [21:02:05]Write to MH i2c: E2 02 01 47 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 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 20 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 DE 01 00 00 F4 03 04 00 4C AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 15 03 00 35 04 06 00 22 00 00 0D [21:02:05]Write i2c OK [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 [21:02:05]MH_I2C_Read... [21:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:05]Read from MH i2c: E2 03 00 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [21:02:05]RAPDU: 90 00 [21:02:05]wFMCommunicate OK [21:02:05]wFMCommunicate request_size=10 [21:02:05]MH_SAM_APDU [21:02:05]CAPDU: 80 0D 02 02 05 C2 B7 51 18 3D [21:02:05]Write to MH i2c: E2 0D 00 48 01 80 0D 02 02 05 00 C2 B7 51 18 3D 00 00 EC [21:02:05]Write i2c OK [21:02:05]MH_I2C_Read... [21:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:05]Read from MH i2c: E2 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 03 00 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [21:02:05]RAPDU: 90 00 [21:02:05]wFMCommunicate OK [21:02:05]wFMCommunicate request_size=4 [21:02:05]MH_SAM_APDU [21:02:05]CAPDU: 80 0D 03 02 [21:02:05]Write to MH i2c: E2 08 00 49 01 80 0D 03 02 00 00 00 00 C5 [21:02:05]Write i2c OK [21:02:05]MH_I2C_Read... [21:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:05]Read from MH i2c: E2 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 0B 00 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 0B 00 49 01 00 C5 C5 44 AE 15 B0 DD 91 90 00 75 [21:02:05]RAPDU: C5 C5 44 AE 15 B0 DD 91 90 00 [21:02:05]wFMCommunicate OK [21:02:05]SAM_PROTO_SignData done [21:02:05]FM_MakeSignedData done [21:02:05]CreateOFDProtocolMessage [21:02:05]wFMCommunicate request_size=4 [21:02:05]MH_SAM_APDU [21:02:05]CAPDU: 80 11 00 00 [21:02:05]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [21:02:05]Write i2c OK [21:02:05]MH_I2C_Read... [21:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:05]Read from MH i2c: E2 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 17 00 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1A [21:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:02:05]wFMCommunicate OK [21:02:05]CreateOFDProtocolMessage done [21:02:05]OFDSenderStorePacket 202186 [21:02:05]StoreOFDPacket docnum=202186 [21:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 2D 07 01 8A 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 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 20 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 DE 01 00 00 F4 03 04 00 4C AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 15 03 00 35 04 06 00 22 C2 B7 51 18 3D C5 C5 44 AE 15 B0 DD 91 [21:02:05]CheckFolder [21:02:05]dirname=/storage/ofd_packets [21:02:05]CheckFolder done [21:02:05]ProducePacketName [21:02:05]name=ofd_packets/00202186 [21:02:05]NVStorageSaveData ofd_packets/00202186 [21:02:05]File name is /storage/ofd_packets/00202186 [21:02:05]Write 301 bytes [21:02:05]NVStorageSaveData done [21:02:05]OFDSenderStorePacket done [21:02:05]KKMCreateOFDPacket done [21:02:05]NVStorageSaveData kkm_last_timestamp [21:02:05]File name is /storage/kkm_last_timestamp [21:02:05]Write 4 bytes [21:02:05]NVStorageSaveData done [21:02:05]ExternCall_PrintAddStr [21:02:05]wPrintStart [21:02:05]Write to MH i2c: 01 00 00 4B 01 4C [21:02:05]Write i2c OK [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: 01 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: 01 07 00 [21:02:05]MH_I2C_Read... [21:02:05]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 FF 0F 61 [21:02:05]RasterBufferAndPrint [21:02:05]line Счет N : (1)449960 [21:02:05]line ИНН: 02508201610067 [21:02:05]line Контрольно-Кассовый Чек [21:02:05]line ПРОДАЖА [21:02:05]line ТРК (МРК, ГНК) : 62 [21:02:05]line Товар: 2710124130 [21:02:05]line Аи-92-К-2 [21:02:05]line 5.090 * 66.90 [21:02:05]line = 340.52 [21:02:05]line НДС 12% НСП 1% [21:02:05]line > о реализуемом товаре [21:02:05]line ОКРУГЛЕНИЕ: -0.52 [21:02:05]line ИТОГО: 340.00 [21:02:05]line Внесено: 340.00 [21:02:05]line СДАЧА: 0.00 [21:02:05]line НСП 1% : 3.01 [21:02:05]line НДС 12% : 36.16 [21:02:05]line Наличными: 340.00 [21:02:05]line Безнал.: 0.00 [21:02:05]line Место: АЗС № 171 "Партнер Нефть" [21:02:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:02:05]line СНО: Общий режим [21:02:05]line Чек 478 27.10.2024 21:02 [21:02:05]line Смена: 544 ФФД: 1.0 [21:02:05]line ЗНМ: 0300000109 [21:02:05]line РНМ: 0000000000091777 [21:02:05]line Версия ККМ: 001 [21:02:05]line ФМ: 0000000000871756 [21:02:05]line ФД: 202186 [21:02:05]line ФПД: 38219694544957 [21:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210204&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202186&fm=38219694544957&tin=02508201610067®Number=0000000000091777&sum=34000 [21:02:06]OFD Sender: Processing packet 202186 [packets to send 114, broken 113] [21:02:06]ProducePacketName [21:02:06]name=ofd_packets/00202186 [21:02:06]OFD Sender: To server: pG, [21:02:06]CommunicateWithHost lk.salyk.kg:30040 [21:02:06]ConnectInit lk.salyk.kg [21:02:06]written 0, free lines is 4095 [21:02:06]Connected sock=10 [21:02:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 2D 07 01 8A 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 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 20 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 DE 01 00 00 F4 03 04 00 4C AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 15 03 00 35 04 06 00 22 C2 B7 51 18 3D C5 C5 44 AE 15 B0 DD 91 [21:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 04 5B 47 00 6A 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 15 03 00 F4 03 04 00 05 56 1E 67 B6 04 01 00 00 97 9E FF 7F 6C 26 34 03 [21:02:06]CommunicateWithHost err = 0 [21:02:06]CheckOFDResponse [21:02:06]1017 (14) - 77093643461234 [21:02:06]1041 (16) - 0000000000871756 [21:02:06]1040 (4) - 202186 [21:02:06]1012 (4) - 27.10.2024 15:02 [21:02:06]1206 (1) - 0 [21:02:06]OFD Sender: Remove packet 202186 [21:02:06]ProducePacketName [21:02:06]name=ofd_packets/00202186 [21:02:06]NVStorageDeleteData [21:02:06]Write to MH i2c: 01 00 00 76 01 77 [21:02:06]Write i2c OK [21:02:06]MH_I2C_Read... [21:02:06]Read from MH i2c: 01 [21:02:06]MH_I2C_Read... [21:02:06]Read from MH i2c: 01 07 00 [21:02:06]MH_I2C_Read... [21:02:06]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 9B 0C 25 [21:02:06]RasterBufferAndPrint [21:02:06]line [21:02:06]line [21:02:06]line [21:02:06]line [21:02:06]line [21:02:06]written 0, free lines is 3233 [21:02:06]MH_Cut [21:02:06]Write to MH i2c: D1 01 00 7D 01 01 50 [21:02:06]Write i2c OK [21:02:06]MH_I2C_Read... [21:02:06]Read from MH i2c: D1 [21:02:06]MH_I2C_Read... [21:02:06]Read from MH i2c: D1 01 00 [21:02:06]MH_I2C_Read... [21:02:06]Read from MH i2c: D1 01 00 7D 01 00 4F [21:02:06]Write to MH i2c: 01 00 00 7E 01 7F [21:02:06]Write i2c OK [21:02:06]MH_I2C_Read... [21:02:06]OFD Sender: No OFD packet to send [21:02:07]*** Cut start [21:02:07]*** Purtial cut [21:02:07]*** Stage 1: CUTSNS_PIN = 1 [21:02:07]Read from MH i2c: 01 [21:02:07]MH_I2C_Read... [21:02:07]*** Stop cut motor [21:02:07]*** Cut end [21:02:07]Read from MH i2c: 01 07 00 [21:02:07]MH_I2C_Read... [21:02:07]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 FF 0F 94 [21:02:07]process_action close_receipt done [21:02:07]requested_data is exist [21:02:07]produce_requested_data [21:02:07]requested_item fm.sn is exist - process it [21:02:07]wFMCommunicate request_size=4 [21:02:07]MH_SAM_APDU [21:02:07]CAPDU: 80 11 00 00 [21:02:07]Write to MH i2c: E2 08 00 7F 01 80 11 00 00 00 00 00 00 FA [21:02:07]Write i2c OK [21:02:07]MH_I2C_Read... [21:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:07]Read from MH i2c: E2 [21:02:07]MH_I2C_Read... [21:02:07]Read from MH i2c: E2 17 00 [21:02:07]MH_I2C_Read... [21:02:07]Read from MH i2c: E2 17 00 7F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [21:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:02:07]wFMCommunicate OK [21:02:07]requested_item fd.num is exist - process it [21:02:07]SAM_PROTO_GetFieldsCounters [21:02:07]wFMCommunicate request_size=4 [21:02:07]MH_SAM_APDU [21:02:07]CAPDU: 80 13 00 00 [21:02:07]Write to MH i2c: E2 08 00 80 01 80 13 00 00 00 00 00 00 FD [21:02:07]Write i2c OK [21:02:07]MH_I2C_Read... [21:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:07]Read from MH i2c: E2 [21:02:07]MH_I2C_Read... [21:02:07]Read from MH i2c: E2 62 00 [21:02:07]MH_I2C_Read... [21:02:07]Read from MH i2c: E2 62 00 80 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CA 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [21:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CA 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:07]wFMCommunicate OK [21:02:07]SAM_PROTO_GetFieldsCounters done [21:02:07]requested_item shift.num is exist - process it [21:02:07]requested_item shift.opened is exist - process it [21:02:07]req_shift_opened [21:02:07]FM_GetShiftState [21:02:07]SAM_PROTO_GetShiftState [21:02:07]wFMCommunicate request_size=4 [21:02:07]MH_SAM_APDU [21:02:07]CAPDU: 80 13 01 00 [21:02:07]Write to MH i2c: E2 08 00 81 01 80 13 01 00 00 00 00 00 FF [21:02:07]Write i2c OK [21:02:07]MH_I2C_Read... [21:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:07]Read from MH i2c: E2 [21:02:07]MH_I2C_Read... [21:02:07]Read from MH i2c: E2 0E 00 [21:02:07]MH_I2C_Read... [21:02:07]Read from MH i2c: E2 0E 00 81 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 01 [21:02:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:02:07]wFMCommunicate OK [21:02:07]SAM_PROTO_GetShiftState done [21:02:07]FM_GetShiftState done [21:02:07]req_shift_opened done [21:02:07]requested_item shift.open_date is exist - process it [21:02:07]req_shift_open_date [21:02:07]req_shift_open_date done [21:02:07]produce_requested_data done [21:02:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202186,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [21:02:07]process_action_free close_receipt [21:02:07]json_value_free [21:02:07]json_value_free done [21:02:07]process_json_proto returns [21:02:07]Send response to host [21:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202186,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [21:02:07]free response buf [21:02:07]execute_script done [21:02:07]execute_script returns [21:02:07]free content buf [21:02:07]Sock 9.Close socket [21:02:07]Sock 9.Thread stoped [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:13]accept exits with 7 [21:03:13]New connection [21:03:13]New thread 3067420004 created [21:03:13]Thread 3067563364 joined [21:03:13]Waiting for new connection... [21:03:13] Sock 7.Parse request [21:03:13]Sock 7.Check first char [21:03:13]Sock 7.First char is OK [21:03:13]request: POST /json_proto HTTP/1.0 [21:03:13]Method: POST [21:03:13]URL: /json_proto [21:03:13]Method is POST - this is cgi request [21:03:13]url: /json_proto [21:03:13]query_string will be loaded in cgi processing [21:03:13]execute_cgi json_proto POST (null) [21:03:13]execute_cgi path=json_proto method=POST [21:03:13]POST find Content-Length [21:03:13]Host: 172.17.63.195:8080 [21:03:13]Content-Length: 679 [21:03:13]Content-Type: application/json [21:03:13] [21:03:13]POST finish read [21:03:13]Found Content-Length = 679 [21:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [21:03:13]execute_script... [21:03:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [21:03:13]POST & json_proto [21:03:13]process_json_proto [21:03:13]json parsed OK: [21:03:13]protocol is kg_v1.0 [21:03:13]action value=close_receipt [21:03:13]process_action close_receipt [21:03:13]cmd_close_receipt [21:03:13]MH_GetDate [21:03:13]Write to MH i2c: F0 00 00 82 01 72 [21:03:13]Write i2c OK [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: F0 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: F0 09 00 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: F0 09 00 82 01 00 92 AA 1E 67 47 1B 1E 67 23 [21:03:13]GetLastDocTimeStamp 1730062924 [21:03:13]current date 1730062994 [21:03:13]FM_GetShiftState [21:03:13]SAM_PROTO_GetShiftState [21:03:13]wFMCommunicate request_size=4 [21:03:13]MH_SAM_APDU [21:03:13]CAPDU: 80 13 01 00 [21:03:13]Write to MH i2c: E2 08 00 83 01 80 13 01 00 00 00 00 00 01 [21:03:13]Write i2c OK [21:03:13]MH_I2C_Read... [21:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:13]Read from MH i2c: E2 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: E2 0E 00 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: E2 0E 00 83 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 03 [21:03:13]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:03:13]wFMCommunicate OK [21:03:13]SAM_PROTO_GetShiftState done [21:03:13]FM_GetShiftState done [21:03:13]opened in 1729987312 [21:03:13]opened+sec_in_day 1730073712 [21:03:13]quantity*price = 100050 [21:03:13]sum+1 = 100052 [21:03:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 479 27.10.2024 21:03 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202187 ФПД: 226225953824660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210314&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202187&fm=226225953824660&tin=02508201610067®Number=0000000000091777&sum=100000 [21:03:15]StoreToDocumentArchive [21:03:15]shift 544 fd 202187 [21:03:15]save to /storage/0544/doc_00202187 [21:03:15]save last doc name /storage/0544/doc_00202187 to /storage/kkm_last_doc_name [21:03:15]save OK [21:03:15]Clear old archive folders... [21:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:03:15]tlvbuf is 00961400 [21:03:15]SAM_PROTO_ClearQueue [21:03:15]wFMCommunicate request_size=4 [21:03:15]MH_SAM_APDU [21:03:15]CAPDU: 80 09 00 00 [21:03:15]Write to MH i2c: E2 08 00 90 01 80 09 00 00 00 00 00 00 03 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:15]Read from MH i2c: E2 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 03 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [21:03:15]RAPDU: 90 00 [21:03:15]wFMCommunicate OK [21:03:15]SAM_PROTO_ClearQueue done [21:03:15]KKMCreateOFDPacket [21:03:15]OFDProtocolAddRootSTLVToBuf [21:03:15]FM_MakeSignedData [21:03:15]FM_MakeSignedData [21:03:15]SAM_PROTO_SignData [21:03:15]wFMCommunicate request_size=4 [21:03:15]MH_SAM_APDU [21:03:15]CAPDU: 80 0D 01 02 [21:03:15]Write to MH i2c: E2 08 00 91 01 80 0D 01 02 00 00 00 00 0B [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:15]Read from MH i2c: E2 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 03 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [21:03:15]RAPDU: 90 00 [21:03:15]wFMCommunicate OK [21:03:15]wFMCommunicate request_size=255 [21:03:15]MH_SAM_APDU [21:03:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 DF 01 00 00 F4 03 04 00 92 AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 15 03 00 35 04 06 00 CD C0 55 9D [21:03:15]Write to MH i2c: E2 02 01 92 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 DF 01 00 00 F4 03 04 00 92 AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 15 03 00 35 04 06 00 CD C0 55 9D 00 00 BA [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:15]Read from MH i2c: E2 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 03 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [21:03:15]RAPDU: 90 00 [21:03:15]wFMCommunicate OK [21:03:15]wFMCommunicate request_size=7 [21:03:15]MH_SAM_APDU [21:03:15]CAPDU: 80 0D 02 02 02 DF 94 [21:03:15]Write to MH i2c: E2 0A 00 93 01 80 0D 02 02 02 00 DF 94 00 00 85 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:15]Read from MH i2c: E2 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 03 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [21:03:15]RAPDU: 90 00 [21:03:15]wFMCommunicate OK [21:03:15]wFMCommunicate request_size=4 [21:03:15]MH_SAM_APDU [21:03:15]CAPDU: 80 0D 03 02 [21:03:15]Write to MH i2c: E2 08 00 94 01 80 0D 03 02 00 00 00 00 10 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:15]Read from MH i2c: E2 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 0B 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 0B 00 94 01 00 44 08 AB A1 CA BB C2 68 90 00 58 [21:03:15]RAPDU: 44 08 AB A1 CA BB C2 68 90 00 [21:03:15]wFMCommunicate OK [21:03:15]SAM_PROTO_SignData done [21:03:15]FM_MakeSignedData done [21:03:15]CreateOFDProtocolMessage [21:03:15]wFMCommunicate request_size=4 [21:03:15]MH_SAM_APDU [21:03:15]CAPDU: 80 11 00 00 [21:03:15]Write to MH i2c: E2 08 00 95 01 80 11 00 00 00 00 00 00 10 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:15]Read from MH i2c: E2 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 17 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: E2 17 00 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 65 [21:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:03:15]wFMCommunicate OK [21:03:15]CreateOFDProtocolMessage done [21:03:15]OFDSenderStorePacket 202187 [21:03:15]StoreOFDPacket docnum=202187 [21:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A5 A3 04 01 20 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 DF 01 00 00 F4 03 04 00 92 AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 15 03 00 35 04 06 00 CD C0 55 9D DF 94 44 08 AB A1 CA BB C2 68 [21:03:15]CheckFolder [21:03:15]dirname=/storage/ofd_packets [21:03:15]CheckFolder done [21:03:15]ProducePacketName [21:03:15]name=ofd_packets/00202187 [21:03:15]NVStorageSaveData ofd_packets/00202187 [21:03:15]File name is /storage/ofd_packets/00202187 [21:03:15]Write 298 bytes [21:03:15]NVStorageSaveData done [21:03:15]OFDSenderStorePacket done [21:03:15]KKMCreateOFDPacket done [21:03:15]NVStorageSaveData kkm_last_timestamp [21:03:15]File name is /storage/kkm_last_timestamp [21:03:15]Write 4 bytes [21:03:15]NVStorageSaveData done [21:03:15]ExternCall_PrintAddStr [21:03:15]wPrintStart [21:03:15]Write to MH i2c: 01 00 00 96 01 97 [21:03:15]Write i2c OK [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: 01 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: 01 07 00 [21:03:15]MH_I2C_Read... [21:03:15]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 FF 0F AC [21:03:15]RasterBufferAndPrint [21:03:15]line Счет N : (1)449961 [21:03:15]line ИНН: 02508201610067 [21:03:15]line Контрольно-Кассовый Чек [21:03:15]line ПРОДАЖА [21:03:15]line ТРК (МРК, ГНК) : 21 [21:03:15]line Товар: 2710194210 [21:03:15]line ДТ-К-2 [21:03:15]line 13.130 * 76.20 [21:03:15]line = 1000.51 [21:03:15]line НДС 12% НСП 1% [21:03:15]line > о реализуемом товаре [21:03:15]line ОКРУГЛЕНИЕ: -0.51 [21:03:15]line ИТОГО: 1000.00 [21:03:15]line Внесено: 1000.00 [21:03:15]line СДАЧА: 0.00 [21:03:15]line НСП 1% : 8.85 [21:03:15]line НДС 12% : 106.25 [21:03:15]line Наличными: 1000.00 [21:03:15]line Безнал.: 0.00 [21:03:15]line Место: АЗС № 171 "Партнер Нефть" [21:03:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:03:15]line СНО: Общий режим [21:03:15]line Чек 479 27.10.2024 21:03 [21:03:15]line Смена: 544 ФФД: 1.0 [21:03:15]line ЗНМ: 0300000109 [21:03:15]line РНМ: 0000000000091777 [21:03:15]line Версия ККМ: 001 [21:03:15]line ФМ: 0000000000871756 [21:03:15]line ФД: 202187 [21:03:15]line ФПД: 226225953824660 [21:03:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210314&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202187&fm=226225953824660&tin=02508201610067®Number=0000000000091777&sum=100000 [21:03:15]OFD Sender: Processing packet 202187 [packets to send 114, broken 113] [21:03:15]ProducePacketName [21:03:15]name=ofd_packets/00202187 [21:03:15]OFD Sender: To server: pG, [21:03:15]CommunicateWithHost lk.salyk.kg:30040 [21:03:15]ConnectInit lk.salyk.kg [21:03:15]written 0, free lines is 4095 [21:03:16]Connected sock=10 [21:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A5 A3 04 01 20 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 DF 01 00 00 F4 03 04 00 92 AA 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 15 03 00 35 04 06 00 CD C0 55 9D DF 94 44 08 AB A1 CA BB C2 68 [21:03:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D1 FA 47 00 77 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 15 03 00 F4 03 04 00 4B 56 1E 67 B6 04 01 00 00 85 1B B6 11 62 AE 52 D8 [21:03:16]CommunicateWithHost err = 0 [21:03:16]CheckOFDResponse [21:03:16]1017 (14) - 77093643461234 [21:03:16]1041 (16) - 0000000000871756 [21:03:16]1040 (4) - 202187 [21:03:16]1012 (4) - 27.10.2024 15:03 [21:03:16]1206 (1) - 0 [21:03:16]OFD Sender: Remove packet 202187 [21:03:16]ProducePacketName [21:03:16]name=ofd_packets/00202187 [21:03:16]NVStorageDeleteData [21:03:16]Write to MH i2c: 01 00 00 C1 01 C2 [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: 01 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: 01 07 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 91 0C 66 [21:03:16]RasterBufferAndPrint [21:03:16]line [21:03:16]line [21:03:16]line [21:03:16]line [21:03:16]line [21:03:16]written 0, free lines is 3221 [21:03:16]MH_Cut [21:03:16]Write to MH i2c: D1 01 00 C8 01 01 9B [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: D1 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: D1 01 00 [21:03:16]MH_I2C_Read... [21:03:16]Read from MH i2c: D1 01 00 C8 01 00 9A [21:03:16]Write to MH i2c: 01 00 00 C9 01 CA [21:03:16]Write i2c OK [21:03:16]MH_I2C_Read... [21:03:16]OFD Sender: No OFD packet to send [21:03:17]*** Cut start [21:03:17]*** Purtial cut [21:03:17]*** Stage 1: CUTSNS_PIN = 1 [21:03:17]Read from MH i2c: 01 [21:03:17]MH_I2C_Read... [21:03:17]*** Stop cut motor [21:03:17]*** Cut end [21:03:17]Read from MH i2c: 01 07 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 FF 0F DF [21:03:17]process_action close_receipt done [21:03:17]requested_data is exist [21:03:17]produce_requested_data [21:03:17]requested_item fm.sn is exist - process it [21:03:17]wFMCommunicate request_size=4 [21:03:17]MH_SAM_APDU [21:03:17]CAPDU: 80 11 00 00 [21:03:17]Write to MH i2c: E2 08 00 CA 01 80 11 00 00 00 00 00 00 45 [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:17]Read from MH i2c: E2 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 17 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 17 00 CA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [21:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:03:17]wFMCommunicate OK [21:03:17]requested_item fd.num is exist - process it [21:03:17]SAM_PROTO_GetFieldsCounters [21:03:17]wFMCommunicate request_size=4 [21:03:17]MH_SAM_APDU [21:03:17]CAPDU: 80 13 00 00 [21:03:17]Write to MH i2c: E2 08 00 CB 01 80 13 00 00 00 00 00 00 48 [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:17]Read from MH i2c: E2 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 62 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 62 00 CB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CB 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [21:03:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CB 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:17]wFMCommunicate OK [21:03:17]SAM_PROTO_GetFieldsCounters done [21:03:17]requested_item shift.num is exist - process it [21:03:17]requested_item shift.opened is exist - process it [21:03:17]req_shift_opened [21:03:17]FM_GetShiftState [21:03:17]SAM_PROTO_GetShiftState [21:03:17]wFMCommunicate request_size=4 [21:03:17]MH_SAM_APDU [21:03:17]CAPDU: 80 13 01 00 [21:03:17]Write to MH i2c: E2 08 00 CC 01 80 13 01 00 00 00 00 00 4A [21:03:17]Write i2c OK [21:03:17]MH_I2C_Read... [21:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:17]Read from MH i2c: E2 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 0E 00 [21:03:17]MH_I2C_Read... [21:03:17]Read from MH i2c: E2 0E 00 CC 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4C [21:03:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:03:17]wFMCommunicate OK [21:03:17]SAM_PROTO_GetShiftState done [21:03:17]FM_GetShiftState done [21:03:17]req_shift_opened done [21:03:17]requested_item shift.open_date is exist - process it [21:03:17]req_shift_open_date [21:03:17]req_shift_open_date done [21:03:17]produce_requested_data done [21:03:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202187,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [21:03:17]process_action_free close_receipt [21:03:17]json_value_free [21:03:17]json_value_free done [21:03:17]process_json_proto returns [21:03:17]Send response to host [21:03:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202187,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [21:03:17]free response buf [21:03:17]execute_script done [21:03:17]execute_script returns [21:03:17]free content buf [21:03:17]Sock 7.Close socket [21:03:17]Sock 7.Thread stoped [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:10:26]ConnectInit Can't connect to host [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:19:01]ConnectInit Can't connect to host [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:28:22]ConnectInit Can't connect to host [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:48]accept exits with 9 [21:42:48]New connection [21:42:48]New thread 3067424100 created [21:42:48]Waiting for new connection... [21:42:48] Sock 9.Parse request [21:42:48]Sock 9.Check first char [21:42:48]Sock 9.First char is OK [21:42:48]request: POST /json_proto HTTP/1.0 [21:42:48]Method: POST [21:42:48]URL: /json_proto [21:42:48]Method is POST - this is cgi request [21:42:48]url: /json_proto [21:42:48]query_string will be loaded in cgi processing [21:42:48]execute_cgi json_proto POST (null) [21:42:48]execute_cgi path=json_proto method=POST [21:42:48]POST find Content-Length [21:42:48]Host: 172.17.63.195:8080 [21:42:48]Content-Length: 677 [21:42:48]Content-Type: application/json [21:42:48] [21:42:48]POST finish read [21:42:48]Found Content-Length = 677 [21:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:48]execute_script... [21:42:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:48]POST & json_proto [21:42:48]process_json_proto [21:42:48]json parsed OK: [21:42:48]protocol is kg_v1.0 [21:42:48]action value=close_receipt [21:42:48]process_action close_receipt [21:42:48]cmd_close_receipt [21:42:48]MH_GetDate [21:42:48]Write to MH i2c: F0 00 00 10 00 FF [21:42:48]Write i2c OK [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: F0 [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: F0 09 00 [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: F0 09 00 10 00 00 D9 B3 1E 67 47 1B 1E 67 00 [21:42:48]GetLastDocTimeStamp 1730062994 [21:42:48]current date 1730065369 [21:42:48]FM_GetShiftState [21:42:48]SAM_PROTO_GetShiftState [21:42:48]wFMCommunicate request_size=4 [21:42:48]MH_SAM_APDU [21:42:48]CAPDU: 80 13 01 00 [21:42:48]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [21:42:48]Write i2c OK [21:42:48]MH_I2C_Read... [21:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:48]Read from MH i2c: E2 [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: E2 0E 00 [21:42:48]MH_I2C_Read... [21:42:48]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 90 [21:42:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:42:48]wFMCommunicate OK [21:42:48]SAM_PROTO_GetShiftState done [21:42:48]FM_GetShiftState done [21:42:48]opened in 1729987312 [21:42:48]opened+sec_in_day 1730073712 [21:42:48]quantity*price = 40006 [21:42:48]sum+1 = 40007 [21:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 480 27.10.2024 21:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202188 ФПД: 99987343061701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214249&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202188&fm=99987343061701&tin=02508201610067®Number=0000000000091777&sum=40000 [21:42:49]StoreToDocumentArchive [21:42:49]shift 544 fd 202188 [21:42:49]save to /storage/0544/doc_00202188 [21:42:49]save last doc name /storage/0544/doc_00202188 to /storage/kkm_last_doc_name [21:42:49]save OK [21:42:49]Clear old archive folders... [21:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:49]tlvbuf is 00C1DBE0 [21:42:49]SAM_PROTO_ClearQueue [21:42:49]wFMCommunicate request_size=4 [21:42:49]MH_SAM_APDU [21:42:49]CAPDU: 80 09 00 00 [21:42:49]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [21:42:49]Write i2c OK [21:42:49]MH_I2C_Read... [21:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:49]Read from MH i2c: E2 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 03 00 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [21:42:49]RAPDU: 90 00 [21:42:49]wFMCommunicate OK [21:42:49]SAM_PROTO_ClearQueue done [21:42:49]KKMCreateOFDPacket [21:42:49]OFDProtocolAddRootSTLVToBuf [21:42:49]FM_MakeSignedData [21:42:49]FM_MakeSignedData [21:42:49]SAM_PROTO_SignData [21:42:49]wFMCommunicate request_size=4 [21:42:49]MH_SAM_APDU [21:42:49]CAPDU: 80 0D 01 02 [21:42:49]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [21:42:49]Write i2c OK [21:42:49]MH_I2C_Read... [21:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:49]Read from MH i2c: E2 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 03 00 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [21:42:49]RAPDU: 90 00 [21:42:49]wFMCommunicate OK [21:42:49]wFMCommunicate request_size=255 [21:42:49]MH_SAM_APDU [21:42:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D9 B3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 15 03 00 35 04 06 00 5A [21:42:49]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D9 B3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 15 03 00 35 04 06 00 5A 00 00 4D [21:42:49]Write i2c OK [21:42:49]MH_I2C_Read... [21:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:49]Read from MH i2c: E2 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 03 00 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [21:42:49]RAPDU: 90 00 [21:42:49]wFMCommunicate OK [21:42:49]wFMCommunicate request_size=10 [21:42:49]MH_SAM_APDU [21:42:49]CAPDU: 80 0D 02 02 05 F0 1E 10 B2 C5 [21:42:49]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 F0 1E 10 B2 C5 00 00 3A [21:42:49]Write i2c OK [21:42:49]MH_I2C_Read... [21:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:49]Read from MH i2c: E2 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 03 00 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [21:42:49]RAPDU: 90 00 [21:42:49]wFMCommunicate OK [21:42:49]wFMCommunicate request_size=4 [21:42:49]MH_SAM_APDU [21:42:49]CAPDU: 80 0D 03 02 [21:42:49]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [21:42:49]Write i2c OK [21:42:49]MH_I2C_Read... [21:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:49]Read from MH i2c: E2 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 0B 00 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 0B 00 22 00 00 2E F9 87 C4 6B D3 65 C4 90 00 77 [21:42:49]RAPDU: 2E F9 87 C4 6B D3 65 C4 90 00 [21:42:49]wFMCommunicate OK [21:42:49]SAM_PROTO_SignData done [21:42:49]FM_MakeSignedData done [21:42:49]CreateOFDProtocolMessage [21:42:49]wFMCommunicate request_size=4 [21:42:49]MH_SAM_APDU [21:42:49]CAPDU: 80 11 00 00 [21:42:49]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [21:42:49]Write i2c OK [21:42:49]MH_I2C_Read... [21:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:49]Read from MH i2c: E2 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 17 00 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [21:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:42:49]wFMCommunicate OK [21:42:49]CreateOFDProtocolMessage done [21:42:49]OFDSenderStorePacket 202188 [21:42:49]StoreOFDPacket docnum=202188 [21:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7E 47 07 01 8F 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D9 B3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 15 03 00 35 04 06 00 5A F0 1E 10 B2 C5 2E F9 87 C4 6B D3 65 C4 [21:42:49]CheckFolder [21:42:49]dirname=/storage/ofd_packets [21:42:49]CheckFolder done [21:42:49]ProducePacketName [21:42:49]name=ofd_packets/00202188 [21:42:49]NVStorageSaveData ofd_packets/00202188 [21:42:49]File name is /storage/ofd_packets/00202188 [21:42:49]Write 301 bytes [21:42:49]NVStorageSaveData done [21:42:49]OFDSenderStorePacket done [21:42:49]KKMCreateOFDPacket done [21:42:49]NVStorageSaveData kkm_last_timestamp [21:42:49]File name is /storage/kkm_last_timestamp [21:42:49]Write 4 bytes [21:42:49]NVStorageSaveData done [21:42:49]ExternCall_PrintAddStr [21:42:49]wPrintStart [21:42:49]Write to MH i2c: 01 00 00 24 00 24 [21:42:49]Write i2c OK [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: 01 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: 01 07 00 [21:42:49]MH_I2C_Read... [21:42:49]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [21:42:49]RasterBufferAndPrint [21:42:49]line Счет N : (1)449962 [21:42:49]line ИНН: 02508201610067 [21:42:49]line Контрольно-Кассовый Чек [21:42:49]line ПРОДАЖА [21:42:49]line ТРК (МРК, ГНК) : 41 [21:42:49]line Товар: 2710124130 [21:42:49]line Аи-92-К-2 [21:42:49]line 5.980 * 66.90 [21:42:49]line = 400.06 [21:42:49]line НДС 12% НСП 1% [21:42:49]line > о реализуемом товаре [21:42:49]line ОКРУГЛЕНИЕ: -0.06 [21:42:49]line ИТОГО: 400.00 [21:42:49]line Внесено: 400.00 [21:42:49]line СДАЧА: 0.00 [21:42:49]line НСП 1% : 3.54 [21:42:49]line НДС 12% : 42.48 [21:42:49]line Наличными: 400.00 [21:42:49]line Безнал.: 0.00 [21:42:49]line Место: АЗС № 171 "Партнер Нефть" [21:42:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:42:49]line СНО: Общий режим [21:42:49]line Чек 480 27.10.2024 21:42 [21:42:49]line Смена: 544 ФФД: 1.0 [21:42:49]line ЗНМ: 0300000109 [21:42:49]line РНМ: 0000000000091777 [21:42:49]line Версия ККМ: 001 [21:42:49]line ФМ: 0000000000871756 [21:42:49]line ФД: 202188 [21:42:49]line ФПД: 99987343061701 [21:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214249&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202188&fm=99987343061701&tin=02508201610067®Number=0000000000091777&sum=40000 [21:42:49]OFD Sender: Processing packet 202188 [packets to send 114, broken 113] [21:42:49]ProducePacketName [21:42:49]name=ofd_packets/00202188 [21:42:49]OFD Sender: To server: pG, [21:42:49]CommunicateWithHost lk.salyk.kg:30040 [21:42:49]ConnectInit lk.salyk.kg [21:42:49]written 0, free lines is 4095 [21:42:49]Connected sock=10 [21:42:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7E 47 07 01 8F 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 D9 B3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 15 03 00 35 04 06 00 5A F0 1E 10 B2 C5 2E F9 87 C4 6B D3 65 C4 [21:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8B 6C 47 00 82 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 30 38 37 31 37 35 36 10 04 04 00 CC 15 03 00 F4 03 04 00 91 5F 1E 67 B6 04 01 00 00 B5 79 57 21 74 DD 2B 01 [21:42:50]CommunicateWithHost err = 0 [21:42:50]CheckOFDResponse [21:42:50]1017 (14) - 77093643461234 [21:42:50]1041 (16) - 0000000000871756 [21:42:50]1040 (4) - 202188 [21:42:50]1012 (4) - 27.10.2024 15:43 [21:42:50]1206 (1) - 0 [21:42:50]OFD Sender: Remove packet 202188 [21:42:50]ProducePacketName [21:42:50]name=ofd_packets/00202188 [21:42:50]NVStorageDeleteData [21:42:50]Write to MH i2c: 01 00 00 4F 00 4F [21:42:50]Write i2c OK [21:42:50]MH_I2C_Read... [21:42:50]Read from MH i2c: 01 [21:42:50]MH_I2C_Read... [21:42:50]Read from MH i2c: 01 07 00 [21:42:50]MH_I2C_Read... [21:42:50]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 A3 0C 05 [21:42:50]RasterBufferAndPrint [21:42:50]line [21:42:50]line [21:42:50]line [21:42:50]line [21:42:50]line [21:42:50]written 0, free lines is 3240 [21:42:50]MH_Cut [21:42:50]Write to MH i2c: D1 01 00 56 00 01 28 [21:42:50]Write i2c OK [21:42:50]MH_I2C_Read... [21:42:50]Read from MH i2c: D1 [21:42:50]MH_I2C_Read... [21:42:50]Read from MH i2c: D1 01 00 [21:42:50]MH_I2C_Read... [21:42:50]Read from MH i2c: D1 01 00 56 00 00 27 [21:42:50]Write to MH i2c: 01 00 00 57 00 57 [21:42:50]Write i2c OK [21:42:50]MH_I2C_Read... [21:42:50]OFD Sender: No OFD packet to send [21:42:51]*** Cut start [21:42:51]*** Purtial cut [21:42:51]*** Stage 1: CUTSNS_PIN = 1 [21:42:51]Read from MH i2c: 01 [21:42:51]MH_I2C_Read... [21:42:51]*** Stop cut motor [21:42:51]*** Cut end [21:42:51]Read from MH i2c: 01 07 00 [21:42:51]MH_I2C_Read... [21:42:51]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [21:42:51]process_action close_receipt done [21:42:51]requested_data is exist [21:42:51]produce_requested_data [21:42:51]requested_item fm.sn is exist - process it [21:42:51]wFMCommunicate request_size=4 [21:42:51]MH_SAM_APDU [21:42:51]CAPDU: 80 11 00 00 [21:42:51]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [21:42:51]Write i2c OK [21:42:51]MH_I2C_Read... [21:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:51]Read from MH i2c: E2 [21:42:51]MH_I2C_Read... [21:42:51]Read from MH i2c: E2 17 00 [21:42:51]MH_I2C_Read... [21:42:51]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [21:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:42:51]wFMCommunicate OK [21:42:51]requested_item fd.num is exist - process it [21:42:51]SAM_PROTO_GetFieldsCounters [21:42:51]wFMCommunicate request_size=4 [21:42:51]MH_SAM_APDU [21:42:51]CAPDU: 80 13 00 00 [21:42:51]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [21:42:51]Write i2c OK [21:42:51]MH_I2C_Read... [21:42:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:51]Read from MH i2c: E2 [21:42:51]MH_I2C_Read... [21:42:51]Read from MH i2c: E2 62 00 [21:42:51]MH_I2C_Read... [21:42:51]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CC 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [21:42:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CC 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:51]wFMCommunicate OK [21:42:51]SAM_PROTO_GetFieldsCounters done [21:42:51]requested_item shift.num is exist - process it [21:42:51]requested_item shift.opened is exist - process it [21:42:51]req_shift_opened [21:42:51]FM_GetShiftState [21:42:51]SAM_PROTO_GetShiftState [21:42:51]wFMCommunicate request_size=4 [21:42:51]MH_SAM_APDU [21:42:51]CAPDU: 80 13 01 00 [21:42:51]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [21:42:51]Write i2c OK [21:42:51]MH_I2C_Read... [21:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:51]Read from MH i2c: E2 [21:42:51]MH_I2C_Read... [21:42:51]Read from MH i2c: E2 0E 00 [21:42:51]MH_I2C_Read... [21:42:51]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 D9 [21:42:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:42:51]wFMCommunicate OK [21:42:51]SAM_PROTO_GetShiftState done [21:42:51]FM_GetShiftState done [21:42:51]req_shift_opened done [21:42:51]requested_item shift.open_date is exist - process it [21:42:51]req_shift_open_date [21:42:51]req_shift_open_date done [21:42:51]produce_requested_data done [21:42:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202188,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [21:42:51]process_action_free close_receipt [21:42:51]json_value_free [21:42:51]json_value_free done [21:42:51]process_json_proto returns [21:42:51]Send response to host [21:42:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202188,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [21:42:51]free response buf [21:42:51]execute_script done [21:42:51]execute_script returns [21:42:51]free content buf [21:42:51]Sock 9.Close socket [21:42:51]Sock 9.Thread stoped [21:42:52]accept exits with 7 [21:42:52]New connection [21:42:52]New thread 3067280740 created [21:42:52]Thread 3067424100 joined [21:42:52]Waiting for new connection... [21:42:52] Sock 7.Parse request [21:42:52]Sock 7.Check first char [21:42:52]Sock 7.First char is OK [21:42:52]request: POST /json_proto HTTP/1.0 [21:42:52]Method: POST [21:42:52]URL: /json_proto [21:42:52]Method is POST - this is cgi request [21:42:52]url: /json_proto [21:42:52]query_string will be loaded in cgi processing [21:42:52]execute_cgi json_proto POST (null) [21:42:52]execute_cgi path=json_proto method=POST [21:42:52]POST find Content-Length [21:42:52]Host: 172.17.63.195:8080 [21:42:52]Content-Length: 677 [21:42:52]Content-Type: application/json [21:42:52] [21:42:52]POST finish read [21:42:52]Found Content-Length = 677 [21:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:42:52]execute_script... [21:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:42:52]POST & json_proto [21:42:52]process_json_proto [21:42:52]json parsed OK: [21:42:52]protocol is kg_v1.0 [21:42:52]action value=close_receipt [21:42:52]process_action close_receipt [21:42:52]cmd_close_receipt [21:42:52]MH_GetDate [21:42:52]Write to MH i2c: F0 00 00 5B 00 4A [21:42:52]Write i2c OK [21:42:52]MH_I2C_Read... [21:42:52]Read from MH i2c: F0 [21:42:52]MH_I2C_Read... [21:42:52]Read from MH i2c: F0 09 00 [21:42:52]MH_I2C_Read... [21:42:52]Read from MH i2c: F0 09 00 5B 00 00 DD B3 1E 67 47 1B 1E 67 4F [21:42:52]GetLastDocTimeStamp 1730065369 [21:42:52]current date 1730065373 [21:42:52]FM_GetShiftState [21:42:52]SAM_PROTO_GetShiftState [21:42:52]wFMCommunicate request_size=4 [21:42:52]MH_SAM_APDU [21:42:52]CAPDU: 80 13 01 00 [21:42:52]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [21:42:52]Write i2c OK [21:42:52]MH_I2C_Read... [21:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:52]Read from MH i2c: E2 [21:42:52]MH_I2C_Read... [21:42:52]Read from MH i2c: E2 0E 00 [21:42:52]MH_I2C_Read... [21:42:52]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 DB [21:42:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:42:52]wFMCommunicate OK [21:42:52]SAM_PROTO_GetShiftState done [21:42:52]FM_GetShiftState done [21:42:52]opened in 1729987312 [21:42:52]opened+sec_in_day 1730073712 [21:42:52]quantity*price = 30038 [21:42:52]sum+1 = 30039 [21:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 481 27.10.2024 21:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202189 ФПД: 257213919589066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214253&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202189&fm=257213919589066&tin=02508201610067®Number=0000000000091777&sum=30000 [21:42:53]StoreToDocumentArchive [21:42:53]shift 544 fd 202189 [21:42:53]save to /storage/0544/doc_00202189 [21:42:53]save last doc name /storage/0544/doc_00202189 to /storage/kkm_last_doc_name [21:42:53]save OK [21:42:53]Clear old archive folders... [21:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:53]tlvbuf is 00C2C410 [21:42:53]SAM_PROTO_ClearQueue [21:42:53]wFMCommunicate request_size=4 [21:42:53]MH_SAM_APDU [21:42:53]CAPDU: 80 09 00 00 [21:42:53]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [21:42:53]Write i2c OK [21:42:53]MH_I2C_Read... [21:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:53]Read from MH i2c: E2 [21:42:53]MH_I2C_Read... [21:42:53]Read from MH i2c: E2 03 00 [21:42:53]MH_I2C_Read... [21:42:53]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [21:42:53]RAPDU: 90 00 [21:42:53]wFMCommunicate OK [21:42:53]SAM_PROTO_ClearQueue done [21:42:53]KKMCreateOFDPacket [21:42:53]OFDProtocolAddRootSTLVToBuf [21:42:53]FM_MakeSignedData [21:42:53]FM_MakeSignedData [21:42:53]SAM_PROTO_SignData [21:42:53]wFMCommunicate request_size=4 [21:42:53]MH_SAM_APDU [21:42:53]CAPDU: 80 0D 01 02 [21:42:53]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [21:42:53]Write i2c OK [21:42:53]MH_I2C_Read... [21:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:53]Read from MH i2c: E2 [21:42:53]MH_I2C_Read... [21:42:53]Read from MH i2c: E2 03 00 [21:42:53]MH_I2C_Read... [21:42:53]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [21:42:53]RAPDU: 90 00 [21:42:53]wFMCommunicate OK [21:42:53]wFMCommunicate request_size=255 [21:42:53]MH_SAM_APDU [21:42:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E1 01 00 00 F4 03 04 00 DD B3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 15 03 00 35 04 06 00 E9 [21:42:53]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E1 01 00 00 F4 03 04 00 DD B3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 15 03 00 35 04 06 00 E9 00 00 52 [21:42:53]Write i2c OK [21:42:53]MH_I2C_Read... [21:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:53]Read from MH i2c: E2 [21:42:53]MH_I2C_Read... [21:42:53]Read from MH i2c: E2 03 00 [21:42:53]MH_I2C_Read... [21:42:53]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [21:42:53]RAPDU: 90 00 [21:42:53]wFMCommunicate OK [21:42:53]wFMCommunicate request_size=10 [21:42:53]MH_SAM_APDU [21:42:53]CAPDU: 80 0D 02 02 05 EF 48 4E F2 CA [21:42:53]Write to MH i2c: E2 0D 00 6C 00 80 0D 02 02 05 00 EF 48 4E F2 CA 00 00 31 [21:42:53]Write i2c OK [21:42:53]MH_I2C_Read... [21:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:53]Read from MH i2c: E2 [21:42:53]MH_I2C_Read... [21:42:53]Read from MH i2c: E2 03 00 [21:42:53]MH_I2C_Read... [21:42:53]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [21:42:53]RAPDU: 90 00 [21:42:53]wFMCommunicate OK [21:42:53]wFMCommunicate request_size=4 [21:42:53]MH_SAM_APDU [21:42:53]CAPDU: 80 0D 03 02 [21:42:53]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [21:42:53]Write i2c OK [21:42:53]MH_I2C_Read... [21:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:54]Read from MH i2c: E2 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: E2 0B 00 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: E2 0B 00 6D 00 00 0C A5 0D D4 55 09 05 63 90 00 41 [21:42:54]RAPDU: 0C A5 0D D4 55 09 05 63 90 00 [21:42:54]wFMCommunicate OK [21:42:54]SAM_PROTO_SignData done [21:42:54]FM_MakeSignedData done [21:42:54]CreateOFDProtocolMessage [21:42:54]wFMCommunicate request_size=4 [21:42:54]MH_SAM_APDU [21:42:54]CAPDU: 80 11 00 00 [21:42:54]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [21:42:54]Write i2c OK [21:42:54]MH_I2C_Read... [21:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:54]Read from MH i2c: E2 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: E2 17 00 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [21:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:42:54]wFMCommunicate OK [21:42:54]CreateOFDProtocolMessage done [21:42:54]OFDSenderStorePacket 202189 [21:42:54]StoreOFDPacket docnum=202189 [21:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B9 89 07 01 60 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E1 01 00 00 F4 03 04 00 DD B3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 15 03 00 35 04 06 00 E9 EF 48 4E F2 CA 0C A5 0D D4 55 09 05 63 [21:42:54]CheckFolder [21:42:54]dirname=/storage/ofd_packets [21:42:54]CheckFolder done [21:42:54]ProducePacketName [21:42:54]name=ofd_packets/00202189 [21:42:54]NVStorageSaveData ofd_packets/00202189 [21:42:54]File name is /storage/ofd_packets/00202189 [21:42:54]Write 301 bytes [21:42:54]NVStorageSaveData done [21:42:54]OFDSenderStorePacket done [21:42:54]KKMCreateOFDPacket done [21:42:54]NVStorageSaveData kkm_last_timestamp [21:42:54]File name is /storage/kkm_last_timestamp [21:42:54]Write 4 bytes [21:42:54]NVStorageSaveData done [21:42:54]ExternCall_PrintAddStr [21:42:54]wPrintStart [21:42:54]Write to MH i2c: 01 00 00 6F 00 6F [21:42:54]Write i2c OK [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: 01 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: 01 07 00 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [21:42:54]RasterBufferAndPrint [21:42:54]line Счет N : (1)449963 [21:42:54]line ИНН: 02508201610067 [21:42:54]line Контрольно-Кассовый Чек [21:42:54]line ПРОДАЖА [21:42:54]line ТРК (МРК, ГНК) : 52 [21:42:54]line Товар: 2710124130 [21:42:54]line Аи-92-К-2 [21:42:54]line 4.490 * 66.90 [21:42:54]line = 300.38 [21:42:54]line НДС 12% НСП 1% [21:42:54]line > о реализуемом товаре [21:42:54]line ОКРУГЛЕНИЕ: -0.38 [21:42:54]line ИТОГО: 300.00 [21:42:54]line Внесено: 300.00 [21:42:54]line СДАЧА: 0.00 [21:42:54]line НСП 1% : 2.66 [21:42:54]line НДС 12% : 31.90 [21:42:54]line Наличными: 300.00 [21:42:54]line Безнал.: 0.00 [21:42:54]line Место: АЗС № 171 "Партнер Нефть" [21:42:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:42:54]line СНО: Общий режим [21:42:54]line Чек 481 27.10.2024 21:42 [21:42:54]line Смена: 544 ФФД: 1.0 [21:42:54]line ЗНМ: 0300000109 [21:42:54]line РНМ: 0000000000091777 [21:42:54]line Версия ККМ: 001 [21:42:54]line ФМ: 0000000000871756 [21:42:54]line ФД: 202189 [21:42:54]line ФПД: 257213919589066 [21:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214253&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202189&fm=257213919589066&tin=02508201610067®Number=0000000000091777&sum=30000 [21:42:54]OFD Sender: Processing packet 202189 [packets to send 114, broken 113] [21:42:54]ProducePacketName [21:42:54]name=ofd_packets/00202189 [21:42:54]OFD Sender: To server: pG, [21:42:54]CommunicateWithHost lk.salyk.kg:30040 [21:42:54]ConnectInit lk.salyk.kg [21:42:54]written 0, free lines is 4095 [21:42:54]Connected sock=10 [21:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B9 89 07 01 60 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E1 01 00 00 F4 03 04 00 DD B3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 15 03 00 35 04 06 00 E9 EF 48 4E F2 CA 0C A5 0D D4 55 09 05 63 [21:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 38 23 47 00 0D 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 15 03 00 F4 03 04 00 96 5F 1E 67 B6 04 01 00 00 1C 80 6F 26 81 38 E0 D0 [21:42:54]CommunicateWithHost err = 0 [21:42:54]CheckOFDResponse [21:42:54]1017 (14) - 77093643461234 [21:42:54]1041 (16) - 0000000000871756 [21:42:54]1040 (4) - 202189 [21:42:54]1012 (4) - 27.10.2024 15:43 [21:42:54]1206 (1) - 0 [21:42:54]OFD Sender: Remove packet 202189 [21:42:54]ProducePacketName [21:42:54]name=ofd_packets/00202189 [21:42:54]NVStorageDeleteData [21:42:54]Write to MH i2c: 01 00 00 9A 00 9A [21:42:54]Write i2c OK [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: 01 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: 01 07 00 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 9B 0C 48 [21:42:54]RasterBufferAndPrint [21:42:54]line [21:42:54]line [21:42:54]line [21:42:54]line [21:42:54]line [21:42:54]written 0, free lines is 3239 [21:42:54]MH_Cut [21:42:54]Write to MH i2c: D1 01 00 A1 00 01 73 [21:42:54]Write i2c OK [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: D1 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: D1 01 00 [21:42:54]MH_I2C_Read... [21:42:54]Read from MH i2c: D1 01 00 A1 00 00 72 [21:42:54]Write to MH i2c: 01 00 00 A2 00 A2 [21:42:54]Write i2c OK [21:42:54]MH_I2C_Read... [21:42:55]OFD Sender: No OFD packet to send [21:42:55]*** Cut start [21:42:55]*** Purtial cut [21:42:55]*** Stage 1: CUTSNS_PIN = 1 [21:42:56]Read from MH i2c: 01 [21:42:56]MH_I2C_Read... [21:42:56]*** Stop cut motor [21:42:56]*** Cut end [21:42:56]Read from MH i2c: 01 07 00 [21:42:56]MH_I2C_Read... [21:42:56]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [21:42:56]process_action close_receipt done [21:42:56]requested_data is exist [21:42:56]produce_requested_data [21:42:56]requested_item fm.sn is exist - process it [21:42:56]wFMCommunicate request_size=4 [21:42:56]MH_SAM_APDU [21:42:56]CAPDU: 80 11 00 00 [21:42:56]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [21:42:56]Write i2c OK [21:42:56]MH_I2C_Read... [21:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:56]Read from MH i2c: E2 [21:42:56]MH_I2C_Read... [21:42:56]Read from MH i2c: E2 17 00 [21:42:56]MH_I2C_Read... [21:42:56]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [21:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:42:56]wFMCommunicate OK [21:42:56]requested_item fd.num is exist - process it [21:42:56]SAM_PROTO_GetFieldsCounters [21:42:56]wFMCommunicate request_size=4 [21:42:56]MH_SAM_APDU [21:42:56]CAPDU: 80 13 00 00 [21:42:56]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [21:42:56]Write i2c OK [21:42:56]MH_I2C_Read... [21:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:56]Read from MH i2c: E2 [21:42:56]MH_I2C_Read... [21:42:56]Read from MH i2c: E2 62 00 [21:42:56]MH_I2C_Read... [21:42:56]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CD 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [21:42:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CD 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:56]wFMCommunicate OK [21:42:56]SAM_PROTO_GetFieldsCounters done [21:42:56]requested_item shift.num is exist - process it [21:42:56]requested_item shift.opened is exist - process it [21:42:56]req_shift_opened [21:42:56]FM_GetShiftState [21:42:56]SAM_PROTO_GetShiftState [21:42:56]wFMCommunicate request_size=4 [21:42:56]MH_SAM_APDU [21:42:56]CAPDU: 80 13 01 00 [21:42:56]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [21:42:56]Write i2c OK [21:42:56]MH_I2C_Read... [21:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:56]Read from MH i2c: E2 [21:42:56]MH_I2C_Read... [21:42:56]Read from MH i2c: E2 0E 00 [21:42:56]MH_I2C_Read... [21:42:56]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 24 [21:42:56]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:42:56]wFMCommunicate OK [21:42:56]SAM_PROTO_GetShiftState done [21:42:56]FM_GetShiftState done [21:42:56]req_shift_opened done [21:42:56]requested_item shift.open_date is exist - process it [21:42:56]req_shift_open_date [21:42:56]req_shift_open_date done [21:42:56]produce_requested_data done [21:42:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202189,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [21:42:56]process_action_free close_receipt [21:42:56]json_value_free [21:42:56]json_value_free done [21:42:56]process_json_proto returns [21:42:56]Send response to host [21:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202189,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [21:42:56]free response buf [21:42:56]execute_script done [21:42:56]execute_script returns [21:42:56]free content buf [21:42:56]Sock 7.Close socket [21:42:56]Sock 7.Thread stoped [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:43:59]accept exits with 9 [21:43:59]New connection [21:43:59]New thread 3067424100 created [21:43:59]Thread 3067280740 joined [21:43:59]Waiting for new connection... [21:43:59] Sock 9.Parse request [21:43:59]Sock 9.Check first char [21:43:59]Sock 9.First char is OK [21:43:59]request: POST /json_proto HTTP/1.0 [21:43:59]Method: POST [21:43:59]URL: /json_proto [21:43:59]Method is POST - this is cgi request [21:43:59]url: /json_proto [21:43:59]query_string will be loaded in cgi processing [21:43:59]execute_cgi json_proto POST (null) [21:43:59]execute_cgi path=json_proto method=POST [21:43:59]POST find Content-Length [21:43:59]Host: 172.17.63.195:8080 [21:43:59]Content-Length: 679 [21:43:59]Content-Type: application/json [21:43:59] [21:43:59]POST finish read [21:43:59]Found Content-Length = 679 [21:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [21:43:59]execute_script... [21: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 : (1)449964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [21:43:59]POST & json_proto [21:43:59]process_json_proto [21:43:59]json parsed OK: [21:43:59]protocol is kg_v1.0 [21:43:59]action value=close_receipt [21:43:59]process_action close_receipt [21:43:59]cmd_close_receipt [21:43:59]MH_GetDate [21:43:59]Write to MH i2c: F0 00 00 A6 00 95 [21:43:59]Write i2c OK [21:43:59]MH_I2C_Read... [21:43:59]Read from MH i2c: F0 [21:43:59]MH_I2C_Read... [21:43:59]Read from MH i2c: F0 09 00 [21:43:59]MH_I2C_Read... [21:43:59]Read from MH i2c: F0 09 00 A6 00 00 20 B4 1E 67 47 1B 1E 67 DE [21:43:59]GetLastDocTimeStamp 1730065373 [21:43:59]current date 1730065440 [21:43:59]FM_GetShiftState [21:43:59]SAM_PROTO_GetShiftState [21:43:59]wFMCommunicate request_size=4 [21:43:59]MH_SAM_APDU [21:43:59]CAPDU: 80 13 01 00 [21:43:59]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [21:43:59]Write i2c OK [21:43:59]MH_I2C_Read... [21:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:59]Read from MH i2c: E2 [21:43:59]MH_I2C_Read... [21:43:59]Read from MH i2c: E2 0E 00 [21:43:59]MH_I2C_Read... [21:43:59]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 26 [21:43:59]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:43:59]wFMCommunicate OK [21:43:59]SAM_PROTO_GetShiftState done [21:43:59]FM_GetShiftState done [21:43:59]opened in 1729987312 [21:43:59]opened+sec_in_day 1730073712 [21:43:59]quantity*price = 100050 [21:43:59]sum+1 = 100052 [21:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 482 27.10.2024 21:44 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202190 ФПД: 230759693315728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214400&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202190&fm=230759693315728&tin=02508201610067®Number=0000000000091777&sum=100000 [21:44:00]StoreToDocumentArchive [21:44:00]shift 544 fd 202190 [21:44:00]save to /storage/0544/doc_00202190 [21:44:00]save last doc name /storage/0544/doc_00202190 to /storage/kkm_last_doc_name [21:44:00]save OK [21:44:00]Clear old archive folders... [21:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:44:00]tlvbuf is 00C245E0 [21:44:00]SAM_PROTO_ClearQueue [21:44:00]wFMCommunicate request_size=4 [21:44:00]MH_SAM_APDU [21:44:00]CAPDU: 80 09 00 00 [21:44:00]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [21:44:00]Write i2c OK [21:44:00]MH_I2C_Read... [21:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:00]Read from MH i2c: E2 [21:44:00]MH_I2C_Read... [21:44:00]Read from MH i2c: E2 03 00 [21:44:00]MH_I2C_Read... [21:44:00]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [21:44:00]RAPDU: 90 00 [21:44:00]wFMCommunicate OK [21:44:00]SAM_PROTO_ClearQueue done [21:44:00]KKMCreateOFDPacket [21:44:00]OFDProtocolAddRootSTLVToBuf [21:44:00]FM_MakeSignedData [21:44:00]FM_MakeSignedData [21:44:00]SAM_PROTO_SignData [21:44:00]wFMCommunicate request_size=4 [21:44:00]MH_SAM_APDU [21:44:00]CAPDU: 80 0D 01 02 [21:44:00]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [21:44:00]Write i2c OK [21:44:00]MH_I2C_Read... [21:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:00]Read from MH i2c: E2 [21:44:00]MH_I2C_Read... [21:44:00]Read from MH i2c: E2 03 00 [21:44:00]MH_I2C_Read... [21:44:00]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [21:44:00]RAPDU: 90 00 [21:44:00]wFMCommunicate OK [21:44:00]wFMCommunicate request_size=255 [21:44:00]MH_SAM_APDU [21:44:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E2 01 00 00 F4 03 04 00 20 B4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 15 03 00 35 04 06 00 D1 DF ED 8C [21:44:00]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E2 01 00 00 F4 03 04 00 20 B4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 15 03 00 35 04 06 00 D1 DF ED 8C 00 00 25 [21:44:01]Write i2c OK [21:44:01]MH_I2C_Read... [21:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:01]Read from MH i2c: E2 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 03 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [21:44:01]RAPDU: 90 00 [21:44:01]wFMCommunicate OK [21:44:01]wFMCommunicate request_size=7 [21:44:01]MH_SAM_APDU [21:44:01]CAPDU: 80 0D 02 02 02 6E 90 [21:44:01]Write to MH i2c: E2 0A 00 B7 00 80 0D 02 02 02 00 6E 90 00 00 33 [21:44:01]Write i2c OK [21:44:01]MH_I2C_Read... [21:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:01]Read from MH i2c: E2 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 03 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [21:44:01]RAPDU: 90 00 [21:44:01]wFMCommunicate OK [21:44:01]wFMCommunicate request_size=4 [21:44:01]MH_SAM_APDU [21:44:01]CAPDU: 80 0D 03 02 [21:44:01]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [21:44:01]Write i2c OK [21:44:01]MH_I2C_Read... [21:44:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:01]Read from MH i2c: E2 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 0B 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 0B 00 B8 00 00 B8 B8 10 3D 34 70 FE 2E 90 00 C1 [21:44:01]RAPDU: B8 B8 10 3D 34 70 FE 2E 90 00 [21:44:01]wFMCommunicate OK [21:44:01]SAM_PROTO_SignData done [21:44:01]FM_MakeSignedData done [21:44:01]CreateOFDProtocolMessage [21:44:01]wFMCommunicate request_size=4 [21:44:01]MH_SAM_APDU [21:44:01]CAPDU: 80 11 00 00 [21:44:01]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [21:44:01]Write i2c OK [21:44:01]MH_I2C_Read... [21:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:01]Read from MH i2c: E2 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 17 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [21:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:44:01]wFMCommunicate OK [21:44:01]CreateOFDProtocolMessage done [21:44:01]OFDSenderStorePacket 202190 [21:44:01]StoreOFDPacket docnum=202190 [21:44:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E5 E3 04 01 C9 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E2 01 00 00 F4 03 04 00 20 B4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 15 03 00 35 04 06 00 D1 DF ED 8C 6E 90 B8 B8 10 3D 34 70 FE 2E [21:44:01]CheckFolder [21:44:01]dirname=/storage/ofd_packets [21:44:01]CheckFolder done [21:44:01]ProducePacketName [21:44:01]name=ofd_packets/00202190 [21:44:01]NVStorageSaveData ofd_packets/00202190 [21:44:01]File name is /storage/ofd_packets/00202190 [21:44:01]Write 298 bytes [21:44:01]NVStorageSaveData done [21:44:01]OFDSenderStorePacket done [21:44:01]KKMCreateOFDPacket done [21:44:01]NVStorageSaveData kkm_last_timestamp [21:44:01]File name is /storage/kkm_last_timestamp [21:44:01]Write 4 bytes [21:44:01]NVStorageSaveData done [21:44:01]ExternCall_PrintAddStr [21:44:01]wPrintStart [21:44:01]Write to MH i2c: 01 00 00 BA 00 BA [21:44:01]Write i2c OK [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: 01 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: 01 07 00 [21:44:01]MH_I2C_Read... [21:44:01]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [21:44:01]RasterBufferAndPrint [21:44:01]line Счет N : (1)449964 [21:44:01]line ИНН: 02508201610067 [21:44:01]line Контрольно-Кассовый Чек [21:44:01]line ПРОДАЖА [21:44:01]line ТРК (МРК, ГНК) : 33 [21:44:01]line Товар: 2710194210 [21:44:01]line ДТ-К-2 [21:44:01]line 13.130 * 76.20 [21:44:01]line = 1000.51 [21:44:01]line НДС 12% НСП 1% [21:44:01]line > о реализуемом товаре [21:44:01]line ОКРУГЛЕНИЕ: -0.51 [21:44:01]line ИТОГО: 1000.00 [21:44:01]line Внесено: 1000.00 [21:44:01]line СДАЧА: 0.00 [21:44:01]line НСП 1% : 8.85 [21:44:01]line НДС 12% : 106.25 [21:44:01]line Наличными: 1000.00 [21:44:01]line Безнал.: 0.00 [21:44:01]line Место: АЗС № 171 "Партнер Нефть" [21:44:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:44:01]line СНО: Общий режим [21:44:01]line Чек 482 27.10.2024 21:44 [21:44:01]line Смена: 544 ФФД: 1.0 [21:44:01]line ЗНМ: 0300000109 [21:44:01]line РНМ: 0000000000091777 [21:44:01]line Версия ККМ: 001 [21:44:01]line ФМ: 0000000000871756 [21:44:01]line ФД: 202190 [21:44:01]line ФПД: 230759693315728 [21:44:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214400&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202190&fm=230759693315728&tin=02508201610067®Number=0000000000091777&sum=100000 [21:44:01]OFD Sender: Processing packet 202190 [packets to send 114, broken 113] [21:44:01]ProducePacketName [21:44:01]name=ofd_packets/00202190 [21:44:01]OFD Sender: To server: pG, [21:44:01]CommunicateWithHost lk.salyk.kg:30040 [21:44:01]ConnectInit lk.salyk.kg [21:44:01]written 0, free lines is 4095 [21:44:01]Connected sock=10 [21:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E5 E3 04 01 C9 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E2 01 00 00 F4 03 04 00 20 B4 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 15 03 00 35 04 06 00 D1 DF ED 8C 6E 90 B8 B8 10 3D 34 70 FE 2E [21:44:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EF 6E 47 00 17 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 15 03 00 F4 03 04 00 D9 5F 1E 67 B6 04 01 00 00 9D 6C 35 BC 44 77 79 8F [21:44:02]CommunicateWithHost err = 0 [21:44:02]CheckOFDResponse [21:44:02]1017 (14) - 77093643461234 [21:44:02]1041 (16) - 0000000000871756 [21:44:02]1040 (4) - 202190 [21:44:02]1012 (4) - 27.10.2024 15:44 [21:44:02]1206 (1) - 0 [21:44:02]OFD Sender: Remove packet 202190 [21:44:02]ProducePacketName [21:44:02]name=ofd_packets/00202190 [21:44:02]NVStorageDeleteData [21:44:02]Write to MH i2c: 01 00 00 E5 00 E5 [21:44:02]Write i2c OK [21:44:02]MH_I2C_Read... [21:44:02]Read from MH i2c: 01 [21:44:02]MH_I2C_Read... [21:44:02]Read from MH i2c: 01 07 00 [21:44:02]MH_I2C_Read... [21:44:02]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 96 0C 8E [21:44:02]RasterBufferAndPrint [21:44:02]line [21:44:02]line [21:44:02]line [21:44:02]line [21:44:02]line [21:44:02]written 0, free lines is 3226 [21:44:02]MH_Cut [21:44:02]Write to MH i2c: D1 01 00 EC 00 01 BE [21:44:02]Write i2c OK [21:44:02]MH_I2C_Read... [21:44:02]Read from MH i2c: D1 [21:44:02]MH_I2C_Read... [21:44:02]Read from MH i2c: D1 01 00 [21:44:02]MH_I2C_Read... [21:44:02]Read from MH i2c: D1 01 00 EC 00 00 BD [21:44:02]Write to MH i2c: 01 00 00 ED 00 ED [21:44:02]Write i2c OK [21:44:02]MH_I2C_Read... [21:44:02]OFD Sender: No OFD packet to send [21:44:03]*** Cut start [21:44:03]*** Purtial cut [21:44:03]*** Stage 1: CUTSNS_PIN = 1 [21:44:03]Read from MH i2c: 01 [21:44:03]MH_I2C_Read... [21:44:03]*** Stop cut motor [21:44:03]*** Cut end [21:44:03]Read from MH i2c: 01 07 00 [21:44:03]MH_I2C_Read... [21:44:03]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [21:44:03]process_action close_receipt done [21:44:03]requested_data is exist [21:44:03]produce_requested_data [21:44:03]requested_item fm.sn is exist - process it [21:44:03]wFMCommunicate request_size=4 [21:44:03]MH_SAM_APDU [21:44:03]CAPDU: 80 11 00 00 [21:44:03]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [21:44:03]Write i2c OK [21:44:03]MH_I2C_Read... [21:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:03]Read from MH i2c: E2 [21:44:03]MH_I2C_Read... [21:44:03]Read from MH i2c: E2 17 00 [21:44:03]MH_I2C_Read... [21:44:03]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [21:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:44:03]wFMCommunicate OK [21:44:03]requested_item fd.num is exist - process it [21:44:03]SAM_PROTO_GetFieldsCounters [21:44:03]wFMCommunicate request_size=4 [21:44:03]MH_SAM_APDU [21:44:03]CAPDU: 80 13 00 00 [21:44:03]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [21:44:03]Write i2c OK [21:44:03]MH_I2C_Read... [21:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:03]Read from MH i2c: E2 [21:44:03]MH_I2C_Read... [21:44:03]Read from MH i2c: E2 62 00 [21:44:03]MH_I2C_Read... [21:44:03]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CE 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [21:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CE 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:03]wFMCommunicate OK [21:44:03]SAM_PROTO_GetFieldsCounters done [21:44:03]requested_item shift.num is exist - process it [21:44:03]requested_item shift.opened is exist - process it [21:44:03]req_shift_opened [21:44:03]FM_GetShiftState [21:44:03]SAM_PROTO_GetShiftState [21:44:03]wFMCommunicate request_size=4 [21:44:03]MH_SAM_APDU [21:44:03]CAPDU: 80 13 01 00 [21:44:03]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [21:44:03]Write i2c OK [21:44:03]MH_I2C_Read... [21:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:03]Read from MH i2c: E2 [21:44:03]MH_I2C_Read... [21:44:03]Read from MH i2c: E2 0E 00 [21:44:03]MH_I2C_Read... [21:44:03]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6F [21:44:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:44:03]wFMCommunicate OK [21:44:03]SAM_PROTO_GetShiftState done [21:44:03]FM_GetShiftState done [21:44:03]req_shift_opened done [21:44:03]requested_item shift.open_date is exist - process it [21:44:03]req_shift_open_date [21:44:03]req_shift_open_date done [21:44:03]produce_requested_data done [21:44:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202190,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [21:44:03]process_action_free close_receipt [21:44:03]json_value_free [21:44:03]json_value_free done [21:44:03]process_json_proto returns [21:44:03]Send response to host [21:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202190,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [21:44:03]free response buf [21:44:03]execute_script done [21:44:03]execute_script returns [21:44:03]free content buf [21:44:03]Sock 9.Close socket [21:44:03]Sock 9.Thread stoped [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:42]accept exits with 7 [21:54:42]New connection [21:54:42]New thread 3067280740 created [21:54:42]Thread 3067424100 joined [21:54:42]Waiting for new connection... [21:54:42] Sock 7.Parse request [21:54:42]Sock 7.Check first char [21:54:42]Sock 7.First char is OK [21:54:42]request: POST /json_proto HTTP/1.0 [21:54:42]Method: POST [21:54:42]URL: /json_proto [21:54:42]Method is POST - this is cgi request [21:54:42]url: /json_proto [21:54:42]query_string will be loaded in cgi processing [21:54:42]execute_cgi json_proto POST (null) [21:54:42]execute_cgi path=json_proto method=POST [21:54:42]POST find Content-Length [21:54:42]Host: 172.17.63.195:8080 [21:54:42]Content-Length: 682 [21:54:42]Content-Type: application/json [21:54:42] [21:54:42]POST finish read [21:54:42]Found Content-Length = 682 [21:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:54:42]execute_script... [21:54:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:54:42]POST & json_proto [21:54:42]process_json_proto [21:54:42]json parsed OK: [21:54:42]protocol is kg_v1.0 [21:54:42]action value=close_receipt [21:54:42]process_action close_receipt [21:54:42]cmd_close_receipt [21:54:42]MH_GetDate [21:54:42]Write to MH i2c: F0 00 00 F1 00 E0 [21:54:42]Write i2c OK [21:54:42]MH_I2C_Read... [21:54:42]Read from MH i2c: F0 [21:54:42]MH_I2C_Read... [21:54:42]Read from MH i2c: F0 09 00 [21:54:42]MH_I2C_Read... [21:54:42]Read from MH i2c: F0 09 00 F1 00 00 A3 B6 1E 67 47 1B 1E 67 AE [21:54:42]GetLastDocTimeStamp 1730065440 [21:54:42]current date 1730066083 [21:54:42]FM_GetShiftState [21:54:42]SAM_PROTO_GetShiftState [21:54:42]wFMCommunicate request_size=4 [21:54:42]MH_SAM_APDU [21:54:42]CAPDU: 80 13 01 00 [21:54:42]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [21:54:42]Write i2c OK [21:54:42]MH_I2C_Read... [21:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:42]Read from MH i2c: E2 [21:54:42]MH_I2C_Read... [21:54:42]Read from MH i2c: E2 0E 00 [21:54:42]MH_I2C_Read... [21:54:42]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 71 [21:54:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:54:42]wFMCommunicate OK [21:54:42]SAM_PROTO_GetShiftState done [21:54:42]FM_GetShiftState done [21:54:42]opened in 1729987312 [21:54:42]opened+sec_in_day 1730073712 [21:54:42]quantity*price = 100015 [21:54:42]sum+1 = 100017 [21:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 483 27.10.2024 21:54 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202191 ФПД: 108923417294433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T215443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202191&fm=108923417294433&tin=02508201610067®Number=0000000000091777&sum=100000 [21:54:43]StoreToDocumentArchive [21:54:43]shift 544 fd 202191 [21:54:43]save to /storage/0544/doc_00202191 [21:54:43]save last doc name /storage/0544/doc_00202191 to /storage/kkm_last_doc_name [21:54:43]save OK [21:54:43]Clear old archive folders... [21:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:43]tlvbuf is 00C20060 [21:54:43]SAM_PROTO_ClearQueue [21:54:43]wFMCommunicate request_size=4 [21:54:43]MH_SAM_APDU [21:54:43]CAPDU: 80 09 00 00 [21:54:43]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [21:54:43]Write i2c OK [21:54:43]MH_I2C_Read... [21:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:43]Read from MH i2c: E2 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: E2 03 00 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [21:54:43]RAPDU: 90 00 [21:54:43]wFMCommunicate OK [21:54:43]SAM_PROTO_ClearQueue done [21:54:43]KKMCreateOFDPacket [21:54:43]OFDProtocolAddRootSTLVToBuf [21:54:43]FM_MakeSignedData [21:54:43]FM_MakeSignedData [21:54:43]SAM_PROTO_SignData [21:54:43]wFMCommunicate request_size=4 [21:54:43]MH_SAM_APDU [21:54:43]CAPDU: 80 0D 01 02 [21:54:43]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [21:54:43]Write i2c OK [21:54:43]MH_I2C_Read... [21:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:43]Read from MH i2c: E2 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: E2 03 00 [21:54:43]MH_I2C_Read... [21:54:43]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [21:54:43]RAPDU: 90 00 [21:54:43]wFMCommunicate OK [21:54:43]wFMCommunicate request_size=255 [21:54:43]MH_SAM_APDU [21:54:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E3 01 00 00 F4 03 04 00 A3 B6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 15 03 00 35 04 06 00 63 [21:54:43]Write to MH i2c: E2 02 01 01 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E3 01 00 00 F4 03 04 00 A3 B6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 15 03 00 35 04 06 00 63 00 00 36 [21:54:43]Write i2c OK [21:54:43]MH_I2C_Read... [21:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:44]Read from MH i2c: E2 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 03 00 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [21:54:44]RAPDU: 90 00 [21:54:44]wFMCommunicate OK [21:54:44]wFMCommunicate request_size=10 [21:54:44]MH_SAM_APDU [21:54:44]CAPDU: 80 0D 02 02 05 10 B5 98 76 61 [21:54:44]Write to MH i2c: E2 0D 00 02 01 80 0D 02 02 05 00 10 B5 98 76 61 00 00 BB [21:54:44]Write i2c OK [21:54:44]MH_I2C_Read... [21:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:44]Read from MH i2c: E2 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 03 00 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [21:54:44]RAPDU: 90 00 [21:54:44]wFMCommunicate OK [21:54:44]wFMCommunicate request_size=4 [21:54:44]MH_SAM_APDU [21:54:44]CAPDU: 80 0D 03 02 [21:54:44]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [21:54:44]Write i2c OK [21:54:44]MH_I2C_Read... [21:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:44]Read from MH i2c: E2 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 0B 00 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 0B 00 03 01 00 F2 FB 13 ED 2D 07 98 4C 90 00 85 [21:54:44]RAPDU: F2 FB 13 ED 2D 07 98 4C 90 00 [21:54:44]wFMCommunicate OK [21:54:44]SAM_PROTO_SignData done [21:54:44]FM_MakeSignedData done [21:54:44]CreateOFDProtocolMessage [21:54:44]wFMCommunicate request_size=4 [21:54:44]MH_SAM_APDU [21:54:44]CAPDU: 80 11 00 00 [21:54:44]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [21:54:44]Write i2c OK [21:54:44]MH_I2C_Read... [21:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:44]Read from MH i2c: E2 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 17 00 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [21:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:54:44]wFMCommunicate OK [21:54:44]CreateOFDProtocolMessage done [21:54:44]OFDSenderStorePacket 202191 [21:54:44]StoreOFDPacket docnum=202191 [21:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A 28 07 01 95 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E3 01 00 00 F4 03 04 00 A3 B6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 15 03 00 35 04 06 00 63 10 B5 98 76 61 F2 FB 13 ED 2D 07 98 4C [21:54:44]CheckFolder [21:54:44]dirname=/storage/ofd_packets [21:54:44]CheckFolder done [21:54:44]ProducePacketName [21:54:44]name=ofd_packets/00202191 [21:54:44]NVStorageSaveData ofd_packets/00202191 [21:54:44]File name is /storage/ofd_packets/00202191 [21:54:44]Write 301 bytes [21:54:44]NVStorageSaveData done [21:54:44]OFDSenderStorePacket done [21:54:44]KKMCreateOFDPacket done [21:54:44]NVStorageSaveData kkm_last_timestamp [21:54:44]File name is /storage/kkm_last_timestamp [21:54:44]Write 4 bytes [21:54:44]NVStorageSaveData done [21:54:44]ExternCall_PrintAddStr [21:54:44]wPrintStart [21:54:44]Write to MH i2c: 01 00 00 05 01 06 [21:54:44]Write i2c OK [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: 01 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: 01 07 00 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [21:54:44]RasterBufferAndPrint [21:54:44]line Счет N : (1)449965 [21:54:44]line ИНН: 02508201610067 [21:54:44]line Контрольно-Кассовый Чек [21:54:44]line ПРОДАЖА [21:54:44]line ТРК (МРК, ГНК) : 41 [21:54:44]line Товар: 2710124130 [21:54:44]line Аи-92-К-2 [21:54:44]line 14.950 * 66.90 [21:54:44]line = 1000.16 [21:54:44]line НДС 12% НСП 1% [21:54:44]line > о реализуемом товаре [21:54:44]line ОКРУГЛЕНИЕ: -0.16 [21:54:44]line ИТОГО: 1000.00 [21:54:44]line Внесено: 1000.00 [21:54:44]line СДАЧА: 0.00 [21:54:44]line НСП 1% : 8.85 [21:54:44]line НДС 12% : 106.21 [21:54:44]line Наличными: 1000.00 [21:54:44]line Безнал.: 0.00 [21:54:44]line Место: АЗС № 171 "Партнер Нефть" [21:54:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:54:44]line СНО: Общий режим [21:54:44]line Чек 483 27.10.2024 21:54 [21:54:44]line Смена: 544 ФФД: 1.0 [21:54:44]line ЗНМ: 0300000109 [21:54:44]line РНМ: 0000000000091777 [21:54:44]line Версия ККМ: 001 [21:54:44]line ФМ: 0000000000871756 [21:54:44]line ФД: 202191 [21:54:44]line ФПД: 108923417294433 [21:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T215443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202191&fm=108923417294433&tin=02508201610067®Number=0000000000091777&sum=100000 [21:54:44]OFD Sender: Processing packet 202191 [packets to send 114, broken 113] [21:54:44]ProducePacketName [21:54:44]name=ofd_packets/00202191 [21:54:44]OFD Sender: To server: pG, [21:54:44]CommunicateWithHost lk.salyk.kg:30040 [21:54:44]ConnectInit lk.salyk.kg [21:54:44]written 0, free lines is 4095 [21:54:44]Connected sock=10 [21:54:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A 28 07 01 95 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E3 01 00 00 F4 03 04 00 A3 B6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 15 03 00 35 04 06 00 63 10 B5 98 76 61 F2 FB 13 ED 2D 07 98 4C [21:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FF 03 47 00 70 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 15 03 00 F4 03 04 00 5C 62 1E 67 B6 04 01 00 00 E4 1B 49 F0 C9 4C C6 B5 [21:54:45]CommunicateWithHost err = 0 [21:54:45]CheckOFDResponse [21:54:45]1017 (14) - 77093643461234 [21:54:45]1041 (16) - 0000000000871756 [21:54:45]1040 (4) - 202191 [21:54:45]1012 (4) - 27.10.2024 15:55 [21:54:45]1206 (1) - 0 [21:54:45]OFD Sender: Remove packet 202191 [21:54:45]ProducePacketName [21:54:45]name=ofd_packets/00202191 [21:54:45]NVStorageDeleteData [21:54:45]Write to MH i2c: 01 00 00 30 01 31 [21:54:45]Write i2c OK [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: 01 [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: 01 07 00 [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 95 0C D9 [21:54:45]RasterBufferAndPrint [21:54:45]line [21:54:45]line [21:54:45]line [21:54:45]line [21:54:45]line [21:54:45]written 0, free lines is 3224 [21:54:45]MH_Cut [21:54:45]Write to MH i2c: D1 01 00 37 01 01 0A [21:54:45]Write i2c OK [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: D1 [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: D1 01 00 [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: D1 01 00 37 01 00 09 [21:54:45]Write to MH i2c: 01 00 00 38 01 39 [21:54:45]Write i2c OK [21:54:45]MH_I2C_Read... [21:54:45]OFD Sender: No OFD packet to send [21:54:46]*** Cut start [21:54:46]*** Purtial cut [21:54:46]*** Stage 1: CUTSNS_PIN = 1 [21:54:46]Read from MH i2c: 01 [21:54:46]MH_I2C_Read... [21:54:46]*** Stop cut motor [21:54:46]*** Cut end [21:54:46]Read from MH i2c: 01 07 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 FF 0F 4E [21:54:46]process_action close_receipt done [21:54:46]requested_data is exist [21:54:46]produce_requested_data [21:54:46]requested_item fm.sn is exist - process it [21:54:46]wFMCommunicate request_size=4 [21:54:46]MH_SAM_APDU [21:54:46]CAPDU: 80 11 00 00 [21:54:46]Write to MH i2c: E2 08 00 39 01 80 11 00 00 00 00 00 00 B4 [21:54:46]Write i2c OK [21:54:46]MH_I2C_Read... [21:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:46]Read from MH i2c: E2 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 17 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 17 00 39 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [21:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:54:46]wFMCommunicate OK [21:54:46]requested_item fd.num is exist - process it [21:54:46]SAM_PROTO_GetFieldsCounters [21:54:46]wFMCommunicate request_size=4 [21:54:46]MH_SAM_APDU [21:54:46]CAPDU: 80 13 00 00 [21:54:46]Write to MH i2c: E2 08 00 3A 01 80 13 00 00 00 00 00 00 B7 [21:54:46]Write i2c OK [21:54:46]MH_I2C_Read... [21:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:46]Read from MH i2c: E2 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 62 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 62 00 3A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CF 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E3 01 00 00 5E 04 04 00 E3 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [21:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CF 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E3 01 00 00 5E 04 04 00 E3 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:46]wFMCommunicate OK [21:54:46]SAM_PROTO_GetFieldsCounters done [21:54:46]requested_item shift.num is exist - process it [21:54:46]requested_item shift.opened is exist - process it [21:54:46]req_shift_opened [21:54:46]FM_GetShiftState [21:54:46]SAM_PROTO_GetShiftState [21:54:46]wFMCommunicate request_size=4 [21:54:46]MH_SAM_APDU [21:54:46]CAPDU: 80 13 01 00 [21:54:46]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [21:54:46]Write i2c OK [21:54:46]MH_I2C_Read... [21:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:46]Read from MH i2c: E2 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 0E 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BB [21:54:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [21:54:46]wFMCommunicate OK [21:54:46]SAM_PROTO_GetShiftState done [21:54:46]FM_GetShiftState done [21:54:46]req_shift_opened done [21:54:46]requested_item shift.open_date is exist - process it [21:54:46]req_shift_open_date [21:54:46]req_shift_open_date done [21:54:46]produce_requested_data done [21:54:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202191,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [21:54:46]process_action_free close_receipt [21:54:46]json_value_free [21:54:46]json_value_free done [21:54:46]process_json_proto returns [21:54:46]Send response to host [21:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202191,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [21:54:46]free response buf [21:54:46]execute_script done [21:54:46]execute_script returns [21:54:46]free content buf [21:54:46]Sock 7.Close socket [21:54:46]Sock 7.Thread stoped [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:31]accept exits with 9 [22:28:31]New connection [22:28:31]New thread 3067424100 created [22:28:31]Thread 3067280740 joined [22:28:31]Waiting for new connection... [22:28:31] Sock 9.Parse request [22:28:31]Sock 9.Check first char [22:28:31]Sock 9.First char is OK [22:28:31]request: POST /json_proto HTTP/1.0 [22:28:31]Method: POST [22:28:31]URL: /json_proto [22:28:31]Method is POST - this is cgi request [22:28:31]url: /json_proto [22:28:31]query_string will be loaded in cgi processing [22:28:31]execute_cgi json_proto POST (null) [22:28:31]execute_cgi path=json_proto method=POST [22:28:31]POST find Content-Length [22:28:31]Host: 172.17.63.195:8080 [22:28:31]Content-Length: 677 [22:28:31]Content-Type: application/json [22:28:31] [22:28:31]POST finish read [22:28:31]Found Content-Length = 677 [22:28:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:31]execute_script... [22:28:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:31]POST & json_proto [22:28:31]process_json_proto [22:28:31]json parsed OK: [22:28:31]protocol is kg_v1.0 [22:28:31]action value=close_receipt [22:28:31]process_action close_receipt [22:28:31]cmd_close_receipt [22:28:31]MH_GetDate [22:28:31]Write to MH i2c: F0 00 00 3C 01 2C [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: F0 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: F0 09 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: F0 09 00 3C 01 00 91 BE 1E 67 47 1B 1E 67 F0 [22:28:31]GetLastDocTimeStamp 1730066083 [22:28:31]current date 1730068113 [22:28:31]FM_GetShiftState [22:28:31]SAM_PROTO_GetShiftState [22:28:31]wFMCommunicate request_size=4 [22:28:31]MH_SAM_APDU [22:28:31]CAPDU: 80 13 01 00 [22:28:31]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:31]Read from MH i2c: E2 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 0E 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 BD [22:28:31]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:28:31]wFMCommunicate OK [22:28:31]SAM_PROTO_GetShiftState done [22:28:31]FM_GetShiftState done [22:28:31]opened in 1729987312 [22:28:31]opened+sec_in_day 1730073712 [22:28:31]quantity*price = 24017 [22:28:31]sum+1 = 24018 [22:28:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 484 27.10.2024 22:28 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202192 ФПД: 97169195930709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222833&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202192&fm=97169195930709&tin=02508201610067®Number=0000000000091777&sum=24000 [22:28:33]StoreToDocumentArchive [22:28:33]shift 544 fd 202192 [22:28:33]save to /storage/0544/doc_00202192 [22:28:33]save last doc name /storage/0544/doc_00202192 to /storage/kkm_last_doc_name [22:28:33]save OK [22:28:33]Clear old archive folders... [22:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:33]tlvbuf is 00BFDF30 [22:28:33]SAM_PROTO_ClearQueue [22:28:33]wFMCommunicate request_size=4 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 09 00 00 [22:28:33]Write to MH i2c: E2 08 00 4A 01 80 09 00 00 00 00 00 00 BD [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 03 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [22:28:33]RAPDU: 90 00 [22:28:33]wFMCommunicate OK [22:28:33]SAM_PROTO_ClearQueue done [22:28:33]KKMCreateOFDPacket [22:28:33]OFDProtocolAddRootSTLVToBuf [22:28:33]FM_MakeSignedData [22:28:33]FM_MakeSignedData [22:28:33]SAM_PROTO_SignData [22:28:33]wFMCommunicate request_size=4 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 0D 01 02 [22:28:33]Write to MH i2c: E2 08 00 4B 01 80 0D 01 02 00 00 00 00 C5 [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 03 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [22:28:33]RAPDU: 90 00 [22:28:33]wFMCommunicate OK [22:28:33]wFMCommunicate request_size=255 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 91 BE 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 15 03 00 35 04 06 00 58 [22:28:33]Write to MH i2c: E2 02 01 4C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 91 BE 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 15 03 00 35 04 06 00 58 00 00 7A [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 03 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [22:28:33]RAPDU: 90 00 [22:28:33]wFMCommunicate OK [22:28:33]wFMCommunicate request_size=10 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 0D 02 02 05 5F F7 68 14 55 [22:28:33]Write to MH i2c: E2 0D 00 4D 01 80 0D 02 02 05 00 5F F7 68 14 55 00 00 F9 [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 03 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [22:28:33]RAPDU: 90 00 [22:28:33]wFMCommunicate OK [22:28:33]wFMCommunicate request_size=4 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 0D 03 02 [22:28:33]Write to MH i2c: E2 08 00 4E 01 80 0D 03 02 00 00 00 00 CA [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 0B 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 0B 00 4E 01 00 72 6C 4D 7A AB A5 DC 4D 90 00 E9 [22:28:33]RAPDU: 72 6C 4D 7A AB A5 DC 4D 90 00 [22:28:33]wFMCommunicate OK [22:28:33]SAM_PROTO_SignData done [22:28:33]FM_MakeSignedData done [22:28:33]CreateOFDProtocolMessage [22:28:33]wFMCommunicate request_size=4 [22:28:33]MH_SAM_APDU [22:28:33]CAPDU: 80 11 00 00 [22:28:33]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:33]Read from MH i2c: E2 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 17 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [22:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:28:33]wFMCommunicate OK [22:28:33]CreateOFDProtocolMessage done [22:28:33]OFDSenderStorePacket 202192 [22:28:33]StoreOFDPacket docnum=202192 [22:28:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 8A 07 01 77 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 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 91 BE 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 15 03 00 35 04 06 00 58 5F F7 68 14 55 72 6C 4D 7A AB A5 DC 4D [22:28:33]CheckFolder [22:28:33]dirname=/storage/ofd_packets [22:28:33]CheckFolder done [22:28:33]ProducePacketName [22:28:33]name=ofd_packets/00202192 [22:28:33]NVStorageSaveData ofd_packets/00202192 [22:28:33]File name is /storage/ofd_packets/00202192 [22:28:33]Write 301 bytes [22:28:33]NVStorageSaveData done [22:28:33]OFDSenderStorePacket done [22:28:33]KKMCreateOFDPacket done [22:28:33]NVStorageSaveData kkm_last_timestamp [22:28:33]File name is /storage/kkm_last_timestamp [22:28:33]Write 4 bytes [22:28:33]NVStorageSaveData done [22:28:33]ExternCall_PrintAddStr [22:28:33]wPrintStart [22:28:33]Write to MH i2c: 01 00 00 50 01 51 [22:28:33]Write i2c OK [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: 01 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: 01 07 00 [22:28:33]MH_I2C_Read... [22:28:33]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [22:28:33]RasterBufferAndPrint [22:28:33]line Счет N : (1)449966 [22:28:33]line ИНН: 02508201610067 [22:28:33]line Контрольно-Кассовый Чек [22:28:33]line ПРОДАЖА [22:28:33]line ТРК (МРК, ГНК) : 31 [22:28:33]line Товар: 2710124130 [22:28:33]line Аи-92-К-2 [22:28:33]line 3.590 * 66.90 [22:28:33]line = 240.17 [22:28:33]line НДС 12% НСП 1% [22:28:33]line > о реализуемом товаре [22:28:33]line ОКРУГЛЕНИЕ: -0.17 [22:28:33]line ИТОГО: 240.00 [22:28:33]line Внесено: 240.00 [22:28:33]line СДАЧА: 0.00 [22:28:33]line НСП 1% : 2.12 [22:28:33]line НДС 12% : 25.50 [22:28:33]line Наличными: 240.00 [22:28:33]line Безнал.: 0.00 [22:28:33]line Место: АЗС № 171 "Партнер Нефть" [22:28:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:28:33]line СНО: Общий режим [22:28:33]line Чек 484 27.10.2024 22:28 [22:28:33]line Смена: 544 ФФД: 1.0 [22:28:33]line ЗНМ: 0300000109 [22:28:33]line РНМ: 0000000000091777 [22:28:33]line Версия ККМ: 001 [22:28:33]line ФМ: 0000000000871756 [22:28:33]line ФД: 202192 [22:28:33]line ФПД: 97169195930709 [22:28:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222833&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202192&fm=97169195930709&tin=02508201610067®Number=0000000000091777&sum=24000 [22:28:33]OFD Sender: Processing packet 202192 [packets to send 114, broken 113] [22:28:33]ProducePacketName [22:28:33]name=ofd_packets/00202192 [22:28:33]OFD Sender: To server: pG, [22:28:33]CommunicateWithHost lk.salyk.kg:30040 [22:28:33]ConnectInit lk.salyk.kg [22:28:33]written 0, free lines is 4095 [22:28:33]Connected sock=10 [22:28:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 8A 07 01 77 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 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 91 BE 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 15 03 00 35 04 06 00 58 5F F7 68 14 55 72 6C 4D 7A AB A5 DC 4D [22:28:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3C 7B 47 00 07 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 15 03 00 F4 03 04 00 49 6A 1E 67 B6 04 01 00 00 AD D2 28 51 65 DA 84 57 [22:28:34]CommunicateWithHost err = 0 [22:28:34]CheckOFDResponse [22:28:34]1017 (14) - 77093643461234 [22:28:34]1041 (16) - 0000000000871756 [22:28:34]1040 (4) - 202192 [22:28:34]1012 (4) - 27.10.2024 16:28 [22:28:34]1206 (1) - 0 [22:28:34]OFD Sender: Remove packet 202192 [22:28:34]ProducePacketName [22:28:34]name=ofd_packets/00202192 [22:28:34]NVStorageDeleteData [22:28:34]Write to MH i2c: 01 00 00 7B 01 7C [22:28:34]Write i2c OK [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: 01 [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: 01 07 00 [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 91 0C 20 [22:28:34]RasterBufferAndPrint [22:28:34]line [22:28:34]line [22:28:34]line [22:28:34]line [22:28:34]line [22:28:34]written 0, free lines is 3222 [22:28:34]MH_Cut [22:28:34]Write to MH i2c: D1 01 00 82 01 01 55 [22:28:34]Write i2c OK [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: D1 [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: D1 01 00 [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: D1 01 00 82 01 00 54 [22:28:34]Write to MH i2c: 01 00 00 83 01 84 [22:28:34]Write i2c OK [22:28:34]MH_I2C_Read... [22:28:34]OFD Sender: No OFD packet to send [22:28:35]*** Cut start [22:28:35]*** Purtial cut [22:28:35]*** CUTSNS_PIN = 0 [22:28:35]*** Stage 1: CUTSNS_PIN = 1 [22:28:37]Read from MH i2c: 01 [22:28:37]MH_I2C_Read... [22:28:37]*** Stop cut motor [22:28:37]*** Cut end [22:28:37]Read from MH i2c: 01 07 00 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0F 99 [22:28:37]process_action close_receipt done [22:28:37]requested_data is exist [22:28:37]produce_requested_data [22:28:37]requested_item fm.sn is exist - process it [22:28:37]wFMCommunicate request_size=4 [22:28:37]MH_SAM_APDU [22:28:37]CAPDU: 80 11 00 00 [22:28:37]Write to MH i2c: E2 08 00 84 01 80 11 00 00 00 00 00 00 FF [22:28:37]Write i2c OK [22:28:37]MH_I2C_Read... [22:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:37]Read from MH i2c: E2 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: E2 17 00 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: E2 17 00 84 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [22:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:28:37]wFMCommunicate OK [22:28:37]requested_item fd.num is exist - process it [22:28:37]SAM_PROTO_GetFieldsCounters [22:28:37]wFMCommunicate request_size=4 [22:28:37]MH_SAM_APDU [22:28:37]CAPDU: 80 13 00 00 [22:28:37]Write to MH i2c: E2 08 00 85 01 80 13 00 00 00 00 00 00 02 [22:28:37]Write i2c OK [22:28:37]MH_I2C_Read... [22:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:37]Read from MH i2c: E2 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: E2 62 00 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: E2 62 00 85 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D0 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E4 01 00 00 5E 04 04 00 E4 01 00 00 57 04 04 00 E5 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [22:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D0 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E4 01 00 00 5E 04 04 00 E4 01 00 00 57 04 04 00 E5 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:37]wFMCommunicate OK [22:28:37]SAM_PROTO_GetFieldsCounters done [22:28:37]requested_item shift.num is exist - process it [22:28:37]requested_item shift.opened is exist - process it [22:28:37]req_shift_opened [22:28:37]FM_GetShiftState [22:28:37]SAM_PROTO_GetShiftState [22:28:37]wFMCommunicate request_size=4 [22:28:37]MH_SAM_APDU [22:28:37]CAPDU: 80 13 01 00 [22:28:37]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [22:28:37]Write i2c OK [22:28:37]MH_I2C_Read... [22:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:37]Read from MH i2c: E2 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: E2 0E 00 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 06 [22:28:37]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:28:37]wFMCommunicate OK [22:28:37]SAM_PROTO_GetShiftState done [22:28:37]FM_GetShiftState done [22:28:37]req_shift_opened done [22:28:37]requested_item shift.open_date is exist - process it [22:28:37]req_shift_open_date [22:28:37]req_shift_open_date done [22:28:37]produce_requested_data done [22:28:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202192,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [22:28:37]process_action_free close_receipt [22:28:37]json_value_free [22:28:37]json_value_free done [22:28:37]process_json_proto returns [22:28:37]Send response to host [22:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202192,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [22:28:37]free response buf [22:28:37]execute_script done [22:28:37]execute_script returns [22:28:37]free content buf [22:28:37]Sock 9.Close socket [22:28:37]Sock 9.Thread stoped [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:42]accept exits with 7 [22:38:42]New connection [22:38:42]New thread 3067280740 created [22:38:42]Thread 3067424100 joined [22:38:42]Waiting for new connection... [22:38:42] Sock 7.Parse request [22:38:42]Sock 7.Check first char [22:38:42]Sock 7.First char is OK [22:38:42]request: POST /json_proto HTTP/1.0 [22:38:42]Method: POST [22:38:42]URL: /json_proto [22:38:42]Method is POST - this is cgi request [22:38:42]url: /json_proto [22:38:42]query_string will be loaded in cgi processing [22:38:42]execute_cgi json_proto POST (null) [22:38:42]execute_cgi path=json_proto method=POST [22:38:42]POST find Content-Length [22:38:42]Host: 172.17.63.195:8080 [22:38:42]Content-Length: 677 [22:38:42]Content-Type: application/json [22:38:42] [22:38:42]POST finish read [22:38:42]Found Content-Length = 677 [22:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.960, "sum" : 131.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:42]execute_script... [22:38: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)449967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.960, "sum" : 131.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:42]POST & json_proto [22:38:42]process_json_proto [22:38:42]json parsed OK: [22:38:42]protocol is kg_v1.0 [22:38:42]action value=close_receipt [22:38:42]process_action close_receipt [22:38:42]cmd_close_receipt [22:38:42]MH_GetDate [22:38:42]Write to MH i2c: F0 00 00 87 01 77 [22:38:42]Write i2c OK [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: F0 [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: F0 09 00 [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: F0 09 00 87 01 00 F3 C0 1E 67 47 1B 1E 67 9F [22:38:42]GetLastDocTimeStamp 1730068113 [22:38:42]current date 1730068723 [22:38:42]FM_GetShiftState [22:38:42]SAM_PROTO_GetShiftState [22:38:42]wFMCommunicate request_size=4 [22:38:42]MH_SAM_APDU [22:38:42]CAPDU: 80 13 01 00 [22:38:42]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [22:38:42]Write i2c OK [22:38:42]MH_I2C_Read... [22:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:42]Read from MH i2c: E2 [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: E2 0E 00 [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 08 [22:38:42]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:38:42]wFMCommunicate OK [22:38:42]SAM_PROTO_GetShiftState done [22:38:42]FM_GetShiftState done [22:38:42]opened in 1729987312 [22:38:42]opened+sec_in_day 1730073712 [22:38:42]quantity*price = 13112 [22:38:42]sum+1 = 13113 [22:38:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 131.00 Внесено: 131.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.92 Наличными: 131.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 485 27.10.2024 22:38 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202193 ФПД: 73100669114607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T223843&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202193&fm=73100669114607&tin=02508201610067®Number=0000000000091777&sum=13100 [22:38:43]StoreToDocumentArchive [22:38:43]shift 544 fd 202193 [22:38:43]save to /storage/0544/doc_00202193 [22:38:43]save last doc name /storage/0544/doc_00202193 to /storage/kkm_last_doc_name [22:38:43]save OK [22:38:43]Clear old archive folders... [22:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:43]tlvbuf is 00C56210 [22:38:43]SAM_PROTO_ClearQueue [22:38:43]wFMCommunicate request_size=4 [22:38:43]MH_SAM_APDU [22:38:43]CAPDU: 80 09 00 00 [22:38:43]Write to MH i2c: E2 08 00 95 01 80 09 00 00 00 00 00 00 08 [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:43]Read from MH i2c: E2 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 03 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [22:38:43]RAPDU: 90 00 [22:38:43]wFMCommunicate OK [22:38:43]SAM_PROTO_ClearQueue done [22:38:43]KKMCreateOFDPacket [22:38:43]OFDProtocolAddRootSTLVToBuf [22:38:43]FM_MakeSignedData [22:38:43]FM_MakeSignedData [22:38:43]SAM_PROTO_SignData [22:38:43]wFMCommunicate request_size=4 [22:38:43]MH_SAM_APDU [22:38:43]CAPDU: 80 0D 01 02 [22:38:43]Write to MH i2c: E2 08 00 96 01 80 0D 01 02 00 00 00 00 10 [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:43]Read from MH i2c: E2 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 03 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [22:38:43]RAPDU: 90 00 [22:38:43]wFMCommunicate OK [22:38:43]wFMCommunicate request_size=255 [22:38:43]MH_SAM_APDU [22:38:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 F3 C0 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 15 03 00 35 04 06 00 42 [22:38:43]Write to MH i2c: E2 02 01 97 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 F3 C0 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 15 03 00 35 04 06 00 42 00 00 87 [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:43]Read from MH i2c: E2 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 03 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [22:38:43]RAPDU: 90 00 [22:38:43]wFMCommunicate OK [22:38:43]wFMCommunicate request_size=10 [22:38:43]MH_SAM_APDU [22:38:43]CAPDU: 80 0D 02 02 05 7C 13 6A 58 EF [22:38:43]Write to MH i2c: E2 0D 00 98 01 80 0D 02 02 05 00 7C 13 6A 58 EF 00 00 5D [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:43]Read from MH i2c: E2 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 03 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [22:38:43]RAPDU: 90 00 [22:38:43]wFMCommunicate OK [22:38:43]wFMCommunicate request_size=4 [22:38:43]MH_SAM_APDU [22:38:43]CAPDU: 80 0D 03 02 [22:38:43]Write to MH i2c: E2 08 00 99 01 80 0D 03 02 00 00 00 00 15 [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:43]Read from MH i2c: E2 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 0B 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 0B 00 99 01 00 CD 4F CF 26 F0 9A B2 72 90 00 D5 [22:38:43]RAPDU: CD 4F CF 26 F0 9A B2 72 90 00 [22:38:43]wFMCommunicate OK [22:38:43]SAM_PROTO_SignData done [22:38:43]FM_MakeSignedData done [22:38:43]CreateOFDProtocolMessage [22:38:43]wFMCommunicate request_size=4 [22:38:43]MH_SAM_APDU [22:38:43]CAPDU: 80 11 00 00 [22:38:43]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:43]Read from MH i2c: E2 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 17 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [22:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:38:43]wFMCommunicate OK [22:38:43]CreateOFDProtocolMessage done [22:38:43]OFDSenderStorePacket 202193 [22:38:43]StoreOFDPacket docnum=202193 [22:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FF 3C 07 01 C4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 F3 C0 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 15 03 00 35 04 06 00 42 7C 13 6A 58 EF CD 4F CF 26 F0 9A B2 72 [22:38:43]CheckFolder [22:38:43]dirname=/storage/ofd_packets [22:38:43]CheckFolder done [22:38:43]ProducePacketName [22:38:43]name=ofd_packets/00202193 [22:38:43]NVStorageSaveData ofd_packets/00202193 [22:38:43]File name is /storage/ofd_packets/00202193 [22:38:43]Write 301 bytes [22:38:43]NVStorageSaveData done [22:38:43]OFDSenderStorePacket done [22:38:43]KKMCreateOFDPacket done [22:38:43]NVStorageSaveData kkm_last_timestamp [22:38:43]File name is /storage/kkm_last_timestamp [22:38:43]Write 4 bytes [22:38:43]NVStorageSaveData done [22:38:43]ExternCall_PrintAddStr [22:38:43]wPrintStart [22:38:43]Write to MH i2c: 01 00 00 9B 01 9C [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: 01 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: 01 07 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [22:38:43]RasterBufferAndPrint [22:38:43]line Счет N : (1)449967 [22:38:43]line ИНН: 02508201610067 [22:38:43]line Контрольно-Кассовый Чек [22:38:43]line ПРОДАЖА [22:38:43]line ТРК (МРК, ГНК) : 52 [22:38:43]line Товар: 2710124130 [22:38:43]line Аи-92-К-2 [22:38:43]line 1.960 * 66.90 [22:38:43]line = 131.12 [22:38:43]line НДС 12% НСП 1% [22:38:43]line > о реализуемом товаре [22:38:43]line ОКРУГЛЕНИЕ: -0.12 [22:38:43]line ИТОГО: 131.00 [22:38:43]line Внесено: 131.00 [22:38:43]line СДАЧА: 0.00 [22:38:43]line НСП 1% : 1.16 [22:38:43]line НДС 12% : 13.92 [22:38:43]line Наличными: 131.00 [22:38:43]line Безнал.: 0.00 [22:38:43]line Место: АЗС № 171 "Партнер Нефть" [22:38:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:38:43]line СНО: Общий режим [22:38:43]line Чек 485 27.10.2024 22:38 [22:38:43]line Смена: 544 ФФД: 1.0 [22:38:43]line ЗНМ: 0300000109 [22:38:43]line РНМ: 0000000000091777 [22:38:43]line Версия ККМ: 001 [22:38:43]line ФМ: 0000000000871756 [22:38:43]line ФД: 202193 [22:38:43]line ФПД: 73100669114607 [22:38:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T223843&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202193&fm=73100669114607&tin=02508201610067®Number=0000000000091777&sum=13100 [22:38:44]OFD Sender: Processing packet 202193 [packets to send 114, broken 113] [22:38:44]ProducePacketName [22:38:44]name=ofd_packets/00202193 [22:38:44]OFD Sender: To server: pG, [22:38:44]CommunicateWithHost lk.salyk.kg:30040 [22:38:44]ConnectInit lk.salyk.kg [22:38:44]written 0, free lines is 4095 [22:38:44]Connected sock=11 [22:38:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FF 3C 07 01 C4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A8 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 F3 C0 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 15 03 00 35 04 06 00 42 7C 13 6A 58 EF CD 4F CF 26 F0 9A B2 72 [22:38:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 ED 24 47 00 B3 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 15 03 00 F4 03 04 00 AC 6C 1E 67 B6 04 01 00 00 F0 FB 97 87 04 1D 02 00 [22:38:44]CommunicateWithHost err = 0 [22:38:44]CheckOFDResponse [22:38:44]1017 (14) - 77093643461234 [22:38:44]1041 (16) - 0000000000871756 [22:38:44]1040 (4) - 202193 [22:38:44]1012 (4) - 27.10.2024 16:39 [22:38:44]1206 (1) - 0 [22:38:44]OFD Sender: Remove packet 202193 [22:38:44]ProducePacketName [22:38:44]name=ofd_packets/00202193 [22:38:44]NVStorageDeleteData [22:38:44]Write to MH i2c: 01 00 00 C6 01 C7 [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: 01 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: 01 07 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 86 0C 60 [22:38:44]RasterBufferAndPrint [22:38:44]line [22:38:44]line [22:38:44]line [22:38:44]line [22:38:44]line [22:38:44]written 0, free lines is 3211 [22:38:44]MH_Cut [22:38:44]Write to MH i2c: D1 01 00 CD 01 01 A0 [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: D1 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: D1 01 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: D1 01 00 CD 01 00 9F [22:38:44]Write to MH i2c: 01 00 00 CE 01 CF [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:45]OFD Sender: No OFD packet to send [22:38:45]*** Cut start [22:38:45]*** Purtial cut [22:38:45]*** Stage 1: CUTSNS_PIN = 1 [22:38:45]Read from MH i2c: 01 [22:38:45]MH_I2C_Read... [22:38:45]*** Stop cut motor [22:38:45]*** Cut end [22:38:45]Read from MH i2c: 01 07 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [22:38:45]process_action close_receipt done [22:38:45]requested_data is exist [22:38:45]produce_requested_data [22:38:45]requested_item fm.sn is exist - process it [22:38:45]wFMCommunicate request_size=4 [22:38:45]MH_SAM_APDU [22:38:45]CAPDU: 80 11 00 00 [22:38:45]Write to MH i2c: E2 08 00 CF 01 80 11 00 00 00 00 00 00 4A [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:45]Read from MH i2c: E2 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 17 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 17 00 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [22:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:38:45]wFMCommunicate OK [22:38:45]requested_item fd.num is exist - process it [22:38:45]SAM_PROTO_GetFieldsCounters [22:38:45]wFMCommunicate request_size=4 [22:38:45]MH_SAM_APDU [22:38:45]CAPDU: 80 13 00 00 [22:38:45]Write to MH i2c: E2 08 00 D0 01 80 13 00 00 00 00 00 00 4D [22:38:46]Write i2c OK [22:38:46]MH_I2C_Read... [22:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:46]Read from MH i2c: E2 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: E2 62 00 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: E2 62 00 D0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D1 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E5 01 00 00 5E 04 04 00 E5 01 00 00 57 04 04 00 E6 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [22:38:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D1 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E5 01 00 00 5E 04 04 00 E5 01 00 00 57 04 04 00 E6 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:46]wFMCommunicate OK [22:38:46]SAM_PROTO_GetFieldsCounters done [22:38:46]requested_item shift.num is exist - process it [22:38:46]requested_item shift.opened is exist - process it [22:38:46]req_shift_opened [22:38:46]FM_GetShiftState [22:38:46]SAM_PROTO_GetShiftState [22:38:46]wFMCommunicate request_size=4 [22:38:46]MH_SAM_APDU [22:38:46]CAPDU: 80 13 01 00 [22:38:46]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [22:38:46]Write i2c OK [22:38:46]MH_I2C_Read... [22:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:46]Read from MH i2c: E2 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: E2 0E 00 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 51 [22:38:46]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:38:46]wFMCommunicate OK [22:38:46]SAM_PROTO_GetShiftState done [22:38:46]FM_GetShiftState done [22:38:46]req_shift_opened done [22:38:46]requested_item shift.open_date is exist - process it [22:38:46]req_shift_open_date [22:38:46]req_shift_open_date done [22:38:46]produce_requested_data done [22:38:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202193,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [22:38:46]process_action_free close_receipt [22:38:46]json_value_free [22:38:46]json_value_free done [22:38:46]process_json_proto returns [22:38:46]Send response to host [22:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202193,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [22:38:46]free response buf [22:38:46]execute_script done [22:38:46]execute_script returns [22:38:46]free content buf [22:38:46]Sock 7.Close socket [22:38:46]Sock 7.Thread stoped [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:53]accept exits with 10 [22:42:53]New connection [22:42:53]New thread 3067424100 created [22:42:53]Thread 3067280740 joined [22:42:53]Waiting for new connection... [22:42:53] Sock 10.Parse request [22:42:53]Sock 10.Check first char [22:42:53]Sock 10.First char is OK [22:42:53]request: POST /json_proto HTTP/1.0 [22:42:53]Method: POST [22:42:53]URL: /json_proto [22:42:53]Method is POST - this is cgi request [22:42:53]url: /json_proto [22:42:53]query_string will be loaded in cgi processing [22:42:53]execute_cgi json_proto POST (null) [22:42:53]execute_cgi path=json_proto method=POST [22:42:53]POST find Content-Length [22:42:53]Host: 172.17.63.195:8080 [22:42:53]Content-Length: 679 [22:42:53]Content-Type: application/json [22:42:53] [22:42:53]POST finish read [22:42:53]Found Content-Length = 679 [22:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [22:42:53]execute_script... [22:42:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "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" ] } } [22:42:53]POST & json_proto [22:42:53]process_json_proto [22:42:53]json parsed OK: [22:42:53]protocol is kg_v1.0 [22:42:53]action value=close_receipt [22:42:53]process_action close_receipt [22:42:53]cmd_close_receipt [22:42:53]MH_GetDate [22:42:53]Write to MH i2c: F0 00 00 D2 01 C2 [22:42:53]Write i2c OK [22:42:53]MH_I2C_Read... [22:42:53]Read from MH i2c: F0 [22:42:53]MH_I2C_Read... [22:42:53]Read from MH i2c: F0 09 00 [22:42:53]MH_I2C_Read... [22:42:53]Read from MH i2c: F0 09 00 D2 01 00 EE C1 1E 67 47 1B 1E 67 E6 [22:42:53]GetLastDocTimeStamp 1730068723 [22:42:53]current date 1730068974 [22:42:53]FM_GetShiftState [22:42:53]SAM_PROTO_GetShiftState [22:42:53]wFMCommunicate request_size=4 [22:42:53]MH_SAM_APDU [22:42:53]CAPDU: 80 13 01 00 [22:42:53]Write to MH i2c: E2 08 00 D3 01 80 13 01 00 00 00 00 00 51 [22:42:53]Write i2c OK [22:42:53]MH_I2C_Read... [22:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:53]Read from MH i2c: E2 [22:42:53]MH_I2C_Read... [22:42:53]Read from MH i2c: E2 0E 00 [22:42:53]MH_I2C_Read... [22:42:53]Read from MH i2c: E2 0E 00 D3 01 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 53 [22:42:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:42:53]wFMCommunicate OK [22:42:53]SAM_PROTO_GetShiftState done [22:42:53]FM_GetShiftState done [22:42:53]opened in 1729987312 [22:42:53]opened+sec_in_day 1730073712 [22:42:53]quantity*price = 100050 [22:42:53]sum+1 = 100052 [22:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 486 27.10.2024 22:42 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202194 ФПД: 112301981702814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224254&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202194&fm=112301981702814&tin=02508201610067®Number=0000000000091777&sum=100000 [22:42:54]StoreToDocumentArchive [22:42:54]shift 544 fd 202194 [22:42:54]save to /storage/0544/doc_00202194 [22:42:54]save last doc name /storage/0544/doc_00202194 to /storage/kkm_last_doc_name [22:42:54]save OK [22:42:54]Clear old archive folders... [22:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:42:54]tlvbuf is 00C57660 [22:42:54]SAM_PROTO_ClearQueue [22:42:54]wFMCommunicate request_size=4 [22:42:54]MH_SAM_APDU [22:42:54]CAPDU: 80 09 00 00 [22:42:54]Write to MH i2c: E2 08 00 E0 01 80 09 00 00 00 00 00 00 53 [22:42:54]Write i2c OK [22:42:54]MH_I2C_Read... [22:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:54]Read from MH i2c: E2 [22:42:54]MH_I2C_Read... [22:42:54]Read from MH i2c: E2 03 00 [22:42:54]MH_I2C_Read... [22:42:54]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [22:42:54]RAPDU: 90 00 [22:42:54]wFMCommunicate OK [22:42:54]SAM_PROTO_ClearQueue done [22:42:54]KKMCreateOFDPacket [22:42:54]OFDProtocolAddRootSTLVToBuf [22:42:54]FM_MakeSignedData [22:42:54]FM_MakeSignedData [22:42:54]SAM_PROTO_SignData [22:42:54]wFMCommunicate request_size=4 [22:42:54]MH_SAM_APDU [22:42:54]CAPDU: 80 0D 01 02 [22:42:54]Write to MH i2c: E2 08 00 E1 01 80 0D 01 02 00 00 00 00 5B [22:42:54]Write i2c OK [22:42:54]MH_I2C_Read... [22:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:54]Read from MH i2c: E2 [22:42:54]MH_I2C_Read... [22:42:54]Read from MH i2c: E2 03 00 [22:42:54]MH_I2C_Read... [22:42:54]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [22:42:54]RAPDU: 90 00 [22:42:54]wFMCommunicate OK [22:42:54]wFMCommunicate request_size=255 [22:42:54]MH_SAM_APDU [22:42:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E6 01 00 00 F4 03 04 00 EE C1 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 15 03 00 35 04 06 00 66 23 57 BA [22:42:54]Write to MH i2c: E2 02 01 E2 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 E6 01 00 00 F4 03 04 00 EE C1 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 15 03 00 35 04 06 00 66 23 57 BA 00 00 A6 [22:42:54]Write i2c OK [22:42:54]MH_I2C_Read... [22:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:55]Read from MH i2c: E2 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: E2 03 00 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [22:42:55]RAPDU: 90 00 [22:42:55]wFMCommunicate OK [22:42:55]wFMCommunicate request_size=7 [22:42:55]MH_SAM_APDU [22:42:55]CAPDU: 80 0D 02 02 02 1A 9E [22:42:55]Write to MH i2c: E2 0A 00 E3 01 80 0D 02 02 02 00 1A 9E 00 00 1A [22:42:55]Write i2c OK [22:42:55]MH_I2C_Read... [22:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:55]Read from MH i2c: E2 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: E2 03 00 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [22:42:55]RAPDU: 90 00 [22:42:55]wFMCommunicate OK [22:42:55]wFMCommunicate request_size=4 [22:42:55]MH_SAM_APDU [22:42:55]CAPDU: 80 0D 03 02 [22:42:55]Write to MH i2c: E2 08 00 E4 01 80 0D 03 02 00 00 00 00 60 [22:42:55]Write i2c OK [22:42:55]MH_I2C_Read... [22:42:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:55]Read from MH i2c: E2 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: E2 0B 00 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: E2 0B 00 E4 01 00 ED B2 36 14 9F 1B E4 81 90 00 69 [22:42:55]RAPDU: ED B2 36 14 9F 1B E4 81 90 00 [22:42:55]wFMCommunicate OK [22:42:55]SAM_PROTO_SignData done [22:42:55]FM_MakeSignedData done [22:42:55]CreateOFDProtocolMessage [22:42:55]wFMCommunicate request_size=4 [22:42:55]MH_SAM_APDU [22:42:55]CAPDU: 80 11 00 00 [22:42:55]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [22:42:55]Write i2c OK [22:42:55]MH_I2C_Read... [22:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:55]Read from MH i2c: E2 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: E2 17 00 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [22:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:42:55]wFMCommunicate OK [22:42:55]CreateOFDProtocolMessage done [22:42:55]OFDSenderStorePacket 202194 [22:42:55]StoreOFDPacket docnum=202194 [22:42:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 6E 76 04 01 84 5F 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 32 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 E6 01 00 00 F4 03 04 00 EE C1 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 15 03 00 35 04 06 00 66 23 57 BA 1A 9E ED B2 36 14 9F 1B E4 81 [22:42:55]CheckFolder [22:42:55]dirname=/storage/ofd_packets [22:42:55]CheckFolder done [22:42:55]ProducePacketName [22:42:55]name=ofd_packets/00202194 [22:42:55]NVStorageSaveData ofd_packets/00202194 [22:42:55]File name is /storage/ofd_packets/00202194 [22:42:55]Write 298 bytes [22:42:55]NVStorageSaveData done [22:42:55]OFDSenderStorePacket done [22:42:55]KKMCreateOFDPacket done [22:42:55]NVStorageSaveData kkm_last_timestamp [22:42:55]File name is /storage/kkm_last_timestamp [22:42:55]Write 4 bytes [22:42:55]NVStorageSaveData done [22:42:55]ExternCall_PrintAddStr [22:42:55]wPrintStart [22:42:55]Write to MH i2c: 01 00 00 E6 01 E7 [22:42:55]Write i2c OK [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: 01 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: 01 07 00 [22:42:55]MH_I2C_Read... [22:42:55]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 FF 0F FC [22:42:55]RasterBufferAndPrint [22:42:55]line Счет N : (1)449968 [22:42:55]line ИНН: 02508201610067 [22:42:55]line Контрольно-Кассовый Чек [22:42:55]line ПРОДАЖА [22:42:55]line ТРК (МРК, ГНК) : 33 [22:42:55]line Товар: 2710194210 [22:42:55]line ДТ-К-2 [22:42:55]line 13.130 * 76.20 [22:42:55]line = 1000.51 [22:42:55]line НДС 12% НСП 1% [22:42:55]line > о реализуемом товаре [22:42:55]line ОКРУГЛЕНИЕ: -0.51 [22:42:55]line ИТОГО: 1000.00 [22:42:55]line Внесено: 1000.00 [22:42:55]line СДАЧА: 0.00 [22:42:55]line НСП 1% : 8.85 [22:42:55]line НДС 12% : 106.25 [22:42:55]line Наличными: 1000.00 [22:42:55]line Безнал.: 0.00 [22:42:55]line Место: АЗС № 171 "Партнер Нефть" [22:42:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:42:55]line СНО: Общий режим [22:42:55]line Чек 486 27.10.2024 22:42 [22:42:55]line Смена: 544 ФФД: 1.0 [22:42:55]line ЗНМ: 0300000109 [22:42:55]line РНМ: 0000000000091777 [22:42:55]line Версия ККМ: 001 [22:42:55]line ФМ: 0000000000871756 [22:42:55]line ФД: 202194 [22:42:55]line ФПД: 112301981702814 [22:42:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224254&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202194&fm=112301981702814&tin=02508201610067®Number=0000000000091777&sum=100000 [22:42:55]OFD Sender: Processing packet 202194 [packets to send 114, broken 113] [22:42:55]ProducePacketName [22:42:55]name=ofd_packets/00202194 [22:42:55]OFD Sender: To server: pG, [22:42:55]CommunicateWithHost lk.salyk.kg:30040 [22:42:55]ConnectInit lk.salyk.kg [22:42:55]written 0, free lines is 4095 [22:42:55]Connected sock=11 [22:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 6E 76 04 01 84 5F 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 32 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 E6 01 00 00 F4 03 04 00 EE C1 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 15 03 00 35 04 06 00 66 23 57 BA 1A 9E ED B2 36 14 9F 1B E4 81 [22:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FE D0 47 00 16 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 15 03 00 F4 03 04 00 A7 6D 1E 67 B6 04 01 00 00 5B C2 8A 89 5F D7 C5 9B [22:42:55]CommunicateWithHost err = 0 [22:42:55]CheckOFDResponse [22:42:55]1017 (14) - 77093643461234 [22:42:55]1041 (16) - 0000000000871756 [22:42:55]1040 (4) - 202194 [22:42:55]1012 (4) - 27.10.2024 16:43 [22:42:55]1206 (1) - 0 [22:42:55]OFD Sender: Remove packet 202194 [22:42:55]ProducePacketName [22:42:55]name=ofd_packets/00202194 [22:42:55]NVStorageDeleteData [22:42:56]Write to MH i2c: 01 00 00 11 02 13 [22:42:56]Write i2c OK [22:42:56]MH_I2C_Read... [22:42:56]Read from MH i2c: 01 [22:42:56]MH_I2C_Read... [22:42:56]Read from MH i2c: 01 07 00 [22:42:56]MH_I2C_Read... [22:42:56]Read from MH i2c: 01 07 00 11 02 00 00 00 00 00 8A 0C B0 [22:42:56]RasterBufferAndPrint [22:42:56]line [22:42:56]line [22:42:56]line [22:42:56]line [22:42:56]line [22:42:56]written 0, free lines is 3213 [22:42:56]MH_Cut [22:42:56]Write to MH i2c: D1 01 00 18 02 01 EC [22:42:56]Write i2c OK [22:42:56]MH_I2C_Read... [22:42:56]Read from MH i2c: D1 [22:42:56]MH_I2C_Read... [22:42:56]Read from MH i2c: D1 01 00 [22:42:56]MH_I2C_Read... [22:42:56]Read from MH i2c: D1 01 00 18 02 00 EB [22:42:56]Write to MH i2c: 01 00 00 19 02 1B [22:42:56]Write i2c OK [22:42:56]MH_I2C_Read... [22:42:56]OFD Sender: No OFD packet to send [22:42:56]*** Cut start [22:42:56]*** Purtial cut [22:42:56]*** Stage 1: CUTSNS_PIN = 1 [22:42:57]Read from MH i2c: 01 [22:42:57]MH_I2C_Read... [22:42:57]*** Stop cut motor [22:42:57]*** Cut end [22:42:57]Read from MH i2c: 01 07 00 [22:42:57]MH_I2C_Read... [22:42:57]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 FF 0F 30 [22:42:57]process_action close_receipt done [22:42:57]requested_data is exist [22:42:57]produce_requested_data [22:42:57]requested_item fm.sn is exist - process it [22:42:57]wFMCommunicate request_size=4 [22:42:57]MH_SAM_APDU [22:42:57]CAPDU: 80 11 00 00 [22:42:57]Write to MH i2c: E2 08 00 1A 02 80 11 00 00 00 00 00 00 96 [22:42:57]Write i2c OK [22:42:57]MH_I2C_Read... [22:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:57]Read from MH i2c: E2 [22:42:57]MH_I2C_Read... [22:42:57]Read from MH i2c: E2 17 00 [22:42:57]MH_I2C_Read... [22:42:57]Read from MH i2c: E2 17 00 1A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [22:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:42:57]wFMCommunicate OK [22:42:57]requested_item fd.num is exist - process it [22:42:57]SAM_PROTO_GetFieldsCounters [22:42:57]wFMCommunicate request_size=4 [22:42:57]MH_SAM_APDU [22:42:57]CAPDU: 80 13 00 00 [22:42:57]Write to MH i2c: E2 08 00 1B 02 80 13 00 00 00 00 00 00 99 [22:42:57]Write i2c OK [22:42:57]MH_I2C_Read... [22:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:57]Read from MH i2c: E2 [22:42:57]MH_I2C_Read... [22:42:57]Read from MH i2c: E2 62 00 [22:42:57]MH_I2C_Read... [22:42:57]Read from MH i2c: E2 62 00 1B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D2 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E6 01 00 00 5E 04 04 00 E6 01 00 00 57 04 04 00 E7 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [22:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D2 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E6 01 00 00 5E 04 04 00 E6 01 00 00 57 04 04 00 E7 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:57]wFMCommunicate OK [22:42:57]SAM_PROTO_GetFieldsCounters done [22:42:57]requested_item shift.num is exist - process it [22:42:57]requested_item shift.opened is exist - process it [22:42:57]req_shift_opened [22:42:57]FM_GetShiftState [22:42:57]SAM_PROTO_GetShiftState [22:42:57]wFMCommunicate request_size=4 [22:42:57]MH_SAM_APDU [22:42:57]CAPDU: 80 13 01 00 [22:42:57]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [22:42:57]Write i2c OK [22:42:57]MH_I2C_Read... [22:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:57]Read from MH i2c: E2 [22:42:57]MH_I2C_Read... [22:42:57]Read from MH i2c: E2 0E 00 [22:42:57]MH_I2C_Read... [22:42:57]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9D [22:42:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:42:57]wFMCommunicate OK [22:42:57]SAM_PROTO_GetShiftState done [22:42:57]FM_GetShiftState done [22:42:57]req_shift_opened done [22:42:57]requested_item shift.open_date is exist - process it [22:42:57]req_shift_open_date [22:42:57]req_shift_open_date done [22:42:57]produce_requested_data done [22:42:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202194,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [22:42:57]process_action_free close_receipt [22:42:57]json_value_free [22:42:57]json_value_free done [22:42:57]process_json_proto returns [22:42:57]Send response to host [22:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202194,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [22:42:57]free response buf [22:42:57]execute_script done [22:42:57]execute_script returns [22:42:57]free content buf [22:42:57]Sock 10.Close socket [22:42:57]Sock 10.Thread stoped [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]ConnectInit Can't connect to host [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:12]ConnectInit Can't connect to host [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:00]accept exits with 9 [22:51:00]New connection [22:51:00]New thread 3067280740 created [22:51:00]Thread 3067424100 joined [22:51:00]Waiting for new connection... [22:51:00] Sock 9.Parse request [22:51:00]Sock 9.Check first char [22:51:00]Sock 9.First char is OK [22:51:00]request: POST /json_proto HTTP/1.0 [22:51:00]Method: POST [22:51:00]URL: /json_proto [22:51:00]Method is POST - this is cgi request [22:51:00]url: /json_proto [22:51:00]query_string will be loaded in cgi processing [22:51:00]execute_cgi json_proto POST (null) [22:51:00]execute_cgi path=json_proto method=POST [22:51:00]POST find Content-Length [22:51:00]Host: 172.17.63.195:8080 [22:51:00]Content-Length: 682 [22:51:00]Content-Type: application/json [22:51:00] [22:51:00]POST finish read [22:51:00]Found Content-Length = 682 [22:51:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:00]execute_script... [22:51:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:00]POST & json_proto [22:51:00]process_json_proto [22:51:00]json parsed OK: [22:51:00]protocol is kg_v1.0 [22:51:00]action value=close_receipt [22:51:00]process_action close_receipt [22:51:00]cmd_close_receipt [22:51:00]MH_GetDate [22:51:00]Write to MH i2c: F0 00 00 1D 02 0E [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: F0 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: F0 09 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: F0 09 00 1D 02 00 D6 C3 1E 67 47 1B 1E 67 1C [22:51:00]GetLastDocTimeStamp 1730068974 [22:51:00]current date 1730069462 [22:51:00]FM_GetShiftState [22:51:00]SAM_PROTO_GetShiftState [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 13 01 00 [22:51:00]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 0E 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9F [22:51:00]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:51:00]wFMCommunicate OK [22:51:00]SAM_PROTO_GetShiftState done [22:51:00]FM_GetShiftState done [22:51:00]opened in 1729987312 [22:51:00]opened+sec_in_day 1730073712 [22:51:00]quantity*price = 140021 [22:51:00]sum+1 = 140023 [22:51:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 487 27.10.2024 22:51 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202195 ФПД: 279723472957527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225102&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202195&fm=279723472957527&tin=02508201610067®Number=0000000000091777&sum=140000 [22:51:01]StoreToDocumentArchive [22:51:01]shift 544 fd 202195 [22:51:01]save to /storage/0544/doc_00202195 [22:51:01]save last doc name /storage/0544/doc_00202195 to /storage/kkm_last_doc_name [22:51:01]save OK [22:51:01]Clear old archive folders... [22:51:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:51:01]tlvbuf is 00C55AB0 [22:51:01]SAM_PROTO_ClearQueue [22:51:01]wFMCommunicate request_size=4 [22:51:01]MH_SAM_APDU [22:51:01]CAPDU: 80 09 00 00 [22:51:01]Write to MH i2c: E2 08 00 2B 02 80 09 00 00 00 00 00 00 9F [22:51:01]Write i2c OK [22:51:01]MH_I2C_Read... [22:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:01]Read from MH i2c: E2 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: E2 03 00 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [22:51:01]RAPDU: 90 00 [22:51:01]wFMCommunicate OK [22:51:01]SAM_PROTO_ClearQueue done [22:51:01]KKMCreateOFDPacket [22:51:01]OFDProtocolAddRootSTLVToBuf [22:51:01]FM_MakeSignedData [22:51:01]FM_MakeSignedData [22:51:01]SAM_PROTO_SignData [22:51:01]wFMCommunicate request_size=4 [22:51:01]MH_SAM_APDU [22:51:01]CAPDU: 80 0D 01 02 [22:51:01]Write to MH i2c: E2 08 00 2C 02 80 0D 01 02 00 00 00 00 A7 [22:51:01]Write i2c OK [22:51:01]MH_I2C_Read... [22:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:02]OFD Sender: No OFD packet to send [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 03 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [22:51:02]RAPDU: 90 00 [22:51:02]wFMCommunicate OK [22:51:02]wFMCommunicate request_size=255 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 D6 C3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 15 03 00 35 04 06 00 FE [22:51:02]Write to MH i2c: E2 02 01 2D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 D6 C3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 15 03 00 35 04 06 00 FE 00 00 63 [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 03 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [22:51:02]RAPDU: 90 00 [22:51:02]wFMCommunicate OK [22:51:02]wFMCommunicate request_size=10 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 0D 02 02 05 68 32 3D B0 57 [22:51:02]Write to MH i2c: E2 0D 00 2E 02 80 0D 02 02 05 00 68 32 3D B0 57 00 00 92 [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 03 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [22:51:02]RAPDU: 90 00 [22:51:02]wFMCommunicate OK [22:51:02]wFMCommunicate request_size=4 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 0D 03 02 [22:51:02]Write to MH i2c: E2 08 00 2F 02 80 0D 03 02 00 00 00 00 AC [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 0B 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 0B 00 2F 02 00 E4 B1 F6 24 80 AF 6D 1B 90 00 13 [22:51:02]RAPDU: E4 B1 F6 24 80 AF 6D 1B 90 00 [22:51:02]wFMCommunicate OK [22:51:02]SAM_PROTO_SignData done [22:51:02]FM_MakeSignedData done [22:51:02]CreateOFDProtocolMessage [22:51:02]wFMCommunicate request_size=4 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 11 00 00 [22:51:02]Write to MH i2c: E2 08 00 30 02 80 11 00 00 00 00 00 00 AC [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 17 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 17 00 30 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 01 [22:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:51:02]wFMCommunicate OK [22:51:02]CreateOFDProtocolMessage done [22:51:02]OFDSenderStorePacket 202195 [22:51:02]StoreOFDPacket docnum=202195 [22:51:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3A F9 07 01 82 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 D6 C3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 15 03 00 35 04 06 00 FE 68 32 3D B0 57 E4 B1 F6 24 80 AF 6D 1B [22:51:02]CheckFolder [22:51:02]dirname=/storage/ofd_packets [22:51:02]CheckFolder done [22:51:02]ProducePacketName [22:51:02]name=ofd_packets/00202195 [22:51:02]NVStorageSaveData ofd_packets/00202195 [22:51:02]File name is /storage/ofd_packets/00202195 [22:51:02]Write 301 bytes [22:51:02]NVStorageSaveData done [22:51:02]OFDSenderStorePacket done [22:51:02]KKMCreateOFDPacket done [22:51:02]NVStorageSaveData kkm_last_timestamp [22:51:02]File name is /storage/kkm_last_timestamp [22:51:02]Write 4 bytes [22:51:02]NVStorageSaveData done [22:51:02]ExternCall_PrintAddStr [22:51:02]wPrintStart [22:51:02]Write to MH i2c: 01 00 00 31 02 33 [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: 01 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: 01 07 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [22:51:02]RasterBufferAndPrint [22:51:02]line Счет N : (1)449969 [22:51:02]line ИНН: 02508201610067 [22:51:02]line Контрольно-Кассовый Чек [22:51:02]line ПРОДАЖА [22:51:02]line ТРК (МРК, ГНК) : 41 [22:51:02]line Товар: 2710124130 [22:51:02]line Аи-92-К-2 [22:51:02]line 20.930 * 66.90 [22:51:02]line = 1400.22 [22:51:02]line НДС 12% НСП 1% [22:51:02]line > о реализуемом товаре [22:51:02]line ОКРУГЛЕНИЕ: -0.22 [22:51:02]line ИТОГО: 1400.00 [22:51:02]line Внесено: 1400.00 [22:51:02]line СДАЧА: 0.00 [22:51:02]line НСП 1% : 12.39 [22:51:02]line НДС 12% : 148.70 [22:51:02]line Наличными: 1400.00 [22:51:02]line Безнал.: 0.00 [22:51:02]line Место: АЗС № 171 "Партнер Нефть" [22:51:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:51:02]line СНО: Общий режим [22:51:02]line Чек 487 27.10.2024 22:51 [22:51:02]line Смена: 544 ФФД: 1.0 [22:51:02]line ЗНМ: 0300000109 [22:51:02]line РНМ: 0000000000091777 [22:51:02]line Версия ККМ: 001 [22:51:02]line ФМ: 0000000000871756 [22:51:02]line ФД: 202195 [22:51:02]line ФПД: 279723472957527 [22:51:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225102&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202195&fm=279723472957527&tin=02508201610067®Number=0000000000091777&sum=140000 [22:51:02]OFD Sender: Processing packet 202195 [packets to send 114, broken 113] [22:51:02]ProducePacketName [22:51:02]name=ofd_packets/00202195 [22:51:02]OFD Sender: To server: pG, [22:51:02]CommunicateWithHost lk.salyk.kg:30040 [22:51:02]ConnectInit lk.salyk.kg [22:51:02]written 0, free lines is 4095 [22:51:02]Connected sock=11 [22:51:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3A F9 07 01 82 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 D6 C3 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 15 03 00 35 04 06 00 FE 68 32 3D B0 57 E4 B1 F6 24 80 AF 6D 1B [22:51:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 08 9B 47 00 0D 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 15 03 00 F4 03 04 00 8E 6F 1E 67 B6 04 01 00 00 91 B9 72 0C 8F B8 64 E6 [22:51:03]CommunicateWithHost err = 0 [22:51:03]CheckOFDResponse [22:51:03]1017 (14) - 77093643461234 [22:51:03]1041 (16) - 0000000000871756 [22:51:03]1040 (4) - 202195 [22:51:03]1012 (4) - 27.10.2024 16:51 [22:51:03]1206 (1) - 0 [22:51:03]OFD Sender: Remove packet 202195 [22:51:03]ProducePacketName [22:51:03]name=ofd_packets/00202195 [22:51:03]NVStorageDeleteData [22:51:03]Write to MH i2c: 01 00 00 5C 02 5E [22:51:03]Write i2c OK [22:51:03]MH_I2C_Read... [22:51:03]Read from MH i2c: 01 [22:51:03]MH_I2C_Read... [22:51:03]Read from MH i2c: 01 07 00 [22:51:03]MH_I2C_Read... [22:51:03]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 94 0C 05 [22:51:03]RasterBufferAndPrint [22:51:03]line [22:51:03]line [22:51:03]line [22:51:03]line [22:51:03]line [22:51:03]written 0, free lines is 3224 [22:51:03]MH_Cut [22:51:03]Write to MH i2c: D1 01 00 63 02 01 37 [22:51:03]Write i2c OK [22:51:03]MH_I2C_Read... [22:51:03]Read from MH i2c: D1 [22:51:03]MH_I2C_Read... [22:51:03]Read from MH i2c: D1 01 00 [22:51:03]MH_I2C_Read... [22:51:03]Read from MH i2c: D1 01 00 63 02 00 36 [22:51:03]Write to MH i2c: 01 00 00 64 02 66 [22:51:03]Write i2c OK [22:51:03]MH_I2C_Read... [22:51:03]OFD Sender: No OFD packet to send [22:51:04]*** Cut start [22:51:04]*** Purtial cut [22:51:04]*** Stage 1: CUTSNS_PIN = 1 [22:51:04]Read from MH i2c: 01 [22:51:04]MH_I2C_Read... [22:51:04]*** Stop cut motor [22:51:04]*** Cut end [22:51:04]Read from MH i2c: 01 07 00 [22:51:04]MH_I2C_Read... [22:51:04]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [22:51:04]process_action close_receipt done [22:51:04]requested_data is exist [22:51:04]produce_requested_data [22:51:04]requested_item fm.sn is exist - process it [22:51:04]wFMCommunicate request_size=4 [22:51:04]MH_SAM_APDU [22:51:04]CAPDU: 80 11 00 00 [22:51:04]Write to MH i2c: E2 08 00 65 02 80 11 00 00 00 00 00 00 E1 [22:51:04]Write i2c OK [22:51:04]MH_I2C_Read... [22:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:04]Read from MH i2c: E2 [22:51:04]MH_I2C_Read... [22:51:04]Read from MH i2c: E2 17 00 [22:51:04]MH_I2C_Read... [22:51:04]Read from MH i2c: E2 17 00 65 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [22:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:51:04]wFMCommunicate OK [22:51:04]requested_item fd.num is exist - process it [22:51:04]SAM_PROTO_GetFieldsCounters [22:51:04]wFMCommunicate request_size=4 [22:51:04]MH_SAM_APDU [22:51:04]CAPDU: 80 13 00 00 [22:51:04]Write to MH i2c: E2 08 00 66 02 80 13 00 00 00 00 00 00 E4 [22:51:04]Write i2c OK [22:51:04]MH_I2C_Read... [22:51:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:04]Read from MH i2c: E2 [22:51:04]MH_I2C_Read... [22:51:04]Read from MH i2c: E2 62 00 [22:51:04]MH_I2C_Read... [22:51:04]Read from MH i2c: E2 62 00 66 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D3 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E7 01 00 00 5E 04 04 00 E7 01 00 00 57 04 04 00 E8 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [22:51:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D3 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E7 01 00 00 5E 04 04 00 E7 01 00 00 57 04 04 00 E8 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:04]wFMCommunicate OK [22:51:04]SAM_PROTO_GetFieldsCounters done [22:51:04]requested_item shift.num is exist - process it [22:51:04]requested_item shift.opened is exist - process it [22:51:04]req_shift_opened [22:51:04]FM_GetShiftState [22:51:04]SAM_PROTO_GetShiftState [22:51:04]wFMCommunicate request_size=4 [22:51:04]MH_SAM_APDU [22:51:04]CAPDU: 80 13 01 00 [22:51:04]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [22:51:04]Write i2c OK [22:51:04]MH_I2C_Read... [22:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:04]Read from MH i2c: E2 [22:51:04]MH_I2C_Read... [22:51:04]Read from MH i2c: E2 0E 00 [22:51:04]MH_I2C_Read... [22:51:04]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E8 [22:51:04]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:51:04]wFMCommunicate OK [22:51:04]SAM_PROTO_GetShiftState done [22:51:04]FM_GetShiftState done [22:51:04]req_shift_opened done [22:51:04]requested_item shift.open_date is exist - process it [22:51:04]req_shift_open_date [22:51:04]req_shift_open_date done [22:51:04]produce_requested_data done [22:51:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202195,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [22:51:04]process_action_free close_receipt [22:51:04]json_value_free [22:51:04]json_value_free done [22:51:04]process_json_proto returns [22:51:04]Send response to host [22:51:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202195,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [22:51:04]free response buf [22:51:04]execute_script done [22:51:04]execute_script returns [22:51:04]free content buf [22:51:04]Sock 9.Close socket [22:51:04]Sock 9.Thread stoped [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:01]ConnectInit Can't connect to host [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]accept exits with 10 [22:56:03]New connection [22:56:03]New thread 3067424100 created [22:56:03]Thread 3067280740 joined [22:56:03]Waiting for new connection... [22:56:03] Sock 10.Parse request [22:56:03]Sock 10.Check first char [22:56:03]Sock 10.First char is OK [22:56:03]request: POST /json_proto HTTP/1.0 [22:56:03]Method: POST [22:56:03]URL: /json_proto [22:56:03]Method is POST - this is cgi request [22:56:03]url: /json_proto [22:56:03]query_string will be loaded in cgi processing [22:56:03]execute_cgi json_proto POST (null) [22:56:03]execute_cgi path=json_proto method=POST [22:56:03]POST find Content-Length [22:56:03]Host: 172.17.63.195:8080 [22:56:03]Content-Length: 677 [22:56:03]Content-Type: application/json [22:56:03] [22:56:03]POST finish read [22:56:03]Found Content-Length = 677 [22:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:03]execute_script... [22:56: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)449970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:03]POST & json_proto [22:56:03]process_json_proto [22:56:03]json parsed OK: [22:56:03]protocol is kg_v1.0 [22:56:03]action value=close_receipt [22:56:03]process_action close_receipt [22:56:03]cmd_close_receipt [22:56:03]MH_GetDate [22:56:03]Write to MH i2c: F0 00 00 68 02 59 [22:56:03]Write i2c OK [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: F0 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: F0 09 00 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: F0 09 00 68 02 00 04 C5 1E 67 47 1B 1E 67 97 [22:56:03]GetLastDocTimeStamp 1730069462 [22:56:03]current date 1730069764 [22:56:03]FM_GetShiftState [22:56:03]SAM_PROTO_GetShiftState [22:56:03]wFMCommunicate request_size=4 [22:56:03]MH_SAM_APDU [22:56:03]CAPDU: 80 13 01 00 [22:56:03]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [22:56:03]Write i2c OK [22:56:03]MH_I2C_Read... [22:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:03]Read from MH i2c: E2 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: E2 0E 00 [22:56:03]MH_I2C_Read... [22:56:03]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 EA [22:56:03]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:56:03]wFMCommunicate OK [22:56:03]SAM_PROTO_GetShiftState done [22:56:03]FM_GetShiftState done [22:56:03]opened in 1729987312 [22:56:03]opened+sec_in_day 1730073712 [22:56:03]quantity*price = 37062 [22:56:03]sum+1 = 37064 [22:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 488 27.10.2024 22:56 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202196 ФПД: 205404324000825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225604&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202196&fm=205404324000825&tin=02508201610067®Number=0000000000091777&sum=37000 [22:56:04]StoreToDocumentArchive [22:56:04]shift 544 fd 202196 [22:56:04]save to /storage/0544/doc_00202196 [22:56:04]save last doc name /storage/0544/doc_00202196 to /storage/kkm_last_doc_name [22:56:04]save OK [22:56:04]Clear old archive folders... [22:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:04]tlvbuf is 00C59C30 [22:56:04]SAM_PROTO_ClearQueue [22:56:04]wFMCommunicate request_size=4 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 09 00 00 [22:56:04]Write to MH i2c: E2 08 00 76 02 80 09 00 00 00 00 00 00 EA [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 03 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [22:56:04]RAPDU: 90 00 [22:56:04]wFMCommunicate OK [22:56:04]SAM_PROTO_ClearQueue done [22:56:04]KKMCreateOFDPacket [22:56:04]OFDProtocolAddRootSTLVToBuf [22:56:04]FM_MakeSignedData [22:56:04]FM_MakeSignedData [22:56:04]SAM_PROTO_SignData [22:56:04]wFMCommunicate request_size=4 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 0D 01 02 [22:56:04]Write to MH i2c: E2 08 00 77 02 80 0D 01 02 00 00 00 00 F2 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 03 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [22:56:04]RAPDU: 90 00 [22:56:04]wFMCommunicate OK [22:56:04]wFMCommunicate request_size=255 [22:56:04]MH_SAM_APDU [22:56: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 32 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 01 00 00 F4 03 04 00 04 C5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 15 03 00 35 04 06 00 BA [22:56:04]Write to MH i2c: E2 02 01 78 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 01 00 00 F4 03 04 00 04 C5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 15 03 00 35 04 06 00 BA 00 00 34 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 03 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [22:56:04]RAPDU: 90 00 [22:56:04]wFMCommunicate OK [22:56:04]wFMCommunicate request_size=10 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 0D 02 02 05 D0 6B C4 74 39 [22:56:04]Write to MH i2c: E2 0D 00 79 02 80 0D 02 02 05 00 D0 6B C4 74 39 00 00 AB [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 03 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [22:56:04]RAPDU: 90 00 [22:56:04]wFMCommunicate OK [22:56:04]wFMCommunicate request_size=4 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 0D 03 02 [22:56:04]Write to MH i2c: E2 08 00 7A 02 80 0D 03 02 00 00 00 00 F7 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 0B 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 0B 00 7A 02 00 72 DB 9E 12 11 CE D0 47 90 00 EB [22:56:04]RAPDU: 72 DB 9E 12 11 CE D0 47 90 00 [22:56:04]wFMCommunicate OK [22:56:04]SAM_PROTO_SignData done [22:56:04]FM_MakeSignedData done [22:56:04]CreateOFDProtocolMessage [22:56:04]wFMCommunicate request_size=4 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 11 00 00 [22:56:04]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 17 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4C [22:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:56:04]wFMCommunicate OK [22:56:04]CreateOFDProtocolMessage done [22:56:04]OFDSenderStorePacket 202196 [22:56:04]StoreOFDPacket docnum=202196 [22:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 10 D9 07 01 DB 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 01 00 00 F4 03 04 00 04 C5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 15 03 00 35 04 06 00 BA D0 6B C4 74 39 72 DB 9E 12 11 CE D0 47 [22:56:04]CheckFolder [22:56:04]dirname=/storage/ofd_packets [22:56:04]CheckFolder done [22:56:04]ProducePacketName [22:56:04]name=ofd_packets/00202196 [22:56:04]NVStorageSaveData ofd_packets/00202196 [22:56:04]File name is /storage/ofd_packets/00202196 [22:56:04]Write 301 bytes [22:56:04]NVStorageSaveData done [22:56:04]OFDSenderStorePacket done [22:56:04]KKMCreateOFDPacket done [22:56:04]NVStorageSaveData kkm_last_timestamp [22:56:04]File name is /storage/kkm_last_timestamp [22:56:04]Write 4 bytes [22:56:04]NVStorageSaveData done [22:56:04]OFD Sender: Processing packet 202196 [packets to send 114, broken 113] [22:56:04]ProducePacketName [22:56:04]name=ofd_packets/00202196 [22:56:04]OFD Sender: To server: pG, [22:56:04]CommunicateWithHost lk.salyk.kg:30040 [22:56:04]ConnectInit lk.salyk.kg [22:56:04]ExternCall_PrintAddStr [22:56:04]wPrintStart [22:56:04]Write to MH i2c: 01 00 00 7C 02 7E [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: 01 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: 01 07 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [22:56:04]RasterBufferAndPrint [22:56:04]line Счет N : (1)449970 [22:56:04]line ИНН: 02508201610067 [22:56:04]line Контрольно-Кассовый Чек [22:56:04]line ПРОДАЖА [22:56:04]line ТРК (МРК, ГНК) : 52 [22:56:04]line Товар: 2710124130 [22:56:04]line Аи-92-К-2 [22:56:04]line 5.540 * 66.90 [22:56:04]line = 370.63 [22:56:04]line НДС 12% НСП 1% [22:56:04]line > о реализуемом товаре [22:56:04]line ОКРУГЛЕНИЕ: -0.63 [22:56:04]line ИТОГО: 370.00 [22:56:04]line Внесено: 370.00 [22:56:04]line СДАЧА: 0.00 [22:56:04]line НСП 1% : 3.28 [22:56:04]line НДС 12% : 39.36 [22:56:04]line Наличными: 370.00 [22:56:04]line Безнал.: 0.00 [22:56:04]line Место: АЗС № 171 "Партнер Нефть" [22:56:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:56:04]line СНО: Общий режим [22:56:04]line Чек 488 27.10.2024 22:56 [22:56:04]line Смена: 544 ФФД: 1.0 [22:56:04]line ЗНМ: 0300000109 [22:56:04]line РНМ: 0000000000091777 [22:56:04]line Версия ККМ: 001 [22:56:04]line ФМ: 0000000000871756 [22:56:04]line ФД: 202196 [22:56:04]line ФПД: 205404324000825 [22:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225604&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202196&fm=205404324000825&tin=02508201610067®Number=0000000000091777&sum=37000 [22:56:05]Connected sock=11 [22:56:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 10 D9 07 01 DB 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 01 00 00 F4 03 04 00 04 C5 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 15 03 00 35 04 06 00 BA D0 6B C4 74 39 72 DB 9E 12 11 CE D0 47 [22:56:05]written 0, free lines is 4095 [22:56:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 49 15 47 00 A0 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 15 03 00 F4 03 04 00 BC 70 1E 67 B6 04 01 00 00 75 59 66 B7 9E 3F 34 C6 [22:56:05]CommunicateWithHost err = 0 [22:56:05]CheckOFDResponse [22:56:05]1017 (14) - 77093643461234 [22:56:05]1041 (16) - 0000000000871756 [22:56:05]1040 (4) - 202196 [22:56:05]1012 (4) - 27.10.2024 16:56 [22:56:05]1206 (1) - 0 [22:56:05]OFD Sender: Remove packet 202196 [22:56:05]ProducePacketName [22:56:05]name=ofd_packets/00202196 [22:56:05]NVStorageDeleteData [22:56:05]Write to MH i2c: 01 00 00 A7 02 A9 [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: 01 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: 01 07 00 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 8C 0C 48 [22:56:05]RasterBufferAndPrint [22:56:05]line [22:56:05]line [22:56:05]line [22:56:05]line [22:56:05]line [22:56:05]written 0, free lines is 3215 [22:56:05]MH_Cut [22:56:05]Write to MH i2c: D1 01 00 AE 02 01 82 [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: D1 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: D1 01 00 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: D1 01 00 AE 02 00 81 [22:56:05]Write to MH i2c: 01 00 00 AF 02 B1 [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:05]OFD Sender: No OFD packet to send [22:56:06]*** Cut start [22:56:06]*** Purtial cut [22:56:06]*** Stage 1: CUTSNS_PIN = 1 [22:56:06]Read from MH i2c: 01 [22:56:06]MH_I2C_Read... [22:56:06]*** Stop cut motor [22:56:06]*** Cut end [22:56:06]Read from MH i2c: 01 07 00 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FF 0F C6 [22:56:06]process_action close_receipt done [22:56:06]requested_data is exist [22:56:06]produce_requested_data [22:56:06]requested_item fm.sn is exist - process it [22:56:06]wFMCommunicate request_size=4 [22:56:06]MH_SAM_APDU [22:56:06]CAPDU: 80 11 00 00 [22:56:06]Write to MH i2c: E2 08 00 B0 02 80 11 00 00 00 00 00 00 2C [22:56:06]Write i2c OK [22:56:06]MH_I2C_Read... [22:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:06]Read from MH i2c: E2 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: E2 17 00 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: E2 17 00 B0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [22:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:56:06]wFMCommunicate OK [22:56:06]requested_item fd.num is exist - process it [22:56:06]SAM_PROTO_GetFieldsCounters [22:56:06]wFMCommunicate request_size=4 [22:56:06]MH_SAM_APDU [22:56:06]CAPDU: 80 13 00 00 [22:56:06]Write to MH i2c: E2 08 00 B1 02 80 13 00 00 00 00 00 00 2F [22:56:06]Write i2c OK [22:56:06]MH_I2C_Read... [22:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:06]Read from MH i2c: E2 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: E2 62 00 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: E2 62 00 B1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D4 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E8 01 00 00 5E 04 04 00 E8 01 00 00 57 04 04 00 E9 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [22:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D4 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E8 01 00 00 5E 04 04 00 E8 01 00 00 57 04 04 00 E9 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:06]wFMCommunicate OK [22:56:06]SAM_PROTO_GetFieldsCounters done [22:56:06]requested_item shift.num is exist - process it [22:56:06]requested_item shift.opened is exist - process it [22:56:06]req_shift_opened [22:56:06]FM_GetShiftState [22:56:06]SAM_PROTO_GetShiftState [22:56:06]wFMCommunicate request_size=4 [22:56:06]MH_SAM_APDU [22:56:06]CAPDU: 80 13 01 00 [22:56:06]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [22:56:06]Write i2c OK [22:56:06]MH_I2C_Read... [22:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:07]Read from MH i2c: E2 [22:56:07]MH_I2C_Read... [22:56:07]Read from MH i2c: E2 0E 00 [22:56:07]MH_I2C_Read... [22:56:07]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 33 [22:56:07]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [22:56:07]wFMCommunicate OK [22:56:07]SAM_PROTO_GetShiftState done [22:56:07]FM_GetShiftState done [22:56:07]req_shift_opened done [22:56:07]requested_item shift.open_date is exist - process it [22:56:07]req_shift_open_date [22:56:07]req_shift_open_date done [22:56:07]produce_requested_data done [22:56:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202196,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [22:56:07]process_action_free close_receipt [22:56:07]json_value_free [22:56:07]json_value_free done [22:56:07]process_json_proto returns [22:56:07]Send response to host [22:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202196,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [22:56:07]free response buf [22:56:07]execute_script done [22:56:07]execute_script returns [22:56:07]free content buf [22:56:07]Sock 10.Close socket [22:56:07]Sock 10.Thread stoped [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:21]accept exits with 7 [23:03:21]New connection [23:03:21]New thread 3067280740 created [23:03:21]Thread 3067424100 joined [23:03:21]Waiting for new connection... [23:03:21] Sock 7.Parse request [23:03:21]Sock 7.Check first char [23:03:21]Sock 7.First char is OK [23:03:21]request: POST /json_proto HTTP/1.0 [23:03:21]Method: POST [23:03:21]URL: /json_proto [23:03:21]Method is POST - this is cgi request [23:03:21]url: /json_proto [23:03:21]query_string will be loaded in cgi processing [23:03:21]execute_cgi json_proto POST (null) [23:03:21]execute_cgi path=json_proto method=POST [23:03:21]POST find Content-Length [23:03:21]Host: 172.17.63.195:8080 [23:03:21]Content-Length: 682 [23:03:21]Content-Type: application/json [23:03:21] [23:03:21]POST finish read [23:03:21]Found Content-Length = 682 [23:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [23:03:21]execute_script... [23:03: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)449971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [23:03:21]POST & json_proto [23:03:21]process_json_proto [23:03:21]json parsed OK: [23:03:21]protocol is kg_v1.0 [23:03:21]action value=close_receipt [23:03:21]process_action close_receipt [23:03:21]cmd_close_receipt [23:03:21]MH_GetDate [23:03:21]Write to MH i2c: F0 00 00 B3 02 A4 [23:03:21]Write i2c OK [23:03:21]MH_I2C_Read... [23:03:21]Read from MH i2c: F0 [23:03:21]MH_I2C_Read... [23:03:21]Read from MH i2c: F0 09 00 [23:03:21]MH_I2C_Read... [23:03:21]Read from MH i2c: F0 09 00 B3 02 00 BA C6 1E 67 47 1B 1E 67 99 [23:03:21]GetLastDocTimeStamp 1730069764 [23:03:21]current date 1730070202 [23:03:21]FM_GetShiftState [23:03:21]SAM_PROTO_GetShiftState [23:03:21]wFMCommunicate request_size=4 [23:03:21]MH_SAM_APDU [23:03:21]CAPDU: 80 13 01 00 [23:03:21]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [23:03:21]Write i2c OK [23:03:21]MH_I2C_Read... [23:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:21]Read from MH i2c: E2 [23:03:21]MH_I2C_Read... [23:03:21]Read from MH i2c: E2 0E 00 [23:03:21]MH_I2C_Read... [23:03:21]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 35 [23:03:21]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:03:21]wFMCommunicate OK [23:03:21]SAM_PROTO_GetShiftState done [23:03:21]FM_GetShiftState done [23:03:21]opened in 1729987312 [23:03:21]opened+sec_in_day 1730073712 [23:03:21]quantity*price = 100015 [23:03:21]sum+1 = 100017 [23:03:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 489 27.10.2024 23:03 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202197 ФПД: 212947287184731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230322&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202197&fm=212947287184731&tin=02508201610067®Number=0000000000091777&sum=100000 [23:03:22]StoreToDocumentArchive [23:03:22]shift 544 fd 202197 [23:03:22]save to /storage/0544/doc_00202197 [23:03:22]save last doc name /storage/0544/doc_00202197 to /storage/kkm_last_doc_name [23:03:22]save OK [23:03:22]Clear old archive folders... [23:03:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:03:22]tlvbuf is 00C5B5C0 [23:03:22]SAM_PROTO_ClearQueue [23:03:22]wFMCommunicate request_size=4 [23:03:22]MH_SAM_APDU [23:03:22]CAPDU: 80 09 00 00 [23:03:22]Write to MH i2c: E2 08 00 C1 02 80 09 00 00 00 00 00 00 35 [23:03:22]Write i2c OK [23:03:22]MH_I2C_Read... [23:03:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:22]Read from MH i2c: E2 [23:03:22]MH_I2C_Read... [23:03:22]Read from MH i2c: E2 03 00 [23:03:22]MH_I2C_Read... [23:03:22]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [23:03:22]RAPDU: 90 00 [23:03:22]wFMCommunicate OK [23:03:22]SAM_PROTO_ClearQueue done [23:03:22]KKMCreateOFDPacket [23:03:22]OFDProtocolAddRootSTLVToBuf [23:03:22]FM_MakeSignedData [23:03:22]FM_MakeSignedData [23:03:22]SAM_PROTO_SignData [23:03:22]wFMCommunicate request_size=4 [23:03:22]MH_SAM_APDU [23:03:22]CAPDU: 80 0D 01 02 [23:03:22]Write to MH i2c: E2 08 00 C2 02 80 0D 01 02 00 00 00 00 3D [23:03:22]Write i2c OK [23:03:22]MH_I2C_Read... [23:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:22]Read from MH i2c: E2 [23:03:22]MH_I2C_Read... [23:03:22]Read from MH i2c: E2 03 00 [23:03:22]MH_I2C_Read... [23:03:22]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [23:03:22]RAPDU: 90 00 [23:03:22]wFMCommunicate OK [23:03:22]wFMCommunicate request_size=255 [23:03:22]MH_SAM_APDU [23:03:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E9 01 00 00 F4 03 04 00 BA C6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 15 03 00 35 04 06 00 C1 [23:03:22]Write to MH i2c: E2 02 01 C3 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E9 01 00 00 F4 03 04 00 BA C6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 15 03 00 35 04 06 00 C1 00 00 8A [23:03:22]Write i2c OK [23:03:22]MH_I2C_Read... [23:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:23]Read from MH i2c: E2 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: E2 03 00 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [23:03:23]RAPDU: 90 00 [23:03:23]wFMCommunicate OK [23:03:23]wFMCommunicate request_size=10 [23:03:23]MH_SAM_APDU [23:03:23]CAPDU: 80 0D 02 02 05 AC A7 68 95 5B [23:03:23]Write to MH i2c: E2 0D 00 C4 02 80 0D 02 02 05 00 AC A7 68 95 5B 00 00 F5 [23:03:23]Write i2c OK [23:03:23]MH_I2C_Read... [23:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:23]Read from MH i2c: E2 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: E2 03 00 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [23:03:23]RAPDU: 90 00 [23:03:23]wFMCommunicate OK [23:03:23]wFMCommunicate request_size=4 [23:03:23]MH_SAM_APDU [23:03:23]CAPDU: 80 0D 03 02 [23:03:23]Write to MH i2c: E2 08 00 C5 02 80 0D 03 02 00 00 00 00 42 [23:03:23]Write i2c OK [23:03:23]MH_I2C_Read... [23:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:23]Read from MH i2c: E2 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: E2 0B 00 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: E2 0B 00 C5 02 00 86 BC CF C6 55 66 44 95 90 00 AE [23:03:23]RAPDU: 86 BC CF C6 55 66 44 95 90 00 [23:03:23]wFMCommunicate OK [23:03:23]SAM_PROTO_SignData done [23:03:23]FM_MakeSignedData done [23:03:23]CreateOFDProtocolMessage [23:03:23]wFMCommunicate request_size=4 [23:03:23]MH_SAM_APDU [23:03:23]CAPDU: 80 11 00 00 [23:03:23]Write to MH i2c: E2 08 00 C6 02 80 11 00 00 00 00 00 00 42 [23:03:23]Write i2c OK [23:03:23]MH_I2C_Read... [23:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:23]Read from MH i2c: E2 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: E2 17 00 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: E2 17 00 C6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 97 [23:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:03:23]wFMCommunicate OK [23:03:23]CreateOFDProtocolMessage done [23:03:23]OFDSenderStorePacket 202197 [23:03:23]StoreOFDPacket docnum=202197 [23:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 48 A3 07 01 0A 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E9 01 00 00 F4 03 04 00 BA C6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 15 03 00 35 04 06 00 C1 AC A7 68 95 5B 86 BC CF C6 55 66 44 95 [23:03:23]CheckFolder [23:03:23]dirname=/storage/ofd_packets [23:03:23]CheckFolder done [23:03:23]ProducePacketName [23:03:23]name=ofd_packets/00202197 [23:03:23]NVStorageSaveData ofd_packets/00202197 [23:03:23]File name is /storage/ofd_packets/00202197 [23:03:23]Write 301 bytes [23:03:23]NVStorageSaveData done [23:03:23]OFDSenderStorePacket done [23:03:23]KKMCreateOFDPacket done [23:03:23]NVStorageSaveData kkm_last_timestamp [23:03:23]File name is /storage/kkm_last_timestamp [23:03:23]Write 4 bytes [23:03:23]NVStorageSaveData done [23:03:23]ExternCall_PrintAddStr [23:03:23]wPrintStart [23:03:23]Write to MH i2c: 01 00 00 C7 02 C9 [23:03:23]Write i2c OK [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: 01 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: 01 07 00 [23:03:23]MH_I2C_Read... [23:03:23]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 FF 0F DE [23:03:23]RasterBufferAndPrint [23:03:23]line Счет N : (1)449971 [23:03:23]line ИНН: 02508201610067 [23:03:23]line Контрольно-Кассовый Чек [23:03:23]line ПРОДАЖА [23:03:23]line ТРК (МРК, ГНК) : 41 [23:03:23]line Товар: 2710124130 [23:03:23]line Аи-92-К-2 [23:03:23]line 14.950 * 66.90 [23:03:23]line = 1000.16 [23:03:23]line НДС 12% НСП 1% [23:03:23]line > о реализуемом товаре [23:03:23]line ОКРУГЛЕНИЕ: -0.16 [23:03:23]line ИТОГО: 1000.00 [23:03:23]line Внесено: 1000.00 [23:03:23]line СДАЧА: 0.00 [23:03:23]line НСП 1% : 8.85 [23:03:23]line НДС 12% : 106.21 [23:03:23]line Наличными: 1000.00 [23:03:23]line Безнал.: 0.00 [23:03:23]line Место: АЗС № 171 "Партнер Нефть" [23:03:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [23:03:23]line СНО: Общий режим [23:03:23]line Чек 489 27.10.2024 23:03 [23:03:23]line Смена: 544 ФФД: 1.0 [23:03:23]line ЗНМ: 0300000109 [23:03:23]line РНМ: 0000000000091777 [23:03:23]line Версия ККМ: 001 [23:03:23]line ФМ: 0000000000871756 [23:03:23]line ФД: 202197 [23:03:23]line ФПД: 212947287184731 [23:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230322&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202197&fm=212947287184731&tin=02508201610067®Number=0000000000091777&sum=100000 [23:03:23]OFD Sender: Processing packet 202197 [packets to send 114, broken 113] [23:03:23]ProducePacketName [23:03:23]name=ofd_packets/00202197 [23:03:23]OFD Sender: To server: pG, [23:03:23]CommunicateWithHost lk.salyk.kg:30040 [23:03:23]ConnectInit lk.salyk.kg [23:03:23]written 0, free lines is 4095 [23:03:23]Connected sock=10 [23:03:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 48 A3 07 01 0A 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 E9 01 00 00 F4 03 04 00 BA C6 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 15 03 00 35 04 06 00 C1 AC A7 68 95 5B 86 BC CF C6 55 66 44 95 [23:03:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 28 12 47 00 A0 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 15 03 00 F4 03 04 00 73 72 1E 67 B6 04 01 00 00 FA A6 EB 3E 53 BC 23 51 [23:03:23]CommunicateWithHost err = 0 [23:03:23]CheckOFDResponse [23:03:23]1017 (14) - 77093643461234 [23:03:23]1041 (16) - 0000000000871756 [23:03:23]1040 (4) - 202197 [23:03:23]1012 (4) - 27.10.2024 17:03 [23:03:23]1206 (1) - 0 [23:03:23]OFD Sender: Remove packet 202197 [23:03:23]ProducePacketName [23:03:23]name=ofd_packets/00202197 [23:03:23]NVStorageDeleteData [23:03:24]Write to MH i2c: 01 00 00 F2 02 F4 [23:03:24]Write i2c OK [23:03:24]MH_I2C_Read... [23:03:24]Read from MH i2c: 01 [23:03:24]MH_I2C_Read... [23:03:24]Read from MH i2c: 01 07 00 [23:03:24]MH_I2C_Read... [23:03:24]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 95 0C 9C [23:03:24]RasterBufferAndPrint [23:03:24]line [23:03:24]line [23:03:24]line [23:03:24]line [23:03:24]line [23:03:24]written 0, free lines is 3226 [23:03:24]MH_Cut [23:03:24]Write to MH i2c: D1 01 00 F9 02 01 CD [23:03:24]Write i2c OK [23:03:24]MH_I2C_Read... [23:03:24]Read from MH i2c: D1 [23:03:24]MH_I2C_Read... [23:03:24]Read from MH i2c: D1 01 00 [23:03:24]MH_I2C_Read... [23:03:24]Read from MH i2c: D1 01 00 F9 02 00 CC [23:03:24]Write to MH i2c: 01 00 00 FA 02 FC [23:03:24]Write i2c OK [23:03:24]MH_I2C_Read... [23:03:24]OFD Sender: No OFD packet to send [23:03:24]*** Cut start [23:03:24]*** Purtial cut [23:03:24]*** Stage 1: CUTSNS_PIN = 1 [23:03:25]Read from MH i2c: 01 [23:03:25]MH_I2C_Read... [23:03:25]*** Stop cut motor [23:03:25]*** Cut end [23:03:25]Read from MH i2c: 01 07 00 [23:03:25]MH_I2C_Read... [23:03:25]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 FF 0F 11 [23:03:25]process_action close_receipt done [23:03:25]requested_data is exist [23:03:25]produce_requested_data [23:03:25]requested_item fm.sn is exist - process it [23:03:25]wFMCommunicate request_size=4 [23:03:25]MH_SAM_APDU [23:03:25]CAPDU: 80 11 00 00 [23:03:25]Write to MH i2c: E2 08 00 FB 02 80 11 00 00 00 00 00 00 77 [23:03:25]Write i2c OK [23:03:25]MH_I2C_Read... [23:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:25]Read from MH i2c: E2 [23:03:25]MH_I2C_Read... [23:03:25]Read from MH i2c: E2 17 00 [23:03:25]MH_I2C_Read... [23:03:25]Read from MH i2c: E2 17 00 FB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [23:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:03:25]wFMCommunicate OK [23:03:25]requested_item fd.num is exist - process it [23:03:25]SAM_PROTO_GetFieldsCounters [23:03:25]wFMCommunicate request_size=4 [23:03:25]MH_SAM_APDU [23:03:25]CAPDU: 80 13 00 00 [23:03:25]Write to MH i2c: E2 08 00 FC 02 80 13 00 00 00 00 00 00 7A [23:03:25]Write i2c OK [23:03:25]MH_I2C_Read... [23:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:25]Read from MH i2c: E2 [23:03:25]MH_I2C_Read... [23:03:25]Read from MH i2c: E2 62 00 [23:03:25]MH_I2C_Read... [23:03:25]Read from MH i2c: E2 62 00 FC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D5 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E9 01 00 00 5E 04 04 00 E9 01 00 00 57 04 04 00 EA 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [23:03:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D5 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 E9 01 00 00 5E 04 04 00 E9 01 00 00 57 04 04 00 EA 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:25]wFMCommunicate OK [23:03:25]SAM_PROTO_GetFieldsCounters done [23:03:25]requested_item shift.num is exist - process it [23:03:25]requested_item shift.opened is exist - process it [23:03:25]req_shift_opened [23:03:25]FM_GetShiftState [23:03:25]SAM_PROTO_GetShiftState [23:03:25]wFMCommunicate request_size=4 [23:03:25]MH_SAM_APDU [23:03:25]CAPDU: 80 13 01 00 [23:03:25]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [23:03:25]Write i2c OK [23:03:25]MH_I2C_Read... [23:03:25]Read from MH i2c: E2 [23:03:25]MH_I2C_Read... [23:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:25]Read from MH i2c: E2 0E 00 [23:03:25]MH_I2C_Read... [23:03:25]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 7E [23:03:25]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:03:25]wFMCommunicate OK [23:03:25]SAM_PROTO_GetShiftState done [23:03:25]FM_GetShiftState done [23:03:25]req_shift_opened done [23:03:25]requested_item shift.open_date is exist - process it [23:03:25]req_shift_open_date [23:03:25]req_shift_open_date done [23:03:25]produce_requested_data done [23:03:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202197,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [23:03:25]process_action_free close_receipt [23:03:25]json_value_free [23:03:25]json_value_free done [23:03:25]process_json_proto returns [23:03:25]Send response to host [23:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202197,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [23:03:25]free response buf [23:03:25]execute_script done [23:03:25]execute_script returns [23:03:25]free content buf [23:03:25]Sock 7.Close socket [23:03:25]Sock 7.Thread stoped [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:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:23]accept exits with 9 [23:07:23]New connection [23:07:23]New thread 3067424100 created [23:07:23]Thread 3067280740 joined [23:07:23]Waiting for new connection... [23:07:23] Sock 9.Parse request [23:07:23]Sock 9.Check first char [23:07:23]Sock 9.First char is OK [23:07:23]request: POST /json_proto HTTP/1.0 [23:07:23]Method: POST [23:07:23]URL: /json_proto [23:07:23]Method is POST - this is cgi request [23:07:23]url: /json_proto [23:07:23]query_string will be loaded in cgi processing [23:07:23]execute_cgi json_proto POST (null) [23:07:23]execute_cgi path=json_proto method=POST [23:07:23]POST find Content-Length [23:07:23]Host: 172.17.63.195:8080 [23:07:23]Content-Length: 677 [23:07:23]Content-Type: application/json [23:07:23] [23:07:23]POST finish read [23:07:23]Found Content-Length = 677 [23:07:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:23]execute_script... [23:07:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:23]POST & json_proto [23:07:23]process_json_proto [23:07:23]json parsed OK: [23:07:23]protocol is kg_v1.0 [23:07:23]action value=close_receipt [23:07:23]process_action close_receipt [23:07:23]cmd_close_receipt [23:07:23]MH_GetDate [23:07:23]Write to MH i2c: F0 00 00 FE 02 EF [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: F0 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: F0 09 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: F0 09 00 FE 02 00 AC C7 1E 67 47 1B 1E 67 D7 [23:07:23]GetLastDocTimeStamp 1730070202 [23:07:23]current date 1730070444 [23:07:23]FM_GetShiftState [23:07:23]SAM_PROTO_GetShiftState [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 13 01 00 [23:07:23]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 0E 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 80 [23:07:23]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:07:23]wFMCommunicate OK [23:07:23]SAM_PROTO_GetShiftState done [23:07:23]FM_GetShiftState done [23:07:23]opened in 1729987312 [23:07:23]opened+sec_in_day 1730073712 [23:07:23]quantity*price = 32045 [23:07:23]sum+1 = 32046 [23:07:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 490 27.10.2024 23:07 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202198 ФПД: 241260178484739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230724&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202198&fm=241260178484739&tin=02508201610067®Number=0000000000091777&sum=32000 [23:07:24]StoreToDocumentArchive [23:07:24]shift 544 fd 202198 [23:07:24]save to /storage/0544/doc_00202198 [23:07:24]save last doc name /storage/0544/doc_00202198 to /storage/kkm_last_doc_name [23:07:24]save OK [23:07:24]Clear old archive folders... [23:07:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:07:24]tlvbuf is B6F34900 [23:07:24]SAM_PROTO_ClearQueue [23:07:24]wFMCommunicate request_size=4 [23:07:24]MH_SAM_APDU [23:07:24]CAPDU: 80 09 00 00 [23:07:24]Write to MH i2c: E2 08 00 0C 03 80 09 00 00 00 00 00 00 81 [23:07:24]Write i2c OK [23:07:24]MH_I2C_Read... [23:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:24]Read from MH i2c: E2 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 03 00 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [23:07:24]RAPDU: 90 00 [23:07:24]wFMCommunicate OK [23:07:24]SAM_PROTO_ClearQueue done [23:07:24]KKMCreateOFDPacket [23:07:24]OFDProtocolAddRootSTLVToBuf [23:07:24]FM_MakeSignedData [23:07:24]FM_MakeSignedData [23:07:24]SAM_PROTO_SignData [23:07:24]wFMCommunicate request_size=4 [23:07:24]MH_SAM_APDU [23:07:24]CAPDU: 80 0D 01 02 [23:07:24]Write to MH i2c: E2 08 00 0D 03 80 0D 01 02 00 00 00 00 89 [23:07:24]Write i2c OK [23:07:24]MH_I2C_Read... [23:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:24]Read from MH i2c: E2 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 03 00 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [23:07:24]RAPDU: 90 00 [23:07:24]wFMCommunicate OK [23:07:24]wFMCommunicate request_size=255 [23:07:24]MH_SAM_APDU [23:07:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 AC C7 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 15 03 00 35 04 06 00 DB [23:07:24]Write to MH i2c: E2 02 01 0E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 AC C7 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 15 03 00 35 04 06 00 DB 00 00 83 [23:07:24]Write i2c OK [23:07:24]MH_I2C_Read... [23:07:24]OFD Sender: No OFD packet to send [23:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:24]Read from MH i2c: E2 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 03 00 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [23:07:24]RAPDU: 90 00 [23:07:24]wFMCommunicate OK [23:07:24]wFMCommunicate request_size=10 [23:07:24]MH_SAM_APDU [23:07:24]CAPDU: 80 0D 02 02 05 6C C3 3C AE 03 [23:07:24]Write to MH i2c: E2 0D 00 0F 03 80 0D 02 02 05 00 6C C3 3C AE 03 00 00 B2 [23:07:24]Write i2c OK [23:07:24]MH_I2C_Read... [23:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:24]Read from MH i2c: E2 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 03 00 [23:07:24]MH_I2C_Read... [23:07:24]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [23:07:24]RAPDU: 90 00 [23:07:24]wFMCommunicate OK [23:07:24]wFMCommunicate request_size=4 [23:07:24]MH_SAM_APDU [23:07:24]CAPDU: 80 0D 03 02 [23:07:24]Write to MH i2c: E2 08 00 10 03 80 0D 03 02 00 00 00 00 8E [23:07:24]Write i2c OK [23:07:24]MH_I2C_Read... [23:07:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:25]Read from MH i2c: E2 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 0B 00 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 0B 00 10 03 00 3B AC 30 DA A4 20 6A DA 90 00 88 [23:07:25]RAPDU: 3B AC 30 DA A4 20 6A DA 90 00 [23:07:25]wFMCommunicate OK [23:07:25]SAM_PROTO_SignData done [23:07:25]FM_MakeSignedData done [23:07:25]CreateOFDProtocolMessage [23:07:25]wFMCommunicate request_size=4 [23:07:25]MH_SAM_APDU [23:07:25]CAPDU: 80 11 00 00 [23:07:25]Write to MH i2c: E2 08 00 11 03 80 11 00 00 00 00 00 00 8E [23:07:25]Write i2c OK [23:07:25]MH_I2C_Read... [23:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:25]Read from MH i2c: E2 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 17 00 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: E2 17 00 11 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E3 [23:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:07:25]wFMCommunicate OK [23:07:25]CreateOFDProtocolMessage done [23:07:25]OFDSenderStorePacket 202198 [23:07:25]StoreOFDPacket docnum=202198 [23:07:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 18 C5 07 01 11 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 AC C7 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 15 03 00 35 04 06 00 DB 6C C3 3C AE 03 3B AC 30 DA A4 20 6A DA [23:07:25]CheckFolder [23:07:25]dirname=/storage/ofd_packets [23:07:25]CheckFolder done [23:07:25]ProducePacketName [23:07:25]name=ofd_packets/00202198 [23:07:25]NVStorageSaveData ofd_packets/00202198 [23:07:25]File name is /storage/ofd_packets/00202198 [23:07:25]Write 301 bytes [23:07:25]NVStorageSaveData done [23:07:25]OFDSenderStorePacket done [23:07:25]KKMCreateOFDPacket done [23:07:25]NVStorageSaveData kkm_last_timestamp [23:07:25]File name is /storage/kkm_last_timestamp [23:07:25]Write 4 bytes [23:07:25]NVStorageSaveData done [23:07:25]ExternCall_PrintAddStr [23:07:25]wPrintStart [23:07:25]Write to MH i2c: 01 00 00 12 03 15 [23:07:25]Write i2c OK [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: 01 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: 01 07 00 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 FF 0F 2A [23:07:25]RasterBufferAndPrint [23:07:25]line Счет N : (1)449972 [23:07:25]line ИНН: 02508201610067 [23:07:25]line Контрольно-Кассовый Чек [23:07:25]line ПРОДАЖА [23:07:25]line ТРК (МРК, ГНК) : 31 [23:07:25]line Товар: 2710124130 [23:07:25]line Аи-92-К-2 [23:07:25]line 4.790 * 66.90 [23:07:25]line = 320.45 [23:07:25]line НДС 12% НСП 1% [23:07:25]line > о реализуемом товаре [23:07:25]line ОКРУГЛЕНИЕ: -0.45 [23:07:25]line ИТОГО: 320.00 [23:07:25]line Внесено: 320.00 [23:07:25]line СДАЧА: 0.00 [23:07:25]line НСП 1% : 2.84 [23:07:25]line НДС 12% : 34.03 [23:07:25]line Наличными: 320.00 [23:07:25]line Безнал.: 0.00 [23:07:25]line Место: АЗС № 171 "Партнер Нефть" [23:07:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [23:07:25]line СНО: Общий режим [23:07:25]line Чек 490 27.10.2024 23:07 [23:07:25]line Смена: 544 ФФД: 1.0 [23:07:25]line ЗНМ: 0300000109 [23:07:25]line РНМ: 0000000000091777 [23:07:25]line Версия ККМ: 001 [23:07:25]line ФМ: 0000000000871756 [23:07:25]line ФД: 202198 [23:07:25]line ФПД: 241260178484739 [23:07:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230724&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202198&fm=241260178484739&tin=02508201610067®Number=0000000000091777&sum=32000 [23:07:25]OFD Sender: Processing packet 202198 [packets to send 114, broken 113] [23:07:25]ProducePacketName [23:07:25]name=ofd_packets/00202198 [23:07:25]OFD Sender: To server: pG, [23:07:25]CommunicateWithHost lk.salyk.kg:30040 [23:07:25]ConnectInit lk.salyk.kg [23:07:25]written 0, free lines is 4095 [23:07:25]Connected sock=10 [23:07:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 18 C5 07 01 11 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 AC C7 1E 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 15 03 00 35 04 06 00 DB 6C C3 3C AE 03 3B AC 30 DA A4 20 6A DA [23:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7C 26 47 00 CC 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 15 03 00 F4 03 04 00 65 73 1E 67 B6 04 01 00 00 8A 25 98 90 BF B2 98 62 [23:07:25]CommunicateWithHost err = 0 [23:07:25]CheckOFDResponse [23:07:25]1017 (14) - 77093643461234 [23:07:25]1041 (16) - 0000000000871756 [23:07:25]1040 (4) - 202198 [23:07:25]1012 (4) - 27.10.2024 17:07 [23:07:25]1206 (1) - 0 [23:07:25]OFD Sender: Remove packet 202198 [23:07:25]ProducePacketName [23:07:25]name=ofd_packets/00202198 [23:07:25]NVStorageDeleteData [23:07:25]Write to MH i2c: 01 00 00 3D 03 40 [23:07:25]Write i2c OK [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: 01 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: 01 07 00 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 8F 0C E2 [23:07:25]RasterBufferAndPrint [23:07:25]line [23:07:25]line [23:07:25]line [23:07:25]line [23:07:25]line [23:07:25]written 0, free lines is 3219 [23:07:25]MH_Cut [23:07:25]Write to MH i2c: D1 01 00 44 03 01 19 [23:07:25]Write i2c OK [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: D1 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: D1 01 00 [23:07:25]MH_I2C_Read... [23:07:25]Read from MH i2c: D1 01 00 44 03 00 18 [23:07:25]Write to MH i2c: 01 00 00 45 03 48 [23:07:25]Write i2c OK [23:07:25]MH_I2C_Read... [23:07:26]OFD Sender: No OFD packet to send [23:07:26]*** Cut start [23:07:26]*** Purtial cut [23:07:26]*** Stage 1: CUTSNS_PIN = 1 [23:07:27]Read from MH i2c: 01 [23:07:27]MH_I2C_Read... [23:07:27]*** Stop cut motor [23:07:27]*** Cut end [23:07:27]Read from MH i2c: 01 07 00 [23:07:27]MH_I2C_Read... [23:07:27]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [23:07:27]process_action close_receipt done [23:07:27]requested_data is exist [23:07:27]produce_requested_data [23:07:27]requested_item fm.sn is exist - process it [23:07:27]wFMCommunicate request_size=4 [23:07:27]MH_SAM_APDU [23:07:27]CAPDU: 80 11 00 00 [23:07:27]Write to MH i2c: E2 08 00 46 03 80 11 00 00 00 00 00 00 C3 [23:07:27]Write i2c OK [23:07:27]MH_I2C_Read... [23:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:27]Read from MH i2c: E2 [23:07:27]MH_I2C_Read... [23:07:27]Read from MH i2c: E2 17 00 [23:07:27]MH_I2C_Read... [23:07:27]Read from MH i2c: E2 17 00 46 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [23:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:07:27]wFMCommunicate OK [23:07:27]requested_item fd.num is exist - process it [23:07:27]SAM_PROTO_GetFieldsCounters [23:07:27]wFMCommunicate request_size=4 [23:07:27]MH_SAM_APDU [23:07:27]CAPDU: 80 13 00 00 [23:07:27]Write to MH i2c: E2 08 00 47 03 80 13 00 00 00 00 00 00 C6 [23:07:27]Write i2c OK [23:07:27]MH_I2C_Read... [23:07:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:27]Read from MH i2c: E2 [23:07:27]MH_I2C_Read... [23:07:27]Read from MH i2c: E2 62 00 [23:07:27]MH_I2C_Read... [23:07:27]Read from MH i2c: E2 62 00 47 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [23:07:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:07:27]wFMCommunicate OK [23:07:27]SAM_PROTO_GetFieldsCounters done [23:07:27]requested_item shift.num is exist - process it [23:07:27]requested_item shift.opened is exist - process it [23:07:27]req_shift_opened [23:07:27]FM_GetShiftState [23:07:27]SAM_PROTO_GetShiftState [23:07:27]wFMCommunicate request_size=4 [23:07:27]MH_SAM_APDU [23:07:27]CAPDU: 80 13 01 00 [23:07:27]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [23:07:27]Write i2c OK [23:07:27]MH_I2C_Read... [23:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:27]Read from MH i2c: E2 [23:07:27]MH_I2C_Read... [23:07:27]Read from MH i2c: E2 0E 00 [23:07:27]MH_I2C_Read... [23:07:27]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CA [23:07:27]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:07:27]wFMCommunicate OK [23:07:27]SAM_PROTO_GetShiftState done [23:07:27]FM_GetShiftState done [23:07:27]req_shift_opened done [23:07:27]requested_item shift.open_date is exist - process it [23:07:27]req_shift_open_date [23:07:27]req_shift_open_date done [23:07:27]produce_requested_data done [23:07:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202198,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [23:07:27]process_action_free close_receipt [23:07:27]json_value_free [23:07:27]json_value_free done [23:07:27]process_json_proto returns [23:07:27]Send response to host [23:07:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202198,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [23:07:27]free response buf [23:07:27]execute_script done [23:07:27]execute_script returns [23:07:27]free content buf [23:07:27]Sock 9.Close socket [23:07:27]Sock 9.Thread stoped [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:16]accept exits with 7 [23:56:16]New connection [23:56:16]New thread 3067280740 created [23:56:16]Thread 3067424100 joined [23:56:16]Waiting for new connection... [23:56:16] Sock 7.Parse request [23:56:16]Sock 7.Check first char [23:56:16]Sock 7.First char is OK [23:56:16]request: POST /json_proto HTTP/1.0 [23:56:16]Method: POST [23:56:16]URL: /json_proto [23:56:16]Method is POST - this is cgi request [23:56:16]url: /json_proto [23:56:16]query_string will be loaded in cgi processing [23:56:16]execute_cgi json_proto POST (null) [23:56:16]execute_cgi path=json_proto method=POST [23:56:16]POST find Content-Length [23:56:16]Host: 172.17.63.195:8080 [23:56:16]Content-Length: 215 [23:56:16]Content-Type: application/json [23:56:16] [23:56:16]POST finish read [23:56:16]Found Content-Length = 215 [23:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:16]execute_script... [23:56:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:16]POST & json_proto [23:56:16]process_json_proto [23:56:16]json parsed OK: [23:56:16]protocol is kg_v1.0 [23:56:16]action value=get_value [23:56:16]process_action get_value [23:56:16]cmd_get_value [23:56:16]process_action get_value done [23:56:16]requested_data is exist [23:56:16]produce_requested_data [23:56:16]requested_item kkm.sn is exist - process it [23:56:16]requested_item kkm.ver is exist - process it [23:56:16]requested_item fm.sn is exist - process it [23:56:16]wFMCommunicate request_size=4 [23:56:16]MH_SAM_APDU [23:56:16]CAPDU: 80 11 00 00 [23:56:16]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [23:56:16]Write i2c OK [23:56:16]MH_I2C_Read... [23:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:16]Read from MH i2c: E2 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 17 00 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 17 00 49 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [23:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:56:16]wFMCommunicate OK [23:56:16]requested_item fd.num is exist - process it [23:56:16]SAM_PROTO_GetFieldsCounters [23:56:16]wFMCommunicate request_size=4 [23:56:16]MH_SAM_APDU [23:56:16]CAPDU: 80 13 00 00 [23:56:16]Write to MH i2c: E2 08 00 4A 03 80 13 00 00 00 00 00 00 C9 [23:56:16]Write i2c OK [23:56:16]MH_I2C_Read... [23:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:17]Read from MH i2c: E2 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 62 00 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 62 00 4A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [23:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:17]wFMCommunicate OK [23:56:17]SAM_PROTO_GetFieldsCounters done [23:56:17]requested_item shift.num is exist - process it [23:56:17]requested_item shift.opened is exist - process it [23:56:17]req_shift_opened [23:56:17]FM_GetShiftState [23:56:17]SAM_PROTO_GetShiftState [23:56:17]wFMCommunicate request_size=4 [23:56:17]MH_SAM_APDU [23:56:17]CAPDU: 80 13 01 00 [23:56:17]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [23:56:17]Write i2c OK [23:56:17]MH_I2C_Read... [23:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:17]Read from MH i2c: E2 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 0E 00 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 CD [23:56:17]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:56:17]wFMCommunicate OK [23:56:17]SAM_PROTO_GetShiftState done [23:56:17]FM_GetShiftState done [23:56:17]req_shift_opened done [23:56:17]requested_item shift.open_date is exist - process it [23:56:17]req_shift_open_date [23:56:17]req_shift_open_date done [23:56:17]produce_requested_data done [23:56:17]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202198,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [23:56:17]process_action_free get_value [23:56:17]json_value_free [23:56:17]json_value_free done [23:56:17]process_json_proto returns [23:56:17]Send response to host [23:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202198,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [23:56:17]free response buf [23:56:17]execute_script done [23:56:17]execute_script returns [23:56:17]free content buf [23:56:17]Sock 7.Close socket [23:56:17]Sock 7.Thread stoped [23:56:17]accept exits with 9 [23:56:17]New connection [23:56:17]New thread 3067424100 created [23:56:17]Thread 3067280740 joined [23:56:17]Waiting for new connection... [23:56:17] Sock 9.Parse request [23:56:17]Sock 9.Check first char [23:56:17]Sock 9.First char is OK [23:56:17]request: POST /json_proto HTTP/1.0 [23:56:17]Method: POST [23:56:17]URL: /json_proto [23:56:17]Method is POST - this is cgi request [23:56:17]url: /json_proto [23:56:17]query_string will be loaded in cgi processing [23:56:17]execute_cgi json_proto POST (null) [23:56:17]execute_cgi path=json_proto method=POST [23:56:17]POST find Content-Length [23:56:17]Host: 172.17.63.195:8080 [23:56:17]Content-Length: 331 [23:56:17]Content-Type: application/json [23:56:17] [23:56:17]POST finish read [23:56:17]Found Content-Length = 331 [23:56:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:17]execute_script... [23:56:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:17]POST & json_proto [23:56:17]process_json_proto [23:56:17]json parsed OK: [23:56:17]protocol is kg_v1.0 [23:56:17]action value=get_value [23:56:17]process_action get_value [23:56:17]cmd_get_value [23:56:17]process_action get_value done [23:56:17]requested_data is exist [23:56:17]produce_requested_data [23:56:17]requested_item fm.sale.total is exist - process it [23:56:17]SAM_PROTO_GetFMData [23:56:17]wFMCommunicate request_size=4 [23:56:17]MH_SAM_APDU [23:56:17]CAPDU: 80 13 03 00 [23:56:17]Write to MH i2c: E2 08 00 4C 03 80 13 03 00 00 00 00 00 CE [23:56:17]Write i2c OK [23:56:17]MH_I2C_Read... [23:56:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:17]Read from MH i2c: E2 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 FD 00 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 FD 00 4C 03 00 C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 2B [23:56:17]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:56:17]wFMCommunicate OK [23:56:17]wFMCommunicate request_size=4 [23:56:17]MH_SAM_APDU [23:56:17]CAPDU: 80 17 00 00 [23:56:17]Write to MH i2c: E2 08 00 4D 03 80 17 00 00 00 00 00 00 D0 [23:56:17]Write i2c OK [23:56:17]MH_I2C_Read... [23:56:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:18]Read from MH i2c: E2 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 FD 00 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 FD 00 4D 03 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 D7 [23:56:18]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:18]wFMCommunicate OK [23:56:18]wFMCommunicate request_size=4 [23:56:18]MH_SAM_APDU [23:56:18]CAPDU: 80 17 00 00 [23:56:18]Write to MH i2c: E2 08 00 4E 03 80 17 00 00 00 00 00 00 D1 [23:56:18]Write i2c OK [23:56:18]MH_I2C_Read... [23:56:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:18]Read from MH i2c: E2 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 FD 00 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 FD 00 4E 03 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 E6 [23:56:18]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:56:18]wFMCommunicate OK [23:56:18]wFMCommunicate request_size=4 [23:56:18]MH_SAM_APDU [23:56:18]CAPDU: 80 17 00 00 [23:56:18]Write to MH i2c: E2 08 00 4F 03 80 17 00 00 00 00 00 00 D2 [23:56:18]Write i2c OK [23:56:18]MH_I2C_Read... [23:56:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:18]Read from MH i2c: E2 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 FD 00 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 FD 00 4F 03 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [23:56:18]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:18]wFMCommunicate OK [23:56:18]wFMCommunicate request_size=4 [23:56:18]MH_SAM_APDU [23:56:18]CAPDU: 80 17 00 00 [23:56:18]Write to MH i2c: E2 08 00 50 03 80 17 00 00 00 00 00 00 D3 [23:56:18]Write i2c OK [23:56:18]MH_I2C_Read... [23:56:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:56:18]Read from MH i2c: E2 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 E1 00 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 E1 00 50 03 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C1 [23:56:18]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:18]wFMCommunicate OK [23:56:18]SAM_PROTO_GetFMData done [23:56:18]requested_item fm.sale_refund.total is exist - process it [23:56:18]requested_item fm.buy.total is exist - process it [23:56:18]requested_item shift.sale.total is exist - process it [23:56:18]SAM_PROTO_GetShiftData [23:56:18]wFMCommunicate request_size=4 [23:56:18]MH_SAM_APDU [23:56:18]CAPDU: 80 13 02 00 [23:56:18]Write to MH i2c: E2 08 00 51 03 80 13 02 00 00 00 00 00 D2 [23:56:18]Write i2c OK [23:56:18]MH_I2C_Read... [23:56:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:19]Read from MH i2c: E2 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 51 03 00 B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 F6 [23:56:19]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [23:56:19]wFMCommunicate OK [23:56:19]wFMCommunicate request_size=4 [23:56:19]MH_SAM_APDU [23:56:19]CAPDU: 80 17 00 00 [23:56:19]Write to MH i2c: E2 08 00 52 03 80 17 00 00 00 00 00 00 D5 [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:19]Read from MH i2c: E2 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 52 03 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 EE [23:56:19]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:19]wFMCommunicate OK [23:56:19]wFMCommunicate request_size=4 [23:56:19]MH_SAM_APDU [23:56:19]CAPDU: 80 17 00 00 [23:56:19]Write to MH i2c: E2 08 00 53 03 80 17 00 00 00 00 00 00 D6 [23:56:19]OFD Sender: No OFD packet to send [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:19]Read from MH i2c: E2 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 53 03 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 8F [23:56:19]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:56:19]wFMCommunicate OK [23:56:19]wFMCommunicate request_size=4 [23:56:19]MH_SAM_APDU [23:56:19]CAPDU: 80 17 00 00 [23:56:19]Write to MH i2c: E2 08 00 54 03 80 17 00 00 00 00 00 00 D7 [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:20]Read from MH i2c: E2 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 FD 00 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 FD 00 54 03 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 90 00 4F [23:56:20]RAPDU: 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 90 00 [23:56:20]wFMCommunicate OK [23:56:20]wFMCommunicate request_size=4 [23:56:20]MH_SAM_APDU [23:56:20]CAPDU: 80 17 00 00 [23:56:20]Write to MH i2c: E2 08 00 55 03 80 17 00 00 00 00 00 00 D8 [23:56:20]Write i2c OK [23:56:20]MH_I2C_Read... [23:56:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:56:20]Read from MH i2c: E2 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 CE 00 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 CE 00 55 03 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BD [23:56:20]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:20]wFMCommunicate OK [23:56:20]SAM_PROTO_GetShiftData done [23:56:20]requested_item shift.sale.total_cash is exist - process it [23:56:20]requested_item shift.sale_refund.total is exist - process it [23:56:20]requested_item shift.sale_refund.total_cash is exist - process it [23:56:20]requested_item shift.buy.total is exist - process it [23:56:20]requested_item shift.buy.total_cash is exist - process it [23:56:20]produce_requested_data done [23:56:20]produce_requested_data return {"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.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} [23:56:20]process_action_free get_value [23:56:20]json_value_free [23:56:20]json_value_free done [23:56:20]process_json_proto returns [23:56:20]Send response to host [23:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.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}}} [23:56:20]free response buf [23:56:20]execute_script done [23:56:20]execute_script returns [23:56:20]free content buf [23:56:20]Sock 9.Close socket [23:56:20]Sock 9.Thread stoped [23:56:20]accept exits with 7 [23:56:20]New connection [23:56:20]New thread 3067280740 created [23:56:20]Thread 3067424100 joined [23:56:20]Waiting for new connection... [23:56:20] Sock 7.Parse request [23:56:20]Sock 7.Check first char [23:56:20]Sock 7.First char is OK [23:56:20]request: POST /json_proto HTTP/1.0 [23:56:20]Method: POST [23:56:20]URL: /json_proto [23:56:20]Method is POST - this is cgi request [23:56:20]url: /json_proto [23:56:20]query_string will be loaded in cgi processing [23:56:20]execute_cgi json_proto POST (null) [23:56:20]execute_cgi path=json_proto method=POST [23:56:20]POST find Content-Length [23:56:20]Host: 172.17.63.195:8080 [23:56:20]Content-Length: 331 [23:56:20]Content-Type: application/json [23:56:20] [23:56:20]POST finish read [23:56:20]Found Content-Length = 331 [23:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:20]execute_script... [23:56:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:20]POST & json_proto [23:56:20]process_json_proto [23:56:20]json parsed OK: [23:56:20]protocol is kg_v1.0 [23:56:20]action value=get_value [23:56:20]process_action get_value [23:56:20]cmd_get_value [23:56:20]process_action get_value done [23:56:20]requested_data is exist [23:56:20]produce_requested_data [23:56:20]requested_item fm.sale.total is exist - process it [23:56:20]SAM_PROTO_GetFMData [23:56:20]wFMCommunicate request_size=4 [23:56:20]MH_SAM_APDU [23:56:20]CAPDU: 80 13 03 00 [23:56:20]Write to MH i2c: E2 08 00 56 03 80 13 03 00 00 00 00 00 D8 [23:56:20]Write i2c OK [23:56:20]MH_I2C_Read... [23:56:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:21]Read from MH i2c: E2 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 FD 00 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 FD 00 56 03 00 C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 35 [23:56:21]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:56:21]wFMCommunicate OK [23:56:21]wFMCommunicate request_size=4 [23:56:21]MH_SAM_APDU [23:56:21]CAPDU: 80 17 00 00 [23:56:21]Write to MH i2c: E2 08 00 57 03 80 17 00 00 00 00 00 00 DA [23:56:21]Write i2c OK [23:56:21]MH_I2C_Read... [23:56:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:21]Read from MH i2c: E2 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 FD 00 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 FD 00 57 03 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 E1 [23:56:21]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:21]wFMCommunicate OK [23:56:21]wFMCommunicate request_size=4 [23:56:21]MH_SAM_APDU [23:56:21]CAPDU: 80 17 00 00 [23:56:21]Write to MH i2c: E2 08 00 58 03 80 17 00 00 00 00 00 00 DB [23:56:21]Write i2c OK [23:56:21]MH_I2C_Read... [23:56:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:21]Read from MH i2c: E2 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 FD 00 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 FD 00 58 03 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 F0 [23:56:21]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:56:21]wFMCommunicate OK [23:56:21]wFMCommunicate request_size=4 [23:56:21]MH_SAM_APDU [23:56:21]CAPDU: 80 17 00 00 [23:56:21]Write to MH i2c: E2 08 00 59 03 80 17 00 00 00 00 00 00 DC [23:56:21]Write i2c OK [23:56:21]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 FD 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 FD 00 59 03 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 54 [23:56:22]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:22]wFMCommunicate OK [23:56:22]wFMCommunicate request_size=4 [23:56:22]MH_SAM_APDU [23:56:22]CAPDU: 80 17 00 00 [23:56:22]Write to MH i2c: E2 08 00 5A 03 80 17 00 00 00 00 00 00 DD [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 E1 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 E1 00 5A 03 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CB [23:56:22]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:22]wFMCommunicate OK [23:56:22]SAM_PROTO_GetFMData done [23:56:22]requested_item fm.sale_refund.total is exist - process it [23:56:22]requested_item fm.buy.total is exist - process it [23:56:22]requested_item shift.sale.total is exist - process it [23:56:22]SAM_PROTO_GetShiftData [23:56:22]wFMCommunicate request_size=4 [23:56:22]MH_SAM_APDU [23:56:22]CAPDU: 80 13 02 00 [23:56:22]Write to MH i2c: E2 08 00 5B 03 80 13 02 00 00 00 00 00 DC [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:22]Read from MH i2c: E2 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 FD 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: E2 FD 00 5B 03 00 B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 00 [23:56:23]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [23:56:23]wFMCommunicate OK [23:56:23]wFMCommunicate request_size=4 [23:56:23]MH_SAM_APDU [23:56:23]CAPDU: 80 17 00 00 [23:56:23]Write to MH i2c: E2 08 00 5C 03 80 17 00 00 00 00 00 00 DF [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:23]Read from MH i2c: E2 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 FD 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 FD 00 5C 03 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 F8 [23:56:23]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:23]wFMCommunicate OK [23:56:23]wFMCommunicate request_size=4 [23:56:23]MH_SAM_APDU [23:56:23]CAPDU: 80 17 00 00 [23:56:23]Write to MH i2c: E2 08 00 5D 03 80 17 00 00 00 00 00 00 E0 [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:23]Read from MH i2c: E2 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 FD 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 FD 00 5D 03 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 99 [23:56:23]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:56:23]wFMCommunicate OK [23:56:23]wFMCommunicate request_size=4 [23:56:23]MH_SAM_APDU [23:56:23]CAPDU: 80 17 00 00 [23:56:23]Write to MH i2c: E2 08 00 5E 03 80 17 00 00 00 00 00 00 E1 [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 FD 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 FD 00 5E 03 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 90 00 59 [23:56:24]RAPDU: 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 90 00 [23:56:24]wFMCommunicate OK [23:56:24]wFMCommunicate request_size=4 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 17 00 00 [23:56:24]Write to MH i2c: E2 08 00 5F 03 80 17 00 00 00 00 00 00 E2 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 CE 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 CE 00 5F 03 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C7 [23:56:24]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:24]wFMCommunicate OK [23:56:24]SAM_PROTO_GetShiftData done [23:56:24]requested_item shift.sale.total_cash is exist - process it [23:56:24]requested_item shift.sale_refund.total is exist - process it [23:56:24]requested_item shift.sale_refund.total_cash is exist - process it [23:56:24]requested_item shift.buy.total is exist - process it [23:56:24]requested_item shift.buy.total_cash is exist - process it [23:56:24]produce_requested_data done [23:56:24]produce_requested_data return {"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.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} [23:56:24]process_action_free get_value [23:56:24]json_value_free [23:56:24]json_value_free done [23:56:24]process_json_proto returns [23:56:24]Send response to host [23:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.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}}} [23:56:24]free response buf [23:56:24]execute_script done [23:56:24]execute_script returns [23:56:24]free content buf [23:56:24]Sock 7.Close socket [23:56:24]Sock 7.Thread stoped [23:56:24]accept exits with 9 [23:56:24]New connection [23:56:24]New thread 3067424100 created [23:56:24]Thread 3067280740 joined [23:56:24]Waiting for new connection... [23:56:24] Sock 9.Parse request [23:56:24]Sock 9.Check first char [23:56:24]Sock 9.First char is OK [23:56:24]request: POST /json_proto HTTP/1.0 [23:56:24]Method: POST [23:56:24]URL: /json_proto [23:56:24]Method is POST - this is cgi request [23:56:24]url: /json_proto [23:56:24]query_string will be loaded in cgi processing [23:56:24]execute_cgi json_proto POST (null) [23:56:24]execute_cgi path=json_proto method=POST [23:56:24]POST find Content-Length [23:56:24]Host: 172.17.63.195:8080 [23:56:24]Content-Length: 263 [23:56:24]Content-Type: application/json [23:56:24] [23:56:24]POST finish read [23:56:24]Found Content-Length = 263 [23:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0448\u0438\u0440\u0431\u0435\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:24]execute_script... [23:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0448\u0438\u0440\u0431\u0435\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:24]POST & json_proto [23:56:24]process_json_proto [23:56:24]json parsed OK: [23:56:24]protocol is kg_v1.0 [23:56:24]action value=x_report [23:56:24]process_action x_report [23:56:24]cmd_x_report [23:56:24]MH_GetDate [23:56:24]Write to MH i2c: F0 00 00 60 03 52 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: F0 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: F0 09 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: F0 09 00 60 03 00 2A D3 1E 67 47 1B 1E 67 C4 [23:56:24]GetLastDocTimeStamp 1730070444 [23:56:24]current date 1730073386 [23:56:24]FM_GetShiftState [23:56:24]SAM_PROTO_GetShiftState [23:56:24]wFMCommunicate request_size=4 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 13 01 00 [23:56:24]Write to MH i2c: E2 08 00 61 03 80 13 01 00 00 00 00 00 E1 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 0E 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 0E 00 61 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E3 [23:56:24]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:56:24]wFMCommunicate OK [23:56:24]SAM_PROTO_GetShiftState done [23:56:24]FM_GetShiftState done [23:56:24]KKMCreateXReportDocument [23:56:24]Load OK [23:56:24]Malloc new data [23:56:24]MH_GetDate [23:56:24]Write to MH i2c: F0 00 00 62 03 54 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: F0 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: F0 09 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: F0 09 00 62 03 00 2A D3 1E 67 47 1B 1E 67 C6 [23:56:24]Malloc new data [23:56:24]Malloc new data [23:56:24]wFMCommunicate request_size=4 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 11 00 00 [23:56:24]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 17 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 17 00 63 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [23:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:56:24]wFMCommunicate OK [23:56:24]SAM_PROTO_GetFieldsCounters [23:56:24]wFMCommunicate request_size=4 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 13 00 00 [23:56:24]Write to MH i2c: E2 08 00 64 03 80 13 00 00 00 00 00 00 E3 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]OFD Sender: No OFD packet to send [23:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 62 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 62 00 64 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [23:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:24]wFMCommunicate OK [23:56:24]SAM_PROTO_GetFieldsCounters done [23:56:24]Malloc new data [23:56:24]Malloc new data [23:56:24]Malloc new data [23:56:24]KKMCreateXReportDocument OK [23:56:24]KKMSetXReportData OK [23:56:24]KKMPrepareXReportFMData [23:56:24]SAM_PROTO_GetShiftData [23:56:24]wFMCommunicate request_size=4 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 13 02 00 [23:56:24]Write to MH i2c: E2 08 00 65 03 80 13 02 00 00 00 00 00 E6 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 FD 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 FD 00 65 03 00 B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 0A [23:56:25]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [23:56:25]wFMCommunicate OK [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 17 00 00 [23:56:25]Write to MH i2c: E2 08 00 66 03 80 17 00 00 00 00 00 00 E9 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 FD 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 FD 00 66 03 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 02 [23:56:25]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:25]wFMCommunicate OK [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 17 00 00 [23:56:25]Write to MH i2c: E2 08 00 67 03 80 17 00 00 00 00 00 00 EA [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:26]Read from MH i2c: E2 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 67 03 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A3 [23:56:26]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:56:26]wFMCommunicate OK [23:56:26]wFMCommunicate request_size=4 [23:56:26]MH_SAM_APDU [23:56:26]CAPDU: 80 17 00 00 [23:56:26]Write to MH i2c: E2 08 00 68 03 80 17 00 00 00 00 00 00 EB [23:56:26]Write i2c OK [23:56:26]MH_I2C_Read... [23:56:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:26]Read from MH i2c: E2 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 68 03 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 90 00 63 [23:56:26]RAPDU: 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 90 00 [23:56:26]wFMCommunicate OK [23:56:26]wFMCommunicate request_size=4 [23:56:26]MH_SAM_APDU [23:56:26]CAPDU: 80 17 00 00 [23:56:26]Write to MH i2c: E2 08 00 69 03 80 17 00 00 00 00 00 00 EC [23:56:26]Write i2c OK [23:56:26]MH_I2C_Read... [23:56:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:56:27]Read from MH i2c: E2 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 CE 00 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 CE 00 69 03 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D1 [23:56:27]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:27]wFMCommunicate OK [23:56:27]SAM_PROTO_GetShiftData done [23:56:27]1194 (1197) - счетчики итогов смены [23:56:27] 1134 (4) - 490 - количество чеков со всеми признаками расчетов [23:56:27] 1129 (158) - счетчики операций «приход» [23:56:27] 1135 (4) - 490 - количество чеков по признаку расчетов [23:56:27] 1201 (4) - 402692.31 - общая итоговая сумма в чеках [23:56:27] 1136 (4) - 315965.00 - итоговая сумма в чеках наличными [23:56:27] 1138 (3) - 86727.31 - итоговая сумма в чеках безналичными [23:56:27] 1024 (123) - суммы налогов [23:56:27] 1006 (9) - суммы НДС [23:56:27] 1010 (1) - 0% - код ставки НДС [23:56:27] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:27] 1006 (12) - суммы НДС [23:56:27] 1010 (1) - 12% - код ставки НДС [23:56:27] 1011 (3) - 42777.59 - сумма НДС по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 0% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (12) - суммы НСП [23:56:27] 1014 (1) - 1% - код ставки НСП [23:56:27] 1015 (3) - 3564.55 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 2% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 3% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 5% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 0,50% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 1,50% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1130 (141) - счетчики операций «возврат прихода» [23:56:27] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:27] 1024 (117) - суммы налогов [23:56:27] 1006 (9) - суммы НДС [23:56:27] 1010 (1) - 0% - код ставки НДС [23:56:27] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:27] 1006 (9) - суммы НДС [23:56:27] 1010 (1) - 12% - код ставки НДС [23:56:27] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 0% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 1% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 2% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 3% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 5% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 0,50% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 1,50% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1131 (141) - счетчики операций «расход» [23:56:27] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:27] 1024 (117) - суммы налогов [23:56:27] 1006 (9) - суммы НДС [23:56:27] 1010 (1) - 0% - код ставки НДС [23:56:27] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:27] 1006 (9) - суммы НДС [23:56:27] 1010 (1) - 12% - код ставки НДС [23:56:27] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 0% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 1% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 2% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 3% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 5% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 0,50% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 1,50% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1132 (141) - счетчики операций «возврат расхода» [23:56:27] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:27] 1024 (117) - суммы налогов [23:56:27] 1006 (9) - суммы НДС [23:56:27] 1010 (1) - 0% - код ставки НДС [23:56:27] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:27] 1006 (9) - суммы НДС [23:56:27] 1010 (1) - 12% - код ставки НДС [23:56:27] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 0% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 1% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 2% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 3% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 5% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 0,50% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1007 (9) - суммы НСП [23:56:27] 1014 (1) - 1,50% - код ставки НСП [23:56:27] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:27] 1133 (588) - - счетчики коррекции - не используются [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1194 (04AA) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1134 (046E) [23:56:27]Malloc new data [23:56:27]Processing tag 1129 (0469) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1135 (046F) [23:56:27]Malloc new data [23:56:27]Processing tag 1201 (04B1) [23:56:27]Malloc new data [23:56:27]Processing tag 1136 (0470) [23:56:27]Malloc new data [23:56:27]Processing tag 1138 (0472) [23:56:27]Malloc new data [23:56:27]Processing tag 1024 (0400) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1006 (03EE) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1010 (03F2) [23:56:27]Malloc new data [23:56:27]Processing tag 1011 (03F3) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1006 (03EE) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1010 (03F2) [23:56:27]Malloc new data [23:56:27]Processing tag 1011 (03F3) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]SetTLVBufToDocument err=0 [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1130 (046A) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1135 (046F) [23:56:27]Malloc new data [23:56:27]Processing tag 1201 (04B1) [23:56:27]Malloc new data [23:56:27]Processing tag 1136 (0470) [23:56:27]Malloc new data [23:56:27]Processing tag 1138 (0472) [23:56:27]Malloc new data [23:56:27]Processing tag 1024 (0400) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1006 (03EE) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1010 (03F2) [23:56:27]Malloc new data [23:56:27]Processing tag 1011 (03F3) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1006 (03EE) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1010 (03F2) [23:56:27]Malloc new data [23:56:27]Processing tag 1011 (03F3) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]SetTLVBufToDocument err=0 [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1131 (046B) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1135 (046F) [23:56:27]Malloc new data [23:56:27]Processing tag 1201 (04B1) [23:56:27]Malloc new data [23:56:27]Processing tag 1136 (0470) [23:56:27]Malloc new data [23:56:27]Processing tag 1138 (0472) [23:56:27]Malloc new data [23:56:27]Processing tag 1024 (0400) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1006 (03EE) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1010 (03F2) [23:56:27]Malloc new data [23:56:27]Processing tag 1011 (03F3) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1006 (03EE) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1010 (03F2) [23:56:27]Malloc new data [23:56:27]Processing tag 1011 (03F3) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:27]SetTLVBufToDocument [23:56:27]Processing tag 1014 (03F6) [23:56:27]Malloc new data [23:56:27]Processing tag 1015 (03F7) [23:56:27]Malloc new data [23:56:27]SetTLVBufToDocument err=0 [23:56:27]Processing tag 1007 (03EF) [23:56:27]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]SetTLVBufToDocument err=0 [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1132 (046C) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1135 (046F) [23:56:28]Malloc new data [23:56:28]Processing tag 1201 (04B1) [23:56:28]Malloc new data [23:56:28]Processing tag 1136 (0470) [23:56:28]Malloc new data [23:56:28]Processing tag 1138 (0472) [23:56:28]Malloc new data [23:56:28]Processing tag 1024 (0400) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1006 (03EE) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1010 (03F2) [23:56:28]Malloc new data [23:56:28]Processing tag 1011 (03F3) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1006 (03EE) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1010 (03F2) [23:56:28]Malloc new data [23:56:28]Processing tag 1011 (03F3) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1007 (03EF) [23:56:28]Load OK [23:56:28]SetTLVBufToDocument [23:56:28]Processing tag 1014 (03F6) [23:56:28]Malloc new data [23:56:28]Processing tag 1015 (03F7) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]SetTLVBufToDocument err=0 [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Processing tag 1133 (046D) [23:56:28]Malloc new data [23:56:28]SetTLVBufToDocument err=0 [23:56:28]SetTLVBufToDocument err=0 [23:56:28]Malloc new data [23:56:28]SAM_PROTO_GetFMData [23:56:28]wFMCommunicate request_size=4 [23:56:28]MH_SAM_APDU [23:56:28]CAPDU: 80 13 03 00 [23:56:28]Write to MH i2c: E2 08 00 6A 03 80 13 03 00 00 00 00 00 EC [23:56:28]Write i2c OK [23:56:28]MH_I2C_Read... [23:56:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:28]Read from MH i2c: E2 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 6A 03 00 C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 49 [23:56:28]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:56:29]wFMCommunicate OK [23:56:29]wFMCommunicate request_size=4 [23:56:29]MH_SAM_APDU [23:56:29]CAPDU: 80 17 00 00 [23:56:29]Write to MH i2c: E2 08 00 6B 03 80 17 00 00 00 00 00 00 EE [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 FD 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 FD 00 6B 03 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 F5 [23:56:29]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:29]wFMCommunicate OK [23:56:29]wFMCommunicate request_size=4 [23:56:29]MH_SAM_APDU [23:56:29]CAPDU: 80 17 00 00 [23:56:29]Write to MH i2c: E2 08 00 6C 03 80 17 00 00 00 00 00 00 EF [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 FD 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 FD 00 6C 03 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 OFD Sender: No OFD packet to send [23:56:29]03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 04 [23:56:29]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:56:30]wFMCommunicate OK [23:56:30]wFMCommunicate request_size=4 [23:56:30]MH_SAM_APDU [23:56:30]CAPDU: 80 17 00 00 [23:56:30]Write to MH i2c: E2 08 00 6D 03 80 17 00 00 00 00 00 00 F0 [23:56:30]Write i2c OK [23:56:30]MH_I2C_Read... [23:56:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:30]Read from MH i2c: E2 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: E2 FD 00 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: E2 FD 00 6D 03 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [23:56:30]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:30]wFMCommunicate OK [23:56:30]wFMCommunicate request_size=4 [23:56:30]MH_SAM_APDU [23:56:30]CAPDU: 80 17 00 00 [23:56:30]Write to MH i2c: E2 08 00 6E 03 80 17 00 00 00 00 00 00 F1 [23:56:30]Write i2c OK [23:56:30]MH_I2C_Read... [23:56:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:56:30]Read from MH i2c: E2 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: E2 E1 00 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: E2 E1 00 6E 03 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DF [23:56:30]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:31]wFMCommunicate OK [23:56:31]SAM_PROTO_GetFMData done [23:56:31]FM_GetFMData:85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 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 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [23:56:31]oper:6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:56:31]total:99 42 64 AF 03 [23:56:31]Malloc new data [23:56:31]oper:6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 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 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:56:31]total:24 F4 96 [23:56:31]Malloc new data [23:56:31]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 [23:56:31]total: [23:56:31]Malloc new data [23:56:31]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 [23:56:31]total: [23:56:31]Malloc new data [23:56:31]KKMPrepareXReportFMData err=0 [23:56:31]Х отчет ИНН: 02508201610067 Кассир: Аширбеков Н. 27.10.2024 23:56 Смена: 522 РНМ: 0000000000091777 ЗНМ: 0300000109 СНО: Общий режим Всего чеков: 490 ИТОГИ ПРИХОД Чеков: 490 Общий итог: 402692.31 Итого наличными: 315965.00 Итого безнал.: 86727.31 НДС 0% : 0.00 НДС 12% : 42777.59 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3564.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 315965.00 НС Приход: 158274853.37 НС Возвр.Прихода: 98929.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871756 [23:56:31]StoreToDocumentArchive [23:56:31]MH_GetDate [23:56:31]Write to MH i2c: F0 00 00 6F 03 61 [23:56:31]Write i2c OK [23:56:31]MH_I2C_Read... [23:56:31]Read from MH i2c: F0 [23:56:31]MH_I2C_Read... [23:56:31]Read from MH i2c: F0 09 00 [23:56:31]MH_I2C_Read... [23:56:31]Read from MH i2c: F0 09 00 6F 03 00 31 D3 1E 67 47 1B 1E 67 DA [23:56:31]shift 522 fd 1730073393 [23:56:31]Create dir for shift 0522 [23:56:31]save to /storage/0522/doc_1730073393 [23:56:31]save last doc name /storage/0522/doc_1730073393 to /storage/kkm_last_doc_name [23:56:31]save OK [23:56:31]Clear old archive folders... [23:56:31]NVStorageSaveData kkm_last_timestamp [23:56:31]File name is /storage/kkm_last_timestamp [23:56:31]Write 4 bytes [23:56:31]NVStorageSaveData done [23:56:31]ExternCall_PrintAddStr [23:56:31]wPrintStart [23:56:31]Write to MH i2c: 01 00 00 70 03 73 [23:56:32]Write i2c OK [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: 01 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: 01 07 00 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 FF 0F 88 [23:56:32]RasterBufferAndPrint [23:56:32]line Х отчет [23:56:32]line ИНН: 02508201610067 [23:56:32]line Кассир: Аширбеков Н. [23:56:32]line 27.10.2024 23:56 [23:56:32]line Смена: 522 [23:56:32]line РНМ: 0000000000091777 [23:56:32]line ЗНМ: 0300000109 [23:56:32]line СНО: Общий режим [23:56:32]line Всего чеков: 490 [23:56:32]line ИТОГИ ПРИХОД [23:56:32]line Чеков: 490 [23:56:32]line Общий итог: 402692.31 [23:56:32]line Итого наличными: 315965.00 [23:56:32]line Итого безнал.: 86727.31 [23:56:32]line НДС 0% : 0.00 [23:56:32]line НДС 12% : 42777.59 [23:56:32]line НСП 0% : 0.00 [23:56:32]line НСП 1,50% : 0.00 [23:56:32]line НСП 0,50% : 0.00 [23:56:32]line НСП 5% : 0.00 [23:56:32]line НСП 3% : 0.00 [23:56:32]line НСП 2% : 0.00 [23:56:32]line НСП 1% : 3564.55 [23:56:32]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:56:32]line Чеков: 0 [23:56:32]line Общий итог: 0.00 [23:56:32]line Итого наличными: 0.00 [23:56:32]line Итого безнал.: 0.00 [23:56:32]line НДС 0% : 0.00 [23:56:32]line НДС 12% : 0.00 [23:56:32]line НСП 0% : 0.00 [23:56:32]line НСП 1,50% : 0.00 [23:56:32]line НСП 0,50% : 0.00 [23:56:32]line НСП 5% : 0.00 [23:56:32]line НСП 3% : 0.00 [23:56:32]line НСП 2% : 0.00 [23:56:32]line НСП 1% : 0.00 [23:56:32]line ИТОГИ РАСХОД [23:56:32]line Чеков: 0 [23:56:32]line Общий итог: 0.00 [23:56:32]line Итого наличными: 0.00 [23:56:32]line Итого безнал.: 0.00 [23:56:32]line НДС 0% : 0.00 [23:56:32]line НДС 12% : 0.00 [23:56:32]line НСП 0% : 0.00 [23:56:32]line НСП 1,50% : 0.00 [23:56:32]line НСП 0,50% : 0.00 [23:56:32]line НСП 5% : 0.00 [23:56:32]line НСП 3% : 0.00 [23:56:32]line НСП 2% : 0.00 [23:56:32]line НСП 1% : 0.00 [23:56:32]line ИТОГИ ВОЗВРАТ РАСХОДА [23:56:32]line Чеков: 0 [23:56:32]line Общий итог: 0.00 [23:56:32]line Итого наличными: 0.00 [23:56:32]line Итого безнал.: 0.00 [23:56:32]line НДС 0% : 0.00 [23:56:32]line НДС 12% : 0.00 [23:56:32]line НСП 0% : 0.00 [23:56:32]line НСП 1,50% : 0.00 [23:56:32]line НСП 0,50% : 0.00 [23:56:32]line НСП 5% : 0.00 [23:56:32]line НСП 3% : 0.00 [23:56:32]line НСП 2% : 0.00 [23:56:32]line НСП 1% : 0.00 [23:56:32]line Сумма внесений: 0.00 [23:56:32]line Сумма выплат: 0.00 [23:56:32]line Нал. в кассе: 315965.00 [23:56:32]line НС Приход: 158274853.37 [23:56:32]line НС Возвр.Прихода: 98929.00 [23:56:32]line НС Расход: 0.00 [23:56:32]line НС Возвр.Расхода: 0.00 [23:56:32]line ФМ: 0000000000871756 [23:56:32]written 0, free lines is 4095 [23:56:32]Write to MH i2c: 01 00 00 BB 03 BE [23:56:32]Write i2c OK [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: 01 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: 01 07 00 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 49 0A 18 [23:56:32]RasterBufferAndPrint [23:56:32]line [23:56:32]line [23:56:32]line [23:56:32]line [23:56:32]line [23:56:32]written 0, free lines is 2664 [23:56:32]MH_Cut [23:56:32]Write to MH i2c: D1 01 00 C2 03 01 97 [23:56:32]Write i2c OK [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: D1 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: D1 01 00 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: D1 01 00 C2 03 00 96 [23:56:32]Write to MH i2c: 01 00 00 C3 03 C6 [23:56:32]Write i2c OK [23:56:32]MH_I2C_Read... [23:56:34]*** Cut start [23:56:34]*** Purtial cut [23:56:34]*** Stage 1: CUTSNS_PIN = 1 [23:56:34]Read from MH i2c: 01 [23:56:34]MH_I2C_Read... [23:56:34]*** Stop cut motor [23:56:34]*** Cut end [23:56:34]Read from MH i2c: 01 07 00 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 FF 0F DB [23:56:34]process_action x_report done [23:56:34]requested_data is exist [23:56:34]produce_requested_data [23:56:34]requested_item fd.num is exist - process it [23:56:34]SAM_PROTO_GetFieldsCounters [23:56:34]wFMCommunicate request_size=4 [23:56:34]MH_SAM_APDU [23:56:34]CAPDU: 80 13 00 00 [23:56:34]Write to MH i2c: E2 08 00 C4 03 80 13 00 00 00 00 00 00 43 [23:56:34]Write i2c OK [23:56:34]MH_I2C_Read... [23:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:34]Read from MH i2c: E2 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: E2 62 00 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: E2 62 00 C4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [23:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:34]wFMCommunicate OK [23:56:34]SAM_PROTO_GetFieldsCounters done [23:56:34]requested_item shift.num is exist - process it [23:56:34]requested_item shift.opened is exist - process it [23:56:34]req_shift_opened [23:56:34]FM_GetShiftState [23:56:34]SAM_PROTO_GetShiftState [23:56:34]wFMCommunicate request_size=4 [23:56:34]MH_SAM_APDU [23:56:34]CAPDU: 80 13 01 00 [23:56:34]Write to MH i2c: E2 08 00 C5 03 80 13 01 00 00 00 00 00 45 [23:56:34]Write i2c OK [23:56:34]MH_I2C_Read... [23:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:34]Read from MH i2c: E2 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: E2 0E 00 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: E2 0E 00 C5 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 47 [23:56:34]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:56:34]wFMCommunicate OK [23:56:34]SAM_PROTO_GetShiftState done [23:56:34]FM_GetShiftState done [23:56:34]req_shift_opened done [23:56:34]requested_item shift.open_date is exist - process it [23:56:34]req_shift_open_date [23:56:34]req_shift_open_date done [23:56:34]produce_requested_data done [23:56:34]produce_requested_data return {"fd.num":202198,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [23:56:34]process_action_free x_report [23:56:34]json_value_free [23:56:34]json_value_free done [23:56:34]process_json_proto returns [23:56:34]Send response to host [23:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":202198,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [23:56:34]free response buf [23:56:34]execute_script done [23:56:34]execute_script returns [23:56:34]free content buf [23:56:34]Sock 9.Close socket [23:56:34]Sock 9.Thread stoped [23:56:34]OFD Sender: No OFD packet to send [23:56:37]accept exits with 7 [23:56:37]New connection [23:56:37]New thread 3067280740 created [23:56:37]Thread 3067424100 joined [23:56:37]Waiting for new connection... [23:56:37] Sock 7.Parse request [23:56:37]Sock 7.Check first char [23:56:37]Sock 7.First char is OK [23:56:37]request: POST /json_proto HTTP/1.0 [23:56:37]Method: POST [23:56:37]URL: /json_proto [23:56:37]Method is POST - this is cgi request [23:56:37]url: /json_proto [23:56:37]query_string will be loaded in cgi processing [23:56:37]execute_cgi json_proto POST (null) [23:56:37]execute_cgi path=json_proto method=POST [23:56:37]POST find Content-Length [23:56:37]Host: 172.17.63.195:8080 [23:56:37]Content-Length: 215 [23:56:37]Content-Type: application/json [23:56:37] [23:56:37]POST finish read [23:56:37]Found Content-Length = 215 [23:56:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:37]execute_script... [23:56:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:37]POST & json_proto [23:56:37]process_json_proto [23:56:37]json parsed OK: [23:56:37]protocol is kg_v1.0 [23:56:37]action value=get_value [23:56:37]process_action get_value [23:56:37]cmd_get_value [23:56:37]process_action get_value done [23:56:37]requested_data is exist [23:56:37]produce_requested_data [23:56:37]requested_item kkm.sn is exist - process it [23:56:37]requested_item kkm.ver is exist - process it [23:56:37]requested_item fm.sn is exist - process it [23:56:37]wFMCommunicate request_size=4 [23:56:37]MH_SAM_APDU [23:56:37]CAPDU: 80 11 00 00 [23:56:37]Write to MH i2c: E2 08 00 C6 03 80 11 00 00 00 00 00 00 43 [23:56:37]Write i2c OK [23:56:37]MH_I2C_Read... [23:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:38]Read from MH i2c: E2 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 17 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 17 00 C6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 98 [23:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:56:38]wFMCommunicate OK [23:56:38]requested_item fd.num is exist - process it [23:56:38]SAM_PROTO_GetFieldsCounters [23:56:38]wFMCommunicate request_size=4 [23:56:38]MH_SAM_APDU [23:56:38]CAPDU: 80 13 00 00 [23:56:38]Write to MH i2c: E2 08 00 C7 03 80 13 00 00 00 00 00 00 46 [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:38]Read from MH i2c: E2 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 62 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 62 00 C7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [23:56:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:38]wFMCommunicate OK [23:56:38]SAM_PROTO_GetFieldsCounters done [23:56:38]requested_item shift.num is exist - process it [23:56:38]requested_item shift.opened is exist - process it [23:56:38]req_shift_opened [23:56:38]FM_GetShiftState [23:56:38]SAM_PROTO_GetShiftState [23:56:38]wFMCommunicate request_size=4 [23:56:38]MH_SAM_APDU [23:56:38]CAPDU: 80 13 01 00 [23:56:38]Write to MH i2c: E2 08 00 C8 03 80 13 01 00 00 00 00 00 48 [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:38]Read from MH i2c: E2 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 0E 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 0E 00 C8 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4A [23:56:38]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:56:38]wFMCommunicate OK [23:56:38]SAM_PROTO_GetShiftState done [23:56:38]FM_GetShiftState done [23:56:38]req_shift_opened done [23:56:38]requested_item shift.open_date is exist - process it [23:56:38]req_shift_open_date [23:56:38]req_shift_open_date done [23:56:38]produce_requested_data done [23:56:38]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202198,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [23:56:38]process_action_free get_value [23:56:38]json_value_free [23:56:38]json_value_free done [23:56:38]process_json_proto returns [23:56:38]Send response to host [23:56:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202198,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [23:56:38]free response buf [23:56:38]execute_script done [23:56:38]execute_script returns [23:56:38]free content buf [23:56:38]Sock 7.Close socket [23:56:38]Sock 7.Thread stoped [23:56:38]accept exits with 9 [23:56:38]New connection [23:56:38]New thread 3067424100 created [23:56:38]Thread 3067280740 joined [23:56:38]Waiting for new connection... [23:56:38] Sock 9.Parse request [23:56:38]Sock 9.Check first char [23:56:38]Sock 9.First char is OK [23:56:38]request: POST /json_proto HTTP/1.0 [23:56:38]Method: POST [23:56:38]URL: /json_proto [23:56:38]Method is POST - this is cgi request [23:56:38]url: /json_proto [23:56:38]query_string will be loaded in cgi processing [23:56:38]execute_cgi json_proto POST (null) [23:56:38]execute_cgi path=json_proto method=POST [23:56:38]POST find Content-Length [23:56:38]Host: 172.17.63.195:8080 [23:56:38]Content-Length: 331 [23:56:38]Content-Type: application/json [23:56:38] [23:56:38]POST finish read [23:56:38]Found Content-Length = 331 [23:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:38]execute_script... [23:56:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:38]POST & json_proto [23:56:38]process_json_proto [23:56:38]json parsed OK: [23:56:38]protocol is kg_v1.0 [23:56:38]action value=get_value [23:56:38]process_action get_value [23:56:38]cmd_get_value [23:56:38]process_action get_value done [23:56:38]requested_data is exist [23:56:38]produce_requested_data [23:56:38]requested_item fm.sale.total is exist - process it [23:56:38]SAM_PROTO_GetFMData [23:56:38]wFMCommunicate request_size=4 [23:56:38]MH_SAM_APDU [23:56:38]CAPDU: 80 13 03 00 [23:56:38]Write to MH i2c: E2 08 00 C9 03 80 13 03 00 00 00 00 00 4B [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:38]Read from MH i2c: E2 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 FD 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 FD 00 C9 03 00 C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 A8 [23:56:39]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:56:39]wFMCommunicate OK [23:56:39]wFMCommunicate request_size=4 [23:56:39]MH_SAM_APDU [23:56:39]CAPDU: 80 17 00 00 [23:56:39]Write to MH i2c: E2 08 00 CA 03 80 17 00 00 00 00 00 00 4D [23:56:39]Write i2c OK [23:56:39]MH_I2C_Read... [23:56:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:39]Read from MH i2c: E2 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 FD 00 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 FD 00 CA 03 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 54 [23:56:39]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:39]wFMCommunicate OK [23:56:39]wFMCommunicate request_size=4 [23:56:39]MH_SAM_APDU [23:56:39]CAPDU: 80 17 00 00 [23:56:39]Write to MH i2c: E2 08 00 CB 03 80 17 00 00 00 00 00 00 4E [23:56:39]Write i2c OK [23:56:39]MH_I2C_Read... [23:56:39]OFD Sender: No OFD packet to send [23:56:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 FD 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 FD 00 CB 03 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 63 [23:56:40]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:56:40]wFMCommunicate OK [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 17 00 00 [23:56:40]Write to MH i2c: E2 08 00 CC 03 80 17 00 00 00 00 00 00 4F [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 FD 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 FD 00 CC 03 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [23:56:40]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:40]wFMCommunicate OK [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 17 00 00 [23:56:40]Write to MH i2c: E2 08 00 CD 03 80 17 00 00 00 00 00 00 50 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:56:41]Read from MH i2c: E2 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 E1 00 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 E1 00 CD 03 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3E [23:56:41]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:41]wFMCommunicate OK [23:56:41]SAM_PROTO_GetFMData done [23:56:41]requested_item fm.sale_refund.total is exist - process it [23:56:41]requested_item fm.buy.total is exist - process it [23:56:41]requested_item shift.sale.total is exist - process it [23:56:41]SAM_PROTO_GetShiftData [23:56:41]wFMCommunicate request_size=4 [23:56:41]MH_SAM_APDU [23:56:41]CAPDU: 80 13 02 00 [23:56:41]Write to MH i2c: E2 08 00 CE 03 80 13 02 00 00 00 00 00 4F [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:41]Read from MH i2c: E2 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 FD 00 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 FD 00 CE 03 00 B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 73 [23:56:41]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [23:56:42]wFMCommunicate OK [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 17 00 00 [23:56:42]Write to MH i2c: E2 08 00 CF 03 80 17 00 00 00 00 00 00 52 [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 CF 03 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 6B [23:56:42]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:42]wFMCommunicate OK [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 17 00 00 [23:56:42]Write to MH i2c: E2 08 00 D0 03 80 17 00 00 00 00 00 00 53 [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 D0 03 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0C [23:56:43]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:56:43]wFMCommunicate OK [23:56:43]wFMCommunicate request_size=4 [23:56:43]MH_SAM_APDU [23:56:43]CAPDU: 80 17 00 00 [23:56:43]Write to MH i2c: E2 08 00 D1 03 80 17 00 00 00 00 00 00 54 [23:56:43]Write i2c OK [23:56:43]MH_I2C_Read... [23:56:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:43]Read from MH i2c: E2 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 FD 00 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 FD 00 D1 03 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 90 00 CC [23:56:43]RAPDU: 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 90 00 [23:56:43]wFMCommunicate OK [23:56:43]wFMCommunicate request_size=4 [23:56:43]MH_SAM_APDU [23:56:43]CAPDU: 80 17 00 00 [23:56:43]Write to MH i2c: E2 08 00 D2 03 80 17 00 00 00 00 00 00 55 [23:56:43]Write i2c OK [23:56:43]MH_I2C_Read... [23:56:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:56:44]Read from MH i2c: E2 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 CE 00 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 CE 00 D2 03 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3A [23:56:44]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:44]wFMCommunicate OK [23:56:44]SAM_PROTO_GetShiftData done [23:56:44]requested_item shift.sale.total_cash is exist - process it [23:56:44]requested_item shift.sale_refund.total is exist - process it [23:56:44]requested_item shift.sale_refund.total_cash is exist - process it [23:56:44]requested_item shift.buy.total is exist - process it [23:56:44]requested_item shift.buy.total_cash is exist - process it [23:56:44]produce_requested_data done [23:56:44]produce_requested_data return {"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.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} [23:56:44]process_action_free get_value [23:56:44]json_value_free [23:56:44]json_value_free done [23:56:44]process_json_proto returns [23:56:44]Send response to host [23:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.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}}} [23:56:44]free response buf [23:56:44]execute_script done [23:56:44]execute_script returns [23:56:44]free content buf [23:56:44]Sock 9.Close socket [23:56:44]Sock 9.Thread stoped [23:56:44]accept exits with 7 [23:56:44]New connection [23:56:44]New thread 3067280740 created [23:56:44]Thread 3067424100 joined [23:56:44]Waiting for new connection... [23:56:44] Sock 7.Parse request [23:56:44]Sock 7.Check first char [23:56:44]Sock 7.First char is OK [23:56:44]request: POST /json_proto HTTP/1.0 [23:56:44]Method: POST [23:56:44]URL: /json_proto [23:56:44]Method is POST - this is cgi request [23:56:44]url: /json_proto [23:56:44]query_string will be loaded in cgi processing [23:56:44]execute_cgi json_proto POST (null) [23:56:44]execute_cgi path=json_proto method=POST [23:56:44]POST find Content-Length [23:56:44]Host: 172.17.63.195:8080 [23:56:44]Content-Length: 331 [23:56:44]Content-Type: application/json [23:56:44] [23:56:44]POST finish read [23:56:44]Found Content-Length = 331 [23:56:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:44]execute_script... [23:56:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:44]POST & json_proto [23:56:44]process_json_proto [23:56:44]json parsed OK: [23:56:44]protocol is kg_v1.0 [23:56:44]action value=get_value [23:56:44]process_action get_value [23:56:44]cmd_get_value [23:56:44]process_action get_value done [23:56:44]requested_data is exist [23:56:44]produce_requested_data [23:56:44]requested_item fm.sale.total is exist - process it [23:56:44]SAM_PROTO_GetFMData [23:56:44]wFMCommunicate request_size=4 [23:56:44]MH_SAM_APDU [23:56:44]CAPDU: 80 13 03 00 [23:56:44]Write to MH i2c: E2 08 00 D3 03 80 13 03 00 00 00 00 00 55 [23:56:44]Write i2c OK [23:56:44]MH_I2C_Read... [23:56:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:44]Read from MH i2c: E2 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 FD 00 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 FD 00 D3 03 00 C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 B2 [23:56:45]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 OFD Sender: No OFD packet to send [23:56:45]F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:56:45]wFMCommunicate OK [23:56:45]wFMCommunicate request_size=4 [23:56:45]MH_SAM_APDU [23:56:45]CAPDU: 80 17 00 00 [23:56:45]Write to MH i2c: E2 08 00 D4 03 80 17 00 00 00 00 00 00 57 [23:56:45]Write i2c OK [23:56:45]MH_I2C_Read... [23:56:45]Read from MH i2c: E2 [23:56:45]MH_I2C_Read... [23:56:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:45]Read from MH i2c: E2 FD 00 [23:56:45]MH_I2C_Read... [23:56:45]Read from MH i2c: E2 FD 00 D4 03 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 5E [23:56:45]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:45]wFMCommunicate OK [23:56:45]wFMCommunicate request_size=4 [23:56:45]MH_SAM_APDU [23:56:45]CAPDU: 80 17 00 00 [23:56:45]Write to MH i2c: E2 08 00 D5 03 80 17 00 00 00 00 00 00 58 [23:56:45]Write i2c OK [23:56:45]MH_I2C_Read... [23:56:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:46]Read from MH i2c: E2 [23:56:46]MH_I2C_Read... [23:56:46]Read from MH i2c: E2 FD 00 [23:56:46]MH_I2C_Read... [23:56:46]Read from MH i2c: E2 FD 00 D5 03 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 6D [23:56:46]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:56:46]wFMCommunicate OK [23:56:46]wFMCommunicate request_size=4 [23:56:46]MH_SAM_APDU [23:56:46]CAPDU: 80 17 00 00 [23:56:46]Write to MH i2c: E2 08 00 D6 03 80 17 00 00 00 00 00 00 59 [23:56:46]Write i2c OK [23:56:46]MH_I2C_Read... [23:56:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:46]Read from MH i2c: E2 [23:56:46]MH_I2C_Read... [23:56:46]Read from MH i2c: E2 FD 00 [23:56:46]MH_I2C_Read... [23:56:46]Read from MH i2c: E2 FD 00 D6 03 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D1 [23:56:46]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:47]wFMCommunicate OK [23:56:47]wFMCommunicate request_size=4 [23:56:47]MH_SAM_APDU [23:56:47]CAPDU: 80 17 00 00 [23:56:47]Write to MH i2c: E2 08 00 D7 03 80 17 00 00 00 00 00 00 5A [23:56:47]Write i2c OK [23:56:47]MH_I2C_Read... [23:56:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:56:47]Read from MH i2c: E2 [23:56:47]MH_I2C_Read... [23:56:47]Read from MH i2c: E2 E1 00 [23:56:47]MH_I2C_Read... [23:56:47]Read from MH i2c: E2 E1 00 D7 03 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 48 [23:56:47]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:47]wFMCommunicate OK [23:56:47]SAM_PROTO_GetFMData done [23:56:47]requested_item fm.sale_refund.total is exist - process it [23:56:47]requested_item fm.buy.total is exist - process it [23:56:47]requested_item shift.sale.total is exist - process it [23:56:47]SAM_PROTO_GetShiftData [23:56:47]wFMCommunicate request_size=4 [23:56:47]MH_SAM_APDU [23:56:47]CAPDU: 80 13 02 00 [23:56:47]Write to MH i2c: E2 08 00 D8 03 80 13 02 00 00 00 00 00 59 [23:56:47]Write i2c OK [23:56:47]MH_I2C_Read... [23:56:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:48]Read from MH i2c: E2 [23:56:48]MH_I2C_Read... [23:56:48]Read from MH i2c: E2 FD 00 [23:56:48]MH_I2C_Read... [23:56:48]Read from MH i2c: E2 FD 00 D8 03 00 B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 7D [23:56:48]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [23:56:48]wFMCommunicate OK [23:56:48]wFMCommunicate request_size=4 [23:56:48]MH_SAM_APDU [23:56:48]CAPDU: 80 17 00 00 [23:56:48]Write to MH i2c: E2 08 00 D9 03 80 17 00 00 00 00 00 00 5C [23:56:48]Write i2c OK [23:56:48]MH_I2C_Read... [23:56:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:48]Read from MH i2c: E2 [23:56:48]MH_I2C_Read... [23:56:48]Read from MH i2c: E2 FD 00 [23:56:48]MH_I2C_Read... [23:56:48]Read from MH i2c: E2 FD 00 D9 03 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 75 [23:56: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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:49]wFMCommunicate OK [23:56:49]wFMCommunicate request_size=4 [23:56:49]MH_SAM_APDU [23:56:49]CAPDU: 80 17 00 00 [23:56:49]Write to MH i2c: E2 08 00 DA 03 80 17 00 00 00 00 00 00 5D [23:56:49]Write i2c OK [23:56:49]MH_I2C_Read... [23:56:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:49]Read from MH i2c: E2 [23:56:49]MH_I2C_Read... [23:56:49]Read from MH i2c: E2 FD 00 [23:56:49]MH_I2C_Read... [23:56:49]Read from MH i2c: E2 FD 00 DA 03 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 16 [23:56:49]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:56:49]wFMCommunicate OK [23:56:49]wFMCommunicate request_size=4 [23:56:49]MH_SAM_APDU [23:56:49]CAPDU: 80 17 00 00 [23:56:49]Write to MH i2c: E2 08 00 DB 03 80 17 00 00 00 00 00 00 5E [23:56:49]Write i2c OK [23:56:49]MH_I2C_Read... [23:56:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:50]Read from MH i2c: E2 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 FD 00 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 FD 00 DB 03 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 90 00 D6 [23:56:50]RAPDU: 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 OFD Sender: No OFD packet to send [23:56:50]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:56:50]wFMCommunicate OK [23:56:50]wFMCommunicate request_size=4 [23:56:50]MH_SAM_APDU [23:56:50]CAPDU: 80 17 00 00 [23:56:50]Write to MH i2c: E2 08 00 DC 03 80 17 00 00 00 00 00 00 5F [23:56:50]Write i2c OK [23:56:50]MH_I2C_Read... [23:56:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:56:50]Read from MH i2c: E2 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 CE 00 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 CE 00 DC 03 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 44 [23:56:50]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:51]wFMCommunicate OK [23:56:51]SAM_PROTO_GetShiftData done [23:56:51]requested_item shift.sale.total_cash is exist - process it [23:56:51]requested_item shift.sale_refund.total is exist - process it [23:56:51]requested_item shift.sale_refund.total_cash is exist - process it [23:56:51]requested_item shift.buy.total is exist - process it [23:56:51]requested_item shift.buy.total_cash is exist - process it [23:56:51]produce_requested_data done [23:56:51]produce_requested_data return {"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.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} [23:56:51]process_action_free get_value [23:56:51]json_value_free [23:56:51]json_value_free done [23:56:51]process_json_proto returns [23:56:51]Send response to host [23:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.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}}} [23:56:51]free response buf [23:56:51]execute_script done [23:56:51]execute_script returns [23:56:51]free content buf [23:56:51]Sock 7.Close socket [23:56:51]Sock 7.Thread stoped [23:56:51]accept exits with 9 [23:56:51]New connection [23:56:51]New thread 3067424100 created [23:56:51]Thread 3067280740 joined [23:56:51]Waiting for new connection... [23:56:51] Sock 9.Parse request [23:56:51]Sock 9.Check first char [23:56:51]Sock 9.First char is OK [23:56:51]request: POST /json_proto HTTP/1.0 [23:56:51]Method: POST [23:56:51]URL: /json_proto [23:56:51]Method is POST - this is cgi request [23:56:51]url: /json_proto [23:56:51]query_string will be loaded in cgi processing [23:56:51]execute_cgi json_proto POST (null) [23:56:51]execute_cgi path=json_proto method=POST [23:56:51]POST find Content-Length [23:56:51]Host: 172.17.63.195:8080 [23:56:51]Content-Length: 266 [23:56:51]Content-Type: application/json [23:56:51] [23:56:51]POST finish read [23:56:51]Found Content-Length = 266 [23:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0448\u0438\u0440\u0431\u0435\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:51]execute_script... [23:56:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0448\u0438\u0440\u0431\u0435\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:51]POST & json_proto [23:56:51]process_json_proto [23:56:51]json parsed OK: [23:56:51]protocol is kg_v1.0 [23:56:51]action value=close_shift [23:56:51]process_action close_shift [23:56:51]cmd_close_shift [23:56:51]MH_GetDate [23:56:51]Write to MH i2c: F0 00 00 DD 03 CF [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 09 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 09 00 DD 03 00 44 D3 1E 67 47 1B 1E 67 5B [23:56:51]GetLastDocTimeStamp 1730073386 [23:56:51]current date 1730073412 [23:56:51]FM_GetShiftState [23:56:51]SAM_PROTO_GetShiftState [23:56:51]wFMCommunicate request_size=4 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 13 01 00 [23:56:51]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 0E 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 60 [23:56:51]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [23:56:51]wFMCommunicate OK [23:56:51]SAM_PROTO_GetShiftState done [23:56:51]FM_GetShiftState done [23:56:51]KKMCreateCloseShiftDocument [23:56:51]Load OK [23:56:51]Malloc new data [23:56:51]MH_GetDate [23:56:51]Write to MH i2c: F0 00 00 DF 03 D1 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 09 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 09 00 DF 03 00 44 D3 1E 67 47 1B 1E 67 5D [23:56:51]Malloc new data [23:56:51]Malloc new data [23:56:51]Malloc new data [23:56:51]Malloc new data [23:56:51]KKMCreateCloseShiftDocument OK [23:56:51]KKMSetCloseShiftData OK [23:56:51]ProcessDocumentItem done err = 0, tmpTLVsize=73 [23:56:51]tlvbuf is 00D26E10 [23:56:51]KKMLoadAndSignCloseShiftData [23:56:51]SAM_PROTO_ProcessDocument [23:56:51]wFMCommunicate request_size=9 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 15 01 00 04 05 00 49 00 [23:56:51]Write to MH i2c: E2 0C 00 E0 03 80 15 01 00 04 00 05 00 49 00 00 00 B8 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [23:56:51]RAPDU: 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=23 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:56:51]Write to MH i2c: E2 1A 00 E1 03 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 59 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [23:56:51]RAPDU: 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=32 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 [23:56:51]Write to MH i2c: E2 23 00 E2 03 80 15 02 00 1B 00 FD 03 17 00 D0 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 00 00 BF [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [23:56:51]RAPDU: 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=13 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 15 02 00 08 F4 03 04 00 44 D3 1E 67 [23:56:51]Write to MH i2c: E2 10 00 E3 03 80 15 02 00 08 00 F4 03 04 00 44 D3 1E 67 00 00 0D [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [23:56:51]RAPDU: 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=25 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [23:56:51]Write to MH i2c: E2 1C 00 E4 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 CF [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [23:56:51]RAPDU: 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=4 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 15 03 00 [23:56:51]Write to MH i2c: E2 08 00 E5 03 80 15 03 00 00 00 00 00 69 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 FD 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 FD 00 E5 03 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 15 03 00 0E 04 04 00 20 02 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 0B [23:56:52]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 15 03 00 0E 04 04 00 20 02 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [23:56:52]wFMCommunicate OK [23:56:52]SAM_PROTO_ProcessDocument answer len = 1268 [23:56:52]SAM_PROTO_ProcessDocument remain to read = 1020 [23:56:52]wFMCommunicate request_size=4 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 17 00 00 [23:56:52]Write to MH i2c: E2 08 00 E6 03 80 17 00 00 00 00 00 00 69 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:53]Read from MH i2c: E2 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 FD 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 FD 00 E6 03 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 BD [23:56:53]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [23:56:53]wFMCommunicate OK [23:56:53]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:53]SAM_PROTO_ProcessDocument remain to read = 770 [23:56:53]wFMCommunicate request_size=4 [23:56:53]MH_SAM_APDU [23:56:53]CAPDU: 80 17 00 00 [23:56:53]Write to MH i2c: E2 08 00 E7 03 80 17 00 00 00 00 00 00 6A [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:53]Read from MH i2c: E2 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 FD 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 FD 00 E7 03 00 00 F6 03 01 00 05 F7 03 00 00 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 90 00 CC [23:56:53]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:54]wFMCommunicate OK [23:56:54]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:54]SAM_PROTO_ProcessDocument remain to read = 520 [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 17 00 00 [23:56:54]Write to MH i2c: E2 08 00 E8 03 80 17 00 00 00 00 00 00 6B [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 FD 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 FD 00 E8 03 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F3 [23:56:54]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:54]wFMCommunicate OK [23:56:54]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:54]SAM_PROTO_ProcessDocument remain to read = 270 [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 17 00 00 [23:56:54]Write to MH i2c: E2 08 00 E9 03 80 17 00 00 00 00 00 00 6C [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:55]Read from MH i2c: E2 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 FD 00 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 FD 00 E9 03 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 36 [23:56:55]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 OFD Sender: No OFD packet to send [23:56:55]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [23:56:55]wFMCommunicate OK [23:56:55]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:55]SAM_PROTO_ProcessDocument remain to read = 20 [23:56:55]wFMCommunicate request_size=4 [23:56:55]MH_SAM_APDU [23:56:55]CAPDU: 80 17 00 00 [23:56:55]Write to MH i2c: E2 08 00 EA 03 80 17 00 00 00 00 00 00 6D [23:56:55]Write i2c OK [23:56:55]MH_I2C_Read... [23:56:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [23:56:55]Read from MH i2c: E2 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 17 00 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 17 00 EA 03 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 22 99 31 55 AC 41 90 00 DC [23:56:55]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 22 99 31 55 AC 41 90 00 [23:56:55]wFMCommunicate OK [23:56:55]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [23:56:55]SAM_PROTO_ProcessDocument done [23:56:55]1209 (1) - 1.0 - номер версии ФФД [23:56:55]1041 (16) - 0000000000871756 - номер ФМ [23:56:55]1040 (4) - 202199 - номер ФД [23:56:55]1038 (4) - 544 - номер смены [23:56:55]1118 (4) - 490 - количество кассовых чеков за смену [23:56:55]1111 (4) - 492 - общее количество ФД за смену [23:56:55]1194 (1197) - счетчики итогов смены [23:56:55] 1134 (4) - 490 - количество чеков со всеми признаками расчетов [23:56:55] 1129 (158) - счетчики операций «приход» [23:56:55] 1135 (4) - 490 - количество чеков по признаку расчетов [23:56:55] 1201 (4) - 402692.31 - общая итоговая сумма в чеках [23:56:55] 1136 (4) - 315965.00 - итоговая сумма в чеках наличными [23:56:55] 1138 (3) - 86727.31 - итоговая сумма в чеках безналичными [23:56:55] 1024 (123) - суммы налогов [23:56:55] 1006 (9) - суммы НДС [23:56:55] 1010 (1) - 0% - код ставки НДС [23:56:55] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:55] 1006 (12) - суммы НДС [23:56:55] 1010 (1) - 12% - код ставки НДС [23:56:55] 1011 (3) - 42777.59 - сумма НДС по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:55] 1014 (1) - 0% - код ставки НСП [23:56:55] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:55] 1007 (12) - суммы НСП [23:56:55] 1014 (1) - 1% - код ставки НСП [23:56:55] 1015 (3) - 3564.55 - сумма НСП по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:55] 1014 (1) - 2% - код ставки НСП [23:56:55] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:55] 1014 (1) - 3% - код ставки НСП [23:56:55] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:55] 1014 (1) - 5% - код ставки НСП [23:56:55] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:55] 1014 (1) - 0,50% - код ставки НСП [23:56:55] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:55] 1014 (1) - 1,50% - код ставки НСП [23:56:55] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:55] 1130 (141) - счетчики операций «возврат прихода» [23:56:55] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:55] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:55] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:55] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:55] 1024 (117) - суммы налогов [23:56:55] 1006 (9) - суммы НДС [23:56:55] 1010 (1) - 0% - код ставки НДС [23:56:55] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:55] 1006 (9) - суммы НДС [23:56:55] 1010 (1) - 12% - код ставки НДС [23:56:55] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:55] 1014 (1) - 0% - код ставки НСП [23:56:55] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:55] 1014 (1) - 1% - код ставки НСП [23:56:55] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:55] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 2% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 3% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 5% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 0,50% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 1,50% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1131 (141) - счетчики операций «расход» [23:56:56] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:56] 1024 (117) - суммы налогов [23:56:56] 1006 (9) - суммы НДС [23:56:56] 1010 (1) - 0% - код ставки НДС [23:56:56] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:56] 1006 (9) - суммы НДС [23:56:56] 1010 (1) - 12% - код ставки НДС [23:56:56] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 0% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 1% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 2% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 3% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 5% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 0,50% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 1,50% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1132 (141) - счетчики операций «возврат расхода» [23:56:56] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:56] 1024 (117) - суммы налогов [23:56:56] 1006 (9) - суммы НДС [23:56:56] 1010 (1) - 0% - код ставки НДС [23:56:56] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:56] 1006 (9) - суммы НДС [23:56:56] 1010 (1) - 12% - код ставки НДС [23:56:56] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 0% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 1% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 2% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 3% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 5% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 0,50% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1007 (9) - суммы НСП [23:56:56] 1014 (1) - 1,50% - код ставки НСП [23:56:56] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:56] 1133 (588) - - счетчики коррекции - не используются [23:56:56]1077 (6) - 38041353038913 - ФПД [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1209 (04B9) [23:56:56]Malloc new data [23:56:56]Processing tag 1041 (0411) [23:56:56]Processing tag 1040 (0410) [23:56:56]Malloc new data [23:56:56]Processing tag 1038 (040E) [23:56:56]Malloc new data [23:56:56]Processing tag 1118 (045E) [23:56:56]Malloc new data [23:56:56]Processing tag 1111 (0457) [23:56:56]Malloc new data [23:56:56]Processing tag 1194 (04AA) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1134 (046E) [23:56:56]Malloc new data [23:56:56]Processing tag 1129 (0469) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1135 (046F) [23:56:56]Malloc new data [23:56:56]Processing tag 1201 (04B1) [23:56:56]Malloc new data [23:56:56]Processing tag 1136 (0470) [23:56:56]Malloc new data [23:56:56]Processing tag 1138 (0472) [23:56:56]Malloc new data [23:56:56]Processing tag 1024 (0400) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1006 (03EE) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1010 (03F2) [23:56:56]Malloc new data [23:56:56]Processing tag 1011 (03F3) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1006 (03EE) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1010 (03F2) [23:56:56]Malloc new data [23:56:56]Processing tag 1011 (03F3) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]SetTLVBufToDocument err=0 [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1130 (046A) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1135 (046F) [23:56:56]Malloc new data [23:56:56]Processing tag 1201 (04B1) [23:56:56]Malloc new data [23:56:56]Processing tag 1136 (0470) [23:56:56]Malloc new data [23:56:56]Processing tag 1138 (0472) [23:56:56]Malloc new data [23:56:56]Processing tag 1024 (0400) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1006 (03EE) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1010 (03F2) [23:56:56]Malloc new data [23:56:56]Processing tag 1011 (03F3) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1006 (03EE) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1010 (03F2) [23:56:56]Malloc new data [23:56:56]Processing tag 1011 (03F3) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]SetTLVBufToDocument err=0 [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1131 (046B) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1135 (046F) [23:56:56]Malloc new data [23:56:56]Processing tag 1201 (04B1) [23:56:56]Malloc new data [23:56:56]Processing tag 1136 (0470) [23:56:56]Malloc new data [23:56:56]Processing tag 1138 (0472) [23:56:56]Malloc new data [23:56:56]Processing tag 1024 (0400) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1006 (03EE) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1010 (03F2) [23:56:56]Malloc new data [23:56:56]Processing tag 1011 (03F3) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1006 (03EE) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1010 (03F2) [23:56:56]Malloc new data [23:56:56]Processing tag 1011 (03F3) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]SetTLVBufToDocument err=0 [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1132 (046C) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1135 (046F) [23:56:56]Malloc new data [23:56:56]Processing tag 1201 (04B1) [23:56:56]Malloc new data [23:56:56]Processing tag 1136 (0470) [23:56:56]Malloc new data [23:56:56]Processing tag 1138 (0472) [23:56:56]Malloc new data [23:56:56]Processing tag 1024 (0400) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1006 (03EE) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1010 (03F2) [23:56:56]Malloc new data [23:56:56]Processing tag 1011 (03F3) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1006 (03EE) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1010 (03F2) [23:56:56]Malloc new data [23:56:56]Processing tag 1011 (03F3) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:56]SetTLVBufToDocument [23:56:56]Processing tag 1014 (03F6) [23:56:56]Malloc new data [23:56:56]Processing tag 1015 (03F7) [23:56:56]Malloc new data [23:56:56]SetTLVBufToDocument err=0 [23:56:56]Processing tag 1007 (03EF) [23:56:56]Load OK [23:56:57]SetTLVBufToDocument [23:56:57]Processing tag 1014 (03F6) [23:56:57]Malloc new data [23:56:57]Processing tag 1015 (03F7) [23:56:57]Malloc new data [23:56:57]SetTLVBufToDocument err=0 [23:56:57]Processing tag 1007 (03EF) [23:56:57]Load OK [23:56:57]SetTLVBufToDocument [23:56:57]Processing tag 1014 (03F6) [23:56:57]Malloc new data [23:56:57]Processing tag 1015 (03F7) [23:56:57]Malloc new data [23:56:57]SetTLVBufToDocument err=0 [23:56:57]SetTLVBufToDocument err=0 [23:56:57]SetTLVBufToDocument err=0 [23:56:57]Processing tag 1133 (046D) [23:56:57]Malloc new data [23:56:57]SetTLVBufToDocument err=0 [23:56:57]Processing tag 1077 (0435) [23:56:57]Malloc new data [23:56:57]SetTLVBufToDocument err=0 [23:56:57]Malloc new data [23:56:57]SAM_PROTO_GetFMData [23:56:57]wFMCommunicate request_size=4 [23:56:57]MH_SAM_APDU [23:56:57]CAPDU: 80 13 03 00 [23:56:57]Write to MH i2c: E2 08 00 EB 03 80 13 03 00 00 00 00 00 6D [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:57]Read from MH i2c: E2 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 EB 03 00 C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 CA [23:56:57]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:56:57]wFMCommunicate OK [23:56:57]wFMCommunicate request_size=4 [23:56:57]MH_SAM_APDU [23:56:57]CAPDU: 80 17 00 00 [23:56:57]Write to MH i2c: E2 08 00 EC 03 80 17 00 00 00 00 00 00 6F [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:58]Read from MH i2c: E2 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 FD 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 FD 00 EC 03 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 76 [23:56:58]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:56:58]wFMCommunicate OK [23:56:58]wFMCommunicate request_size=4 [23:56:58]MH_SAM_APDU [23:56:58]CAPDU: 80 17 00 00 [23:56:58]Write to MH i2c: E2 08 00 ED 03 80 17 00 00 00 00 00 00 70 [23:56:58]Write i2c OK [23:56:58]MH_I2C_Read... [23:56:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:58]Read from MH i2c: E2 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 FD 00 [23:56:58]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 ED 03 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 85 [23:56:59]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:56:59]wFMCommunicate OK [23:56:59]wFMCommunicate request_size=4 [23:56:59]MH_SAM_APDU [23:56:59]CAPDU: 80 17 00 00 [23:56:59]Write to MH i2c: E2 08 00 EE 03 80 17 00 00 00 00 00 00 71 [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 EE 03 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E9 [23:57:00]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:00]wFMCommunicate OK [23:57:00]wFMCommunicate request_size=4 [23:57:00]MH_SAM_APDU [23:57:00]CAPDU: 80 17 00 00 [23:57:00]Write to MH i2c: E2 08 00 EF 03 80 17 00 00 00 00 00 00 72 [23:57:00]Write i2c OK [23:57:00]MH_I2C_Read... [23:57:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:57:00]Read from MH i2c: E2 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: E2 E1 00 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: E2 E1 00 EF 03 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 OFD Sender: No OFD packet to send [23:57:00]00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 60 [23:57:00]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:01]wFMCommunicate OK [23:57:01]SAM_PROTO_GetFMData done [23:57:01]Malloc new data [23:57:01]Malloc new data [23:57:01]Malloc new data [23:57:01]Malloc new data [23:57:01]KKMLoadAndSignCloseShiftData err=0 [23:57:01]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Аширбеков Н. 27.10.2024 23:56 Смена: 544 РНМ: 0000000000091777 ЗНМ: 0300000109 СНО: Общий режим Чеков за смену: 490 ФД за смену: 492 Всего чеков: 490 ИТОГИ ПРИХОД Чеков: 490 Общий итог: 402692.31 Итого наличными: 315965.00 Итого безнал.: 86727.31 НДС 0% : 0.00 НДС 12% : 42777.59 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3564.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 315965.00 НС Приход: 158274853.37 НС Возвр.Прихода: 98929.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 202199 ФМ: 0000000000871756 ФПД: 38041353038913 [23:57:01]StoreToDocumentArchive [23:57:01]shift 544 fd 202199 [23:57:01]save to /storage/0544/doc_00202199 [23:57:01]save last doc name /storage/0544/doc_00202199 to /storage/kkm_last_doc_name [23:57:01]save OK [23:57:01]Clear old archive folders... [23:57:01]Remove dir /storage/0522 [23:57:01]opendir ok [23:57:01]file . [23:57:01]file .. [23:57:01]file doc_1730073393 [23:57:01]remove file /storage/0522/doc_1730073393 [23:57:01]remove dir /storage/0522 [23:57:01]NVStorageSaveData kkm_registers [23:57:01]File name is /storage/kkm_registers [23:57:01]Write 24 bytes [23:57:01]NVStorageSaveData done [23:57:01]NVStorageSaveData kkm_registers [23:57:01]File name is /storage/kkm_registers [23:57:01]Write 24 bytes [23:57:01]NVStorageSaveData done [23:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [23:57:01]tlvbuf is 00D831B0 [23:57:01]SAM_PROTO_ClearQueue [23:57:01]wFMCommunicate request_size=4 [23:57:01]MH_SAM_APDU [23:57:01]CAPDU: 80 09 00 00 [23:57:01]Write to MH i2c: E2 08 00 F0 03 80 09 00 00 00 00 00 00 65 [23:57:01]Write i2c OK [23:57:01]MH_I2C_Read... [23:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:01]Read from MH i2c: E2 [23:57:01]MH_I2C_Read... [23:57:01]Read from MH i2c: E2 03 00 [23:57:01]MH_I2C_Read... [23:57:01]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [23:57:01]RAPDU: 90 00 [23:57:01]wFMCommunicate OK [23:57:01]SAM_PROTO_ClearQueue done [23:57:01]KKMCreateOFDPacket [23:57:01]OFDProtocolAddRootSTLVToBuf [23:57:01]FM_MakeSignedData [23:57:01]FM_MakeSignedData [23:57:01]SAM_PROTO_SignData [23:57:01]wFMCommunicate request_size=4 [23:57:01]MH_SAM_APDU [23:57:01]CAPDU: 80 0D 01 02 [23:57:01]Write to MH i2c: E2 08 00 F1 03 80 0D 01 02 00 00 00 00 6D [23:57:01]Write i2c OK [23:57:01]MH_I2C_Read... [23:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:01]Read from MH i2c: E2 [23:57:01]MH_I2C_Read... [23:57:01]Read from MH i2c: E2 03 00 [23:57:01]MH_I2C_Read... [23:57:01]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [23:57:01]RAPDU: 90 00 [23:57:01]wFMCommunicate OK [23:57:01]wFMCommunicate request_size=255 [23:57:01]MH_SAM_APDU [23:57:01]CAPDU: 80 0D 02 02 FA 05 00 68 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 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 44 D3 1E 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 AA 04 D8 04 6E 04 04 00 EA 01 00 00 69 04 A5 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FF 45 41 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 [23:57:01]Write to MH i2c: E2 02 01 F2 03 80 0D 02 02 FA 00 05 00 68 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 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 44 D3 1E 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 AA 04 D8 04 6E 04 04 00 EA 01 00 00 69 04 A5 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FF 45 41 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 FE [23:57:01]Write i2c OK [23:57:01]MH_I2C_Read... [23:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:02]Read from MH i2c: E2 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 03 00 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [23:57:02]RAPDU: 90 00 [23:57:02]wFMCommunicate OK [23:57:02]wFMCommunicate request_size=255 [23:57:02]MH_SAM_APDU [23:57:02]CAPDU: 80 0D 02 02 FA 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 67 70 05 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 [23:57:02]Write to MH i2c: E2 02 01 F3 03 80 0D 02 02 FA 00 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 67 70 05 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 00 00 BA [23:57:02]Write i2c OK [23:57:02]MH_I2C_Read... [23:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:02]Read from MH i2c: E2 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 03 00 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [23:57:02]RAPDU: 90 00 [23:57:02]wFMCommunicate OK [23:57:02]wFMCommunicate request_size=255 [23:57:02]MH_SAM_APDU [23:57:02]CAPDU: 80 0D 02 02 FA 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 [23:57:03]Write to MH i2c: E2 02 01 F4 03 80 0D 02 02 FA 00 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 00 00 37 [23:57:03]Write i2c OK [23:57:03]MH_I2C_Read... [23:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:03]Read from MH i2c: E2 [23:57:03]MH_I2C_Read... [23:57:03]Read from MH i2c: E2 03 00 [23:57:03]MH_I2C_Read... [23:57:03]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [23:57:03]RAPDU: 90 00 [23:57:03]wFMCommunicate OK [23:57:03]wFMCommunicate request_size=255 [23:57:03]MH_SAM_APDU [23:57:03]CAPDU: 80 0D 02 02 FA 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 [23:57:04]Write to MH i2c: E2 02 01 F5 03 80 0D 02 02 FA 00 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 00 00 34 [23:57:04]Write i2c OK [23:57:04]MH_I2C_Read... [23:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:04]Read from MH i2c: E2 [23:57:04]MH_I2C_Read... [23:57:04]Read from MH i2c: E2 03 00 [23:57:04]MH_I2C_Read... [23:57:04]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [23:57:04]RAPDU: 90 00 [23:57:04]wFMCommunicate OK [23:57:04]wFMCommunicate request_size=255 [23:57:04]MH_SAM_APDU [23:57:04]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 [23:57:04]Write to MH i2c: E2 02 01 F6 03 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 0C [23:57:05]Write i2c OK [23:57:05]MH_I2C_Read... [23:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:05]Read from MH i2c: E2 [23:57:05]MH_I2C_Read... [23:57:05]Read from MH i2c: E2 03 00 [23:57:05]MH_I2C_Read... [23:57:05]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [23:57:05]RAPDU: 90 00 [23:57:05]wFMCommunicate OK [23:57:05]wFMCommunicate request_size=143 [23:57:05]MH_SAM_APDU [23:57:05]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 22 99 31 55 AC 41 [23:57:05]Write to MH i2c: E2 92 00 F7 03 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 22 99 31 55 AC 41 00 00 CE [23:57:05]Write i2c OK [23:57:05]MH_I2C_Read... [23:57:05]OFD Sender: No OFD packet to send [23:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:05]Read from MH i2c: E2 [23:57:05]MH_I2C_Read... [23:57:05]Read from MH i2c: E2 03 00 [23:57:05]MH_I2C_Read... [23:57:05]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [23:57:05]RAPDU: 90 00 [23:57:05]wFMCommunicate OK [23:57:05]wFMCommunicate request_size=4 [23:57:05]MH_SAM_APDU [23:57:05]CAPDU: 80 0D 03 02 [23:57:05]Write to MH i2c: E2 08 00 F8 03 80 0D 03 02 00 00 00 00 76 [23:57:05]Write i2c OK [23:57:05]MH_I2C_Read... [23:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:57:05]Read from MH i2c: E2 [23:57:05]MH_I2C_Read... [23:57:05]Read from MH i2c: E2 0B 00 [23:57:05]MH_I2C_Read... [23:57:05]Read from MH i2c: E2 0B 00 F8 03 00 46 8C B1 39 FE B9 E1 87 90 00 52 [23:57:06]RAPDU: 46 8C B1 39 FE B9 E1 87 90 00 [23:57:06]wFMCommunicate OK [23:57:06]SAM_PROTO_SignData done [23:57:06]FM_MakeSignedData done [23:57:06]CreateOFDProtocolMessage [23:57:06]wFMCommunicate request_size=4 [23:57:06]MH_SAM_APDU [23:57:06]CAPDU: 80 11 00 00 [23:57:06]Write to MH i2c: E2 08 00 F9 03 80 11 00 00 00 00 00 00 76 [23:57:06]Write i2c OK [23:57:06]MH_I2C_Read... [23:57:06]Read from MH i2c: E2 [23:57:06]MH_I2C_Read... [23:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:06]Read from MH i2c: E2 17 00 [23:57:06]MH_I2C_Read... [23:57:06]Read from MH i2c: E2 17 00 F9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CB [23:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:57:06]wFMCommunicate OK [23:57:06]CreateOFDProtocolMessage done [23:57:06]OFDSenderStorePacket 202199 [23:57:06]StoreOFDPacket docnum=202199 [23:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 7C 05 00 00 A1 BF 74 05 04 C0 5A 05 01 00 05 00 68 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 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 44 D3 1E 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 AA 04 D8 04 6E 04 04 00 EA 01 00 00 69 04 A5 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FF 45 41 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 67 70 05 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 D7 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 22 99 31 55 AC 41 46 8C B1 39 FE B9 E1 87 [23:57:06]CheckFolder [23:57:06]dirname=/storage/ofd_packets [23:57:06]CheckFolder done [23:57:06]ProducePacketName [23:57:06]name=ofd_packets/00202199 [23:57:06]NVStorageSaveData ofd_packets/00202199 [23:57:06]File name is /storage/ofd_packets/00202199 [23:57:06]Write 1434 bytes [23:57:06]NVStorageSaveData done [23:57:06]OFDSenderStorePacket done [23:57:06]KKMCreateOFDPacket done [23:57:06]NVStorageSaveData kkm_last_timestamp [23:57:06]File name is /storage/kkm_last_timestamp [23:57:06]Write 4 bytes [23:57:06]NVStorageSaveData done [23:57:06]ExternCall_PrintAddStr [23:57:06]wPrintStart [23:57:06]Write to MH i2c: 01 00 00 FA 03 FD [23:57:06]Write i2c OK [23:57:06]MH_I2C_Read... [23:57:06]Read from MH i2c: 01 [23:57:06]MH_I2C_Read... [23:57:06]Read from MH i2c: 01 07 00 [23:57:06]MH_I2C_Read... [23:57:06]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [23:57:06]RasterBufferAndPrint [23:57:06]line Отчет о закрытии смены [23:57:06]line ФФД: 1.0 [23:57:06]line ИНН: 02508201610067 [23:57:06]line Кассир: Аширбеков Н. [23:57:06]line 27.10.2024 23:56 [23:57:06]line Смена: 544 [23:57:06]line РНМ: 0000000000091777 [23:57:06]line ЗНМ: 0300000109 [23:57:06]line СНО: Общий режим [23:57:06]line Чеков за смену: 490 [23:57:06]line ФД за смену: 492 [23:57:06]line Всего чеков: 490 [23:57:06]line ИТОГИ ПРИХОД [23:57:06]line Чеков: 490 [23:57:06]line Общий итог: 402692.31 [23:57:06]line Итого наличными: 315965.00 [23:57:06]line Итого безнал.: 86727.31 [23:57:06]line НДС 0% : 0.00 [23:57:06]line НДС 12% : 42777.59 [23:57:06]line НСП 0% : 0.00 [23:57:06]line НСП 1,50% : 0.00 [23:57:06]line НСП 0,50% : 0.00 [23:57:06]line НСП 5% : 0.00 [23:57:06]line НСП 3% : 0.00 [23:57:06]line НСП 2% : 0.00 [23:57:06]line НСП 1% : 3564.55 [23:57:06]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:57:06]line Чеков: 0 [23:57:06]line Общий итог: 0.00 [23:57:06]line Итого наличными: 0.00 [23:57:06]line Итого безнал.: 0.00 [23:57:06]line НДС 0% : 0.00 [23:57:06]line НДС 12% : 0.00 [23:57:06]line НСП 0% : 0.00 [23:57:06]line НСП 1,50% : 0.00 [23:57:06]line НСП 0,50% : 0.00 [23:57:06]line НСП 5% : 0.00 [23:57:06]line НСП 3% : 0.00 [23:57:06]line НСП 2% : 0.00 [23:57:06]line НСП 1% : 0.00 [23:57:06]line ИТОГИ РАСХОД [23:57:06]line Чеков: 0 [23:57:06]line Общий итог: 0.00 [23:57:06]line Итого наличными: 0.00 [23:57:06]line Итого безнал.: 0.00 [23:57:06]line НДС 0% : 0.00 [23:57:06]line НДС 12% : 0.00 [23:57:06]line НСП 0% : 0.00 [23:57:06]line НСП 1,50% : 0.00 [23:57:06]line НСП 0,50% : 0.00 [23:57:06]line НСП 5% : 0.00 [23:57:06]line НСП 3% : 0.00 [23:57:06]line НСП 2% : 0.00 [23:57:06]line НСП 1% : 0.00 [23:57:06]line ИТОГИ ВОЗВРАТ РАСХОДА [23:57:06]line Чеков: 0 [23:57:06]line Общий итог: 0.00 [23:57:06]line Итого наличными: 0.00 [23:57:06]line Итого безнал.: 0.00 [23:57:06]line НДС 0% : 0.00 [23:57:06]line НДС 12% : 0.00 [23:57:06]line НСП 0% : 0.00 [23:57:06]line НСП 1,50% : 0.00 [23:57:06]line НСП 0,50% : 0.00 [23:57:06]line НСП 5% : 0.00 [23:57:06]line НСП 3% : 0.00 [23:57:06]line НСП 2% : 0.00 [23:57:06]line НСП 1% : 0.00 [23:57:06]line Сумма внесений: 0.00 [23:57:06]line Сумма выплат: 0.00 [23:57:06]line Нал. в кассе: 315965.00 [23:57:06]line НС Приход: 158274853.37 [23:57:06]line НС Возвр.Прихода: 98929.00 [23:57:06]line НС Расход: 0.00 [23:57:06]line НС Возвр.Расхода: 0.00 [23:57:06]line ФД: 202199 [23:57:06]line ФМ: 0000000000871756 [23:57:06]line ФПД: 38041353038913 [23:57:06]OFD Sender: Processing packet 202199 [packets to send 114, broken 113] [23:57:06]ProducePacketName [23:57:06]name=ofd_packets/00202199 [23:57:06]OFD Sender: To server: pG, [23:57:06]CommunicateWithHost lk.salyk.kg:30040 [23:57:06]ConnectInit lk.salyk.kg [23:57:06]written 0, free lines is 4095 [23:57:06]Connected sock=11 [23:57:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 7C 05 00 00 A1 BF 74 05 04 C0 5A 05 01 00 05 00 68 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 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 44 D3 1E 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 AA 04 D8 04 6E 04 04 00 EA 01 00 00 69 04 A5 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FF 45 41 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 67 70 05 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 Write to MH i2c: 03 01 01 00 00 00 06 4A F7 04 03 4E 01 [23:57:07]00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 Write i2c OK [23:57:07]00 MH_I2C_Read... [23:57:07]EF Read from MH i2c: 03 01 0A [23:57:07]00 MH_I2C_Read... [23:57:07]F6 Read from MH i2c: 03 01 01 07 00 00 04 [23:57:07]F7 MH_I2C_Read... [23:57:07]03 01 00 00 EF 03 Read from MH i2c: 0A 01 00 07 F6 00 03 4A 01 00 03 F7 03 01 00 00 EF 03 0A 04 00 00 F6 00 03 00 01 00 00 02 F7 03 01 00 00 EF 03 0A 00 00 F6 C2 03 0A 01 21 00 [23:57:07]01 F7 03 01 00 00 6C 04 99 00 6F RasterBufferAndPrint [23:57:07]04 line [23:57:07]04 line [23:57:07]00 line [23:57:07]00 line [23:57:07]00 00 00 B1 04 01 00 00 70 04 01 line [23:57:07]00 00 written 0, free lines is 2978 [23:57:07]72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 MH_Cut [23:57:07]03 Write to MH i2c: 01 D1 00 01 00 00 F3 51 03 04 01 01 00 27 00 [23:57:07]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 Write i2c OK [23:57:08]00 MH_I2C_Read... [23:57:08]00 00 00 79 04 8D 00 Read from MH i2c: 6F D1 04 [23:57:08]04 MH_I2C_Read... [23:57:08]00 00 00 Read from MH i2c: 00 D1 00 01 B1 00 04 [23:57:08]00 00 70 04 00 00 72 04 00 00 00 MH_I2C_Read... [23:57:08]04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Read from MH i2c: 00 D1 00 F7 03 00 00 EF 03 09 00 F6 03 01 01 00 00 51 01 04 F7 00 03 00 00 EF 03 09 00 F6 03 01 00 02 26 F7 [23:57:08]03 Write to MH i2c: 00 01 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 52 00 04 EF 56 03 [23:57:08]09 00 F6 03 01 00 04 F7 03 00 00 EF Write i2c OK [23:57:08]03 MH_I2C_Read... [23:57:08]09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 *** Cut start [23:57:08]00 *** Purtial cut [23:57:08]00 *** Stage 1: CUTSNS_PIN = 1 [23:57:08]EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 22 99 31 55 AC 41 46 8C B1 39 FE B9 E1 87 [23:57:09]Read from MH i2c: *** Stop cut motor [23:57:09]01 *** Cut end [23:57:09] [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: 01 07 00 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 FF 0F 6B [23:57:09]process_action close_shift done [23:57:09]requested_data is exist [23:57:09]produce_requested_data [23:57:09]requested_item fd.num is exist - process it [23:57:09]SAM_PROTO_GetFieldsCounters [23:57:09]wFMCommunicate request_size=4 [23:57:09]MH_SAM_APDU [23:57:09]CAPDU: 80 13 00 00 [23:57:09]Write to MH i2c: E2 08 00 53 04 80 13 00 00 00 00 00 00 D3 [23:57:09]Write i2c OK [23:57:09]MH_I2C_Read... [23:57:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3D 7A 47 00 14 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 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:09]33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 15 03 00 F4 03 04 00 0C 7F 1E 67 B6 04 01 00 00 70 E0 1F 63 39 AF EB 9D [23:57:09]CommunicateWithHost err = 0 [23:57:09]CheckOFDResponse [23:57:09]1017 (14) - 77093643461234 [23:57:09]1041 (16) - 0000000000871756 [23:57:09]1040 (4) - 202199 [23:57:09]1012 (4) - 27.10.2024 17:57 [23:57:09]1206 (1) - 0 [23:57:09]OFD Sender: Remove packet 202199 [23:57:09]ProducePacketName [23:57:09]name=ofd_packets/00202199 [23:57:09]NVStorageDeleteData [23:57:09]Read from MH i2c: E2 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: E2 62 00 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: E2 62 00 53 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [23:57:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:09]wFMCommunicate OK [23:57:09]SAM_PROTO_GetFieldsCounters done [23:57:09]requested_item shift.num is exist - process it [23:57:09]requested_item shift.opened is exist - process it [23:57:09]req_shift_opened [23:57:09]FM_GetShiftState [23:57:09]SAM_PROTO_GetShiftState [23:57:09]wFMCommunicate request_size=4 [23:57:09]MH_SAM_APDU [23:57:09]CAPDU: 80 13 01 00 [23:57:09]Write to MH i2c: E2 08 00 54 04 80 13 01 00 00 00 00 00 D5 [23:57:09]Write i2c OK [23:57:09]MH_I2C_Read... [23:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:09]Read from MH i2c: E2 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: E2 0E 00 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: E2 0E 00 54 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E0 [23:57:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:57:09]wFMCommunicate OK [23:57:09]SAM_PROTO_GetShiftState done [23:57:09]FM_GetShiftState done [23:57:09]req_shift_opened done [23:57:09]requested_item shift.open_date is exist - process it [23:57:09]req_shift_open_date [23:57:09]FM_GetShiftState [23:57:09]SAM_PROTO_GetShiftState [23:57:09]wFMCommunicate request_size=4 [23:57:09]MH_SAM_APDU [23:57:09]CAPDU: 80 13 01 00 [23:57:09]Write to MH i2c: E2 08 00 55 04 80 13 01 00 00 00 00 00 D6 [23:57:09]Write i2c OK [23:57:09]MH_I2C_Read... [23:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:09]Read from MH i2c: E2 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: E2 0E 00 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: E2 0E 00 55 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E1 [23:57:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:57:09]wFMCommunicate OK [23:57:09]SAM_PROTO_GetShiftState done [23:57:09]FM_GetShiftState done [23:57:09]req_shift_open_date done [23:57:09]produce_requested_data done [23:57:09]produce_requested_data return {"fd.num":202199,"shift.num":544,"shift.opened":0,"shift.open_date":0} [23:57:09]process_action_free close_shift [23:57:09]json_value_free [23:57:09]json_value_free done [23:57:09]process_json_proto returns [23:57:09]Send response to host [23:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":202199,"shift.num":544,"shift.opened":0,"shift.open_date":0}}} [23:57:09]free response buf [23:57:09]execute_script done [23:57:09]execute_script returns [23:57:09]free content buf [23:57:09]Sock 9.Close socket [23:57:09]Sock 9.Thread stoped [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:21]int [23:57:21]Write to MH i2c: 01 00 00 56 04 5A [23:57:21]*** FLAG_PRN_KEY set [23:57:21]Write i2c OK [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 56 04 00 08 00 00 00 FF 0F 77 [23:57:21]state=0 [23:57:21]Key pressed [23:57:21]Feed [23:57:21]Write to MH i2c: D8 00 00 57 04 32 [23:57:21]Write i2c OK [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: D8 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: D8 01 00 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: D8 01 00 57 04 00 33 [23:57:21]int line is 0 - check status [23:57:21]Write to MH i2c: 01 00 00 58 04 5C [23:57:21]Write i2c OK [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 58 04 00 48 00 00 00 3C 00 E7 [23:57:21]state=2 [23:57:21]Key pressed [23:57:21]int [23:57:21]Write to MH i2c: 01 00 00 59 04 5D [23:57:21]Write i2c OK [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 [23:57:21]MH_I2C_Read... [23:57:21]*** FLAG_PRN_KEY reset [23:57:21]Read from MH i2c: 01 07 00 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 59 04 00 48 00 00 00 3C 00 E8 [23:57:21]state=2 [23:57:21]Key pressed [23:57:21]int line is 0 - check status [23:57:21]Write to MH i2c: 01 00 00 5A 04 5E [23:57:21]Write i2c OK [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 5A 04 00 00 00 00 00 FF 0F 73 [23:57:21]state=2 [23:57:21]Stop feed [23:57:21]int [23:57:21]Write to MH i2c: 01 00 00 5B 04 5F [23:57:21]Write i2c OK [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [23:57:21]state=0 [23:57:21]int [23:57:21]Write to MH i2c: 01 00 00 5C 04 60 [23:57:21]*** FLAG_PRN_KEY set [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 5C 04 00 08 00 00 00 FF 0F 7D [23:57:22]state=0 [23:57:22]Key pressed [23:57:22]Feed [23:57:22]Write to MH i2c: D8 00 00 5D 04 38 [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: D8 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: D8 01 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: D8 01 00 5D 04 00 39 [23:57:22]int line is 0 - check status [23:57:22]Write to MH i2c: 01 00 00 5E 04 62 [23:57:22]*** FLAG_PRN_KEY reset [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 FE 0F 76 [23:57:22]state=2 [23:57:22]Stop feed [23:57:22]int [23:57:22]Write to MH i2c: 01 00 00 5F 04 63 [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 FF 0F 78 [23:57:22]state=0 [23:57:22]int [23:57:22]Write to MH i2c: 01 00 00 60 04 64 [23:57:22]*** FLAG_PRN_KEY set [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 60 04 00 08 00 00 00 FF 0F 81 [23:57:22]state=0 [23:57:22]Key pressed [23:57:22]Feed [23:57:22]Write to MH i2c: D8 00 00 61 04 3C [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: D8 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: D8 01 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: D8 01 00 61 04 00 3D [23:57:22]int line is 0 - check status [23:57:22]Write to MH i2c: 01 00 00 62 04 66 [23:57:22]*** FLAG_PRN_KEY reset [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 F9 0F 75 [23:57:22]state=2 [23:57:22]Stop feed [23:57:22]int [23:57:22]Write to MH i2c: 01 00 00 63 04 67 [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 FF 0F 7C [23:57:22]state=0 [23:57:23]int [23:57:23]Write to MH i2c: 01 00 00 64 04 68 [23:57:23]*** FLAG_PRN_KEY set [23:57:23]Write i2c OK [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 07 00 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 07 00 64 04 00 08 00 00 00 FF 0F 85 [23:57:23]state=0 [23:57:23]Key pressed [23:57:23]Feed [23:57:23]Write to MH i2c: D8 00 00 65 04 40 [23:57:23]Write i2c OK [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: D8 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: D8 01 00 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: D8 01 00 65 04 00 41 [23:57:23]int line is 0 - check status [23:57:23]Write to MH i2c: 01 00 00 66 04 6A [23:57:23]Write i2c OK [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 07 00 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 07 00 66 04 00 48 00 00 00 3C 00 F5 [23:57:23]state=2 [23:57:23]Key pressed [23:57:23]int line is 0 - check status [23:57:23]Write to MH i2c: 01 00 00 67 04 6B [23:57:23]*** FLAG_PRN_KEY reset [23:57:23]Write i2c OK [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 07 00 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 FF 0F 80 [23:57:23]state=2 [23:57:23]Stop feed [23:57:23]int [23:57:23]Write to MH i2c: 01 00 00 68 04 6C [23:57:23]Write i2c OK [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 07 00 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 FF 0F 81 [23:57:23]state=0 [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:04]accept exits with 7 [00:01:04]New connection [00:01:04]New thread 3067280740 created [00:01:04]Thread 3067424100 joined [00:01:04]Waiting for new connection... [00:01:04] Sock 7.Parse request [00:01:04]Sock 7.Check first char [00:01:04]Sock 7.First char is OK [00:01:04]request: POST /json_proto HTTP/1.0 [00:01:04]Method: POST [00:01:04]URL: /json_proto [00:01:04]Method is POST - this is cgi request [00:01:04]url: /json_proto [00:01:04]query_string will be loaded in cgi processing [00:01:04]execute_cgi json_proto POST (null) [00:01:04]execute_cgi path=json_proto method=POST [00:01:04]POST find Content-Length [00:01:04]Host: 172.17.63.195:8080 [00:01:04]Content-Length: 215 [00:01:04]Content-Type: application/json [00:01:04] [00:01:04]POST finish read [00:01:04]Found Content-Length = 215 [00:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:04]execute_script... [00:01:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:04]POST & json_proto [00:01:04]process_json_proto [00:01:04]json parsed OK: [00:01:04]protocol is kg_v1.0 [00:01:04]action value=get_value [00:01:04]process_action get_value [00:01:04]cmd_get_value [00:01:04]process_action get_value done [00:01:04]requested_data is exist [00:01:04]produce_requested_data [00:01:04]requested_item kkm.sn is exist - process it [00:01:04]requested_item kkm.ver is exist - process it [00:01:04]requested_item fm.sn is exist - process it [00:01:04]wFMCommunicate request_size=4 [00:01:04]MH_SAM_APDU [00:01:04]CAPDU: 80 11 00 00 [00:01:04]Write to MH i2c: E2 08 00 69 04 80 11 00 00 00 00 00 00 E7 [00:01:04]Write i2c OK [00:01:04]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 17 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 17 00 69 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3C [00:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:01:05]wFMCommunicate OK [00:01:05]requested_item fd.num is exist - process it [00:01:05]SAM_PROTO_GetFieldsCounters [00:01:05]wFMCommunicate request_size=4 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 13 00 00 [00:01:05]Write to MH i2c: E2 08 00 6A 04 80 13 00 00 00 00 00 00 EA [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 62 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 62 00 6A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [00:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 15 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:05]wFMCommunicate OK [00:01:05]SAM_PROTO_GetFieldsCounters done [00:01:05]requested_item shift.num is exist - process it [00:01:05]requested_item shift.opened is exist - process it [00:01:05]req_shift_opened [00:01:05]FM_GetShiftState [00:01:05]SAM_PROTO_GetShiftState [00:01:05]wFMCommunicate request_size=4 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 13 01 00 [00:01:05]Write to MH i2c: E2 08 00 6B 04 80 13 01 00 00 00 00 00 EC [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 0E 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 0E 00 6B 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F7 [00:01:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:05]wFMCommunicate OK [00:01:05]SAM_PROTO_GetShiftState done [00:01:05]FM_GetShiftState done [00:01:05]req_shift_opened done [00:01:05]requested_item shift.open_date is exist - process it [00:01:05]req_shift_open_date [00:01:05]FM_GetShiftState [00:01:05]SAM_PROTO_GetShiftState [00:01:05]wFMCommunicate request_size=4 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 13 01 00 [00:01:05]Write to MH i2c: E2 08 00 6C 04 80 13 01 00 00 00 00 00 ED [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 0E 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 0E 00 6C 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F8 [00:01:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:05]wFMCommunicate OK [00:01:05]SAM_PROTO_GetShiftState done [00:01:05]FM_GetShiftState done [00:01:05]req_shift_open_date done [00:01:05]produce_requested_data done [00:01:05]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202199,"shift.num":544,"shift.opened":0,"shift.open_date":0} [00:01:05]process_action_free get_value [00:01:05]json_value_free [00:01:05]json_value_free done [00:01:05]process_json_proto returns [00:01:05]Send response to host [00:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":202199,"shift.num":544,"shift.opened":0,"shift.open_date":0}}} [00:01:05]free response buf [00:01:05]execute_script done [00:01:05]execute_script returns [00:01:05]free content buf [00:01:05]Sock 7.Close socket [00:01:05]Sock 7.Thread stoped [00:01:05]accept exits with 9 [00:01:05]New connection [00:01:05]New thread 3067424100 created [00:01:05]Thread 3067280740 joined [00:01:05]Waiting for new connection... [00:01:05] Sock 9.Parse request [00:01:05]Sock 9.Check first char [00:01:05]Sock 9.First char is OK [00:01:05]request: POST /json_proto HTTP/1.0 [00:01:05]Method: POST [00:01:05]URL: /json_proto [00:01:05]Method is POST - this is cgi request [00:01:05]url: /json_proto [00:01:05]query_string will be loaded in cgi processing [00:01:05]execute_cgi json_proto POST (null) [00:01:05]execute_cgi path=json_proto method=POST [00:01:05]POST find Content-Length [00:01:05]Host: 172.17.63.195:8080 [00:01:05]Content-Length: 331 [00:01:05]Content-Type: application/json [00:01:05] [00:01:05]POST finish read [00:01:05]Found Content-Length = 331 [00:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:05]execute_script... [00:01:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:05]POST & json_proto [00:01:05]process_json_proto [00:01:05]json parsed OK: [00:01:05]protocol is kg_v1.0 [00:01:05]action value=get_value [00:01:05]process_action get_value [00:01:05]cmd_get_value [00:01:05]process_action get_value done [00:01:05]requested_data is exist [00:01:05]produce_requested_data [00:01:05]requested_item fm.sale.total is exist - process it [00:01:05]SAM_PROTO_GetFMData [00:01:05]wFMCommunicate request_size=4 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 13 03 00 [00:01:05]Write to MH i2c: E2 08 00 6D 04 80 13 03 00 00 00 00 00 F0 [00:01:05]OFD Sender: No OFD packet to send [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 FD 00 [00:01:05]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 FD 00 6D 04 00 C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 4D [00:01:06]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [00:01:06]wFMCommunicate OK [00:01:06]wFMCommunicate request_size=4 [00:01:06]MH_SAM_APDU [00:01:06]CAPDU: 80 17 00 00 [00:01:06]Write to MH i2c: E2 08 00 6E 04 80 17 00 00 00 00 00 00 F2 [00:01:06]Write i2c OK [00:01:06]MH_I2C_Read... [00:01:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:06]Read from MH i2c: E2 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 FD 00 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 FD 00 6E 04 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 F9 [00:01:06]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:01:06]wFMCommunicate OK [00:01:06]wFMCommunicate request_size=4 [00:01:06]MH_SAM_APDU [00:01:06]CAPDU: 80 17 00 00 [00:01:06]Write to MH i2c: E2 08 00 6F 04 80 17 00 00 00 00 00 00 F3 [00:01:06]Write i2c OK [00:01:06]MH_I2C_Read... [00:01:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:06]Read from MH i2c: E2 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 FD 00 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 FD 00 6F 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 08 [00:01:06]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:01:06]wFMCommunicate OK [00:01:06]wFMCommunicate request_size=4 [00:01:06]MH_SAM_APDU [00:01:06]CAPDU: 80 17 00 00 [00:01:06]Write to MH i2c: E2 08 00 70 04 80 17 00 00 00 00 00 00 F4 [00:01:06]Write i2c OK [00:01:06]MH_I2C_Read... [00:01:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:06]Read from MH i2c: E2 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 FD 00 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 FD 00 70 04 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [00:01:06]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:06]wFMCommunicate OK [00:01:06]wFMCommunicate request_size=4 [00:01:06]MH_SAM_APDU [00:01:06]CAPDU: 80 17 00 00 [00:01:06]Write to MH i2c: E2 08 00 71 04 80 17 00 00 00 00 00 00 F5 [00:01:06]Write i2c OK [00:01:06]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 E1 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 E1 00 71 04 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 [00:01:07]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:07]wFMCommunicate OK [00:01:07]SAM_PROTO_GetFMData done [00:01:07]requested_item fm.sale_refund.total is exist - process it [00:01:07]requested_item fm.buy.total is exist - process it [00:01:07]requested_item shift.sale.total is exist - process it [00:01:07]SAM_PROTO_GetShiftData [00:01:07]wFMCommunicate request_size=4 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 13 02 00 [00:01:07]Write to MH i2c: E2 08 00 72 04 80 13 02 00 00 00 00 00 F4 [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 FD 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 FD 00 72 04 00 B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 18 [00:01:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 EA 01 00 00 69 04 9E 00 6F 04 04 00 EA 01 00 00 B1 04 04 00 AF 75 66 02 70 04 04 00 D4 1F E2 01 72 04 03 00 DB 55 84 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 FF 45 41 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 67 70 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 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 [00:01:07]wFMCommunicate OK [00:01:07]wFMCommunicate request_size=4 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 17 00 00 [00:01:07]Write to MH i2c: E2 08 00 73 04 80 17 00 00 00 00 00 00 F7 [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 FD 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 FD 00 73 04 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 10 [00:01:07]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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:01:07]wFMCommunicate OK [00:01:07]wFMCommunicate request_size=4 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 17 00 00 [00:01:07]Write to MH i2c: E2 08 00 74 04 80 17 00 00 00 00 00 00 F8 [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:08]Read from MH i2c: E2 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 FD 00 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 FD 00 74 04 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B1 [00:01:08]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:01:08]wFMCommunicate OK [00:01:08]wFMCommunicate request_size=4 [00:01:08]MH_SAM_APDU [00:01:08]CAPDU: 80 17 00 00 [00:01:08]Write to MH i2c: E2 08 00 75 04 80 17 00 00 00 00 00 00 F9 [00:01:08]Write i2c OK [00:01:08]MH_I2C_Read... [00:01:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:08]Read from MH i2c: E2 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 FD 00 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 FD 00 75 04 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 90 00 71 [00:01:08]RAPDU: 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 90 00 [00:01:08]wFMCommunicate OK [00:01:08]wFMCommunicate request_size=4 [00:01:08]MH_SAM_APDU [00:01:08]CAPDU: 80 17 00 00 [00:01:08]Write to MH i2c: E2 08 00 76 04 80 17 00 00 00 00 00 00 FA [00:01:08]Write i2c OK [00:01:08]MH_I2C_Read... [00:01:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:01:08]Read from MH i2c: E2 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 CE 00 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 CE 00 76 04 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DF [00:01:08]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:08]wFMCommunicate OK [00:01:08]SAM_PROTO_GetShiftData done [00:01:08]requested_item shift.sale.total_cash is exist - process it [00:01:08]requested_item shift.sale_refund.total is exist - process it [00:01:08]requested_item shift.sale_refund.total_cash is exist - process it [00:01:08]requested_item shift.buy.total is exist - process it [00:01:08]requested_item shift.buy.total_cash is exist - process it [00:01:08]produce_requested_data done [00:01:08]produce_requested_data return {"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:01:08]process_action_free get_value [00:01:08]json_value_free [00:01:08]json_value_free done [00:01:08]process_json_proto returns [00:01:08]Send response to host [00:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":402692.31,"shift.sale.total_cash":315965.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:01:08]free response buf [00:01:08]execute_script done [00:01:08]execute_script returns [00:01:08]free content buf [00:01:08]Sock 9.Close socket [00:01:08]Sock 9.Thread stoped [00:01:08]accept exits with 7 [00:01:08]New connection [00:01:08]New thread 3067280740 created [00:01:08]Thread 3067424100 joined [00:01:08]Waiting for new connection... [00:01:08] Sock 7.Parse request [00:01:08]Sock 7.Check first char [00:01:08]Sock 7.First char is OK [00:01:08]request: POST /json_proto HTTP/1.0 [00:01:08]Method: POST [00:01:08]URL: /json_proto [00:01:08]Method is POST - this is cgi request [00:01:08]url: /json_proto [00:01:08]query_string will be loaded in cgi processing [00:01:08]execute_cgi json_proto POST (null) [00:01:08]execute_cgi path=json_proto method=POST [00:01:08]POST find Content-Length [00:01:08]Host: 172.17.63.195:8080 [00:01:08]Content-Length: 272 [00:01:08]Content-Type: application/json [00:01:08] [00:01:08]POST finish read [00:01:08]Found Content-Length = 272 [00:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u0439\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:08]execute_script... [00:01:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u0439\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:08]POST & json_proto [00:01:08]process_json_proto [00:01:08]json parsed OK: [00:01:08]protocol is kg_v1.0 [00:01:08]action value=open_shift [00:01:08]process_action open_shift [00:01:08]cmd_open_shift [00:01:08]MH_GetDate [00:01:08]Write to MH i2c: F0 00 00 77 04 6A [00:01:08]Write i2c OK [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: F0 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: F0 09 00 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: F0 09 00 77 04 00 46 D4 1E 67 47 1B 1E 67 F9 [00:01:08]GetLastDocTimeStamp 1730073412 [00:01:08]current date 1730073670 [00:01:08]FM_GetShiftState [00:01:08]SAM_PROTO_GetShiftState [00:01:08]wFMCommunicate request_size=4 [00:01:08]MH_SAM_APDU [00:01:08]CAPDU: 80 13 01 00 [00:01:08]Write to MH i2c: E2 08 00 78 04 80 13 01 00 00 00 00 00 F9 [00:01:08]Write i2c OK [00:01:08]MH_I2C_Read... [00:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:08]Read from MH i2c: E2 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 0E 00 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 0E 00 78 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 04 [00:01:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:08]wFMCommunicate OK [00:01:08]SAM_PROTO_GetShiftState done [00:01:08]FM_GetShiftState done [00:01:08]KKMCreateOpenShiftDocument [00:01:08]Load OK [00:01:08]Malloc new data [00:01:08]MH_GetDate [00:01:08]Write to MH i2c: F0 00 00 79 04 6C [00:01:08]Write i2c OK [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: F0 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: F0 09 00 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: F0 09 00 79 04 00 46 D4 1E 67 47 1B 1E 67 FB [00:01:08]Malloc new data [00:01:08]KKMCreateOpenShiftDocument OK [00:01:08]KKMSetOpenShiftData OK [00:01:08]ProcessDocumentItem done err = 0, tmpTLVsize=214 [00:01:08]tlvbuf is 00C3CC60 [00:01:08]KKMLoadAndSignOpenShiftData [00:01:08]SAM_PROTO_ProcessDocument [00:01:08]wFMCommunicate request_size=9 [00:01:08]MH_SAM_APDU [00:01:08]CAPDU: 80 15 01 00 04 02 00 D6 00 [00:01:08]Write to MH i2c: E2 0C 00 7A 04 80 15 01 00 04 00 02 00 D6 00 00 00 DD [00:01:08]Write i2c OK [00:01:08]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [00:01:09]RAPDU: 90 00 [00:01:09]wFMCommunicate OK [00:01:09]wFMCommunicate request_size=23 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:01:09]Write to MH i2c: E2 1A 00 7B 04 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 F4 [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [00:01:09]RAPDU: 90 00 [00:01:09]wFMCommunicate OK [00:01:09]wFMCommunicate request_size=35 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 [00:01:09]Write to MH i2c: E2 26 00 7C 04 80 15 02 00 1E 00 FD 03 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 00 00 EF [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [00:01:09]RAPDU: 90 00 [00:01:09]wFMCommunicate OK [00:01:09]wFMCommunicate request_size=97 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 15 02 00 5C F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 [00:01:09]Write to MH i2c: E2 64 00 7D 04 80 15 02 00 5C 00 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 00 00 FC [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [00:01:09]RAPDU: 90 00 [00:01:09]wFMCommunicate OK [00:01:09]wFMCommunicate request_size=51 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:01:09]Write to MH i2c: E2 36 00 7E 04 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 AD [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [00:01:09]RAPDU: 90 00 [00:01:09]wFMCommunicate OK [00:01:09]wFMCommunicate request_size=13 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 15 02 00 08 F4 03 04 00 46 D4 1E 67 [00:01:09]Write to MH i2c: E2 10 00 7F 04 80 15 02 00 08 00 F4 03 04 00 46 D4 1E 67 00 00 AD [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [00:01:09]RAPDU: 90 00 [00:01:09]wFMCommunicate OK [00:01:09]wFMCommunicate request_size=25 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [00:01:09]Write to MH i2c: E2 1C 00 80 04 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 6C [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [00:01:09]RAPDU: 90 00 [00:01:09]wFMCommunicate OK [00:01:09]wFMCommunicate request_size=4 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 15 03 00 [00:01:09]Write to MH i2c: E2 08 00 81 04 80 15 03 00 00 00 00 00 06 [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 38 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 38 00 81 04 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 15 03 00 0E 04 04 00 21 02 00 00 35 04 06 00 A5 B6 AD C0 74 95 90 00 B8 [00:01:09]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 15 03 00 0E 04 04 00 21 02 00 00 35 04 06 00 A5 B6 AD C0 74 95 90 00 [00:01:09]wFMCommunicate OK [00:01:09]SAM_PROTO_ProcessDocument answer len = 51 [00:01:09]SAM_PROTO_ProcessDocument done [00:01:09]SetTLVBufToDocument [00:01:09]Processing tag 1209 (04B9) [00:01:09]Malloc new data [00:01:09]Processing tag 1041 (0411) [00:01:09]Processing tag 1040 (0410) [00:01:09]Malloc new data [00:01:09]Processing tag 1038 (040E) [00:01:09]Malloc new data [00:01:09]Processing tag 1077 (0435) [00:01:09]Malloc new data [00:01:09]SetTLVBufToDocument err=0 [00:01:09]KKMLoadAndSignOpenShiftData store KKM data [00:01:09]KKMLoadAndSignOpenShiftData err=0 [00:01:09]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шайбек уулу У. Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 Место: АЗС № 171 "Партнер Нефть" 28.10.2024 00:01 Смена: 545 РНМ: 0000000000091777 ЗНМ: 0300000109 ФД: 202200 ФМ: 0000000000871756 ФПД: 182204017702037 [00:01:09]StoreToDocumentArchive [00:01:09]shift 545 fd 202200 [00:01:09]Create dir for shift 0545 [00:01:09]save to /storage/0545/doc_00202200 [00:01:09]save last doc name /storage/0545/doc_00202200 to /storage/kkm_last_doc_name [00:01:09]save OK [00:01:09]Clear old archive folders... [00:01:09]Remove dir /storage/0544 [00:01:09]opendir ok [00:01:09]file . [00:01:09]file .. [00:01:09]file doc_00201708 [00:01:09]remove file /storage/0544/doc_00201708 [00:01:09]file doc_00201709 [00:01:09]remove file /storage/0544/doc_00201709 [00:01:09]file doc_00201710 [00:01:09]remove file /storage/0544/doc_00201710 [00:01:09]file doc_00201711 [00:01:09]remove file /storage/0544/doc_00201711 [00:01:09]file doc_00201712 [00:01:09]remove file /storage/0544/doc_00201712 [00:01:09]file doc_00201713 [00:01:09]remove file /storage/0544/doc_00201713 [00:01:09]file doc_00201714 [00:01:09]remove file /storage/0544/doc_00201714 [00:01:09]file doc_00201715 [00:01:09]remove file /storage/0544/doc_00201715 [00:01:09]file doc_00201716 [00:01:09]remove file /storage/0544/doc_00201716 [00:01:09]file doc_00201717 [00:01:09]remove file /storage/0544/doc_00201717 [00:01:09]file doc_00201718 [00:01:09]remove file /storage/0544/doc_00201718 [00:01:09]file doc_00201719 [00:01:09]remove file /storage/0544/doc_00201719 [00:01:09]file doc_00201720 [00:01:09]remove file /storage/0544/doc_00201720 [00:01:09]file doc_00201721 [00:01:09]remove file /storage/0544/doc_00201721 [00:01:09]file doc_00201722 [00:01:09]remove file /storage/0544/doc_00201722 [00:01:09]file doc_00201723 [00:01:09]remove file /storage/0544/doc_00201723 [00:01:09]file doc_00201724 [00:01:09]remove file /storage/0544/doc_00201724 [00:01:09]file doc_00201725 [00:01:09]remove file /storage/0544/doc_00201725 [00:01:09]file doc_00201726 [00:01:09]remove file /storage/0544/doc_00201726 [00:01:09]file doc_00201727 [00:01:09]remove file /storage/0544/doc_00201727 [00:01:09]file doc_00201728 [00:01:09]remove file /storage/0544/doc_00201728 [00:01:09]file doc_00201729 [00:01:09]remove file /storage/0544/doc_00201729 [00:01:09]file doc_00201730 [00:01:09]remove file /storage/0544/doc_00201730 [00:01:09]file doc_00201731 [00:01:09]remove file /storage/0544/doc_00201731 [00:01:09]file doc_00201732 [00:01:09]remove file /storage/0544/doc_00201732 [00:01:09]file doc_00201733 [00:01:09]remove file /storage/0544/doc_00201733 [00:01:09]file doc_00201734 [00:01:09]remove file /storage/0544/doc_00201734 [00:01:09]file doc_00201735 [00:01:09]remove file /storage/0544/doc_00201735 [00:01:09]file doc_00201736 [00:01:09]remove file /storage/0544/doc_00201736 [00:01:09]file doc_00201737 [00:01:09]remove file /storage/0544/doc_00201737 [00:01:09]file doc_00201738 [00:01:09]remove file /storage/0544/doc_00201738 [00:01:09]file doc_00201739 [00:01:09]remove file /storage/0544/doc_00201739 [00:01:09]file doc_00201740 [00:01:09]remove file /storage/0544/doc_00201740 [00:01:09]file doc_00201741 [00:01:09]remove file /storage/0544/doc_00201741 [00:01:09]file doc_00201742 [00:01:09]remove file /storage/0544/doc_00201742 [00:01:09]file doc_00201743 [00:01:09]remove file /storage/0544/doc_00201743 [00:01:09]file doc_00201744 [00:01:09]remove file /storage/0544/doc_00201744 [00:01:09]file doc_00201745 [00:01:09]remove file /storage/0544/doc_00201745 [00:01:09]file doc_00201746 [00:01:09]remove file /storage/0544/doc_00201746 [00:01:09]file doc_00201747 [00:01:09]remove file /storage/0544/doc_00201747 [00:01:09]file doc_00201748 [00:01:09]remove file /storage/0544/doc_00201748 [00:01:09]file doc_00201749 [00:01:09]remove file /storage/0544/doc_00201749 [00:01:09]file doc_00201750 [00:01:10]remove file /storage/0544/doc_00201750 [00:01:10]file doc_00201751 [00:01:10]remove file /storage/0544/doc_00201751 [00:01:10]file doc_00201752 [00:01:10]remove file /storage/0544/doc_00201752 [00:01:10]file doc_00201753 [00:01:10]remove file /storage/0544/doc_00201753 [00:01:10]file doc_00201754 [00:01:10]remove file /storage/0544/doc_00201754 [00:01:10]file doc_00201755 [00:01:10]remove file /storage/0544/doc_00201755 [00:01:10]file doc_00201756 [00:01:10]remove file /storage/0544/doc_00201756 [00:01:10]file doc_00201757 [00:01:10]remove file /storage/0544/doc_00201757 [00:01:10]file doc_00201758 [00:01:10]remove file /storage/0544/doc_00201758 [00:01:10]file doc_00201759 [00:01:10]remove file /storage/0544/doc_00201759 [00:01:10]file doc_00201760 [00:01:10]remove file /storage/0544/doc_00201760 [00:01:10]file doc_00201761 [00:01:10]remove file /storage/0544/doc_00201761 [00:01:10]file doc_00201762 [00:01:10]remove file /storage/0544/doc_00201762 [00:01:10]file doc_00201763 [00:01:10]remove file /storage/0544/doc_00201763 [00:01:10]file doc_00201764 [00:01:10]remove file /storage/0544/doc_00201764 [00:01:10]file doc_00201765 [00:01:10]remove file /storage/0544/doc_00201765 [00:01:10]file doc_00201766 [00:01:10]remove file /storage/0544/doc_00201766 [00:01:10]file doc_00201767 [00:01:10]remove file /storage/0544/doc_00201767 [00:01:10]file doc_00201768 [00:01:10]remove file /storage/0544/doc_00201768 [00:01:10]file doc_00201769 [00:01:10]remove file /storage/0544/doc_00201769 [00:01:10]file doc_00201770 [00:01:10]remove file /storage/0544/doc_00201770 [00:01:10]file doc_00201771 [00:01:10]remove file /storage/0544/doc_00201771 [00:01:10]file doc_00201772 [00:01:10]remove file /storage/0544/doc_00201772 [00:01:10]file doc_00201773 [00:01:10]remove file /storage/0544/doc_00201773 [00:01:10]file doc_00201774 [00:01:10]remove file /storage/0544/doc_00201774 [00:01:10]file doc_00201775 [00:01:10]remove file /storage/0544/doc_00201775 [00:01:10]file doc_00201776 [00:01:10]remove file /storage/0544/doc_00201776 [00:01:10]file doc_00201777 [00:01:10]remove file /storage/0544/doc_00201777 [00:01:10]file doc_00201778 [00:01:10]remove file /storage/0544/doc_00201778 [00:01:10]file doc_00201779 [00:01:10]remove file /storage/0544/doc_00201779 [00:01:10]file doc_00201780 [00:01:10]remove file /storage/0544/doc_00201780 [00:01:10]file doc_00201781 [00:01:10]remove file /storage/0544/doc_00201781 [00:01:10]file doc_00201782 [00:01:10]remove file /storage/0544/doc_00201782 [00:01:10]file doc_00201783 [00:01:10]remove file /storage/0544/doc_00201783 [00:01:10]file doc_00201784 [00:01:10]remove file /storage/0544/doc_00201784 [00:01:10]file doc_00201785 [00:01:10]remove file /storage/0544/doc_00201785 [00:01:10]file doc_00201786 [00:01:10]remove file /storage/0544/doc_00201786 [00:01:10]file doc_00201787 [00:01:10]remove file /storage/0544/doc_00201787 [00:01:10]file doc_00201788 [00:01:10]remove file /storage/0544/doc_00201788 [00:01:10]file doc_00201789 [00:01:10]remove file /storage/0544/doc_00201789 [00:01:10]file doc_00201790 [00:01:10]remove file /storage/0544/doc_00201790 [00:01:10]file doc_00201791 [00:01:10]remove file /storage/0544/doc_00201791 [00:01:10]file doc_00201792 [00:01:10]remove file /storage/0544/doc_00201792 [00:01:10]file doc_00201793 [00:01:10]remove file /storage/0544/doc_00201793 [00:01:10]file doc_00201794 [00:01:10]remove file /storage/0544/doc_00201794 [00:01:10]file doc_00201795 [00:01:10]remove file /storage/0544/doc_00201795 [00:01:10]file doc_00201796 [00:01:10]remove file /storage/0544/doc_00201796 [00:01:10]file doc_00201797 [00:01:10]remove file /storage/0544/doc_00201797 [00:01:10]file doc_00201798 [00:01:10]remove file /storage/0544/doc_00201798 [00:01:10]file doc_00201799 [00:01:10]remove file /storage/0544/doc_00201799 [00:01:10]file doc_00201800 [00:01:10]remove file /storage/0544/doc_00201800 [00:01:10]file doc_00201801 [00:01:10]remove file /storage/0544/doc_00201801 [00:01:10]file doc_00201802 [00:01:10]remove file /storage/0544/doc_00201802 [00:01:10]file doc_00201803 [00:01:10]remove file /storage/0544/doc_00201803 [00:01:10]file doc_00201804 [00:01:10]remove file /storage/0544/doc_00201804 [00:01:10]file doc_00201805 [00:01:10]remove file /storage/0544/doc_00201805 [00:01:10]file doc_00201806 [00:01:10]remove file /storage/0544/doc_00201806 [00:01:10]file doc_00201807 [00:01:10]remove file /storage/0544/doc_00201807 [00:01:10]file doc_00201808 [00:01:10]remove file /storage/0544/doc_00201808 [00:01:10]file doc_00201809 [00:01:10]remove file /storage/0544/doc_00201809 [00:01:10]file doc_00201810 [00:01:10]remove file /storage/0544/doc_00201810 [00:01:10]file doc_00201811 [00:01:10]remove file /storage/0544/doc_00201811 [00:01:10]file doc_00201812 [00:01:10]remove file /storage/0544/doc_00201812 [00:01:10]file doc_00201813 [00:01:10]remove file /storage/0544/doc_00201813 [00:01:10]file doc_00201814 [00:01:10]remove file /storage/0544/doc_00201814 [00:01:10]file doc_00201815 [00:01:10]remove file /storage/0544/doc_00201815 [00:01:10]file doc_00201816 [00:01:10]remove file /storage/0544/doc_00201816 [00:01:10]file doc_00201817 [00:01:10]remove file /storage/0544/doc_00201817 [00:01:10]file doc_00201818 [00:01:10]remove file /storage/0544/doc_00201818 [00:01:10]file doc_00201819 [00:01:10]remove file /storage/0544/doc_00201819 [00:01:10]file doc_00201820 [00:01:10]remove file /storage/0544/doc_00201820 [00:01:10]file doc_00201821 [00:01:10]remove file /storage/0544/doc_00201821 [00:01:10]file doc_00201822 [00:01:10]remove file /storage/0544/doc_00201822 [00:01:10]file doc_00201823 [00:01:10]remove file /storage/0544/doc_00201823 [00:01:10]file doc_00201824 [00:01:10]remove file /storage/0544/doc_00201824 [00:01:10]file doc_00201825 [00:01:10]remove file /storage/0544/doc_00201825 [00:01:10]file doc_00201826 [00:01:10]remove file /storage/0544/doc_00201826 [00:01:10]file doc_00201827 [00:01:10]remove file /storage/0544/doc_00201827 [00:01:10]file doc_00201828 [00:01:10]remove file /storage/0544/doc_00201828 [00:01:10]file doc_00201829 [00:01:10]remove file /storage/0544/doc_00201829 [00:01:10]file doc_00201830 [00:01:10]remove file /storage/0544/doc_00201830 [00:01:10]file doc_00201831 [00:01:10]remove file /storage/0544/doc_00201831 [00:01:10]file doc_00201832 [00:01:10]remove file /storage/0544/doc_00201832 [00:01:10]file doc_00201833 [00:01:10]remove file /storage/0544/doc_00201833 [00:01:10]file doc_00201834 [00:01:10]remove file /storage/0544/doc_00201834 [00:01:10]file doc_00201835 [00:01:10]remove file /storage/0544/doc_00201835 [00:01:10]file doc_00201836 [00:01:10]remove file /storage/0544/doc_00201836 [00:01:10]file doc_00201837 [00:01:10]remove file /storage/0544/doc_00201837 [00:01:10]file doc_00201838 [00:01:10]remove file /storage/0544/doc_00201838 [00:01:10]file doc_00201839 [00:01:10]remove file /storage/0544/doc_00201839 [00:01:10]file doc_00201840 [00:01:10]remove file /storage/0544/doc_00201840 [00:01:10]file doc_00201841 [00:01:10]remove file /storage/0544/doc_00201841 [00:01:10]file doc_00201842 [00:01:10]remove file /storage/0544/doc_00201842 [00:01:10]file doc_00201843 [00:01:10]remove file /storage/0544/doc_00201843 [00:01:10]file doc_00201844 [00:01:10]remove file /storage/0544/doc_00201844 [00:01:10]file doc_00201845 [00:01:10]remove file /storage/0544/doc_00201845 [00:01:10]file doc_00201846 [00:01:10]remove file /storage/0544/doc_00201846 [00:01:10]file doc_00201847 [00:01:10]remove file /storage/0544/doc_00201847 [00:01:10]file doc_00201848 [00:01:10]remove file /storage/0544/doc_00201848 [00:01:10]file doc_00201849 [00:01:10]remove file /storage/0544/doc_00201849 [00:01:10]file doc_00201850 [00:01:10]remove file /storage/0544/doc_00201850 [00:01:10]file doc_00201851 [00:01:10]remove file /storage/0544/doc_00201851 [00:01:10]file doc_00201852 [00:01:10]remove file /storage/0544/doc_00201852 [00:01:10]file doc_00201853 [00:01:10]remove file /storage/0544/doc_00201853 [00:01:10]file doc_00201854 [00:01:10]remove file /storage/0544/doc_00201854 [00:01:10]file doc_00201855 [00:01:10]remove file /storage/0544/doc_00201855 [00:01:10]file doc_00201856 [00:01:10]remove file /storage/0544/doc_00201856 [00:01:10]file doc_00201857 [00:01:10]remove file /storage/0544/doc_00201857 [00:01:10]file doc_00201858 [00:01:10]remove file /storage/0544/doc_00201858 [00:01:10]file doc_00201859 [00:01:10]remove file /storage/0544/doc_00201859 [00:01:10]file doc_00201860 [00:01:10]remove file /storage/0544/doc_00201860 [00:01:10]file doc_00201861 [00:01:10]remove file /storage/0544/doc_00201861 [00:01:10]file doc_00201862 [00:01:10]remove file /storage/0544/doc_00201862 [00:01:10]file doc_00201863 [00:01:10]remove file /storage/0544/doc_00201863 [00:01:10]file doc_00201864 [00:01:10]remove file /storage/0544/doc_00201864 [00:01:10]file doc_00201865 [00:01:10]remove file /storage/0544/doc_00201865 [00:01:10]file doc_00201866 [00:01:10]remove file /storage/0544/doc_00201866 [00:01:10]file doc_00201867 [00:01:10]remove file /storage/0544/doc_00201867 [00:01:10]file doc_00201868 [00:01:10]remove file /storage/0544/doc_00201868 [00:01:10]file doc_00201869 [00:01:10]remove file /storage/0544/doc_00201869 [00:01:10]file doc_00201870 [00:01:10]remove file /storage/0544/doc_00201870 [00:01:10]file doc_00201871 [00:01:10]remove file /storage/0544/doc_00201871 [00:01:10]file doc_00201872 [00:01:10]remove file /storage/0544/doc_00201872 [00:01:10]file doc_00201873 [00:01:10]remove file /storage/0544/doc_00201873 [00:01:10]file doc_00201874 [00:01:10]remove file /storage/0544/doc_00201874 [00:01:10]file doc_00201875 [00:01:10]remove file /storage/0544/doc_00201875 [00:01:10]file doc_00201876 [00:01:10]remove file /storage/0544/doc_00201876 [00:01:10]file doc_00201877 [00:01:10]remove file /storage/0544/doc_00201877 [00:01:10]file doc_00201878 [00:01:10]remove file /storage/0544/doc_00201878 [00:01:10]file doc_00201879 [00:01:10]remove file /storage/0544/doc_00201879 [00:01:10]file doc_00201880 [00:01:10]remove file /storage/0544/doc_00201880 [00:01:10]file doc_00201881 [00:01:10]remove file /storage/0544/doc_00201881 [00:01:10]file doc_00201882 [00:01:10]remove file /storage/0544/doc_00201882 [00:01:10]file doc_00201883 [00:01:10]remove file /storage/0544/doc_00201883 [00:01:10]file doc_00201884 [00:01:10]remove file /storage/0544/doc_00201884 [00:01:10]file doc_00201885 [00:01:10]remove file /storage/0544/doc_00201885 [00:01:10]file doc_00201886 [00:01:10]remove file /storage/0544/doc_00201886 [00:01:10]file doc_00201887 [00:01:10]remove file /storage/0544/doc_00201887 [00:01:10]file doc_00201888 [00:01:10]remove file /storage/0544/doc_00201888 [00:01:10]file doc_00201889 [00:01:10]remove file /storage/0544/doc_00201889 [00:01:10]file doc_00201890 [00:01:10]remove file /storage/0544/doc_00201890 [00:01:10]OFD Sender: No OFD packet to send [00:01:10]file doc_00201891 [00:01:10]remove file /storage/0544/doc_00201891 [00:01:10]file doc_00201892 [00:01:10]remove file /storage/0544/doc_00201892 [00:01:10]file doc_00201893 [00:01:10]remove file /storage/0544/doc_00201893 [00:01:10]file doc_00201894 [00:01:10]remove file /storage/0544/doc_00201894 [00:01:10]file doc_00201895 [00:01:10]remove file /storage/0544/doc_00201895 [00:01:10]file doc_00201896 [00:01:10]remove file /storage/0544/doc_00201896 [00:01:10]file doc_00201897 [00:01:10]remove file /storage/0544/doc_00201897 [00:01:11]file doc_00201898 [00:01:11]remove file /storage/0544/doc_00201898 [00:01:11]file doc_00201899 [00:01:11]remove file /storage/0544/doc_00201899 [00:01:11]file doc_00201900 [00:01:11]remove file /storage/0544/doc_00201900 [00:01:11]file doc_00201901 [00:01:11]remove file /storage/0544/doc_00201901 [00:01:11]file doc_00201902 [00:01:11]remove file /storage/0544/doc_00201902 [00:01:11]file doc_00201903 [00:01:11]remove file /storage/0544/doc_00201903 [00:01:11]file doc_00201904 [00:01:11]remove file /storage/0544/doc_00201904 [00:01:11]file doc_00201905 [00:01:11]remove file /storage/0544/doc_00201905 [00:01:11]file doc_00201906 [00:01:11]remove file /storage/0544/doc_00201906 [00:01:11]file doc_00201907 [00:01:11]remove file /storage/0544/doc_00201907 [00:01:11]file doc_00201908 [00:01:11]remove file /storage/0544/doc_00201908 [00:01:11]file doc_00201909 [00:01:11]remove file /storage/0544/doc_00201909 [00:01:11]file doc_00201910 [00:01:11]remove file /storage/0544/doc_00201910 [00:01:11]file doc_00201911 [00:01:11]remove file /storage/0544/doc_00201911 [00:01:11]file doc_00201912 [00:01:11]remove file /storage/0544/doc_00201912 [00:01:11]file doc_00201913 [00:01:11]remove file /storage/0544/doc_00201913 [00:01:11]file doc_00201914 [00:01:11]remove file /storage/0544/doc_00201914 [00:01:11]file doc_00201915 [00:01:11]remove file /storage/0544/doc_00201915 [00:01:11]file doc_00201916 [00:01:11]remove file /storage/0544/doc_00201916 [00:01:11]file doc_00201917 [00:01:11]remove file /storage/0544/doc_00201917 [00:01:11]file doc_00201918 [00:01:11]remove file /storage/0544/doc_00201918 [00:01:11]file doc_00201919 [00:01:11]remove file /storage/0544/doc_00201919 [00:01:11]file doc_00201920 [00:01:11]remove file /storage/0544/doc_00201920 [00:01:11]file doc_00201921 [00:01:11]remove file /storage/0544/doc_00201921 [00:01:11]file doc_00201922 [00:01:11]remove file /storage/0544/doc_00201922 [00:01:11]file doc_00201923 [00:01:11]remove file /storage/0544/doc_00201923 [00:01:11]file doc_00201924 [00:01:11]remove file /storage/0544/doc_00201924 [00:01:11]file doc_00201925 [00:01:11]remove file /storage/0544/doc_00201925 [00:01:11]file doc_00201926 [00:01:11]remove file /storage/0544/doc_00201926 [00:01:11]file doc_00201927 [00:01:11]remove file /storage/0544/doc_00201927 [00:01:11]file doc_00201928 [00:01:11]remove file /storage/0544/doc_00201928 [00:01:11]file doc_00201929 [00:01:11]remove file /storage/0544/doc_00201929 [00:01:11]file doc_00201930 [00:01:11]remove file /storage/0544/doc_00201930 [00:01:11]file doc_00201931 [00:01:11]remove file /storage/0544/doc_00201931 [00:01:11]file doc_00201932 [00:01:11]remove file /storage/0544/doc_00201932 [00:01:11]file doc_00201933 [00:01:11]remove file /storage/0544/doc_00201933 [00:01:11]file doc_00201934 [00:01:11]remove file /storage/0544/doc_00201934 [00:01:11]file doc_00201935 [00:01:11]remove file /storage/0544/doc_00201935 [00:01:11]file doc_00201936 [00:01:11]remove file /storage/0544/doc_00201936 [00:01:11]file doc_00201937 [00:01:11]remove file /storage/0544/doc_00201937 [00:01:11]file doc_00201938 [00:01:11]remove file /storage/0544/doc_00201938 [00:01:11]file doc_00201939 [00:01:11]remove file /storage/0544/doc_00201939 [00:01:11]file doc_00201940 [00:01:11]remove file /storage/0544/doc_00201940 [00:01:11]file doc_00201941 [00:01:11]remove file /storage/0544/doc_00201941 [00:01:11]file doc_00201942 [00:01:11]remove file /storage/0544/doc_00201942 [00:01:11]file doc_00201943 [00:01:11]remove file /storage/0544/doc_00201943 [00:01:11]file doc_00201944 [00:01:11]remove file /storage/0544/doc_00201944 [00:01:11]file doc_00201945 [00:01:11]remove file /storage/0544/doc_00201945 [00:01:11]file doc_00201946 [00:01:11]remove file /storage/0544/doc_00201946 [00:01:11]file doc_00201947 [00:01:11]remove file /storage/0544/doc_00201947 [00:01:11]file doc_00201948 [00:01:11]remove file /storage/0544/doc_00201948 [00:01:11]file doc_00201949 [00:01:11]remove file /storage/0544/doc_00201949 [00:01:11]file doc_00201950 [00:01:11]remove file /storage/0544/doc_00201950 [00:01:11]file doc_00201951 [00:01:11]remove file /storage/0544/doc_00201951 [00:01:11]file doc_00201952 [00:01:11]remove file /storage/0544/doc_00201952 [00:01:11]file doc_00201953 [00:01:11]remove file /storage/0544/doc_00201953 [00:01:11]file doc_00201954 [00:01:11]remove file /storage/0544/doc_00201954 [00:01:11]file doc_00201955 [00:01:11]remove file /storage/0544/doc_00201955 [00:01:11]file doc_00201956 [00:01:11]remove file /storage/0544/doc_00201956 [00:01:11]file doc_00201957 [00:01:11]remove file /storage/0544/doc_00201957 [00:01:11]file doc_00201958 [00:01:11]remove file /storage/0544/doc_00201958 [00:01:11]file doc_00201959 [00:01:11]remove file /storage/0544/doc_00201959 [00:01:11]file doc_00201960 [00:01:11]remove file /storage/0544/doc_00201960 [00:01:11]file doc_00201961 [00:01:11]remove file /storage/0544/doc_00201961 [00:01:11]file doc_00201962 [00:01:11]remove file /storage/0544/doc_00201962 [00:01:11]file doc_00201963 [00:01:11]remove file /storage/0544/doc_00201963 [00:01:11]file doc_00201964 [00:01:11]remove file /storage/0544/doc_00201964 [00:01:11]file doc_00201965 [00:01:11]remove file /storage/0544/doc_00201965 [00:01:11]file doc_00201966 [00:01:11]remove file /storage/0544/doc_00201966 [00:01:11]file doc_00201967 [00:01:11]remove file /storage/0544/doc_00201967 [00:01:11]file doc_00201968 [00:01:11]remove file /storage/0544/doc_00201968 [00:01:11]file doc_00201969 [00:01:11]remove file /storage/0544/doc_00201969 [00:01:11]file doc_00201970 [00:01:11]remove file /storage/0544/doc_00201970 [00:01:11]file doc_00201971 [00:01:11]remove file /storage/0544/doc_00201971 [00:01:11]file doc_00201972 [00:01:11]remove file /storage/0544/doc_00201972 [00:01:11]file doc_00201973 [00:01:11]remove file /storage/0544/doc_00201973 [00:01:11]file doc_00201974 [00:01:11]remove file /storage/0544/doc_00201974 [00:01:11]file doc_00201975 [00:01:11]remove file /storage/0544/doc_00201975 [00:01:11]file doc_00201976 [00:01:11]remove file /storage/0544/doc_00201976 [00:01:11]file doc_00201977 [00:01:11]remove file /storage/0544/doc_00201977 [00:01:11]file doc_00201978 [00:01:11]remove file /storage/0544/doc_00201978 [00:01:11]file doc_00201979 [00:01:11]remove file /storage/0544/doc_00201979 [00:01:11]file doc_00201980 [00:01:11]remove file /storage/0544/doc_00201980 [00:01:11]file doc_00201981 [00:01:11]remove file /storage/0544/doc_00201981 [00:01:11]file doc_00201982 [00:01:11]remove file /storage/0544/doc_00201982 [00:01:11]file doc_00201983 [00:01:11]remove file /storage/0544/doc_00201983 [00:01:11]file doc_00201984 [00:01:11]remove file /storage/0544/doc_00201984 [00:01:11]file doc_00201985 [00:01:11]remove file /storage/0544/doc_00201985 [00:01:11]file doc_00201986 [00:01:11]remove file /storage/0544/doc_00201986 [00:01:11]file doc_00201987 [00:01:11]remove file /storage/0544/doc_00201987 [00:01:11]file doc_00201988 [00:01:11]remove file /storage/0544/doc_00201988 [00:01:11]file doc_00201989 [00:01:11]remove file /storage/0544/doc_00201989 [00:01:11]file doc_00201990 [00:01:11]remove file /storage/0544/doc_00201990 [00:01:11]file doc_00201991 [00:01:11]remove file /storage/0544/doc_00201991 [00:01:11]file doc_00201992 [00:01:11]remove file /storage/0544/doc_00201992 [00:01:11]file doc_00201993 [00:01:11]remove file /storage/0544/doc_00201993 [00:01:11]file doc_00201994 [00:01:11]remove file /storage/0544/doc_00201994 [00:01:11]file doc_00201995 [00:01:11]remove file /storage/0544/doc_00201995 [00:01:11]file doc_00201996 [00:01:11]remove file /storage/0544/doc_00201996 [00:01:11]file doc_00201997 [00:01:11]remove file /storage/0544/doc_00201997 [00:01:11]file doc_00201998 [00:01:11]remove file /storage/0544/doc_00201998 [00:01:11]file doc_00201999 [00:01:11]remove file /storage/0544/doc_00201999 [00:01:11]file doc_00202000 [00:01:11]remove file /storage/0544/doc_00202000 [00:01:11]file doc_00202001 [00:01:11]remove file /storage/0544/doc_00202001 [00:01:11]file doc_00202002 [00:01:11]remove file /storage/0544/doc_00202002 [00:01:11]file doc_00202003 [00:01:11]remove file /storage/0544/doc_00202003 [00:01:11]file doc_00202004 [00:01:11]remove file /storage/0544/doc_00202004 [00:01:11]file doc_00202005 [00:01:11]remove file /storage/0544/doc_00202005 [00:01:11]file doc_00202006 [00:01:11]remove file /storage/0544/doc_00202006 [00:01:11]file doc_00202007 [00:01:11]remove file /storage/0544/doc_00202007 [00:01:11]file doc_00202008 [00:01:11]remove file /storage/0544/doc_00202008 [00:01:11]file doc_00202009 [00:01:11]remove file /storage/0544/doc_00202009 [00:01:11]file doc_00202010 [00:01:11]remove file /storage/0544/doc_00202010 [00:01:11]file doc_00202011 [00:01:11]remove file /storage/0544/doc_00202011 [00:01:11]file doc_00202012 [00:01:11]remove file /storage/0544/doc_00202012 [00:01:11]file doc_00202013 [00:01:11]remove file /storage/0544/doc_00202013 [00:01:11]file doc_00202014 [00:01:11]remove file /storage/0544/doc_00202014 [00:01:11]file doc_00202015 [00:01:11]remove file /storage/0544/doc_00202015 [00:01:11]file doc_00202016 [00:01:11]remove file /storage/0544/doc_00202016 [00:01:11]file doc_00202017 [00:01:11]remove file /storage/0544/doc_00202017 [00:01:11]file doc_00202018 [00:01:11]remove file /storage/0544/doc_00202018 [00:01:11]file doc_00202019 [00:01:11]remove file /storage/0544/doc_00202019 [00:01:11]file doc_00202020 [00:01:11]remove file /storage/0544/doc_00202020 [00:01:11]file doc_00202021 [00:01:11]remove file /storage/0544/doc_00202021 [00:01:11]file doc_00202022 [00:01:11]remove file /storage/0544/doc_00202022 [00:01:11]file doc_00202023 [00:01:11]remove file /storage/0544/doc_00202023 [00:01:11]file doc_00202024 [00:01:11]remove file /storage/0544/doc_00202024 [00:01:11]file doc_00202025 [00:01:11]remove file /storage/0544/doc_00202025 [00:01:11]file doc_00202026 [00:01:11]remove file /storage/0544/doc_00202026 [00:01:11]file doc_00202027 [00:01:11]remove file /storage/0544/doc_00202027 [00:01:11]file doc_00202028 [00:01:11]remove file /storage/0544/doc_00202028 [00:01:11]file doc_00202029 [00:01:11]remove file /storage/0544/doc_00202029 [00:01:11]file doc_00202030 [00:01:11]remove file /storage/0544/doc_00202030 [00:01:11]file doc_00202031 [00:01:11]remove file /storage/0544/doc_00202031 [00:01:11]file doc_00202032 [00:01:11]remove file /storage/0544/doc_00202032 [00:01:11]file doc_00202033 [00:01:11]remove file /storage/0544/doc_00202033 [00:01:11]file doc_00202034 [00:01:11]remove file /storage/0544/doc_00202034 [00:01:11]file doc_00202035 [00:01:11]remove file /storage/0544/doc_00202035 [00:01:11]file doc_00202036 [00:01:11]remove file /storage/0544/doc_00202036 [00:01:11]file doc_00202037 [00:01:11]remove file /storage/0544/doc_00202037 [00:01:11]file doc_00202038 [00:01:11]remove file /storage/0544/doc_00202038 [00:01:11]file doc_00202039 [00:01:11]remove file /storage/0544/doc_00202039 [00:01:11]file doc_00202040 [00:01:11]remove file /storage/0544/doc_00202040 [00:01:11]file doc_00202041 [00:01:11]remove file /storage/0544/doc_00202041 [00:01:11]file doc_00202042 [00:01:11]remove file /storage/0544/doc_00202042 [00:01:11]file doc_00202043 [00:01:11]remove file /storage/0544/doc_00202043 [00:01:11]file doc_00202044 [00:01:11]remove file /storage/0544/doc_00202044 [00:01:11]file doc_00202045 [00:01:11]remove file /storage/0544/doc_00202045 [00:01:11]file doc_00202046 [00:01:11]remove file /storage/0544/doc_00202046 [00:01:11]file doc_00202047 [00:01:11]remove file /storage/0544/doc_00202047 [00:01:11]file doc_00202048 [00:01:11]remove file /storage/0544/doc_00202048 [00:01:11]file doc_00202049 [00:01:11]remove file /storage/0544/doc_00202049 [00:01:11]file doc_00202050 [00:01:11]remove file /storage/0544/doc_00202050 [00:01:11]file doc_00202051 [00:01:11]remove file /storage/0544/doc_00202051 [00:01:11]file doc_00202052 [00:01:11]remove file /storage/0544/doc_00202052 [00:01:11]file doc_00202053 [00:01:11]remove file /storage/0544/doc_00202053 [00:01:11]file doc_00202054 [00:01:11]remove file /storage/0544/doc_00202054 [00:01:11]file doc_00202055 [00:01:11]remove file /storage/0544/doc_00202055 [00:01:11]file doc_00202056 [00:01:11]remove file /storage/0544/doc_00202056 [00:01:11]file doc_00202057 [00:01:11]remove file /storage/0544/doc_00202057 [00:01:11]file doc_00202058 [00:01:11]remove file /storage/0544/doc_00202058 [00:01:11]file doc_00202059 [00:01:11]remove file /storage/0544/doc_00202059 [00:01:11]file doc_00202060 [00:01:11]remove file /storage/0544/doc_00202060 [00:01:11]file doc_00202061 [00:01:11]remove file /storage/0544/doc_00202061 [00:01:11]file doc_00202062 [00:01:11]remove file /storage/0544/doc_00202062 [00:01:11]file doc_00202063 [00:01:11]remove file /storage/0544/doc_00202063 [00:01:11]file doc_00202064 [00:01:11]remove file /storage/0544/doc_00202064 [00:01:11]file doc_00202065 [00:01:11]remove file /storage/0544/doc_00202065 [00:01:11]file doc_00202066 [00:01:11]remove file /storage/0544/doc_00202066 [00:01:11]file doc_00202067 [00:01:11]remove file /storage/0544/doc_00202067 [00:01:11]file doc_00202068 [00:01:11]remove file /storage/0544/doc_00202068 [00:01:11]file doc_00202069 [00:01:11]remove file /storage/0544/doc_00202069 [00:01:11]file doc_00202070 [00:01:11]remove file /storage/0544/doc_00202070 [00:01:11]file doc_00202071 [00:01:11]remove file /storage/0544/doc_00202071 [00:01:11]file doc_00202072 [00:01:11]remove file /storage/0544/doc_00202072 [00:01:11]file doc_00202073 [00:01:11]remove file /storage/0544/doc_00202073 [00:01:11]file doc_00202074 [00:01:11]remove file /storage/0544/doc_00202074 [00:01:11]file doc_00202075 [00:01:11]remove file /storage/0544/doc_00202075 [00:01:11]file doc_00202076 [00:01:11]remove file /storage/0544/doc_00202076 [00:01:11]file doc_00202077 [00:01:11]remove file /storage/0544/doc_00202077 [00:01:11]file doc_00202078 [00:01:11]remove file /storage/0544/doc_00202078 [00:01:11]file doc_00202079 [00:01:11]remove file /storage/0544/doc_00202079 [00:01:11]file doc_00202080 [00:01:11]remove file /storage/0544/doc_00202080 [00:01:11]file doc_00202081 [00:01:11]remove file /storage/0544/doc_00202081 [00:01:11]file doc_00202082 [00:01:11]remove file /storage/0544/doc_00202082 [00:01:11]file doc_00202083 [00:01:11]remove file /storage/0544/doc_00202083 [00:01:11]file doc_00202084 [00:01:11]remove file /storage/0544/doc_00202084 [00:01:11]file doc_00202085 [00:01:11]remove file /storage/0544/doc_00202085 [00:01:11]file doc_00202086 [00:01:11]remove file /storage/0544/doc_00202086 [00:01:11]file doc_00202087 [00:01:11]remove file /storage/0544/doc_00202087 [00:01:11]file doc_00202088 [00:01:11]remove file /storage/0544/doc_00202088 [00:01:11]file doc_00202089 [00:01:11]remove file /storage/0544/doc_00202089 [00:01:11]file doc_00202090 [00:01:11]remove file /storage/0544/doc_00202090 [00:01:11]file doc_00202091 [00:01:11]remove file /storage/0544/doc_00202091 [00:01:11]file doc_00202092 [00:01:11]remove file /storage/0544/doc_00202092 [00:01:11]file doc_00202093 [00:01:11]remove file /storage/0544/doc_00202093 [00:01:11]file doc_00202094 [00:01:11]remove file /storage/0544/doc_00202094 [00:01:11]file doc_00202095 [00:01:11]remove file /storage/0544/doc_00202095 [00:01:11]file doc_00202096 [00:01:11]remove file /storage/0544/doc_00202096 [00:01:11]file doc_00202097 [00:01:11]remove file /storage/0544/doc_00202097 [00:01:11]file doc_00202098 [00:01:11]remove file /storage/0544/doc_00202098 [00:01:11]file doc_00202099 [00:01:11]remove file /storage/0544/doc_00202099 [00:01:11]file doc_00202100 [00:01:11]remove file /storage/0544/doc_00202100 [00:01:11]file doc_00202101 [00:01:11]remove file /storage/0544/doc_00202101 [00:01:11]file doc_00202102 [00:01:11]remove file /storage/0544/doc_00202102 [00:01:11]file doc_00202103 [00:01:11]remove file /storage/0544/doc_00202103 [00:01:11]file doc_00202104 [00:01:11]remove file /storage/0544/doc_00202104 [00:01:11]file doc_00202105 [00:01:11]remove file /storage/0544/doc_00202105 [00:01:11]file doc_00202106 [00:01:11]remove file /storage/0544/doc_00202106 [00:01:11]file doc_00202107 [00:01:11]remove file /storage/0544/doc_00202107 [00:01:11]file doc_00202108 [00:01:11]remove file /storage/0544/doc_00202108 [00:01:11]file doc_00202109 [00:01:11]remove file /storage/0544/doc_00202109 [00:01:11]file doc_00202110 [00:01:11]remove file /storage/0544/doc_00202110 [00:01:11]file doc_00202111 [00:01:11]remove file /storage/0544/doc_00202111 [00:01:11]file doc_00202112 [00:01:11]remove file /storage/0544/doc_00202112 [00:01:11]file doc_00202113 [00:01:11]remove file /storage/0544/doc_00202113 [00:01:11]file doc_00202114 [00:01:11]remove file /storage/0544/doc_00202114 [00:01:11]file doc_00202115 [00:01:11]remove file /storage/0544/doc_00202115 [00:01:11]file doc_00202116 [00:01:11]remove file /storage/0544/doc_00202116 [00:01:11]file doc_00202117 [00:01:11]remove file /storage/0544/doc_00202117 [00:01:11]file doc_00202118 [00:01:11]remove file /storage/0544/doc_00202118 [00:01:11]file doc_00202119 [00:01:11]remove file /storage/0544/doc_00202119 [00:01:11]file doc_00202120 [00:01:11]remove file /storage/0544/doc_00202120 [00:01:11]file doc_00202121 [00:01:11]remove file /storage/0544/doc_00202121 [00:01:11]file doc_00202122 [00:01:11]remove file /storage/0544/doc_00202122 [00:01:11]file doc_00202123 [00:01:11]remove file /storage/0544/doc_00202123 [00:01:11]file doc_00202124 [00:01:11]remove file /storage/0544/doc_00202124 [00:01:11]file doc_00202125 [00:01:11]remove file /storage/0544/doc_00202125 [00:01:11]file doc_00202126 [00:01:11]remove file /storage/0544/doc_00202126 [00:01:11]file doc_00202127 [00:01:11]remove file /storage/0544/doc_00202127 [00:01:12]file doc_00202128 [00:01:12]remove file /storage/0544/doc_00202128 [00:01:12]file doc_00202129 [00:01:12]remove file /storage/0544/doc_00202129 [00:01:12]file doc_00202130 [00:01:12]remove file /storage/0544/doc_00202130 [00:01:12]file doc_00202131 [00:01:12]remove file /storage/0544/doc_00202131 [00:01:12]file doc_00202132 [00:01:12]remove file /storage/0544/doc_00202132 [00:01:12]file doc_00202133 [00:01:12]remove file /storage/0544/doc_00202133 [00:01:12]file doc_00202134 [00:01:12]remove file /storage/0544/doc_00202134 [00:01:12]file doc_00202135 [00:01:12]remove file /storage/0544/doc_00202135 [00:01:12]file doc_00202136 [00:01:12]remove file /storage/0544/doc_00202136 [00:01:12]file doc_00202137 [00:01:12]remove file /storage/0544/doc_00202137 [00:01:12]file doc_00202138 [00:01:12]remove file /storage/0544/doc_00202138 [00:01:12]file doc_00202139 [00:01:12]remove file /storage/0544/doc_00202139 [00:01:12]file doc_00202140 [00:01:12]remove file /storage/0544/doc_00202140 [00:01:12]file doc_00202141 [00:01:12]remove file /storage/0544/doc_00202141 [00:01:12]file doc_00202142 [00:01:12]remove file /storage/0544/doc_00202142 [00:01:12]file doc_00202143 [00:01:12]remove file /storage/0544/doc_00202143 [00:01:12]file doc_00202144 [00:01:12]remove file /storage/0544/doc_00202144 [00:01:12]file doc_00202145 [00:01:12]remove file /storage/0544/doc_00202145 [00:01:12]file doc_00202146 [00:01:12]remove file /storage/0544/doc_00202146 [00:01:12]file doc_00202147 [00:01:12]remove file /storage/0544/doc_00202147 [00:01:12]file doc_00202148 [00:01:12]remove file /storage/0544/doc_00202148 [00:01:12]file doc_00202149 [00:01:12]remove file /storage/0544/doc_00202149 [00:01:12]file doc_00202150 [00:01:12]remove file /storage/0544/doc_00202150 [00:01:12]file doc_00202151 [00:01:12]remove file /storage/0544/doc_00202151 [00:01:12]file doc_00202152 [00:01:12]remove file /storage/0544/doc_00202152 [00:01:12]file doc_00202153 [00:01:12]remove file /storage/0544/doc_00202153 [00:01:12]file doc_00202154 [00:01:12]remove file /storage/0544/doc_00202154 [00:01:12]file doc_00202155 [00:01:12]remove file /storage/0544/doc_00202155 [00:01:12]file doc_00202156 [00:01:12]remove file /storage/0544/doc_00202156 [00:01:12]file doc_00202157 [00:01:12]remove file /storage/0544/doc_00202157 [00:01:12]file doc_00202158 [00:01:12]remove file /storage/0544/doc_00202158 [00:01:12]file doc_00202159 [00:01:12]remove file /storage/0544/doc_00202159 [00:01:12]file doc_00202160 [00:01:12]remove file /storage/0544/doc_00202160 [00:01:12]file doc_00202161 [00:01:12]remove file /storage/0544/doc_00202161 [00:01:12]file doc_00202162 [00:01:12]remove file /storage/0544/doc_00202162 [00:01:12]file doc_00202163 [00:01:12]remove file /storage/0544/doc_00202163 [00:01:12]file doc_00202164 [00:01:12]remove file /storage/0544/doc_00202164 [00:01:12]file doc_00202165 [00:01:12]remove file /storage/0544/doc_00202165 [00:01:12]file doc_00202166 [00:01:12]remove file /storage/0544/doc_00202166 [00:01:12]file doc_00202167 [00:01:12]remove file /storage/0544/doc_00202167 [00:01:12]file doc_00202168 [00:01:12]remove file /storage/0544/doc_00202168 [00:01:12]file doc_00202169 [00:01:12]remove file /storage/0544/doc_00202169 [00:01:12]file doc_00202170 [00:01:12]remove file /storage/0544/doc_00202170 [00:01:12]file doc_00202171 [00:01:12]remove file /storage/0544/doc_00202171 [00:01:12]file doc_00202172 [00:01:12]remove file /storage/0544/doc_00202172 [00:01:12]file doc_00202173 [00:01:12]remove file /storage/0544/doc_00202173 [00:01:12]file doc_00202174 [00:01:12]remove file /storage/0544/doc_00202174 [00:01:12]file doc_00202175 [00:01:12]remove file /storage/0544/doc_00202175 [00:01:12]file doc_00202176 [00:01:12]remove file /storage/0544/doc_00202176 [00:01:12]file doc_00202177 [00:01:12]remove file /storage/0544/doc_00202177 [00:01:12]file doc_00202178 [00:01:12]remove file /storage/0544/doc_00202178 [00:01:12]file doc_00202179 [00:01:12]remove file /storage/0544/doc_00202179 [00:01:12]file doc_00202180 [00:01:12]remove file /storage/0544/doc_00202180 [00:01:12]file doc_00202181 [00:01:12]remove file /storage/0544/doc_00202181 [00:01:12]file doc_00202182 [00:01:12]remove file /storage/0544/doc_00202182 [00:01:12]file doc_00202183 [00:01:12]remove file /storage/0544/doc_00202183 [00:01:12]file doc_00202184 [00:01:12]remove file /storage/0544/doc_00202184 [00:01:12]file doc_00202185 [00:01:12]remove file /storage/0544/doc_00202185 [00:01:12]file doc_00202186 [00:01:12]remove file /storage/0544/doc_00202186 [00:01:12]file doc_00202187 [00:01:12]remove file /storage/0544/doc_00202187 [00:01:12]file doc_00202188 [00:01:12]remove file /storage/0544/doc_00202188 [00:01:12]file doc_00202189 [00:01:12]remove file /storage/0544/doc_00202189 [00:01:12]file doc_00202190 [00:01:12]remove file /storage/0544/doc_00202190 [00:01:12]file doc_00202191 [00:01:12]remove file /storage/0544/doc_00202191 [00:01:12]file doc_00202192 [00:01:12]remove file /storage/0544/doc_00202192 [00:01:12]file doc_00202193 [00:01:12]remove file /storage/0544/doc_00202193 [00:01:12]file doc_00202194 [00:01:12]remove file /storage/0544/doc_00202194 [00:01:12]file doc_00202195 [00:01:12]remove file /storage/0544/doc_00202195 [00:01:12]file doc_00202196 [00:01:12]remove file /storage/0544/doc_00202196 [00:01:12]file doc_00202197 [00:01:12]remove file /storage/0544/doc_00202197 [00:01:12]file doc_00202198 [00:01:12]remove file /storage/0544/doc_00202198 [00:01:12]file doc_00202199 [00:01:12]remove file /storage/0544/doc_00202199 [00:01:12]remove dir /storage/0544 [00:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=265 [00:01:12]tlvbuf is 00C39590 [00:01:12]SAM_PROTO_ClearQueue [00:01:12]wFMCommunicate request_size=4 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 09 00 00 [00:01:12]Write to MH i2c: E2 08 00 82 04 80 09 00 00 00 00 00 00 F8 [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:12]Read from MH i2c: E2 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 03 00 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [00:01:12]RAPDU: 90 00 [00:01:12]wFMCommunicate OK [00:01:12]SAM_PROTO_ClearQueue done [00:01:12]KKMCreateOFDPacket [00:01:12]OFDProtocolAddRootSTLVToBuf [00:01:12]FM_MakeSignedData [00:01:12]FM_MakeSignedData [00:01:12]SAM_PROTO_SignData [00:01:12]wFMCommunicate request_size=4 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 0D 01 02 [00:01:12]Write to MH i2c: E2 08 00 83 04 80 0D 01 02 00 00 00 00 00 [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:12]Read from MH i2c: E2 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 03 00 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [00:01:12]RAPDU: 90 00 [00:01:12]wFMCommunicate OK [00:01:12]wFMCommunicate request_size=255 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 0D 02 02 FA 02 00 09 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 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 46 D4 1E 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 15 03 00 11 04 10 00 30 30 30 30 30 30 30 [00:01:12]Write to MH i2c: E2 02 01 84 04 80 0D 02 02 FA 00 02 00 09 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 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 46 D4 1E 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 15 03 00 11 04 10 00 30 30 30 30 30 30 30 00 00 68 [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 [00:01:12]MH_I2C_Read... [00:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:12]Read from MH i2c: E2 03 00 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [00:01:12]RAPDU: 90 00 [00:01:12]wFMCommunicate OK [00:01:12]wFMCommunicate request_size=24 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 0D 02 02 13 30 30 30 38 37 31 37 35 36 35 04 06 00 A5 B6 AD C0 74 95 [00:01:12]Write to MH i2c: E2 1B 00 85 04 80 0D 02 02 13 00 30 30 30 38 37 31 37 35 36 35 04 06 00 A5 B6 AD C0 74 95 00 00 0B [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:12]Read from MH i2c: E2 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 03 00 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [00:01:12]RAPDU: 90 00 [00:01:12]wFMCommunicate OK [00:01:12]wFMCommunicate request_size=4 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 0D 03 02 [00:01:12]Write to MH i2c: E2 08 00 86 04 80 0D 03 02 00 00 00 00 05 [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:12]Read from MH i2c: E2 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 0B 00 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 0B 00 86 04 00 A2 31 0A 29 DD 8B CF A2 90 00 E5 [00:01:12]RAPDU: A2 31 0A 29 DD 8B CF A2 90 00 [00:01:12]wFMCommunicate OK [00:01:12]SAM_PROTO_SignData done [00:01:12]FM_MakeSignedData done [00:01:12]CreateOFDProtocolMessage [00:01:12]wFMCommunicate request_size=4 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 11 00 00 [00:01:12]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:13]Read from MH i2c: E2 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 17 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5A [00:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:01:13]wFMCommunicate OK [00:01:13]CreateOFDProtocolMessage done [00:01:13]OFDSenderStorePacket 202200 [00:01:13]StoreOFDPacket docnum=202200 [00:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 1D 01 00 00 84 7B 15 01 A3 9F 5A 02 01 00 02 00 09 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 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 46 D4 1E 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 A5 B6 AD C0 74 95 A2 31 0A 29 DD 8B CF A2 [00:01:13]CheckFolder [00:01:13]dirname=/storage/ofd_packets [00:01:13]CheckFolder done [00:01:13]ProducePacketName [00:01:13]name=ofd_packets/00202200 [00:01:13]NVStorageSaveData ofd_packets/00202200 [00:01:13]File name is /storage/ofd_packets/00202200 [00:01:13]Write 315 bytes [00:01:13]NVStorageSaveData done [00:01:13]OFDSenderStorePacket done [00:01:13]KKMCreateOFDPacket done [00:01:13]NVStorageSaveData kkm_last_timestamp [00:01:13]File name is /storage/kkm_last_timestamp [00:01:13]Write 4 bytes [00:01:13]NVStorageSaveData done [00:01:13]ExternCall_PrintAddStr [00:01:13]wPrintStart [00:01:13]Write to MH i2c: 01 00 00 88 04 8C [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: 01 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: 01 07 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 FF 0F A1 [00:01:13]RasterBufferAndPrint [00:01:13]line Отчет об открытии смены [00:01:13]line ФФД: 1.0 [00:01:13]line ИНН: 02508201610067 [00:01:13]line Кассир: Шайбек уулу У. [00:01:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:01:13]line Место: АЗС № 171 "Партнер Нефть" [00:01:13]line 28.10.2024 00:01 [00:01:13]line Смена: 545 [00:01:13]line РНМ: 0000000000091777 [00:01:13]line ЗНМ: 0300000109 [00:01:13]line ФД: 202200 [00:01:13]line ФМ: 0000000000871756 [00:01:13]line ФПД: 182204017702037 [00:01:13]written 0, free lines is 4095 [00:01:13]OFD Sender: Processing packet 202200 [packets to send 114, broken 113] [00:01:13]ProducePacketName [00:01:13]name=ofd_packets/00202200 [00:01:13]OFD Sender: To server: pG, [00:01:13]CommunicateWithHost lk.salyk.kg:30040 [00:01:13]ConnectInit lk.salyk.kg [00:01:13]Connected sock=10 [00:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 1D 01 00 00 84 7B 15 01 A3 9F 5A 02 01 00 02 00 09 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 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 46 D4 1E 67 0E 04 04 00 21 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 A5 B6 AD C0 74 95 A2 31 0A 29 DD 8B CF A2 [00:01:13]Write to MH i2c: 01 00 00 9A 04 9E [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: 01 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: 01 07 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 65 0E 18 [00:01:13]RasterBufferAndPrint [00:01:13]line [00:01:13]line [00:01:13]line [00:01:13]line [00:01:13]line [00:01:13]written 0, free lines is 3700 [00:01:13]MH_Cut [00:01:13]Write to MH i2c: D1 01 00 A1 04 01 77 [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: D1 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: D1 01 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: D1 01 00 A1 04 00 76 [00:01:13]Write to MH i2c: 01 00 00 A2 04 A6 [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7A 58 47 00 82 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 15 03 00 F4 03 04 00 01 80 1E 67 B6 04 01 00 00 73 F5 BF 10 B4 26 6B 13 [00:01:13]CommunicateWithHost err = 0 [00:01:13]CheckOFDResponse [00:01:13]1017 (14) - 77093643461234 [00:01:13]1041 (16) - 0000000000871756 [00:01:13]1040 (4) - 202200 [00:01:13]1012 (4) - 27.10.2024 18:01 [00:01:13]1206 (1) - 0 [00:01:13]OFD Sender: Remove packet 202200 [00:01:13]ProducePacketName [00:01:13]name=ofd_packets/00202200 [00:01:13]NVStorageDeleteData [00:01:13]*** Cut start [00:01:13]*** Purtial cut [00:01:13]*** Stage 1: CUTSNS_PIN = 1 [00:01:14]OFD Sender: No OFD packet to send [00:01:14]Read from MH i2c: 01 [00:01:14]MH_I2C_Read... [00:01:14]*** Stop cut motor [00:01:14]*** Cut end [00:01:14]Read from MH i2c: 01 07 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 FF 0F BB [00:01:14]process_action open_shift done [00:01:14]requested_data is exist [00:01:14]produce_requested_data [00:01:14]requested_item fd.num is exist - process it [00:01:14]SAM_PROTO_GetFieldsCounters [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 13 00 00 [00:01:14]Write to MH i2c: E2 08 00 A3 04 80 13 00 00 00 00 00 00 23 [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 62 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 62 00 A3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [00:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:14]wFMCommunicate OK [00:01:14]SAM_PROTO_GetFieldsCounters done [00:01:14]requested_item shift.num is exist - process it [00:01:14]requested_item shift.opened is exist - process it [00:01:14]req_shift_opened [00:01:14]FM_GetShiftState [00:01:14]SAM_PROTO_GetShiftState [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 13 01 00 [00:01:14]Write to MH i2c: E2 08 00 A4 04 80 13 01 00 00 00 00 00 25 [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 0E 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 0E 00 A4 04 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 D0 [00:01:14]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:01:14]wFMCommunicate OK [00:01:14]SAM_PROTO_GetShiftState done [00:01:14]FM_GetShiftState done [00:01:14]req_shift_opened done [00:01:14]requested_item shift.open_date is exist - process it [00:01:14]req_shift_open_date [00:01:14]req_shift_open_date done [00:01:14]produce_requested_data done [00:01:14]produce_requested_data return {"fd.num":202200,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670} [00:01:14]process_action_free open_shift [00:01:14]json_value_free [00:01:14]json_value_free done [00:01:14]process_json_proto returns [00:01:14]Send response to host [00:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":202200,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [00:01:14]free response buf [00:01:14]execute_script done [00:01:14]execute_script returns [00:01:14]free content buf [00:01:14]Sock 7.Close socket [00:01:14]Sock 7.Thread stoped [00:01:14]accept exits with 9 [00:01:14]New connection [00:01:14]New thread 3067424100 created [00:01:14]Thread 3067280740 joined [00:01:14]Waiting for new connection... [00:01:14] Sock 9.Parse request [00:01:14]Sock 9.Check first char [00:01:14]Sock 9.First char is OK [00:01:14]request: POST /json_proto HTTP/1.0 [00:01:14]Method: POST [00:01:14]URL: /json_proto [00:01:14]Method is POST - this is cgi request [00:01:14]url: /json_proto [00:01:14]query_string will be loaded in cgi processing [00:01:14]execute_cgi json_proto POST (null) [00:01:14]execute_cgi path=json_proto method=POST [00:01:14]POST find Content-Length [00:01:14]Host: 172.17.63.195:8080 [00:01:14]Content-Length: 331 [00:01:14]Content-Type: application/json [00:01:14] [00:01:14]POST finish read [00:01:14]Found Content-Length = 331 [00:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:14]execute_script... [00:01:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:14]POST & json_proto [00:01:14]process_json_proto [00:01:14]json parsed OK: [00:01:14]protocol is kg_v1.0 [00:01:14]action value=get_value [00:01:14]process_action get_value [00:01:14]cmd_get_value [00:01:14]process_action get_value done [00:01:14]requested_data is exist [00:01:14]produce_requested_data [00:01:14]requested_item fm.sale.total is exist - process it [00:01:14]SAM_PROTO_GetFMData [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 13 03 00 [00:01:14]Write to MH i2c: E2 08 00 A5 04 80 13 03 00 00 00 00 00 28 [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 FD 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 FD 00 A5 04 00 C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 85 [00:01:14]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 96 11 03 00 69 04 A3 00 6F 04 04 00 71 11 03 00 B1 04 05 00 99 42 64 AF 03 70 04 05 00 10 D1 DF 4F 03 72 04 04 00 89 71 84 5F 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E0 2B 38 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 D0 D6 59 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [00:01:15]wFMCommunicate OK [00:01:15]wFMCommunicate request_size=4 [00:01:15]MH_SAM_APDU [00:01:15]CAPDU: 80 17 00 00 [00:01:15]Write to MH i2c: E2 08 00 A6 04 80 17 00 00 00 00 00 00 2A [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 A6 04 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 31 [00:01:15]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:01:15]wFMCommunicate OK [00:01:15]wFMCommunicate request_size=4 [00:01:15]MH_SAM_APDU [00:01:15]CAPDU: 80 17 00 00 [00:01:15]Write to MH i2c: E2 08 00 A7 04 80 17 00 00 00 00 00 00 2B [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 A7 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 40 [00:01:15]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:01:15]wFMCommunicate OK [00:01:15]wFMCommunicate request_size=4 [00:01:15]MH_SAM_APDU [00:01:15]CAPDU: 80 17 00 00 [00:01:15]Write to MH i2c: E2 08 00 A8 04 80 17 00 00 00 00 00 00 2C [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:16]Read from MH i2c: E2 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 FD 00 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 FD 00 A8 04 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:01:16]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:16]wFMCommunicate OK [00:01:16]wFMCommunicate request_size=4 [00:01:16]MH_SAM_APDU [00:01:16]CAPDU: 80 17 00 00 [00:01:16]Write to MH i2c: E2 08 00 A9 04 80 17 00 00 00 00 00 00 2D [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:01:16]Read from MH i2c: E2 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 E1 00 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 E1 00 A9 04 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:01:16]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:16]wFMCommunicate OK [00:01:16]SAM_PROTO_GetFMData done [00:01:16]requested_item fm.sale_refund.total is exist - process it [00:01:16]requested_item fm.buy.total is exist - process it [00:01:16]requested_item shift.sale.total is exist - process it [00:01:16]SAM_PROTO_GetShiftData [00:01:16]wFMCommunicate request_size=4 [00:01:16]MH_SAM_APDU [00:01:16]CAPDU: 80 13 02 00 [00:01:16]Write to MH i2c: E2 08 00 AA 04 80 13 02 00 00 00 00 00 2C [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:17]Read from MH i2c: E2 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 FD 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 FD 00 AA 04 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 9F [00:01:17]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:01:17]wFMCommunicate OK [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 17 00 00 [00:01:17]Write to MH i2c: E2 08 00 AB 04 80 17 00 00 00 00 00 00 2F [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:17]Read from MH i2c: E2 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 FD 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 FD 00 AB 04 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 37 [00:01:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:01:17]wFMCommunicate OK [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 17 00 00 [00:01:17]Write to MH i2c: E2 08 00 AC 04 80 17 00 00 00 00 00 00 30 [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:18]Read from MH i2c: E2 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 FD 00 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 FD 00 AC 04 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 02 [00:01:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:01:18]wFMCommunicate OK [00:01:18]wFMCommunicate request_size=4 [00:01:18]MH_SAM_APDU [00:01:18]CAPDU: 80 17 00 00 [00:01:18]Write to MH i2c: E2 08 00 AD 04 80 17 00 00 00 00 00 00 31 [00:01:18]Write i2c OK [00:01:18]MH_I2C_Read... [00:01:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:18]Read from MH i2c: E2 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 FD 00 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 FD 00 AD 04 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 A3 [00:01:18]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:01:18]wFMCommunicate OK [00:01:18]wFMCommunicate request_size=4 [00:01:18]MH_SAM_APDU [00:01:18]CAPDU: 80 17 00 00 [00:01:18]Write to MH i2c: E2 08 00 AE 04 80 17 00 00 00 00 00 00 32 [00:01:18]Write i2c OK [00:01:18]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 BD 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 BD 00 AE 04 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 18 [00:01:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [00:01:19]03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:19]wFMCommunicate OK [00:01:19]SAM_PROTO_GetShiftData done [00:01:19]requested_item shift.sale.total_cash is exist - process it [00:01:19]requested_item shift.sale_refund.total is exist - process it [00:01:19]requested_item shift.sale_refund.total_cash is exist - process it [00:01:19]requested_item shift.buy.total is exist - process it [00:01:19]requested_item shift.buy.total_cash is exist - process it [00:01:19]produce_requested_data done [00:01:19]produce_requested_data return {"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:01:19]process_action_free get_value [00:01:19]json_value_free [00:01:19]json_value_free done [00:01:19]process_json_proto returns [00:01:19]Send response to host [00:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158274853.37,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:01:19]free response buf [00:01:19]execute_script done [00:01:19]execute_script returns [00:01:19]free content buf [00:01:19]Sock 9.Close socket [00:01:19]Sock 9.Thread stoped [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:52]accept exits with 7 [00:01:52]New connection [00:01:52]New thread 3067280740 created [00:01:52]Thread 3067424100 joined [00:01:52]Waiting for new connection... [00:01:52] Sock 7.Parse request [00:01:52]Sock 7.Check first char [00:01:52]Sock 7.First char is OK [00:01:52]request: POST /json_proto HTTP/1.0 [00:01:52]Method: POST [00:01:52]URL: /json_proto [00:01:52]Method is POST - this is cgi request [00:01:52]url: /json_proto [00:01:52]query_string will be loaded in cgi processing [00:01:52]execute_cgi json_proto POST (null) [00:01:52]execute_cgi path=json_proto method=POST [00:01:52]POST find Content-Length [00:01:52]Host: 172.17.63.195:8080 [00:01:52]Content-Length: 677 [00:01:52]Content-Type: application/json [00:01:52] [00:01:52]POST finish read [00:01:52]Found Content-Length = 677 [00:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [00:01:52]execute_script... [00:01:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [00:01:52]POST & json_proto [00:01:52]process_json_proto [00:01:52]json parsed OK: [00:01:52]protocol is kg_v1.0 [00:01:52]action value=close_receipt [00:01:52]process_action close_receipt [00:01:52]cmd_close_receipt [00:01:52]MH_GetDate [00:01:52]Write to MH i2c: F0 00 00 AF 04 A2 [00:01:52]Write i2c OK [00:01:52]MH_I2C_Read... [00:01:52]Read from MH i2c: F0 [00:01:52]MH_I2C_Read... [00:01:52]Read from MH i2c: F0 09 00 [00:01:52]MH_I2C_Read... [00:01:52]Read from MH i2c: F0 09 00 AF 04 00 71 D4 1E 67 47 1B 1E 67 5C [00:01:52]GetLastDocTimeStamp 1730073670 [00:01:52]current date 1730073713 [00:01:52]FM_GetShiftState [00:01:52]SAM_PROTO_GetShiftState [00:01:52]wFMCommunicate request_size=4 [00:01:52]MH_SAM_APDU [00:01:52]CAPDU: 80 13 01 00 [00:01:52]Write to MH i2c: E2 08 00 B0 04 80 13 01 00 00 00 00 00 31 [00:01:52]Write i2c OK [00:01:52]MH_I2C_Read... [00:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:52]Read from MH i2c: E2 [00:01:52]MH_I2C_Read... [00:01:52]Read from MH i2c: E2 0E 00 [00:01:52]MH_I2C_Read... [00:01:52]Read from MH i2c: E2 0E 00 B0 04 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 DC [00:01:52]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:01:52]wFMCommunicate OK [00:01:52]SAM_PROTO_GetShiftState done [00:01:52]FM_GetShiftState done [00:01:52]opened in 1730073670 [00:01:52]opened+sec_in_day 1730160070 [00:01:52]quantity*price = 60009 [00:01:52]sum+1 = 60010 [00:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 1 28.10.2024 00:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202201 ФПД: 105813270488935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000153&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202201&fm=105813270488935&tin=02508201610067®Number=0000000000091777&sum=60000 [00:01:53]StoreToDocumentArchive [00:01:53]shift 545 fd 202201 [00:01:53]save to /storage/0545/doc_00202201 [00:01:53]save last doc name /storage/0545/doc_00202201 to /storage/kkm_last_doc_name [00:01:53]save OK [00:01:53]Clear old archive folders... [00:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:01:53]tlvbuf is 00C707F0 [00:01:53]SAM_PROTO_ClearQueue [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 09 00 00 [00:01:53]Write to MH i2c: E2 08 00 BD 04 80 09 00 00 00 00 00 00 33 [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [00:01:53]RAPDU: 90 00 [00:01:53]wFMCommunicate OK [00:01:53]SAM_PROTO_ClearQueue done [00:01:53]KKMCreateOFDPacket [00:01:53]OFDProtocolAddRootSTLVToBuf [00:01:53]FM_MakeSignedData [00:01:53]FM_MakeSignedData [00:01:53]SAM_PROTO_SignData [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 0D 01 02 [00:01:53]Write to MH i2c: E2 08 00 BE 04 80 0D 01 02 00 00 00 00 3B [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [00:01:53]RAPDU: 90 00 [00:01:53]wFMCommunicate OK [00:01:53]wFMCommunicate request_size=255 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 00 F4 03 04 00 71 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 15 03 00 35 04 06 00 60 [00:01:53]Write to MH i2c: E2 02 01 BF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 00 F4 03 04 00 71 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 15 03 00 35 04 06 00 60 00 00 EB [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [00:01:53]RAPDU: 90 00 [00:01:53]wFMCommunicate OK [00:01:53]wFMCommunicate request_size=10 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 0D 02 02 05 3C 92 66 67 67 [00:01:53]Write to MH i2c: E2 0D 00 C0 04 80 0D 02 02 05 00 3C 92 66 67 67 00 00 4A [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [00:01:53]RAPDU: 90 00 [00:01:53]wFMCommunicate OK [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 0D 03 02 [00:01:53]Write to MH i2c: E2 08 00 C1 04 80 0D 03 02 00 00 00 00 40 [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 0B 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 0B 00 C1 04 00 57 4B 8B 47 92 08 2F 2A 90 00 A8 [00:01:53]RAPDU: 57 4B 8B 47 92 08 2F 2A 90 00 [00:01:53]wFMCommunicate OK [00:01:53]SAM_PROTO_SignData done [00:01:53]FM_MakeSignedData done [00:01:53]CreateOFDProtocolMessage [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 11 00 00 [00:01:53]Write to MH i2c: E2 08 00 C2 04 80 11 00 00 00 00 00 00 40 [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 17 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 17 00 C2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [00:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:01:53]wFMCommunicate OK [00:01:53]CreateOFDProtocolMessage done [00:01:53]OFDSenderStorePacket 202201 [00:01:53]StoreOFDPacket docnum=202201 [00:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC E2 07 01 19 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 00 F4 03 04 00 71 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 15 03 00 35 04 06 00 60 3C 92 66 67 67 57 4B 8B 47 92 08 2F 2A [00:01:53]CheckFolder [00:01:53]dirname=/storage/ofd_packets [00:01:53]CheckFolder done [00:01:53]ProducePacketName [00:01:53]name=ofd_packets/00202201 [00:01:53]NVStorageSaveData ofd_packets/00202201 [00:01:53]File name is /storage/ofd_packets/00202201 [00:01:53]Write 301 bytes [00:01:53]NVStorageSaveData done [00:01:53]OFDSenderStorePacket done [00:01:53]KKMCreateOFDPacket done [00:01:53]NVStorageSaveData kkm_last_timestamp [00:01:53]File name is /storage/kkm_last_timestamp [00:01:53]Write 4 bytes [00:01:53]NVStorageSaveData done [00:01:53]ExternCall_PrintAddStr [00:01:53]wPrintStart [00:01:53]Write to MH i2c: 01 00 00 C3 04 C7 [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: 01 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: 01 07 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 FF 0F DC [00:01:53]RasterBufferAndPrint [00:01:53]line Счет N : (1)449973 [00:01:53]line ИНН: 02508201610067 [00:01:53]line Контрольно-Кассовый Чек [00:01:53]line ПРОДАЖА [00:01:53]line ТРК (МРК, ГНК) : 52 [00:01:53]line Товар: 2710124130 [00:01:53]line Аи-92-К-2 [00:01:53]line 8.970 * 66.90 [00:01:53]line = 600.09 [00:01:53]line НДС 12% НСП 1% [00:01:53]line > о реализуемом товаре [00:01:53]line ОКРУГЛЕНИЕ: -0.09 [00:01:53]line ИТОГО: 600.00 [00:01:53]line Внесено: 600.00 [00:01:53]line СДАЧА: 0.00 [00:01:53]line НСП 1% : 5.31 [00:01:53]line НДС 12% : 63.73 [00:01:53]line Наличными: 600.00 [00:01:53]line Безнал.: 0.00 [00:01:53]line Место: АЗС № 171 "Партнер Нефть" [00:01:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:01:53]line СНО: Общий режим [00:01:53]line Чек 1 28.10.2024 00:01 [00:01:54]line Смена: 545 ФФД: 1.0 [00:01:54]line ЗНМ: 0300000109 [00:01:54]line РНМ: 0000000000091777 [00:01:54]line Версия ККМ: 001 [00:01:54]line ФМ: 0000000000871756 [00:01:54]line ФД: 202201 [00:01:54]line ФПД: 105813270488935 [00:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000153&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202201&fm=105813270488935&tin=02508201610067®Number=0000000000091777&sum=60000 [00:01:54]OFD Sender: Processing packet 202201 [packets to send 114, broken 113] [00:01:54]ProducePacketName [00:01:54]name=ofd_packets/00202201 [00:01:54]OFD Sender: To server: pG, [00:01:54]CommunicateWithHost lk.salyk.kg:30040 [00:01:54]ConnectInit lk.salyk.kg [00:01:54]written 0, free lines is 4095 [00:01:54]Connected sock=10 [00:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC E2 07 01 19 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 01 00 00 00 F4 03 04 00 71 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 15 03 00 35 04 06 00 60 3C 92 66 67 67 57 4B 8B 47 92 08 2F 2A [00:01:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 24 E2 47 00 CE 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 15 03 00 F4 03 04 00 2A 80 1E 67 B6 04 01 00 00 1A 77 50 FF C8 2A B9 91 [00:01:54]CommunicateWithHost err = 0 [00:01:54]CheckOFDResponse [00:01:54]1017 (14) - 77093643461234 [00:01:54]1041 (16) - 0000000000871756 [00:01:54]1040 (4) - 202201 [00:01:54]1012 (4) - 27.10.2024 18:02 [00:01:54]1206 (1) - 0 [00:01:54]OFD Sender: Remove packet 202201 [00:01:54]ProducePacketName [00:01:54]name=ofd_packets/00202201 [00:01:54]NVStorageDeleteData [00:01:54]Write to MH i2c: 01 00 00 EE 04 F2 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 07 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 07 00 EE 04 00 00 00 00 00 AB 0C B0 [00:01:54]RasterBufferAndPrint [00:01:54]line [00:01:54]line [00:01:54]line [00:01:54]line [00:01:54]line [00:01:54]written 0, free lines is 3264 [00:01:54]MH_Cut [00:01:54]Write to MH i2c: D1 01 00 F5 04 01 CB [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: D1 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: D1 01 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: D1 01 00 F5 04 00 CA [00:01:54]Write to MH i2c: 01 00 00 F6 04 FA [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]OFD Sender: No OFD packet to send [00:01:55]*** Cut start [00:01:55]*** Purtial cut [00:01:55]*** Stage 1: CUTSNS_PIN = 1 [00:01:55]Read from MH i2c: 01 [00:01:55]MH_I2C_Read... [00:01:55]*** Stop cut motor [00:01:55]*** Cut end [00:01:55]Read from MH i2c: 01 07 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: 01 07 00 F6 04 00 00 00 00 00 FF 0F 0F [00:01:55]process_action close_receipt done [00:01:55]requested_data is exist [00:01:55]produce_requested_data [00:01:55]requested_item fm.sn is exist - process it [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 11 00 00 [00:01:55]Write to MH i2c: E2 08 00 F7 04 80 11 00 00 00 00 00 00 75 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 17 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 17 00 F7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [00:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:01:55]wFMCommunicate OK [00:01:55]requested_item fd.num is exist - process it [00:01:55]SAM_PROTO_GetFieldsCounters [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 13 00 00 [00:01:55]Write to MH i2c: E2 08 00 F8 04 80 13 00 00 00 00 00 00 78 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 62 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 62 00 F8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D9 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [00:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D9 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:55]wFMCommunicate OK [00:01:55]SAM_PROTO_GetFieldsCounters done [00:01:55]requested_item shift.num is exist - process it [00:01:55]requested_item shift.opened is exist - process it [00:01:55]req_shift_opened [00:01:55]FM_GetShiftState [00:01:55]SAM_PROTO_GetShiftState [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 13 01 00 [00:01:55]Write to MH i2c: E2 08 00 F9 04 80 13 01 00 00 00 00 00 7A [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 0E 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 0E 00 F9 04 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 25 [00:01:55]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:01:56]wFMCommunicate OK [00:01:56]SAM_PROTO_GetShiftState done [00:01:56]FM_GetShiftState done [00:01:56]req_shift_opened done [00:01:56]requested_item shift.open_date is exist - process it [00:01:56]req_shift_open_date [00:01:56]req_shift_open_date done [00:01:56]produce_requested_data done [00:01:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202201,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670} [00:01:56]process_action_free close_receipt [00:01:56]json_value_free [00:01:56]json_value_free done [00:01:56]process_json_proto returns [00:01:56]Send response to host [00:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202201,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [00:01:56]free response buf [00:01:56]execute_script done [00:01:56]execute_script returns [00:01:56]free content buf [00:01:56]Sock 7.Close socket [00:01:56]Sock 7.Thread stoped [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:10]accept exits with 9 [00:02:10]New connection [00:02:10]New thread 3067424100 created [00:02:10]Thread 3067280740 joined [00:02:10]Waiting for new connection... [00:02:10] Sock 9.Parse request [00:02:10]Sock 9.Check first char [00:02:10]Sock 9.First char is OK [00:02:10]request: POST /json_proto HTTP/1.0 [00:02:10]Method: POST [00:02:10]URL: /json_proto [00:02:10]Method is POST - this is cgi request [00:02:10]url: /json_proto [00:02:10]query_string will be loaded in cgi processing [00:02:10]execute_cgi json_proto POST (null) [00:02:10]execute_cgi path=json_proto method=POST [00:02:10]POST find Content-Length [00:02:10]Host: 172.17.63.195:8080 [00:02:10]Content-Length: 677 [00:02:10]Content-Type: application/json [00:02:10] [00:02:10]POST finish read [00:02:10]Found Content-Length = 677 [00:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:10]execute_script... [00:02: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)449974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:10]POST & json_proto [00:02:10]process_json_proto [00:02:10]json parsed OK: [00:02:10]protocol is kg_v1.0 [00:02:10]action value=close_receipt [00:02:10]process_action close_receipt [00:02:10]cmd_close_receipt [00:02:10]MH_GetDate [00:02:10]Write to MH i2c: F0 00 00 FA 04 ED [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 09 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 09 00 FA 04 00 83 D4 1E 67 47 1B 1E 67 B9 [00:02:10]GetLastDocTimeStamp 1730073713 [00:02:10]current date 1730073731 [00:02:10]FM_GetShiftState [00:02:10]SAM_PROTO_GetShiftState [00:02:10]wFMCommunicate request_size=4 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 13 01 00 [00:02:10]Write to MH i2c: E2 08 00 FB 04 80 13 01 00 00 00 00 00 7C [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 0E 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 0E 00 FB 04 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 27 [00:02:10]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:02:10]wFMCommunicate OK [00:02:10]SAM_PROTO_GetShiftState done [00:02:10]FM_GetShiftState done [00:02:10]opened in 1730073670 [00:02:10]opened+sec_in_day 1730160070 [00:02:10]quantity*price = 32045 [00:02:10]sum+1 = 32046 [00:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 2 28.10.2024 00:02 Смена: 545 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202202 ФПД: 259979841563580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000211&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202202&fm=259979841563580&tin=02508201610067®Number=0000000000091777&sum=32000 [00:02:11]StoreToDocumentArchive [00:02:11]shift 545 fd 202202 [00:02:11]save to /storage/0545/doc_00202202 [00:02:11]save last doc name /storage/0545/doc_00202202 to /storage/kkm_last_doc_name [00:02:11]save OK [00:02:11]Clear old archive folders... [00:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:02:11]tlvbuf is 00C69740 [00:02:11]SAM_PROTO_ClearQueue [00:02:11]wFMCommunicate request_size=4 [00:02:11]MH_SAM_APDU [00:02:11]CAPDU: 80 09 00 00 [00:02:11]Write to MH i2c: E2 08 00 08 05 80 09 00 00 00 00 00 00 7F [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 03 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [00:02:11]RAPDU: 90 00 [00:02:11]wFMCommunicate OK [00:02:11]SAM_PROTO_ClearQueue done [00:02:11]KKMCreateOFDPacket [00:02:11]OFDProtocolAddRootSTLVToBuf [00:02:11]FM_MakeSignedData [00:02:11]FM_MakeSignedData [00:02:11]SAM_PROTO_SignData [00:02:11]wFMCommunicate request_size=4 [00:02:11]MH_SAM_APDU [00:02:11]CAPDU: 80 0D 01 02 [00:02:11]Write to MH i2c: E2 08 00 09 05 80 0D 01 02 00 00 00 00 87 [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 03 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [00:02:11]RAPDU: 90 00 [00:02:11]wFMCommunicate OK [00:02:11]wFMCommunicate request_size=255 [00:02:11]MH_SAM_APDU [00:02:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 83 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 15 03 00 35 04 06 00 EC [00:02:11]Write to MH i2c: E2 02 01 0A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 83 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 15 03 00 35 04 06 00 EC 00 00 92 [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 03 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [00:02:11]RAPDU: 90 00 [00:02:11]wFMCommunicate OK [00:02:11]wFMCommunicate request_size=10 [00:02:11]MH_SAM_APDU [00:02:11]CAPDU: 80 0D 02 02 05 73 46 1A EB BC [00:02:11]Write to MH i2c: E2 0D 00 0B 05 80 0D 02 02 05 00 73 46 1A EB BC 00 00 0E [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 03 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [00:02:11]RAPDU: 90 00 [00:02:11]wFMCommunicate OK [00:02:11]wFMCommunicate request_size=4 [00:02:11]MH_SAM_APDU [00:02:11]CAPDU: 80 0D 03 02 [00:02:11]Write to MH i2c: E2 08 00 0C 05 80 0D 03 02 00 00 00 00 8C [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 0B 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 0B 00 0C 05 00 47 9C 13 A5 6E CA 8A BF 90 00 A9 [00:02:11]RAPDU: 47 9C 13 A5 6E CA 8A BF 90 00 [00:02:11]wFMCommunicate OK [00:02:11]SAM_PROTO_SignData done [00:02:11]FM_MakeSignedData done [00:02:11]CreateOFDProtocolMessage [00:02:11]wFMCommunicate request_size=4 [00:02:11]MH_SAM_APDU [00:02:11]CAPDU: 80 11 00 00 [00:02:11]Write to MH i2c: E2 08 00 0D 05 80 11 00 00 00 00 00 00 8C [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 17 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 17 00 0D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [00:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:02:11]wFMCommunicate OK [00:02:11]CreateOFDProtocolMessage done [00:02:11]OFDSenderStorePacket 202202 [00:02:11]StoreOFDPacket docnum=202202 [00:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 02 68 07 01 0C EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 83 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 15 03 00 35 04 06 00 EC 73 46 1A EB BC 47 9C 13 A5 6E CA 8A BF [00:02:11]CheckFolder [00:02:11]dirname=/storage/ofd_packets [00:02:11]CheckFolder done [00:02:11]ProducePacketName [00:02:11]name=ofd_packets/00202202 [00:02:11]NVStorageSaveData ofd_packets/00202202 [00:02:11]File name is /storage/ofd_packets/00202202 [00:02:11]Write 301 bytes [00:02:11]NVStorageSaveData done [00:02:11]OFDSenderStorePacket done [00:02:11]KKMCreateOFDPacket done [00:02:11]NVStorageSaveData kkm_last_timestamp [00:02:11]File name is /storage/kkm_last_timestamp [00:02:11]Write 4 bytes [00:02:11]NVStorageSaveData done [00:02:11]ExternCall_PrintAddStr [00:02:11]wPrintStart [00:02:11]Write to MH i2c: 01 00 00 0E 05 13 [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: 01 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: 01 07 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [00:02:11]RasterBufferAndPrint [00:02:11]line Счет N : (1)449974 [00:02:11]line ИНН: 02508201610067 [00:02:11]line Контрольно-Кассовый Чек [00:02:11]line ПРОДАЖА [00:02:11]line ТРК (МРК, ГНК) : 41 [00:02:11]line Товар: 2710124130 [00:02:11]line Аи-92-К-2 [00:02:11]line 4.790 * 66.90 [00:02:11]line = 320.45 [00:02:11]line НДС 12% НСП 1% [00:02:11]line > о реализуемом товаре [00:02:11]line ОКРУГЛЕНИЕ: -0.45 [00:02:11]line ИТОГО: 320.00 [00:02:11]line Внесено: 320.00 [00:02:11]line СДАЧА: 0.00 [00:02:11]line НСП 1% : 2.84 [00:02:11]line НДС 12% : 34.03 [00:02:11]line Наличными: 320.00 [00:02:11]line Безнал.: 0.00 [00:02:11]line Место: АЗС № 171 "Партнер Нефть" [00:02:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:02:11]line СНО: Общий режим [00:02:11]line Чек 2 28.10.2024 00:02 [00:02:11]line Смена: 545 ФФД: 1.0 [00:02:11]line ЗНМ: 0300000109 [00:02:11]line РНМ: 0000000000091777 [00:02:11]line Версия ККМ: 001 [00:02:11]line ФМ: 0000000000871756 [00:02:11]line ФД: 202202 [00:02:11]line ФПД: 259979841563580 [00:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T000211&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202202&fm=259979841563580&tin=02508201610067®Number=0000000000091777&sum=32000 [00:02:12]written 0, free lines is 4095 [00:02:12]OFD Sender: Processing packet 202202 [packets to send 114, broken 113] [00:02:12]ProducePacketName [00:02:12]name=ofd_packets/00202202 [00:02:12]OFD Sender: To server: pG, [00:02:12]CommunicateWithHost lk.salyk.kg:30040 [00:02:12]ConnectInit lk.salyk.kg [00:02:12]Connected sock=10 [00:02:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 02 68 07 01 0C EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 83 D4 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 15 03 00 35 04 06 00 EC 73 46 1A EB BC 47 9C 13 A5 6E CA 8A BF [00:02:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1E 21 47 00 4B 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 15 03 00 F4 03 04 00 3B 80 1E 67 B6 04 01 00 00 8E 11 93 02 75 52 2F 4E [00:02:12]CommunicateWithHost err = 0 [00:02:12]CheckOFDResponse [00:02:12]1017 (14) - 77093643461234 [00:02:12]1041 (16) - 0000000000871756 [00:02:12]1040 (4) - 202202 [00:02:12]1012 (4) - 27.10.2024 18:02 [00:02:12]1206 (1) - 0 [00:02:12]OFD Sender: Remove packet 202202 [00:02:12]ProducePacketName [00:02:12]name=ofd_packets/00202202 [00:02:12]NVStorageDeleteData [00:02:12]Write to MH i2c: 01 00 00 39 05 3E [00:02:12]Write i2c OK [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: 01 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: 01 07 00 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 AA 0C FB [00:02:12]RasterBufferAndPrint [00:02:12]line [00:02:12]line [00:02:12]line [00:02:12]line [00:02:12]line [00:02:12]written 0, free lines is 3255 [00:02:12]MH_Cut [00:02:12]Write to MH i2c: D1 01 00 40 05 01 17 [00:02:12]Write i2c OK [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: D1 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: D1 01 00 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: D1 01 00 40 05 00 16 [00:02:12]Write to MH i2c: 01 00 00 41 05 46 [00:02:12]Write i2c OK [00:02:12]MH_I2C_Read... [00:02:12]OFD Sender: No OFD packet to send [00:02:13]*** Cut start [00:02:13]*** Purtial cut [00:02:13]*** Stage 1: CUTSNS_PIN = 1 [00:02:13]Read from MH i2c: 01 [00:02:13]MH_I2C_Read... [00:02:13]*** Stop cut motor [00:02:13]*** Cut end [00:02:13]Read from MH i2c: 01 07 00 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: 01 07 00 41 05 00 00 00 00 00 FF 0F 5B [00:02:13]process_action close_receipt done [00:02:13]requested_data is exist [00:02:13]produce_requested_data [00:02:13]requested_item fm.sn is exist - process it [00:02:13]wFMCommunicate request_size=4 [00:02:13]MH_SAM_APDU [00:02:13]CAPDU: 80 11 00 00 [00:02:13]Write to MH i2c: E2 08 00 42 05 80 11 00 00 00 00 00 00 C1 [00:02:13]Write i2c OK [00:02:13]MH_I2C_Read... [00:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:13]Read from MH i2c: E2 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 17 00 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 17 00 42 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [00:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:02:13]wFMCommunicate OK [00:02:13]requested_item fd.num is exist - process it [00:02:13]SAM_PROTO_GetFieldsCounters [00:02:13]wFMCommunicate request_size=4 [00:02:13]MH_SAM_APDU [00:02:13]CAPDU: 80 13 00 00 [00:02:13]Write to MH i2c: E2 08 00 43 05 80 13 00 00 00 00 00 00 C4 [00:02:13]Write i2c OK [00:02:13]MH_I2C_Read... [00:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:13]Read from MH i2c: E2 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 62 00 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 62 00 43 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DA 15 03 00 0E 04 04 00 21 02 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 08 [00:02:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DA 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:13]wFMCommunicate OK [00:02:13]SAM_PROTO_GetFieldsCounters done [00:02:13]requested_item shift.num is exist - process it [00:02:13]requested_item shift.opened is exist - process it [00:02:13]req_shift_opened [00:02:13]FM_GetShiftState [00:02:13]SAM_PROTO_GetShiftState [00:02:13]wFMCommunicate request_size=4 [00:02:13]MH_SAM_APDU [00:02:13]CAPDU: 80 13 01 00 [00:02:13]Write to MH i2c: E2 08 00 44 05 80 13 01 00 00 00 00 00 C6 [00:02:13]Write i2c OK [00:02:13]MH_I2C_Read... [00:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:13]Read from MH i2c: E2 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 0E 00 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 0E 00 44 05 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 71 [00:02:13]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:02:13]wFMCommunicate OK [00:02:13]SAM_PROTO_GetShiftState done [00:02:13]FM_GetShiftState done [00:02:13]req_shift_opened done [00:02:13]requested_item shift.open_date is exist - process it [00:02:13]req_shift_open_date [00:02:13]req_shift_open_date done [00:02:13]produce_requested_data done [00:02:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202202,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670} [00:02:13]process_action_free close_receipt [00:02:13]json_value_free [00:02:13]json_value_free done [00:02:13]process_json_proto returns [00:02:13]Send response to host [00:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202202,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [00:02:13]free response buf [00:02:13]execute_script done [00:02:13]execute_script returns [00:02:13]free content buf [00:02:13]Sock 9.Close socket [00:02:13]Sock 9.Thread stoped [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33: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:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:01]accept exits with 7 [00:41:01]New connection [00:41:01]New thread 3067280740 created [00:41:01]Thread 3067424100 joined [00:41:01]Waiting for new connection... [00:41:01] Sock 7.Parse request [00:41:01]Sock 7.Check first char [00:41:01]Sock 7.First char is OK [00:41:01]request: POST /json_proto HTTP/1.0 [00:41:01]Method: POST [00:41:01]URL: /json_proto [00:41:01]Method is POST - this is cgi request [00:41:01]url: /json_proto [00:41:01]query_string will be loaded in cgi processing [00:41:01]execute_cgi json_proto POST (null) [00:41:01]execute_cgi path=json_proto method=POST [00:41:01]POST find Content-Length [00:41:01]Host: 172.17.63.195:8080 [00:41:01]Content-Length: 677 [00:41:01]Content-Type: application/json [00:41:01] [00:41:01]POST finish read [00:41:01]Found Content-Length = 677 [00:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:01]execute_script... [00:41: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)449975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:01]POST & json_proto [00:41:01]process_json_proto [00:41:01]json parsed OK: [00:41:01]protocol is kg_v1.0 [00:41:01]action value=close_receipt [00:41:01]process_action close_receipt [00:41:01]cmd_close_receipt [00:41:01]MH_GetDate [00:41:01]Write to MH i2c: F0 00 00 45 05 39 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 09 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: F0 09 00 45 05 00 9F DD 1E 67 47 1B 1E 67 2A [00:41:01]GetLastDocTimeStamp 1730073731 [00:41:01]current date 1730076063 [00:41:01]FM_GetShiftState [00:41:01]SAM_PROTO_GetShiftState [00:41:01]wFMCommunicate request_size=4 [00:41:01]MH_SAM_APDU [00:41:01]CAPDU: 80 13 01 00 [00:41:01]Write to MH i2c: E2 08 00 46 05 80 13 01 00 00 00 00 00 C8 [00:41:01]Write i2c OK [00:41:01]MH_I2C_Read... [00:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:01]Read from MH i2c: E2 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0E 00 [00:41:01]MH_I2C_Read... [00:41:01]Read from MH i2c: E2 0E 00 46 05 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 73 [00:41:01]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:41:01]wFMCommunicate OK [00:41:01]SAM_PROTO_GetShiftState done [00:41:01]FM_GetShiftState done [00:41:01]opened in 1730073670 [00:41:01]opened+sec_in_day 1730160070 [00:41:01]quantity*price = 40006 [00:41:01]sum+1 = 40007 [00:41:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 3 28.10.2024 00:41 Смена: 545 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202203 ФПД: 199185738352453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T004103&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202203&fm=199185738352453&tin=02508201610067®Number=0000000000091777&sum=40000 [00:41:02]StoreToDocumentArchive [00:41:02]shift 545 fd 202203 [00:41:02]save to /storage/0545/doc_00202203 [00:41:02]save last doc name /storage/0545/doc_00202203 to /storage/kkm_last_doc_name [00:41:02]save OK [00:41:02]Clear old archive folders... [00:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:02]tlvbuf is 00C50940 [00:41:02]SAM_PROTO_ClearQueue [00:41:02]wFMCommunicate request_size=4 [00:41:02]MH_SAM_APDU [00:41:02]CAPDU: 80 09 00 00 [00:41:02]Write to MH i2c: E2 08 00 53 05 80 09 00 00 00 00 00 00 CA [00:41:02]Write i2c OK [00:41:02]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [00:41:03]RAPDU: 90 00 [00:41:03]wFMCommunicate OK [00:41:03]SAM_PROTO_ClearQueue done [00:41:03]KKMCreateOFDPacket [00:41:03]OFDProtocolAddRootSTLVToBuf [00:41:03]FM_MakeSignedData [00:41:03]FM_MakeSignedData [00:41:03]SAM_PROTO_SignData [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 0D 01 02 [00:41:03]Write to MH i2c: E2 08 00 54 05 80 0D 01 02 00 00 00 00 D2 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [00:41:03]RAPDU: 90 00 [00:41:03]wFMCommunicate OK [00:41:03]wFMCommunicate request_size=255 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F DD 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 15 03 00 35 04 06 00 B5 [00:41:03]Write to MH i2c: E2 02 01 55 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F DD 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 15 03 00 35 04 06 00 B5 00 00 04 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [00:41:03]RAPDU: 90 00 [00:41:03]wFMCommunicate OK [00:41:03]wFMCommunicate request_size=10 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 0D 02 02 05 28 8B 2D C7 45 [00:41:03]Write to MH i2c: E2 0D 00 56 05 80 0D 02 02 05 00 28 8B 2D C7 45 00 00 CB [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [00:41:03]RAPDU: 90 00 [00:41:03]wFMCommunicate OK [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 0D 03 02 [00:41:03]Write to MH i2c: E2 08 00 57 05 80 0D 03 02 00 00 00 00 D7 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 0B 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 0B 00 57 05 00 B2 63 51 30 B9 F8 3A 51 90 00 AA [00:41:03]RAPDU: B2 63 51 30 B9 F8 3A 51 90 00 [00:41:03]wFMCommunicate OK [00:41:03]SAM_PROTO_SignData done [00:41:03]FM_MakeSignedData done [00:41:03]CreateOFDProtocolMessage [00:41:03]wFMCommunicate request_size=4 [00:41:03]MH_SAM_APDU [00:41:03]CAPDU: 80 11 00 00 [00:41:03]Write to MH i2c: E2 08 00 58 05 80 11 00 00 00 00 00 00 D7 [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:03]Read from MH i2c: E2 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 17 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: E2 17 00 58 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [00:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:41:03]wFMCommunicate OK [00:41:03]CreateOFDProtocolMessage done [00:41:03]OFDSenderStorePacket 202203 [00:41:03]StoreOFDPacket docnum=202203 [00:41:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AD 64 07 01 A1 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F DD 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 15 03 00 35 04 06 00 B5 28 8B 2D C7 45 B2 63 51 30 B9 F8 3A 51 [00:41:03]CheckFolder [00:41:03]dirname=/storage/ofd_packets [00:41:03]CheckFolder done [00:41:03]ProducePacketName [00:41:03]name=ofd_packets/00202203 [00:41:03]NVStorageSaveData ofd_packets/00202203 [00:41:03]File name is /storage/ofd_packets/00202203 [00:41:03]Write 301 bytes [00:41:03]NVStorageSaveData done [00:41:03]OFDSenderStorePacket done [00:41:03]KKMCreateOFDPacket done [00:41:03]NVStorageSaveData kkm_last_timestamp [00:41:03]File name is /storage/kkm_last_timestamp [00:41:03]Write 4 bytes [00:41:03]NVStorageSaveData done [00:41:03]ExternCall_PrintAddStr [00:41:03]wPrintStart [00:41:03]Write to MH i2c: 01 00 00 59 05 5E [00:41:03]Write i2c OK [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 [00:41:03]MH_I2C_Read... [00:41:03]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [00:41:03]RasterBufferAndPrint [00:41:03]line Счет N : (1)449975 [00:41:03]line ИНН: 02508201610067 [00:41:03]line Контрольно-Кассовый Чек [00:41:03]line ПРОДАЖА [00:41:03]line ТРК (МРК, ГНК) : 41 [00:41:03]line Товар: 2710124130 [00:41:03]line Аи-92-К-2 [00:41:03]line 5.980 * 66.90 [00:41:03]line = 400.06 [00:41:03]line НДС 12% НСП 1% [00:41:03]line > о реализуемом товаре [00:41:03]line ОКРУГЛЕНИЕ: -0.06 [00:41:03]line ИТОГО: 400.00 [00:41:03]line Внесено: 400.00 [00:41:03]line СДАЧА: 0.00 [00:41:03]line НСП 1% : 3.54 [00:41:03]line НДС 12% : 42.48 [00:41:03]line Наличными: 400.00 [00:41:03]line Безнал.: 0.00 [00:41:03]line Место: АЗС № 171 "Партнер Нефть" [00:41:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:41:03]line СНО: Общий режим [00:41:03]line Чек 3 28.10.2024 00:41 [00:41:03]line Смена: 545 ФФД: 1.0 [00:41:03]line ЗНМ: 0300000109 [00:41:03]line РНМ: 0000000000091777 [00:41:03]line Версия ККМ: 001 [00:41:03]line ФМ: 0000000000871756 [00:41:03]line ФД: 202203 [00:41:03]line ФПД: 199185738352453 [00:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T004103&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202203&fm=199185738352453&tin=02508201610067®Number=0000000000091777&sum=40000 [00:41:03]OFD Sender: Processing packet 202203 [packets to send 114, broken 113] [00:41:03]ProducePacketName [00:41:03]name=ofd_packets/00202203 [00:41:03]OFD Sender: To server: pG, [00:41:03]CommunicateWithHost lk.salyk.kg:30040 [00:41:03]ConnectInit lk.salyk.kg [00:41:03]written 0, free lines is 4095 [00:41:03]Connected sock=10 [00:41:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AD 64 07 01 A1 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9F DD 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 15 03 00 35 04 06 00 B5 28 8B 2D C7 45 B2 63 51 30 B9 F8 3A 51 [00:41:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 67 E0 47 00 FA 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 15 03 00 F4 03 04 00 57 89 1E 67 B6 04 01 00 00 4B F1 11 9C 4E F9 0E 75 [00:41:04]CommunicateWithHost err = 0 [00:41:04]CheckOFDResponse [00:41:04]1017 (14) - 77093643461234 [00:41:04]1041 (16) - 0000000000871756 [00:41:04]1040 (4) - 202203 [00:41:04]1012 (4) - 27.10.2024 18:41 [00:41:04]1206 (1) - 0 [00:41:04]OFD Sender: Remove packet 202203 [00:41:04]ProducePacketName [00:41:04]name=ofd_packets/00202203 [00:41:04]NVStorageDeleteData [00:41:04]Write to MH i2c: 01 00 00 84 05 89 [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: 01 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: 01 07 00 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 94 0C 30 [00:41:04]RasterBufferAndPrint [00:41:04]line [00:41:04]line [00:41:04]line [00:41:04]line [00:41:04]line [00:41:04]written 0, free lines is 3225 [00:41:04]MH_Cut [00:41:04]Write to MH i2c: D1 01 00 8B 05 01 62 [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: D1 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: D1 01 00 [00:41:04]MH_I2C_Read... [00:41:04]Read from MH i2c: D1 01 00 8B 05 00 61 [00:41:04]Write to MH i2c: 01 00 00 8C 05 91 [00:41:04]Write i2c OK [00:41:04]MH_I2C_Read... [00:41:04]OFD Sender: No OFD packet to send [00:41:05]*** Cut start [00:41:05]*** Purtial cut [00:41:05]*** CUTSNS_PIN = 0 [00:41:05]*** Stage 1: CUTSNS_PIN = 1 [00:41:07]Read from MH i2c: 01 [00:41:07]MH_I2C_Read... [00:41:07]*** Stop cut motor [00:41:07]*** Cut end [00:41:07]Read from MH i2c: 01 07 00 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 FF 0F A6 [00:41:07]process_action close_receipt done [00:41:07]requested_data is exist [00:41:07]produce_requested_data [00:41:07]requested_item fm.sn is exist - process it [00:41:07]wFMCommunicate request_size=4 [00:41:07]MH_SAM_APDU [00:41:07]CAPDU: 80 11 00 00 [00:41:07]Write to MH i2c: E2 08 00 8D 05 80 11 00 00 00 00 00 00 0C [00:41:07]Write i2c OK [00:41:07]MH_I2C_Read... [00:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:07]Read from MH i2c: E2 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 17 00 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 17 00 8D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [00:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:41:07]wFMCommunicate OK [00:41:07]requested_item fd.num is exist - process it [00:41:07]SAM_PROTO_GetFieldsCounters [00:41:07]wFMCommunicate request_size=4 [00:41:07]MH_SAM_APDU [00:41:07]CAPDU: 80 13 00 00 [00:41:07]Write to MH i2c: E2 08 00 8E 05 80 13 00 00 00 00 00 00 0F [00:41:07]Write i2c OK [00:41:07]MH_I2C_Read... [00:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:07]Read from MH i2c: E2 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 62 00 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 62 00 8E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DB 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [00:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DB 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:07]wFMCommunicate OK [00:41:07]SAM_PROTO_GetFieldsCounters done [00:41:07]requested_item shift.num is exist - process it [00:41:07]requested_item shift.opened is exist - process it [00:41:07]req_shift_opened [00:41:07]FM_GetShiftState [00:41:07]SAM_PROTO_GetShiftState [00:41:07]wFMCommunicate request_size=4 [00:41:07]MH_SAM_APDU [00:41:07]CAPDU: 80 13 01 00 [00:41:07]Write to MH i2c: E2 08 00 8F 05 80 13 01 00 00 00 00 00 11 [00:41:07]Write i2c OK [00:41:07]MH_I2C_Read... [00:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:07]Read from MH i2c: E2 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 0E 00 [00:41:07]MH_I2C_Read... [00:41:07]Read from MH i2c: E2 0E 00 8F 05 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 BC [00:41:07]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:41:07]wFMCommunicate OK [00:41:07]SAM_PROTO_GetShiftState done [00:41:07]FM_GetShiftState done [00:41:07]req_shift_opened done [00:41:07]requested_item shift.open_date is exist - process it [00:41:07]req_shift_open_date [00:41:07]req_shift_open_date done [00:41:07]produce_requested_data done [00:41:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202203,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670} [00:41:07]process_action_free close_receipt [00:41:07]json_value_free [00:41:07]json_value_free done [00:41:07]process_json_proto returns [00:41:07]Send response to host [00:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202203,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [00:41:07]free response buf [00:41:07]execute_script done [00:41:07]execute_script returns [00:41:07]free content buf [00:41:07]Sock 7.Close socket [00:41:07]Sock 7.Thread stoped [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]accept exits with 9 [00:43:34]New connection [00:43:34]New thread 3067424100 created [00:43:34]Thread 3067280740 joined [00:43:34]Waiting for new connection... [00:43:34] Sock 9.Parse request [00:43:34]Sock 9.Check first char [00:43:34]Sock 9.First char is OK [00:43:34]request: POST /json_proto HTTP/1.0 [00:43:34]Method: POST [00:43:34]URL: /json_proto [00:43:34]Method is POST - this is cgi request [00:43:34]url: /json_proto [00:43:34]query_string will be loaded in cgi processing [00:43:34]execute_cgi json_proto POST (null) [00:43:34]execute_cgi path=json_proto method=POST [00:43:34]POST find Content-Length [00:43:34]Host: 172.17.63.195:8080 [00:43:34]Content-Length: 677 [00:43:34]Content-Type: application/json [00:43:34] [00:43:34]POST finish read [00:43:34]Found Content-Length = 677 [00:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:34]execute_script... [00:43:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:34]POST & json_proto [00:43:34]process_json_proto [00:43:34]json parsed OK: [00:43:34]protocol is kg_v1.0 [00:43:34]action value=close_receipt [00:43:34]process_action close_receipt [00:43:34]cmd_close_receipt [00:43:34]MH_GetDate [00:43:34]Write to MH i2c: F0 00 00 90 05 84 [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: F0 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: F0 09 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: F0 09 00 90 05 00 38 DE 1E 67 47 1B 1E 67 0F [00:43:34]GetLastDocTimeStamp 1730076063 [00:43:34]current date 1730076216 [00:43:34]FM_GetShiftState [00:43:34]SAM_PROTO_GetShiftState [00:43:34]wFMCommunicate request_size=4 [00:43:34]MH_SAM_APDU [00:43:34]CAPDU: 80 13 01 00 [00:43:34]Write to MH i2c: E2 08 00 91 05 80 13 01 00 00 00 00 00 13 [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:34]Read from MH i2c: E2 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 0E 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 0E 00 91 05 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 BE [00:43:34]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:43:34]wFMCommunicate OK [00:43:34]SAM_PROTO_GetShiftState done [00:43:34]FM_GetShiftState done [00:43:34]opened in 1730073670 [00:43:34]opened+sec_in_day 1730160070 [00:43:34]quantity*price = 10035 [00:43:34]sum+1 = 10036 [00:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 4 28.10.2024 00:43 Смена: 545 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202204 ФПД: 34667684021452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T004336&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202204&fm=34667684021452&tin=02508201610067®Number=0000000000091777&sum=10000 [00:43:35]StoreToDocumentArchive [00:43:35]shift 545 fd 202204 [00:43:35]save to /storage/0545/doc_00202204 [00:43:35]save last doc name /storage/0545/doc_00202204 to /storage/kkm_last_doc_name [00:43:35]save OK [00:43:35]Clear old archive folders... [00:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:35]tlvbuf is 00C18B00 [00:43:35]SAM_PROTO_ClearQueue [00:43:35]wFMCommunicate request_size=4 [00:43:35]MH_SAM_APDU [00:43:35]CAPDU: 80 09 00 00 [00:43:35]Write to MH i2c: E2 08 00 9E 05 80 09 00 00 00 00 00 00 15 [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:35]Read from MH i2c: E2 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 03 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [00:43:35]RAPDU: 90 00 [00:43:35]wFMCommunicate OK [00:43:35]SAM_PROTO_ClearQueue done [00:43:35]KKMCreateOFDPacket [00:43:35]OFDProtocolAddRootSTLVToBuf [00:43:35]FM_MakeSignedData [00:43:35]FM_MakeSignedData [00:43:35]SAM_PROTO_SignData [00:43:35]wFMCommunicate request_size=4 [00:43:35]MH_SAM_APDU [00:43:35]CAPDU: 80 0D 01 02 [00:43:35]Write to MH i2c: E2 08 00 9F 05 80 0D 01 02 00 00 00 00 1D [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:35]Read from MH i2c: E2 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 03 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [00:43:35]RAPDU: 90 00 [00:43:35]wFMCommunicate OK [00:43:35]wFMCommunicate request_size=255 [00:43:35]MH_SAM_APDU [00:43: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 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 38 DE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 15 03 00 35 04 06 00 1F [00:43:35]Write to MH i2c: E2 02 01 A0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 38 DE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 15 03 00 35 04 06 00 1F 00 00 6D [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [00:43:36]RAPDU: 90 00 [00:43:36]wFMCommunicate OK [00:43:36]wFMCommunicate request_size=10 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 0D 02 02 05 87 B2 FD C4 CC [00:43:36]Write to MH i2c: E2 0D 00 A1 05 80 0D 02 02 05 00 87 B2 FD C4 CC 00 00 F0 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [00:43:36]RAPDU: 90 00 [00:43:36]wFMCommunicate OK [00:43:36]wFMCommunicate request_size=4 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 0D 03 02 [00:43:36]Write to MH i2c: E2 08 00 A2 05 80 0D 03 02 00 00 00 00 22 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 0B 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 0B 00 A2 05 00 5A 62 F5 22 C6 43 AB 3B 90 00 E5 [00:43:36]RAPDU: 5A 62 F5 22 C6 43 AB 3B 90 00 [00:43:36]wFMCommunicate OK [00:43:36]SAM_PROTO_SignData done [00:43:36]FM_MakeSignedData done [00:43:36]CreateOFDProtocolMessage [00:43:36]wFMCommunicate request_size=4 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 11 00 00 [00:43:36]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 17 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [00:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:43:36]wFMCommunicate OK [00:43:36]CreateOFDProtocolMessage done [00:43:36]OFDSenderStorePacket 202204 [00:43:36]StoreOFDPacket docnum=202204 [00:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1D ED 07 01 C8 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 38 DE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 15 03 00 35 04 06 00 1F 87 B2 FD C4 CC 5A 62 F5 22 C6 43 AB 3B [00:43:36]CheckFolder [00:43:36]dirname=/storage/ofd_packets [00:43:36]CheckFolder done [00:43:36]ProducePacketName [00:43:36]name=ofd_packets/00202204 [00:43:36]NVStorageSaveData ofd_packets/00202204 [00:43:36]File name is /storage/ofd_packets/00202204 [00:43:36]Write 301 bytes [00:43:36]NVStorageSaveData done [00:43:36]OFDSenderStorePacket done [00:43:36]KKMCreateOFDPacket done [00:43:36]NVStorageSaveData kkm_last_timestamp [00:43:36]File name is /storage/kkm_last_timestamp [00:43:36]Write 4 bytes [00:43:36]NVStorageSaveData done [00:43:36]ExternCall_PrintAddStr [00:43:36]wPrintStart [00:43:36]Write to MH i2c: 01 00 00 A4 05 A9 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: 01 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: 01 07 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [00:43:36]RasterBufferAndPrint [00:43:36]line Счет N : (1)449976 [00:43:36]line ИНН: 02508201610067 [00:43:36]line Контрольно-Кассовый Чек [00:43:36]line ПРОДАЖА [00:43:36]line ТРК (МРК, ГНК) : 41 [00:43:36]line Товар: 2710124130 [00:43:36]line Аи-92-К-2 [00:43:36]line 1.500 * 66.90 [00:43:36]line = 100.35 [00:43:36]line НДС 12% НСП 1% [00:43:36]line > о реализуемом товаре [00:43:36]line ОКРУГЛЕНИЕ: -0.35 [00:43:36]line ИТОГО: 100.00 [00:43:36]line Внесено: 100.00 [00:43:36]line СДАЧА: 0.00 [00:43:36]line НСП 1% : 0.89 [00:43:36]line НДС 12% : 10.66 [00:43:36]line Наличными: 100.00 [00:43:36]line Безнал.: 0.00 [00:43:36]line Место: АЗС № 171 "Партнер Нефть" [00:43:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:43:36]line СНО: Общий режим [00:43:36]line Чек 4 28.10.2024 00:43 [00:43:36]line Смена: 545 ФФД: 1.0 [00:43:36]line ЗНМ: 0300000109 [00:43:36]line РНМ: 0000000000091777 [00:43:36]line Версия ККМ: 001 [00:43:36]line ФМ: 0000000000871756 [00:43:36]line ФД: 202204 [00:43:36]line ФПД: 34667684021452 [00:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T004336&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202204&fm=34667684021452&tin=02508201610067®Number=0000000000091777&sum=10000 [00:43:36]OFD Sender: Processing packet 202204 [packets to send 114, broken 113] [00:43:36]ProducePacketName [00:43:36]name=ofd_packets/00202204 [00:43:36]OFD Sender: To server: pG, [00:43:36]CommunicateWithHost lk.salyk.kg:30040 [00:43:36]ConnectInit lk.salyk.kg [00:43:36]written 0, free lines is 4095 [00:43:36]Connected sock=10 [00:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1D ED 07 01 C8 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 38 DE 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 15 03 00 35 04 06 00 1F 87 B2 FD C4 CC 5A 62 F5 22 C6 43 AB 3B [00:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 81 24 47 00 9F E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 15 03 00 F4 03 04 00 F0 89 1E 67 B6 04 01 00 00 E8 EA 70 78 95 48 E5 D2 [00:43:37]CommunicateWithHost err = 0 [00:43:37]CheckOFDResponse [00:43:37]1017 (14) - 77093643461234 [00:43:37]1041 (16) - 0000000000871756 [00:43:37]1040 (4) - 202204 [00:43:37]1012 (4) - 27.10.2024 18:44 [00:43:37]1206 (1) - 0 [00:43:37]OFD Sender: Remove packet 202204 [00:43:37]ProducePacketName [00:43:37]name=ofd_packets/00202204 [00:43:37]NVStorageDeleteData [00:43:37]Write to MH i2c: 01 00 00 CF 05 D4 [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: 01 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: 01 07 00 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 9D 0C 84 [00:43:37]RasterBufferAndPrint [00:43:37]line [00:43:37]line [00:43:37]line [00:43:37]line [00:43:37]line [00:43:37]written 0, free lines is 3235 [00:43:37]MH_Cut [00:43:37]Write to MH i2c: D1 01 00 D6 05 01 AD [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: D1 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: D1 01 00 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: D1 01 00 D6 05 00 AC [00:43:37]Write to MH i2c: 01 00 00 D7 05 DC [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:37]OFD Sender: No OFD packet to send [00:43:38]*** Cut start [00:43:38]*** Purtial cut [00:43:38]*** Stage 1: CUTSNS_PIN = 1 [00:43:38]Read from MH i2c: 01 [00:43:38]MH_I2C_Read... [00:43:38]*** Stop cut motor [00:43:38]*** Cut end [00:43:38]Read from MH i2c: 01 07 00 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 FF 0F F1 [00:43:38]process_action close_receipt done [00:43:38]requested_data is exist [00:43:38]produce_requested_data [00:43:38]requested_item fm.sn is exist - process it [00:43:38]wFMCommunicate request_size=4 [00:43:38]MH_SAM_APDU [00:43:38]CAPDU: 80 11 00 00 [00:43:38]Write to MH i2c: E2 08 00 D8 05 80 11 00 00 00 00 00 00 57 [00:43:38]Write i2c OK [00:43:38]MH_I2C_Read... [00:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:38]Read from MH i2c: E2 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 17 00 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 17 00 D8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AC [00:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:43:38]wFMCommunicate OK [00:43:38]requested_item fd.num is exist - process it [00:43:38]SAM_PROTO_GetFieldsCounters [00:43:38]wFMCommunicate request_size=4 [00:43:38]MH_SAM_APDU [00:43:38]CAPDU: 80 13 00 00 [00:43:38]Write to MH i2c: E2 08 00 D9 05 80 13 00 00 00 00 00 00 5A [00:43:38]Write i2c OK [00:43:38]MH_I2C_Read... [00:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:38]Read from MH i2c: E2 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 62 00 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 62 00 D9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DC 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [00:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DC 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:38]wFMCommunicate OK [00:43:38]SAM_PROTO_GetFieldsCounters done [00:43:38]requested_item shift.num is exist - process it [00:43:38]requested_item shift.opened is exist - process it [00:43:38]req_shift_opened [00:43:38]FM_GetShiftState [00:43:38]SAM_PROTO_GetShiftState [00:43:38]wFMCommunicate request_size=4 [00:43:38]MH_SAM_APDU [00:43:38]CAPDU: 80 13 01 00 [00:43:38]Write to MH i2c: E2 08 00 DA 05 80 13 01 00 00 00 00 00 5C [00:43:38]Write i2c OK [00:43:38]MH_I2C_Read... [00:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:38]Read from MH i2c: E2 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 0E 00 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 0E 00 DA 05 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 07 [00:43:38]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:43:38]wFMCommunicate OK [00:43:38]SAM_PROTO_GetShiftState done [00:43:38]FM_GetShiftState done [00:43:38]req_shift_opened done [00:43:38]requested_item shift.open_date is exist - process it [00:43:38]req_shift_open_date [00:43:38]req_shift_open_date done [00:43:38]produce_requested_data done [00:43:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202204,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670} [00:43:38]process_action_free close_receipt [00:43:38]json_value_free [00:43:38]json_value_free done [00:43:38]process_json_proto returns [00:43:38]Send response to host [00:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202204,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [00:43:38]free response buf [00:43:38]execute_script done [00:43:38]execute_script returns [00:43:38]free content buf [00:43:38]Sock 9.Close socket [00:43:38]Sock 9.Thread stoped [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:53]accept exits with 7 [00:51:53]New connection [00:51:53]New thread 3067280740 created [00:51:53]Thread 3067424100 joined [00:51:53]Waiting for new connection... [00:51:53] Sock 7.Parse request [00:51:53]Sock 7.Check first char [00:51:53]Sock 7.First char is OK [00:51:53]request: POST /json_proto HTTP/1.0 [00:51:53]Method: POST [00:51:53]URL: /json_proto [00:51:53]Method is POST - this is cgi request [00:51:53]url: /json_proto [00:51:53]query_string will be loaded in cgi processing [00:51:53]execute_cgi json_proto POST (null) [00:51:53]execute_cgi path=json_proto method=POST [00:51:53]POST find Content-Length [00:51:53]Host: 172.17.63.195:8080 [00:51:53]Content-Length: 677 [00:51:53]Content-Type: application/json [00:51:53] [00:51:53]POST finish read [00:51:53]Found Content-Length = 677 [00:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:53]execute_script... [00:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:53]POST & json_proto [00:51:53]process_json_proto [00:51:53]json parsed OK: [00:51:53]protocol is kg_v1.0 [00:51:53]action value=close_receipt [00:51:53]process_action close_receipt [00:51:53]cmd_close_receipt [00:51:53]MH_GetDate [00:51:53]Write to MH i2c: F0 00 00 DB 05 CF [00:51:53]Write i2c OK [00:51:53]MH_I2C_Read... [00:51:53]Read from MH i2c: F0 [00:51:53]MH_I2C_Read... [00:51:53]Read from MH i2c: F0 09 00 [00:51:53]MH_I2C_Read... [00:51:53]Read from MH i2c: F0 09 00 DB 05 00 2B E0 1E 67 47 1B 1E 67 4F [00:51:53]GetLastDocTimeStamp 1730076216 [00:51:53]current date 1730076715 [00:51:53]FM_GetShiftState [00:51:53]SAM_PROTO_GetShiftState [00:51:53]wFMCommunicate request_size=4 [00:51:53]MH_SAM_APDU [00:51:53]CAPDU: 80 13 01 00 [00:51:53]Write to MH i2c: E2 08 00 DC 05 80 13 01 00 00 00 00 00 5E [00:51:53]Write i2c OK [00:51:53]MH_I2C_Read... [00:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:53]Read from MH i2c: E2 [00:51:53]MH_I2C_Read... [00:51:53]Read from MH i2c: E2 0E 00 [00:51:53]MH_I2C_Read... [00:51:53]Read from MH i2c: E2 0E 00 DC 05 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 09 [00:51:53]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:51:53]wFMCommunicate OK [00:51:53]SAM_PROTO_GetShiftState done [00:51:53]FM_GetShiftState done [00:51:53]opened in 1730073670 [00:51:53]opened+sec_in_day 1730160070 [00:51:53]quantity*price = 50010 [00:51:53]sum+1 = 50012 [00:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 5 28.10.2024 00:51 Смена: 545 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202205 ФПД: 126814763610432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T005155&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202205&fm=126814763610432&tin=02508201610067®Number=0000000000091777&sum=50000 [00:51:54]StoreToDocumentArchive [00:51:54]shift 545 fd 202205 [00:51:54]save to /storage/0545/doc_00202205 [00:51:54]save last doc name /storage/0545/doc_00202205 to /storage/kkm_last_doc_name [00:51:54]save OK [00:51:54]Clear old archive folders... [00:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:51:54]tlvbuf is 00C08060 [00:51:54]SAM_PROTO_ClearQueue [00:51:54]wFMCommunicate request_size=4 [00:51:54]MH_SAM_APDU [00:51:54]CAPDU: 80 09 00 00 [00:51:54]Write to MH i2c: E2 08 00 E9 05 80 09 00 00 00 00 00 00 60 [00:51:54]Write i2c OK [00:51:54]MH_I2C_Read... [00:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:54]Read from MH i2c: E2 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 03 00 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [00:51:54]RAPDU: 90 00 [00:51:54]wFMCommunicate OK [00:51:54]SAM_PROTO_ClearQueue done [00:51:54]KKMCreateOFDPacket [00:51:54]OFDProtocolAddRootSTLVToBuf [00:51:54]FM_MakeSignedData [00:51:54]FM_MakeSignedData [00:51:54]SAM_PROTO_SignData [00:51:54]wFMCommunicate request_size=4 [00:51:54]MH_SAM_APDU [00:51:54]CAPDU: 80 0D 01 02 [00:51:54]Write to MH i2c: E2 08 00 EA 05 80 0D 01 02 00 00 00 00 68 [00:51:54]Write i2c OK [00:51:54]MH_I2C_Read... [00:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:54]Read from MH i2c: E2 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 03 00 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [00:51:54]RAPDU: 90 00 [00:51:54]wFMCommunicate OK [00:51:54]wFMCommunicate request_size=255 [00:51:54]MH_SAM_APDU [00:51:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 2B E0 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 15 03 00 35 04 06 00 73 [00:51:54]Write to MH i2c: E2 02 01 EB 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 2B E0 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 15 03 00 35 04 06 00 73 00 00 F5 [00:51:54]Write i2c OK [00:51:54]MH_I2C_Read... [00:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:54]Read from MH i2c: E2 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 03 00 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [00:51:54]RAPDU: 90 00 [00:51:54]wFMCommunicate OK [00:51:54]wFMCommunicate request_size=10 [00:51:54]MH_SAM_APDU [00:51:54]CAPDU: 80 0D 02 02 05 56 5C EF F1 40 [00:51:54]Write to MH i2c: E2 0D 00 EC 05 80 0D 02 02 05 00 56 5C EF F1 40 00 00 47 [00:51:54]Write i2c OK [00:51:54]MH_I2C_Read... [00:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:54]Read from MH i2c: E2 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 03 00 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [00:51:54]RAPDU: 90 00 [00:51:54]wFMCommunicate OK [00:51:54]wFMCommunicate request_size=4 [00:51:54]MH_SAM_APDU [00:51:54]CAPDU: 80 0D 03 02 [00:51:54]Write to MH i2c: E2 08 00 ED 05 80 0D 03 02 00 00 00 00 6D [00:51:54]Write i2c OK [00:51:54]MH_I2C_Read... [00:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:54]Read from MH i2c: E2 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 0B 00 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 0B 00 ED 05 00 28 5D 8D 15 CC 68 B3 A2 90 00 1E [00:51:54]RAPDU: 28 5D 8D 15 CC 68 B3 A2 90 00 [00:51:54]wFMCommunicate OK [00:51:54]SAM_PROTO_SignData done [00:51:54]FM_MakeSignedData done [00:51:54]CreateOFDProtocolMessage [00:51:54]wFMCommunicate request_size=4 [00:51:54]MH_SAM_APDU [00:51:54]CAPDU: 80 11 00 00 [00:51:54]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [00:51:54]Write i2c OK [00:51:54]MH_I2C_Read... [00:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:54]Read from MH i2c: E2 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 17 00 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C2 [00:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:51:54]wFMCommunicate OK [00:51:54]CreateOFDProtocolMessage done [00:51:54]OFDSenderStorePacket 202205 [00:51:54]StoreOFDPacket docnum=202205 [00:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FF 77 07 01 C8 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 2B E0 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 15 03 00 35 04 06 00 73 56 5C EF F1 40 28 5D 8D 15 CC 68 B3 A2 [00:51:54]CheckFolder [00:51:54]dirname=/storage/ofd_packets [00:51:54]CheckFolder done [00:51:54]ProducePacketName [00:51:54]name=ofd_packets/00202205 [00:51:54]NVStorageSaveData ofd_packets/00202205 [00:51:54]File name is /storage/ofd_packets/00202205 [00:51:54]Write 301 bytes [00:51:54]NVStorageSaveData done [00:51:54]OFDSenderStorePacket done [00:51:54]KKMCreateOFDPacket done [00:51:54]NVStorageSaveData kkm_last_timestamp [00:51:54]File name is /storage/kkm_last_timestamp [00:51:54]Write 4 bytes [00:51:54]NVStorageSaveData done [00:51:54]ExternCall_PrintAddStr [00:51:54]wPrintStart [00:51:54]Write to MH i2c: 01 00 00 EF 05 F4 [00:51:54]Write i2c OK [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: 01 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: 01 07 00 [00:51:54]MH_I2C_Read... [00:51:54]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 FF 0F 09 [00:51:54]RasterBufferAndPrint [00:51:54]line Счет N : (1)449977 [00:51:54]line ИНН: 02508201610067 [00:51:54]line Контрольно-Кассовый Чек [00:51:54]line ПРОДАЖА [00:51:54]line ТРК (МРК, ГНК) : 61 [00:51:54]line Товар: 2710124500 [00:51:54]line Аи-95-К-3 [00:51:54]line 6.740 * 74.20 [00:51:54]line = 500.11 [00:51:54]line НДС 12% НСП 1% [00:51:54]line > о реализуемом товаре [00:51:54]line ОКРУГЛЕНИЕ: -0.11 [00:51:54]line ИТОГО: 500.00 [00:51:54]line Внесено: 500.00 [00:51:54]line СДАЧА: 0.00 [00:51:54]line НСП 1% : 4.43 [00:51:54]line НДС 12% : 53.11 [00:51:54]line Наличными: 500.00 [00:51:54]line Безнал.: 0.00 [00:51:54]line Место: АЗС № 171 "Партнер Нефть" [00:51:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:51:54]line СНО: Общий режим [00:51:54]line Чек 5 28.10.2024 00:51 [00:51:54]line Смена: 545 ФФД: 1.0 [00:51:54]line ЗНМ: 0300000109 [00:51:54]line РНМ: 0000000000091777 [00:51:54]line Версия ККМ: 001 [00:51:54]line ФМ: 0000000000871756 [00:51:54]line ФД: 202205 [00:51:54]line ФПД: 126814763610432 [00:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T005155&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202205&fm=126814763610432&tin=02508201610067®Number=0000000000091777&sum=50000 [00:51:55]OFD Sender: Processing packet 202205 [packets to send 114, broken 113] [00:51:55]ProducePacketName [00:51:55]name=ofd_packets/00202205 [00:51:55]OFD Sender: To server: pG, [00:51:55]CommunicateWithHost lk.salyk.kg:30040 [00:51:55]ConnectInit lk.salyk.kg [00:51:55]written 0, free lines is 4095 [00:51:55]Connected sock=10 [00:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FF 77 07 01 C8 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 2B E0 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 15 03 00 35 04 06 00 73 56 5C EF F1 40 28 5D 8D 15 CC 68 B3 A2 [00:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FD C8 47 00 E1 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 15 03 00 F4 03 04 00 E3 8B 1E 67 B6 04 01 00 00 74 91 82 73 BF F4 A7 89 [00:51:55]CommunicateWithHost err = 0 [00:51:55]CheckOFDResponse [00:51:55]1017 (14) - 77093643461234 [00:51:55]1041 (16) - 0000000000871756 [00:51:55]1040 (4) - 202205 [00:51:55]1012 (4) - 27.10.2024 18:52 [00:51:55]1206 (1) - 0 [00:51:55]OFD Sender: Remove packet 202205 [00:51:55]ProducePacketName [00:51:55]name=ofd_packets/00202205 [00:51:55]NVStorageDeleteData [00:51:55]Write to MH i2c: 01 00 00 1A 06 20 [00:51:55]Write i2c OK [00:51:55]MH_I2C_Read... [00:51:55]Read from MH i2c: 01 [00:51:55]MH_I2C_Read... [00:51:55]Read from MH i2c: 01 07 00 [00:51:55]MH_I2C_Read... [00:51:55]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 8D 0C C0 [00:51:55]RasterBufferAndPrint [00:51:55]line [00:51:55]line [00:51:55]line [00:51:55]line [00:51:55]line [00:51:55]written 0, free lines is 3218 [00:51:55]MH_Cut [00:51:55]Write to MH i2c: D1 01 00 21 06 01 F9 [00:51:55]Write i2c OK [00:51:55]MH_I2C_Read... [00:51:55]Read from MH i2c: D1 [00:51:55]MH_I2C_Read... [00:51:55]Read from MH i2c: D1 01 00 [00:51:55]MH_I2C_Read... [00:51:55]Read from MH i2c: D1 01 00 21 06 00 F8 [00:51:55]Write to MH i2c: 01 00 00 22 06 28 [00:51:55]Write i2c OK [00:51:55]MH_I2C_Read... [00:51:56]OFD Sender: No OFD packet to send [00:51:56]*** Cut start [00:51:56]*** Purtial cut [00:51:56]*** Stage 1: CUTSNS_PIN = 1 [00:51:56]Read from MH i2c: 01 [00:51:56]MH_I2C_Read... [00:51:56]*** Stop cut motor [00:51:56]*** Cut end [00:51:56]Read from MH i2c: 01 07 00 [00:51:56]MH_I2C_Read... [00:51:56]Read from MH i2c: 01 07 00 22 06 00 00 00 00 00 FF 0F 3D [00:51:56]process_action close_receipt done [00:51:56]requested_data is exist [00:51:56]produce_requested_data [00:51:56]requested_item fm.sn is exist - process it [00:51:56]wFMCommunicate request_size=4 [00:51:56]MH_SAM_APDU [00:51:56]CAPDU: 80 11 00 00 [00:51:56]Write to MH i2c: E2 08 00 23 06 80 11 00 00 00 00 00 00 A3 [00:51:56]Write i2c OK [00:51:56]MH_I2C_Read... [00:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:56]Read from MH i2c: E2 [00:51:56]MH_I2C_Read... [00:51:56]Read from MH i2c: E2 17 00 [00:51:56]MH_I2C_Read... [00:51:56]Read from MH i2c: E2 17 00 23 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F8 [00:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:51:56]wFMCommunicate OK [00:51:56]requested_item fd.num is exist - process it [00:51:56]SAM_PROTO_GetFieldsCounters [00:51:56]wFMCommunicate request_size=4 [00:51:56]MH_SAM_APDU [00:51:56]CAPDU: 80 13 00 00 [00:51:56]Write to MH i2c: E2 08 00 24 06 80 13 00 00 00 00 00 00 A6 [00:51:56]Write i2c OK [00:51:56]MH_I2C_Read... [00:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:57]Read from MH i2c: E2 [00:51:57]MH_I2C_Read... [00:51:57]Read from MH i2c: E2 62 00 [00:51:57]MH_I2C_Read... [00:51:57]Read from MH i2c: E2 62 00 24 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DD 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [00:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DD 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:57]wFMCommunicate OK [00:51:57]SAM_PROTO_GetFieldsCounters done [00:51:57]requested_item shift.num is exist - process it [00:51:57]requested_item shift.opened is exist - process it [00:51:57]req_shift_opened [00:51:57]FM_GetShiftState [00:51:57]SAM_PROTO_GetShiftState [00:51:57]wFMCommunicate request_size=4 [00:51:57]MH_SAM_APDU [00:51:57]CAPDU: 80 13 01 00 [00:51:57]Write to MH i2c: E2 08 00 25 06 80 13 01 00 00 00 00 00 A8 [00:51:57]Write i2c OK [00:51:57]MH_I2C_Read... [00:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:57]Read from MH i2c: E2 [00:51:57]MH_I2C_Read... [00:51:57]Read from MH i2c: E2 0E 00 [00:51:57]MH_I2C_Read... [00:51:57]Read from MH i2c: E2 0E 00 25 06 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 53 [00:51:57]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [00:51:57]wFMCommunicate OK [00:51:57]SAM_PROTO_GetShiftState done [00:51:57]FM_GetShiftState done [00:51:57]req_shift_opened done [00:51:57]requested_item shift.open_date is exist - process it [00:51:57]req_shift_open_date [00:51:57]req_shift_open_date done [00:51:57]produce_requested_data done [00:51:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202205,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670} [00:51:57]process_action_free close_receipt [00:51:57]json_value_free [00:51:57]json_value_free done [00:51:57]process_json_proto returns [00:51:57]Send response to host [00:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202205,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [00:51:57]free response buf [00:51:57]execute_script done [00:51:57]execute_script returns [00:51:57]free content buf [00:51:57]Sock 7.Close socket [00:51:57]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:52]ConnectInit Can't connect to host [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:17]accept exits with 9 [01:01:17]New connection [01:01:17]New thread 3067424100 created [01:01:17]Thread 3067280740 joined [01:01:17]Waiting for new connection... [01:01:17] Sock 9.Parse request [01:01:17]Sock 9.Check first char [01:01:17]Sock 9.First char is OK [01:01:17]request: POST /json_proto HTTP/1.0 [01:01:17]Method: POST [01:01:17]URL: /json_proto [01:01:17]Method is POST - this is cgi request [01:01:17]url: /json_proto [01:01:17]query_string will be loaded in cgi processing [01:01:17]execute_cgi json_proto POST (null) [01:01:17]execute_cgi path=json_proto method=POST [01:01:17]POST find Content-Length [01:01:17]Host: 172.17.63.195:8080 [01:01:17]Content-Length: 674 [01:01:17]Content-Type: application/json [01:01:17] [01:01:17]POST finish read [01:01:17]Found Content-Length = 674 [01:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.060, "sum" : 690.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:17]execute_script... [01:01:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.060, "sum" : 690.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:17]POST & json_proto [01:01:17]process_json_proto [01:01:17]json parsed OK: [01:01:17]protocol is kg_v1.0 [01:01:17]action value=close_receipt [01:01:17]process_action close_receipt [01:01:17]cmd_close_receipt [01:01:17]MH_GetDate [01:01:17]Write to MH i2c: F0 00 00 26 06 1B [01:01:17]Write i2c OK [01:01:17]MH_I2C_Read... [01:01:17]Read from MH i2c: F0 [01:01:17]MH_I2C_Read... [01:01:17]Read from MH i2c: F0 09 00 [01:01:17]MH_I2C_Read... [01:01:17]Read from MH i2c: F0 09 00 26 06 00 5F E2 1E 67 47 1B 1E 67 D1 [01:01:17]GetLastDocTimeStamp 1730076715 [01:01:17]current date 1730077279 [01:01:17]FM_GetShiftState [01:01:17]SAM_PROTO_GetShiftState [01:01:17]wFMCommunicate request_size=4 [01:01:17]MH_SAM_APDU [01:01:17]CAPDU: 80 13 01 00 [01:01:17]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [01:01:17]Write i2c OK [01:01:17]MH_I2C_Read... [01:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:17]Read from MH i2c: E2 [01:01:17]MH_I2C_Read... [01:01:17]Read from MH i2c: E2 0E 00 [01:01:17]MH_I2C_Read... [01:01:17]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 55 [01:01:17]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [01:01:17]wFMCommunicate OK [01:01:17]SAM_PROTO_GetShiftState done [01:01:17]FM_GetShiftState done [01:01:17]opened in 1730073670 [01:01:17]opened+sec_in_day 1730160070 [01:01:17]quantity*price = 69037 [01:01:17]sum+1 = 69038 [01:01:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.31 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 6 28.10.2024 01:01 Смена: 545 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202206 ФПД: 193402232018480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T010119&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202206&fm=193402232018480&tin=02508201610067®Number=0000000000091777&sum=69000 [01:01:18]StoreToDocumentArchive [01:01:18]shift 545 fd 202206 [01:01:18]save to /storage/0545/doc_00202206 [01:01:18]save last doc name /storage/0545/doc_00202206 to /storage/kkm_last_doc_name [01:01:18]save OK [01:01:18]Clear old archive folders... [01:01:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:01:18]tlvbuf is 00C4F9A0 [01:01:18]SAM_PROTO_ClearQueue [01:01:18]wFMCommunicate request_size=4 [01:01:18]MH_SAM_APDU [01:01:18]CAPDU: 80 09 00 00 [01:01:18]Write to MH i2c: E2 08 00 34 06 80 09 00 00 00 00 00 00 AC [01:01:18]Write i2c OK [01:01:18]MH_I2C_Read... [01:01:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:18]Read from MH i2c: E2 [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: E2 03 00 [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [01:01:18]RAPDU: 90 00 [01:01:18]wFMCommunicate OK [01:01:18]SAM_PROTO_ClearQueue done [01:01:18]KKMCreateOFDPacket [01:01:18]OFDProtocolAddRootSTLVToBuf [01:01:18]FM_MakeSignedData [01:01:18]FM_MakeSignedData [01:01:18]SAM_PROTO_SignData [01:01:18]wFMCommunicate request_size=4 [01:01:18]MH_SAM_APDU [01:01:18]CAPDU: 80 0D 01 02 [01:01:18]Write to MH i2c: E2 08 00 35 06 80 0D 01 02 00 00 00 00 B4 [01:01:18]Write i2c OK [01:01:18]MH_I2C_Read... [01:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:18]Read from MH i2c: E2 [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: E2 03 00 [01:01:18]MH_I2C_Read... [01:01:18]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [01:01:18]RAPDU: 90 00 [01:01:18]wFMCommunicate OK [01:01:18]wFMCommunicate request_size=255 [01:01:18]MH_SAM_APDU [01:01:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 64 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AD 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5F E2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 15 03 00 35 04 06 00 AF E5 F7 56 [01:01:18]Write to MH i2c: E2 02 01 36 06 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 32 FF 03 08 00 03 64 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AD 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5F E2 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 15 03 00 35 04 06 00 AF E5 F7 56 00 00 4F [01:01:18]Write i2c OK [01:01:18]MH_I2C_Read... [01:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:19]Read from MH i2c: E2 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 03 00 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [01:01:19]RAPDU: 90 00 [01:01:19]wFMCommunicate OK [01:01:19]wFMCommunicate request_size=7 [01:01:19]MH_SAM_APDU [01:01:19]CAPDU: 80 0D 02 02 02 96 30 [01:01:19]Write to MH i2c: E2 0A 00 37 06 80 0D 02 02 02 00 96 30 00 00 81 [01:01:19]Write i2c OK [01:01:19]MH_I2C_Read... [01:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:19]Read from MH i2c: E2 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 03 00 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [01:01:19]RAPDU: 90 00 [01:01:19]wFMCommunicate OK [01:01:19]wFMCommunicate request_size=4 [01:01:19]MH_SAM_APDU [01:01:19]CAPDU: 80 0D 03 02 [01:01:19]Write to MH i2c: E2 08 00 38 06 80 0D 03 02 00 00 00 00 B9 [01:01:19]Write i2c OK [01:01:19]MH_I2C_Read... [01:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:19]Read from MH i2c: E2 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 0B 00 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 0B 00 38 06 00 9C DC 04 74 F2 D9 03 29 90 00 A1 [01:01:19]RAPDU: 9C DC 04 74 F2 D9 03 29 90 00 [01:01:19]wFMCommunicate OK [01:01:19]SAM_PROTO_SignData done [01:01:19]FM_MakeSignedData done [01:01:19]CreateOFDProtocolMessage [01:01:19]wFMCommunicate request_size=4 [01:01:19]MH_SAM_APDU [01:01:19]CAPDU: 80 11 00 00 [01:01:19]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [01:01:19]Write i2c OK [01:01:19]MH_I2C_Read... [01:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:19]Read from MH i2c: E2 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 17 00 [01:01:19]MH_I2C_Read... [01:01:19]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [01:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:01:19]wFMCommunicate OK [01:01:19]CreateOFDProtocolMessage done [01:01:19]OFDSenderStorePacket 202206 [01:01:19]StoreOFDPacket docnum=202206 [01:01:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202206,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [01:01:21]free response buf [01:01:21]execute_script done [01:01:21]execute_script returns [01:01:21]free content buf [01:01:21]Sock 9.Close socket [01:01:21]Sock 9.Thread stoped [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]int [01:02:30]Write to MH i2c: 01 00 00 71 06 77 [01:02:30]*** FLAG_PRN_KEY set [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 71 06 00 08 00 00 00 FF 0F 94 [01:02:30]state=0 [01:02:30]Key pressed [01:02:30]Feed [01:02:30]Write to MH i2c: D8 00 00 72 06 4F [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: D8 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: D8 01 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: D8 01 00 72 06 00 50 [01:02:30]int [01:02:30]Write to MH i2c: 01 00 00 73 06 79 [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 73 06 00 48 00 00 00 3C 00 04 [01:02:30]state=2 [01:02:30]Key pressed [01:02:30]int [01:02:30]Write to MH i2c: 01 00 00 74 06 7A [01:02:30]*** FLAG_PRN_KEY reset [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 F8 0F 88 [01:02:30]state=2 [01:02:30]Stop feed [01:02:30]OFD Sender: No OFD packet to send [01:02:30]int [01:02:30]Write to MH i2c: 01 00 00 75 06 7B [01:02:30]*** FLAG_PRN_KEY set [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 75 06 00 08 00 00 00 FF 0F 98 [01:02:30]state=0 [01:02:30]Key pressed [01:02:30]Feed [01:02:30]Write to MH i2c: D8 00 00 76 06 53 [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: D8 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: D8 01 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: D8 01 00 76 06 00 54 [01:02:30]int [01:02:30]Write to MH i2c: 01 00 00 77 06 7D [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 77 06 00 48 00 00 00 3C 00 08 [01:02:30]state=2 [01:02:30]Key pressed [01:02:30]int [01:02:30]Write to MH i2c: 01 00 00 78 06 7E [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]*** FLAG_PRN_KEY reset [01:02:30]*** FLAG_PRN_KEY set [01:02:30]*** FLAG_PRN_KEY reset [01:02:30]Read from MH i2c: 01 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 78 06 00 08 00 00 00 F5 0F 91 [01:02:30]state=2 [01:02:30]Key pressed [01:02:30]int line is 0 - check status [01:02:30]Write to MH i2c: 01 00 00 79 06 7F [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FE 0F 93 [01:02:30]state=2 [01:02:31]Stop feed [01:02:31]int [01:02:31]Write to MH i2c: 01 00 00 7A 06 80 [01:02:31]Write i2c OK [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: 01 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: 01 07 00 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 FF 0F 95 [01:02:31]state=0 [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:26]ConnectInit Can't connect to host [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]ConnectInit Can't connect to host [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:54]accept exits with 10 [01:06:54]New connection [01:06:54]New thread 3067280740 created [01:06:54]Thread 3067424100 joined [01:06:54]Waiting for new connection... [01:06:54] Sock 10.Parse request [01:06:54]Sock 10.Check first char [01:06:54]Sock 10.First char is OK [01:06:54]request: POST /json_proto HTTP/1.0 [01:06:54]Method: POST [01:06:54]URL: /json_proto [01:06:54]Method is POST - this is cgi request [01:06:54]url: /json_proto [01:06:54]query_string will be loaded in cgi processing [01:06:54]execute_cgi json_proto POST (null) [01:06:54]execute_cgi path=json_proto method=POST [01:06:54]POST find Content-Length [01:06:54]Host: 172.17.63.195:8080 [01:06:54]Content-Length: 677 [01:06:54]Content-Type: application/json [01:06:54] [01:06:54]POST finish read [01:06:54]Found Content-Length = 677 [01:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:06:54]execute_script... [01:06: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)449979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:06:54]POST & json_proto [01:06:54]process_json_proto [01:06:54]json parsed OK: [01:06:54]protocol is kg_v1.0 [01:06:54]action value=close_receipt [01:06:54]process_action close_receipt [01:06:54]cmd_close_receipt [01:06:54]MH_GetDate [01:06:54]Write to MH i2c: F0 00 00 7B 06 70 [01:06:54]Write i2c OK [01:06:54]MH_I2C_Read... [01:06:54]Read from MH i2c: F0 [01:06:54]MH_I2C_Read... [01:06:54]Read from MH i2c: F0 09 00 [01:06:54]MH_I2C_Read... [01:06:54]Read from MH i2c: F0 09 00 7B 06 00 B0 E3 1E 67 47 1B 1E 67 78 [01:06:54]GetLastDocTimeStamp 1730077279 [01:06:54]current date 1730077616 [01:06:54]FM_GetShiftState [01:06:54]SAM_PROTO_GetShiftState [01:06:54]wFMCommunicate request_size=4 [01:06:54]MH_SAM_APDU [01:06:54]CAPDU: 80 13 01 00 [01:06:54]Write to MH i2c: E2 08 00 7C 06 80 13 01 00 00 00 00 00 FF [01:06:54]Write i2c OK [01:06:54]MH_I2C_Read... [01:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:54]Read from MH i2c: E2 [01:06:54]MH_I2C_Read... [01:06:54]Read from MH i2c: E2 0E 00 [01:06:54]MH_I2C_Read... [01:06:54]Read from MH i2c: E2 0E 00 7C 06 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 AA [01:06:54]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [01:06:54]wFMCommunicate OK [01:06:54]SAM_PROTO_GetShiftState done [01:06:54]FM_GetShiftState done [01:06:54]opened in 1730073670 [01:06:54]opened+sec_in_day 1730160070 [01:06:54]quantity*price = 20003 [01:06:54]sum+1 = 20004 [01:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 7 28.10.2024 01:06 Смена: 545 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202207 ФПД: 264475543320025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T010656&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202207&fm=264475543320025&tin=02508201610067®Number=0000000000091777&sum=20000 [01:06:55]StoreToDocumentArchive [01:06:55]shift 545 fd 202207 [01:06:55]save to /storage/0545/doc_00202207 [01:06:55]save last doc name /storage/0545/doc_00202207 to /storage/kkm_last_doc_name [01:06:55]save OK [01:06:55]Clear old archive folders... [01:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:06:55]tlvbuf is 00C4FAB0 [01:06:55]SAM_PROTO_ClearQueue [01:06:55]wFMCommunicate request_size=4 [01:06:55]MH_SAM_APDU [01:06:55]CAPDU: 80 09 00 00 [01:06:55]Write to MH i2c: E2 08 00 89 06 80 09 00 00 00 00 00 00 01 [01:06:55]Write i2c OK [01:06:55]MH_I2C_Read... [01:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:55]Read from MH i2c: E2 [01:06:55]MH_I2C_Read... [01:06:55]Read from MH i2c: E2 03 00 [01:06:55]MH_I2C_Read... [01:06:55]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [01:06:55]RAPDU: 90 00 [01:06:55]wFMCommunicate OK [01:06:55]SAM_PROTO_ClearQueue done [01:06:55]KKMCreateOFDPacket [01:06:55]OFDProtocolAddRootSTLVToBuf [01:06:55]FM_MakeSignedData [01:06:55]FM_MakeSignedData [01:06:55]SAM_PROTO_SignData [01:06:55]wFMCommunicate request_size=4 [01:06:55]MH_SAM_APDU [01:06:55]CAPDU: 80 0D 01 02 [01:06:55]Write to MH i2c: E2 08 00 8A 06 80 0D 01 02 00 00 00 00 09 [01:06:55]Write i2c OK [01:06:55]MH_I2C_Read... [01:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:55]Read from MH i2c: E2 [01:06:55]MH_I2C_Read... [01:06:55]Read from MH i2c: E2 03 00 [01:06:55]MH_I2C_Read... [01:06:55]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [01:06:55]RAPDU: 90 00 [01:06:55]wFMCommunicate OK [01:06:55]wFMCommunicate request_size=255 [01:06:55]MH_SAM_APDU [01:06:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 B0 E3 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 15 03 00 35 04 06 00 F0 [01:06:55]Write to MH i2c: E2 02 01 8B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 B0 E3 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 15 03 00 35 04 06 00 F0 00 00 88 [01:06:55]Write i2c OK [01:06:55]MH_I2C_Read... [01:06:55]OFD Sender: No OFD packet to send [01:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:55]Read from MH i2c: E2 [01:06:55]MH_I2C_Read... [01:06:55]Read from MH i2c: E2 03 00 [01:06:55]MH_I2C_Read... [01:06:55]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [01:06:55]RAPDU: 90 00 [01:06:55]wFMCommunicate OK [01:06:55]wFMCommunicate request_size=10 [01:06:55]MH_SAM_APDU [01:06:55]CAPDU: 80 0D 02 02 05 8A 02 CF B5 D9 [01:06:55]Write to MH i2c: E2 0D 00 8C 06 80 0D 02 02 05 00 8A 02 CF B5 D9 00 00 FF [01:06:55]Write i2c OK [01:06:55]MH_I2C_Read... [01:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:55]Read from MH i2c: E2 [01:06:55]MH_I2C_Read... [01:06:55]Read from MH i2c: E2 03 00 [01:06:55]MH_I2C_Read... [01:06:55]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [01:06:55]RAPDU: 90 00 [01:06:55]wFMCommunicate OK [01:06:55]wFMCommunicate request_size=4 [01:06:55]MH_SAM_APDU [01:06:55]CAPDU: 80 0D 03 02 [01:06:55]Write to MH i2c: E2 08 00 8D 06 80 0D 03 02 00 00 00 00 0E [01:06:55]Write i2c OK [01:06:55]MH_I2C_Read... [01:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:56]Read from MH i2c: E2 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: E2 0B 00 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: E2 0B 00 8D 06 00 BA 4A 40 A8 48 62 9B 2E 90 00 6E [01:06:56]RAPDU: BA 4A 40 A8 48 62 9B 2E 90 00 [01:06:56]wFMCommunicate OK [01:06:56]SAM_PROTO_SignData done [01:06:56]FM_MakeSignedData done [01:06:56]CreateOFDProtocolMessage [01:06:56]wFMCommunicate request_size=4 [01:06:56]MH_SAM_APDU [01:06:56]CAPDU: 80 11 00 00 [01:06:56]Write to MH i2c: E2 08 00 8E 06 80 11 00 00 00 00 00 00 0E [01:06:56]Write i2c OK [01:06:56]MH_I2C_Read... [01:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:56]Read from MH i2c: E2 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: E2 17 00 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: E2 17 00 8E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [01:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:06:56]wFMCommunicate OK [01:06:56]CreateOFDProtocolMessage done [01:06:56]OFDSenderStorePacket 202207 [01:06:56]StoreOFDPacket docnum=202207 [01:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B5 75 07 01 8D FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 B0 E3 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 15 03 00 35 04 06 00 F0 8A 02 CF B5 D9 BA 4A 40 A8 48 62 9B 2E [01:06:56]CheckFolder [01:06:56]dirname=/storage/ofd_packets [01:06:56]CheckFolder done [01:06:56]ProducePacketName [01:06:56]name=ofd_packets/00202207 [01:06:56]NVStorageSaveData ofd_packets/00202207 [01:06:56]File name is /storage/ofd_packets/00202207 [01:06:56]Write 301 bytes [01:06:56]NVStorageSaveData done [01:06:56]OFDSenderStorePacket done [01:06:56]KKMCreateOFDPacket done [01:06:56]NVStorageSaveData kkm_last_timestamp [01:06:56]File name is /storage/kkm_last_timestamp [01:06:56]Write 4 bytes [01:06:56]NVStorageSaveData done [01:06:56]ExternCall_PrintAddStr [01:06:56]wPrintStart [01:06:56]Write to MH i2c: 01 00 00 8F 06 95 [01:06:56]Write i2c OK [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: 01 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: 01 07 00 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: 01 07 00 8F 06 00 00 00 00 00 FF 0F AA [01:06:56]RasterBufferAndPrint [01:06:56]line Счет N : (1)449979 [01:06:56]line ИНН: 02508201610067 [01:06:56]line Контрольно-Кассовый Чек [01:06:56]line ПРОДАЖА [01:06:56]line ТРК (МРК, ГНК) : 41 [01:06:56]line Товар: 2710124130 [01:06:56]line Аи-92-К-2 [01:06:56]line 2.990 * 66.90 [01:06:56]line = 200.03 [01:06:56]line НДС 12% НСП 1% [01:06:56]line > о реализуемом товаре [01:06:56]line ОКРУГЛЕНИЕ: -0.03 [01:06:56]line ИТОГО: 200.00 [01:06:56]line Внесено: 200.00 [01:06:56]line СДАЧА: 0.00 [01:06:56]line НСП 1% : 1.77 [01:06:56]line НДС 12% : 21.24 [01:06:56]line Наличными: 200.00 [01:06:56]line Безнал.: 0.00 [01:06:56]line Место: АЗС № 171 "Партнер Нефть" [01:06:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [01:06:56]line СНО: Общий режим [01:06:56]line Чек 7 28.10.2024 01:06 [01:06:56]line Смена: 545 ФФД: 1.0 [01:06:56]line ЗНМ: 0300000109 [01:06:56]line РНМ: 0000000000091777 [01:06:56]line Версия ККМ: 001 [01:06:56]line ФМ: 0000000000871756 [01:06:56]line ФД: 202207 [01:06:56]line ФПД: 264475543320025 [01:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T010656&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202207&fm=264475543320025&tin=02508201610067®Number=0000000000091777&sum=20000 [01:06:56]OFD Sender: Processing packet 202207 [packets to send 114, broken 113] [01:06:56]ProducePacketName [01:06:56]name=ofd_packets/00202207 [01:06:56]OFD Sender: To server: pG, [01:06:56]CommunicateWithHost lk.salyk.kg:30040 [01:06:56]ConnectInit lk.salyk.kg [01:06:56]written 0, free lines is 4095 [01:06:56]Connected sock=9 [01:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B5 75 07 01 8D FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 B0 E3 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 15 03 00 35 04 06 00 F0 8A 02 CF B5 D9 BA 4A 40 A8 48 62 9B 2E [01:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DC 9E 47 00 31 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 15 03 00 F4 03 04 00 68 8F 1E 67 B6 04 01 00 00 1B 83 7D CD 2E 18 31 08 [01:06:56]CommunicateWithHost err = 0 [01:06:56]CheckOFDResponse [01:06:56]1017 (14) - 77093643461234 [01:06:56]1041 (16) - 0000000000871756 [01:06:56]1040 (4) - 202207 [01:06:56]1012 (4) - 27.10.2024 19:07 [01:06:56]1206 (1) - 0 [01:06:56]OFD Sender: Remove packet 202207 [01:06:56]ProducePacketName [01:06:56]name=ofd_packets/00202207 [01:06:56]NVStorageDeleteData [01:06:56]Write to MH i2c: 01 00 00 BA 06 C0 [01:06:56]Write i2c OK [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: 01 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: 01 07 00 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: 01 07 00 BA 06 00 00 00 00 00 9D 0C 70 [01:06:56]RasterBufferAndPrint [01:06:56]line [01:06:56]line [01:06:56]line [01:06:56]line [01:06:56]line [01:06:56]written 0, free lines is 3233 [01:06:56]MH_Cut [01:06:56]Write to MH i2c: D1 01 00 C1 06 01 99 [01:06:56]Write i2c OK [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: D1 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: D1 01 00 [01:06:56]MH_I2C_Read... [01:06:56]Read from MH i2c: D1 01 00 C1 06 00 98 [01:06:56]Write to MH i2c: 01 00 00 C2 06 C8 [01:06:56]Write i2c OK [01:06:56]MH_I2C_Read... [01:06:57]OFD Sender: No OFD packet to send [01:06:57]*** Cut start [01:06:57]*** Purtial cut [01:06:57]*** Stage 1: CUTSNS_PIN = 1 [01:06:58]Read from MH i2c: 01 [01:06:58]MH_I2C_Read... [01:06:58]*** Stop cut motor [01:06:58]*** Cut end [01:06:58]Read from MH i2c: 01 07 00 [01:06:58]MH_I2C_Read... [01:06:58]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 FF 0F DD [01:06:58]process_action close_receipt done [01:06:58]requested_data is exist [01:06:58]produce_requested_data [01:06:58]requested_item fm.sn is exist - process it [01:06:58]wFMCommunicate request_size=4 [01:06:58]MH_SAM_APDU [01:06:58]CAPDU: 80 11 00 00 [01:06:58]Write to MH i2c: E2 08 00 C3 06 80 11 00 00 00 00 00 00 43 [01:06:58]Write i2c OK [01:06:58]MH_I2C_Read... [01:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:58]Read from MH i2c: E2 [01:06:58]MH_I2C_Read... [01:06:58]Read from MH i2c: E2 17 00 [01:06:58]MH_I2C_Read... [01:06:58]Read from MH i2c: E2 17 00 C3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 98 [01:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:06:58]wFMCommunicate OK [01:06:58]requested_item fd.num is exist - process it [01:06:58]SAM_PROTO_GetFieldsCounters [01:06:58]wFMCommunicate request_size=4 [01:06:58]MH_SAM_APDU [01:06:58]CAPDU: 80 13 00 00 [01:06:58]Write to MH i2c: E2 08 00 C4 06 80 13 00 00 00 00 00 00 46 [01:06:58]Write i2c OK [01:06:58]MH_I2C_Read... [01:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:58]Read from MH i2c: E2 [01:06:58]MH_I2C_Read... [01:06:58]Read from MH i2c: E2 62 00 [01:06:58]MH_I2C_Read... [01:06:58]Read from MH i2c: E2 62 00 C4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DF 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [01:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DF 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:06:58]wFMCommunicate OK [01:06:58]SAM_PROTO_GetFieldsCounters done [01:06:58]requested_item shift.num is exist - process it [01:06:58]requested_item shift.opened is exist - process it [01:06:58]req_shift_opened [01:06:58]FM_GetShiftState [01:06:58]SAM_PROTO_GetShiftState [01:06:58]wFMCommunicate request_size=4 [01:06:58]MH_SAM_APDU [01:06:58]CAPDU: 80 13 01 00 [01:06:58]Write to MH i2c: E2 08 00 C5 06 80 13 01 00 00 00 00 00 48 [01:06:58]Write i2c OK [01:06:58]MH_I2C_Read... [01:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:58]Read from MH i2c: E2 [01:06:58]MH_I2C_Read... [01:06:58]Read from MH i2c: E2 0E 00 [01:06:58]MH_I2C_Read... [01:06:58]Read from MH i2c: E2 0E 00 C5 06 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 F3 [01:06:58]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [01:06:58]wFMCommunicate OK [01:06:58]SAM_PROTO_GetShiftState done [01:06:58]FM_GetShiftState done [01:06:58]req_shift_opened done [01:06:58]requested_item shift.open_date is exist - process it [01:06:58]req_shift_open_date [01:06:58]req_shift_open_date done [01:06:58]produce_requested_data done [01:06:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202207,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670} [01:06:58]process_action_free close_receipt [01:06:58]json_value_free [01:06:58]json_value_free done [01:06:58]process_json_proto returns [01:06:58]Send response to host [01:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202207,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [01:06:58]free response buf [01:06:58]execute_script done [01:06:58]execute_script returns [01:06:58]free content buf [01:06:58]Sock 10.Close socket [01:06:58]Sock 10.Thread stoped [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:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:09]accept exits with 7 [01:21:09]New connection [01:21:09]New thread 3067424100 created [01:21:09]Thread 3067280740 joined [01:21:09]Waiting for new connection... [01:21:09] Sock 7.Parse request [01:21:09]Sock 7.Check first char [01:21:09]Sock 7.First char is OK [01:21:09]request: POST /json_proto HTTP/1.0 [01:21:09]Method: POST [01:21:09]URL: /json_proto [01:21:09]Method is POST - this is cgi request [01:21:09]url: /json_proto [01:21:09]query_string will be loaded in cgi processing [01:21:09]execute_cgi json_proto POST (null) [01:21:09]execute_cgi path=json_proto method=POST [01:21:09]POST find Content-Length [01:21:09]Host: 172.17.63.195:8080 [01:21:09]Content-Length: 677 [01:21:09]Content-Type: application/json [01:21:09] [01:21:09]POST finish read [01:21:09]Found Content-Length = 677 [01:21:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:21:09]execute_script... [01:21: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)449980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:21:09]POST & json_proto [01:21:09]process_json_proto [01:21:09]json parsed OK: [01:21:09]protocol is kg_v1.0 [01:21:09]action value=close_receipt [01:21:09]process_action close_receipt [01:21:09]cmd_close_receipt [01:21:09]MH_GetDate [01:21:09]Write to MH i2c: F0 00 00 C6 06 BB [01:21:09]Write i2c OK [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: F0 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: F0 09 00 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: F0 09 00 C6 06 00 07 E7 1E 67 47 1B 1E 67 1E [01:21:09]GetLastDocTimeStamp 1730077616 [01:21:09]current date 1730078471 [01:21:09]FM_GetShiftState [01:21:09]SAM_PROTO_GetShiftState [01:21:09]wFMCommunicate request_size=4 [01:21:09]MH_SAM_APDU [01:21:09]CAPDU: 80 13 01 00 [01:21:09]Write to MH i2c: E2 08 00 C7 06 80 13 01 00 00 00 00 00 4A [01:21:09]Write i2c OK [01:21:09]MH_I2C_Read... [01:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:09]Read from MH i2c: E2 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: E2 0E 00 [01:21:09]MH_I2C_Read... [01:21:09]Read from MH i2c: E2 0E 00 C7 06 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 F5 [01:21:09]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [01:21:09]wFMCommunicate OK [01:21:09]SAM_PROTO_GetShiftState done [01:21:09]FM_GetShiftState done [01:21:09]opened in 1730073670 [01:21:09]opened+sec_in_day 1730160070 [01:21:09]quantity*price = 50041 [01:21:09]sum+1 = 50042 [01:21:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 8 28.10.2024 01:21 Смена: 545 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 202208 ФПД: 260527595984178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T012111&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202208&fm=260527595984178&tin=02508201610067®Number=0000000000091777&sum=50000 [01:21:10]StoreToDocumentArchive [01:21:10]shift 545 fd 202208 [01:21:10]save to /storage/0545/doc_00202208 [01:21:10]save last doc name /storage/0545/doc_00202208 to /storage/kkm_last_doc_name [01:21:10]save OK [01:21:10]Clear old archive folders... [01:21:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:21:10]tlvbuf is 00C08310 [01:21:10]SAM_PROTO_ClearQueue [01:21:10]wFMCommunicate request_size=4 [01:21:10]MH_SAM_APDU [01:21:10]CAPDU: 80 09 00 00 [01:21:10]Write to MH i2c: E2 08 00 D4 06 80 09 00 00 00 00 00 00 4C [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:21:11]Read from MH i2c: E2 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 03 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [01:21:11]RAPDU: 90 00 [01:21:11]wFMCommunicate OK [01:21:11]SAM_PROTO_ClearQueue done [01:21:11]KKMCreateOFDPacket [01:21:11]OFDProtocolAddRootSTLVToBuf [01:21:11]FM_MakeSignedData [01:21:11]FM_MakeSignedData [01:21:11]SAM_PROTO_SignData [01:21:11]wFMCommunicate request_size=4 [01:21:11]MH_SAM_APDU [01:21:11]CAPDU: 80 0D 01 02 [01:21:11]Write to MH i2c: E2 08 00 D5 06 80 0D 01 02 00 00 00 00 54 [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:21:11]Read from MH i2c: E2 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 03 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [01:21:11]RAPDU: 90 00 [01:21:11]wFMCommunicate OK [01:21:11]wFMCommunicate request_size=255 [01:21:11]MH_SAM_APDU [01:21:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 08 00 00 00 F4 03 04 00 07 E7 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 15 03 00 35 04 06 00 EC [01:21:11]Write to MH i2c: E2 02 01 D6 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 08 00 00 00 F4 03 04 00 07 E7 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 15 03 00 35 04 06 00 EC 00 00 6A [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:11]Read from MH i2c: E2 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 03 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [01:21:11]RAPDU: 90 00 [01:21:11]wFMCommunicate OK [01:21:11]wFMCommunicate request_size=10 [01:21:11]MH_SAM_APDU [01:21:11]CAPDU: 80 0D 02 02 05 F2 CE D0 15 32 [01:21:11]Write to MH i2c: E2 0D 00 D7 06 80 0D 02 02 05 00 F2 CE D0 15 32 00 00 38 [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:11]Read from MH i2c: E2 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 03 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [01:21:11]RAPDU: 90 00 [01:21:11]wFMCommunicate OK [01:21:11]wFMCommunicate request_size=4 [01:21:11]MH_SAM_APDU [01:21:11]CAPDU: 80 0D 03 02 [01:21:11]Write to MH i2c: E2 08 00 D8 06 80 0D 03 02 00 00 00 00 59 [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:21:11]Read from MH i2c: E2 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 0B 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 0B 00 D8 06 00 66 2D 66 7A 38 15 BC BC 90 00 92 [01:21:11]RAPDU: 66 2D 66 7A 38 15 BC BC 90 00 [01:21:11]wFMCommunicate OK [01:21:11]SAM_PROTO_SignData done [01:21:11]FM_MakeSignedData done [01:21:11]CreateOFDProtocolMessage [01:21:11]wFMCommunicate request_size=4 [01:21:11]MH_SAM_APDU [01:21:11]CAPDU: 80 11 00 00 [01:21:11]Write to MH i2c: E2 08 00 D9 06 80 11 00 00 00 00 00 00 59 [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:11]Read from MH i2c: E2 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 17 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: E2 17 00 D9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [01:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:21:11]wFMCommunicate OK [01:21:11]CreateOFDProtocolMessage done [01:21:11]OFDSenderStorePacket 202208 [01:21:11]StoreOFDPacket docnum=202208 [01:21:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 54 4A 07 01 A9 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 08 00 00 00 F4 03 04 00 07 E7 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 15 03 00 35 04 06 00 EC F2 CE D0 15 32 66 2D 66 7A 38 15 BC BC [01:21:11]CheckFolder [01:21:11]dirname=/storage/ofd_packets [01:21:11]CheckFolder done [01:21:11]ProducePacketName [01:21:11]name=ofd_packets/00202208 [01:21:11]NVStorageSaveData ofd_packets/00202208 [01:21:11]File name is /storage/ofd_packets/00202208 [01:21:11]Write 301 bytes [01:21:11]NVStorageSaveData done [01:21:11]OFDSenderStorePacket done [01:21:11]KKMCreateOFDPacket done [01:21:11]NVStorageSaveData kkm_last_timestamp [01:21:11]File name is /storage/kkm_last_timestamp [01:21:11]Write 4 bytes [01:21:11]NVStorageSaveData done [01:21:11]ExternCall_PrintAddStr [01:21:11]wPrintStart [01:21:11]Write to MH i2c: 01 00 00 DA 06 E0 [01:21:11]Write i2c OK [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: 01 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: 01 07 00 [01:21:11]MH_I2C_Read... [01:21:11]Read from MH i2c: 01 07 00 DA 06 00 00 00 00 00 FF 0F F5 [01:21:11]RasterBufferAndPrint [01:21:11]line Счет N : (1)449980 [01:21:11]line ИНН: 02508201610067 [01:21:11]line Контрольно-Кассовый Чек [01:21:11]line ПРОДАЖА [01:21:11]line ТРК (МРК, ГНК) : 41 [01:21:11]line Товар: 2710124130 [01:21:11]line Аи-92-К-2 [01:21:11]line 7.480 * 66.90 [01:21:11]line = 500.41 [01:21:11]line НДС 12% НСП 1% [01:21:11]line > о реализуемом товаре [01:21:11]line ОКРУГЛЕНИЕ: -0.41 [01:21:11]line ИТОГО: 500.00 [01:21:11]line Внесено: 500.00 [01:21:11]line СДАЧА: 0.00 [01:21:11]line НСП 1% : 4.43 [01:21:11]line НДС 12% : 53.14 [01:21:11]line Наличными: 500.00 [01:21:11]line Безнал.: 0.00 [01:21:11]line Место: АЗС № 171 "Партнер Нефть" [01:21:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [01:21:11]line СНО: Общий режим [01:21:11]line Чек 8 28.10.2024 01:21 [01:21:11]line Смена: 545 ФФД: 1.0 [01:21:11]line ЗНМ: 0300000109 [01:21:11]line РНМ: 0000000000091777 [01:21:11]line Версия ККМ: 001 [01:21:11]line ФМ: 0000000000871756 [01:21:11]line ФД: 202208 [01:21:11]line ФПД: 260527595984178 [01:21:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T012111&type=1&operation_type=1&fn_number=0000000000871756&fd_number=202208&fm=260527595984178&tin=02508201610067®Number=0000000000091777&sum=50000 [01:21:11]OFD Sender: Processing packet 202208 [packets to send 114, broken 113] [01:21:11]ProducePacketName [01:21:11]name=ofd_packets/00202208 [01:21:11]OFD Sender: To server: pG, [01:21:11]CommunicateWithHost lk.salyk.kg:30040 [01:21:11]ConnectInit lk.salyk.kg [01:21:11]written 0, free lines is 4095 [01:21:11]Connected sock=10 [01:21:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 54 4A 07 01 A9 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 08 00 00 00 F4 03 04 00 07 E7 1E 67 0E 04 04 00 21 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 15 03 00 35 04 06 00 EC F2 CE D0 15 32 66 2D 66 7A 38 15 BC BC [01:21:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D3 A8 47 00 E5 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 15 03 00 F4 03 04 00 BF 92 1E 67 B6 04 01 00 00 6A 1D 41 60 1A CE 2A 04 [01:21:12]CommunicateWithHost err = 0 [01:21:12]CheckOFDResponse [01:21:12]1017 (14) - 77093643461234 [01:21:12]1041 (16) - 0000000000871756 [01:21:12]1040 (4) - 202208 [01:21:12]1012 (4) - 27.10.2024 19:21 [01:21:12]1206 (1) - 0 [01:21:12]OFD Sender: Remove packet 202208 [01:21:12]ProducePacketName [01:21:12]name=ofd_packets/00202208 [01:21:12]NVStorageDeleteData [01:21:12]Write to MH i2c: 01 00 00 05 07 0C [01:21:12]Write i2c OK [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: 01 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: 01 07 00 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: 01 07 00 05 07 00 00 00 00 00 8C 0C AB [01:21:12]RasterBufferAndPrint [01:21:12]line [01:21:12]line [01:21:12]line [01:21:12]line [01:21:12]line [01:21:12]written 0, free lines is 3216 [01:21:12]MH_Cut [01:21:12]Write to MH i2c: D1 01 00 0C 07 01 E5 [01:21:12]Write i2c OK [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: D1 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: D1 01 00 [01:21:12]MH_I2C_Read... [01:21:12]Read from MH i2c: D1 01 00 0C 07 00 E4 [01:21:12]Write to MH i2c: 01 00 00 0D 07 14 [01:21:12]Write i2c OK [01:21:12]MH_I2C_Read... [01:21:12]OFD Sender: No OFD packet to send [01:21:13]*** Cut start [01:21:13]*** Purtial cut [01:21:13]*** Stage 1: CUTSNS_PIN = 1 [01:21:13]Read from MH i2c: 01 [01:21:13]MH_I2C_Read... [01:21:13]*** Stop cut motor [01:21:13]*** Cut end [01:21:13]Read from MH i2c: 01 07 00 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 FF 0F 29 [01:21:13]process_action close_receipt done [01:21:13]requested_data is exist [01:21:13]produce_requested_data [01:21:13]requested_item fm.sn is exist - process it [01:21:13]wFMCommunicate request_size=4 [01:21:13]MH_SAM_APDU [01:21:13]CAPDU: 80 11 00 00 [01:21:13]Write to MH i2c: E2 08 00 0E 07 80 11 00 00 00 00 00 00 8F [01:21:13]Write i2c OK [01:21:13]MH_I2C_Read... [01:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:13]Read from MH i2c: E2 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: E2 17 00 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: E2 17 00 0E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E4 [01:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:21:13]wFMCommunicate OK [01:21:13]requested_item fd.num is exist - process it [01:21:13]SAM_PROTO_GetFieldsCounters [01:21:13]wFMCommunicate request_size=4 [01:21:13]MH_SAM_APDU [01:21:13]CAPDU: 80 13 00 00 [01:21:13]Write to MH i2c: E2 08 00 0F 07 80 13 00 00 00 00 00 00 92 [01:21:13]Write i2c OK [01:21:13]MH_I2C_Read... [01:21:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:21:13]Read from MH i2c: E2 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: E2 62 00 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: E2 62 00 0F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E0 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [01:21:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E0 15 03 00 0E 04 04 00 21 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:21:13]wFMCommunicate OK [01:21:13]SAM_PROTO_GetFieldsCounters done [01:21:13]requested_item shift.num is exist - process it [01:21:13]requested_item shift.opened is exist - process it [01:21:13]req_shift_opened [01:21:13]FM_GetShiftState [01:21:13]SAM_PROTO_GetShiftState [01:21:13]wFMCommunicate request_size=4 [01:21:13]MH_SAM_APDU [01:21:13]CAPDU: 80 13 01 00 [01:21:13]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [01:21:13]Write i2c OK [01:21:13]MH_I2C_Read... [01:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:13]Read from MH i2c: E2 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: E2 0E 00 [01:21:13]MH_I2C_Read... [01:21:13]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 46 D4 1E 67 00 00 00 00 90 00 3F [01:21:13]RAPDU: 09 00 01 46 D4 1E 67 00 00 00 00 90 00 [01:21:13]wFMCommunicate OK [01:21:13]SAM_PROTO_GetShiftState done [01:21:13]FM_GetShiftState done [01:21:13]req_shift_opened done [01:21:13]requested_item shift.open_date is exist - process it [01:21:13]req_shift_open_date [01:21:13]req_shift_open_date done [01:21:13]produce_requested_data done [01:21:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":202208,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670} [01:21:13]process_action_free close_receipt [01:21:13]json_value_free [01:21:13]json_value_free done [01:21:13]process_json_proto returns [01:21:13]Send response to host [01:21:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":202208,"shift.num":545,"shift.opened":1,"shift.open_date":1730073670}}} [01:21:13]free response buf [01:21:13]execute_script done [01:21:13]execute_script returns [01:21:13]free content buf [01:21:13]Sock 7.Close socket [01:21:13]Sock 7.Thread stoped [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25: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:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44: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:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:48]ConnectInit Can't connect to host [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send